diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_.js b/spinifex/services/spinifexui/frontend/dist/assets/_.js index f4910161f..991ac7df8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{vr as i}from"./awsClient.js";import{Bt as a,Gt as o,Lt as s,zt as c}from"./auth.js";import{t as l}from"./back-link.js";import{n as u,r as d,t as f}from"./upload-button.js";import{r as p}from"./s3.js";import{S as m,ot as h}from"./index.js";var g=t(),_=e();function v(){let e=(0,g.c)(24),{bucket:t,_splat:v}=m.useParams(),y=c(v??``),{data:b}=r(h(t,y)),x=p(),S;e[0]===b.Contents?S=e[1]:(S=b.Contents??[],e[0]=b.Contents,e[1]=S);let C=S,w;e[2]===b.CommonPrefixes?w=e[3]:(w=b.CommonPrefixes??[],e[2]=b.CommonPrefixes,e[3]=w);let T=w,E=y.split(`/`).filter(Boolean),D=[{name:t,path:`/s3/ls/${t}`},...E.map((e,n)=>({name:e,path:`/s3/ls/${t}/${`${E.slice(0,n+1).join(`/`)}/`}`}))],O=E.length>1?`/s3/ls/${t}/${E.slice(0,-1).join(`/`)}/`:`/s3/ls/${t}`,k;e[4]===O?k=e[5]:(k=(0,_.jsx)(l,{to:O,children:`Back`}),e[4]=O,e[5]=k);let A;e[6]!==t||e[7]!==y||e[8]!==x.isPending||e[9]!==x.mutateAsync?(A=(0,_.jsx)(f,{bucket:t,isPending:x.isPending,onUpload:x.mutateAsync,prefix:y}),e[6]=t,e[7]=y,e[8]=x.isPending,e[9]=x.mutateAsync,e[10]=A):A=e[10];let j;e[11]===x.error?j=e[12]:(j=x.error&&(0,_.jsx)(n,{error:x.error,msg:`Failed to upload object`}),e[11]=x.error,e[12]=j);let M;e[13]!==t||e[14]!==T||e[15]!==y?(M=T.length>0&&(0,_.jsxs)(`div`,{className:`mb-6`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,_.jsx)(`div`,{className:`space-y-2`,children:T.map(e=>e.Prefix?(0,_.jsx)(d,{bucketName:t,folderName:o(a(e.Prefix,y)),fullPrefix:s(e.Prefix,y)},e.Prefix):null)})]}),e[13]=t,e[14]=T,e[15]=y,e[16]=M):M=e[16];let N;e[17]!==t||e[18]!==C||e[19]!==y?(N=C.length>0&&(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),C.map(e=>e.Key?(0,_.jsx)(u,{bucketName:t,displayName:a(e.Key,y),fullKey:s(e.Key,y),object:e},e.Key):null)]}),e[17]=t,e[18]=C,e[19]=y,e[20]=N):N=e[20];let P;return e[21]!==T.length||e[22]!==C.length?(P=C.length===0&&T.length===0&&(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this folder.`}),e[21]=T.length,e[22]=C.length,e[23]=P):P=e[23],(0,_.jsxs)(_.Fragment,{children:[k,(0,_.jsx)(`div`,{className:`mb-6`,children:(0,_.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,_.jsx)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:D.map((e,t)=>(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[t>0&&(0,_.jsx)(`span`,{children:`/`}),t===D.length-1?(0,_.jsx)(`span`,{className:`text-foreground`,children:e.name}):(0,_.jsx)(i,{className:`hover:text-foreground`,to:e.path,children:e.name})]},e.path))}),A]})}),j,M,N,P]})}export{v as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{vr as i}from"./awsClient.js";import{It as a,Rt as o,Wt as s,zt as c}from"./auth.js";import{t as l}from"./back-link.js";import{n as u,r as d,t as f}from"./upload-button.js";import{r as p}from"./s3.js";import{S as m,ot as h}from"./index.js";var g=t(),_=e();function v(){let e=(0,g.c)(24),{bucket:t,_splat:v}=m.useParams(),y=o(v??``),{data:b}=r(h(t,y)),x=p(),S;e[0]===b.Contents?S=e[1]:(S=b.Contents??[],e[0]=b.Contents,e[1]=S);let C=S,w;e[2]===b.CommonPrefixes?w=e[3]:(w=b.CommonPrefixes??[],e[2]=b.CommonPrefixes,e[3]=w);let T=w,E=y.split(`/`).filter(Boolean),D=[{name:t,path:`/s3/ls/${t}`},...E.map((e,n)=>({name:e,path:`/s3/ls/${t}/${`${E.slice(0,n+1).join(`/`)}/`}`}))],O=E.length>1?`/s3/ls/${t}/${E.slice(0,-1).join(`/`)}/`:`/s3/ls/${t}`,k;e[4]===O?k=e[5]:(k=(0,_.jsx)(l,{to:O,children:`Back`}),e[4]=O,e[5]=k);let A;e[6]!==t||e[7]!==y||e[8]!==x.isPending||e[9]!==x.mutateAsync?(A=(0,_.jsx)(f,{bucket:t,isPending:x.isPending,onUpload:x.mutateAsync,prefix:y}),e[6]=t,e[7]=y,e[8]=x.isPending,e[9]=x.mutateAsync,e[10]=A):A=e[10];let j;e[11]===x.error?j=e[12]:(j=x.error&&(0,_.jsx)(n,{error:x.error,msg:`Failed to upload object`}),e[11]=x.error,e[12]=j);let M;e[13]!==t||e[14]!==T||e[15]!==y?(M=T.length>0&&(0,_.jsxs)(`div`,{className:`mb-6`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,_.jsx)(`div`,{className:`space-y-2`,children:T.map(e=>e.Prefix?(0,_.jsx)(d,{bucketName:t,folderName:s(c(e.Prefix,y)),fullPrefix:a(e.Prefix,y)},e.Prefix):null)})]}),e[13]=t,e[14]=T,e[15]=y,e[16]=M):M=e[16];let N;e[17]!==t||e[18]!==C||e[19]!==y?(N=C.length>0&&(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),C.map(e=>e.Key?(0,_.jsx)(u,{bucketName:t,displayName:c(e.Key,y),fullKey:a(e.Key,y),object:e},e.Key):null)]}),e[17]=t,e[18]=C,e[19]=y,e[20]=N):N=e[20];let P;return e[21]!==T.length||e[22]!==C.length?(P=C.length===0&&T.length===0&&(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this folder.`}),e[21]=T.length,e[22]=C.length,e[23]=P):P=e[23],(0,_.jsxs)(_.Fragment,{children:[k,(0,_.jsx)(`div`,{className:`mb-6`,children:(0,_.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,_.jsx)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:D.map((e,t)=>(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[t>0&&(0,_.jsx)(`span`,{children:`/`}),t===D.length-1?(0,_.jsx)(`span`,{className:`text-foreground`,children:e.name}):(0,_.jsx)(i,{className:`hover:text-foreground`,to:e.path,children:e.name})]},e.path))}),A]})}),j,M,N,P]})}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js index 0c07ba87e..0d9e9077c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{vr as a}from"./awsClient.js";import{Wt as o}from"./auth.js";import{t as s}from"./chevron-down.js";import{t as c}from"./chevron-right.js";import{Ar as l,Dr as u,Er as d,Ft as f,Lt as p,Nr as m,Or as h,St as g,Tr as _,bt as v,gt as y,jr as b,kr as x,kt as S,lt as C,st as w,vt as T,wr as E,zt as ee}from"./index.js";import{t as D}from"./page-heading.js";import{t as O}from"./state-badge.js";import{r as k,t as A}from"./admin.js";import{t as te}from"./badge.js";import{a as j,i as M,n as N,o as ne,r as P,t as F}from"./card.js";var I=m(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),L=m(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),R=m(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),re=m(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),z=r(),B=t(n(),1),V=e(),H=[{name:`Air-gap Support`,key:`airgap`},{name:`NVIDIA Bluefield DPU`,key:`bluefield`},{name:`NVIDIA MIG Support`,key:`mig`}];function U(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function W(){let e=(0,z.c)(110),{isAdmin:t,version:n,license:r}=ee(),[a,o]=(0,B.useState)(!1),l;e[0]===t?l=e[1]:(l={...A,enabled:t},e[0]=t,e[1]=l);let{data:u}=i(l),f;e[2]===t?f=e[3]:(f={...k,enabled:t},e[2]=t,e[3]=f);let{data:p}=i(f);if(!t||!n)return null;let m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,M,N,I,L;if(e[4]!==r||e[5]!==u?.cluster_mode||e[6]!==u?.nodes||e[7]!==n.arch||e[8]!==n.commit||e[9]!==n.os||e[10]!==n.version||e[11]!==p?.vms){_=u?.nodes??[];let t;e[31]===p?.vms?t=e[32]:(t=p?.vms??[],e[31]=p?.vms,e[32]=t);let i=t,a=u?.cluster_mode??`single-node`;g=r===`open-source`;let o=_[0]?.region??null,s=_.reduce(se,0),c=_.reduce(oe,0),l=_.reduce(ae,0),f=_.reduce(ie,0);w=`mb-6 space-y-4`,x=`grid grid-cols-1 gap-4 md:grid-cols-3`;let ee;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(ee=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsxs)(ne,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(re,{className:`size-3.5`}),`Spinifex Info`]})}),e[33]=ee):ee=e[33];let k;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),e[34]=k):k=e[34];let A;e[35]===n.version?A=e[36]:(A=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[k,(0,V.jsx)(`span`,{className:`font-mono`,children:n.version})]}),e[35]=n.version,e[36]=A);let R;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),e[37]=R):R=e[37];let z;e[38]===n.commit?z=e[39]:(z=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[R,(0,V.jsx)(`span`,{className:`font-mono`,children:n.commit})]}),e[38]=n.commit,e[39]=z);let B;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),e[40]=B):B=e[40];let H;e[41]!==n.arch||e[42]!==n.os?(H=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[B,(0,V.jsxs)(`span`,{children:[n.os,`/`,n.arch]})]}),e[41]=n.arch,e[42]=n.os,e[43]=H):H=e[43],S=(0,V.jsxs)(F,{children:[ee,(0,V.jsxs)(P,{className:`space-y-1 text-xs`,children:[A,z,H,o&&(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,V.jsx)(`span`,{children:o})]})]})]});let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsx)(ne,{className:`text-sm`,children:`License & Support`})}),e[44]=U):U=e[44];let W;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),e[45]=W):W=e[45];let ce=g?`secondary`:`default`,G=g?`Open Source (AGPLv3)`:`Commercial`,K;e[46]!==ce||e[47]!==G?(K=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[W,(0,V.jsx)(te,{variant:ce,children:G})]}),e[46]=ce,e[47]=G,e[48]=K):K=e[48];let q;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),e[49]=q):q=e[49];let J=g?`Community`:`Standard`,Y;e[50]===J?Y=e[51]:(Y=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[q,(0,V.jsx)(`span`,{children:J})]}),e[50]=J,e[51]=Y);let X;e[52]===g?X=e[53]:(X=g&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-2 block text-xs font-medium text-primary hover:underline`,children:`Upgrade to Commercial →`}),e[52]=g,e[53]=X),e[54]!==K||e[55]!==Y||e[56]!==X?(C=(0,V.jsxs)(F,{children:[U,(0,V.jsxs)(P,{className:`space-y-2 text-xs`,children:[K,Y,X]})]}),e[54]=K,e[55]=Y,e[56]=X,e[57]=C):C=e[57],h=F,e[58]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsxs)(ne,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(d,{className:`size-3.5`}),`Cluster Status`]})}),e[58]=b):b=e[58],m=P,N=`space-y-2 text-xs`,e[59]===a?I=e[60]:(I=(0,V.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,V.jsx)(te,{variant:`outline`,children:a})}),e[59]=a,e[60]=I);let Z;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),e[61]=Z):Z=e[61],L=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Z,(0,V.jsx)(`span`,{children:_.length})]});let Q;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Instances`}),e[62]=Q):Q=e[62],e[63]===i.length?v=e[64]:(v=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,V.jsx)(`span`,{children:i.length})]}),e[63]=i.length,e[64]=v);let $;e[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),e[65]=$):$=e[65],y=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[$,(0,V.jsxs)(`span`,{children:[c,` / `,s]})]}),O=`flex justify-between`,e[66]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),e[66]=M):M=e[66],T=f.toFixed(1),E=` / `,D=l.toFixed(1),e[4]=r,e[5]=u?.cluster_mode,e[6]=u?.nodes,e[7]=n.arch,e[8]=n.commit,e[9]=n.os,e[10]=n.version,e[11]=p?.vms,e[12]=m,e[13]=h,e[14]=g,e[15]=_,e[16]=v,e[17]=y,e[18]=b,e[19]=x,e[20]=S,e[21]=C,e[22]=w,e[23]=T,e[24]=E,e[25]=D,e[26]=O,e[27]=M,e[28]=N,e[29]=I,e[30]=L}else m=e[12],h=e[13],g=e[14],_=e[15],v=e[16],y=e[17],b=e[18],x=e[19],S=e[20],C=e[21],w=e[22],T=e[23],E=e[24],D=e[25],O=e[26],M=e[27],N=e[28],I=e[29],L=e[30];let U;e[67]!==T||e[68]!==E||e[69]!==D?(U=(0,V.jsxs)(`span`,{children:[T,E,D,` GB`]}),e[67]=T,e[68]=E,e[69]=D,e[70]=U):U=e[70];let W;e[71]!==U||e[72]!==O||e[73]!==M?(W=(0,V.jsxs)(`div`,{className:O,children:[M,U]}),e[71]=U,e[72]=O,e[73]=M,e[74]=W):W=e[74];let G;e[75]!==m||e[76]!==v||e[77]!==y||e[78]!==W||e[79]!==N||e[80]!==I||e[81]!==L?(G=(0,V.jsxs)(m,{className:N,children:[I,L,v,y,W]}),e[75]=m,e[76]=v,e[77]=y,e[78]=W,e[79]=N,e[80]=I,e[81]=L,e[82]=G):G=e[82];let K;e[83]!==h||e[84]!==b||e[85]!==G?(K=(0,V.jsxs)(h,{children:[b,G]}),e[83]=h,e[84]=b,e[85]=G,e[86]=K):K=e[86];let q;e[87]!==x||e[88]!==S||e[89]!==C||e[90]!==K?(q=(0,V.jsxs)(`div`,{className:x,children:[S,C,K]}),e[87]=x,e[88]=S,e[89]=C,e[90]=K,e[91]=q):q=e[91];let J;e[92]!==_||e[93]!==a?(J=_.length>0&&(0,V.jsxs)(F,{children:[(0,V.jsx)(j,{className:`pb-0`,children:(0,V.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>o(!a),children:[a?(0,V.jsx)(s,{className:`size-3.5`}):(0,V.jsx)(c,{className:`size-3.5`}),`Nodes (`,_.length,`)`]})}),a&&(0,V.jsx)(P,{className:`pt-2`,children:(0,V.jsx)(ce,{nodes:_})})]}),e[92]=_,e[93]=a,e[94]=J):J=e[94];let Y;e[95]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsx)(ne,{className:`text-sm`,children:`Commercial Add-ons`})}),e[95]=Y):Y=e[95];let X;e[96]===g?X=e[97]:(X=H.map(e=>(0,V.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,V.jsx)(`span`,{className:g?`text-muted-foreground`:void 0,children:e.name}),g?(0,V.jsx)(R,{className:`size-3 text-muted-foreground`}):(0,V.jsx)(te,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),e[96]=g,e[97]=X);let Z;e[98]===X?Z=e[99]:(Z=(0,V.jsx)(`div`,{className:`space-y-2`,children:X}),e[98]=X,e[99]=Z);let Q;e[100]===g?Q=e[101]:(Q=g&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-3 block text-xs font-medium text-primary hover:underline`,children:`Learn more about commercial features →`}),e[100]=g,e[101]=Q);let $;e[102]!==Z||e[103]!==Q?($=(0,V.jsxs)(F,{children:[Y,(0,V.jsxs)(P,{children:[Z,Q]})]}),e[102]=Z,e[103]=Q,e[104]=$):$=e[104];let le;return e[105]!==w||e[106]!==q||e[107]!==J||e[108]!==$?(le=(0,V.jsxs)(`div`,{className:w,children:[q,J,$]}),e[105]=w,e[106]=q,e[107]=J,e[108]=$,e[109]=le):le=e[109],le}function ie(e,t){return e+t.alloc_mem_gb}function ae(e,t){return e+t.total_mem_gb}function oe(e,t){return e+t.alloc_vcpu}function se(e,t){return e+t.total_vcpu}function ce(e){let t=(0,z.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(`thead`,{children:(0,V.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,V.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(G),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,V.jsx)(`div`,{className:`overflow-x-auto`,children:(0,V.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,V.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function G(e){return(0,V.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,V.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,V.jsx)(te,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,V.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:U(e.uptime)}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,V.jsx)(`td`,{className:`py-1.5`,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var K=5;function q(){let e=(0,z.c)(11),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(D,{title:`Dashboard`}),n=(0,V.jsx)(W,{}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Q,{})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(me,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(ye,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(xe,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Ce,{})}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Te,{})}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(De,{})}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(je,{})}),e[9]=u):u=e[9];let d;return e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsxs)(V.Fragment,{children:[t,n,(0,V.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[r,i,a,o,s,c,l,u,(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(ke,{})})]})]}),e[10]=d):d=e[10],d}function J(){let e=(0,z.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(j,{children:(0,V.jsx)(`div`,{className:`h-4 w-32 animate-pulse rounded bg-muted`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,V.jsxs)(F,{children:[t,(0,V.jsx)(P,{children:(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,V.jsx)(`div`,{className:`h-3 w-36 animate-pulse rounded bg-muted`})]})})]}),e[1]=n):n=e[1],n}function Y(e){let t=(0,z.c)(16),{title:n,icon:r,count:i,to:o,children:s}=e,c;t[0]!==r||t[1]!==n?(c=(0,V.jsxs)(ne,{className:`flex items-center gap-2`,children:[r,n]}),t[0]=r,t[1]=n,t[2]=c):c=t[2];let l;t[3]===i?l=t[4]:(l=(0,V.jsx)(N,{children:(0,V.jsx)(`span`,{className:`rounded-md bg-muted px-2 py-0.5 text-xs font-semibold tabular-nums`,children:i})}),t[3]=i,t[4]=l);let u;t[5]!==c||t[6]!==l?(u=(0,V.jsxs)(j,{children:[c,l]}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d;t[8]===s?d=t[9]:(d=(0,V.jsx)(P,{children:s}),t[8]=s,t[9]=d);let f;t[10]===o?f=t[11]:(f=(0,V.jsx)(M,{children:(0,V.jsx)(a,{to:o,className:`text-xs font-medium text-primary hover:underline`,children:`View all →`})}),t[10]=o,t[11]=f);let p;return t[12]!==u||t[13]!==d||t[14]!==f?(p=(0,V.jsxs)(F,{children:[u,d,f]}),t[12]=u,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}function X(e){let t=(0,z.c)(2),{total:n}=e;if(n<=K)return null;let r=n-K,i;return t[0]===r?i=t[1]:(i=(0,V.jsxs)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:[`+`,r,` more`]}),t[0]=r,t[1]=i),i}function Z(e){let t=(0,z.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,V.jsx)(`div`,{className:`flex items-center justify-between py-0.5 text-xs`,children:n}),t[0]=n,t[1]=r),r}function Q(){let e=(0,z.c)(16),{data:t}=i(y),n,r,a,o,s;if(e[0]!==t?.Reservations){let i=t?.Reservations?.flatMap(pe)??[];n=i.filter(fe),a=i.filter(de),o=i.filter(ue),r=i.filter(le),s=[...a,...r].slice(0,K),e[0]=t?.Reservations,e[1]=n,e[2]=r,e[3]=a,e[4]=o,e[5]=s}else n=e[1],r=e[2],a=e[3],o=e[4],s=e[5];let c=s,u;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(l,{className:`size-3.5`}),e[6]=u):u=e[6];let d;e[7]!==n.length||e[8]!==c||e[9]!==r||e[10]!==a||e[11]!==o?(d=n.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[a.length,` running`]}),(0,V.jsxs)(`span`,{children:[o.length,` stopped`]})]}),(0,V.jsx)(`div`,{className:`space-y-0.5`,children:c.map($)}),(0,V.jsx)(X,{total:a.length+r.length})]}),e[7]=n.length,e[8]=c,e[9]=r,e[10]=a,e[11]=o,e[12]=d):d=e[12];let f;return e[13]!==n.length||e[14]!==d?(f=(0,V.jsx)(Y,{title:`Instances`,icon:u,count:n.length,to:`/ec2/describe-instances`,children:d}),e[13]=n.length,e[14]=d,e[15]=f):f=e[15],f}function $(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.InstanceType})]},e.InstanceId)}function le(e){return e.State?.Name===`pending`}function ue(e){return e.State?.Name===`stopped`}function de(e){return e.State?.Name===`running`}function fe(e){return e.State?.Name!==`terminated`}function pe(e){return e.Instances??[]}function me(){let e=(0,z.c)(3),{data:t}=i(f),n;if(e[0]!==t?.Volumes){let r=t?.Volumes??[],i=r.reduce(ve,0),a=r.filter(_e),o=r.filter(ge),s=r.slice(0,K),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(I,{className:`size-3.5`}),e[2]=c):c=e[2],n=(0,V.jsx)(Y,{title:`Volumes`,icon:c,count:r.length,to:`/ec2/describe-volumes`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[i,` GiB total`]}),(0,V.jsxs)(`span`,{children:[a.length,` in-use`]}),(0,V.jsxs)(`span`,{children:[o.length,` available`]})]}),(0,V.jsx)(`div`,{className:`space-y-0.5`,children:s.map(he)}),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Volumes,e[1]=n}else n=e[1];return n}function he(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,V.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,V.jsx)(O,{state:e.State})]})]},e.VolumeId)}function ge(e){return e.State===`available`}function _e(e){return e.State===`in-use`}function ve(e,t){return e+(t.Size??0)}function ye(){let e=(0,z.c)(3),{data:t}=i(p),n;if(e[0]!==t?.Vpcs){let r=t?.Vpcs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(h,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`VPCs`,icon:a,count:r.length,to:`/ec2/describe-vpcs`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(be),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Vpcs,e[1]=n}else n=e[1];return n}function be(e){let t=o(e.Tags);return(0,V.jsxs)(Z,{children:[(0,V.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,V.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function xe(){let e=(0,z.c)(3),{data:t}=i(v),n;if(e[0]!==t?.KeyPairs){let r=t?.KeyPairs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(x,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Key Pairs`,icon:a,count:r.length,to:`/ec2/describe-key-pairs`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Se),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.KeyPairs,e[1]=n}else n=e[1];return n}function Se(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function Ce(){let e=(0,z.c)(3),{data:t}=i(w),n;if(e[0]!==t?.Buckets){let r=t?.Buckets??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(L,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`S3 Buckets`,icon:a,count:r.length,to:`/s3/ls`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(we),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Buckets,e[1]=n}else n=e[1];return n}function we(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function Te(){let e=(0,z.c)(3),{data:t}=i(S),n;if(e[0]!==t?.SecurityGroups){let r=t?.SecurityGroups??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(_,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Security Groups`,icon:a,count:r.length,to:`/ec2/describe-security-groups`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ee),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.SecurityGroups,e[1]=n}else n=e[1];return n}function Ee(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}function De(){let e=(0,z.c)(3),{data:t}=i(g),n;if(e[0]!==t?.NatGateways){let r=t?.NatGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(E,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`NAT Gateways`,icon:a,count:r.length,to:`/ec2/describe-nat-gateways`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No NAT gateways`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Oe),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.NatGateways,e[1]=n}else n=e[1];return n}function Oe(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.NatGatewayId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.State})]},e.NatGatewayId)}function ke(){let e=(0,z.c)(3),{data:t}=i(T),n;if(e[0]!==t?.InternetGateways){let r=t?.InternetGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(u,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Internet Gateways`,icon:a,count:r.length,to:`/ec2/describe-internet-gateways`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No internet gateways`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ae),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.InternetGateways,e[1]=n}else n=e[1];return n}function Ae(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.InternetGatewayId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.Attachments?.[0]?.VpcId?`attached`:`detached`})]},e.InternetGatewayId)}function je(){let e=(0,z.c)(3),{data:t}=i(C),n;if(e[0]!==t?.Addresses){let r=t?.Addresses??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(b,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Elastic IPs`,icon:a,count:r.length,to:`/ec2/describe-addresses`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No Elastic IPs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Me),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Addresses,e[1]=n}else n=e[1];return n}function Me(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.PublicIp}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.AssociationId?`associated`:`available`})]},e.AllocationId)}export{q as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{vr as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./chevron-down.js";import{t as c}from"./chevron-right.js";import{Ar as l,Dr as u,Er as d,Ft as f,Lt as p,Nr as m,Or as h,St as g,Tr as _,bt as v,gt as y,jr as b,kr as x,kt as S,lt as C,st as w,vt as T,wr as E,zt as ee}from"./index.js";import{t as D}from"./page-heading.js";import{t as O}from"./state-badge.js";import{r as k,t as A}from"./admin.js";import{t as te}from"./badge.js";import{a as j,i as M,n as N,o as ne,r as P,t as F}from"./card.js";var I=m(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),L=m(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),R=m(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),re=m(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),z=r(),B=t(n(),1),V=e(),H=[{name:`Air-gap Support`,key:`airgap`},{name:`NVIDIA Bluefield DPU`,key:`bluefield`},{name:`NVIDIA MIG Support`,key:`mig`}];function U(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function W(){let e=(0,z.c)(110),{isAdmin:t,version:n,license:r}=ee(),[a,o]=(0,B.useState)(!1),l;e[0]===t?l=e[1]:(l={...A,enabled:t},e[0]=t,e[1]=l);let{data:u}=i(l),f;e[2]===t?f=e[3]:(f={...k,enabled:t},e[2]=t,e[3]=f);let{data:p}=i(f);if(!t||!n)return null;let m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,M,N,I,L;if(e[4]!==r||e[5]!==u?.cluster_mode||e[6]!==u?.nodes||e[7]!==n.arch||e[8]!==n.commit||e[9]!==n.os||e[10]!==n.version||e[11]!==p?.vms){_=u?.nodes??[];let t;e[31]===p?.vms?t=e[32]:(t=p?.vms??[],e[31]=p?.vms,e[32]=t);let i=t,a=u?.cluster_mode??`single-node`;g=r===`open-source`;let o=_[0]?.region??null,s=_.reduce(se,0),c=_.reduce(oe,0),l=_.reduce(ae,0),f=_.reduce(ie,0);w=`mb-6 space-y-4`,x=`grid grid-cols-1 gap-4 md:grid-cols-3`;let ee;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(ee=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsxs)(ne,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(re,{className:`size-3.5`}),`Spinifex Info`]})}),e[33]=ee):ee=e[33];let k;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),e[34]=k):k=e[34];let A;e[35]===n.version?A=e[36]:(A=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[k,(0,V.jsx)(`span`,{className:`font-mono`,children:n.version})]}),e[35]=n.version,e[36]=A);let R;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),e[37]=R):R=e[37];let z;e[38]===n.commit?z=e[39]:(z=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[R,(0,V.jsx)(`span`,{className:`font-mono`,children:n.commit})]}),e[38]=n.commit,e[39]=z);let B;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),e[40]=B):B=e[40];let H;e[41]!==n.arch||e[42]!==n.os?(H=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[B,(0,V.jsxs)(`span`,{children:[n.os,`/`,n.arch]})]}),e[41]=n.arch,e[42]=n.os,e[43]=H):H=e[43],S=(0,V.jsxs)(F,{children:[ee,(0,V.jsxs)(P,{className:`space-y-1 text-xs`,children:[A,z,H,o&&(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,V.jsx)(`span`,{children:o})]})]})]});let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsx)(ne,{className:`text-sm`,children:`License & Support`})}),e[44]=U):U=e[44];let W;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),e[45]=W):W=e[45];let ce=g?`secondary`:`default`,G=g?`Open Source (AGPLv3)`:`Commercial`,K;e[46]!==ce||e[47]!==G?(K=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[W,(0,V.jsx)(te,{variant:ce,children:G})]}),e[46]=ce,e[47]=G,e[48]=K):K=e[48];let q;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),e[49]=q):q=e[49];let J=g?`Community`:`Standard`,Y;e[50]===J?Y=e[51]:(Y=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[q,(0,V.jsx)(`span`,{children:J})]}),e[50]=J,e[51]=Y);let X;e[52]===g?X=e[53]:(X=g&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-2 block text-xs font-medium text-primary hover:underline`,children:`Upgrade to Commercial →`}),e[52]=g,e[53]=X),e[54]!==K||e[55]!==Y||e[56]!==X?(C=(0,V.jsxs)(F,{children:[U,(0,V.jsxs)(P,{className:`space-y-2 text-xs`,children:[K,Y,X]})]}),e[54]=K,e[55]=Y,e[56]=X,e[57]=C):C=e[57],h=F,e[58]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsxs)(ne,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(d,{className:`size-3.5`}),`Cluster Status`]})}),e[58]=b):b=e[58],m=P,N=`space-y-2 text-xs`,e[59]===a?I=e[60]:(I=(0,V.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,V.jsx)(te,{variant:`outline`,children:a})}),e[59]=a,e[60]=I);let Z;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),e[61]=Z):Z=e[61],L=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Z,(0,V.jsx)(`span`,{children:_.length})]});let Q;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Instances`}),e[62]=Q):Q=e[62],e[63]===i.length?v=e[64]:(v=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,V.jsx)(`span`,{children:i.length})]}),e[63]=i.length,e[64]=v);let $;e[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),e[65]=$):$=e[65],y=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[$,(0,V.jsxs)(`span`,{children:[c,` / `,s]})]}),O=`flex justify-between`,e[66]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),e[66]=M):M=e[66],T=f.toFixed(1),E=` / `,D=l.toFixed(1),e[4]=r,e[5]=u?.cluster_mode,e[6]=u?.nodes,e[7]=n.arch,e[8]=n.commit,e[9]=n.os,e[10]=n.version,e[11]=p?.vms,e[12]=m,e[13]=h,e[14]=g,e[15]=_,e[16]=v,e[17]=y,e[18]=b,e[19]=x,e[20]=S,e[21]=C,e[22]=w,e[23]=T,e[24]=E,e[25]=D,e[26]=O,e[27]=M,e[28]=N,e[29]=I,e[30]=L}else m=e[12],h=e[13],g=e[14],_=e[15],v=e[16],y=e[17],b=e[18],x=e[19],S=e[20],C=e[21],w=e[22],T=e[23],E=e[24],D=e[25],O=e[26],M=e[27],N=e[28],I=e[29],L=e[30];let U;e[67]!==T||e[68]!==E||e[69]!==D?(U=(0,V.jsxs)(`span`,{children:[T,E,D,` GB`]}),e[67]=T,e[68]=E,e[69]=D,e[70]=U):U=e[70];let W;e[71]!==U||e[72]!==O||e[73]!==M?(W=(0,V.jsxs)(`div`,{className:O,children:[M,U]}),e[71]=U,e[72]=O,e[73]=M,e[74]=W):W=e[74];let G;e[75]!==m||e[76]!==v||e[77]!==y||e[78]!==W||e[79]!==N||e[80]!==I||e[81]!==L?(G=(0,V.jsxs)(m,{className:N,children:[I,L,v,y,W]}),e[75]=m,e[76]=v,e[77]=y,e[78]=W,e[79]=N,e[80]=I,e[81]=L,e[82]=G):G=e[82];let K;e[83]!==h||e[84]!==b||e[85]!==G?(K=(0,V.jsxs)(h,{children:[b,G]}),e[83]=h,e[84]=b,e[85]=G,e[86]=K):K=e[86];let q;e[87]!==x||e[88]!==S||e[89]!==C||e[90]!==K?(q=(0,V.jsxs)(`div`,{className:x,children:[S,C,K]}),e[87]=x,e[88]=S,e[89]=C,e[90]=K,e[91]=q):q=e[91];let J;e[92]!==_||e[93]!==a?(J=_.length>0&&(0,V.jsxs)(F,{children:[(0,V.jsx)(j,{className:`pb-0`,children:(0,V.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>o(!a),children:[a?(0,V.jsx)(s,{className:`size-3.5`}):(0,V.jsx)(c,{className:`size-3.5`}),`Nodes (`,_.length,`)`]})}),a&&(0,V.jsx)(P,{className:`pt-2`,children:(0,V.jsx)(ce,{nodes:_})})]}),e[92]=_,e[93]=a,e[94]=J):J=e[94];let Y;e[95]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsx)(ne,{className:`text-sm`,children:`Commercial Add-ons`})}),e[95]=Y):Y=e[95];let X;e[96]===g?X=e[97]:(X=H.map(e=>(0,V.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,V.jsx)(`span`,{className:g?`text-muted-foreground`:void 0,children:e.name}),g?(0,V.jsx)(R,{className:`size-3 text-muted-foreground`}):(0,V.jsx)(te,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),e[96]=g,e[97]=X);let Z;e[98]===X?Z=e[99]:(Z=(0,V.jsx)(`div`,{className:`space-y-2`,children:X}),e[98]=X,e[99]=Z);let Q;e[100]===g?Q=e[101]:(Q=g&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-3 block text-xs font-medium text-primary hover:underline`,children:`Learn more about commercial features →`}),e[100]=g,e[101]=Q);let $;e[102]!==Z||e[103]!==Q?($=(0,V.jsxs)(F,{children:[Y,(0,V.jsxs)(P,{children:[Z,Q]})]}),e[102]=Z,e[103]=Q,e[104]=$):$=e[104];let le;return e[105]!==w||e[106]!==q||e[107]!==J||e[108]!==$?(le=(0,V.jsxs)(`div`,{className:w,children:[q,J,$]}),e[105]=w,e[106]=q,e[107]=J,e[108]=$,e[109]=le):le=e[109],le}function ie(e,t){return e+t.alloc_mem_gb}function ae(e,t){return e+t.total_mem_gb}function oe(e,t){return e+t.alloc_vcpu}function se(e,t){return e+t.total_vcpu}function ce(e){let t=(0,z.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(`thead`,{children:(0,V.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,V.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(G),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,V.jsx)(`div`,{className:`overflow-x-auto`,children:(0,V.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,V.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function G(e){return(0,V.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,V.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,V.jsx)(te,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,V.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:U(e.uptime)}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,V.jsx)(`td`,{className:`py-1.5`,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var K=5;function q(){let e=(0,z.c)(11),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(D,{title:`Dashboard`}),n=(0,V.jsx)(W,{}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Q,{})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(me,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(ye,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(xe,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Ce,{})}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Te,{})}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(De,{})}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(je,{})}),e[9]=u):u=e[9];let d;return e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsxs)(V.Fragment,{children:[t,n,(0,V.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[r,i,a,o,s,c,l,u,(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(ke,{})})]})]}),e[10]=d):d=e[10],d}function J(){let e=(0,z.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(j,{children:(0,V.jsx)(`div`,{className:`h-4 w-32 animate-pulse rounded bg-muted`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,V.jsxs)(F,{children:[t,(0,V.jsx)(P,{children:(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,V.jsx)(`div`,{className:`h-3 w-36 animate-pulse rounded bg-muted`})]})})]}),e[1]=n):n=e[1],n}function Y(e){let t=(0,z.c)(16),{title:n,icon:r,count:i,to:o,children:s}=e,c;t[0]!==r||t[1]!==n?(c=(0,V.jsxs)(ne,{className:`flex items-center gap-2`,children:[r,n]}),t[0]=r,t[1]=n,t[2]=c):c=t[2];let l;t[3]===i?l=t[4]:(l=(0,V.jsx)(N,{children:(0,V.jsx)(`span`,{className:`rounded-md bg-muted px-2 py-0.5 text-xs font-semibold tabular-nums`,children:i})}),t[3]=i,t[4]=l);let u;t[5]!==c||t[6]!==l?(u=(0,V.jsxs)(j,{children:[c,l]}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d;t[8]===s?d=t[9]:(d=(0,V.jsx)(P,{children:s}),t[8]=s,t[9]=d);let f;t[10]===o?f=t[11]:(f=(0,V.jsx)(M,{children:(0,V.jsx)(a,{to:o,className:`text-xs font-medium text-primary hover:underline`,children:`View all →`})}),t[10]=o,t[11]=f);let p;return t[12]!==u||t[13]!==d||t[14]!==f?(p=(0,V.jsxs)(F,{children:[u,d,f]}),t[12]=u,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}function X(e){let t=(0,z.c)(2),{total:n}=e;if(n<=K)return null;let r=n-K,i;return t[0]===r?i=t[1]:(i=(0,V.jsxs)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:[`+`,r,` more`]}),t[0]=r,t[1]=i),i}function Z(e){let t=(0,z.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,V.jsx)(`div`,{className:`flex items-center justify-between py-0.5 text-xs`,children:n}),t[0]=n,t[1]=r),r}function Q(){let e=(0,z.c)(16),{data:t}=i(y),n,r,a,o,s;if(e[0]!==t?.Reservations){let i=t?.Reservations?.flatMap(pe)??[];n=i.filter(fe),a=i.filter(de),o=i.filter(ue),r=i.filter(le),s=[...a,...r].slice(0,K),e[0]=t?.Reservations,e[1]=n,e[2]=r,e[3]=a,e[4]=o,e[5]=s}else n=e[1],r=e[2],a=e[3],o=e[4],s=e[5];let c=s,u;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(l,{className:`size-3.5`}),e[6]=u):u=e[6];let d;e[7]!==n.length||e[8]!==c||e[9]!==r||e[10]!==a||e[11]!==o?(d=n.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[a.length,` running`]}),(0,V.jsxs)(`span`,{children:[o.length,` stopped`]})]}),(0,V.jsx)(`div`,{className:`space-y-0.5`,children:c.map($)}),(0,V.jsx)(X,{total:a.length+r.length})]}),e[7]=n.length,e[8]=c,e[9]=r,e[10]=a,e[11]=o,e[12]=d):d=e[12];let f;return e[13]!==n.length||e[14]!==d?(f=(0,V.jsx)(Y,{title:`Instances`,icon:u,count:n.length,to:`/ec2/describe-instances`,children:d}),e[13]=n.length,e[14]=d,e[15]=f):f=e[15],f}function $(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.InstanceType})]},e.InstanceId)}function le(e){return e.State?.Name===`pending`}function ue(e){return e.State?.Name===`stopped`}function de(e){return e.State?.Name===`running`}function fe(e){return e.State?.Name!==`terminated`}function pe(e){return e.Instances??[]}function me(){let e=(0,z.c)(3),{data:t}=i(f),n;if(e[0]!==t?.Volumes){let r=t?.Volumes??[],i=r.reduce(ve,0),a=r.filter(_e),o=r.filter(ge),s=r.slice(0,K),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(I,{className:`size-3.5`}),e[2]=c):c=e[2],n=(0,V.jsx)(Y,{title:`Volumes`,icon:c,count:r.length,to:`/ec2/describe-volumes`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[i,` GiB total`]}),(0,V.jsxs)(`span`,{children:[a.length,` in-use`]}),(0,V.jsxs)(`span`,{children:[o.length,` available`]})]}),(0,V.jsx)(`div`,{className:`space-y-0.5`,children:s.map(he)}),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Volumes,e[1]=n}else n=e[1];return n}function he(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,V.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,V.jsx)(O,{state:e.State})]})]},e.VolumeId)}function ge(e){return e.State===`available`}function _e(e){return e.State===`in-use`}function ve(e,t){return e+(t.Size??0)}function ye(){let e=(0,z.c)(3),{data:t}=i(p),n;if(e[0]!==t?.Vpcs){let r=t?.Vpcs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(h,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`VPCs`,icon:a,count:r.length,to:`/ec2/describe-vpcs`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(be),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Vpcs,e[1]=n}else n=e[1];return n}function be(e){let t=o(e.Tags);return(0,V.jsxs)(Z,{children:[(0,V.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,V.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function xe(){let e=(0,z.c)(3),{data:t}=i(v),n;if(e[0]!==t?.KeyPairs){let r=t?.KeyPairs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(x,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Key Pairs`,icon:a,count:r.length,to:`/ec2/describe-key-pairs`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Se),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.KeyPairs,e[1]=n}else n=e[1];return n}function Se(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function Ce(){let e=(0,z.c)(3),{data:t}=i(w),n;if(e[0]!==t?.Buckets){let r=t?.Buckets??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(L,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`S3 Buckets`,icon:a,count:r.length,to:`/s3/ls`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(we),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Buckets,e[1]=n}else n=e[1];return n}function we(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function Te(){let e=(0,z.c)(3),{data:t}=i(S),n;if(e[0]!==t?.SecurityGroups){let r=t?.SecurityGroups??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(_,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Security Groups`,icon:a,count:r.length,to:`/ec2/describe-security-groups`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ee),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.SecurityGroups,e[1]=n}else n=e[1];return n}function Ee(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}function De(){let e=(0,z.c)(3),{data:t}=i(g),n;if(e[0]!==t?.NatGateways){let r=t?.NatGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(E,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`NAT Gateways`,icon:a,count:r.length,to:`/ec2/describe-nat-gateways`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No NAT gateways`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Oe),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.NatGateways,e[1]=n}else n=e[1];return n}function Oe(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.NatGatewayId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.State})]},e.NatGatewayId)}function ke(){let e=(0,z.c)(3),{data:t}=i(T),n;if(e[0]!==t?.InternetGateways){let r=t?.InternetGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(u,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Internet Gateways`,icon:a,count:r.length,to:`/ec2/describe-internet-gateways`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No internet gateways`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ae),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.InternetGateways,e[1]=n}else n=e[1];return n}function Ae(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.InternetGatewayId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.Attachments?.[0]?.VpcId?`attached`:`detached`})]},e.InternetGatewayId)}function je(){let e=(0,z.c)(3),{data:t}=i(C),n;if(e[0]!==t?.Addresses){let r=t?.Addresses??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(b,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Elastic IPs`,icon:a,count:r.length,to:`/ec2/describe-addresses`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No Elastic IPs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Me),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Addresses,e[1]=n}else n=e[1];return n}function Me(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.PublicIp}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.AssociationId?`associated`:`available`})]},e.AllocationId)}export{q as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js b/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js index 5f17034fd..e0f1b03c4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_bucket.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{Gt as i}from"./auth.js";import{t as a}from"./back-link.js";import{n as o,r as s,t as c}from"./upload-button.js";import{r as l}from"./s3.js";import{N as u,ot as d}from"./index.js";import{t as f}from"./page-heading.js";var p=t(),m=e();function h(){let e=(0,p.c)(31),{bucket:t}=u.useParams(),h;e[0]===t?h=e[1]:(h=d(t),e[0]=t,e[1]=h);let{data:g}=r(h),_=l(),v;e[2]===g.Contents?v=e[3]:(v=g.Contents??[],e[2]=g.Contents,e[3]=v);let y=v,b;e[4]===g.CommonPrefixes?b=e[5]:(b=g.CommonPrefixes??[],e[4]=g.CommonPrefixes,e[5]=b);let x=b,S;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,m.jsx)(a,{to:`/s3/ls`,children:`Back to buckets`}),e[6]=S):S=e[6];let C;e[7]!==t||e[8]!==_.isPending||e[9]!==_.mutateAsync?(C=(0,m.jsx)(c,{bucket:t,isPending:_.isPending,onUpload:_.mutateAsync}),e[7]=t,e[8]=_.isPending,e[9]=_.mutateAsync,e[10]=C):C=e[10];let w;e[11]!==t||e[12]!==C?(w=(0,m.jsx)(f,{actions:C,title:t}),e[11]=t,e[12]=C,e[13]=w):w=e[13];let T;e[14]===_.error?T=e[15]:(T=_.error&&(0,m.jsx)(n,{error:_.error,msg:`Failed to upload object`}),e[14]=_.error,e[15]=T);let E;e[16]!==t||e[17]!==x?(E=x.length>0&&(0,m.jsxs)(`div`,{className:`mb-6`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,m.jsx)(`div`,{className:`space-y-2`,children:x.map(e=>e.Prefix?(0,m.jsx)(s,{bucketName:t,folderName:i(e.Prefix),fullPrefix:e.Prefix},e.Prefix):null)})]}),e[16]=t,e[17]=x,e[18]=E):E=e[18];let D;e[19]!==t||e[20]!==y?(D=y.length>0&&(0,m.jsxs)(`div`,{className:`space-y-2`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),y.map(e=>e.Key?(0,m.jsx)(o,{bucketName:t,displayName:e.Key,fullKey:e.Key,object:e},e.Key):null)]}),e[19]=t,e[20]=y,e[21]=D):D=e[21];let O;e[22]!==x.length||e[23]!==y.length?(O=y.length===0&&x.length===0&&(0,m.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this bucket.`}),e[22]=x.length,e[23]=y.length,e[24]=O):O=e[24];let k;return e[25]!==w||e[26]!==T||e[27]!==E||e[28]!==D||e[29]!==O?(k=(0,m.jsxs)(m.Fragment,{children:[S,w,T,E,D,O]}),e[25]=w,e[26]=T,e[27]=E,e[28]=D,e[29]=O,e[30]=k):k=e[30],k}export{h as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{Wt as i}from"./auth.js";import{t as a}from"./back-link.js";import{n as o,r as s,t as c}from"./upload-button.js";import{r as l}from"./s3.js";import{N as u,ot as d}from"./index.js";import{t as f}from"./page-heading.js";var p=t(),m=e();function h(){let e=(0,p.c)(31),{bucket:t}=u.useParams(),h;e[0]===t?h=e[1]:(h=d(t),e[0]=t,e[1]=h);let{data:g}=r(h),_=l(),v;e[2]===g.Contents?v=e[3]:(v=g.Contents??[],e[2]=g.Contents,e[3]=v);let y=v,b;e[4]===g.CommonPrefixes?b=e[5]:(b=g.CommonPrefixes??[],e[4]=g.CommonPrefixes,e[5]=b);let x=b,S;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,m.jsx)(a,{to:`/s3/ls`,children:`Back to buckets`}),e[6]=S):S=e[6];let C;e[7]!==t||e[8]!==_.isPending||e[9]!==_.mutateAsync?(C=(0,m.jsx)(c,{bucket:t,isPending:_.isPending,onUpload:_.mutateAsync}),e[7]=t,e[8]=_.isPending,e[9]=_.mutateAsync,e[10]=C):C=e[10];let w;e[11]!==t||e[12]!==C?(w=(0,m.jsx)(f,{actions:C,title:t}),e[11]=t,e[12]=C,e[13]=w):w=e[13];let T;e[14]===_.error?T=e[15]:(T=_.error&&(0,m.jsx)(n,{error:_.error,msg:`Failed to upload object`}),e[14]=_.error,e[15]=T);let E;e[16]!==t||e[17]!==x?(E=x.length>0&&(0,m.jsxs)(`div`,{className:`mb-6`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,m.jsx)(`div`,{className:`space-y-2`,children:x.map(e=>e.Prefix?(0,m.jsx)(s,{bucketName:t,folderName:i(e.Prefix),fullPrefix:e.Prefix},e.Prefix):null)})]}),e[16]=t,e[17]=x,e[18]=E):E=e[18];let D;e[19]!==t||e[20]!==y?(D=y.length>0&&(0,m.jsxs)(`div`,{className:`space-y-2`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),y.map(e=>e.Key?(0,m.jsx)(o,{bucketName:t,displayName:e.Key,fullKey:e.Key,object:e},e.Key):null)]}),e[19]=t,e[20]=y,e[21]=D):D=e[21];let O;e[22]!==x.length||e[23]!==y.length?(O=y.length===0&&x.length===0&&(0,m.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this bucket.`}),e[22]=x.length,e[23]=y.length,e[24]=O):O=e[24];let k;return e[25]!==w||e[26]!==T||e[27]!==E||e[28]!==D||e[29]!==O?(k=(0,m.jsxs)(m.Fragment,{children:[S,w,T,E,D,O]}),e[25]=w,e[26]=T,e[27]=E,e[28]=D,e[29]=O,e[30]=k):k=e[30],k}export{h as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js b/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js index eef99656c..b7beea2fd 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useQuery.js";import{t as o}from"./useSuspenseQuery.js";import{vr as s}from"./awsClient.js";import{Vt as c}from"./auth.js";import{t as l}from"./back-link.js";import{t as u}from"./cli-command-panel.js";import{t as d}from"./trash-2.js";import{t as f}from"./button.js";import{S as p,_ as m,a as h,b as g,d as _,f as v,g as y,h as b,l as x,m as S,n as C,o as w,r as T,s as E,t as D,u as O,v as k,x as A,y as j}from"./eks.js";import{C as M,D as N,E as P,Ir as F,M as I,Nr as L,Nt as R,O as z,Rn as B,T as V,_ as H,j as ee,k as te,rt as ne,w as re}from"./index.js";import{i as U,t as ie}from"./zod.js";import{t as ae}from"./page-heading.js";import{a as W,r as G,t as K}from"./field.js";import{i as oe,l as q,n as se,o as ce,r as le,s as ue,t as J}from"./alert-dialog.js";import{t as de}from"./delete-confirmation-dialog.js";import{n as Y,t as X}from"./detail-row.js";import{t as fe}from"./textarea.js";import{i as pe,n as me,r as he,t as ge}from"./tabs.js";import{t as _e}from"./badge.js";var ve=L(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),ye=L(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Z=r(),Q=t(n(),1),$=e();function be(e){return e?.split(`/`).pop()??e??``}function xe(e){let t=(0,Z.c)(55),{clusterName:n,principalArn:r,onDelete:i}=e,o;t[0]!==n||t[1]!==r?(o=re(n,r),t[0]=n,t[1]=r,t[2]=o):o=t[2];let{data:s}=a(o),c;t[3]!==n||t[4]!==r?(c=z(n,r),t[3]=n,t[4]=r,t[5]=c):c=t[5];let{data:l}=a(c),u=O(),p=j(),[m,h]=(0,Q.useState)(D[0].arn),g=s?.accessEntry,_;t[6]===l?.associatedAccessPolicies?_=t[7]:(_=l?.associatedAccessPolicies??[],t[6]=l?.associatedAccessPolicies,t[7]=_);let v=_,y;t[8]===r?y=t[9]:(y=(0,$.jsx)(`span`,{className:`truncate font-mono text-xs`,children:r}),t[8]=r,t[9]=y);let b;t[10]!==i||t[11]!==r?(b=()=>i(r),t[10]=i,t[11]=r,t[12]=b):b=t[12];let x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(d,{className:`size-4`}),t[13]=x):x=t[13];let S;t[14]===b?S=t[15]:(S=(0,$.jsx)(f,{onClick:b,size:`icon`,variant:`ghost`,children:x}),t[14]=b,t[15]=S);let C;t[16]!==y||t[17]!==S?(C=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[y,S]})}),t[16]=y,t[17]=S,t[18]=C):C=t[18];let w=g?.type,T;t[19]===w?T=t[20]:(T=(0,$.jsx)(X,{label:`Type`,value:w}),t[19]=w,t[20]=T);let E;t[21]===g?E=t[22]:(E=g?.kubernetesGroups?.length?g.kubernetesGroups.join(`, `):`—`,t[21]=g,t[22]=E);let k;t[23]===E?k=t[24]:(k=(0,$.jsx)(X,{label:`Kubernetes groups`,value:E}),t[23]=E,t[24]=k);let A;t[25]!==v||t[26]!==n||t[27]!==p||t[28]!==r?(A=v.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:v.map(e=>(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{children:be(e.policyArn)}),(0,$.jsx)(f,{onClick:()=>p.mutate({clusterName:n,principalArn:r,policyArn:e.policyArn??``}),size:`sm`,variant:`ghost`,children:`Remove`})]},e.policyArn))}):`—`,t[25]=v,t[26]=n,t[27]=p,t[28]=r,t[29]=A):A=t[29];let M;t[30]===A?M=t[31]:(M=(0,$.jsx)(X,{label:`Access policies`,value:A}),t[30]=A,t[31]=M);let N;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(N=e=>h(e.target.value),t[32]=N):N=t[32];let P;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(P=D.map(Se),t[33]=P):P=t[33];let F;t[34]===m?F=t[35]:(F=(0,$.jsx)(`select`,{"aria-label":`Access policy`,className:`h-7 flex-1 rounded-md border border-input bg-input/20 px-2 text-sm`,onChange:N,value:m,children:P}),t[34]=m,t[35]=F);let I;t[36]!==u||t[37]!==n||t[38]!==m||t[39]!==r?(I=()=>u.mutate({clusterName:n,principalArn:r,policyArn:m,accessScopeType:`cluster`}),t[36]=u,t[37]=n,t[38]=m,t[39]=r,t[40]=I):I=t[40];let L;t[41]!==u.isPending||t[42]!==I?(L=(0,$.jsx)(f,{disabled:u.isPending,onClick:I,size:`sm`,children:`Associate`}),t[41]=u.isPending,t[42]=I,t[43]=L):L=t[43];let R;t[44]!==F||t[45]!==L?(R=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 pt-2`,children:[F,L]}),t[44]=F,t[45]=L,t[46]=R):R=t[46];let B;t[47]!==T||t[48]!==k||t[49]!==M||t[50]!==R?(B=(0,$.jsxs)(Y.Content,{children:[T,k,M,R]}),t[47]=T,t[48]=k,t[49]=M,t[50]=R,t[51]=B):B=t[51];let V;return t[52]!==B||t[53]!==C?(V=(0,$.jsxs)(Y,{children:[C,B]}),t[52]=B,t[53]=C,t[54]=V):V=t[54],V}function Se(e){return(0,$.jsx)(`option`,{value:e.arn,children:e.name},e.arn)}function Ce(e){let t=(0,Z.c)(41),{clusterName:n,open:r,onOpenChange:i}=e,a=_(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={resolver:ie(w),defaultValues:{principalArn:``,kubernetesGroups:``}},t[0]=o):o=t[0];let{formState:s,handleSubmit:c,register:l,reset:u}=U(o),{errors:d}=s,f;t[1]!==n||t[2]!==a||t[3]!==i||t[4]!==u?(f=async e=>{await a.mutateAsync({clusterName:n,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups.split(`,`).map(we).filter(Boolean)}),u(),i(!1)},t[1]=n,t[2]=a,t[3]=i,t[4]=u,t[5]=f):f=t[5];let p=f,m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(ue,{children:(0,$.jsx)(q,{children:`Add access entry`})}),t[6]=m):m=t[6];let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ae-principal`,children:`IAM principal ARN`})}),t[7]=h):h=t[7];let g=!!d.principalArn,v;t[8]===l?v=t[9]:(v=l(`principalArn`),t[8]=l,t[9]=v);let y;t[10]!==g||t[11]!==v?(y=(0,$.jsx)(B,{"aria-invalid":g,id:`ae-principal`,placeholder:`arn:aws:iam::000000000000:role/my-role`,...v}),t[10]=g,t[11]=v,t[12]=y):y=t[12];let b;t[13]===d.principalArn?b=t[14]:(b=(0,$.jsx)(G,{errors:[d.principalArn]}),t[13]=d.principalArn,t[14]=b);let x;t[15]!==y||t[16]!==b?(x=(0,$.jsxs)(K,{children:[h,y,b]}),t[15]=y,t[16]=b,t[17]=x):x=t[17];let S;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ae-groups`,children:`Kubernetes groups`})}),t[18]=S):S=t[18];let C;t[19]===l?C=t[20]:(C=l(`kubernetesGroups`),t[19]=l,t[20]=C);let T;t[21]===C?T=t[22]:(T=(0,$.jsxs)(K,{children:[S,(0,$.jsx)(B,{id:`ae-groups`,placeholder:`system:masters`,...C})]}),t[21]=C,t[22]=T);let E;t[23]!==x||t[24]!==T?(E=(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-access-entry-form`,children:[x,T]}),t[23]=x,t[24]=T,t[25]=E):E=t[25];let D;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(le,{children:`Cancel`}),t[26]=D):D=t[26];let O;t[27]!==c||t[28]!==p?(O=e=>{e.preventDefault(),c(p)()},t[27]=c,t[28]=p,t[29]=O):O=t[29];let k=a.isPending?`Creating…`:`Create`,A;t[30]!==a.isPending||t[31]!==O||t[32]!==k?(A=(0,$.jsxs)(ce,{children:[D,(0,$.jsx)(se,{disabled:a.isPending,onClick:O,children:k})]}),t[30]=a.isPending,t[31]=O,t[32]=k,t[33]=A):A=t[33];let j;t[34]!==E||t[35]!==A?(j=(0,$.jsxs)(oe,{children:[m,E,A]}),t[34]=E,t[35]=A,t[36]=j):j=t[36];let M;return t[37]!==i||t[38]!==r||t[39]!==j?(M=(0,$.jsx)(J,{onOpenChange:i,open:r,children:j}),t[37]=i,t[38]=r,t[39]=j,t[40]=M):M=t[40],M}function we(e){return e.trim()}function Te(e){let t=(0,Z.c)(25),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=M(n),t[0]=n,t[1]=r);let{data:i}=o(r),a=b(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(),d;t[2]===i.accessEntries?d=t[3]:(d=i.accessEntries??[],t[2]=i.accessEntries,t[3]=d);let p=d,m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(f,{onClick:()=>c(!0),size:`sm`,children:`Add access entry`})}),t[4]=m):m=t[4];let h;t[5]!==n||t[6]!==p?(h=p.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:p.map(e=>(0,$.jsx)(xe,{clusterName:n,onDelete:u,principalArn:e},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No access entries.`}),t[5]=n,t[6]=p,t[7]=h):h=t[7];let g;t[8]!==n||t[9]!==s?(g=(0,$.jsx)(Ce,{clusterName:n,onOpenChange:c,open:s}),t[8]=n,t[9]=s,t[10]=g):g=t[10];let _=`Delete access entry for "${l??``}"?`,v;t[11]!==n||t[12]!==a||t[13]!==l?(v=()=>{l&&a.mutate({clusterName:n,principalArn:l},{onSuccess:()=>u(void 0)})},t[11]=n,t[12]=a,t[13]=l,t[14]=v):v=t[14];let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>!e&&u(void 0),t[15]=y):y=t[15];let x=l!==void 0,S;t[16]!==a.isPending||t[17]!==_||t[18]!==v||t[19]!==x?(S=(0,$.jsx)(de,{description:_,isPending:a.isPending,onConfirm:v,onOpenChange:y,open:x,title:`Delete access entry`}),t[16]=a.isPending,t[17]=_,t[18]=v,t[19]=x,t[20]=S):S=t[20];let C;return t[21]!==S||t[22]!==h||t[23]!==g?(C=(0,$.jsxs)($.Fragment,{children:[m,h,g,S]}),t[21]=S,t[22]=h,t[23]=g,t[24]=C):C=t[24],C}var Ee=new Set([`CREATING`,`UPDATING`,`DELETING`]),De=5e3,Oe=`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`;function ke(e){if(e.trim()===``)return!0;try{return JSON.parse(e),!0}catch{return!1}}function Ae({clusterName:e,catalog:t,installed:n,open:r,onOpenChange:i}){let a=v(),o=t.filter(e=>!n.includes(e.addonName??``)),{formState:{errors:s},handleSubmit:c,register:l,reset:u,setValue:d,watch:f}=U({resolver:ie(E),defaultValues:{addonName:``,addonVersion:``,serviceAccountRoleArn:``,configurationValues:``}}),p=f(`addonName`),m=f(`addonVersion`),h=t.find(e=>e.addonName===p)?.addonVersions??[],g=h.find(e=>e.addonVersion===m)?.requiresIamPermissions??!1,_=e=>{let n=t.find(t=>t.addonName===e)?.addonVersions?.[0]?.addonVersion??``;d(`addonName`,e,{shouldValidate:!0}),d(`addonVersion`,n,{shouldValidate:!0})},y=async t=>{await a.mutateAsync({clusterName:e,addonName:t.addonName,addonVersion:t.addonVersion||void 0,serviceAccountRoleArn:t.serviceAccountRoleArn.trim()||void 0,configurationValues:t.configurationValues.trim()||void 0}),u(),i(!1)};return(0,$.jsx)(J,{onOpenChange:i,open:r,children:(0,$.jsxs)(oe,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(ue,{children:(0,$.jsx)(q,{children:`Add add-on`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-addon-form`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`addon-name`,children:`Add-on`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!s.addonName,className:Oe,id:`addon-name`,onChange:e=>_(e.target.value),value:p,children:[(0,$.jsx)(`option`,{value:``,children:`Select add-on`}),o.map(e=>(0,$.jsx)(`option`,{value:e.addonName??``,children:e.addonName},e.addonName))]}),(0,$.jsx)(G,{errors:[s.addonName]})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`addon-version`,children:`Version`})}),(0,$.jsx)(`select`,{"aria-invalid":!!s.addonVersion,className:Oe,disabled:h.length===0,id:`addon-version`,onChange:e=>d(`addonVersion`,e.target.value,{shouldValidate:!0}),value:m,children:h.map((e,t)=>(0,$.jsxs)(`option`,{value:e.addonVersion??``,children:[e.addonVersion,t===0?` (latest)`:``]},e.addonVersion))}),(0,$.jsx)(G,{errors:[s.addonVersion]})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`addon-role`,children:`Service account IAM role ARN`})}),(0,$.jsx)(B,{id:`addon-role`,placeholder:`arn:aws:iam::…:role/…`,...l(`serviceAccountRoleArn`)}),g&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This add-on needs IAM permissions — provide an IRSA role ARN.`})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`addon-config`,children:`Configuration values (JSON)`})}),(0,$.jsx)(fe,{"aria-invalid":!!s.configurationValues,id:`addon-config`,placeholder:`{"replicaCount": 2}`,rows:4,...l(`configurationValues`)}),(0,$.jsx)(G,{errors:[s.configurationValues]})]})]}),(0,$.jsxs)(ce,{children:[(0,$.jsx)(le,{children:`Cancel`}),(0,$.jsx)(se,{disabled:a.isPending,onClick:e=>{e.preventDefault(),c(y)()},children:a.isPending?`Adding…`:`Add`})]})]})})}function je(e){let t=(0,Z.c)(54),{clusterName:n,addonName:r,current:i,versions:a,open:o,onOpenChange:s}=e,c=A(),[l,u]=(0,Q.useState)(i.addonVersion??``),[d,f]=(0,Q.useState)(i.serviceAccountRoleArn??``),[p,m]=(0,Q.useState)(i.configurationValues??``),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.addonVersion||t[1]!==i.configurationValues||t[2]!==i.serviceAccountRoleArn||t[3]!==o?(_=()=>{o&&(u(i.addonVersion??``),f(i.serviceAccountRoleArn??``),m(i.configurationValues??``),g(void 0))},v=[o,i.addonVersion,i.serviceAccountRoleArn,i.configurationValues],t[0]=i.addonVersion,t[1]=i.configurationValues,t[2]=i.serviceAccountRoleArn,t[3]=o,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==r||t[7]!==n||t[8]!==p||t[9]!==s||t[10]!==d||t[11]!==c||t[12]!==l?(y=()=>{if(!ke(p)){g(`Configuration must be valid JSON`);return}c.mutate({clusterName:n,addonName:r,addonVersion:l||void 0,serviceAccountRoleArn:d.trim()||void 0,configurationValues:p.trim()||void 0},{onSuccess:()=>s(!1)})},t[6]=r,t[7]=n,t[8]=p,t[9]=s,t[10]=d,t[11]=c,t[12]=l,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(ue,{children:(0,$.jsxs)(q,{children:[`Update `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-version`,children:`Version`})}),t[16]=S):S=t[16];let C=a.length===0,w;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>u(e.target.value),t[17]=w):w=t[17];let T;t[18]===a?T=t[19]:(T=a.map(Me),t[18]=a,t[19]=T);let E;t[20]!==C||t[21]!==T||t[22]!==l?(E=(0,$.jsxs)(K,{children:[S,(0,$.jsx)(`select`,{className:Oe,disabled:C,id:`update-addon-version`,onChange:w,value:l,children:T})]}),t[20]=C,t[21]=T,t[22]=l,t[23]=E):E=t[23];let D;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-role`,children:`Service account IAM role ARN`})}),t[24]=D):D=t[24];let O;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>f(e.target.value),t[25]=O):O=t[25];let k;t[26]===d?k=t[27]:(k=(0,$.jsxs)(K,{children:[D,(0,$.jsx)(B,{id:`update-addon-role`,onChange:O,placeholder:`arn:aws:iam::…:role/…`,value:d})]}),t[26]=d,t[27]=k);let j;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-config`,children:`Configuration values (JSON)`})}),t[28]=j):j=t[28];let M;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(M=e=>m(e.target.value),t[29]=M):M=t[29];let N;t[30]===p?N=t[31]:(N=(0,$.jsxs)(K,{children:[j,(0,$.jsx)(fe,{id:`update-addon-config`,onChange:M,rows:4,value:p})]}),t[30]=p,t[31]=N);let P;t[32]!==k||t[33]!==N||t[34]!==E?(P=(0,$.jsxs)(`div`,{className:`space-y-4`,children:[E,k,N]}),t[32]=k,t[33]=N,t[34]=E,t[35]=P):P=t[35];let F;t[36]===h?F=t[37]:(F=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[36]=h,t[37]=F);let I;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,$.jsx)(le,{children:`Cancel`}),t[38]=I):I=t[38];let L;t[39]===b?L=t[40]:(L=e=>{e.preventDefault(),b()},t[39]=b,t[40]=L);let R=c.isPending?`Updating…`:`Update`,z;t[41]!==L||t[42]!==R||t[43]!==c.isPending?(z=(0,$.jsxs)(ce,{children:[I,(0,$.jsx)(se,{disabled:c.isPending,onClick:L,children:R})]}),t[41]=L,t[42]=R,t[43]=c.isPending,t[44]=z):z=t[44];let V;t[45]!==P||t[46]!==F||t[47]!==z||t[48]!==x?(V=(0,$.jsxs)(oe,{className:`max-h-[85vh] overflow-y-auto`,children:[x,P,F,z]}),t[45]=P,t[46]=F,t[47]=z,t[48]=x,t[49]=V):V=t[49];let H;return t[50]!==s||t[51]!==o||t[52]!==V?(H=(0,$.jsx)(J,{onOpenChange:s,open:o,children:V}),t[50]=s,t[51]=o,t[52]=V,t[53]=H):H=t[53],H}function Me(e){return(0,$.jsx)(`option`,{value:e,children:e},e)}function Ne(e){let t=(0,Z.c)(53),{clusterName:n,addonName:r,catalog:i,onDelete:o}=e,s;t[0]!==r||t[1]!==n?(s=V(n,r),t[0]=r,t[1]=n,t[2]=s):s=t[2];let c;t[3]===s?c=t[4]:(c={...s,refetchInterval:Fe},t[3]=s,t[4]=c);let{data:l}=a(c),[u,p]=(0,Q.useState)(!1),m=l?.addon,g=m?.health?.issues?.[0]?.message,_;t[5]!==r||t[6]!==i?(_=i.find(e=>e.addonName===r)?.addonVersions?.map(Pe).filter(Boolean)??[],t[5]=r,t[6]=i,t[7]=_):_=t[7];let v=_,y;t[8]===r?y=t[9]:(y=(0,$.jsx)(`span`,{children:r}),t[8]=r,t[9]=y);let b=m?.status,x;t[10]===b?x=t[11]:(x=h(b),t[10]=b,t[11]=x);let S=m?.status??`UNKNOWN`,C;t[12]!==x||t[13]!==S?(C=(0,$.jsx)(_e,{variant:x,children:S}),t[12]=x,t[13]=S,t[14]=C):C=t[14];let w;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>p(!0),t[15]=w):w=t[15];let T;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(f,{"aria-label":`Update add-on`,onClick:w,size:`icon`,variant:`ghost`,children:(0,$.jsx)(ve,{className:`size-4`})}),t[16]=T):T=t[16];let E;t[17]!==r||t[18]!==o?(E=()=>o(r),t[17]=r,t[18]=o,t[19]=E):E=t[19];let D;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(d,{className:`size-4`}),t[20]=D):D=t[20];let O;t[21]===E?O=t[22]:(O=(0,$.jsx)(f,{"aria-label":`Remove add-on`,onClick:E,size:`icon`,variant:`ghost`,children:D}),t[21]=E,t[22]=O);let k;t[23]!==O||t[24]!==C?(k=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[C,T,O]}),t[23]=O,t[24]=C,t[25]=k):k=t[25];let A;t[26]!==k||t[27]!==y?(A=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[y,k]})}),t[26]=k,t[27]=y,t[28]=A):A=t[28];let j=m?.addonVersion,M;t[29]===j?M=t[30]:(M=(0,$.jsx)(X,{label:`Version`,value:j}),t[29]=j,t[30]=M);let N=m?.serviceAccountRoleArn,P;t[31]===N?P=t[32]:(P=(0,$.jsx)(X,{label:`IRSA role`,value:N}),t[31]=N,t[32]=P);let F;t[33]===g?F=t[34]:(F=g&&(0,$.jsx)(X,{label:`Issue`,value:(0,$.jsx)(`span`,{className:`text-destructive`,children:g})}),t[33]=g,t[34]=F);let I;t[35]!==M||t[36]!==P||t[37]!==F?(I=(0,$.jsxs)(Y.Content,{children:[M,P,F]}),t[35]=M,t[36]=P,t[37]=F,t[38]=I):I=t[38];let L=m?.addonVersion,R=m?.serviceAccountRoleArn,z=m?.configurationValues,B;t[39]!==L||t[40]!==R||t[41]!==z?(B={addonVersion:L,serviceAccountRoleArn:R,configurationValues:z},t[39]=L,t[40]=R,t[41]=z,t[42]=B):B=t[42];let H;t[43]!==r||t[44]!==n||t[45]!==u||t[46]!==B||t[47]!==v?(H=(0,$.jsx)(je,{addonName:r,clusterName:n,current:B,onOpenChange:p,open:u,versions:v}),t[43]=r,t[44]=n,t[45]=u,t[46]=B,t[47]=v,t[48]=H):H=t[48];let ee;return t[49]!==A||t[50]!==I||t[51]!==H?(ee=(0,$.jsxs)(Y,{children:[A,I,H]}),t[49]=A,t[50]=I,t[51]=H,t[52]=ee):ee=t[52],ee}function Pe(e){return e.addonVersion??``}function Fe(e){return Ee.has(e.state.data?.addon?.status??``)?De:!1}function Ie(e){let t=(0,Z.c)(31),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=N(n),t[0]=n,t[1]=r);let{data:i}=o(r),{data:s}=a(P),c=y(),[l,u]=(0,Q.useState)(!1),[d,p]=(0,Q.useState)(),m;t[2]===i.addons?m=t[3]:(m=i.addons??[],t[2]=i.addons,t[3]=m);let h=m,g;t[4]===s?.addons?g=t[5]:(g=s?.addons??[],t[4]=s?.addons,t[5]=g);let _=g,v;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Add-on manifests are staged; activation completes when the cluster reports the workload ready.`}),t[6]=v):v=t[6];let b;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-4`,children:[v,(0,$.jsx)(f,{onClick:()=>u(!0),size:`sm`,children:`Add add-on`})]}),t[7]=b):b=t[7];let x;t[8]!==h||t[9]!==_||t[10]!==n?(x=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(Ne,{addonName:e,catalog:_,clusterName:n,onDelete:p},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No add-ons installed.`}),t[8]=h,t[9]=_,t[10]=n,t[11]=x):x=t[11];let S;t[12]!==h||t[13]!==_||t[14]!==n||t[15]!==l?(S=(0,$.jsx)(Ae,{catalog:_,clusterName:n,installed:h,onOpenChange:u,open:l}),t[12]=h,t[13]=_,t[14]=n,t[15]=l,t[16]=S):S=t[16];let C=`Remove add-on "${d??``}" from the cluster?`,w;t[17]!==n||t[18]!==c||t[19]!==d?(w=()=>{d&&c.mutate({clusterName:n,addonName:d},{onSuccess:()=>p(void 0)})},t[17]=n,t[18]=c,t[19]=d,t[20]=w):w=t[20];let T;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(T=e=>!e&&p(void 0),t[21]=T):T=t[21];let E=d!==void 0,D;t[22]!==c.isPending||t[23]!==E||t[24]!==C||t[25]!==w?(D=(0,$.jsx)(de,{confirmLabel:`Remove`,description:C,isPending:c.isPending,onConfirm:w,onOpenChange:T,open:E,pendingLabel:`Removing…`,title:`Remove add-on`}),t[22]=c.isPending,t[23]=E,t[24]=C,t[25]=w,t[26]=D):D=t[26];let O;return t[27]!==D||t[28]!==x||t[29]!==S?(O=(0,$.jsxs)($.Fragment,{children:[b,x,S,D]}),t[27]=D,t[28]=x,t[29]=S,t[30]=O):O=t[30],O}function Le(e){let t=(0,Z.c)(6),{to:n,id:r}=e,i;t[0]===r?i=t[1]:(i={id:r},t[0]=r,t[1]=i);let a;return t[2]!==r||t[3]!==i||t[4]!==n?(a=(0,$.jsx)(s,{className:`font-mono text-primary underline-offset-2 hover:underline`,params:i,to:n,children:r}),t[2]=r,t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function Re(e){let t=(0,Z.c)(45),{cluster:n}=e,r=n?.resourcesVpcConfig,i;t[0]===r?.subnetIds?i=t[1]:(i=r?.subnetIds??[],t[0]=r?.subnetIds,t[1]=i);let a=i,o;t[2]===r?.securityGroupIds?o=t[3]:(o=r?.securityGroupIds??[],t[2]=r?.securityGroupIds,t[3]=o);let s=o,c;t[4]===r?.publicAccessCidrs?c=t[5]:(c=r?.publicAccessCidrs??[],t[4]=r?.publicAccessCidrs,t[5]=c);let l=c,u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(Y.Header,{children:`VPC`}),t[6]=u):u=t[6];let d;t[7]===r?d=t[8]:(d=r?.vpcId?(0,$.jsx)(Le,{id:r.vpcId,to:`/ec2/describe-vpcs/$id`}):void 0,t[7]=r,t[8]=d);let f;t[9]===d?f=t[10]:(f=(0,$.jsx)(X,{label:`VPC`,value:d}),t[9]=d,t[10]=f);let p=n?.endpoint,m;t[11]===p?m=t[12]:(m=(0,$.jsx)(X,{label:`API server endpoint`,value:p}),t[11]=p,t[12]=m);let h=r?.endpointPublicAccess?`Enabled`:`Disabled`,g;t[13]===h?g=t[14]:(g=(0,$.jsx)(X,{label:`Public access`,value:h}),t[13]=h,t[14]=g);let _=r?.endpointPrivateAccess?`Enabled`:`Disabled`,v;t[15]===_?v=t[16]:(v=(0,$.jsx)(X,{label:`Private access`,value:_}),t[15]=_,t[16]=v);let y;t[17]!==l||t[18]!==r?.endpointPublicAccess?(y=r?.endpointPublicAccess&&(0,$.jsx)(X,{label:`Public access CIDRs`,value:l.length>0?(0,$.jsx)(`div`,{className:`space-y-1 font-mono text-xs`,children:l.map(Ve)}):`Any (0.0.0.0/0)`}),t[17]=l,t[18]=r?.endpointPublicAccess,t[19]=y):y=t[19];let b;t[20]!==g||t[21]!==v||t[22]!==y||t[23]!==f||t[24]!==m?(b=(0,$.jsxs)(Y,{children:[u,(0,$.jsxs)(Y.Content,{children:[f,m,g,v,y]})]}),t[20]=g,t[21]=v,t[22]=y,t[23]=f,t[24]=m,t[25]=b):b=t[25];let x;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(Y.Header,{children:`Subnets`}),t[26]=x):x=t[26];let S;t[27]===a?S=t[28]:(S=(0,$.jsxs)(Y,{children:[x,(0,$.jsx)(Y.Content,{children:a.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:a.map(Be)}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets.`})})]}),t[27]=a,t[28]=S);let C;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(Y.Header,{children:`Security groups`}),t[29]=C):C=t[29];let w;t[30]===r?w=t[31]:(w=r?.clusterSecurityGroupId?(0,$.jsx)(Le,{id:r.clusterSecurityGroupId,to:`/ec2/describe-security-groups/$id`}):void 0,t[30]=r,t[31]=w);let T;t[32]===w?T=t[33]:(T=(0,$.jsx)(X,{label:`Cluster security group`,value:w}),t[32]=w,t[33]=T);let E;t[34]===s?E=t[35]:(E=s.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:s.map(ze)}):`—`,t[34]=s,t[35]=E);let D;t[36]===E?D=t[37]:(D=(0,$.jsx)(X,{label:`Additional security groups`,value:E}),t[36]=E,t[37]=D);let O;t[38]!==T||t[39]!==D?(O=(0,$.jsxs)(Y,{children:[C,(0,$.jsxs)(Y.Content,{children:[T,D]})]}),t[38]=T,t[39]=D,t[40]=O):O=t[40];let k;return t[41]!==b||t[42]!==S||t[43]!==O?(k=(0,$.jsxs)($.Fragment,{children:[b,S,O]}),t[41]=b,t[42]=S,t[43]=O,t[44]=k):k=t[44],k}function ze(e){return(0,$.jsx)(Le,{id:e,to:`/ec2/describe-security-groups/$id`},e)}function Be(e){return(0,$.jsx)(Le,{id:e,to:`/ec2/describe-subnets/$id`},e)}function Ve(e){return(0,$.jsx)(`div`,{children:e},e)}function He(e){let t=(0,Z.c)(50),{clusterName:n,nodegroupName:r,current:i,open:a,onOpenChange:o}=e,s=g(),[c,l]=(0,Q.useState)(i.minSize??0),[u,d]=(0,Q.useState)(i.desiredSize??0),[f,p]=(0,Q.useState)(i.maxSize??0),[m,h]=(0,Q.useState)(),_,v;t[0]!==i.desiredSize||t[1]!==i.maxSize||t[2]!==i.minSize||t[3]!==a?(_=()=>{a&&(l(i.minSize??0),d(i.desiredSize??0),p(i.maxSize??0),h(void 0))},v=[a,i.minSize,i.desiredSize,i.maxSize],t[0]=i.desiredSize,t[1]=i.maxSize,t[2]=i.minSize,t[3]=a,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==n||t[7]!==u||t[8]!==f||t[9]!==c||t[10]!==r||t[11]!==o||t[12]!==s?(y=()=>{if(!(c<=u&&u<=f)){h(`Sizes must satisfy min ≤ desired ≤ max`);return}s.mutate({clusterName:n,nodegroupName:r,minSize:c,desiredSize:u,maxSize:f},{onSuccess:()=>o(!1)})},t[6]=n,t[7]=u,t[8]=f,t[9]=c,t[10]=r,t[11]=o,t[12]=s,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(ue,{children:(0,$.jsxs)(q,{children:[`Scale `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`scale-min`,children:`Min`})}),t[16]=S):S=t[16];let C;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>l(Number(e.target.value)),t[17]=C):C=t[17];let w;t[18]===c?w=t[19]:(w=(0,$.jsxs)(K,{children:[S,(0,$.jsx)(B,{id:`scale-min`,onChange:C,type:`number`,value:c})]}),t[18]=c,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`scale-desired`,children:`Desired`})}),t[20]=T):T=t[20];let E;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>d(Number(e.target.value)),t[21]=E):E=t[21];let D;t[22]===u?D=t[23]:(D=(0,$.jsxs)(K,{children:[T,(0,$.jsx)(B,{id:`scale-desired`,onChange:E,type:`number`,value:u})]}),t[22]=u,t[23]=D);let O;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`scale-max`,children:`Max`})}),t[24]=O):O=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>p(Number(e.target.value)),t[25]=k):k=t[25];let A;t[26]===f?A=t[27]:(A=(0,$.jsxs)(K,{children:[O,(0,$.jsx)(B,{id:`scale-max`,onChange:k,type:`number`,value:f})]}),t[26]=f,t[27]=A);let j;t[28]!==D||t[29]!==A||t[30]!==w?(j=(0,$.jsxs)(`div`,{className:`grid grid-cols-3 gap-3`,children:[w,D,A]}),t[28]=D,t[29]=A,t[30]=w,t[31]=j):j=t[31];let M;t[32]===m?M=t[33]:(M=m&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:m}),t[32]=m,t[33]=M);let N;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(le,{children:`Cancel`}),t[34]=N):N=t[34];let P;t[35]===b?P=t[36]:(P=e=>{e.preventDefault(),b()},t[35]=b,t[36]=P);let F=s.isPending?`Scaling…`:`Scale`,I;t[37]!==s.isPending||t[38]!==P||t[39]!==F?(I=(0,$.jsxs)(ce,{children:[N,(0,$.jsx)(se,{disabled:s.isPending,onClick:P,children:F})]}),t[37]=s.isPending,t[38]=P,t[39]=F,t[40]=I):I=t[40];let L;t[41]!==j||t[42]!==M||t[43]!==I||t[44]!==x?(L=(0,$.jsxs)(oe,{children:[x,j,M,I]}),t[41]=j,t[42]=M,t[43]=I,t[44]=x,t[45]=L):L=t[45];let R;return t[46]!==o||t[47]!==a||t[48]!==L?(R=(0,$.jsx)(J,{onOpenChange:o,open:a,children:L}),t[46]=o,t[47]=a,t[48]=L,t[49]=R):R=t[49],R}function Ue(e){let t=(0,Z.c)(64),{clusterName:n,clusterVersion:r,nodegroupName:i,onDelete:o}=e,s;t[0]!==n||t[1]!==i?(s=ee(n,i),t[0]=n,t[1]=i,t[2]=s):s=t[2];let{data:c}=a(s),l=p(),u=c?.nodegroup,m=u?.scalingConfig,[h,g]=(0,Q.useState)(!1),[_,v]=(0,Q.useState)(!1),y=!!r&&!!u?.version&&u.version!==r,b;t[3]===i?b=t[4]:(b=(0,$.jsx)(`span`,{children:i}),t[3]=i,t[4]=b);let x;t[5]===y?x=t[6]:(x=y&&(0,$.jsx)(f,{"aria-label":`Update node group version`,onClick:()=>v(!0),size:`icon`,variant:`ghost`,children:(0,$.jsx)(ve,{className:`size-4`})}),t[5]=y,t[6]=x);let S;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>g(!0),t[7]=S):S=t[7];let C;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(f,{"aria-label":`Scale node group`,onClick:S,size:`icon`,variant:`ghost`,children:(0,$.jsx)(ye,{className:`size-4`})}),t[8]=C):C=t[8];let w;t[9]!==i||t[10]!==o?(w=()=>o(i),t[9]=i,t[10]=o,t[11]=w):w=t[11];let T;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(d,{className:`size-4`}),t[12]=T):T=t[12];let E;t[13]===w?E=t[14]:(E=(0,$.jsx)(f,{"aria-label":`Delete node group`,onClick:w,size:`icon`,variant:`ghost`,children:T}),t[13]=w,t[14]=E);let D;t[15]!==x||t[16]!==E?(D=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[x,C,E]}),t[15]=x,t[16]=E,t[17]=D):D=t[17];let O;t[18]!==b||t[19]!==D?(O=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[b,D]})}),t[18]=b,t[19]=D,t[20]=O):O=t[20];let k=u?.status,A;t[21]===k?A=t[22]:(A=(0,$.jsx)(X,{label:`Status`,value:k}),t[21]=k,t[22]=A);let j=y?`${u?.version} (cluster on ${r})`:u?.version,M;t[23]===j?M=t[24]:(M=(0,$.jsx)(X,{label:`Kubernetes version`,value:j}),t[23]=j,t[24]=M);let N;t[25]===u?.instanceTypes?N=t[26]:(N=u?.instanceTypes?.join(`, `),t[25]=u?.instanceTypes,t[26]=N);let P;t[27]===N?P=t[28]:(P=(0,$.jsx)(X,{label:`Instance types`,value:N}),t[27]=N,t[28]=P);let F=u?.amiType,I;t[29]===F?I=t[30]:(I=(0,$.jsx)(X,{label:`AMI type`,value:F}),t[29]=F,t[30]=I);let L=u?.capacityType,R;t[31]===L?R=t[32]:(R=(0,$.jsx)(X,{label:`Capacity type`,value:L}),t[31]=L,t[32]=R);let z=m?`${m.minSize} / ${m.desiredSize} / ${m.maxSize}`:void 0,B;t[33]===z?B=t[34]:(B=(0,$.jsx)(X,{label:`Scaling (min / desired / max)`,value:z}),t[33]=z,t[34]=B);let V;t[35]!==A||t[36]!==M||t[37]!==P||t[38]!==I||t[39]!==R||t[40]!==B?(V=(0,$.jsxs)(Y.Content,{children:[A,M,P,I,R,B]}),t[35]=A,t[36]=M,t[37]=P,t[38]=I,t[39]=R,t[40]=B,t[41]=V):V=t[41];let H;t[42]===m?H=t[43]:(H=m??{},t[42]=m,t[43]=H);let te;t[44]!==n||t[45]!==i||t[46]!==h||t[47]!==H?(te=(0,$.jsx)(He,{clusterName:n,current:H,nodegroupName:i,onOpenChange:g,open:h}),t[44]=n,t[45]=i,t[46]=h,t[47]=H,t[48]=te):te=t[48];let ne=`Update node group "${i}" from ${u?.version} to ${r}? Nodes are replaced in a rolling update.`,re;t[49]!==n||t[50]!==r||t[51]!==i||t[52]!==l?(re=()=>l.mutate({clusterName:n,nodegroupName:i,version:r},{onSuccess:()=>v(!1)}),t[49]=n,t[50]=r,t[51]=i,t[52]=l,t[53]=re):re=t[53];let U;t[54]!==_||t[55]!==ne||t[56]!==re||t[57]!==l.isPending?(U=(0,$.jsx)(de,{confirmLabel:`Update`,description:ne,isPending:l.isPending,onConfirm:re,onOpenChange:v,open:_,title:`Update node group version`}),t[54]=_,t[55]=ne,t[56]=re,t[57]=l.isPending,t[58]=U):U=t[58];let ie;return t[59]!==O||t[60]!==V||t[61]!==te||t[62]!==U?(ie=(0,$.jsxs)(Y,{children:[O,V,te,U]}),t[59]=O,t[60]=V,t[61]=te,t[62]=U,t[63]=ie):ie=t[63],ie}function We({clusterName:e,vpcId:t,open:n,onOpenChange:r}){let{data:i}=a(ne),{data:o}=a(R),s=S(),c=i?.Roles??[],l=(o?.Subnets??[]).filter(e=>e.VpcId===t),{formState:{errors:u},handleSubmit:d,register:f,reset:p,setValue:m,watch:h}=U({resolver:ie(x),defaultValues:{nodegroupName:``,nodeRole:``,subnetIds:[],instanceTypes:`t3.medium`,amiType:`AL2_x86_64`,capacityType:`ON_DEMAND`,diskSize:20,minSize:1,desiredSize:2,maxSize:3}}),g=h(`subnetIds`),_=e=>{m(`subnetIds`,g.includes(e)?g.filter(t=>t!==e):[...g,e],{shouldValidate:!0})},v=async t=>{await s.mutateAsync({clusterName:e,nodegroupName:t.nodegroupName,nodeRole:t.nodeRole,subnetIds:t.subnetIds,instanceTypes:t.instanceTypes.split(`,`).map(e=>e.trim()).filter(Boolean),amiType:t.amiType,capacityType:t.capacityType,diskSize:t.diskSize,minSize:t.minSize,desiredSize:t.desiredSize,maxSize:t.maxSize}),p(),r(!1)};return(0,$.jsx)(J,{onOpenChange:r,open:n,children:(0,$.jsxs)(oe,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(ue,{children:(0,$.jsx)(q,{children:`Add node group`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-nodegroup-form`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-name`,children:`Name`})}),(0,$.jsx)(B,{"aria-invalid":!!u.nodegroupName,id:`ng-name`,placeholder:`my-nodegroup`,...f(`nodegroupName`)}),(0,$.jsx)(G,{errors:[u.nodegroupName]})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-role`,children:`Node IAM role`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!u.nodeRole,className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-role`,...f(`nodeRole`),children:[(0,$.jsx)(`option`,{value:``,children:`Select role`}),c.map(e=>(0,$.jsx)(`option`,{value:e.Arn??``,children:e.RoleName},e.Arn))]}),(0,$.jsx)(G,{errors:[u.nodeRole]})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:`Subnets`}),l.length===0?(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the cluster VPC.`}):(0,$.jsx)(`div`,{className:`space-y-1`,children:l.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:g.includes(e.SubnetId??``),onChange:()=>_(e.SubnetId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` · `,e.CidrBlock]})]},e.SubnetId))}),(0,$.jsx)(G,{errors:[u.subnetIds]})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-instance-types`,children:`Instance types`})}),(0,$.jsx)(B,{id:`ng-instance-types`,placeholder:`t3.medium, t3.large`,...f(`instanceTypes`)}),(0,$.jsx)(G,{errors:[u.instanceTypes]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-ami`,children:`AMI type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-ami`,...f(`amiType`),children:C.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-capacity`,children:`Capacity type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-capacity`,...f(`capacityType`),children:T.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-4 gap-3`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-disk`,children:`Disk (GB)`})}),(0,$.jsx)(B,{id:`ng-disk`,type:`number`,...f(`diskSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-min`,children:`Min`})}),(0,$.jsx)(B,{id:`ng-min`,type:`number`,...f(`minSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-desired`,children:`Desired`})}),(0,$.jsx)(B,{id:`ng-desired`,type:`number`,...f(`desiredSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-max`,children:`Max`})}),(0,$.jsx)(B,{id:`ng-max`,type:`number`,...f(`maxSize`,{valueAsNumber:!0})})]})]}),(0,$.jsx)(G,{errors:[u.desiredSize]})]}),(0,$.jsxs)(ce,{children:[(0,$.jsx)(le,{children:`Cancel`}),(0,$.jsx)(se,{disabled:s.isPending,onClick:e=>{e.preventDefault(),d(v)()},children:s.isPending?`Creating…`:`Create`})]})]})})}function Ge(e){let t=(0,Z.c)(27),{clusterName:n,clusterVersion:r,vpcId:i}=e,a;t[0]===n?a=t[1]:(a=I(n),t[0]=n,t[1]=a);let{data:s}=o(a),c=k(),[l,u]=(0,Q.useState)(!1),[d,p]=(0,Q.useState)(),m;t[2]===s.nodegroups?m=t[3]:(m=s.nodegroups??[],t[2]=s.nodegroups,t[3]=m);let h=m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(f,{onClick:()=>u(!0),size:`sm`,children:`Add node group`})}),t[4]=g):g=t[4];let _;t[5]!==n||t[6]!==r||t[7]!==h?(_=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(Ue,{clusterName:n,clusterVersion:r,nodegroupName:e,onDelete:p},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No node groups.`}),t[5]=n,t[6]=r,t[7]=h,t[8]=_):_=t[8];let v;t[9]!==n||t[10]!==l||t[11]!==i?(v=(0,$.jsx)(We,{clusterName:n,onOpenChange:u,open:l,vpcId:i}),t[9]=n,t[10]=l,t[11]=i,t[12]=v):v=t[12];let y=`Delete node group "${d??``}"? This terminates its nodes.`,b;t[13]!==n||t[14]!==c||t[15]!==d?(b=()=>{d&&c.mutate({clusterName:n,nodegroupName:d},{onSuccess:()=>p(void 0)})},t[13]=n,t[14]=c,t[15]=d,t[16]=b):b=t[16];let x;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>!e&&p(void 0),t[17]=x):x=t[17];let S=d!==void 0,C;t[18]!==c.isPending||t[19]!==y||t[20]!==b||t[21]!==S?(C=(0,$.jsx)(de,{description:y,isPending:c.isPending,onConfirm:b,onOpenChange:x,open:S,title:`Delete node group`}),t[18]=c.isPending,t[19]=y,t[20]=b,t[21]=S,t[22]=C):C=t[22];let w;return t[23]!==C||t[24]!==_||t[25]!==v?(w=(0,$.jsxs)($.Fragment,{children:[g,_,v,C]}),t[23]=C,t[24]=_,t[25]=v,t[26]=w):w=t[26],w}var Ke=`ap-southeast-2`;function qe(e){switch(e??``){case`ACTIVE`:return`default`;case`FAILED`:return`destructive`;default:return`secondary`}}function Je(e){let t=(0,Z.c)(89),{clusterName:n}=e,r=F(),[a,s]=(0,Q.useState)(!1),p;t[0]===n?p=t[1]:(p=te(n),t[0]=n,t[1]=p);let{data:h}=o(p),g=m(),_=h.cluster,v;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(v={type:`bin`,value:`aws eks update-kubeconfig`},t[2]=v):v=t[2];let y;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(y={type:`flag`,value:` --name `},t[3]=y):y=t[3];let b;t[4]===n?b=t[5]:(b={type:`value`,value:n},t[4]=n,t[5]=b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x={type:`flag`,value:` --region `},t[6]=x):x=t[6];let S;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(S={type:`value`,value:Ke},t[7]=S):S=t[7];let C;t[8]===b?C=t[9]:(C={label:`Configure kubectl`,parts:[v,y,b,x,S]},t[8]=b,t[9]=C);let w;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(w={label:`Verify access`,parts:[{type:`bin`,value:`kubectl get nodes`}]},t[10]=w):w=t[10];let T;t[11]===C?T=t[12]:(T=[C,w],t[11]=C,t[12]=T);let E=T,D;t[13]!==n||t[14]!==g||t[15]!==r?(D=function(){g.mutate(n,{onSuccess:()=>{r({to:`/eks/list-clusters`})}})},t[13]=n,t[14]=g,t[15]=r,t[16]=D):D=t[16];let O=D,k;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,$.jsx)(l,{to:`/eks/list-clusters`,children:`Clusters`}),t[17]=k):k=t[17];let A;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>s(!0),t[18]=A):A=t[18];let j;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsxs)(f,{onClick:A,size:`sm`,variant:`destructive`,children:[(0,$.jsx)(d,{className:`size-4`}),`Delete`]}),t[19]=j):j=t[19];let M=_?.status,N;t[20]===M?N=t[21]:(N=qe(M),t[20]=M,t[21]=N);let P=_?.status??`UNKNOWN`,I;t[22]!==N||t[23]!==P?(I=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[j,(0,$.jsx)(_e,{variant:N,children:P})]}),t[22]=N,t[23]=P,t[24]=I):I=t[24];let L;t[25]!==n||t[26]!==I?(L=(0,$.jsx)(ae,{actions:I,subtitle:`Cluster Details`,title:n}),t[25]=n,t[26]=I,t[27]=L):L=t[27];let R;t[28]!==g.error||t[29]!==g.isError?(R=g.isError&&(0,$.jsx)(i,{error:g.error instanceof Error?g.error:void 0,msg:`Failed to delete cluster.`}),t[28]=g.error,t[29]=g.isError,t[30]=R):R=t[30];let z;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsxs)(me,{children:[(0,$.jsx)(pe,{value:`overview`,children:`Overview`}),(0,$.jsx)(pe,{value:`compute`,children:`Compute`}),(0,$.jsx)(pe,{value:`addons`,children:`Add-ons`}),(0,$.jsx)(pe,{value:`access`,children:`Access`}),(0,$.jsx)(pe,{value:`networking`,children:`Networking`}),(0,$.jsx)(pe,{value:`connect`,children:`Connect`})]}),t[31]=z):z=t[31];let B;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,$.jsx)(Y.Header,{children:`Cluster`}),t[32]=B):B=t[32];let V=_?.arn,H;t[33]===V?H=t[34]:(H=(0,$.jsx)(X,{label:`ARN`,value:V}),t[33]=V,t[34]=H);let ee=_?.status,ne;t[35]===ee?ne=t[36]:(ne=(0,$.jsx)(X,{label:`Status`,value:ee}),t[35]=ee,t[36]=ne);let re=_?.version,U;t[37]===re?U=t[38]:(U=(0,$.jsx)(X,{label:`Kubernetes version`,value:re}),t[37]=re,t[38]=U);let ie=_?.platformVersion,W;t[39]===ie?W=t[40]:(W=(0,$.jsx)(X,{label:`Platform version`,value:ie}),t[39]=ie,t[40]=W);let G=_?.endpoint,K;t[41]===G?K=t[42]:(K=(0,$.jsx)(X,{label:`Endpoint`,value:G}),t[41]=G,t[42]=K);let oe=_?.identity?.oidc?.issuer,q;t[43]===oe?q=t[44]:(q=(0,$.jsx)(X,{label:`OIDC issuer`,value:oe}),t[43]=oe,t[44]=q);let se=_?.resourcesVpcConfig?.vpcId,ce;t[45]===se?ce=t[46]:(ce=(0,$.jsx)(X,{label:`VPC`,value:se}),t[45]=se,t[46]=ce);let le=_?.createdAt,ue;t[47]===le?ue=t[48]:(ue=c(le),t[47]=le,t[48]=ue);let J;t[49]===ue?J=t[50]:(J=(0,$.jsx)(X,{label:`Created at`,value:ue}),t[49]=ue,t[50]=J);let fe;t[51]!==H||t[52]!==ne||t[53]!==U||t[54]!==W||t[55]!==K||t[56]!==q||t[57]!==ce||t[58]!==J?(fe=(0,$.jsx)(he,{value:`overview`,children:(0,$.jsxs)(Y,{children:[B,(0,$.jsxs)(Y.Content,{children:[H,ne,U,W,K,q,ce,J]})]})}),t[51]=H,t[52]=ne,t[53]=U,t[54]=W,t[55]=K,t[56]=q,t[57]=ce,t[58]=J,t[59]=fe):fe=t[59];let ve=_?.version,ye=_?.resourcesVpcConfig?.vpcId,be;t[60]!==n||t[61]!==ve||t[62]!==ye?(be=(0,$.jsx)(he,{value:`compute`,children:(0,$.jsx)(Ge,{clusterName:n,clusterVersion:ve,vpcId:ye})}),t[60]=n,t[61]=ve,t[62]=ye,t[63]=be):be=t[63];let xe;t[64]===n?xe=t[65]:(xe=(0,$.jsx)(he,{value:`addons`,children:(0,$.jsx)(Ie,{clusterName:n})}),t[64]=n,t[65]=xe);let Se;t[66]===n?Se=t[67]:(Se=(0,$.jsx)(he,{value:`access`,children:(0,$.jsx)(Te,{clusterName:n})}),t[66]=n,t[67]=Se);let Ce;t[68]===_?Ce=t[69]:(Ce=(0,$.jsx)(he,{value:`networking`,children:(0,$.jsx)(Re,{cluster:_})}),t[68]=_,t[69]=Ce);let we;t[70]===E?we=t[71]:(we=(0,$.jsx)(he,{value:`connect`,children:(0,$.jsx)(u,{commands:E})}),t[70]=E,t[71]=we);let Ee;t[72]!==fe||t[73]!==be||t[74]!==xe||t[75]!==Se||t[76]!==Ce||t[77]!==we?(Ee=(0,$.jsxs)(ge,{defaultValue:`overview`,children:[z,fe,be,xe,Se,Ce,we]}),t[72]=fe,t[73]=be,t[74]=xe,t[75]=Se,t[76]=Ce,t[77]=we,t[78]=Ee):Ee=t[78];let De=`This permanently deletes cluster "${n}" and its control plane. This cannot be undone.`,Oe;t[79]!==g.isPending||t[80]!==O||t[81]!==a||t[82]!==De?(Oe=(0,$.jsx)(de,{description:De,isPending:g.isPending,onConfirm:O,onOpenChange:s,open:a,title:`Delete cluster`}),t[79]=g.isPending,t[80]=O,t[81]=a,t[82]=De,t[83]=Oe):Oe=t[83];let ke;return t[84]!==L||t[85]!==R||t[86]!==Ee||t[87]!==Oe?(ke=(0,$.jsxs)($.Fragment,{children:[k,L,R,Ee,Oe]}),t[84]=L,t[85]=R,t[86]=Ee,t[87]=Oe,t[88]=ke):ke=t[88],ke}function Ye(){let e=(0,Z.c)(2),{clusterName:t}=H.useParams(),n;return e[0]===t?n=e[1]:(n=(0,$.jsx)(Je,{clusterName:t}),e[0]=t,e[1]=n),n}export{Ye as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useQuery.js";import{t as o}from"./useSuspenseQuery.js";import{vr as s}from"./awsClient.js";import{Bt as c}from"./auth.js";import{t as l}from"./back-link.js";import{t as u}from"./cli-command-panel.js";import{t as d}from"./trash-2.js";import{t as f}from"./button.js";import{S as p,_ as m,a as h,b as g,d as _,f as v,g as y,h as b,l as x,m as S,n as C,o as w,r as T,s as E,t as D,u as O,v as k,x as A,y as j}from"./eks.js";import{C as M,D as N,E as P,Ir as F,M as I,Nr as L,Nt as R,O as z,Rn as B,T as V,_ as H,j as ee,k as te,rt as ne,w as re}from"./index.js";import{i as U,t as ie}from"./zod.js";import{t as ae}from"./page-heading.js";import{a as W,r as G,t as K}from"./field.js";import{i as oe,l as q,n as se,o as ce,r as le,s as ue,t as J}from"./alert-dialog.js";import{t as de}from"./delete-confirmation-dialog.js";import{n as Y,t as X}from"./detail-row.js";import{t as fe}from"./textarea.js";import{i as pe,n as me,r as he,t as ge}from"./tabs.js";import{t as _e}from"./badge.js";var ve=L(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),ye=L(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Z=r(),Q=t(n(),1),$=e();function be(e){return e?.split(`/`).pop()??e??``}function xe(e){let t=(0,Z.c)(55),{clusterName:n,principalArn:r,onDelete:i}=e,o;t[0]!==n||t[1]!==r?(o=re(n,r),t[0]=n,t[1]=r,t[2]=o):o=t[2];let{data:s}=a(o),c;t[3]!==n||t[4]!==r?(c=z(n,r),t[3]=n,t[4]=r,t[5]=c):c=t[5];let{data:l}=a(c),u=O(),p=j(),[m,h]=(0,Q.useState)(D[0].arn),g=s?.accessEntry,_;t[6]===l?.associatedAccessPolicies?_=t[7]:(_=l?.associatedAccessPolicies??[],t[6]=l?.associatedAccessPolicies,t[7]=_);let v=_,y;t[8]===r?y=t[9]:(y=(0,$.jsx)(`span`,{className:`truncate font-mono text-xs`,children:r}),t[8]=r,t[9]=y);let b;t[10]!==i||t[11]!==r?(b=()=>i(r),t[10]=i,t[11]=r,t[12]=b):b=t[12];let x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(d,{className:`size-4`}),t[13]=x):x=t[13];let S;t[14]===b?S=t[15]:(S=(0,$.jsx)(f,{onClick:b,size:`icon`,variant:`ghost`,children:x}),t[14]=b,t[15]=S);let C;t[16]!==y||t[17]!==S?(C=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[y,S]})}),t[16]=y,t[17]=S,t[18]=C):C=t[18];let w=g?.type,T;t[19]===w?T=t[20]:(T=(0,$.jsx)(X,{label:`Type`,value:w}),t[19]=w,t[20]=T);let E;t[21]===g?E=t[22]:(E=g?.kubernetesGroups?.length?g.kubernetesGroups.join(`, `):`—`,t[21]=g,t[22]=E);let k;t[23]===E?k=t[24]:(k=(0,$.jsx)(X,{label:`Kubernetes groups`,value:E}),t[23]=E,t[24]=k);let A;t[25]!==v||t[26]!==n||t[27]!==p||t[28]!==r?(A=v.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:v.map(e=>(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{children:be(e.policyArn)}),(0,$.jsx)(f,{onClick:()=>p.mutate({clusterName:n,principalArn:r,policyArn:e.policyArn??``}),size:`sm`,variant:`ghost`,children:`Remove`})]},e.policyArn))}):`—`,t[25]=v,t[26]=n,t[27]=p,t[28]=r,t[29]=A):A=t[29];let M;t[30]===A?M=t[31]:(M=(0,$.jsx)(X,{label:`Access policies`,value:A}),t[30]=A,t[31]=M);let N;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(N=e=>h(e.target.value),t[32]=N):N=t[32];let P;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(P=D.map(Se),t[33]=P):P=t[33];let F;t[34]===m?F=t[35]:(F=(0,$.jsx)(`select`,{"aria-label":`Access policy`,className:`h-7 flex-1 rounded-md border border-input bg-input/20 px-2 text-sm`,onChange:N,value:m,children:P}),t[34]=m,t[35]=F);let I;t[36]!==u||t[37]!==n||t[38]!==m||t[39]!==r?(I=()=>u.mutate({clusterName:n,principalArn:r,policyArn:m,accessScopeType:`cluster`}),t[36]=u,t[37]=n,t[38]=m,t[39]=r,t[40]=I):I=t[40];let L;t[41]!==u.isPending||t[42]!==I?(L=(0,$.jsx)(f,{disabled:u.isPending,onClick:I,size:`sm`,children:`Associate`}),t[41]=u.isPending,t[42]=I,t[43]=L):L=t[43];let R;t[44]!==F||t[45]!==L?(R=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 pt-2`,children:[F,L]}),t[44]=F,t[45]=L,t[46]=R):R=t[46];let B;t[47]!==T||t[48]!==k||t[49]!==M||t[50]!==R?(B=(0,$.jsxs)(Y.Content,{children:[T,k,M,R]}),t[47]=T,t[48]=k,t[49]=M,t[50]=R,t[51]=B):B=t[51];let V;return t[52]!==B||t[53]!==C?(V=(0,$.jsxs)(Y,{children:[C,B]}),t[52]=B,t[53]=C,t[54]=V):V=t[54],V}function Se(e){return(0,$.jsx)(`option`,{value:e.arn,children:e.name},e.arn)}function Ce(e){let t=(0,Z.c)(41),{clusterName:n,open:r,onOpenChange:i}=e,a=_(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={resolver:ie(w),defaultValues:{principalArn:``,kubernetesGroups:``}},t[0]=o):o=t[0];let{formState:s,handleSubmit:c,register:l,reset:u}=U(o),{errors:d}=s,f;t[1]!==n||t[2]!==a||t[3]!==i||t[4]!==u?(f=async e=>{await a.mutateAsync({clusterName:n,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups.split(`,`).map(we).filter(Boolean)}),u(),i(!1)},t[1]=n,t[2]=a,t[3]=i,t[4]=u,t[5]=f):f=t[5];let p=f,m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(ue,{children:(0,$.jsx)(q,{children:`Add access entry`})}),t[6]=m):m=t[6];let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ae-principal`,children:`IAM principal ARN`})}),t[7]=h):h=t[7];let g=!!d.principalArn,v;t[8]===l?v=t[9]:(v=l(`principalArn`),t[8]=l,t[9]=v);let y;t[10]!==g||t[11]!==v?(y=(0,$.jsx)(B,{"aria-invalid":g,id:`ae-principal`,placeholder:`arn:aws:iam::000000000000:role/my-role`,...v}),t[10]=g,t[11]=v,t[12]=y):y=t[12];let b;t[13]===d.principalArn?b=t[14]:(b=(0,$.jsx)(G,{errors:[d.principalArn]}),t[13]=d.principalArn,t[14]=b);let x;t[15]!==y||t[16]!==b?(x=(0,$.jsxs)(K,{children:[h,y,b]}),t[15]=y,t[16]=b,t[17]=x):x=t[17];let S;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ae-groups`,children:`Kubernetes groups`})}),t[18]=S):S=t[18];let C;t[19]===l?C=t[20]:(C=l(`kubernetesGroups`),t[19]=l,t[20]=C);let T;t[21]===C?T=t[22]:(T=(0,$.jsxs)(K,{children:[S,(0,$.jsx)(B,{id:`ae-groups`,placeholder:`system:masters`,...C})]}),t[21]=C,t[22]=T);let E;t[23]!==x||t[24]!==T?(E=(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-access-entry-form`,children:[x,T]}),t[23]=x,t[24]=T,t[25]=E):E=t[25];let D;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(le,{children:`Cancel`}),t[26]=D):D=t[26];let O;t[27]!==c||t[28]!==p?(O=e=>{e.preventDefault(),c(p)()},t[27]=c,t[28]=p,t[29]=O):O=t[29];let k=a.isPending?`Creating…`:`Create`,A;t[30]!==a.isPending||t[31]!==O||t[32]!==k?(A=(0,$.jsxs)(ce,{children:[D,(0,$.jsx)(se,{disabled:a.isPending,onClick:O,children:k})]}),t[30]=a.isPending,t[31]=O,t[32]=k,t[33]=A):A=t[33];let j;t[34]!==E||t[35]!==A?(j=(0,$.jsxs)(oe,{children:[m,E,A]}),t[34]=E,t[35]=A,t[36]=j):j=t[36];let M;return t[37]!==i||t[38]!==r||t[39]!==j?(M=(0,$.jsx)(J,{onOpenChange:i,open:r,children:j}),t[37]=i,t[38]=r,t[39]=j,t[40]=M):M=t[40],M}function we(e){return e.trim()}function Te(e){let t=(0,Z.c)(25),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=M(n),t[0]=n,t[1]=r);let{data:i}=o(r),a=b(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(),d;t[2]===i.accessEntries?d=t[3]:(d=i.accessEntries??[],t[2]=i.accessEntries,t[3]=d);let p=d,m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(f,{onClick:()=>c(!0),size:`sm`,children:`Add access entry`})}),t[4]=m):m=t[4];let h;t[5]!==n||t[6]!==p?(h=p.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:p.map(e=>(0,$.jsx)(xe,{clusterName:n,onDelete:u,principalArn:e},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No access entries.`}),t[5]=n,t[6]=p,t[7]=h):h=t[7];let g;t[8]!==n||t[9]!==s?(g=(0,$.jsx)(Ce,{clusterName:n,onOpenChange:c,open:s}),t[8]=n,t[9]=s,t[10]=g):g=t[10];let _=`Delete access entry for "${l??``}"?`,v;t[11]!==n||t[12]!==a||t[13]!==l?(v=()=>{l&&a.mutate({clusterName:n,principalArn:l},{onSuccess:()=>u(void 0)})},t[11]=n,t[12]=a,t[13]=l,t[14]=v):v=t[14];let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>!e&&u(void 0),t[15]=y):y=t[15];let x=l!==void 0,S;t[16]!==a.isPending||t[17]!==_||t[18]!==v||t[19]!==x?(S=(0,$.jsx)(de,{description:_,isPending:a.isPending,onConfirm:v,onOpenChange:y,open:x,title:`Delete access entry`}),t[16]=a.isPending,t[17]=_,t[18]=v,t[19]=x,t[20]=S):S=t[20];let C;return t[21]!==S||t[22]!==h||t[23]!==g?(C=(0,$.jsxs)($.Fragment,{children:[m,h,g,S]}),t[21]=S,t[22]=h,t[23]=g,t[24]=C):C=t[24],C}var Ee=new Set([`CREATING`,`UPDATING`,`DELETING`]),De=5e3,Oe=`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`;function ke(e){if(e.trim()===``)return!0;try{return JSON.parse(e),!0}catch{return!1}}function Ae({clusterName:e,catalog:t,installed:n,open:r,onOpenChange:i}){let a=v(),o=t.filter(e=>!n.includes(e.addonName??``)),{formState:{errors:s},handleSubmit:c,register:l,reset:u,setValue:d,watch:f}=U({resolver:ie(E),defaultValues:{addonName:``,addonVersion:``,serviceAccountRoleArn:``,configurationValues:``}}),p=f(`addonName`),m=f(`addonVersion`),h=t.find(e=>e.addonName===p)?.addonVersions??[],g=h.find(e=>e.addonVersion===m)?.requiresIamPermissions??!1,_=e=>{let n=t.find(t=>t.addonName===e)?.addonVersions?.[0]?.addonVersion??``;d(`addonName`,e,{shouldValidate:!0}),d(`addonVersion`,n,{shouldValidate:!0})},y=async t=>{await a.mutateAsync({clusterName:e,addonName:t.addonName,addonVersion:t.addonVersion||void 0,serviceAccountRoleArn:t.serviceAccountRoleArn.trim()||void 0,configurationValues:t.configurationValues.trim()||void 0}),u(),i(!1)};return(0,$.jsx)(J,{onOpenChange:i,open:r,children:(0,$.jsxs)(oe,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(ue,{children:(0,$.jsx)(q,{children:`Add add-on`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-addon-form`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`addon-name`,children:`Add-on`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!s.addonName,className:Oe,id:`addon-name`,onChange:e=>_(e.target.value),value:p,children:[(0,$.jsx)(`option`,{value:``,children:`Select add-on`}),o.map(e=>(0,$.jsx)(`option`,{value:e.addonName??``,children:e.addonName},e.addonName))]}),(0,$.jsx)(G,{errors:[s.addonName]})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`addon-version`,children:`Version`})}),(0,$.jsx)(`select`,{"aria-invalid":!!s.addonVersion,className:Oe,disabled:h.length===0,id:`addon-version`,onChange:e=>d(`addonVersion`,e.target.value,{shouldValidate:!0}),value:m,children:h.map((e,t)=>(0,$.jsxs)(`option`,{value:e.addonVersion??``,children:[e.addonVersion,t===0?` (latest)`:``]},e.addonVersion))}),(0,$.jsx)(G,{errors:[s.addonVersion]})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`addon-role`,children:`Service account IAM role ARN`})}),(0,$.jsx)(B,{id:`addon-role`,placeholder:`arn:aws:iam::…:role/…`,...l(`serviceAccountRoleArn`)}),g&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This add-on needs IAM permissions — provide an IRSA role ARN.`})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`addon-config`,children:`Configuration values (JSON)`})}),(0,$.jsx)(fe,{"aria-invalid":!!s.configurationValues,id:`addon-config`,placeholder:`{"replicaCount": 2}`,rows:4,...l(`configurationValues`)}),(0,$.jsx)(G,{errors:[s.configurationValues]})]})]}),(0,$.jsxs)(ce,{children:[(0,$.jsx)(le,{children:`Cancel`}),(0,$.jsx)(se,{disabled:a.isPending,onClick:e=>{e.preventDefault(),c(y)()},children:a.isPending?`Adding…`:`Add`})]})]})})}function je(e){let t=(0,Z.c)(54),{clusterName:n,addonName:r,current:i,versions:a,open:o,onOpenChange:s}=e,c=A(),[l,u]=(0,Q.useState)(i.addonVersion??``),[d,f]=(0,Q.useState)(i.serviceAccountRoleArn??``),[p,m]=(0,Q.useState)(i.configurationValues??``),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.addonVersion||t[1]!==i.configurationValues||t[2]!==i.serviceAccountRoleArn||t[3]!==o?(_=()=>{o&&(u(i.addonVersion??``),f(i.serviceAccountRoleArn??``),m(i.configurationValues??``),g(void 0))},v=[o,i.addonVersion,i.serviceAccountRoleArn,i.configurationValues],t[0]=i.addonVersion,t[1]=i.configurationValues,t[2]=i.serviceAccountRoleArn,t[3]=o,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==r||t[7]!==n||t[8]!==p||t[9]!==s||t[10]!==d||t[11]!==c||t[12]!==l?(y=()=>{if(!ke(p)){g(`Configuration must be valid JSON`);return}c.mutate({clusterName:n,addonName:r,addonVersion:l||void 0,serviceAccountRoleArn:d.trim()||void 0,configurationValues:p.trim()||void 0},{onSuccess:()=>s(!1)})},t[6]=r,t[7]=n,t[8]=p,t[9]=s,t[10]=d,t[11]=c,t[12]=l,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(ue,{children:(0,$.jsxs)(q,{children:[`Update `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-version`,children:`Version`})}),t[16]=S):S=t[16];let C=a.length===0,w;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>u(e.target.value),t[17]=w):w=t[17];let T;t[18]===a?T=t[19]:(T=a.map(Me),t[18]=a,t[19]=T);let E;t[20]!==C||t[21]!==T||t[22]!==l?(E=(0,$.jsxs)(K,{children:[S,(0,$.jsx)(`select`,{className:Oe,disabled:C,id:`update-addon-version`,onChange:w,value:l,children:T})]}),t[20]=C,t[21]=T,t[22]=l,t[23]=E):E=t[23];let D;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-role`,children:`Service account IAM role ARN`})}),t[24]=D):D=t[24];let O;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>f(e.target.value),t[25]=O):O=t[25];let k;t[26]===d?k=t[27]:(k=(0,$.jsxs)(K,{children:[D,(0,$.jsx)(B,{id:`update-addon-role`,onChange:O,placeholder:`arn:aws:iam::…:role/…`,value:d})]}),t[26]=d,t[27]=k);let j;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-config`,children:`Configuration values (JSON)`})}),t[28]=j):j=t[28];let M;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(M=e=>m(e.target.value),t[29]=M):M=t[29];let N;t[30]===p?N=t[31]:(N=(0,$.jsxs)(K,{children:[j,(0,$.jsx)(fe,{id:`update-addon-config`,onChange:M,rows:4,value:p})]}),t[30]=p,t[31]=N);let P;t[32]!==k||t[33]!==N||t[34]!==E?(P=(0,$.jsxs)(`div`,{className:`space-y-4`,children:[E,k,N]}),t[32]=k,t[33]=N,t[34]=E,t[35]=P):P=t[35];let F;t[36]===h?F=t[37]:(F=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[36]=h,t[37]=F);let I;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,$.jsx)(le,{children:`Cancel`}),t[38]=I):I=t[38];let L;t[39]===b?L=t[40]:(L=e=>{e.preventDefault(),b()},t[39]=b,t[40]=L);let R=c.isPending?`Updating…`:`Update`,z;t[41]!==L||t[42]!==R||t[43]!==c.isPending?(z=(0,$.jsxs)(ce,{children:[I,(0,$.jsx)(se,{disabled:c.isPending,onClick:L,children:R})]}),t[41]=L,t[42]=R,t[43]=c.isPending,t[44]=z):z=t[44];let V;t[45]!==P||t[46]!==F||t[47]!==z||t[48]!==x?(V=(0,$.jsxs)(oe,{className:`max-h-[85vh] overflow-y-auto`,children:[x,P,F,z]}),t[45]=P,t[46]=F,t[47]=z,t[48]=x,t[49]=V):V=t[49];let H;return t[50]!==s||t[51]!==o||t[52]!==V?(H=(0,$.jsx)(J,{onOpenChange:s,open:o,children:V}),t[50]=s,t[51]=o,t[52]=V,t[53]=H):H=t[53],H}function Me(e){return(0,$.jsx)(`option`,{value:e,children:e},e)}function Ne(e){let t=(0,Z.c)(53),{clusterName:n,addonName:r,catalog:i,onDelete:o}=e,s;t[0]!==r||t[1]!==n?(s=V(n,r),t[0]=r,t[1]=n,t[2]=s):s=t[2];let c;t[3]===s?c=t[4]:(c={...s,refetchInterval:Fe},t[3]=s,t[4]=c);let{data:l}=a(c),[u,p]=(0,Q.useState)(!1),m=l?.addon,g=m?.health?.issues?.[0]?.message,_;t[5]!==r||t[6]!==i?(_=i.find(e=>e.addonName===r)?.addonVersions?.map(Pe).filter(Boolean)??[],t[5]=r,t[6]=i,t[7]=_):_=t[7];let v=_,y;t[8]===r?y=t[9]:(y=(0,$.jsx)(`span`,{children:r}),t[8]=r,t[9]=y);let b=m?.status,x;t[10]===b?x=t[11]:(x=h(b),t[10]=b,t[11]=x);let S=m?.status??`UNKNOWN`,C;t[12]!==x||t[13]!==S?(C=(0,$.jsx)(_e,{variant:x,children:S}),t[12]=x,t[13]=S,t[14]=C):C=t[14];let w;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>p(!0),t[15]=w):w=t[15];let T;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(f,{"aria-label":`Update add-on`,onClick:w,size:`icon`,variant:`ghost`,children:(0,$.jsx)(ve,{className:`size-4`})}),t[16]=T):T=t[16];let E;t[17]!==r||t[18]!==o?(E=()=>o(r),t[17]=r,t[18]=o,t[19]=E):E=t[19];let D;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(d,{className:`size-4`}),t[20]=D):D=t[20];let O;t[21]===E?O=t[22]:(O=(0,$.jsx)(f,{"aria-label":`Remove add-on`,onClick:E,size:`icon`,variant:`ghost`,children:D}),t[21]=E,t[22]=O);let k;t[23]!==O||t[24]!==C?(k=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[C,T,O]}),t[23]=O,t[24]=C,t[25]=k):k=t[25];let A;t[26]!==k||t[27]!==y?(A=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[y,k]})}),t[26]=k,t[27]=y,t[28]=A):A=t[28];let j=m?.addonVersion,M;t[29]===j?M=t[30]:(M=(0,$.jsx)(X,{label:`Version`,value:j}),t[29]=j,t[30]=M);let N=m?.serviceAccountRoleArn,P;t[31]===N?P=t[32]:(P=(0,$.jsx)(X,{label:`IRSA role`,value:N}),t[31]=N,t[32]=P);let F;t[33]===g?F=t[34]:(F=g&&(0,$.jsx)(X,{label:`Issue`,value:(0,$.jsx)(`span`,{className:`text-destructive`,children:g})}),t[33]=g,t[34]=F);let I;t[35]!==M||t[36]!==P||t[37]!==F?(I=(0,$.jsxs)(Y.Content,{children:[M,P,F]}),t[35]=M,t[36]=P,t[37]=F,t[38]=I):I=t[38];let L=m?.addonVersion,R=m?.serviceAccountRoleArn,z=m?.configurationValues,B;t[39]!==L||t[40]!==R||t[41]!==z?(B={addonVersion:L,serviceAccountRoleArn:R,configurationValues:z},t[39]=L,t[40]=R,t[41]=z,t[42]=B):B=t[42];let H;t[43]!==r||t[44]!==n||t[45]!==u||t[46]!==B||t[47]!==v?(H=(0,$.jsx)(je,{addonName:r,clusterName:n,current:B,onOpenChange:p,open:u,versions:v}),t[43]=r,t[44]=n,t[45]=u,t[46]=B,t[47]=v,t[48]=H):H=t[48];let ee;return t[49]!==A||t[50]!==I||t[51]!==H?(ee=(0,$.jsxs)(Y,{children:[A,I,H]}),t[49]=A,t[50]=I,t[51]=H,t[52]=ee):ee=t[52],ee}function Pe(e){return e.addonVersion??``}function Fe(e){return Ee.has(e.state.data?.addon?.status??``)?De:!1}function Ie(e){let t=(0,Z.c)(31),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=N(n),t[0]=n,t[1]=r);let{data:i}=o(r),{data:s}=a(P),c=y(),[l,u]=(0,Q.useState)(!1),[d,p]=(0,Q.useState)(),m;t[2]===i.addons?m=t[3]:(m=i.addons??[],t[2]=i.addons,t[3]=m);let h=m,g;t[4]===s?.addons?g=t[5]:(g=s?.addons??[],t[4]=s?.addons,t[5]=g);let _=g,v;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Add-on manifests are staged; activation completes when the cluster reports the workload ready.`}),t[6]=v):v=t[6];let b;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-4`,children:[v,(0,$.jsx)(f,{onClick:()=>u(!0),size:`sm`,children:`Add add-on`})]}),t[7]=b):b=t[7];let x;t[8]!==h||t[9]!==_||t[10]!==n?(x=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(Ne,{addonName:e,catalog:_,clusterName:n,onDelete:p},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No add-ons installed.`}),t[8]=h,t[9]=_,t[10]=n,t[11]=x):x=t[11];let S;t[12]!==h||t[13]!==_||t[14]!==n||t[15]!==l?(S=(0,$.jsx)(Ae,{catalog:_,clusterName:n,installed:h,onOpenChange:u,open:l}),t[12]=h,t[13]=_,t[14]=n,t[15]=l,t[16]=S):S=t[16];let C=`Remove add-on "${d??``}" from the cluster?`,w;t[17]!==n||t[18]!==c||t[19]!==d?(w=()=>{d&&c.mutate({clusterName:n,addonName:d},{onSuccess:()=>p(void 0)})},t[17]=n,t[18]=c,t[19]=d,t[20]=w):w=t[20];let T;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(T=e=>!e&&p(void 0),t[21]=T):T=t[21];let E=d!==void 0,D;t[22]!==c.isPending||t[23]!==E||t[24]!==C||t[25]!==w?(D=(0,$.jsx)(de,{confirmLabel:`Remove`,description:C,isPending:c.isPending,onConfirm:w,onOpenChange:T,open:E,pendingLabel:`Removing…`,title:`Remove add-on`}),t[22]=c.isPending,t[23]=E,t[24]=C,t[25]=w,t[26]=D):D=t[26];let O;return t[27]!==D||t[28]!==x||t[29]!==S?(O=(0,$.jsxs)($.Fragment,{children:[b,x,S,D]}),t[27]=D,t[28]=x,t[29]=S,t[30]=O):O=t[30],O}function Le(e){let t=(0,Z.c)(6),{to:n,id:r}=e,i;t[0]===r?i=t[1]:(i={id:r},t[0]=r,t[1]=i);let a;return t[2]!==r||t[3]!==i||t[4]!==n?(a=(0,$.jsx)(s,{className:`font-mono text-primary underline-offset-2 hover:underline`,params:i,to:n,children:r}),t[2]=r,t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function Re(e){let t=(0,Z.c)(45),{cluster:n}=e,r=n?.resourcesVpcConfig,i;t[0]===r?.subnetIds?i=t[1]:(i=r?.subnetIds??[],t[0]=r?.subnetIds,t[1]=i);let a=i,o;t[2]===r?.securityGroupIds?o=t[3]:(o=r?.securityGroupIds??[],t[2]=r?.securityGroupIds,t[3]=o);let s=o,c;t[4]===r?.publicAccessCidrs?c=t[5]:(c=r?.publicAccessCidrs??[],t[4]=r?.publicAccessCidrs,t[5]=c);let l=c,u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(Y.Header,{children:`VPC`}),t[6]=u):u=t[6];let d;t[7]===r?d=t[8]:(d=r?.vpcId?(0,$.jsx)(Le,{id:r.vpcId,to:`/ec2/describe-vpcs/$id`}):void 0,t[7]=r,t[8]=d);let f;t[9]===d?f=t[10]:(f=(0,$.jsx)(X,{label:`VPC`,value:d}),t[9]=d,t[10]=f);let p=n?.endpoint,m;t[11]===p?m=t[12]:(m=(0,$.jsx)(X,{label:`API server endpoint`,value:p}),t[11]=p,t[12]=m);let h=r?.endpointPublicAccess?`Enabled`:`Disabled`,g;t[13]===h?g=t[14]:(g=(0,$.jsx)(X,{label:`Public access`,value:h}),t[13]=h,t[14]=g);let _=r?.endpointPrivateAccess?`Enabled`:`Disabled`,v;t[15]===_?v=t[16]:(v=(0,$.jsx)(X,{label:`Private access`,value:_}),t[15]=_,t[16]=v);let y;t[17]!==l||t[18]!==r?.endpointPublicAccess?(y=r?.endpointPublicAccess&&(0,$.jsx)(X,{label:`Public access CIDRs`,value:l.length>0?(0,$.jsx)(`div`,{className:`space-y-1 font-mono text-xs`,children:l.map(Ve)}):`Any (0.0.0.0/0)`}),t[17]=l,t[18]=r?.endpointPublicAccess,t[19]=y):y=t[19];let b;t[20]!==g||t[21]!==v||t[22]!==y||t[23]!==f||t[24]!==m?(b=(0,$.jsxs)(Y,{children:[u,(0,$.jsxs)(Y.Content,{children:[f,m,g,v,y]})]}),t[20]=g,t[21]=v,t[22]=y,t[23]=f,t[24]=m,t[25]=b):b=t[25];let x;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(Y.Header,{children:`Subnets`}),t[26]=x):x=t[26];let S;t[27]===a?S=t[28]:(S=(0,$.jsxs)(Y,{children:[x,(0,$.jsx)(Y.Content,{children:a.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:a.map(Be)}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets.`})})]}),t[27]=a,t[28]=S);let C;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(Y.Header,{children:`Security groups`}),t[29]=C):C=t[29];let w;t[30]===r?w=t[31]:(w=r?.clusterSecurityGroupId?(0,$.jsx)(Le,{id:r.clusterSecurityGroupId,to:`/ec2/describe-security-groups/$id`}):void 0,t[30]=r,t[31]=w);let T;t[32]===w?T=t[33]:(T=(0,$.jsx)(X,{label:`Cluster security group`,value:w}),t[32]=w,t[33]=T);let E;t[34]===s?E=t[35]:(E=s.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:s.map(ze)}):`—`,t[34]=s,t[35]=E);let D;t[36]===E?D=t[37]:(D=(0,$.jsx)(X,{label:`Additional security groups`,value:E}),t[36]=E,t[37]=D);let O;t[38]!==T||t[39]!==D?(O=(0,$.jsxs)(Y,{children:[C,(0,$.jsxs)(Y.Content,{children:[T,D]})]}),t[38]=T,t[39]=D,t[40]=O):O=t[40];let k;return t[41]!==b||t[42]!==S||t[43]!==O?(k=(0,$.jsxs)($.Fragment,{children:[b,S,O]}),t[41]=b,t[42]=S,t[43]=O,t[44]=k):k=t[44],k}function ze(e){return(0,$.jsx)(Le,{id:e,to:`/ec2/describe-security-groups/$id`},e)}function Be(e){return(0,$.jsx)(Le,{id:e,to:`/ec2/describe-subnets/$id`},e)}function Ve(e){return(0,$.jsx)(`div`,{children:e},e)}function He(e){let t=(0,Z.c)(50),{clusterName:n,nodegroupName:r,current:i,open:a,onOpenChange:o}=e,s=g(),[c,l]=(0,Q.useState)(i.minSize??0),[u,d]=(0,Q.useState)(i.desiredSize??0),[f,p]=(0,Q.useState)(i.maxSize??0),[m,h]=(0,Q.useState)(),_,v;t[0]!==i.desiredSize||t[1]!==i.maxSize||t[2]!==i.minSize||t[3]!==a?(_=()=>{a&&(l(i.minSize??0),d(i.desiredSize??0),p(i.maxSize??0),h(void 0))},v=[a,i.minSize,i.desiredSize,i.maxSize],t[0]=i.desiredSize,t[1]=i.maxSize,t[2]=i.minSize,t[3]=a,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==n||t[7]!==u||t[8]!==f||t[9]!==c||t[10]!==r||t[11]!==o||t[12]!==s?(y=()=>{if(!(c<=u&&u<=f)){h(`Sizes must satisfy min ≤ desired ≤ max`);return}s.mutate({clusterName:n,nodegroupName:r,minSize:c,desiredSize:u,maxSize:f},{onSuccess:()=>o(!1)})},t[6]=n,t[7]=u,t[8]=f,t[9]=c,t[10]=r,t[11]=o,t[12]=s,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(ue,{children:(0,$.jsxs)(q,{children:[`Scale `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`scale-min`,children:`Min`})}),t[16]=S):S=t[16];let C;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>l(Number(e.target.value)),t[17]=C):C=t[17];let w;t[18]===c?w=t[19]:(w=(0,$.jsxs)(K,{children:[S,(0,$.jsx)(B,{id:`scale-min`,onChange:C,type:`number`,value:c})]}),t[18]=c,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`scale-desired`,children:`Desired`})}),t[20]=T):T=t[20];let E;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>d(Number(e.target.value)),t[21]=E):E=t[21];let D;t[22]===u?D=t[23]:(D=(0,$.jsxs)(K,{children:[T,(0,$.jsx)(B,{id:`scale-desired`,onChange:E,type:`number`,value:u})]}),t[22]=u,t[23]=D);let O;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`scale-max`,children:`Max`})}),t[24]=O):O=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>p(Number(e.target.value)),t[25]=k):k=t[25];let A;t[26]===f?A=t[27]:(A=(0,$.jsxs)(K,{children:[O,(0,$.jsx)(B,{id:`scale-max`,onChange:k,type:`number`,value:f})]}),t[26]=f,t[27]=A);let j;t[28]!==D||t[29]!==A||t[30]!==w?(j=(0,$.jsxs)(`div`,{className:`grid grid-cols-3 gap-3`,children:[w,D,A]}),t[28]=D,t[29]=A,t[30]=w,t[31]=j):j=t[31];let M;t[32]===m?M=t[33]:(M=m&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:m}),t[32]=m,t[33]=M);let N;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(le,{children:`Cancel`}),t[34]=N):N=t[34];let P;t[35]===b?P=t[36]:(P=e=>{e.preventDefault(),b()},t[35]=b,t[36]=P);let F=s.isPending?`Scaling…`:`Scale`,I;t[37]!==s.isPending||t[38]!==P||t[39]!==F?(I=(0,$.jsxs)(ce,{children:[N,(0,$.jsx)(se,{disabled:s.isPending,onClick:P,children:F})]}),t[37]=s.isPending,t[38]=P,t[39]=F,t[40]=I):I=t[40];let L;t[41]!==j||t[42]!==M||t[43]!==I||t[44]!==x?(L=(0,$.jsxs)(oe,{children:[x,j,M,I]}),t[41]=j,t[42]=M,t[43]=I,t[44]=x,t[45]=L):L=t[45];let R;return t[46]!==o||t[47]!==a||t[48]!==L?(R=(0,$.jsx)(J,{onOpenChange:o,open:a,children:L}),t[46]=o,t[47]=a,t[48]=L,t[49]=R):R=t[49],R}function Ue(e){let t=(0,Z.c)(64),{clusterName:n,clusterVersion:r,nodegroupName:i,onDelete:o}=e,s;t[0]!==n||t[1]!==i?(s=ee(n,i),t[0]=n,t[1]=i,t[2]=s):s=t[2];let{data:c}=a(s),l=p(),u=c?.nodegroup,m=u?.scalingConfig,[h,g]=(0,Q.useState)(!1),[_,v]=(0,Q.useState)(!1),y=!!r&&!!u?.version&&u.version!==r,b;t[3]===i?b=t[4]:(b=(0,$.jsx)(`span`,{children:i}),t[3]=i,t[4]=b);let x;t[5]===y?x=t[6]:(x=y&&(0,$.jsx)(f,{"aria-label":`Update node group version`,onClick:()=>v(!0),size:`icon`,variant:`ghost`,children:(0,$.jsx)(ve,{className:`size-4`})}),t[5]=y,t[6]=x);let S;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>g(!0),t[7]=S):S=t[7];let C;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(f,{"aria-label":`Scale node group`,onClick:S,size:`icon`,variant:`ghost`,children:(0,$.jsx)(ye,{className:`size-4`})}),t[8]=C):C=t[8];let w;t[9]!==i||t[10]!==o?(w=()=>o(i),t[9]=i,t[10]=o,t[11]=w):w=t[11];let T;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(d,{className:`size-4`}),t[12]=T):T=t[12];let E;t[13]===w?E=t[14]:(E=(0,$.jsx)(f,{"aria-label":`Delete node group`,onClick:w,size:`icon`,variant:`ghost`,children:T}),t[13]=w,t[14]=E);let D;t[15]!==x||t[16]!==E?(D=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[x,C,E]}),t[15]=x,t[16]=E,t[17]=D):D=t[17];let O;t[18]!==b||t[19]!==D?(O=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[b,D]})}),t[18]=b,t[19]=D,t[20]=O):O=t[20];let k=u?.status,A;t[21]===k?A=t[22]:(A=(0,$.jsx)(X,{label:`Status`,value:k}),t[21]=k,t[22]=A);let j=y?`${u?.version} (cluster on ${r})`:u?.version,M;t[23]===j?M=t[24]:(M=(0,$.jsx)(X,{label:`Kubernetes version`,value:j}),t[23]=j,t[24]=M);let N;t[25]===u?.instanceTypes?N=t[26]:(N=u?.instanceTypes?.join(`, `),t[25]=u?.instanceTypes,t[26]=N);let P;t[27]===N?P=t[28]:(P=(0,$.jsx)(X,{label:`Instance types`,value:N}),t[27]=N,t[28]=P);let F=u?.amiType,I;t[29]===F?I=t[30]:(I=(0,$.jsx)(X,{label:`AMI type`,value:F}),t[29]=F,t[30]=I);let L=u?.capacityType,R;t[31]===L?R=t[32]:(R=(0,$.jsx)(X,{label:`Capacity type`,value:L}),t[31]=L,t[32]=R);let z=m?`${m.minSize} / ${m.desiredSize} / ${m.maxSize}`:void 0,B;t[33]===z?B=t[34]:(B=(0,$.jsx)(X,{label:`Scaling (min / desired / max)`,value:z}),t[33]=z,t[34]=B);let V;t[35]!==A||t[36]!==M||t[37]!==P||t[38]!==I||t[39]!==R||t[40]!==B?(V=(0,$.jsxs)(Y.Content,{children:[A,M,P,I,R,B]}),t[35]=A,t[36]=M,t[37]=P,t[38]=I,t[39]=R,t[40]=B,t[41]=V):V=t[41];let H;t[42]===m?H=t[43]:(H=m??{},t[42]=m,t[43]=H);let te;t[44]!==n||t[45]!==i||t[46]!==h||t[47]!==H?(te=(0,$.jsx)(He,{clusterName:n,current:H,nodegroupName:i,onOpenChange:g,open:h}),t[44]=n,t[45]=i,t[46]=h,t[47]=H,t[48]=te):te=t[48];let ne=`Update node group "${i}" from ${u?.version} to ${r}? Nodes are replaced in a rolling update.`,re;t[49]!==n||t[50]!==r||t[51]!==i||t[52]!==l?(re=()=>l.mutate({clusterName:n,nodegroupName:i,version:r},{onSuccess:()=>v(!1)}),t[49]=n,t[50]=r,t[51]=i,t[52]=l,t[53]=re):re=t[53];let U;t[54]!==_||t[55]!==ne||t[56]!==re||t[57]!==l.isPending?(U=(0,$.jsx)(de,{confirmLabel:`Update`,description:ne,isPending:l.isPending,onConfirm:re,onOpenChange:v,open:_,title:`Update node group version`}),t[54]=_,t[55]=ne,t[56]=re,t[57]=l.isPending,t[58]=U):U=t[58];let ie;return t[59]!==O||t[60]!==V||t[61]!==te||t[62]!==U?(ie=(0,$.jsxs)(Y,{children:[O,V,te,U]}),t[59]=O,t[60]=V,t[61]=te,t[62]=U,t[63]=ie):ie=t[63],ie}function We({clusterName:e,vpcId:t,open:n,onOpenChange:r}){let{data:i}=a(ne),{data:o}=a(R),s=S(),c=i?.Roles??[],l=(o?.Subnets??[]).filter(e=>e.VpcId===t),{formState:{errors:u},handleSubmit:d,register:f,reset:p,setValue:m,watch:h}=U({resolver:ie(x),defaultValues:{nodegroupName:``,nodeRole:``,subnetIds:[],instanceTypes:`t3.medium`,amiType:`AL2_x86_64`,capacityType:`ON_DEMAND`,diskSize:20,minSize:1,desiredSize:2,maxSize:3}}),g=h(`subnetIds`),_=e=>{m(`subnetIds`,g.includes(e)?g.filter(t=>t!==e):[...g,e],{shouldValidate:!0})},v=async t=>{await s.mutateAsync({clusterName:e,nodegroupName:t.nodegroupName,nodeRole:t.nodeRole,subnetIds:t.subnetIds,instanceTypes:t.instanceTypes.split(`,`).map(e=>e.trim()).filter(Boolean),amiType:t.amiType,capacityType:t.capacityType,diskSize:t.diskSize,minSize:t.minSize,desiredSize:t.desiredSize,maxSize:t.maxSize}),p(),r(!1)};return(0,$.jsx)(J,{onOpenChange:r,open:n,children:(0,$.jsxs)(oe,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(ue,{children:(0,$.jsx)(q,{children:`Add node group`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-nodegroup-form`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-name`,children:`Name`})}),(0,$.jsx)(B,{"aria-invalid":!!u.nodegroupName,id:`ng-name`,placeholder:`my-nodegroup`,...f(`nodegroupName`)}),(0,$.jsx)(G,{errors:[u.nodegroupName]})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-role`,children:`Node IAM role`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!u.nodeRole,className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-role`,...f(`nodeRole`),children:[(0,$.jsx)(`option`,{value:``,children:`Select role`}),c.map(e=>(0,$.jsx)(`option`,{value:e.Arn??``,children:e.RoleName},e.Arn))]}),(0,$.jsx)(G,{errors:[u.nodeRole]})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:`Subnets`}),l.length===0?(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the cluster VPC.`}):(0,$.jsx)(`div`,{className:`space-y-1`,children:l.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:g.includes(e.SubnetId??``),onChange:()=>_(e.SubnetId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` · `,e.CidrBlock]})]},e.SubnetId))}),(0,$.jsx)(G,{errors:[u.subnetIds]})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-instance-types`,children:`Instance types`})}),(0,$.jsx)(B,{id:`ng-instance-types`,placeholder:`t3.medium, t3.large`,...f(`instanceTypes`)}),(0,$.jsx)(G,{errors:[u.instanceTypes]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-ami`,children:`AMI type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-ami`,...f(`amiType`),children:C.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-capacity`,children:`Capacity type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-capacity`,...f(`capacityType`),children:T.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-4 gap-3`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-disk`,children:`Disk (GB)`})}),(0,$.jsx)(B,{id:`ng-disk`,type:`number`,...f(`diskSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-min`,children:`Min`})}),(0,$.jsx)(B,{id:`ng-min`,type:`number`,...f(`minSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-desired`,children:`Desired`})}),(0,$.jsx)(B,{id:`ng-desired`,type:`number`,...f(`desiredSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(K,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`ng-max`,children:`Max`})}),(0,$.jsx)(B,{id:`ng-max`,type:`number`,...f(`maxSize`,{valueAsNumber:!0})})]})]}),(0,$.jsx)(G,{errors:[u.desiredSize]})]}),(0,$.jsxs)(ce,{children:[(0,$.jsx)(le,{children:`Cancel`}),(0,$.jsx)(se,{disabled:s.isPending,onClick:e=>{e.preventDefault(),d(v)()},children:s.isPending?`Creating…`:`Create`})]})]})})}function Ge(e){let t=(0,Z.c)(27),{clusterName:n,clusterVersion:r,vpcId:i}=e,a;t[0]===n?a=t[1]:(a=I(n),t[0]=n,t[1]=a);let{data:s}=o(a),c=k(),[l,u]=(0,Q.useState)(!1),[d,p]=(0,Q.useState)(),m;t[2]===s.nodegroups?m=t[3]:(m=s.nodegroups??[],t[2]=s.nodegroups,t[3]=m);let h=m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(f,{onClick:()=>u(!0),size:`sm`,children:`Add node group`})}),t[4]=g):g=t[4];let _;t[5]!==n||t[6]!==r||t[7]!==h?(_=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(Ue,{clusterName:n,clusterVersion:r,nodegroupName:e,onDelete:p},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No node groups.`}),t[5]=n,t[6]=r,t[7]=h,t[8]=_):_=t[8];let v;t[9]!==n||t[10]!==l||t[11]!==i?(v=(0,$.jsx)(We,{clusterName:n,onOpenChange:u,open:l,vpcId:i}),t[9]=n,t[10]=l,t[11]=i,t[12]=v):v=t[12];let y=`Delete node group "${d??``}"? This terminates its nodes.`,b;t[13]!==n||t[14]!==c||t[15]!==d?(b=()=>{d&&c.mutate({clusterName:n,nodegroupName:d},{onSuccess:()=>p(void 0)})},t[13]=n,t[14]=c,t[15]=d,t[16]=b):b=t[16];let x;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>!e&&p(void 0),t[17]=x):x=t[17];let S=d!==void 0,C;t[18]!==c.isPending||t[19]!==y||t[20]!==b||t[21]!==S?(C=(0,$.jsx)(de,{description:y,isPending:c.isPending,onConfirm:b,onOpenChange:x,open:S,title:`Delete node group`}),t[18]=c.isPending,t[19]=y,t[20]=b,t[21]=S,t[22]=C):C=t[22];let w;return t[23]!==C||t[24]!==_||t[25]!==v?(w=(0,$.jsxs)($.Fragment,{children:[g,_,v,C]}),t[23]=C,t[24]=_,t[25]=v,t[26]=w):w=t[26],w}var Ke=`ap-southeast-2`;function qe(e){switch(e??``){case`ACTIVE`:return`default`;case`FAILED`:return`destructive`;default:return`secondary`}}function Je(e){let t=(0,Z.c)(89),{clusterName:n}=e,r=F(),[a,s]=(0,Q.useState)(!1),p;t[0]===n?p=t[1]:(p=te(n),t[0]=n,t[1]=p);let{data:h}=o(p),g=m(),_=h.cluster,v;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(v={type:`bin`,value:`aws eks update-kubeconfig`},t[2]=v):v=t[2];let y;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(y={type:`flag`,value:` --name `},t[3]=y):y=t[3];let b;t[4]===n?b=t[5]:(b={type:`value`,value:n},t[4]=n,t[5]=b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x={type:`flag`,value:` --region `},t[6]=x):x=t[6];let S;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(S={type:`value`,value:Ke},t[7]=S):S=t[7];let C;t[8]===b?C=t[9]:(C={label:`Configure kubectl`,parts:[v,y,b,x,S]},t[8]=b,t[9]=C);let w;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(w={label:`Verify access`,parts:[{type:`bin`,value:`kubectl get nodes`}]},t[10]=w):w=t[10];let T;t[11]===C?T=t[12]:(T=[C,w],t[11]=C,t[12]=T);let E=T,D;t[13]!==n||t[14]!==g||t[15]!==r?(D=function(){g.mutate(n,{onSuccess:()=>{r({to:`/eks/list-clusters`})}})},t[13]=n,t[14]=g,t[15]=r,t[16]=D):D=t[16];let O=D,k;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,$.jsx)(l,{to:`/eks/list-clusters`,children:`Clusters`}),t[17]=k):k=t[17];let A;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>s(!0),t[18]=A):A=t[18];let j;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsxs)(f,{onClick:A,size:`sm`,variant:`destructive`,children:[(0,$.jsx)(d,{className:`size-4`}),`Delete`]}),t[19]=j):j=t[19];let M=_?.status,N;t[20]===M?N=t[21]:(N=qe(M),t[20]=M,t[21]=N);let P=_?.status??`UNKNOWN`,I;t[22]!==N||t[23]!==P?(I=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[j,(0,$.jsx)(_e,{variant:N,children:P})]}),t[22]=N,t[23]=P,t[24]=I):I=t[24];let L;t[25]!==n||t[26]!==I?(L=(0,$.jsx)(ae,{actions:I,subtitle:`Cluster Details`,title:n}),t[25]=n,t[26]=I,t[27]=L):L=t[27];let R;t[28]!==g.error||t[29]!==g.isError?(R=g.isError&&(0,$.jsx)(i,{error:g.error instanceof Error?g.error:void 0,msg:`Failed to delete cluster.`}),t[28]=g.error,t[29]=g.isError,t[30]=R):R=t[30];let z;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsxs)(me,{children:[(0,$.jsx)(pe,{value:`overview`,children:`Overview`}),(0,$.jsx)(pe,{value:`compute`,children:`Compute`}),(0,$.jsx)(pe,{value:`addons`,children:`Add-ons`}),(0,$.jsx)(pe,{value:`access`,children:`Access`}),(0,$.jsx)(pe,{value:`networking`,children:`Networking`}),(0,$.jsx)(pe,{value:`connect`,children:`Connect`})]}),t[31]=z):z=t[31];let B;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,$.jsx)(Y.Header,{children:`Cluster`}),t[32]=B):B=t[32];let V=_?.arn,H;t[33]===V?H=t[34]:(H=(0,$.jsx)(X,{label:`ARN`,value:V}),t[33]=V,t[34]=H);let ee=_?.status,ne;t[35]===ee?ne=t[36]:(ne=(0,$.jsx)(X,{label:`Status`,value:ee}),t[35]=ee,t[36]=ne);let re=_?.version,U;t[37]===re?U=t[38]:(U=(0,$.jsx)(X,{label:`Kubernetes version`,value:re}),t[37]=re,t[38]=U);let ie=_?.platformVersion,W;t[39]===ie?W=t[40]:(W=(0,$.jsx)(X,{label:`Platform version`,value:ie}),t[39]=ie,t[40]=W);let G=_?.endpoint,K;t[41]===G?K=t[42]:(K=(0,$.jsx)(X,{label:`Endpoint`,value:G}),t[41]=G,t[42]=K);let oe=_?.identity?.oidc?.issuer,q;t[43]===oe?q=t[44]:(q=(0,$.jsx)(X,{label:`OIDC issuer`,value:oe}),t[43]=oe,t[44]=q);let se=_?.resourcesVpcConfig?.vpcId,ce;t[45]===se?ce=t[46]:(ce=(0,$.jsx)(X,{label:`VPC`,value:se}),t[45]=se,t[46]=ce);let le=_?.createdAt,ue;t[47]===le?ue=t[48]:(ue=c(le),t[47]=le,t[48]=ue);let J;t[49]===ue?J=t[50]:(J=(0,$.jsx)(X,{label:`Created at`,value:ue}),t[49]=ue,t[50]=J);let fe;t[51]!==H||t[52]!==ne||t[53]!==U||t[54]!==W||t[55]!==K||t[56]!==q||t[57]!==ce||t[58]!==J?(fe=(0,$.jsx)(he,{value:`overview`,children:(0,$.jsxs)(Y,{children:[B,(0,$.jsxs)(Y.Content,{children:[H,ne,U,W,K,q,ce,J]})]})}),t[51]=H,t[52]=ne,t[53]=U,t[54]=W,t[55]=K,t[56]=q,t[57]=ce,t[58]=J,t[59]=fe):fe=t[59];let ve=_?.version,ye=_?.resourcesVpcConfig?.vpcId,be;t[60]!==n||t[61]!==ve||t[62]!==ye?(be=(0,$.jsx)(he,{value:`compute`,children:(0,$.jsx)(Ge,{clusterName:n,clusterVersion:ve,vpcId:ye})}),t[60]=n,t[61]=ve,t[62]=ye,t[63]=be):be=t[63];let xe;t[64]===n?xe=t[65]:(xe=(0,$.jsx)(he,{value:`addons`,children:(0,$.jsx)(Ie,{clusterName:n})}),t[64]=n,t[65]=xe);let Se;t[66]===n?Se=t[67]:(Se=(0,$.jsx)(he,{value:`access`,children:(0,$.jsx)(Te,{clusterName:n})}),t[66]=n,t[67]=Se);let Ce;t[68]===_?Ce=t[69]:(Ce=(0,$.jsx)(he,{value:`networking`,children:(0,$.jsx)(Re,{cluster:_})}),t[68]=_,t[69]=Ce);let we;t[70]===E?we=t[71]:(we=(0,$.jsx)(he,{value:`connect`,children:(0,$.jsx)(u,{commands:E})}),t[70]=E,t[71]=we);let Ee;t[72]!==fe||t[73]!==be||t[74]!==xe||t[75]!==Se||t[76]!==Ce||t[77]!==we?(Ee=(0,$.jsxs)(ge,{defaultValue:`overview`,children:[z,fe,be,xe,Se,Ce,we]}),t[72]=fe,t[73]=be,t[74]=xe,t[75]=Se,t[76]=Ce,t[77]=we,t[78]=Ee):Ee=t[78];let De=`This permanently deletes cluster "${n}" and its control plane. This cannot be undone.`,Oe;t[79]!==g.isPending||t[80]!==O||t[81]!==a||t[82]!==De?(Oe=(0,$.jsx)(de,{description:De,isPending:g.isPending,onConfirm:O,onOpenChange:s,open:a,title:`Delete cluster`}),t[79]=g.isPending,t[80]=O,t[81]=a,t[82]=De,t[83]=Oe):Oe=t[83];let ke;return t[84]!==L||t[85]!==R||t[86]!==Ee||t[87]!==Oe?(ke=(0,$.jsxs)($.Fragment,{children:[k,L,R,Ee,Oe]}),t[84]=L,t[85]=R,t[86]=Ee,t[87]=Oe,t[88]=ke):ke=t[88],ke}function Ye(){let e=(0,Z.c)(2),{clusterName:t}=H.useParams(),n;return e[0]===t?n=e[1]:(n=(0,$.jsx)(Je,{clusterName:t}),e[0]=t,e[1]=n),n}export{Ye as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id.js b/spinifex/services/spinifexui/frontend/dist/assets/_id.js index 2c01a19c5..7954971ee 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{Wt as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{G as m,L as h,n as g}from"./ec2.js";import{Ir as _,ct as v,gt as y,t as b}from"./index.js";import{t as x}from"./page-heading.js";import{t as S}from"./delete-confirmation-dialog.js";import{n as C,t as w}from"./detail-row.js";var T=t(n()),E=e();function D(){let{id:e}=b.useParams(),t=_(),{data:n}=i(v(e)),{data:D}=i(y),O=g(),k=h(),A=m(),[j,M]=(0,T.useState)(!1),[N,P]=(0,T.useState)(``),F=n.Addresses?.[0],I=D.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.State?.Name===`running`||e.State?.Name===`stopped`)??[],L=async()=>{try{await A.mutateAsync(e),t({to:`/ec2/describe-addresses`})}finally{M(!1)}},R=async()=>{N&&await O.mutateAsync({allocationId:e,instanceId:N})},z=async()=>{F?.AssociationId&&await k.mutateAsync(F.AssociationId)};if(!F?.AllocationId)return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`Elastic IP not found.`})]});let B=!!F.AssociationId,V=a(F.Tags);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(A.error??O.error??k.error)&&(0,E.jsx)(r,{error:A.error??O.error??k.error??void 0,msg:`Elastic IP action failed`}),(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsx)(x,{actions:(0,E.jsxs)(p,{disabled:B||A.isPending,onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,E.jsx)(f,{className:`size-4`}),`Release`]}),subtitle:`Elastic IP Details`,title:V?`${F.AllocationId} (${V})`:F.AllocationId}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Elastic IP Information`}),(0,E.jsxs)(C.Content,{children:[(0,E.jsx)(w,{label:`Allocation ID`,value:F.AllocationId}),(0,E.jsx)(w,{label:`Public IP`,value:F.PublicIp}),(0,E.jsx)(w,{label:`Domain`,value:F.Domain}),(0,E.jsx)(w,{label:`Association ID`,value:F.AssociationId??`—`}),(0,E.jsx)(w,{label:`Instance ID`,value:F.InstanceId??`—`}),(0,E.jsx)(w,{label:`Private IP`,value:F.PrivateIpAddress??`—`})]})]}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Association`}),(0,E.jsx)(C.Content,{children:B?(0,E.jsx)(p,{disabled:k.isPending,onClick:z,size:`sm`,variant:`outline`,children:`Disassociate`}):(0,E.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,E.jsx)(`div`,{className:`flex-1`,children:(0,E.jsxs)(d,{onValueChange:e=>P(e??``),value:N,children:[(0,E.jsx)(u,{className:`w-full`,children:(0,E.jsx)(s,{placeholder:`Select an instance`})}),(0,E.jsx)(l,{children:I.map(e=>{let t=a(e.Tags);return(0,E.jsx)(c,{value:e.InstanceId??``,children:t?`${e.InstanceId} (${t})`:e.InstanceId},e.InstanceId)})})]})}),(0,E.jsx)(p,{disabled:!N||O.isPending,onClick:R,size:`sm`,children:`Associate`})]})})]})]}),(0,E.jsx)(S,{description:`Are you sure you want to release the Elastic IP "${F.AllocationId}" (${F.PublicIp})? This action cannot be undone.`,isPending:A.isPending,onConfirm:L,onOpenChange:M,open:j,title:`Release Elastic IP`})]})}export{D as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{G as m,L as h,n as g}from"./ec2.js";import{Ir as _,ct as v,gt as y,t as b}from"./index.js";import{t as x}from"./page-heading.js";import{t as S}from"./delete-confirmation-dialog.js";import{n as C,t as w}from"./detail-row.js";var T=t(n()),E=e();function D(){let{id:e}=b.useParams(),t=_(),{data:n}=i(v(e)),{data:D}=i(y),O=g(),k=h(),A=m(),[j,M]=(0,T.useState)(!1),[N,P]=(0,T.useState)(``),F=n.Addresses?.[0],I=D.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.State?.Name===`running`||e.State?.Name===`stopped`)??[],L=async()=>{try{await A.mutateAsync(e),t({to:`/ec2/describe-addresses`})}finally{M(!1)}},R=async()=>{N&&await O.mutateAsync({allocationId:e,instanceId:N})},z=async()=>{F?.AssociationId&&await k.mutateAsync(F.AssociationId)};if(!F?.AllocationId)return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`Elastic IP not found.`})]});let B=!!F.AssociationId,V=a(F.Tags);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(A.error??O.error??k.error)&&(0,E.jsx)(r,{error:A.error??O.error??k.error??void 0,msg:`Elastic IP action failed`}),(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsx)(x,{actions:(0,E.jsxs)(p,{disabled:B||A.isPending,onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,E.jsx)(f,{className:`size-4`}),`Release`]}),subtitle:`Elastic IP Details`,title:V?`${F.AllocationId} (${V})`:F.AllocationId}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Elastic IP Information`}),(0,E.jsxs)(C.Content,{children:[(0,E.jsx)(w,{label:`Allocation ID`,value:F.AllocationId}),(0,E.jsx)(w,{label:`Public IP`,value:F.PublicIp}),(0,E.jsx)(w,{label:`Domain`,value:F.Domain}),(0,E.jsx)(w,{label:`Association ID`,value:F.AssociationId??`—`}),(0,E.jsx)(w,{label:`Instance ID`,value:F.InstanceId??`—`}),(0,E.jsx)(w,{label:`Private IP`,value:F.PrivateIpAddress??`—`})]})]}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Association`}),(0,E.jsx)(C.Content,{children:B?(0,E.jsx)(p,{disabled:k.isPending,onClick:z,size:`sm`,variant:`outline`,children:`Disassociate`}):(0,E.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,E.jsx)(`div`,{className:`flex-1`,children:(0,E.jsxs)(d,{onValueChange:e=>P(e??``),value:N,children:[(0,E.jsx)(u,{className:`w-full`,children:(0,E.jsx)(s,{placeholder:`Select an instance`})}),(0,E.jsx)(l,{children:I.map(e=>{let t=a(e.Tags);return(0,E.jsx)(c,{value:e.InstanceId??``,children:t?`${e.InstanceId} (${t})`:e.InstanceId},e.InstanceId)})})]})}),(0,E.jsx)(p,{disabled:!N||O.isPending,onClick:R,size:`sm`,children:`Associate`})]})})]})]}),(0,E.jsx)(S,{description:`Are you sure you want to release the Elastic IP "${F.AllocationId}" (${F.PublicIp})? This action cannot be undone.`,isPending:A.isPending,onConfirm:L,onOpenChange:M,open:j,title:`Release Elastic IP`})]})}export{D as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id11.js b/spinifex/services/spinifexui/frontend/dist/assets/_id11.js index fd423f9db..90b5957f0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id11.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id11.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Vt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./copy.js";import{t as l}from"./trash-2.js";import{t as u}from"./button.js";import{j as d,l as f}from"./ec2.js";import{At as p,Ir as m,Rn as h,Tt as g,d as _}from"./index.js";import{t as v}from"./page-heading.js";import{a as y,t as b}from"./field.js";import{a as x,i as S,l as C,n as w,o as T,r as E,s as D,t as O}from"./alert-dialog.js";import{t as k}from"./delete-confirmation-dialog.js";import{n as A,t as j}from"./detail-row.js";import{t as M}from"./state-badge.js";var N=t(n()),P=e();function F(){let{id:e}=_.useParams(),t=m(),{data:n}=i(p(e)),{data:F}=i(g),I=n.Snapshots?.[0],L=d(),R=f(),[z,B]=(0,N.useState)(!1),[V,H]=(0,N.useState)(!1),[U,W]=(0,N.useState)(``),G=F.Regions?.[0]?.RegionName??`ap-southeast-2`,K=I?.State===`completed`,q=async()=>{try{await L.mutateAsync(e),t({to:`/ec2/describe-snapshots`})}finally{B(!1)}},J=async()=>{try{await R.mutateAsync({sourceSnapshotId:e,sourceRegion:G,description:U||void 0}),H(!1),W(``)}catch{}};if(!I?.SnapshotId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let Y=o(I.StartTime);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L.error&&(0,P.jsx)(r,{error:L.error,msg:`Failed to delete snapshot`}),R.error&&(0,P.jsx)(r,{error:R.error,msg:`Failed to copy snapshot`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(v,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(u,{disabled:!K,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(l,{className:`size-4`}),`Delete`]}),(0,P.jsxs)(u,{disabled:!K,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,P.jsx)(c,{className:`size-4`}),`Copy Snapshot`]}),(0,P.jsx)(M,{state:I.State})]}),subtitle:`Snapshot Details`,title:I.SnapshotId}),(0,P.jsxs)(A,{children:[(0,P.jsx)(A.Header,{children:`Snapshot Information`}),(0,P.jsxs)(A.Content,{children:[(0,P.jsx)(j,{label:`Snapshot ID`,value:I.SnapshotId}),(0,P.jsx)(j,{label:`Volume ID`,value:I.VolumeId?(0,P.jsx)(a,{className:`text-primary hover:underline`,params:{id:I.VolumeId},to:`/ec2/describe-volumes/$id`,children:I.VolumeId}):void 0}),(0,P.jsx)(j,{label:`Volume Size`,value:`${I.VolumeSize} GiB`}),(0,P.jsx)(j,{label:`State`,value:I.State}),(0,P.jsx)(j,{label:`Description`,value:I.Description}),(0,P.jsx)(j,{label:`Progress`,value:I.Progress}),(0,P.jsx)(j,{label:`Start Time`,value:Y}),(0,P.jsx)(j,{label:`Owner ID`,value:I.OwnerId}),(0,P.jsx)(j,{label:`Encrypted`,value:I.Encrypted?`Yes`:`No`})]})]})]}),(0,P.jsx)(k,{description:`Are you sure you want to delete the snapshot "${I.SnapshotId}"? This action cannot be undone.`,isPending:L.isPending,onConfirm:q,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,P.jsx)(O,{onOpenChange:H,open:V,children:(0,P.jsxs)(S,{children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(C,{children:`Copy Snapshot`}),(0,P.jsx)(x,{children:`Create a copy of this snapshot in the current region.`})]}),(0,P.jsxs)(b,{children:[(0,P.jsx)(y,{children:(0,P.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,P.jsx)(h,{id:`copyDescription`,onChange:e=>W(e.target.value),placeholder:`Description for the snapshot copy`,value:U})]}),(0,P.jsxs)(T,{children:[(0,P.jsx)(E,{children:`Cancel`}),(0,P.jsx)(w,{disabled:R.isPending,onClick:J,children:R.isPending?`Copying…`:`Copy Snapshot`})]})]})})]})}export{F as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Bt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./copy.js";import{t as l}from"./trash-2.js";import{t as u}from"./button.js";import{j as d,l as f}from"./ec2.js";import{At as p,Ir as m,Rn as h,Tt as g,d as _}from"./index.js";import{t as v}from"./page-heading.js";import{a as y,t as b}from"./field.js";import{a as x,i as S,l as C,n as w,o as T,r as E,s as D,t as O}from"./alert-dialog.js";import{t as k}from"./delete-confirmation-dialog.js";import{n as A,t as j}from"./detail-row.js";import{t as M}from"./state-badge.js";var N=t(n()),P=e();function F(){let{id:e}=_.useParams(),t=m(),{data:n}=i(p(e)),{data:F}=i(g),I=n.Snapshots?.[0],L=d(),R=f(),[z,B]=(0,N.useState)(!1),[V,H]=(0,N.useState)(!1),[U,W]=(0,N.useState)(``),G=F.Regions?.[0]?.RegionName??`ap-southeast-2`,K=I?.State===`completed`,q=async()=>{try{await L.mutateAsync(e),t({to:`/ec2/describe-snapshots`})}finally{B(!1)}},J=async()=>{try{await R.mutateAsync({sourceSnapshotId:e,sourceRegion:G,description:U||void 0}),H(!1),W(``)}catch{}};if(!I?.SnapshotId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let Y=o(I.StartTime);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L.error&&(0,P.jsx)(r,{error:L.error,msg:`Failed to delete snapshot`}),R.error&&(0,P.jsx)(r,{error:R.error,msg:`Failed to copy snapshot`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(v,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(u,{disabled:!K,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(l,{className:`size-4`}),`Delete`]}),(0,P.jsxs)(u,{disabled:!K,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,P.jsx)(c,{className:`size-4`}),`Copy Snapshot`]}),(0,P.jsx)(M,{state:I.State})]}),subtitle:`Snapshot Details`,title:I.SnapshotId}),(0,P.jsxs)(A,{children:[(0,P.jsx)(A.Header,{children:`Snapshot Information`}),(0,P.jsxs)(A.Content,{children:[(0,P.jsx)(j,{label:`Snapshot ID`,value:I.SnapshotId}),(0,P.jsx)(j,{label:`Volume ID`,value:I.VolumeId?(0,P.jsx)(a,{className:`text-primary hover:underline`,params:{id:I.VolumeId},to:`/ec2/describe-volumes/$id`,children:I.VolumeId}):void 0}),(0,P.jsx)(j,{label:`Volume Size`,value:`${I.VolumeSize} GiB`}),(0,P.jsx)(j,{label:`State`,value:I.State}),(0,P.jsx)(j,{label:`Description`,value:I.Description}),(0,P.jsx)(j,{label:`Progress`,value:I.Progress}),(0,P.jsx)(j,{label:`Start Time`,value:Y}),(0,P.jsx)(j,{label:`Owner ID`,value:I.OwnerId}),(0,P.jsx)(j,{label:`Encrypted`,value:I.Encrypted?`Yes`:`No`})]})]})]}),(0,P.jsx)(k,{description:`Are you sure you want to delete the snapshot "${I.SnapshotId}"? This action cannot be undone.`,isPending:L.isPending,onConfirm:q,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,P.jsx)(O,{onOpenChange:H,open:V,children:(0,P.jsxs)(S,{children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(C,{children:`Copy Snapshot`}),(0,P.jsx)(x,{children:`Create a copy of this snapshot in the current region.`})]}),(0,P.jsxs)(b,{children:[(0,P.jsx)(y,{children:(0,P.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,P.jsx)(h,{id:`copyDescription`,onChange:e=>W(e.target.value),placeholder:`Description for the snapshot copy`,value:U})]}),(0,P.jsxs)(T,{children:[(0,P.jsx)(E,{children:`Cancel`}),(0,P.jsx)(w,{disabled:R.isPending,onClick:J,children:R.isPending?`Copying…`:`Copy Snapshot`})]})]})})]})}export{F as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id12.js b/spinifex/services/spinifexui/frontend/dist/assets/_id12.js index 275bac0fe..99bb23fbf 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id12.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id12.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Wt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{M as u}from"./ec2.js";import{Ir as d,Mt as f,f as p}from"./index.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=p.useParams(),t=d(),{data:n}=i(f(e)),x=n.Subnets?.[0],S=u(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(e),t({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=o(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(r,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(l,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(c,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:x.State})]}),subtitle:`Subnet Details`,title:E?`${x.SubnetId} (${E})`:x.SubnetId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Subnet Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Subnet ID`,value:x.SubnetId}),(0,b.jsx)(_,{label:`VPC ID`,value:x.VpcId?(0,b.jsx)(a,{className:`text-primary hover:underline`,params:{id:x.VpcId},to:`/ec2/describe-vpcs/$id`,children:x.VpcId}):`—`}),(0,b.jsx)(_,{label:`State`,value:x.State}),(0,b.jsx)(_,{label:`CIDR Block`,value:x.CidrBlock}),(0,b.jsx)(_,{label:`Availability Zone`,value:x.AvailabilityZone}),(0,b.jsx)(_,{label:`Available IP Count`,value:x.AvailableIpAddressCount?.toString()}),(0,b.jsx)(_,{label:`Map Public IP on Launch`,value:x.MapPublicIpOnLaunch?`Yes`:`No`}),(0,b.jsx)(_,{label:`Default for AZ`,value:x.DefaultForAz?`Yes`:`No`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the subnet "${x.SubnetId}"? This action cannot be undone.`,isPending:S.isPending,onConfirm:T,onOpenChange:w,open:C,title:`Delete Subnet`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{M as u}from"./ec2.js";import{Ir as d,Mt as f,f as p}from"./index.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=p.useParams(),t=d(),{data:n}=i(f(e)),x=n.Subnets?.[0],S=u(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(e),t({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=o(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(r,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(l,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(c,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:x.State})]}),subtitle:`Subnet Details`,title:E?`${x.SubnetId} (${E})`:x.SubnetId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Subnet Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Subnet ID`,value:x.SubnetId}),(0,b.jsx)(_,{label:`VPC ID`,value:x.VpcId?(0,b.jsx)(a,{className:`text-primary hover:underline`,params:{id:x.VpcId},to:`/ec2/describe-vpcs/$id`,children:x.VpcId}):`—`}),(0,b.jsx)(_,{label:`State`,value:x.State}),(0,b.jsx)(_,{label:`CIDR Block`,value:x.CidrBlock}),(0,b.jsx)(_,{label:`Availability Zone`,value:x.AvailabilityZone}),(0,b.jsx)(_,{label:`Available IP Count`,value:x.AvailableIpAddressCount?.toString()}),(0,b.jsx)(_,{label:`Map Public IP on Launch`,value:x.MapPublicIpOnLaunch?`Yes`:`No`}),(0,b.jsx)(_,{label:`Default for AZ`,value:x.DefaultForAz?`Yes`:`No`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the subnet "${x.SubnetId}"? This action cannot be undone.`,isPending:S.isPending,onConfirm:T,onOpenChange:w,open:C,title:`Delete Subnet`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id13.js b/spinifex/services/spinifexui/frontend/dist/assets/_id13.js index d0633045e..55887910d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id13.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id13.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useQuery.js";import{t as o}from"./useSuspenseQuery.js";import{Rt as s,Wt as c}from"./auth.js";import{t as l}from"./back-link.js";import{t as u}from"./trash-2.js";import{t as d}from"./button.js";import{_ as f,c as p,l as m,m as h,p as g}from"./elbv2.js";import{B as _,H as v,Ir as y,Rn as b,V as x,W as S,gt as C,p as w}from"./index.js";import{t as T}from"./page-heading.js";import{a as E,i as D,l as O,n as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{i as L,n as R,t as z}from"./tags-editor.js";import{i as B,n as V,r as H,t as U}from"./tabs.js";var W=r(),G=t(n(),1),K=e();function q(e){let t=e.trim();if(t===``)return;let n=Number(t);if(!(!Number.isInteger(n)||n<1||n>65535))return n}function J(e){let t=(0,W.c)(36),{open:n,onOpenChange:r,instances:i,defaultPort:a,isPending:o,onConfirm:s}=e,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={},t[0]=l):l=t[0];let[u,d]=(0,G.useState)(l),[f,p]=(0,G.useState)(),m,h;t[1]===n?(m=t[2],h=t[3]):(m=()=>{n||(d({}),p(void 0))},h=[n],t[1]=n,t[2]=m,t[3]=h),(0,G.useEffect)(m,h);let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{d(t=>{let n=t[e];return n?.checked?{...t,[e]:{...n,checked:!1}}:{...t,[e]:{checked:!0,port:n?.port??``}}})},t[4]=g):g=t[4];let _=g,v;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(e,t)=>{d(n=>({...n,[e]:{checked:n[e]?.checked??!0,port:t}}))},t[5]=v):v=t[5];let y=v,x;t[6]!==s||t[7]!==u?(x=()=>{let e=Object.entries(u).filter(Y);if(e.length===0){p(`Select at least one instance.`);return}let t=[];for(let[n,r]of e){if(r.port.trim()===``){t.push({id:n});continue}let e=q(r.port);if(e===void 0){p(`Port for ${n} must be an integer between 1 and 65535.`);return}t.push({id:n,port:e})}p(void 0),s(t)},t[6]=s,t[7]=u,t[8]=x):x=t[8];let S=x,C;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,K.jsx)(O,{children:`Register targets`}),t[9]=C):C=t[9];let w;t[10]===a?w=t[11]:(w=(0,K.jsxs)(M,{children:[C,(0,K.jsxs)(E,{children:[`Select instances to register. Leave port blank to use the target group port (`,a,`).`]})]}),t[10]=a,t[11]=w);let T;t[12]!==a||t[13]!==i||t[14]!==u?(T=i.length===0?(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances available in this VPC.`}):(0,K.jsx)(`div`,{className:`max-h-72 space-y-1 overflow-y-auto`,children:i.map(e=>{let t=e.InstanceId??``,n=u[t],r=n?.checked??!1,i=c(e.Tags);return(0,K.jsxs)(`div`,{className:`flex items-center gap-2 rounded px-1 py-1 text-xs hover:bg-accent`,children:[(0,K.jsx)(`input`,{"aria-label":`Register target ${t}`,checked:r,id:`register-target-${t}`,onChange:()=>_(t),type:`checkbox`}),(0,K.jsxs)(`label`,{className:`flex flex-1 items-center gap-2`,htmlFor:`register-target-${t}`,children:[(0,K.jsx)(`span`,{className:`font-mono`,children:t}),i&&(0,K.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,i,`)`]}),(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:e.State?.Name??``})]}),r&&(0,K.jsx)(b,{"aria-label":`Port override for ${t}`,className:`w-24`,onChange:e=>y(t,e.target.value),placeholder:String(a),value:n?.port??``})]},t)})}),t[12]=a,t[13]=i,t[14]=u,t[15]=T):T=t[15];let P;t[16]===f?P=t[17]:(P=f&&(0,K.jsx)(`p`,{className:`text-xs text-destructive`,role:`alert`,children:f}),t[16]=f,t[17]=P);let F;t[18]===o?F=t[19]:(F=(0,K.jsx)(j,{disabled:o,children:`Cancel`}),t[18]=o,t[19]=F);let I=o?`Registering…`:`Register`,L;t[20]!==S||t[21]!==o||t[22]!==I?(L=(0,K.jsx)(k,{disabled:o,onClick:S,children:I}),t[20]=S,t[21]=o,t[22]=I,t[23]=L):L=t[23];let R;t[24]!==F||t[25]!==L?(R=(0,K.jsxs)(A,{children:[F,L]}),t[24]=F,t[25]=L,t[26]=R):R=t[26];let z;t[27]!==P||t[28]!==R||t[29]!==w||t[30]!==T?(z=(0,K.jsxs)(D,{className:`sm:max-w-lg`,children:[w,T,P,R]}),t[27]=P,t[28]=R,t[29]=w,t[30]=T,t[31]=z):z=t[31];let B;return t[32]!==r||t[33]!==n||t[34]!==z?(B=(0,K.jsx)(N,{onOpenChange:r,open:n,children:z}),t[32]=r,t[33]=n,t[34]=z,t[35]=B):B=t[35],B}function Y(e){let[,t]=e;return t.checked&&t!==void 0}var X=5e3,Z=new Set([`healthy`]),Q=new Set([`unhealthy`,`unavailable`]),$=new Set([`initial`,`draining`]);function ee(e){return e&&Z.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&Q.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&$.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function te(e){return`${e.Id??``}:${e.Port??``}`}function ne({targetGroupArn:e,vpcId:t,defaultPort:n,isActive:r}){let{data:c}=o(C),{data:l,isLoading:f,error:p}=a({...S(e),refetchInterval:r?X:!1,refetchIntervalInBackground:!1}),g=h(),_=m(),[v,y]=(0,G.useState)(!1),[b,x]=(0,G.useState)(),w=(c.Reservations?.flatMap(e=>e.Instances??[])??[]).filter(e=>e.VpcId===t&&e.State?.Name!==`terminated`),T=l?.TargetHealthDescriptions??[];return(0,K.jsxs)(`div`,{className:`space-y-3`,children:[g.error&&(0,K.jsx)(i,{error:g.error,msg:`Failed to register targets`}),_.error&&(0,K.jsx)(i,{error:_.error,msg:`Failed to deregister target`}),p&&(0,K.jsx)(i,{error:p,msg:`Failed to load target health`}),(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:f?`Loading target health…`:`${T.length} target${T.length===1?``:`s`}`}),(0,K.jsx)(d,{onClick:()=>y(!0),size:`sm`,children:`Register targets`})]}),T.length===0?(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`No targets registered.`}):(0,K.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,K.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`AZ`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Reason`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Description`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,K.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,K.jsx)(`tbody`,{children:T.map(e=>{let t=e.Target??{Id:``},n=e.TargetHealth?.State;return(0,K.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,K.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t.Id??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:t.Port??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:t.AvailabilityZone??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:(0,K.jsx)(`span`,{className:s(`rounded-full px-2 py-0.5 text-xs`,ee(n)),children:n??`unknown`})}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Reason??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Description??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,K.jsx)(d,{"aria-label":`Deregister ${t.Id}`,onClick:()=>x(t),size:`sm`,variant:`ghost`,children:(0,K.jsx)(u,{className:`size-4`})})})]},te(t))})})]})}),(0,K.jsx)(J,{defaultPort:n,instances:w,isPending:g.isPending,onConfirm:async t=>{try{await g.mutateAsync({targetGroupArn:e,targets:t}),y(!1)}catch{}},onOpenChange:y,open:v}),(0,K.jsx)(P,{description:b?`Deregister ${b.Id}${b.Port?`:${b.Port}`:``} from this target group?`:``,isPending:_.isPending,onConfirm:async()=>{if(b?.Id)try{await _.mutateAsync({targetGroupArn:e,targets:[{id:b.Id,port:b.Port}]})}finally{x(void 0)}},onOpenChange:e=>!e&&x(void 0),open:b!==void 0,title:`Deregister target`})]})}function re({arn:e}){let t=y(),{data:n}=o(v(e)),{data:r}=o(x(e)),{data:a}=o(_([e])),s=p(),c=g(),m=f(),[h,b]=(0,G.useState)(!1),[S,C]=(0,G.useState)(`overview`),w=n.TargetGroups?.[0];if(!w?.TargetGroupArn)return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(l,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`Target group not found.`})]});let E=async()=>{try{await s.mutateAsync(e),t({to:`/ec2/describe-target-groups`})}finally{b(!1)}},D=r.Attributes??[],O=a?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[];return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(l,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),s.error&&(0,K.jsx)(i,{error:s.error,msg:`Failed to delete target group`}),(0,K.jsxs)(`div`,{className:`space-y-6`,children:[(0,K.jsx)(T,{actions:(0,K.jsxs)(d,{onClick:()=>b(!0),size:`sm`,variant:`destructive`,children:[(0,K.jsx)(u,{className:`size-4`}),`Delete`]}),subtitle:`Target Group Details`,title:w.TargetGroupName??w.TargetGroupArn}),(0,K.jsxs)(U,{onValueChange:C,value:S,children:[(0,K.jsxs)(V,{children:[(0,K.jsx)(B,{value:`overview`,children:`Overview`}),(0,K.jsx)(B,{value:`targets`,children:`Targets`}),(0,K.jsx)(B,{value:`health-checks`,children:`Health checks`}),(0,K.jsx)(B,{value:`attributes`,children:`Attributes`}),(0,K.jsx)(B,{value:`tags`,children:`Tags`})]}),(0,K.jsx)(H,{value:`overview`,children:(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Target group`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`ARN`,value:w.TargetGroupArn}),(0,K.jsx)(I,{label:`Protocol`,value:w.Protocol}),(0,K.jsx)(I,{label:`Port`,value:w.Port?.toString()}),(0,K.jsx)(I,{label:`VPC`,value:w.VpcId}),(0,K.jsx)(I,{label:`Target type`,value:w.TargetType}),(0,K.jsx)(I,{label:`Protocol version`,value:w.ProtocolVersion}),(0,K.jsx)(I,{label:`IP address type`,value:w.IpAddressType})]})]})}),(0,K.jsx)(H,{value:`targets`,children:(0,K.jsx)(ne,{defaultPort:w.Port??80,isActive:S===`targets`,targetGroupArn:w.TargetGroupArn,vpcId:w.VpcId})}),(0,K.jsxs)(H,{value:`health-checks`,children:[(0,K.jsx)(`p`,{className:`mb-3 text-sm text-muted-foreground`,children:`Health-check settings are set at creation time. Editing lands in a future slice (mulga-948).`}),(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Health check`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`Enabled`,value:w.HealthCheckEnabled===void 0?void 0:String(w.HealthCheckEnabled)}),(0,K.jsx)(I,{label:`Protocol`,value:w.HealthCheckProtocol}),(0,K.jsx)(I,{label:`Path`,value:w.HealthCheckPath}),(0,K.jsx)(I,{label:`Port`,value:w.HealthCheckPort}),(0,K.jsx)(I,{label:`Interval (s)`,value:w.HealthCheckIntervalSeconds?.toString()}),(0,K.jsx)(I,{label:`Timeout (s)`,value:w.HealthCheckTimeoutSeconds?.toString()}),(0,K.jsx)(I,{label:`Healthy threshold`,value:w.HealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Unhealthy threshold`,value:w.UnhealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Matcher (HTTP codes)`,value:w.Matcher?.HttpCode??w.Matcher?.GrpcCode})]})]})]}),(0,K.jsx)(H,{value:`attributes`,children:(0,K.jsx)(R,{attributes:D,error:c.error,isPending:c.isPending,isSuccess:c.isSuccess,onSubmit:t=>{c.mutate({targetGroupArn:e,attributes:t})},specs:L})}),(0,K.jsx)(H,{value:`tags`,children:(0,K.jsx)(z,{error:m.error,isPending:m.isPending,isSuccess:m.isSuccess,onSubmit:t=>m.mutate({resourceArn:e,tags:t,initialKeys:O.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:O})})]})]}),(0,K.jsx)(P,{description:`Are you sure you want to delete target group "${w.TargetGroupName??w.TargetGroupArn}"? This action cannot be undone.`,isPending:s.isPending,onConfirm:E,onOpenChange:b,open:h,title:`Delete Target Group`})]})}function ie(){let e=(0,W.c)(2),{id:t}=w.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,K.jsx)(re,{arn:n}),e[0]=n,e[1]=r),r}export{ie as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useQuery.js";import{t as o}from"./useSuspenseQuery.js";import{Lt as s,Ut as c}from"./auth.js";import{t as l}from"./back-link.js";import{t as u}from"./trash-2.js";import{t as d}from"./button.js";import{_ as f,c as p,l as m,m as h,p as g}from"./elbv2.js";import{B as _,H as v,Ir as y,Rn as b,V as x,W as S,gt as C,p as w}from"./index.js";import{t as T}from"./page-heading.js";import{a as E,i as D,l as O,n as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{i as L,n as R,t as z}from"./tags-editor.js";import{i as B,n as V,r as H,t as U}from"./tabs.js";var W=r(),G=t(n(),1),K=e();function q(e){let t=e.trim();if(t===``)return;let n=Number(t);if(!(!Number.isInteger(n)||n<1||n>65535))return n}function J(e){let t=(0,W.c)(36),{open:n,onOpenChange:r,instances:i,defaultPort:a,isPending:o,onConfirm:s}=e,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={},t[0]=l):l=t[0];let[u,d]=(0,G.useState)(l),[f,p]=(0,G.useState)(),m,h;t[1]===n?(m=t[2],h=t[3]):(m=()=>{n||(d({}),p(void 0))},h=[n],t[1]=n,t[2]=m,t[3]=h),(0,G.useEffect)(m,h);let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{d(t=>{let n=t[e];return n?.checked?{...t,[e]:{...n,checked:!1}}:{...t,[e]:{checked:!0,port:n?.port??``}}})},t[4]=g):g=t[4];let _=g,v;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(e,t)=>{d(n=>({...n,[e]:{checked:n[e]?.checked??!0,port:t}}))},t[5]=v):v=t[5];let y=v,x;t[6]!==s||t[7]!==u?(x=()=>{let e=Object.entries(u).filter(Y);if(e.length===0){p(`Select at least one instance.`);return}let t=[];for(let[n,r]of e){if(r.port.trim()===``){t.push({id:n});continue}let e=q(r.port);if(e===void 0){p(`Port for ${n} must be an integer between 1 and 65535.`);return}t.push({id:n,port:e})}p(void 0),s(t)},t[6]=s,t[7]=u,t[8]=x):x=t[8];let S=x,C;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,K.jsx)(O,{children:`Register targets`}),t[9]=C):C=t[9];let w;t[10]===a?w=t[11]:(w=(0,K.jsxs)(M,{children:[C,(0,K.jsxs)(E,{children:[`Select instances to register. Leave port blank to use the target group port (`,a,`).`]})]}),t[10]=a,t[11]=w);let T;t[12]!==a||t[13]!==i||t[14]!==u?(T=i.length===0?(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances available in this VPC.`}):(0,K.jsx)(`div`,{className:`max-h-72 space-y-1 overflow-y-auto`,children:i.map(e=>{let t=e.InstanceId??``,n=u[t],r=n?.checked??!1,i=c(e.Tags);return(0,K.jsxs)(`div`,{className:`flex items-center gap-2 rounded px-1 py-1 text-xs hover:bg-accent`,children:[(0,K.jsx)(`input`,{"aria-label":`Register target ${t}`,checked:r,id:`register-target-${t}`,onChange:()=>_(t),type:`checkbox`}),(0,K.jsxs)(`label`,{className:`flex flex-1 items-center gap-2`,htmlFor:`register-target-${t}`,children:[(0,K.jsx)(`span`,{className:`font-mono`,children:t}),i&&(0,K.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,i,`)`]}),(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:e.State?.Name??``})]}),r&&(0,K.jsx)(b,{"aria-label":`Port override for ${t}`,className:`w-24`,onChange:e=>y(t,e.target.value),placeholder:String(a),value:n?.port??``})]},t)})}),t[12]=a,t[13]=i,t[14]=u,t[15]=T):T=t[15];let P;t[16]===f?P=t[17]:(P=f&&(0,K.jsx)(`p`,{className:`text-xs text-destructive`,role:`alert`,children:f}),t[16]=f,t[17]=P);let F;t[18]===o?F=t[19]:(F=(0,K.jsx)(j,{disabled:o,children:`Cancel`}),t[18]=o,t[19]=F);let I=o?`Registering…`:`Register`,L;t[20]!==S||t[21]!==o||t[22]!==I?(L=(0,K.jsx)(k,{disabled:o,onClick:S,children:I}),t[20]=S,t[21]=o,t[22]=I,t[23]=L):L=t[23];let R;t[24]!==F||t[25]!==L?(R=(0,K.jsxs)(A,{children:[F,L]}),t[24]=F,t[25]=L,t[26]=R):R=t[26];let z;t[27]!==P||t[28]!==R||t[29]!==w||t[30]!==T?(z=(0,K.jsxs)(D,{className:`sm:max-w-lg`,children:[w,T,P,R]}),t[27]=P,t[28]=R,t[29]=w,t[30]=T,t[31]=z):z=t[31];let B;return t[32]!==r||t[33]!==n||t[34]!==z?(B=(0,K.jsx)(N,{onOpenChange:r,open:n,children:z}),t[32]=r,t[33]=n,t[34]=z,t[35]=B):B=t[35],B}function Y(e){let[,t]=e;return t.checked&&t!==void 0}var X=5e3,Z=new Set([`healthy`]),Q=new Set([`unhealthy`,`unavailable`]),$=new Set([`initial`,`draining`]);function ee(e){return e&&Z.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&Q.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&$.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function te(e){return`${e.Id??``}:${e.Port??``}`}function ne({targetGroupArn:e,vpcId:t,defaultPort:n,isActive:r}){let{data:c}=o(C),{data:l,isLoading:f,error:p}=a({...S(e),refetchInterval:r?X:!1,refetchIntervalInBackground:!1}),g=h(),_=m(),[v,y]=(0,G.useState)(!1),[b,x]=(0,G.useState)(),w=(c.Reservations?.flatMap(e=>e.Instances??[])??[]).filter(e=>e.VpcId===t&&e.State?.Name!==`terminated`),T=l?.TargetHealthDescriptions??[];return(0,K.jsxs)(`div`,{className:`space-y-3`,children:[g.error&&(0,K.jsx)(i,{error:g.error,msg:`Failed to register targets`}),_.error&&(0,K.jsx)(i,{error:_.error,msg:`Failed to deregister target`}),p&&(0,K.jsx)(i,{error:p,msg:`Failed to load target health`}),(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:f?`Loading target health…`:`${T.length} target${T.length===1?``:`s`}`}),(0,K.jsx)(d,{onClick:()=>y(!0),size:`sm`,children:`Register targets`})]}),T.length===0?(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`No targets registered.`}):(0,K.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,K.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`AZ`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Reason`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Description`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,K.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,K.jsx)(`tbody`,{children:T.map(e=>{let t=e.Target??{Id:``},n=e.TargetHealth?.State;return(0,K.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,K.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t.Id??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:t.Port??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:t.AvailabilityZone??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:(0,K.jsx)(`span`,{className:s(`rounded-full px-2 py-0.5 text-xs`,ee(n)),children:n??`unknown`})}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Reason??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Description??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,K.jsx)(d,{"aria-label":`Deregister ${t.Id}`,onClick:()=>x(t),size:`sm`,variant:`ghost`,children:(0,K.jsx)(u,{className:`size-4`})})})]},te(t))})})]})}),(0,K.jsx)(J,{defaultPort:n,instances:w,isPending:g.isPending,onConfirm:async t=>{try{await g.mutateAsync({targetGroupArn:e,targets:t}),y(!1)}catch{}},onOpenChange:y,open:v}),(0,K.jsx)(P,{description:b?`Deregister ${b.Id}${b.Port?`:${b.Port}`:``} from this target group?`:``,isPending:_.isPending,onConfirm:async()=>{if(b?.Id)try{await _.mutateAsync({targetGroupArn:e,targets:[{id:b.Id,port:b.Port}]})}finally{x(void 0)}},onOpenChange:e=>!e&&x(void 0),open:b!==void 0,title:`Deregister target`})]})}function re({arn:e}){let t=y(),{data:n}=o(v(e)),{data:r}=o(x(e)),{data:a}=o(_([e])),s=p(),c=g(),m=f(),[h,b]=(0,G.useState)(!1),[S,C]=(0,G.useState)(`overview`),w=n.TargetGroups?.[0];if(!w?.TargetGroupArn)return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(l,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`Target group not found.`})]});let E=async()=>{try{await s.mutateAsync(e),t({to:`/ec2/describe-target-groups`})}finally{b(!1)}},D=r.Attributes??[],O=a?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[];return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(l,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),s.error&&(0,K.jsx)(i,{error:s.error,msg:`Failed to delete target group`}),(0,K.jsxs)(`div`,{className:`space-y-6`,children:[(0,K.jsx)(T,{actions:(0,K.jsxs)(d,{onClick:()=>b(!0),size:`sm`,variant:`destructive`,children:[(0,K.jsx)(u,{className:`size-4`}),`Delete`]}),subtitle:`Target Group Details`,title:w.TargetGroupName??w.TargetGroupArn}),(0,K.jsxs)(U,{onValueChange:C,value:S,children:[(0,K.jsxs)(V,{children:[(0,K.jsx)(B,{value:`overview`,children:`Overview`}),(0,K.jsx)(B,{value:`targets`,children:`Targets`}),(0,K.jsx)(B,{value:`health-checks`,children:`Health checks`}),(0,K.jsx)(B,{value:`attributes`,children:`Attributes`}),(0,K.jsx)(B,{value:`tags`,children:`Tags`})]}),(0,K.jsx)(H,{value:`overview`,children:(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Target group`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`ARN`,value:w.TargetGroupArn}),(0,K.jsx)(I,{label:`Protocol`,value:w.Protocol}),(0,K.jsx)(I,{label:`Port`,value:w.Port?.toString()}),(0,K.jsx)(I,{label:`VPC`,value:w.VpcId}),(0,K.jsx)(I,{label:`Target type`,value:w.TargetType}),(0,K.jsx)(I,{label:`Protocol version`,value:w.ProtocolVersion}),(0,K.jsx)(I,{label:`IP address type`,value:w.IpAddressType})]})]})}),(0,K.jsx)(H,{value:`targets`,children:(0,K.jsx)(ne,{defaultPort:w.Port??80,isActive:S===`targets`,targetGroupArn:w.TargetGroupArn,vpcId:w.VpcId})}),(0,K.jsxs)(H,{value:`health-checks`,children:[(0,K.jsx)(`p`,{className:`mb-3 text-sm text-muted-foreground`,children:`Health-check settings are set at creation time. Editing lands in a future slice (mulga-948).`}),(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Health check`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`Enabled`,value:w.HealthCheckEnabled===void 0?void 0:String(w.HealthCheckEnabled)}),(0,K.jsx)(I,{label:`Protocol`,value:w.HealthCheckProtocol}),(0,K.jsx)(I,{label:`Path`,value:w.HealthCheckPath}),(0,K.jsx)(I,{label:`Port`,value:w.HealthCheckPort}),(0,K.jsx)(I,{label:`Interval (s)`,value:w.HealthCheckIntervalSeconds?.toString()}),(0,K.jsx)(I,{label:`Timeout (s)`,value:w.HealthCheckTimeoutSeconds?.toString()}),(0,K.jsx)(I,{label:`Healthy threshold`,value:w.HealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Unhealthy threshold`,value:w.UnhealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Matcher (HTTP codes)`,value:w.Matcher?.HttpCode??w.Matcher?.GrpcCode})]})]})]}),(0,K.jsx)(H,{value:`attributes`,children:(0,K.jsx)(R,{attributes:D,error:c.error,isPending:c.isPending,isSuccess:c.isSuccess,onSubmit:t=>{c.mutate({targetGroupArn:e,attributes:t})},specs:L})}),(0,K.jsx)(H,{value:`tags`,children:(0,K.jsx)(z,{error:m.error,isPending:m.isPending,isSuccess:m.isSuccess,onSubmit:t=>m.mutate({resourceArn:e,tags:t,initialKeys:O.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:O})})]})]}),(0,K.jsx)(P,{description:`Are you sure you want to delete target group "${w.TargetGroupName??w.TargetGroupArn}"? This action cannot be undone.`,isPending:s.isPending,onConfirm:E,onOpenChange:b,open:h,title:`Delete Target Group`})]})}function ie(){let e=(0,W.c)(2),{id:t}=w.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,K.jsx)(re,{arn:n}),e[0]=n,e[1]=r),r}export{ie as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id14.js b/spinifex/services/spinifexui/frontend/dist/assets/_id14.js index 17c46352d..a4c452c9b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id14.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id14.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Vt as o,Wt as ee}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as te,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{n as p,t as m}from"./button.js";import{I as h,N as g,o as _}from"./ec2.js";import{Ir as v,Mr as ne,Nr as y,Pt as re,Rn as b,gt as x,m as ie}from"./index.js";import{t as S}from"./page-heading.js";import{a as C,t as w}from"./field.js";import{a as T,i as E,l as D,n as O,o as k,r as A,s as j,t as M}from"./alert-dialog.js";import{t as ae}from"./delete-confirmation-dialog.js";import{n as N,t as P}from"./detail-row.js";import{t as F}from"./state-badge.js";var I=y(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),L=y(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),R=t(n()),z=e();function B(){let{id:e}=ie.useParams(),t=v(),{data:n}=i(re(e)),{data:y}=i(x),B=n.Volumes?.[0],V=g(),H=_(),U=h(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=y.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=B?.State===`available`&&(!B.Attachments||B.Attachments.length===0),$=()=>G(null);return B?.VolumeId?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(r,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(r,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(r,{error:U.error,msg:`Failed to detach volume`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(S,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(m,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(f,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(a,{className:p({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(m,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(m,{onClick:()=>G(`attach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(L,{className:`size-4`}),`Attach`]}):null,B.Attachments&&B.Attachments.length>0?(0,z.jsxs)(m,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(a,{className:p({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(ne,{className:`size-4`}),`Create Snapshot`]}),(0,z.jsx)(F,{state:B.State})]}),subtitle:`Volume Details`,title:B.VolumeId}),(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Volume Information`}),(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Volume ID`,value:B.VolumeId}),(0,z.jsx)(P,{label:`Size`,value:`${B.Size} GiB`}),(0,z.jsx)(P,{label:`Volume Type`,value:B.VolumeType}),(0,z.jsx)(P,{label:`State`,value:B.State}),(0,z.jsx)(P,{label:`Availability Zone`,value:B.AvailabilityZone}),(0,z.jsx)(P,{label:`Create Time`,value:o(B.CreateTime)}),(0,z.jsx)(P,{label:`Encrypted`,value:B.Encrypted?`Yes`:`No`}),(0,z.jsx)(P,{label:`KMS Key ID`,value:B.KmsKeyId})]})]}),B.Attachments&&B.Attachments.length>0&&(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Attachments`}),B.Attachments.map(e=>(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Instance ID`,value:e.InstanceId?(0,z.jsx)(a,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,z.jsx)(P,{label:`Device`,value:e.Device}),(0,z.jsx)(P,{label:`Status`,value:e.State}),(0,z.jsx)(P,{label:`Attach Time`,value:o(e.AttachTime)}),(0,z.jsx)(P,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,z.jsx)(ae,{description:`Are you sure you want to delete the volume "${B.VolumeId}"? This action cannot be undone.`,isPending:V.isPending,onConfirm:async()=>{try{await V.mutateAsync(e),t({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Attach Volume`}),(0,z.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,z.jsxs)(d,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(u,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(c,{placeholder:`Select an instance`})}),(0,z.jsx)(l,{children:oe.map(e=>{let t=ee(e.Tags);return(0,z.jsxs)(te,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,z.jsx)(b,{id:`attachDevice`,onChange:e=>Y(e.target.value),placeholder:`/dev/sdf`,value:J})]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:H.isPending||!K,onClick:async()=>{try{await H.mutateAsync({volumeId:e,instanceId:K,device:J||void 0}),$(),q(``),Y(``)}catch{}},children:H.isPending?`Attaching…`:`Attach`})]})]})}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Detach Volume`}),(0,z.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,B.VolumeId,`" from instance "`,B.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(`input`,{"aria-label":`Force detach`,checked:X,onChange:e=>Z(e.target.checked),type:`checkbox`}),`Force detach`]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:U.isPending,onClick:async()=>{let t=B?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:e,instanceId:t??void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{B as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Bt as o,Ut as ee}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as te,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{n as p,t as m}from"./button.js";import{I as h,N as g,o as _}from"./ec2.js";import{Ir as v,Mr as ne,Nr as y,Pt as re,Rn as b,gt as x,m as ie}from"./index.js";import{t as S}from"./page-heading.js";import{a as C,t as w}from"./field.js";import{a as T,i as E,l as D,n as O,o as k,r as A,s as j,t as M}from"./alert-dialog.js";import{t as ae}from"./delete-confirmation-dialog.js";import{n as N,t as P}from"./detail-row.js";import{t as F}from"./state-badge.js";var I=y(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),L=y(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),R=t(n()),z=e();function B(){let{id:e}=ie.useParams(),t=v(),{data:n}=i(re(e)),{data:y}=i(x),B=n.Volumes?.[0],V=g(),H=_(),U=h(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=y.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=B?.State===`available`&&(!B.Attachments||B.Attachments.length===0),$=()=>G(null);return B?.VolumeId?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(r,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(r,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(r,{error:U.error,msg:`Failed to detach volume`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(S,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(m,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(f,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(a,{className:p({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(m,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(m,{onClick:()=>G(`attach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(L,{className:`size-4`}),`Attach`]}):null,B.Attachments&&B.Attachments.length>0?(0,z.jsxs)(m,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(a,{className:p({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(ne,{className:`size-4`}),`Create Snapshot`]}),(0,z.jsx)(F,{state:B.State})]}),subtitle:`Volume Details`,title:B.VolumeId}),(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Volume Information`}),(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Volume ID`,value:B.VolumeId}),(0,z.jsx)(P,{label:`Size`,value:`${B.Size} GiB`}),(0,z.jsx)(P,{label:`Volume Type`,value:B.VolumeType}),(0,z.jsx)(P,{label:`State`,value:B.State}),(0,z.jsx)(P,{label:`Availability Zone`,value:B.AvailabilityZone}),(0,z.jsx)(P,{label:`Create Time`,value:o(B.CreateTime)}),(0,z.jsx)(P,{label:`Encrypted`,value:B.Encrypted?`Yes`:`No`}),(0,z.jsx)(P,{label:`KMS Key ID`,value:B.KmsKeyId})]})]}),B.Attachments&&B.Attachments.length>0&&(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Attachments`}),B.Attachments.map(e=>(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Instance ID`,value:e.InstanceId?(0,z.jsx)(a,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,z.jsx)(P,{label:`Device`,value:e.Device}),(0,z.jsx)(P,{label:`Status`,value:e.State}),(0,z.jsx)(P,{label:`Attach Time`,value:o(e.AttachTime)}),(0,z.jsx)(P,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,z.jsx)(ae,{description:`Are you sure you want to delete the volume "${B.VolumeId}"? This action cannot be undone.`,isPending:V.isPending,onConfirm:async()=>{try{await V.mutateAsync(e),t({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Attach Volume`}),(0,z.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,z.jsxs)(d,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(u,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(c,{placeholder:`Select an instance`})}),(0,z.jsx)(l,{children:oe.map(e=>{let t=ee(e.Tags);return(0,z.jsxs)(te,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,z.jsx)(b,{id:`attachDevice`,onChange:e=>Y(e.target.value),placeholder:`/dev/sdf`,value:J})]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:H.isPending||!K,onClick:async()=>{try{await H.mutateAsync({volumeId:e,instanceId:K,device:J||void 0}),$(),q(``),Y(``)}catch{}},children:H.isPending?`Attaching…`:`Attach`})]})]})}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Detach Volume`}),(0,z.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,B.VolumeId,`" from instance "`,B.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(`input`,{"aria-label":`Force detach`,checked:X,onChange:e=>Z(e.target.checked),type:`checkbox`}),`Force detach`]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:U.isPending,onClick:async()=>{let t=B?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:e,instanceId:t??void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{B as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id16.js b/spinifex/services/spinifexui/frontend/dist/assets/_id16.js index b62b4d203..ee4ef7dcc 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id16.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id16.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Wt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{P as u}from"./ec2.js";import{Ir as d,It as f,Nt as p,g as m}from"./index.js";import{t as h}from"./page-heading.js";import{t as g}from"./delete-confirmation-dialog.js";import{n as _,t as v}from"./detail-row.js";import{t as y}from"./state-badge.js";var b=t(n()),x=e();function S(){let{id:e}=m.useParams(),t=d(),{data:n}=i(f(e)),{data:S}=i(p),C=n.Vpcs?.[0],w=u(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(t=>t.VpcId===e)??[],O=async()=>{try{await w.mutateAsync(e),t({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=o(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(r,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(l,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(c,{className:`size-4`}),`Delete`]}),(0,x.jsx)(y,{state:C.State})]}),subtitle:`VPC Details`,title:k?`${C.VpcId} (${k})`:C.VpcId}),(0,x.jsxs)(_,{children:[(0,x.jsx)(_.Header,{children:`VPC Information`}),(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`VPC ID`,value:C.VpcId}),(0,x.jsx)(v,{label:`State`,value:C.State}),(0,x.jsx)(v,{label:`CIDR Block`,value:C.CidrBlock}),(0,x.jsx)(v,{label:`Is Default`,value:C.IsDefault?`Yes`:`No`}),(0,x.jsx)(v,{label:`DHCP Options ID`,value:C.DhcpOptionsId}),(0,x.jsx)(v,{label:`Instance Tenancy`,value:C.InstanceTenancy}),(0,x.jsx)(v,{label:`Owner ID`,value:C.OwnerId})]})]}),D.length>0&&(0,x.jsxs)(_,{children:[(0,x.jsxs)(_.Header,{children:[`Subnets (`,D.length,`)`]}),D.map(e=>e.SubnetId?(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`Subnet ID`,value:(0,x.jsx)(a,{className:`text-primary hover:underline`,params:{id:e.SubnetId},to:`/ec2/describe-subnets/$id`,children:e.SubnetId})}),(0,x.jsx)(v,{label:`CIDR Block`,value:e.CidrBlock}),(0,x.jsx)(v,{label:`Availability Zone`,value:e.AvailabilityZone}),(0,x.jsx)(v,{label:`State`,value:e.State})]},e.SubnetId):null)]})]}),(0,x.jsx)(g,{description:`Are you sure you want to delete the VPC "${C.VpcId}"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.`,isPending:w.isPending,onConfirm:O,onOpenChange:E,open:T,title:`Delete VPC`})]})}export{S as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{P as u}from"./ec2.js";import{Ir as d,It as f,Nt as p,g as m}from"./index.js";import{t as h}from"./page-heading.js";import{t as g}from"./delete-confirmation-dialog.js";import{n as _,t as v}from"./detail-row.js";import{t as y}from"./state-badge.js";var b=t(n()),x=e();function S(){let{id:e}=m.useParams(),t=d(),{data:n}=i(f(e)),{data:S}=i(p),C=n.Vpcs?.[0],w=u(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(t=>t.VpcId===e)??[],O=async()=>{try{await w.mutateAsync(e),t({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=o(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(r,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(l,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(c,{className:`size-4`}),`Delete`]}),(0,x.jsx)(y,{state:C.State})]}),subtitle:`VPC Details`,title:k?`${C.VpcId} (${k})`:C.VpcId}),(0,x.jsxs)(_,{children:[(0,x.jsx)(_.Header,{children:`VPC Information`}),(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`VPC ID`,value:C.VpcId}),(0,x.jsx)(v,{label:`State`,value:C.State}),(0,x.jsx)(v,{label:`CIDR Block`,value:C.CidrBlock}),(0,x.jsx)(v,{label:`Is Default`,value:C.IsDefault?`Yes`:`No`}),(0,x.jsx)(v,{label:`DHCP Options ID`,value:C.DhcpOptionsId}),(0,x.jsx)(v,{label:`Instance Tenancy`,value:C.InstanceTenancy}),(0,x.jsx)(v,{label:`Owner ID`,value:C.OwnerId})]})]}),D.length>0&&(0,x.jsxs)(_,{children:[(0,x.jsxs)(_.Header,{children:[`Subnets (`,D.length,`)`]}),D.map(e=>e.SubnetId?(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`Subnet ID`,value:(0,x.jsx)(a,{className:`text-primary hover:underline`,params:{id:e.SubnetId},to:`/ec2/describe-subnets/$id`,children:e.SubnetId})}),(0,x.jsx)(v,{label:`CIDR Block`,value:e.CidrBlock}),(0,x.jsx)(v,{label:`Availability Zone`,value:e.AvailabilityZone}),(0,x.jsx)(v,{label:`State`,value:e.State})]},e.SubnetId):null)]})]}),(0,x.jsx)(g,{description:`Are you sure you want to delete the VPC "${C.VpcId}"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.`,isPending:w.isPending,onConfirm:O,onOpenChange:E,open:T,title:`Delete VPC`})]})}export{S as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id3.js b/spinifex/services/spinifexui/frontend/dist/assets/_id3.js index a2f428a6d..99d78277e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id3.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useQuery.js";import{t as o}from"./useSuspenseQuery.js";import{vr as s}from"./awsClient.js";import{Ut as c,Vt as l}from"./auth.js";import{t as u}from"./back-link.js";import{c as d,i as f,n as p,s as m,t as h}from"./select.js";import{t as g}from"./rotate-cw.js";import{t as _}from"./trash-2.js";import{t as v}from"./button.js";import{B as y,H as b,J as x,R as S,W as C,X as w,Y as T,r as E,u as D}from"./ec2.js";import{Nr as O,Q as k,Rn as A,dt as j,ft as M,ht as N,mt as P,r as ee,zt as te}from"./index.js";import{t as ne}from"./page-heading.js";import{a as F,t as I}from"./field.js";import{a as L,i as R,l as z,n as B,o as V,r as H,s as U,t as re}from"./alert-dialog.js";import{t as W}from"./delete-confirmation-dialog.js";import{n as G,t as K}from"./detail-row.js";import{t as ie}from"./state-badge.js";import{t as ae}from"./ami-details.js";import{r as oe}from"./admin.js";import{t as q}from"./textarea.js";var se=O(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),ce=O(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),J=O(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),le=O(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ue=O(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Y=t(n(),1),X=e();function de({instanceId:e,open:t,onOpenChange:n}){let r=D(),[i,a]=(0,Y.useState)(``),[o,s]=(0,Y.useState)(``),[c,l]=(0,Y.useState)(null);function u(e){e||(a(``),s(``),l(null)),n(e)}async function d(){try{l((await r.mutateAsync({instanceId:e,name:i,description:o||void 0})).ImageId??null),a(``),s(``)}catch{}}return(0,X.jsx)(re,{onOpenChange:u,open:t,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(U,{children:[(0,X.jsx)(z,{children:c?`Image Created`:`Create Image (AMI)`}),(0,X.jsx)(L,{children:c?`Image "${c}" was created successfully.`:`Create an AMI from instance "${e}".`})]}),!c&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,X.jsx)(A,{id:`imageName`,onChange:e=>a(e.target.value),placeholder:`my-image`,value:i})]}),(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,X.jsx)(q,{id:`imageDescription`,onChange:e=>s(e.target.value),placeholder:`Optional description`,rows:2,value:o})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:c?`Close`:`Cancel`}),!c&&(0,X.jsx)(B,{disabled:r.isPending||!i.trim(),onClick:d,children:r.isPending?`Creating…`:`Create Image`})]})]})})}var Z=r();function fe(e){let t=(0,Z.c)(31),{instanceId:n}=e,r;t[0]===n?r=t[1]:(r=j(n),t[0]=n,t[1]=r);let{data:o}=a(r),{data:c}=a(k),l=E(),u=S(),[f,g]=(0,Y.useState)(``),_;t[2]===o?.IamInstanceProfileAssociations?_=t[3]:(_=o?.IamInstanceProfileAssociations?.find(Q),t[2]=o?.IamInstanceProfileAssociations,t[3]=_);let y=_,b;t[4]===c?.InstanceProfiles?b=t[5]:(b=c?.InstanceProfiles??[],t[4]=c?.InstanceProfiles,t[5]=b);let x=b,C;t[6]!==l||t[7]!==n||t[8]!==f?(C=async()=>{f&&(await l.mutateAsync({instanceId:n,instanceProfileName:f}),g(``))},t[6]=l,t[7]=n,t[8]=f,t[9]=C):C=t[9];let w=C,T;t[10]!==y||t[11]!==u||t[12]!==n?(T=async()=>{y?.AssociationId&&await u.mutateAsync({associationId:y.AssociationId,instanceId:n})},t[10]=y,t[11]=u,t[12]=n,t[13]=T):T=t[13];let D=T,O;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,X.jsx)(G.Header,{children:`IAM Role`}),t[14]=O):O=t[14];let A;t[15]===l.error?A=t[16]:(A=l.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(i,{error:l.error,msg:`Failed to associate instance profile`})}),t[15]=l.error,t[16]=A);let M;t[17]===u.error?M=t[18]:(M=u.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(i,{error:u.error,msg:`Failed to disassociate instance profile`})}),t[17]=u.error,t[18]=M);let N;t[19]!==l.isPending||t[20]!==y||t[21]!==u.isPending||t[22]!==w||t[23]!==D||t[24]!==x||t[25]!==f?(N=y?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(K,{label:`Instance Profile ARN`,value:y.IamInstanceProfile?.Arn}),(0,X.jsx)(K,{label:`State`,value:(0,X.jsx)(ie,{state:y.State})}),(0,X.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,X.jsx)(v,{disabled:u.isPending,onClick:D,size:`sm`,variant:`destructive`,children:u.isPending?`Detaching…`:`Detach`})})]}):(0,X.jsxs)(`div`,{className:`col-span-2 space-y-3`,children:[(0,X.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No instance profile is associated. Associate one to flow role credentials to this instance via IMDS.`}),x.length>0?(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsxs)(h,{onValueChange:e=>g(e??``),value:f,children:[(0,X.jsx)(m,{className:`w-full`,children:(0,X.jsx)(d,{placeholder:`Select an instance profile`})}),(0,X.jsx)(p,{children:x.map(pe)})]}),(0,X.jsx)(v,{disabled:!f||l.isPending,onClick:w,size:`sm`,children:l.isPending?`Associating…`:`Associate`})]}):(0,X.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No instance profiles exist.`,` `,(0,X.jsx)(s,{className:`text-primary hover:underline`,to:`/iam/create-instance-profile`,children:`Create one`}),` `,`first.`]})]}),t[19]=l.isPending,t[20]=y,t[21]=u.isPending,t[22]=w,t[23]=D,t[24]=x,t[25]=f,t[26]=N):N=t[26];let P;return t[27]!==A||t[28]!==M||t[29]!==N?(P=(0,X.jsxs)(G,{children:[O,(0,X.jsxs)(G.Content,{children:[A,M,N]})]}),t[27]=A,t[28]=M,t[29]=N,t[30]=P):P=t[30],P}function pe(e){return(0,X.jsx)(f,{value:e.InstanceProfileName??``,children:e.InstanceProfileName},e.InstanceProfileName)}function Q(e){return e.State===`associating`||e.State===`associated`}var $=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function me(e){let t=(0,Z.c)(43),{instanceId:n,state:r}=e,a=x(),o=T(),s=C(),c=w(),[l,u]=(0,Y.useState)(!1),d=$.has(r??``),f;t[0]!==n||t[1]!==c?(f=()=>{c.mutate(n,{onSettled:()=>u(!1)})},t[0]=n,t[1]=c,t[2]=f):f=t[2];let p=f;if(d&&r!==`terminated`){let e;return t[3]===r?e=t[4]:(e=(0,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Instance is `,r,`. Actions will be available once the operation completes.`]})}),t[3]=r,t[4]=e),e}if(r===`terminated`){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`This instance has been terminated and cannot be managed.`})}),t[5]=e):e=t[5],e}let m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,X.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),t[6]=m):m=t[6];let h;t[7]===a.error?h=t[8]:(h=a.error&&(0,X.jsx)(i,{error:a.error,msg:`Failed to start instance`}),t[7]=a.error,t[8]=h);let y;t[9]===o.error?y=t[10]:(y=o.error&&(0,X.jsx)(i,{error:o.error,msg:`Failed to stop instance`}),t[9]=o.error,t[10]=y);let b;t[11]===s.error?b=t[12]:(b=s.error&&(0,X.jsx)(i,{error:s.error,msg:`Failed to reboot instance`}),t[11]=s.error,t[12]=b);let S;t[13]===c.error?S=t[14]:(S=c.error&&(0,X.jsx)(i,{error:c.error,msg:`Failed to terminate instance`}),t[13]=c.error,t[14]=S);let E;t[15]!==n||t[16]!==a||t[17]!==r?(E=r===`stopped`&&(0,X.jsxs)(v,{disabled:a.isPending,onClick:()=>a.mutate(n),size:`sm`,variant:`default`,children:[(0,X.jsx)(J,{className:`size-4`}),a.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=a,t[17]=r,t[18]=E):E=t[18];let D;t[19]!==n||t[20]!==s||t[21]!==r||t[22]!==o?(D=r===`running`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(v,{disabled:o.isPending,onClick:()=>o.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(ce,{className:`size-4`}),o.isPending?`Stopping`:`Stop`]}),(0,X.jsxs)(v,{disabled:s.isPending,onClick:()=>s.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(g,{className:`size-4`}),s.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=s,t[21]=r,t[22]=o,t[23]=D):D=t[23];let O;t[24]!==r||t[25]!==c.isPending?(O=(r===`stopped`||r===`running`)&&(0,X.jsxs)(v,{disabled:c.isPending,onClick:()=>u(!0),size:`sm`,variant:`destructive`,children:[(0,X.jsx)(_,{className:`size-4`}),c.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=c.isPending,t[26]=O):O=t[26];let k;t[27]!==E||t[28]!==D||t[29]!==O?(k=(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[E,D,O]}),t[27]=E,t[28]=D,t[29]=O,t[30]=k):k=t[30];let A=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,j;t[31]!==p||t[32]!==l||t[33]!==A||t[34]!==c.isPending?(j=(0,X.jsx)(W,{confirmLabel:`Terminate`,description:A,isPending:c.isPending,onConfirm:p,onOpenChange:u,open:l,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=p,t[32]=l,t[33]=A,t[34]=c.isPending,t[35]=j):j=t[35];let M;return t[36]!==k||t[37]!==j||t[38]!==h||t[39]!==y||t[40]!==b||t[41]!==S?(M=(0,X.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[m,h,y,b,S,k,j]}),t[36]=k,t[37]=j,t[38]=h,t[39]=y,t[40]=b,t[41]=S,t[42]=M):M=t[42],M}function he(){let{id:e}=ee.useParams(),{isAdmin:t}=te(),{data:n}=o(P(e)),r=n.Reservations?.[0]?.Instances?.[0],{data:g}=o(M(r?.ImageId)),_=g?.Images?.[0],{data:x}=o(N),{data:S}=a({...oe,enabled:t,refetchInterval:5e3}),C=S?.vms?.find(t=>t.instance_id===e),w=b(),T=y(),[E,D]=(0,Y.useState)(!1),[O,k]=(0,Y.useState)(``),[A,j]=(0,Y.useState)(!1),[W,q]=(0,Y.useState)(null),[ce,J]=(0,Y.useState)(!1),Z=[...new Set(x.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!r?.InstanceId)return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,X.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let pe=l(r.LaunchTime),Q=r.State?.Name===`running`,$=r.State?.Name===`stopped`;async function he(){try{await w.mutateAsync({instanceId:e,instanceType:O}),D(!1),k(``)}catch{}}async function ge(){try{let t=await T.mutateAsync(e);q(t.Output?atob(t.Output):`(no output)`),j(!0)}catch{}}return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),w.error&&(0,X.jsx)(i,{error:w.error,msg:`Failed to modify instance`}),T.error&&(0,X.jsx)(i,{error:T.error,msg:`Failed to get console output`}),(0,X.jsxs)(`div`,{className:`space-y-6`,children:[(0,X.jsx)(ne,{actions:(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[Q&&(0,X.jsxs)(v,{disabled:T.isPending,onClick:ge,size:`sm`,variant:`outline`,children:[(0,X.jsx)(ue,{className:`size-4`}),T.isPending?`Fetching…`:`View Console`]}),(Q||$)&&(0,X.jsxs)(v,{onClick:()=>J(!0),size:`sm`,variant:`outline`,children:[(0,X.jsx)(se,{className:`size-4`}),`Create Image`]}),$&&(0,X.jsxs)(v,{onClick:()=>{k(r.InstanceType??``),D(!0)},size:`sm`,variant:`outline`,children:[(0,X.jsx)(le,{className:`size-4`}),`Modify Instance`]}),(0,X.jsx)(ie,{state:r.State?.Name})]}),subtitle:`Instance Details`,title:r.InstanceId}),(0,X.jsx)(me,{instanceId:r.InstanceId,state:r.State?.Name}),A&&W!==null&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,X.jsx)(v,{onClick:()=>{j(!1),q(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,X.jsx)(`div`,{className:`p-4`,children:(0,X.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:W})})]}),(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Instance Information`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Instance ID`,value:r.InstanceId}),(0,X.jsx)(K,{label:`Instance Type`,value:r.InstanceType}),(0,X.jsx)(K,{label:`Instance State`,value:r.State?.Name}),(0,X.jsx)(K,{label:`State Code`,value:r.State?.Code?.toString()}),(0,X.jsx)(K,{label:`Launch Time`,value:pe}),(0,X.jsx)(K,{label:`Availability Zone`,value:r.Placement?.AvailabilityZone}),(0,X.jsx)(K,{label:`Placement Group`,value:r.Placement?.GroupName?(0,X.jsx)(s,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:r.Placement.GroupName}):void 0})]})]}),(r.PrivateIpAddress||r.PublicIpAddress||r.VpcId||r.SubnetId||r.SecurityGroups&&r.SecurityGroups.length>0)&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Network & Security`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Private IP Address`,value:r.PrivateIpAddress}),(0,X.jsx)(K,{label:`Public IP Address`,value:r.PublicIpAddress}),(0,X.jsx)(K,{label:`Private DNS`,value:r.PrivateDnsName}),(0,X.jsx)(K,{label:`Public DNS`,value:r.PublicDnsName}),(0,X.jsx)(K,{label:`VPC ID`,value:r.VpcId?(0,X.jsx)(s,{className:`text-primary hover:underline`,params:{id:r.VpcId},to:`/ec2/describe-vpcs/$id`,children:r.VpcId}):void 0}),(0,X.jsx)(K,{label:`Subnet ID`,value:r.SubnetId?(0,X.jsx)(s,{className:`text-primary hover:underline`,params:{id:r.SubnetId},to:`/ec2/describe-subnets/$id`,children:r.SubnetId}):void 0}),(0,X.jsx)(K,{label:`Key Name`,value:r.KeyName}),(0,X.jsx)(K,{label:`Security Groups`,value:r.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),(0,X.jsx)(fe,{instanceId:r.InstanceId}),t&&C?.gpu&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`GPU`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Model`,value:C.gpu.model}),(0,X.jsx)(K,{label:`VRAM`,value:c(C.gpu.vram_mib)}),(0,X.jsx)(K,{label:`Attachment`,value:C.gpu.profile?`MIG slice`:`PCIe passthrough`}),C.gpu.profile&&(0,X.jsx)(K,{label:`Profile`,value:C.gpu.profile}),C.gpu.mdev_path&&(0,X.jsx)(K,{label:`Mdev path`,value:C.gpu.mdev_path}),C.gpu.pci_address&&(0,X.jsx)(K,{label:`PCI address`,value:C.gpu.pci_address})]})]}),r.BlockDeviceMappings&&r.BlockDeviceMappings.length>0&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Block Device Mappings`}),r.BlockDeviceMappings.map(e=>(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Device Name`,value:e.DeviceName}),(0,X.jsx)(K,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,X.jsx)(s,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,X.jsx)(K,{label:`Status`,value:e.Ebs?.Status}),(0,X.jsx)(K,{label:`Attach Time`,value:l(e.Ebs?.AttachTime)}),(0,X.jsx)(K,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName))]}),_&&(0,X.jsx)(ae,{image:_})]}),(0,X.jsx)(re,{onOpenChange:e=>{e||(D(!1),k(``))},open:E,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(U,{children:[(0,X.jsx)(z,{children:`Modify Instance`}),(0,X.jsxs)(L,{children:[`Select a new instance type for "`,r.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,X.jsxs)(h,{onValueChange:e=>k(e??``),value:O,children:[(0,X.jsx)(m,{className:`w-full`,id:`instanceType`,children:(0,X.jsx)(d,{})}),(0,X.jsx)(p,{children:Z.map(e=>(0,X.jsx)(f,{value:e,children:e},e))})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:`Cancel`}),(0,X.jsx)(B,{disabled:w.isPending||!O||O===r.InstanceType,onClick:he,children:w.isPending?`Saving…`:`Save Changes`})]})]})}),(0,X.jsx)(de,{instanceId:r.InstanceId,onOpenChange:J,open:ce})]})}export{he as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useQuery.js";import{t as o}from"./useSuspenseQuery.js";import{vr as s}from"./awsClient.js";import{Bt as c,Ht as l}from"./auth.js";import{t as u}from"./back-link.js";import{c as d,i as f,n as p,s as m,t as h}from"./select.js";import{t as g}from"./rotate-cw.js";import{t as _}from"./trash-2.js";import{t as v}from"./button.js";import{B as y,H as b,J as x,R as S,W as C,X as w,Y as T,r as E,u as D}from"./ec2.js";import{Nr as O,Q as k,Rn as A,dt as j,ft as M,ht as N,mt as P,r as ee,zt as te}from"./index.js";import{t as ne}from"./page-heading.js";import{a as F,t as I}from"./field.js";import{a as L,i as R,l as z,n as B,o as V,r as H,s as U,t as re}from"./alert-dialog.js";import{t as W}from"./delete-confirmation-dialog.js";import{n as G,t as K}from"./detail-row.js";import{t as ie}from"./state-badge.js";import{t as ae}from"./ami-details.js";import{r as oe}from"./admin.js";import{t as q}from"./textarea.js";var se=O(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),ce=O(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),J=O(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),le=O(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ue=O(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Y=t(n(),1),X=e();function de({instanceId:e,open:t,onOpenChange:n}){let r=D(),[i,a]=(0,Y.useState)(``),[o,s]=(0,Y.useState)(``),[c,l]=(0,Y.useState)(null);function u(e){e||(a(``),s(``),l(null)),n(e)}async function d(){try{l((await r.mutateAsync({instanceId:e,name:i,description:o||void 0})).ImageId??null),a(``),s(``)}catch{}}return(0,X.jsx)(re,{onOpenChange:u,open:t,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(U,{children:[(0,X.jsx)(z,{children:c?`Image Created`:`Create Image (AMI)`}),(0,X.jsx)(L,{children:c?`Image "${c}" was created successfully.`:`Create an AMI from instance "${e}".`})]}),!c&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,X.jsx)(A,{id:`imageName`,onChange:e=>a(e.target.value),placeholder:`my-image`,value:i})]}),(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,X.jsx)(q,{id:`imageDescription`,onChange:e=>s(e.target.value),placeholder:`Optional description`,rows:2,value:o})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:c?`Close`:`Cancel`}),!c&&(0,X.jsx)(B,{disabled:r.isPending||!i.trim(),onClick:d,children:r.isPending?`Creating…`:`Create Image`})]})]})})}var Z=r();function fe(e){let t=(0,Z.c)(31),{instanceId:n}=e,r;t[0]===n?r=t[1]:(r=j(n),t[0]=n,t[1]=r);let{data:o}=a(r),{data:c}=a(k),l=E(),u=S(),[f,g]=(0,Y.useState)(``),_;t[2]===o?.IamInstanceProfileAssociations?_=t[3]:(_=o?.IamInstanceProfileAssociations?.find(Q),t[2]=o?.IamInstanceProfileAssociations,t[3]=_);let y=_,b;t[4]===c?.InstanceProfiles?b=t[5]:(b=c?.InstanceProfiles??[],t[4]=c?.InstanceProfiles,t[5]=b);let x=b,C;t[6]!==l||t[7]!==n||t[8]!==f?(C=async()=>{f&&(await l.mutateAsync({instanceId:n,instanceProfileName:f}),g(``))},t[6]=l,t[7]=n,t[8]=f,t[9]=C):C=t[9];let w=C,T;t[10]!==y||t[11]!==u||t[12]!==n?(T=async()=>{y?.AssociationId&&await u.mutateAsync({associationId:y.AssociationId,instanceId:n})},t[10]=y,t[11]=u,t[12]=n,t[13]=T):T=t[13];let D=T,O;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,X.jsx)(G.Header,{children:`IAM Role`}),t[14]=O):O=t[14];let A;t[15]===l.error?A=t[16]:(A=l.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(i,{error:l.error,msg:`Failed to associate instance profile`})}),t[15]=l.error,t[16]=A);let M;t[17]===u.error?M=t[18]:(M=u.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(i,{error:u.error,msg:`Failed to disassociate instance profile`})}),t[17]=u.error,t[18]=M);let N;t[19]!==l.isPending||t[20]!==y||t[21]!==u.isPending||t[22]!==w||t[23]!==D||t[24]!==x||t[25]!==f?(N=y?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(K,{label:`Instance Profile ARN`,value:y.IamInstanceProfile?.Arn}),(0,X.jsx)(K,{label:`State`,value:(0,X.jsx)(ie,{state:y.State})}),(0,X.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,X.jsx)(v,{disabled:u.isPending,onClick:D,size:`sm`,variant:`destructive`,children:u.isPending?`Detaching…`:`Detach`})})]}):(0,X.jsxs)(`div`,{className:`col-span-2 space-y-3`,children:[(0,X.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No instance profile is associated. Associate one to flow role credentials to this instance via IMDS.`}),x.length>0?(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsxs)(h,{onValueChange:e=>g(e??``),value:f,children:[(0,X.jsx)(m,{className:`w-full`,children:(0,X.jsx)(d,{placeholder:`Select an instance profile`})}),(0,X.jsx)(p,{children:x.map(pe)})]}),(0,X.jsx)(v,{disabled:!f||l.isPending,onClick:w,size:`sm`,children:l.isPending?`Associating…`:`Associate`})]}):(0,X.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No instance profiles exist.`,` `,(0,X.jsx)(s,{className:`text-primary hover:underline`,to:`/iam/create-instance-profile`,children:`Create one`}),` `,`first.`]})]}),t[19]=l.isPending,t[20]=y,t[21]=u.isPending,t[22]=w,t[23]=D,t[24]=x,t[25]=f,t[26]=N):N=t[26];let P;return t[27]!==A||t[28]!==M||t[29]!==N?(P=(0,X.jsxs)(G,{children:[O,(0,X.jsxs)(G.Content,{children:[A,M,N]})]}),t[27]=A,t[28]=M,t[29]=N,t[30]=P):P=t[30],P}function pe(e){return(0,X.jsx)(f,{value:e.InstanceProfileName??``,children:e.InstanceProfileName},e.InstanceProfileName)}function Q(e){return e.State===`associating`||e.State===`associated`}var $=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function me(e){let t=(0,Z.c)(43),{instanceId:n,state:r}=e,a=x(),o=T(),s=C(),c=w(),[l,u]=(0,Y.useState)(!1),d=$.has(r??``),f;t[0]!==n||t[1]!==c?(f=()=>{c.mutate(n,{onSettled:()=>u(!1)})},t[0]=n,t[1]=c,t[2]=f):f=t[2];let p=f;if(d&&r!==`terminated`){let e;return t[3]===r?e=t[4]:(e=(0,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Instance is `,r,`. Actions will be available once the operation completes.`]})}),t[3]=r,t[4]=e),e}if(r===`terminated`){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`This instance has been terminated and cannot be managed.`})}),t[5]=e):e=t[5],e}let m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,X.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),t[6]=m):m=t[6];let h;t[7]===a.error?h=t[8]:(h=a.error&&(0,X.jsx)(i,{error:a.error,msg:`Failed to start instance`}),t[7]=a.error,t[8]=h);let y;t[9]===o.error?y=t[10]:(y=o.error&&(0,X.jsx)(i,{error:o.error,msg:`Failed to stop instance`}),t[9]=o.error,t[10]=y);let b;t[11]===s.error?b=t[12]:(b=s.error&&(0,X.jsx)(i,{error:s.error,msg:`Failed to reboot instance`}),t[11]=s.error,t[12]=b);let S;t[13]===c.error?S=t[14]:(S=c.error&&(0,X.jsx)(i,{error:c.error,msg:`Failed to terminate instance`}),t[13]=c.error,t[14]=S);let E;t[15]!==n||t[16]!==a||t[17]!==r?(E=r===`stopped`&&(0,X.jsxs)(v,{disabled:a.isPending,onClick:()=>a.mutate(n),size:`sm`,variant:`default`,children:[(0,X.jsx)(J,{className:`size-4`}),a.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=a,t[17]=r,t[18]=E):E=t[18];let D;t[19]!==n||t[20]!==s||t[21]!==r||t[22]!==o?(D=r===`running`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(v,{disabled:o.isPending,onClick:()=>o.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(ce,{className:`size-4`}),o.isPending?`Stopping`:`Stop`]}),(0,X.jsxs)(v,{disabled:s.isPending,onClick:()=>s.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(g,{className:`size-4`}),s.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=s,t[21]=r,t[22]=o,t[23]=D):D=t[23];let O;t[24]!==r||t[25]!==c.isPending?(O=(r===`stopped`||r===`running`)&&(0,X.jsxs)(v,{disabled:c.isPending,onClick:()=>u(!0),size:`sm`,variant:`destructive`,children:[(0,X.jsx)(_,{className:`size-4`}),c.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=c.isPending,t[26]=O):O=t[26];let k;t[27]!==E||t[28]!==D||t[29]!==O?(k=(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[E,D,O]}),t[27]=E,t[28]=D,t[29]=O,t[30]=k):k=t[30];let A=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,j;t[31]!==p||t[32]!==l||t[33]!==A||t[34]!==c.isPending?(j=(0,X.jsx)(W,{confirmLabel:`Terminate`,description:A,isPending:c.isPending,onConfirm:p,onOpenChange:u,open:l,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=p,t[32]=l,t[33]=A,t[34]=c.isPending,t[35]=j):j=t[35];let M;return t[36]!==k||t[37]!==j||t[38]!==h||t[39]!==y||t[40]!==b||t[41]!==S?(M=(0,X.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[m,h,y,b,S,k,j]}),t[36]=k,t[37]=j,t[38]=h,t[39]=y,t[40]=b,t[41]=S,t[42]=M):M=t[42],M}function he(){let{id:e}=ee.useParams(),{isAdmin:t}=te(),{data:n}=o(P(e)),r=n.Reservations?.[0]?.Instances?.[0],{data:g}=o(M(r?.ImageId)),_=g?.Images?.[0],{data:x}=o(N),{data:S}=a({...oe,enabled:t,refetchInterval:5e3}),C=S?.vms?.find(t=>t.instance_id===e),w=b(),T=y(),[E,D]=(0,Y.useState)(!1),[O,k]=(0,Y.useState)(``),[A,j]=(0,Y.useState)(!1),[W,q]=(0,Y.useState)(null),[ce,J]=(0,Y.useState)(!1),Z=[...new Set(x.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!r?.InstanceId)return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,X.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let pe=c(r.LaunchTime),Q=r.State?.Name===`running`,$=r.State?.Name===`stopped`;async function he(){try{await w.mutateAsync({instanceId:e,instanceType:O}),D(!1),k(``)}catch{}}async function ge(){try{let t=await T.mutateAsync(e);q(t.Output?atob(t.Output):`(no output)`),j(!0)}catch{}}return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),w.error&&(0,X.jsx)(i,{error:w.error,msg:`Failed to modify instance`}),T.error&&(0,X.jsx)(i,{error:T.error,msg:`Failed to get console output`}),(0,X.jsxs)(`div`,{className:`space-y-6`,children:[(0,X.jsx)(ne,{actions:(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[Q&&(0,X.jsxs)(v,{disabled:T.isPending,onClick:ge,size:`sm`,variant:`outline`,children:[(0,X.jsx)(ue,{className:`size-4`}),T.isPending?`Fetching…`:`View Console`]}),(Q||$)&&(0,X.jsxs)(v,{onClick:()=>J(!0),size:`sm`,variant:`outline`,children:[(0,X.jsx)(se,{className:`size-4`}),`Create Image`]}),$&&(0,X.jsxs)(v,{onClick:()=>{k(r.InstanceType??``),D(!0)},size:`sm`,variant:`outline`,children:[(0,X.jsx)(le,{className:`size-4`}),`Modify Instance`]}),(0,X.jsx)(ie,{state:r.State?.Name})]}),subtitle:`Instance Details`,title:r.InstanceId}),(0,X.jsx)(me,{instanceId:r.InstanceId,state:r.State?.Name}),A&&W!==null&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,X.jsx)(v,{onClick:()=>{j(!1),q(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,X.jsx)(`div`,{className:`p-4`,children:(0,X.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:W})})]}),(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Instance Information`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Instance ID`,value:r.InstanceId}),(0,X.jsx)(K,{label:`Instance Type`,value:r.InstanceType}),(0,X.jsx)(K,{label:`Instance State`,value:r.State?.Name}),(0,X.jsx)(K,{label:`State Code`,value:r.State?.Code?.toString()}),(0,X.jsx)(K,{label:`Launch Time`,value:pe}),(0,X.jsx)(K,{label:`Availability Zone`,value:r.Placement?.AvailabilityZone}),(0,X.jsx)(K,{label:`Placement Group`,value:r.Placement?.GroupName?(0,X.jsx)(s,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:r.Placement.GroupName}):void 0})]})]}),(r.PrivateIpAddress||r.PublicIpAddress||r.VpcId||r.SubnetId||r.SecurityGroups&&r.SecurityGroups.length>0)&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Network & Security`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Private IP Address`,value:r.PrivateIpAddress}),(0,X.jsx)(K,{label:`Public IP Address`,value:r.PublicIpAddress}),(0,X.jsx)(K,{label:`Private DNS`,value:r.PrivateDnsName}),(0,X.jsx)(K,{label:`Public DNS`,value:r.PublicDnsName}),(0,X.jsx)(K,{label:`VPC ID`,value:r.VpcId?(0,X.jsx)(s,{className:`text-primary hover:underline`,params:{id:r.VpcId},to:`/ec2/describe-vpcs/$id`,children:r.VpcId}):void 0}),(0,X.jsx)(K,{label:`Subnet ID`,value:r.SubnetId?(0,X.jsx)(s,{className:`text-primary hover:underline`,params:{id:r.SubnetId},to:`/ec2/describe-subnets/$id`,children:r.SubnetId}):void 0}),(0,X.jsx)(K,{label:`Key Name`,value:r.KeyName}),(0,X.jsx)(K,{label:`Security Groups`,value:r.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),(0,X.jsx)(fe,{instanceId:r.InstanceId}),t&&C?.gpu&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`GPU`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Model`,value:C.gpu.model}),(0,X.jsx)(K,{label:`VRAM`,value:l(C.gpu.vram_mib)}),(0,X.jsx)(K,{label:`Attachment`,value:C.gpu.profile?`MIG slice`:`PCIe passthrough`}),C.gpu.profile&&(0,X.jsx)(K,{label:`Profile`,value:C.gpu.profile}),C.gpu.mdev_path&&(0,X.jsx)(K,{label:`Mdev path`,value:C.gpu.mdev_path}),C.gpu.pci_address&&(0,X.jsx)(K,{label:`PCI address`,value:C.gpu.pci_address})]})]}),r.BlockDeviceMappings&&r.BlockDeviceMappings.length>0&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Block Device Mappings`}),r.BlockDeviceMappings.map(e=>(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Device Name`,value:e.DeviceName}),(0,X.jsx)(K,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,X.jsx)(s,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,X.jsx)(K,{label:`Status`,value:e.Ebs?.Status}),(0,X.jsx)(K,{label:`Attach Time`,value:c(e.Ebs?.AttachTime)}),(0,X.jsx)(K,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName))]}),_&&(0,X.jsx)(ae,{image:_})]}),(0,X.jsx)(re,{onOpenChange:e=>{e||(D(!1),k(``))},open:E,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(U,{children:[(0,X.jsx)(z,{children:`Modify Instance`}),(0,X.jsxs)(L,{children:[`Select a new instance type for "`,r.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,X.jsxs)(h,{onValueChange:e=>k(e??``),value:O,children:[(0,X.jsx)(m,{className:`w-full`,id:`instanceType`,children:(0,X.jsx)(d,{})}),(0,X.jsx)(p,{children:Z.map(e=>(0,X.jsx)(f,{value:e,children:e},e))})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:`Cancel`}),(0,X.jsx)(B,{disabled:w.isPending||!O||O===r.InstanceType,onClick:he,children:w.isPending?`Saving…`:`Save Changes`})]})]})}),(0,X.jsx)(de,{instanceId:r.InstanceId,onOpenChange:J,open:ce})]})}export{he as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id4.js b/spinifex/services/spinifexui/frontend/dist/assets/_id4.js index 666f1f682..1aa87f9ab 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id4.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id4.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Wt as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{F as h,a as g,w as _}from"./ec2.js";import{Ir as v,Lt as y,_t as b,i as x}from"./index.js";import{t as S}from"./page-heading.js";import{t as C}from"./delete-confirmation-dialog.js";import{n as w,t as T}from"./detail-row.js";var E=t(n()),D=e();function O(){let{id:e}=x.useParams(),t=v(),{data:n}=i(b(e)),{data:O}=i(y),k=g(),A=h(),j=_(),[M,N]=(0,E.useState)(!1),[P,F]=(0,E.useState)(``),I=n.InternetGateways?.[0],L=O.Vpcs??[],R=async()=>{try{await j.mutateAsync(e),t({to:`/ec2/describe-internet-gateways`})}finally{N(!1)}},z=async()=>{P&&await k.mutateAsync({internetGatewayId:e,vpcId:P})},B=async t=>{await A.mutateAsync({internetGatewayId:e,vpcId:t})};if(!I?.InternetGatewayId)return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(s,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(0,D.jsx)(`p`,{className:`text-muted-foreground`,children:`Internet Gateway not found.`})]});let V=I.Attachments?.[0],H=!!V?.VpcId,U=o(I.Tags);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(s,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(j.error??k.error??A.error)&&(0,D.jsx)(r,{error:j.error??k.error??A.error??void 0,msg:`Internet Gateway action failed`}),(0,D.jsxs)(`div`,{className:`space-y-6`,children:[(0,D.jsx)(S,{actions:(0,D.jsxs)(m,{disabled:H||j.isPending,onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,D.jsx)(p,{className:`size-4`}),`Delete`]}),subtitle:`Internet Gateway Details`,title:U?`${I.InternetGatewayId} (${U})`:I.InternetGatewayId}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`Internet Gateway Information`}),(0,D.jsxs)(w.Content,{children:[(0,D.jsx)(T,{label:`Internet Gateway ID`,value:I.InternetGatewayId}),(0,D.jsx)(T,{label:`Owner ID`,value:I.OwnerId??`—`}),(0,D.jsx)(T,{label:`State`,value:V?.State??`detached`})]})]}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`VPC Attachment`}),(0,D.jsx)(w.Content,{children:H?(0,D.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,D.jsx)(a,{className:`text-primary hover:underline`,params:{id:V.VpcId??``},to:`/ec2/describe-vpcs/$id`,children:V.VpcId}),(0,D.jsx)(m,{disabled:A.isPending,onClick:async()=>await B(V.VpcId??``),size:`sm`,variant:`outline`,children:`Detach`})]}):(0,D.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,D.jsx)(`div`,{className:`flex-1`,children:(0,D.jsxs)(f,{onValueChange:e=>F(e??``),value:P,children:[(0,D.jsx)(d,{className:`w-full`,children:(0,D.jsx)(c,{placeholder:`Select a VPC`})}),(0,D.jsx)(u,{children:L.map(e=>{let t=o(e.Tags);return(0,D.jsx)(l,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)})})]})}),(0,D.jsx)(m,{disabled:!P||k.isPending,onClick:z,size:`sm`,children:`Attach`})]})})]})]}),(0,D.jsx)(C,{description:`Are you sure you want to delete the Internet Gateway "${I.InternetGatewayId}"? This action cannot be undone.`,isPending:j.isPending,onConfirm:R,onOpenChange:N,open:M,title:`Delete Internet Gateway`})]})}export{O as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{F as h,a as g,w as _}from"./ec2.js";import{Ir as v,Lt as y,_t as b,i as x}from"./index.js";import{t as S}from"./page-heading.js";import{t as C}from"./delete-confirmation-dialog.js";import{n as w,t as T}from"./detail-row.js";var E=t(n()),D=e();function O(){let{id:e}=x.useParams(),t=v(),{data:n}=i(b(e)),{data:O}=i(y),k=g(),A=h(),j=_(),[M,N]=(0,E.useState)(!1),[P,F]=(0,E.useState)(``),I=n.InternetGateways?.[0],L=O.Vpcs??[],R=async()=>{try{await j.mutateAsync(e),t({to:`/ec2/describe-internet-gateways`})}finally{N(!1)}},z=async()=>{P&&await k.mutateAsync({internetGatewayId:e,vpcId:P})},B=async t=>{await A.mutateAsync({internetGatewayId:e,vpcId:t})};if(!I?.InternetGatewayId)return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(s,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(0,D.jsx)(`p`,{className:`text-muted-foreground`,children:`Internet Gateway not found.`})]});let V=I.Attachments?.[0],H=!!V?.VpcId,U=o(I.Tags);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(s,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(j.error??k.error??A.error)&&(0,D.jsx)(r,{error:j.error??k.error??A.error??void 0,msg:`Internet Gateway action failed`}),(0,D.jsxs)(`div`,{className:`space-y-6`,children:[(0,D.jsx)(S,{actions:(0,D.jsxs)(m,{disabled:H||j.isPending,onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,D.jsx)(p,{className:`size-4`}),`Delete`]}),subtitle:`Internet Gateway Details`,title:U?`${I.InternetGatewayId} (${U})`:I.InternetGatewayId}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`Internet Gateway Information`}),(0,D.jsxs)(w.Content,{children:[(0,D.jsx)(T,{label:`Internet Gateway ID`,value:I.InternetGatewayId}),(0,D.jsx)(T,{label:`Owner ID`,value:I.OwnerId??`—`}),(0,D.jsx)(T,{label:`State`,value:V?.State??`detached`})]})]}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`VPC Attachment`}),(0,D.jsx)(w.Content,{children:H?(0,D.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,D.jsx)(a,{className:`text-primary hover:underline`,params:{id:V.VpcId??``},to:`/ec2/describe-vpcs/$id`,children:V.VpcId}),(0,D.jsx)(m,{disabled:A.isPending,onClick:async()=>await B(V.VpcId??``),size:`sm`,variant:`outline`,children:`Detach`})]}):(0,D.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,D.jsx)(`div`,{className:`flex-1`,children:(0,D.jsxs)(f,{onValueChange:e=>F(e??``),value:P,children:[(0,D.jsx)(d,{className:`w-full`,children:(0,D.jsx)(c,{placeholder:`Select a VPC`})}),(0,D.jsx)(u,{children:L.map(e=>{let t=o(e.Tags);return(0,D.jsx)(l,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)})})]})}),(0,D.jsx)(m,{disabled:!P||k.isPending,onClick:z,size:`sm`,children:`Attach`})]})})]})]}),(0,D.jsx)(C,{description:`Are you sure you want to delete the Internet Gateway "${I.InternetGatewayId}"? This action cannot be undone.`,isPending:j.isPending,onConfirm:R,onOpenChange:N,open:M,title:`Delete Internet Gateway`})]})}export{O as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id5.js b/spinifex/services/spinifexui/frontend/dist/assets/_id5.js index d454a79cf..d5d85e877 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id5.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id5.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{T as l}from"./ec2.js";import{Ir as u,a as d,yt as f}from"./index.js";import{t as p}from"./page-heading.js";import{t as m}from"./delete-confirmation-dialog.js";import{n as h,t as g}from"./detail-row.js";var _=t(n()),v=e();function y(){let{id:e}=d.useParams(),t=u(),{data:n}=i(f(e)),y=n.KeyPairs?.[0],b=l(),[x,S]=(0,_.useState)(!1),C=async()=>{try{await b.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})}finally{S(!1)}};if(!y?.KeyPairId)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),(0,v.jsx)(`p`,{className:`text-muted-foreground`,children:`Key pair not found.`})]});let w=a(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(r,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(p,{actions:(0,v.jsxs)(c,{onClick:()=>S(!0),size:`sm`,variant:`destructive`,children:[(0,v.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Key Pair Details`,title:y.KeyName??``}),(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Key Pair Information`}),(0,v.jsxs)(h.Content,{children:[(0,v.jsx)(g,{label:`Key Pair ID`,value:y.KeyPairId}),(0,v.jsx)(g,{label:`Key Name`,value:y.KeyName}),(0,v.jsx)(g,{label:`Key Type`,value:y.KeyType}),(0,v.jsx)(g,{label:`Key Fingerprint`,value:y.KeyFingerprint}),(0,v.jsx)(g,{label:`Creation Date`,value:w})]})]}),y.Tags&&y.Tags.length>0&&(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Tags`}),(0,v.jsx)(h.Content,{children:y.Tags.map(e=>(0,v.jsx)(g,{label:e.Key??``,value:e.Value},e.Key))})]})]}),(0,v.jsx)(m,{description:`Are you sure you want to delete the key pair "${y.KeyName}"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.`,isPending:b.isPending,onConfirm:C,onOpenChange:S,open:x,title:`Delete Key Pair`})]})}export{y as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{T as l}from"./ec2.js";import{Ir as u,a as d,yt as f}from"./index.js";import{t as p}from"./page-heading.js";import{t as m}from"./delete-confirmation-dialog.js";import{n as h,t as g}from"./detail-row.js";var _=t(n()),v=e();function y(){let{id:e}=d.useParams(),t=u(),{data:n}=i(f(e)),y=n.KeyPairs?.[0],b=l(),[x,S]=(0,_.useState)(!1),C=async()=>{try{await b.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})}finally{S(!1)}};if(!y?.KeyPairId)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),(0,v.jsx)(`p`,{className:`text-muted-foreground`,children:`Key pair not found.`})]});let w=a(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(r,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(p,{actions:(0,v.jsxs)(c,{onClick:()=>S(!0),size:`sm`,variant:`destructive`,children:[(0,v.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Key Pair Details`,title:y.KeyName??``}),(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Key Pair Information`}),(0,v.jsxs)(h.Content,{children:[(0,v.jsx)(g,{label:`Key Pair ID`,value:y.KeyPairId}),(0,v.jsx)(g,{label:`Key Name`,value:y.KeyName}),(0,v.jsx)(g,{label:`Key Type`,value:y.KeyType}),(0,v.jsx)(g,{label:`Key Fingerprint`,value:y.KeyFingerprint}),(0,v.jsx)(g,{label:`Creation Date`,value:w})]})]}),y.Tags&&y.Tags.length>0&&(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Tags`}),(0,v.jsx)(h.Content,{children:y.Tags.map(e=>(0,v.jsx)(g,{label:e.Key??``,value:e.Value},e.Key))})]})]}),(0,v.jsx)(m,{description:`Are you sure you want to delete the key pair "${y.KeyName}"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.`,isPending:b.isPending,onConfirm:C,onOpenChange:S,open:x,title:`Delete Key Pair`})]})}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id6.js b/spinifex/services/spinifexui/frontend/dist/assets/_id6.js index db586a95a..8567c8c50 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id6.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id6.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useSuspenseQuery.js";import{Vt as o,Wt as s}from"./auth.js";import{t as c}from"./back-link.js";import{c as l,i as u,n as d,s as f,t as p}from"./select.js";import{t as m}from"./trash-2.js";import{t as h}from"./button.js";import{t as g}from"./certificate-import-dialog.js";import{_,a as v,d as y,f as b,g as x,h as S,o as C,r as w,s as T,t as E,u as D}from"./elbv2.js";import{B as O,F as k,G as A,I as j,Ir as M,L as N,Nr as P,Nt as F,P as I,Rn as ee,U as te,kt as ne,o as L,z as R}from"./index.js";import{a as re,i as z,n as ie,r as B,t as V}from"./zod.js";import{t as H}from"./page-heading.js";import{a as U,r as ae,t as W}from"./field.js";import{a as G,i as K,l as q,n as J,o as Y,r as oe,s as se,t as ce}from"./alert-dialog.js";import{t as le}from"./delete-confirmation-dialog.js";import{n as X,t as Z}from"./detail-row.js";import{t as ue}from"./state-badge.js";import{c as de,i as fe,n as pe,o as me,s as he,t as ge}from"./elbv22.js";import{n as _e,r as ve,t as ye}from"./tags-editor.js";import{i as be,n as xe,r as Se,t as Ce}from"./tabs.js";var we=P(`pencil`,[[`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`}]]),Te=r(),Q=t(n(),1),$=e(),Ee=80,De=443;function Oe(e){let t=e.CertificateArn?.split(`/`).pop()??e.CertificateArn??``;return e.DomainName?`${e.DomainName} · ${t}`:t}function ke(e){let t=(0,Te.c)(59),{form:n,protocols:r,targetGroups:i,certificates:a,sslPolicies:o}=e,s;t[0]===a?s=t[1]:(s=a===void 0?[]:a,t[0]=a,t[1]=s);let c=s,u;t[2]===o?u=t[3]:(u=o===void 0?[]:o,t[2]=o,t[3]=u);let m=u,{control:_,register:v,getValues:y,setValue:b,formState:x}=n,{errors:S}=x,[C,w]=(0,Q.useState)(!1),T;t[4]===_?T=t[5]:(T={control:_,name:`protocol`},t[4]=_,t[5]=T);let E=re(T),D=E===`HTTPS`,O;t[6]===E?O=t[7]:(O=he(E),t[6]=E,t[7]=O);let k=O,A;t[8]!==y||t[9]!==b?(A=e=>{if(!e)return;let t=y(`port`);he(e)?(t===Ee&&b(`port`,De),e===`HTTPS`?y(`sslPolicy`)||b(`sslPolicy`,ge):b(`sslPolicy`,void 0)):(t===De&&b(`port`,Ee),b(`certificateArn`,void 0),b(`sslPolicy`,void 0))},t[8]=y,t[9]=b,t[10]=A):A=t[10];let j=A,M;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),t[11]=M):M=t[11];let N;t[12]!==j||t[13]!==r?(N=e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:e=>{t.onChange(e),j(e)},value:t.value,children:[(0,$.jsx)(f,{className:`w-full`,id:`listener-protocol`,children:(0,$.jsx)(l,{})}),(0,$.jsx)(d,{children:r.map(Ne)})]})},t[12]=j,t[13]=r,t[14]=N):N=t[14];let P;t[15]!==_||t[16]!==N?(P=(0,$.jsxs)(W,{children:[M,(0,$.jsx)(ie,{control:_,name:`protocol`,render:N})]}),t[15]=_,t[16]=N,t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),t[18]=F):F=t[18];let I=!!S.port,te=k?`443`:`80`,ne;t[19]===v?ne=t[20]:(ne=v(`port`,{valueAsNumber:!0}),t[19]=v,t[20]=ne);let L;t[21]!==I||t[22]!==te||t[23]!==ne?(L=(0,$.jsx)(ee,{"aria-invalid":I,id:`listener-port`,inputMode:`numeric`,placeholder:te,type:`number`,...ne}),t[21]=I,t[22]=te,t[23]=ne,t[24]=L):L=t[24];let R;t[25]===S.port?R=t[26]:(R=(0,$.jsx)(ae,{errors:[S.port]}),t[25]=S.port,t[26]=R);let z;t[27]!==L||t[28]!==R?(z=(0,$.jsxs)(W,{children:[F,L,R]}),t[27]=L,t[28]=R,t[29]=z):z=t[29];let B;t[30]!==c||t[31]!==_||t[32]!==S.certificateArn||t[33]!==C||t[34]!==D||t[35]!==k||t[36]!==b||t[37]!==m?(B=k&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,$.jsx)(ie,{control:_,name:`certificateArn`,render:e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(f,{"aria-invalid":!!S.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,$.jsx)(l,{placeholder:`Select certificate`})}),(0,$.jsx)(d,{children:c.map(Me)})]})}}),(0,$.jsx)(ae,{errors:[S.certificateArn]}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[c.length===0&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,$.jsx)(h,{className:`ml-auto`,onClick:()=>w(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),D&&(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,$.jsx)(ie,{control:_,name:`sslPolicy`,render:e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:t.onChange,value:t.value??`ELBSecurityPolicy-2016-08`,children:[(0,$.jsx)(f,{className:`w-full`,id:`listener-ssl-policy`,children:(0,$.jsx)(l,{})}),(0,$.jsx)(d,{children:m.map(je)})]})}})]}),(0,$.jsx)(g,{onImported:e=>b(`certificateArn`,e,{shouldValidate:!0}),onOpenChange:w,open:C})]}),t[30]=c,t[31]=_,t[32]=S.certificateArn,t[33]=C,t[34]=D,t[35]=k,t[36]=b,t[37]=m,t[38]=B):B=t[38];let V;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-default-tg`,children:`Default target group`})}),t[39]=V):V=t[39];let H;t[40]!==S.defaultTargetGroupArn||t[41]!==i?(H=e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(f,{"aria-invalid":!!S.defaultTargetGroupArn,className:`w-full`,id:`listener-default-tg`,children:(0,$.jsx)(l,{placeholder:`Select target group`})}),(0,$.jsx)(d,{children:i.map(Ae)})]})},t[40]=S.defaultTargetGroupArn,t[41]=i,t[42]=H):H=t[42];let G;t[43]!==_||t[44]!==H?(G=(0,$.jsx)(ie,{control:_,name:`defaultTargetGroupArn`,render:H}),t[43]=_,t[44]=H,t[45]=G):G=t[45];let K;t[46]===S.defaultTargetGroupArn?K=t[47]:(K=(0,$.jsx)(ae,{errors:[S.defaultTargetGroupArn]}),t[46]=S.defaultTargetGroupArn,t[47]=K);let q;t[48]===i.length?q=t[49]:(q=i.length===0&&(0,$.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups available in this VPC. Create one first.`}),t[48]=i.length,t[49]=q);let J;t[50]!==G||t[51]!==K||t[52]!==q?(J=(0,$.jsxs)(W,{children:[V,G,K,q]}),t[50]=G,t[51]=K,t[52]=q,t[53]=J):J=t[53];let Y;return t[54]!==P||t[55]!==z||t[56]!==B||t[57]!==J?(Y=(0,$.jsxs)($.Fragment,{children:[P,z,B,J]}),t[54]=P,t[55]=z,t[56]=B,t[57]=J,t[58]=Y):Y=t[58],Y}function Ae(e){return(0,$.jsxs)(u,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn)}function je(e){return(0,$.jsx)(u,{value:e.Name??``,children:e.Name},e.Name)}function Me(e){return(0,$.jsx)(u,{value:e.CertificateArn??``,children:Oe(e)},e.CertificateArn)}function Ne(e){return(0,$.jsx)(u,{value:e,children:e},e)}function Pe({listenerArn:e,targetGroups:t}){let{data:n}=a(I(e)),r=w(),o=b(),s=T(),[c,l]=(0,Q.useState)(!1),[u,d]=(0,Q.useState)(),[f,p]=(0,Q.useState)(),g=n.Rules??[],_=new Map;for(let e of t)e.TargetGroupArn&&e.TargetGroupName&&_.set(e.TargetGroupArn,e.TargetGroupName);return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[r.error&&(0,$.jsx)(i,{error:r.error,msg:`Failed to create rule`}),o.error&&(0,$.jsx)(i,{error:o.error,msg:`Failed to modify rule`}),s.error&&(0,$.jsx)(i,{error:s.error,msg:`Failed to delete rule`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[g.length,` rule`,g.length===1?``:`s`,` (including default)`]}),(0,$.jsx)(h,{onClick:()=>l(!0),size:`sm`,children:`Add rule`})]}),(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Priority`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Conditions`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Forward to`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:g.map(e=>(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Priority}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Fe(e.Conditions,e.IsDefault===!0)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Le(e,_)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:e.IsDefault===!0?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Edit via listener`}):(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(h,{"aria-label":`Edit rule ${e.Priority}`,onClick:()=>d(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(h,{"aria-label":`Delete rule ${e.Priority}`,onClick:()=>p(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(m,{className:`size-4`})})]})})]},e.RuleArn??e.Priority??`default`))})]})}),(0,$.jsx)(ze,{isPending:r.isPending,mode:`add`,onOpenChange:l,onSubmit:async t=>{try{await r.mutateAsync({listenerArn:e,priority:t.priority,conditions:t.conditions.map(Re),forwardTargetGroupArn:t.forwardTargetGroupArn}),l(!1)}catch{}},open:c,targetGroups:t}),(0,$.jsx)(ze,{initialRule:u,isPending:o.isPending,mode:`edit`,onOpenChange:e=>!e&&d(void 0),onSubmit:async t=>{if(u?.RuleArn)try{await o.mutateAsync({ruleArn:u.RuleArn,listenerArn:e,conditions:t.conditions.map(Re),forwardTargetGroupArn:t.forwardTargetGroupArn}),d(void 0)}catch{}},open:u!==void 0,targetGroups:t}),(0,$.jsx)(le,{description:f?`Delete rule with priority ${f.Priority}? This cannot be undone.`:``,isPending:s.isPending,onConfirm:async()=>{if(f?.RuleArn)try{await s.mutateAsync({ruleArn:f.RuleArn,listenerArn:e})}finally{p(void 0)}},onOpenChange:e=>!e&&p(void 0),open:f!==void 0,title:`Delete rule`})]})}function Fe(e,t){return t?`default`:!e||e.length===0?`—`:e.map(e=>{let t=Ie(e);return`${e.Field}: ${t.join(`, `)}`}).join(` AND `)}function Ie(e){if(e.Field===void 0)return e.Values??[];switch(e.Field){case`host-header`:return e.HostHeaderConfig?.Values??e.Values??[];case`path-pattern`:return e.PathPatternConfig?.Values??e.Values??[];case`http-header`:{let t=e.HttpHeaderConfig?.HttpHeaderName??`?`;return(e.HttpHeaderConfig?.Values??[]).map(e=>`${t}=${e}`)}case`http-request-method`:return e.HttpRequestMethodConfig?.Values??[];case`source-ip`:return e.SourceIpConfig?.Values??[];case`query-string`:return(e.QueryStringConfig?.Values??[]).map(e=>e.Key?`${e.Key}=${e.Value??``}`:e.Value??``);default:return e.Values??[]}}function Le(e,t){let n=e.Actions?.[0];return n?n.Type===`forward`&&n.TargetGroupArn?t.get(n.TargetGroupArn)??n.TargetGroupArn:n.Type??`—`:`—`}function Re(e){let t=e.rawValues.split(/[\n,]/).map(e=>e.trim()).filter(e=>e.length>0);return e.field===`query-string`?{field:e.field,values:[],queryStringPairs:t.map(e=>{let t=e.indexOf(`=`);return t===-1?{value:e}:{key:e.slice(0,t),value:e.slice(t+1)}})}:{field:e.field,values:t,httpHeaderName:e.httpHeaderName}}function ze({open:e,onOpenChange:t,onSubmit:n,isPending:r,targetGroups:i,mode:a,initialRule:o}){let s=[{field:`path-pattern`,rawValues:``}],c=z({resolver:V(fe),defaultValues:{priority:1,conditions:s,forwardTargetGroupArn:``}}),{fields:m,append:g,remove:_}=B({control:c.control,name:`conditions`});(0,Q.useEffect)(()=>{if(a===`add`){e||c.reset({priority:1,conditions:s,forwardTargetGroupArn:``});return}if(!o)return;let t=Number(o.Priority??1),n=o.Conditions?.map(e=>We(e))??s;c.reset({priority:Number.isFinite(t)?t:1,conditions:n.length>0?n:s,forwardTargetGroupArn:o.Actions?.[0]?.TargetGroupArn??``})},[o,e,a]);let v=c.handleSubmit(n);return(0,$.jsx)(ce,{onOpenChange:t,open:e,children:(0,$.jsxs)(K,{className:`grid-cols-[minmax(0,1fr)]`,style:{maxWidth:`40rem`,width:`calc(100vw - 2rem)`},children:[(0,$.jsxs)(se,{children:[(0,$.jsx)(q,{children:a===`add`?`Add rule`:`Edit rule`}),(0,$.jsx)(G,{children:`Routing rules match incoming requests and forward them to a target group. Rules evaluate in priority order; the listener default applies when no rule matches.`})]}),(0,$.jsxs)(`form`,{className:`min-w-0 space-y-4`,onSubmit:e=>{e.preventDefault(),v()},children:[(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`rule-priority`,children:`Priority`})}),(0,$.jsx)(ee,{"aria-invalid":!!c.formState.errors.priority,id:`rule-priority`,inputMode:`numeric`,type:`number`,...c.register(`priority`,{valueAsNumber:!0})}),(0,$.jsx)(ae,{errors:[c.formState.errors.priority]})]}),(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsx)(U,{children:`Conditions`}),(0,$.jsx)(h,{disabled:m.length>=5,onClick:()=>g({field:`path-pattern`,rawValues:``}),size:`sm`,type:`button`,variant:`outline`,children:`Add condition`})]}),m.map((e,t)=>(0,$.jsx)(Be,{form:c,index:t,onRemove:m.length>1?()=>_(t):void 0},e.id))]}),(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`rule-forward-tg`,children:`Forward to target group`})}),(0,$.jsx)(ie,{control:c.control,name:`forwardTargetGroupArn`,render:({field:e})=>(0,$.jsxs)(p,{onValueChange:e.onChange,value:e.value??``,children:[(0,$.jsx)(f,{"aria-invalid":!!c.formState.errors.forwardTargetGroupArn,className:`w-full`,id:`rule-forward-tg`,children:(0,$.jsx)(l,{placeholder:`Select target group`})}),(0,$.jsx)(d,{children:i.map(e=>(0,$.jsxs)(u,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,$.jsx)(ae,{errors:[c.formState.errors.forwardTargetGroupArn]})]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(oe,{disabled:r,children:`Cancel`}),(0,$.jsx)(J,{disabled:r,onClick:v,children:Ge(a,r)})]})]})})}function Be(e){let t=(0,Te.c)(54),{form:n,index:r,onRemove:i}=e,a,o,s,c,g,_,v,y,b,x;if(t[0]!==n||t[1]!==r||t[2]!==i){let e=n.watch(`conditions.${r}.field`);s=n.formState.errors.conditions?.[r],y=`space-y-2 rounded-md border p-3`;let S=`rule-cond-${r}-field`,C;t[13]===S?C=t[14]:(C=(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:S,children:`Type`})}),t[13]=S,t[14]=C);let w=`conditions.${r}.field`,T;t[15]===r?T=t[16]:(T=e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:t.onChange,value:t.value,children:[(0,$.jsx)(f,{className:`w-full`,id:`rule-cond-${r}-field`,children:(0,$.jsx)(l,{})}),(0,$.jsxs)(d,{children:[(0,$.jsx)(u,{value:`path-pattern`,children:`Path pattern`}),(0,$.jsx)(u,{value:`host-header`,children:`Host header`}),(0,$.jsx)(u,{value:`http-header`,children:`HTTP header`}),(0,$.jsx)(u,{value:`http-request-method`,children:`HTTP method`}),(0,$.jsx)(u,{value:`source-ip`,children:`Source IP CIDR`}),(0,$.jsx)(u,{value:`query-string`,children:`Query string`})]})]})},t[15]=r,t[16]=T);let E;t[17]!==n.control||t[18]!==w||t[19]!==T?(E=(0,$.jsx)(ie,{control:n.control,name:w,render:T}),t[17]=n.control,t[18]=w,t[19]=T,t[20]=E):E=t[20];let D;t[21]!==E||t[22]!==C?(D=(0,$.jsxs)(`div`,{className:`flex-1`,children:[C,E]}),t[21]=E,t[22]=C,t[23]=D):D=t[23];let O;t[24]!==r||t[25]!==i?(O=i&&(0,$.jsx)(h,{"aria-label":`Remove condition ${r+1}`,className:`self-end`,onClick:i,size:`sm`,type:`button`,variant:`ghost`,children:(0,$.jsx)(m,{className:`size-4`})}),t[24]=r,t[25]=i,t[26]=O):O=t[26],t[27]!==D||t[28]!==O?(b=(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[D,O]}),t[27]=D,t[28]=O,t[29]=b):b=t[29],x=e===`http-header`&&(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`rule-cond-${r}-hdr-name`,children:`Header name`})}),(0,$.jsx)(ee,{"aria-invalid":!!s?.httpHeaderName,id:`rule-cond-${r}-hdr-name`,placeholder:`X-Tenant`,...n.register(`conditions.${r}.httpHeaderName`)}),(0,$.jsx)(ae,{errors:[s?.httpHeaderName]})]}),o=W;let k=`rule-cond-${r}-values`,A;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`(comma or newline separated, max 5)`}),t[30]=A):A=t[30],t[31]===k?v=t[32]:(v=(0,$.jsx)(U,{children:(0,$.jsxs)(`label`,{htmlFor:k,children:[`Values`,` `,A]})}),t[31]=k,t[32]=v),a=ee,c=!!s?.rawValues,g=`rule-cond-${r}-values`,_=Ve(e),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=g,t[8]=_,t[9]=v,t[10]=y,t[11]=b,t[12]=x}else a=t[3],o=t[4],s=t[5],c=t[6],g=t[7],_=t[8],v=t[9],y=t[10],b=t[11],x=t[12];let S;t[33]!==n||t[34]!==r?(S=n.register(`conditions.${r}.rawValues`),t[33]=n,t[34]=r,t[35]=S):S=t[35];let C;t[36]!==a||t[37]!==c||t[38]!==g||t[39]!==_||t[40]!==S?(C=(0,$.jsx)(a,{"aria-invalid":c,id:g,placeholder:_,...S}),t[36]=a,t[37]=c,t[38]=g,t[39]=_,t[40]=S,t[41]=C):C=t[41];let w=s?.rawValues,T;t[42]===w?T=t[43]:(T=(0,$.jsx)(ae,{errors:[w]}),t[42]=w,t[43]=T);let E;t[44]!==o||t[45]!==T||t[46]!==v||t[47]!==C?(E=(0,$.jsxs)(o,{children:[v,C,T]}),t[44]=o,t[45]=T,t[46]=v,t[47]=C,t[48]=E):E=t[48];let D;return t[49]!==E||t[50]!==y||t[51]!==b||t[52]!==x?(D=(0,$.jsxs)(`div`,{className:y,children:[b,x,E]}),t[49]=E,t[50]=y,t[51]=b,t[52]=x,t[53]=D):D=t[53],D}function Ve(e){switch(e){case`path-pattern`:return`/api/*`;case`host-header`:return`*.example.com`;case`http-header`:return`acme`;case`http-request-method`:return`GET, POST`;case`source-ip`:return`10.0.0.0/8`;case`query-string`:return`key=value`;default:return``}}var He=new Set([`host-header`,`path-pattern`,`http-header`,`http-request-method`,`source-ip`,`query-string`]);function Ue(e){return e!==void 0&&He.has(e)}function We(e){let t=Ie(e);return{field:Ue(e.Field)?e.Field:`path-pattern`,httpHeaderName:e.HttpHeaderConfig?.HttpHeaderName,rawValues:t.join(`, `)}}function Ge(e,t){return t?e===`add`?`Adding…`:`Saving…`:e===`add`?`Add rule`:`Save changes`}function Ke(e){return{protocol:me(e),port:80,defaultTargetGroupArn:``}}function qe(e){if(e.Protocol!==`HTTPS`)return`—`;let t=e.Certificates?.[0]?.CertificateArn?.split(`/`).pop(),n=e.SslPolicy;return t&&n?`${n} · ${t}`:n??t??`—`}function Je({loadBalancerArn:e,vpcId:t,lbType:n}){let r=de(n),{data:o}=a(k(e)),{data:s}=a(te),{data:c}=a(A),{data:l}=a(R),u=E(),d=v(),f=D(),[p,g]=(0,Q.useState)(!1),[_,y]=(0,Q.useState)(),[b,x]=(0,Q.useState)(),[S,C]=(0,Q.useState)(),w=o.Listeners??[],T=s.TargetGroups??[],O=T.filter(e=>e.VpcId===t),j=c.CertificateSummaryList??[],M=l.SslPolicies??[],N=new Map;for(let e of T)e.TargetGroupArn&&e.TargetGroupName&&N.set(e.TargetGroupArn,e.TargetGroupName);let P=e=>{let t=e.DefaultActions?.[0];if(!t)return`—`;if(t.Type===`forward`&&t.TargetGroupArn){let e=N.get(t.TargetGroupArn);return e?`forward → ${e}`:`forward → ${t.TargetGroupArn}`}return t.Type??`—`};return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[u.error&&(0,$.jsx)(i,{error:u.error,msg:`Failed to create listener`}),f.error&&(0,$.jsx)(i,{error:f.error,msg:`Failed to modify listener`}),d.error&&(0,$.jsx)(i,{error:d.error,msg:`Failed to delete listener`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[w.length,` listener`,w.length===1?``:`s`]}),(0,$.jsx)(h,{onClick:()=>g(!0),size:`sm`,children:`Add listener`})]}),w.length===0?(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No listeners configured.`}):(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`TLS`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Default action`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Listener ARN`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:w.map(e=>{let t=e.ListenerArn??``,n=S===t;return(0,$.jsxs)(Q.Fragment,{children:[(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol}),(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Port}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:qe(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:P(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(h,{"aria-label":`${n?`Hide`:`Show`} rules for listener ${e.Protocol}:${e.Port}`,onClick:()=>C(n?void 0:t),size:`sm`,variant:`ghost`,children:n?`Hide rules`:`Rules`}),(0,$.jsx)(h,{"aria-label":`Edit listener ${e.Protocol}:${e.Port}`,onClick:()=>y(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(h,{"aria-label":`Delete listener ${e.Protocol}:${e.Port}`,onClick:()=>x(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(m,{className:`size-4`})})]})})]}),n&&t&&(0,$.jsx)(`tr`,{className:`border-b bg-muted/30 last:border-0`,children:(0,$.jsx)(`td`,{className:`px-4 py-3`,colSpan:6,children:(0,$.jsx)(Pe,{listenerArn:t,targetGroups:O})})})]},t)})})]})}),(0,$.jsx)(Ye,{certificates:j,isPending:u.isPending,lbType:n,onOpenChange:g,onSubmit:async t=>{try{await u.mutateAsync({loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn,certificateArn:t.certificateArn,sslPolicy:t.sslPolicy}),g(!1)}catch{}},open:p,protocols:r,sslPolicies:M,targetGroups:O}),(0,$.jsx)(Xe,{certificates:j,isPending:f.isPending,listener:_,onOpenChange:e=>!e&&y(void 0),onSubmit:async t=>{if(_?.ListenerArn)try{await f.mutateAsync({listenerArn:_.ListenerArn,loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn,certificateArn:t.certificateArn,sslPolicy:t.sslPolicy}),y(void 0)}catch{}},protocols:r,sslPolicies:M,targetGroups:O}),(0,$.jsx)(le,{description:b?`Delete listener ${b.Protocol}:${b.Port}? This cannot be undone.`:``,isPending:d.isPending,onConfirm:async()=>{if(b?.ListenerArn)try{await d.mutateAsync(b.ListenerArn)}finally{x(void 0)}},onOpenChange:e=>!e&&x(void 0),open:b!==void 0,title:`Delete listener`})]})}function Ye(e){let t=(0,Te.c)(42),{open:n,onOpenChange:r,lbType:i,protocols:a,targetGroups:o,certificates:s,sslPolicies:c,isPending:l,onSubmit:u}=e,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=V(pe),t[0]=d):d=t[0];let f;t[1]===i?f=t[2]:(f=Ke(i),t[1]=i,t[2]=f);let p;t[3]===f?p=t[4]:(p={resolver:d,defaultValues:f},t[3]=f,t[4]=p);let m=z(p),h,g;t[5]!==m||t[6]!==i||t[7]!==n?(h=()=>{n||m.reset(Ke(i))},g=[n,m,i],t[5]=m,t[6]=i,t[7]=n,t[8]=h,t[9]=g):(h=t[8],g=t[9]),(0,Q.useEffect)(h,g);let _;t[10]!==m||t[11]!==u?(_=m.handleSubmit(u),t[10]=m,t[11]=u,t[12]=_):_=t[12];let v=_,y;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(y={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[13]=y):y=t[13];let b;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsxs)(se,{children:[(0,$.jsx)(q,{children:`Add listener`}),(0,$.jsx)(G,{children:`Listeners forward incoming traffic to a default target group.`})]}),t[14]=b):b=t[14];let x;t[15]===v?x=t[16]:(x=e=>{e.preventDefault(),v()},t[15]=v,t[16]=x);let S;t[17]!==s||t[18]!==m||t[19]!==a||t[20]!==c||t[21]!==o?(S=(0,$.jsx)(ke,{certificates:s,form:m,protocols:a,sslPolicies:c,targetGroups:o}),t[17]=s,t[18]=m,t[19]=a,t[20]=c,t[21]=o,t[22]=S):S=t[22];let C;t[23]!==S||t[24]!==x?(C=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:x,children:S}),t[23]=S,t[24]=x,t[25]=C):C=t[25];let w;t[26]===l?w=t[27]:(w=(0,$.jsx)(oe,{disabled:l,children:`Cancel`}),t[26]=l,t[27]=w);let T=l?`Adding…`:`Add listener`,E;t[28]!==v||t[29]!==l||t[30]!==T?(E=(0,$.jsx)(J,{disabled:l,onClick:v,children:T}),t[28]=v,t[29]=l,t[30]=T,t[31]=E):E=t[31];let D;t[32]!==w||t[33]!==E?(D=(0,$.jsxs)(Y,{children:[w,E]}),t[32]=w,t[33]=E,t[34]=D):D=t[34];let O;t[35]!==C||t[36]!==D?(O=(0,$.jsxs)(K,{className:`grid-cols-[minmax(0,1fr)]`,style:y,children:[b,C,D]}),t[35]=C,t[36]=D,t[37]=O):O=t[37];let k;return t[38]!==r||t[39]!==n||t[40]!==O?(k=(0,$.jsx)(ce,{onOpenChange:r,open:n,children:O}),t[38]=r,t[39]=n,t[40]=O,t[41]=k):k=t[41],k}function Xe(e){let t=(0,Te.c)(38),{listener:n,onOpenChange:r,protocols:i,targetGroups:a,certificates:o,sslPolicies:s,isPending:c,onSubmit:l}=e,u=n!==void 0,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d={resolver:V(pe),defaultValues:{protocol:`HTTP`,port:80,defaultTargetGroupArn:``}},t[0]=d):d=t[0];let f=z(d),p,m;t[1]!==f||t[2]!==n||t[3]!==i?(p=()=>{if(!n)return;let e=i.find(e=>e===n.Protocol)??i[0]??`HTTP`,t=he(e);f.reset({protocol:e,port:n.Port??80,defaultTargetGroupArn:n.DefaultActions?.[0]?.TargetGroupArn??``,certificateArn:t?n.Certificates?.[0]?.CertificateArn:void 0,sslPolicy:e===`HTTPS`?n.SslPolicy:void 0})},m=[n,f,i],t[1]=f,t[2]=n,t[3]=i,t[4]=p,t[5]=m):(p=t[4],m=t[5]),(0,Q.useEffect)(p,m);let h;t[6]!==f||t[7]!==l?(h=f.handleSubmit(l),t[6]=f,t[7]=l,t[8]=h):h=t[8];let g=h,_;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[9]=_):_=t[9];let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsxs)(se,{children:[(0,$.jsx)(q,{children:`Edit listener`}),(0,$.jsx)(G,{children:`Update port, protocol, or default target group. Changes apply without dropping the listener.`})]}),t[10]=v):v=t[10];let y;t[11]===g?y=t[12]:(y=e=>{e.preventDefault(),g()},t[11]=g,t[12]=y);let b;t[13]!==o||t[14]!==f||t[15]!==i||t[16]!==s||t[17]!==a?(b=(0,$.jsx)(ke,{certificates:o,form:f,protocols:i,sslPolicies:s,targetGroups:a}),t[13]=o,t[14]=f,t[15]=i,t[16]=s,t[17]=a,t[18]=b):b=t[18];let x;t[19]!==y||t[20]!==b?(x=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:y,children:b}),t[19]=y,t[20]=b,t[21]=x):x=t[21];let S;t[22]===c?S=t[23]:(S=(0,$.jsx)(oe,{disabled:c,children:`Cancel`}),t[22]=c,t[23]=S);let C=c?`Saving…`:`Save changes`,w;t[24]!==g||t[25]!==c||t[26]!==C?(w=(0,$.jsx)(J,{disabled:c,onClick:g,children:C}),t[24]=g,t[25]=c,t[26]=C,t[27]=w):w=t[27];let T;t[28]!==S||t[29]!==w?(T=(0,$.jsxs)(Y,{children:[S,w]}),t[28]=S,t[29]=w,t[30]=T):T=t[30];let E;t[31]!==T||t[32]!==x?(E=(0,$.jsxs)(K,{className:`grid-cols-[minmax(0,1fr)]`,style:_,children:[v,x,T]}),t[31]=T,t[32]=x,t[33]=E):E=t[33];let D;return t[34]!==r||t[35]!==u||t[36]!==E?(D=(0,$.jsx)(ce,{onOpenChange:r,open:u,children:E}),t[34]=r,t[35]=u,t[36]=E,t[37]=D):D=t[37],D}function Ze(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function Qe(e){let t=(0,Te.c)(46),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,m;t[3]===l?m=t[4]:(m=()=>d(l),t[3]=l,t[4]=m);let g=m,_;t[5]!==l||t[6]!==u?(_=Ze(u,l),t[5]=l,t[6]=u,t[7]=_):_=t[7];let v=!_,y=u.length===0,b;t[8]!==v||t[9]!==y||t[10]!==i||t[11]!==u?(b=e=>{e.preventDefault(),!(!v||y)&&i(u)},t[8]=v,t[9]=y,t[10]=i,t[11]=u,t[12]=b):b=t[12];let x;t[13]===o?x=t[14]:(x=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update security groups`}),t[13]=o,t[14]=x);let S;t[15]!==v||t[16]!==s?(S=s&&!v&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Security groups updated.`}),t[15]=v,t[16]=s,t[17]=S):S=t[17];let C;t[18]!==n||t[19]!==u?(C=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No security groups in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:u.includes(e.GroupId??``),onChange:()=>p(e.GroupId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId)),t[18]=n,t[19]=u,t[20]=C):C=t[20];let w;t[21]===y?w=t[22]:(w=y&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one security group is required.`}),t[21]=y,t[22]=w);let T;t[23]!==C||t[24]!==w?(T=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[C,w]}),t[23]=C,t[24]=w,t[25]=T):T=t[25];let E=v?`Unsaved changes`:`No changes`,D;t[26]===E?D=t[27]:(D=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:E}),t[26]=E,t[27]=D);let O=a||!v,k;t[28]!==g||t[29]!==O?(k=(0,$.jsx)(h,{disabled:O,onClick:g,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[28]=g,t[29]=O,t[30]=k):k=t[30];let A=a||!v||y,j=a?`Saving…`:`Save changes`,M;t[31]!==A||t[32]!==j?(M=(0,$.jsx)(h,{disabled:A,size:`sm`,type:`submit`,children:j}),t[31]=A,t[32]=j,t[33]=M):M=t[33];let N;t[34]!==D||t[35]!==k||t[36]!==M?(N=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[D,k,M]}),t[34]=D,t[35]=k,t[36]=M,t[37]=N):N=t[37];let P;t[38]!==T||t[39]!==N?(P=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[T,N]}),t[38]=T,t[39]=N,t[40]=P):P=t[40];let F;return t[41]!==P||t[42]!==b||t[43]!==x||t[44]!==S?(F=(0,$.jsxs)(`form`,{onSubmit:b,children:[x,S,P]}),t[41]=P,t[42]=b,t[43]=x,t[44]=S,t[45]=F):F=t[45],F}function $e(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function et(e){let t=s(e.Tags),n=e.AvailabilityZone?` · ${e.AvailabilityZone}`:``,r=e.CidrBlock?` (${e.CidrBlock})`:``;return`${e.SubnetId}${t?` — ${t}`:``}${r}${n}`}function tt(e){let t=(0,Te.c)(47),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,m;t[3]===l?m=t[4]:(m=()=>d(l),t[3]=l,t[4]=m);let g=m,_;t[5]!==l||t[6]!==u?(_=$e(u,l),t[5]=l,t[6]=u,t[7]=_):_=t[7];let v=!_,y=u.length===0,b;t[8]!==v||t[9]!==y||t[10]!==i||t[11]!==u?(b=e=>{e.preventDefault(),!(!v||y)&&i(u)},t[8]=v,t[9]=y,t[10]=i,t[11]=u,t[12]=b):b=t[12];let x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-amber-500 bg-amber-500/10 p-3 text-sm text-amber-700 dark:text-amber-400`,role:`note`,children:`Applying a subnet change re-homes the load balancer by relaunching its underlying system VM. Expect a brief data-plane interruption while it restarts.`}),t[13]=x):x=t[13];let S;t[14]===o?S=t[15]:(S=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update subnets`}),t[14]=o,t[15]=S);let C;t[16]!==v||t[17]!==s?(C=s&&!v&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Subnets updated.`}),t[16]=v,t[17]=s,t[18]=C):C=t[18];let w;t[19]!==n||t[20]!==u?(w=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnets in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:u.includes(e.SubnetId??``),onChange:()=>p(e.SubnetId??``),type:`checkbox`}),(0,$.jsx)(`span`,{className:`font-mono`,children:et(e)})]},e.SubnetId)),t[19]=n,t[20]=u,t[21]=w):w=t[21];let T;t[22]===y?T=t[23]:(T=y&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one subnet is required.`}),t[22]=y,t[23]=T);let E;t[24]!==T||t[25]!==w?(E=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[w,T]}),t[24]=T,t[25]=w,t[26]=E):E=t[26];let D=v?`Unsaved changes`:`No changes`,O;t[27]===D?O=t[28]:(O=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:D}),t[27]=D,t[28]=O);let k=a||!v,A;t[29]!==g||t[30]!==k?(A=(0,$.jsx)(h,{disabled:k,onClick:g,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[29]=g,t[30]=k,t[31]=A):A=t[31];let j=a||!v||y,M=a?`Saving…`:`Save changes`,N;t[32]!==j||t[33]!==M?(N=(0,$.jsx)(h,{disabled:j,size:`sm`,type:`submit`,children:M}),t[32]=j,t[33]=M,t[34]=N):N=t[34];let P;t[35]!==O||t[36]!==A||t[37]!==N?(P=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[O,A,N]}),t[35]=O,t[36]=A,t[37]=N,t[38]=P):P=t[38];let F;t[39]!==E||t[40]!==P?(F=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[E,P]}),t[39]=E,t[40]=P,t[41]=F):F=t[41];let I;return t[42]!==F||t[43]!==b||t[44]!==S||t[45]!==C?(I=(0,$.jsxs)(`form`,{onSubmit:b,children:[x,S,C,F]}),t[42]=F,t[43]=b,t[44]=S,t[45]=C,t[46]=I):I=t[46],I}function nt({arn:e}){let t=M(),{data:n}=a(N(e)),{data:r}=a(j(e)),{data:l}=a(O([e])),{data:u}=a(F),{data:d}=a(ne),f=C(),p=y(),g=_(),v=S(),b=x(),[w,T]=(0,Q.useState)(!1),E=n.LoadBalancers?.[0];if(!E?.LoadBalancerArn)return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(c,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`Load balancer not found.`})]});let D=async()=>{try{await f.mutateAsync(e),t({to:`/ec2/describe-load-balancers`})}finally{T(!1)}},k=u.Subnets??[],A=e=>{let t=k.find(t=>t.SubnetId===e);if(!t)return e;let n=s(t.Tags),r=t.CidrBlock?` (${t.CidrBlock})`:``;return n?`${e} — ${n}${r}`:`${e}${r}`},P=r.Attributes??[],I=l?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[],ee=(E.SecurityGroups??[]).filter(e=>e!==void 0),te=(d.SecurityGroups??[]).filter(e=>e.VpcId===E.VpcId),L=k.filter(e=>e.VpcId===E.VpcId),R=(E.AvailabilityZones??[]).map(e=>e.SubnetId).filter(e=>e!==void 0),re=E.Type===`network`;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(c,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),f.error&&(0,$.jsx)(i,{error:f.error,msg:`Failed to delete load balancer`}),(0,$.jsxs)(`div`,{className:`space-y-6`,children:[(0,$.jsx)(H,{actions:(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(h,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,$.jsx)(m,{className:`size-4`}),`Delete`]}),(0,$.jsx)(ue,{state:E.State?.Code})]}),subtitle:`Load Balancer Details`,title:E.LoadBalancerName??E.LoadBalancerArn}),(0,$.jsxs)(Ce,{defaultValue:`overview`,children:[(0,$.jsxs)(xe,{children:[(0,$.jsx)(be,{value:`overview`,children:`Overview`}),(0,$.jsx)(be,{value:`listeners`,children:`Listeners`}),(0,$.jsx)(be,{value:`subnets`,children:`Subnets`}),!re&&(0,$.jsx)(be,{value:`security-groups`,children:`Security groups`}),(0,$.jsx)(be,{value:`attributes`,children:`Attributes`}),(0,$.jsx)(be,{value:`tags`,children:`Tags`})]}),(0,$.jsxs)(Se,{value:`overview`,children:[(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Load balancer`}),(0,$.jsxs)(X.Content,{children:[(0,$.jsx)(Z,{label:`ARN`,value:E.LoadBalancerArn}),(0,$.jsx)(Z,{label:`DNS name`,value:E.DNSName}),(0,$.jsx)(Z,{label:`State`,value:E.State?.Reason?`${E.State.Code} — ${E.State.Reason}`:E.State?.Code}),(0,$.jsx)(Z,{label:`Type`,value:E.Type}),(0,$.jsx)(Z,{label:`Scheme`,value:E.Scheme}),(0,$.jsx)(Z,{label:`IP address type`,value:E.IpAddressType}),(0,$.jsx)(Z,{label:`VPC`,value:E.VpcId}),(0,$.jsx)(Z,{label:`Created at`,value:o(E.CreatedTime)})]})]}),(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Availability zones`}),(0,$.jsx)(X.Content,{children:(E.AvailabilityZones??[]).map(e=>(0,$.jsx)(Z,{label:e.ZoneName??`—`,value:e.SubnetId?A(e.SubnetId):void 0},`${e.ZoneName}-${e.SubnetId}`))})]}),(E.SecurityGroups??[]).length>0&&(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Security groups`}),(0,$.jsx)(X.Content,{children:(E.SecurityGroups??[]).map(e=>(0,$.jsx)(Z,{label:`Security group`,value:e},e))})]})]}),(0,$.jsx)(Se,{value:`listeners`,children:(0,$.jsx)(Je,{lbType:re?`network`:`application`,loadBalancerArn:e,vpcId:E.VpcId})}),(0,$.jsx)(Se,{value:`subnets`,children:(0,$.jsx)(tt,{available:L,current:R,error:b.error,isPending:b.isPending,isSuccess:b.isSuccess,onSubmit:t=>b.mutate({loadBalancerArn:e,subnetIds:t})})}),!re&&(0,$.jsx)(Se,{value:`security-groups`,children:(0,$.jsx)(Qe,{available:te,current:ee,error:v.error,isPending:v.isPending,isSuccess:v.isSuccess,onSubmit:t=>v.mutate({loadBalancerArn:e,securityGroupIds:t})})}),(0,$.jsx)(Se,{value:`attributes`,children:(0,$.jsx)(_e,{attributes:P,error:p.error,isPending:p.isPending,isSuccess:p.isSuccess,onSubmit:t=>{p.mutate({loadBalancerArn:e,attributes:t})},specs:ve})}),(0,$.jsx)(Se,{value:`tags`,children:(0,$.jsx)(ye,{error:g.error,isPending:g.isPending,isSuccess:g.isSuccess,onSubmit:t=>g.mutate({resourceArn:e,tags:t,initialKeys:I.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:I})})]})]}),(0,$.jsx)(le,{description:`Are you sure you want to delete load balancer "${E.LoadBalancerName??E.LoadBalancerArn}"? This action cannot be undone.`,isPending:f.isPending,onConfirm:D,onOpenChange:T,open:w,title:`Delete load balancer`})]})}function rt(){let e=(0,Te.c)(2),{id:t}=L.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,$.jsx)(nt,{arn:n}),e[0]=n,e[1]=r),r}export{rt as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useSuspenseQuery.js";import{Bt as o,Ut as s}from"./auth.js";import{t as c}from"./back-link.js";import{c as l,i as u,n as d,s as f,t as p}from"./select.js";import{t as m}from"./trash-2.js";import{t as h}from"./button.js";import{t as g}from"./certificate-import-dialog.js";import{_,a as v,d as y,f as b,g as x,h as S,o as C,r as w,s as T,t as E,u as D}from"./elbv2.js";import{B as O,F as k,G as A,I as j,Ir as M,L as N,Nr as P,Nt as F,P as I,Rn as ee,U as te,kt as ne,o as L,z as R}from"./index.js";import{a as re,i as z,n as ie,r as B,t as V}from"./zod.js";import{t as H}from"./page-heading.js";import{a as U,r as ae,t as W}from"./field.js";import{a as G,i as K,l as q,n as J,o as Y,r as oe,s as se,t as ce}from"./alert-dialog.js";import{t as le}from"./delete-confirmation-dialog.js";import{n as X,t as Z}from"./detail-row.js";import{t as ue}from"./state-badge.js";import{c as de,i as fe,n as pe,o as me,s as he,t as ge}from"./elbv22.js";import{n as _e,r as ve,t as ye}from"./tags-editor.js";import{i as be,n as xe,r as Se,t as Ce}from"./tabs.js";var we=P(`pencil`,[[`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`}]]),Te=r(),Q=t(n(),1),$=e(),Ee=80,De=443;function Oe(e){let t=e.CertificateArn?.split(`/`).pop()??e.CertificateArn??``;return e.DomainName?`${e.DomainName} · ${t}`:t}function ke(e){let t=(0,Te.c)(59),{form:n,protocols:r,targetGroups:i,certificates:a,sslPolicies:o}=e,s;t[0]===a?s=t[1]:(s=a===void 0?[]:a,t[0]=a,t[1]=s);let c=s,u;t[2]===o?u=t[3]:(u=o===void 0?[]:o,t[2]=o,t[3]=u);let m=u,{control:_,register:v,getValues:y,setValue:b,formState:x}=n,{errors:S}=x,[C,w]=(0,Q.useState)(!1),T;t[4]===_?T=t[5]:(T={control:_,name:`protocol`},t[4]=_,t[5]=T);let E=re(T),D=E===`HTTPS`,O;t[6]===E?O=t[7]:(O=he(E),t[6]=E,t[7]=O);let k=O,A;t[8]!==y||t[9]!==b?(A=e=>{if(!e)return;let t=y(`port`);he(e)?(t===Ee&&b(`port`,De),e===`HTTPS`?y(`sslPolicy`)||b(`sslPolicy`,ge):b(`sslPolicy`,void 0)):(t===De&&b(`port`,Ee),b(`certificateArn`,void 0),b(`sslPolicy`,void 0))},t[8]=y,t[9]=b,t[10]=A):A=t[10];let j=A,M;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),t[11]=M):M=t[11];let N;t[12]!==j||t[13]!==r?(N=e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:e=>{t.onChange(e),j(e)},value:t.value,children:[(0,$.jsx)(f,{className:`w-full`,id:`listener-protocol`,children:(0,$.jsx)(l,{})}),(0,$.jsx)(d,{children:r.map(Ne)})]})},t[12]=j,t[13]=r,t[14]=N):N=t[14];let P;t[15]!==_||t[16]!==N?(P=(0,$.jsxs)(W,{children:[M,(0,$.jsx)(ie,{control:_,name:`protocol`,render:N})]}),t[15]=_,t[16]=N,t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),t[18]=F):F=t[18];let I=!!S.port,te=k?`443`:`80`,ne;t[19]===v?ne=t[20]:(ne=v(`port`,{valueAsNumber:!0}),t[19]=v,t[20]=ne);let L;t[21]!==I||t[22]!==te||t[23]!==ne?(L=(0,$.jsx)(ee,{"aria-invalid":I,id:`listener-port`,inputMode:`numeric`,placeholder:te,type:`number`,...ne}),t[21]=I,t[22]=te,t[23]=ne,t[24]=L):L=t[24];let R;t[25]===S.port?R=t[26]:(R=(0,$.jsx)(ae,{errors:[S.port]}),t[25]=S.port,t[26]=R);let z;t[27]!==L||t[28]!==R?(z=(0,$.jsxs)(W,{children:[F,L,R]}),t[27]=L,t[28]=R,t[29]=z):z=t[29];let B;t[30]!==c||t[31]!==_||t[32]!==S.certificateArn||t[33]!==C||t[34]!==D||t[35]!==k||t[36]!==b||t[37]!==m?(B=k&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,$.jsx)(ie,{control:_,name:`certificateArn`,render:e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(f,{"aria-invalid":!!S.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,$.jsx)(l,{placeholder:`Select certificate`})}),(0,$.jsx)(d,{children:c.map(Me)})]})}}),(0,$.jsx)(ae,{errors:[S.certificateArn]}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[c.length===0&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,$.jsx)(h,{className:`ml-auto`,onClick:()=>w(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),D&&(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,$.jsx)(ie,{control:_,name:`sslPolicy`,render:e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:t.onChange,value:t.value??`ELBSecurityPolicy-2016-08`,children:[(0,$.jsx)(f,{className:`w-full`,id:`listener-ssl-policy`,children:(0,$.jsx)(l,{})}),(0,$.jsx)(d,{children:m.map(je)})]})}})]}),(0,$.jsx)(g,{onImported:e=>b(`certificateArn`,e,{shouldValidate:!0}),onOpenChange:w,open:C})]}),t[30]=c,t[31]=_,t[32]=S.certificateArn,t[33]=C,t[34]=D,t[35]=k,t[36]=b,t[37]=m,t[38]=B):B=t[38];let V;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-default-tg`,children:`Default target group`})}),t[39]=V):V=t[39];let H;t[40]!==S.defaultTargetGroupArn||t[41]!==i?(H=e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(f,{"aria-invalid":!!S.defaultTargetGroupArn,className:`w-full`,id:`listener-default-tg`,children:(0,$.jsx)(l,{placeholder:`Select target group`})}),(0,$.jsx)(d,{children:i.map(Ae)})]})},t[40]=S.defaultTargetGroupArn,t[41]=i,t[42]=H):H=t[42];let G;t[43]!==_||t[44]!==H?(G=(0,$.jsx)(ie,{control:_,name:`defaultTargetGroupArn`,render:H}),t[43]=_,t[44]=H,t[45]=G):G=t[45];let K;t[46]===S.defaultTargetGroupArn?K=t[47]:(K=(0,$.jsx)(ae,{errors:[S.defaultTargetGroupArn]}),t[46]=S.defaultTargetGroupArn,t[47]=K);let q;t[48]===i.length?q=t[49]:(q=i.length===0&&(0,$.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups available in this VPC. Create one first.`}),t[48]=i.length,t[49]=q);let J;t[50]!==G||t[51]!==K||t[52]!==q?(J=(0,$.jsxs)(W,{children:[V,G,K,q]}),t[50]=G,t[51]=K,t[52]=q,t[53]=J):J=t[53];let Y;return t[54]!==P||t[55]!==z||t[56]!==B||t[57]!==J?(Y=(0,$.jsxs)($.Fragment,{children:[P,z,B,J]}),t[54]=P,t[55]=z,t[56]=B,t[57]=J,t[58]=Y):Y=t[58],Y}function Ae(e){return(0,$.jsxs)(u,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn)}function je(e){return(0,$.jsx)(u,{value:e.Name??``,children:e.Name},e.Name)}function Me(e){return(0,$.jsx)(u,{value:e.CertificateArn??``,children:Oe(e)},e.CertificateArn)}function Ne(e){return(0,$.jsx)(u,{value:e,children:e},e)}function Pe({listenerArn:e,targetGroups:t}){let{data:n}=a(I(e)),r=w(),o=b(),s=T(),[c,l]=(0,Q.useState)(!1),[u,d]=(0,Q.useState)(),[f,p]=(0,Q.useState)(),g=n.Rules??[],_=new Map;for(let e of t)e.TargetGroupArn&&e.TargetGroupName&&_.set(e.TargetGroupArn,e.TargetGroupName);return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[r.error&&(0,$.jsx)(i,{error:r.error,msg:`Failed to create rule`}),o.error&&(0,$.jsx)(i,{error:o.error,msg:`Failed to modify rule`}),s.error&&(0,$.jsx)(i,{error:s.error,msg:`Failed to delete rule`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[g.length,` rule`,g.length===1?``:`s`,` (including default)`]}),(0,$.jsx)(h,{onClick:()=>l(!0),size:`sm`,children:`Add rule`})]}),(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Priority`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Conditions`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Forward to`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:g.map(e=>(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Priority}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Fe(e.Conditions,e.IsDefault===!0)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Le(e,_)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:e.IsDefault===!0?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Edit via listener`}):(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(h,{"aria-label":`Edit rule ${e.Priority}`,onClick:()=>d(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(h,{"aria-label":`Delete rule ${e.Priority}`,onClick:()=>p(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(m,{className:`size-4`})})]})})]},e.RuleArn??e.Priority??`default`))})]})}),(0,$.jsx)(ze,{isPending:r.isPending,mode:`add`,onOpenChange:l,onSubmit:async t=>{try{await r.mutateAsync({listenerArn:e,priority:t.priority,conditions:t.conditions.map(Re),forwardTargetGroupArn:t.forwardTargetGroupArn}),l(!1)}catch{}},open:c,targetGroups:t}),(0,$.jsx)(ze,{initialRule:u,isPending:o.isPending,mode:`edit`,onOpenChange:e=>!e&&d(void 0),onSubmit:async t=>{if(u?.RuleArn)try{await o.mutateAsync({ruleArn:u.RuleArn,listenerArn:e,conditions:t.conditions.map(Re),forwardTargetGroupArn:t.forwardTargetGroupArn}),d(void 0)}catch{}},open:u!==void 0,targetGroups:t}),(0,$.jsx)(le,{description:f?`Delete rule with priority ${f.Priority}? This cannot be undone.`:``,isPending:s.isPending,onConfirm:async()=>{if(f?.RuleArn)try{await s.mutateAsync({ruleArn:f.RuleArn,listenerArn:e})}finally{p(void 0)}},onOpenChange:e=>!e&&p(void 0),open:f!==void 0,title:`Delete rule`})]})}function Fe(e,t){return t?`default`:!e||e.length===0?`—`:e.map(e=>{let t=Ie(e);return`${e.Field}: ${t.join(`, `)}`}).join(` AND `)}function Ie(e){if(e.Field===void 0)return e.Values??[];switch(e.Field){case`host-header`:return e.HostHeaderConfig?.Values??e.Values??[];case`path-pattern`:return e.PathPatternConfig?.Values??e.Values??[];case`http-header`:{let t=e.HttpHeaderConfig?.HttpHeaderName??`?`;return(e.HttpHeaderConfig?.Values??[]).map(e=>`${t}=${e}`)}case`http-request-method`:return e.HttpRequestMethodConfig?.Values??[];case`source-ip`:return e.SourceIpConfig?.Values??[];case`query-string`:return(e.QueryStringConfig?.Values??[]).map(e=>e.Key?`${e.Key}=${e.Value??``}`:e.Value??``);default:return e.Values??[]}}function Le(e,t){let n=e.Actions?.[0];return n?n.Type===`forward`&&n.TargetGroupArn?t.get(n.TargetGroupArn)??n.TargetGroupArn:n.Type??`—`:`—`}function Re(e){let t=e.rawValues.split(/[\n,]/).map(e=>e.trim()).filter(e=>e.length>0);return e.field===`query-string`?{field:e.field,values:[],queryStringPairs:t.map(e=>{let t=e.indexOf(`=`);return t===-1?{value:e}:{key:e.slice(0,t),value:e.slice(t+1)}})}:{field:e.field,values:t,httpHeaderName:e.httpHeaderName}}function ze({open:e,onOpenChange:t,onSubmit:n,isPending:r,targetGroups:i,mode:a,initialRule:o}){let s=[{field:`path-pattern`,rawValues:``}],c=z({resolver:V(fe),defaultValues:{priority:1,conditions:s,forwardTargetGroupArn:``}}),{fields:m,append:g,remove:_}=B({control:c.control,name:`conditions`});(0,Q.useEffect)(()=>{if(a===`add`){e||c.reset({priority:1,conditions:s,forwardTargetGroupArn:``});return}if(!o)return;let t=Number(o.Priority??1),n=o.Conditions?.map(e=>We(e))??s;c.reset({priority:Number.isFinite(t)?t:1,conditions:n.length>0?n:s,forwardTargetGroupArn:o.Actions?.[0]?.TargetGroupArn??``})},[o,e,a]);let v=c.handleSubmit(n);return(0,$.jsx)(ce,{onOpenChange:t,open:e,children:(0,$.jsxs)(K,{className:`grid-cols-[minmax(0,1fr)]`,style:{maxWidth:`40rem`,width:`calc(100vw - 2rem)`},children:[(0,$.jsxs)(se,{children:[(0,$.jsx)(q,{children:a===`add`?`Add rule`:`Edit rule`}),(0,$.jsx)(G,{children:`Routing rules match incoming requests and forward them to a target group. Rules evaluate in priority order; the listener default applies when no rule matches.`})]}),(0,$.jsxs)(`form`,{className:`min-w-0 space-y-4`,onSubmit:e=>{e.preventDefault(),v()},children:[(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`rule-priority`,children:`Priority`})}),(0,$.jsx)(ee,{"aria-invalid":!!c.formState.errors.priority,id:`rule-priority`,inputMode:`numeric`,type:`number`,...c.register(`priority`,{valueAsNumber:!0})}),(0,$.jsx)(ae,{errors:[c.formState.errors.priority]})]}),(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsx)(U,{children:`Conditions`}),(0,$.jsx)(h,{disabled:m.length>=5,onClick:()=>g({field:`path-pattern`,rawValues:``}),size:`sm`,type:`button`,variant:`outline`,children:`Add condition`})]}),m.map((e,t)=>(0,$.jsx)(Be,{form:c,index:t,onRemove:m.length>1?()=>_(t):void 0},e.id))]}),(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`rule-forward-tg`,children:`Forward to target group`})}),(0,$.jsx)(ie,{control:c.control,name:`forwardTargetGroupArn`,render:({field:e})=>(0,$.jsxs)(p,{onValueChange:e.onChange,value:e.value??``,children:[(0,$.jsx)(f,{"aria-invalid":!!c.formState.errors.forwardTargetGroupArn,className:`w-full`,id:`rule-forward-tg`,children:(0,$.jsx)(l,{placeholder:`Select target group`})}),(0,$.jsx)(d,{children:i.map(e=>(0,$.jsxs)(u,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,$.jsx)(ae,{errors:[c.formState.errors.forwardTargetGroupArn]})]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(oe,{disabled:r,children:`Cancel`}),(0,$.jsx)(J,{disabled:r,onClick:v,children:Ge(a,r)})]})]})})}function Be(e){let t=(0,Te.c)(54),{form:n,index:r,onRemove:i}=e,a,o,s,c,g,_,v,y,b,x;if(t[0]!==n||t[1]!==r||t[2]!==i){let e=n.watch(`conditions.${r}.field`);s=n.formState.errors.conditions?.[r],y=`space-y-2 rounded-md border p-3`;let S=`rule-cond-${r}-field`,C;t[13]===S?C=t[14]:(C=(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:S,children:`Type`})}),t[13]=S,t[14]=C);let w=`conditions.${r}.field`,T;t[15]===r?T=t[16]:(T=e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:t.onChange,value:t.value,children:[(0,$.jsx)(f,{className:`w-full`,id:`rule-cond-${r}-field`,children:(0,$.jsx)(l,{})}),(0,$.jsxs)(d,{children:[(0,$.jsx)(u,{value:`path-pattern`,children:`Path pattern`}),(0,$.jsx)(u,{value:`host-header`,children:`Host header`}),(0,$.jsx)(u,{value:`http-header`,children:`HTTP header`}),(0,$.jsx)(u,{value:`http-request-method`,children:`HTTP method`}),(0,$.jsx)(u,{value:`source-ip`,children:`Source IP CIDR`}),(0,$.jsx)(u,{value:`query-string`,children:`Query string`})]})]})},t[15]=r,t[16]=T);let E;t[17]!==n.control||t[18]!==w||t[19]!==T?(E=(0,$.jsx)(ie,{control:n.control,name:w,render:T}),t[17]=n.control,t[18]=w,t[19]=T,t[20]=E):E=t[20];let D;t[21]!==E||t[22]!==C?(D=(0,$.jsxs)(`div`,{className:`flex-1`,children:[C,E]}),t[21]=E,t[22]=C,t[23]=D):D=t[23];let O;t[24]!==r||t[25]!==i?(O=i&&(0,$.jsx)(h,{"aria-label":`Remove condition ${r+1}`,className:`self-end`,onClick:i,size:`sm`,type:`button`,variant:`ghost`,children:(0,$.jsx)(m,{className:`size-4`})}),t[24]=r,t[25]=i,t[26]=O):O=t[26],t[27]!==D||t[28]!==O?(b=(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[D,O]}),t[27]=D,t[28]=O,t[29]=b):b=t[29],x=e===`http-header`&&(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`rule-cond-${r}-hdr-name`,children:`Header name`})}),(0,$.jsx)(ee,{"aria-invalid":!!s?.httpHeaderName,id:`rule-cond-${r}-hdr-name`,placeholder:`X-Tenant`,...n.register(`conditions.${r}.httpHeaderName`)}),(0,$.jsx)(ae,{errors:[s?.httpHeaderName]})]}),o=W;let k=`rule-cond-${r}-values`,A;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`(comma or newline separated, max 5)`}),t[30]=A):A=t[30],t[31]===k?v=t[32]:(v=(0,$.jsx)(U,{children:(0,$.jsxs)(`label`,{htmlFor:k,children:[`Values`,` `,A]})}),t[31]=k,t[32]=v),a=ee,c=!!s?.rawValues,g=`rule-cond-${r}-values`,_=Ve(e),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=g,t[8]=_,t[9]=v,t[10]=y,t[11]=b,t[12]=x}else a=t[3],o=t[4],s=t[5],c=t[6],g=t[7],_=t[8],v=t[9],y=t[10],b=t[11],x=t[12];let S;t[33]!==n||t[34]!==r?(S=n.register(`conditions.${r}.rawValues`),t[33]=n,t[34]=r,t[35]=S):S=t[35];let C;t[36]!==a||t[37]!==c||t[38]!==g||t[39]!==_||t[40]!==S?(C=(0,$.jsx)(a,{"aria-invalid":c,id:g,placeholder:_,...S}),t[36]=a,t[37]=c,t[38]=g,t[39]=_,t[40]=S,t[41]=C):C=t[41];let w=s?.rawValues,T;t[42]===w?T=t[43]:(T=(0,$.jsx)(ae,{errors:[w]}),t[42]=w,t[43]=T);let E;t[44]!==o||t[45]!==T||t[46]!==v||t[47]!==C?(E=(0,$.jsxs)(o,{children:[v,C,T]}),t[44]=o,t[45]=T,t[46]=v,t[47]=C,t[48]=E):E=t[48];let D;return t[49]!==E||t[50]!==y||t[51]!==b||t[52]!==x?(D=(0,$.jsxs)(`div`,{className:y,children:[b,x,E]}),t[49]=E,t[50]=y,t[51]=b,t[52]=x,t[53]=D):D=t[53],D}function Ve(e){switch(e){case`path-pattern`:return`/api/*`;case`host-header`:return`*.example.com`;case`http-header`:return`acme`;case`http-request-method`:return`GET, POST`;case`source-ip`:return`10.0.0.0/8`;case`query-string`:return`key=value`;default:return``}}var He=new Set([`host-header`,`path-pattern`,`http-header`,`http-request-method`,`source-ip`,`query-string`]);function Ue(e){return e!==void 0&&He.has(e)}function We(e){let t=Ie(e);return{field:Ue(e.Field)?e.Field:`path-pattern`,httpHeaderName:e.HttpHeaderConfig?.HttpHeaderName,rawValues:t.join(`, `)}}function Ge(e,t){return t?e===`add`?`Adding…`:`Saving…`:e===`add`?`Add rule`:`Save changes`}function Ke(e){return{protocol:me(e),port:80,defaultTargetGroupArn:``}}function qe(e){if(e.Protocol!==`HTTPS`)return`—`;let t=e.Certificates?.[0]?.CertificateArn?.split(`/`).pop(),n=e.SslPolicy;return t&&n?`${n} · ${t}`:n??t??`—`}function Je({loadBalancerArn:e,vpcId:t,lbType:n}){let r=de(n),{data:o}=a(k(e)),{data:s}=a(te),{data:c}=a(A),{data:l}=a(R),u=E(),d=v(),f=D(),[p,g]=(0,Q.useState)(!1),[_,y]=(0,Q.useState)(),[b,x]=(0,Q.useState)(),[S,C]=(0,Q.useState)(),w=o.Listeners??[],T=s.TargetGroups??[],O=T.filter(e=>e.VpcId===t),j=c.CertificateSummaryList??[],M=l.SslPolicies??[],N=new Map;for(let e of T)e.TargetGroupArn&&e.TargetGroupName&&N.set(e.TargetGroupArn,e.TargetGroupName);let P=e=>{let t=e.DefaultActions?.[0];if(!t)return`—`;if(t.Type===`forward`&&t.TargetGroupArn){let e=N.get(t.TargetGroupArn);return e?`forward → ${e}`:`forward → ${t.TargetGroupArn}`}return t.Type??`—`};return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[u.error&&(0,$.jsx)(i,{error:u.error,msg:`Failed to create listener`}),f.error&&(0,$.jsx)(i,{error:f.error,msg:`Failed to modify listener`}),d.error&&(0,$.jsx)(i,{error:d.error,msg:`Failed to delete listener`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[w.length,` listener`,w.length===1?``:`s`]}),(0,$.jsx)(h,{onClick:()=>g(!0),size:`sm`,children:`Add listener`})]}),w.length===0?(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No listeners configured.`}):(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`TLS`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Default action`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Listener ARN`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:w.map(e=>{let t=e.ListenerArn??``,n=S===t;return(0,$.jsxs)(Q.Fragment,{children:[(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol}),(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Port}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:qe(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:P(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(h,{"aria-label":`${n?`Hide`:`Show`} rules for listener ${e.Protocol}:${e.Port}`,onClick:()=>C(n?void 0:t),size:`sm`,variant:`ghost`,children:n?`Hide rules`:`Rules`}),(0,$.jsx)(h,{"aria-label":`Edit listener ${e.Protocol}:${e.Port}`,onClick:()=>y(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(h,{"aria-label":`Delete listener ${e.Protocol}:${e.Port}`,onClick:()=>x(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(m,{className:`size-4`})})]})})]}),n&&t&&(0,$.jsx)(`tr`,{className:`border-b bg-muted/30 last:border-0`,children:(0,$.jsx)(`td`,{className:`px-4 py-3`,colSpan:6,children:(0,$.jsx)(Pe,{listenerArn:t,targetGroups:O})})})]},t)})})]})}),(0,$.jsx)(Ye,{certificates:j,isPending:u.isPending,lbType:n,onOpenChange:g,onSubmit:async t=>{try{await u.mutateAsync({loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn,certificateArn:t.certificateArn,sslPolicy:t.sslPolicy}),g(!1)}catch{}},open:p,protocols:r,sslPolicies:M,targetGroups:O}),(0,$.jsx)(Xe,{certificates:j,isPending:f.isPending,listener:_,onOpenChange:e=>!e&&y(void 0),onSubmit:async t=>{if(_?.ListenerArn)try{await f.mutateAsync({listenerArn:_.ListenerArn,loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn,certificateArn:t.certificateArn,sslPolicy:t.sslPolicy}),y(void 0)}catch{}},protocols:r,sslPolicies:M,targetGroups:O}),(0,$.jsx)(le,{description:b?`Delete listener ${b.Protocol}:${b.Port}? This cannot be undone.`:``,isPending:d.isPending,onConfirm:async()=>{if(b?.ListenerArn)try{await d.mutateAsync(b.ListenerArn)}finally{x(void 0)}},onOpenChange:e=>!e&&x(void 0),open:b!==void 0,title:`Delete listener`})]})}function Ye(e){let t=(0,Te.c)(42),{open:n,onOpenChange:r,lbType:i,protocols:a,targetGroups:o,certificates:s,sslPolicies:c,isPending:l,onSubmit:u}=e,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=V(pe),t[0]=d):d=t[0];let f;t[1]===i?f=t[2]:(f=Ke(i),t[1]=i,t[2]=f);let p;t[3]===f?p=t[4]:(p={resolver:d,defaultValues:f},t[3]=f,t[4]=p);let m=z(p),h,g;t[5]!==m||t[6]!==i||t[7]!==n?(h=()=>{n||m.reset(Ke(i))},g=[n,m,i],t[5]=m,t[6]=i,t[7]=n,t[8]=h,t[9]=g):(h=t[8],g=t[9]),(0,Q.useEffect)(h,g);let _;t[10]!==m||t[11]!==u?(_=m.handleSubmit(u),t[10]=m,t[11]=u,t[12]=_):_=t[12];let v=_,y;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(y={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[13]=y):y=t[13];let b;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsxs)(se,{children:[(0,$.jsx)(q,{children:`Add listener`}),(0,$.jsx)(G,{children:`Listeners forward incoming traffic to a default target group.`})]}),t[14]=b):b=t[14];let x;t[15]===v?x=t[16]:(x=e=>{e.preventDefault(),v()},t[15]=v,t[16]=x);let S;t[17]!==s||t[18]!==m||t[19]!==a||t[20]!==c||t[21]!==o?(S=(0,$.jsx)(ke,{certificates:s,form:m,protocols:a,sslPolicies:c,targetGroups:o}),t[17]=s,t[18]=m,t[19]=a,t[20]=c,t[21]=o,t[22]=S):S=t[22];let C;t[23]!==S||t[24]!==x?(C=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:x,children:S}),t[23]=S,t[24]=x,t[25]=C):C=t[25];let w;t[26]===l?w=t[27]:(w=(0,$.jsx)(oe,{disabled:l,children:`Cancel`}),t[26]=l,t[27]=w);let T=l?`Adding…`:`Add listener`,E;t[28]!==v||t[29]!==l||t[30]!==T?(E=(0,$.jsx)(J,{disabled:l,onClick:v,children:T}),t[28]=v,t[29]=l,t[30]=T,t[31]=E):E=t[31];let D;t[32]!==w||t[33]!==E?(D=(0,$.jsxs)(Y,{children:[w,E]}),t[32]=w,t[33]=E,t[34]=D):D=t[34];let O;t[35]!==C||t[36]!==D?(O=(0,$.jsxs)(K,{className:`grid-cols-[minmax(0,1fr)]`,style:y,children:[b,C,D]}),t[35]=C,t[36]=D,t[37]=O):O=t[37];let k;return t[38]!==r||t[39]!==n||t[40]!==O?(k=(0,$.jsx)(ce,{onOpenChange:r,open:n,children:O}),t[38]=r,t[39]=n,t[40]=O,t[41]=k):k=t[41],k}function Xe(e){let t=(0,Te.c)(38),{listener:n,onOpenChange:r,protocols:i,targetGroups:a,certificates:o,sslPolicies:s,isPending:c,onSubmit:l}=e,u=n!==void 0,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d={resolver:V(pe),defaultValues:{protocol:`HTTP`,port:80,defaultTargetGroupArn:``}},t[0]=d):d=t[0];let f=z(d),p,m;t[1]!==f||t[2]!==n||t[3]!==i?(p=()=>{if(!n)return;let e=i.find(e=>e===n.Protocol)??i[0]??`HTTP`,t=he(e);f.reset({protocol:e,port:n.Port??80,defaultTargetGroupArn:n.DefaultActions?.[0]?.TargetGroupArn??``,certificateArn:t?n.Certificates?.[0]?.CertificateArn:void 0,sslPolicy:e===`HTTPS`?n.SslPolicy:void 0})},m=[n,f,i],t[1]=f,t[2]=n,t[3]=i,t[4]=p,t[5]=m):(p=t[4],m=t[5]),(0,Q.useEffect)(p,m);let h;t[6]!==f||t[7]!==l?(h=f.handleSubmit(l),t[6]=f,t[7]=l,t[8]=h):h=t[8];let g=h,_;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[9]=_):_=t[9];let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsxs)(se,{children:[(0,$.jsx)(q,{children:`Edit listener`}),(0,$.jsx)(G,{children:`Update port, protocol, or default target group. Changes apply without dropping the listener.`})]}),t[10]=v):v=t[10];let y;t[11]===g?y=t[12]:(y=e=>{e.preventDefault(),g()},t[11]=g,t[12]=y);let b;t[13]!==o||t[14]!==f||t[15]!==i||t[16]!==s||t[17]!==a?(b=(0,$.jsx)(ke,{certificates:o,form:f,protocols:i,sslPolicies:s,targetGroups:a}),t[13]=o,t[14]=f,t[15]=i,t[16]=s,t[17]=a,t[18]=b):b=t[18];let x;t[19]!==y||t[20]!==b?(x=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:y,children:b}),t[19]=y,t[20]=b,t[21]=x):x=t[21];let S;t[22]===c?S=t[23]:(S=(0,$.jsx)(oe,{disabled:c,children:`Cancel`}),t[22]=c,t[23]=S);let C=c?`Saving…`:`Save changes`,w;t[24]!==g||t[25]!==c||t[26]!==C?(w=(0,$.jsx)(J,{disabled:c,onClick:g,children:C}),t[24]=g,t[25]=c,t[26]=C,t[27]=w):w=t[27];let T;t[28]!==S||t[29]!==w?(T=(0,$.jsxs)(Y,{children:[S,w]}),t[28]=S,t[29]=w,t[30]=T):T=t[30];let E;t[31]!==T||t[32]!==x?(E=(0,$.jsxs)(K,{className:`grid-cols-[minmax(0,1fr)]`,style:_,children:[v,x,T]}),t[31]=T,t[32]=x,t[33]=E):E=t[33];let D;return t[34]!==r||t[35]!==u||t[36]!==E?(D=(0,$.jsx)(ce,{onOpenChange:r,open:u,children:E}),t[34]=r,t[35]=u,t[36]=E,t[37]=D):D=t[37],D}function Ze(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function Qe(e){let t=(0,Te.c)(46),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,m;t[3]===l?m=t[4]:(m=()=>d(l),t[3]=l,t[4]=m);let g=m,_;t[5]!==l||t[6]!==u?(_=Ze(u,l),t[5]=l,t[6]=u,t[7]=_):_=t[7];let v=!_,y=u.length===0,b;t[8]!==v||t[9]!==y||t[10]!==i||t[11]!==u?(b=e=>{e.preventDefault(),!(!v||y)&&i(u)},t[8]=v,t[9]=y,t[10]=i,t[11]=u,t[12]=b):b=t[12];let x;t[13]===o?x=t[14]:(x=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update security groups`}),t[13]=o,t[14]=x);let S;t[15]!==v||t[16]!==s?(S=s&&!v&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Security groups updated.`}),t[15]=v,t[16]=s,t[17]=S):S=t[17];let C;t[18]!==n||t[19]!==u?(C=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No security groups in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:u.includes(e.GroupId??``),onChange:()=>p(e.GroupId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId)),t[18]=n,t[19]=u,t[20]=C):C=t[20];let w;t[21]===y?w=t[22]:(w=y&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one security group is required.`}),t[21]=y,t[22]=w);let T;t[23]!==C||t[24]!==w?(T=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[C,w]}),t[23]=C,t[24]=w,t[25]=T):T=t[25];let E=v?`Unsaved changes`:`No changes`,D;t[26]===E?D=t[27]:(D=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:E}),t[26]=E,t[27]=D);let O=a||!v,k;t[28]!==g||t[29]!==O?(k=(0,$.jsx)(h,{disabled:O,onClick:g,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[28]=g,t[29]=O,t[30]=k):k=t[30];let A=a||!v||y,j=a?`Saving…`:`Save changes`,M;t[31]!==A||t[32]!==j?(M=(0,$.jsx)(h,{disabled:A,size:`sm`,type:`submit`,children:j}),t[31]=A,t[32]=j,t[33]=M):M=t[33];let N;t[34]!==D||t[35]!==k||t[36]!==M?(N=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[D,k,M]}),t[34]=D,t[35]=k,t[36]=M,t[37]=N):N=t[37];let P;t[38]!==T||t[39]!==N?(P=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[T,N]}),t[38]=T,t[39]=N,t[40]=P):P=t[40];let F;return t[41]!==P||t[42]!==b||t[43]!==x||t[44]!==S?(F=(0,$.jsxs)(`form`,{onSubmit:b,children:[x,S,P]}),t[41]=P,t[42]=b,t[43]=x,t[44]=S,t[45]=F):F=t[45],F}function $e(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function et(e){let t=s(e.Tags),n=e.AvailabilityZone?` · ${e.AvailabilityZone}`:``,r=e.CidrBlock?` (${e.CidrBlock})`:``;return`${e.SubnetId}${t?` — ${t}`:``}${r}${n}`}function tt(e){let t=(0,Te.c)(47),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,m;t[3]===l?m=t[4]:(m=()=>d(l),t[3]=l,t[4]=m);let g=m,_;t[5]!==l||t[6]!==u?(_=$e(u,l),t[5]=l,t[6]=u,t[7]=_):_=t[7];let v=!_,y=u.length===0,b;t[8]!==v||t[9]!==y||t[10]!==i||t[11]!==u?(b=e=>{e.preventDefault(),!(!v||y)&&i(u)},t[8]=v,t[9]=y,t[10]=i,t[11]=u,t[12]=b):b=t[12];let x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-amber-500 bg-amber-500/10 p-3 text-sm text-amber-700 dark:text-amber-400`,role:`note`,children:`Applying a subnet change re-homes the load balancer by relaunching its underlying system VM. Expect a brief data-plane interruption while it restarts.`}),t[13]=x):x=t[13];let S;t[14]===o?S=t[15]:(S=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update subnets`}),t[14]=o,t[15]=S);let C;t[16]!==v||t[17]!==s?(C=s&&!v&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Subnets updated.`}),t[16]=v,t[17]=s,t[18]=C):C=t[18];let w;t[19]!==n||t[20]!==u?(w=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnets in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:u.includes(e.SubnetId??``),onChange:()=>p(e.SubnetId??``),type:`checkbox`}),(0,$.jsx)(`span`,{className:`font-mono`,children:et(e)})]},e.SubnetId)),t[19]=n,t[20]=u,t[21]=w):w=t[21];let T;t[22]===y?T=t[23]:(T=y&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one subnet is required.`}),t[22]=y,t[23]=T);let E;t[24]!==T||t[25]!==w?(E=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[w,T]}),t[24]=T,t[25]=w,t[26]=E):E=t[26];let D=v?`Unsaved changes`:`No changes`,O;t[27]===D?O=t[28]:(O=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:D}),t[27]=D,t[28]=O);let k=a||!v,A;t[29]!==g||t[30]!==k?(A=(0,$.jsx)(h,{disabled:k,onClick:g,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[29]=g,t[30]=k,t[31]=A):A=t[31];let j=a||!v||y,M=a?`Saving…`:`Save changes`,N;t[32]!==j||t[33]!==M?(N=(0,$.jsx)(h,{disabled:j,size:`sm`,type:`submit`,children:M}),t[32]=j,t[33]=M,t[34]=N):N=t[34];let P;t[35]!==O||t[36]!==A||t[37]!==N?(P=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[O,A,N]}),t[35]=O,t[36]=A,t[37]=N,t[38]=P):P=t[38];let F;t[39]!==E||t[40]!==P?(F=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[E,P]}),t[39]=E,t[40]=P,t[41]=F):F=t[41];let I;return t[42]!==F||t[43]!==b||t[44]!==S||t[45]!==C?(I=(0,$.jsxs)(`form`,{onSubmit:b,children:[x,S,C,F]}),t[42]=F,t[43]=b,t[44]=S,t[45]=C,t[46]=I):I=t[46],I}function nt({arn:e}){let t=M(),{data:n}=a(N(e)),{data:r}=a(j(e)),{data:l}=a(O([e])),{data:u}=a(F),{data:d}=a(ne),f=C(),p=y(),g=_(),v=S(),b=x(),[w,T]=(0,Q.useState)(!1),E=n.LoadBalancers?.[0];if(!E?.LoadBalancerArn)return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(c,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`Load balancer not found.`})]});let D=async()=>{try{await f.mutateAsync(e),t({to:`/ec2/describe-load-balancers`})}finally{T(!1)}},k=u.Subnets??[],A=e=>{let t=k.find(t=>t.SubnetId===e);if(!t)return e;let n=s(t.Tags),r=t.CidrBlock?` (${t.CidrBlock})`:``;return n?`${e} — ${n}${r}`:`${e}${r}`},P=r.Attributes??[],I=l?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[],ee=(E.SecurityGroups??[]).filter(e=>e!==void 0),te=(d.SecurityGroups??[]).filter(e=>e.VpcId===E.VpcId),L=k.filter(e=>e.VpcId===E.VpcId),R=(E.AvailabilityZones??[]).map(e=>e.SubnetId).filter(e=>e!==void 0),re=E.Type===`network`;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(c,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),f.error&&(0,$.jsx)(i,{error:f.error,msg:`Failed to delete load balancer`}),(0,$.jsxs)(`div`,{className:`space-y-6`,children:[(0,$.jsx)(H,{actions:(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(h,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,$.jsx)(m,{className:`size-4`}),`Delete`]}),(0,$.jsx)(ue,{state:E.State?.Code})]}),subtitle:`Load Balancer Details`,title:E.LoadBalancerName??E.LoadBalancerArn}),(0,$.jsxs)(Ce,{defaultValue:`overview`,children:[(0,$.jsxs)(xe,{children:[(0,$.jsx)(be,{value:`overview`,children:`Overview`}),(0,$.jsx)(be,{value:`listeners`,children:`Listeners`}),(0,$.jsx)(be,{value:`subnets`,children:`Subnets`}),!re&&(0,$.jsx)(be,{value:`security-groups`,children:`Security groups`}),(0,$.jsx)(be,{value:`attributes`,children:`Attributes`}),(0,$.jsx)(be,{value:`tags`,children:`Tags`})]}),(0,$.jsxs)(Se,{value:`overview`,children:[(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Load balancer`}),(0,$.jsxs)(X.Content,{children:[(0,$.jsx)(Z,{label:`ARN`,value:E.LoadBalancerArn}),(0,$.jsx)(Z,{label:`DNS name`,value:E.DNSName}),(0,$.jsx)(Z,{label:`State`,value:E.State?.Reason?`${E.State.Code} — ${E.State.Reason}`:E.State?.Code}),(0,$.jsx)(Z,{label:`Type`,value:E.Type}),(0,$.jsx)(Z,{label:`Scheme`,value:E.Scheme}),(0,$.jsx)(Z,{label:`IP address type`,value:E.IpAddressType}),(0,$.jsx)(Z,{label:`VPC`,value:E.VpcId}),(0,$.jsx)(Z,{label:`Created at`,value:o(E.CreatedTime)})]})]}),(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Availability zones`}),(0,$.jsx)(X.Content,{children:(E.AvailabilityZones??[]).map(e=>(0,$.jsx)(Z,{label:e.ZoneName??`—`,value:e.SubnetId?A(e.SubnetId):void 0},`${e.ZoneName}-${e.SubnetId}`))})]}),(E.SecurityGroups??[]).length>0&&(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Security groups`}),(0,$.jsx)(X.Content,{children:(E.SecurityGroups??[]).map(e=>(0,$.jsx)(Z,{label:`Security group`,value:e},e))})]})]}),(0,$.jsx)(Se,{value:`listeners`,children:(0,$.jsx)(Je,{lbType:re?`network`:`application`,loadBalancerArn:e,vpcId:E.VpcId})}),(0,$.jsx)(Se,{value:`subnets`,children:(0,$.jsx)(tt,{available:L,current:R,error:b.error,isPending:b.isPending,isSuccess:b.isSuccess,onSubmit:t=>b.mutate({loadBalancerArn:e,subnetIds:t})})}),!re&&(0,$.jsx)(Se,{value:`security-groups`,children:(0,$.jsx)(Qe,{available:te,current:ee,error:v.error,isPending:v.isPending,isSuccess:v.isSuccess,onSubmit:t=>v.mutate({loadBalancerArn:e,securityGroupIds:t})})}),(0,$.jsx)(Se,{value:`attributes`,children:(0,$.jsx)(_e,{attributes:P,error:p.error,isPending:p.isPending,isSuccess:p.isSuccess,onSubmit:t=>{p.mutate({loadBalancerArn:e,attributes:t})},specs:ve})}),(0,$.jsx)(Se,{value:`tags`,children:(0,$.jsx)(ye,{error:g.error,isPending:g.isPending,isSuccess:g.isSuccess,onSubmit:t=>g.mutate({resourceArn:e,tags:t,initialKeys:I.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:I})})]})]}),(0,$.jsx)(le,{description:`Are you sure you want to delete load balancer "${E.LoadBalancerName??E.LoadBalancerArn}"? This action cannot be undone.`,isPending:f.isPending,onConfirm:D,onOpenChange:T,open:w,title:`Delete load balancer`})]})}function rt(){let e=(0,Te.c)(2),{id:t}=L.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,$.jsx)(nt,{arn:n}),e[0]=n,e[1]=r),r}export{rt as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id7.js b/spinifex/services/spinifexui/frontend/dist/assets/_id7.js index baecb0450..25b2b86d6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id7.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id7.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Wt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{E as u}from"./ec2.js";import{Ir as d,s as f,xt as p}from"./index.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=d(),{data:n}=i(p(e)),x=u(),[S,C]=(0,y.useState)(!1),w=n.NatGateways?.[0],T=async()=>{try{await x.mutateAsync(e),t({to:`/ec2/describe-nat-gateways`})}finally{C(!1)}};if(!w?.NatGatewayId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`NAT Gateway not found.`})]});let E=o(w.Tags),D=w.NatGatewayAddresses?.[0];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),x.error&&(0,b.jsx)(r,{error:x.error,msg:`Failed to delete NAT Gateway`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(l,{disabled:x.isPending,onClick:()=>C(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(c,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:w.State})]}),subtitle:`NAT Gateway Details`,title:E?`${w.NatGatewayId} (${E})`:w.NatGatewayId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`NAT Gateway Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`NAT Gateway ID`,value:w.NatGatewayId}),(0,b.jsx)(_,{label:`State`,value:w.State}),(0,b.jsx)(_,{label:`Connectivity`,value:w.ConnectivityType}),(0,b.jsx)(_,{label:`Subnet ID`,value:w.SubnetId?(0,b.jsx)(a,{className:`text-primary hover:underline`,params:{id:w.SubnetId},to:`/ec2/describe-subnets/$id`,children:w.SubnetId}):`—`}),(0,b.jsx)(_,{label:`VPC ID`,value:w.VpcId?(0,b.jsx)(a,{className:`text-primary hover:underline`,params:{id:w.VpcId},to:`/ec2/describe-vpcs/$id`,children:w.VpcId}):`—`}),(0,b.jsx)(_,{label:`Public IP`,value:D?.PublicIp??`—`}),(0,b.jsx)(_,{label:`Allocation ID`,value:D?.AllocationId?(0,b.jsx)(a,{className:`text-primary hover:underline`,params:{id:D.AllocationId},to:`/ec2/describe-addresses/$id`,children:D.AllocationId}):`—`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the NAT Gateway "${w.NatGatewayId}"? This action cannot be undone. The associated Elastic IP is not released.`,isPending:x.isPending,onConfirm:T,onOpenChange:C,open:S,title:`Delete NAT Gateway`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{E as u}from"./ec2.js";import{Ir as d,s as f,xt as p}from"./index.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=d(),{data:n}=i(p(e)),x=u(),[S,C]=(0,y.useState)(!1),w=n.NatGateways?.[0],T=async()=>{try{await x.mutateAsync(e),t({to:`/ec2/describe-nat-gateways`})}finally{C(!1)}};if(!w?.NatGatewayId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`NAT Gateway not found.`})]});let E=o(w.Tags),D=w.NatGatewayAddresses?.[0];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),x.error&&(0,b.jsx)(r,{error:x.error,msg:`Failed to delete NAT Gateway`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(l,{disabled:x.isPending,onClick:()=>C(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(c,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:w.State})]}),subtitle:`NAT Gateway Details`,title:E?`${w.NatGatewayId} (${E})`:w.NatGatewayId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`NAT Gateway Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`NAT Gateway ID`,value:w.NatGatewayId}),(0,b.jsx)(_,{label:`State`,value:w.State}),(0,b.jsx)(_,{label:`Connectivity`,value:w.ConnectivityType}),(0,b.jsx)(_,{label:`Subnet ID`,value:w.SubnetId?(0,b.jsx)(a,{className:`text-primary hover:underline`,params:{id:w.SubnetId},to:`/ec2/describe-subnets/$id`,children:w.SubnetId}):`—`}),(0,b.jsx)(_,{label:`VPC ID`,value:w.VpcId?(0,b.jsx)(a,{className:`text-primary hover:underline`,params:{id:w.VpcId},to:`/ec2/describe-vpcs/$id`,children:w.VpcId}):`—`}),(0,b.jsx)(_,{label:`Public IP`,value:D?.PublicIp??`—`}),(0,b.jsx)(_,{label:`Allocation ID`,value:D?.AllocationId?(0,b.jsx)(a,{className:`text-primary hover:underline`,params:{id:D.AllocationId},to:`/ec2/describe-addresses/$id`,children:D.AllocationId}):`—`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the NAT Gateway "${w.NatGatewayId}"? This action cannot be undone. The associated Elastic IP is not released.`,isPending:x.isPending,onConfirm:T,onOpenChange:C,open:S,title:`Delete NAT Gateway`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id9.js b/spinifex/services/spinifexui/frontend/dist/assets/_id9.js index 3eb0d7321..98c0711b3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id9.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id9.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Wt as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{O as h,g,i as ee,k as te,z as _}from"./ec2.js";import{Et as v,Ir as y,Nt as b,Rn as x,St as S,l as ne,vt as re}from"./index.js";import{a as ie,i as C,n as w,t as T}from"./zod.js";import{t as ae}from"./page-heading.js";import{a as E,r as D,t as O}from"./field.js";import{l as k,r as A}from"./ec22.js";import{t as oe}from"./delete-confirmation-dialog.js";import{n as j,t as M}from"./detail-row.js";import{t as se}from"./badge.js";var N=t(n()),P=e();function F(e){return e.GatewayId??e.NatGatewayId??e.NetworkInterfaceId??e.InstanceId??e.VpcPeeringConnectionId??`—`}function I(){let{id:e}=ne.useParams(),t=y(),{data:n}=i(v(e)),{data:I}=i(re),{data:L}=i(S),{data:R}=i(b),z=te(),B=g(),V=h(),H=ee(),U=_(),[W,G]=(0,N.useState)(!1),K=n.RouteTables?.[0],q=C({resolver:T(k),defaultValues:{destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``}}),ce=ie({control:q.control,name:`targetType`}),J=C({resolver:T(A),defaultValues:{subnetId:``}});if(!K?.RouteTableId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Route Table not found.`})]});let Y=K.RouteTableId,X=o(K.Tags),Z=K.Associations?.some(e=>e.Main)??!1,Q=K.Routes??[],$=(K.Associations??[]).filter(e=>e.SubnetId),le=(I.InternetGateways??[]).filter(e=>e.Attachments?.some(e=>e.VpcId===K.VpcId)),ue=(L.NatGateways??[]).filter(e=>e.VpcId===K.VpcId&&e.State===`available`),de=new Set($.map(e=>e.SubnetId)),fe=(R.Subnets??[]).filter(e=>e.VpcId===K.VpcId&&!de.has(e.SubnetId)),pe=async()=>{try{await z.mutateAsync(Y),t({to:`/ec2/describe-route-tables`})}finally{G(!1)}},me=async e=>{await B.mutateAsync({routeTableId:Y,destinationCidrBlock:e.destinationCidrBlock,gatewayId:e.targetType===`igw`?e.targetId:void 0,natGatewayId:e.targetType===`nat`?e.targetId:void 0}),q.reset({destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``})},he=async e=>{await H.mutateAsync({routeTableId:Y,subnetId:e.subnetId}),J.reset({subnetId:``})};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z.error&&(0,P.jsx)(r,{error:z.error,msg:`Failed to delete Route Table`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(ae,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(m,{disabled:Z||z.isPending,onClick:()=>G(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(p,{className:`size-4`}),`Delete`]}),Z&&(0,P.jsx)(se,{variant:`secondary`,children:`Main`})]}),subtitle:`Route Table Details`,title:X?`${K.RouteTableId} (${X})`:K.RouteTableId}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Route Table Information`}),(0,P.jsxs)(j.Content,{children:[(0,P.jsx)(M,{label:`Route Table ID`,value:K.RouteTableId}),(0,P.jsx)(M,{label:`Main`,value:Z?`Yes`:`No`}),(0,P.jsx)(M,{label:`VPC ID`,value:K.VpcId?(0,P.jsx)(a,{className:`text-primary hover:underline`,params:{id:K.VpcId},to:`/ec2/describe-vpcs/$id`,children:K.VpcId}):`—`}),(0,P.jsx)(M,{label:`Owner ID`,value:K.OwnerId??`—`})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Routes`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[(0,P.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,P.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,P.jsx)(`thead`,{className:`bg-muted/50 text-left text-muted-foreground`,children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Destination`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Target`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Status`}),(0,P.jsx)(`th`,{className:`p-2`,children:(0,P.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,P.jsx)(`tbody`,{children:Q.length>0?Q.map(e=>{let t=e.DestinationCidrBlock??e.DestinationPrefixListId??`—`,n=e.GatewayId===`local`,r=e.DestinationCidrBlock;return(0,P.jsxs)(`tr`,{className:`border-t`,children:[(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:t}),(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:F(e)}),(0,P.jsx)(`td`,{className:`p-2`,children:e.State??`—`}),(0,P.jsx)(`td`,{className:`p-2 text-right`,children:!n&&r&&(0,P.jsx)(m,{disabled:V.isPending,onClick:async()=>await V.mutateAsync({routeTableId:Y,destinationCidrBlock:r}),size:`sm`,variant:`ghost`,children:(0,P.jsx)(p,{className:`size-4`})})})]},t)}):(0,P.jsx)(`tr`,{children:(0,P.jsx)(`td`,{className:`p-2 text-muted-foreground`,colSpan:4,children:`No routes.`})})})]})}),(B.error??V.error)&&(0,P.jsx)(r,{error:B.error??V.error??void 0,msg:`Failed to update route`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_1fr_1fr_auto]`,onSubmit:q.handleSubmit(me),children:[(0,P.jsxs)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`destinationCidrBlock`,children:`Destination`})}),(0,P.jsx)(x,{id:`destinationCidrBlock`,placeholder:`0.0.0.0/0`,...q.register(`destinationCidrBlock`)}),(0,P.jsx)(D,{errors:[q.formState.errors.destinationCidrBlock]})]}),(0,P.jsxs)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`targetType`,children:`Target type`})}),(0,P.jsx)(w,{control:q.control,name:`targetType`,render:({field:e})=>(0,P.jsxs)(f,{onValueChange:t=>{e.onChange(t),q.setValue(`targetId`,``)},value:e.value,children:[(0,P.jsx)(d,{className:`w-full`,id:`targetType`,children:(0,P.jsx)(c,{})}),(0,P.jsxs)(u,{children:[(0,P.jsx)(l,{value:`igw`,children:`Internet Gateway`}),(0,P.jsx)(l,{value:`nat`,children:`NAT Gateway`})]})]})})]}),(0,P.jsxs)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`targetId`,children:`Target`})}),(0,P.jsx)(w,{control:q.control,name:`targetId`,render:({field:e})=>(0,P.jsxs)(f,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(d,{"aria-invalid":!!q.formState.errors.targetId,className:`w-full`,id:`targetId`,children:(0,P.jsx)(c,{placeholder:`Select target`})}),(0,P.jsx)(u,{children:ce===`igw`?le.map(e=>(0,P.jsx)(l,{value:e.InternetGatewayId??``,children:e.InternetGatewayId},e.InternetGatewayId)):ue.map(e=>(0,P.jsx)(l,{value:e.NatGatewayId??``,children:e.NatGatewayId},e.NatGatewayId))})]})}),(0,P.jsx)(D,{errors:[q.formState.errors.targetId]})]}),(0,P.jsx)(m,{disabled:B.isPending,size:`sm`,type:`submit`,children:`Add route`})]})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Subnet Associations`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[$.length>0?(0,P.jsx)(`ul`,{className:`space-y-2`,children:$.map(e=>{let t=e.RouteTableAssociationId;return(0,P.jsxs)(`li`,{className:`flex items-center justify-between rounded-md border p-2 text-sm`,children:[(0,P.jsx)(a,{className:`font-mono text-primary hover:underline`,params:{id:e.SubnetId??``},to:`/ec2/describe-subnets/$id`,children:e.SubnetId}),(0,P.jsx)(m,{disabled:!t||U.isPending,onClick:async()=>{t&&await U.mutateAsync(t)},size:`sm`,variant:`ghost`,children:(0,P.jsx)(p,{className:`size-4`})})]},t)})}):(0,P.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnet associations.`}),(H.error??U.error)&&(0,P.jsx)(r,{error:H.error??U.error??void 0,msg:`Failed to update association`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_auto]`,onSubmit:J.handleSubmit(he),children:[(0,P.jsxs)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`subnetId`,children:`Associate subnet`})}),(0,P.jsx)(w,{control:J.control,name:`subnetId`,render:({field:e})=>(0,P.jsxs)(f,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(d,{"aria-invalid":!!J.formState.errors.subnetId,className:`w-full`,id:`subnetId`,children:(0,P.jsx)(c,{placeholder:`Select a subnet`})}),(0,P.jsx)(u,{children:fe.map(e=>{let t=o(e.Tags);return(0,P.jsx)(l,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)})})]})}),(0,P.jsx)(D,{errors:[J.formState.errors.subnetId]})]}),(0,P.jsx)(m,{disabled:H.isPending,size:`sm`,type:`submit`,children:`Associate`})]})]})]})]}),(0,P.jsx)(oe,{description:`Are you sure you want to delete the Route Table "${K.RouteTableId}"? This action cannot be undone.`,isPending:z.isPending,onConfirm:pe,onOpenChange:G,open:W,title:`Delete Route Table`})]})}export{I as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{O as h,g,i as ee,k as te,z as _}from"./ec2.js";import{Et as v,Ir as y,Nt as b,Rn as x,St as S,l as ne,vt as re}from"./index.js";import{a as ie,i as C,n as w,t as T}from"./zod.js";import{t as ae}from"./page-heading.js";import{a as E,r as D,t as O}from"./field.js";import{l as k,r as A}from"./ec22.js";import{t as oe}from"./delete-confirmation-dialog.js";import{n as j,t as M}from"./detail-row.js";import{t as se}from"./badge.js";var N=t(n()),P=e();function F(e){return e.GatewayId??e.NatGatewayId??e.NetworkInterfaceId??e.InstanceId??e.VpcPeeringConnectionId??`—`}function I(){let{id:e}=ne.useParams(),t=y(),{data:n}=i(v(e)),{data:I}=i(re),{data:L}=i(S),{data:R}=i(b),z=te(),B=g(),V=h(),H=ee(),U=_(),[W,G]=(0,N.useState)(!1),K=n.RouteTables?.[0],q=C({resolver:T(k),defaultValues:{destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``}}),ce=ie({control:q.control,name:`targetType`}),J=C({resolver:T(A),defaultValues:{subnetId:``}});if(!K?.RouteTableId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Route Table not found.`})]});let Y=K.RouteTableId,X=o(K.Tags),Z=K.Associations?.some(e=>e.Main)??!1,Q=K.Routes??[],$=(K.Associations??[]).filter(e=>e.SubnetId),le=(I.InternetGateways??[]).filter(e=>e.Attachments?.some(e=>e.VpcId===K.VpcId)),ue=(L.NatGateways??[]).filter(e=>e.VpcId===K.VpcId&&e.State===`available`),de=new Set($.map(e=>e.SubnetId)),fe=(R.Subnets??[]).filter(e=>e.VpcId===K.VpcId&&!de.has(e.SubnetId)),pe=async()=>{try{await z.mutateAsync(Y),t({to:`/ec2/describe-route-tables`})}finally{G(!1)}},me=async e=>{await B.mutateAsync({routeTableId:Y,destinationCidrBlock:e.destinationCidrBlock,gatewayId:e.targetType===`igw`?e.targetId:void 0,natGatewayId:e.targetType===`nat`?e.targetId:void 0}),q.reset({destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``})},he=async e=>{await H.mutateAsync({routeTableId:Y,subnetId:e.subnetId}),J.reset({subnetId:``})};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z.error&&(0,P.jsx)(r,{error:z.error,msg:`Failed to delete Route Table`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(ae,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(m,{disabled:Z||z.isPending,onClick:()=>G(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(p,{className:`size-4`}),`Delete`]}),Z&&(0,P.jsx)(se,{variant:`secondary`,children:`Main`})]}),subtitle:`Route Table Details`,title:X?`${K.RouteTableId} (${X})`:K.RouteTableId}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Route Table Information`}),(0,P.jsxs)(j.Content,{children:[(0,P.jsx)(M,{label:`Route Table ID`,value:K.RouteTableId}),(0,P.jsx)(M,{label:`Main`,value:Z?`Yes`:`No`}),(0,P.jsx)(M,{label:`VPC ID`,value:K.VpcId?(0,P.jsx)(a,{className:`text-primary hover:underline`,params:{id:K.VpcId},to:`/ec2/describe-vpcs/$id`,children:K.VpcId}):`—`}),(0,P.jsx)(M,{label:`Owner ID`,value:K.OwnerId??`—`})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Routes`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[(0,P.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,P.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,P.jsx)(`thead`,{className:`bg-muted/50 text-left text-muted-foreground`,children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Destination`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Target`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Status`}),(0,P.jsx)(`th`,{className:`p-2`,children:(0,P.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,P.jsx)(`tbody`,{children:Q.length>0?Q.map(e=>{let t=e.DestinationCidrBlock??e.DestinationPrefixListId??`—`,n=e.GatewayId===`local`,r=e.DestinationCidrBlock;return(0,P.jsxs)(`tr`,{className:`border-t`,children:[(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:t}),(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:F(e)}),(0,P.jsx)(`td`,{className:`p-2`,children:e.State??`—`}),(0,P.jsx)(`td`,{className:`p-2 text-right`,children:!n&&r&&(0,P.jsx)(m,{disabled:V.isPending,onClick:async()=>await V.mutateAsync({routeTableId:Y,destinationCidrBlock:r}),size:`sm`,variant:`ghost`,children:(0,P.jsx)(p,{className:`size-4`})})})]},t)}):(0,P.jsx)(`tr`,{children:(0,P.jsx)(`td`,{className:`p-2 text-muted-foreground`,colSpan:4,children:`No routes.`})})})]})}),(B.error??V.error)&&(0,P.jsx)(r,{error:B.error??V.error??void 0,msg:`Failed to update route`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_1fr_1fr_auto]`,onSubmit:q.handleSubmit(me),children:[(0,P.jsxs)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`destinationCidrBlock`,children:`Destination`})}),(0,P.jsx)(x,{id:`destinationCidrBlock`,placeholder:`0.0.0.0/0`,...q.register(`destinationCidrBlock`)}),(0,P.jsx)(D,{errors:[q.formState.errors.destinationCidrBlock]})]}),(0,P.jsxs)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`targetType`,children:`Target type`})}),(0,P.jsx)(w,{control:q.control,name:`targetType`,render:({field:e})=>(0,P.jsxs)(f,{onValueChange:t=>{e.onChange(t),q.setValue(`targetId`,``)},value:e.value,children:[(0,P.jsx)(d,{className:`w-full`,id:`targetType`,children:(0,P.jsx)(c,{})}),(0,P.jsxs)(u,{children:[(0,P.jsx)(l,{value:`igw`,children:`Internet Gateway`}),(0,P.jsx)(l,{value:`nat`,children:`NAT Gateway`})]})]})})]}),(0,P.jsxs)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`targetId`,children:`Target`})}),(0,P.jsx)(w,{control:q.control,name:`targetId`,render:({field:e})=>(0,P.jsxs)(f,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(d,{"aria-invalid":!!q.formState.errors.targetId,className:`w-full`,id:`targetId`,children:(0,P.jsx)(c,{placeholder:`Select target`})}),(0,P.jsx)(u,{children:ce===`igw`?le.map(e=>(0,P.jsx)(l,{value:e.InternetGatewayId??``,children:e.InternetGatewayId},e.InternetGatewayId)):ue.map(e=>(0,P.jsx)(l,{value:e.NatGatewayId??``,children:e.NatGatewayId},e.NatGatewayId))})]})}),(0,P.jsx)(D,{errors:[q.formState.errors.targetId]})]}),(0,P.jsx)(m,{disabled:B.isPending,size:`sm`,type:`submit`,children:`Add route`})]})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Subnet Associations`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[$.length>0?(0,P.jsx)(`ul`,{className:`space-y-2`,children:$.map(e=>{let t=e.RouteTableAssociationId;return(0,P.jsxs)(`li`,{className:`flex items-center justify-between rounded-md border p-2 text-sm`,children:[(0,P.jsx)(a,{className:`font-mono text-primary hover:underline`,params:{id:e.SubnetId??``},to:`/ec2/describe-subnets/$id`,children:e.SubnetId}),(0,P.jsx)(m,{disabled:!t||U.isPending,onClick:async()=>{t&&await U.mutateAsync(t)},size:`sm`,variant:`ghost`,children:(0,P.jsx)(p,{className:`size-4`})})]},t)})}):(0,P.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnet associations.`}),(H.error??U.error)&&(0,P.jsx)(r,{error:H.error??U.error??void 0,msg:`Failed to update association`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_auto]`,onSubmit:J.handleSubmit(he),children:[(0,P.jsxs)(O,{children:[(0,P.jsx)(E,{children:(0,P.jsx)(`label`,{htmlFor:`subnetId`,children:`Associate subnet`})}),(0,P.jsx)(w,{control:J.control,name:`subnetId`,render:({field:e})=>(0,P.jsxs)(f,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(d,{"aria-invalid":!!J.formState.errors.subnetId,className:`w-full`,id:`subnetId`,children:(0,P.jsx)(c,{placeholder:`Select a subnet`})}),(0,P.jsx)(u,{children:fe.map(e=>{let t=o(e.Tags);return(0,P.jsx)(l,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)})})]})}),(0,P.jsx)(D,{errors:[J.formState.errors.subnetId]})]}),(0,P.jsx)(m,{disabled:H.isPending,size:`sm`,type:`submit`,children:`Associate`})]})]})]})]}),(0,P.jsx)(oe,{description:`Are you sure you want to delete the Route Table "${K.RouteTableId}"? This action cannot be undone.`,isPending:z.isPending,onConfirm:pe,onOpenChange:G,open:W,title:`Delete Route Table`})]})}export{I as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js b/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js index a91aa69d7..5e338c170 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Vt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{g as u,t as d,u as f}from"./iam.js";import{Ir as p,X as m,rt as h,v as g}from"./index.js";import{t as _}from"./page-heading.js";import{t as v}from"./delete-confirmation-dialog.js";import{n as y,t as b}from"./detail-row.js";var x=t(n()),S=e();function C(){let{instanceProfileName:e}=g.useParams(),t=p(),{data:n}=i(m(e)),{data:C}=i(h),w=f(),T=d(),E=u(),[D,O]=(0,x.useState)(!1),[k,A]=(0,x.useState)(!1),[j,M]=(0,x.useState)(null),N=n.InstanceProfile,P=N?.Roles??[],F=C.Roles??[],I=new Set(P.map(e=>e.RoleName)),L=F.filter(e=>e.RoleName&&!I.has(e.RoleName)),R=async()=>{try{await w.mutateAsync(e),t({to:`/iam/list-instance-profiles`})}finally{O(!1)}},z=async t=>{await T.mutateAsync({instanceProfileName:e,roleName:t}),A(!1)},B=async t=>{M(t);try{await E.mutateAsync({instanceProfileName:e,roleName:t})}finally{M(null)}};return N?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(s,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),w.error&&(0,S.jsx)(r,{error:w.error,msg:`Failed to delete instance profile`}),T.error&&(0,S.jsx)(r,{error:T.error,msg:`Failed to add role`}),E.error&&(0,S.jsx)(r,{error:E.error,msg:`Failed to remove role`}),(0,S.jsxs)(`div`,{className:`space-y-6`,children:[(0,S.jsx)(_,{actions:(0,S.jsxs)(l,{onClick:()=>O(!0),size:`sm`,variant:`destructive`,children:[(0,S.jsx)(c,{className:`size-4`}),`Delete`]}),subtitle:`Instance Profile Details`,title:N.InstanceProfileName??``}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:`Instance Profile Information`}),(0,S.jsxs)(y.Content,{children:[(0,S.jsx)(b,{label:`Name`,value:N.InstanceProfileName}),(0,S.jsx)(b,{label:`ID`,value:N.InstanceProfileId}),(0,S.jsx)(b,{label:`ARN`,value:N.Arn}),(0,S.jsx)(b,{label:`Path`,value:N.Path}),(0,S.jsx)(b,{label:`Created`,value:o(N.CreateDate)})]})]}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:(0,S.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,S.jsx)(`span`,{children:`Roles`}),(0,S.jsx)(l,{onClick:()=>A(!k),size:`sm`,children:`Add Role`})]})}),(0,S.jsxs)(y.Content,{children:[k&&L.length>0&&(0,S.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,S.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a role to add:`}),(0,S.jsx)(`div`,{className:`space-y-1`,children:L.map(e=>(0,S.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:T.isPending,onClick:()=>{e.RoleName&&z(e.RoleName)},type:`button`,children:[(0,S.jsx)(`span`,{children:e.RoleName}),(0,S.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.RoleName))})]}),k&&L.length===0&&(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles available to add.`}),P.length>0?(0,S.jsx)(`div`,{className:`col-span-2 space-y-3`,children:P.map(e=>(0,S.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,S.jsx)(a,{className:`text-sm font-medium text-primary hover:underline`,params:{roleName:e.RoleName??``},to:`/iam/list-roles/$roleName`,children:e.RoleName}),(0,S.jsx)(l,{disabled:j===e.RoleName,onClick:()=>{e.RoleName&&B(e.RoleName)},size:`sm`,variant:`outline`,children:`Remove`})]},e.RoleName))}):(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles in this instance profile.`})]})]})]}),(0,S.jsx)(v,{description:`Are you sure you want to delete the instance profile "${e}"? This action cannot be undone. You must remove all roles first.`,isPending:w.isPending,onConfirm:R,onOpenChange:O,open:D,title:`Delete Instance Profile`})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(s,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),(0,S.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance profile not found.`})]})}export{C as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Bt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{g as u,t as d,u as f}from"./iam.js";import{Ir as p,X as m,rt as h,v as g}from"./index.js";import{t as _}from"./page-heading.js";import{t as v}from"./delete-confirmation-dialog.js";import{n as y,t as b}from"./detail-row.js";var x=t(n()),S=e();function C(){let{instanceProfileName:e}=g.useParams(),t=p(),{data:n}=i(m(e)),{data:C}=i(h),w=f(),T=d(),E=u(),[D,O]=(0,x.useState)(!1),[k,A]=(0,x.useState)(!1),[j,M]=(0,x.useState)(null),N=n.InstanceProfile,P=N?.Roles??[],F=C.Roles??[],I=new Set(P.map(e=>e.RoleName)),L=F.filter(e=>e.RoleName&&!I.has(e.RoleName)),R=async()=>{try{await w.mutateAsync(e),t({to:`/iam/list-instance-profiles`})}finally{O(!1)}},z=async t=>{await T.mutateAsync({instanceProfileName:e,roleName:t}),A(!1)},B=async t=>{M(t);try{await E.mutateAsync({instanceProfileName:e,roleName:t})}finally{M(null)}};return N?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(s,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),w.error&&(0,S.jsx)(r,{error:w.error,msg:`Failed to delete instance profile`}),T.error&&(0,S.jsx)(r,{error:T.error,msg:`Failed to add role`}),E.error&&(0,S.jsx)(r,{error:E.error,msg:`Failed to remove role`}),(0,S.jsxs)(`div`,{className:`space-y-6`,children:[(0,S.jsx)(_,{actions:(0,S.jsxs)(l,{onClick:()=>O(!0),size:`sm`,variant:`destructive`,children:[(0,S.jsx)(c,{className:`size-4`}),`Delete`]}),subtitle:`Instance Profile Details`,title:N.InstanceProfileName??``}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:`Instance Profile Information`}),(0,S.jsxs)(y.Content,{children:[(0,S.jsx)(b,{label:`Name`,value:N.InstanceProfileName}),(0,S.jsx)(b,{label:`ID`,value:N.InstanceProfileId}),(0,S.jsx)(b,{label:`ARN`,value:N.Arn}),(0,S.jsx)(b,{label:`Path`,value:N.Path}),(0,S.jsx)(b,{label:`Created`,value:o(N.CreateDate)})]})]}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:(0,S.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,S.jsx)(`span`,{children:`Roles`}),(0,S.jsx)(l,{onClick:()=>A(!k),size:`sm`,children:`Add Role`})]})}),(0,S.jsxs)(y.Content,{children:[k&&L.length>0&&(0,S.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,S.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a role to add:`}),(0,S.jsx)(`div`,{className:`space-y-1`,children:L.map(e=>(0,S.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:T.isPending,onClick:()=>{e.RoleName&&z(e.RoleName)},type:`button`,children:[(0,S.jsx)(`span`,{children:e.RoleName}),(0,S.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.RoleName))})]}),k&&L.length===0&&(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles available to add.`}),P.length>0?(0,S.jsx)(`div`,{className:`col-span-2 space-y-3`,children:P.map(e=>(0,S.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,S.jsx)(a,{className:`text-sm font-medium text-primary hover:underline`,params:{roleName:e.RoleName??``},to:`/iam/list-roles/$roleName`,children:e.RoleName}),(0,S.jsx)(l,{disabled:j===e.RoleName,onClick:()=>{e.RoleName&&B(e.RoleName)},size:`sm`,variant:`outline`,children:`Remove`})]},e.RoleName))}):(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles in this instance profile.`})]})]})]}),(0,S.jsx)(v,{description:`Are you sure you want to delete the instance profile "${e}"? This action cannot be undone. You must remove all roles first.`,isPending:w.isPending,onConfirm:R,onOpenChange:O,open:D,title:`Delete Instance Profile`})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(s,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),(0,S.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance profile not found.`})]})}export{C as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js b/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js index d249ba271..7ec83ceac 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{Vt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{d as l}from"./iam.js";import{Ir as u,et as d,tt as f,y as p}from"./index.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./policy-document-viewer.js";var y=t(n()),b=e();function x(){let{policyArn:e}=p.useParams(),t=decodeURIComponent(e),n=u(),{data:x}=i(d(t)),S=x.Policy,C=l(),[w,T]=(0,y.useState)(!1),{data:E}=i(f(t,S?.DefaultVersionId??`v1`)),D=E?.PolicyVersion?.Document?decodeURIComponent(E.PolicyVersion.Document):null;return S?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/iam/list-policies`,children:`Back to policies`}),C.error&&(0,b.jsx)(r,{error:C.error,msg:`Failed to delete policy`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(c,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Policy Details`,title:S.PolicyName??``}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Policy Name`,value:S.PolicyName}),(0,b.jsx)(_,{label:`Policy ID`,value:S.PolicyId}),(0,b.jsx)(_,{label:`ARN`,value:S.Arn}),(0,b.jsx)(_,{label:`Path`,value:S.Path}),(0,b.jsx)(_,{label:`Description`,value:S.Description??`-`}),(0,b.jsx)(_,{label:`Created`,value:a(S.CreateDate)})]})]}),D&&(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Document`}),(0,b.jsx)(`div`,{className:`p-4`,children:(0,b.jsx)(v,{document:D})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the policy "${S.PolicyName}"? This action cannot be undone.`,isPending:C.isPending,onConfirm:async()=>{try{await C.mutateAsync(t),n({to:`/iam/list-policies`})}finally{T(!1)}},onOpenChange:T,open:w,title:`Delete Policy`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/iam/list-policies`,children:`Back to policies`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Policy not found.`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{d as l}from"./iam.js";import{Ir as u,et as d,tt as f,y as p}from"./index.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./policy-document-viewer.js";var y=t(n()),b=e();function x(){let{policyArn:e}=p.useParams(),t=decodeURIComponent(e),n=u(),{data:x}=i(d(t)),S=x.Policy,C=l(),[w,T]=(0,y.useState)(!1),{data:E}=i(f(t,S?.DefaultVersionId??`v1`)),D=E?.PolicyVersion?.Document?decodeURIComponent(E.PolicyVersion.Document):null;return S?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/iam/list-policies`,children:`Back to policies`}),C.error&&(0,b.jsx)(r,{error:C.error,msg:`Failed to delete policy`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(c,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Policy Details`,title:S.PolicyName??``}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Policy Name`,value:S.PolicyName}),(0,b.jsx)(_,{label:`Policy ID`,value:S.PolicyId}),(0,b.jsx)(_,{label:`ARN`,value:S.Arn}),(0,b.jsx)(_,{label:`Path`,value:S.Path}),(0,b.jsx)(_,{label:`Description`,value:S.Description??`-`}),(0,b.jsx)(_,{label:`Created`,value:a(S.CreateDate)})]})]}),D&&(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Document`}),(0,b.jsx)(`div`,{className:`p-4`,children:(0,b.jsx)(v,{document:D})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the policy "${S.PolicyName}"? This action cannot be undone.`,isPending:C.isPending,onConfirm:async()=>{try{await C.mutateAsync(t),n({to:`/iam/list-policies`})}finally{T(!1)}},onOpenChange:T,open:w,title:`Delete Policy`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/iam/list-policies`,children:`Back to policies`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Policy not found.`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js b/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js index 44650f5d3..967eb7191 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Vt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{f as u,m as d,n as f}from"./iam.js";import{$ as p,Ir as m,J as h,Z as g,b as _,nt as v}from"./index.js";import{t as y}from"./page-heading.js";import{t as b}from"./delete-confirmation-dialog.js";import{n as x,t as S}from"./detail-row.js";import{t as C}from"./policy-document-viewer.js";var w=t(n()),T=e();function E(){let{roleName:e}=_.useParams(),t=m(),{data:n}=i(v(e)),{data:E}=i(h(e)),{data:D}=i(g(e)),{data:O}=i(p),k=u(),A=f(),j=d(),[M,N]=(0,w.useState)(!1),[P,F]=(0,w.useState)(!1),[I,L]=(0,w.useState)(null),R=n.Role,z=E.AttachedPolicies??[],B=D.InstanceProfiles??[],V=O.Policies??[],H=new Set(z.map(e=>e.PolicyArn)),U=V.filter(e=>e.Arn&&!H.has(e.Arn)),W=R?.AssumeRolePolicyDocument?decodeURIComponent(R.AssumeRolePolicyDocument):null,G=async()=>{try{await k.mutateAsync(e),t({to:`/iam/list-roles`})}finally{N(!1)}},K=async t=>{await A.mutateAsync({roleName:e,policyArn:t}),F(!1)},q=async t=>{L(t);try{await j.mutateAsync({roleName:e,policyArn:t})}finally{L(null)}};return R?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(s,{to:`/iam/list-roles`,children:`Back to roles`}),k.error&&(0,T.jsx)(r,{error:k.error,msg:`Failed to delete role`}),A.error&&(0,T.jsx)(r,{error:A.error,msg:`Failed to attach policy`}),j.error&&(0,T.jsx)(r,{error:j.error,msg:`Failed to detach policy`}),(0,T.jsxs)(`div`,{className:`space-y-6`,children:[(0,T.jsx)(y,{actions:(0,T.jsxs)(l,{onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,T.jsx)(c,{className:`size-4`}),`Delete`]}),subtitle:`Role Details`,title:R.RoleName??``}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Role Information`}),(0,T.jsxs)(x.Content,{children:[(0,T.jsx)(S,{label:`Role Name`,value:R.RoleName}),(0,T.jsx)(S,{label:`Role ID`,value:R.RoleId}),(0,T.jsx)(S,{label:`ARN`,value:R.Arn}),(0,T.jsx)(S,{label:`Path`,value:R.Path}),(0,T.jsx)(S,{label:`Description`,value:R.Description??`-`}),(0,T.jsx)(S,{label:`Created`,value:o(R.CreateDate)})]})]}),W&&(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Trust Policy`}),(0,T.jsx)(`div`,{className:`p-4`,children:(0,T.jsx)(C,{document:W})})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:(0,T.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,T.jsx)(`span`,{children:`Attached Policies`}),(0,T.jsx)(l,{onClick:()=>F(!P),size:`sm`,children:`Attach Policy`})]})}),(0,T.jsxs)(x.Content,{children:[P&&U.length>0&&(0,T.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,T.jsx)(`div`,{className:`space-y-1`,children:U.map(e=>(0,T.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:A.isPending,onClick:()=>{e.Arn&&K(e.Arn)},type:`button`,children:[(0,T.jsx)(`span`,{children:e.PolicyName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),P&&U.length===0&&(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),z.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:z.map(e=>(0,T.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,T.jsxs)(`div`,{className:`space-y-1`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,T.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,T.jsx)(l,{disabled:I===e.PolicyArn,onClick:()=>{e.PolicyArn&&q(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Instance Profiles`}),(0,T.jsx)(x.Content,{children:B.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:B.map(e=>(0,T.jsxs)(a,{className:`flex items-center justify-between rounded-md border p-3 transition-colors hover:bg-accent`,params:{instanceProfileName:e.InstanceProfileName??``},to:`/iam/list-instance-profiles/$instanceProfileName`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.InstanceProfileName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.InstanceProfileName))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`This role is not in any instance profile.`})})]})]}),(0,T.jsx)(b,{description:`Are you sure you want to delete the role "${e}"? This action cannot be undone. You must detach all policies and remove it from all instance profiles first.`,isPending:k.isPending,onConfirm:G,onOpenChange:N,open:M,title:`Delete Role`})]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(s,{to:`/iam/list-roles`,children:`Back to roles`}),(0,T.jsx)(`p`,{className:`text-muted-foreground`,children:`Role not found.`})]})}export{E as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{vr as a}from"./awsClient.js";import{Bt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{f as u,m as d,n as f}from"./iam.js";import{$ as p,Ir as m,J as h,Z as g,b as _,nt as v}from"./index.js";import{t as y}from"./page-heading.js";import{t as b}from"./delete-confirmation-dialog.js";import{n as x,t as S}from"./detail-row.js";import{t as C}from"./policy-document-viewer.js";var w=t(n()),T=e();function E(){let{roleName:e}=_.useParams(),t=m(),{data:n}=i(v(e)),{data:E}=i(h(e)),{data:D}=i(g(e)),{data:O}=i(p),k=u(),A=f(),j=d(),[M,N]=(0,w.useState)(!1),[P,F]=(0,w.useState)(!1),[I,L]=(0,w.useState)(null),R=n.Role,z=E.AttachedPolicies??[],B=D.InstanceProfiles??[],V=O.Policies??[],H=new Set(z.map(e=>e.PolicyArn)),U=V.filter(e=>e.Arn&&!H.has(e.Arn)),W=R?.AssumeRolePolicyDocument?decodeURIComponent(R.AssumeRolePolicyDocument):null,G=async()=>{try{await k.mutateAsync(e),t({to:`/iam/list-roles`})}finally{N(!1)}},K=async t=>{await A.mutateAsync({roleName:e,policyArn:t}),F(!1)},q=async t=>{L(t);try{await j.mutateAsync({roleName:e,policyArn:t})}finally{L(null)}};return R?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(s,{to:`/iam/list-roles`,children:`Back to roles`}),k.error&&(0,T.jsx)(r,{error:k.error,msg:`Failed to delete role`}),A.error&&(0,T.jsx)(r,{error:A.error,msg:`Failed to attach policy`}),j.error&&(0,T.jsx)(r,{error:j.error,msg:`Failed to detach policy`}),(0,T.jsxs)(`div`,{className:`space-y-6`,children:[(0,T.jsx)(y,{actions:(0,T.jsxs)(l,{onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,T.jsx)(c,{className:`size-4`}),`Delete`]}),subtitle:`Role Details`,title:R.RoleName??``}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Role Information`}),(0,T.jsxs)(x.Content,{children:[(0,T.jsx)(S,{label:`Role Name`,value:R.RoleName}),(0,T.jsx)(S,{label:`Role ID`,value:R.RoleId}),(0,T.jsx)(S,{label:`ARN`,value:R.Arn}),(0,T.jsx)(S,{label:`Path`,value:R.Path}),(0,T.jsx)(S,{label:`Description`,value:R.Description??`-`}),(0,T.jsx)(S,{label:`Created`,value:o(R.CreateDate)})]})]}),W&&(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Trust Policy`}),(0,T.jsx)(`div`,{className:`p-4`,children:(0,T.jsx)(C,{document:W})})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:(0,T.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,T.jsx)(`span`,{children:`Attached Policies`}),(0,T.jsx)(l,{onClick:()=>F(!P),size:`sm`,children:`Attach Policy`})]})}),(0,T.jsxs)(x.Content,{children:[P&&U.length>0&&(0,T.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,T.jsx)(`div`,{className:`space-y-1`,children:U.map(e=>(0,T.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:A.isPending,onClick:()=>{e.Arn&&K(e.Arn)},type:`button`,children:[(0,T.jsx)(`span`,{children:e.PolicyName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),P&&U.length===0&&(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),z.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:z.map(e=>(0,T.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,T.jsxs)(`div`,{className:`space-y-1`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,T.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,T.jsx)(l,{disabled:I===e.PolicyArn,onClick:()=>{e.PolicyArn&&q(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Instance Profiles`}),(0,T.jsx)(x.Content,{children:B.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:B.map(e=>(0,T.jsxs)(a,{className:`flex items-center justify-between rounded-md border p-3 transition-colors hover:bg-accent`,params:{instanceProfileName:e.InstanceProfileName??``},to:`/iam/list-instance-profiles/$instanceProfileName`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.InstanceProfileName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.InstanceProfileName))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`This role is not in any instance profile.`})})]})]}),(0,T.jsx)(b,{description:`Are you sure you want to delete the role "${e}"? This action cannot be undone. You must detach all policies and remove it from all instance profiles first.`,isPending:k.isPending,onConfirm:G,onOpenChange:N,open:M,title:`Delete Role`})]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(s,{to:`/iam/list-roles`,children:`Back to roles`}),(0,T.jsx)(`p`,{className:`text-muted-foreground`,children:`Role not found.`})]})}export{E as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_userName.js b/spinifex/services/spinifexui/frontend/dist/assets/_userName.js index 2a2ccfe32..e0019bc74 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_userName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_userName.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useSuspenseQuery.js";import{Vt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./check.js";import{t as l}from"./trash-2.js";import{t as u}from"./triangle-alert.js";import{t as d}from"./button.js";import{_ as f,h as p,i as m,l as h,p as g,r as _}from"./iam.js";import{$ as v,Ir as y,Y as b,it as x,q as S,x as C}from"./index.js";import{t as w}from"./use-copy-to-clipboard.js";import{t as T}from"./page-heading.js";import{a as E,c as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{t as L}from"./state-badge.js";var R=t(n()),z=r(),B=e();function V(e){let t=(0,z.c)(27),{onClose:n,accessKeyId:r,secretAccessKey:i}=e,{copied:a,copy:o}=w(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,B.jsxs)(M,{children:[(0,B.jsx)(D,{children:(0,B.jsx)(u,{className:`text-destructive`})}),(0,B.jsx)(k,{children:`Save Your Access Key`}),(0,B.jsx)(E,{children:`This is your only chance to view the secret access key. Please copy it now. You won't be able to retrieve it again.`})]}),t[0]=s):s=t[0];let l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Access Key ID: `}),t[1]=l):l=t[1];let f;t[2]===r?f=t[3]:(f=(0,B.jsxs)(`div`,{children:[l,r]}),t[2]=r,t[3]=f);let p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Secret Access Key: `}),t[4]=p):p=t[4];let m;t[5]===i?m=t[6]:(m=(0,B.jsxs)(`div`,{children:[p,i]}),t[5]=i,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,B.jsxs)(`div`,{className:`space-y-2 rounded-md border p-4 font-mono text-sm`,children:[f,m]}),t[7]=f,t[8]=m,t[9]=h):h=t[9];let g;t[10]!==r||t[11]!==o||t[12]!==i?(g=async()=>await o(`Access Key ID: ${r}\nSecret Access Key: ${i}`),t[10]=r,t[11]=o,t[12]=i,t[13]=g):g=t[13];let _;t[14]===a?_=t[15]:(_=a?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(c,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=a,t[15]=_);let v;t[16]!==g||t[17]!==_?(v=(0,B.jsx)(d,{className:`w-full`,onClick:g,type:`button`,variant:`outline`,children:_}),t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;t[19]!==h||t[20]!==v?(y=(0,B.jsxs)(`div`,{className:`space-y-3`,children:[h,v]}),t[19]=h,t[20]=v,t[21]=y):y=t[21];let b;t[22]===n?b=t[23]:(b=(0,B.jsx)(A,{children:(0,B.jsx)(j,{onClick:n,children:`Close and Continue`})}),t[22]=n,t[23]=b);let x;return t[24]!==y||t[25]!==b?(x=(0,B.jsx)(N,{open:!0,children:(0,B.jsxs)(O,{className:`max-w-2xl`,children:[s,y,b]})}),t[24]=y,t[25]=b,t[26]=x):x=t[26],x}function H(){let{userName:e}=C.useParams(),t=y(),{data:n}=a(x(e)),{data:r}=a(S(e)),{data:c}=a(b(e)),{data:u}=a(v),w=g(),E=m(),D=h(),O=f(),k=_(),A=p(),[j,M]=(0,R.useState)(!1),[N,z]=(0,R.useState)(null),[H,U]=(0,R.useState)(!1),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(null),J=n.User,Y=r.AccessKeyMetadata??[],X=c.AttachedPolicies??[],Z=u.Policies??[],Q=new Set(X.map(e=>e.PolicyArn)),$=Z.filter(e=>e.Arn&&!Q.has(e.Arn)),ee=async()=>{try{await w.mutateAsync(e),t({to:`/iam/list-users`})}finally{M(!1)}},te=async()=>{let t=await E.mutateAsync(e);t.AccessKey&&z({accessKeyId:t.AccessKey.AccessKeyId??``,secretAccessKey:t.AccessKey.SecretAccessKey??``})},ne=async t=>{if(t.AccessKeyId){G(t.AccessKeyId);try{await O.mutateAsync({userName:e,accessKeyId:t.AccessKeyId,status:t.Status===`Active`?`Inactive`:`Active`})}finally{G(null)}}},re=async t=>{G(t);try{await D.mutateAsync({userName:e,accessKeyId:t})}finally{G(null)}},ie=async t=>{await k.mutateAsync({userName:e,policyArn:t}),U(!1)},ae=async t=>{q(t);try{await A.mutateAsync({userName:e,policyArn:t})}finally{q(null)}};return J?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(s,{to:`/iam/list-users`,children:`Back to users`}),w.error&&(0,B.jsx)(i,{error:w.error,msg:`Failed to delete user`}),E.error&&(0,B.jsx)(i,{error:E.error,msg:`Failed to create access key`}),D.error&&(0,B.jsx)(i,{error:D.error,msg:`Failed to delete access key`}),k.error&&(0,B.jsx)(i,{error:k.error,msg:`Failed to attach policy`}),A.error&&(0,B.jsx)(i,{error:A.error,msg:`Failed to detach policy`}),(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(T,{actions:(0,B.jsxs)(d,{onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,B.jsx)(l,{className:`size-4`}),`Delete`]}),subtitle:`User Details`,title:J.UserName??``}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:`User Information`}),(0,B.jsxs)(F.Content,{children:[(0,B.jsx)(I,{label:`User Name`,value:J.UserName}),(0,B.jsx)(I,{label:`User ID`,value:J.UserId}),(0,B.jsx)(I,{label:`ARN`,value:J.Arn}),(0,B.jsx)(I,{label:`Path`,value:J.Path}),(0,B.jsx)(I,{label:`Created`,value:o(J.CreateDate)})]})]}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Access Keys`}),(0,B.jsx)(d,{disabled:E.isPending,onClick:te,size:`sm`,children:E.isPending?`Creating...`:`Create Access Key`})]})}),(0,B.jsx)(F.Content,{children:Y.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Y.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`font-mono text-sm`,children:e.AccessKeyId}),(0,B.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Created `,o(e.CreateDate)]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(L,{state:e.Status}),(0,B.jsx)(d,{disabled:W===e.AccessKeyId,onClick:async()=>await ne(e),size:`sm`,variant:`outline`,children:e.Status===`Active`?`Deactivate`:`Activate`}),(0,B.jsx)(d,{disabled:W===e.AccessKeyId,onClick:()=>{e.AccessKeyId&&re(e.AccessKeyId)},size:`sm`,variant:`destructive`,children:`Delete`})]})]},e.AccessKeyId))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No access keys.`})})]}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Attached Policies`}),(0,B.jsx)(d,{onClick:()=>U(!H),size:`sm`,children:`Attach Policy`})]})}),(0,B.jsxs)(F.Content,{children:[H&&$.length>0&&(0,B.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,B.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,B.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:k.isPending,onClick:()=>{e.Arn&&ie(e.Arn)},type:`button`,children:[(0,B.jsx)(`span`,{children:e.PolicyName}),(0,B.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),H&&$.length===0&&(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),X.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:X.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,B.jsx)(d,{disabled:K===e.PolicyArn,onClick:()=>{e.PolicyArn&&ae(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]})]}),(0,B.jsx)(P,{description:`Are you sure you want to delete the user "${e}"? This action cannot be undone. You must detach all policies and delete all access keys first.`,isPending:w.isPending,onConfirm:ee,onOpenChange:M,open:j,title:`Delete User`}),N&&(0,B.jsx)(V,{accessKeyId:N.accessKeyId,onClose:()=>z(null),secretAccessKey:N.secretAccessKey})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(s,{to:`/iam/list-users`,children:`Back to users`}),(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:`User not found.`})]})}export{H as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useSuspenseQuery.js";import{Bt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./check.js";import{t as l}from"./trash-2.js";import{t as u}from"./triangle-alert.js";import{t as d}from"./button.js";import{_ as f,h as p,i as m,l as h,p as g,r as _}from"./iam.js";import{$ as v,Ir as y,Y as b,it as x,q as S,x as C}from"./index.js";import{t as w}from"./use-copy-to-clipboard.js";import{t as T}from"./page-heading.js";import{a as E,c as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{t as L}from"./state-badge.js";var R=t(n()),z=r(),B=e();function V(e){let t=(0,z.c)(27),{onClose:n,accessKeyId:r,secretAccessKey:i}=e,{copied:a,copy:o}=w(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,B.jsxs)(M,{children:[(0,B.jsx)(D,{children:(0,B.jsx)(u,{className:`text-destructive`})}),(0,B.jsx)(k,{children:`Save Your Access Key`}),(0,B.jsx)(E,{children:`This is your only chance to view the secret access key. Please copy it now. You won't be able to retrieve it again.`})]}),t[0]=s):s=t[0];let l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Access Key ID: `}),t[1]=l):l=t[1];let f;t[2]===r?f=t[3]:(f=(0,B.jsxs)(`div`,{children:[l,r]}),t[2]=r,t[3]=f);let p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Secret Access Key: `}),t[4]=p):p=t[4];let m;t[5]===i?m=t[6]:(m=(0,B.jsxs)(`div`,{children:[p,i]}),t[5]=i,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,B.jsxs)(`div`,{className:`space-y-2 rounded-md border p-4 font-mono text-sm`,children:[f,m]}),t[7]=f,t[8]=m,t[9]=h):h=t[9];let g;t[10]!==r||t[11]!==o||t[12]!==i?(g=async()=>await o(`Access Key ID: ${r}\nSecret Access Key: ${i}`),t[10]=r,t[11]=o,t[12]=i,t[13]=g):g=t[13];let _;t[14]===a?_=t[15]:(_=a?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(c,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=a,t[15]=_);let v;t[16]!==g||t[17]!==_?(v=(0,B.jsx)(d,{className:`w-full`,onClick:g,type:`button`,variant:`outline`,children:_}),t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;t[19]!==h||t[20]!==v?(y=(0,B.jsxs)(`div`,{className:`space-y-3`,children:[h,v]}),t[19]=h,t[20]=v,t[21]=y):y=t[21];let b;t[22]===n?b=t[23]:(b=(0,B.jsx)(A,{children:(0,B.jsx)(j,{onClick:n,children:`Close and Continue`})}),t[22]=n,t[23]=b);let x;return t[24]!==y||t[25]!==b?(x=(0,B.jsx)(N,{open:!0,children:(0,B.jsxs)(O,{className:`max-w-2xl`,children:[s,y,b]})}),t[24]=y,t[25]=b,t[26]=x):x=t[26],x}function H(){let{userName:e}=C.useParams(),t=y(),{data:n}=a(x(e)),{data:r}=a(S(e)),{data:c}=a(b(e)),{data:u}=a(v),w=g(),E=m(),D=h(),O=f(),k=_(),A=p(),[j,M]=(0,R.useState)(!1),[N,z]=(0,R.useState)(null),[H,U]=(0,R.useState)(!1),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(null),J=n.User,Y=r.AccessKeyMetadata??[],X=c.AttachedPolicies??[],Z=u.Policies??[],Q=new Set(X.map(e=>e.PolicyArn)),$=Z.filter(e=>e.Arn&&!Q.has(e.Arn)),ee=async()=>{try{await w.mutateAsync(e),t({to:`/iam/list-users`})}finally{M(!1)}},te=async()=>{let t=await E.mutateAsync(e);t.AccessKey&&z({accessKeyId:t.AccessKey.AccessKeyId??``,secretAccessKey:t.AccessKey.SecretAccessKey??``})},ne=async t=>{if(t.AccessKeyId){G(t.AccessKeyId);try{await O.mutateAsync({userName:e,accessKeyId:t.AccessKeyId,status:t.Status===`Active`?`Inactive`:`Active`})}finally{G(null)}}},re=async t=>{G(t);try{await D.mutateAsync({userName:e,accessKeyId:t})}finally{G(null)}},ie=async t=>{await k.mutateAsync({userName:e,policyArn:t}),U(!1)},ae=async t=>{q(t);try{await A.mutateAsync({userName:e,policyArn:t})}finally{q(null)}};return J?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(s,{to:`/iam/list-users`,children:`Back to users`}),w.error&&(0,B.jsx)(i,{error:w.error,msg:`Failed to delete user`}),E.error&&(0,B.jsx)(i,{error:E.error,msg:`Failed to create access key`}),D.error&&(0,B.jsx)(i,{error:D.error,msg:`Failed to delete access key`}),k.error&&(0,B.jsx)(i,{error:k.error,msg:`Failed to attach policy`}),A.error&&(0,B.jsx)(i,{error:A.error,msg:`Failed to detach policy`}),(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(T,{actions:(0,B.jsxs)(d,{onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,B.jsx)(l,{className:`size-4`}),`Delete`]}),subtitle:`User Details`,title:J.UserName??``}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:`User Information`}),(0,B.jsxs)(F.Content,{children:[(0,B.jsx)(I,{label:`User Name`,value:J.UserName}),(0,B.jsx)(I,{label:`User ID`,value:J.UserId}),(0,B.jsx)(I,{label:`ARN`,value:J.Arn}),(0,B.jsx)(I,{label:`Path`,value:J.Path}),(0,B.jsx)(I,{label:`Created`,value:o(J.CreateDate)})]})]}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Access Keys`}),(0,B.jsx)(d,{disabled:E.isPending,onClick:te,size:`sm`,children:E.isPending?`Creating...`:`Create Access Key`})]})}),(0,B.jsx)(F.Content,{children:Y.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Y.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`font-mono text-sm`,children:e.AccessKeyId}),(0,B.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Created `,o(e.CreateDate)]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(L,{state:e.Status}),(0,B.jsx)(d,{disabled:W===e.AccessKeyId,onClick:async()=>await ne(e),size:`sm`,variant:`outline`,children:e.Status===`Active`?`Deactivate`:`Activate`}),(0,B.jsx)(d,{disabled:W===e.AccessKeyId,onClick:()=>{e.AccessKeyId&&re(e.AccessKeyId)},size:`sm`,variant:`destructive`,children:`Delete`})]})]},e.AccessKeyId))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No access keys.`})})]}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Attached Policies`}),(0,B.jsx)(d,{onClick:()=>U(!H),size:`sm`,children:`Attach Policy`})]})}),(0,B.jsxs)(F.Content,{children:[H&&$.length>0&&(0,B.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,B.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,B.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:k.isPending,onClick:()=>{e.Arn&&ie(e.Arn)},type:`button`,children:[(0,B.jsx)(`span`,{children:e.PolicyName}),(0,B.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),H&&$.length===0&&(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),X.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:X.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,B.jsx)(d,{disabled:K===e.PolicyArn,onClick:()=>{e.PolicyArn&&ae(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]})]}),(0,B.jsx)(P,{description:`Are you sure you want to delete the user "${e}"? This action cannot be undone. You must detach all policies and delete all access keys first.`,isPending:w.isPending,onConfirm:ee,onOpenChange:M,open:j,title:`Delete User`}),N&&(0,B.jsx)(V,{accessKeyId:N.accessKeyId,onClose:()=>z(null),secretAccessKey:N.secretAccessKey})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(s,{to:`/iam/list-users`,children:`Back to users`}),(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:`User not found.`})]})}export{H as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js b/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js index b08a2da8a..c280f3008 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{Rt as n}from"./auth.js";import{t as r}from"./button.js";import{$t as i,Kt as a,Mn as o,Nn as s,Xt as c,jn as l,qt as u}from"./index.js";function d(e){return u(e,`alert-dialog`)}var f=t(),p=e();function m(e){let t=(0,f.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,p.jsx)(d,{"data-slot":`alert-dialog`,...n}),t[2]=n,t[3]=r),r}function h(e){let t=(0,f.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,p.jsx)(c,{"data-slot":`alert-dialog-portal`,...n}),t[2]=n,t[3]=r),r}function g(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(s,{className:a,"data-slot":`alert-dialog-overlay`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function _(e){let t=(0,f.c)(11),r,a,o;t[0]===e?(r=t[1],a=t[2],o=t[3]):({className:r,size:o,...a}=e,t[0]=e,t[1]=r,t[2]=a,t[3]=o);let s=o===void 0?`default`:o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,p.jsx)(g,{}),t[4]=c):c=t[4];let l;t[5]===r?l=t[6]:(l=n(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content data-closed:animate-out data-open:animate-in fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm`,r),t[5]=r,t[6]=l);let u;return t[7]!==a||t[8]!==s||t[9]!==l?(u=(0,p.jsxs)(h,{children:[c,(0,p.jsx)(i,{className:l,"data-size":s,"data-slot":`alert-dialog-content`,...a})]}),t[7]=a,t[8]=s,t[9]=l,t[10]=u):u=t[10],u}function v(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-header`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function y(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-footer`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function b(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-media`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function x(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let o;t[3]===r?o=t[4]:(o=n(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,r),t[3]=r,t[4]=o);let s;return t[5]!==i||t[6]!==o?(s=(0,p.jsx)(a,{className:o,"data-slot":`alert-dialog-title`,...i}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s}function S(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(l,{className:a,"data-slot":`alert-dialog-description`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function C(e){let t=(0,f.c)(8),i,a;t[0]===e?(i=t[1],a=t[2]):({className:i,...a}=e,t[0]=e,t[1]=i,t[2]=a);let o;t[3]===i?o=t[4]:(o=n(i),t[3]=i,t[4]=o);let s;return t[5]!==a||t[6]!==o?(s=(0,p.jsx)(r,{className:o,"data-slot":`alert-dialog-action`,...a}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function w(e){let t=(0,f.c)(14),i,a,s,c;t[0]===e?(i=t[1],a=t[2],s=t[3],c=t[4]):({className:i,variant:s,size:c,...a}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=s,t[4]=c);let l=s===void 0?`outline`:s,u=c===void 0?`default`:c,d;t[5]===i?d=t[6]:(d=n(i),t[5]=i,t[6]=d);let m;t[7]!==u||t[8]!==l?(m=(0,p.jsx)(r,{size:u,variant:l}),t[7]=u,t[8]=l,t[9]=m):m=t[9];let h;return t[10]!==a||t[11]!==d||t[12]!==m?(h=(0,p.jsx)(o,{className:d,"data-slot":`alert-dialog-cancel`,render:m,...a}),t[10]=a,t[11]=d,t[12]=m,t[13]=h):h=t[13],h}export{S as a,b as c,_ as i,x as l,C as n,y as o,w as r,v as s,m as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Lt as n}from"./auth.js";import{t as r}from"./button.js";import{$t as i,Kt as a,Mn as o,Nn as s,Xt as c,jn as l,qt as u}from"./index.js";function d(e){return u(e,`alert-dialog`)}var f=t(),p=e();function m(e){let t=(0,f.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,p.jsx)(d,{"data-slot":`alert-dialog`,...n}),t[2]=n,t[3]=r),r}function h(e){let t=(0,f.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,p.jsx)(c,{"data-slot":`alert-dialog-portal`,...n}),t[2]=n,t[3]=r),r}function g(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(s,{className:a,"data-slot":`alert-dialog-overlay`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function _(e){let t=(0,f.c)(11),r,a,o;t[0]===e?(r=t[1],a=t[2],o=t[3]):({className:r,size:o,...a}=e,t[0]=e,t[1]=r,t[2]=a,t[3]=o);let s=o===void 0?`default`:o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,p.jsx)(g,{}),t[4]=c):c=t[4];let l;t[5]===r?l=t[6]:(l=n(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content data-closed:animate-out data-open:animate-in fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm`,r),t[5]=r,t[6]=l);let u;return t[7]!==a||t[8]!==s||t[9]!==l?(u=(0,p.jsxs)(h,{children:[c,(0,p.jsx)(i,{className:l,"data-size":s,"data-slot":`alert-dialog-content`,...a})]}),t[7]=a,t[8]=s,t[9]=l,t[10]=u):u=t[10],u}function v(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-header`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function y(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-footer`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function b(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-media`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function x(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let o;t[3]===r?o=t[4]:(o=n(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,r),t[3]=r,t[4]=o);let s;return t[5]!==i||t[6]!==o?(s=(0,p.jsx)(a,{className:o,"data-slot":`alert-dialog-title`,...i}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s}function S(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(l,{className:a,"data-slot":`alert-dialog-description`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function C(e){let t=(0,f.c)(8),i,a;t[0]===e?(i=t[1],a=t[2]):({className:i,...a}=e,t[0]=e,t[1]=i,t[2]=a);let o;t[3]===i?o=t[4]:(o=n(i),t[3]=i,t[4]=o);let s;return t[5]!==a||t[6]!==o?(s=(0,p.jsx)(r,{className:o,"data-slot":`alert-dialog-action`,...a}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function w(e){let t=(0,f.c)(14),i,a,s,c;t[0]===e?(i=t[1],a=t[2],s=t[3],c=t[4]):({className:i,variant:s,size:c,...a}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=s,t[4]=c);let l=s===void 0?`outline`:s,u=c===void 0?`default`:c,d;t[5]===i?d=t[6]:(d=n(i),t[5]=i,t[6]=d);let m;t[7]!==u||t[8]!==l?(m=(0,p.jsx)(r,{size:u,variant:l}),t[7]=u,t[8]=l,t[9]=m):m=t[9];let h;return t[10]!==a||t[11]!==d||t[12]!==m?(h=(0,p.jsx)(o,{className:d,"data-slot":`alert-dialog-cancel`,render:m,...a}),t[10]=a,t[11]=d,t[12]=m,t[13]=h):h=t[13],h}export{S as a,b as c,_ as i,x as l,C as n,y as o,w as r,v as s,m as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js b/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js index b8bb97adc..4aa3551f2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{vr as n}from"./awsClient.js";import{Vt as r}from"./auth.js";import{n as i,t as a}from"./detail-row.js";var o=t(),s=e();function c(e){let t=(0,o.c)(58),{image:c,showExtendedDetails:u}=e,d=u===void 0?!1:u,f;t[0]===c.CreationDate?f=t[1]:(f=r(c.CreationDate),t[0]=c.CreationDate,t[1]=f);let p=f,m=d?`AMI Information`:`AMI Details`,h;t[2]===m?h=t[3]:(h=(0,s.jsx)(i.Header,{children:m}),t[2]=m,t[3]=h);let g;t[4]!==c.ImageId||t[5]!==d?(g=c.ImageId&&!d?(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:c.ImageId},to:`/ec2/describe-images/$id`,children:c.ImageId}):c.ImageId,t[4]=c.ImageId,t[5]=d,t[6]=g):g=t[6];let _;t[7]===g?_=t[8]:(_=(0,s.jsx)(a,{label:`AMI ID`,value:g}),t[7]=g,t[8]=_);let v;t[9]===c.Name?v=t[10]:(v=(0,s.jsx)(a,{label:`AMI Name`,value:c.Name}),t[9]=c.Name,t[10]=v);let y;t[11]===c.Description?y=t[12]:(y=(0,s.jsx)(a,{label:`Description`,value:c.Description}),t[11]=c.Description,t[12]=y);let b;t[13]===c.Architecture?b=t[14]:(b=(0,s.jsx)(a,{label:`Architecture`,value:c.Architecture}),t[13]=c.Architecture,t[14]=b);let x;t[15]===c.VirtualizationType?x=t[16]:(x=(0,s.jsx)(a,{label:`Virtualization Type`,value:c.VirtualizationType}),t[15]=c.VirtualizationType,t[16]=x);let S=c.Platform??`Linux`,C;t[17]===S?C=t[18]:(C=(0,s.jsx)(a,{label:`Platform`,value:S}),t[17]=S,t[18]=C);let w;t[19]===c.PlatformDetails?w=t[20]:(w=(0,s.jsx)(a,{label:`Platform Details`,value:c.PlatformDetails}),t[19]=c.PlatformDetails,t[20]=w);let T;t[21]===c.ImageType?T=t[22]:(T=(0,s.jsx)(a,{label:`Image Type`,value:c.ImageType}),t[21]=c.ImageType,t[22]=T);let E;t[23]===c.RootDeviceType?E=t[24]:(E=(0,s.jsx)(a,{label:`Root Device Type`,value:c.RootDeviceType}),t[23]=c.RootDeviceType,t[24]=E);let D;t[25]===c.RootDeviceName?D=t[26]:(D=(0,s.jsx)(a,{label:`Root Device Name`,value:c.RootDeviceName}),t[25]=c.RootDeviceName,t[26]=D);let O;t[27]===c.OwnerId?O=t[28]:(O=(0,s.jsx)(a,{label:`Owner`,value:c.OwnerId}),t[27]=c.OwnerId,t[28]=O);let k;t[29]===c.State?k=t[30]:(k=(0,s.jsx)(a,{label:`State`,value:c.State}),t[29]=c.State,t[30]=k);let A;t[31]!==p||t[32]!==c.Public||t[33]!==d?(A=d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Creation Date`,value:p}),(0,s.jsx)(a,{label:`Public`,value:c.Public?`Yes`:`No`})]}),t[31]=p,t[32]=c.Public,t[33]=d,t[34]=A):A=t[34];let j;t[35]!==x||t[36]!==C||t[37]!==w||t[38]!==T||t[39]!==E||t[40]!==D||t[41]!==O||t[42]!==k||t[43]!==A||t[44]!==_||t[45]!==v||t[46]!==y||t[47]!==b?(j=(0,s.jsxs)(i.Content,{children:[_,v,y,b,x,C,w,T,E,D,O,k,A]}),t[35]=x,t[36]=C,t[37]=w,t[38]=T,t[39]=E,t[40]=D,t[41]=O,t[42]=k,t[43]=A,t[44]=_,t[45]=v,t[46]=y,t[47]=b,t[48]=j):j=t[48];let M;t[49]!==j||t[50]!==h?(M=(0,s.jsxs)(i,{children:[h,j]}),t[49]=j,t[50]=h,t[51]=M):M=t[51];let N;t[52]!==c.BlockDeviceMappings||t[53]!==d?(N=d&&c.BlockDeviceMappings&&c.BlockDeviceMappings.length>0&&c.BlockDeviceMappings.map(l),t[52]=c.BlockDeviceMappings,t[53]=d,t[54]=N):N=t[54];let P;return t[55]!==M||t[56]!==N?(P=(0,s.jsxs)(s.Fragment,{children:[M,N]}),t[55]=M,t[56]=N,t[57]=P):P=t[57],P}function l(e){return(0,s.jsxs)(i,{children:[(0,s.jsxs)(i.Header,{children:[`Block Device: `,e.DeviceName]}),(0,s.jsxs)(i.Content,{children:[(0,s.jsx)(a,{label:`Device Name`,value:e.DeviceName}),e.Ebs&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Volume Size`,value:e.Ebs.VolumeSize?`${e.Ebs.VolumeSize} GB`:void 0}),(0,s.jsx)(a,{label:`Volume Type`,value:e.Ebs.VolumeType}),(0,s.jsx)(a,{label:`Delete On Termination`,value:e.Ebs.DeleteOnTermination?`Yes`:`No`}),(0,s.jsx)(a,{label:`Encrypted`,value:e.Ebs.Encrypted?`Yes`:`No`}),e.Ebs.SnapshotId&&(0,s.jsx)(a,{label:`Snapshot ID`,value:(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:e.Ebs.SnapshotId},to:`/ec2/describe-snapshots/$id`,children:e.Ebs.SnapshotId})})]}),e.VirtualName&&(0,s.jsx)(a,{label:`Virtual Name`,value:e.VirtualName})]})]},e.DeviceName)}export{c as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{vr as n}from"./awsClient.js";import{Bt as r}from"./auth.js";import{n as i,t as a}from"./detail-row.js";var o=t(),s=e();function c(e){let t=(0,o.c)(58),{image:c,showExtendedDetails:u}=e,d=u===void 0?!1:u,f;t[0]===c.CreationDate?f=t[1]:(f=r(c.CreationDate),t[0]=c.CreationDate,t[1]=f);let p=f,m=d?`AMI Information`:`AMI Details`,h;t[2]===m?h=t[3]:(h=(0,s.jsx)(i.Header,{children:m}),t[2]=m,t[3]=h);let g;t[4]!==c.ImageId||t[5]!==d?(g=c.ImageId&&!d?(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:c.ImageId},to:`/ec2/describe-images/$id`,children:c.ImageId}):c.ImageId,t[4]=c.ImageId,t[5]=d,t[6]=g):g=t[6];let _;t[7]===g?_=t[8]:(_=(0,s.jsx)(a,{label:`AMI ID`,value:g}),t[7]=g,t[8]=_);let v;t[9]===c.Name?v=t[10]:(v=(0,s.jsx)(a,{label:`AMI Name`,value:c.Name}),t[9]=c.Name,t[10]=v);let y;t[11]===c.Description?y=t[12]:(y=(0,s.jsx)(a,{label:`Description`,value:c.Description}),t[11]=c.Description,t[12]=y);let b;t[13]===c.Architecture?b=t[14]:(b=(0,s.jsx)(a,{label:`Architecture`,value:c.Architecture}),t[13]=c.Architecture,t[14]=b);let x;t[15]===c.VirtualizationType?x=t[16]:(x=(0,s.jsx)(a,{label:`Virtualization Type`,value:c.VirtualizationType}),t[15]=c.VirtualizationType,t[16]=x);let S=c.Platform??`Linux`,C;t[17]===S?C=t[18]:(C=(0,s.jsx)(a,{label:`Platform`,value:S}),t[17]=S,t[18]=C);let w;t[19]===c.PlatformDetails?w=t[20]:(w=(0,s.jsx)(a,{label:`Platform Details`,value:c.PlatformDetails}),t[19]=c.PlatformDetails,t[20]=w);let T;t[21]===c.ImageType?T=t[22]:(T=(0,s.jsx)(a,{label:`Image Type`,value:c.ImageType}),t[21]=c.ImageType,t[22]=T);let E;t[23]===c.RootDeviceType?E=t[24]:(E=(0,s.jsx)(a,{label:`Root Device Type`,value:c.RootDeviceType}),t[23]=c.RootDeviceType,t[24]=E);let D;t[25]===c.RootDeviceName?D=t[26]:(D=(0,s.jsx)(a,{label:`Root Device Name`,value:c.RootDeviceName}),t[25]=c.RootDeviceName,t[26]=D);let O;t[27]===c.OwnerId?O=t[28]:(O=(0,s.jsx)(a,{label:`Owner`,value:c.OwnerId}),t[27]=c.OwnerId,t[28]=O);let k;t[29]===c.State?k=t[30]:(k=(0,s.jsx)(a,{label:`State`,value:c.State}),t[29]=c.State,t[30]=k);let A;t[31]!==p||t[32]!==c.Public||t[33]!==d?(A=d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Creation Date`,value:p}),(0,s.jsx)(a,{label:`Public`,value:c.Public?`Yes`:`No`})]}),t[31]=p,t[32]=c.Public,t[33]=d,t[34]=A):A=t[34];let j;t[35]!==x||t[36]!==C||t[37]!==w||t[38]!==T||t[39]!==E||t[40]!==D||t[41]!==O||t[42]!==k||t[43]!==A||t[44]!==_||t[45]!==v||t[46]!==y||t[47]!==b?(j=(0,s.jsxs)(i.Content,{children:[_,v,y,b,x,C,w,T,E,D,O,k,A]}),t[35]=x,t[36]=C,t[37]=w,t[38]=T,t[39]=E,t[40]=D,t[41]=O,t[42]=k,t[43]=A,t[44]=_,t[45]=v,t[46]=y,t[47]=b,t[48]=j):j=t[48];let M;t[49]!==j||t[50]!==h?(M=(0,s.jsxs)(i,{children:[h,j]}),t[49]=j,t[50]=h,t[51]=M):M=t[51];let N;t[52]!==c.BlockDeviceMappings||t[53]!==d?(N=d&&c.BlockDeviceMappings&&c.BlockDeviceMappings.length>0&&c.BlockDeviceMappings.map(l),t[52]=c.BlockDeviceMappings,t[53]=d,t[54]=N):N=t[54];let P;return t[55]!==M||t[56]!==N?(P=(0,s.jsxs)(s.Fragment,{children:[M,N]}),t[55]=M,t[56]=N,t[57]=P):P=t[57],P}function l(e){return(0,s.jsxs)(i,{children:[(0,s.jsxs)(i.Header,{children:[`Block Device: `,e.DeviceName]}),(0,s.jsxs)(i.Content,{children:[(0,s.jsx)(a,{label:`Device Name`,value:e.DeviceName}),e.Ebs&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Volume Size`,value:e.Ebs.VolumeSize?`${e.Ebs.VolumeSize} GB`:void 0}),(0,s.jsx)(a,{label:`Volume Type`,value:e.Ebs.VolumeType}),(0,s.jsx)(a,{label:`Delete On Termination`,value:e.Ebs.DeleteOnTermination?`Yes`:`No`}),(0,s.jsx)(a,{label:`Encrypted`,value:e.Ebs.Encrypted?`Yes`:`No`}),e.Ebs.SnapshotId&&(0,s.jsx)(a,{label:`Snapshot ID`,value:(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:e.Ebs.SnapshotId},to:`/ec2/describe-snapshots/$id`,children:e.Ebs.SnapshotId})})]}),e.VirtualName&&(0,s.jsx)(a,{label:`Virtual Name`,value:e.VirtualName})]})]},e.DeviceName)}export{c as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/auth.js b/spinifex/services/spinifexui/frontend/dist/assets/auth.js index 1a2562af2..cf41f390a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/auth.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/auth.js @@ -1,9 +1,9 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.browser.js","assets/compiler-runtime.js","assets/tslib.es6.js"])))=>i.map(i=>d[i]); -import"./compiler-runtime.js";import{E as e,F as t,I as n,M as r,N as i,O as a,P as o,S as s,T as c,_ as l,b as u,d,g as f,k as p,l as m,n as h,o as g,s as ee,t as te,u as ne,w as re,x as ie,y as ae}from"./tslib.es6.js";function oe(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),ce=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),y=`-`,le=[],ue=`arbitrary..`,de=e=>{let t=pe(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return fe(e);let n=e.split(y);return b(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?v(i,t):t:i||le}return n[e]||le}}},b=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=b(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(y):e.slice(t).join(y),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?ue+r:void 0})(),pe=e=>{let{theme:t,classGroups:n}=e;return me(n,t)},me=(e,t)=>{let n=ce();for(let r in e){let i=e[r];x(i,n,r,t)}return n},x=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){ge(e,t,n);return}if(typeof e==`function`){_e(e,t,n,r);return}ve(e,t,n,r)},ge=(e,t,n)=>{let r=e===``?t:S(t,e);r.classGroupId=n},_e=(e,t,n,r)=>{if(C(e)){x(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(se(n,e))},ve=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(y),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,ye=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},be=`!`,w=`:`,xe=[],Se=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ce=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return Se(t,l,c,u)};if(t){let e=t+w,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Se(xe,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},we=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Te=e=>({cache:ye(e.cacheSize),parseClassName:Ce(e),sortModifiers:we(e),postfixLookupClassGroupIds:Ee(e),...de(e)}),Ee=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(De),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let ee=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),te=f?ee+be:ee,ne=te+g;if(s.indexOf(ne)>-1)continue;s.push(ne);let re=i(g,h);for(let e=0;e0?` `+l:l)}return l},ke=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=Te(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Oe(e,n);return i(e,a),a};return a=o,(...e)=>a(ke(...e))},Me=[],T=e=>{let t=t=>t[e]||Me;return t.isThemeGetter=!0,t},Ne=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ie=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Le=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Re=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ze=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Be=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>Fe.test(e),D=e=>!!e&&!Number.isNaN(Number(e)),O=e=>!!e&&Number.isInteger(Number(e)),Ve=e=>e.endsWith(`%`)&&D(e.slice(0,-1)),k=e=>Ie.test(e),He=()=>!0,Ue=e=>Le.test(e)&&!Re.test(e),We=()=>!1,Ge=e=>ze.test(e),Ke=e=>Be.test(e),qe=e=>!A(e)&&!j(e),Je=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ye=e=>M(e,pt,We),A=e=>Ne.test(e),Xe=e=>M(e,mt,Ue),Ze=e=>M(e,ht,D),Qe=e=>M(e,_t,He),$e=e=>M(e,gt,We),et=e=>M(e,dt,We),tt=e=>M(e,ft,Ke),nt=e=>M(e,vt,Ge),j=e=>Pe.test(e),rt=e=>ut(e,mt),it=e=>ut(e,gt),at=e=>ut(e,dt),ot=e=>ut(e,pt),st=e=>ut(e,ft),ct=e=>ut(e,vt,!0),lt=e=>ut(e,_t,!0),M=(e,t,n)=>{let r=Ne.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ut=(e,t,n=!1)=>{let r=Pe.exec(e);return r?r[1]?t(r[1]):n:!1},dt=e=>e===`position`||e===`percentage`,ft=e=>e===`image`||e===`url`,pt=e=>e===`length`||e===`size`||e===`bg-size`,mt=e=>e===`length`,ht=e=>e===`number`,gt=e=>e===`family-name`,_t=e=>e===`number`||e===`weight`,vt=e=>e===`shadow`,yt=je(()=>{let e=T(`color`),t=T(`font`),n=T(`text`),r=T(`font-weight`),i=T(`tracking`),a=T(`leading`),o=T(`breakpoint`),s=T(`container`),c=T(`spacing`),l=T(`radius`),u=T(`shadow`),d=T(`inset-shadow`),f=T(`text-shadow`),p=T(`drop-shadow`),m=T(`blur`),h=T(`perspective`),g=T(`aspect`),ee=T(`ease`),te=T(`animate`),ne=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],re=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ie=()=>[...re(),j,A],ae=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],oe=()=>[`auto`,`contain`,`none`],_=()=>[j,A,c],v=()=>[E,`full`,`auto`,..._()],se=()=>[O,`none`,`subgrid`,j,A],ce=()=>[`auto`,{span:[`full`,O,j,A]},O,j,A],y=()=>[O,`auto`,j,A],le=()=>[`auto`,`min`,`max`,`fr`,j,A],ue=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],de=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],b=()=>[`auto`,..._()],fe=()=>[E,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,..._()],pe=()=>[E,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,..._()],me=()=>[E,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,..._()],x=()=>[e,j,A],he=()=>[...re(),at,et,{position:[j,A]}],ge=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],_e=()=>[`auto`,`cover`,`contain`,ot,Ye,{size:[j,A]}],ve=()=>[Ve,rt,Xe],S=()=>[``,`none`,`full`,l,j,A],C=()=>[``,D,rt,Xe],ye=()=>[`solid`,`dashed`,`dotted`,`double`],be=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],w=()=>[D,Ve,at,et],xe=()=>[``,`none`,m,j,A],Se=()=>[`none`,D,j,A],Ce=()=>[`none`,D,j,A],we=()=>[D,j,A],Te=()=>[E,`full`,..._()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[k],breakpoint:[k],color:[He],container:[k],"drop-shadow":[k],ease:[`in`,`out`,`in-out`],font:[qe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[k],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[k],shadow:[k],spacing:[`px`,D],text:[k],"text-shadow":[k],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,E,A,j,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,j,A]}],"container-named":[Je],columns:[{columns:[D,A,j,s]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ie()}],overflow:[{overflow:ae()}],"overflow-x":[{"overflow-x":ae()}],"overflow-y":[{"overflow-y":ae()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:v()}],"inset-x":[{"inset-x":v()}],"inset-y":[{"inset-y":v()}],start:[{"inset-s":v(),start:v()}],end:[{"inset-e":v(),end:v()}],"inset-bs":[{"inset-bs":v()}],"inset-be":[{"inset-be":v()}],top:[{top:v()}],right:[{right:v()}],bottom:[{bottom:v()}],left:[{left:v()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[O,`auto`,j,A]}],basis:[{basis:[E,`full`,`auto`,s,..._()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[D,E,`auto`,`initial`,`none`,A]}],grow:[{grow:[``,D,j,A]}],shrink:[{shrink:[``,D,j,A]}],order:[{order:[O,`first`,`last`,`none`,j,A]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":y()}],"col-end":[{"col-end":y()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":y()}],"row-end":[{"row-end":y()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...ue(),`normal`]}],"justify-items":[{"justify-items":[...de(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...de()]}],"align-content":[{content:[`normal`,...ue()]}],"align-items":[{items:[...de(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...de(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...de(),`baseline`]}],"place-self":[{"place-self":[`auto`,...de()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:b()}],mx:[{mx:b()}],my:[{my:b()}],ms:[{ms:b()}],me:[{me:b()}],mbs:[{mbs:b()}],mbe:[{mbe:b()}],mt:[{mt:b()}],mr:[{mr:b()}],mb:[{mb:b()}],ml:[{ml:b()}],"space-x":[{"space-x":_()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":_()}],"space-y-reverse":[`space-y-reverse`],size:[{size:fe()}],"inline-size":[{inline:[`auto`,...pe()]}],"min-inline-size":[{"min-inline":[`auto`,...pe()]}],"max-inline-size":[{"max-inline":[`none`,...pe()]}],"block-size":[{block:[`auto`,...me()]}],"min-block-size":[{"min-block":[`auto`,...me()]}],"max-block-size":[{"max-block":[`none`,...me()]}],w:[{w:[s,`screen`,...fe()]}],"min-w":[{"min-w":[s,`screen`,`none`,...fe()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...fe()]}],h:[{h:[`screen`,`lh`,...fe()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...fe()]}],"max-h":[{"max-h":[`screen`,`lh`,...fe()]}],"font-size":[{text:[`base`,n,rt,Xe]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,lt,Qe]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ve,A]}],"font-family":[{font:[it,$e,t]}],"font-features":[{"font-features":[A]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,j,A]}],"line-clamp":[{"line-clamp":[D,`none`,j,Ze]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":[`none`,j,A]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,j,A]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ye(),`wavy`]}],"text-decoration-thickness":[{decoration:[D,`from-font`,`auto`,j,Xe]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[D,`auto`,j,A]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:_()}],"tab-size":[{tab:[O,j,A]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,j,A]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,j,A]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:he()}],"bg-repeat":[{bg:ge()}],"bg-size":[{bg:_e()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},O,j,A],radial:[``,j,A],conic:[O,j,A]},st,tt]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:ve()}],"gradient-via-pos":[{via:ve()}],"gradient-to-pos":[{to:ve()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:C()}],"border-w-x":[{"border-x":C()}],"border-w-y":[{"border-y":C()}],"border-w-s":[{"border-s":C()}],"border-w-e":[{"border-e":C()}],"border-w-bs":[{"border-bs":C()}],"border-w-be":[{"border-be":C()}],"border-w-t":[{"border-t":C()}],"border-w-r":[{"border-r":C()}],"border-w-b":[{"border-b":C()}],"border-w-l":[{"border-l":C()}],"divide-x":[{"divide-x":C()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":C()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ye(),`hidden`,`none`]}],"divide-style":[{divide:[...ye(),`hidden`,`none`]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-bs":[{"border-bs":x()}],"border-color-be":[{"border-be":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...ye(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[D,j,A]}],"outline-w":[{outline:[``,D,rt,Xe]}],"outline-color":[{outline:x()}],shadow:[{shadow:[``,`none`,u,ct,nt]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":[`none`,d,ct,nt]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:C()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[D,Xe]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":C()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":[`none`,f,ct,nt]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[D,j,A]}],"mix-blend":[{"mix-blend":[...be(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[D]}],"mask-image-linear-from-pos":[{"mask-linear-from":w()}],"mask-image-linear-to-pos":[{"mask-linear-to":w()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":w()}],"mask-image-t-to-pos":[{"mask-t-to":w()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":w()}],"mask-image-r-to-pos":[{"mask-r-to":w()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":w()}],"mask-image-b-to-pos":[{"mask-b-to":w()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":w()}],"mask-image-l-to-pos":[{"mask-l-to":w()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":w()}],"mask-image-x-to-pos":[{"mask-x-to":w()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":w()}],"mask-image-y-to-pos":[{"mask-y-to":w()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[j,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":w()}],"mask-image-radial-to-pos":[{"mask-radial-to":w()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":re()}],"mask-image-conic-pos":[{"mask-conic":[D]}],"mask-image-conic-from-pos":[{"mask-conic-from":w()}],"mask-image-conic-to-pos":[{"mask-conic-to":w()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:he()}],"mask-repeat":[{mask:ge()}],"mask-size":[{mask:_e()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,j,A]}],filter:[{filter:[``,`none`,j,A]}],blur:[{blur:xe()}],brightness:[{brightness:[D,j,A]}],contrast:[{contrast:[D,j,A]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ct,nt]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:[``,D,j,A]}],"hue-rotate":[{"hue-rotate":[D,j,A]}],invert:[{invert:[``,D,j,A]}],saturate:[{saturate:[D,j,A]}],sepia:[{sepia:[``,D,j,A]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,j,A]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[D,j,A]}],"backdrop-contrast":[{"backdrop-contrast":[D,j,A]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,D,j,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D,j,A]}],"backdrop-invert":[{"backdrop-invert":[``,D,j,A]}],"backdrop-opacity":[{"backdrop-opacity":[D,j,A]}],"backdrop-saturate":[{"backdrop-saturate":[D,j,A]}],"backdrop-sepia":[{"backdrop-sepia":[``,D,j,A]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,j,A]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[D,`initial`,j,A]}],ease:[{ease:[`linear`,`initial`,ee,j,A]}],delay:[{delay:[D,j,A]}],animate:[{animate:[`none`,te,j,A]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,j,A]}],"perspective-origin":[{"perspective-origin":ie()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":[`scale-3d`],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[j,A,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ie()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:Te()}],"translate-x":[{"translate-x":Te()}],"translate-y":[{"translate-y":Te()}],"translate-z":[{"translate-z":Te()}],"translate-none":[`translate-none`],zoom:[{zoom:[O,j,A]}],accent:[{accent:x()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,j,A]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":x()}],"scrollbar-track-color":[{"scrollbar-track":x()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,j,A]}],fill:[{fill:[`none`,...x()]}],"stroke-w":[{stroke:[D,rt,Xe,Ze]}],stroke:[{stroke:[`none`,...x()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function bt(...e){return yt(_(e))}var xt=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`long`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function St(e){return e?xt.format(new Date(e)):`Unknown`}function Ct(e){return`${Math.round(e/1024)} GiB`}var wt=[`B`,`KB`,`MB`,`GB`,`TB`];function Tt(e){if(e===0)return`0 B`;let t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(2)} ${wt[t]}`}function Et(e){return e?.find(e=>e.Key===`Name`)?.Value}var Dt=/\/$/;function Ot(e){return e.replace(Dt,``)}function kt(e){return e&&(e.endsWith(`/`)?e:`${e}/`)}function At(e,t){return e.startsWith(t)?e:`${t}${e}`}function jt(e,t){return e.startsWith(t)?e.slice(t.length):e}function Mt(e,t,n){return e.$source||={},e.$source[t]=n,e}var Nt=e=>e?.body instanceof ReadableStream,Pt=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},Ft=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,It=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>Lt[t.step]-Lt[e.step]||Rt[t.priority||`normal`]-Rt[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=Pt(e.name,e.aliases);if(t.includes(n)){i=!0;for(let e of t)r.delete(e);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},o=n=>{let i=!1,a=e=>{if(e.middleware===n){i=!0;for(let t of Pt(e.name,e.aliases))r.delete(t);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},s=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(u.identifyOnResolve()),n),c=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t},l=(n=!1)=>{let r=[],a=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of Pt(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of Pt(t.name,t.aliases))o[e]=t;a.push(t)}),a.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(t===void 0){if(n)return;throw Error(`${e.toMiddleware} is not found when adding ${Ft(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),i(r).map(c).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:i,override:a,aliases:o}=n,s={step:`initialize`,priority:`normal`,middleware:t,...n},c=Pt(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${Ft(i,o)}'`);for(let t of c){let n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(n===-1)continue;let r=e[n];if(r.step!==s.step||s.priority!==r.priority)throw Error(`"${Ft(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${Ft(i,o)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(n,1)}}for(let e of c)r.add(e)}e.push(s)},addRelativeTo:(e,n)=>{let{name:i,override:a,aliases:o}=n,s={middleware:e,...n},c=Pt(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${Ft(i,o)}'`);for(let e of c){let n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(n===-1)continue;let r=t[n];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw Error(`"${Ft(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${Ft(i,o)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(n,1)}}for(let e of c)r.add(e)}t.push(s)},clone:()=>s(It()),use:e=>{e.applyToStack(u)},remove:e=>typeof e==`string`?a(e):o(e),removeByTag:n=>{let i=!1,a=e=>{let{tags:t,name:a,aliases:o}=e;if(t&&t.includes(n)){let e=Pt(a,o);for(let t of e)r.delete(t);return i=!0,!1}return!0};return e=e.filter(a),t=t.filter(a),i},concat:e=>{let t=s(It());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>l(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return Ft(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(n=e),n},resolve:(e,t)=>{for(let n of l().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(u.identify()),e}};return u},Lt={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Rt={high:3,normal:2,low:1},zt;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(zt||={});var Bt;(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(Bt||={});var Vt=`__smithy_context`,Ht=e=>e.__smithy_context||={},N=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=Ut(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function Ut(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var Wt=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}},Gt=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),Kt=(e,t=!1)=>{if(!t)return Gt.test(e);let n=e.split(`.`);for(let e of n)if(!Kt(e))return!1;return!0},P=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t};function qt(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var Jt=e=>{if(typeof e==`string`)return Jt(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=qt(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}},Yt=e=>{if(typeof e==`object`){if(`url`in e){let t=Jt(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return Jt(e)},Xt=e=>()=>Promise.reject(e),Zt=class{config;middlewareStack=It();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},Qt=e=>typeof e==`function`?e():e,$t=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),en=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=Ht(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse($t(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` - Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(Wt.isInstance(i)){let{headers:t={},statusCode:n}=i,r=Object.entries(t);e.$metadata={httpStatusCode:n,requestId:tn(/^x-[\w-]+-request-?id$/,r),extendedRequestId:tn(/^x-[\w-]+-id-2$/,r),cfId:tn(/^x-[\w-]+-cf-id$/,r)}}}catch{}}throw e}},tn=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],nn=e=>(t,n)=>async r=>{let{operationSchema:i}=Ht(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>Yt(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest($t(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},rn={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},an={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function on(e){return{applyToStack:t=>{t.add(nn(e),an),t.add(en(e),rn),e.protocol.setSerdeContext(e)}}}var sn=[];function cn(e){if(typeof e==`object`)return e;if(e|=0,sn[e])return sn[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return sn[e]=t}var ln={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},un=[],dn={},F=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;pn(i);)r.push(i[1]),i=i[0],a=Qt(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,cn(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=Qt(a),mn(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=typeof t==`function`||typeof t==`object`&&!!t;if(typeof t==`number`){if(un[t])return un[t]}else if(typeof t==`string`){if(dn[t])return dn[t]}else if(n&&t[ln.ns])return t[ln.ns];let r=Qt(t);if(r instanceof e)return r;if(pn(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),cn(i)),n;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new e(r);return n?t[ln.ns]=i:typeof r==`string`?dn[r]=i:typeof r==`number`?un[r]=i:i}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()===`unit`}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return cn(this.memberTraits)}getOwnTraits(){return cn(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return fn([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return fn([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return fn(pn(r)?r:[r,0],e)}if(this.isDocumentSchema())return fn([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[ln.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,mn=e=>Array.isArray(e)&&e.length>=5,hn=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes(`#`)){let t=`#`+e,n=[];for(let[e,r]of this.schemas.entries())e.endsWith(t)&&n.push(r);if(n.length===1)return n[0]}throw Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}},gn=`***SensitiveInformation***`;function _n(e,t){if(t==null)return t;let n=F.of(e);if(n.getMergedTraits().sensitive)return gn;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return gn}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return gn}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=_n(i,e[t]));return r}return t}var vn=class{middlewareStack=It();schema;static classBuilder(){return new yn}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let i of r.bind(this)(u,e,t,n))this.middlewareStack.use(i);let d=e.concat(this.middlewareStack),{logger:f}=t,p={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,[Vt]:{commandInstance:this,...c},...l},{requestHandler:m}=t,h=n??{};return c.eventStream&&(h={isEventStream:!0,...h}),d.resolve(e=>m.handle(e.request,h),p)}},yn=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends vn{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?_n.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?_n.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}},bn=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}},xn=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e),Sn=e=>{switch(e){case`standard`:return{retryMode:`standard`,connectionTimeout:3100};case`in-region`:return{retryMode:`standard`,connectionTimeout:1100};case`cross-region`:return{retryMode:`standard`,connectionTimeout:3100};case`mobile`:return{retryMode:`standard`,connectionTimeout:3e4};default:return{}}},Cn=Object.values(Bt),wn=e=>{let t=[];for(let n in Bt){let r=Bt[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();Cn.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},Tn=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();Cn.includes(n)&&(t[n]=e.checksumConstructor())}),t},En=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),Dn=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},On=e=>Object.assign(wn(e),En(e)),kn=e=>Object.assign(Tn(e),Dn(e)),An=e=>{let t=`#text`;for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]==`object`&&e[n]!==null&&(e[n]=An(e[n]));return e},jn=class{trace(){}debug(){}info(){}warn(){}error(){}},Mn=async e=>void 0,Nn=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),Rn(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!Ln(t)||t.indexOf(`.`)!==-1&&!String(e.Endpoint).startsWith(`http:`)||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},Pn=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Fn=/(\d+\.){3}\d+/,In=/\.\./,Ln=e=>Pn.test(e)&&!Fn.test(e)&&!In.test(e),Rn=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},zn=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i};function Bn(e){return async(t,n,r,i)=>{if(!r.isCustomEndpoint){let t;t=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await e(r.serviceId),t&&(r.endpoint=()=>Promise.resolve(Yt(t)),r.isCustomEndpoint=!0)}let a=await Vn(t,n,r);if(typeof r.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let o=r.endpointProvider(a,i);if(r.isCustomEndpoint&&r.endpoint){let e=await r.endpoint();if(e?.headers){o.headers??={};for(let[t,n]of Object.entries(e.headers))o.headers[t]=Array.isArray(n)?n:[n]}}return o}}var Vn=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await zn(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await Nn(r),r};function Hn(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}function Un(e){let t=Bn(e);return({config:e,instructions:n})=>(r,i)=>async a=>{e.isCustomEndpoint&&Hn(i,`ENDPOINT_OVERRIDE`,`N`);let o=await t(a.input,{getEndpointParameterInstructions(){return n}},{...e},i);i.endpointV2=o,i.authSchemes=o.properties?.authSchemes;let s=i.authSchemes?.[0];if(s){i.signing_region=s.signingRegion,i.signing_service=s.signingName;let e=Ht(i)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...a})}}var Wn={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:{name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}.name};function Gn(e){let t=Un(e);return(e,n)=>({applyToStack:r=>{r.addRelativeTo(t({config:e,instructions:n}),Wn)}})}function Kn(e){return t=>{let n=t.tls??!0,{endpoint:r,useDualstackEndpoint:i,useFipsEndpoint:a}=t,o=Object.assign(t,{endpoint:r==null?void 0:async()=>Yt(await P(r)()),tls:n,isCustomEndpoint:!!r,useDualstackEndpoint:P(i??!1),useFipsEndpoint:P(a??!1)}),s;return o.serviceConfiguredEndpoint=async()=>(t.serviceId&&!s&&(s=e(t.serviceId)),s),o}}var qn=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}},Jn=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},I=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},Yn=`endpoints`;function Xn(e){return typeof e!=`object`||!e?e:`ref`in e?`$${Xn(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(Xn).join(`, `)})`:JSON.stringify(e,null,2)}var Zn={},Qn=(e,t)=>e===t;function $n(...e){for(let t of e)if(t!=null)return t}var er=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new I(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new I(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},tr=(e,t)=>er(t).reduce((n,r)=>{if(typeof n!=`object`)throw new I(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e),nr=e=>e!=null;function rr(e,t,n){return e?t:n}var ir=e=>!e,ar=RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`),or=e=>ar.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),sr={[zt.HTTP]:80,[zt.HTTPS]:443},cr=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:a,protocol:o,search:s}=t;if(s)return null;let c=o.slice(0,-1);if(!Object.values(zt).includes(c))return null;let l=or(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${sr[c]}`)||typeof e==`string`&&e.includes(`${r}:${sr[c]}`)?`:${sr[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}};function lr(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}var ur={booleanEquals:Qn,coalesce:$n,getAttr:tr,isSet:nr,isValidHostLabel:Kt,ite:rr,not:ir,parseURL:cr,split:lr,stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},dr=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;at.referenceRecord[e]??t.endpointParams[e],pr=(e,t,n)=>{if(typeof e==`string`)return dr(e,n);if(e.fn)return hr.callFunction(e,n);if(e.ref)return fr(e,n);throw new I(`'${t}': ${String(e)} is not a string, function or reference.`)},mr=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new I(`'${n}' is already defined in Reference Record.`);let r=mr(e,t);t.logger?.debug?.(`${Yn} evaluateCondition: ${Xn(e)} = ${Xn(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}},_r=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=pr(e,`Header value entry`,t);if(typeof r!=`string`)throw new I(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),vr=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=br.getEndpointProperty(r,t),e),{}),yr=(e,t)=>{if(Array.isArray(e))return e.map(e=>yr(e,t));switch(typeof e){case`string`:return dr(e,t);case`object`:if(e===null)throw new I(`Unexpected endpoint property: ${e}`);return br.getEndpointProperties(e,t);case`boolean`:return e;default:throw new I(`Unexpected endpoint property type: ${typeof e}`)}},br={getEndpointProperty:yr,getEndpointProperties:vr},xr=(e,t)=>{let n=pr(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new I(`Endpoint URL must be a string, got ${typeof n}`)},Sr=1e8,Cr=(e,t)=>{let{nodes:n,root:r,results:i,conditions:a}=e,o=r,s={},c={referenceRecord:s,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===f.result?r:i}if(o>=Sr){let e=i[o-Sr];if(e[0]===-1){let[,t]=e;throw new I(pr(t,`Error`,c))}let[t,n,r]=e;return{url:xr(t,c),properties:vr(n,c),headers:_r(r??{},c)}}throw new I(`No matching endpoint.`)},wr=Bn(Mn),Tr=Kn(Mn);Un(Mn);var Er=Gn(Mn),Dr=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return m.mutate(e);if(!e)return m.mutate(new Uint8Array);let n=t.streamCollector(e);return m.mutate(await n)};function Or(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}var kr=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},Ar=`modulepreload`,jr=function(e){return`/`+e},Mr={},Nr=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=jr(t,n),t in Mr)return;Mr[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Ar,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Pr=class extends kr{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=hn.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return N}getResponseType(){return Wt}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(let n in t.headers)e.headers[n]=t.headers[n].join(`, `);return e}else{if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let n in t.headers)e.headers[n]=t.headers[n];return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=F.of(t.input),i=cn(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){for(let[e,i]of r.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await Nr(async()=>{let{EventStreamSerde:e}=await import(`./index.browser.js`).then(e=>e.t);return{EventStreamSerde:e}},__vite__mapDeps([0,1,2]));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}},Fr=class extends Pr{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=F.of(e?.input),c=s.getSchema(),l,u=t&&typeof t==`object`?t:{},d=new N({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:i,headers:a,body:void 0});if(o&&(this.updateServiceEndpoint(d,o),this.setHostPrefix(d,e,u)),u){let e=s.getEventStreamMember();if(e){if(u[e]){let t={};for(let[n,i]of s.structIterator())n!==e&&u[n]&&(r.write(i,u[n]),t[n]=r.flush());l=await this.serializeEventStream({eventStream:u[e],requestSchema:s,initialRequest:t})}}else r.write(c,u),l=r.flush()}return d.headers=Object.assign(d.headers,a),d.query=i,d.body=l,d.method=`POST`,d}async deserializeResponse(e,t,n){let r=this.deserializer,i=F.of(e.output),a={};if(n.statusCode>=300){let i=await Dr(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - RPC Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await Dr(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}};function Ir(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var Lr=class extends kr{settings;constructor(e){super(),this.settings=e}read(t,r){let i=F.of(t);if(i.isListSchema())return s(r).map(e=>this.read(i.getValueSchema(),e));if(i.isBlobSchema())return(this.serdeContext?.base64Decoder??n)(r);if(i.isTimestampSchema())switch(Ir(i,this.settings)){case 5:return c(r);case 6:return e(r);case 7:return re(r);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,r),new Date(r)}if(i.isStringSchema()){let e=i.getMergedTraits().mediaType,t=r;if(e)return i.getMergedTraits().httpHeader&&(t=this.base64ToUtf8(t)),(e===`application/json`||e.endsWith(`+json`))&&(t=a.from(t)),t}return i.isNumericSchema()?Number(r):i.isBigIntegerSchema()?BigInt(r):i.isBigDecimalSchema()?new ie(r,`bigDecimal`):i.isBooleanSchema()?String(r).toLowerCase()===`true`:r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??i)((this.serdeContext?.base64Decoder??n)(e))}},Rr=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),zr=e=>({httpHandler:e.httpHandler()}),Br=`content-length`;function Vr(e){return t=>async n=>{let r=n.request;if(N.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(Br)===-1)try{let n=e(t);r.headers={...r.headers,[Br]:String(n)}}catch{}}return t({...n,request:r})}}var Hr={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},Ur=e=>({applyToStack:t=>{t.add(Vr(e.bodyLengthChecker),Hr)}}),Wr=e=>encodeURIComponent(e).replace(/[!'()*]/g,Gr),Gr=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function Kr(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Wr(n),Array.isArray(r))for(let e=0,i=r.length;ee?.$retryable!==void 0,$r=e=>e.$metadata?.clockSkewCorrected,ei=e=>{let t=new Set([`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The Internet connection appears to be offline`,`Load failed`,`Network request failed`]);return e&&e instanceof TypeError?t.has(e.message):!1},ti=e=>e.$metadata?.httpStatusCode===429||qr.includes(e.name)||e.$retryable?.throttling==1,ni=(e,t=0)=>Qr(e)||$r(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||Jr.includes(e.name)||Xr.includes(e?.code||``)||Zr.includes(e?.code||``)||Yr.includes(e.$metadata?.httpStatusCode||0)||ei(e)||ii(e)||e.cause!==void 0&&t<=10&&ni(e.cause,t+1),ri=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!ni(e)}return!1};function ii(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}var ai=20*1e3,oi=`amz-sdk-invocation-id`,si=`amz-sdk-request`;function ci(e,t){if(Wt.isInstance(e))for(let n of Object.keys(e.headers)){let i=n.toLowerCase();if(i===`retry-after`){let i=e.headers[n],a=NaN;if(i.endsWith(`GMT`))try{a=(r(i).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else i.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?a=Number(i.match(/ GMT, ([\d.]+)$/)?.[1]):i.match(/^((\d+)|(\d+\.\d+))$/)?a=Number(i):Date.parse(i)>=Date.now()&&(a=(Date.parse(i)-Date.now())/1e3);return isNaN(a)?void 0:new Date(Date.now()+a*1e3)}else if(i===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}var li=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`);function ui(e){return t=>(n,r)=>async i=>{let a=await t.retryStrategy(),o=await t.maxAttempts();if(fi(a)){a=a;let s=await a.acquireInitialRetryToken((r.partition_id??``)+(r.__retryLongPoll?`:longpoll`:``)),c=Error(),l=0,u=0,{request:f}=i,p=N.isInstance(f);for(p&&(f.headers[oi]=d());;)try{p&&(f.headers[si]=`attempt=${l+1}; max=${o}`);let{response:e,output:t}=await n(i);return a.recordSuccess(s),t.$metadata.attempts=l+1,t.$metadata.totalRetryDelay=u,{response:e,output:t}}catch(n){let i=pi(n,t.logger);if(c=li(n),p&&e(f))throw(r.logger instanceof jn?console:r.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),c;try{s=await a.refreshRetryTokenForRetry(s,i)}catch{throw c.$metadata||={},c.$metadata.attempts=l+1,c.$metadata.totalRetryDelay=u,c}l=s.getRetryCount();let o=s.getRetryDelay();u+=(s?.$retryLog?.acquisitionDelay??0)+o,o>0&&await di(o)}}else return a=a,a?.mode&&(r.userAgent=[...r.userAgent||[],[`cfg/retry-mode`,a.mode]]),a.retry(n,i)}}var di=e=>new Promise(t=>setTimeout(t,e)),fi=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,pi=(e,t)=>{let n={error:e,errorType:mi(e)},r=ci(e.$response,t);return r&&(n.retryAfterHint=r),n},mi=e=>ti(e)?`THROTTLING`:ni(e)?`TRANSIENT`:ri(e)?`SERVER_ERROR`:`CLIENT_ERROR`,hi={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0};function gi(e){let t=ui(e);return e=>({applyToStack:n=>{n.add(t(e),hi)}})}var _i=class e{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();let n=e;if(n?.errorType===`THROTTLING`||ti(n?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n)),this.refillTokenBucket()}this.availableTokens-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}},L=class e{static v2026=typeof process<`u`&&{}.SMITHY_NEW_RETRIES_2026===`true`;static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?`THROTTLING`:`TRANSIENT`}},vi=class{x=L.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,ai);return Math.floor(t)}setDelayBase(e){this.x=e}},yi=class{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(ai,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}},bi;(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})(bi||={});var xi=bi.STANDARD,Si={incompatible:1,attempts:2,capacity:3},Ci=class{mode=bi.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e==`number`?this.maxAttemptsProvider=async()=>e:typeof e==`function`?this.maxAttemptsProvider=e:e&&typeof e==`object`&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=L.delay(),this.retryBackoffStrategy??=new vi}async acquireInitialRetryToken(e){return new yi(L.delay(),0,void 0,L.v2026&&e.includes(`:longpoll`))}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=r===0,a=e.isLongPoll?.();if(i||a){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?L.throttlingDelay():this.baseDelay);let o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=o;if(t.retryAfterHint instanceof Date&&(s=Math.max(o,Math.min(t.retryAfterHint.getTime()-Date.now(),o+5e3))),i){let t=this.getCapacityCost(n);this.capacity-=t;let r=new yi(0,e.getRetryCount()+1,t,e.isLongPoll?.()??!1);return await new Promise(e=>setTimeout(e,s)),r.$retryLog.acquisitionDelay=s,r}else{let e=L.v2026&&r===Si.capacity&&a?s:0;e>0&&await new Promise(t=>setTimeout(t,e))}}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}retryCode(e,t,n){let r=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:Si.incompatible,a=r=this.getCapacityCost(t.errorType)?0:Si.capacity;return i||a||o}getCapacityCost(e){return e===L.modifiedCostType()?L.throttlingCost():L.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},wi=class{mode=bi.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new _i,this.standardRetryStrategy=t?new Ci({maxAttempts:typeof e==`number`?e:3,...t}):new Ci(e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}},Ti=(e,t)=>{let{retryStrategy:n,retryMode:r}=e,{defaultMaxAttempts:i=3,defaultBaseDelay:a=L.delay()}=t??{},o=P(e.maxAttempts??i),s=n?Promise.resolve(n):void 0,c=async()=>{let e=await o();return await P(r)()===bi.ADAPTIVE?new wi(o,{maxAttempts:e,baseDelay:a}):new Ci({maxAttempts:e,baseDelay:a})};return Object.assign(e,{maxAttempts:o,retryStrategy:()=>s??=c()})},Ei=gi(Nt);L.v2026||=typeof process==`object`&&{}.AWS_NEW_RETRIES_2026===`true`;function R(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}function Di(e){return e}var Oi=e=>t=>async n=>{if(!N.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=``}=e.requestHandler.metadata||{};if(i.indexOf(`h2`)>=0&&!r.headers[`:authority`])delete r.headers.host,r.headers[`:authority`]=r.hostname+(r.port?`:`+r.port:``);else if(!r.headers.host){let e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},ki={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},Ai=e=>({applyToStack:t=>{t.add(Oi(e),ki)}}),ji=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},Mi={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},Ni=e=>({applyToStack:e=>{e.add(ji(),Mi)}}),Pi=e=>({applyToStack:e=>{}}),Fi=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n};function Ii(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var Li=(e,t)=>(n,r)=>async i=>{let a=Fi(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=Ii(e.httpAuthSchemes),s=Ht(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` -`));return n(i)},Ri={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},zi=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(Li(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),Ri)}}),Bi=e=>e=>{throw e},Vi=(e,t)=>{},Hi=e=>(e,t)=>async n=>{if(!N.isInstance(n.request))return e(n);let r=Ht(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:i={}},identity:a,signer:o}=r,s=await e({...n,request:await o.sign(n.request,a,i)}).catch((o.errorHandler||Bi)(i));return(o.successHandler||Vi)(s.response,i),s},Ui={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},Wi=e=>({applyToStack:t=>{t.addRelativeTo(Hi(e),Ui)}}),Gi=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},Ki=class{authSchemes=new Map;constructor(e){for(let t in e){let n=e[t];n!==void 0&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}},qi=(e=>function(t){return Ji(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,Yi=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))};function Xi(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function Zi(e){let t=Gi(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!Xi(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var Qi={partitions:[{id:`aws`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-east-1`,name:`aws`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$`,regions:{"af-south-1":{description:`Africa (Cape Town)`},"ap-east-1":{description:`Asia Pacific (Hong Kong)`},"ap-east-2":{description:`Asia Pacific (Taipei)`},"ap-northeast-1":{description:`Asia Pacific (Tokyo)`},"ap-northeast-2":{description:`Asia Pacific (Seoul)`},"ap-northeast-3":{description:`Asia Pacific (Osaka)`},"ap-south-1":{description:`Asia Pacific (Mumbai)`},"ap-south-2":{description:`Asia Pacific (Hyderabad)`},"ap-southeast-1":{description:`Asia Pacific (Singapore)`},"ap-southeast-2":{description:`Asia Pacific (Sydney)`},"ap-southeast-3":{description:`Asia Pacific (Jakarta)`},"ap-southeast-4":{description:`Asia Pacific (Melbourne)`},"ap-southeast-5":{description:`Asia Pacific (Malaysia)`},"ap-southeast-6":{description:`Asia Pacific (New Zealand)`},"ap-southeast-7":{description:`Asia Pacific (Thailand)`},"aws-global":{description:`aws global region`},"ca-central-1":{description:`Canada (Central)`},"ca-west-1":{description:`Canada West (Calgary)`},"eu-central-1":{description:`Europe (Frankfurt)`},"eu-central-2":{description:`Europe (Zurich)`},"eu-north-1":{description:`Europe (Stockholm)`},"eu-south-1":{description:`Europe (Milan)`},"eu-south-2":{description:`Europe (Spain)`},"eu-west-1":{description:`Europe (Ireland)`},"eu-west-2":{description:`Europe (London)`},"eu-west-3":{description:`Europe (Paris)`},"il-central-1":{description:`Israel (Tel Aviv)`},"me-central-1":{description:`Middle East (UAE)`},"me-south-1":{description:`Middle East (Bahrain)`},"mx-central-1":{description:`Mexico (Central)`},"sa-east-1":{description:`South America (Sao Paulo)`},"us-east-1":{description:`US East (N. Virginia)`},"us-east-2":{description:`US East (Ohio)`},"us-west-1":{description:`US West (N. California)`},"us-west-2":{description:`US West (Oregon)`}}},{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`,dualStackDnsSuffix:`api.amazonwebservices.com.cn`,implicitGlobalRegion:`cn-northwest-1`,name:`aws-cn`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:{"aws-cn-global":{description:`aws-cn global region`},"cn-north-1":{description:`China (Beijing)`},"cn-northwest-1":{description:`China (Ningxia)`}}},{id:`aws-eusc`,outputs:{dnsSuffix:`amazonaws.eu`,dualStackDnsSuffix:`api.amazonwebservices.eu`,implicitGlobalRegion:`eusc-de-east-1`,name:`aws-eusc`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eusc\\-(de)\\-\\w+\\-\\d+$`,regions:{"eusc-de-east-1":{description:`AWS European Sovereign Cloud (Germany)`}}},{id:`aws-iso`,outputs:{dnsSuffix:`c2s.ic.gov`,dualStackDnsSuffix:`api.aws.ic.gov`,implicitGlobalRegion:`us-iso-east-1`,name:`aws-iso`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-iso\\-\\w+\\-\\d+$`,regions:{"aws-iso-global":{description:`aws-iso global region`},"us-iso-east-1":{description:`US ISO East`},"us-iso-west-1":{description:`US ISO WEST`}}},{id:`aws-iso-b`,outputs:{dnsSuffix:`sc2s.sgov.gov`,dualStackDnsSuffix:`api.aws.scloud`,implicitGlobalRegion:`us-isob-east-1`,name:`aws-iso-b`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isob\\-\\w+\\-\\d+$`,regions:{"aws-iso-b-global":{description:`aws-iso-b global region`},"us-isob-east-1":{description:`US ISOB East (Ohio)`},"us-isob-west-1":{description:`US ISOB West`}}},{id:`aws-iso-e`,outputs:{dnsSuffix:`cloud.adc-e.uk`,dualStackDnsSuffix:`api.cloud-aws.adc-e.uk`,implicitGlobalRegion:`eu-isoe-west-1`,name:`aws-iso-e`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eu\\-isoe\\-\\w+\\-\\d+$`,regions:{"aws-iso-e-global":{description:`aws-iso-e global region`},"eu-isoe-west-1":{description:`EU ISOE West`}}},{id:`aws-iso-f`,outputs:{dnsSuffix:`csp.hci.ic.gov`,dualStackDnsSuffix:`api.aws.hci.ic.gov`,implicitGlobalRegion:`us-isof-south-1`,name:`aws-iso-f`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isof\\-\\w+\\-\\d+$`,regions:{"aws-iso-f-global":{description:`aws-iso-f global region`},"us-isof-east-1":{description:`US ISOF EAST`},"us-isof-south-1":{description:`US ISOF SOUTH`}}},{id:`aws-us-gov`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-gov-west-1`,name:`aws-us-gov`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-gov\\-\\w+\\-\\d+$`,regions:{"aws-us-gov-global":{description:`aws-us-gov global region`},"us-gov-east-1":{description:`AWS GovCloud (US-East)`},"us-gov-west-1":{description:`AWS GovCloud (US-West)`}}}],version:`1.1`},$i=``,ea=e=>{let{partitions:t}=Qi;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},ta=()=>$i,na=/\d{12}\.ddb/;async function ra(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&R(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case bi.ADAPTIVE:R(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case bi.STANDARD:R(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(na)&&R(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:R(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:R(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:R(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&R(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))R(e,n,r)}}var ia=`user-agent`,aa=`x-amz-user-agent`,oa=/[^!$%&'*+\-.^_`|~\w]/g,sa=/[^!$%&'*+\-.^_`|~\w#]/g,ca=1024;function la(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=ca){t.length?t+=`,`+r:t+=r;continue}break}return t}var ua=e=>(t,n)=>async r=>{let{request:i}=r;if(!N.isInstance(i))return t(r);let{headers:a}=i,o=n?.userAgent?.map(da)||[],s=(await e.defaultUserAgentProvider()).map(da);await ra(n,e,r);let c=n;s.push(`m/${la(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map(da)||[],u=await e.userAgentAppId();u&&s.push(da([`app`,`${u}`]));let d=ta(),f=(d?[d]:[]).concat([...s,...o,...l]).join(` `),p=[...s.filter(e=>e.startsWith(`aws-sdk-`)),...l].join(` `);return e.runtime===`browser`?a[aa]=f:(p&&(a[aa]=a[`x-amz-user-agent`]?`${a[ia]} ${p}`:p),a[ia]=f),t({...r,request:i})},da=e=>{let t=e[0].split(`/`).map(e=>e.replace(oa,`-`)).join(`/`),n=e[1]?.replace(sa,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},fa={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},pa=e=>({applyToStack:t=>{t.add(ua(e),fa)}}),ma=({serviceId:e,clientVersion:t})=>async n=>{let r=typeof window<`u`?window.navigator:void 0,i=r?.userAgent??``,a=r?.userAgentData?.platform??ha.os(i)??`other`,o=r?.userAgentData?.brands??[],s=o[o.length-1],c=s?.brand??ha.browser(i)??`unknown`,l=s?.version??`unknown`,u=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${a}`,void 0],[`lang/js`],[`md/browser`,`${c}_${l}`]];e&&u.push([`api/${e}`,t]);let d=await n?.userAgentAppId?.();return d&&u.push([`app/${d}`]),u},ha={os(e){if(/iPhone|iPad|iPod/.test(e))return`iOS`;if(/Macintosh|Mac OS X/.test(e))return`macOS`;if(/Windows NT/.test(e))return`Windows`;if(/Android/.test(e))return`Android`;if(/Linux/.test(e))return`Linux`},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return`Microsoft Edge`;if(/Firefox\//.test(e))return`Firefox`;if(/Chrome\//.test(e))return`Chrome`;if(/Safari\//.test(e))return`Safari`}},ga=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!ga(t))return!1;return!0}return!(!Kt(e)||e.length<3||e.length>63||e!==e.toLowerCase()||or(e))},_a=`:`,va=`/`,ya={isVirtualHostableS3Bucket:ga,parseArn:e=>{let t=e.split(_a);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(_a)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(va)).flat()}},partition:ea};Zn.aws=ya;var ba=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))},xa=new Set,Sa=(e,t=Kt)=>{if(!xa.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else xa.add(e)},Ca=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),wa=e=>Ca(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,Ta=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=wa(typeof t==`function`?await t():t);return Sa(e),e},useFipsEndpoint:async()=>Ca(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},Ea=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],Da=({defaultsMode:e}={})=>ba(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(Oa()?`mobile`:`standard`);case`mobile`:case`in-region`:case`cross-region`:case`standard`:case`legacy`:return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${Ea.join(`, `)}, got ${t}`)}}),Oa=()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t==`string`&&t!==`4g`||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints==`number`&&e?.maxTouchPoints>1},ka=e=>({setRegion(t){e.region=t},region(){return e.region}}),Aa=e=>({region:e.region()}),ja=e=>Wt.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Ma=e=>new Date(Date.now()+e),Na=(e,t)=>Math.abs(Ma(t).getTime()-e)>=3e5,Pa=(e,t)=>{let n=Date.parse(e);return Na(n,t)?n-Date.now():t},Fa=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},Ia=async e=>{let t=Fa(`context`,e.context),n=Fa(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await Fa(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},La=class{async sign(e,t,n){if(!N.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await Ia(n),{config:i,signer:a}=r,{signingRegion:o,signingName:s}=r,c=n.context;if(c?.authSchemes?.length??!1){let[e,t]=c.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(o=t?.signingRegion??o,s=t?.signingName??s)}return n._preRequestSystemClockOffset=i.systemClockOffset,await a.sign(e,{signingDate:Ma(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t,r=n.ServerTime??ja(n.$response);if(r){let t=Fa(`config`,e.config),i=e._preRequestSystemClockOffset,a=Pa(r,t.systemClockOffset);(a!==t.systemClockOffset||i!==void 0&&i!==a)&&n.$metadata&&(t.systemClockOffset=a,n.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=ja(e);if(n){let e=Fa(`config`,t.config);e.systemClockOffset=Pa(n,e.systemClockOffset)}}},Ra=class extends La{async sign(e,t,n){if(!N.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:r,signer:i,signingRegion:a,signingRegionSet:o,signingName:s}=await Ia(n),c=(await r.sigv4aSigningRegionSet?.()??o??[a]).join(`,`);return n._preRequestSystemClockOffset=r.systemClockOffset,await i.sign(e,{signingDate:Ma(r.systemClockOffset),signingRegion:c,signingService:s})}},za=e=>(e.sigv4aSigningRegionSet=Gi(e.sigv4aSigningRegionSet),e),Ba=class{format(e){let n=[];for(let r of Object.keys(e)){let i=t(r);n.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[r]))}let r=new Uint8Array(n.reduce((e,t)=>e+t.byteLength,0)),i=0;for(let e of n)r.set(e,i),i+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,e.value,!1),new Uint8Array(n.buffer);case`integer`:let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case`long`:let i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case`binary`:let a=new DataView(new ArrayBuffer(3+e.value.byteLength));a.setUint8(0,6),a.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(a.buffer);return o.set(e.value,3),o;case`string`:let s=t(e.value),c=new DataView(new ArrayBuffer(3+s.byteLength));c.setUint8(0,7),c.setUint16(1,s.byteLength,!1);let l=new Uint8Array(c.buffer);return l.set(s,3),l;case`timestamp`:let u=new Uint8Array(9);return u[0]=8,u.set(Ua.fromNumber(e.value.valueOf()).bytes,1),u;case`uuid`:if(!Ha.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(ae(e.value.replace(/\-/g,``)),1),d}}},Va;(function(e){e[e.boolTrue=0]=`boolTrue`,e[e.boolFalse=1]=`boolFalse`,e[e.byte=2]=`byte`,e[e.short=3]=`short`,e[e.integer=4]=`integer`,e[e.long=5]=`long`,e[e.byteArray=6]=`byteArray`,e[e.string=7]=`string`,e[e.timestamp=8]=`timestamp`,e[e.uuid=9]=`uuid`})(Va||={});var Ha=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Ua=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&Wa(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&Wa(e),parseInt(u(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function Wa(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Ga=`X-Amz-Algorithm`,Ka=`X-Amz-Credential`,qa=`X-Amz-Date`,Ja=`X-Amz-SignedHeaders`,Ya=`X-Amz-Expires`,Xa=`X-Amz-Signature`,Za=`X-Amz-Security-Token`,Qa=`authorization`,$a=qa.toLowerCase(),eo=[Qa,$a,`date`];Xa.toLowerCase();var to=`x-amz-content-sha256`,no=Za.toLowerCase(),ro={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},io=/^proxy-/,ao=/^sec-/,oo=`AWS4-HMAC-SHA256`,so=`AWS4-HMAC-SHA256-PAYLOAD`,co=`UNSIGNED-PAYLOAD`,lo=`aws4_request`,uo=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===`x-amz-signature`)continue;let i=Wr(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${Wr(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${Wr(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},fo=e=>po(e).toISOString().replace(/\.\d{3}Z$/,`Z`),po=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e,mo=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){this.service=r,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=P(n),this.credentialProvider=P(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} +import"./compiler-runtime.js";import{E as e,F as t,I as n,M as r,N as i,O as a,P as o,S as s,T as c,_ as l,b as u,d,g as f,k as p,l as m,n as h,o as g,s as ee,t as te,u as ne,w as re,x as ie,y as ae}from"./tslib.es6.js";function oe(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),ce=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),le=`-`,ue=[],de=`arbitrary..`,fe=e=>{let t=me(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return pe(e);let n=e.split(le);return y(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?v(i,t):t:i||ue}return n[e]||ue}}},y=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=y(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(le):e.slice(t).join(le),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?de+r:void 0})(),me=e=>{let{theme:t,classGroups:n}=e;return he(n,t)},he=(e,t)=>{let n=ce();for(let r in e){let i=e[r];b(i,n,r,t)}return n},b=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){_e(e,t,n);return}if(typeof e==`function`){ve(e,t,n,r);return}ye(e,t,n,r)},_e=(e,t,n)=>{let r=e===``?t:x(t,e);r.classGroupId=n},ve=(e,t,n,r)=>{if(S(e)){b(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(se(n,e))},ye=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(le),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,be=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},xe=`!`,C=`:`,Se=[],Ce=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),we=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return Ce(t,l,c,u)};if(t){let e=t+C,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ce(Se,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Te=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ee=e=>({cache:be(e.cacheSize),parseClassName:we(e),sortModifiers:Te(e),postfixLookupClassGroupIds:De(e),...fe(e)}),De=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Oe),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let ee=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),te=f?ee+xe:ee,ne=te+g;if(s.indexOf(ne)>-1)continue;s.push(ne);let re=i(g,h);for(let e=0;e0?` `+l:l)}return l},Ae=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=Ee(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ke(e,n);return i(e,a),a};return a=o,(...e)=>a(Ae(...e))},Ne=[],w=e=>{let t=t=>t[e]||Ne;return t.isThemeGetter=!0,t},Pe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ie=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Le=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Re=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ze=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Be=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ve=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>Ie.test(e),T=e=>!!e&&!Number.isNaN(Number(e)),E=e=>!!e&&Number.isInteger(Number(e)),Ue=e=>e.endsWith(`%`)&&T(e.slice(0,-1)),D=e=>Le.test(e),We=()=>!0,Ge=e=>Re.test(e)&&!ze.test(e),Ke=()=>!1,qe=e=>Be.test(e),Je=e=>Ve.test(e),Ye=e=>!O(e)&&!k(e),Xe=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ze=e=>A(e,ht,Ke),O=e=>Pe.test(e),Qe=e=>A(e,gt,Ge),$e=e=>A(e,_t,T),et=e=>A(e,yt,We),tt=e=>A(e,vt,Ke),nt=e=>A(e,pt,Ke),rt=e=>A(e,mt,Je),it=e=>A(e,bt,qe),k=e=>Fe.test(e),at=e=>ft(e,gt),ot=e=>ft(e,vt),st=e=>ft(e,pt),ct=e=>ft(e,ht),lt=e=>ft(e,mt),ut=e=>ft(e,bt,!0),dt=e=>ft(e,yt,!0),A=(e,t,n)=>{let r=Pe.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ft=(e,t,n=!1)=>{let r=Fe.exec(e);return r?r[1]?t(r[1]):n:!1},pt=e=>e===`position`||e===`percentage`,mt=e=>e===`image`||e===`url`,ht=e=>e===`length`||e===`size`||e===`bg-size`,gt=e=>e===`length`,_t=e=>e===`number`,vt=e=>e===`family-name`,yt=e=>e===`number`||e===`weight`,bt=e=>e===`shadow`,xt=Me(()=>{let e=w(`color`),t=w(`font`),n=w(`text`),r=w(`font-weight`),i=w(`tracking`),a=w(`leading`),o=w(`breakpoint`),s=w(`container`),c=w(`spacing`),l=w(`radius`),u=w(`shadow`),d=w(`inset-shadow`),f=w(`text-shadow`),p=w(`drop-shadow`),m=w(`blur`),h=w(`perspective`),g=w(`aspect`),ee=w(`ease`),te=w(`animate`),ne=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],re=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ie=()=>[...re(),k,O],ae=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],oe=()=>[`auto`,`contain`,`none`],_=()=>[k,O,c],v=()=>[He,`full`,`auto`,..._()],se=()=>[E,`none`,`subgrid`,k,O],ce=()=>[`auto`,{span:[`full`,E,k,O]},E,k,O],le=()=>[E,`auto`,k,O],ue=()=>[`auto`,`min`,`max`,`fr`,k,O],de=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],fe=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],y=()=>[`auto`,..._()],pe=()=>[He,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,..._()],me=()=>[He,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,..._()],he=()=>[He,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,..._()],b=()=>[e,k,O],ge=()=>[...re(),st,nt,{position:[k,O]}],_e=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ve=()=>[`auto`,`cover`,`contain`,ct,Ze,{size:[k,O]}],ye=()=>[Ue,at,Qe],x=()=>[``,`none`,`full`,l,k,O],S=()=>[``,T,at,Qe],be=()=>[`solid`,`dashed`,`dotted`,`double`],xe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],C=()=>[T,Ue,st,nt],Se=()=>[``,`none`,m,k,O],Ce=()=>[`none`,T,k,O],we=()=>[`none`,T,k,O],Te=()=>[T,k,O],Ee=()=>[He,`full`,..._()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[D],breakpoint:[D],color:[We],container:[D],"drop-shadow":[D],ease:[`in`,`out`,`in-out`],font:[Ye],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[D],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[D],shadow:[D],spacing:[`px`,T],text:[D],"text-shadow":[D],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,He,O,k,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,k,O]}],"container-named":[Xe],columns:[{columns:[T,O,k,s]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ie()}],overflow:[{overflow:ae()}],"overflow-x":[{"overflow-x":ae()}],"overflow-y":[{"overflow-y":ae()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:v()}],"inset-x":[{"inset-x":v()}],"inset-y":[{"inset-y":v()}],start:[{"inset-s":v(),start:v()}],end:[{"inset-e":v(),end:v()}],"inset-bs":[{"inset-bs":v()}],"inset-be":[{"inset-be":v()}],top:[{top:v()}],right:[{right:v()}],bottom:[{bottom:v()}],left:[{left:v()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[E,`auto`,k,O]}],basis:[{basis:[He,`full`,`auto`,s,..._()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[T,He,`auto`,`initial`,`none`,O]}],grow:[{grow:[``,T,k,O]}],shrink:[{shrink:[``,T,k,O]}],order:[{order:[E,`first`,`last`,`none`,k,O]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...de(),`normal`]}],"justify-items":[{"justify-items":[...fe(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...fe()]}],"align-content":[{content:[`normal`,...de()]}],"align-items":[{items:[...fe(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...fe(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...fe(),`baseline`]}],"place-self":[{"place-self":[`auto`,...fe()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:y()}],mx:[{mx:y()}],my:[{my:y()}],ms:[{ms:y()}],me:[{me:y()}],mbs:[{mbs:y()}],mbe:[{mbe:y()}],mt:[{mt:y()}],mr:[{mr:y()}],mb:[{mb:y()}],ml:[{ml:y()}],"space-x":[{"space-x":_()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":_()}],"space-y-reverse":[`space-y-reverse`],size:[{size:pe()}],"inline-size":[{inline:[`auto`,...me()]}],"min-inline-size":[{"min-inline":[`auto`,...me()]}],"max-inline-size":[{"max-inline":[`none`,...me()]}],"block-size":[{block:[`auto`,...he()]}],"min-block-size":[{"min-block":[`auto`,...he()]}],"max-block-size":[{"max-block":[`none`,...he()]}],w:[{w:[s,`screen`,...pe()]}],"min-w":[{"min-w":[s,`screen`,`none`,...pe()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...pe()]}],h:[{h:[`screen`,`lh`,...pe()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...pe()]}],"max-h":[{"max-h":[`screen`,`lh`,...pe()]}],"font-size":[{text:[`base`,n,at,Qe]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,dt,et]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ue,O]}],"font-family":[{font:[ot,tt,t]}],"font-features":[{"font-features":[O]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,k,O]}],"line-clamp":[{"line-clamp":[T,`none`,k,$e]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":[`none`,k,O]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,k,O]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:b()}],"text-color":[{text:b()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...be(),`wavy`]}],"text-decoration-thickness":[{decoration:[T,`from-font`,`auto`,k,Qe]}],"text-decoration-color":[{decoration:b()}],"underline-offset":[{"underline-offset":[T,`auto`,k,O]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:_()}],"tab-size":[{tab:[E,k,O]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,k,O]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,k,O]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:_e()}],"bg-size":[{bg:ve()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},E,k,O],radial:[``,k,O],conic:[E,k,O]},lt,rt]}],"bg-color":[{bg:b()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:b()}],"gradient-via":[{via:b()}],"gradient-to":[{to:b()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:S()}],"border-w-x":[{"border-x":S()}],"border-w-y":[{"border-y":S()}],"border-w-s":[{"border-s":S()}],"border-w-e":[{"border-e":S()}],"border-w-bs":[{"border-bs":S()}],"border-w-be":[{"border-be":S()}],"border-w-t":[{"border-t":S()}],"border-w-r":[{"border-r":S()}],"border-w-b":[{"border-b":S()}],"border-w-l":[{"border-l":S()}],"divide-x":[{"divide-x":S()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":S()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...be(),`hidden`,`none`]}],"divide-style":[{divide:[...be(),`hidden`,`none`]}],"border-color":[{border:b()}],"border-color-x":[{"border-x":b()}],"border-color-y":[{"border-y":b()}],"border-color-s":[{"border-s":b()}],"border-color-e":[{"border-e":b()}],"border-color-bs":[{"border-bs":b()}],"border-color-be":[{"border-be":b()}],"border-color-t":[{"border-t":b()}],"border-color-r":[{"border-r":b()}],"border-color-b":[{"border-b":b()}],"border-color-l":[{"border-l":b()}],"divide-color":[{divide:b()}],"outline-style":[{outline:[...be(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[T,k,O]}],"outline-w":[{outline:[``,T,at,Qe]}],"outline-color":[{outline:b()}],shadow:[{shadow:[``,`none`,u,ut,it]}],"shadow-color":[{shadow:b()}],"inset-shadow":[{"inset-shadow":[`none`,d,ut,it]}],"inset-shadow-color":[{"inset-shadow":b()}],"ring-w":[{ring:S()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:b()}],"ring-offset-w":[{"ring-offset":[T,Qe]}],"ring-offset-color":[{"ring-offset":b()}],"inset-ring-w":[{"inset-ring":S()}],"inset-ring-color":[{"inset-ring":b()}],"text-shadow":[{"text-shadow":[`none`,f,ut,it]}],"text-shadow-color":[{"text-shadow":b()}],opacity:[{opacity:[T,k,O]}],"mix-blend":[{"mix-blend":[...xe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":xe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[T]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":b()}],"mask-image-linear-to-color":[{"mask-linear-to":b()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":b()}],"mask-image-t-to-color":[{"mask-t-to":b()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":b()}],"mask-image-r-to-color":[{"mask-r-to":b()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":b()}],"mask-image-b-to-color":[{"mask-b-to":b()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":b()}],"mask-image-l-to-color":[{"mask-l-to":b()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":b()}],"mask-image-x-to-color":[{"mask-x-to":b()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":b()}],"mask-image-y-to-color":[{"mask-y-to":b()}],"mask-image-radial":[{"mask-radial":[k,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":b()}],"mask-image-radial-to-color":[{"mask-radial-to":b()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":re()}],"mask-image-conic-pos":[{"mask-conic":[T]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":b()}],"mask-image-conic-to-color":[{"mask-conic-to":b()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:_e()}],"mask-size":[{mask:ve()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,k,O]}],filter:[{filter:[``,`none`,k,O]}],blur:[{blur:Se()}],brightness:[{brightness:[T,k,O]}],contrast:[{contrast:[T,k,O]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ut,it]}],"drop-shadow-color":[{"drop-shadow":b()}],grayscale:[{grayscale:[``,T,k,O]}],"hue-rotate":[{"hue-rotate":[T,k,O]}],invert:[{invert:[``,T,k,O]}],saturate:[{saturate:[T,k,O]}],sepia:[{sepia:[``,T,k,O]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,k,O]}],"backdrop-blur":[{"backdrop-blur":Se()}],"backdrop-brightness":[{"backdrop-brightness":[T,k,O]}],"backdrop-contrast":[{"backdrop-contrast":[T,k,O]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,T,k,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[T,k,O]}],"backdrop-invert":[{"backdrop-invert":[``,T,k,O]}],"backdrop-opacity":[{"backdrop-opacity":[T,k,O]}],"backdrop-saturate":[{"backdrop-saturate":[T,k,O]}],"backdrop-sepia":[{"backdrop-sepia":[``,T,k,O]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,k,O]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[T,`initial`,k,O]}],ease:[{ease:[`linear`,`initial`,ee,k,O]}],delay:[{delay:[T,k,O]}],animate:[{animate:[`none`,te,k,O]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,k,O]}],"perspective-origin":[{"perspective-origin":ie()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:we()}],"scale-x":[{"scale-x":we()}],"scale-y":[{"scale-y":we()}],"scale-z":[{"scale-z":we()}],"scale-3d":[`scale-3d`],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[k,O,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ie()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":[`translate-none`],zoom:[{zoom:[E,k,O]}],accent:[{accent:b()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:b()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,k,O]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":b()}],"scrollbar-track-color":[{"scrollbar-track":b()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,k,O]}],fill:[{fill:[`none`,...b()]}],"stroke-w":[{stroke:[T,at,Qe,$e]}],stroke:[{stroke:[`none`,...b()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function St(...e){return xt(_(e))}var Ct=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`long`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function wt(e){return e?Ct.format(new Date(e)):`Unknown`}function Tt(e){return`${Math.round(e/1024)} GiB`}var Et=[`B`,`KB`,`MB`,`GB`,`TB`];function Dt(e){if(e===0)return`0 B`;let t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(2)} ${Et[t]}`}function Ot(e){return e?.find(e=>e.Key===`Name`)?.Value}var kt=/\/$/;function At(e){return e.replace(kt,``)}function jt(e){return e&&(e.endsWith(`/`)?e:`${e}/`)}function Mt(e,t){return e.startsWith(t)?e:`${t}${e}`}function Nt(e,t){return e.startsWith(t)?e.slice(t.length):e}function Pt(e,t,n){return e.$source||={},e.$source[t]=n,e}var Ft=e=>e?.body instanceof ReadableStream,It=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},j=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,Lt=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>Rt[t.step]-Rt[e.step]||zt[t.priority||`normal`]-zt[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=It(e.name,e.aliases);if(t.includes(n)){i=!0;for(let e of t)r.delete(e);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},o=n=>{let i=!1,a=e=>{if(e.middleware===n){i=!0;for(let t of It(e.name,e.aliases))r.delete(t);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},s=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(u.identifyOnResolve()),n),c=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t},l=(n=!1)=>{let r=[],a=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of It(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of It(t.name,t.aliases))o[e]=t;a.push(t)}),a.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(t===void 0){if(n)return;throw Error(`${e.toMiddleware} is not found when adding ${j(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),i(r).map(c).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:i,override:a,aliases:o}=n,s={step:`initialize`,priority:`normal`,middleware:t,...n},c=It(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${j(i,o)}'`);for(let t of c){let n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(n===-1)continue;let r=e[n];if(r.step!==s.step||s.priority!==r.priority)throw Error(`"${j(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${j(i,o)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(n,1)}}for(let e of c)r.add(e)}e.push(s)},addRelativeTo:(e,n)=>{let{name:i,override:a,aliases:o}=n,s={middleware:e,...n},c=It(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${j(i,o)}'`);for(let e of c){let n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(n===-1)continue;let r=t[n];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw Error(`"${j(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${j(i,o)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(n,1)}}for(let e of c)r.add(e)}t.push(s)},clone:()=>s(Lt()),use:e=>{e.applyToStack(u)},remove:e=>typeof e==`string`?a(e):o(e),removeByTag:n=>{let i=!1,a=e=>{let{tags:t,name:a,aliases:o}=e;if(t&&t.includes(n)){let e=It(a,o);for(let t of e)r.delete(t);return i=!0,!1}return!0};return e=e.filter(a),t=t.filter(a),i},concat:e=>{let t=s(Lt());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>l(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return j(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(n=e),n},resolve:(e,t)=>{for(let n of l().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(u.identify()),e}};return u},Rt={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},zt={high:3,normal:2,low:1},Bt;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(Bt||={});var Vt;(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(Vt||={});var Ht=`__smithy_context`,Ut=e=>e.__smithy_context||={},M=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=Wt(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function Wt(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var Gt=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}},Kt=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),qt=(e,t=!1)=>{if(!t)return Kt.test(e);let n=e.split(`.`);for(let e of n)if(!qt(e))return!1;return!0},N=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t};function Jt(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var Yt=e=>{if(typeof e==`string`)return Yt(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=Jt(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}},Xt=e=>{if(typeof e==`object`){if(`url`in e){let t=Yt(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return Yt(e)},Zt=e=>()=>Promise.reject(e),Qt=class{config;middlewareStack=Lt();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},$t=e=>typeof e==`function`?e():e,en=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),tn=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=Ut(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(en(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` + Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(Gt.isInstance(i)){let{headers:t={},statusCode:n}=i,r=Object.entries(t);e.$metadata={httpStatusCode:n,requestId:nn(/^x-[\w-]+-request-?id$/,r),extendedRequestId:nn(/^x-[\w-]+-id-2$/,r),cfId:nn(/^x-[\w-]+-cf-id$/,r)}}}catch{}}throw e}},nn=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],rn=e=>(t,n)=>async r=>{let{operationSchema:i}=Ut(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>Xt(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(en(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},an={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},on={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function sn(e){return{applyToStack:t=>{t.add(rn(e),on),t.add(tn(e),an),e.protocol.setSerdeContext(e)}}}var cn=[];function ln(e){if(typeof e==`object`)return e;if(e|=0,cn[e])return cn[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return cn[e]=t}var un={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},dn=[],fn={},P=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;mn(i);)r.push(i[1]),i=i[0],a=$t(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,ln(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=$t(a),hn(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=typeof t==`function`||typeof t==`object`&&!!t;if(typeof t==`number`){if(dn[t])return dn[t]}else if(typeof t==`string`){if(fn[t])return fn[t]}else if(n&&t[un.ns])return t[un.ns];let r=$t(t);if(r instanceof e)return r;if(mn(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),ln(i)),n;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new e(r);return n?t[un.ns]=i:typeof r==`string`?fn[r]=i:typeof r==`number`?dn[r]=i:i}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()===`unit`}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return ln(this.memberTraits)}getOwnTraits(){return ln(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return pn([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return pn([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return pn(mn(r)?r:[r,0],e)}if(this.isDocumentSchema())return pn([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[un.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,hn=e=>Array.isArray(e)&&e.length>=5,gn=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes(`#`)){let t=`#`+e,n=[];for(let[e,r]of this.schemas.entries())e.endsWith(t)&&n.push(r);if(n.length===1)return n[0]}throw Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}},_n=`***SensitiveInformation***`;function vn(e,t){if(t==null)return t;let n=P.of(e);if(n.getMergedTraits().sensitive)return _n;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return _n}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return _n}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=vn(i,e[t]));return r}return t}var yn=class{middlewareStack=Lt();schema;static classBuilder(){return new bn}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let i of r.bind(this)(u,e,t,n))this.middlewareStack.use(i);let d=e.concat(this.middlewareStack),{logger:f}=t,p={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,[Ht]:{commandInstance:this,...c},...l},{requestHandler:m}=t,h=n??{};return c.eventStream&&(h={isEventStream:!0,...h}),d.resolve(e=>m.handle(e.request,h),p)}},bn=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends yn{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?vn.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?vn.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}},xn=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}},Sn=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e),Cn=e=>{switch(e){case`standard`:return{retryMode:`standard`,connectionTimeout:3100};case`in-region`:return{retryMode:`standard`,connectionTimeout:1100};case`cross-region`:return{retryMode:`standard`,connectionTimeout:3100};case`mobile`:return{retryMode:`standard`,connectionTimeout:3e4};default:return{}}},wn=Object.values(Vt),Tn=e=>{let t=[];for(let n in Vt){let r=Vt[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();wn.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},En=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();wn.includes(n)&&(t[n]=e.checksumConstructor())}),t},Dn=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),On=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},kn=e=>Object.assign(Tn(e),Dn(e)),An=e=>Object.assign(En(e),On(e)),jn=e=>{let t=`#text`;for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]==`object`&&e[n]!==null&&(e[n]=jn(e[n]));return e},Mn=class{trace(){}debug(){}info(){}warn(){}error(){}},Nn=async e=>void 0,Pn=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),zn(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!Rn(t)||t.indexOf(`.`)!==-1&&!String(e.Endpoint).startsWith(`http:`)||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},Fn=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,In=/(\d+\.){3}\d+/,Ln=/\.\./,Rn=e=>Fn.test(e)&&!In.test(e)&&!Ln.test(e),zn=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},Bn=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i};function Vn(e){return async(t,n,r,i)=>{if(!r.isCustomEndpoint){let t;t=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await e(r.serviceId),t&&(r.endpoint=()=>Promise.resolve(Xt(t)),r.isCustomEndpoint=!0)}let a=await Hn(t,n,r);if(typeof r.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let o=r.endpointProvider(a,i);if(r.isCustomEndpoint&&r.endpoint){let e=await r.endpoint();if(e?.headers){o.headers??={};for(let[t,n]of Object.entries(e.headers))o.headers[t]=Array.isArray(n)?n:[n]}}return o}}var Hn=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await Bn(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await Pn(r),r};function Un(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}function Wn(e){let t=Vn(e);return({config:e,instructions:n})=>(r,i)=>async a=>{e.isCustomEndpoint&&Un(i,`ENDPOINT_OVERRIDE`,`N`);let o=await t(a.input,{getEndpointParameterInstructions(){return n}},{...e},i);i.endpointV2=o,i.authSchemes=o.properties?.authSchemes;let s=i.authSchemes?.[0];if(s){i.signing_region=s.signingRegion,i.signing_service=s.signingName;let e=Ut(i)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...a})}}var Gn={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:{name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}.name};function Kn(e){let t=Wn(e);return(e,n)=>({applyToStack:r=>{r.addRelativeTo(t({config:e,instructions:n}),Gn)}})}function qn(e){return t=>{let n=t.tls??!0,{endpoint:r,useDualstackEndpoint:i,useFipsEndpoint:a}=t,o=Object.assign(t,{endpoint:r==null?void 0:async()=>Xt(await N(r)()),tls:n,isCustomEndpoint:!!r,useDualstackEndpoint:N(i??!1),useFipsEndpoint:N(a??!1)}),s;return o.serviceConfiguredEndpoint=async()=>(t.serviceId&&!s&&(s=e(t.serviceId)),s),o}}var Jn=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}},Yn=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},F=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},Xn=`endpoints`;function Zn(e){return typeof e!=`object`||!e?e:`ref`in e?`$${Zn(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(Zn).join(`, `)})`:JSON.stringify(e,null,2)}var Qn={},$n=(e,t)=>e===t;function er(...e){for(let t of e)if(t!=null)return t}var tr=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new F(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new F(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},nr=(e,t)=>tr(t).reduce((n,r)=>{if(typeof n!=`object`)throw new F(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e),rr=e=>e!=null;function ir(e,t,n){return e?t:n}var ar=e=>!e,or=RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`),sr=e=>or.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),cr={[Bt.HTTP]:80,[Bt.HTTPS]:443},lr=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:a,protocol:o,search:s}=t;if(s)return null;let c=o.slice(0,-1);if(!Object.values(Bt).includes(c))return null;let l=sr(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${cr[c]}`)||typeof e==`string`&&e.includes(`${r}:${cr[c]}`)?`:${cr[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}};function ur(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}var dr={booleanEquals:$n,coalesce:er,getAttr:nr,isSet:rr,isValidHostLabel:qt,ite:ir,not:ar,parseURL:lr,split:ur,stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},fr=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;at.referenceRecord[e]??t.endpointParams[e],mr=(e,t,n)=>{if(typeof e==`string`)return fr(e,n);if(e.fn)return gr.callFunction(e,n);if(e.ref)return pr(e,n);throw new F(`'${t}': ${String(e)} is not a string, function or reference.`)},hr=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new F(`'${n}' is already defined in Reference Record.`);let r=hr(e,t);t.logger?.debug?.(`${Xn} evaluateCondition: ${Zn(e)} = ${Zn(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}},vr=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=mr(e,`Header value entry`,t);if(typeof r!=`string`)throw new F(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),yr=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=xr.getEndpointProperty(r,t),e),{}),br=(e,t)=>{if(Array.isArray(e))return e.map(e=>br(e,t));switch(typeof e){case`string`:return fr(e,t);case`object`:if(e===null)throw new F(`Unexpected endpoint property: ${e}`);return xr.getEndpointProperties(e,t);case`boolean`:return e;default:throw new F(`Unexpected endpoint property type: ${typeof e}`)}},xr={getEndpointProperty:br,getEndpointProperties:yr},Sr=(e,t)=>{let n=mr(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new F(`Endpoint URL must be a string, got ${typeof n}`)},Cr=1e8,wr=(e,t)=>{let{nodes:n,root:r,results:i,conditions:a}=e,o=r,s={},c={referenceRecord:s,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===f.result?r:i}if(o>=Cr){let e=i[o-Cr];if(e[0]===-1){let[,t]=e;throw new F(mr(t,`Error`,c))}let[t,n,r]=e;return{url:Sr(t,c),properties:yr(n,c),headers:vr(r??{},c)}}throw new F(`No matching endpoint.`)},Tr=Vn(Nn),Er=qn(Nn);Wn(Nn);var Dr=Kn(Nn),Or=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return m.mutate(e);if(!e)return m.mutate(new Uint8Array);let n=t.streamCollector(e);return m.mutate(await n)};function kr(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}var Ar=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},jr=`modulepreload`,Mr=function(e){return`/`+e},Nr={},Pr=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Mr(t,n),t in Nr)return;Nr[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:jr,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Fr=class extends Ar{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=gn.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return M}getResponseType(){return Gt}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(let n in t.headers)e.headers[n]=t.headers[n].join(`, `);return e}else{if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let n in t.headers)e.headers[n]=t.headers[n];return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=P.of(t.input),i=ln(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){for(let[e,i]of r.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await Pr(async()=>{let{EventStreamSerde:e}=await import(`./index.browser.js`).then(e=>e.t);return{EventStreamSerde:e}},__vite__mapDeps([0,1,2]));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}},Ir=class extends Fr{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=P.of(e?.input),c=s.getSchema(),l,u=t&&typeof t==`object`?t:{},d=new M({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:i,headers:a,body:void 0});if(o&&(this.updateServiceEndpoint(d,o),this.setHostPrefix(d,e,u)),u){let e=s.getEventStreamMember();if(e){if(u[e]){let t={};for(let[n,i]of s.structIterator())n!==e&&u[n]&&(r.write(i,u[n]),t[n]=r.flush());l=await this.serializeEventStream({eventStream:u[e],requestSchema:s,initialRequest:t})}}else r.write(c,u),l=r.flush()}return d.headers=Object.assign(d.headers,a),d.query=i,d.body=l,d.method=`POST`,d}async deserializeResponse(e,t,n){let r=this.deserializer,i=P.of(e.output),a={};if(n.statusCode>=300){let i=await Or(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - RPC Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await Or(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}};function Lr(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var Rr=class extends Ar{settings;constructor(e){super(),this.settings=e}read(t,r){let i=P.of(t);if(i.isListSchema())return s(r).map(e=>this.read(i.getValueSchema(),e));if(i.isBlobSchema())return(this.serdeContext?.base64Decoder??n)(r);if(i.isTimestampSchema())switch(Lr(i,this.settings)){case 5:return c(r);case 6:return e(r);case 7:return re(r);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,r),new Date(r)}if(i.isStringSchema()){let e=i.getMergedTraits().mediaType,t=r;if(e)return i.getMergedTraits().httpHeader&&(t=this.base64ToUtf8(t)),(e===`application/json`||e.endsWith(`+json`))&&(t=a.from(t)),t}return i.isNumericSchema()?Number(r):i.isBigIntegerSchema()?BigInt(r):i.isBigDecimalSchema()?new ie(r,`bigDecimal`):i.isBooleanSchema()?String(r).toLowerCase()===`true`:r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??i)((this.serdeContext?.base64Decoder??n)(e))}},zr=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),Br=e=>({httpHandler:e.httpHandler()}),Vr=`content-length`;function Hr(e){return t=>async n=>{let r=n.request;if(M.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(Vr)===-1)try{let n=e(t);r.headers={...r.headers,[Vr]:String(n)}}catch{}}return t({...n,request:r})}}var Ur={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},Wr=e=>({applyToStack:t=>{t.add(Hr(e.bodyLengthChecker),Ur)}}),Gr=e=>encodeURIComponent(e).replace(/[!'()*]/g,Kr),Kr=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function qr(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Gr(n),Array.isArray(r))for(let e=0,i=r.length;ee?.$retryable!==void 0,ei=e=>e.$metadata?.clockSkewCorrected,ti=e=>{let t=new Set([`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The Internet connection appears to be offline`,`Load failed`,`Network request failed`]);return e&&e instanceof TypeError?t.has(e.message):!1},ni=e=>e.$metadata?.httpStatusCode===429||Jr.includes(e.name)||e.$retryable?.throttling==1,ri=(e,t=0)=>$r(e)||ei(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||Yr.includes(e.name)||Zr.includes(e?.code||``)||Qr.includes(e?.code||``)||Xr.includes(e.$metadata?.httpStatusCode||0)||ti(e)||ai(e)||e.cause!==void 0&&t<=10&&ri(e.cause,t+1),ii=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!ri(e)}return!1};function ai(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}var oi=20*1e3,si=`amz-sdk-invocation-id`,ci=`amz-sdk-request`;function li(e,t){if(Gt.isInstance(e))for(let n of Object.keys(e.headers)){let i=n.toLowerCase();if(i===`retry-after`){let i=e.headers[n],a=NaN;if(i.endsWith(`GMT`))try{a=(r(i).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else i.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?a=Number(i.match(/ GMT, ([\d.]+)$/)?.[1]):i.match(/^((\d+)|(\d+\.\d+))$/)?a=Number(i):Date.parse(i)>=Date.now()&&(a=(Date.parse(i)-Date.now())/1e3);return isNaN(a)?void 0:new Date(Date.now()+a*1e3)}else if(i===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}var ui=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`);function di(e){return t=>(n,r)=>async i=>{let a=await t.retryStrategy(),o=await t.maxAttempts();if(pi(a)){a=a;let s=await a.acquireInitialRetryToken((r.partition_id??``)+(r.__retryLongPoll?`:longpoll`:``)),c=Error(),l=0,u=0,{request:f}=i,p=M.isInstance(f);for(p&&(f.headers[si]=d());;)try{p&&(f.headers[ci]=`attempt=${l+1}; max=${o}`);let{response:e,output:t}=await n(i);return a.recordSuccess(s),t.$metadata.attempts=l+1,t.$metadata.totalRetryDelay=u,{response:e,output:t}}catch(n){let i=mi(n,t.logger);if(c=ui(n),p&&e(f))throw(r.logger instanceof Mn?console:r.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),c;try{s=await a.refreshRetryTokenForRetry(s,i)}catch{throw c.$metadata||={},c.$metadata.attempts=l+1,c.$metadata.totalRetryDelay=u,c}l=s.getRetryCount();let o=s.getRetryDelay();u+=(s?.$retryLog?.acquisitionDelay??0)+o,o>0&&await fi(o)}}else return a=a,a?.mode&&(r.userAgent=[...r.userAgent||[],[`cfg/retry-mode`,a.mode]]),a.retry(n,i)}}var fi=e=>new Promise(t=>setTimeout(t,e)),pi=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,mi=(e,t)=>{let n={error:e,errorType:hi(e)},r=li(e.$response,t);return r&&(n.retryAfterHint=r),n},hi=e=>ni(e)?`THROTTLING`:ri(e)?`TRANSIENT`:ii(e)?`SERVER_ERROR`:`CLIENT_ERROR`,gi={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0};function _i(e){let t=di(e);return e=>({applyToStack:n=>{n.add(t(e),gi)}})}var vi=class e{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();let n=e;if(n?.errorType===`THROTTLING`||ni(n?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n)),this.refillTokenBucket()}this.availableTokens-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}},I=class e{static v2026=typeof process<`u`&&{}.SMITHY_NEW_RETRIES_2026===`true`;static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?`THROTTLING`:`TRANSIENT`}},yi=class{x=I.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,oi);return Math.floor(t)}setDelayBase(e){this.x=e}},bi=class{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(oi,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}},xi;(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})(xi||={});var Si=xi.STANDARD,Ci={incompatible:1,attempts:2,capacity:3},wi=class{mode=xi.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e==`number`?this.maxAttemptsProvider=async()=>e:typeof e==`function`?this.maxAttemptsProvider=e:e&&typeof e==`object`&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=I.delay(),this.retryBackoffStrategy??=new yi}async acquireInitialRetryToken(e){return new bi(I.delay(),0,void 0,I.v2026&&e.includes(`:longpoll`))}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=r===0,a=e.isLongPoll?.();if(i||a){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?I.throttlingDelay():this.baseDelay);let o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=o;if(t.retryAfterHint instanceof Date&&(s=Math.max(o,Math.min(t.retryAfterHint.getTime()-Date.now(),o+5e3))),i){let t=this.getCapacityCost(n);this.capacity-=t;let r=new bi(0,e.getRetryCount()+1,t,e.isLongPoll?.()??!1);return await new Promise(e=>setTimeout(e,s)),r.$retryLog.acquisitionDelay=s,r}else{let e=I.v2026&&r===Ci.capacity&&a?s:0;e>0&&await new Promise(t=>setTimeout(t,e))}}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}retryCode(e,t,n){let r=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:Ci.incompatible,a=r=this.getCapacityCost(t.errorType)?0:Ci.capacity;return i||a||o}getCapacityCost(e){return e===I.modifiedCostType()?I.throttlingCost():I.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},Ti=class{mode=xi.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new vi,this.standardRetryStrategy=t?new wi({maxAttempts:typeof e==`number`?e:3,...t}):new wi(e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}},Ei=(e,t)=>{let{retryStrategy:n,retryMode:r}=e,{defaultMaxAttempts:i=3,defaultBaseDelay:a=I.delay()}=t??{},o=N(e.maxAttempts??i),s=n?Promise.resolve(n):void 0,c=async()=>{let e=await o();return await N(r)()===xi.ADAPTIVE?new Ti(o,{maxAttempts:e,baseDelay:a}):new wi({maxAttempts:e,baseDelay:a})};return Object.assign(e,{maxAttempts:o,retryStrategy:()=>s??=c()})},Di=_i(Ft);I.v2026||=typeof process==`object`&&{}.AWS_NEW_RETRIES_2026===`true`;function L(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}function Oi(e){return e}var ki=e=>t=>async n=>{if(!M.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=``}=e.requestHandler.metadata||{};if(i.indexOf(`h2`)>=0&&!r.headers[`:authority`])delete r.headers.host,r.headers[`:authority`]=r.hostname+(r.port?`:`+r.port:``);else if(!r.headers.host){let e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},Ai={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},ji=e=>({applyToStack:t=>{t.add(ki(e),Ai)}}),Mi=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},Ni={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},Pi=e=>({applyToStack:e=>{e.add(Mi(),Ni)}}),Fi=e=>({applyToStack:e=>{}}),Ii=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n};function Li(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var Ri=(e,t)=>(n,r)=>async i=>{let a=Ii(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=Li(e.httpAuthSchemes),s=Ut(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` +`));return n(i)},zi={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},Bi=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(Ri(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),zi)}}),Vi=e=>e=>{throw e},Hi=(e,t)=>{},Ui=e=>(e,t)=>async n=>{if(!M.isInstance(n.request))return e(n);let r=Ut(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:i={}},identity:a,signer:o}=r,s=await e({...n,request:await o.sign(n.request,a,i)}).catch((o.errorHandler||Vi)(i));return(o.successHandler||Hi)(s.response,i),s},Wi={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},Gi=e=>({applyToStack:t=>{t.addRelativeTo(Ui(e),Wi)}}),Ki=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},qi=class{authSchemes=new Map;constructor(e){for(let t in e){let n=e[t];n!==void 0&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}},Ji=(e=>function(t){return Yi(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,Xi=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))};function Zi(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function Qi(e){let t=Ki(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!Zi(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var $i={partitions:[{id:`aws`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-east-1`,name:`aws`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$`,regions:{"af-south-1":{description:`Africa (Cape Town)`},"ap-east-1":{description:`Asia Pacific (Hong Kong)`},"ap-east-2":{description:`Asia Pacific (Taipei)`},"ap-northeast-1":{description:`Asia Pacific (Tokyo)`},"ap-northeast-2":{description:`Asia Pacific (Seoul)`},"ap-northeast-3":{description:`Asia Pacific (Osaka)`},"ap-south-1":{description:`Asia Pacific (Mumbai)`},"ap-south-2":{description:`Asia Pacific (Hyderabad)`},"ap-southeast-1":{description:`Asia Pacific (Singapore)`},"ap-southeast-2":{description:`Asia Pacific (Sydney)`},"ap-southeast-3":{description:`Asia Pacific (Jakarta)`},"ap-southeast-4":{description:`Asia Pacific (Melbourne)`},"ap-southeast-5":{description:`Asia Pacific (Malaysia)`},"ap-southeast-6":{description:`Asia Pacific (New Zealand)`},"ap-southeast-7":{description:`Asia Pacific (Thailand)`},"aws-global":{description:`aws global region`},"ca-central-1":{description:`Canada (Central)`},"ca-west-1":{description:`Canada West (Calgary)`},"eu-central-1":{description:`Europe (Frankfurt)`},"eu-central-2":{description:`Europe (Zurich)`},"eu-north-1":{description:`Europe (Stockholm)`},"eu-south-1":{description:`Europe (Milan)`},"eu-south-2":{description:`Europe (Spain)`},"eu-west-1":{description:`Europe (Ireland)`},"eu-west-2":{description:`Europe (London)`},"eu-west-3":{description:`Europe (Paris)`},"il-central-1":{description:`Israel (Tel Aviv)`},"me-central-1":{description:`Middle East (UAE)`},"me-south-1":{description:`Middle East (Bahrain)`},"mx-central-1":{description:`Mexico (Central)`},"sa-east-1":{description:`South America (Sao Paulo)`},"us-east-1":{description:`US East (N. Virginia)`},"us-east-2":{description:`US East (Ohio)`},"us-west-1":{description:`US West (N. California)`},"us-west-2":{description:`US West (Oregon)`}}},{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`,dualStackDnsSuffix:`api.amazonwebservices.com.cn`,implicitGlobalRegion:`cn-northwest-1`,name:`aws-cn`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:{"aws-cn-global":{description:`aws-cn global region`},"cn-north-1":{description:`China (Beijing)`},"cn-northwest-1":{description:`China (Ningxia)`}}},{id:`aws-eusc`,outputs:{dnsSuffix:`amazonaws.eu`,dualStackDnsSuffix:`api.amazonwebservices.eu`,implicitGlobalRegion:`eusc-de-east-1`,name:`aws-eusc`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eusc\\-(de)\\-\\w+\\-\\d+$`,regions:{"eusc-de-east-1":{description:`AWS European Sovereign Cloud (Germany)`}}},{id:`aws-iso`,outputs:{dnsSuffix:`c2s.ic.gov`,dualStackDnsSuffix:`api.aws.ic.gov`,implicitGlobalRegion:`us-iso-east-1`,name:`aws-iso`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-iso\\-\\w+\\-\\d+$`,regions:{"aws-iso-global":{description:`aws-iso global region`},"us-iso-east-1":{description:`US ISO East`},"us-iso-west-1":{description:`US ISO WEST`}}},{id:`aws-iso-b`,outputs:{dnsSuffix:`sc2s.sgov.gov`,dualStackDnsSuffix:`api.aws.scloud`,implicitGlobalRegion:`us-isob-east-1`,name:`aws-iso-b`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isob\\-\\w+\\-\\d+$`,regions:{"aws-iso-b-global":{description:`aws-iso-b global region`},"us-isob-east-1":{description:`US ISOB East (Ohio)`},"us-isob-west-1":{description:`US ISOB West`}}},{id:`aws-iso-e`,outputs:{dnsSuffix:`cloud.adc-e.uk`,dualStackDnsSuffix:`api.cloud-aws.adc-e.uk`,implicitGlobalRegion:`eu-isoe-west-1`,name:`aws-iso-e`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eu\\-isoe\\-\\w+\\-\\d+$`,regions:{"aws-iso-e-global":{description:`aws-iso-e global region`},"eu-isoe-west-1":{description:`EU ISOE West`}}},{id:`aws-iso-f`,outputs:{dnsSuffix:`csp.hci.ic.gov`,dualStackDnsSuffix:`api.aws.hci.ic.gov`,implicitGlobalRegion:`us-isof-south-1`,name:`aws-iso-f`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isof\\-\\w+\\-\\d+$`,regions:{"aws-iso-f-global":{description:`aws-iso-f global region`},"us-isof-east-1":{description:`US ISOF EAST`},"us-isof-south-1":{description:`US ISOF SOUTH`}}},{id:`aws-us-gov`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-gov-west-1`,name:`aws-us-gov`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-gov\\-\\w+\\-\\d+$`,regions:{"aws-us-gov-global":{description:`aws-us-gov global region`},"us-gov-east-1":{description:`AWS GovCloud (US-East)`},"us-gov-west-1":{description:`AWS GovCloud (US-West)`}}}],version:`1.1`},ea=``,ta=e=>{let{partitions:t}=$i;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},na=()=>ea,ra=/\d{12}\.ddb/;async function ia(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&L(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case xi.ADAPTIVE:L(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case xi.STANDARD:L(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(ra)&&L(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:L(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:L(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:L(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&L(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))L(e,n,r)}}var aa=`user-agent`,oa=`x-amz-user-agent`,sa=/[^!$%&'*+\-.^_`|~\w]/g,ca=/[^!$%&'*+\-.^_`|~\w#]/g,la=1024;function ua(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=la){t.length?t+=`,`+r:t+=r;continue}break}return t}var da=e=>(t,n)=>async r=>{let{request:i}=r;if(!M.isInstance(i))return t(r);let{headers:a}=i,o=n?.userAgent?.map(fa)||[],s=(await e.defaultUserAgentProvider()).map(fa);await ia(n,e,r);let c=n;s.push(`m/${ua(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map(fa)||[],u=await e.userAgentAppId();u&&s.push(fa([`app`,`${u}`]));let d=na(),f=(d?[d]:[]).concat([...s,...o,...l]).join(` `),p=[...s.filter(e=>e.startsWith(`aws-sdk-`)),...l].join(` `);return e.runtime===`browser`?a[oa]=f:(p&&(a[oa]=a[`x-amz-user-agent`]?`${a[aa]} ${p}`:p),a[aa]=f),t({...r,request:i})},fa=e=>{let t=e[0].split(`/`).map(e=>e.replace(sa,`-`)).join(`/`),n=e[1]?.replace(ca,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},pa={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},ma=e=>({applyToStack:t=>{t.add(da(e),pa)}}),ha=({serviceId:e,clientVersion:t})=>async n=>{let r=typeof window<`u`?window.navigator:void 0,i=r?.userAgent??``,a=r?.userAgentData?.platform??ga.os(i)??`other`,o=r?.userAgentData?.brands??[],s=o[o.length-1],c=s?.brand??ga.browser(i)??`unknown`,l=s?.version??`unknown`,u=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${a}`,void 0],[`lang/js`],[`md/browser`,`${c}_${l}`]];e&&u.push([`api/${e}`,t]);let d=await n?.userAgentAppId?.();return d&&u.push([`app/${d}`]),u},ga={os(e){if(/iPhone|iPad|iPod/.test(e))return`iOS`;if(/Macintosh|Mac OS X/.test(e))return`macOS`;if(/Windows NT/.test(e))return`Windows`;if(/Android/.test(e))return`Android`;if(/Linux/.test(e))return`Linux`},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return`Microsoft Edge`;if(/Firefox\//.test(e))return`Firefox`;if(/Chrome\//.test(e))return`Chrome`;if(/Safari\//.test(e))return`Safari`}},_a=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!_a(t))return!1;return!0}return!(!qt(e)||e.length<3||e.length>63||e!==e.toLowerCase()||sr(e))},va=`:`,ya=`/`,ba={isVirtualHostableS3Bucket:_a,parseArn:e=>{let t=e.split(va);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(va)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(ya)).flat()}},partition:ta};Qn.aws=ba;var xa=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))},Sa=new Set,Ca=(e,t=qt)=>{if(!Sa.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else Sa.add(e)},wa=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),Ta=e=>wa(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,Ea=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=Ta(typeof t==`function`?await t():t);return Ca(e),e},useFipsEndpoint:async()=>wa(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},Da=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],Oa=({defaultsMode:e}={})=>xa(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(ka()?`mobile`:`standard`);case`mobile`:case`in-region`:case`cross-region`:case`standard`:case`legacy`:return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${Da.join(`, `)}, got ${t}`)}}),ka=()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t==`string`&&t!==`4g`||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints==`number`&&e?.maxTouchPoints>1},Aa=e=>({setRegion(t){e.region=t},region(){return e.region}}),ja=e=>({region:e.region()}),Ma=e=>Gt.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Na=e=>new Date(Date.now()+e),Pa=(e,t)=>Math.abs(Na(t).getTime()-e)>=3e5,Fa=(e,t)=>{let n=Date.parse(e);return Pa(n,t)?n-Date.now():t},Ia=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},La=async e=>{let t=Ia(`context`,e.context),n=Ia(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await Ia(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},Ra=class{async sign(e,t,n){if(!M.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await La(n),{config:i,signer:a}=r,{signingRegion:o,signingName:s}=r,c=n.context;if(c?.authSchemes?.length??!1){let[e,t]=c.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(o=t?.signingRegion??o,s=t?.signingName??s)}return n._preRequestSystemClockOffset=i.systemClockOffset,await a.sign(e,{signingDate:Na(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t,r=n.ServerTime??Ma(n.$response);if(r){let t=Ia(`config`,e.config),i=e._preRequestSystemClockOffset,a=Fa(r,t.systemClockOffset);(a!==t.systemClockOffset||i!==void 0&&i!==a)&&n.$metadata&&(t.systemClockOffset=a,n.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=Ma(e);if(n){let e=Ia(`config`,t.config);e.systemClockOffset=Fa(n,e.systemClockOffset)}}},za=class extends Ra{async sign(e,t,n){if(!M.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:r,signer:i,signingRegion:a,signingRegionSet:o,signingName:s}=await La(n),c=(await r.sigv4aSigningRegionSet?.()??o??[a]).join(`,`);return n._preRequestSystemClockOffset=r.systemClockOffset,await i.sign(e,{signingDate:Na(r.systemClockOffset),signingRegion:c,signingService:s})}},Ba=e=>(e.sigv4aSigningRegionSet=Ki(e.sigv4aSigningRegionSet),e),Va=class{format(e){let n=[];for(let r of Object.keys(e)){let i=t(r);n.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[r]))}let r=new Uint8Array(n.reduce((e,t)=>e+t.byteLength,0)),i=0;for(let e of n)r.set(e,i),i+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,e.value,!1),new Uint8Array(n.buffer);case`integer`:let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case`long`:let i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case`binary`:let a=new DataView(new ArrayBuffer(3+e.value.byteLength));a.setUint8(0,6),a.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(a.buffer);return o.set(e.value,3),o;case`string`:let s=t(e.value),c=new DataView(new ArrayBuffer(3+s.byteLength));c.setUint8(0,7),c.setUint16(1,s.byteLength,!1);let l=new Uint8Array(c.buffer);return l.set(s,3),l;case`timestamp`:let u=new Uint8Array(9);return u[0]=8,u.set(Wa.fromNumber(e.value.valueOf()).bytes,1),u;case`uuid`:if(!Ua.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(ae(e.value.replace(/\-/g,``)),1),d}}},Ha;(function(e){e[e.boolTrue=0]=`boolTrue`,e[e.boolFalse=1]=`boolFalse`,e[e.byte=2]=`byte`,e[e.short=3]=`short`,e[e.integer=4]=`integer`,e[e.long=5]=`long`,e[e.byteArray=6]=`byteArray`,e[e.string=7]=`string`,e[e.timestamp=8]=`timestamp`,e[e.uuid=9]=`uuid`})(Ha||={});var Ua=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Wa=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&Ga(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&Ga(e),parseInt(u(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function Ga(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Ka=`X-Amz-Algorithm`,qa=`X-Amz-Credential`,Ja=`X-Amz-Date`,Ya=`X-Amz-SignedHeaders`,Xa=`X-Amz-Expires`,Za=`X-Amz-Signature`,Qa=`X-Amz-Security-Token`,$a=`authorization`,eo=Ja.toLowerCase(),to=[$a,eo,`date`];Za.toLowerCase();var no=`x-amz-content-sha256`,ro=Qa.toLowerCase(),io={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},ao=/^proxy-/,oo=/^sec-/,so=`AWS4-HMAC-SHA256`,co=`AWS4-HMAC-SHA256-PAYLOAD`,lo=`UNSIGNED-PAYLOAD`,uo=`aws4_request`,fo=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===`x-amz-signature`)continue;let i=Gr(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${Gr(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${Gr(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},po=e=>mo(e).toISOString().replace(/\.\d{3}Z$/,`Z`),mo=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e,ho=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){this.service=r,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=N(n),this.credentialProvider=N(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} ${this.getCanonicalPath(e)} -${uo(e)} +${fo(e)} ${r.map(e=>`${e}:${t[e]}`).join(` `)} @@ -11,10 +11,10 @@ ${r.join(`;`)} ${n}`}async createStringToSign(e,t,n,r){let i=new this.sha256;return i.update(l(n)),`${r} ${e} ${t} -${u(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));return Wr(`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=fo(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},ho={},go=[],_o=(e,t,n)=>`${e}/${t}/${n}/${lo}`,vo=async(e,t,n,r,i)=>{let a=`${n}:${r}:${i}:${u(await yo(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(a in ho)return ho[a];for(go.push(a);go.length>50;)delete ho[go.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,lo])o=await yo(e,o,t);return ho[a]=o},yo=(e,t,n)=>{let r=new e(t);return r.update(l(n)),r.digest()},bo=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in ro||t?.has(a)||io.test(a)||ao.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},xo=async({headers:e,body:t},n)=>{for(let t of Object.keys(e))if(t.toLowerCase()===`x-amz-content-sha256`)return e[t];if(t==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof t==`string`||ArrayBuffer.isView(t)||f(t)){let e=new n;return e.update(l(t)),u(await e.digest())}return co},So=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},Co=(e,t={})=>{let{headers:n,query:r={}}=N.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},wo=e=>{e=N.clone(e);for(let t of Object.keys(e.headers))eo.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},To=class extends mo{headerFormatter=new Ba;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:c,signingService:l}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let d=c??await this.regionProvider(),{longDate:f,shortDate:p}=this.formatDate(n);if(r>604800)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let m=_o(p,d,l??this.service),h=Co(wo(e),{unhoistableHeaders:a,hoistableHeaders:s});u.sessionToken&&(h.query[Za]=u.sessionToken),h.query[Ga]=oo,h.query[Ka]=`${u.accessKeyId}/${m}`,h.query[qa]=f,h.query[Ya]=r.toString(10);let g=bo(h,i,o);return h.query[Ja]=this.getCanonicalHeaderList(g),h.query[Xa]=await this.getSignature(f,m,this.getSigningKey(u,d,p,l),this.createCanonicalRequest(h,g,await xo(e,this.sha256))),h}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:a,eventStreamCredentials:o}){let s=i??await this.regionProvider(),{shortDate:c,longDate:l}=this.formatDate(n),d=_o(c,s,a??this.service),f=await xo({headers:{},body:t},this.sha256),p=new this.sha256;p.update(e);let m=[so,l,d,r,u(await p.digest()),f].join(` -`);return this.signString(m,{signingDate:n,signingRegion:s,signingService:a,eventStreamCredentials:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}={}){let a=i??await this.credentialProvider();this.validateResolvedCredentials(a);let o=n??await this.regionProvider(),{shortDate:s}=this.formatDate(t),c=new this.sha256(await this.getSigningKey(a,o,s,r));return c.update(l(e)),u(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=wo(e),{longDate:l,shortDate:u}=this.formatDate(t),d=_o(u,s,a??this.service);c.headers[$a]=l,o.sessionToken&&(c.headers[no]=o.sessionToken);let f=await xo(c,this.sha256);!So(`x-amz-content-sha256`,c.headers)&&this.applyChecksum&&(c.headers[to]=f);let p=bo(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[Qa]=`${oo} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,t,n,r){let i=await this.createStringToSign(e,t,r,oo),a=new this.sha256(await n);return a.update(l(i)),u(await a.digest())}getSigningKey(e,t,n,r){return vo(this.sha256,e,n,t,r||this.service)}},Eo={SignatureV4a:null},Do=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=ko(e,Oo(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?Mt(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:o}=e,s;return s=e.signer?Gi(e.signer):e.regionInfoProvider?()=>Gi(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||To)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await Gi(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||To)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})};function Oo(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:Yi(t,qi,Ji):n?Gi(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function ko(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var Ao={CrtSignerV4:null},jo=`X-Amz-S3session-Token`,Mo=jo.toLowerCase(),No=class extends To{async signWithCredentials(e,t,n){let r=Po(t);e.headers[Mo]=t.sessionToken;let i=this;return Fo(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=Po(t);return delete e.headers[Mo],e.headers[jo]=t.sessionToken,e.query=e.query??{},e.query[jo]=t.sessionToken,Fo(this,r),this.presign(e,n)}};function Po(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function Fo(e,t){let n=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=n,Promise.resolve(t))}var Io=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof Ao.CrtSignerV4==`function`?`crt`:typeof Eo.SignatureV4a==`function`?`js`:`none`}constructor(e){this.sigv4Signer=new No(e),this.signerOptions=e}async sign(e,t={}){return t.signingRegion===`*`?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,n={}){if(n.signingRegion===`*`){let r=this.getSigv4aSigner(),i=Ao.CrtSignerV4;if(i&&r instanceof i)return r.signWithCredentials(e,t,n);throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,n)}async presign(e,t={}){if(t.signingRegion===`*`){let n=this.getSigv4aSigner(),r=Ao.CrtSignerV4;if(r&&n instanceof r)return n.presign(e,t);throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,n={}){if(n.signingRegion===`*`)throw Error(`Method presignWithCredentials is not supported for [signingRegion=*].`);return this.sigv4Signer.presignWithCredentials(e,t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Ao.CrtSignerV4,t=Eo.SignatureV4a;if(this.signerOptions.runtime===`node`){if(!e&&!t)throw Error(`Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);if(e&&typeof e==`function`)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==`function`)this.sigv4aSigner=new t({...this.signerOptions});else throw Error(`Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}else{if(!t||typeof t!=`function`)throw Error(`JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a`);this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}},Lo={name:`SHA-256`},Ro={name:`HMAC`,hash:Lo},zo=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),Bo={};function Vo(){return typeof window<`u`?window:typeof self<`u`?self:Bo}var Ho=function(){function e(e){this.toHash=new Uint8Array,this.secret=e,this.reset()}return e.prototype.update=function(e){if(!g(e)){var t=ee(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return Vo().crypto.subtle.sign(Ro,t,e.toHash).then(function(e){return new Uint8Array(e)})}):g(this.toHash)?Promise.resolve(zo):Promise.resolve().then(function(){return Vo().crypto.subtle.digest(Lo,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array,this.secret&&this.secret!==void 0&&(this.key=new Promise(function(t,n){Vo().crypto.subtle.importKey(`raw`,ee(e.secret),Ro,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))},e}(),Uo=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Wo=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Go=2**53-1,Ko=function(){function e(){this.state=Int32Array.from(Wo),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error(`Attempted to update an already finished hash.`);var t=0,n=e.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>Go)throw Error(`Cannot hash more than 2^53 - 1 bits`);for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(var r=this.bufferLength;r<64;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(var r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),r=0;r<8;r++)i[r*4]=this.state[r]>>>24&255,i[r*4+1]=this.state[r]>>>16&255,i[r*4+2]=this.state[r]>>>8&255,i[r*4+3]=this.state[r]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=0;d<64;d++){if(d<16)this.temp[d]=(t[d*4]&255)<<24|(t[d*4+1]&255)<<16|(t[d*4+2]&255)<<8|t[d*4+3]&255;else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[d-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var h=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(Uo[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=c,n[6]+=l,n[7]+=u},e}(),qo=function(){function e(e){this.secret=e,this.hash=new Ko,this.reset()}return e.prototype.update=function(e){if(!(g(e)||this.error))try{this.hash.update(ee(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return te(this,void 0,void 0,function(){return h(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Ko,this.secret){this.outer=new Ko;var e=Jo(this.secret),t=new Uint8Array(64);t.set(e);for(var n=0;n<64;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n64){var n=new Ko;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var Yo=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function Xo(e){if(Zo(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return Qo(t)}return!1}function Zo(e){return typeof e==`object`&&typeof e.crypto==`object`?typeof e.crypto.getRandomValues==`function`:!1}function Qo(e){return e&&Yo.every(function(t){return typeof e[t]==`function`})}var $o=function(){function e(e){Xo(Vo())?this.hash=new Ho(e):this.hash=new qo(e)}return e.prototype.update=function(e,t){this.hash.update(ee(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();function es(e,t){return new Request(e,t)}function ts(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}var ns={supported:void 0},rs=class e{config;configProvider;static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),ns.supported===void 0&&(ns.supported=typeof Request<`u`&&`keepalive`in es(`https://[::1]`))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){this.config||=await this.configProvider;let r=n??this.config.requestTimeout,i=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let e=is(t);return Promise.reject(e)}let o=e.path,s=Kr(e.query||{});s&&(o+=`?${s}`),e.fragment&&(o+=`#${e.fragment}`);let c=``;(e.username!=null||e.password!=null)&&(c=`${e.username??``}:${e.password??``}@`);let{port:l,method:u}=e,d=`${e.protocol}//${c}${e.hostname}${l?`:${l}`:``}${o}`,f=u===`GET`||u===`HEAD`?void 0:e.body,p={body:f,headers:new Headers(e.headers),method:u,credentials:a};this.config?.cache&&(p.cache=this.config.cache),f&&(p.duplex=`half`),typeof AbortController<`u`&&(p.signal=t),ns.supported&&(p.keepalive=i),typeof this.config.requestInit==`function`&&Object.assign(p,this.config.requestInit(e));let m=()=>{},h=es(d,p),g=[fetch(h).then(e=>{let t=e.headers,n={};for(let e of t.entries())n[e[0]]=e[1];return e.body==null?e.blob().then(t=>({response:new Wt({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new Wt({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),ts(r)];return t&&g.push(new Promise((e,n)=>{let r=()=>{n(is(t))};if(typeof t.addEventListener==`function`){let e=t;e.addEventListener(`abort`,r,{once:!0}),m=()=>e.removeEventListener(`abort`,r)}else t.onabort=r})),Promise.race(g).finally(m)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function is(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}var as=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?os(e):new Uint8Array(await e.arrayBuffer()):ss(e);async function os(e){let t=n(await cs(e));return new Uint8Array(t)}async function ss(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function cs(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var ls=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=hn.for(r),a=hn.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=xn(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return xn(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;tF.of(e).getMergedTraits().awsQueryError?.[0]===t)}}},us=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},ds=class{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),r=new Set(n);r.delete(`__type`),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}},fs;function ps(e){fs||=new DOMParser;let t=fs.parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length>0)throw Error(`DOMParser XML parsing error.`);let n=e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim())return e.textContent;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.attributes.length===0&&t.childNodes.length===0)return``;let r={},i=Array.from(t.attributes);for(let e of i)r[`${e.name}`]=e.value;let a=Array.from(t.childNodes);for(let e of a){let o=n(e);if(o!=null){let t=e.nodeName;if(a.length===1&&i.length===0&&t===`#text`)return o;r[t]?Array.isArray(r[t])?r[t].push(o):r[t]=[r[t],o]:r[t]=o}else if(a.length===1&&i.length===0)return t.textContent}return r}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}var ms=class extends us{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Lr(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let r=F.of(e),a=r.getMemberSchemas();if(r.isStructSchema()&&r.isMemberSchema()&&Object.values(a).find(e=>!!e.getMemberTraits().eventPayload)){let e={},n=Object.keys(a)[0];return a[n].isBlobSchema()?e[n]=t:e[n]=this.read(a[n],t),e}let o=(this.serdeContext?.utf8Encoder??i)(t),s=this.parseXml(o);return this.readSchema(e,n?s[n]:s)}readSchema(e,t){let n=F.of(e);if(n.isUnitSchema())return;let r=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==`object`){let e=!!r.xmlFlattened;if(n.isListSchema()){let r=n.getValueSchema(),i=[],a=r.getMergedTraits().xmlName??`member`,o=e?t:(t[0]??t)[a];if(o==null)return i;let s=Array.isArray(o)?o:[o];for(let e of s)i.push(this.readSchema(r,e));return i}let i={};if(n.isMapSchema()){let r=n.getKeySchema(),a=n.getValueSchema(),o;o=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];let s=r.getMergedTraits().xmlName??`key`,c=a.getMergedTraits().xmlName??`value`;for(let e of o){let t=e[s],n=e[c];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){let e=n.isUnionSchema(),r;e&&(r=new ds(t,i));for(let[a,o]of n.structIterator()){let n=o.getMergedTraits(),s=n.httpPayload?n.xmlName??o.getName():o.getMemberTraits().xmlName??a;e&&r.mark(s),t[s]!=null&&(i[a]=this.readSchema(o,t[s]))}return e&&r.writeUnknown(),i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=ps(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),An(i)}return{}}},hs=class extends us{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=F.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??o)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(ne())):(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigIntegerSchema())t!=null&&(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigDecimalSchema())t!=null&&(this.writeKey(n),this.writeValue(t instanceof ie?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),Ir(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue(p(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else if(r.isDocumentSchema())Array.isArray(t)?this.write(79,t,n):t instanceof Date?this.write(4,t,n):t instanceof Uint8Array?this.write(21,t,n):t&&typeof t==`object`?this.write(143,t,n):(this.writeKey(n),this.writeValue(String(t)));else if(r.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(``));else{let e=r.getValueSchema(),i=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,a=1;for(let r of t){if(r==null)continue;let t=e.getMergedTraits(),o=this.getKey(`member`,t.xmlName,t.ec2QueryName),s=i?`${n}${a}`:`${n}${o}.${a}`;this.write(e,r,s),++a}}}else if(r.isMapSchema()){if(t&&typeof t==`object`){let e=r.getKeySchema(),i=r.getValueSchema(),a=r.getMergedTraits().xmlFlattened,o=1;for(let r in t){let s=t[r];if(s==null)continue;let c=e.getMergedTraits(),l=this.getKey(`key`,c.xmlName,c.ec2QueryName),u=a?`${n}${o}.${l}`:`${n}entry.${o}.${l}`,d=i.getMergedTraits(),f=this.getKey(`value`,d.xmlName,d.ec2QueryName),p=a?`${n}${o}.${f}`:`${n}entry.${o}.${f}`;this.write(e,r,u),this.write(i,s,p),++o}}}else if(r.isStructSchema()){if(t&&typeof t==`object`){let e=!1;for(let[i,a]of r.structIterator()){if(t[i]==null&&!a.isIdempotencyToken())continue;let r=a.getMergedTraits(),o=this.getKey(i,r.xmlName,r.ec2QueryName,`struct`),s=`${n}${o}`;this.write(a,t[i],s),e=!0}if(!e&&r.isUnionSchema()){let{$unknown:e}=t;if(Array.isArray(e)){let[t,r]=e,i=`${n}${t}`;this.write(15,r,i)}}}}else if(!r.isUnitSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${r.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error(`@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.`);let e=this.buffer;return delete this.buffer,e}getKey(e,t,n,r){let{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n)return n;let o=t??e;return a&&r===`struct`?o[0].toUpperCase()+o.slice(1):o}writeKey(e){e.endsWith(`.`)&&(e=e.slice(0,e.length-1)),this.buffer+=`&${Or(e)}=`}writeValue(e){this.buffer+=Or(e)}},gs=class extends Fr{options;serializer;deserializer;mixin=new ls;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new hs(t),this.deserializer=new ms(t)}getShapeId(){return`aws.protocols#awsQuery`}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error(`AWSQuery protocol has no payload codec.`)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-www-form-urlencoded`,(Qt(e.input)===`unit`||!r.body)&&(r.body=``),r.body=`Action=${e.name.split(`#`)[1]??e.name}&Version=${this.options.version}`+r.body,r.body.endsWith(`&`)&&(r.body=r.body.slice(-1)),r}async deserializeResponse(e,t,n){let r=this.deserializer,i=F.of(e.output),a={};if(n.statusCode>=300){let i=await Dr(n.body,t);i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=e.name.split(`#`)[1]??e.name,s=i.isStructSchema()&&this.useNestedResult()?o+`Result`:void 0,c=await Dr(n.body,t);return c.byteLength>0&&Object.assign(a,await r.read(i,c,s)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,t,n,r,i){let a=this.loadQueryErrorCode(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let o=this.loadQueryError(r)??{},s=this.loadQueryErrorMessage(r);o.message=s,o.Error={Type:o.Type,Code:o.Code,Message:s};let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.mixin.findQueryCompatibleError),u=F.of(c),d=new((this.compositeErrorRegistry.getErrorCtor(c))??Error)({}),f={Type:o.Error.Type,Code:o.Error.Code,Error:o.Error};for(let[e,t]of u.structIterator()){let n=t.getMergedTraits().xmlName??e,i=o[n]??r[n];f[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(d,l,{$fault:u.getMergedTraits().error,message:s},f),r)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return`NotFound`}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??`Unknown`}getDefaultContentType(){return`application/x-www-form-urlencoded`}},_s;function z(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var vs=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ys=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(_s=globalThis).__zod_globalConfig??(_s.__zod_globalConfig={});var bs=globalThis.__zod_globalConfig;function B(e){return e&&Object.assign(bs,e),bs}function xs(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Ss(e,t){return typeof t==`bigint`?t.toString():t}function Cs(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function ws(e){return e==null}function Ts(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Es(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r){};function Ms(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Ns=Cs(()=>{if(bs.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Ps(e){if(Ms(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Ms(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Fs(e){return Ps(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Is=new Set([`string`,`number`,`symbol`]);function Ls(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function U(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function W(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Rs(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var zs={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Bs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return U(e,H(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Os(this,`shape`,e),e},checks:[]}))}function Vs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return U(e,H(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Os(this,`shape`,r),r},checks:[]}))}function Hs(e,t){if(!Ps(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return U(e,H(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Os(this,`shape`,n),n}}))}function Us(e,t){if(!Ps(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return U(e,H(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Os(this,`shape`,n),n}}))}function Ws(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return U(e,H(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Os(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Gs(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return U(t,H(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Os(this,`shape`,i),i},checks:[]}))}function Ks(e,t,n){return U(t,H(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Os(this,`shape`,i),i}}))}function qs(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Xs(e){return typeof e==`string`?e:e?.message}function G(e,t,n){let r=e.message?e.message:Xs(e.inst?._zod.def?.error?.(e))??Xs(t?.error?.(e))??Xs(n.customError?.(e))??Xs(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Zs(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Qs(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var $s=(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,Ss,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ec=z(`$ZodError`,$s),tc=z(`$ZodError`,$s,{Parent:Error});function nc(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function rc(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new vs;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>G(e,a,B())));throw js(t,i?.callee),t}return o.value},ac=ic(tc),oc=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>G(e,a,B())));throw js(t,i?.callee),t}return o.value},sc=oc(tc),cc=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new vs;return a.issues.length?{success:!1,error:new(e??ec)(a.issues.map(e=>G(e,i,B())))}:{success:!0,data:a.value}},lc=cc(tc),uc=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>G(e,i,B())))}:{success:!0,data:a.value}},dc=uc(tc),fc=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ic(e)(t,n,i)},pc=e=>(t,n,r)=>ic(e)(t,n,r),mc=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return oc(e)(t,n,i)},hc=e=>async(t,n,r)=>oc(e)(t,n,r),gc=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return cc(e)(t,n,i)},_c=e=>(t,n,r)=>cc(e)(t,n,r),vc=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return uc(e)(t,n,i)},yc=e=>async(t,n,r)=>uc(e)(t,n,r),bc=/^[cC][0-9a-z]{6,}$/,xc=/^[0-9a-z]+$/,Sc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Cc=/^[0-9a-vA-V]{20}$/,wc=/^[A-Za-z0-9]{27}$/,Tc=/^[a-zA-Z0-9_-]{21}$/,Ec=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Dc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Oc=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,kc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ac=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function jc(){return new RegExp(Ac,`u`)}var Mc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Nc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Pc=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Fc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ic=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Lc=/^[A-Za-z0-9_-]*$/,Rc=/^https?$/,zc=/^\+[1-9]\d{6,14}$/,Bc=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Vc=RegExp(`^${Bc}$`);function Hc(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Uc(e){return RegExp(`^${Hc(e)}$`)}function Wc(e){let t=Hc({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Bc}T(?:${r})$`)}var Gc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Kc=/^-?\d+$/,qc=/^-?\d+(?:\.\d+)?$/,Jc=/^(?:true|false)$/i,Yc=/^[^A-Z]*$/,Xc=/^[^a-z]*$/,K=z(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Zc={number:`number`,bigint:`bigint`,object:`date`},Qc=z(`$ZodCheckLessThan`,(e,t)=>{K.init(e,t);let n=Zc[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{K.init(e,t);let n=Zc[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),el=z(`$ZodCheckMultipleOf`,(e,t)=>{K.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Es(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),tl=z(`$ZodCheckNumberFormat`,(e,t)=>{K.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=zs[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Kc)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),nl=z(`$ZodCheckMaxLength`,(e,t)=>{var n;K.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ws(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Zs(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),rl=z(`$ZodCheckMinLength`,(e,t)=>{var n;K.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ws(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Zs(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),il=z(`$ZodCheckLengthEquals`,(e,t)=>{var n;K.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ws(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Zs(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),al=z(`$ZodCheckStringFormat`,(e,t)=>{var n,r;K.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ol=z(`$ZodCheckRegex`,(e,t)=>{al.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),sl=z(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Yc,al.init(e,t)}),cl=z(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Xc,al.init(e,t)}),ll=z(`$ZodCheckIncludes`,(e,t)=>{K.init(e,t);let n=Ls(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),ul=z(`$ZodCheckStartsWith`,(e,t)=>{K.init(e,t);let n=RegExp(`^${Ls(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),dl=z(`$ZodCheckEndsWith`,(e,t)=>{K.init(e,t);let n=RegExp(`.*${Ls(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),fl=z(`$ZodCheckOverwrite`,(e,t)=>{K.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),pl=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +${u(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));return Gr(`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=po(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},go={},_o=[],vo=(e,t,n)=>`${e}/${t}/${n}/${uo}`,yo=async(e,t,n,r,i)=>{let a=`${n}:${r}:${i}:${u(await bo(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(a in go)return go[a];for(_o.push(a);_o.length>50;)delete go[_o.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,uo])o=await bo(e,o,t);return go[a]=o},bo=(e,t,n)=>{let r=new e(t);return r.update(l(n)),r.digest()},xo=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in io||t?.has(a)||ao.test(a)||oo.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},So=async({headers:e,body:t},n)=>{for(let t of Object.keys(e))if(t.toLowerCase()===`x-amz-content-sha256`)return e[t];if(t==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof t==`string`||ArrayBuffer.isView(t)||f(t)){let e=new n;return e.update(l(t)),u(await e.digest())}return lo},Co=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},wo=(e,t={})=>{let{headers:n,query:r={}}=M.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},To=e=>{e=M.clone(e);for(let t of Object.keys(e.headers))to.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},Eo=class extends ho{headerFormatter=new Va;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:c,signingService:l}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let d=c??await this.regionProvider(),{longDate:f,shortDate:p}=this.formatDate(n);if(r>604800)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let m=vo(p,d,l??this.service),h=wo(To(e),{unhoistableHeaders:a,hoistableHeaders:s});u.sessionToken&&(h.query[Qa]=u.sessionToken),h.query[Ka]=so,h.query[qa]=`${u.accessKeyId}/${m}`,h.query[Ja]=f,h.query[Xa]=r.toString(10);let g=xo(h,i,o);return h.query[Ya]=this.getCanonicalHeaderList(g),h.query[Za]=await this.getSignature(f,m,this.getSigningKey(u,d,p,l),this.createCanonicalRequest(h,g,await So(e,this.sha256))),h}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:a,eventStreamCredentials:o}){let s=i??await this.regionProvider(),{shortDate:c,longDate:l}=this.formatDate(n),d=vo(c,s,a??this.service),f=await So({headers:{},body:t},this.sha256),p=new this.sha256;p.update(e);let m=[co,l,d,r,u(await p.digest()),f].join(` +`);return this.signString(m,{signingDate:n,signingRegion:s,signingService:a,eventStreamCredentials:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}={}){let a=i??await this.credentialProvider();this.validateResolvedCredentials(a);let o=n??await this.regionProvider(),{shortDate:s}=this.formatDate(t),c=new this.sha256(await this.getSigningKey(a,o,s,r));return c.update(l(e)),u(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=To(e),{longDate:l,shortDate:u}=this.formatDate(t),d=vo(u,s,a??this.service);c.headers[eo]=l,o.sessionToken&&(c.headers[ro]=o.sessionToken);let f=await So(c,this.sha256);!Co(`x-amz-content-sha256`,c.headers)&&this.applyChecksum&&(c.headers[no]=f);let p=xo(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[$a]=`${so} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,t,n,r){let i=await this.createStringToSign(e,t,r,so),a=new this.sha256(await n);return a.update(l(i)),u(await a.digest())}getSigningKey(e,t,n,r){return yo(this.sha256,e,n,t,r||this.service)}},Do={SignatureV4a:null},Oo=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=Ao(e,ko(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?Pt(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:o}=e,s;return s=e.signer?Ki(e.signer):e.regionInfoProvider?()=>Ki(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||Eo)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await Ki(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||Eo)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})};function ko(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:Xi(t,Ji,Yi):n?Ki(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function Ao(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var jo={CrtSignerV4:null},Mo=`X-Amz-S3session-Token`,No=Mo.toLowerCase(),Po=class extends Eo{async signWithCredentials(e,t,n){let r=Fo(t);e.headers[No]=t.sessionToken;let i=this;return Io(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=Fo(t);return delete e.headers[No],e.headers[Mo]=t.sessionToken,e.query=e.query??{},e.query[Mo]=t.sessionToken,Io(this,r),this.presign(e,n)}};function Fo(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function Io(e,t){let n=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=n,Promise.resolve(t))}var Lo=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof jo.CrtSignerV4==`function`?`crt`:typeof Do.SignatureV4a==`function`?`js`:`none`}constructor(e){this.sigv4Signer=new Po(e),this.signerOptions=e}async sign(e,t={}){return t.signingRegion===`*`?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,n={}){if(n.signingRegion===`*`){let r=this.getSigv4aSigner(),i=jo.CrtSignerV4;if(i&&r instanceof i)return r.signWithCredentials(e,t,n);throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,n)}async presign(e,t={}){if(t.signingRegion===`*`){let n=this.getSigv4aSigner(),r=jo.CrtSignerV4;if(r&&n instanceof r)return n.presign(e,t);throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,n={}){if(n.signingRegion===`*`)throw Error(`Method presignWithCredentials is not supported for [signingRegion=*].`);return this.sigv4Signer.presignWithCredentials(e,t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=jo.CrtSignerV4,t=Do.SignatureV4a;if(this.signerOptions.runtime===`node`){if(!e&&!t)throw Error(`Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);if(e&&typeof e==`function`)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==`function`)this.sigv4aSigner=new t({...this.signerOptions});else throw Error(`Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}else{if(!t||typeof t!=`function`)throw Error(`JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a`);this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}},Ro={name:`SHA-256`},zo={name:`HMAC`,hash:Ro},Bo=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),Vo={};function Ho(){return typeof window<`u`?window:typeof self<`u`?self:Vo}var Uo=function(){function e(e){this.toHash=new Uint8Array,this.secret=e,this.reset()}return e.prototype.update=function(e){if(!g(e)){var t=ee(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return Ho().crypto.subtle.sign(zo,t,e.toHash).then(function(e){return new Uint8Array(e)})}):g(this.toHash)?Promise.resolve(Bo):Promise.resolve().then(function(){return Ho().crypto.subtle.digest(Ro,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array,this.secret&&this.secret!==void 0&&(this.key=new Promise(function(t,n){Ho().crypto.subtle.importKey(`raw`,ee(e.secret),zo,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))},e}(),Wo=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Go=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Ko=2**53-1,qo=function(){function e(){this.state=Int32Array.from(Go),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error(`Attempted to update an already finished hash.`);var t=0,n=e.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>Ko)throw Error(`Cannot hash more than 2^53 - 1 bits`);for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(var r=this.bufferLength;r<64;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(var r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),r=0;r<8;r++)i[r*4]=this.state[r]>>>24&255,i[r*4+1]=this.state[r]>>>16&255,i[r*4+2]=this.state[r]>>>8&255,i[r*4+3]=this.state[r]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=0;d<64;d++){if(d<16)this.temp[d]=(t[d*4]&255)<<24|(t[d*4+1]&255)<<16|(t[d*4+2]&255)<<8|t[d*4+3]&255;else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[d-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var h=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(Wo[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=c,n[6]+=l,n[7]+=u},e}(),Jo=function(){function e(e){this.secret=e,this.hash=new qo,this.reset()}return e.prototype.update=function(e){if(!(g(e)||this.error))try{this.hash.update(ee(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return te(this,void 0,void 0,function(){return h(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new qo,this.secret){this.outer=new qo;var e=Yo(this.secret),t=new Uint8Array(64);t.set(e);for(var n=0;n<64;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n64){var n=new qo;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var Xo=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function Zo(e){if(Qo(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return $o(t)}return!1}function Qo(e){return typeof e==`object`&&typeof e.crypto==`object`?typeof e.crypto.getRandomValues==`function`:!1}function $o(e){return e&&Xo.every(function(t){return typeof e[t]==`function`})}var es=function(){function e(e){Zo(Ho())?this.hash=new Uo(e):this.hash=new Jo(e)}return e.prototype.update=function(e,t){this.hash.update(ee(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();function ts(e,t){return new Request(e,t)}function ns(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}var rs={supported:void 0},is=class e{config;configProvider;static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),rs.supported===void 0&&(rs.supported=typeof Request<`u`&&`keepalive`in ts(`https://[::1]`))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){this.config||=await this.configProvider;let r=n??this.config.requestTimeout,i=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let e=as(t);return Promise.reject(e)}let o=e.path,s=qr(e.query||{});s&&(o+=`?${s}`),e.fragment&&(o+=`#${e.fragment}`);let c=``;(e.username!=null||e.password!=null)&&(c=`${e.username??``}:${e.password??``}@`);let{port:l,method:u}=e,d=`${e.protocol}//${c}${e.hostname}${l?`:${l}`:``}${o}`,f=u===`GET`||u===`HEAD`?void 0:e.body,p={body:f,headers:new Headers(e.headers),method:u,credentials:a};this.config?.cache&&(p.cache=this.config.cache),f&&(p.duplex=`half`),typeof AbortController<`u`&&(p.signal=t),rs.supported&&(p.keepalive=i),typeof this.config.requestInit==`function`&&Object.assign(p,this.config.requestInit(e));let m=()=>{},h=ts(d,p),g=[fetch(h).then(e=>{let t=e.headers,n={};for(let e of t.entries())n[e[0]]=e[1];return e.body==null?e.blob().then(t=>({response:new Gt({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new Gt({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),ns(r)];return t&&g.push(new Promise((e,n)=>{let r=()=>{n(as(t))};if(typeof t.addEventListener==`function`){let e=t;e.addEventListener(`abort`,r,{once:!0}),m=()=>e.removeEventListener(`abort`,r)}else t.onabort=r})),Promise.race(g).finally(m)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function as(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}var os=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?ss(e):new Uint8Array(await e.arrayBuffer()):cs(e);async function ss(e){let t=n(await ls(e));return new Uint8Array(t)}async function cs(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function ls(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var us=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=gn.for(r),a=gn.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=Sn(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return Sn(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;tP.of(e).getMergedTraits().awsQueryError?.[0]===t)}}},ds=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},fs=class{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),r=new Set(n);r.delete(`__type`),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}},ps;function ms(e){ps||=new DOMParser;let t=ps.parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length>0)throw Error(`DOMParser XML parsing error.`);let n=e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim())return e.textContent;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.attributes.length===0&&t.childNodes.length===0)return``;let r={},i=Array.from(t.attributes);for(let e of i)r[`${e.name}`]=e.value;let a=Array.from(t.childNodes);for(let e of a){let o=n(e);if(o!=null){let t=e.nodeName;if(a.length===1&&i.length===0&&t===`#text`)return o;r[t]?Array.isArray(r[t])?r[t].push(o):r[t]=[r[t],o]:r[t]=o}else if(a.length===1&&i.length===0)return t.textContent}return r}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}var hs=class extends ds{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Rr(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let r=P.of(e),a=r.getMemberSchemas();if(r.isStructSchema()&&r.isMemberSchema()&&Object.values(a).find(e=>!!e.getMemberTraits().eventPayload)){let e={},n=Object.keys(a)[0];return a[n].isBlobSchema()?e[n]=t:e[n]=this.read(a[n],t),e}let o=(this.serdeContext?.utf8Encoder??i)(t),s=this.parseXml(o);return this.readSchema(e,n?s[n]:s)}readSchema(e,t){let n=P.of(e);if(n.isUnitSchema())return;let r=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==`object`){let e=!!r.xmlFlattened;if(n.isListSchema()){let r=n.getValueSchema(),i=[],a=r.getMergedTraits().xmlName??`member`,o=e?t:(t[0]??t)[a];if(o==null)return i;let s=Array.isArray(o)?o:[o];for(let e of s)i.push(this.readSchema(r,e));return i}let i={};if(n.isMapSchema()){let r=n.getKeySchema(),a=n.getValueSchema(),o;o=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];let s=r.getMergedTraits().xmlName??`key`,c=a.getMergedTraits().xmlName??`value`;for(let e of o){let t=e[s],n=e[c];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){let e=n.isUnionSchema(),r;e&&(r=new fs(t,i));for(let[a,o]of n.structIterator()){let n=o.getMergedTraits(),s=n.httpPayload?n.xmlName??o.getName():o.getMemberTraits().xmlName??a;e&&r.mark(s),t[s]!=null&&(i[a]=this.readSchema(o,t[s]))}return e&&r.writeUnknown(),i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=ms(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),jn(i)}return{}}},gs=class extends ds{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=P.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??o)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(ne())):(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigIntegerSchema())t!=null&&(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigDecimalSchema())t!=null&&(this.writeKey(n),this.writeValue(t instanceof ie?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),Lr(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue(p(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else if(r.isDocumentSchema())Array.isArray(t)?this.write(79,t,n):t instanceof Date?this.write(4,t,n):t instanceof Uint8Array?this.write(21,t,n):t&&typeof t==`object`?this.write(143,t,n):(this.writeKey(n),this.writeValue(String(t)));else if(r.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(``));else{let e=r.getValueSchema(),i=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,a=1;for(let r of t){if(r==null)continue;let t=e.getMergedTraits(),o=this.getKey(`member`,t.xmlName,t.ec2QueryName),s=i?`${n}${a}`:`${n}${o}.${a}`;this.write(e,r,s),++a}}}else if(r.isMapSchema()){if(t&&typeof t==`object`){let e=r.getKeySchema(),i=r.getValueSchema(),a=r.getMergedTraits().xmlFlattened,o=1;for(let r in t){let s=t[r];if(s==null)continue;let c=e.getMergedTraits(),l=this.getKey(`key`,c.xmlName,c.ec2QueryName),u=a?`${n}${o}.${l}`:`${n}entry.${o}.${l}`,d=i.getMergedTraits(),f=this.getKey(`value`,d.xmlName,d.ec2QueryName),p=a?`${n}${o}.${f}`:`${n}entry.${o}.${f}`;this.write(e,r,u),this.write(i,s,p),++o}}}else if(r.isStructSchema()){if(t&&typeof t==`object`){let e=!1;for(let[i,a]of r.structIterator()){if(t[i]==null&&!a.isIdempotencyToken())continue;let r=a.getMergedTraits(),o=this.getKey(i,r.xmlName,r.ec2QueryName,`struct`),s=`${n}${o}`;this.write(a,t[i],s),e=!0}if(!e&&r.isUnionSchema()){let{$unknown:e}=t;if(Array.isArray(e)){let[t,r]=e,i=`${n}${t}`;this.write(15,r,i)}}}}else if(!r.isUnitSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${r.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error(`@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.`);let e=this.buffer;return delete this.buffer,e}getKey(e,t,n,r){let{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n)return n;let o=t??e;return a&&r===`struct`?o[0].toUpperCase()+o.slice(1):o}writeKey(e){e.endsWith(`.`)&&(e=e.slice(0,e.length-1)),this.buffer+=`&${kr(e)}=`}writeValue(e){this.buffer+=kr(e)}},_s=class extends Ir{options;serializer;deserializer;mixin=new us;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new gs(t),this.deserializer=new hs(t)}getShapeId(){return`aws.protocols#awsQuery`}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error(`AWSQuery protocol has no payload codec.`)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-www-form-urlencoded`,($t(e.input)===`unit`||!r.body)&&(r.body=``),r.body=`Action=${e.name.split(`#`)[1]??e.name}&Version=${this.options.version}`+r.body,r.body.endsWith(`&`)&&(r.body=r.body.slice(-1)),r}async deserializeResponse(e,t,n){let r=this.deserializer,i=P.of(e.output),a={};if(n.statusCode>=300){let i=await Or(n.body,t);i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=e.name.split(`#`)[1]??e.name,s=i.isStructSchema()&&this.useNestedResult()?o+`Result`:void 0,c=await Or(n.body,t);return c.byteLength>0&&Object.assign(a,await r.read(i,c,s)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,t,n,r,i){let a=this.loadQueryErrorCode(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let o=this.loadQueryError(r)??{},s=this.loadQueryErrorMessage(r);o.message=s,o.Error={Type:o.Type,Code:o.Code,Message:s};let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.mixin.findQueryCompatibleError),u=P.of(c),d=new((this.compositeErrorRegistry.getErrorCtor(c))??Error)({}),f={Type:o.Error.Type,Code:o.Error.Code,Error:o.Error};for(let[e,t]of u.structIterator()){let n=t.getMergedTraits().xmlName??e,i=o[n]??r[n];f[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(d,l,{$fault:u.getMergedTraits().error,message:s},f),r)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return`NotFound`}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??`Unknown`}getDefaultContentType(){return`application/x-www-form-urlencoded`}},vs;function R(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var ys=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},bs=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(vs=globalThis).__zod_globalConfig??(vs.__zod_globalConfig={});var xs=globalThis.__zod_globalConfig;function z(e){return e&&Object.assign(xs,e),xs}function Ss(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Cs(e,t){return typeof t==`bigint`?t.toString():t}function ws(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function Ts(e){return e==null}function Es(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Ds(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r){};function Ns(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Ps=ws(()=>{if(xs.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Fs(e){if(Ns(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Ns(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Is(e){return Fs(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Ls=new Set([`string`,`number`,`symbol`]);function Rs(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function H(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function U(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function zs(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Bs={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Vs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return H(e,V(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ks(this,`shape`,e),e},checks:[]}))}function Hs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return H(e,V(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ks(this,`shape`,r),r},checks:[]}))}function Us(e,t){if(!Fs(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return H(e,V(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ks(this,`shape`,n),n}}))}function Ws(e,t){if(!Fs(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return H(e,V(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ks(this,`shape`,n),n}}))}function Gs(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return H(e,V(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ks(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Ks(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return H(t,V(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ks(this,`shape`,i),i},checks:[]}))}function qs(e,t,n){return H(t,V(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ks(this,`shape`,i),i}}))}function Js(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Zs(e){return typeof e==`string`?e:e?.message}function W(e,t,n){let r=e.message?e.message:Zs(e.inst?._zod.def?.error?.(e))??Zs(t?.error?.(e))??Zs(n.customError?.(e))??Zs(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Qs(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function $s(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var ec=(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,Cs,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tc=R(`$ZodError`,ec),nc=R(`$ZodError`,ec,{Parent:Error});function rc(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function ic(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new ys;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>W(e,a,z())));throw Ms(t,i?.callee),t}return o.value},oc=ac(nc),sc=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>W(e,a,z())));throw Ms(t,i?.callee),t}return o.value},cc=sc(nc),lc=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ys;return a.issues.length?{success:!1,error:new(e??tc)(a.issues.map(e=>W(e,i,z())))}:{success:!0,data:a.value}},uc=lc(nc),dc=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>W(e,i,z())))}:{success:!0,data:a.value}},fc=dc(nc),pc=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ac(e)(t,n,i)},mc=e=>(t,n,r)=>ac(e)(t,n,r),hc=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return sc(e)(t,n,i)},gc=e=>async(t,n,r)=>sc(e)(t,n,r),_c=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return lc(e)(t,n,i)},vc=e=>(t,n,r)=>lc(e)(t,n,r),yc=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return dc(e)(t,n,i)},bc=e=>async(t,n,r)=>dc(e)(t,n,r),xc=/^[cC][0-9a-z]{6,}$/,Sc=/^[0-9a-z]+$/,Cc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,wc=/^[0-9a-vA-V]{20}$/,Tc=/^[A-Za-z0-9]{27}$/,Ec=/^[a-zA-Z0-9_-]{21}$/,Dc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Oc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,kc=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ac=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,jc=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Mc(){return new RegExp(jc,`u`)}var Nc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Pc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Fc=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ic=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Lc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Rc=/^[A-Za-z0-9_-]*$/,zc=/^https?$/,Bc=/^\+[1-9]\d{6,14}$/,Vc=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Hc=RegExp(`^${Vc}$`);function Uc(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Wc(e){return RegExp(`^${Uc(e)}$`)}function Gc(e){let t=Uc({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Vc}T(?:${r})$`)}var Kc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},qc=/^-?\d+$/,Jc=/^-?\d+(?:\.\d+)?$/,Yc=/^(?:true|false)$/i,Xc=/^[^A-Z]*$/,Zc=/^[^a-z]*$/,G=R(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Qc={number:`number`,bigint:`bigint`,object:`date`},$c=R(`$ZodCheckLessThan`,(e,t)=>{G.init(e,t);let n=Qc[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{G.init(e,t);let n=Qc[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),tl=R(`$ZodCheckMultipleOf`,(e,t)=>{G.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Ds(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),nl=R(`$ZodCheckNumberFormat`,(e,t)=>{G.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Bs[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=qc)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),rl=R(`$ZodCheckMaxLength`,(e,t)=>{var n;G.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ts(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Qs(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),il=R(`$ZodCheckMinLength`,(e,t)=>{var n;G.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ts(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Qs(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),al=R(`$ZodCheckLengthEquals`,(e,t)=>{var n;G.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ts(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Qs(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ol=R(`$ZodCheckStringFormat`,(e,t)=>{var n,r;G.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),sl=R(`$ZodCheckRegex`,(e,t)=>{ol.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),cl=R(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Xc,ol.init(e,t)}),ll=R(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Zc,ol.init(e,t)}),ul=R(`$ZodCheckIncludes`,(e,t)=>{G.init(e,t);let n=Rs(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),dl=R(`$ZodCheckStartsWith`,(e,t)=>{G.init(e,t);let n=RegExp(`^${Rs(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),fl=R(`$ZodCheckEndsWith`,(e,t)=>{G.init(e,t);let n=RegExp(`.*${Rs(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),pl=R(`$ZodCheckOverwrite`,(e,t)=>{G.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),ml=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}},ml={major:4,minor:4,patch:3},q=z(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ml;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=qs(e),i;for(let a of t){if(a._zod.def.when){if(Js(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new vs;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=qs(e,t))});else{if(e.issues.length===t)continue;r||=qs(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(qs(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new vs;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new vs;return o.then(e=>t(e,r,a))}return t(o,r,a)}}V(e,`~standard`,()=>({validate:t=>{try{let n=lc(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return dc(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),hl=z(`$ZodString`,(e,t)=>{q.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Gc(e._zod.bag),e._zod.parse=(n,r)=>{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}}),J=z(`$ZodStringFormat`,(e,t)=>{al.init(e,t),hl.init(e,t)}),gl=z(`$ZodGUID`,(e,t)=>{t.pattern??=Dc,J.init(e,t)}),_l=z(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Oc(e)}else t.pattern??=Oc();J.init(e,t)}),vl=z(`$ZodEmail`,(e,t)=>{t.pattern??=kc,J.init(e,t)}),yl=z(`$ZodURL`,(e,t)=>{J.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Rc.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),bl=z(`$ZodEmoji`,(e,t)=>{t.pattern??=jc(),J.init(e,t)}),xl=z(`$ZodNanoID`,(e,t)=>{t.pattern??=Tc,J.init(e,t)}),Sl=z(`$ZodCUID`,(e,t)=>{t.pattern??=bc,J.init(e,t)}),Cl=z(`$ZodCUID2`,(e,t)=>{t.pattern??=xc,J.init(e,t)}),wl=z(`$ZodULID`,(e,t)=>{t.pattern??=Sc,J.init(e,t)}),Tl=z(`$ZodXID`,(e,t)=>{t.pattern??=Cc,J.init(e,t)}),El=z(`$ZodKSUID`,(e,t)=>{t.pattern??=wc,J.init(e,t)}),Dl=z(`$ZodISODateTime`,(e,t)=>{t.pattern??=Wc(t),J.init(e,t)}),Ol=z(`$ZodISODate`,(e,t)=>{t.pattern??=Vc,J.init(e,t)}),kl=z(`$ZodISOTime`,(e,t)=>{t.pattern??=Uc(t),J.init(e,t)}),Al=z(`$ZodISODuration`,(e,t)=>{t.pattern??=Ec,J.init(e,t)}),jl=z(`$ZodIPv4`,(e,t)=>{t.pattern??=Mc,J.init(e,t),e._zod.bag.format=`ipv4`}),Ml=z(`$ZodIPv6`,(e,t)=>{t.pattern??=Nc,J.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Nl=z(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Pc,J.init(e,t)}),Pl=z(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Fc,J.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Fl(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Il=z(`$ZodBase64`,(e,t)=>{t.pattern??=Ic,J.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Fl(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Ll(e){if(!Lc.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Fl(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Rl=z(`$ZodBase64URL`,(e,t)=>{t.pattern??=Lc,J.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Ll(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),zl=z(`$ZodE164`,(e,t)=>{t.pattern??=zc,J.init(e,t)});function Bl(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Vl=z(`$ZodJWT`,(e,t)=>{J.init(e,t),e._zod.check=n=>{Bl(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Hl=z(`$ZodNumber`,(e,t)=>{q.init(e,t),e._zod.pattern=e._zod.bag.pattern??qc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Ul=z(`$ZodNumberFormat`,(e,t)=>{tl.init(e,t),Hl.init(e,t)}),Wl=z(`$ZodBoolean`,(e,t)=>{q.init(e,t),e._zod.pattern=Jc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Gl=z(`$ZodUnknown`,(e,t)=>{q.init(e,t),e._zod.parse=e=>e}),Kl=z(`$ZodNever`,(e,t)=>{q.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function ql(e,t,n){e.issues.length&&t.issues.push(...Ys(n,e.issues)),t.value[n]=e.value}var Jl=z(`$ZodArray`,(e,t)=>{q.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eql(t,n,e))):ql(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Yl(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Ys(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Xl(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Rs(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Zl(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Yl(e,n,i,t,u,d))):Yl(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var Ql=z(`$ZodObject`,(e,t)=>{if(q.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=Cs(()=>Xl(t));V(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Ms,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Yl(n,t,e,s,r,i))):Yl(a,t,e,s,r,i)}return i?Zl(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),$l=z(`$ZodObjectJIT`,(e,t)=>{Ql.init(e,t);let n=e._zod.parse,r=Cs(()=>Xl(t)),i=e=>{let t=new pl([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ks(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ks(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` +`))}},hl={major:4,minor:4,patch:3},K=R(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=hl;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Js(e),i;for(let a of t){if(a._zod.def.when){if(Ys(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new ys;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Js(e,t))});else{if(e.issues.length===t)continue;r||=Js(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Js(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new ys;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new ys;return o.then(e=>t(e,r,a))}return t(o,r,a)}}B(e,`~standard`,()=>({validate:t=>{try{let n=uc(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return fc(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),gl=R(`$ZodString`,(e,t)=>{K.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Kc(e._zod.bag),e._zod.parse=(n,r)=>{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}}),q=R(`$ZodStringFormat`,(e,t)=>{ol.init(e,t),gl.init(e,t)}),_l=R(`$ZodGUID`,(e,t)=>{t.pattern??=Oc,q.init(e,t)}),vl=R(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=kc(e)}else t.pattern??=kc();q.init(e,t)}),yl=R(`$ZodEmail`,(e,t)=>{t.pattern??=Ac,q.init(e,t)}),bl=R(`$ZodURL`,(e,t)=>{q.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===zc.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),xl=R(`$ZodEmoji`,(e,t)=>{t.pattern??=Mc(),q.init(e,t)}),Sl=R(`$ZodNanoID`,(e,t)=>{t.pattern??=Ec,q.init(e,t)}),Cl=R(`$ZodCUID`,(e,t)=>{t.pattern??=xc,q.init(e,t)}),wl=R(`$ZodCUID2`,(e,t)=>{t.pattern??=Sc,q.init(e,t)}),Tl=R(`$ZodULID`,(e,t)=>{t.pattern??=Cc,q.init(e,t)}),El=R(`$ZodXID`,(e,t)=>{t.pattern??=wc,q.init(e,t)}),Dl=R(`$ZodKSUID`,(e,t)=>{t.pattern??=Tc,q.init(e,t)}),Ol=R(`$ZodISODateTime`,(e,t)=>{t.pattern??=Gc(t),q.init(e,t)}),kl=R(`$ZodISODate`,(e,t)=>{t.pattern??=Hc,q.init(e,t)}),Al=R(`$ZodISOTime`,(e,t)=>{t.pattern??=Wc(t),q.init(e,t)}),jl=R(`$ZodISODuration`,(e,t)=>{t.pattern??=Dc,q.init(e,t)}),Ml=R(`$ZodIPv4`,(e,t)=>{t.pattern??=Nc,q.init(e,t),e._zod.bag.format=`ipv4`}),Nl=R(`$ZodIPv6`,(e,t)=>{t.pattern??=Pc,q.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Pl=R(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Fc,q.init(e,t)}),Fl=R(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Ic,q.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Il(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Ll=R(`$ZodBase64`,(e,t)=>{t.pattern??=Lc,q.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Il(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Rl(e){if(!Rc.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Il(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var zl=R(`$ZodBase64URL`,(e,t)=>{t.pattern??=Rc,q.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Rl(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Bl=R(`$ZodE164`,(e,t)=>{t.pattern??=Bc,q.init(e,t)});function Vl(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Hl=R(`$ZodJWT`,(e,t)=>{q.init(e,t),e._zod.check=n=>{Vl(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Ul=R(`$ZodNumber`,(e,t)=>{K.init(e,t),e._zod.pattern=e._zod.bag.pattern??Jc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Wl=R(`$ZodNumberFormat`,(e,t)=>{nl.init(e,t),Ul.init(e,t)}),Gl=R(`$ZodBoolean`,(e,t)=>{K.init(e,t),e._zod.pattern=Yc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Kl=R(`$ZodUnknown`,(e,t)=>{K.init(e,t),e._zod.parse=e=>e}),ql=R(`$ZodNever`,(e,t)=>{K.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Jl(e,t,n){e.issues.length&&t.issues.push(...Xs(n,e.issues)),t.value[n]=e.value}var Yl=R(`$ZodArray`,(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eJl(t,n,e))):Jl(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Xl(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Xs(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Zl(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=zs(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ql(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Xl(e,n,i,t,u,d))):Xl(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var $l=R(`$ZodObject`,(e,t)=>{if(K.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=ws(()=>Zl(t));B(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Ns,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Xl(n,t,e,s,r,i))):Xl(a,t,e,s,r,i)}return i?Ql(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),eu=R(`$ZodObjectJIT`,(e,t)=>{$l.init(e,t);let n=e._zod.parse,r=ws(()=>Zl(t)),i=e=>{let t=new ml([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=As(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=As(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` if (${n}.issues.length) { if (${o} in input) { payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ @@ -73,6 +73,6 @@ ${u(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t= } } - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Ms,s=!bs.jitless,c=s&&Ns.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Zl([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function eu(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!qs(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>G(e,r,B())))}),t)}var tu=z(`$ZodUnion`,(e,t)=>{q.init(e,t),V(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),V(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),V(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),V(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Ts(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>eu(t,r,e,i)):eu(o,r,e,i)}}),nu=z(`$ZodIntersection`,(e,t)=>{q.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>iu(e,t,n)):iu(e,i,a)}});function ru(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ps(e)&&Ps(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=ru(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),qs(e))return e;let o=ru(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var au=z(`$ZodRecord`,(e,t)=>{q.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Ps(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>G(e,r,B())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Ys(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Ys(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&qc.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>G(e,r,B())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Ys(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Ys(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),ou=z(`$ZodEnum`,(e,t)=>{q.init(e,t);let n=xs(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Is.has(typeof e)).map(e=>typeof e==`string`?Ls(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),su=z(`$ZodTransform`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ys(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new vs;return n.value=i,n.fallback=!0,n}});function cu(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var lu=z(`$ZodOptional`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,V(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),V(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Ts(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>cu(e,r)):cu(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),uu=z(`$ZodExactOptional`,(e,t)=>{lu.init(e,t),V(e._zod,`values`,()=>t.innerType._zod.values),V(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),du=z(`$ZodNullable`,(e,t)=>{q.init(e,t),V(e._zod,`optin`,()=>t.innerType._zod.optin),V(e._zod,`optout`,()=>t.innerType._zod.optout),V(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Ts(e.source)}|null)$`):void 0}),V(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),fu=z(`$ZodDefault`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,V(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>pu(e,t)):pu(r,t)}});function pu(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var mu=z(`$ZodPrefault`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,V(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),hu=z(`$ZodNonOptional`,(e,t)=>{q.init(e,t),V(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>gu(t,e)):gu(i,e)}});function gu(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var _u=z(`$ZodCatch`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,V(e._zod,`optout`,()=>t.innerType._zod.optout),V(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>G(e,n,B()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>G(e,n,B()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),vu=z(`$ZodPipe`,(e,t)=>{q.init(e,t),V(e._zod,`values`,()=>t.in._zod.values),V(e._zod,`optin`,()=>t.in._zod.optin),V(e._zod,`optout`,()=>t.out._zod.optout),V(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>yu(e,t.in,n)):yu(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>yu(e,t.out,n)):yu(r,t.out,n)}});function yu(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var bu=z(`$ZodReadonly`,(e,t)=>{q.init(e,t),V(e._zod,`propValues`,()=>t.innerType._zod.propValues),V(e._zod,`values`,()=>t.innerType._zod.values),V(e._zod,`optin`,()=>t.innerType?._zod?.optin),V(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(xu):xu(r)}});function xu(e){return e.value=Object.freeze(e.value),e}var Su=z(`$ZodCustom`,(e,t)=>{K.init(e,t),q.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Cu(t,n,r,e));Cu(i,n,r,e)}});function Cu(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Qs(e))}}var wu,Tu=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Eu(){return new Tu}(wu=globalThis).__zod_globalRegistry??(wu.__zod_globalRegistry=Eu());var Du=globalThis.__zod_globalRegistry;function Ou(e,t){return new e({type:`string`,...W(t)})}function ku(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...W(t)})}function Au(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...W(t)})}function ju(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...W(t)})}function Mu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...W(t)})}function Nu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...W(t)})}function Pu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...W(t)})}function Fu(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...W(t)})}function Iu(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...W(t)})}function Lu(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...W(t)})}function Ru(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...W(t)})}function zu(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...W(t)})}function Bu(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...W(t)})}function Vu(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...W(t)})}function Hu(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...W(t)})}function Uu(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...W(t)})}function Wu(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...W(t)})}function Gu(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...W(t)})}function Ku(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...W(t)})}function qu(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...W(t)})}function Ju(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...W(t)})}function Yu(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...W(t)})}function Xu(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...W(t)})}function Zu(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...W(t)})}function Qu(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...W(t)})}function $u(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...W(t)})}function ed(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...W(t)})}function td(e,t){return new e({type:`number`,checks:[],...W(t)})}function nd(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...W(t)})}function rd(e,t){return new e({type:`boolean`,...W(t)})}function id(e){return new e({type:`unknown`})}function ad(e,t){return new e({type:`never`,...W(t)})}function od(e,t){return new Qc({check:`less_than`,...W(t),value:e,inclusive:!1})}function sd(e,t){return new Qc({check:`less_than`,...W(t),value:e,inclusive:!0})}function cd(e,t){return new $c({check:`greater_than`,...W(t),value:e,inclusive:!1})}function ld(e,t){return new $c({check:`greater_than`,...W(t),value:e,inclusive:!0})}function ud(e,t){return new el({check:`multiple_of`,...W(t),value:e})}function dd(e,t){return new nl({check:`max_length`,...W(t),maximum:e})}function fd(e,t){return new rl({check:`min_length`,...W(t),minimum:e})}function pd(e,t){return new il({check:`length_equals`,...W(t),length:e})}function md(e,t){return new ol({check:`string_format`,format:`regex`,...W(t),pattern:e})}function hd(e){return new sl({check:`string_format`,format:`lowercase`,...W(e)})}function gd(e){return new cl({check:`string_format`,format:`uppercase`,...W(e)})}function _d(e,t){return new ll({check:`string_format`,format:`includes`,...W(t),includes:e})}function vd(e,t){return new ul({check:`string_format`,format:`starts_with`,...W(t),prefix:e})}function yd(e,t){return new dl({check:`string_format`,format:`ends_with`,...W(t),suffix:e})}function bd(e){return new fl({check:`overwrite`,tx:e})}function xd(e){return bd(t=>t.normalize(e))}function Sd(){return bd(e=>e.trim())}function Cd(){return bd(e=>e.toLowerCase())}function wd(){return bd(e=>e.toUpperCase())}function Td(){return bd(e=>As(e))}function Ed(e,t,n){return new e({type:`array`,element:t,...W(n)})}function Dd(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...W(n)})}function Od(e,t){let n=kd(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Qs(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Qs(r))}},e(t.value,t)),t);return n}function kd(e,t){let n=new K({check:`custom`,...W(t)});return n._zod.check=e,n}function Ad(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Du,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Y(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Y(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&X(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function jd(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Ns,s=!xs.jitless,c=s&&Ps.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Ql([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function tu(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Js(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>W(e,r,z())))}),t)}var nu=R(`$ZodUnion`,(e,t)=>{K.init(e,t),B(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),B(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),B(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),B(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Es(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>tu(t,r,e,i)):tu(o,r,e,i)}}),ru=R(`$ZodIntersection`,(e,t)=>{K.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>au(e,t,n)):au(e,i,a)}});function iu(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Fs(e)&&Fs(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=iu(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Js(e))return e;let o=iu(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var ou=R(`$ZodRecord`,(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Fs(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>W(e,r,z())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Xs(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Xs(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Jc.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>W(e,r,z())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Xs(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Xs(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),su=R(`$ZodEnum`,(e,t)=>{K.init(e,t);let n=Ss(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ls.has(typeof e)).map(e=>typeof e==`string`?Rs(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),cu=R(`$ZodTransform`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new bs(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new ys;return n.value=i,n.fallback=!0,n}});function lu(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var uu=R(`$ZodOptional`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,B(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),B(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Es(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>lu(e,r)):lu(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),du=R(`$ZodExactOptional`,(e,t)=>{uu.init(e,t),B(e._zod,`values`,()=>t.innerType._zod.values),B(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),fu=R(`$ZodNullable`,(e,t)=>{K.init(e,t),B(e._zod,`optin`,()=>t.innerType._zod.optin),B(e._zod,`optout`,()=>t.innerType._zod.optout),B(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Es(e.source)}|null)$`):void 0}),B(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),pu=R(`$ZodDefault`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,B(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>mu(e,t)):mu(r,t)}});function mu(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var hu=R(`$ZodPrefault`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,B(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),gu=R(`$ZodNonOptional`,(e,t)=>{K.init(e,t),B(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>_u(t,e)):_u(i,e)}});function _u(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var vu=R(`$ZodCatch`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,B(e._zod,`optout`,()=>t.innerType._zod.optout),B(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>W(e,n,z()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>W(e,n,z()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),yu=R(`$ZodPipe`,(e,t)=>{K.init(e,t),B(e._zod,`values`,()=>t.in._zod.values),B(e._zod,`optin`,()=>t.in._zod.optin),B(e._zod,`optout`,()=>t.out._zod.optout),B(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>bu(e,t.in,n)):bu(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>bu(e,t.out,n)):bu(r,t.out,n)}});function bu(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var xu=R(`$ZodReadonly`,(e,t)=>{K.init(e,t),B(e._zod,`propValues`,()=>t.innerType._zod.propValues),B(e._zod,`values`,()=>t.innerType._zod.values),B(e._zod,`optin`,()=>t.innerType?._zod?.optin),B(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Su):Su(r)}});function Su(e){return e.value=Object.freeze(e.value),e}var Cu=R(`$ZodCustom`,(e,t)=>{G.init(e,t),K.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>wu(t,n,r,e));wu(i,n,r,e)}});function wu(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push($s(e))}}var Tu,Eu=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Du(){return new Eu}(Tu=globalThis).__zod_globalRegistry??(Tu.__zod_globalRegistry=Du());var Ou=globalThis.__zod_globalRegistry;function ku(e,t){return new e({type:`string`,...U(t)})}function Au(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...U(t)})}function ju(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...U(t)})}function Mu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...U(t)})}function Nu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...U(t)})}function Pu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...U(t)})}function Fu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...U(t)})}function Iu(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...U(t)})}function Lu(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...U(t)})}function Ru(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...U(t)})}function zu(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...U(t)})}function Bu(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...U(t)})}function Vu(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...U(t)})}function Hu(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...U(t)})}function Uu(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...U(t)})}function Wu(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...U(t)})}function Gu(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...U(t)})}function Ku(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...U(t)})}function qu(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...U(t)})}function Ju(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...U(t)})}function Yu(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...U(t)})}function Xu(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...U(t)})}function Zu(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...U(t)})}function Qu(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...U(t)})}function $u(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...U(t)})}function ed(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...U(t)})}function td(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...U(t)})}function nd(e,t){return new e({type:`number`,checks:[],...U(t)})}function rd(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...U(t)})}function id(e,t){return new e({type:`boolean`,...U(t)})}function ad(e){return new e({type:`unknown`})}function od(e,t){return new e({type:`never`,...U(t)})}function sd(e,t){return new $c({check:`less_than`,...U(t),value:e,inclusive:!1})}function cd(e,t){return new $c({check:`less_than`,...U(t),value:e,inclusive:!0})}function ld(e,t){return new el({check:`greater_than`,...U(t),value:e,inclusive:!1})}function ud(e,t){return new el({check:`greater_than`,...U(t),value:e,inclusive:!0})}function dd(e,t){return new tl({check:`multiple_of`,...U(t),value:e})}function fd(e,t){return new rl({check:`max_length`,...U(t),maximum:e})}function pd(e,t){return new il({check:`min_length`,...U(t),minimum:e})}function md(e,t){return new al({check:`length_equals`,...U(t),length:e})}function hd(e,t){return new sl({check:`string_format`,format:`regex`,...U(t),pattern:e})}function gd(e){return new cl({check:`string_format`,format:`lowercase`,...U(e)})}function _d(e){return new ll({check:`string_format`,format:`uppercase`,...U(e)})}function vd(e,t){return new ul({check:`string_format`,format:`includes`,...U(t),includes:e})}function yd(e,t){return new dl({check:`string_format`,format:`starts_with`,...U(t),prefix:e})}function bd(e,t){return new fl({check:`string_format`,format:`ends_with`,...U(t),suffix:e})}function xd(e){return new pl({check:`overwrite`,tx:e})}function Sd(e){return xd(t=>t.normalize(e))}function Cd(){return xd(e=>e.trim())}function wd(){return xd(e=>e.toLowerCase())}function Td(){return xd(e=>e.toUpperCase())}function Ed(){return xd(e=>js(e))}function Dd(e,t,n){return new e({type:`array`,element:t,...U(n)})}function Od(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...U(n)})}function kd(e,t){let n=Ad(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push($s(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push($s(r))}},e(t.value,t)),t);return n}function Ad(e,t){let n=new G({check:`custom`,...U(t)});return n._zod.check=e,n}function jd(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Ou,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function J(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,J(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Y(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Md(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Md(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Pd(t,`input`,e.processors),output:Pd(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function X(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return X(r.element,n);if(r.type===`set`)return X(r.valueType,n);if(r.type===`lazy`)return X(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return X(r.innerType,n);if(r.type===`intersection`)return X(r.left,n)||X(r.right,n);if(r.type===`record`||r.type===`map`)return X(r.keyType,n)||X(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:X(r.in,n)||X(r.out,n);if(r.type===`object`){for(let e in r.shape)if(X(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(X(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(X(e,n))return!0;return!!(r.rest&&X(r.rest,n))}return!1}var Nd=(e,t={})=>n=>{let r=Ad({...n,processors:t});return Y(e,r),jd(r,e),Md(r,e)},Pd=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Ad({...i??{},target:a,io:t,processors:n});return Y(e,o),jd(o,e),Md(o,e)},Fd={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Id=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Fd[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Ld=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Rd=(e,t,n,r)=>{n.type=`boolean`},zd=(e,t,n,r)=>{n.not={}},Bd=(e,t,n,r)=>{let i=e._zod.def,a=xs(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Vd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Hd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Ud=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Y(a.element,t,{...r,path:[...r.path,`items`]})},Wd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Y(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Y(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Gd=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Y(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Kd=(e,t,n,r)=>{let i=e._zod.def,a=Y(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Y(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},qd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=Y(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=Y(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=Y(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Jd=(e,t,n,r)=>{let i=e._zod.def,a=Y(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Yd=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Xd=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Zd=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Qd=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},$d=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Y(o,t,r);let s=t.seen.get(e);s.ref=o},ef=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},tf=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},nf=z(`ZodISODateTime`,(e,t)=>{Dl.init(e,t),$.init(e,t)});function rf(e){return Zu(nf,e)}var af=z(`ZodISODate`,(e,t)=>{Ol.init(e,t),$.init(e,t)});function of(e){return Qu(af,e)}var sf=z(`ZodISOTime`,(e,t)=>{kl.init(e,t),$.init(e,t)});function cf(e){return $u(sf,e)}var lf=z(`ZodISODuration`,(e,t)=>{Al.init(e,t),$.init(e,t)});function uf(e){return ed(lf,e)}var Z=z(`ZodError`,(e,t)=>{ec.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>rc(e,t)},flatten:{value:t=>nc(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Ss,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Ss,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),df=ic(Z),ff=oc(Z),pf=cc(Z),mf=uc(Z),hf=fc(Z),gf=pc(Z),_f=mc(Z),vf=hc(Z),yf=gc(Z),bf=_c(Z),xf=vc(Z),Sf=yc(Z),Cf=new WeakMap;function wf(e,t,n){let r=Object.getPrototypeOf(e),i=Cf.get(r);if(i||(i=new Set,Cf.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Q=z(`ZodType`,(e,t)=>(q.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Pd(e,`input`),output:Pd(e,`output`)}}),e.toJSONSchema=Nd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>df(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>pf(e,t,n),e.parseAsync=async(t,n)=>ff(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>mf(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>hf(e,t,n),e.decode=(t,n)=>gf(e,t,n),e.encodeAsync=async(t,n)=>_f(e,t,n),e.decodeAsync=async(t,n)=>vf(e,t,n),e.safeEncode=(t,n)=>yf(e,t,n),e.safeDecode=(t,n)=>bf(e,t,n),e.safeEncodeAsync=async(t,n)=>xf(e,t,n),e.safeDecodeAsync=async(t,n)=>Sf(e,t,n),wf(e,`ZodType`,{check(...e){let t=this.def;return this.clone(H(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return U(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Ip(e,t))},superRefine(e,t){return this.check(Lp(e,t))},overwrite(e){return this.check(bd(e))},optional(){return vp(this)},exactOptional(){return bp(this)},nullable(){return Sp(this)},nullish(){return vp(Sp(this))},nonoptional(e){return Op(this,e)},array(){return ip(this)},or(e){return cp([this,e])},and(e){return up(this,e)},transform(e){return Mp(this,gp(e))},default(e){return wp(this,e)},prefault(e){return Ep(this,e)},catch(e){return Ap(this,e)},pipe(e){return Mp(this,e)},readonly(){return Pp(this)},describe(e){let t=this.clone();return Du.add(t,{description:e}),t},meta(...e){if(e.length===0)return Du.get(this);let t=this.clone();return Du.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Du.get(e)?.description},configurable:!0}),e)),Tf=z(`_ZodString`,(e,t)=>{hl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Id(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,wf(e,`_ZodString`,{regex(...e){return this.check(md(...e))},includes(...e){return this.check(_d(...e))},startsWith(...e){return this.check(vd(...e))},endsWith(...e){return this.check(yd(...e))},min(...e){return this.check(fd(...e))},max(...e){return this.check(dd(...e))},length(...e){return this.check(pd(...e))},nonempty(...e){return this.check(fd(1,...e))},lowercase(e){return this.check(hd(e))},uppercase(e){return this.check(gd(e))},trim(){return this.check(Sd())},normalize(...e){return this.check(xd(...e))},toLowerCase(){return this.check(Cd())},toUpperCase(){return this.check(wd())},slugify(){return this.check(Td())}})}),Ef=z(`ZodString`,(e,t)=>{hl.init(e,t),Tf.init(e,t),e.email=t=>e.check(ku(Of,t)),e.url=t=>e.check(Fu(jf,t)),e.jwt=t=>e.check(Xu(Kf,t)),e.emoji=t=>e.check(Iu(Mf,t)),e.guid=t=>e.check(Au(kf,t)),e.uuid=t=>e.check(ju(Af,t)),e.uuidv4=t=>e.check(Mu(Af,t)),e.uuidv6=t=>e.check(Nu(Af,t)),e.uuidv7=t=>e.check(Pu(Af,t)),e.nanoid=t=>e.check(Lu(Nf,t)),e.guid=t=>e.check(Au(kf,t)),e.cuid=t=>e.check(Ru(Pf,t)),e.cuid2=t=>e.check(zu(Ff,t)),e.ulid=t=>e.check(Bu(If,t)),e.base64=t=>e.check(qu(Uf,t)),e.base64url=t=>e.check(Ju(Wf,t)),e.xid=t=>e.check(Vu(Lf,t)),e.ksuid=t=>e.check(Hu(Rf,t)),e.ipv4=t=>e.check(Uu(zf,t)),e.ipv6=t=>e.check(Wu(Bf,t)),e.cidrv4=t=>e.check(Gu(Vf,t)),e.cidrv6=t=>e.check(Ku(Hf,t)),e.e164=t=>e.check(Yu(Gf,t)),e.datetime=t=>e.check(rf(t)),e.date=t=>e.check(of(t)),e.time=t=>e.check(cf(t)),e.duration=t=>e.check(uf(t))});function Df(e){return Ou(Ef,e)}var $=z(`ZodStringFormat`,(e,t)=>{J.init(e,t),Tf.init(e,t)}),Of=z(`ZodEmail`,(e,t)=>{vl.init(e,t),$.init(e,t)}),kf=z(`ZodGUID`,(e,t)=>{gl.init(e,t),$.init(e,t)}),Af=z(`ZodUUID`,(e,t)=>{_l.init(e,t),$.init(e,t)}),jf=z(`ZodURL`,(e,t)=>{yl.init(e,t),$.init(e,t)}),Mf=z(`ZodEmoji`,(e,t)=>{bl.init(e,t),$.init(e,t)}),Nf=z(`ZodNanoID`,(e,t)=>{xl.init(e,t),$.init(e,t)}),Pf=z(`ZodCUID`,(e,t)=>{Sl.init(e,t),$.init(e,t)}),Ff=z(`ZodCUID2`,(e,t)=>{Cl.init(e,t),$.init(e,t)}),If=z(`ZodULID`,(e,t)=>{wl.init(e,t),$.init(e,t)}),Lf=z(`ZodXID`,(e,t)=>{Tl.init(e,t),$.init(e,t)}),Rf=z(`ZodKSUID`,(e,t)=>{El.init(e,t),$.init(e,t)}),zf=z(`ZodIPv4`,(e,t)=>{jl.init(e,t),$.init(e,t)}),Bf=z(`ZodIPv6`,(e,t)=>{Ml.init(e,t),$.init(e,t)}),Vf=z(`ZodCIDRv4`,(e,t)=>{Nl.init(e,t),$.init(e,t)}),Hf=z(`ZodCIDRv6`,(e,t)=>{Pl.init(e,t),$.init(e,t)}),Uf=z(`ZodBase64`,(e,t)=>{Il.init(e,t),$.init(e,t)}),Wf=z(`ZodBase64URL`,(e,t)=>{Rl.init(e,t),$.init(e,t)}),Gf=z(`ZodE164`,(e,t)=>{zl.init(e,t),$.init(e,t)}),Kf=z(`ZodJWT`,(e,t)=>{Vl.init(e,t),$.init(e,t)}),qf=z(`ZodNumber`,(e,t)=>{Hl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ld(e,t,n,r),wf(e,`ZodNumber`,{gt(e,t){return this.check(cd(e,t))},gte(e,t){return this.check(ld(e,t))},min(e,t){return this.check(ld(e,t))},lt(e,t){return this.check(od(e,t))},lte(e,t){return this.check(sd(e,t))},max(e,t){return this.check(sd(e,t))},int(e){return this.check(Xf(e))},safe(e){return this.check(Xf(e))},positive(e){return this.check(cd(0,e))},nonnegative(e){return this.check(ld(0,e))},negative(e){return this.check(od(0,e))},nonpositive(e){return this.check(sd(0,e))},multipleOf(e,t){return this.check(ud(e,t))},step(e,t){return this.check(ud(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Jf(e){return td(qf,e)}var Yf=z(`ZodNumberFormat`,(e,t)=>{Ul.init(e,t),qf.init(e,t)});function Xf(e){return nd(Yf,e)}var Zf=z(`ZodBoolean`,(e,t)=>{Wl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rd(e,t,n,r)});function Qf(e){return rd(Zf,e)}var $f=z(`ZodUnknown`,(e,t)=>{Gl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function ep(){return id($f)}var tp=z(`ZodNever`,(e,t)=>{Kl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zd(e,t,n,r)});function np(e){return ad(tp,e)}var rp=z(`ZodArray`,(e,t)=>{Jl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ud(e,t,n,r),e.element=t.element,wf(e,`ZodArray`,{min(e,t){return this.check(fd(e,t))},nonempty(e){return this.check(fd(1,e))},max(e,t){return this.check(dd(e,t))},length(e,t){return this.check(pd(e,t))},unwrap(){return this.element}})});function ip(e,t){return Ed(rp,e,t)}var ap=z(`ZodObject`,(e,t)=>{$l.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wd(e,t,n,r),V(e,`shape`,()=>t.shape),wf(e,`ZodObject`,{keyof(){return mp(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:ep()})},loose(){return this.clone({...this._zod.def,catchall:ep()})},strict(){return this.clone({...this._zod.def,catchall:np()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Hs(this,e)},safeExtend(e){return Us(this,e)},merge(e){return Ws(this,e)},pick(e){return Bs(this,e)},omit(e){return Vs(this,e)},partial(...e){return Gs(_p,this,e[0])},required(...e){return Ks(Dp,this,e[0])}})});function op(e,t){return new ap({type:`object`,shape:e??{},...W(t)})}var sp=z(`ZodUnion`,(e,t)=>{tu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gd(e,t,n,r),e.options=t.options});function cp(e,t){return new sp({type:`union`,options:e,...W(t)})}var lp=z(`ZodIntersection`,(e,t)=>{nu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kd(e,t,n,r)});function up(e,t){return new lp({type:`intersection`,left:e,right:t})}var dp=z(`ZodRecord`,(e,t)=>{au.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function fp(e,t,n){return!t||!t._zod?new dp({type:`record`,keyType:Df(),valueType:e,...W(t)}):new dp({type:`record`,keyType:e,valueType:t,...W(n)})}var pp=z(`ZodEnum`,(e,t)=>{ou.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bd(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new pp({...t,checks:[],...W(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new pp({...t,checks:[],...W(r),entries:i})}});function mp(e,t){return new pp({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...W(t)})}var hp=z(`ZodTransform`,(e,t)=>{su.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hd(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ys(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Qs(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Qs(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function gp(e){return new hp({type:`transform`,transform:e})}var _p=z(`ZodOptional`,(e,t)=>{lu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function vp(e){return new _p({type:`optional`,innerType:e})}var yp=z(`ZodExactOptional`,(e,t)=>{uu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function bp(e){return new yp({type:`optional`,innerType:e})}var xp=z(`ZodNullable`,(e,t)=>{du.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Sp(e){return new xp({type:`nullable`,innerType:e})}var Cp=z(`ZodDefault`,(e,t)=>{fu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function wp(e,t){return new Cp({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Fs(t)}})}var Tp=z(`ZodPrefault`,(e,t)=>{mu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ep(e,t){return new Tp({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Fs(t)}})}var Dp=z(`ZodNonOptional`,(e,t)=>{hu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Op(e,t){return new Dp({type:`nonoptional`,innerType:e,...W(t)})}var kp=z(`ZodCatch`,(e,t)=>{_u.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ap(e,t){return new kp({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var jp=z(`ZodPipe`,(e,t)=>{vu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$d(e,t,n,r),e.in=t.in,e.out=t.out});function Mp(e,t){return new jp({type:`pipe`,in:e,out:t})}var Np=z(`ZodReadonly`,(e,t)=>{bu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ef(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Pp(e){return new Np({type:`readonly`,innerType:e})}var Fp=z(`ZodCustom`,(e,t)=>{Su.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vd(e,t,n,r)});function Ip(e,t={}){return Dd(Fp,e,t)}function Lp(e,t){return Od(e,t)}var Rp=`spinifex:v2:aws-session`,zp=op({accessKeyId:Df().min(16,`Access Key ID must be at least 16 characters`),secretAccessKey:Df().min(1,`Secret Access Key is required`)}),Bp=op({accessKeyId:Df().min(1),secretAccessKey:Df().min(1),sessionToken:Df().min(1),expiration:Df().min(1)}),Vp;function Hp(e){let t=Date.parse(e);return Number.isNaN(t)||t<=Date.now()}function Up(){try{let e=localStorage.getItem(Rp);if(!e)return null;let t=JSON.parse(e),n=Bp.safeParse(t);return n.success?n.data:null}catch{return null}}function Wp(){return Vp===void 0&&(Vp=Up()),Vp&&Hp(Vp.expiration)?(Kp(),null):Vp}function Gp(e){try{localStorage.setItem(Rp,JSON.stringify(e)),Vp=e}catch{Vp=e}}function Kp(){try{localStorage.removeItem(Rp)}catch{}Vp=null}export{Ur as $,Ra as A,Xt as At,Ki as B,jt as Bt,$o as C,vn as Ct,Do as D,on as Dt,Io as E,cn as Et,Ta as F,N as Ft,Ni as G,Ot as Gt,Ui as H,Tt as Ht,ya as I,Ht as It,R as J,Ai as K,_ as Kt,ma as L,At as Lt,ka as M,Jt as Mt,Aa as N,P as Nt,To as O,Qt as Ot,Da as P,Wt as Pt,Kr as Q,pa as R,bt as Rt,rs as S,bn as St,Vo as T,F as Tt,zi as U,Ct as Ut,Wi as V,St as Vt,Pi as W,Et as Wt,Ti as X,Ei as Y,xi as Z,ms as _,Vn as _t,mp as a,Pr as at,ls as b,kn as bt,Xf as c,Or as ct,fp as d,Er as dt,Rr as et,Df as f,Tr as ft,gs as g,qn as gt,ec as h,Jn as ht,Gp as i,Fr as it,La as j,Yt as jt,za as k,Zt as kt,Jf as l,Dr as lt,sc as m,Zn as mt,Kp as n,Lr as nt,ip as o,Nr as ot,ac as p,Cr as pt,Di as q,Wp as r,Ir as rt,Qf as s,kr as st,zp as t,zr as tt,op as u,wr as ut,ds as v,jn as vt,Xo as w,hn as wt,as as x,Sn as xt,us as y,On as yt,Zi as z,kt as zt}; \ No newline at end of file +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Nd(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Fd(t,`input`,e.processors),output:Fd(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Y(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Y(r.element,n);if(r.type===`set`)return Y(r.valueType,n);if(r.type===`lazy`)return Y(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return Y(r.innerType,n);if(r.type===`intersection`)return Y(r.left,n)||Y(r.right,n);if(r.type===`record`||r.type===`map`)return Y(r.keyType,n)||Y(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Y(r.in,n)||Y(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Y(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Y(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Y(e,n))return!0;return!!(r.rest&&Y(r.rest,n))}return!1}var Pd=(e,t={})=>n=>{let r=jd({...n,processors:t});return J(e,r),Md(r,e),Nd(r,e)},Fd=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=jd({...i??{},target:a,io:t,processors:n});return J(e,o),Md(o,e),Nd(o,e)},Id={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Ld=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Id[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Rd=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},zd=(e,t,n,r)=>{n.type=`boolean`},Bd=(e,t,n,r)=>{n.not={}},Vd=(e,t,n,r)=>{let i=e._zod.def,a=Ss(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Hd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Ud=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Wd=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=J(a.element,t,{...r,path:[...r.path,`items`]})},Gd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=J(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=J(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Kd=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>J(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},qd=(e,t,n,r)=>{let i=e._zod.def,a=J(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=J(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Jd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=J(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=J(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=J(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Yd=(e,t,n,r)=>{let i=e._zod.def,a=J(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Xd=(e,t,n,r)=>{let i=e._zod.def;J(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Zd=(e,t,n,r)=>{let i=e._zod.def;J(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Qd=(e,t,n,r)=>{let i=e._zod.def;J(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},$d=(e,t,n,r)=>{let i=e._zod.def;J(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},ef=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;J(o,t,r);let s=t.seen.get(e);s.ref=o},tf=(e,t,n,r)=>{let i=e._zod.def;J(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},nf=(e,t,n,r)=>{let i=e._zod.def;J(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},rf=R(`ZodISODateTime`,(e,t)=>{Ol.init(e,t),Q.init(e,t)});function af(e){return Qu(rf,e)}var of=R(`ZodISODate`,(e,t)=>{kl.init(e,t),Q.init(e,t)});function sf(e){return $u(of,e)}var cf=R(`ZodISOTime`,(e,t)=>{Al.init(e,t),Q.init(e,t)});function lf(e){return ed(cf,e)}var uf=R(`ZodISODuration`,(e,t)=>{jl.init(e,t),Q.init(e,t)});function df(e){return td(uf,e)}var X=R(`ZodError`,(e,t)=>{tc.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>ic(e,t)},flatten:{value:t=>rc(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Cs,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Cs,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),ff=ac(X),pf=sc(X),mf=lc(X),hf=dc(X),gf=pc(X),_f=mc(X),vf=hc(X),yf=gc(X),bf=_c(X),xf=vc(X),Sf=yc(X),Cf=bc(X),wf=new WeakMap;function Tf(e,t,n){let r=Object.getPrototypeOf(e),i=wf.get(r);if(i||(i=new Set,wf.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Z=R(`ZodType`,(e,t)=>(K.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Fd(e,`input`),output:Fd(e,`output`)}}),e.toJSONSchema=Pd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>ff(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>mf(e,t,n),e.parseAsync=async(t,n)=>pf(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>hf(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>gf(e,t,n),e.decode=(t,n)=>_f(e,t,n),e.encodeAsync=async(t,n)=>vf(e,t,n),e.decodeAsync=async(t,n)=>yf(e,t,n),e.safeEncode=(t,n)=>bf(e,t,n),e.safeDecode=(t,n)=>xf(e,t,n),e.safeEncodeAsync=async(t,n)=>Sf(e,t,n),e.safeDecodeAsync=async(t,n)=>Cf(e,t,n),Tf(e,`ZodType`,{check(...e){let t=this.def;return this.clone(V(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return H(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Lp(e,t))},superRefine(e,t){return this.check(Rp(e,t))},overwrite(e){return this.check(xd(e))},optional(){return yp(this)},exactOptional(){return xp(this)},nullable(){return Cp(this)},nullish(){return yp(Cp(this))},nonoptional(e){return kp(this,e)},array(){return ap(this)},or(e){return lp([this,e])},and(e){return dp(this,e)},transform(e){return Np(this,_p(e))},default(e){return Tp(this,e)},prefault(e){return Dp(this,e)},catch(e){return jp(this,e)},pipe(e){return Np(this,e)},readonly(){return Fp(this)},describe(e){let t=this.clone();return Ou.add(t,{description:e}),t},meta(...e){if(e.length===0)return Ou.get(this);let t=this.clone();return Ou.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Ou.get(e)?.description},configurable:!0}),e)),Ef=R(`_ZodString`,(e,t)=>{gl.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ld(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Tf(e,`_ZodString`,{regex(...e){return this.check(hd(...e))},includes(...e){return this.check(vd(...e))},startsWith(...e){return this.check(yd(...e))},endsWith(...e){return this.check(bd(...e))},min(...e){return this.check(pd(...e))},max(...e){return this.check(fd(...e))},length(...e){return this.check(md(...e))},nonempty(...e){return this.check(pd(1,...e))},lowercase(e){return this.check(gd(e))},uppercase(e){return this.check(_d(e))},trim(){return this.check(Cd())},normalize(...e){return this.check(Sd(...e))},toLowerCase(){return this.check(wd())},toUpperCase(){return this.check(Td())},slugify(){return this.check(Ed())}})}),Df=R(`ZodString`,(e,t)=>{gl.init(e,t),Ef.init(e,t),e.email=t=>e.check(Au(kf,t)),e.url=t=>e.check(Iu(Mf,t)),e.jwt=t=>e.check(Zu(qf,t)),e.emoji=t=>e.check(Lu(Nf,t)),e.guid=t=>e.check(ju(Af,t)),e.uuid=t=>e.check(Mu(jf,t)),e.uuidv4=t=>e.check(Nu(jf,t)),e.uuidv6=t=>e.check(Pu(jf,t)),e.uuidv7=t=>e.check(Fu(jf,t)),e.nanoid=t=>e.check(Ru(Pf,t)),e.guid=t=>e.check(ju(Af,t)),e.cuid=t=>e.check(zu(Ff,t)),e.cuid2=t=>e.check(Bu(If,t)),e.ulid=t=>e.check(Vu(Lf,t)),e.base64=t=>e.check(Ju(Wf,t)),e.base64url=t=>e.check(Yu(Gf,t)),e.xid=t=>e.check(Hu(Rf,t)),e.ksuid=t=>e.check(Uu(zf,t)),e.ipv4=t=>e.check(Wu(Bf,t)),e.ipv6=t=>e.check(Gu(Vf,t)),e.cidrv4=t=>e.check(Ku(Hf,t)),e.cidrv6=t=>e.check(qu(Uf,t)),e.e164=t=>e.check(Xu(Kf,t)),e.datetime=t=>e.check(af(t)),e.date=t=>e.check(sf(t)),e.time=t=>e.check(lf(t)),e.duration=t=>e.check(df(t))});function Of(e){return ku(Df,e)}var Q=R(`ZodStringFormat`,(e,t)=>{q.init(e,t),Ef.init(e,t)}),kf=R(`ZodEmail`,(e,t)=>{yl.init(e,t),Q.init(e,t)}),Af=R(`ZodGUID`,(e,t)=>{_l.init(e,t),Q.init(e,t)}),jf=R(`ZodUUID`,(e,t)=>{vl.init(e,t),Q.init(e,t)}),Mf=R(`ZodURL`,(e,t)=>{bl.init(e,t),Q.init(e,t)}),Nf=R(`ZodEmoji`,(e,t)=>{xl.init(e,t),Q.init(e,t)}),Pf=R(`ZodNanoID`,(e,t)=>{Sl.init(e,t),Q.init(e,t)}),Ff=R(`ZodCUID`,(e,t)=>{Cl.init(e,t),Q.init(e,t)}),If=R(`ZodCUID2`,(e,t)=>{wl.init(e,t),Q.init(e,t)}),Lf=R(`ZodULID`,(e,t)=>{Tl.init(e,t),Q.init(e,t)}),Rf=R(`ZodXID`,(e,t)=>{El.init(e,t),Q.init(e,t)}),zf=R(`ZodKSUID`,(e,t)=>{Dl.init(e,t),Q.init(e,t)}),Bf=R(`ZodIPv4`,(e,t)=>{Ml.init(e,t),Q.init(e,t)}),Vf=R(`ZodIPv6`,(e,t)=>{Nl.init(e,t),Q.init(e,t)}),Hf=R(`ZodCIDRv4`,(e,t)=>{Pl.init(e,t),Q.init(e,t)}),Uf=R(`ZodCIDRv6`,(e,t)=>{Fl.init(e,t),Q.init(e,t)}),Wf=R(`ZodBase64`,(e,t)=>{Ll.init(e,t),Q.init(e,t)}),Gf=R(`ZodBase64URL`,(e,t)=>{zl.init(e,t),Q.init(e,t)}),Kf=R(`ZodE164`,(e,t)=>{Bl.init(e,t),Q.init(e,t)}),qf=R(`ZodJWT`,(e,t)=>{Hl.init(e,t),Q.init(e,t)}),Jf=R(`ZodNumber`,(e,t)=>{Ul.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rd(e,t,n,r),Tf(e,`ZodNumber`,{gt(e,t){return this.check(ld(e,t))},gte(e,t){return this.check(ud(e,t))},min(e,t){return this.check(ud(e,t))},lt(e,t){return this.check(sd(e,t))},lte(e,t){return this.check(cd(e,t))},max(e,t){return this.check(cd(e,t))},int(e){return this.check(Zf(e))},safe(e){return this.check(Zf(e))},positive(e){return this.check(ld(0,e))},nonnegative(e){return this.check(ud(0,e))},negative(e){return this.check(sd(0,e))},nonpositive(e){return this.check(cd(0,e))},multipleOf(e,t){return this.check(dd(e,t))},step(e,t){return this.check(dd(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Yf(e){return nd(Jf,e)}var Xf=R(`ZodNumberFormat`,(e,t)=>{Wl.init(e,t),Jf.init(e,t)});function Zf(e){return rd(Xf,e)}var Qf=R(`ZodBoolean`,(e,t)=>{Gl.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zd(e,t,n,r)});function $f(e){return id(Qf,e)}var ep=R(`ZodUnknown`,(e,t)=>{Kl.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function tp(){return ad(ep)}var np=R(`ZodNever`,(e,t)=>{ql.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bd(e,t,n,r)});function rp(e){return od(np,e)}var ip=R(`ZodArray`,(e,t)=>{Yl.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wd(e,t,n,r),e.element=t.element,Tf(e,`ZodArray`,{min(e,t){return this.check(pd(e,t))},nonempty(e){return this.check(pd(1,e))},max(e,t){return this.check(fd(e,t))},length(e,t){return this.check(md(e,t))},unwrap(){return this.element}})});function ap(e,t){return Dd(ip,e,t)}var op=R(`ZodObject`,(e,t)=>{eu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gd(e,t,n,r),B(e,`shape`,()=>t.shape),Tf(e,`ZodObject`,{keyof(){return hp(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:tp()})},loose(){return this.clone({...this._zod.def,catchall:tp()})},strict(){return this.clone({...this._zod.def,catchall:rp()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Us(this,e)},safeExtend(e){return Ws(this,e)},merge(e){return Gs(this,e)},pick(e){return Vs(this,e)},omit(e){return Hs(this,e)},partial(...e){return Ks(vp,this,e[0])},required(...e){return qs(Op,this,e[0])}})});function sp(e,t){return new op({type:`object`,shape:e??{},...U(t)})}var cp=R(`ZodUnion`,(e,t)=>{nu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kd(e,t,n,r),e.options=t.options});function lp(e,t){return new cp({type:`union`,options:e,...U(t)})}var up=R(`ZodIntersection`,(e,t)=>{ru.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qd(e,t,n,r)});function dp(e,t){return new up({type:`intersection`,left:e,right:t})}var fp=R(`ZodRecord`,(e,t)=>{ou.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function pp(e,t,n){return!t||!t._zod?new fp({type:`record`,keyType:Of(),valueType:e,...U(t)}):new fp({type:`record`,keyType:e,valueType:t,...U(n)})}var mp=R(`ZodEnum`,(e,t)=>{su.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vd(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new mp({...t,checks:[],...U(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new mp({...t,checks:[],...U(r),entries:i})}});function hp(e,t){return new mp({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...U(t)})}var gp=R(`ZodTransform`,(e,t)=>{cu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ud(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new bs(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push($s(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push($s(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function _p(e){return new gp({type:`transform`,transform:e})}var vp=R(`ZodOptional`,(e,t)=>{uu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yp(e){return new vp({type:`optional`,innerType:e})}var bp=R(`ZodExactOptional`,(e,t)=>{du.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function xp(e){return new bp({type:`optional`,innerType:e})}var Sp=R(`ZodNullable`,(e,t)=>{fu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Cp(e){return new Sp({type:`nullable`,innerType:e})}var wp=R(`ZodDefault`,(e,t)=>{pu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Tp(e,t){return new wp({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Is(t)}})}var Ep=R(`ZodPrefault`,(e,t)=>{hu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Dp(e,t){return new Ep({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Is(t)}})}var Op=R(`ZodNonOptional`,(e,t)=>{gu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function kp(e,t){return new Op({type:`nonoptional`,innerType:e,...U(t)})}var Ap=R(`ZodCatch`,(e,t)=>{vu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$d(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function jp(e,t){return new Ap({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Mp=R(`ZodPipe`,(e,t)=>{yu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ef(e,t,n,r),e.in=t.in,e.out=t.out});function Np(e,t){return new Mp({type:`pipe`,in:e,out:t})}var Pp=R(`ZodReadonly`,(e,t)=>{xu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Fp(e){return new Pp({type:`readonly`,innerType:e})}var Ip=R(`ZodCustom`,(e,t)=>{Cu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hd(e,t,n,r)});function Lp(e,t={}){return Od(Ip,e,t)}function Rp(e,t){return kd(e,t)}var zp=`spinifex:v2:aws-session`,Bp=sp({accessKeyId:Of().min(16,`Access Key ID must be at least 16 characters`),secretAccessKey:Of().min(1,`Secret Access Key is required`)}),Vp=sp({accessKeyId:Of().min(1),secretAccessKey:Of().min(1),sessionToken:Of().min(1),expiration:Of().min(1)}),$;function Hp(e){let t=Date.parse(e);return Number.isNaN(t)||t<=Date.now()}function Up(){try{let e=localStorage.getItem(zp);if(!e)return null;let t=JSON.parse(e),n=Vp.safeParse(t);return n.success?n.data:null}catch{return null}}function Wp(){return $===void 0&&($=Up()),$&&Hp($.expiration)?(Kp(),null):$}function Gp(e){try{localStorage.setItem(zp,JSON.stringify(e)),$=e}catch{$=e}}function Kp(){try{localStorage.removeItem(zp)}catch{}$=null}export{zr as $,Ra as A,Xt as At,Gi as B,wt as Bt,es as C,gn as Ct,Eo as D,$t as Dt,Oo as E,sn as Et,ba as F,Ut as Ft,ji as G,_ as Gt,Bi as H,Tt as Ht,ha as I,Mt as It,Di as J,Oi as K,ma as L,St as Lt,ja as M,N as Mt,Oa as N,Gt as Nt,Ba as O,Qt as Ot,Ea as P,M as Pt,Wr as Q,Qi as R,jt as Rt,is as S,yn as St,Lo as T,ln as Tt,Fi as U,Ot as Ut,Wi as V,Dt as Vt,Pi as W,At as Wt,Si as X,Ei as Y,qr as Z,hs as _,Mn as _t,hp as a,Pr as at,us as b,Cn as bt,Zf as c,Or as ct,pp as d,Er as dt,Br as et,Of as f,wr as ft,_s as g,Hn as gt,tc as h,Jn as ht,Gp as i,Fr as it,Aa as j,Yt as jt,za as k,Zt as kt,Yf as l,Tr as lt,cc as m,Yn as mt,Kp as n,Lr as nt,ap as o,Ar as ot,oc as p,Qn as pt,L as q,Wp as r,Ir as rt,$f as s,kr as st,Bp as t,Rr as tt,sp as u,Dr as ut,fs as v,kn as vt,Zo as w,P as wt,os as x,xn as xt,ds as y,An as yt,qi as z,Nt as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js b/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js index c76e48cb5..ceae30ce1 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js @@ -1,2 +1,2 @@ -import{i as e,n as t,o as n,r}from"./compiler-runtime.js";import{A as i,F as a,H as o,N as s,U as c,i as l,p as ee,s as te,t as ne,u}from"./useStore.js";import{$ as re,A as ie,At as ae,B as oe,C as se,Ct as ce,D as le,Dt as ue,E as de,Et as fe,F as pe,Ft as me,G as he,H as ge,I as _e,It as ve,J as ye,K as be,L as xe,M as Se,Mt as Ce,N as we,Nt as Te,Ot as Ee,P as De,Pt as eee,R as Oe,S as ke,St as Ae,T as je,Tt as d,U as Me,V as Ne,W as Pe,X as Fe,Y as Ie,Z as Le,_ as Re,_t as ze,at as Be,b as Ve,bt as He,ct as Ue,dt as We,et as Ge,ft as Ke,g as qe,gt as Je,ht as Ye,it as Xe,j as Ze,k as Qe,kt as $e,lt as et,mt as tt,nt,pt as rt,q as it,r as at,rt as ot,st,tt as ct,v as lt,vt as ut,w as tee,wt as dt,x as ft,xt as pt,y as mt,yt as ht,z as gt}from"./auth.js";import{A as _t,C as vt,D as yt,F as bt,I as xt,M as nee,N as St,O as Ct,P as wt,S as Tt,c as Et,f as Dt,j as Ot,k as kt,p as At,s as ree,u as jt,v as Mt,x as Nt}from"./tslib.es6.js";import{n as iee,r as aee}from"./index.browser.js";var Pt=`Error preloading route! ☝️`,Ft=e((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ft()})),Lt=n(r(),1);t();var Rt=n(It(),1);function zt(e,t){let n=l(),r=o(t),{activeProps:re,inactiveProps:ie,activeOptions:ae,to:oe,preload:se,preloadDelay:ce,preloadIntentProximity:le,hashScrollIntoView:ue,replace:de,startTransition:fe,resetScroll:pe,viewTransition:me,children:he,target:ge,disabled:_e,style:ve,className:ye,onClick:be,onBlur:xe,onFocus:Se,onMouseEnter:Ce,onMouseLeave:we,onTouchStart:Te,ignoreBlocker:Ee,params:De,search:eee,hash:Oe,state:ke,mask:Ae,reloadDocument:je,unsafeRelative:d,from:Me,_fromLocation:Ne,...Pe}=e,Fe=te(),Ie=Lt.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),Le=ne(n.stores.location,e=>e,(e,t)=>e.href===t.href),Re=Lt.useMemo(()=>{let e={_fromLocation:Le,...Ie};return n.buildLocation(e)},[n,Le,Ie]),ze=Re.maskedLocation?Re.maskedLocation.publicHref:Re.publicHref,Be=Re.maskedLocation?Re.maskedLocation.external:Re.external,Ve=Lt.useMemo(()=>Jt(ze,Be,n.history,_e),[_e,Be,ze,n.history]),He=Lt.useMemo(()=>{if(Ve?.external)return a(Ve.href,n.protocolAllowlist)?void 0:Ve.href;if(!Yt(oe)&&!(typeof oe!=`string`||oe.indexOf(`:`)===-1))try{return new URL(oe),a(oe,n.protocolAllowlist)?void 0:oe}catch{}},[oe,Ve,n.protocolAllowlist]),Ue=Lt.useMemo(()=>{if(He)return!1;if(ae?.exact){if(!u(Le.pathname,Re.pathname,n.basepath))return!1}else{let e=ee(Le.pathname,n.basepath),t=ee(Re.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(ae?.includeSearch??!0)&&!i(Le.search,Re.search,{partial:!ae?.exact,ignoreUndefined:!ae?.explicitUndefined})?!1:ae?.includeHash?Fe&&Le.hash===Re.hash:!0},[ae?.exact,ae?.explicitUndefined,ae?.includeHash,ae?.includeSearch,Le,He,Fe,Re.hash,Re.pathname,Re.search,n.basepath]),We=Ue?s(re,{})??Vt:Bt,Ge=Ue?Bt:s(ie,{})??Bt,Ke=[ye,We.className,Ge.className].filter(Boolean).join(` `),qe=(ve||We.style||Ge.style)&&{...ve,...We.style,...Ge.style},[Je,Ye]=Lt.useState(!1),Xe=Lt.useRef(!1),Ze=e.reloadDocument||He?!1:se??n.options.defaultPreload,Qe=ce??n.options.defaultPreloadDelay??0,$e=Lt.useCallback(()=>{n.preloadRoute({...Ie,_builtLocation:Re}).catch(e=>{console.warn(e),console.warn(Pt)})},[n,Ie,Re]);c(r,Lt.useCallback(e=>{e?.isIntersecting&&$e()},[$e]),Kt,{disabled:!!_e||Ze!==`viewport`}),Lt.useEffect(()=>{Xe.current||!_e&&Ze===`render`&&($e(),Xe.current=!0)},[_e,$e,Ze]);let et=e=>{let t=e.currentTarget.getAttribute(`target`),r=ge===void 0?t:ge;if(!_e&&!Zt(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,Rt.flushSync)(()=>{Ye(!0)});let t=n.subscribe(`onResolved`,()=>{t(),Ye(!1)});n.navigate({...Ie,replace:de,resetScroll:pe,hashScrollIntoView:ue,startTransition:fe,viewTransition:me,ignoreBlocker:Ee})}};if(He)return{...Pe,ref:r,href:He,...he&&{children:he},...ge&&{target:ge},..._e&&{disabled:_e},...ve&&{style:ve},...ye&&{className:ye},...be&&{onClick:be},...xe&&{onBlur:xe},...Se&&{onFocus:Se},...Ce&&{onMouseEnter:Ce},...we&&{onMouseLeave:we},...Te&&{onTouchStart:Te}};let tt=e=>{if(_e||Ze!==`intent`)return;if(!Qe){$e();return}let t=e.currentTarget;if(Gt.has(t))return;let n=setTimeout(()=>{Gt.delete(t),$e()},Qe);Gt.set(t,n)},nt=e=>{_e||Ze!==`intent`||$e()},rt=e=>{if(_e||!Ze||!Qe)return;let t=e.currentTarget,n=Gt.get(t);n&&(clearTimeout(n),Gt.delete(t))};return{...Pe,...We,...Ge,href:Ve?.href,ref:r,onClick:qt([be,et]),onBlur:qt([xe,rt]),onFocus:qt([Se,tt]),onMouseEnter:qt([Ce,tt]),onMouseLeave:qt([we,rt]),onTouchStart:qt([Te,nt]),disabled:!!_e,target:ge,...qe&&{style:qe},...Ke&&{className:Ke},..._e&&Ht,...Ue&&Ut,...Fe&&Je&&Wt}}var Bt={},Vt={className:`active`},Ht={role:`link`,"aria-disabled":!0},Ut={"data-status":`active`,"aria-current":`page`},Wt={"data-transitioning":`transitioning`},Gt=new WeakMap,Kt={rootMargin:`100px`},qt=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Jt(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function Yt(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Xt=Lt.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=zt(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return Lt.createElement(`a`,t,o)}return Lt.createElement(n,a,o)});function Zt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Qt=class extends Be{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=d.of(e?.input),l=[],ee=[],te=!1,ne,u=new me({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(u,s),this.setHostPrefix(u,e,r);let t=fe(e.traits);if(t.http){u.method=t.http[0];let[e,n]=t.http[1].split(`?`);u.path==`/`?u.path=e:u.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)a[e]=t}}for(let[e,t]of c.structIterator()){let n=t.getMergedTraits()??{},s=r[e];if(s==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(u.path.includes(`{${e}+}`)||u.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(ne=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):ne=s:(i.write(t,s),ne=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();u.path.includes(`{${e}+}`)?u.path=u.path.replace(`{${e}+}`,n.split(`/`).map(Ue).join(`/`)):u.path.includes(`{${e}}`)&&(u.path=u.path.replace(`{${e}}`,Ue(n)))}else if(n.httpHeader)i.write(t,s),o[n.httpHeader.toLowerCase()]=String(i.flush());else if(typeof n.httpPrefixHeaders==`string`)for(let e in s){let r=s[e],a=n.httpPrefixHeaders+e;i.write([t.getValueSchema(),{httpHeader:a}],r),o[a.toLowerCase()]=i.flush()}else n.httpQuery||n.httpQueryParams?this.serializeQuery(t,s,a):(te=!0,l.push(e),ee.push(t))}if(te&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,ee,void 0];n?a[6]=n:a.pop(),i.write(a,r),ne=i.flush()}return u.headers=o,u.query=a,u.body=ne,u}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=d.of(e.output),a={};if(n.statusCode>=300){let i=await et(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await et(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await et(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,s=this.deserializer,c=d.of(e),l=[];for(let[e,r]of c.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:c}):a[e]=Dt(n.body);else if(n.body){let i=await et(n.body,t);i.byteLength>0&&(a[e]=await s.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?vt(o,`,`,2):Tt(o);let c=[];for(let e of i)c.push(await s.read(n,e.trim()));a[e]=c}else a[e]=await s.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let t in n.headers)if(t.startsWith(i.httpPrefixHeaders)){let o=n.headers[t],c=r.getValueSchema();c.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await s.read(c,o)}}else i.httpResponseCode?a[e]=n.statusCode:l.push(e)}return l.discardResponseBody=o,l}},$t=class extends st{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new nt(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=d.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??St;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??bt;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},en=class extends st{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=d.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(ot(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=kt(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??wt)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:yt(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=Ct.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??wt)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=jt():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},tn=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new en(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=d.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};function nn(e,t,n){if(n?.source){let e=n.source;if(typeof t==`number`&&(t>2**53-1||t<-(2**53-1)||e!==String(t)))return e.includes(`.`)?new Nt(e,`bigDecimal`):BigInt(e)}return t}var rn=(e,t)=>et(e,t).then(e=>(t?.utf8Encoder??St)(e)),an=(e,t)=>rn(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),on=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),sn=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t},oee=(e,t)=>cn(e,t,[`header`,`code`,`type`]),see=(e,t,n=!1)=>cn(e,t,n?[`code`,`header`,`type`]:[`type`,`code`,`header`]),cn=({headers:e},t,n)=>{for(;n.length>0;)switch(n.shift()){case`header`:let n=on(e??{},`x-amzn-errortype`);if(n!==void 0)return sn(e[n]);break;case`code`:let r=on(t??{},`code`);if(r&&t[r]!==void 0)return sn(t[r]);break;case`type`:if(t?.__type!==void 0)return sn(t.__type);break}},cee=class extends mt{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,nn):await an(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=d.of(e);if(n){if(r.isStructSchema()){let e=t,n=r.isUnionSchema(),i={},a,{jsonName:o}=this.settings;o&&(a={});let s;n&&(s=new lt(e,i));for(let[t,c]of r.structIterator()){let r=t;o&&(r=c.getMergedTraits().jsonName??r,a[r]=t),n&&s.mark(r),e[r]!=null&&(i[t]=this._read(c,e[r]))}if(n)s.writeUnknown();else if(typeof e.__type==`string`)for(let t in e){let n=e[t],r=o?a[t]??t:t;r in i||(i[r]=n)}return i}if(Array.isArray(t)&&r.isListSchema()){let e=r.getValueSchema(),n=[];for(let r of t)n.push(this._read(e,r));return n}if(r.isMapSchema()){let e=r.getValueSchema(),n={};for(let r in t)n[r]=this._read(e,t[r]);return n}}if(r.isBlobSchema()&&typeof t==`string`)return xt(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?Ct.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(ot(r,this.settings)){case 5:return Ot(t);case 6:return nee(t);case 7:return _t(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(r.isBigIntegerSchema()&&(typeof t==`number`||typeof t==`string`))return BigInt(t);if(r.isBigDecimalSchema()&&t!=null){if(t instanceof Nt)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new Nt(e.string,e.type):new Nt(String(t),`bigDecimal`)}if(r.isNumericSchema()&&typeof t==`string`){switch(t){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return t}if(r.isDocumentSchema())if(n){let e=Array.isArray(t)?[]:{};for(let n in t){let i=t[n];i instanceof Nt?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}},lee=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(e,t)=>{if(t instanceof Nt){let e=`${`Νnv`+ this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${`Νb`+ this.counter++}_`+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}},uee=class extends mt{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=d.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new lee;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),typeof this.buffer==`object`&&(this.buffer.__type=d.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=d.of(e);if(r){if(i.isStructSchema()){let e=t,n={},{jsonName:r}=this.settings,a;r&&(a={});let o=0;for(let[t,s]of i.structIterator()){let c=this._write(s,e[t],i);if(c!==void 0){let e=t;r&&(e=s.getMergedTraits().jsonName??t,a[t]=e),n[e]=c,o++}}if(i.isUnionSchema()&&o===0){let{$unknown:t}=e;if(Array.isArray(t)){let[e,r]=t;n[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let t in e){let i=e[t],o=r?a[t]??t:t;o in n||(n[o]=this._write(15,i))}return n}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),n=[],r=!!i.getMergedTraits().sparse;for(let i of t)(r||i!=null)&&n.push(this._write(e,i));return n}if(i.isMapSchema()){let e=i.getValueSchema(),n={},r=!!i.getMergedTraits().sparse;for(let i in t){let a=t[i];(r||a!=null)&&(n[i]=this._write(e,a))}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??wt)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(ot(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return kt(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof Nt&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return jt();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?Ct.from(t):t}if(typeof t==`number`&&i.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if(typeof t==`string`&&i.isBlobSchema())return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??wt)(t);if(typeof t==`bigint`&&(this.useReplacer=!0),i.isDocumentSchema())if(r){let e=Array.isArray(t)?[]:{};for(let n in t){let r=t[n];r instanceof Nt?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}},ln=class extends mt{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new uee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new cee(this.settings);return e.setSerdeContext(this.serdeContext),e}},dee=class extends Xe{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t}),this.serviceTarget=n,this.codec=i??new ln({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new Ve(this.awsQueryCompatible)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-amz-json-${this.getJsonRpcVersion()}`,r.headers[`x-amz-target`]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(r.headers[`x-amzn-query-mode`]=`true`),(Ee(e.input)===`unit`||!r.body)&&(r.body=`{}`),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,i){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(r,n);let o=see(n,r,a)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:s,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,n,r,i,a?this.mixin.findQueryCompatibleError:void 0),l=d.of(s),ee=r.message??r.Message??`UnknownError`,te=new((this.compositeErrorRegistry.getErrorCtor(s))??Error)({}),ne={},u=this.codec.createDeserializer();for(let[e,t]of l.structIterator())r[e]!=null&&(ne[e]=u.readObject(t,r[e]));throw a&&this.mixin.queryCompatOutput(r,ne),this.mixin.decorateServiceException(Object.assign(te,c,{$fault:l.getMergedTraits().error,message:ee},ne),r)}},fee=class extends dee{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_1`}getJsonRpcVersion(){return`1.1`}getDefaultContentType(){return`application/x-amz-json-1.1`}},pee=class extends Qt{serializer;deserializer;codec;mixin=new Ve;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new ln(n),this.serializer=new tn(this.codec.createSerializer(),n),this.deserializer=new $t(this.codec.createDeserializer(),n)}getShapeId(){return`aws.protocols#restJson1`}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=d.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return r.body==null&&r.headers[`content-type`]===this.getDefaultContentType()&&(r.body=`{}`),r}async deserializeResponse(e,t,n){let r=await super.deserializeResponse(e,t,n),i=d.of(e.output);for(let[e,t]of i.structIterator())t.getMemberTraits().httpPayload&&!(e in r)&&(r[e]=null);return r}async handleError(e,t,n,r,i){let a=oee(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=d.of(o),l=r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().jsonName??e;te[e]=ne.readObject(t,r[n])}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/json`}},mee=/[&<>"]/g,hee={"&":`&`,"<":`<`,">":`>`,'"':`"`};function gee(e){return e.replace(mee,e=>hee[e])}var _ee=/[&"'<>\r\n\u0085\u2028]/g,vee={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function yee(e){return e.replace(_ee,e=>vee[e])}var un=class{value;constructor(e){this.value=e}toString(){return yee(``+this.value)}},dn=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new un(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${gee(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},bee=class extends qe{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}getShapeId(){return`aws.protocols#ec2Query`}useNestedResult(){return!1}},xee=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return`NotFound`},See=class extends mt{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=d.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??xt)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=dn.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=dn.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=dn.of(e);if(typeof n!=`string`)if(t instanceof dn||t instanceof un)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,ee]=this.getXmlnsAttribute(e,r),te=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,ee);else if(a.isMapSchema())this.writeMap(a,n,t,ee);else if(a.isStructSchema()){let r=this.writeStruct(a,n,ee);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=dn.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,ee),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&te(n,e);else{let r=dn.of(i.xmlName??e.getMemberName());ee&&r.addAttribute(l,ee);for(let e of t)(s||e!=null)&&te(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),ee=l.xmlName??`value`,te=!!l.sparse,ne=!!a.xmlFlattened,[u,re]=this.getXmlnsAttribute(e,r),ie=(e,t,n)=>{let r=dn.of(s,t),[i,a]=this.getXmlnsAttribute(o,re);a&&r.addAttribute(i,a),e.addChildNode(r);let l=dn.of(ee);c.isListSchema()?this.writeList(c,n,l,re):c.isMapSchema()?this.writeMap(c,n,l,re,!0):c.isStructSchema()?l=this.writeStruct(c,n,re):this.writeSimpleInto(c,n,l,re),e.addChildNode(l)};if(ne)for(let r in t){let i=t[r];if(te||i!=null){let t=dn.of(a.xmlName??e.getMemberName());ie(t,r,i),n.addChildNode(t)}}else{let r;i||(r=dn.of(a.xmlName??e.getMemberName()),re&&r.addAttribute(u,re),n.addChildNode(r));for(let e in t){let a=t[e];if(te||a!=null){let t=dn.of(`entry`);ie(t,e,a),(i?n:r).addChildNode(t)}}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=d.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??wt)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(ot(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=kt(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=kt(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof Nt?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?jt():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=d.of(e),o=new un(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}},Cee=class extends mt{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new See(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Re(this.settings);return e.setSerdeContext(this.serdeContext),e}},wee=class extends Qt{codec;serializer;deserializer;mixin=new Ve;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Cee(t),this.serializer=new tn(this.codec.createSerializer(),t),this.deserializer=new $t(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=d.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=xee(n,r)??`Unknown`;if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=d.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];te[e]=ne.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}},Tee=async(e,t,n)=>({operation:ve(t).operation,region:await Te(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Eee(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`acm`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Dee=e=>{let t=[];switch(e.operation){default:t.push(Eee(e))}return t},Oee=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:Te(e.authSchemePreference??[])})},fn=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`acm`}),pn={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},mn={name:`@aws-sdk/client-acm`,description:`AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native`,version:`3.1063.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-acm`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo acm`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.18`,"@aws-sdk/credential-provider-node":`^3.972.52`,"@aws-sdk/types":`^3.973.11`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-acm`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-acm`}},hn=`ref`,gn=-1,_n=!0,vn=`isSet`,yn=`PartitionResult`,bn=`booleanEquals`,xn=`getAttr`,Sn={[hn]:`Endpoint`},Cn={[hn]:yn},wn={},Tn=[{[hn]:`Region`}],En={conditions:[[vn,[Sn]],[vn,Tn],[`aws.partition`,Tn,yn],[bn,[{[hn]:`UseFIPS`},_n]],[bn,[{[hn]:`UseDualStack`},_n]],[bn,[{fn:xn,argv:[Cn,`supportsDualStack`]},_n]],[bn,[{fn:xn,argv:[Cn,`supportsFIPS`]},_n]],[`stringEquals`,[{fn:xn,argv:[Cn,`name`]},`aws-us-gov`]]],results:[[gn],[gn,`Invalid Configuration: FIPS and custom endpoint are not supported`],[gn,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Sn,wn],[`https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,wn],[gn,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://acm.{Region}.amazonaws.com`,wn],[`https://acm-fips.{Region}.{PartitionResult#dnsSuffix}`,wn],[gn,`FIPS is enabled but this partition does not support FIPS`],[`https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}`,wn],[gn,`DualStack is enabled but this partition does not support DualStack`],[`https://acm.{Region}.{PartitionResult#dnsSuffix}`,wn],[gn,`Invalid Configuration: Missing Region`]]},Dn=2,On=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),kn=Je.from(On,Dn,En.conditions,En.results),An=new Ye({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),jn=(e,t={})=>An.get(e,()=>rt(kn,{endpointParams:e,logger:t.logger}));tt.aws=_e;var Mn=class e extends Ae{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Nn=class e extends Mn{name=`AccessDeniedException`;$fault=`client`;Message;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Pn=class e extends Mn{name=`InvalidArnException`;$fault=`client`;constructor(t){super({name:`InvalidArnException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Fn=class e extends Mn{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},In=class e extends Mn{name=`InvalidTagException`;$fault=`client`;constructor(t){super({name:`InvalidTagException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ln=class e extends Mn{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Rn=class e extends Mn{name=`TagPolicyException`;$fault=`client`;constructor(t){super({name:`TagPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zn=class e extends Mn{name=`ThrottlingException`;$fault=`client`;throttlingReasons;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.throttlingReasons=t.throttlingReasons}},Bn=class e extends Mn{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Vn=class e extends Mn{name=`ConflictException`;$fault=`client`;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Hn=class e extends Mn{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Un=class e extends Mn{name=`RequestInProgressException`;$fault=`client`;constructor(t){super({name:`RequestInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Wn=class e extends Mn{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Gn=class e extends Mn{name=`InvalidArgsException`;$fault=`client`;constructor(t){super({name:`InvalidArgsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Kn=class e extends Mn{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qn=class e extends Mn{name=`InvalidDomainValidationOptionsException`;$fault=`client`;constructor(t){super({name:`InvalidDomainValidationOptionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Jn=class e extends Mn{name=`InvalidStateException`;$fault=`client`;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Yn=`AccessDeniedException`,Xn=`Certificate`,Zn=`CreatedAt`,Qn=`CertificateArn`,$n=`CertificateChain`,er=`ConflictException`,tr=`CertificateSummary`,nr=`CertificateSummaryList`,rr=`CertificateStatuses`,ir=`DomainName`,ar=`Exported`,or=`ExtendedKeyUsages`,sr=`ExportOption`,cr=`Filters`,lr=`HasAdditionalSubjectAlternativeNames`,ur=`ImportedAt`,dr=`InvalidArgsException`,fr=`InvalidArnException`,pr=`IssuedAt`,mr=`ImportCertificate`,hr=`ImportCertificateRequest`,gr=`ImportCertificateResponse`,_r=`InvalidDomainValidationOptionsException`,vr=`InvalidParameterException`,yr=`InvalidStateException`,br=`InvalidTagException`,xr=`InUse`,Sr=`Includes`,Cr=`Key`,wr=`KeyAlgorithm`,Tr=`KeyUsages`,Er=`ListCertificates`,Dr=`ListCertificatesRequest`,Or=`ListCertificatesResponse`,kr=`LimitExceededException`,Ar=`Message`,jr=`ManagedBy`,Mr=`MaxItems`,Nr=`NotAfter`,Pr=`NotBefore`,Fr=`NextToken`,Ir=`PrivateKey`,Lr=`PrivateKeyBlob`,Rr=`RevokedAt`,zr=`RenewalEligibility`,Br=`RequestInProgressException`,Vr=`ResourceInUseException`,Hr=`ResourceNotFoundException`,Ur=`Status`,Wr=`SubjectAlternativeNameSummaries`,Gr=`SortBy`,Kr=`SortOrder`,qr=`Type`,Jr=`ThrottlingException`,Yr=`TagList`,Xr=`TooManyTagsException`,Zr=`TagPolicyException`,Qr=`ThrottlingReason`,$r=`ThrottlingReasonList`,ei=`Tags`,ti=`Tag`,ni=`Value`,ri=`ValidationException`,ii=`awsQueryError`,ai=`client`,oi=`error`,si=`extendedKeyUsage`,ci=`exportOption`,li=`httpError`,ui=`keyTypes`,di=`keyUsage`,fi=`message`,pi=`managedBy`,mi=`reason`,hi=`resource`,gi=`smithy.ts.sdk.synthetic.com.amazonaws.acm`,_i=`throttlingReasons`,f=`com.amazonaws.acm`,vi=dt.for(gi),yi=[-3,gi,`ACMServiceException`,0,[],[]];vi.registerError(yi,Mn);var bi=dt.for(f),xi=[-3,f,Yn,{[ii]:[`AccessDenied`,403],[oi]:ai,[li]:403},[Ar],[0]];bi.registerError(xi,Nn);var Si=[-3,f,er,{[oi]:ai},[fi],[0]];bi.registerError(Si,Vn);var Ci=[-3,f,dr,{[oi]:ai},[fi],[0]];bi.registerError(Ci,Gn);var wi=[-3,f,fr,{[oi]:ai},[fi],[0]];bi.registerError(wi,Pn);var Ti=[-3,f,_r,{[oi]:ai},[fi],[0]];bi.registerError(Ti,qn);var Ei=[-3,f,vr,{[oi]:ai},[fi],[0]];bi.registerError(Ei,Fn);var Di=[-3,f,yr,{[oi]:ai},[fi],[0]];bi.registerError(Di,Jn);var Oi=[-3,f,br,{[oi]:ai},[fi],[0]];bi.registerError(Oi,In);var ki=[-3,f,kr,{[oi]:ai},[fi],[0]];bi.registerError(ki,Wn);var Ai=[-3,f,Br,{[oi]:ai},[fi],[0]];bi.registerError(Ai,Un);var ji=[-3,f,Vr,{[oi]:ai},[fi],[0]];bi.registerError(ji,Hn);var Mi=[-3,f,Hr,{[oi]:ai},[fi],[0]];bi.registerError(Mi,Ln);var Ni=[-3,f,Zr,{[oi]:ai},[fi],[0]];bi.registerError(Ni,Rn);var Pi=[-3,f,Jr,{[ii]:[`Throttling`,400],[oi]:ai,[li]:400},[fi,_i],[0,()=>Mee]];bi.registerError(Pi,zn);var Fi=[-3,f,Xr,{[oi]:ai},[fi],[0]];bi.registerError(Fi,Bn);var Ii=[-3,f,ri,{[ii]:[`ValidationError`,400],[oi]:ai,[li]:400},[fi],[0]];bi.registerError(Ii,Kn);var Li=[vi,bi],Ri=[0,f,Lr,8,21],zi=[3,f,tr,0,[Qn,ir,Wr,lr,Ur,qr,wr,Tr,or,sr,xr,ar,zr,Pr,Nr,Zn,pr,ur,Rr,jr],[0,0,64,2,0,0,0,64,64,0,2,2,0,4,4,4,4,4,4,0]],Bi=[3,f,cr,0,[si,di,ui,ci,pi],[64,64,64,0,0]],Vi=[3,f,hr,0,[Xn,Ir,Qn,$n,ei],[21,[()=>Ri,0],0,21,()=>jee],2],Hi=[3,f,gr,0,[Qn],[0]],Ui=[3,f,Dr,0,[rr,Sr,Fr,Mr,Gr,Kr],[64,()=>Bi,0,1,0,0]],Wi=[3,f,Or,0,[Fr,nr],[0,()=>Aee]],Gi=[3,f,ti,0,[Cr,ni],[0,0],1],kee=[3,f,Qr,0,[mi,hi],[0,0]],Aee=[1,f,nr,0,()=>zi],jee=[1,f,Yr,0,()=>Gi],Mee=[1,f,$r,0,()=>kee],Nee=[9,f,mr,0,()=>Vi,()=>Hi],Pee=[9,f,Er,0,()=>Ui,()=>Wi],Fee=e=>({apiVersion:`2015-12-08`,base64Decoder:e?.base64Decoder??xt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??jn,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Dee,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Ze}],logger:e?.logger??new ut,protocol:e?.protocol??fee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.acm`,errorTypeRegistries:Li,version:`2015-12-08`,serviceTarget:`CertificateManager`},serviceId:e?.serviceId??`ACM`,urlParser:e?.urlParser??Ce,utf8Decoder:e?.utf8Decoder??bt,utf8Encoder:e?.utf8Encoder??St}),Iee=e=>{let t=De(e),n=()=>t().then(pt),r=Fee(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Mt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??xe({serviceId:r.serviceId,clientVersion:mn.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ae(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Lee=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Ree=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),zee=(e,t)=>{let n=Object.assign(Se(e),ht(e),Ge(e),Lee(e));return t.forEach(e=>e.configure(n)),Object.assign(e,we(n),He(n),ct(n),Ree(n))},Bee=class extends $e{config;constructor(...[e]){let t=Iee(e||{});super(t),this.initConfig=t;let n=zee(Oee(Ke(it(pe(Fe(gt(fn(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(Me(this.config,{httpAuthSchemeParametersProvider:Tee,identityProviderConfigProvider:async e=>new oe({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(Ne(this.config))}destroy(){super.destroy()}},Vee=async(e,t,n)=>({operation:ve(t).operation,region:await Te(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Hee(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Uee=e=>{let t=[];switch(e.operation){default:t.push(Hee(e))}return t},Wee=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:Te(e.authSchemePreference??[])})},Gee=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),Kee={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},qee={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1063.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-ec2`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo ec2`,test:`yarn g:vitest run --passWithNoTests`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch --passWithNoTests`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.18`,"@aws-sdk/credential-provider-node":`^3.972.52`,"@aws-sdk/middleware-sdk-ec2":`^3.972.32`,"@aws-sdk/types":`^3.973.11`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ec2`}},Ki=`ref`,qi=-1,Ji=!0,Yi=`isSet`,Xi=`PartitionResult`,Zi=`booleanEquals`,Qi=`getAttr`,$i={[Ki]:`Endpoint`},ea={[Ki]:Xi},ta={},na=[{[Ki]:`Region`}],ra={conditions:[[Yi,[$i]],[Yi,na],[`aws.partition`,na,Xi],[Zi,[{[Ki]:`UseFIPS`},Ji]],[Zi,[{[Ki]:`UseDualStack`},Ji]],[Zi,[{fn:Qi,argv:[ea,`supportsDualStack`]},Ji]],[Zi,[{fn:Qi,argv:[ea,`supportsFIPS`]},Ji]],[`stringEquals`,[{fn:Qi,argv:[ea,`name`]},`aws-us-gov`]]],results:[[qi],[qi,`Invalid Configuration: FIPS and custom endpoint are not supported`],[qi,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[$i,ta],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,ta],[qi,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,ta],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,ta],[qi,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,ta],[qi,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,ta],[qi,`Invalid Configuration: Missing Region`]]},Jee=2,Yee=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),Xee=Je.from(Yee,Jee,ra.conditions,ra.results),Zee=new Ye({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Qee=(e,t={})=>Zee.get(e,()=>rt(Xee,{endpointParams:e,logger:t.logger}));tt.aws=_e;var $ee=class e extends Ae{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},ia=`Address`,ete=`AllocateAddressRequest`,tte=`AllocateAddressResult`,nte=`AssociateAddressRequest`,rte=`AssociateAddressResult`,ite=`AllAvailabilityZones`,ate=`AllocateAddress`,ote=`ApplianceArn`,ste=`AssociateAddress`,cte=`AttachedAppliances`,lte=`AttributeBooleanValue`,ute=`AssociateCarrierIpAddress`,dte=`AdditionalFlexibleNetworkInterfaces`,fte=`AvailableIpAddressCount`,aa=`AssignIpv6AddressOnCreation`,pte=`AttachInternetGateway`,mte=`AttachInternetGatewayRequest`,hte=`AssociateIamInstanceProfile`,gte=`AssociateIamInstanceProfileRequest`,_te=`AssociateIamInstanceProfileResult`,vte=`AllocationIdList`,yte=`AssociationIdList`,oa=`AdditionalInfo`,sa=`AllocationId`,ca=`AllocationIds`,la=`AssociationId`,bte=`AssociationIds`,ua=`AttachmentId`,xte=`AmiLaunchIndex`,Ste=`AttachmentLimitType`,Cte=`AddressList`,da=`AvailabilityMode`,wte=`AssociatePublicIpAddress`,Tte=`AmazonProvidedIpv6CidrBlock`,Ete=`AutoProvisionZones`,Dte=`AutoRecoverySupported`,Ote=`AssociateRouteTableRequest`,kte=`AssociateRouteTableResult`,Ate=`AssociateRouteTable`,jte=`AllowReassociation`,Mte=`AllRegions`,fa=`AssociatedResource`,pa=`AutoRecovery`,ma=`AssociationState`,Nte=`AuthorizeSecurityGroupEgress`,Pte=`AuthorizeSecurityGroupEgressRequest`,Fte=`AuthorizeSecurityGroupEgressResult`,Ite=`AuthorizeSecurityGroupIngressRequest`,Lte=`AuthorizeSecurityGroupIngressResult`,Rte=`AuthorizeSecurityGroupIngress`,zte=`AutoScalingIps`,ha=`AmdSevSnp`,Bte=`AttachmentState`,Vte=`ArchitectureTypeList`,ga=`AttachTime`,Hte=`AttachVolumeRequest`,Ute=`AttributeValue`,Wte=`AttachVolume`,_a=`AvailabilityZone`,va=`AvailabilityZoneAddress`,ya=`AvailabilityZoneAddresses`,Gte=`AvailabilityZoneGeography`,Kte=`AvailabilityZoneGeographyList`,ba=`AvailabilityZoneId`,qte=`AvailabilityZoneList`,Jte=`AvailabilityZoneMessage`,Yte=`AvailabilityZoneMessageList`,Xte=`AvailabilityZoneSubGeography`,xa=`AvailabilityZoneSubGeographyList`,Sa=`AvailabilityZones`,Ca=`Accelerators`,wa=`Addresses`,Ta=`Affinity`,Ea=`Arn`,Da=`Architecture`,Oa=`Associations`,ka=`Association`,Aa=`Attribute`,ja=`Attachment`,Ma=`Attachments`,Na=`BlobAttributeValue`,Pa=`BaselineBandwidthInGbps`,Fa=`BaselineBandwidthInMbps`,Ia=`BlockDeviceMapping`,La=`BlockDeviceMappingList`,Ra=`BlockDeviceMappingRequestList`,za=`BlockDeviceMappings`,Ba=`BlockDurationMinutes`,Va=`BaselineIops`,Ha=`BootMode`,Ua=`BootModeTypeList`,Wa=`BareMetal`,Ga=`BlockPublicAccessStates`,Ka=`BurstablePerformanceSupported`,qa=`BaselineThroughputInMBps`,Ja=`BandwidthWeighting`,Ya=`BandwidthWeightingTypeList`,Xa=`BandwidthWeightings`,Za=`CidrBlock`,Qa=`CidrBlockAssociationSet`,$a=`CapacityBlockId`,eo=`CidrBlockState`,to=`CoreCountList`,no=`CoreCount`,ro=`CpuCredits`,io=`CompletionDurationMinutes`,ao=`CreationDate`,oo=`CarrierGatewayId`,so=`CurrentGeneration`,co=`CarrierIp`,lo=`CurrentInstanceBootMode`,uo=`CreateInternetGateway`,fo=`CreateInternetGatewayRequest`,po=`CreateInternetGatewayResult`,mo=`CreateImageRequest`,ho=`CreateImageResult`,go=`CidrIp`,_o=`CidrIpv6`,vo=`CidrIpv4`,yo=`CoreInfo`,bo=`CreateImage`,xo=`CreateKeyPair`,So=`CreateKeyPairRequest`,Co=`CoreNetworkArn`,wo=`CreateNatGateway`,To=`CreateNatGatewayRequest`,Eo=`CreateNatGatewayResult`,Do=`CpuOptions`,Oo=`CustomerOwnedIp`,ko=`CustomerOwnedIpv4Pool`,Ao=`CpuOptionsRequest`,jo=`CreatePlacementGroup`,Mo=`CreatePlacementGroupRequest`,No=`CreatePlacementGroupResult`,Po=`CapacityReservationId`,Fo=`CapacityReservationPreference`,Io=`CreateRouteRequest`,Lo=`CapacityReservationResourceGroupArn`,Ro=`CreateRouteResult`,zo=`CapacityReservationSpecificationResponse`,Bo=`CapacityReservationSpecification`,Vo=`CapacityReservationTarget`,Ho=`CapacityReservationTargetResponse`,Uo=`CreateRouteTableRequest`,Wo=`CreateRouteTableResult`,Go=`CreateRouteTable`,Ko=`CreateRoute`,qo=`CreateSecurityGroup`,Jo=`CreateSecurityGroupRequest`,Yo=`CreateSecurityGroupResult`,Xo=`CopySnapshotRequest`,Zo=`CopySnapshotRequestPSU`,Qo=`CopySnapshotResult`,$o=`CreateSnapshotRequest`,es=`CreateSubnetRequest`,ts=`CreateSubnetResult`,ns=`CreditSpecificationRequest`,rs=`CopySnapshot`,is=`CreditSpecification`,as=`CreateSnapshot`,os=`CreateSubnet`,ss=`CurrentState`,cs=`ClientToken`,ls=`ConnectionTrackingConfiguration`,us=`ConnectionTrackingSpecification`,ds=`ConnectionTrackingSpecificationRequest`,fs=`ConnectionTrackingSpecificationResponse`,ps=`CompletionTime`,ms=`ConnectivityType`,hs=`CreateTime`,gs=`CreateVolumeRequest`,_s=`CreateVpcRequest`,vs=`CreateVpcResult`,ys=`CreateVolume`,bs=`CreateVpc`,xs=`Code`,Ss=`Configured`,Cs=`Count`,ws=`DescribeAddressesRequest`,Ts=`DescribeAddressesResult`,Es=`DisassociateAddressRequest`,Ds=`DisableApiStop`,Os=`DisableApiTermination`,ks=`DestinationAvailabilityZone`,As=`DescribeAvailabilityZonesRequest`,js=`DescribeAvailabilityZonesResult`,Ms=`DescribeAvailabilityZones`,Ns=`DescribeAddresses`,Ps=`DisassociateAddress`,Fs=`DestinationCidrBlock`,Is=`DefaultConnectionTrackingConfiguration`,Ls=`DefaultCores`,Rs=`DataEncryptionKeyId`,zs=`DefaultEnaQueueCountPerInterface`,Bs=`DefaultForAz`,Vs=`DedicatedHostsSupported`,Hs=`DeviceIndex`,Us=`DestinationIpv6CidrBlock`,Ws=`DeleteInternetGateway`,Gs=`DeleteInternetGatewayRequest`,Ks=`DescribeInternetGatewaysRequest`,qs=`DescribeInternetGatewaysResult`,Js=`DetachInternetGatewayRequest`,Ys=`DescribeInternetGateways`,Xs=`DetachInternetGateway`,Zs=`DisassociateIamInstanceProfile`,Qs=`DescribeIamInstanceProfileAssociations`,$s=`DescribeIamInstanceProfileAssociationsRequest`,ec=`DescribeIamInstanceProfileAssociationsResult`,tc=`DisassociateIamInstanceProfileRequest`,nc=`DisassociateIamInstanceProfileResult`,rc=`DiskInfoList`,ic=`DescribeImagesRequest`,ac=`DescribeImagesResult`,oc=`DescribeInstancesRequest`,sc=`DescribeInstancesResult`,cc=`DescribeInstanceTypesRequest`,lc=`DescribeInstanceTypesResult`,uc=`DescribeInstanceTypes`,dc=`DescribeImages`,fc=`DescribeInstances`,pc=`DiskInfo`,mc=`DeleteKeyPair`,hc=`DeleteKeyPairRequest`,gc=`DeleteKeyPairResult`,_c=`DescribeKeyPairsRequest`,vc=`DescribeKeyPairsResult`,yc=`DescribeKeyPairs`,bc=`DisableLniAtDeviceIndex`,xc=`DeviceName`,Sc=`DefaultNetworkCardIndex`,Cc=`DeleteNatGateway`,wc=`DeleteNatGatewayRequest`,Tc=`DeleteNatGatewayResult`,Ec=`DescribeNatGatewaysRequest`,Dc=`DescribeNatGatewaysResult`,Oc=`DescribeNatGateways`,kc=`DestinationOutpostArn`,Ac=`DhcpOptionsId`,jc=`DeleteOnTermination`,Mc=`DeletePlacementGroup`,Nc=`DeletePlacementGroupRequest`,Pc=`DescribePlacementGroupsRequest`,Fc=`DescribePlacementGroupsResult`,Ic=`DescribePlacementGroups`,Lc=`DestinationPrefixListId`,Rc=`DeregistrationProtection`,p=`DryRun`,zc=`DeleteRouteRequest`,Bc=`DescribeRegionsRequest`,Vc=`DescribeRegionsResult`,Hc=`DeleteRouteTable`,Uc=`DeleteRouteTableRequest`,Wc=`DescribeRouteTablesRequest`,Gc=`DescribeRouteTablesResult`,Kc=`DisassociateRouteTableRequest`,qc=`DescribeRouteTables`,Jc=`DisassociateRouteTable`,Yc=`DestinationRegion`,Xc=`DeleteRoute`,Zc=`DescribeRegions`,Qc=`DeleteSecurityGroup`,$c=`DeleteSecurityGroupRequest`,el=`DeleteSecurityGroupResult`,tl=`DescribeSecurityGroupsRequest`,nl=`DescribeSecurityGroupsResult`,rl=`DescribeSecurityGroups`,il=`DeleteSnapshotRequest`,al=`DeleteSubnetRequest`,ol=`DescribeSnapshotsRequest`,sl=`DescribeSnapshotsResult`,cl=`DescribeSubnetsRequest`,ll=`DescribeSubnetsResult`,ul=`DeleteSnapshot`,dl=`DeleteSubnet`,fl=`DescribeSnapshots`,pl=`DescribeSubnets`,ml=`DefaultTcpEstablishedTimeout`,hl=`DefaultThreadsPerCore`,gl=`DeprecationTime`,_l=`DeleteTime`,vl=`DefaultUdpStreamTimeout`,yl=`DefaultUdpTimeout`,bl=`DefaultVCpus`,xl=`DeleteVolumeRequest`,Sl=`DeleteVpcRequest`,Cl=`DescribeVolumesRequest`,wl=`DescribeVolumesResult`,Tl=`DescribeVpcsRequest`,El=`DescribeVpcsResult`,Dl=`DetachVolumeRequest`,Ol=`DeleteVolume`,kl=`DeleteVpc`,Al=`DescribeVolumes`,jl=`DescribeVpcs`,Ml=`DetachVolume`,Nl=`Description`,Pl=`Device`,Fl=`Disks`,Il=`Domain`,Ll=`EbsBlockDevice`,Rl=`ExecutableByStringList`,zl=`ExecutableBy`,Bl=`EbsCardIndex`,Vl=`EbsCardInfoList`,Hl=`EbsCardInfo`,Ul=`EbsCards`,Wl=`EncryptionControl`,Gl=`EnableDns64`,Kl=`ElasticFileSystem`,ql=`ElasticFileSystemExclusion`,Jl=`ElasticGpuAssociation`,Yl=`ElasticGpuAssociationId`,Xl=`ElasticGpuAssociationList`,Zl=`ElasticGpuAssociationState`,Ql=`ElasticGpuAssociationTime`,$l=`ElasticGpuAssociations`,eu=`ElasticGpuId`,tu=`ElasticGpuSpecification`,nu=`ElasticGpuSpecifications`,ru=`ElasticInferenceAccelerator`,iu=`ElasticInferenceAcceleratorAssociation`,au=`ElasticInferenceAcceleratorAssociationId`,ou=`ElasticInferenceAcceleratorAssociationList`,su=`ElasticInferenceAcceleratorAssociationState`,cu=`ElasticInferenceAcceleratorAssociationTime`,lu=`ElasticInferenceAcceleratorArn`,uu=`ElasticInferenceAcceleratorAssociations`,du=`ElasticInferenceAccelerators`,fu=`EbsInstanceBlockDevice`,pu=`EbsInstanceBlockDeviceSpecification`,mu=`EncryptionInTransitSupported`,hu=`EbsInfo`,gu=`EfaInfo`,_u=`EnableLniAtDeviceIndex`,vu=`EbsOptimized`,yu=`EbsOptimizedInfo`,bu=`EgressOnlyInternetGateway`,xu=`EgressOnlyInternetGatewayExclusion`,Su=`EgressOnlyInternetGatewayId`,Cu=`EnclaveOptionsRequest`,wu=`EbsOptimizedSupport`,Tu=`EnclaveOptions`,Eu=`EnablePrimaryIpv6`,Du=`EnaQueueCount`,Ou=`EnableResourceNameDnsAAAARecord`,ku=`EnableResourceNameDnsAAAARecordOnLaunch`,Au=`EnableResourceNameDnsARecord`,ju=`EnableResourceNameDnsARecordOnLaunch`,Mu=`EnaSrdEnabled`,Nu=`EnaSrdSpecification`,Pu=`EnaSrdSpecificationRequest`,Fu=`EnaSrdSupported`,Iu=`EnaSrdUdpEnabled`,Lu=`EnaSrdUdpSpecification`,Ru=`EnaSrdUdpSpecificationRequest`,zu=`EfaSupported`,Bu=`EncryptionSupport`,Vu=`EnaSupport`,Hu=`EndTime`,Uu=`ExecutableUsers`,Wu=`Ebs`,Gu=`Enabled`,Ku=`Encrypted`,qu=`Endpoint`,Ju=`Force`,Yu=`FailureCode`,Xu=`FpgaDeviceInfo`,Zu=`FpgaDeviceInfoList`,Qu=`FpgaDeviceMemoryInfo`,$u=`FlexibleEnaQueuesSupport`,ed=`FpgaInfo`,td=`FilterList`,nd=`FailureMessage`,rd=`FromPort`,id=`FastRestored`,ad=`FullSnapshotSizeInBytes`,od=`FreeTierEligible`,sd=`Filters`,cd=`Filter`,ld=`Fpgas`,ud=`Groups`,dd=`GroupArn`,fd=`GetConsoleOutput`,pd=`GetConsoleOutputRequest`,md=`GetConsoleOutputResult`,hd=`GroupDescription`,gd=`GpuDeviceInfo`,_d=`GpuDeviceInfoList`,vd=`GpuDeviceMemoryInfo`,yd=`GatewayId`,bd=`GroupIdentifierList`,xd=`GroupIdStringList`,Sd=`GpuInfo`,Cd=`GroupId`,wd=`GroupIds`,Td=`GroupIdentifier`,Ed=`GroupLongName`,Dd=`GroupName`,Od=`GroupNameStringList`,kd=`GroupNames`,Ad=`GroupOwnerId`,jd=`GpuPartitionSize`,Md=`Geography`,Nd=`Gpus`,Pd=`HiddenByDefault`,Fd=`HttpEndpoint`,Id=`HostId`,Ld=`HibernationOptions`,Rd=`HibernationOptionsRequest`,zd=`HttpProtocolIpv6`,Bd=`HttpPutResponseHopLimit`,Vd=`HostResourceGroupArn`,Hd=`HibernationSupported`,Ud=`HttpTokens`,Wd=`HostnameType`,Gd=`Hibernate`,Kd=`Hypervisor`,qd=`Id`,Jd=`Ipv6Addresses`,Yd=`Ipv6AddressAttribute`,Xd=`Ipv6AddressCount`,Zd=`InstanceAttachmentEnaSrdSpecification`,Qd=`InstanceAttachmentEnaSrdUdpSpecification`,$d=`InferenceAcceleratorInfo`,ef=`Ipv4AddressesPerInterface`,tf=`Ipv6AddressesPerInterface`,nf=`Ipv4AddressesPerSecondaryInterface`,rf=`ImageAllowed`,af=`IpAddress`,of=`Ipv6Address`,sf=`InstanceBlockDeviceMapping`,cf=`InstanceBlockDeviceMappingList`,lf=`InstanceBlockDeviceMappingSpecification`,uf=`InstanceBlockDeviceMappingSpecificationList`,df=`Ipv6CidrBlock`,ff=`Ipv6CidrBlockAssociationSet`,pf=`Ipv6CidrBlockNetworkBorderGroup`,mf=`Ipv6CidrBlockState`,hf=`IncludeDeprecated`,gf=`InferenceDeviceInfo`,_f=`InferenceDeviceInfoList`,vf=`InferenceDeviceMemoryInfo`,yf=`IncludeDisabled`,bf=`IsDefault`,xf=`IsEgress`,Sf=`InternetGateway`,Cf=`InternetGatewayAttachment`,wf=`InternetGatewayAttachmentList`,Tf=`InternetGatewayBlockMode`,Ef=`InternetGatewayExclusion`,Df=`InternetGatewayId`,Of=`InternetGatewayIdList`,kf=`InternetGatewayIds`,Af=`InternetGatewayList`,jf=`InternetGateways`,m=`InstanceId`,Mf=`InstanceIpv6Address`,Nf=`InstanceIpv6AddressList`,Pf=`InstanceInterruptionBehavior`,Ff=`IamInstanceProfile`,If=`IamInstanceProfileAssociation`,Lf=`IamInstanceProfileAssociationSet`,Rf=`IamInstanceProfileAssociations`,zf=`Ipv6IpamPoolId`,Bf=`Ipv4IpamPoolId`,Vf=`InstanceIpv4PrefixList`,Hf=`InstanceIpv6PrefixList`,Uf=`IamInstanceProfileSpecification`,Wf=`InstanceIpv4Prefix`,Gf=`InstanceIpv6Prefix`,Kf=`InstanceInitiatedShutdownBehavior`,qf=`ImageIdStringList`,Jf=`InstanceIdStringList`,Yf=`ImageId`,Xf=`ImageIds`,Zf=`InstanceIds`,Qf=`ImportKeyPair`,$f=`ImportKeyPairRequest`,ep=`ImportKeyPairResult`,tp=`ImageLocation`,np=`ImageList`,rp=`InstanceLifecycle`,ip=`InstanceList`,ap=`IpList`,op=`InstanceMaintenanceOptions`,sp=`InstanceMaintenanceOptionsRequest`,cp=`InstanceMarketOptionsRequest`,lp=`InstanceMetadataOptionsRequest`,up=`InstanceMetadataOptionsResponse`,dp=`InstanceMarketOptions`,fp=`IncludeManagedResources`,pp=`InstanceMetadataTags`,mp=`Ipv6Native`,hp=`InstanceNetworkInterface`,gp=`InstanceNetworkInterfaceAssociation`,_p=`InstanceNetworkInterfaceAttachment`,vp=`InstanceNetworkInterfaceList`,yp=`InstanceNetworkInterfaceSpecification`,bp=`InstanceNetworkInterfaceSpecificationList`,xp=`Ipv6NetmaskLength`,Sp=`Ipv4NetmaskLength`,Cp=`InstanceNetworkPerformanceOptions`,wp=`InstanceNetworkPerformanceOptionsRequest`,Tp=`ImageOwnerAlias`,Ep=`IpOwnerId`,Dp=`InstanceOwnerId`,Op=`InstanceOwningService`,kp=`Ipv6PrefixCount`,Ap=`Ipv4PrefixCount`,jp=`IpPermissionsEgress`,Mp=`IpamPoolId`,Zte=`InstancePrivateIpAddress`,Np=`InstancePrivateIpAddressList`,Pp=`IsPrimaryIpv6`,Fp=`IncludePublicKey`,Ip=`IpPermissionList`,Lp=`Ipv4PrefixList`,Rp=`Ipv6PrefixList`,zp=`Ipv4PrefixSpecificationRequest`,Bp=`Ipv6PrefixSpecificationRequest`,Vp=`Ipv6Prefixes`,Hp=`IpPermissions`,Up=`IpPermission`,Wp=`IpProtocol`,Gp=`Ipv6Prefix`,Kp=`Ipv6Pool`,qp=`Ipv4Prefixes`,Jp=`Ipv4Prefix`,Yp=`IsPrimary`,Xp=`IpRangeList`,Zp=`Ipv6RangeList`,Qp=`IpRanges`,$p=`IpRange`,em=`Ipv6Ranges`,tm=`Ipv6Range`,nm=`InstanceStateChange`,rm=`InstanceStateChangeList`,im=`InstanceSecondaryInterfaceAttachment`,am=`InstanceSecondaryInterfaceList`,om=`InstanceSecondaryInterfacePrivateIpAddress`,sm=`InstanceSecondaryInterfacePrivateIpAddressList`,cm=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,lm=`InstanceSecondaryInterfacePrivateIpAddressRequest`,um=`InstanceSecondaryInterfaceSpecificationListRequest`,dm=`InstanceSecondaryInterfaceSpecificationRequest`,fm=`InstanceSecondaryInterface`,pm=`InstanceStorageInfo`,mm=`InstanceStorageSupported`,hm=`ImdsSupport`,gm=`InstanceState`,_m=`IpSource`,vm=`Ipv6Supported`,ym=`InstanceType`,bm=`InstanceTypeInfoList`,xm=`InstanceTypeInfo`,Sm=`ImageType`,Cm=`InstanceTenancy`,wm=`InstanceTypes`,Tm=`InterfaceType`,Em=`IncludeUnsupportedInRegion`,Dm=`Images`,Om=`Image`,km=`Instance`,Am=`Instances`,jm=`Iops`,Mm=`Key`,Nm=`KeyFormat`,Pm=`KeyFingerprint`,Fm=`KernelId`,Im=`KmsKeyId`,Lm=`KeyMaterial`,Rm=`KeyName`,zm=`KeyNameStringList`,Bm=`KeyNames`,Vm=`KeyPairs`,Hm=`KeyPairId`,Um=`KeyPairIdStringList`,Wm=`KeyPairIds`,Gm=`KeyPairInfo`,Km=`KeyPairList`,qm=`KeyPair`,Jm=`KeyType`,Ym=`Kernel`,Xm=`LicenseConfigurationArn`,Zm=`LicenseConfigurationRequest`,Qte=`LicenseConfiguration`,$te=`LambdaExclusion`,ene=`LogicalGpuCount`,Qm=`LocalGatewayId`,$m=`LinkedGroupId`,tne=`LicenseList`,nne=`LastLaunchedTime`,rne=`LicenseSpecifications`,ine=`LicenseSpecificationListRequest`,ane=`LicenseSpecification`,one=`LaunchTemplate`,sne=`LaunchTemplateId`,cne=`LaunchTemplateName`,lne=`LaunchTemplateSpecification`,une=`LaunchTime`,dne=`Latest`,fne=`Lambda`,pne=`Licenses`,mne=`Location`,eh=`MultiAttachEnabled`,th=`MediaAcceleratorInfo`,nh=`MacAddress`,rh=`MaximumBandwidthInMbps`,ih=`MapCustomerOwnedIpOnLaunch`,hne=`MaxCount`,gne=`MinCount`,_ne=`MediaDeviceInfo`,vne=`MediaDeviceInfoList`,yne=`MediaDeviceMemoryInfo`,bne=`MaximumEbsAttachments`,xne=`MaximumEbsCards`,Sne=`MaximumEfaInterfaces`,Cne=`MaximumEnaQueueCount`,wne=`MaximumEnaQueueCountPerInterface`,ah=`MaximumIops`,Tne=`ModifyInstanceAttributeRequest`,Ene=`ModifyInstanceAttributeValue`,Dne=`ModifyInstanceAttribute`,oh=`MemoryInfo`,One=`MaximumNetworkCards`,sh=`MaximumNetworkInterfaces`,ch=`MetadataOptions`,lh=`MaintenanceOptions`,uh=`MapPublicIpOnLaunch`,kne=`MaxPrice`,dh=`MaxResults`,Ane=`ModifySubnetAttributeRequest`,jne=`ModifySubnetAttribute`,Mne=`MaximumSecondaryNetworkInterfaces`,fh=`ModificationState`,Nne=`MarketType`,ph=`MaximumThroughputInMBps`,Pne=`ModifyVolumeRequest`,Fne=`ModifyVolumeResult`,Ine=`ModifyVolume`,Lne=`Main`,mh=`Manufacturer`,Rne=`Managed`,hh=`Message`,zne=`Messages`,gh=`Mode`,_h=`Monitoring`,vh=`Name`,yh=`NetworkBorderGroup`,Bne=`NetworkCards`,bh=`NetworkCardIndex`,Vne=`NetworkCardInfoList`,Hne=`NetworkCardInfo`,xh=`NoDevice`,Une=`NeuronDeviceCoreInfo`,Wne=`NeuronDeviceInfo`,Gne=`NeuronDeviceInfoList`,Kne=`NeuronDeviceMemoryInfo`,qne=`NeuronDevices`,Jne=`NitroEnclavesSupport`,Sh=`NatGateway`,Yne=`NatGatewayAddresses`,Xne=`NatGatewayAttachedAppliance`,Zne=`NatGatewayAttachedApplianceList`,Qne=`NatGatewayAddressList`,$ne=`NatGatewayAddress`,ere=`NatGatewayExclusion`,Ch=`NatGatewayId`,tre=`NatGatewayIdStringList`,nre=`NatGatewayIds`,rre=`NatGatewayList`,ire=`NatGateways`,wh=`NetworkInterfaceId`,are=`NetworkInterfaceOwnerId`,Th=`NetworkInterfaces`,Eh=`NetworkInfo`,Dh=`NeuronInfo`,Oh=`NetworkPerformanceOptions`,kh=`NetworkPerformance`,ore=`NoReboot`,Ah=`NvmeSupport`,jh=`NitroTpmInfo`,sre=`NitroTpmSupport`,cre=`NitroTpmSupportedVersionsList`,h=`NextToken`,Mh=`NestedVirtualization`,lre=`Origin`,Nh=`OutpostArn`,ure=`OwnerAlias`,Ph=`OwnerId`,Fh=`OptInStatus`,dre=`OriginalIops`,fre=`OwnerIds`,pre=`OriginalMultiAttachEnabled`,Ih=`OdbNetworkArn`,mre=`OperatorRequest`,hre=`OperatorResponse`,gre=`OwnerStringList`,_re=`OriginalSize`,vre=`OriginalThroughput`,yre=`OriginalVolumeType`,Lh=`Operator`,bre=`Output`,xre=`Owners`,Rh=`Owner`,zh=`Principal`,Bh=`ProvisionedBandwidth`,Sre=`PeakBandwidthInGbps`,Cre=`ProductCodeId`,wre=`ProductCodeList`,Tre=`ProductCodeType`,Vh=`PartitionCount`,Ere=`ProductCode`,Hh=`ProductCodes`,Dre=`PrivateDnsHostnameTypeOnLaunch`,Uh=`PrivateDnsName`,Wh=`PrivateDnsNameOptions`,Gh=`PrivateDnsNameOptionsOnLaunch`,Ore=`PrivateDnsNameOptionsRequest`,kre=`PrivateDnsNameOptionsResponse`,Kh=`PublicDnsName`,qh=`PlatformDetails`,Jh=`PlacementGroup`,Yh=`PlacementGroupInfo`,Are=`PlacementGroupIdStringList`,jre=`PlacementGroupList`,Mre=`PlacementGroupStrategyList`,Nre=`PlacementGroups`,Xh=`PublicIp`,Pre=`PrivateIpAddressCount`,Fre=`PrivateIpAddressSpecification`,Ire=`PrivateIpAddressSpecificationList`,Zh=`PrivateIpAddress`,Qh=`PrivateIpAddresses`,Lre=`PublicIpAddress`,$h=`PublicIpv4Pool`,Rre=`PublicIpStringList`,zre=`PrimaryIpv6`,Bre=`PrivateIp`,eg=`ProcessorInfo`,Vre=`PublicIps`,Hre=`PublicKey`,Ure=`PublicKeyMaterial`,tg=`PrefixListId`,Wre=`PrefixListIdList`,Gre=`PrefixListIds`,Kre=`PartitionNumber`,ng=`PeeringStatus`,qre=`PhcSupport`,Jre=`PreviousState`,Yre=`ProvisionTime`,Xre=`PresignedUrl`,Zre=`PropagatingVgw`,Qre=`PropagatingVgwList`,$re=`PropagatingVgws`,eie=`ParentZoneId`,tie=`ParentZoneName`,rg=`Platform`,ig=`Placement`,ag=`Primary`,og=`Progress`,nie=`Provisioned`,rie=`Public`,sg=`Return`,iie=`ReleaseAddressRequest`,aie=`ReleaseAddress`,oie=`RestorableByUserIds`,sie=`RestorableBy`,cg=`RootDeviceName`,lg=`RootDeviceType`,cie=`RootDeviceTypeList`,lie=`RestoreExpiryTime`,uie=`ResourceExclusions`,die=`RegionGeography`,fie=`ReferencedGroupId`,pie=`ReferencedGroupInfo`,mie=`RegionGeographyList`,hie=`RunInstancesMonitoringEnabled`,gie=`RebootInstancesRequest`,_ie=`RunInstancesRequest`,vie=`RunInstancesUserData`,ug=`RamdiskId`,yie=`ReservationId`,bie=`RebootInstances`,xie=`RequesterId`,Sie=`RunInstances`,Cie=`RegionList`,wie=`ReservationList`,Tie=`RouteList`,Eie=`RebootMigrationSupport`,Die=`RebootMigration`,dg=`RegionName`,Oie=`RegionNameStringList`,kie=`RegionNames`,Aie=`ReferencedSecurityGroup`,jie=`RevokeSecurityGroupEgress`,Mie=`RevokeSecurityGroupEgressRequest`,Nie=`RevokeSecurityGroupEgressResult`,Pie=`RevokeSecurityGroupIngressRequest`,Fie=`RevokeSecurityGroupIngressResult`,Iie=`RevokeSecurityGroupIngress`,Lie=`RevokedSecurityGroupRule`,Rie=`RevokedSecurityGroupRuleList`,fg=`RevokedSecurityGroupRules`,zie=`RouteTableAssociation`,Bie=`RouteTableAssociationId`,Vie=`RouteTableAssociationList`,Hie=`RouteTableAssociationState`,pg=`RouteTableId`,Uie=`RouteTableIdStringList`,Wie=`RouteTableIds`,Gie=`RouteTableList`,Kie=`ResourceType`,qie=`RequestTime`,mg=`RouteTable`,Jie=`RouteTables`,Yie=`Ramdisk`,Xie=`Regions`,Zie=`Region`,Qie=`Requested`,$ie=`Reservations`,eae=`Reservation`,tae=`Route`,nae=`Routes`,rae=`SecondaryAllocationIds`,iae=`SecondaryAllocationId`,aae=`SupportedAdditionalProcessorFeatureList`,oae=`SubnetArn`,sae=`SupportedArchitectures`,cae=`SupportedBootModes`,lae=`SubnetCidrBlockState`,uae=`SustainedClockSpeedInGhz`,hg=`SourceDestCheck`,dae=`SpreadDomain`,fae=`SupportedFeatures`,pae=`SubGeography`,gg=`SecurityGroupArn`,_g=`SecurityGroupId`,mae=`SecurityGroupIdStringList`,hae=`SecurityGroupIds`,gae=`SecurityGroupList`,vg=`SecurityGroupRules`,_ae=`SecurityGroupRuleArn`,yg=`SecurityGroupRuleIds`,vae=`SecurityGroupRuleIdList`,bg=`SecurityGroupRuleId`,yae=`SecurityGroupRuleList`,bae=`SecurityGroupRule`,xae=`SecurityGroupStringList`,xg=`SecurityGroups`,Sg=`SecurityGroup`,Sae=`SubnetIds`,Cae=`SubnetIpv6CidrBlockAssociation`,wae=`SubnetIpv6CidrBlockAssociationSet`,Tae=`SizeInGB`,Eae=`SourceImageId`,Dae=`SecondaryInterfaceId`,Oae=`SourceInstanceId`,Cg=`SizeInMiB`,kae=`SpotInstanceRequestId`,Aae=`SourceImageRegion`,jae=`StartInstancesRequest`,Mae=`StartInstancesResult`,Nae=`StopInstancesRequest`,Pae=`StopInstancesResult`,Fae=`SupportedInRegion`,Iae=`SnapshotIdStringList`,Lae=`SubnetIdStringList`,Rae=`SpotInstanceType`,wg=`SecondaryInterfaces`,zae=`SecondaryInterface`,Tg=`SnapshotId`,Bae=`SnapshotIds`,Vae=`StartingInstances`,Hae=`StartInstances`,Uae=`StoppingInstances`,Wae=`StopInstances`,Eg=`SubnetId`,Gae=`SnapshotLocation`,Kae=`SnapshotList`,Dg=`SpreadLevel`,qae=`SubnetList`,Jae=`ServiceManaged`,Yae=`SpotMarketOptions`,Og=`StatusMessage`,kg=`StateMessage`,Xae=`SecondaryNetworkId`,Ag=`SriovNetSupport`,Zae=`SecondaryNetworkSupported`,Qae=`SpotOptions`,jg=`SkipOsShutdown`,$ae=`SecondaryPrivateIpAddresses`,Mg=`SecondaryPrivateIpAddressCount`,eoe=`SecondaryPrivateIpAddress`,toe=`SupportedRootDeviceTypes`,noe=`SourceRegion`,Ng=`StateReason`,Pg=`SourceSecurityGroupName`,Fg=`SourceSecurityGroupOwnerId`,roe=`SourceSnapshotId`,Ig=`SecondarySubnetId`,ioe=`SupportedStrategies`,Lg=`StartTime`,aoe=`StateTransitionReason`,Rg=`SseType`,ooe=`StorageTier`,soe=`SupportedUsageClasses`,coe=`SensitiveUserData`,loe=`SourceVolumeId`,uoe=`SupportedVirtualizationTypes`,doe=`SupportedVersions`,zg=`Size`,foe=`Snapshots`,poe=`Snapshot`,g=`State`,Bg=`Status`,Vg=`Strategy`,Hg=`Subnet`,moe=`Subnets`,_=`Tags`,Ug=`TcpEstablishedTimeout`,hoe=`TotalFpgaMemoryInMiB`,Wg=`TransitGatewayId`,goe=`TotalGpuMemoryInMiB`,_oe=`TerminateInstances`,voe=`TotalInferenceMemoryInMiB`,yoe=`TerminateInstancesRequest`,boe=`TerminateInstancesResult`,xoe=`TargetIops`,Soe=`TerminatingInstances`,Coe=`TagList`,woe=`TargetMultiAttachEnabled`,Toe=`TotalMediaMemoryInMiB`,Eoe=`TotalNeuronDeviceMemoryInMiB`,Gg=`ToPort`,Kg=`ThreadsPerCore`,qg=`ThreadsPerCoreList`,Jg=`TagSpecifications`,Yg=`TotalSizeInGB`,Xg=`TagSpecificationList`,Zg=`TagSpecification`,Qg=`TargetSize`,$g=`TpmSupport`,e_=`TargetThroughput`,t_=`TransferType`,n_=`TargetVolumeType`,r_=`Tag`,i_=`Tenancy`,a_=`Throughput`,o_=`Timestamp`,s_=`Type`,c_=`UsageClassTypeList`,l_=`UserData`,u_=`UserId`,d_=`UserIdGroupPairs`,f_=`UserIdGroupPairList`,p_=`UserIdGroupPair`,m_=`UnknownIpPermissions`,h_=`UsageOperation`,g_=`UsageOperationUpdateTime`,__=`UdpStreamTimeout`,v_=`UdpTimeout`,y_=`Value`,b_=`VolumeAttachmentList`,x_=`VolumeAttachment`,S_=`VpcCidrBlockAssociation`,C_=`VpcCidrBlockAssociationSet`,w_=`VpcCidrBlockState`,T_=`VCpuInfo`,E_=`ValidCores`,D_=`VpcEncryptionControl`,O_=`VpcEncryptionControlConfiguration`,k_=`VpcEncryptionControlExclusion`,A_=`VpcEncryptionControlExclusions`,j_=`VpcEncryptionControlId`,M_=`VpcEndpointId`,N_=`VpcId`,P_=`VpcIpv6CidrBlockAssociation`,F_=`VpcIpv6CidrBlockAssociationSet`,I_=`VolumeInitializationRate`,L_=`VolumeIdStringList`,R_=`VpcIdStringList`,z_=`VolumeId`,B_=`VolumeIds`,V_=`VpcIds`,H_=`VpcLattice`,U_=`VpcLatticeExclusion`,W_=`VolumeList`,G_=`VpcList`,K_=`VolumeModification`,q_=`VirtualName`,J_=`VolumeOwnerId`,Y_=`VpcPeeringConnectionId`,X_=`VpcPeeringExclusion`,Z_=`VirtualPrivateGateway`,Q_=`VirtualPrivateGatewayExclusion`,$_=`VpcPeering`,ev=`ValueStringList`,tv=`VolumeSize`,nv=`VolumeType`,rv=`VirtualizationTypeList`,iv=`ValidThreadsPerCore`,av=`VirtualizationType`,ov=`ValidUntil`,sv=`Values`,cv=`Version`,lv=`Volumes`,uv=`Volume`,dv=`Vpc`,fv=`Vpcs`,pv=`WorkloadsList`,mv=`Workloads`,hv=`ZoneId`,gv=`ZoneIdStringList`,_v=`ZoneIds`,vv=`ZoneName`,yv=`ZoneNameStringList`,bv=`ZoneNames`,xv=`ZoneType`,Sv=`attachedApplianceSet`,Cv=`applianceArn`,wv=`additionalFlexibleNetworkInterfaces`,Tv=`allocationId`,Ev=`availableIpAddressCount`,Dv=`assignIpv6AddressOnCreation`,Ov=`additionalInfo`,kv=`associationId`,Av=`attachmentId`,jv=`amiLaunchIndex`,Mv=`attachmentLimitType`,Nv=`availabilityMode`,Pv=`associatePublicIpAddress`,Fv=`amazonProvidedIpv6CidrBlock`,Iv=`autoProvisionZones`,Lv=`autoRecoverySupported`,Rv=`allowReassociation`,zv=`associatedResource`,Bv=`autoRecovery`,Vv=`associationState`,Hv=`autoScalingIps`,Uv=`amdSevSnp`,Wv=`addressesSet`,Gv=`associationSet`,Kv=`attachmentSet`,qv=`attachmentState`,Jv=`attachTime`,Yv=`availabilityZone`,Xv=`availabilityZoneId`,Zv=`availabilityZoneInfo`,Qv=`accelerators`,$v=`affinity`,ey=`arn`,ty=`architecture`,ny=`association`,ry=`attachment`,iy=`attribute`,ay=`baselineBandwidthInGbps`,oy=`baselineBandwidthInMbps`,sy=`blockDeviceMapping`,cy=`baselineIops`,ly=`bootMode`,uy=`bareMetal`,dy=`blockPublicAccessStates`,fy=`burstablePerformanceSupported`,py=`baselineThroughputInMBps`,my=`bandwidthWeighting`,hy=`bandwidthWeightings`,gy=`cidrBlock`,_y=`cidrBlockAssociationSet`,vy=`capacityBlockId`,yy=`cidrBlockState`,by=`coreCount`,xy=`completionDurationMinutes`,Sy=`creationDate`,Cy=`carrierGatewayId`,wy=`currentGeneration`,Ty=`carrierIp`,Ey=`currentInstanceBootMode`,Dy=`cidrIp`,Oy=`cidrIpv6`,ky=`cidrIpv4`,Ay=`coreInfo`,jy=`coreNetworkArn`,My=`cpuOptions`,Ny=`customerOwnedIp`,Py=`customerOwnedIpv4Pool`,Fy=`capacityReservationId`,Iy=`capacityReservationPreference`,Ly=`capacityReservationResourceGroupArn`,Ry=`capacityReservationSpecification`,zy=`capacityReservationTarget`,By=`currentState`,Vy=`clientToken`,Hy=`connectionTrackingConfiguration`,Uy=`completionTime`,Wy=`connectivityType`,Gy=`createTime`,Ky=`code`,qy=`configured`,Jy=`count`,Yy=`disableApiTermination`,Xy=`destinationCidrBlock`,Zy=`defaultCores`,Qy=`dataEncryptionKeyId`,$y=`defaultEnaQueueCountPerInterface`,eb=`defaultForAz`,tb=`dedicatedHostsSupported`,nb=`deviceIndex`,rb=`destinationIpv6CidrBlock`,ib=`deviceName`,ab=`defaultNetworkCardIndex`,ob=`dnsName`,sb=`dhcpOptionsId`,cb=`deleteOnTermination`,lb=`destinationPrefixListId`,ub=`deregistrationProtection`,v=`dryRun`,db=`destinationRegion`,fb=`defaultTcpEstablishedTimeout`,pb=`defaultThreadsPerCore`,mb=`deprecationTime`,hb=`deleteTime`,gb=`defaultUdpStreamTimeout`,_b=`defaultUdpTimeout`,vb=`defaultVCpus`,yb=`description`,bb=`device`,xb=`disks`,Sb=`domain`,Cb=`ebsCardIndex`,wb=`ebsCardSet`,Tb=`encryptionControl`,Eb=`enableDns64`,Db=`elasticFileSystem`,Ob=`elasticGpuAssociationId`,kb=`elasticGpuAssociationState`,Ab=`elasticGpuAssociationSet`,jb=`elasticGpuAssociationTime`,Mb=`elasticGpuId`,Nb=`elasticInferenceAcceleratorArn`,Pb=`elasticInferenceAcceleratorAssociationId`,Fb=`elasticInferenceAcceleratorAssociationState`,Ib=`elasticInferenceAcceleratorAssociationSet`,Lb=`elasticInferenceAcceleratorAssociationTime`,Rb=`encryptionInTransitSupported`,zb=`ebsInfo`,Bb=`efaInfo`,Vb=`enableLniAtDeviceIndex`,Hb=`ebsOptimized`,Ub=`ebsOptimizedInfo`,Wb=`egressOnlyInternetGateway`,Gb=`egressOnlyInternetGatewayId`,Kb=`ebsOptimizedSupport`,qb=`enclaveOptions`,Jb=`enaQueueCount`,y=`ec2QueryName`,Yb=`enableResourceNameDnsAAAARecord`,Xb=`enableResourceNameDnsARecord`,Zb=`enaSrdEnabled`,Qb=`enaSrdSpecification`,$b=`enaSrdSupported`,ex=`enaSrdUdpEnabled`,tx=`enaSrdUdpSpecification`,nx=`efaSupported`,rx=`encryptionSupport`,ix=`enaSupport`,ax=`endTime`,ox=`ebs`,sx=`enabled`,cx=`encrypted`,lx=`failureCode`,ux=`flexibleEnaQueuesSupport`,dx=`fpgaInfo`,fx=`failureMessage`,px=`fromPort`,mx=`fastRestored`,hx=`fullSnapshotSizeInBytes`,gx=`freeTierEligible`,_x=`force`,vx=`fpgas`,yx=`groupArn`,bx=`groupDescription`,xx=`gatewayId`,Sx=`gpuInfo`,Cx=`groupId`,wx=`groupLongName`,Tx=`groupName`,Ex=`groupOwnerId`,Dx=`gpuPartitionSize`,Ox=`geographySet`,kx=`groupSet`,Ax=`gpus`,jx=`groups`,Mx=`hypervisor`,Nx=`hiddenByDefault`,Px=`httpEndpoint`,Fx=`hostId`,Ix=`hibernationOptions`,Lx=`httpProtocolIpv6`,Rx=`httpPutResponseHopLimit`,zx=`hostResourceGroupArn`,Bx=`hibernationSupported`,Vx=`httpTokens`,Hx=`hostnameType`,Ux=`id`,Wx=`ipv6AddressAttribute`,Gx=`ipv6AddressCount`,Kx=`inferenceAcceleratorInfo`,qx=`ipv4AddressesPerInterface`,Jx=`ipv6AddressesPerInterface`,Yx=`ipv4AddressesPerSecondaryInterface`,Xx=`ipv6AddressesSet`,Zx=`imageAllowed`,Qx=`ipAddress`,$x=`ipv6Address`,eS=`ipv6CidrBlock`,tS=`ipv6CidrBlockAssociationSet`,nS=`ipv6CidrBlockState`,rS=`isDefault`,iS=`isEgress`,aS=`internetGateway`,oS=`internetGatewayBlockMode`,sS=`internetGatewayId`,cS=`internetGatewaySet`,lS=`instanceId`,uS=`iamInstanceProfile`,dS=`iamInstanceProfileAssociation`,fS=`iamInstanceProfileAssociationSet`,pS=`instanceInitiatedShutdownBehavior`,mS=`imageId`,hS=`imageLocation`,gS=`instanceLifecycle`,_S=`instanceMetadataTags`,vS=`ipv6Native`,yS=`imageOwnerAlias`,bS=`imageOwnerId`,xS=`instanceOwnerId`,SS=`ipOwnerId`,CS=`instanceOwningService`,wS=`ipPermissionsEgress`,TS=`isPrimaryIpv6`,ES=`ipv4PrefixSet`,DS=`ipv6PrefixSet`,OS=`ipProtocol`,kS=`ipPermissions`,AS=`ipv4Prefix`,jS=`ipv6Pool`,MS=`ipv6Prefix`,NS=`isPublic`,PS=`isPrimary`,FS=`ipRanges`,IS=`ipv6Ranges`,LS=`instanceStorageInfo`,RS=`instanceStorageSupported`,zS=`imagesSet`,BS=`imageState`,VS=`imdsSupport`,HS=`instancesSet`,US=`instanceState`,WS=`ipSource`,GS=`ipv6Supported`,KS=`instanceType`,qS=`instanceTypeSet`,JS=`idempotencyToken`,YS=`imageType`,XS=`instanceTenancy`,ZS=`interfaceType`,QS=`iops`,b=`item`,$S=`key`,eC=`keyFingerprint`,tC=`kernelId`,nC=`kmsKeyId`,rC=`keyMaterial`,iC=`keyName`,aC=`keyPairId`,oC=`keySet`,sC=`keyType`,cC=`kernel`,lC=`licenseConfigurationArn`,uC=`logicalGpuCount`,dC=`localGatewayId`,fC=`linkedGroupId`,pC=`lastLaunchedTime`,mC=`licenseSet`,hC=`launchTime`,gC=`lambda`,_C=`multiAttachEnabled`,vC=`mediaAcceleratorInfo`,yC=`macAddress`,bC=`maximumBandwidthInMbps`,xC=`mapCustomerOwnedIpOnLaunch`,SC=`maximumEbsAttachments`,CC=`maximumEbsCards`,wC=`maximumEfaInterfaces`,TC=`maximumEnaQueueCount`,EC=`maximumEnaQueueCountPerInterface`,DC=`maximumIops`,OC=`memoryInfo`,kC=`maximumNetworkCards`,AC=`maximumNetworkInterfaces`,jC=`metadataOptions`,MC=`maintenanceOptions`,NC=`mapPublicIpOnLaunch`,PC=`maxResults`,FC=`messageSet`,IC=`maximumSecondaryNetworkInterfaces`,LC=`modificationState`,RC=`maximumThroughputInMBps`,zC=`main`,BC=`manufacturer`,VC=`managed`,HC=`message`,UC=`monitoring`,WC=`mode`,GC=`name`,KC=`networkBorderGroup`,qC=`networkCards`,JC=`networkCardIndex`,YC=`noDevice`,XC=`neuronDevices`,ZC=`nitroEnclavesSupport`,QC=`natGateway`,$C=`natGatewayAddressSet`,ew=`natGatewayId`,tw=`natGatewaySet`,nw=`networkInterfaceId`,rw=`networkInterfaceOwnerId`,iw=`networkInterfaceSet`,aw=`networkInterface`,ow=`networkInfo`,sw=`neuronInfo`,cw=`networkPerformanceOptions`,lw=`networkPerformance`,uw=`noReboot`,dw=`nvmeSupport`,fw=`nitroTpmInfo`,pw=`nitroTpmSupport`,mw=`nextToken`,hw=`nestedVirtualization`,gw=`origin`,_w=`outpostArn`,vw=`ownerAlias`,yw=`ownerId`,bw=`optInStatus`,xw=`originalIops`,Sw=`originalMultiAttachEnabled`,Cw=`odbNetworkArn`,ww=`originalSize`,Tw=`originalThroughput`,Ew=`originalVolumeType`,Dw=`operator`,Ow=`output`,kw=`principal`,Aw=`provisionedBandwidth`,jw=`peakBandwidthInGbps`,Mw=`productCodes`,Nw=`partitionCount`,Pw=`productCode`,Fw=`privateDnsNameOptions`,Iw=`privateDnsNameOptionsOnLaunch`,Lw=`privateDnsName`,Rw=`publicDnsName`,zw=`platformDetails`,Bw=`placementGroup`,Vw=`placementGroupInfo`,Hw=`placementGroupSet`,Uw=`publicIp`,Ww=`privateIpAddressesSet`,Gw=`privateIpAddressSet`,Kw=`privateIpAddress`,qw=`publicIpv4Pool`,Jw=`processorInfo`,Yw=`privateIp`,Xw=`publicKey`,Zw=`publicKeyMaterial`,Qw=`prefixListId`,$w=`prefixListIds`,eT=`partitionNumber`,tT=`peeringStatus`,nT=`phcSupport`,rT=`previousState`,iT=`provisionTime`,aT=`presignedUrl`,oT=`propagatingVgwSet`,sT=`parentZoneId`,cT=`parentZoneName`,lT=`platform`,uT=`placement`,dT=`primary`,fT=`progress`,pT=`provisioned`,mT=`return`,hT=`rootDeviceName`,gT=`rootDeviceType`,_T=`restoreExpiryTime`,vT=`regionEndpoint`,yT=`resourceExclusions`,bT=`referencedGroupId`,xT=`referencedGroupInfo`,ST=`reservationId`,CT=`ramdiskId`,wT=`regionInfo`,TT=`requesterId`,ET=`rebootMigrationSupport`,DT=`rebootMigration`,OT=`regionName`,kT=`revokedSecurityGroupRuleSet`,AT=`reservationSet`,jT=`routeSet`,MT=`routeTableAssociationId`,NT=`routeTableId`,PT=`routeTableSet`,FT=`resourceType`,IT=`requestTime`,LT=`routeTable`,RT=`ramdisk`,zT=`reason`,BT=`requested`,VT=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,HT=`supportedArchitectures`,UT=`subnetArn`,WT=`supportedBootModes`,GT=`sustainedClockSpeedInGhz`,KT=`sourceDestCheck`,qT=`spreadDomain`,JT=`supportedFeatures`,YT=`securityGroupArn`,XT=`securityGroupInfo`,ZT=`securityGroupRuleArn`,QT=`securityGroupRuleId`,$T=`securityGroupRuleSet`,eE=`subGeographySet`,tE=`sizeInGB`,nE=`sourceInstanceId`,rE=`secondaryInterfaceId`,iE=`sourceImageId`,aE=`sizeInMiB`,oE=`sourceImageRegion`,sE=`spotInstanceRequestId`,cE=`supportedInRegion`,lE=`secondaryInterfaceSet`,uE=`snapshotId`,dE=`subnetId`,fE=`spreadLevel`,pE=`serviceManaged`,mE=`statusMessage`,hE=`stateMessage`,gE=`secondaryNetworkId`,_E=`secondaryNetworkSupported`,vE=`sriovNetSupport`,yE=`secondaryPrivateIpAddressCount`,bE=`supportedRootDeviceTypes`,xE=`stateReason`,SE=`sourceSecurityGroupName`,CE=`sourceSecurityGroupOwnerId`,wE=`secondarySubnetId`,TE=`snapshotSet`,EE=`subnetSet`,DE=`supportedStrategies`,OE=`startTime`,kE=`sseType`,AE=`storageTier`,jE=`supportedUsageClasses`,ME=`sourceVolumeId`,NE=`supportedVirtualizationTypes`,PE=`supportedVersions`,FE=`size`,IE=`state`,LE=`status`,RE=`strategy`,zE=`subnet`,BE=`tenancy`,VE=`tcpEstablishedTimeout`,HE=`totalFpgaMemoryInMiB`,UE=`transitGatewayId`,WE=`totalGpuMemoryInMiB`,GE=`totalInferenceMemoryInMiB`,KE=`targetIops`,qE=`targetMultiAttachEnabled`,JE=`totalMediaMemoryInMiB`,YE=`totalNeuronDeviceMemoryInMiB`,XE=`toPort`,ZE=`threadsPerCore`,QE=`tagSet`,$E=`totalSizeInGB`,eD=`targetSize`,tD=`tpmSupport`,nD=`targetThroughput`,rD=`transferType`,iD=`targetVolumeType`,aD=`throughput`,oD=`timestamp`,sD=`type`,cD=`userData`,lD=`userId`,uD=`unknownIpPermissionSet`,dD=`usageOperation`,fD=`usageOperationUpdateTime`,pD=`udpStreamTimeout`,mD=`udpTimeout`,hD=`value`,gD=`vCpuInfo`,_D=`validCores`,vD=`vpcEncryptionControlId`,yD=`vpcEndpointId`,bD=`vpcId`,xD=`volumeInitializationRate`,SD=`volumeId`,CD=`vpcLattice`,wD=`volumeModification`,TD=`virtualName`,ED=`volumeOwnerId`,DD=`vpcPeeringConnectionId`,OD=`virtualPrivateGateway`,kD=`vpcPeering`,AD=`volumeSet`,jD=`volumeSize`,MD=`vpcSet`,ND=`volumeType`,PD=`validThreadsPerCore`,FD=`virtualizationType`,ID=`version`,LD=`vpc`,RD=`workloadSet`,x=`xmlName`,zD=`zoneId`,BD=`zoneName`,VD=`zoneState`,HD=`zoneType`,S=`com.amazonaws.ec2`,UD=dt.for(VT),WD=[-3,VT,`EC2ServiceException`,0,[],[]];UD.registerError(WD,$ee);var GD=[UD],KD=[0,S,Zo,8,0],qD=[0,S,Ene,8,0],JD=[0,S,vie,8,0],YD=[0,S,coe,8,0],XD=[3,S,ia,0,[sa,la,Il,wh,are,Zh,_,$h,yh,Oo,ko,co,Eg,Jae,m,Xh],[[0,{[y]:`AllocationId`,[x]:Tv}],[0,{[y]:`AssociationId`,[x]:kv}],[0,{[y]:`Domain`,[x]:Sb}],[0,{[y]:`NetworkInterfaceId`,[x]:nw}],[0,{[y]:`NetworkInterfaceOwnerId`,[x]:rw}],[0,{[y]:`PrivateIpAddress`,[x]:Kw}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`PublicIpv4Pool`,[x]:qw}],[0,{[y]:`NetworkBorderGroup`,[x]:KC}],[0,{[y]:`CustomerOwnedIp`,[x]:Ny}],[0,{[y]:`CustomerOwnedIpv4Pool`,[x]:Py}],[0,{[y]:`CarrierIp`,[x]:Ty}],[0,{[y]:`SubnetId`,[x]:dE}],[0,{[y]:`ServiceManaged`,[x]:pE}],[0,{[y]:`InstanceId`,[x]:lS}],[0,{[y]:`PublicIp`,[x]:Uw}]]],ZD=[3,S,ete,0,[Il,ia,$h,yh,ko,Jg,Mp,p],[0,0,0,0,0,[()=>VP,{[x]:Zg}],0,[2,{[y]:`DryRun`,[x]:v}]]],QD=[3,S,tte,0,[sa,$h,yh,Il,Oo,ko,co,Xh],[[0,{[y]:`AllocationId`,[x]:Tv}],[0,{[y]:`PublicIpv4Pool`,[x]:qw}],[0,{[y]:`NetworkBorderGroup`,[x]:KC}],[0,{[y]:`Domain`,[x]:Sb}],[0,{[y]:`CustomerOwnedIp`,[x]:Ny}],[0,{[y]:`CustomerOwnedIpv4Pool`,[x]:Py}],[0,{[y]:`CarrierIp`,[x]:Ty}],[0,{[y]:`PublicIp`,[x]:Uw}]]],$D=[3,S,nte,0,[sa,m,Xh,p,wh,Zh,jte],[0,0,0,[2,{[y]:`DryRun`,[x]:v}],[0,{[y]:`NetworkInterfaceId`,[x]:nw}],[0,{[y]:`PrivateIpAddress`,[x]:Kw}],[2,{[y]:`AllowReassociation`,[x]:Rv}]]],eO=[3,S,rte,0,[la],[[0,{[y]:`AssociationId`,[x]:kv}]]],tO=[3,S,gte,0,[Ff,m],[[()=>AA,0],0],2],nO=[3,S,_te,0,[If],[[()=>kA,{[y]:`IamInstanceProfileAssociation`,[x]:dS}]]],rO=[3,S,Ote,0,[pg,yd,$h,p,Eg],[[0,{[y]:`RouteTableId`,[x]:NT}],0,0,[2,{[y]:`DryRun`,[x]:v}],[0,{[y]:`SubnetId`,[x]:dE}]],1],iO=[3,S,kte,0,[la,ma],[[0,{[y]:`AssociationId`,[x]:kv}],[()=>_M,{[y]:`AssociationState`,[x]:Vv}]]],aO=[3,S,mte,0,[Df,N_,p],[[0,{[y]:`InternetGatewayId`,[x]:sS}],[0,{[y]:`VpcId`,[x]:bD}],[2,{[y]:`DryRun`,[x]:v}]],2],oO=[3,S,Hte,0,[Pl,m,z_,Bl,p],[0,0,0,1,[2,{[y]:`DryRun`,[x]:v}]],3],sO=[3,S,lte,0,[y_],[[2,{[y]:`Value`,[x]:hD}]]],cO=[3,S,Ute,0,[y_],[[0,{[y]:`Value`,[x]:hD}]]],lO=[3,S,Pte,0,[Cd,Jg,p,Pg,Fg,Wp,rd,Gg,go,Hp],[[0,{[y]:`GroupId`,[x]:Cx}],[()=>VP,{[x]:Zg}],[2,{[y]:`DryRun`,[x]:v}],[0,{[y]:`SourceSecurityGroupName`,[x]:SE}],[0,{[y]:`SourceSecurityGroupOwnerId`,[x]:CE}],[0,{[y]:`IpProtocol`,[x]:OS}],[1,{[y]:`FromPort`,[x]:px}],[1,{[y]:`ToPort`,[x]:XE}],[0,{[y]:`CidrIp`,[x]:Dy}],[()=>qN,{[y]:`IpPermissions`,[x]:kS}]],1],uO=[3,S,Fte,0,[sg,vg],[[2,{[y]:`Return`,[x]:mT}],[()=>NP,{[y]:`SecurityGroupRuleSet`,[x]:$T}]]],dO=[3,S,Ite,0,[go,rd,Cd,Dd,Hp,Wp,Pg,Fg,Gg,Jg,p],[0,1,0,0,[()=>qN,0],0,0,0,1,[()=>VP,{[x]:Zg}],[2,{[y]:`DryRun`,[x]:v}]]],fO=[3,S,Lte,0,[sg,vg],[[2,{[y]:`Return`,[x]:mT}],[()=>NP,{[y]:`SecurityGroupRuleSet`,[x]:$T}]]],pO=[3,S,_a,0,[Fh,zne,dg,vv,hv,Dd,yh,xv,tie,eie,Ed,Md,pae,g],[[0,{[y]:`OptInStatus`,[x]:bw}],[()=>rN,{[y]:`MessageSet`,[x]:FC}],[0,{[y]:`RegionName`,[x]:OT}],[0,{[y]:`ZoneName`,[x]:BD}],[0,{[y]:`ZoneId`,[x]:zD}],[0,{[y]:`GroupName`,[x]:Tx}],[0,{[y]:`NetworkBorderGroup`,[x]:KC}],[0,{[y]:`ZoneType`,[x]:HD}],[0,{[y]:`ParentZoneName`,[x]:cT}],[0,{[y]:`ParentZoneId`,[x]:sT}],[0,{[y]:`GroupLongName`,[x]:wx}],[()=>tN,{[y]:`GeographySet`,[x]:Ox}],[()=>iN,{[y]:`SubGeographySet`,[x]:eE}],[0,{[y]:`ZoneState`,[x]:VD}]]],mO=[3,S,va,0,[_a,ba,ca],[0,0,[()=>ZM,{[x]:sa}]]],hO=[3,S,Gte,0,[vh],[[0,{[y]:`Name`,[x]:GC}]]],gO=[3,S,Jte,0,[hh],[[0,{[y]:`Message`,[x]:HC}]]],_O=[3,S,Xte,0,[vh],[[0,{[y]:`Name`,[x]:GC}]]],vO=[3,S,Na,0,[y_],[[21,{[y]:`Value`,[x]:hD}]]],yO=[3,S,Ia,0,[Wu,xh,xc,q_],[[()=>tA,{[y]:`Ebs`,[x]:ox}],[0,{[y]:`NoDevice`,[x]:YC}],[0,{[y]:`DeviceName`,[x]:ib}],[0,{[y]:`VirtualName`,[x]:TD}]]],bO=[3,S,Ga,0,[Tf],[[0,{[y]:`InternetGatewayBlockMode`,[x]:oS}]]],xO=[3,S,Bo,0,[Fo,Vo],[0,()=>CO]],SO=[3,S,zo,0,[Fo,Vo],[[0,{[y]:`CapacityReservationPreference`,[x]:Iy}],[()=>wO,{[y]:`CapacityReservationTarget`,[x]:zy}]]],CO=[3,S,Vo,0,[Po,Lo],[0,0]],wO=[3,S,Ho,0,[Po,Lo],[[0,{[y]:`CapacityReservationId`,[x]:Fy}],[0,{[y]:`CapacityReservationResourceGroupArn`,[x]:Ly}]]],TO=[3,S,ds,0,[Ug,__,v_],[1,1,1]],EO=[3,S,fs,0,[Ug,__,v_],[[1,{[y]:`TcpEstablishedTimeout`,[x]:VE}],[1,{[y]:`UdpStreamTimeout`,[x]:pD}],[1,{[y]:`UdpTimeout`,[x]:mD}]]],DO=[3,S,Xo,0,[noe,roe,Nl,kc,Yc,Ku,Im,Xre,Jg,io,ks,p],[0,0,0,0,[0,{[y]:`DestinationRegion`,[x]:db}],[2,{[y]:`Encrypted`,[x]:cx}],[0,{[y]:`KmsKeyId`,[x]:nC}],[()=>KD,{[y]:`PresignedUrl`,[x]:aT}],[()=>VP,{[x]:Zg}],1,0,[2,{[y]:`DryRun`,[x]:v}]],2],OO=[3,S,Qo,0,[_,Tg],[[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`SnapshotId`,[x]:uE}]]],kO=[3,S,Do,0,[no,Kg,ha,Mh],[[1,{[y]:`CoreCount`,[x]:by}],[1,{[y]:`ThreadsPerCore`,[x]:ZE}],[0,{[y]:`AmdSevSnp`,[x]:Uv}],[0,{[y]:`NestedVirtualization`,[x]:hw}]]],AO=[3,S,Ao,0,[no,Kg,ha,Mh],[1,1,0,0]],jO=[3,S,mo,0,[m,vh,Jg,Gae,p,Nl,ore,za],[[0,{[y]:`InstanceId`,[x]:lS}],[0,{[y]:`Name`,[x]:GC}],[()=>VP,{[x]:Zg}],0,[2,{[y]:`DryRun`,[x]:v}],[0,{[y]:`Description`,[x]:yb}],[2,{[y]:`NoReboot`,[x]:uw}],[()=>sN,{[y]:`BlockDeviceMapping`,[x]:sy}]],2],MO=[3,S,ho,0,[Yf],[[0,{[y]:`ImageId`,[x]:mS}]]],NO=[3,S,fo,0,[Jg,p],[[()=>VP,{[x]:Zg}],[2,{[y]:`DryRun`,[x]:v}]]],PO=[3,S,po,0,[Sf],[[()=>fj,{[y]:`InternetGateway`,[x]:aS}]]],FO=[3,S,So,0,[Rm,Jm,Jg,Nm,p],[0,0,[()=>VP,{[x]:Zg}],0,[2,{[y]:`DryRun`,[x]:v}]],1],IO=[3,S,To,0,[da,sa,cs,p,Eg,N_,ya,Jg,ms,Zh,rae,$ae,Mg],[0,0,[0,4],2,0,0,[()=>eN,{[x]:va}],[()=>VP,{[x]:Zg}],0,0,[()=>ZM,{[x]:iae}],[()=>KN,{[x]:eoe}],1]],LO=[3,S,Eo,0,[cs,Sh],[[0,{[y]:`ClientToken`,[x]:Vy}],[()=>Nj,{[y]:`NatGateway`,[x]:QC}]]],RO=[3,S,Mo,0,[Vh,Jg,Dg,$m,Lh,p,Dd,Vg],[1,[()=>VP,{[x]:Zg}],0,0,()=>Uj,[2,{[y]:`DryRun`,[x]:v}],[0,{[y]:`GroupName`,[x]:Tx}],[0,{[y]:`Strategy`,[x]:RE}]]],zO=[3,S,No,0,[Jh],[[()=>Kj,{[y]:`PlacementGroup`,[x]:Bw}]]],BO=[3,S,Io,0,[pg,Lc,M_,Wg,Qm,oo,Co,Ih,p,Fs,yd,Us,Su,m,wh,Y_,Ch],[[0,{[y]:`RouteTableId`,[x]:NT}],0,0,0,0,0,0,0,[2,{[y]:`DryRun`,[x]:v}],[0,{[y]:`DestinationCidrBlock`,[x]:Xy}],[0,{[y]:`GatewayId`,[x]:xx}],[0,{[y]:`DestinationIpv6CidrBlock`,[x]:rb}],[0,{[y]:`EgressOnlyInternetGatewayId`,[x]:Gb}],[0,{[y]:`InstanceId`,[x]:lS}],[0,{[y]:`NetworkInterfaceId`,[x]:nw}],[0,{[y]:`VpcPeeringConnectionId`,[x]:DD}],[0,{[y]:`NatGatewayId`,[x]:ew}]],1],VO=[3,S,Ro,0,[sg],[[2,{[y]:`Return`,[x]:mT}]]],HO=[3,S,Uo,0,[N_,Jg,cs,p],[[0,{[y]:`VpcId`,[x]:bD}],[()=>VP,{[x]:Zg}],[0,4],[2,{[y]:`DryRun`,[x]:v}]],1],UO=[3,S,Wo,0,[mg,cs],[[()=>hM,{[y]:`RouteTable`,[x]:LT}],[0,{[y]:`ClientToken`,[x]:Vy}]]],WO=[3,S,Jo,0,[Nl,Dd,N_,Jg,p],[[0,{[x]:hd}],0,0,[()=>VP,{[x]:Zg}],[2,{[y]:`DryRun`,[x]:v}]],2],GO=[3,S,Yo,0,[Cd,_,gg],[[0,{[y]:`GroupId`,[x]:Cx}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`SecurityGroupArn`,[x]:YT}]]],KO=[3,S,$o,0,[z_,Nl,Nh,Jg,mne,p],[0,0,0,[()=>VP,{[x]:Zg}],0,[2,{[y]:`DryRun`,[x]:v}]],1],qO=[3,S,es,0,[N_,Jg,_a,ba,Za,df,Nh,mp,Bf,Sp,zf,xp,p],[0,[()=>VP,{[x]:Zg}],0,0,0,0,0,2,0,1,0,1,[2,{[y]:`DryRun`,[x]:v}]],1],JO=[3,S,ts,0,[Hg],[[()=>kM,{[y]:`Subnet`,[x]:zE}]]],YO=[3,S,gs,0,[_a,ba,Ku,jm,Im,Nh,zg,Tg,nv,Jg,eh,a_,cs,I_,Lh,p],[0,0,[2,{[y]:`Encrypted`,[x]:cx}],1,0,0,1,0,0,[()=>VP,{[x]:Zg}],2,1,[0,4],1,()=>Uj,[2,{[y]:`DryRun`,[x]:v}]]],XO=[3,S,_s,0,[Za,Kp,df,Bf,Sp,zf,xp,pf,D_,Jg,p,Cm,Tte],[0,0,0,0,1,0,1,0,()=>GM,[()=>VP,{[x]:Zg}],[2,{[y]:`DryRun`,[x]:v}],[0,{[y]:`InstanceTenancy`,[x]:XS}],[2,{[y]:`AmazonProvidedIpv6CidrBlock`,[x]:Fv}]]],ZO=[3,S,vs,0,[dv],[[()=>VM,{[y]:`Vpc`,[x]:LD}]]],QO=[3,S,ns,0,[ro],[0],1],$O=[3,S,Is,0,[ml,yl,vl],[[1,{[y]:`DefaultTcpEstablishedTimeout`,[x]:fb}],[1,{[y]:`DefaultUdpTimeout`,[x]:_b}],[1,{[y]:`DefaultUdpStreamTimeout`,[x]:gb}]]],ek=[3,S,Gs,0,[Df,p],[[0,{[y]:`InternetGatewayId`,[x]:sS}],[2,{[y]:`DryRun`,[x]:v}]],1],tk=[3,S,hc,0,[Rm,Hm,p],[0,0,[2,{[y]:`DryRun`,[x]:v}]]],nk=[3,S,gc,0,[sg,Hm],[[2,{[y]:`Return`,[x]:mT}],[0,{[y]:`KeyPairId`,[x]:aC}]]],rk=[3,S,wc,0,[Ch,p],[[0,{[x]:Ch}],2],1],ik=[3,S,Tc,0,[Ch],[[0,{[y]:`NatGatewayId`,[x]:ew}]]],ak=[3,S,Nc,0,[Dd,p],[[0,{[y]:`GroupName`,[x]:Tx}],[2,{[y]:`DryRun`,[x]:v}]],1],ok=[3,S,zc,0,[pg,Lc,p,Fs,Us],[[0,{[y]:`RouteTableId`,[x]:NT}],0,[2,{[y]:`DryRun`,[x]:v}],[0,{[y]:`DestinationCidrBlock`,[x]:Xy}],[0,{[y]:`DestinationIpv6CidrBlock`,[x]:rb}]],1],sk=[3,S,Uc,0,[pg,p],[[0,{[y]:`RouteTableId`,[x]:NT}],[2,{[y]:`DryRun`,[x]:v}]],1],ck=[3,S,$c,0,[Cd,Dd,p],[0,0,[2,{[y]:`DryRun`,[x]:v}]]],lk=[3,S,el,0,[sg,Cd],[[2,{[y]:`Return`,[x]:mT}],[0,{[y]:`GroupId`,[x]:Cx}]]],uk=[3,S,il,0,[Tg,p],[0,[2,{[y]:`DryRun`,[x]:v}]],1],dk=[3,S,al,0,[Eg,p],[0,[2,{[y]:`DryRun`,[x]:v}]],1],fk=[3,S,xl,0,[z_,p],[0,[2,{[y]:`DryRun`,[x]:v}]],1],pk=[3,S,Sl,0,[N_,p],[0,[2,{[y]:`DryRun`,[x]:v}]],1],mk=[3,S,ws,0,[Vre,p,sd,ca],[[()=>yP,{[x]:Xh}],[2,{[y]:`DryRun`,[x]:v}],[()=>_N,{[x]:cd}],[()=>ZM,{[x]:sa}]]],hk=[3,S,Ts,0,[wa],[[()=>XM,{[y]:`AddressesSet`,[x]:Wv}]]],gk=[3,S,As,0,[bv,_v,ite,p,sd],[[()=>nF,{[x]:vv}],[()=>tF,{[x]:hv}],2,[2,{[y]:`DryRun`,[x]:v}],[()=>_N,{[x]:cd}]]],_k=[3,S,js,0,[Sa],[[()=>nN,{[y]:`AvailabilityZoneInfo`,[x]:Zv}]]],vk=[3,S,$s,0,[bte,sd,dh,h],[[()=>$M,{[x]:la}],[()=>_N,{[x]:cd}],1,0]],yk=[3,S,ec,0,[Rf,h],[[()=>CN,{[y]:`IamInstanceProfileAssociationSet`,[x]:fS}],[0,{[y]:`NextToken`,[x]:mw}]]],bk=[3,S,ic,0,[Uu,Xf,xre,hf,yf,dh,h,p,sd],[[()=>gN,{[x]:zl}],[()=>wN,{[x]:Yf}],[()=>dP,{[x]:Rh}],2,2,1,0,[2,{[y]:`DryRun`,[x]:v}],[()=>_N,{[x]:cd}]]],xk=[3,S,ac,0,[h,Dm],[[0,{[y]:`NextToken`,[x]:mw}],[()=>TN,{[y]:`ImagesSet`,[x]:zS}]]],Sk=[3,S,oc,0,[Zf,fp,p,sd,h,dh],[[()=>kN,{[x]:m}],2,[2,{[y]:`DryRun`,[x]:v}],[()=>_N,{[x]:cd}],[0,{[y]:`NextToken`,[x]:mw}],[1,{[y]:`MaxResults`,[x]:PC}]]],Ck=[3,S,sc,0,[h,$ie],[[0,{[y]:`NextToken`,[x]:mw}],[()=>CP,{[y]:`ReservationSet`,[x]:AT}]]],wk=[3,S,cc,0,[p,wm,sd,dh,h,Em],[2,[64,{[x]:ym}],[()=>_N,{[x]:cd}],1,0,2]],Tk=[3,S,lc,0,[wm,h],[[()=>HN,{[y]:`InstanceTypeSet`,[x]:qS}],[0,{[y]:`NextToken`,[x]:mw}]]],Ek=[3,S,Ks,0,[h,dh,p,kf,sd],[0,1,[2,{[y]:`DryRun`,[x]:v}],[()=>WN,{[y]:`InternetGatewayId`,[x]:sS}],[()=>_N,{[x]:cd}]]],Dk=[3,S,qs,0,[jf,h],[[()=>GN,{[y]:`InternetGatewaySet`,[x]:cS}],[0,{[y]:`NextToken`,[x]:mw}]]],Ok=[3,S,_c,0,[Bm,Wm,Fp,p,sd],[[()=>QN,{[x]:Rm}],[()=>$N,{[x]:Hm}],2,[2,{[y]:`DryRun`,[x]:v}],[()=>_N,{[x]:cd}]]],kk=[3,S,vc,0,[Vm],[[()=>eP,{[y]:`KeySet`,[x]:oC}]]],Ak=[3,S,Ec,0,[p,cd,dh,nre,h],[2,[()=>_N,0],1,[()=>oP,{[x]:Ch}],0]],jk=[3,S,Dc,0,[ire,h],[[()=>sP,{[y]:`NatGatewaySet`,[x]:tw}],[0,{[y]:`NextToken`,[x]:mw}]]],Mk=[3,S,Pc,0,[wd,p,kd,sd],[[()=>fP,{[x]:Cd}],[2,{[y]:`DryRun`,[x]:v}],[64,{[y]:`GroupName`,[x]:Tx}],[()=>_N,{[x]:cd}]]],Nk=[3,S,Fc,0,[Nre],[[()=>pP,{[y]:`PlacementGroupSet`,[x]:Hw}]]],Pk=[3,S,Bc,0,[kie,Mte,p,sd],[[()=>SP,{[x]:dg}],2,[2,{[y]:`DryRun`,[x]:v}],[()=>_N,{[x]:cd}]]],Fk=[3,S,Vc,0,[Xie],[[()=>xP,{[y]:`RegionInfo`,[x]:wT}]]],Ik=[3,S,Wc,0,[h,dh,p,Wie,sd],[0,1,[2,{[y]:`DryRun`,[x]:v}],[()=>OP,{[x]:pg}],[()=>_N,{[x]:cd}]]],Lk=[3,S,Gc,0,[Jie,h],[[()=>kP,{[y]:`RouteTableSet`,[x]:PT}],[0,{[y]:`NextToken`,[x]:mw}]]],Rk=[3,S,tl,0,[wd,kd,h,dh,p,sd],[[()=>xN,{[x]:Cd}],[()=>SN,{[x]:Dd}],0,1,[2,{[y]:`DryRun`,[x]:v}],[()=>_N,{[x]:cd}]]],zk=[3,S,nl,0,[h,xg],[[0,{[y]:`NextToken`,[x]:mw}],[()=>jP,{[y]:`SecurityGroupInfo`,[x]:XT}]]],Bk=[3,S,ol,0,[dh,h,fre,oie,Bae,p,sd],[1,0,[()=>dP,{[x]:Rh}],[64,{[x]:sie}],[()=>FP,{[x]:Tg}],[2,{[y]:`DryRun`,[x]:v}],[()=>_N,{[x]:cd}]]],Vk=[3,S,sl,0,[h,foe],[[0,{[y]:`NextToken`,[x]:mw}],[()=>IP,{[y]:`SnapshotSet`,[x]:TE}]]],Hk=[3,S,cl,0,[sd,Sae,h,dh,p],[[()=>_N,{[x]:cd}],[()=>LP,{[x]:Eg}],0,1,[2,{[y]:`DryRun`,[x]:v}]]],Uk=[3,S,ll,0,[h,moe],[[0,{[y]:`NextToken`,[x]:mw}],[()=>zP,{[y]:`SubnetSet`,[x]:EE}]]],Wk=[3,S,Cl,0,[B_,fp,p,sd,h,dh],[[()=>JP,{[x]:z_}],2,[2,{[y]:`DryRun`,[x]:v}],[()=>_N,{[x]:cd}],[0,{[y]:`NextToken`,[x]:mw}],[1,{[y]:`MaxResults`,[x]:PC}]]],Gk=[3,S,wl,0,[h,lv],[[0,{[y]:`NextToken`,[x]:mw}],[()=>YP,{[y]:`VolumeSet`,[x]:AD}]]],Kk=[3,S,Tl,0,[sd,V_,h,dh,p],[[()=>_N,{[x]:cd}],[()=>ZP,{[x]:N_}],0,1,[2,{[y]:`DryRun`,[x]:v}]]],qk=[3,S,El,0,[h,fv],[[0,{[y]:`NextToken`,[x]:mw}],[()=>$P,{[y]:`VpcSet`,[x]:MD}]]],Jk=[3,S,Js,0,[Df,N_,p],[[0,{[y]:`InternetGatewayId`,[x]:sS}],[0,{[y]:`VpcId`,[x]:bD}],[2,{[y]:`DryRun`,[x]:v}]],2],Yk=[3,S,Dl,0,[z_,Pl,Ju,m,p],[0,0,2,0,[2,{[y]:`DryRun`,[x]:v}]],1],Xk=[3,S,Es,0,[la,Xh,p],[0,0,[2,{[y]:`DryRun`,[x]:v}]]],Zk=[3,S,tc,0,[la],[0],1],Qk=[3,S,nc,0,[If],[[()=>kA,{[y]:`IamInstanceProfileAssociation`,[x]:dS}]]],$k=[3,S,Kc,0,[la,p],[[0,{[y]:`AssociationId`,[x]:kv}],[2,{[y]:`DryRun`,[x]:v}]],1],eA=[3,S,pc,0,[Tae,Cs,s_],[[1,{[y]:`SizeInGB`,[x]:tE}],[1,{[y]:`Count`,[x]:Jy}],[0,{[y]:`Type`,[x]:sD}]]],tA=[3,S,Ll,0,[jc,jm,Tg,tv,nv,Im,a_,Nh,_a,Ku,I_,ba,Bl],[[2,{[y]:`DeleteOnTermination`,[x]:cb}],[1,{[y]:`Iops`,[x]:QS}],[0,{[y]:`SnapshotId`,[x]:uE}],[1,{[y]:`VolumeSize`,[x]:jD}],[0,{[y]:`VolumeType`,[x]:ND}],[0,{[y]:`KmsKeyId`,[x]:nC}],[1,{[y]:`Throughput`,[x]:aD}],[0,{[y]:`OutpostArn`,[x]:_w}],[0,{[y]:`AvailabilityZone`,[x]:Yv}],[2,{[y]:`Encrypted`,[x]:cx}],1,0,1]],nA=[3,S,Hl,0,[Bl,Fa,qa,Va,rh,ph,ah],[[1,{[y]:`EbsCardIndex`,[x]:Cb}],[1,{[y]:`BaselineBandwidthInMbps`,[x]:oy}],[1,{[y]:`BaselineThroughputInMBps`,[x]:py}],[1,{[y]:`BaselineIops`,[x]:cy}],[1,{[y]:`MaximumBandwidthInMbps`,[x]:bC}],[1,{[y]:`MaximumThroughputInMBps`,[x]:RC}],[1,{[y]:`MaximumIops`,[x]:DC}]]],rA=[3,S,hu,0,[wu,Bu,yu,Ah,bne,Ste,xne,Ul],[[0,{[y]:`EbsOptimizedSupport`,[x]:Kb}],[0,{[y]:`EncryptionSupport`,[x]:rx}],[()=>oA,{[y]:`EbsOptimizedInfo`,[x]:Ub}],[0,{[y]:`NvmeSupport`,[x]:dw}],[1,{[y]:`MaximumEbsAttachments`,[x]:SC}],[0,{[y]:`AttachmentLimitType`,[x]:Mv}],[1,{[y]:`MaximumEbsCards`,[x]:CC}],[()=>dN,{[y]:`EbsCardSet`,[x]:wb}]]],iA=[3,S,fu,0,[ga,jc,Bg,z_,fa,J_,Lh,Bl],[[4,{[y]:`AttachTime`,[x]:Jv}],[2,{[y]:`DeleteOnTermination`,[x]:cb}],[0,{[y]:`Status`,[x]:LE}],[0,{[y]:`VolumeId`,[x]:SD}],[0,{[y]:`AssociatedResource`,[x]:zv}],[0,{[y]:`VolumeOwnerId`,[x]:ED}],[()=>Wj,{[y]:`Operator`,[x]:Dw}],[1,{[y]:`EbsCardIndex`,[x]:Cb}]]],aA=[3,S,pu,0,[z_,jc],[[0,{[y]:`VolumeId`,[x]:SD}],[2,{[y]:`DeleteOnTermination`,[x]:cb}]]],oA=[3,S,yu,0,[Fa,qa,Va,rh,ph,ah],[[1,{[y]:`BaselineBandwidthInMbps`,[x]:oy}],[1,{[y]:`BaselineThroughputInMBps`,[x]:py}],[1,{[y]:`BaselineIops`,[x]:cy}],[1,{[y]:`MaximumBandwidthInMbps`,[x]:bC}],[1,{[y]:`MaximumThroughputInMBps`,[x]:RC}],[1,{[y]:`MaximumIops`,[x]:DC}]]],sA=[3,S,gu,0,[Sne],[[1,{[y]:`MaximumEfaInterfaces`,[x]:wC}]]],cA=[3,S,Jl,0,[eu,Yl,Zl,Ql],[[0,{[y]:`ElasticGpuId`,[x]:Mb}],[0,{[y]:`ElasticGpuAssociationId`,[x]:Ob}],[0,{[y]:`ElasticGpuAssociationState`,[x]:kb}],[0,{[y]:`ElasticGpuAssociationTime`,[x]:jb}]]],lA=[3,S,tu,0,[s_],[0],1],uA=[3,S,ru,0,[s_,Cs],[0,1],1],dA=[3,S,iu,0,[lu,au,su,cu],[[0,{[y]:`ElasticInferenceAcceleratorArn`,[x]:Nb}],[0,{[y]:`ElasticInferenceAcceleratorAssociationId`,[x]:Pb}],[0,{[y]:`ElasticInferenceAcceleratorAssociationState`,[x]:Fb}],[4,{[y]:`ElasticInferenceAcceleratorAssociationTime`,[x]:Lb}]]],fA=[3,S,Pu,0,[Mu,Lu],[2,()=>pA]],pA=[3,S,Ru,0,[Iu],[2]],mA=[3,S,Tu,0,[Gu],[[2,{[y]:`Enabled`,[x]:sx}]]],hA=[3,S,Cu,0,[Gu],[2]],gA=[3,S,cd,0,[vh,sv],[0,[()=>GP,{[x]:y_}]]],_A=[3,S,Xu,0,[vh,mh,Cs,oh],[[0,{[y]:`Name`,[x]:GC}],[0,{[y]:`Manufacturer`,[x]:BC}],[1,{[y]:`Count`,[x]:Jy}],[()=>vA,{[y]:`MemoryInfo`,[x]:OC}]]],vA=[3,S,Qu,0,[Cg],[[1,{[y]:`SizeInMiB`,[x]:aE}]]],yA=[3,S,ed,0,[ld,hoe],[[()=>vN,{[y]:`Fpgas`,[x]:vx}],[1,{[y]:`TotalFpgaMemoryInMiB`,[x]:HE}]]],bA=[3,S,pd,0,[m,dne,p],[0,2,[2,{[y]:`DryRun`,[x]:v}]],1],xA=[3,S,md,0,[m,o_,bre],[[0,{[y]:`InstanceId`,[x]:lS}],[4,{[y]:`Timestamp`,[x]:oD}],[0,{[y]:`Output`,[x]:Ow}]]],SA=[3,S,gd,0,[vh,mh,Cs,ene,jd,mv,oh],[[0,{[y]:`Name`,[x]:GC}],[0,{[y]:`Manufacturer`,[x]:BC}],[1,{[y]:`Count`,[x]:Jy}],[1,{[y]:`LogicalGpuCount`,[x]:uC}],[1,{[y]:`GpuPartitionSize`,[x]:Dx}],[()=>eF,{[y]:`WorkloadSet`,[x]:RD}],[()=>CA,{[y]:`MemoryInfo`,[x]:OC}]]],CA=[3,S,vd,0,[Cg],[[1,{[y]:`SizeInMiB`,[x]:aE}]]],wA=[3,S,Sd,0,[Nd,goe],[[()=>yN,{[y]:`Gpus`,[x]:Ax}],[1,{[y]:`TotalGpuMemoryInMiB`,[x]:WE}]]],TA=[3,S,Td,0,[Cd,Dd],[[0,{[y]:`GroupId`,[x]:Cx}],[0,{[y]:`GroupName`,[x]:Tx}]]],EA=[3,S,Ld,0,[Ss],[[2,{[y]:`Configured`,[x]:qy}]]],DA=[3,S,Rd,0,[Ss],[2]],OA=[3,S,Ff,0,[Ea,qd],[[0,{[y]:`Arn`,[x]:ey}],[0,{[y]:`Id`,[x]:Ux}]]],kA=[3,S,If,0,[la,m,Ff,g,o_],[[0,{[y]:`AssociationId`,[x]:kv}],[0,{[y]:`InstanceId`,[x]:lS}],[()=>OA,{[y]:`IamInstanceProfile`,[x]:uS}],[0,{[y]:`State`,[x]:IE}],[4,{[y]:`Timestamp`,[x]:oD}]]],AA=[3,S,Uf,0,[Ea,vh],[[0,{[y]:`Arn`,[x]:ey}],[0,{[y]:`Name`,[x]:GC}]]],jA=[3,S,Om,0,[qh,h_,za,Nl,Vu,Kd,Tp,vh,cg,lg,Ag,Ng,_,av,Ha,$g,gl,hm,Oae,Rc,nne,rf,Eae,Aae,od,Yf,tp,g,Ph,ao,rie,Hh,Da,Sm,Fm,ug,rg],[[0,{[y]:`PlatformDetails`,[x]:zw}],[0,{[y]:`UsageOperation`,[x]:dD}],[()=>oN,{[y]:`BlockDeviceMapping`,[x]:sy}],[0,{[y]:`Description`,[x]:yb}],[2,{[y]:`EnaSupport`,[x]:ix}],[0,{[y]:`Hypervisor`,[x]:Mx}],[0,{[y]:`ImageOwnerAlias`,[x]:yS}],[0,{[y]:`Name`,[x]:GC}],[0,{[y]:`RootDeviceName`,[x]:hT}],[0,{[y]:`RootDeviceType`,[x]:gT}],[0,{[y]:`SriovNetSupport`,[x]:vE}],[()=>EM,{[y]:`StateReason`,[x]:xE}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`VirtualizationType`,[x]:FD}],[0,{[y]:`BootMode`,[x]:ly}],[0,{[y]:`TpmSupport`,[x]:tD}],[0,{[y]:`DeprecationTime`,[x]:mb}],[0,{[y]:`ImdsSupport`,[x]:VS}],[0,{[y]:`SourceInstanceId`,[x]:nE}],[0,{[y]:`DeregistrationProtection`,[x]:ub}],[0,{[y]:`LastLaunchedTime`,[x]:pC}],[2,{[y]:`ImageAllowed`,[x]:Zx}],[0,{[y]:`SourceImageId`,[x]:iE}],[0,{[y]:`SourceImageRegion`,[x]:oE}],[2,{[y]:`FreeTierEligible`,[x]:gx}],[0,{[y]:`ImageId`,[x]:mS}],[0,{[y]:`ImageLocation`,[x]:hS}],[0,{[y]:`ImageState`,[x]:BS}],[0,{[y]:`ImageOwnerId`,[x]:bS}],[0,{[y]:`CreationDate`,[x]:Sy}],[2,{[y]:`IsPublic`,[x]:NS}],[()=>_P,{[y]:`ProductCodes`,[x]:Mw}],[0,{[y]:`Architecture`,[x]:ty}],[0,{[y]:`ImageType`,[x]:YS}],[0,{[y]:`KernelId`,[x]:tC}],[0,{[y]:`RamdiskId`,[x]:CT}],[0,{[y]:`Platform`,[x]:lT}]]],MA=[3,S,$f,0,[Rm,Ure,Jg,p],[[0,{[y]:`KeyName`,[x]:iC}],[21,{[y]:`PublicKeyMaterial`,[x]:Zw}],[()=>VP,{[x]:Zg}],[2,{[y]:`DryRun`,[x]:v}]],2],NA=[3,S,ep,0,[Pm,Rm,Hm,_],[[0,{[y]:`KeyFingerprint`,[x]:eC}],[0,{[y]:`KeyName`,[x]:iC}],[0,{[y]:`KeyPairId`,[x]:aC}],[()=>C,{[y]:`TagSet`,[x]:QE}]]],PA=[3,S,$d,0,[Ca,voe],[[()=>EN,{[y]:`Accelerators`,[x]:Qv}],[1,{[y]:`TotalInferenceMemoryInMiB`,[x]:GE}]]],FA=[3,S,gf,0,[Cs,vh,mh,oh],[[1,{[y]:`Count`,[x]:Jy}],[0,{[y]:`Name`,[x]:GC}],[0,{[y]:`Manufacturer`,[x]:BC}],[()=>IA,{[y]:`MemoryInfo`,[x]:OC}]]],IA=[3,S,vf,0,[Cg],[[1,{[y]:`SizeInMiB`,[x]:aE}]]],LA=[3,S,km,0,[Da,za,cs,vu,Vu,Kd,Ff,rp,$l,uu,Th,Nh,cg,lg,xg,hg,kae,Ag,Ng,_,av,Do,$a,Po,Bo,Ld,pne,ch,Tu,Ha,qh,h_,g_,Wh,of,$g,lh,lo,Oh,Lh,wg,m,Yf,g,Uh,Kh,aoe,Rm,xte,Hh,ym,une,ig,Fm,ug,rg,_h,Eg,N_,Zh,Lre],[[0,{[y]:`Architecture`,[x]:ty}],[()=>DN,{[y]:`BlockDeviceMapping`,[x]:sy}],[0,{[y]:`ClientToken`,[x]:Vy}],[2,{[y]:`EbsOptimized`,[x]:Hb}],[2,{[y]:`EnaSupport`,[x]:ix}],[0,{[y]:`Hypervisor`,[x]:Mx}],[()=>OA,{[y]:`IamInstanceProfile`,[x]:uS}],[0,{[y]:`InstanceLifecycle`,[x]:gS}],[()=>fN,{[y]:`ElasticGpuAssociationSet`,[x]:Ab}],[()=>mN,{[y]:`ElasticInferenceAcceleratorAssociationSet`,[x]:Ib}],[()=>PN,{[y]:`NetworkInterfaceSet`,[x]:iw}],[0,{[y]:`OutpostArn`,[x]:_w}],[0,{[y]:`RootDeviceName`,[x]:hT}],[0,{[y]:`RootDeviceType`,[x]:gT}],[()=>bN,{[y]:`GroupSet`,[x]:kx}],[2,{[y]:`SourceDestCheck`,[x]:KT}],[0,{[y]:`SpotInstanceRequestId`,[x]:sE}],[0,{[y]:`SriovNetSupport`,[x]:vE}],[()=>EM,{[y]:`StateReason`,[x]:xE}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`VirtualizationType`,[x]:FD}],[()=>kO,{[y]:`CpuOptions`,[x]:My}],[0,{[y]:`CapacityBlockId`,[x]:vy}],[0,{[y]:`CapacityReservationId`,[x]:Fy}],[()=>SO,{[y]:`CapacityReservationSpecification`,[x]:Ry}],[()=>EA,{[y]:`HibernationOptions`,[x]:Ix}],[()=>tP,{[y]:`LicenseSet`,[x]:mC}],[()=>YA,{[y]:`MetadataOptions`,[x]:jC}],[()=>mA,{[y]:`EnclaveOptions`,[x]:qb}],[0,{[y]:`BootMode`,[x]:ly}],[0,{[y]:`PlatformDetails`,[x]:zw}],[0,{[y]:`UsageOperation`,[x]:dD}],[4,{[y]:`UsageOperationUpdateTime`,[x]:fD}],[()=>Zj,{[y]:`PrivateDnsNameOptions`,[x]:Fw}],[0,{[y]:`Ipv6Address`,[x]:$x}],[0,{[y]:`TpmSupport`,[x]:tD}],[()=>GA,{[y]:`MaintenanceOptions`,[x]:MC}],[0,{[y]:`CurrentInstanceBootMode`,[x]:Ey}],[()=>ej,{[y]:`NetworkPerformanceOptions`,[x]:cw}],[()=>Wj,{[y]:`Operator`,[x]:Dw}],[()=>LN,{[y]:`SecondaryInterfaceSet`,[x]:lE}],[0,{[y]:`InstanceId`,[x]:lS}],[0,{[y]:`ImageId`,[x]:mS}],[()=>cj,{[y]:`InstanceState`,[x]:US}],[0,{[y]:`PrivateDnsName`,[x]:Lw}],[0,{[y]:`DnsName`,[x]:ob}],[0,{[y]:`Reason`,[x]:zT}],[0,{[y]:`KeyName`,[x]:iC}],[1,{[y]:`AmiLaunchIndex`,[x]:jv}],[()=>_P,{[y]:`ProductCodes`,[x]:Mw}],[0,{[y]:`InstanceType`,[x]:KS}],[4,{[y]:`LaunchTime`,[x]:hC}],[()=>Gj,{[y]:`Placement`,[x]:uT}],[0,{[y]:`KernelId`,[x]:tC}],[0,{[y]:`RamdiskId`,[x]:CT}],[0,{[y]:`Platform`,[x]:lT}],[()=>Mj,{[y]:`Monitoring`,[x]:UC}],[0,{[y]:`SubnetId`,[x]:dE}],[0,{[y]:`VpcId`,[x]:bD}],[0,{[y]:`PrivateIpAddress`,[x]:Kw}],[0,{[y]:`IpAddress`,[x]:Qx}]]],RA=[3,S,Zd,0,[Mu,Lu],[[2,{[y]:`EnaSrdEnabled`,[x]:Zb}],[()=>zA,{[y]:`EnaSrdUdpSpecification`,[x]:tx}]]],zA=[3,S,Qd,0,[Iu],[[2,{[y]:`EnaSrdUdpEnabled`,[x]:ex}]]],BA=[3,S,sf,0,[xc,Wu],[[0,{[y]:`DeviceName`,[x]:ib}],[()=>iA,{[y]:`Ebs`,[x]:ox}]]],VA=[3,S,lf,0,[xc,Wu,q_,xh],[[0,{[y]:`DeviceName`,[x]:ib}],[()=>aA,{[y]:`Ebs`,[x]:ox}],[0,{[y]:`VirtualName`,[x]:TD}],[0,{[y]:`NoDevice`,[x]:YC}]]],HA=[3,S,Wf,0,[Jp],[[0,{[y]:`Ipv4Prefix`,[x]:AS}]]],UA=[3,S,Mf,0,[of,Pp],[[0,{[y]:`Ipv6Address`,[x]:$x}],[2,{[y]:`IsPrimaryIpv6`,[x]:TS}]]],WA=[3,S,Gf,0,[Gp],[[0,{[y]:`Ipv6Prefix`,[x]:MS}]]],GA=[3,S,op,0,[pa,Die],[[0,{[y]:`AutoRecovery`,[x]:Bv}],[0,{[y]:`RebootMigration`,[x]:DT}]]],KA=[3,S,sp,0,[pa],[0]],qA=[3,S,cp,0,[Nne,Qae],[0,()=>CM]],JA=[3,S,lp,0,[Ud,Bd,Fd,zd,pp],[0,1,0,0,0]],YA=[3,S,up,0,[g,Ud,Bd,Fd,zd,pp],[[0,{[y]:`State`,[x]:IE}],[0,{[y]:`HttpTokens`,[x]:Vx}],[1,{[y]:`HttpPutResponseHopLimit`,[x]:Rx}],[0,{[y]:`HttpEndpoint`,[x]:Px}],[0,{[y]:`HttpProtocolIpv6`,[x]:Lx}],[0,{[y]:`InstanceMetadataTags`,[x]:_S}]]],XA=[3,S,hp,0,[ka,ja,Nl,ud,Jd,nh,wh,Ph,Uh,Zh,Qh,hg,Bg,Eg,N_,Tm,qp,Vp,ls,Lh],[[()=>ZA,{[y]:`Association`,[x]:ny}],[()=>QA,{[y]:`Attachment`,[x]:ry}],[0,{[y]:`Description`,[x]:yb}],[()=>bN,{[y]:`GroupSet`,[x]:kx}],[()=>jN,{[y]:`Ipv6AddressesSet`,[x]:Xx}],[0,{[y]:`MacAddress`,[x]:yC}],[0,{[y]:`NetworkInterfaceId`,[x]:nw}],[0,{[y]:`OwnerId`,[x]:yw}],[0,{[y]:`PrivateDnsName`,[x]:Lw}],[0,{[y]:`PrivateIpAddress`,[x]:Kw}],[()=>IN,{[y]:`PrivateIpAddressesSet`,[x]:Ww}],[2,{[y]:`SourceDestCheck`,[x]:KT}],[0,{[y]:`Status`,[x]:LE}],[0,{[y]:`SubnetId`,[x]:dE}],[0,{[y]:`VpcId`,[x]:bD}],[0,{[y]:`InterfaceType`,[x]:ZS}],[()=>AN,{[y]:`Ipv4PrefixSet`,[x]:ES}],[()=>MN,{[y]:`Ipv6PrefixSet`,[x]:DS}],[()=>EO,{[y]:`ConnectionTrackingConfiguration`,[x]:Hy}],[()=>Wj,{[y]:`Operator`,[x]:Dw}]]],ZA=[3,S,gp,0,[co,Oo,Ep,Kh,Xh],[[0,{[y]:`CarrierIp`,[x]:Ty}],[0,{[y]:`CustomerOwnedIp`,[x]:Ny}],[0,{[y]:`IpOwnerId`,[x]:SS}],[0,{[y]:`PublicDnsName`,[x]:Rw}],[0,{[y]:`PublicIp`,[x]:Uw}]]],QA=[3,S,_p,0,[ga,ua,jc,Hs,Bg,bh,Nu,Du],[[4,{[y]:`AttachTime`,[x]:Jv}],[0,{[y]:`AttachmentId`,[x]:Av}],[2,{[y]:`DeleteOnTermination`,[x]:cb}],[1,{[y]:`DeviceIndex`,[x]:nb}],[0,{[y]:`Status`,[x]:LE}],[1,{[y]:`NetworkCardIndex`,[x]:JC}],[()=>RA,{[y]:`EnaSrdSpecification`,[x]:Qb}],[1,{[y]:`EnaQueueCount`,[x]:Jb}]]],$A=[3,S,yp,0,[wte,jc,Nl,Hs,ud,Xd,Jd,wh,Zh,Qh,Mg,Eg,ute,Tm,bh,qp,Ap,Vp,kp,zre,Nu,us,Du],[[2,{[y]:`AssociatePublicIpAddress`,[x]:Pv}],[2,{[y]:`DeleteOnTermination`,[x]:cb}],[0,{[y]:`Description`,[x]:yb}],[1,{[y]:`DeviceIndex`,[x]:nb}],[()=>AP,{[x]:_g}],[1,{[y]:`Ipv6AddressCount`,[x]:Gx}],[()=>jN,{[y]:`Ipv6Addresses`,[x]:Xx}],[0,{[y]:`NetworkInterfaceId`,[x]:nw}],[0,{[y]:`PrivateIpAddress`,[x]:Kw}],[()=>gP,{[y]:`PrivateIpAddresses`,[x]:Ww}],[1,{[y]:`SecondaryPrivateIpAddressCount`,[x]:yE}],[0,{[y]:`SubnetId`,[x]:dE}],2,0,1,[()=>YN,{[x]:Jp}],1,[()=>XN,{[x]:Gp}],1,2,()=>fA,()=>TO,1]],ej=[3,S,Cp,0,[Ja],[[0,{[y]:`BandwidthWeighting`,[x]:my}]]],tj=[3,S,wp,0,[Ja],[0]],nj=[3,S,Zte,0,[ka,ag,Uh,Zh],[[()=>ZA,{[y]:`Association`,[x]:ny}],[2,{[y]:`Primary`,[x]:dT}],[0,{[y]:`PrivateDnsName`,[x]:Lw}],[0,{[y]:`PrivateIpAddress`,[x]:Kw}]]],rj=[3,S,fm,0,[ja,nh,Dae,Ph,Qh,hg,Bg,Ig,Xae,Tm],[[()=>ij,{[y]:`Attachment`,[x]:ry}],[0,{[y]:`MacAddress`,[x]:yC}],[0,{[y]:`SecondaryInterfaceId`,[x]:rE}],[0,{[y]:`OwnerId`,[x]:yw}],[()=>RN,{[y]:`PrivateIpAddressSet`,[x]:Gw}],[2,{[y]:`SourceDestCheck`,[x]:KT}],[0,{[y]:`Status`,[x]:LE}],[0,{[y]:`SecondarySubnetId`,[x]:wE}],[0,{[y]:`SecondaryNetworkId`,[x]:gE}],[0,{[y]:`InterfaceType`,[x]:ZS}]]],ij=[3,S,im,0,[ga,ua,jc,Hs,Bg,bh],[[4,{[y]:`AttachTime`,[x]:Jv}],[0,{[y]:`AttachmentId`,[x]:Av}],[2,{[y]:`DeleteOnTermination`,[x]:cb}],[1,{[y]:`DeviceIndex`,[x]:nb}],[0,{[y]:`Status`,[x]:LE}],[1,{[y]:`NetworkCardIndex`,[x]:JC}]]],aj=[3,S,om,0,[Zh],[[0,{[y]:`PrivateIpAddress`,[x]:Kw}]]],oj=[3,S,lm,0,[Zh],[0],1],sj=[3,S,dm,0,[jc,Hs,Qh,Pre,Ig,Tm,bh],[2,1,[()=>zN,{[x]:Zh}],1,0,0,1]],cj=[3,S,gm,0,[xs,vh],[[1,{[y]:`Code`,[x]:Ky}],[0,{[y]:`Name`,[x]:GC}]]],lj=[3,S,nm,0,[m,ss,Jre],[[0,{[y]:`InstanceId`,[x]:lS}],[()=>cj,{[y]:`CurrentState`,[x]:By}],[()=>cj,{[y]:`PreviousState`,[x]:rT}]]],uj=[3,S,pm,0,[Yg,Fl,Ah,Bu],[[1,{[y]:`TotalSizeInGB`,[x]:$E}],[()=>uN,{[y]:`Disks`,[x]:xb}],[0,{[y]:`NvmeSupport`,[x]:dw}],[0,{[y]:`EncryptionSupport`,[x]:rx}]]],dj=[3,S,xm,0,[ym,so,od,soe,toe,uoe,Wa,Kd,eg,T_,oh,mm,pm,hu,Eh,Sd,ed,Yh,$d,Hd,Ka,Vs,Dte,cae,Jne,sre,jh,th,Dh,qre,Eie,Fae],[[0,{[y]:`InstanceType`,[x]:KS}],[2,{[y]:`CurrentGeneration`,[x]:wy}],[2,{[y]:`FreeTierEligible`,[x]:gx}],[()=>UP,{[y]:`SupportedUsageClasses`,[x]:jE}],[()=>TP,{[y]:`SupportedRootDeviceTypes`,[x]:bE}],[()=>KP,{[y]:`SupportedVirtualizationTypes`,[x]:NE}],[2,{[y]:`BareMetal`,[x]:uy}],[0,{[y]:`Hypervisor`,[x]:Mx}],[()=>$j,{[y]:`ProcessorInfo`,[x]:Jw}],[()=>LM,{[y]:`VCpuInfo`,[x]:gD}],[()=>Dj,{[y]:`MemoryInfo`,[x]:OC}],[2,{[y]:`InstanceStorageSupported`,[x]:RS}],[()=>uj,{[y]:`InstanceStorageInfo`,[x]:LS}],[()=>rA,{[y]:`EbsInfo`,[x]:zb}],[()=>Lj,{[y]:`NetworkInfo`,[x]:ow}],[()=>wA,{[y]:`GpuInfo`,[x]:Sx}],[()=>yA,{[y]:`FpgaInfo`,[x]:dx}],[()=>qj,{[y]:`PlacementGroupInfo`,[x]:Vw}],[()=>PA,{[y]:`InferenceAcceleratorInfo`,[x]:Kx}],[2,{[y]:`HibernationSupported`,[x]:Bx}],[2,{[y]:`BurstablePerformanceSupported`,[x]:fy}],[2,{[y]:`DedicatedHostsSupported`,[x]:tb}],[2,{[y]:`AutoRecoverySupported`,[x]:Lv}],[()=>cN,{[y]:`SupportedBootModes`,[x]:WT}],[0,{[y]:`NitroEnclavesSupport`,[x]:ZC}],[0,{[y]:`NitroTpmSupport`,[x]:pw}],[()=>Hj,{[y]:`NitroTpmInfo`,[x]:fw}],[()=>wj,{[y]:`MediaAcceleratorInfo`,[x]:vC}],[()=>Vj,{[y]:`NeuronInfo`,[x]:sw}],[0,{[y]:`PhcSupport`,[x]:nT}],[0,{[y]:`RebootMigrationSupport`,[x]:ET}],[2,{[y]:`SupportedInRegion`,[x]:cE}]]],fj=[3,S,Sf,0,[Ma,Df,Ph,_],[[()=>UN,{[y]:`AttachmentSet`,[x]:Kv}],[0,{[y]:`InternetGatewayId`,[x]:sS}],[0,{[y]:`OwnerId`,[x]:yw}],[()=>C,{[y]:`TagSet`,[x]:QE}]]],pj=[3,S,Cf,0,[g,N_],[[0,{[y]:`State`,[x]:IE}],[0,{[y]:`VpcId`,[x]:bD}]]],mj=[3,S,Up,0,[Wp,rd,Gg,d_,Qp,em,Gre],[[0,{[y]:`IpProtocol`,[x]:OS}],[1,{[y]:`FromPort`,[x]:px}],[1,{[y]:`ToPort`,[x]:XE}],[()=>WP,{[y]:`Groups`,[x]:jx}],[()=>JN,{[y]:`IpRanges`,[x]:FS}],[()=>ZN,{[y]:`Ipv6Ranges`,[x]:IS}],[()=>hP,{[y]:`PrefixListIds`,[x]:$w}]]],hj=[3,S,$p,0,[Nl,go],[[0,{[y]:`Description`,[x]:yb}],[0,{[y]:`CidrIp`,[x]:Dy}]]],gj=[3,S,zp,0,[Jp],[0]],_j=[3,S,Bp,0,[Gp],[0]],vj=[3,S,tm,0,[Nl,_o],[[0,{[y]:`Description`,[x]:yb}],[0,{[y]:`CidrIpv6`,[x]:Oy}]]],yj=[3,S,qm,0,[Hm,_,Rm,Pm,Lm],[[0,{[y]:`KeyPairId`,[x]:aC}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`KeyName`,[x]:iC}],[0,{[y]:`KeyFingerprint`,[x]:eC}],[()=>YD,{[y]:`KeyMaterial`,[x]:rC}]]],bj=[3,S,Gm,0,[Hm,Jm,_,Hre,hs,Rm,Pm],[[0,{[y]:`KeyPairId`,[x]:aC}],[0,{[y]:`KeyType`,[x]:sC}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`PublicKey`,[x]:Xw}],[4,{[y]:`CreateTime`,[x]:Gy}],[0,{[y]:`KeyName`,[x]:iC}],[0,{[y]:`KeyFingerprint`,[x]:eC}]]],xj=[3,S,lne,0,[sne,cne,cv],[0,0,0]],Sj=[3,S,Qte,0,[Xm],[[0,{[y]:`LicenseConfigurationArn`,[x]:lC}]]],Cj=[3,S,Zm,0,[Xm],[0]],wj=[3,S,th,0,[Ca,Toe],[[()=>rP,{[y]:`Accelerators`,[x]:Qv}],[1,{[y]:`TotalMediaMemoryInMiB`,[x]:JE}]]],Tj=[3,S,_ne,0,[Cs,vh,mh,oh],[[1,{[y]:`Count`,[x]:Jy}],[0,{[y]:`Name`,[x]:GC}],[0,{[y]:`Manufacturer`,[x]:BC}],[()=>Ej,{[y]:`MemoryInfo`,[x]:OC}]]],Ej=[3,S,yne,0,[Cg],[[1,{[y]:`SizeInMiB`,[x]:aE}]]],Dj=[3,S,oh,0,[Cg],[[1,{[y]:`SizeInMiB`,[x]:aE}]]],Oj=[3,S,Tne,0,[m,hg,Tu,Ds,p,Aa,y_,za,Os,ym,Ym,Yie,l_,Kf,ud,vu,Ag,Vu],[[0,{[y]:`InstanceId`,[x]:lS}],[()=>sO,0],()=>hA,[()=>sO,0],[2,{[y]:`DryRun`,[x]:v}],[0,{[y]:`Attribute`,[x]:iy}],[()=>qD,{[y]:`Value`,[x]:hD}],[()=>ON,{[y]:`BlockDeviceMapping`,[x]:sy}],[()=>sO,{[y]:`DisableApiTermination`,[x]:Yy}],[()=>cO,{[y]:`InstanceType`,[x]:KS}],[()=>cO,{[y]:`Kernel`,[x]:cC}],[()=>cO,{[y]:`Ramdisk`,[x]:RT}],[()=>vO,{[y]:`UserData`,[x]:cD}],[()=>cO,{[y]:`InstanceInitiatedShutdownBehavior`,[x]:pS}],[()=>xN,{[x]:Cd}],[()=>sO,{[y]:`EbsOptimized`,[x]:Hb}],[()=>cO,{[y]:`SriovNetSupport`,[x]:vE}],[()=>sO,{[y]:`EnaSupport`,[x]:ix}]],1],kj=[3,S,Ane,0,[Eg,aa,uh,ih,ko,Gl,Dre,ju,ku,_u,bc],[[0,{[y]:`SubnetId`,[x]:dE}],[()=>sO,0],[()=>sO,0],[()=>sO,0],0,[()=>sO,0],0,[()=>sO,0],[()=>sO,0],1,[()=>sO,0]],1],Aj=[3,S,Pne,0,[z_,p,zg,nv,jm,a_,eh],[0,2,1,0,1,1,2],1],jj=[3,S,Fne,0,[K_],[[()=>BM,{[y]:`VolumeModification`,[x]:wD}]]],Mj=[3,S,_h,0,[g],[[0,{[y]:`State`,[x]:IE}]]],Nj=[3,S,Sh,0,[hs,_l,Yu,nd,Yne,Ch,Bh,g,Eg,N_,_,ms,da,zte,Ete,cte,pg],[[4,{[y]:`CreateTime`,[x]:Gy}],[4,{[y]:`DeleteTime`,[x]:hb}],[0,{[y]:`FailureCode`,[x]:lx}],[0,{[y]:`FailureMessage`,[x]:fx}],[()=>iP,{[y]:`NatGatewayAddressSet`,[x]:$C}],[0,{[y]:`NatGatewayId`,[x]:ew}],[()=>nM,{[y]:`ProvisionedBandwidth`,[x]:Aw}],[0,{[y]:`State`,[x]:IE}],[0,{[y]:`SubnetId`,[x]:dE}],[0,{[y]:`VpcId`,[x]:bD}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`ConnectivityType`,[x]:Wy}],[0,{[y]:`AvailabilityMode`,[x]:Nv}],[0,{[y]:`AutoScalingIps`,[x]:Hv}],[0,{[y]:`AutoProvisionZones`,[x]:Iv}],[()=>aP,{[y]:`AttachedApplianceSet`,[x]:Sv}],[0,{[y]:`RouteTableId`,[x]:NT}]]],Pj=[3,S,$ne,0,[sa,wh,Bre,Xh,la,Yp,nd,Bg,_a,ba],[[0,{[y]:`AllocationId`,[x]:Tv}],[0,{[y]:`NetworkInterfaceId`,[x]:nw}],[0,{[y]:`PrivateIp`,[x]:Yw}],[0,{[y]:`PublicIp`,[x]:Uw}],[0,{[y]:`AssociationId`,[x]:kv}],[2,{[y]:`IsPrimary`,[x]:PS}],[0,{[y]:`FailureMessage`,[x]:fx}],[0,{[y]:`Status`,[x]:LE}],[0,{[y]:`AvailabilityZone`,[x]:Yv}],[0,{[y]:`AvailabilityZoneId`,[x]:Xv}]]],Fj=[3,S,Xne,0,[s_,ote,M_,Bte,fh,Yu,nd],[[0,{[y]:`Type`,[x]:sD}],[0,{[y]:`ApplianceArn`,[x]:Cv}],[0,{[y]:`VpcEndpointId`,[x]:yD}],[0,{[y]:`AttachmentState`,[x]:qv}],[0,{[y]:`ModificationState`,[x]:LC}],[0,{[y]:`FailureCode`,[x]:lx}],[0,{[y]:`FailureMessage`,[x]:fx}]]],Ij=[3,S,Hne,0,[bh,kh,sh,dte,Pa,Sre,zs,Cne,wne],[[1,{[y]:`NetworkCardIndex`,[x]:JC}],[0,{[y]:`NetworkPerformance`,[x]:lw}],[1,{[y]:`MaximumNetworkInterfaces`,[x]:AC}],[1,{[y]:`AdditionalFlexibleNetworkInterfaces`,[x]:wv}],[1,{[y]:`BaselineBandwidthInGbps`,[x]:ay}],[1,{[y]:`PeakBandwidthInGbps`,[x]:jw}],[1,{[y]:`DefaultEnaQueueCountPerInterface`,[x]:$y}],[1,{[y]:`MaximumEnaQueueCount`,[x]:TC}],[1,{[y]:`MaximumEnaQueueCountPerInterface`,[x]:EC}]]],Lj=[3,S,Eh,0,[kh,sh,One,Sc,Bne,ef,tf,vm,Vu,zu,gu,mu,Fu,Xa,$u,ls,Zae,Mne,nf],[[0,{[y]:`NetworkPerformance`,[x]:lw}],[1,{[y]:`MaximumNetworkInterfaces`,[x]:AC}],[1,{[y]:`MaximumNetworkCards`,[x]:kC}],[1,{[y]:`DefaultNetworkCardIndex`,[x]:ab}],[()=>cP,{[y]:`NetworkCards`,[x]:qC}],[1,{[y]:`Ipv4AddressesPerInterface`,[x]:qx}],[1,{[y]:`Ipv6AddressesPerInterface`,[x]:Jx}],[2,{[y]:`Ipv6Supported`,[x]:GS}],[0,{[y]:`EnaSupport`,[x]:ix}],[2,{[y]:`EfaSupported`,[x]:nx}],[()=>sA,{[y]:`EfaInfo`,[x]:Bb}],[2,{[y]:`EncryptionInTransitSupported`,[x]:Rb}],[2,{[y]:`EnaSrdSupported`,[x]:$b}],[()=>aN,{[y]:`BandwidthWeightings`,[x]:hy}],[0,{[y]:`FlexibleEnaQueuesSupport`,[x]:ux}],[()=>$O,{[y]:`ConnectionTrackingConfiguration`,[x]:Hy}],[2,{[y]:`SecondaryNetworkSupported`,[x]:_E}],[1,{[y]:`MaximumSecondaryNetworkInterfaces`,[x]:IC}],[1,{[y]:`Ipv4AddressesPerSecondaryInterface`,[x]:Yx}]]],Rj=[3,S,Une,0,[Cs,cv],[[1,{[y]:`Count`,[x]:Jy}],[1,{[y]:`Version`,[x]:ID}]]],zj=[3,S,Wne,0,[Cs,vh,yo,oh],[[1,{[y]:`Count`,[x]:Jy}],[0,{[y]:`Name`,[x]:GC}],[()=>Rj,{[y]:`CoreInfo`,[x]:Ay}],[()=>Bj,{[y]:`MemoryInfo`,[x]:OC}]]],Bj=[3,S,Kne,0,[Cg],[[1,{[y]:`SizeInMiB`,[x]:aE}]]],Vj=[3,S,Dh,0,[qne,Eoe],[[()=>lP,{[y]:`NeuronDevices`,[x]:XC}],[1,{[y]:`TotalNeuronDeviceMemoryInMiB`,[x]:YE}]]],Hj=[3,S,jh,0,[doe],[[()=>uP,{[y]:`SupportedVersions`,[x]:PE}]]],Uj=[3,S,mre,0,[zh],[0]],Wj=[3,S,hre,0,[Rne,zh,Pd],[[2,{[y]:`Managed`,[x]:VC}],[0,{[y]:`Principal`,[x]:kw}],[2,{[y]:`HiddenByDefault`,[x]:Nx}]]],Gj=[3,S,ig,0,[ba,Ta,Dd,Kre,Id,i_,dae,Vd,Cd,_a],[[0,{[y]:`AvailabilityZoneId`,[x]:Xv}],[0,{[y]:`Affinity`,[x]:$v}],[0,{[y]:`GroupName`,[x]:Tx}],[1,{[y]:`PartitionNumber`,[x]:eT}],[0,{[y]:`HostId`,[x]:Fx}],[0,{[y]:`Tenancy`,[x]:BE}],[0,{[y]:`SpreadDomain`,[x]:qT}],[0,{[y]:`HostResourceGroupArn`,[x]:zx}],[0,{[y]:`GroupId`,[x]:Cx}],[0,{[y]:`AvailabilityZone`,[x]:Yv}]]],Kj=[3,S,Jh,0,[Dd,g,Vg,Vh,Cd,_,dd,Dg,$m,Lh],[[0,{[y]:`GroupName`,[x]:Tx}],[0,{[y]:`State`,[x]:IE}],[0,{[y]:`Strategy`,[x]:RE}],[1,{[y]:`PartitionCount`,[x]:Nw}],[0,{[y]:`GroupId`,[x]:Cx}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`GroupArn`,[x]:yx}],[0,{[y]:`SpreadLevel`,[x]:fE}],[0,{[y]:`LinkedGroupId`,[x]:fC}],[()=>Wj,{[y]:`Operator`,[x]:Dw}]]],qj=[3,S,Yh,0,[ioe],[[()=>mP,{[y]:`SupportedStrategies`,[x]:DE}]]],Jj=[3,S,tg,0,[Nl,tg],[[0,{[y]:`Description`,[x]:yb}],[0,{[y]:`PrefixListId`,[x]:Qw}]]],Yj=[3,S,Gh,0,[Wd,Au,Ou],[[0,{[y]:`HostnameType`,[x]:Hx}],[2,{[y]:`EnableResourceNameDnsARecord`,[x]:Xb}],[2,{[y]:`EnableResourceNameDnsAAAARecord`,[x]:Yb}]]],Xj=[3,S,Ore,0,[Wd,Au,Ou],[0,2,2]],Zj=[3,S,kre,0,[Wd,Au,Ou],[[0,{[y]:`HostnameType`,[x]:Hx}],[2,{[y]:`EnableResourceNameDnsARecord`,[x]:Xb}],[2,{[y]:`EnableResourceNameDnsAAAARecord`,[x]:Yb}]]],Qj=[3,S,Fre,0,[ag,Zh],[[2,{[y]:`Primary`,[x]:dT}],[0,{[y]:`PrivateIpAddress`,[x]:Kw}]]],$j=[3,S,eg,0,[sae,uae,fae,mh],[[()=>QM,{[y]:`SupportedArchitectures`,[x]:HT}],[1,{[y]:`SustainedClockSpeedInGhz`,[x]:GT}],[()=>BP,{[y]:`SupportedFeatures`,[x]:JT}],[0,{[y]:`Manufacturer`,[x]:BC}]]],eM=[3,S,Ere,0,[Cre,Tre],[[0,{[y]:`ProductCode`,[x]:Pw}],[0,{[y]:`Type`,[x]:sD}]]],tM=[3,S,Zre,0,[yd],[[0,{[y]:`GatewayId`,[x]:xx}]]],nM=[3,S,Bh,0,[Yre,nie,qie,Qie,Bg],[[4,{[y]:`ProvisionTime`,[x]:iT}],[0,{[y]:`Provisioned`,[x]:pT}],[4,{[y]:`RequestTime`,[x]:IT}],[0,{[y]:`Requested`,[x]:BT}],[0,{[y]:`Status`,[x]:LE}]]],rM=[3,S,gie,0,[Zf,p],[[()=>kN,{[x]:m}],[2,{[y]:`DryRun`,[x]:v}]],1],iM=[3,S,Aie,0,[Cd,ng,u_,N_,Y_],[[0,{[y]:`GroupId`,[x]:Cx}],[0,{[y]:`PeeringStatus`,[x]:tT}],[0,{[y]:`UserId`,[x]:lD}],[0,{[y]:`VpcId`,[x]:bD}],[0,{[y]:`VpcPeeringConnectionId`,[x]:DD}]]],aM=[3,S,Zie,0,[Fh,Md,dg,qu],[[0,{[y]:`OptInStatus`,[x]:bw}],[()=>bP,{[y]:`GeographySet`,[x]:Ox}],[0,{[y]:`RegionName`,[x]:OT}],[0,{[y]:`RegionEndpoint`,[x]:vT}]]],oM=[3,S,die,0,[vh],[[0,{[y]:`Name`,[x]:GC}]]],sM=[3,S,iie,0,[sa,Xh,yh,p],[0,0,0,[2,{[y]:`DryRun`,[x]:v}]]],cM=[3,S,eae,0,[yie,Ph,xie,ud,Am],[[0,{[y]:`ReservationId`,[x]:ST}],[0,{[y]:`OwnerId`,[x]:yw}],[0,{[y]:`RequesterId`,[x]:TT}],[()=>bN,{[y]:`GroupSet`,[x]:kx}],[()=>NN,{[y]:`InstancesSet`,[x]:HS}]]],lM=[3,S,Lie,0,[bg,Cd,xf,Wp,rd,Gg,vo,_o,tg,fie,Nl],[[0,{[y]:`SecurityGroupRuleId`,[x]:QT}],[0,{[y]:`GroupId`,[x]:Cx}],[2,{[y]:`IsEgress`,[x]:iS}],[0,{[y]:`IpProtocol`,[x]:OS}],[1,{[y]:`FromPort`,[x]:px}],[1,{[y]:`ToPort`,[x]:XE}],[0,{[y]:`CidrIpv4`,[x]:ky}],[0,{[y]:`CidrIpv6`,[x]:Oy}],[0,{[y]:`PrefixListId`,[x]:Qw}],[0,{[y]:`ReferencedGroupId`,[x]:bT}],[0,{[y]:`Description`,[x]:yb}]]],uM=[3,S,Mie,0,[Cd,yg,p,Pg,Fg,Wp,rd,Gg,go,Hp],[[0,{[y]:`GroupId`,[x]:Cx}],[()=>MP,{[x]:bg}],[2,{[y]:`DryRun`,[x]:v}],[0,{[y]:`SourceSecurityGroupName`,[x]:SE}],[0,{[y]:`SourceSecurityGroupOwnerId`,[x]:CE}],[0,{[y]:`IpProtocol`,[x]:OS}],[1,{[y]:`FromPort`,[x]:px}],[1,{[y]:`ToPort`,[x]:XE}],[0,{[y]:`CidrIp`,[x]:Dy}],[()=>qN,{[y]:`IpPermissions`,[x]:kS}]],1],dM=[3,S,Nie,0,[sg,m_,fg],[[2,{[y]:`Return`,[x]:mT}],[()=>qN,{[y]:`UnknownIpPermissionSet`,[x]:uD}],[()=>wP,{[y]:`RevokedSecurityGroupRuleSet`,[x]:kT}]]],fM=[3,S,Pie,0,[go,rd,Cd,Dd,Hp,Wp,Pg,Fg,Gg,yg,p],[0,1,0,0,[()=>qN,0],0,0,0,1,[()=>MP,{[x]:bg}],[2,{[y]:`DryRun`,[x]:v}]]],pM=[3,S,Fie,0,[sg,m_,fg],[[2,{[y]:`Return`,[x]:mT}],[()=>qN,{[y]:`UnknownIpPermissionSet`,[x]:uD}],[()=>wP,{[y]:`RevokedSecurityGroupRuleSet`,[x]:kT}]]],mM=[3,S,tae,0,[Fs,Us,Lc,Su,yd,m,Dp,Ch,Wg,Qm,oo,wh,lre,g,Y_,Co,Ih,af],[[0,{[y]:`DestinationCidrBlock`,[x]:Xy}],[0,{[y]:`DestinationIpv6CidrBlock`,[x]:rb}],[0,{[y]:`DestinationPrefixListId`,[x]:lb}],[0,{[y]:`EgressOnlyInternetGatewayId`,[x]:Gb}],[0,{[y]:`GatewayId`,[x]:xx}],[0,{[y]:`InstanceId`,[x]:lS}],[0,{[y]:`InstanceOwnerId`,[x]:xS}],[0,{[y]:`NatGatewayId`,[x]:ew}],[0,{[y]:`TransitGatewayId`,[x]:UE}],[0,{[y]:`LocalGatewayId`,[x]:dC}],[0,{[y]:`CarrierGatewayId`,[x]:Cy}],[0,{[y]:`NetworkInterfaceId`,[x]:nw}],[0,{[y]:`Origin`,[x]:gw}],[0,{[y]:`State`,[x]:IE}],[0,{[y]:`VpcPeeringConnectionId`,[x]:DD}],[0,{[y]:`CoreNetworkArn`,[x]:jy}],[0,{[y]:`OdbNetworkArn`,[x]:Cw}],[0,{[y]:`IpAddress`,[x]:Qx}]]],hM=[3,S,mg,0,[Oa,$re,pg,nae,_,N_,Ph],[[()=>DP,{[y]:`AssociationSet`,[x]:Gv}],[()=>vP,{[y]:`PropagatingVgwSet`,[x]:oT}],[0,{[y]:`RouteTableId`,[x]:NT}],[()=>EP,{[y]:`RouteSet`,[x]:jT}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`VpcId`,[x]:bD}],[0,{[y]:`OwnerId`,[x]:yw}]]],gM=[3,S,zie,0,[Lne,Bie,pg,Eg,yd,$h,ma],[[2,{[y]:`Main`,[x]:zC}],[0,{[y]:`RouteTableAssociationId`,[x]:MT}],[0,{[y]:`RouteTableId`,[x]:NT}],[0,{[y]:`SubnetId`,[x]:dE}],[0,{[y]:`GatewayId`,[x]:xx}],[0,{[y]:`PublicIpv4Pool`,[x]:qw}],[()=>_M,{[y]:`AssociationState`,[x]:Vv}]]],_M=[3,S,Hie,0,[g,Og],[[0,{[y]:`State`,[x]:IE}],[0,{[y]:`StatusMessage`,[x]:mE}]]],vM=[3,S,hie,0,[Gu],[[2,{[y]:`Enabled`,[x]:sx}]],1],yM=[3,S,_ie,0,[hne,gne,za,Yf,ym,Xd,Jd,Fm,Rm,_h,ig,ug,hae,xg,Eg,l_,tu,du,Jg,one,dp,is,Do,Bo,Ld,rne,ch,Tu,Wh,lh,Ds,Eu,Oh,Lh,wg,p,Os,Kf,Zh,cs,oa,Th,Ff,vu],[1,1,[()=>sN,{[x]:Ia}],0,0,1,[()=>jN,{[x]:of}],0,0,[()=>vM,0],[()=>Gj,0],0,[()=>AP,{[x]:_g}],[()=>PP,{[x]:Sg}],0,[()=>JD,0],[()=>pN,0],[()=>hN,{[x]:ru}],[()=>VP,{[x]:Zg}],()=>xj,()=>qA,()=>QO,()=>AO,()=>xO,()=>DA,[()=>nP,{[x]:ane}],()=>JA,()=>hA,()=>Xj,()=>KA,2,2,()=>tj,()=>Uj,[()=>BN,{[x]:zae}],[2,{[y]:`DryRun`,[x]:v}],[2,{[y]:`DisableApiTermination`,[x]:Yy}],[0,{[y]:`InstanceInitiatedShutdownBehavior`,[x]:pS}],[0,{[y]:`PrivateIpAddress`,[x]:Kw}],[0,{[y]:`ClientToken`,[JS]:1,[x]:Vy}],[0,{[y]:`AdditionalInfo`,[x]:Ov}],[()=>FN,{[y]:`NetworkInterface`,[x]:aw}],[()=>AA,{[y]:`IamInstanceProfile`,[x]:uS}],[2,{[y]:`EbsOptimized`,[x]:Hb}]],2],bM=[3,S,Sg,0,[Cd,jp,_,N_,gg,Ph,Dd,Nl,Hp],[[0,{[y]:`GroupId`,[x]:Cx}],[()=>qN,{[y]:`IpPermissionsEgress`,[x]:wS}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`VpcId`,[x]:bD}],[0,{[y]:`SecurityGroupArn`,[x]:YT}],[0,{[y]:`OwnerId`,[x]:yw}],[0,{[y]:`GroupName`,[x]:Tx}],[0,{[y]:`GroupDescription`,[x]:bx}],[()=>qN,{[y]:`IpPermissions`,[x]:kS}]]],xM=[3,S,bae,0,[bg,Cd,Ad,xf,Wp,rd,Gg,vo,_o,tg,pie,Nl,_,_ae],[[0,{[y]:`SecurityGroupRuleId`,[x]:QT}],[0,{[y]:`GroupId`,[x]:Cx}],[0,{[y]:`GroupOwnerId`,[x]:Ex}],[2,{[y]:`IsEgress`,[x]:iS}],[0,{[y]:`IpProtocol`,[x]:OS}],[1,{[y]:`FromPort`,[x]:px}],[1,{[y]:`ToPort`,[x]:XE}],[0,{[y]:`CidrIpv4`,[x]:ky}],[0,{[y]:`CidrIpv6`,[x]:Oy}],[0,{[y]:`PrefixListId`,[x]:Qw}],[()=>iM,{[y]:`ReferencedGroupInfo`,[x]:xT}],[0,{[y]:`Description`,[x]:yb}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`SecurityGroupRuleArn`,[x]:ZT}]]],SM=[3,S,poe,0,[ure,Nh,_,ooe,lie,Rg,_a,t_,io,ps,ad,Tg,z_,g,kg,Lg,og,Ph,Nl,tv,Ku,Im,Rs],[[0,{[y]:`OwnerAlias`,[x]:vw}],[0,{[y]:`OutpostArn`,[x]:_w}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`StorageTier`,[x]:AE}],[4,{[y]:`RestoreExpiryTime`,[x]:_T}],[0,{[y]:`SseType`,[x]:kE}],[0,{[y]:`AvailabilityZone`,[x]:Yv}],[0,{[y]:`TransferType`,[x]:rD}],[1,{[y]:`CompletionDurationMinutes`,[x]:xy}],[4,{[y]:`CompletionTime`,[x]:Uy}],[1,{[y]:`FullSnapshotSizeInBytes`,[x]:hx}],[0,{[y]:`SnapshotId`,[x]:uE}],[0,{[y]:`VolumeId`,[x]:SD}],[0,{[y]:`Status`,[x]:LE}],[0,{[y]:`StatusMessage`,[x]:mE}],[4,{[y]:`StartTime`,[x]:OE}],[0,{[y]:`Progress`,[x]:fT}],[0,{[y]:`OwnerId`,[x]:yw}],[0,{[y]:`Description`,[x]:yb}],[1,{[y]:`VolumeSize`,[x]:jD}],[2,{[y]:`Encrypted`,[x]:cx}],[0,{[y]:`KmsKeyId`,[x]:nC}],[0,{[y]:`DataEncryptionKeyId`,[x]:Qy}]]],CM=[3,S,Yae,0,[kne,Rae,Ba,ov,Pf],[0,0,1,4,0]],wM=[3,S,jae,0,[Zf,oa,p],[[()=>kN,{[x]:m}],[0,{[y]:`AdditionalInfo`,[x]:Ov}],[2,{[y]:`DryRun`,[x]:v}]],1],TM=[3,S,Mae,0,[Vae],[[()=>VN,{[y]:`InstancesSet`,[x]:HS}]]],EM=[3,S,Ng,0,[xs,hh],[[0,{[y]:`Code`,[x]:Ky}],[0,{[y]:`Message`,[x]:HC}]]],DM=[3,S,Nae,0,[Zf,Gd,jg,p,Ju],[[()=>kN,{[x]:m}],2,2,[2,{[y]:`DryRun`,[x]:v}],[2,{[y]:`Force`,[x]:_x}]],1],OM=[3,S,Pae,0,[Uae],[[()=>VN,{[y]:`InstancesSet`,[x]:HS}]]],kM=[3,S,Hg,0,[ba,_u,ih,ko,Ph,aa,ff,_,oae,Nh,Gl,mp,Gh,Ga,s_,Eg,g,N_,Za,fte,_a,Bs,uh],[[0,{[y]:`AvailabilityZoneId`,[x]:Xv}],[1,{[y]:`EnableLniAtDeviceIndex`,[x]:Vb}],[2,{[y]:`MapCustomerOwnedIpOnLaunch`,[x]:xC}],[0,{[y]:`CustomerOwnedIpv4Pool`,[x]:Py}],[0,{[y]:`OwnerId`,[x]:yw}],[2,{[y]:`AssignIpv6AddressOnCreation`,[x]:Dv}],[()=>RP,{[y]:`Ipv6CidrBlockAssociationSet`,[x]:tS}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`SubnetArn`,[x]:UT}],[0,{[y]:`OutpostArn`,[x]:_w}],[2,{[y]:`EnableDns64`,[x]:Eb}],[2,{[y]:`Ipv6Native`,[x]:vS}],[()=>Yj,{[y]:`PrivateDnsNameOptionsOnLaunch`,[x]:Iw}],[()=>bO,{[y]:`BlockPublicAccessStates`,[x]:dy}],[0,{[y]:`Type`,[x]:sD}],[0,{[y]:`SubnetId`,[x]:dE}],[0,{[y]:`State`,[x]:IE}],[0,{[y]:`VpcId`,[x]:bD}],[0,{[y]:`CidrBlock`,[x]:gy}],[1,{[y]:`AvailableIpAddressCount`,[x]:Ev}],[0,{[y]:`AvailabilityZone`,[x]:Yv}],[2,{[y]:`DefaultForAz`,[x]:eb}],[2,{[y]:`MapPublicIpOnLaunch`,[x]:NC}]]],AM=[3,S,lae,0,[g,Og],[[0,{[y]:`State`,[x]:IE}],[0,{[y]:`StatusMessage`,[x]:mE}]]],jM=[3,S,Cae,0,[la,df,mf,Yd,_m],[[0,{[y]:`AssociationId`,[x]:kv}],[0,{[y]:`Ipv6CidrBlock`,[x]:eS}],[()=>AM,{[y]:`Ipv6CidrBlockState`,[x]:nS}],[0,{[y]:`Ipv6AddressAttribute`,[x]:Wx}],[0,{[y]:`IpSource`,[x]:WS}]]],MM=[3,S,r_,0,[Mm,y_],[[0,{[y]:`Key`,[x]:$S}],[0,{[y]:`Value`,[x]:hD}]]],NM=[3,S,Zg,0,[Kie,_],[[0,{[y]:`ResourceType`,[x]:FT}],[()=>C,{[x]:r_}]]],PM=[3,S,yoe,0,[Zf,Ju,jg,p],[[()=>kN,{[x]:m}],2,2,[2,{[y]:`DryRun`,[x]:v}]],1],FM=[3,S,boe,0,[Soe],[[()=>VN,{[y]:`InstancesSet`,[x]:HS}]]],IM=[3,S,p_,0,[Nl,u_,Dd,Cd,N_,Y_,ng],[[0,{[y]:`Description`,[x]:yb}],[0,{[y]:`UserId`,[x]:lD}],[0,{[y]:`GroupName`,[x]:Tx}],[0,{[y]:`GroupId`,[x]:Cx}],[0,{[y]:`VpcId`,[x]:bD}],[0,{[y]:`VpcPeeringConnectionId`,[x]:DD}],[0,{[y]:`PeeringStatus`,[x]:tT}]]],LM=[3,S,T_,0,[bl,Ls,hl,E_,iv],[[1,{[y]:`DefaultVCpus`,[x]:vb}],[1,{[y]:`DefaultCores`,[x]:Zy}],[1,{[y]:`DefaultThreadsPerCore`,[x]:pb}],[()=>lN,{[y]:`ValidCores`,[x]:_D}],[()=>HP,{[y]:`ValidThreadsPerCore`,[x]:PD}]]],RM=[3,S,uv,0,[ba,Nh,loe,jm,_,nv,id,eh,a_,Rg,Lh,I_,z_,zg,Tg,_a,g,hs,Ma,Ku,Im],[[0,{[y]:`AvailabilityZoneId`,[x]:Xv}],[0,{[y]:`OutpostArn`,[x]:_w}],[0,{[y]:`SourceVolumeId`,[x]:ME}],[1,{[y]:`Iops`,[x]:QS}],[()=>C,{[y]:`TagSet`,[x]:QE}],[0,{[y]:`VolumeType`,[x]:ND}],[2,{[y]:`FastRestored`,[x]:mx}],[2,{[y]:`MultiAttachEnabled`,[x]:_C}],[1,{[y]:`Throughput`,[x]:aD}],[0,{[y]:`SseType`,[x]:kE}],[()=>Wj,{[y]:`Operator`,[x]:Dw}],[1,{[y]:`VolumeInitializationRate`,[x]:xD}],[0,{[y]:`VolumeId`,[x]:SD}],[1,{[y]:`Size`,[x]:FE}],[0,{[y]:`SnapshotId`,[x]:uE}],[0,{[y]:`AvailabilityZone`,[x]:Yv}],[0,{[y]:`Status`,[x]:LE}],[4,{[y]:`CreateTime`,[x]:Gy}],[()=>qP,{[y]:`AttachmentSet`,[x]:Kv}],[2,{[y]:`Encrypted`,[x]:cx}],[0,{[y]:`KmsKeyId`,[x]:nC}]]],zM=[3,S,x_,0,[jc,fa,Op,Bl,z_,m,Pl,g,ga],[[2,{[y]:`DeleteOnTermination`,[x]:cb}],[0,{[y]:`AssociatedResource`,[x]:zv}],[0,{[y]:`InstanceOwningService`,[x]:CS}],[1,{[y]:`EbsCardIndex`,[x]:Cb}],[0,{[y]:`VolumeId`,[x]:SD}],[0,{[y]:`InstanceId`,[x]:lS}],[0,{[y]:`Device`,[x]:bb}],[0,{[y]:`Status`,[x]:LE}],[4,{[y]:`AttachTime`,[x]:Jv}]]],BM=[3,S,K_,0,[z_,fh,Og,Qg,xoe,n_,e_,woe,_re,dre,yre,vre,pre,og,Lg,Hu,Lh],[[0,{[y]:`VolumeId`,[x]:SD}],[0,{[y]:`ModificationState`,[x]:LC}],[0,{[y]:`StatusMessage`,[x]:mE}],[1,{[y]:`TargetSize`,[x]:eD}],[1,{[y]:`TargetIops`,[x]:KE}],[0,{[y]:`TargetVolumeType`,[x]:iD}],[1,{[y]:`TargetThroughput`,[x]:nD}],[2,{[y]:`TargetMultiAttachEnabled`,[x]:qE}],[1,{[y]:`OriginalSize`,[x]:ww}],[1,{[y]:`OriginalIops`,[x]:xw}],[0,{[y]:`OriginalVolumeType`,[x]:Ew}],[1,{[y]:`OriginalThroughput`,[x]:Tw}],[2,{[y]:`OriginalMultiAttachEnabled`,[x]:Sw}],[1,{[y]:`Progress`,[x]:fT}],[4,{[y]:`StartTime`,[x]:OE}],[4,{[y]:`EndTime`,[x]:ax}],[()=>Wj,{[y]:`Operator`,[x]:Dw}]]],VM=[3,S,dv,0,[Ph,Cm,ff,Qa,bf,Wl,_,Ga,N_,g,Za,Ac],[[0,{[y]:`OwnerId`,[x]:yw}],[0,{[y]:`InstanceTenancy`,[x]:XS}],[()=>QP,{[y]:`Ipv6CidrBlockAssociationSet`,[x]:tS}],[()=>XP,{[y]:`CidrBlockAssociationSet`,[x]:_y}],[2,{[y]:`IsDefault`,[x]:rS}],[()=>WM,{[y]:`EncryptionControl`,[x]:Tb}],[()=>C,{[y]:`TagSet`,[x]:QE}],[()=>bO,{[y]:`BlockPublicAccessStates`,[x]:dy}],[0,{[y]:`VpcId`,[x]:bD}],[0,{[y]:`State`,[x]:IE}],[0,{[y]:`CidrBlock`,[x]:gy}],[0,{[y]:`DhcpOptionsId`,[x]:sb}]]],HM=[3,S,S_,0,[la,Za,eo],[[0,{[y]:`AssociationId`,[x]:kv}],[0,{[y]:`CidrBlock`,[x]:gy}],[()=>UM,{[y]:`CidrBlockState`,[x]:yy}]]],UM=[3,S,w_,0,[g,Og],[[0,{[y]:`State`,[x]:IE}],[0,{[y]:`StatusMessage`,[x]:mE}]]],WM=[3,S,D_,0,[N_,j_,gh,g,kg,uie,_],[[0,{[y]:`VpcId`,[x]:bD}],[0,{[y]:`VpcEncryptionControlId`,[x]:vD}],[0,{[y]:`Mode`,[x]:WC}],[0,{[y]:`State`,[x]:IE}],[0,{[y]:`StateMessage`,[x]:hE}],[()=>qM,{[y]:`ResourceExclusions`,[x]:yT}],[()=>C,{[y]:`TagSet`,[x]:QE}]]],GM=[3,S,O_,0,[gh,Ef,xu,ere,Q_,X_,$te,U_,ql],[0,0,0,0,0,0,0,0,0],1],KM=[3,S,k_,0,[g,kg],[[0,{[y]:`State`,[x]:IE}],[0,{[y]:`StateMessage`,[x]:hE}]]],qM=[3,S,A_,0,[Sf,bu,Sh,Z_,$_,fne,H_,Kl],[[()=>KM,{[y]:`InternetGateway`,[x]:aS}],[()=>KM,{[y]:`EgressOnlyInternetGateway`,[x]:Wb}],[()=>KM,{[y]:`NatGateway`,[x]:QC}],[()=>KM,{[y]:`VirtualPrivateGateway`,[x]:OD}],[()=>KM,{[y]:`VpcPeering`,[x]:kD}],[()=>KM,{[y]:`Lambda`,[x]:gC}],[()=>KM,{[y]:`VpcLattice`,[x]:CD}],[()=>KM,{[y]:`ElasticFileSystem`,[x]:Db}]]],JM=[3,S,P_,0,[la,df,mf,yh,Kp,Yd,_m],[[0,{[y]:`AssociationId`,[x]:kv}],[0,{[y]:`Ipv6CidrBlock`,[x]:eS}],[()=>UM,{[y]:`Ipv6CidrBlockState`,[x]:nS}],[0,{[y]:`NetworkBorderGroup`,[x]:KC}],[0,{[y]:`Ipv6Pool`,[x]:jS}],[0,{[y]:`Ipv6AddressAttribute`,[x]:Wx}],[0,{[y]:`IpSource`,[x]:WS}]]],YM=`unit`,XM=[1,S,Cte,0,[()=>XD,{[x]:b}]],ZM=[1,S,vte,0,[0,{[x]:sa}]],QM=[1,S,Vte,0,[0,{[x]:b}]],$M=[1,S,yte,0,[0,{[x]:la}]],eN=[1,S,ya,0,[()=>mO,{[x]:va}]],tN=[1,S,Kte,0,[()=>hO,{[x]:b}]],nN=[1,S,qte,0,[()=>pO,{[x]:b}]],rN=[1,S,Yte,0,[()=>gO,{[x]:b}]],iN=[1,S,xa,0,[()=>_O,{[x]:b}]],aN=[1,S,Ya,0,[0,{[x]:b}]],oN=[1,S,La,0,[()=>yO,{[x]:b}]],sN=[1,S,Ra,0,[()=>yO,{[x]:Ia}]],cN=[1,S,Ua,0,[0,{[x]:b}]],lN=[1,S,to,0,[1,{[x]:b}]],uN=[1,S,rc,0,[()=>eA,{[x]:b}]],dN=[1,S,Vl,0,[()=>nA,{[x]:b}]],fN=[1,S,Xl,0,[()=>cA,{[x]:b}]],pN=[1,S,nu,0,[()=>lA,{[x]:b}]],mN=[1,S,ou,0,[()=>dA,{[x]:b}]],hN=[1,S,du,0,[()=>uA,{[x]:b}]],gN=[1,S,Rl,0,[0,{[x]:zl}]],_N=[1,S,td,0,[()=>gA,{[x]:cd}]],vN=[1,S,Zu,0,[()=>_A,{[x]:b}]],yN=[1,S,_d,0,[()=>SA,{[x]:b}]],bN=[1,S,bd,0,[()=>TA,{[x]:b}]],xN=[1,S,xd,0,[0,{[x]:Cx}]],SN=[1,S,Od,0,[0,{[x]:Dd}]],CN=[1,S,Lf,0,[()=>kA,{[x]:b}]],wN=[1,S,qf,0,[0,{[x]:Yf}]],TN=[1,S,np,0,[()=>jA,{[x]:b}]],EN=[1,S,_f,0,[()=>FA,0]],DN=[1,S,cf,0,[()=>BA,{[x]:b}]],ON=[1,S,uf,0,[()=>VA,{[x]:b}]],kN=[1,S,Jf,0,[0,{[x]:m}]],AN=[1,S,Vf,0,[()=>HA,{[x]:b}]],jN=[1,S,Nf,0,[()=>UA,{[x]:b}]],MN=[1,S,Hf,0,[()=>WA,{[x]:b}]],NN=[1,S,ip,0,[()=>LA,{[x]:b}]],PN=[1,S,vp,0,[()=>XA,{[x]:b}]],FN=[1,S,bp,0,[()=>$A,{[x]:b}]],IN=[1,S,Np,0,[()=>nj,{[x]:b}]],LN=[1,S,am,0,[()=>rj,{[x]:b}]],RN=[1,S,sm,0,[()=>aj,{[x]:b}]],zN=[1,S,cm,0,[()=>oj,{[x]:b}]],BN=[1,S,um,0,[()=>sj,{[x]:b}]],VN=[1,S,rm,0,[()=>lj,{[x]:b}]],HN=[1,S,bm,0,[()=>dj,{[x]:b}]],UN=[1,S,wf,0,[()=>pj,{[x]:b}]],WN=[1,S,Of,0,[0,{[x]:b}]],GN=[1,S,Af,0,[()=>fj,{[x]:b}]],KN=[1,S,ap,0,[0,{[x]:b}]],qN=[1,S,Ip,0,[()=>mj,{[x]:b}]],JN=[1,S,Xp,0,[()=>hj,{[x]:b}]],YN=[1,S,Lp,0,[()=>gj,{[x]:b}]],XN=[1,S,Rp,0,[()=>_j,{[x]:b}]],ZN=[1,S,Zp,0,[()=>vj,{[x]:b}]],QN=[1,S,zm,0,[0,{[x]:Rm}]],$N=[1,S,Um,0,[0,{[x]:Hm}]],eP=[1,S,Km,0,[()=>bj,{[x]:b}]],tP=[1,S,tne,0,[()=>Sj,{[x]:b}]],nP=[1,S,ine,0,[()=>Cj,{[x]:b}]],rP=[1,S,vne,0,[()=>Tj,{[x]:b}]],iP=[1,S,Qne,0,[()=>Pj,{[x]:b}]],aP=[1,S,Zne,0,[()=>Fj,{[x]:b}]],oP=[1,S,tre,0,[0,{[x]:b}]],sP=[1,S,rre,0,[()=>Nj,{[x]:b}]],cP=[1,S,Vne,0,[()=>Ij,{[x]:b}]],lP=[1,S,Gne,0,[()=>zj,{[x]:b}]],uP=[1,S,cre,0,[0,{[x]:b}]],dP=[1,S,gre,0,[0,{[x]:Rh}]],fP=[1,S,Are,0,[0,{[x]:Cd}]],pP=[1,S,jre,0,[()=>Kj,{[x]:b}]],mP=[1,S,Mre,0,[0,{[x]:b}]],hP=[1,S,Wre,0,[()=>Jj,{[x]:b}]],gP=[1,S,Ire,0,[()=>Qj,{[x]:b}]],_P=[1,S,wre,0,[()=>eM,{[x]:b}]],vP=[1,S,Qre,0,[()=>tM,{[x]:b}]],yP=[1,S,Rre,0,[0,{[x]:Xh}]],bP=[1,S,mie,0,[()=>oM,{[x]:b}]],xP=[1,S,Cie,0,[()=>aM,{[x]:b}]],SP=[1,S,Oie,0,[0,{[x]:dg}]],CP=[1,S,wie,0,[()=>cM,{[x]:b}]],wP=[1,S,Rie,0,[()=>lM,{[x]:b}]],TP=[1,S,cie,0,[0,{[x]:b}]],EP=[1,S,Tie,0,[()=>mM,{[x]:b}]],DP=[1,S,Vie,0,[()=>gM,{[x]:b}]],OP=[1,S,Uie,0,[0,{[x]:b}]],kP=[1,S,Gie,0,[()=>hM,{[x]:b}]],AP=[1,S,mae,0,[0,{[x]:_g}]],jP=[1,S,gae,0,[()=>bM,{[x]:b}]],MP=[1,S,vae,0,[0,{[x]:b}]],NP=[1,S,yae,0,[()=>xM,{[x]:b}]],PP=[1,S,xae,0,[0,{[x]:Sg}]],FP=[1,S,Iae,0,[0,{[x]:Tg}]],IP=[1,S,Kae,0,[()=>SM,{[x]:b}]],LP=[1,S,Lae,0,[0,{[x]:Eg}]],RP=[1,S,wae,0,[()=>jM,{[x]:b}]],zP=[1,S,qae,0,[()=>kM,{[x]:b}]],BP=[1,S,aae,0,[0,{[x]:b}]],C=[1,S,Coe,0,[()=>MM,{[x]:b}]],VP=[1,S,Xg,0,[()=>NM,{[x]:b}]],HP=[1,S,qg,0,[1,{[x]:b}]],UP=[1,S,c_,0,[0,{[x]:b}]],WP=[1,S,f_,0,[()=>IM,{[x]:b}]],GP=[1,S,ev,0,[0,{[x]:b}]],KP=[1,S,rv,0,[0,{[x]:b}]],qP=[1,S,b_,0,[()=>zM,{[x]:b}]],JP=[1,S,L_,0,[0,{[x]:z_}]],YP=[1,S,W_,0,[()=>RM,{[x]:b}]],XP=[1,S,C_,0,[()=>HM,{[x]:b}]],ZP=[1,S,R_,0,[0,{[x]:N_}]],QP=[1,S,F_,0,[()=>JM,{[x]:b}]],$P=[1,S,G_,0,[()=>VM,{[x]:b}]],eF=[1,S,pv,0,[0,{[x]:b}]],tF=[1,S,gv,0,[0,{[x]:hv}]],nF=[1,S,yv,0,[0,{[x]:vv}]],rF=[9,S,ate,0,()=>ZD,()=>QD],iF=[9,S,ste,0,()=>$D,()=>eO],aF=[9,S,hte,0,()=>tO,()=>nO],oF=[9,S,Ate,0,()=>rO,()=>iO],sF=[9,S,pte,0,()=>aO,()=>YM],cF=[9,S,Wte,0,()=>oO,()=>zM],lF=[9,S,Nte,0,()=>lO,()=>uO],uF=[9,S,Rte,0,()=>dO,()=>fO],dF=[9,S,rs,0,()=>DO,()=>OO],fF=[9,S,bo,0,()=>jO,()=>MO],pF=[9,S,uo,0,()=>NO,()=>PO],mF=[9,S,xo,0,()=>FO,()=>yj],hF=[9,S,wo,0,()=>IO,()=>LO],gF=[9,S,jo,0,()=>RO,()=>zO],_F=[9,S,Ko,0,()=>BO,()=>VO],vF=[9,S,Go,0,()=>HO,()=>UO],yF=[9,S,qo,0,()=>WO,()=>GO],bF=[9,S,as,0,()=>KO,()=>SM],xF=[9,S,os,0,()=>qO,()=>JO],SF=[9,S,ys,0,()=>YO,()=>RM],CF=[9,S,bs,0,()=>XO,()=>ZO],wF=[9,S,Ws,0,()=>ek,()=>YM],TF=[9,S,mc,0,()=>tk,()=>nk],EF=[9,S,Cc,0,()=>rk,()=>ik],DF=[9,S,Mc,0,()=>ak,()=>YM],OF=[9,S,Xc,0,()=>ok,()=>YM],kF=[9,S,Hc,0,()=>sk,()=>YM],AF=[9,S,Qc,0,()=>ck,()=>lk],jF=[9,S,ul,0,()=>uk,()=>YM],MF=[9,S,dl,0,()=>dk,()=>YM],NF=[9,S,Ol,0,()=>fk,()=>YM],PF=[9,S,kl,0,()=>pk,()=>YM],FF=[9,S,Ns,0,()=>mk,()=>hk],IF=[9,S,Ms,0,()=>gk,()=>_k],LF=[9,S,Qs,0,()=>vk,()=>yk],RF=[9,S,dc,0,()=>bk,()=>xk],zF=[9,S,fc,0,()=>Sk,()=>Ck],BF=[9,S,uc,0,()=>wk,()=>Tk],VF=[9,S,Ys,0,()=>Ek,()=>Dk],HF=[9,S,yc,0,()=>Ok,()=>kk],UF=[9,S,Oc,0,()=>Ak,()=>jk],WF=[9,S,Ic,0,()=>Mk,()=>Nk],GF=[9,S,Zc,0,()=>Pk,()=>Fk],KF=[9,S,qc,0,()=>Ik,()=>Lk],qF=[9,S,rl,0,()=>Rk,()=>zk],JF=[9,S,fl,0,()=>Bk,()=>Vk],YF=[9,S,pl,0,()=>Hk,()=>Uk],XF=[9,S,Al,0,()=>Wk,()=>Gk],ZF=[9,S,jl,0,()=>Kk,()=>qk],QF=[9,S,Xs,0,()=>Jk,()=>YM],$F=[9,S,Ml,0,()=>Yk,()=>zM],eI=[9,S,Ps,0,()=>Xk,()=>YM],tI=[9,S,Zs,0,()=>Zk,()=>Qk],nI=[9,S,Jc,0,()=>$k,()=>YM],rI=[9,S,fd,0,()=>bA,()=>xA],iI=[9,S,Qf,0,()=>MA,()=>NA],aI=[9,S,Dne,0,()=>Oj,()=>YM],oI=[9,S,jne,0,()=>kj,()=>YM],sI=[9,S,Ine,0,()=>Aj,()=>jj],cI=[9,S,bie,0,()=>rM,()=>YM],lI=[9,S,aie,0,()=>sM,()=>YM],uI=[9,S,jie,0,()=>uM,()=>dM],dI=[9,S,Iie,0,()=>fM,()=>pM],fI=[9,S,Sie,0,()=>yM,()=>cM],pI=[9,S,Hae,0,()=>wM,()=>TM],mI=[9,S,Wae,0,()=>DM,()=>OM],hI=[9,S,_oe,0,()=>PM,()=>FM],gI=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??xt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Qee,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Uee,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Ze}],logger:e?.logger??new ut,protocol:e?.protocol??bee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:GD,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,urlParser:e?.urlParser??Ce,utf8Decoder:e?.utf8Decoder??bt,utf8Encoder:e?.utf8Encoder??St}),_I=e=>{let t=De(e),n=()=>t().then(pt),r=gI(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Mt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??xe({serviceId:r.serviceId,clientVersion:qee.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ae(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},vI=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},yI=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),bI=(e,t)=>{let n=Object.assign(Se(e),ht(e),Ge(e),vI(e));return t.forEach(e=>e.configure(n)),Object.assign(e,we(n),He(n),ct(n),yI(n))},xI=class extends $e{config;constructor(...[e]){let t=_I(e||{});super(t),this.initConfig=t;let n=bI(Wee(Ke(it(pe(Fe(gt(Gee(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(Me(this.config,{httpAuthSchemeParametersProvider:Vee,identityProviderConfigProvider:async e=>new oe({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(Ne(this.config))}destroy(){super.destroy()}},SI=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6,CI=async(e,t,n)=>({operation:ve(t).operation,region:await Te(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function wI(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`eks`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var TI=e=>{let t=[];switch(e.operation){default:t.push(wI(e))}return t},EI=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:Te(e.authSchemePreference??[])})},DI=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`eks`}),OI={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},kI={name:`@aws-sdk/client-eks`,description:`AWS SDK for JavaScript Eks Client for Node.js, Browser and React Native`,version:`3.1063.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-eks`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo eks`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.18`,"@aws-sdk/credential-provider-node":`^3.972.52`,"@aws-sdk/types":`^3.973.11`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-eks`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-eks`}},AI=`ref`,jI=-1,MI=!0,NI=`isSet`,PI=`PartitionResult`,FI=`booleanEquals`,II=`getAttr`,LI=`stringEquals`,RI={[AI]:`Endpoint`},zI={[AI]:PI},BI={fn:II,argv:[zI,`name`]},VI={},HI=[{[AI]:`Region`}],UI={conditions:[[NI,[RI]],[NI,HI],[`aws.partition`,HI,PI],[FI,[{[AI]:`UseFIPS`},MI]],[FI,[{[AI]:`UseDualStack`},MI]],[FI,[{fn:II,argv:[zI,`supportsDualStack`]},MI]],[FI,[{fn:II,argv:[zI,`supportsFIPS`]},MI]],[LI,[BI,`aws`]],[LI,[BI,`aws-us-gov`]]],results:[[jI],[jI,`Invalid Configuration: FIPS and custom endpoint are not supported`],[jI,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[RI,VI],[`https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,VI],[jI,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://fips.eks.{Region}.amazonaws.com`,VI],[`https://eks.{Region}.amazonaws.com`,VI],[`https://eks-fips.{Region}.{PartitionResult#dnsSuffix}`,VI],[jI,`FIPS is enabled but this partition does not support FIPS`],[`https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}`,VI],[jI,`DualStack is enabled but this partition does not support DualStack`],[`https://eks.{Region}.{PartitionResult#dnsSuffix}`,VI],[jI,`Invalid Configuration: Missing Region`]]},WI=2,GI=new Int32Array([-1,1,-1,0,14,3,1,4,100000013,2,5,100000013,3,8,6,4,7,100000012,5,100000010,100000011,4,12,9,6,10,100000009,7,100000006,11,8,100000007,100000008,5,13,100000005,6,100000004,100000005,3,100000001,15,4,100000002,100000003]),KI=Je.from(GI,WI,UI.conditions,UI.results),qI=new Ye({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),JI=(e,t={})=>qI.get(e,()=>rt(KI,{endpointParams:e,logger:t.logger}));tt.aws=_e;var YI=class e extends Ae{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},XI=class e extends YI{name=`AccessDeniedException`;$fault=`client`;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ZI=class e extends YI{name=`InvalidParameterException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},QI=class e extends YI{name=`InvalidRequestException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},$I=class e extends YI{name=`ResourceNotFoundException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},eL=class e extends YI{name=`ServerException`;$fault=`server`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},tL=class e extends YI{name=`ClientException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},nL=class e extends YI{name=`ResourceInUseException`;$fault=`client`;clusterName;nodegroupName;addonName;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName}},rL=class e extends YI{name=`ThrottlingException`;$fault=`client`;clusterName;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},iL=class e extends YI{name=`ResourceLimitExceededException`;$fault=`client`;clusterName;nodegroupName;subscriptionId;constructor(t){super({name:`ResourceLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.subscriptionId=t.subscriptionId}},aL=class e extends YI{name=`ServiceUnavailableException`;$fault=`server`;constructor(t){super({name:`ServiceUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},oL=class e extends YI{name=`UnsupportedAvailabilityZoneException`;$fault=`client`;clusterName;nodegroupName;validZones;constructor(t){super({name:`UnsupportedAvailabilityZoneException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.validZones=t.validZones}},sL=class e extends YI{name=`BadRequestException`;$fault=`client`;constructor(t){super({name:`BadRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cL=class e extends YI{name=`NotFoundException`;$fault=`client`;constructor(t){super({name:`NotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lL=class e extends YI{name=`ResourcePropagationDelayException`;$fault=`client`;constructor(t){super({name:`ResourcePropagationDelayException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uL=class e extends YI{name=`InvalidStateException`;$fault=`client`;clusterName;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},dL=`Addon`,fL=`AssociatedAccessPolicy`,pL=`AssociatedAccessPoliciesList`,mL=`AssociateAccessPolicyRequest`,hL=`AssociateAccessPolicyResponse`,gL=`AssociateAccessPolicy`,_L=`AccessConfigResponse`,vL=`AccessDeniedException`,yL=`AccessEntry`,bL=`AddonHealth`,xL=`AddonInfo`,SL=`AddonIssueList`,CL=`AddonIssue`,wL=`AddonNamespaceConfigRequest`,TL=`AddonNamespaceConfigResponse`,EL=`AccessPolicy`,DL=`AddonPodIdentityAssociations`,OL=`AddonPodIdentityAssociationsList`,kL=`AccessPoliciesList`,AL=`AccessScope`,jL=`AutoScalingGroup`,ML=`AutoScalingGroupList`,NL=`AddonVersionInfo`,PL=`AddonVersionInfoList`,FL=`Addons`,IL=`BadRequestException`,LL=`BlockStorage`,RL=`CreateAddon`,zL=`CreateAccessConfigRequest`,BL=`CreateAccessEntry`,VL=`CreateAccessEntryRequest`,HL=`CreateAccessEntryResponse`,UL=`CreateAddonRequest`,WL=`CreateAddonResponse`,GL=`ComputeConfigRequest`,KL=`ComputeConfigResponse`,qL=`ConnectorConfigResponse`,JL=`CreateClusterRequest`,YL=`CreateClusterResponse`,XL=`CreateCluster`,ZL=`ClientException`,QL=`ClusterHealth`,$L=`ClusterIssueList`,eR=`ClusterIssue`,tR=`CreateNodegroup`,nR=`CreateNodegroupRequest`,rR=`CreateNodegroupResponse`,iR=`ControlPlanePlacementRequest`,aR=`ControlPlanePlacementResponse`,oR=`ControlPlaneScalingConfig`,sR=`Certificate`,cR=`Cluster`,lR=`Compatibility`,uR=`Compatibilities`,dR=`DeleteAddon`,fR=`DeleteAccessEntry`,pR=`DeleteAccessEntryRequest`,mR=`DeleteAccessEntryResponse`,hR=`DescribeAccessEntryRequest`,gR=`DescribeAccessEntryResponse`,_R=`DescribeAccessEntry`,vR=`DisassociateAccessPolicy`,yR=`DisassociateAccessPolicyRequest`,bR=`DisassociateAccessPolicyResponse`,xR=`DeleteAddonRequest`,SR=`DeleteAddonResponse`,CR=`DescribeAddonRequest`,wR=`DescribeAddonResponse`,TR=`DescribeAddonVersions`,ER=`DescribeAddonVersionsRequest`,DR=`DescribeAddonVersionsResponse`,OR=`DescribeAddon`,kR=`DeleteClusterRequest`,AR=`DeleteClusterResponse`,jR=`DescribeClusterRequest`,MR=`DescribeClusterResponse`,NR=`DeleteCluster`,PR=`DescribeCluster`,FR=`DeleteNodegroup`,IR=`DeleteNodegroupRequest`,LR=`DeleteNodegroupResponse`,RR=`DescribeNodegroupRequest`,zR=`DescribeNodegroupResponse`,BR=`DescribeNodegroup`,VR=`EncryptionConfig`,HR=`EncryptionConfigList`,UR=`ErrorDetail`,WR=`ErrorDetails`,GR=`ElasticLoadBalancing`,KR=`Identity`,qR=`IssueList`,JR=`InvalidParameterException`,YR=`InvalidRequestException`,XR=`InvalidStateException`,ZR=`Issue`,QR=`KubernetesNetworkConfigRequest`,$R=`KubernetesNetworkConfigResponse`,ez=`ListAddons`,tz=`ListAssociatedAccessPolicies`,nz=`ListAssociatedAccessPoliciesRequest`,rz=`ListAssociatedAccessPoliciesResponse`,iz=`ListAccessEntries`,az=`ListAccessEntriesRequest`,oz=`ListAccessEntriesResponse`,sz=`ListAccessPolicies`,cz=`ListAccessPoliciesRequest`,lz=`ListAccessPoliciesResponse`,uz=`ListAddonsRequest`,dz=`ListAddonsResponse`,fz=`ListClustersRequest`,pz=`ListClustersResponse`,mz=`ListClusters`,hz=`ListNodegroups`,gz=`ListNodegroupsRequest`,_z=`ListNodegroupsResponse`,vz=`LogSetup`,yz=`LogSetups`,bz=`LaunchTemplateSpecification`,xz=`Logging`,Sz=`MarketplaceInformation`,Cz=`Nodegroup`,wz=`NotFoundException`,Tz=`NodegroupHealth`,Ez=`NodegroupResources`,Dz=`NodeRepairConfig`,Oz=`NodeRepairConfigOverrides`,kz=`NodeRepairConfigOverridesList`,Az=`NodegroupScalingConfig`,jz=`NodegroupUpdateConfig`,Mz=`OutpostConfigRequest`,Nz=`OutpostConfigResponse`,Pz=`OIDC`,Fz=`Provider`,Iz=`RemoteAccessConfig`,Lz=`ResourceInUseException`,Rz=`ResourceLimitExceededException`,zz=`RemoteNetworkConfigRequest`,Bz=`RemoteNetworkConfigResponse`,Vz=`ResourceNotFoundException`,Hz=`RemoteNodeNetwork`,Uz=`RemoteNodeNetworkList`,Wz=`ResourcePropagationDelayException`,Gz=`RemotePodNetwork`,Kz=`RemotePodNetworkList`,qz=`StorageConfigRequest`,Jz=`StorageConfigResponse`,Yz=`ServerException`,Xz=`ServiceUnavailableException`,Zz=`Taint`,Qz=`ThrottlingException`,$z=`Update`,eB=`UpdateAddon`,tB=`UpdateAddonRequest`,nB=`UpdateAddonResponse`,rB=`UnsupportedAvailabilityZoneException`,iB=`UpdateLabelsPayload`,aB=`UpdateNodegroupConfig`,oB=`UpdateNodegroupConfigRequest`,sB=`UpdateNodegroupConfigResponse`,cB=`UpdateNodegroupVersion`,lB=`UpdateNodegroupVersionRequest`,uB=`UpdateNodegroupVersionResponse`,dB=`UpdateParam`,fB=`UpgradePolicyRequest`,pB=`UpgradePolicyResponse`,mB=`UpdateParams`,hB=`UpdateTaintsPayload`,gB=`VpcConfigRequest`,_B=`VpcConfigResponse`,vB=`WarmPoolConfig`,yB=`ZonalShiftConfigRequest`,bB=`ZonalShiftConfigResponse`,xB=`arn`,SB=`addonArn`,CB=`associatedAccessPolicy`,wB=`associatedAccessPolicies`,TB=`associatedAt`,EB=`accessConfig`,DB=`activationCode`,OB=`activationExpiry`,kB=`accessEntryArn`,AB=`accessEntry`,jB=`accessEntries`,MB=`activationId`,NB=`authenticationMode`,PB=`addonName`,FB=`addOrUpdateLabels`,IB=`addOrUpdateTaints`,LB=`accessPolicies`,RB=`associatedPolicyArn`,zB=`accessScope`,BB=`autoScalingGroups`,VB=`amiType`,HB=`addonVersion`,UB=`addonVersions`,WB=`addon`,GB=`addons`,KB=`architecture`,qB=`bootstrapClusterCreatorAdminPermissions`,JB=`blockStorage`,YB=`bootstrapSelfManagedAddons`,XB=`client`,ZB=`createdAt`,QB=`certificateAuthority`,$B=`connectorConfig`,eV=`computeConfig`,tV=`clusterLogging`,w=`clusterName`,nV=`controlPlaneInstanceType`,rV=`controlPlanePlacement`,iV=`controlPlaneScalingConfig`,aV=`clientRequestToken`,oV=`clusterSecurityGroupId`,sV=`computeTypes`,cV=`capacityType`,lV=`configurationValues`,uV=`clusterVersion`,dV=`cidrs`,fV=`cluster`,pV=`clusters`,mV=`code`,hV=`compatibilities`,gV=`data`,_V=`defaultNamespace`,vV=`deletionProtection`,yV=`diskSize`,bV=`desiredSize`,xV=`defaultVersion`,SV=`error`,CV=`encryptionConfig`,wV=`errorCode`,TV=`elasticLoadBalancing`,EV=`errorMessage`,DV=`endpointPublicAccess`,OV=`endpointPrivateAccess`,kV=`ec2SshKey`,AV=`effect`,jV=`enabled`,MV=`endpoint`,NV=`errors`,PV=`fargateProfileName`,FV=`force`,IV=`groupName`,LV=`health`,RV=`httpError`,T=`httpQuery`,E=`http`,zV=`issues`,BV=`ipFamily`,VV=`instanceTypes`,HV=`id`,UV=`identity`,WV=`include`,GV=`issuer`,KV=`key`,qV=`keyArn`,JV=`kubernetesGroups`,YV=`kubernetesNetworkConfig`,XV=`kubernetesVersion`,ZV=`logging`,QV=`launchTemplate`,$V=`labels`,eH=`message`,tH=`modifiedAt`,nH=`maxGroupPreparedCapacity`,rH=`marketplaceInformation`,iH=`maxParallelNodesRepairedCount`,aH=`maxParallelNodesRepairedPercentage`,oH=`maxResults`,sH=`minRepairWaitTimeMins`,cH=`minSize`,lH=`maxSize`,uH=`maxUnavailable`,dH=`maxUnhealthyNodeThresholdCount`,fH=`maxUnhealthyNodeThresholdPercentage`,pH=`maxUnavailablePercentage`,mH=`name`,hH=`nodegroupArn`,gH=`namespaceConfig`,_H=`nodeMonitoringCondition`,vH=`nodegroupName`,yH=`nodePools`,bH=`nodeRole`,xH=`nodeRoleArn`,SH=`nodeRepairConfig`,CH=`nodeRepairConfigOverrides`,D=`nextToken`,wH=`nodeUnhealthyReason`,TH=`namespaces`,EH=`namespace`,DH=`nodegroup`,OH=`nodegroups`,kH=`owner`,AH=`outpostArns`,jH=`outpostConfig`,MH=`oidc`,NH=`owners`,PH=`publisher`,FH=`principalArn`,IH=`publicAccessCidrs`,LH=`policyArn`,RH=`productId`,zH=`podIdentityAssociations`,BH=`poolState`,VH=`productUrl`,HH=`platformVersion`,UH=`platformVersions`,WH=`params`,GH=`provider`,KH=`preserve`,qH=`publishers`,JH=`roleArn`,YH=`remoteAccessSecurityGroup`,XH=`remoteAccess`,ZH=`repairAction`,QH=`requiresConfiguration`,$H=`resolveConflicts`,eU=`resourceIds`,tU=`requiresIamPermissions`,nU=`removeLabels`,rU=`remoteNetworkConfig`,iU=`remoteNodeNetworks`,aU=`reuseOnScaleIn`,oU=`remotePodNetworks`,sU=`removeTaints`,cU=`releaseVersion`,lU=`resourcesVpcConfig`,uU=`resources`,dU=`smithy.ts.sdk.synthetic.com.amazonaws.eks`,fU=`serviceAccount`,pU=`serviceAccountRoleArn`,mU=`storageConfig`,hU=`scalingConfig`,gU=`securityGroupIds`,_U=`subscriptionId`,vU=`serviceIpv4Cidr`,yU=`serviceIpv6Cidr`,bU=`subnetIds`,xU=`sourceSecurityGroups`,SU=`supportType`,CU=`server`,wU=`status`,TU=`subnets`,EU=`tags`,DU=`taintsList`,OU=`taints`,kU=`tier`,AU=`type`,jU=`types`,MU=`username`,NU=`updateConfig`,PU=`upgradePolicy`,FU=`updateStrategy`,IU=`update`,LU=`version`,RU=`vpcId`,zU=`validZones`,BU=`value`,VU=`warmPoolConfig`,HU=`zonalShiftConfig`,O=`com.amazonaws.eks`,UU=dt.for(dU),WU=[-3,dU,`EKSServiceException`,0,[],[]];UU.registerError(WU,YI);var GU=dt.for(O),KU=[-3,O,vL,{[SV]:XB,[RV]:403},[eH],[0]];GU.registerError(KU,XI);var qU=[-3,O,IL,{[SV]:XB,[RV]:400},[eH],[0]];GU.registerError(qU,sL);var JU=[-3,O,ZL,{[SV]:XB,[RV]:400},[w,vH,PB,_U,eH],[0,0,0,0,0]];GU.registerError(JU,tL);var YU=[-3,O,JR,{[SV]:XB,[RV]:400},[w,vH,PV,PB,_U,eH],[0,0,0,0,0,0]];GU.registerError(YU,ZI);var XU=[-3,O,YR,{[SV]:XB,[RV]:400},[w,vH,PB,_U,eH],[0,0,0,0,0]];GU.registerError(XU,QI);var ZU=[-3,O,XR,{[SV]:XB,[RV]:400},[w,eH],[0,0]];GU.registerError(ZU,uL);var QU=[-3,O,wz,{[SV]:XB,[RV]:404},[eH],[0]];GU.registerError(QU,cL);var $U=[-3,O,Lz,{[SV]:XB,[RV]:409},[w,vH,PB,eH],[0,0,0,0]];GU.registerError($U,nL);var eW=[-3,O,Rz,{[SV]:XB,[RV]:400},[w,vH,_U,eH],[0,0,0,0]];GU.registerError(eW,iL);var tW=[-3,O,Vz,{[SV]:XB,[RV]:404},[w,vH,PV,PB,_U,eH],[0,0,0,0,0,0]];GU.registerError(tW,$I);var nW=[-3,O,Wz,{[SV]:XB,[RV]:428},[eH],[0]];GU.registerError(nW,lL);var rW=[-3,O,Yz,{[SV]:CU,[RV]:500},[w,vH,PB,_U,eH],[0,0,0,0,0]];GU.registerError(rW,eL);var iW=[-3,O,Xz,{[SV]:CU,[RV]:503},[eH],[0]];GU.registerError(iW,aL);var aW=[-3,O,Qz,{[SV]:XB,[RV]:429},[w,eH],[0,0]];GU.registerError(aW,rL);var oW=[-3,O,rB,{[SV]:XB,[RV]:400},[eH,w,vH,zU],[0,0,0,64]];GU.registerError(oW,oL);var sW=[UU,GU],cW=[3,O,_L,0,[qB,NB],[2,0]],lW=[3,O,yL,0,[w,FH,JV,kB,ZB,tH,EU,MU,AU],[0,0,64,0,4,4,128,0,0]],uW=[3,O,EL,0,[mH,xB],[0,0]],dW=[3,O,AL,0,[AU,TH],[0,64]],fW=[3,O,dL,0,[PB,w,wU,HB,LV,SB,ZB,tH,pU,EU,PH,kH,rH,lV,zH,gH],[0,0,0,0,()=>pW,0,4,4,0,128,0,0,()=>NG,0,64,()=>_W]],pW=[3,O,bL,0,[zV],[()=>_K]],mW=[3,O,xL,0,[PB,AU,UB,PH,kH,rH,_V],[0,0,()=>bK,0,0,()=>NG,0]],hW=[3,O,CL,0,[mV,eH,eU],[0,0,64]],gW=[3,O,wL,0,[EH],[0]],_W=[3,O,TL,0,[EH],[0]],vW=[3,O,DL,0,[fU,JH],[0,0],2],yW=[3,O,NL,0,[HB,KB,sV,hV,QH,tU],[0,64,64,()=>wK,2,2]],bW=[3,O,mL,0,[w,FH,LH,zB],[[0,1],[0,1],0,()=>dW],4],xW=[3,O,hL,0,[w,FH,CB],[0,0,()=>SW]],SW=[3,O,fL,0,[LH,zB,TB,tH],[0,()=>dW,4,4]],CW=[3,O,jL,0,[mH],[0]],wW=[3,O,LL,0,[jV],[2]],TW=[3,O,sR,0,[gV],[0]],EW=[3,O,cR,0,[mH,xB,ZB,LU,MV,JH,lU,YV,ZV,UV,wU,QB,aV,HH,EU,CV,$B,HV,LV,jH,EB,PU,HU,rU,eV,mU,vV,iV],[0,0,4,0,0,0,()=>fK,()=>_G,()=>jG,()=>mG,0,()=>TW,0,0,128,()=>TK,()=>MW,0,()=>DW,()=>UG,()=>cW,()=>uK,()=>hK,()=>qG,()=>jW,()=>ZG,2,()=>FW]],DW=[3,O,QL,0,[zV],[()=>CK]],OW=[3,O,eR,0,[mV,eH,eU],[0,0,64]],kW=[3,O,lR,0,[uV,UH,xV],[0,64,2]],AW=[3,O,GL,0,[jV,yH,xH],[2,64,0]],jW=[3,O,KL,0,[jV,yH,xH],[2,64,0]],MW=[3,O,qL,0,[MB,DB,OB,GH,JH],[0,0,4,0,0]],NW=[3,O,iR,0,[IV],[0]],PW=[3,O,aR,0,[IV],[0]],FW=[3,O,oR,0,[kU],[0]],IW=[3,O,zL,0,[qB,NB],[2,0]],LW=[3,O,VL,0,[w,FH,JV,EU,aV,MU,AU],[[0,1],0,64,128,[0,4],0,0],2],RW=[3,O,HL,0,[AB],[()=>lW]],zW=[3,O,UL,0,[w,PB,HB,pU,$H,aV,EU,lV,zH,gH],[[0,1],0,0,0,0,[0,4],128,0,()=>vK,()=>gW],2],BW=[3,O,WL,0,[WB],[()=>fW]],VW=[3,O,JL,0,[mH,JH,lU,LU,YV,ZV,aV,EU,CV,jH,EB,YB,PU,HU,rU,eV,mU,vV,iV],[0,0,()=>dK,0,()=>gG,()=>jG,[0,4],128,()=>TK,()=>HG,()=>IW,2,()=>lK,()=>mK,()=>KG,()=>AW,()=>XG,2,()=>FW],3],HW=[3,O,YL,0,[fV],[()=>EW]],UW=[3,O,nR,0,[w,vH,TU,bH,hU,yV,VV,VB,XH,$V,OU,EU,aV,QV,NU,SH,cV,LU,cU,VU],[[0,1],0,64,0,()=>LG,1,64,0,()=>GG,128,()=>MK,128,[0,4],()=>vG,()=>RG,()=>zG,0,0,0,()=>pK],4],WW=[3,O,rR,0,[DH],[()=>PG]],GW=[3,O,pR,0,[w,FH],[[0,1],[0,1]],2],KW=[3,O,mR,0,[],[]],qW=[3,O,xR,0,[w,PB,KH],[[0,1],[0,1],[2,{[T]:KH}]],2],JW=[3,O,SR,0,[WB],[()=>fW]],YW=[3,O,kR,0,[mH],[[0,1]],1],XW=[3,O,AR,0,[fV],[()=>EW]],ZW=[3,O,IR,0,[w,vH],[[0,1],[0,1]],2],QW=[3,O,LR,0,[DH],[()=>PG]],$W=[3,O,hR,0,[w,FH],[[0,1],[0,1]],2],eG=[3,O,gR,0,[AB],[()=>lW]],tG=[3,O,CR,0,[w,PB],[[0,1],[0,1]],2],nG=[3,O,wR,0,[WB],[()=>fW]],rG=[3,O,ER,0,[XV,oH,D,PB,jU,qH,NH],[[0,{[T]:XV}],[1,{[T]:oH}],[0,{[T]:D}],[0,{[T]:PB}],[64,{[T]:jU}],[64,{[T]:qH}],[64,{[T]:NH}]]],iG=[3,O,DR,0,[GB,D],[()=>yK,0]],aG=[3,O,jR,0,[mH],[[0,1]],1],oG=[3,O,MR,0,[fV],[()=>EW]],sG=[3,O,RR,0,[w,vH],[[0,1],[0,1]],2],cG=[3,O,zR,0,[DH],[()=>PG]],lG=[3,O,yR,0,[w,FH,LH],[[0,1],[0,1],[0,1]],3],uG=[3,O,bR,0,[],[]],dG=[3,O,GR,0,[jV],[2]],fG=[3,O,VR,0,[uU,GH],[64,()=>WG]],pG=[3,O,UR,0,[wV,EV,eU],[0,0,64]],mG=[3,O,KR,0,[MH],[()=>VG]],hG=[3,O,ZR,0,[mV,eH,eU],[0,0,64]],gG=[3,O,QR,0,[vU,BV,TV],[0,0,()=>dG]],_G=[3,O,$R,0,[vU,yU,BV,TV],[0,0,0,()=>dG]],vG=[3,O,bz,0,[mH,LU,HV],[0,0,0]],yG=[3,O,az,0,[w,RB,oH,D],[[0,1],[0,{[T]:RB}],[1,{[T]:oH}],[0,{[T]:D}]],1],bG=[3,O,oz,0,[jB,D],[64,0]],xG=[3,O,cz,0,[oH,D],[[1,{[T]:oH}],[0,{[T]:D}]]],SG=[3,O,lz,0,[LB,D],[()=>gK,0]],CG=[3,O,uz,0,[w,oH,D],[[0,1],[1,{[T]:oH}],[0,{[T]:D}]],1],wG=[3,O,dz,0,[GB,D],[64,0]],TG=[3,O,nz,0,[w,FH,oH,D],[[0,1],[0,1],[1,{[T]:oH}],[0,{[T]:D}]],2],EG=[3,O,rz,0,[w,FH,D,wB],[0,0,0,()=>xK]],DG=[3,O,fz,0,[oH,D,WV],[[1,{[T]:oH}],[0,{[T]:D}],[64,{[T]:WV}]]],OG=[3,O,pz,0,[pV,D],[64,0]],kG=[3,O,gz,0,[w,oH,D],[[0,1],[1,{[T]:oH}],[0,{[T]:D}]],1],AG=[3,O,_z,0,[OH,D],[64,0]],jG=[3,O,xz,0,[tV],[()=>OK]],MG=[3,O,vz,0,[jU,jV],[64,2]],NG=[3,O,Sz,0,[RH,VH],[0,0]],PG=[3,O,Cz,0,[vH,hH,w,LU,cU,ZB,tH,wU,cV,hU,VV,TU,XH,VB,bH,$V,OU,uU,yV,LV,NU,SH,QV,EU,VU],[0,0,0,0,0,4,4,0,0,()=>LG,64,64,()=>GG,0,0,128,()=>MK,()=>IG,1,()=>FG,()=>RG,()=>zG,()=>vG,128,()=>pK]],FG=[3,O,Tz,0,[zV],[()=>DK]],IG=[3,O,Ez,0,[BB,YH],[()=>SK,0]],LG=[3,O,Az,0,[cH,lH,bV],[1,1,1]],RG=[3,O,jz,0,[uH,pH,FU],[1,1,0]],zG=[3,O,Dz,0,[jV,dH,fH,iH,aH,CH],[2,1,1,1,1,()=>kK]],BG=[3,O,Oz,0,[_H,wH,sH,ZH],[0,0,1,0]],VG=[3,O,Pz,0,[GV],[0]],HG=[3,O,Mz,0,[AH,nV,rV],[64,0,()=>NW],2],UG=[3,O,Nz,0,[AH,nV,rV],[64,0,()=>PW],2],WG=[3,O,Fz,0,[qV],[0]],GG=[3,O,Iz,0,[kV,xU],[0,64]],KG=[3,O,zz,0,[iU,oU],[()=>AK,()=>jK]],qG=[3,O,Bz,0,[iU,oU],[()=>AK,()=>jK]],JG=[3,O,Hz,0,[dV],[64]],YG=[3,O,Gz,0,[dV],[64]],XG=[3,O,qz,0,[JB],[()=>wW]],ZG=[3,O,Jz,0,[JB],[()=>wW]],QG=[3,O,Zz,0,[KV,BU,AV],[0,0,0]],$G=[3,O,$z,0,[HV,wU,AU,WH,ZB,NV],[0,0,0,()=>NK,4,()=>EK]],eK=[3,O,tB,0,[w,PB,HB,pU,$H,aV,lV,zH],[[0,1],[0,1],0,0,0,[0,4],0,()=>vK],2],tK=[3,O,nB,0,[IU],[()=>$G]],nK=[3,O,iB,0,[FB,nU],[128,64]],rK=[3,O,oB,0,[w,vH,$V,OU,hU,NU,SH,VU,aV],[[0,1],[0,1],()=>nK,()=>cK,()=>LG,()=>RG,()=>zG,()=>pK,[0,4]],2],iK=[3,O,sB,0,[IU],[()=>$G]],aK=[3,O,lB,0,[w,vH,LU,cU,QV,FV,aV],[[0,1],[0,1],0,0,()=>vG,2,[0,4]],2],oK=[3,O,uB,0,[IU],[()=>$G]],sK=[3,O,dB,0,[AU,BU],[0,0]],cK=[3,O,hB,0,[IB,sU],[()=>MK,()=>MK]],lK=[3,O,fB,0,[SU],[0]],uK=[3,O,pB,0,[SU],[0]],dK=[3,O,gB,0,[bU,gU,DV,OV,IH],[64,64,2,2,64]],fK=[3,O,_B,0,[bU,gU,oV,RU,DV,OV,IH],[64,64,0,0,2,2,64]],pK=[3,O,vB,0,[jV,cH,nH,BH,aU],[2,1,1,0,2]],mK=[3,O,yB,0,[jV],[2]],hK=[3,O,bB,0,[jV],[2]],gK=[1,O,kL,0,()=>uW],_K=[1,O,SL,0,()=>hW],vK=[1,O,OL,0,()=>vW],yK=[1,O,FL,0,()=>mW],bK=[1,O,PL,0,()=>yW],xK=[1,O,pL,0,()=>SW],SK=[1,O,ML,0,()=>CW],CK=[1,O,$L,0,()=>OW],wK=[1,O,uR,0,()=>kW],TK=[1,O,HR,0,()=>fG],EK=[1,O,WR,0,()=>pG],DK=[1,O,qR,0,()=>hG],OK=[1,O,yz,0,()=>MG],kK=[1,O,kz,0,()=>BG],AK=[1,O,Uz,0,()=>JG],jK=[1,O,Kz,0,()=>YG],MK=[1,O,DU,0,()=>QG],NK=[1,O,mB,0,()=>sK],PK=[9,O,gL,{[E]:[`POST`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>bW,()=>xW],FK=[9,O,BL,{[E]:[`POST`,`/clusters/{clusterName}/access-entries`,200]},()=>LW,()=>RW],IK=[9,O,RL,{[E]:[`POST`,`/clusters/{clusterName}/addons`,200]},()=>zW,()=>BW],LK=[9,O,XL,{[E]:[`POST`,`/clusters`,200]},()=>VW,()=>HW],RK=[9,O,tR,{[E]:[`POST`,`/clusters/{clusterName}/node-groups`,200]},()=>UW,()=>WW],zK=[9,O,fR,{[E]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>GW,()=>KW],BK=[9,O,dR,{[E]:[`DELETE`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>qW,()=>JW],VK=[9,O,NR,{[E]:[`DELETE`,`/clusters/{name}`,200]},()=>YW,()=>XW],HK=[9,O,FR,{[E]:[`DELETE`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>ZW,()=>QW],UK=[9,O,_R,{[E]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>$W,()=>eG],WK=[9,O,OR,{[E]:[`GET`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>tG,()=>nG],GK=[9,O,TR,{[E]:[`GET`,`/addons/supported-versions`,200]},()=>rG,()=>iG],KK=[9,O,PR,{[E]:[`GET`,`/clusters/{name}`,200]},()=>aG,()=>oG],qK=[9,O,BR,{[E]:[`GET`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>sG,()=>cG],JK=[9,O,vR,{[E]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}`,200]},()=>lG,()=>uG],YK=[9,O,iz,{[E]:[`GET`,`/clusters/{clusterName}/access-entries`,200]},()=>yG,()=>bG],XK=[9,O,sz,{[E]:[`GET`,`/access-policies`,200]},()=>xG,()=>SG],ZK=[9,O,ez,{[E]:[`GET`,`/clusters/{clusterName}/addons`,200]},()=>CG,()=>wG],QK=[9,O,tz,{[E]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>TG,()=>EG],$K=[9,O,mz,{[E]:[`GET`,`/clusters`,200]},()=>DG,()=>OG],eq=[9,O,hz,{[E]:[`GET`,`/clusters/{clusterName}/node-groups`,200]},()=>kG,()=>AG],tq=[9,O,eB,{[E]:[`POST`,`/clusters/{clusterName}/addons/{addonName}/update`,200]},()=>eK,()=>tK],nq=[9,O,aB,{[E]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-config`,200]},()=>rK,()=>iK],rq=[9,O,cB,{[E]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-version`,200]},()=>aK,()=>oK],iq=e=>({apiVersion:`2017-11-01`,base64Decoder:e?.base64Decoder??xt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??JI,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??TI,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Ze}],logger:e?.logger??new ut,protocol:e?.protocol??pee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.eks`,errorTypeRegistries:sW,version:`2017-11-01`,serviceTarget:`AWSWesleyFrontend`},serviceId:e?.serviceId??`EKS`,urlParser:e?.urlParser??Ce,utf8Decoder:e?.utf8Decoder??bt,utf8Encoder:e?.utf8Encoder??St}),aq=e=>{let t=De(e),n=()=>t().then(pt),r=iq(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Mt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??xe({serviceId:r.serviceId,clientVersion:kI.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ae(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},oq=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},sq=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),cq=(e,t)=>{let n=Object.assign(Se(e),ht(e),Ge(e),oq(e));return t.forEach(e=>e.configure(n)),Object.assign(e,we(n),He(n),ct(n),sq(n))},lq=class extends $e{config;constructor(...[e]){let t=aq(e||{});super(t),this.initConfig=t;let n=cq(EI(Ke(it(pe(Fe(gt(DI(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(Me(this.config,{httpAuthSchemeParametersProvider:CI,identityProviderConfigProvider:async e=>new oe({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(Ne(this.config))}destroy(){super.destroy()}},uq=async(e,t,n)=>({operation:ve(t).operation,region:await Te(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function dq(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var fq=e=>{let t=[];switch(e.operation){default:t.push(dq(e))}return t},pq=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:Te(e.authSchemePreference??[])})},mq=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),hq={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},gq={name:`@aws-sdk/client-elastic-load-balancing-v2`,description:`AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native`,version:`3.1063.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-elastic-load-balancing-v2`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo elastic-load-balancing-v2`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.18`,"@aws-sdk/credential-provider-node":`^3.972.52`,"@aws-sdk/types":`^3.973.11`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elastic-load-balancing-v2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-elastic-load-balancing-v2`}},_q=`ref`,vq=-1,yq=!0,bq=`isSet`,xq=`PartitionResult`,Sq=`booleanEquals`,Cq=`getAttr`,wq={[_q]:`Endpoint`},Tq={[_q]:xq},Eq={},Dq=[{[_q]:`Region`}],Oq={conditions:[[bq,[wq]],[bq,Dq],[`aws.partition`,Dq,xq],[Sq,[{[_q]:`UseFIPS`},yq]],[Sq,[{[_q]:`UseDualStack`},yq]],[Sq,[{fn:Cq,argv:[Tq,`supportsDualStack`]},yq]],[Sq,[{fn:Cq,argv:[Tq,`supportsFIPS`]},yq]],[`stringEquals`,[{fn:Cq,argv:[Tq,`name`]},`aws-us-gov`]]],results:[[vq],[vq,`Invalid Configuration: FIPS and custom endpoint are not supported`],[vq,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[wq,Eq],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Eq],[vq,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,Eq],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,Eq],[vq,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,Eq],[vq,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,Eq],[vq,`Invalid Configuration: Missing Region`]]},kq=2,Aq=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),jq=Je.from(Aq,kq,Oq.conditions,Oq.results),Mq=new Ye({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Nq=(e,t={})=>Mq.get(e,()=>rt(jq,{endpointParams:e,logger:t.logger}));tt.aws=_e;var k=class e extends Ae{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Pq=class e extends k{name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Fq=class e extends k{name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Iq=class e extends k{name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Lq=class e extends k{name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Rq=class e extends k{name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zq=class e extends k{name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Bq=class e extends k{name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Vq=class e extends k{name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Hq=class e extends k{name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Uq=class e extends k{name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Wq=class e extends k{name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Gq=class e extends k{name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Kq=class e extends k{name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qq=class e extends k{name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Jq=class e extends k{name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Yq=class e extends k{name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Xq=class e extends k{name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Zq=class e extends k{name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Qq=class e extends k{name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$q=class e extends k{name=`DuplicateListenerException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateListenerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},eJ=class e extends k{name=`IncompatibleProtocolsException`;$fault=`client`;Message;constructor(t){super({name:`IncompatibleProtocolsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tJ=class e extends k{name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},nJ=class e extends k{name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rJ=class e extends k{name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iJ=class e extends k{name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},aJ=class e extends k{name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},oJ=class e extends k{name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sJ=class e extends k{name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cJ=class e extends k{name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lJ=class e extends k{name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},uJ=class e extends k{name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dJ=class e extends k{name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},fJ=class e extends k{name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},pJ=class e extends k{name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},mJ=class e extends k{name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},hJ=class e extends k{name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gJ=class e extends k{name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_J=class e extends k{name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vJ=class e extends k{name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},yJ=class e extends k{name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},bJ=class e extends k{name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},xJ=class e extends k{name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},SJ=class e extends k{name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},CJ=class e extends k{name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wJ=class e extends k{name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},TJ=class e extends k{name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},EJ=class e extends k{name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},DJ=class e extends k{name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},OJ=class e extends k{name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},kJ=class e extends k{name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},AJ=class e extends k{name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},jJ=class e extends k{name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},MJ=class e extends k{name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},NJ=class e extends k{name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},PJ=class e extends k{name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},FJ=class e extends k{name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},IJ=`Action`,LJ=`AdditionalClaims`,RJ=`AuthenticateCognitoActionConfig`,zJ=`AuthenticateCognitoConfig`,BJ=`AnomalyDetection`,VJ=`AuthorizationEndpoint`,HJ=`AllocationId`,UJ=`AllocationIdNotFoundException`,WJ=`ALPNPolicyNotSupportedException`,GJ=`AdministrativeOverride`,KJ=`AuthenticateOidcActionConfig`,qJ=`AuthenticateOidcConfig`,JJ=`AlpnPolicy`,YJ=`AuthenticationRequestExtraParams`,XJ=`AddTags`,ZJ=`AddTagsInput`,QJ=`AddTagsOutput`,$J=`AdvertiseTrustStoreCaNames`,eY=`AvailabilityZone`,tY=`AvailabilityZoneNotSupportedException`,nY=`AvailabilityZones`,rY=`Actions`,iY=`Attributes`,aY=`Certificates`,oY=`CertificateArn`,sY=`CaCertificatesBundleNotFoundException`,cY=`CapacityDecreaseRequestsLimitExceededException`,lY=`CanonicalHostedZoneId`,uY=`ClientId`,dY=`CertificateList`,fY=`CreateLoadBalancer`,pY=`CreateLoadBalancerInput`,mY=`CreateLoadBalancerOutput`,hY=`CreateListenerInput`,gY=`CreateListenerOutput`,_Y=`CreateListener`,vY=`CertificateNotFoundException`,yY=`CustomerOwnedIpv4Pool`,bY=`CreateRule`,xY=`CreateRuleInput`,SY=`CreateRuleOutput`,CY=`CapacityReservationPendingException`,wY=`ClientSecret`,TY=`ContentType`,EY=`CreateTargetGroup`,DY=`CreateTargetGroupInput`,OY=`CreateTargetGroupOutput`,kY=`CreatedTime`,AY=`CapacityUnitsLimitExceededException`,jY=`Certificate`,MY=`Cipher`,NY=`Ciphers`,PY=`Code`,FY=`Conditions`,IY=`Description`,LY=`DefaultActions`,RY=`DeleteAssociationSameAccountException`,zY=`DeleteListener`,BY=`DeleteLoadBalancer`,VY=`DescribeLoadBalancerAttributes`,HY=`DescribeLoadBalancerAttributesInput`,UY=`DescribeLoadBalancerAttributesOutput`,WY=`DeleteLoadBalancerInput`,GY=`DescribeLoadBalancersInput`,KY=`DuplicateLoadBalancerNameException`,qY=`DeleteLoadBalancerOutput`,JY=`DescribeLoadBalancersOutput`,YY=`DescribeLoadBalancers`,XY=`DuplicateListenerException`,ZY=`DeleteListenerInput`,QY=`DescribeListenersInput`,$Y=`DeleteListenerOutput`,eX=`DescribeListenersOutput`,tX=`DescribeListeners`,nX=`DNSName`,rX=`DeleteRule`,iX=`DeleteRuleInput`,aX=`DescribeRulesInput`,oX=`DeleteRuleOutput`,sX=`DescribeRulesOutput`,cX=`DescribeRules`,lX=`DurationSeconds`,uX=`DescribeSSLPolicies`,dX=`DescribeSSLPoliciesInput`,fX=`DescribeSSLPoliciesOutput`,pX=`DeregisterTargets`,mX=`DeleteTargetGroup`,hX=`DescribeTargetGroupAttributes`,gX=`DescribeTargetGroupAttributesInput`,_X=`DescribeTargetGroupAttributesOutput`,vX=`DeleteTargetGroupInput`,yX=`DescribeTargetGroupsInput`,bX=`DuplicateTargetGroupNameException`,xX=`DeleteTargetGroupOutput`,SX=`DescribeTargetGroupsOutput`,CX=`DescribeTargetGroups`,wX=`DescribeTargetHealth`,TX=`DescribeTargetHealthInput`,EX=`DescribeTargetHealthOutput`,DX=`DeregisterTargetsInput`,OX=`DescribeTagsInput`,kX=`DuplicateTagKeysException`,AX=`DeregisterTargetsOutput`,jX=`DescribeTagsOutput`,MX=`DuplicateTrustStoreNameException`,NX=`DescribeTags`,PX=`Enabled`,FX=`EnablePrefixForIpv6SourceNat`,IX=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,LX=`Format`,RX=`ForwardActionConfig`,zX=`ForwardConfig`,BX=`FixedResponseActionConfig`,VX=`FixedResponseConfig`,HX=`Field`,UX=`GrpcCode`,WX=`Host`,GX=`HttpCode`,KX=`HealthCheckEnabled`,qX=`HealthCheckIntervalSeconds`,JX=`HealthCheckProtocol`,YX=`HealthCheckPort`,XX=`HealthCheckPath`,ZX=`HealthCheckTimeoutSeconds`,QX=`HostHeaderConfig`,$X=`HostHeaderConditionConfig`,eZ=`HttpHeaderConditionConfig`,tZ=`HttpHeaderConfig`,nZ=`HttpHeaderName`,rZ=`HostHeaderRewriteConfig`,iZ=`HttpRequestMethodConfig`,aZ=`HttpRequestMethodConditionConfig`,oZ=`HealthyThresholdCount`,sZ=`HealthUnavailableException`,cZ=`Issuer`,lZ=`IpAddress`,uZ=`IpAddressType`,dZ=`InvalidCaCertificatesBundleException`,fZ=`IgnoreClientCertificateExpiry`,pZ=`InsufficientCapacityException`,mZ=`InvalidConfigurationRequestException`,hZ=`IsDefault`,gZ=`Ipv4IpamPoolId`,_Z=`InvalidLoadBalancerActionException`,vZ=`IpamPools`,yZ=`IPv6Address`,bZ=`IncompatibleProtocolsException`,xZ=`InvalidRevocationContentException`,SZ=`InvalidSchemeException`,CZ=`InvalidSubnetException`,wZ=`InvalidSecurityGroupException`,TZ=`InvalidTargetException`,EZ=`Id`,DZ=`Include`,OZ=`JwksEndpoint`,kZ=`JwtValidationActionAdditionalClaim`,AZ=`JwtValidationActionAdditionalClaims`,jZ=`JwtValidationActionConfig`,MZ=`JwtValidationConfig`,NZ=`Key`,PZ=`Listeners`,FZ=`ListenerArn`,IZ=`ListenerArns`,LZ=`LoadBalancers`,RZ=`LoadBalancerAddresses`,zZ=`LoadBalancerArn`,BZ=`LoadBalancerArns`,VZ=`LoadBalancerAddress`,HZ=`LoadBalancerAttribute`,UZ=`LoadBalancerAttributes`,WZ=`LoadBalancerName`,GZ=`LoadBalancerNotFoundException`,KZ=`LoadBalancerState`,qZ=`LoadBalancerType`,JZ=`LoadBalancer`,YZ=`ListenerNotFoundException`,XZ=`Listener`,A=`Message`,ZZ=`MutualAuthentication`,QZ=`MutualAuthenticationAttributes`,$Z=`MessageBody`,eQ=`MitigationInEffect`,tQ=`ModifyListener`,nQ=`ModifyLoadBalancerAttributes`,rQ=`ModifyLoadBalancerAttributesInput`,iQ=`ModifyLoadBalancerAttributesOutput`,aQ=`ModifyListenerInput`,oQ=`ModifyListenerOutput`,sQ=`ModifyRule`,cQ=`ModifyRuleInput`,lQ=`ModifyRuleOutput`,uQ=`ModifyTargetGroupAttributes`,dQ=`ModifyTargetGroupAttributesInput`,fQ=`ModifyTargetGroupAttributesOutput`,pQ=`Matcher`,mQ=`Marker`,hQ=`Mode`,gQ=`Name`,_Q=`NextMarker`,vQ=`Names`,yQ=`Order`,bQ=`OutpostId`,xQ=`OperationNotPermittedException`,SQ=`OnUnauthenticatedRequest`,CQ=`Priority`,wQ=`PrivateIPv4Address`,TQ=`PriorityInUseException`,EQ=`PathPatternConfig`,DQ=`PathPatternConditionConfig`,OQ=`PriorRequestNotCompleteException`,kQ=`PageSize`,AQ=`ProtocolVersion`,jQ=`Path`,MQ=`Port`,NQ=`Protocol`,PQ=`Query`,FQ=`QueryStringConfig`,IQ=`QueryStringConditionConfig`,LQ=`QuicServerId`,RQ=`QueryStringKeyValuePair`,zQ=`QueryStringKeyValuePairList`,BQ=`Reason`,VQ=`ResourceArns`,HQ=`RedirectActionConfig`,UQ=`ResourceArn`,WQ=`RuleArn`,GQ=`RuleArns`,KQ=`RedirectConfig`,qQ=`RewriteConfigList`,JQ=`RuleConditionList`,YQ=`RevocationContentNotFoundException`,XQ=`RewriteConfig`,ZQ=`RuleCondition`,QQ=`RevocationIdNotFoundException`,$Q=`ResourceInUseException`,e$=`ResourceNotFoundException`,t$=`RuleNotFoundException`,n$=`RegisterTargetsInput`,r$=`RemoveTagsInput`,i$=`RuleTransformList`,a$=`RegisterTargetsOutput`,o$=`RemoveTagsOutput`,s$=`ResetTransforms`,c$=`RegisterTargets`,l$=`RemoveTags`,u$=`RuleTransform`,d$=`RegexValues`,f$=`Result`,p$=`Regex`,m$=`Replace`,h$=`Rewrites`,g$=`Rules`,_$=`Rule`,v$=`State`,y$=`StatusCode`,b$=`SessionCookieName`,x$=`SecurityGroups`,S$=`SecurityGroupIds`,C$=`SubnetId`,w$=`SourceIpConfig`,T$=`SourceIpConditionConfig`,E$=`SupportedLoadBalancerTypes`,D$=`SubnetMappings`,O$=`SubnetMapping`,k$=`SubnetNotFoundException`,A$=`SourceNatIpv6Prefixes`,j$=`SourceNatIpv6Prefix`,M$=`SslPolicy`,N$=`SslPolicies`,P$=`SslProtocols`,F$=`SetSubnets`,I$=`SetSecurityGroups`,L$=`SetSecurityGroupsInput`,R$=`SetSecurityGroupsOutput`,z$=`SetSubnetsInput`,B$=`SSLPolicyNotFoundException`,V$=`SetSubnetsOutput`,H$=`SessionTimeout`,U$=`Scope`,W$=`Scheme`,G$=`Subnets`,K$=`Type`,q$=`TargetControlPort`,J$=`TagDescriptions`,Y$=`TagDescription`,X$=`TargetDescription`,Z$=`TargetDescriptions`,Q$=`TokenEndpoint`,$$=`TargetGroups`,e1=`TargetGroupArn`,t1=`TargetGroupAssociationLimitException`,n1=`TargetGroupArns`,r1=`TargetGroupAttribute`,i1=`TargetGroupAttributes`,a1=`TargetGroupList`,o1=`TargetGroupName`,s1=`TargetGroupNotFoundException`,c1=`TargetGroupStickinessConfig`,l1=`TargetGroupTuple`,u1=`TargetGroup`,d1=`TargetHealth`,f1=`TargetHealthDescriptions`,p1=`TargetHealthDescription`,m1=`TagKeys`,h1=`TagList`,g1=`TooManyActionsException`,_1=`TooManyCertificatesException`,v1=`TooManyLoadBalancersException`,y1=`TooManyListenersException`,b1=`TooManyRulesException`,x1=`TooManyRegistrationsForTargetIdException`,S1=`TooManyTagsException`,C1=`TooManyTargetsException`,w1=`TooManyTargetGroupsException`,T1=`TooManyTrustStoresException`,E1=`TooManyTrustStoreRevocationEntriesException`,D1=`TooManyUniqueTargetGroupsPerLoadBalancerException`,O1=`TrustStoreArn`,k1=`TrustStoreAssociationNotFoundException`,A1=`TrustStoreAssociationStatus`,j1=`TrustStoreInUseException`,M1=`TrustStoreNotFoundException`,N1=`TrustStoreNotReadyException`,P1=`TargetType`,F1=`Tags`,I1=`Tag`,L1=`Targets`,R1=`Target`,z1=`Transforms`,B1=`UseExistingClientSecret`,V1=`UserInfoEndpoint`,H1=`UserPoolArn`,U1=`UserPoolClientId`,W1=`UserPoolDomain`,G1=`UnsupportedProtocolException`,K1=`UrlRewriteConfig`,q1=`UnhealthyThresholdCount`,J1=`Values`,Y1=`VpcId`,X1=`Value`,Z1=`Weight`,Q1=`ZoneName`,j=`awsQueryError`,M=`client`,N=`error`,P=`httpError`,$1=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,e0=`server`,F=`com.amazonaws.elasticloadbalancingv2`,t0=dt.for($1),n0=[-3,$1,`ElasticLoadBalancingV2ServiceException`,0,[],[]];t0.registerError(n0,k);var I=dt.for(F),r0=[-3,F,UJ,{[j]:[`AllocationIdNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(r0,Kq);var i0=[-3,F,WJ,{[j]:[`ALPNPolicyNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(i0,qq);var a0=[-3,F,tY,{[j]:[`AvailabilityZoneNotSupported`,400],[N]:M,[P]:400},[A],[0]];I.registerError(a0,Jq);var o0=[-3,F,sY,{[j]:[`CaCertificatesBundleNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(o0,Yq);var s0=[-3,F,cY,{[j]:[`CapacityDecreaseRequestLimitExceeded`,400],[N]:M,[P]:400},[A],[0]];I.registerError(s0,Xq);var c0=[-3,F,CY,{[j]:[`CapacityReservationPending`,400],[N]:M,[P]:400},[A],[0]];I.registerError(c0,Zq);var l0=[-3,F,AY,{[j]:[`CapacityUnitsLimitExceeded`,400],[N]:M,[P]:400},[A],[0]];I.registerError(l0,Qq);var u0=[-3,F,vY,{[j]:[`CertificateNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(u0,Pq);var d0=[-3,F,RY,{[j]:[`DeleteAssociationSameAccount`,400],[N]:M,[P]:400},[A],[0]];I.registerError(d0,DJ);var f0=[-3,F,XY,{[j]:[`DuplicateListener`,400],[N]:M,[P]:400},[A],[0]];I.registerError(f0,$q);var p0=[-3,F,KY,{[j]:[`DuplicateLoadBalancerName`,400],[N]:M,[P]:400},[A],[0]];I.registerError(p0,fJ);var m0=[-3,F,kX,{[j]:[`DuplicateTagKeys`,400],[N]:M,[P]:400},[A],[0]];I.registerError(m0,Lq);var h0=[-3,F,bX,{[j]:[`DuplicateTargetGroupName`,400],[N]:M,[P]:400},[A],[0]];I.registerError(h0,CJ);var g0=[-3,F,MX,{[j]:[`DuplicateTrustStoreName`,400],[N]:M,[P]:400},[A],[0]];I.registerError(g0,wJ);var _0=[-3,F,sZ,{[j]:[`HealthUnavailable`,500],[N]:e0,[P]:500},[A],[0]];I.registerError(_0,jJ);var v0=[-3,F,bZ,{[j]:[`IncompatibleProtocols`,400],[N]:M,[P]:400},[A],[0]];I.registerError(v0,eJ);var y0=[-3,F,pZ,{[j]:[`InsufficientCapacity`,500],[N]:e0,[P]:500},[A],[0]];I.registerError(y0,PJ);var b0=[-3,F,dZ,{[j]:[`InvalidCaCertificatesBundle`,400],[N]:M,[P]:400},[A],[0]];I.registerError(b0,TJ);var x0=[-3,F,mZ,{[j]:[`InvalidConfigurationRequest`,400],[N]:M,[P]:400},[A],[0]];I.registerError(x0,tJ);var S0=[-3,F,_Z,{[j]:[`InvalidLoadBalancerAction`,400],[N]:M,[P]:400},[A],[0]];I.registerError(S0,nJ);var C0=[-3,F,xZ,{[j]:[`InvalidRevocationContent`,400],[N]:M,[P]:400},[A],[0]];I.registerError(C0,Uq);var w0=[-3,F,SZ,{[j]:[`InvalidScheme`,400],[N]:M,[P]:400},[A],[0]];I.registerError(w0,pJ);var T0=[-3,F,wZ,{[j]:[`InvalidSecurityGroup`,400],[N]:M,[P]:400},[A],[0]];I.registerError(T0,mJ);var E0=[-3,F,CZ,{[j]:[`InvalidSubnet`,400],[N]:M,[P]:400},[A],[0]];I.registerError(E0,hJ);var D0=[-3,F,TZ,{[j]:[`InvalidTarget`,400],[N]:M,[P]:400},[A],[0]];I.registerError(D0,AJ);var O0=[-3,F,YZ,{[j]:[`ListenerNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(O0,Fq);var k0=[-3,F,GZ,{[j]:[`LoadBalancerNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(k0,Rq);var A0=[-3,F,xQ,{[j]:[`OperationNotPermitted`,400],[N]:M,[P]:400},[A],[0]];I.registerError(A0,gJ);var j0=[-3,F,TQ,{[j]:[`PriorityInUse`,400],[N]:M,[P]:400},[A],[0]];I.registerError(j0,bJ);var M0=[-3,F,OQ,{[j]:[`PriorRequestNotComplete`,429],[N]:M,[P]:429},[A],[0]];I.registerError(M0,FJ);var N0=[-3,F,$Q,{[j]:[`ResourceInUse`,400],[N]:M,[P]:400},[A],[0]];I.registerError(N0,_J);var P0=[-3,F,e$,{[j]:[`ResourceNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(P0,NJ);var F0=[-3,F,YQ,{[j]:[`RevocationContentNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(F0,Wq);var I0=[-3,F,QQ,{[j]:[`RevocationIdNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(I0,MJ);var L0=[-3,F,t$,{[j]:[`RuleNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(L0,zq);var R0=[-3,F,B$,{[j]:[`SSLPolicyNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(R0,rJ);var z0=[-3,F,k$,{[j]:[`SubnetNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(z0,vJ);var B0=[-3,F,t1,{[j]:[`TargetGroupAssociationLimit`,400],[N]:M,[P]:400},[A],[0]];I.registerError(B0,iJ);var V0=[-3,F,s1,{[j]:[`TargetGroupNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(V0,Bq);var H0=[-3,F,g1,{[j]:[`TooManyActions`,400],[N]:M,[P]:400},[A],[0]];I.registerError(H0,aJ);var U0=[-3,F,_1,{[j]:[`TooManyCertificates`,400],[N]:M,[P]:400},[A],[0]];I.registerError(U0,Iq);var W0=[-3,F,y1,{[j]:[`TooManyListeners`,400],[N]:M,[P]:400},[A],[0]];I.registerError(W0,oJ);var G0=[-3,F,v1,{[j]:[`TooManyLoadBalancers`,400],[N]:M,[P]:400},[A],[0]];I.registerError(G0,yJ);var K0=[-3,F,x1,{[j]:[`TooManyRegistrationsForTargetId`,400],[N]:M,[P]:400},[A],[0]];I.registerError(K0,sJ);var q0=[-3,F,b1,{[j]:[`TooManyRules`,400],[N]:M,[P]:400},[A],[0]];I.registerError(q0,xJ);var J0=[-3,F,S1,{[j]:[`TooManyTags`,400],[N]:M,[P]:400},[A],[0]];I.registerError(J0,Vq);var Y0=[-3,F,w1,{[j]:[`TooManyTargetGroups`,400],[N]:M,[P]:400},[A],[0]];I.registerError(Y0,SJ);var X0=[-3,F,C1,{[j]:[`TooManyTargets`,400],[N]:M,[P]:400},[A],[0]];I.registerError(X0,cJ);var Z0=[-3,F,E1,{[j]:[`TooManyTrustStoreRevocationEntries`,400],[N]:M,[P]:400},[A],[0]];I.registerError(Z0,Gq);var Q0=[-3,F,T1,{[j]:[`TooManyTrustStores`,400],[N]:M,[P]:400},[A],[0]];I.registerError(Q0,EJ);var $0=[-3,F,D1,{[j]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[N]:M,[P]:400},[A],[0]];I.registerError($0,lJ);var e2=[-3,F,k1,{[j]:[`AssociationNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(e2,OJ);var t2=[-3,F,j1,{[j]:[`TrustStoreInUse`,400],[N]:M,[P]:400},[A],[0]];I.registerError(t2,kJ);var n2=[-3,F,M1,{[j]:[`TrustStoreNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(n2,Hq);var r2=[-3,F,N1,{[j]:[`TrustStoreNotReady`,400],[N]:M,[P]:400},[A],[0]];I.registerError(r2,uJ);var i2=[-3,F,G1,{[j]:[`UnsupportedProtocol`,400],[N]:M,[P]:400},[A],[0]];I.registerError(i2,dJ);var a2=[t0,I],o2=[3,F,IJ,0,[K$,e1,qJ,zJ,yQ,KQ,VX,zX,MZ],[0,0,()=>f2,()=>d2,1,()=>T4,()=>Q2,()=>$2,()=>o4],1],s2=[3,F,ZJ,0,[VQ,F1],[64,()=>n3],2],c2=[3,F,QJ,0,[],[]],l2=[3,F,GJ,0,[v$,BQ,IY],[0,0,0]],u2=[3,F,BJ,0,[f$,eQ],[0,0]],d2=[3,F,RJ,0,[H1,U1,W1,b$,U$,H$,YJ,SQ],[0,0,0,0,0,1,128,0],3],f2=[3,F,KJ,0,[cZ,VJ,Q$,V1,uY,wY,b$,U$,H$,YJ,SQ,B1],[0,0,0,0,0,0,0,0,1,128,0,2],5],p2=[3,F,eY,0,[Q1,C$,bQ,RZ,A$],[0,0,0,()=>Foe,64]],m2=[3,F,jY,0,[oY,hZ],[0,2]],h2=[3,F,MY,0,[gQ,CQ],[0,1]],g2=[3,F,hY,0,[zZ,LY,NQ,MQ,M$,aY,JJ,F1,ZZ],[0,()=>G4,0,1,0,()=>q4,64,()=>n3,()=>x4],2],_2=[3,F,gY,0,[PZ],[()=>J4]],v2=[3,F,pY,0,[gQ,G$,D$,x$,W$,F1,K$,uZ,yY,FX,vZ],[0,64,()=>t3,64,0,()=>n3,0,0,0,0,()=>i4],1],y2=[3,F,mY,0,[LZ],[()=>X4]],b2=[3,F,xY,0,[FZ,FY,CQ,rY,F1,z1],[0,()=>Q4,1,()=>G4,()=>n3,()=>e3],4],x2=[3,F,SY,0,[g$],[()=>$4]],S2=[3,F,DY,0,[gQ,NQ,AQ,MQ,Y1,JX,YX,KX,XX,qX,ZX,oZ,q1,pQ,P1,F1,uZ,q$],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>f4,0,()=>n3,0,1],1],C2=[3,F,OY,0,[$$],[()=>a3]],w2=[3,F,ZY,0,[FZ],[0],1],T2=[3,F,$Y,0,[],[]],E2=[3,F,WY,0,[zZ],[0],1],D2=[3,F,qY,0,[],[]],O2=[3,F,iX,0,[WQ],[0],1],k2=[3,F,oX,0,[],[]],A2=[3,F,vX,0,[e1],[0],1],j2=[3,F,xX,0,[],[]],M2=[3,F,DX,0,[e1,L1],[0,()=>r3],2],N2=[3,F,AX,0,[],[]],P2=[3,F,QY,0,[zZ,IZ,mQ,kQ],[0,64,0,1]],F2=[3,F,eX,0,[PZ,_Q],[()=>J4,0]],I2=[3,F,HY,0,[zZ],[0],1],L2=[3,F,UY,0,[iY],[()=>Y4]],R2=[3,F,GY,0,[BZ,vQ,mQ,kQ],[64,64,0,1]],z2=[3,F,JY,0,[LZ,_Q],[()=>X4,0]],B2=[3,F,aX,0,[FZ,GQ,mQ,kQ],[0,64,0,1]],V2=[3,F,sX,0,[g$,_Q],[()=>$4,0]],H2=[3,F,dX,0,[vQ,mQ,kQ,qZ],[64,0,1,0]],U2=[3,F,fX,0,[N$,_Q],[()=>Loe,0]],W2=[3,F,OX,0,[VQ],[64],1],G2=[3,F,jX,0,[J$],[()=>Roe]],K2=[3,F,gX,0,[e1],[0],1],q2=[3,F,_X,0,[iY],[()=>i3]],J2=[3,F,yX,0,[zZ,n1,vQ,mQ,kQ],[0,64,64,0,1]],Y2=[3,F,SX,0,[$$,_Q],[()=>a3,0]],X2=[3,F,TX,0,[e1,L1,DZ],[0,()=>r3,64],1],Z2=[3,F,EX,0,[f1],[()=>Boe]],Q2=[3,F,BX,0,[y$,$Z,TY],[0,0,0],1],$2=[3,F,RX,0,[$$,c1],[()=>zoe,()=>Ooe]],e4=[3,F,$X,0,[J1,d$],[64,64]],t4=[3,F,rZ,0,[h$],[()=>Z4]],n4=[3,F,eZ,0,[nZ,J1,d$],[0,64,64]],r4=[3,F,aZ,0,[J1],[64]],i4=[3,F,vZ,0,[gZ],[0]],a4=[3,F,kZ,0,[LX,gQ,J1],[0,0,64],3],o4=[3,F,jZ,0,[OZ,cZ,LJ],[0,0,()=>Poe],2],s4=[3,F,XZ,0,[FZ,zZ,MQ,NQ,aY,M$,LY,JJ,ZZ],[0,0,1,0,()=>q4,0,()=>G4,64,()=>x4]],c4=[3,F,JZ,0,[zZ,nX,lY,kY,WZ,W$,Y1,v$,K$,nY,x$,uZ,yY,IX,FX,vZ],[0,0,0,4,0,0,0,()=>d4,0,()=>K4,64,0,0,0,0,()=>i4]],l4=[3,F,VZ,0,[lZ,HJ,wQ,yZ],[0,0,0,0]],u4=[3,F,HZ,0,[NZ,X1],[0,0]],d4=[3,F,KZ,0,[PY,BQ],[0,0]],f4=[3,F,pQ,0,[GX,UX],[0,0]],p4=[3,F,aQ,0,[FZ,MQ,NQ,M$,aY,LY,JJ,ZZ],[0,1,0,0,()=>q4,()=>G4,64,()=>x4],1],m4=[3,F,oQ,0,[PZ],[()=>J4]],h4=[3,F,rQ,0,[zZ,iY],[0,()=>Y4],2],g4=[3,F,iQ,0,[iY],[()=>Y4]],_4=[3,F,cQ,0,[WQ,FY,rY,z1,s$],[0,()=>Q4,()=>G4,()=>e3,2],1],v4=[3,F,lQ,0,[g$],[()=>$4]],y4=[3,F,dQ,0,[e1,iY],[0,()=>i3],2],b4=[3,F,fQ,0,[iY],[()=>i3]],x4=[3,F,QZ,0,[hQ,O1,fZ,A1,$J],[0,0,2,0,0]],S4=[3,F,DQ,0,[J1,d$],[64,64]],C4=[3,F,IQ,0,[J1],[()=>Ioe]],w4=[3,F,RQ,0,[NZ,X1],[0,0]],T4=[3,F,HQ,0,[y$,NQ,MQ,WX,jQ,PQ],[0,0,0,0,0,0],1],E4=[3,F,n$,0,[e1,L1],[0,()=>r3],2],D4=[3,F,a$,0,[],[]],O4=[3,F,r$,0,[VQ,m1],[64,64],2],k4=[3,F,o$,0,[],[]],A4=[3,F,XQ,0,[p$,m$],[0,0],2],j4=[3,F,_$,0,[WQ,CQ,FY,rY,hZ,z1],[0,0,()=>Q4,()=>G4,2,()=>e3]],M4=[3,F,ZQ,0,[HX,J1,QX,EQ,tZ,FQ,iZ,w$,d$],[0,64,()=>e4,()=>S4,()=>n4,()=>C4,()=>r4,()=>R4,64]],N4=[3,F,u$,0,[K$,rZ,K1],[0,()=>t4,()=>Moe],1],P4=[3,F,L$,0,[zZ,x$,IX],[0,64,0],2],F4=[3,F,R$,0,[S$,IX],[64,0]],I4=[3,F,z$,0,[zZ,G$,D$,uZ,FX],[0,64,()=>t3,0,0],1],L4=[3,F,V$,0,[nY,uZ,FX],[()=>K4,0,0]],R4=[3,F,T$,0,[J1],[64]],z4=[3,F,M$,0,[P$,NY,gQ,E$],[64,()=>Noe,0,64]],B4=[3,F,O$,0,[C$,HJ,wQ,yZ,j$],[0,0,0,0,0]],V4=[3,F,I1,0,[NZ,X1],[0,0],1],H4=[3,F,Y$,0,[UQ,F1],[0,()=>n3]],U4=[3,F,X$,0,[EZ,MQ,eY,LQ],[0,1,0,0],1],W4=[3,F,u1,0,[e1,o1,NQ,MQ,Y1,JX,YX,KX,qX,ZX,oZ,q1,XX,pQ,BZ,P1,AQ,uZ,q$],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>f4,64,0,0,0,1]],Doe=[3,F,r1,0,[NZ,X1],[0,0]],Ooe=[3,F,c1,0,[PX,lX],[2,1]],koe=[3,F,l1,0,[e1,Z1],[0,1]],Aoe=[3,F,d1,0,[v$,BQ,IY],[0,0,0]],joe=[3,F,p1,0,[R1,YX,d1,BJ,GJ],[()=>U4,0,()=>Aoe,()=>u2,()=>l2]],Moe=[3,F,K1,0,[h$],[()=>Z4]],G4=[1,F,rY,0,()=>o2],K4=[1,F,nY,0,()=>p2],q4=[1,F,dY,0,()=>m2],Noe=[1,F,NY,0,()=>h2],Poe=[1,F,AZ,0,()=>a4],J4=[1,F,PZ,0,()=>s4],Foe=[1,F,RZ,0,()=>l4],Y4=[1,F,UZ,0,()=>u4],X4=[1,F,LZ,0,()=>c4],Ioe=[1,F,zQ,0,()=>w4],Z4=[1,F,qQ,0,()=>A4],Q4=[1,F,JQ,0,()=>M4],$4=[1,F,g$,0,()=>j4],e3=[1,F,i$,0,()=>N4],Loe=[1,F,N$,0,()=>z4],t3=[1,F,D$,0,()=>B4],Roe=[1,F,J$,0,()=>H4],n3=[1,F,h1,0,()=>V4],r3=[1,F,Z$,0,()=>U4],i3=[1,F,i1,0,()=>Doe],zoe=[1,F,a1,0,()=>koe],a3=[1,F,$$,0,()=>W4],Boe=[1,F,f1,0,()=>joe],Voe=[9,F,XJ,0,()=>s2,()=>c2],Hoe=[9,F,_Y,0,()=>g2,()=>_2],Uoe=[9,F,fY,0,()=>v2,()=>y2],Woe=[9,F,bY,0,()=>b2,()=>x2],Goe=[9,F,EY,0,()=>S2,()=>C2],Koe=[9,F,zY,0,()=>w2,()=>T2],qoe=[9,F,BY,0,()=>E2,()=>D2],Joe=[9,F,rX,0,()=>O2,()=>k2],Yoe=[9,F,mX,0,()=>A2,()=>j2],Xoe=[9,F,pX,0,()=>M2,()=>N2],Zoe=[9,F,tX,0,()=>P2,()=>F2],Qoe=[9,F,VY,0,()=>I2,()=>L2],$oe=[9,F,YY,0,()=>R2,()=>z2],ese=[9,F,cX,0,()=>B2,()=>V2],tse=[9,F,uX,0,()=>H2,()=>U2],nse=[9,F,NX,0,()=>W2,()=>G2],rse=[9,F,hX,0,()=>K2,()=>q2],ise=[9,F,CX,0,()=>J2,()=>Y2],ase=[9,F,wX,0,()=>X2,()=>Z2],ose=[9,F,tQ,0,()=>p4,()=>m4],sse=[9,F,nQ,0,()=>h4,()=>g4],cse=[9,F,sQ,0,()=>_4,()=>v4],lse=[9,F,uQ,0,()=>y4,()=>b4],use=[9,F,c$,0,()=>E4,()=>D4],dse=[9,F,l$,0,()=>O4,()=>k4],fse=[9,F,I$,0,()=>P4,()=>F4],pse=[9,F,F$,0,()=>I4,()=>L4],mse=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??xt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Nq,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??fq,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Ze}],logger:e?.logger??new ut,protocol:e?.protocol??qe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:a2,xmlNamespace:`http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/`,version:`2015-12-01`,serviceTarget:`ElasticLoadBalancing_v10`},serviceId:e?.serviceId??`Elastic Load Balancing v2`,urlParser:e?.urlParser??Ce,utf8Decoder:e?.utf8Decoder??bt,utf8Encoder:e?.utf8Encoder??St}),hse=e=>{let t=De(e),n=()=>t().then(pt),r=mse(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Mt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??xe({serviceId:r.serviceId,clientVersion:gq.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ae(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},gse=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},_se=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),vse=(e,t)=>{let n=Object.assign(Se(e),ht(e),Ge(e),gse(e));return t.forEach(e=>e.configure(n)),Object.assign(e,we(n),He(n),ct(n),_se(n))},yse=class extends $e{config;constructor(...[e]){let t=hse(e||{});super(t),this.initConfig=t;let n=vse(pq(Ke(it(pe(Fe(gt(mq(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(Me(this.config,{httpAuthSchemeParametersProvider:uq,identityProviderConfigProvider:async e=>new oe({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(Ne(this.config))}destroy(){super.destroy()}},bse=async(e,t,n)=>({operation:ve(t).operation,region:await Te(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function xse(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Sse=e=>{let t=[];switch(e.operation){default:t.push(xse(e))}return t},Cse=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:Te(e.authSchemePreference??[])})},wse=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),Tse={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Ese={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1063.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-iam`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo iam`,test:`yarn g:vitest run --passWithNoTests`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch --passWithNoTests`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.18`,"@aws-sdk/credential-provider-node":`^3.972.52`,"@aws-sdk/types":`^3.973.11`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iam`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-iam`}},o3=`ref`,s3=`authSchemes`,c3=`name`,l3=`signingRegion`,u3=-1,d3=!0,f3=`isSet`,p3=`PartitionResult`,m3=`booleanEquals`,h3=`stringEquals`,g3=`getAttr`,_3=`sigv4`,v3={[o3]:`Endpoint`},y3={fn:g3,argv:[{[o3]:p3},`name`]},b3={[o3]:p3},x3={[s3]:[{[c3]:_3,[l3]:`us-east-1`}]},S3={[s3]:[{[c3]:_3,[l3]:`cn-north-1`}]},C3={[s3]:[{[c3]:_3,[l3]:`us-gov-west-1`}]},w3={[s3]:[{[c3]:_3,[l3]:`us-iso-east-1`}]},T3={[s3]:[{[c3]:_3,[l3]:`us-isob-east-1`}]},E3={[s3]:[{[c3]:_3,[l3]:`{PartitionResult#implicitGlobalRegion}`}]},D3=[{[o3]:`Region`}],O3={conditions:[[f3,[v3]],[f3,D3],[`aws.partition`,D3,p3],[m3,[{[o3]:`UseFIPS`},d3]],[m3,[{[o3]:`UseDualStack`},d3]],[h3,[y3,`aws`]],[h3,[y3,`aws-cn`]],[h3,[y3,`aws-us-gov`]],[m3,[{fn:g3,argv:[b3,`supportsDualStack`]},d3]],[h3,[y3,`aws-iso`]],[h3,[y3,`aws-iso-b`]],[m3,[{fn:g3,argv:[b3,`supportsFIPS`]},d3]],[h3,[y3,`aws-iso-e`]],[h3,[y3,`aws-iso-f`]],[h3,[y3,`aws-eusc`]]],results:[[u3],[u3,`Invalid Configuration: FIPS and custom endpoint are not supported`],[u3,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[v3,{}],[`https://iam.global.api.aws`,x3],[`https://iam-fips.global.api.aws`,x3],[`https://iam.global.api.amazonwebservices.com.cn`,S3],[`https://iam.cn-north-1.amazonaws.com.cn`,S3],[`https://iam.us-gov.api.aws`,C3],[`https://iam.us-gov.amazonaws.com`,C3],[`https://iam.us-iso-east-1.c2s.ic.gov`,w3],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,w3],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,T3],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,T3],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[s3]:[{[c3]:_3,[l3]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[s3]:[{[c3]:_3,[l3]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[s3]:[{[c3]:_3,[l3]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,E3],[u3,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,E3],[u3,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,E3],[u3,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,E3],[u3,`Invalid Configuration: Missing Region`]]},Dse=2,Ose=new Int32Array([-1,1,-1,0,27,3,1,4,100000024,2,5,100000024,3,18,6,4,14,7,6,100000007,8,7,100000009,9,9,100000010,10,10,100000012,11,12,100000014,12,13,100000015,13,14,100000016,100000023,5,100000004,15,6,100000006,16,7,100000008,17,8,100000021,100000022,4,23,19,7,100000009,20,9,100000011,21,10,100000013,22,11,100000019,100000020,5,100000005,24,7,100000008,25,8,26,100000018,11,100000017,100000018,3,100000001,28,4,100000002,100000003]),kse=Je.from(Ose,Dse,O3.conditions,O3.results),Ase=new Ye({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),jse=(e,t={})=>Ase.get(e,()=>rt(kse,{endpointParams:e,logger:t.logger}));tt.aws=_e;var L=class e extends Ae{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Mse=class e extends L{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Nse=class e extends L{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Pse=class e extends L{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},Fse=class e extends L{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Ise=class e extends L{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Lse=class e extends L{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Rse=class e extends L{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zse=class e extends L{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bse=class e extends L{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Vse=class e extends L{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Hse=class e extends L{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Use=class e extends L{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Wse=class e extends L{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Gse=class e extends L{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Kse=class e extends L{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qse=class e extends L{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Jse=class e extends L{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Yse=class e extends L{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Xse=class e extends L{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Zse=class e extends L{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Qse=class e extends L{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$se=class e extends L{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ece=class e extends L{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tce=class e extends L{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nce=class e extends L{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rce=class e extends L{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ice=class e extends L{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ace=class e extends L{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oce=class e extends L{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},sce=class e extends L{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cce=class e extends L{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lce=class e extends L{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uce=class e extends L{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dce=class e extends L{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fce=class e extends L{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},k3=`Arn`,pce=`AttachmentCount`,A3=`AccessKey`,j3=`AccessKeyId`,M3=`AccessKeyMetadata`,mce=`AccountNotManagementOrDelegatedAdministratorException`,hce=`AttachedPolicy`,gce=`AttachedPermissionsBoundary`,N3=`AttachedPolicies`,_ce=`AttachRolePolicy`,P3=`AssumeRolePolicyDocument`,vce=`AttachRolePolicyRequest`,yce=`AddRoleToInstanceProfile`,bce=`AddRoleToInstanceProfileRequest`,xce=`AttachUserPolicy`,Sce=`AttachUserPolicyRequest`,Cce=`CreateAccessKey`,wce=`CreateAccessKeyRequest`,Tce=`CreateAccessKeyResponse`,F3=`CreateDate`,Ece=`CallerIsNotManagementAccountException`,Dce=`CreateInstanceProfile`,Oce=`CreateInstanceProfileRequest`,kce=`CreateInstanceProfileResponse`,Ace=`ConcurrentModificationException`,jce=`CreatePolicyRequest`,Mce=`CreatePolicyResponse`,Nce=`CreatePolicy`,Pce=`CreateRole`,Fce=`CredentialReportExpiredException`,Ice=`CredentialReportNotPresentException`,Lce=`CredentialReportNotReadyException`,Rce=`CreateRoleRequest`,zce=`CreateRoleResponse`,Bce=`CreateUser`,Vce=`CreateUserRequest`,Hce=`CreateUserResponse`,I3=`Description`,Uce=`DeleteAccessKey`,Wce=`DeleteAccessKeyRequest`,Gce=`DeleteConflictException`,Kce=`DuplicateCertificateException`,qce=`DeleteInstanceProfile`,Jce=`DeleteInstanceProfileRequest`,Yce=`DeletePolicyRequest`,Xce=`DeletePolicy`,Zce=`DetachRolePolicyRequest`,Qce=`DetachRolePolicy`,$ce=`DeleteRoleRequest`,ele=`DeleteRole`,tle=`DuplicateSSHPublicKeyException`,nle=`DeleteUser`,rle=`DetachUserPolicyRequest`,ile=`DetachUserPolicy`,ale=`DeleteUserRequest`,ole=`DefaultVersionId`,sle=`Document`,cle=`EntityAlreadyExistsException`,lle=`EntityTemporarilyUnmodifiableException`,ule=`FeatureDisabledException`,dle=`FeatureEnabledException`,fle=`GetInstanceProfile`,ple=`GetInstanceProfileRequest`,mle=`GetInstanceProfileResponse`,hle=`GetPolicy`,gle=`GetPolicyRequest`,_le=`GetPolicyResponse`,vle=`GetPolicyVersion`,yle=`GetPolicyVersionRequest`,ble=`GetPolicyVersionResponse`,xle=`GetRole`,Sle=`GetRoleRequest`,Cle=`GetRoleResponse`,wle=`GetUser`,Tle=`GetUserRequest`,Ele=`GetUserResponse`,Dle=`IsAttachable`,Ole=`InvalidAuthenticationCodeException`,kle=`InvalidCertificateException`,Ale=`IsDefaultVersion`,jle=`InvalidInputException`,L3=`InstanceProfile`,Mle=`InstanceProfileId`,Nle=`InvalidPublicKeyException`,R3=`InstanceProfileName`,z3=`InstanceProfiles`,B3=`IsTruncated`,Ple=`InvalidUserTypeException`,Fle=`Key`,Ile=`KeyPairMismatchException`,Lle=`ListAccessKeys`,Rle=`ListAccessKeysRequest`,zle=`ListAccessKeysResponse`,Ble=`ListAttachedRolePolicies`,Vle=`ListAttachedRolePoliciesRequest`,Hle=`ListAttachedRolePoliciesResponse`,Ule=`ListAttachedUserPolicies`,Wle=`ListAttachedUserPoliciesRequest`,Gle=`ListAttachedUserPoliciesResponse`,Kle=`LimitExceededException`,qle=`ListInstanceProfiles`,Jle=`ListInstanceProfilesForRole`,Yle=`ListInstanceProfilesForRoleRequest`,Xle=`ListInstanceProfilesForRoleResponse`,Zle=`ListInstanceProfilesRequest`,Qle=`ListInstanceProfilesResponse`,$le=`ListPoliciesRequest`,eue=`ListPoliciesResponse`,tue=`ListPolicies`,nue=`ListRoles`,rue=`ListRolesRequest`,iue=`ListRolesResponse`,aue=`ListUsers`,oue=`LastUsedDate`,sue=`ListUsersRequest`,cue=`ListUsersResponse`,V3=`Message`,lue=`MalformedCertificateException`,H3=`MaxItems`,uue=`MalformedPolicyDocumentException`,U3=`MaxSessionDuration`,W3=`Marker`,due=`NoSuchEntityException`,fue=`OnlyAttached`,pue=`OpenIdIdpCommunicationErrorException`,mue=`OrganizationNotFoundException`,hue=`OrganizationNotInAllFeaturesModeException`,G3=`PolicyArn`,K3=`PermissionsBoundary`,gue=`PermissionsBoundaryArn`,_ue=`PermissionsBoundaryType`,vue=`PermissionsBoundaryUsageCount`,yue=`PolicyDocument`,bue=`PolicyEvaluationException`,xue=`PolicyId`,Sue=`PasswordLastUsed`,q3=`PolicyName`,Cue=`PolicyNotAttachableException`,wue=`PasswordPolicyViolationException`,J3=`PathPrefix`,Tue=`PolicyUsageFilter`,Y3=`PolicyVersion`,X3=`Path`,Z3=`Policy`,Eue=`Policies`,Due=`Region`,Oue=`ReportGenerationLimitExceededException`,kue=`RoleId`,Q3=`RoleLastUsed`,$3=`RoleName`,Aue=`RemoveRoleFromInstanceProfile`,jue=`RemoveRoleFromInstanceProfileRequest`,e6=`Role`,t6=`Roles`,n6=`Status`,Mue=`SecretAccessKey`,Nue=`ServiceAccessNotEnabledException`,Pue=`ServiceFailureException`,Fue=`ServiceNotSupportedException`,Iue=`Scope`,r6=`Tags`,Lue=`Tag`,Rue=`UpdateAccessKey`,zue=`UpdateAccessKeyRequest`,Bue=`UpdateDate`,Vue=`UnmodifiableEntityException`,Hue=`UserId`,i6=`UserName`,Uue=`UnrecognizedPublicKeyEncodingException`,a6=`User`,Wue=`Users`,o6=`VersionId`,Gue=`Value`,Kue=`accessKeyMetadataListType`,que=`accessKeySecretType`,Jue=`attachedPoliciesListType`,R=`awsQueryError`,z=`client`,B=`error`,V=`httpError`,Yue=`instanceProfileListType`,H=`message`,Xue=`policyListType`,Zue=`roleListType`,s6=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,c6=`server`,Que=`tagListType`,$ue=`userListType`,U=`com.amazonaws.iam`,l6=dt.for(s6),ede=[-3,s6,`IAMServiceException`,0,[],[]];l6.registerError(ede,L);var W=dt.for(U),tde=[-3,U,mce,{[B]:z,[V]:400},[V3],[0]];W.registerError(tde,Fse);var nde=[-3,U,Ece,{[B]:z,[V]:400},[V3],[0]];W.registerError(nde,$se);var rde=[-3,U,Ace,{[R]:[`ConcurrentModification`,409],[B]:z,[V]:409},[H],[0]];W.registerError(rde,Mse);var ide=[-3,U,Fce,{[R]:[`ReportExpired`,410],[B]:z,[V]:410},[H],[0]];W.registerError(ide,nce);var ade=[-3,U,Ice,{[R]:[`ReportNotPresent`,410],[B]:z,[V]:410},[H],[0]];W.registerError(ade,rce);var ode=[-3,U,Lce,{[R]:[`ReportInProgress`,404],[B]:z,[V]:404},[H],[0]];W.registerError(ode,ice);var sde=[-3,U,Gce,{[R]:[`DeleteConflict`,409],[B]:z,[V]:409},[H],[0]];W.registerError(sde,qse);var cde=[-3,U,Kce,{[R]:[`DuplicateCertificate`,409],[B]:z,[V]:409},[H],[0]];W.registerError(cde,lce);var lde=[-3,U,tle,{[R]:[`DuplicateSSHPublicKey`,400],[B]:z,[V]:400},[H],[0]];W.registerError(lde,dce);var ude=[-3,U,cle,{[R]:[`EntityAlreadyExists`,409],[B]:z,[V]:409},[H],[0]];W.registerError(ude,Rse);var dde=[-3,U,lle,{[R]:[`EntityTemporarilyUnmodifiable`,409],[B]:z,[V]:409},[H],[0]];W.registerError(dde,Vse);var fde=[-3,U,ule,{[R]:[`FeatureDisabled`,404],[B]:z,[V]:404},[H],[0]];W.registerError(fde,Zse);var pde=[-3,U,dle,{[R]:[`FeatureEnabled`,409],[B]:z,[V]:409},[H],[0]];W.registerError(pde,ece);var mde=[-3,U,Ole,{[R]:[`InvalidAuthenticationCode`,403],[B]:z,[V]:403},[H],[0]];W.registerError(mde,Qse);var hde=[-3,U,kle,{[R]:[`InvalidCertificate`,400],[B]:z,[V]:400},[H],[0]];W.registerError(hde,uce);var gde=[-3,U,jle,{[R]:[`InvalidInput`,400],[B]:z,[V]:400},[H],[0]];W.registerError(gde,Ise);var _de=[-3,U,Nle,{[R]:[`InvalidPublicKey`,400],[B]:z,[V]:400},[H],[0]];W.registerError(_de,fce);var vde=[-3,U,Ple,{[R]:[`InvalidUserType`,400],[B]:z,[V]:400},[H],[0]];W.registerError(vde,Hse);var yde=[-3,U,Ile,{[R]:[`KeyPairMismatch`,400],[B]:z,[V]:400},[H],[0]];W.registerError(yde,sce);var bde=[-3,U,Kle,{[R]:[`LimitExceeded`,409],[B]:z,[V]:409},[H],[0]];W.registerError(bde,Lse);var xde=[-3,U,lue,{[R]:[`MalformedCertificate`,400],[B]:z,[V]:400},[H],[0]];W.registerError(xde,cce);var Sde=[-3,U,uue,{[R]:[`MalformedPolicyDocument`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Sde,Gse);var Cde=[-3,U,due,{[R]:[`NoSuchEntity`,404],[B]:z,[V]:404},[H],[0]];W.registerError(Cde,Nse);var wde=[-3,U,pue,{[R]:[`OpenIdIdpCommunicationError`,400],[B]:z,[V]:400},[H],[0]];W.registerError(wde,Wse);var Tde=[-3,U,mue,{[B]:z,[V]:400},[V3],[0]];W.registerError(Tde,Jse);var Ede=[-3,U,hue,{[B]:z,[V]:400},[V3],[0]];W.registerError(Ede,Yse);var Dde=[-3,U,wue,{[R]:[`PasswordPolicyViolation`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Dde,Use);var Ode=[-3,U,bue,{[R]:[`PolicyEvaluation`,500],[B]:c6,[V]:500},[H],[0]];W.registerError(Ode,oce);var kde=[-3,U,Cue,{[R]:[`PolicyNotAttachable`,400],[B]:z,[V]:400},[H],[0]];W.registerError(kde,Bse);var Ade=[-3,U,Oue,{[R]:[`ReportGenerationLimitExceeded`,409],[B]:z,[V]:409},[H],[0]];W.registerError(Ade,tce);var jde=[-3,U,Nue,{[B]:z,[V]:400},[V3],[0]];W.registerError(jde,Xse);var Mde=[-3,U,Pue,{[R]:[`ServiceFailure`,500],[B]:c6,[V]:500},[H],[0]];W.registerError(Mde,Pse);var Nde=[-3,U,Fue,{[R]:[`NotSupportedService`,404],[B]:z,[V]:404},[H],[0]];W.registerError(Nde,Kse);var Pde=[-3,U,Vue,{[R]:[`UnmodifiableEntity`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Pde,zse);var Fde=[-3,U,Uue,{[R]:[`UnrecognizedPublicKeyEncoding`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Fde,ace);var Ide=[l6,W],Lde=[0,U,que,8,0],Rde=[3,U,A3,0,[i6,j3,n6,Mue,F3],[0,0,0,[()=>Lde,0],4],4],zde=[3,U,M3,0,[i6,j3,n6,F3],[0,0,0,4]],Bde=[3,U,bce,0,[R3,$3],[0,0],2],u6=[3,U,gce,0,[_ue,gue],[0,0]],Vde=[3,U,hce,0,[q3,G3],[0,0]],Hde=[3,U,vce,0,[$3,G3],[0,0],2],Ude=[3,U,Sce,0,[i6,G3],[0,0],2],Wde=[3,U,wce,0,[i6],[0]],Gde=[3,U,Tce,0,[A3],[[()=>Rde,0]],1],Kde=[3,U,Oce,0,[R3,X3,r6],[0,0,()=>y6],1],qde=[3,U,kce,0,[L3],[()=>d6],1],Jde=[3,U,jce,0,[q3,yue,X3,I3,r6],[0,0,0,0,()=>y6],2],Yde=[3,U,Mce,0,[Z3],[()=>f6]],Xde=[3,U,Rce,0,[$3,P3,X3,I3,U3,K3,r6],[0,0,0,0,1,0,()=>y6],2],Zde=[3,U,zce,0,[e6],[()=>p6],1],Qde=[3,U,Vce,0,[i6,X3,K3,r6],[0,0,0,()=>y6],1],$de=[3,U,Hce,0,[a6],[()=>m6]],efe=[3,U,Wce,0,[j3,i6],[0,0],1],tfe=[3,U,Jce,0,[R3],[0],1],nfe=[3,U,Yce,0,[G3],[0],1],rfe=[3,U,$ce,0,[$3],[0],1],ife=[3,U,ale,0,[i6],[0],1],afe=[3,U,Zce,0,[$3,G3],[0,0],2],ofe=[3,U,rle,0,[i6,G3],[0,0],2],sfe=[3,U,ple,0,[R3],[0],1],cfe=[3,U,mle,0,[L3],[()=>d6],1],lfe=[3,U,gle,0,[G3],[0],1],ufe=[3,U,_le,0,[Z3],[()=>f6]],dfe=[3,U,yle,0,[G3,o6],[0,0],2],ffe=[3,U,ble,0,[Y3],[()=>Nfe]],pfe=[3,U,Sle,0,[$3],[0],1],mfe=[3,U,Cle,0,[e6],[()=>p6],1],hfe=[3,U,Tle,0,[i6],[0]],gfe=[3,U,Ele,0,[a6],[()=>m6],1],d6=[3,U,L3,0,[X3,R3,Mle,k3,F3,t6,r6],[0,0,0,0,4,()=>v6,()=>y6],6],_fe=[3,U,Rle,0,[i6,W3,H3],[0,0,1]],vfe=[3,U,zle,0,[M3,B3,W3],[()=>Rfe,2,0],1],yfe=[3,U,Vle,0,[$3,J3,W3,H3],[0,0,0,1],1],bfe=[3,U,Hle,0,[N3,B3,W3],[()=>g6,2,0]],xfe=[3,U,Wle,0,[i6,J3,W3,H3],[0,0,0,1],1],Sfe=[3,U,Gle,0,[N3,B3,W3],[()=>g6,2,0]],Cfe=[3,U,Yle,0,[$3,W3,H3],[0,0,1],1],wfe=[3,U,Xle,0,[z3,B3,W3],[()=>_6,2,0],1],Tfe=[3,U,Zle,0,[J3,W3,H3],[0,0,1]],Efe=[3,U,Qle,0,[z3,B3,W3],[()=>_6,2,0],1],Dfe=[3,U,$le,0,[Iue,fue,J3,Tue,W3,H3],[0,2,0,0,0,1]],Ofe=[3,U,eue,0,[Eue,B3,W3],[()=>zfe,2,0]],kfe=[3,U,rue,0,[J3,W3,H3],[0,0,1]],Afe=[3,U,iue,0,[t6,B3,W3],[()=>v6,2,0],1],jfe=[3,U,sue,0,[J3,W3,H3],[0,0,1]],Mfe=[3,U,cue,0,[Wue,B3,W3],[()=>Bfe,2,0],1],f6=[3,U,Z3,0,[q3,xue,k3,X3,ole,pce,vue,Dle,I3,F3,Bue,r6],[0,0,0,0,0,1,1,2,0,4,4,()=>y6]],Nfe=[3,U,Y3,0,[sle,o6,Ale,F3],[0,0,2,4]],Pfe=[3,U,jue,0,[R3,$3],[0,0],2],p6=[3,U,e6,0,[X3,$3,kue,k3,F3,P3,I3,U3,K3,r6,Q3],[0,0,0,0,4,0,0,1,()=>u6,()=>y6,()=>Ffe],5],Ffe=[3,U,Q3,0,[oue,Due],[4,0]],Ife=[3,U,Lue,0,[Fle,Gue],[0,0],2],Lfe=[3,U,zue,0,[j3,n6,i6],[0,0,0],2],m6=[3,U,a6,0,[X3,i6,Hue,k3,F3,Sue,K3,r6],[0,0,0,0,4,4,()=>u6,()=>y6],5],h6=`unit`,Rfe=[1,U,Kue,0,()=>zde],g6=[1,U,Jue,0,()=>Vde],_6=[1,U,Yue,0,()=>d6],zfe=[1,U,Xue,0,()=>f6],v6=[1,U,Zue,0,()=>p6],y6=[1,U,Que,0,()=>Ife],Bfe=[1,U,$ue,0,()=>m6],Vfe=[9,U,yce,0,()=>Bde,()=>h6],Hfe=[9,U,_ce,0,()=>Hde,()=>h6],Ufe=[9,U,xce,0,()=>Ude,()=>h6],Wfe=[9,U,Cce,0,()=>Wde,()=>Gde],Gfe=[9,U,Dce,0,()=>Kde,()=>qde],Kfe=[9,U,Nce,0,()=>Jde,()=>Yde],qfe=[9,U,Pce,0,()=>Xde,()=>Zde],Jfe=[9,U,Bce,0,()=>Qde,()=>$de],Yfe=[9,U,Uce,0,()=>efe,()=>h6],Xfe=[9,U,qce,0,()=>tfe,()=>h6],Zfe=[9,U,Xce,0,()=>nfe,()=>h6],Qfe=[9,U,ele,0,()=>rfe,()=>h6],$fe=[9,U,nle,0,()=>ife,()=>h6],epe=[9,U,Qce,0,()=>afe,()=>h6],tpe=[9,U,ile,0,()=>ofe,()=>h6],npe=[9,U,fle,0,()=>sfe,()=>cfe],rpe=[9,U,hle,0,()=>lfe,()=>ufe],ipe=[9,U,vle,0,()=>dfe,()=>ffe],ape=[9,U,xle,0,()=>pfe,()=>mfe],ope=[9,U,wle,0,()=>hfe,()=>gfe],spe=[9,U,Lle,0,()=>_fe,()=>vfe],cpe=[9,U,Ble,0,()=>yfe,()=>bfe],lpe=[9,U,Ule,0,()=>xfe,()=>Sfe],upe=[9,U,qle,0,()=>Tfe,()=>Efe],dpe=[9,U,Jle,0,()=>Cfe,()=>wfe],fpe=[9,U,tue,0,()=>Dfe,()=>Ofe],ppe=[9,U,nue,0,()=>kfe,()=>Afe],mpe=[9,U,aue,0,()=>jfe,()=>Mfe],hpe=[9,U,Aue,0,()=>Pfe,()=>h6],gpe=[9,U,Rue,0,()=>Lfe,()=>h6],_pe=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??xt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??jse,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Sse,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Ze}],logger:e?.logger??new ut,protocol:e?.protocol??qe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:Ide,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,urlParser:e?.urlParser??Ce,utf8Decoder:e?.utf8Decoder??bt,utf8Encoder:e?.utf8Encoder??St}),vpe=e=>{let t=De(e),n=()=>t().then(pt),r=_pe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Mt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??xe({serviceId:r.serviceId,clientVersion:Ese.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??ae(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},ype=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},bpe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),xpe=(e,t)=>{let n=Object.assign(Se(e),ht(e),Ge(e),ype(e));return t.forEach(e=>e.configure(n)),Object.assign(e,we(n),He(n),ct(n),bpe(n))},Spe=class extends $e{config;constructor(...[e]){let t=vpe(e||{});super(t),this.initConfig=t;let n=xpe(Cse(Ke(it(pe(Fe(gt(wse(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(Me(this.config,{httpAuthSchemeParametersProvider:bse,identityProviderConfigProvider:async e=>new oe({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(Ne(this.config))}destroy(){super.destroy()}},b6={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},Cpe=b6.WHEN_SUPPORTED,wpe={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},Tpe=b6.WHEN_SUPPORTED,x6;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(x6||={});var Epe;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(Epe||={});var Dpe=x6.CRC32,Ope=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:Te(t??Cpe),responseChecksumValidation:Te(n??Tpe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},kpe=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},Ape={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function jpe(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}var Mpe={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},Npe=e=>({applyToStack:t=>{t.add(jpe(e),Mpe),t.addRelativeTo(kpe(e),Ape)}}),Ppe=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new S6(Promise.resolve(e)))})),t)):i.set(r,new S6(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: -`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}},Ipe=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:ee}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new Fpe(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:ee??2097152})},Lpe=`sigv4-s3express`,Rpe=`x-amz-s3session-token`,zpe=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===Lpe;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(ye(n,`S3_EXPRESS_BUCKET`,`J`),n.isS3ExpressBucket=!0),i){let t=r.input.Bucket;if(t){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});n.s3ExpressIdentity=i,me.isInstance(r.request)&&i.sessionToken&&(r.request.headers[Rpe]=i.sessionToken)}}}return t(r)},Bpe={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},Vpe=e=>({applyToStack:t=>{t.add(zpe(e),Bpe)}}),Hpe=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},Upe=e=>e=>{throw e},Wpe=(e,t)=>{},Gpe=e=>(t,n)=>async r=>{if(!me.isInstance(r.request))return t(r);let i=ve(n).selectedHttpAuthScheme;if(!i)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:a={}},identity:o,signer:s}=i,c;c=n.s3ExpressIdentity?await Hpe(n.s3ExpressIdentity,a,r.request,await e.signer()):await s.sign(r.request,o,a);let l=await t({...r,request:c}).catch((s.errorHandler||Upe)(a));return(s.successHandler||Wpe)(l.response,a),l},Kpe=e=>({applyToStack:t=>{t.addRelativeTo(Gpe(e),ge)}});function qpe(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var Jpe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},Ype=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!eee.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await Xpe(s,e);if(a.body=qpe(c),c.length===0&&Jpe[n.commandName]){let e=Error(`S3 aborted request`);throw e.$metadata={httpStatusCode:503},e.name=`InternalError`,e}let l=e.utf8Encoder(c.subarray(c.length-16));return l&&l.endsWith(``)&&(a.statusCode=503),i},Xpe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Zpe={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},C6=e=>({applyToStack:t=>{t.addRelativeTo(Ype(e),Zpe)}});function Qpe(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}var $pe={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function eme({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!SI(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var tme={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},nme=e=>({applyToStack:t=>{t.add(eme(e),tme),t.addRelativeTo(Qpe(e),$pe)}}),rme=class extends wee{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=d.of(e.input),a=i.getSchema(),o=0,s=a[6]??0;if(t&&typeof t==`object`)for(let[e,n]of i.structIterator()){if(++o>s)break;if(e===`Bucket`){if(!t.Bucket&&n.getMergedTraits().httpLabel)throw Error(`No value provided for input HTTP label: Bucket.`);break}}return r}};function ime(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&me.isInstance(r)&&r.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(r.headers?.[`content-length`])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(r.headers.Expect=`100-continue`)}return t({...n,request:r})}}var ame={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},ome=e=>({applyToStack:t=>{t.add(ime(e),ame)}}),G=`ref`,K=`argv`,w6=`backend`,T6=`authSchemes`,E6=`disableDoubleEncoding`,D6=`signingName`,O6=`signingRegion`,k6=`signingRegionSet`,q=-1,J=!0,A6=!1,j6=`isSet`,M6=`booleanEquals`,Y=`stringEquals`,N6=`coalesce`,P6=`substring`,F6=``,I6=`aws.partition`,L6=`partitionResult`,R6=`accessPointSuffix`,z6=`regionPrefix`,B6=e=>`outpostId_ssa_`+e+F6,V6=`hardwareType`,H6=`ite`,U6=`isValidHostLabel`,W6=`sigv4`,G6=`aws.isVirtualHostableS3Bucket`,K6=`url`,q6=`getAttr`,J6=`bucketArn`,Y6=`--`,X6=`arnType`,Z6=`accesspoint`,Q6=e=>`accessPointName_ssa_`+e+F6,$6=`s3-object-lambda`,e8=`s3-outposts`,t8=`bucketPartition`,n8=`us-east-1`,r8=`outpostType`,i8=`name`,a8=`s3`,o8=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,s8=`{url#scheme}://{url#authority}{url#path}`,c8=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,l8=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,u8=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,d8=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,f8=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",p8=`sigv4a`,m8=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,h8=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,g8=`https://s3.{partitionResult#dnsSuffix}`,_8={[G]:`UseFIPS`},v8={[G]:`UseDualStack`},y8={[G]:`Bucket`},b8={fn:q6,[K]:[{[G]:L6},i8]},x8={[G]:K6},S8={[G]:`Region`},C8={[G]:J6},w8={[G]:X6},T8={[G]:`accessPointName_ssa_1`},E8={fn:q6,[K]:[C8,`region`]},D8={[G]:V6},O8={fn:q6,[K]:[C8,`service`]},k8={fn:q6,[K]:[C8,`accountId`]},A8={[w6]:`S3Express`,[T6]:[{[E6]:!0,[i8]:`{_s3e_auth}`,[D6]:`s3express`,[O6]:`{Region}`}]},j8={[w6]:`S3Express`,[T6]:[{[E6]:!0,[i8]:W6,[D6]:`s3express`,[O6]:`{Region}`}]},M8={[T6]:[{[E6]:!0,[i8]:p8,[D6]:e8,[k6]:[`*`]},{[E6]:!0,[i8]:W6,[D6]:e8,[O6]:`{Region}`}]},N8={[T6]:[{[E6]:!0,[i8]:W6,[D6]:a8,[O6]:n8}]},X={[T6]:[{[E6]:!0,[i8]:W6,[D6]:a8,[O6]:`{Region}`}]},P8={[T6]:[{[E6]:!0,[i8]:W6,[D6]:$6,[O6]:`{bucketArn#region}`}]},F8={[T6]:[{[E6]:!0,[i8]:W6,[D6]:a8,[O6]:`{bucketArn#region}`}]},I8={[T6]:[{[E6]:!0,[i8]:p8,[D6]:e8,[k6]:[`*`]},{[E6]:!0,[i8]:W6,[D6]:e8,[O6]:`{bucketArn#region}`}]},L8={[T6]:[{[E6]:!0,[i8]:W6,[D6]:$6,[O6]:`{Region}`}]},R8=[S8],z8=[{[G]:`Endpoint`}],B8=[y8],V8=[y8,0,7,!0],H8=[C8,`resourceId[1]`],sme=[`*`],U8={conditions:[[j6,R8],[M6,[{[G]:`Accelerate`},J]],[M6,[_8,J]],[M6,[v8,J]],[j6,z8],[j6,B8],[Y,[{fn:N6,[K]:[{fn:P6,[K]:[y8,0,6,J]},F6]},`--x-s3`]],[Y,[{fn:N6,[K]:[{fn:P6,[K]:V8},F6]},`--xa-s3`]],[I6,R8,L6],[P6,V8,R6],[Y,[{[G]:R6},`--op-s3`]],[P6,[y8,8,12,J],z6],[P6,[y8,32,49,J],B6(2)],[P6,[y8,49,50,J],V6],[M6,[{[G]:`ForcePathStyle`},J]],[Y,[b8,`aws-cn`]],[H6,[v8,`.dualstack`,F6],`_s3e_ds`],[U6,[{[G]:B6(2)},A6]],[H6,[_8,`-fips`,F6],`_s3e_fips`],[H6,[{fn:N6,[K]:[{[G]:`DisableS3ExpressSessionAuth`},A6]},W6,`sigv4-s3express`],`_s3e_auth`],[G6,[y8,A6]],[`parseURL`,z8,K6],[M6,[{fn:N6,[K]:[{[G]:`UseS3ExpressControlEndpoint`},A6]},J]],[G6,[y8,J]],[Y,[{fn:q6,[K]:[x8,`scheme`]},`http`]],[U6,[S8,A6]],[`aws.parseArn`,B8,J6],[q6,[{fn:`split`,[K]:[y8,Y6,0]},`[-2]`],`s3expressAvailabilityZoneId`],[Y,[{fn:N6,[K]:[{fn:P6,[K]:[y8,0,4,A6]},F6]},`arn:`]],[Y,[{fn:N6,[K]:[{fn:P6,[K]:[y8,16,18,J]},F6]},Y6]],[M6,[{fn:q6,[K]:[x8,`isIp`]},J]],[Y,[{fn:N6,[K]:[{fn:P6,[K]:[y8,21,23,J]},F6]},Y6]],[Y,[{fn:N6,[K]:[{fn:P6,[K]:[y8,27,29,J]},F6]},Y6]],[Y,[{[G]:z6},`beta`]],[`uriEncode`,B8,`uri_encoded_bucket`],[U6,[S8,J]],[M6,[{fn:N6,[K]:[{[G]:`UseObjectLambdaEndpoint`},A6]},J]],[q6,[C8,`resourceId[0]`],X6],[Y,[w8,F6]],[Y,[w8,Z6]],[q6,H8,Q6(1)],[Y,[T8,F6]],[Y,[E8,F6]],[Y,[{fn:N6,[K]:[{fn:P6,[K]:[y8,14,16,J]},F6]},Y6]],[Y,[D8,`e`]],[Y,[D8,`o`]],[Y,[S8,`aws-global`]],[Y,[{fn:N6,[K]:[{fn:P6,[K]:[y8,19,21,J]},F6]},Y6]],[Y,[O8,$6]],[M6,[{fn:N6,[K]:[{[G]:`DisableAccessPoints`},A6]},J]],[Y,[O8,e8]],[I6,[E8],t8],[U6,[T8,J]],[Y,[{fn:N6,[K]:[{fn:P6,[K]:[y8,26,28,J]},F6]},Y6]],[Y,[{fn:N6,[K]:[{fn:P6,[K]:[y8,15,17,J]},F6]},Y6]],[q6,[C8,`resourceId[4]`]],[Y,[{fn:N6,[K]:[{fn:P6,[K]:[y8,20,22,J]},F6]},Y6]],[M6,[{[G]:`UseGlobalEndpoint`},J]],[Y,[S8,n8]],[q6,H8,B6(1)],[M6,[{fn:N6,[K]:[{[G]:`UseArnRegion`},J]},J]],[U6,[{[G]:B6(1)},A6]],[q6,[C8,`resourceId[2]`],r8],[Y,[S8,E8]],[Y,[{fn:q6,[K]:[{[G]:t8},i8]},b8]],[M6,[{[G]:`DisableMultiRegionAccessPoints`},J]],[U6,[E8,J]],[Y,[{fn:q6,[K]:[C8,`partition`]},b8]],[Y,[k8,F6]],[Y,[O8,a8]],[U6,[k8,A6]],[q6,[C8,`resourceId[3]`],Q6(2)],[U6,[T8,A6]],[Y,[{[G]:r8},Z6]],[U6,[{[G]:Q6(2)},A6]]],results:[[q],[q,`Accelerate cannot be used with FIPS`],[q,`Cannot set dual-stack in combination with a custom endpoint.`],[q,`A custom endpoint cannot be combined with FIPS`],[q,`A custom endpoint cannot be combined with S3 Accelerate`],[q,`Partition does not support FIPS`],[q,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,A8],[o8,A8],[q,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,j8],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,A8],[q,`Unrecognized S3Express bucket name format.`],[s8,A8],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,j8],[q,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,M8],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,M8],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,M8],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,M8],[q,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[q,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[q,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[q,"Custom endpoint `{Endpoint}` was not a valid URI"],[q,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,X],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,X],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,X],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,X],[c8,N8],[o8,N8],[c8,X],[o8,X],[l8,N8],[l8,X],[u8,N8],[u8,X],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,X],[q,`Invalid region: region was not a valid DNS name.`],[q,`S3 Object Lambda does not support Dual-stack`],[q,`S3 Object Lambda does not support S3 Accelerate`],[q,`Access points are not supported for this operation`],[q,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[q,`Invalid ARN: Missing account id`],[d8(1),P8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,P8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,P8],[q,f8(1)],[q,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[q,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[q,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[q,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[q,`Invalid ARN: bucket ARN is missing a region`],[q,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[q,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[q,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,F8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,F8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,F8],[d8(1),F8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,F8],[q,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[q,`S3 MRAP does not support dual-stack`],[q,`S3 MRAP does not support FIPS`],[q,`S3 MRAP does not support S3 Accelerate`],[q,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[T6]:[{[E6]:J,name:p8,[D6]:a8,[k6]:sme}]}],[q,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[q,`Invalid Access Point Name`],[q,`S3 Outposts does not support Dual-stack`],[q,`S3 Outposts does not support FIPS`],[q,`S3 Outposts does not support S3 Accelerate`],[q,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,I8],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,I8],[q,f8(2)],[q,"Expected an outpost type `accesspoint`, found {outpostType}"],[q,`Invalid ARN: expected an access point name`],[q,`Invalid ARN: Expected a 4-component resource`],[q,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[q,`Invalid ARN: The Outpost Id was not set`],[q,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[q,`Invalid ARN: No ARN type specified`],[q,"Invalid ARN: `{Bucket}` was not a valid ARN"],[q,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,N8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,X],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,N8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,X],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,N8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,X],[m8,N8],[m8,X],[h8,N8],[h8,X],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,X],[q,`Path-style addressing cannot be used with S3 Accelerate`],[s8,L8],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,L8],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,L8],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,X],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,X],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,N8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,X],[s8,N8],[s8,X],[g8,N8],[g8,X],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,X],[q,`A region must be set when sending requests to S3.`]]},cme=2,lme=new Int32Array([-1,1,-1,0,3,100000115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,100000115,16,10,13,18,11,13,19,12,13,22,100000014,13,35,14,100000042,36,100000103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,100000086,38,100000086,29,39,47,30,48,100000058,31,50,32,100000085,51,33,136,55,100000076,34,59,35,100000084,60,39,36,61,37,100000083,62,38,146,63,41,100000046,61,40,100000083,62,41,150,64,42,100000054,66,43,100000053,70,44,100000052,71,45,100000081,73,46,100000080,74,100000078,100000079,40,48,100000057,41,100000057,49,42,185,50,48,62,51,49,100000045,52,51,53,526,60,56,54,62,100000055,55,63,57,100000046,62,100000055,57,64,58,100000054,66,59,100000053,69,60,100000065,70,61,100000052,72,100000064,100000051,49,100000045,63,51,64,526,60,67,65,62,100000055,66,63,68,100000046,62,100000055,68,64,69,100000054,66,70,100000053,68,100000047,71,70,72,100000052,72,100000050,100000051,25,74,100000042,46,100000039,75,57,76,100000041,58,100000040,100000041,26,100000088,78,28,100000087,79,34,82,80,35,81,545,36,100000103,100000115,46,100000097,83,57,84,100000099,58,100000098,100000099,5,101,86,8,87,100000115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,100000014,95,35,96,100000042,36,100000103,100000042,22,100000013,98,35,99,100000042,36,100000101,100,46,100000110,100000111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,100000023,26,107,502,37,108,100000086,38,100000086,109,39,112,110,48,100000058,111,50,136,100000085,40,113,100000057,41,100000057,114,42,115,500,48,100000056,116,52,117,100000072,65,100000069,100000072,21,501,100000023,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,100000023,23,128,129,24,189,129,26,130,197,37,131,100000086,38,100000086,132,39,159,133,48,100000058,134,50,135,100000085,51,141,136,55,100000076,137,59,138,100000084,60,100000083,139,61,140,100000083,63,100000083,100000046,55,100000076,142,59,143,100000084,60,148,144,61,145,100000083,62,147,146,63,150,100000046,63,153,100000046,61,149,100000083,62,153,150,64,151,100000054,66,152,100000053,70,100000082,100000052,64,154,100000054,66,155,100000053,70,156,100000052,71,157,100000081,73,158,100000080,74,100000077,100000079,40,160,100000057,41,100000057,161,42,185,162,48,174,163,49,100000045,164,51,165,526,60,168,166,62,100000055,167,63,169,100000046,62,100000055,169,64,170,100000054,66,171,100000053,69,172,100000065,70,173,100000052,72,100000063,100000051,49,100000045,175,51,176,526,60,179,177,62,100000055,178,63,180,100000046,62,100000055,180,64,181,100000054,66,182,100000053,68,100000047,183,70,184,100000052,72,100000048,100000051,48,100000056,186,52,187,100000072,65,100000069,188,67,100000070,100000071,25,100000036,100000042,21,191,100000023,25,192,100000042,30,194,193,46,100000034,100000036,46,100000033,100000035,21,196,100000023,26,100000088,197,28,100000087,198,34,201,199,35,200,545,36,100000101,100000115,46,100000095,100000096,17,203,100000022,20,204,100000021,21,205,550,33,206,550,44,100000016,207,45,100000018,100000020,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,100000009,20,217,227,21,231,100000009,16,219,220,18,223,220,19,221,224,20,222,227,21,231,100000012,19,226,224,20,225,100000009,21,100000009,100000012,20,230,227,21,228,100000009,30,229,100000009,34,100000007,100000009,21,231,415,30,232,100000008,34,100000007,100000008,4,100000002,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,100000086,38,100000086,248,39,249,518,40,250,100000057,41,100000057,251,42,538,252,48,100000043,253,49,100000045,254,51,255,526,60,258,256,62,100000055,257,63,259,100000046,62,100000055,259,64,260,100000054,66,261,100000053,69,262,100000065,70,263,100000052,72,100000062,100000051,25,265,100000042,46,100000031,100000032,26,100000088,267,28,100000087,268,34,269,544,46,100000093,100000094,8,397,100000009,8,407,100000009,3,346,273,4,100000003,274,5,284,275,8,276,100000115,15,100000005,277,16,278,281,18,279,281,19,280,281,22,100000014,281,35,282,100000042,36,100000102,283,46,100000106,100000107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,100000086,38,100000086,291,39,292,307,40,293,100000057,41,100000057,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,100000005,302,20,337,303,26,304,341,37,305,100000086,38,100000086,306,39,309,307,48,100000058,308,50,100000074,100000085,40,310,100000057,41,100000057,311,42,335,312,48,324,313,49,100000045,314,51,315,526,60,318,316,62,100000055,317,63,319,100000046,62,100000055,319,64,320,100000054,66,321,100000053,69,322,100000065,70,323,100000052,72,100000061,100000051,49,100000045,325,51,326,526,60,329,327,62,100000055,328,63,330,100000046,62,100000055,330,64,331,100000054,66,332,100000053,68,100000047,333,70,334,100000052,72,100000049,100000051,48,100000056,336,52,100000067,100000072,25,338,100000042,46,100000027,100000028,15,100000005,340,26,100000088,341,28,100000087,342,34,345,343,35,344,545,36,100000102,100000115,46,100000091,100000092,4,100000002,347,5,357,348,8,349,100000115,15,100000005,350,16,351,354,18,352,354,19,353,354,22,100000014,354,35,355,100000042,36,100000043,356,46,100000104,100000105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,100000005,367,20,387,368,26,369,391,37,370,100000086,38,100000086,371,39,372,518,40,373,100000057,41,100000057,374,42,538,375,48,100000043,376,49,100000045,377,51,378,526,60,381,379,62,100000055,380,63,382,100000046,62,100000055,382,64,383,100000054,66,384,100000053,69,385,100000065,70,386,100000052,72,100000060,100000051,25,388,100000042,46,100000025,100000026,15,100000005,390,26,100000088,391,28,100000087,392,34,393,544,46,100000089,100000090,15,100000005,547,8,396,100000009,15,100000005,397,16,398,410,18,399,410,19,400,410,20,401,100000009,27,402,100000012,29,100000011,403,31,100000011,404,32,100000011,422,8,406,100000009,15,100000005,407,16,408,410,18,409,410,19,411,410,20,100000012,100000009,20,414,412,22,413,100000009,34,100000010,100000009,22,416,415,27,419,100000012,27,418,417,34,100000010,100000012,34,100000010,419,43,100000011,420,47,100000011,421,53,100000011,422,54,100000011,423,56,100000011,100000012,2,100000001,425,3,478,426,4,100000004,427,5,438,428,8,429,100000115,16,430,433,18,431,433,19,432,433,22,100000014,433,35,434,100000042,36,100000044,435,46,100000112,436,57,437,100000114,58,100000113,100000114,6,100000006,439,7,100000006,440,8,450,441,14,501,442,26,443,502,37,444,100000086,38,100000086,445,39,446,465,40,447,100000057,41,100000057,448,42,471,449,48,100000044,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,100000042,46,100000037,100000038,20,540,461,26,462,474,37,463,100000086,38,100000086,464,39,467,465,48,100000058,466,50,100000075,100000085,40,468,100000057,41,100000057,469,42,471,470,48,100000044,524,48,100000044,472,52,100000068,100000072,26,100000088,474,28,100000087,475,34,100000100,476,35,477,545,36,100000044,100000115,4,100000002,479,5,488,480,8,481,100000115,16,482,485,18,483,485,19,484,485,22,100000014,485,35,486,100000042,36,100000043,487,46,100000108,100000109,6,100000006,489,7,100000006,490,8,503,491,14,501,492,26,493,502,37,494,100000086,38,100000086,495,39,496,518,40,497,100000057,41,100000057,498,42,538,499,48,100000043,500,49,100000045,526,26,100000088,502,28,100000087,100000115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,100000042,46,100000029,100000030,20,540,514,26,515,542,37,516,100000086,38,100000086,517,39,520,518,48,100000058,519,50,100000073,100000085,40,521,100000057,41,100000057,522,42,538,523,48,100000043,524,49,100000045,525,51,529,526,60,100000055,527,62,100000055,528,63,100000055,100000046,60,532,530,62,100000055,531,63,533,100000046,62,100000055,533,64,534,100000054,66,535,100000053,69,536,100000065,70,537,100000052,72,100000059,100000051,48,100000043,539,52,100000066,100000072,25,100000024,100000042,26,100000088,542,28,100000087,543,34,100000100,544,35,546,545,36,100000042,100000115,36,100000043,100000115,17,548,100000022,20,549,100000021,33,552,550,44,100000017,551,45,100000019,100000020,44,100000015,553,45,100000015,100000020]),ume=Je.from(lme,cme,U8.conditions,U8.results),dme=new Ye({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),W8=(e,t={})=>dme.get(e,()=>rt(ume,{endpointParams:e,logger:t.logger}));tt.aws=_e;var fme=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=ve(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await ze(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:ve(t).operation,region:await Te(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function G8(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function K8(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var pme=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(de.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let ee=n[l];if(!ee)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let te=ee(r);te.schemeId=l,te.signingProperties={...te.signingProperties||{},...s,...o},a.push(te)}return a})(W8,e=>{let t=[];switch(e.operation){default:t.push(G8(e)),t.push(K8(e))}return t},{"aws.auth#sigv4":G8,"aws.auth#sigv4a":K8}),mme=e=>{let t=Qe(le(e));return Object.assign(t,{authSchemePreference:Te(e.authSchemePreference??[])})},hme=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:`s3`,clientContextParams:e.clientContextParams??{}}),q8={ForcePathStyle:{type:`clientContextParams`,name:`forcePathStyle`},UseArnRegion:{type:`clientContextParams`,name:`useArnRegion`},DisableMultiRegionAccessPoints:{type:`clientContextParams`,name:`disableMultiregionAccessPoints`},Accelerate:{type:`clientContextParams`,name:`useAccelerateEndpoint`},DisableS3ExpressSessionAuth:{type:`clientContextParams`,name:`disableS3ExpressSessionAuth`},UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},J8=class e extends Ae{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},gme=class e extends J8{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_me=class e extends J8{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vme=class e extends J8{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yme=class e extends J8{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bme=class e extends J8{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xme=class e extends J8{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Sme=class e extends J8{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},Cme=class e extends J8{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wme=class e extends J8{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Tme=class e extends J8{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Eme=class e extends J8{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Dme=class e extends J8{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ome=class e extends J8{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kme=class e extends J8{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ame=class e extends J8{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Y8=`ACL`,jme=`AccessDenied`,Mme=`AbortDate`,X8=`AccessKeyId`,Nme=`AbortMultipartUpload`,Pme=`AbortMultipartUploadOutput`,Fme=`AbortMultipartUploadRequest`,Ime=`AcceptRanges`,Lme=`AbortRuleId`,Rme=`AccessTier`,Z8=`Bucket`,Q8=`BucketArn`,zme=`BucketAlreadyExists`,Bme=`BucketAlreadyOwnedByYou`,Vme=`BypassGovernanceRetention`,Hme=`BucketInfo`,$8=`BucketKeyEnabled`,Ume=`BucketNamespace`,e5=`BucketRegion`,t5=`Body`,n5=`Buckets`,r5=`ChecksumAlgorithm`,Wme=`CreateBucket`,i5=`CreateBucketConfiguration`,Gme=`CreateBucketOutput`,Kme=`CreateBucketRequest`,a5=`CacheControl`,o5=`ChecksumCRC32`,s5=`ChecksumCRC32C`,c5=`ChecksumCRC64NVME`,l5=`Cache-Control`,qme=`CreationDate`,u5=`Content-Disposition`,d5=`ContentDisposition`,f5=`Content-Encoding`,p5=`ContentEncoding`,m5=`ContentLanguage`,h5=`Content-Language`,g5=`Content-Length`,_5=`ContentLength`,v5=`Content-MD5`,y5=`ChecksumMD5`,b5=`ContentMD5`,Jme=`CompletedMultipartUpload`,Yme=`CompleteMultipartUploadOutput`,Xme=`CreateMultipartUploadOutput`,Zme=`CompleteMultipartUploadResult`,Qme=`CompleteMultipartUploadRequest`,$me=`CreateMultipartUploadRequest`,x5=`CompleteMultipartUpload`,ehe=`CreateMultipartUpload`,the=`ChecksumMode`,nhe=`CommonPrefix`,rhe=`CommonPrefixList`,ihe=`CompletedPartList`,ahe=`CompletedPart`,ohe=`CommonPrefixes`,she=`ContentRange`,che=`Content-Range`,S5=`ChecksumSHA1`,C5=`ChecksumSHA256`,w5=`ChecksumSHA512`,lhe=`CreateSessionOutput`,uhe=`CreateSessionResult`,dhe=`CreateSessionRequest`,fhe=`CreateSession`,T5=`ChecksumType`,E5=`Content-Type`,D5=`ContentType`,O5=`ContinuationToken`,k5=`ChecksumXXHASH64`,A5=`ChecksumXXHASH3`,j5=`ChecksumXXHASH128`,phe=`Contents`,M5=`Credentials`,N5=`DeleteMarker`,mhe=`DisplayName`,hhe=`DeleteObjectOutput`,ghe=`DeleteObjectRequest`,_he=`DeleteObject`,vhe=`DataRedundancy`,P5=`Delimiter`,F5=`Expiration`,I5=`ExpectedBucketOwner`,L5=`ExpiresString`,yhe=`EncryptionTypeMismatch`,R5=`ETag`,z5=`EncodingType`,B5=`Expires`,bhe=`FetchOwner`,V5=`GrantFullControl`,xhe=`GetObject`,She=`GetObjectOutput`,Che=`GetObjectRequest`,H5=`GrantRead`,U5=`GrantReadACP`,whe=`GrantWrite`,W5=`GrantWriteACP`,The=`ID`,G5=`IfMatch`,Ehe=`IfMatchInitiatedTime`,Dhe=`IfMatchLastModifiedTime`,Ohe=`IfMatchSize`,khe=`If-Modified-Since`,Ahe=`IfModifiedSince`,jhe=`InitiateMultipartUploadResult`,K5=`If-Match`,q5=`IfNoneMatch`,J5=`If-None-Match`,Mhe=`InvalidObjectState`,Nhe=`IdempotencyParameterMismatch`,Phe=`InvalidRequest`,Fhe=`IsRestoreInProgress`,Ihe=`IsTruncated`,Lhe=`IfUnmodifiedSince`,Rhe=`If-Unmodified-Since`,zhe=`InvalidWriteOffset`,Y5=`Key`,Bhe=`KeyCount`,X5=`Location`,Vhe=`ListAllMyBucketsResult`,Hhe=`ListBuckets`,Uhe=`ListBucketsOutput`,Whe=`ListBucketsRequest`,Ghe=`ListBucketResult`,Khe=`LocationConstraint`,qhe=`LocationInfo`,Z5=`LastModified`,Jhe=`Last-Modified`,Yhe=`ListObjectsV2`,Xhe=`ListObjectsV2Output`,Zhe=`ListObjectsV2Request`,Q5=`Metadata`,Qhe=`MaxBuckets`,$he=`MFA`,$5=`MaxKeys`,ege=`MissingMeta`,tge=`MpuObjectSize`,nge=`MultipartUpload`,e7=`Name`,rge=`NextContinuationToken`,ige=`NotFound`,age=`NoSuchBucket`,oge=`NoSuchKey`,sge=`NoSuchUpload`,t7=`Owner`,cge=`ObjectAlreadyInActiveTierError`,lge=`ObjectLockEnabledForBucket`,n7=`ObjectLockLegalHoldStatus`,r7=`ObjectLockMode`,i7=`ObjectLockRetainUntilDate`,uge=`ObjectList`,dge=`ObjectNotInActiveTierError`,fge=`ObjectOwnership`,pge=`OptionalObjectAttributes`,mge=`Object`,a7=`Prefix`,hge=`PartsCount`,o7=`PartNumber`,gge=`PutObject`,_ge=`PutObjectOutput`,vge=`PutObjectRequest`,yge=`PutObjectTagging`,bge=`PutObjectTaggingOutput`,xge=`PutObjectTaggingRequest`,Sge=`Parts`,Cge=`Part`,s7=`RequestCharged`,wge=`ResponseCacheControl`,Tge=`ResponseContentDisposition`,Ege=`ResponseContentEncoding`,Dge=`ResponseContentLanguage`,Oge=`ResponseContentType`,kge=`ResponseExpires`,Age=`RestoreExpiryDate`,c7=`RequestPayer`,jge=`ReplicationStatus`,l7=`RestoreStatus`,u7=`Range`,Mge=`Restore`,d7=`StartAfter`,f7=`SecretAccessKey`,Nge=`StreamingBlob`,p7=`StorageClass`,Pge=`SessionCredentialValue`,Fge=`SessionCredentials`,Ige=`SessionMode`,m7=`ServerSideEncryption`,h7=`SSECustomerAlgorithm`,g7=`SSECustomerKey`,_7=`SSECustomerKeyMD5`,v7=`SSEKMSEncryptionContext`,y7=`SSEKMSKeyId`,b7=`SessionToken`,x7=`Size`,Lge=`Tags`,Rge=`TagCount`,zge=`TooManyParts`,S7=`TagSet`,C7=`Tag`,w7=`Tagging`,T7=`Type`,E7=`UploadId`,Bge=`UploadPart`,Vge=`UploadPartOutput`,Hge=`UploadPartRequest`,Uge=`Value`,D7=`VersionId`,Wge=`WriteOffsetBytes`,O7=`WebsiteRedirectLocation`,Gge=`accept-ranges`,Kge=`bucket-region`,k7=`client`,A7=`continuation-token`,qge=`delimiter`,j7=`error`,Jge=`encoding-type`,Yge=`fetch-owner`,M7=`http`,N7=`httpChecksum`,P7=`httpError`,Z=`httpHeader`,F7=`httpPayload`,I7=`httpPrefixHeaders`,Q=`httpQuery`,Xge=`max-buckets`,Zge=`max-keys`,L7=`prefix`,R7=`partNumber`,Qge=`response-cache-control`,$ge=`response-content-disposition`,e_e=`response-content-encoding`,t_e=`response-content-language`,n_e=`response-content-type`,r_e=`response-expires`,z7=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,i_e=`start-after`,a_e=`streaming`,B7=`uploadId`,V7=`versionId`,H7=`xmlFlattened`,U7=`xmlName`,W7=`x-amz-acl`,o_e=`x-amz-abort-date`,s_e=`x-amz-abort-rule-id`,c_e=`x-amz-bucket-arn`,l_e=`x-amz-bypass-governance-retention`,u_e=`x-amz-bucket-namespace`,d_e=`x-amz-bucket-object-lock-enabled`,G7=`x-amz-checksum-algorithm`,K7=`x-amz-checksum-crc32`,q7=`x-amz-checksum-crc32c`,J7=`x-amz-checksum-crc64nvme`,Y7=`x-amz-checksum-md5`,f_e=`x-amz-checksum-mode`,X7=`x-amz-checksum-sha1`,Z7=`x-amz-checksum-sha256`,Q7=`x-amz-checksum-sha512`,p_e=`x-amz-create-session-mode`,$7=`x-amz-checksum-type`,e9=`x-amz-checksum-xxhash64`,t9=`x-amz-checksum-xxhash3`,n9=`x-amz-checksum-xxhash128`,r9=`x-amz-delete-marker`,i9=`x-amz-expiration`,a9=`x-amz-expected-bucket-owner`,o9=`x-amz-grant-full-control`,s9=`x-amz-grant-read`,c9=`x-amz-grant-read-acp`,m_e=`x-amz-grant-write`,l9=`x-amz-grant-write-acp`,h_e=`x-amz-if-match-initiated-time`,g_e=`x-amz-if-match-last-modified-time`,__e=`x-amz-if-match-size`,u9=`x-amz-meta-`,v_e=`x-amz-mfa`,y_e=`x-amz-missing-meta`,b_e=`x-amz-mp-object-size`,x_e=`x-amz-mp-parts-count`,d9=`x-amz-object-lock-legal-hold`,f9=`x-amz-object-lock-mode`,p9=`x-amz-object-lock-retain-until-date`,S_e=`x-amz-object-ownership`,C_e=`x-amz-optional-object-attributes`,w_e=`x-amz-object-size`,T_e=`x-amz-restore`,m9=`x-amz-request-charged`,h9=`x-amz-request-payer`,E_e=`x-amz-replication-status`,g9=`x-amz-storage-class`,_9=`x-amz-sdk-checksum-algorithm`,v9=`x-amz-server-side-encryption`,y9=`x-amz-server-side-encryption-aws-kms-key-id`,b9=`x-amz-server-side-encryption-bucket-key-enabled`,x9=`x-amz-server-side-encryption-context`,S9=`x-amz-server-side-encryption-customer-algorithm`,C9=`x-amz-server-side-encryption-customer-key`,w9=`x-amz-server-side-encryption-customer-key-MD5`,T9=`x-amz-tagging`,D_e=`x-amz-tagging-count`,E9=`x-amz-version-id`,O_e=`x-amz-write-offset-bytes`,D9=`x-amz-website-redirect-location`,$=`com.amazonaws.s3`,O9=dt.for(z7),k_e=[-3,z7,`S3ServiceException`,0,[],[]];O9.registerError(k_e,J8);var k9=dt.for($),A_e=[-3,$,jme,{[j7]:k7,[P7]:403},[],[]];k9.registerError(A_e,_me);var j_e=[-3,$,zme,{[j7]:k7,[P7]:409},[],[]];k9.registerError(j_e,yme);var M_e=[-3,$,Bme,{[j7]:k7,[P7]:409},[],[]];k9.registerError(M_e,bme);var N_e=[-3,$,yhe,{[j7]:k7,[P7]:400},[],[]];k9.registerError(N_e,Tme);var P_e=[-3,$,Nhe,{[j7]:k7,[P7]:400},[],[]];k9.registerError(P_e,kme);var F_e=[-3,$,Mhe,{[j7]:k7,[P7]:403},[p7,Rme],[0,0]];k9.registerError(F_e,Sme);var I_e=[-3,$,Phe,{[j7]:k7,[P7]:400},[],[]];k9.registerError(I_e,Eme);var L_e=[-3,$,zhe,{[j7]:k7,[P7]:400},[],[]];k9.registerError(L_e,Dme);var R_e=[-3,$,age,{[j7]:k7,[P7]:404},[],[]];k9.registerError(R_e,xme);var z_e=[-3,$,oge,{[j7]:k7,[P7]:404},[],[]];k9.registerError(z_e,Cme);var B_e=[-3,$,sge,{[j7]:k7,[P7]:404},[],[]];k9.registerError(B_e,gme);var V_e=[-3,$,ige,{[j7]:k7},[],[]];k9.registerError(V_e,wme);var H_e=[-3,$,cge,{[j7]:k7,[P7]:403},[],[]];k9.registerError(H_e,Ame);var U_e=[-3,$,dge,{[j7]:k7,[P7]:403},[],[]];k9.registerError(U_e,vme);var W_e=[-3,$,zge,{[j7]:k7,[P7]:400},[],[]];k9.registerError(W_e,Ome);var G_e=[O9,k9],A9=[0,$,Pge,8,0],j9=[0,$,g7,8,0],M9=[0,$,v7,8,0],N9=[0,$,y7,8,0],P9=[0,$,Nge,{[a_e]:1},42],K_e=[3,$,Pme,0,[s7],[[0,{[Z]:m9}]]],q_e=[3,$,Fme,0,[Z8,Y5,E7,c7,I5,Ehe],[[0,1],[0,1],[0,{[Q]:B7}],[0,{[Z]:h9}],[0,{[Z]:a9}],[6,{[Z]:h_e}]],3],J_e=[3,$,Z8,0,[e7,qme,e5,Q8],[0,4,0,0]],Y_e=[3,$,Hme,0,[vhe,T7],[0,0]],X_e=[3,$,nhe,0,[a7],[0]],Z_e=[3,$,Jme,0,[Sge],[[()=>Ave,{[H7]:1,[U7]:Cge}]]],Q_e=[3,$,ahe,0,[R5,o5,s5,c5,S5,C5,w5,y5,k5,A5,j5,o7],[0,0,0,0,0,0,0,0,0,0,0,1]],$_e=[3,$,Yme,{[U7]:Zme},[X5,Z8,Y5,F5,R5,o5,s5,c5,S5,C5,w5,y5,k5,A5,j5,T5,m7,D7,y7,$8,s7],[0,0,0,[0,{[Z]:i9}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Z]:v9}],[0,{[Z]:E9}],[()=>N9,{[Z]:y9}],[2,{[Z]:b9}],[0,{[Z]:m9}]]],eve=[3,$,Qme,0,[Z8,Y5,E7,nge,o5,s5,c5,S5,C5,w5,y5,k5,A5,j5,T5,tge,c7,I5,G5,q5,h7,g7,_7],[[0,1],[0,1],[0,{[Q]:B7}],[()=>Z_e,{[F7]:1,[U7]:x5}],[0,{[Z]:K7}],[0,{[Z]:q7}],[0,{[Z]:J7}],[0,{[Z]:X7}],[0,{[Z]:Z7}],[0,{[Z]:Q7}],[0,{[Z]:Y7}],[0,{[Z]:e9}],[0,{[Z]:t9}],[0,{[Z]:n9}],[0,{[Z]:$7}],[1,{[Z]:b_e}],[0,{[Z]:h9}],[0,{[Z]:a9}],[0,{[Z]:K5}],[0,{[Z]:J5}],[0,{[Z]:S9}],[()=>j9,{[Z]:C9}],[0,{[Z]:w9}]],3],tve=[3,$,i5,0,[Khe,X5,Z8,Lge],[0,()=>gve,()=>Y_e,[()=>I9,0]]],nve=[3,$,Gme,0,[X5,Q8],[[0,{[Z]:X5}],[0,{[Z]:c_e}]]],rve=[3,$,Kme,0,[Z8,Y8,i5,V5,H5,U5,whe,W5,lge,fge,Ume],[[0,1],[0,{[Z]:W7}],[()=>tve,{[F7]:1,[U7]:i5}],[0,{[Z]:o9}],[0,{[Z]:s9}],[0,{[Z]:c9}],[0,{[Z]:m_e}],[0,{[Z]:l9}],[2,{[Z]:d_e}],[0,{[Z]:S_e}],[0,{[Z]:u_e}]],1],ive=[3,$,Xme,{[U7]:jhe},[Mme,Lme,Z8,Y5,E7,m7,h7,_7,y7,v7,$8,s7,r5,T5],[[4,{[Z]:o_e}],[0,{[Z]:s_e}],[0,{[U7]:Z8}],0,0,[0,{[Z]:v9}],[0,{[Z]:S9}],[0,{[Z]:w9}],[()=>N9,{[Z]:y9}],[()=>M9,{[Z]:x9}],[2,{[Z]:b9}],[0,{[Z]:m9}],[0,{[Z]:G7}],[0,{[Z]:$7}]]],ave=[3,$,$me,0,[Z8,Y5,Y8,a5,d5,p5,m5,D5,B5,V5,H5,U5,W5,Q5,m7,p7,O7,h7,g7,_7,y7,v7,$8,c7,w7,r7,i7,n7,I5,r5,T5],[[0,1],[0,1],[0,{[Z]:W7}],[0,{[Z]:l5}],[0,{[Z]:u5}],[0,{[Z]:f5}],[0,{[Z]:h5}],[0,{[Z]:E5}],[4,{[Z]:B5}],[0,{[Z]:o9}],[0,{[Z]:s9}],[0,{[Z]:c9}],[0,{[Z]:l9}],[128,{[I7]:u9}],[0,{[Z]:v9}],[0,{[Z]:g9}],[0,{[Z]:D9}],[0,{[Z]:S9}],[()=>j9,{[Z]:C9}],[0,{[Z]:w9}],[()=>N9,{[Z]:y9}],[()=>M9,{[Z]:x9}],[2,{[Z]:b9}],[0,{[Z]:h9}],[0,{[Z]:T9}],[0,{[Z]:f9}],[5,{[Z]:p9}],[0,{[Z]:d9}],[0,{[Z]:a9}],[0,{[Z]:G7}],[0,{[Z]:$7}]],2],ove=[3,$,lhe,{[U7]:uhe},[M5,m7,y7,v7,$8],[[()=>Cve,{[U7]:M5}],[0,{[Z]:v9}],[()=>N9,{[Z]:y9}],[()=>M9,{[Z]:x9}],[2,{[Z]:b9}]],1],sve=[3,$,dhe,0,[Z8,Ige,m7,y7,v7,$8],[[0,1],[0,{[Z]:p_e}],[0,{[Z]:v9}],[()=>N9,{[Z]:y9}],[()=>M9,{[Z]:x9}],[2,{[Z]:b9}]],1],cve=[3,$,hhe,0,[N5,D7,s7],[[2,{[Z]:r9}],[0,{[Z]:E9}],[0,{[Z]:m9}]]],lve=[3,$,ghe,0,[Z8,Y5,$he,D7,c7,Vme,I5,G5,Dhe,Ohe],[[0,1],[0,1],[0,{[Z]:v_e}],[0,{[Q]:V7}],[0,{[Z]:h9}],[2,{[Z]:l_e}],[0,{[Z]:a9}],[0,{[Z]:K5}],[6,{[Z]:g_e}],[1,{[Z]:__e}]],2],uve=[3,$,She,0,[t5,N5,Ime,F5,Mge,Z5,_5,R5,o5,s5,c5,S5,C5,w5,y5,k5,A5,j5,T5,ege,D7,a5,d5,p5,m5,she,D5,B5,L5,O7,m7,Q5,h7,_7,y7,$8,p7,s7,jge,hge,Rge,r7,i7,n7],[[()=>P9,16],[2,{[Z]:r9}],[0,{[Z]:Gge}],[0,{[Z]:i9}],[0,{[Z]:T_e}],[4,{[Z]:Jhe}],[1,{[Z]:g5}],[0,{[Z]:R5}],[0,{[Z]:K7}],[0,{[Z]:q7}],[0,{[Z]:J7}],[0,{[Z]:X7}],[0,{[Z]:Z7}],[0,{[Z]:Q7}],[0,{[Z]:Y7}],[0,{[Z]:e9}],[0,{[Z]:t9}],[0,{[Z]:n9}],[0,{[Z]:$7}],[1,{[Z]:y_e}],[0,{[Z]:E9}],[0,{[Z]:l5}],[0,{[Z]:u5}],[0,{[Z]:f5}],[0,{[Z]:h5}],[0,{[Z]:che}],[0,{[Z]:E5}],[4,{[Z]:B5}],[0,{[Z]:L5}],[0,{[Z]:D9}],[0,{[Z]:v9}],[128,{[I7]:u9}],[0,{[Z]:S9}],[0,{[Z]:w9}],[()=>N9,{[Z]:y9}],[2,{[Z]:b9}],[0,{[Z]:g9}],[0,{[Z]:m9}],[0,{[Z]:E_e}],[1,{[Z]:x_e}],[1,{[Z]:D_e}],[0,{[Z]:f9}],[5,{[Z]:p9}],[0,{[Z]:d9}]]],dve=[3,$,Che,0,[Z8,Y5,G5,Ahe,q5,Lhe,u7,wge,Tge,Ege,Dge,Oge,kge,D7,h7,g7,_7,c7,o7,I5,the],[[0,1],[0,1],[0,{[Z]:K5}],[4,{[Z]:khe}],[0,{[Z]:J5}],[4,{[Z]:Rhe}],[0,{[Z]:u7}],[0,{[Q]:Qge}],[0,{[Q]:$ge}],[0,{[Q]:e_e}],[0,{[Q]:t_e}],[0,{[Q]:n_e}],[6,{[Q]:r_e}],[0,{[Q]:V7}],[0,{[Z]:S9}],[()=>j9,{[Z]:C9}],[0,{[Z]:w9}],[0,{[Z]:h9}],[1,{[Q]:R7}],[0,{[Z]:a9}],[0,{[Z]:f_e}]],2],fve=[3,$,Uhe,{[U7]:Vhe},[n5,t7,O5,a7],[[()=>Ove,0],()=>F9,0,0]],pve=[3,$,Whe,0,[Qhe,O5,a7,e5],[[1,{[Q]:Xge}],[0,{[Q]:A7}],[0,{[Q]:L7}],[0,{[Q]:Kge}]]],mve=[3,$,Xhe,{[U7]:Ghe},[Ihe,phe,e7,a7,P5,$5,ohe,z5,Bhe,O5,rge,d7,s7],[2,[()=>jve,{[H7]:1}],0,0,0,1,[()=>kve,{[H7]:1}],0,1,0,0,0,[0,{[Z]:m9}]]],hve=[3,$,Zhe,0,[Z8,P5,z5,$5,a7,O5,bhe,d7,c7,I5,pge],[[0,1],[0,{[Q]:qge}],[0,{[Q]:Jge}],[1,{[Q]:Zge}],[0,{[Q]:L7}],[0,{[Q]:A7}],[2,{[Q]:Yge}],[0,{[Q]:i_e}],[0,{[Z]:h9}],[0,{[Z]:a9}],[64,{[Z]:C_e}]],1],gve=[3,$,qhe,0,[T7,e7],[0,0]],_ve=[3,$,mge,0,[Y5,Z5,R5,r5,T5,x7,p7,t7,l7],[0,4,0,[64,{[H7]:1}],0,1,0,()=>F9,()=>Sve]],F9=[3,$,t7,0,[mhe,The],[0,0]],vve=[3,$,_ge,0,[F5,R5,o5,s5,c5,S5,C5,w5,y5,k5,A5,j5,T5,m7,D7,h7,_7,y7,v7,$8,x7,s7],[[0,{[Z]:i9}],[0,{[Z]:R5}],[0,{[Z]:K7}],[0,{[Z]:q7}],[0,{[Z]:J7}],[0,{[Z]:X7}],[0,{[Z]:Z7}],[0,{[Z]:Q7}],[0,{[Z]:Y7}],[0,{[Z]:e9}],[0,{[Z]:t9}],[0,{[Z]:n9}],[0,{[Z]:$7}],[0,{[Z]:v9}],[0,{[Z]:E9}],[0,{[Z]:S9}],[0,{[Z]:w9}],[()=>N9,{[Z]:y9}],[()=>M9,{[Z]:x9}],[2,{[Z]:b9}],[1,{[Z]:w_e}],[0,{[Z]:m9}]]],yve=[3,$,vge,0,[Z8,Y5,Y8,t5,a5,d5,p5,m5,_5,b5,D5,r5,o5,s5,c5,S5,C5,w5,y5,k5,A5,j5,B5,G5,q5,V5,H5,U5,W5,Wge,Q5,m7,p7,O7,h7,g7,_7,y7,v7,$8,c7,w7,r7,i7,n7,I5],[[0,1],[0,1],[0,{[Z]:W7}],[()=>P9,16],[0,{[Z]:l5}],[0,{[Z]:u5}],[0,{[Z]:f5}],[0,{[Z]:h5}],[1,{[Z]:g5}],[0,{[Z]:v5}],[0,{[Z]:E5}],[0,{[Z]:_9}],[0,{[Z]:K7}],[0,{[Z]:q7}],[0,{[Z]:J7}],[0,{[Z]:X7}],[0,{[Z]:Z7}],[0,{[Z]:Q7}],[0,{[Z]:Y7}],[0,{[Z]:e9}],[0,{[Z]:t9}],[0,{[Z]:n9}],[4,{[Z]:B5}],[0,{[Z]:K5}],[0,{[Z]:J5}],[0,{[Z]:o9}],[0,{[Z]:s9}],[0,{[Z]:c9}],[0,{[Z]:l9}],[1,{[Z]:O_e}],[128,{[I7]:u9}],[0,{[Z]:v9}],[0,{[Z]:g9}],[0,{[Z]:D9}],[0,{[Z]:S9}],[()=>j9,{[Z]:C9}],[0,{[Z]:w9}],[()=>N9,{[Z]:y9}],[()=>M9,{[Z]:x9}],[2,{[Z]:b9}],[0,{[Z]:h9}],[0,{[Z]:T9}],[0,{[Z]:f9}],[5,{[Z]:p9}],[0,{[Z]:d9}],[0,{[Z]:a9}]],2],bve=[3,$,bge,0,[D7],[[0,{[Z]:E9}]]],xve=[3,$,xge,0,[Z8,Y5,w7,D7,b5,r5,I5,c7],[[0,1],[0,1],[()=>Tve,{[F7]:1,[U7]:w7}],[0,{[Q]:V7}],[0,{[Z]:v5}],[0,{[Z]:_9}],[0,{[Z]:a9}],[0,{[Z]:h9}]],3],Sve=[3,$,l7,0,[Fhe,Age],[2,4]],Cve=[3,$,Fge,0,[X8,f7,b7,F5],[[0,{[U7]:X8}],[()=>A9,{[U7]:f7}],[()=>A9,{[U7]:b7}],[4,{[U7]:F5}]],4],wve=[3,$,C7,0,[Y5,Uge],[0,0],2],Tve=[3,$,w7,0,[S7],[[()=>I9,0]],1],Eve=[3,$,Vge,0,[m7,R5,o5,s5,c5,S5,C5,w5,y5,k5,A5,j5,h7,_7,y7,$8,s7],[[0,{[Z]:v9}],[0,{[Z]:R5}],[0,{[Z]:K7}],[0,{[Z]:q7}],[0,{[Z]:J7}],[0,{[Z]:X7}],[0,{[Z]:Z7}],[0,{[Z]:Q7}],[0,{[Z]:Y7}],[0,{[Z]:e9}],[0,{[Z]:t9}],[0,{[Z]:n9}],[0,{[Z]:S9}],[0,{[Z]:w9}],[()=>N9,{[Z]:y9}],[2,{[Z]:b9}],[0,{[Z]:m9}]]],Dve=[3,$,Hge,0,[Z8,Y5,o7,E7,t5,_5,b5,r5,o5,s5,c5,S5,C5,w5,y5,k5,A5,j5,h7,g7,_7,c7,I5],[[0,1],[0,1],[1,{[Q]:R7}],[0,{[Q]:B7}],[()=>P9,16],[1,{[Z]:g5}],[0,{[Z]:v5}],[0,{[Z]:_9}],[0,{[Z]:K7}],[0,{[Z]:q7}],[0,{[Z]:J7}],[0,{[Z]:X7}],[0,{[Z]:Z7}],[0,{[Z]:Q7}],[0,{[Z]:Y7}],[0,{[Z]:e9}],[0,{[Z]:t9}],[0,{[Z]:n9}],[0,{[Z]:S9}],[()=>j9,{[Z]:C9}],[0,{[Z]:w9}],[0,{[Z]:h9}],[0,{[Z]:a9}]],4],Ove=[1,$,n5,0,[()=>J_e,{[U7]:Z8}]],kve=[1,$,rhe,0,()=>X_e],Ave=[1,$,ihe,0,()=>Q_e],jve=[1,$,uge,0,[()=>_ve,0]],I9=[1,$,S7,0,[()=>wve,{[U7]:C7}]],Mve=[9,$,Nme,{[M7]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>q_e,()=>K_e],Nve=[9,$,x5,{[M7]:[`POST`,`/{Key+}`,200]},()=>eve,()=>$_e],Pve=[9,$,Wme,{[M7]:[`PUT`,`/`,200]},()=>rve,()=>nve],Fve=[9,$,ehe,{[M7]:[`POST`,`/{Key+}?uploads`,200]},()=>ave,()=>ive],Ive=[9,$,fhe,{[M7]:[`GET`,`/?session`,200]},()=>sve,()=>ove],Lve=[9,$,_he,{[M7]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>lve,()=>cve],Rve=[9,$,xhe,{[N7]:`-`,[M7]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>dve,()=>uve],zve=[9,$,Hhe,{[M7]:[`GET`,`/?x-id=ListBuckets`,200]},()=>pve,()=>fve],Bve=[9,$,Yhe,{[M7]:[`GET`,`/?list-type=2`,200]},()=>hve,()=>mve],Vve=[9,$,gge,{[N7]:`-`,[M7]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>yve,()=>vve],Hve=[9,$,yge,{[N7]:`-`,[M7]:[`PUT`,`/{Key+}?tagging`,200]},()=>xve,()=>bve],Uve=[9,$,Bge,{[N7]:`-`,[M7]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>Dve,()=>Eve],Wve=class extends ce.classBuilder().ep({...q8,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[We(n,e.getEndpointParameterInstructions()),C6(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(Ive).build(){},Gve={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1063.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-s3`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo s3`,test:`yarn g:vitest run`,"test:browser":`node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":`5.2.0`,"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.18`,"@aws-sdk/credential-provider-node":`^3.972.52`,"@aws-sdk/middleware-flexible-checksums":`^3.974.27`,"@aws-sdk/middleware-sdk-s3":`^3.972.48`,"@aws-sdk/signature-v4-multi-region":`^3.996.32`,"@aws-sdk/types":`^3.973.11`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1063.0`,"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`}};function L9(e){return typeof e==`string`?e.length===0:e.byteLength===0}var R9={name:`SHA-1`},z9={name:`HMAC`,hash:R9},Kve=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),qve=function(){function e(e){this.toHash=new Uint8Array,e!==void 0&&(this.key=new Promise(function(t,n){je().crypto.subtle.importKey(`raw`,B9(e),z9,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!L9(e)){var t=B9(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return je().crypto.subtle.sign(z9,t,e.toHash).then(function(e){return new Uint8Array(e)})}):L9(this.toHash)?Promise.resolve(Kve):Promise.resolve().then(function(){return je().crypto.subtle.digest(R9,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array},e}();function B9(e){return typeof e==`string`?Et(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var Jve=function(){function e(e){if(tee(je()))this.hash=new qve(e);else throw Error(`SHA1 not supported`)}return e.prototype.update=function(e,t){this.hash.update(ree(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();async function Yve(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},Zve=[1732584193,4023233417,2562383102,271733878],Qve=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if($ve(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=eye(e),n=0,{byteLength:r}=t;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:e,bufferLength:t,bytesHashed:n}=this,r=n*8;if(e.setUint8(this.bufferLength++,128),t%64>=56){for(let t=this.bufferLength;t<64;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let t=this.bufferLength;t<56;t++)e.setUint8(t,0);e.setUint32(56,r>>>0,!0),e.setUint32(60,Math.floor(r/4294967296),!0),this.hashBuffer(),this.finished=!0}let e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(t*4,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){let{buffer:e,state:t}=this,n=t[0],r=t[1],i=t[2],a=t[3];n=H9(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=H9(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=H9(i,a,n,r,e.getUint32(8,!0),17,606105819),r=H9(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=H9(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=H9(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=H9(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=H9(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=H9(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=H9(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=H9(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=H9(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=H9(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=H9(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=H9(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=H9(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=U9(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=U9(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=U9(i,a,n,r,e.getUint32(44,!0),14,643717713),r=U9(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=U9(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=U9(a,n,r,i,e.getUint32(40,!0),9,38016083),i=U9(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=U9(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=U9(n,r,i,a,e.getUint32(36,!0),5,568446438),a=U9(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=U9(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=U9(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=U9(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=U9(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=U9(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=U9(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=W9(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=W9(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=W9(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=W9(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=W9(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=W9(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=W9(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=W9(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=W9(n,r,i,a,e.getUint32(52,!0),4,681279174),a=W9(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=W9(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=W9(r,i,a,n,e.getUint32(24,!0),23,76029189),n=W9(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=W9(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=W9(i,a,n,r,e.getUint32(60,!0),16,530742520),r=W9(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=G9(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=G9(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=G9(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=G9(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=G9(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=G9(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=G9(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=G9(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=G9(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=G9(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=G9(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=G9(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=G9(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=G9(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=G9(i,a,n,r,e.getUint32(8,!0),15,718787259),r=G9(r,i,a,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=a+t[3]&4294967295}reset(){this.state=Uint32Array.from(Zve),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function V9(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function H9(e,t,n,r,i,a,o){return V9(t&n|~t&r,e,t,i,a,o)}function U9(e,t,n,r,i,a,o){return V9(t&r|n&~r,e,t,i,a,o)}function W9(e,t,n,r,i,a,o){return V9(t^n^r,e,t,i,a,o)}function G9(e,t,n,r,i,a,o){return V9(n^(t|~r),e,t,i,a,o)}function $ve(e){return typeof e==`string`?e.length===0:e.byteLength===0}function eye(e){return typeof e==`string`?bt(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var tye=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??xt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??W8,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??At,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??pme,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Ze},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new ie}],logger:e?.logger??new ut,protocol:e?.protocol??rme,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:G_e,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??Dt,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??de,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??Ce,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??bt,utf8Encoder:e?.utf8Encoder??St}),nye=e=>{let t=De(e),n=()=>t().then(pt),r=tye(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Mt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??xe({serviceId:r.serviceId,clientVersion:Gve.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??aee,maxAttempts:e?.maxAttempts??3,md5:e?.md5??Qve,region:e?.region??ae(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha1:e?.sha1??Jve,sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,streamHasher:e?.streamHasher??Xve,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},rye=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},iye=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),aye=(e,t)=>{let n=Object.assign(Se(e),ht(e),Ge(e),rye(e));return t.forEach(e=>e.configure(n)),Object.assign(e,we(n),He(n),ct(n),iye(n))},oye=class extends $e{config;constructor(...[e]){let t=nye(e||{});super(t),this.initConfig=t;let n=aye(Ipe(mme(iee(Ke(it(pe(Fe(Ope(gt(hme(t))))))))),{session:[()=>this,Wve]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(he(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(Me(this.config,{httpAuthSchemeParametersProvider:fme,identityProviderConfigProvider:async e=>new oe({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(nme(this.config)),this.middlewareStack.use(ome(this.config)),this.middlewareStack.use(Npe(this.config)),this.middlewareStack.use(Vpe(this.config)),this.middlewareStack.use(Kpe(this.config))}destroy(){super.destroy()}},K9=`ap-southeast-2`,q9=`${window.location.protocol}//localhost:9999`,sye=`${window.location.protocol}//localhost:8443`,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null;function cye(){if(!J9){let e=at();if(!e)throw Error(`AWS credentials not configured`);J9=new xI({endpoint:q9,region:K9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),J9.middlewareStack.add(e=>async t=>(me.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return J9}function lye(){if(!Y9){let e=at();if(!e)throw Error(`AWS credentials not configured`);Y9=new lq({endpoint:q9,region:K9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Y9.middlewareStack.add(e=>async t=>(me.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Y9}function uye(){if(!X9){let e=at();if(!e)throw Error(`AWS credentials not configured`);X9=new yse({endpoint:q9,region:K9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),X9.middlewareStack.add(e=>async t=>(me.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return X9}function dye(){if(!Z9){let e=at();if(!e)throw Error(`AWS credentials not configured`);Z9=new Bee({endpoint:q9,region:K9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Z9.middlewareStack.add(e=>async t=>(me.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Z9}function fye(){if(!Q9){let e=at();if(!e)throw Error(`AWS credentials not configured`);Q9=new Spe({endpoint:q9,region:K9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Q9.middlewareStack.add(e=>async t=>(me.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Q9}function pye(){if(!$9){let e=at();if(!e)throw Error(`AWS credentials not configured`);$9=new oye({endpoint:sye,region:K9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken},forcePathStyle:!0}),$9.middlewareStack.add(e=>async t=>(me.isInstance(t.request)&&t.request.path.endsWith(`/`)&&t.request.path!==`/`&&(t.request.path=t.request.path.slice(0,-1)),await e(t)),{step:`build`,name:`removeTrailingSlash`}),$9.middlewareStack.add(e=>async t=>(me.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/s3${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return $9}function mye(){J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null}export{hpe as $,tI as $n,rq as $t,Kfe as A,MF as An,PK as At,npe as B,HF as Bn,WK as Bt,b6 as C,TF as Cn,cse as Ct,Ufe as D,kF as Dn,fse as Dt,Hfe as E,OF as En,dse as Et,Zfe as F,LF as Fn,zK as Ft,spe as G,qF as Gn,YK as Gt,ipe as H,WF as Hn,KK as Ht,Qfe as I,RF as In,BK as It,upe as J,XF as Jn,QK as Jt,cpe as K,JF as Kn,XK as Kt,$fe as L,BF as Ln,VK as Lt,Jfe as M,PF as Mn,IK as Mt,Yfe as N,FF as Nn,LK as Nt,Wfe as O,AF as On,pse as Ot,Xfe as P,IF as Pn,RK as Pt,mpe as Q,eI as Qn,nq as Qt,epe as R,zF as Rn,HK as Rt,Dpe as S,wF as Sn,sse as St,Vfe as T,DF as Tn,use as Tt,ape as U,GF as Un,qK as Ut,rpe as V,UF as Vn,GK as Vt,ope as W,KF as Wn,JK as Wt,fpe as X,QF as Xn,eq as Xt,dpe as Y,ZF as Yn,$K as Yt,ppe as Z,$F as Zn,tq as Zt,Hve as _,yF as _n,pn as _r,nse as _t,uye as a,sF as an,sI as ar,Woe as at,C6 as b,SF as bn,ase as bt,Mve as c,uF as cn,uI as cr,qoe as ct,Fve as d,pF as dn,pI as dr,Xoe as dt,OI as en,nI as er,gpe as et,Lve as f,mF as fn,mI as fr,Zoe as ft,Vve as g,vF as gn,Pee as gr,tse as gt,Bve as h,_F as hn,Nee as hr,ese as ht,lye as i,oF as in,oI as ir,Uoe as it,qfe as j,NF as jn,FK as jt,Gfe as k,jF as kn,hq as kt,Nve as l,dF as ln,dI as lr,Joe as lt,zve as m,gF as mn,Kee as mr,$oe as mt,dye as n,iF as nn,iI as nr,Voe as nt,fye as o,cF as on,cI as or,Goe as ot,Rve as p,hF as pn,hI as pr,Qoe as pt,lpe as q,YF as qn,ZK as qt,cye as r,aF as rn,aI as rr,Hoe as rt,pye as s,lF as sn,lI as sr,Koe as st,mye as t,rF as tn,rI as tr,Tse as tt,Pve as u,fF as un,fI as ur,Yoe as ut,Uve as v,bF as vn,Xt as vr,rse as vt,wpe as w,EF as wn,lse as wt,x6 as x,CF as xn,ose as xt,q8 as y,xF as yn,It as yr,ise as yt,tpe as z,VF as zn,UK as zt}; \ No newline at end of file +import{i as e,n as t,o as n,r}from"./compiler-runtime.js";import{A as i,F as a,H as o,N as s,U as c,i as l,p as ee,s as te,t as ne,u}from"./useStore.js";import{$ as re,A as ie,B as ae,C as oe,Ct as se,Dt as ce,E as le,Et as ue,F as de,Ft as fe,G as pe,H as me,I as he,J as ge,K as _e,L as ve,M as ye,Mt as be,N as xe,Nt as Se,O as Ce,Ot as we,P as Te,Pt as Ee,Q as De,R as Oe,S as ke,St as Ae,T as je,Tt as Me,U as Ne,V as Pe,W as Fe,X as Ie,Y as Le,_ as Re,_t as ze,b as Be,bt as Ve,ct as He,dt as Ue,et as We,ft as Ge,g as Ke,gt as qe,ht as Je,it as Ye,j as Xe,jt as Ze,k as Qe,kt as $e,mt as et,nt as tt,ot as nt,pt as rt,q as it,r as at,rt as ot,st,tt as eee,ut as tee,v as ct,vt as lt,w as ut,wt as d,x as dt,xt as ft,y as pt,yt as mt,z as ht}from"./auth.js";import{A as gt,C as _t,D as vt,F as yt,I as bt,M as xt,N as St,O as Ct,P as wt,S as nee,c as ree,f as Tt,j as iee,k as Et,p as aee,s as oee,u as Dt,v as Ot,x as kt}from"./tslib.es6.js";import{n as At,r as jt}from"./index.browser.js";var Mt=`Error preloading route! ☝️`,Nt=e((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Nt()})),Ft=n(r(),1);t();var It=n(Pt(),1);function Lt(e,t){let n=l(),r=o(t),{activeProps:re,inactiveProps:ie,activeOptions:ae,to:oe,preload:se,preloadDelay:ce,preloadIntentProximity:le,hashScrollIntoView:ue,replace:de,startTransition:fe,resetScroll:pe,viewTransition:me,children:he,target:ge,disabled:_e,style:ve,className:ye,onClick:be,onBlur:xe,onFocus:Se,onMouseEnter:Ce,onMouseLeave:we,onTouchStart:Te,ignoreBlocker:Ee,params:De,search:Oe,hash:ke,state:Ae,mask:je,reloadDocument:Me,unsafeRelative:Ne,from:Pe,_fromLocation:Fe,...Ie}=e,Le=te(),Re=Ft.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),ze=ne(n.stores.location,e=>e,(e,t)=>e.href===t.href),Be=Ft.useMemo(()=>{let e={_fromLocation:ze,...Re};return n.buildLocation(e)},[n,ze,Re]),Ve=Be.maskedLocation?Be.maskedLocation.publicHref:Be.publicHref,He=Be.maskedLocation?Be.maskedLocation.external:Be.external,Ue=Ft.useMemo(()=>Kt(Ve,He,n.history,_e),[_e,He,Ve,n.history]),We=Ft.useMemo(()=>{if(Ue?.external)return a(Ue.href,n.protocolAllowlist)?void 0:Ue.href;if(!qt(oe)&&!(typeof oe!=`string`||oe.indexOf(`:`)===-1))try{return new URL(oe),a(oe,n.protocolAllowlist)?void 0:oe}catch{}},[oe,Ue,n.protocolAllowlist]),Ge=Ft.useMemo(()=>{if(We)return!1;if(ae?.exact){if(!u(ze.pathname,Be.pathname,n.basepath))return!1}else{let e=ee(ze.pathname,n.basepath),t=ee(Be.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(ae?.includeSearch??!0)&&!i(ze.search,Be.search,{partial:!ae?.exact,ignoreUndefined:!ae?.explicitUndefined})?!1:ae?.includeHash?Le&&ze.hash===Be.hash:!0},[ae?.exact,ae?.explicitUndefined,ae?.includeHash,ae?.includeSearch,ze,We,Le,Be.hash,Be.pathname,Be.search,n.basepath]),Ke=Ge?s(re,{})??zt:Rt,qe=Ge?Rt:s(ie,{})??Rt,Je=[ye,Ke.className,qe.className].filter(Boolean).join(` `),Ye=(ve||Ke.style||qe.style)&&{...ve,...Ke.style,...qe.style},[Xe,Ze]=Ft.useState(!1),Qe=Ft.useRef(!1),$e=e.reloadDocument||We?!1:se??n.options.defaultPreload,et=ce??n.options.defaultPreloadDelay??0,tt=Ft.useCallback(()=>{n.preloadRoute({...Re,_builtLocation:Be}).catch(e=>{console.warn(e),console.warn(Mt)})},[n,Re,Be]);c(r,Ft.useCallback(e=>{e?.isIntersecting&&tt()},[tt]),Wt,{disabled:!!_e||$e!==`viewport`}),Ft.useEffect(()=>{Qe.current||!_e&&$e===`render`&&(tt(),Qe.current=!0)},[_e,tt,$e]);let nt=e=>{let t=e.currentTarget.getAttribute(`target`),r=ge===void 0?t:ge;if(!_e&&!Yt(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,It.flushSync)(()=>{Ze(!0)});let t=n.subscribe(`onResolved`,()=>{t(),Ze(!1)});n.navigate({...Re,replace:de,resetScroll:pe,hashScrollIntoView:ue,startTransition:fe,viewTransition:me,ignoreBlocker:Ee})}};if(We)return{...Ie,ref:r,href:We,...he&&{children:he},...ge&&{target:ge},..._e&&{disabled:_e},...ve&&{style:ve},...ye&&{className:ye},...be&&{onClick:be},...xe&&{onBlur:xe},...Se&&{onFocus:Se},...Ce&&{onMouseEnter:Ce},...we&&{onMouseLeave:we},...Te&&{onTouchStart:Te}};let rt=e=>{if(_e||$e!==`intent`)return;if(!et){tt();return}let t=e.currentTarget;if(Ut.has(t))return;let n=setTimeout(()=>{Ut.delete(t),tt()},et);Ut.set(t,n)},it=e=>{_e||$e!==`intent`||tt()},at=e=>{if(_e||!$e||!et)return;let t=e.currentTarget,n=Ut.get(t);n&&(clearTimeout(n),Ut.delete(t))};return{...Ie,...Ke,...qe,href:Ue?.href,ref:r,onClick:Gt([be,nt]),onBlur:Gt([xe,at]),onFocus:Gt([Se,rt]),onMouseEnter:Gt([Ce,rt]),onMouseLeave:Gt([we,at]),onTouchStart:Gt([Te,it]),disabled:!!_e,target:ge,...Ye&&{style:Ye},...Je&&{className:Je},..._e&&Bt,...Ge&&Vt,...Le&&Xe&&Ht}}var Rt={},zt={className:`active`},Bt={role:`link`,"aria-disabled":!0},Vt={"data-status":`active`,"aria-current":`page`},Ht={"data-transitioning":`transitioning`},Ut=new WeakMap,Wt={rootMargin:`100px`},Gt=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Kt(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function qt(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Jt=Ft.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=Lt(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return Ft.createElement(`a`,t,o)}return Ft.createElement(n,a,o)});function Yt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Xt=class extends Ye{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=d.of(e?.input),l=[],ee=[],te=!1,ne,u=new Ee({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(u,s),this.setHostPrefix(u,e,r);let t=Me(e.traits);if(t.http){u.method=t.http[0];let[e,n]=t.http[1].split(`?`);u.path==`/`?u.path=e:u.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)a[e]=t}}for(let[e,t]of c.structIterator()){let n=t.getMergedTraits()??{},s=r[e];if(s==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(u.path.includes(`{${e}+}`)||u.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(ne=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):ne=s:(i.write(t,s),ne=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();u.path.includes(`{${e}+}`)?u.path=u.path.replace(`{${e}+}`,n.split(`/`).map(st).join(`/`)):u.path.includes(`{${e}}`)&&(u.path=u.path.replace(`{${e}}`,st(n)))}else if(n.httpHeader)i.write(t,s),o[n.httpHeader.toLowerCase()]=String(i.flush());else if(typeof n.httpPrefixHeaders==`string`)for(let e in s){let r=s[e],a=n.httpPrefixHeaders+e;i.write([t.getValueSchema(),{httpHeader:a}],r),o[a.toLowerCase()]=i.flush()}else n.httpQuery||n.httpQueryParams?this.serializeQuery(t,s,a):(te=!0,l.push(e),ee.push(t))}if(te&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,ee,void 0];n?a[6]=n:a.pop(),i.write(a,r),ne=i.flush()}return u.headers=o,u.query=a,u.body=ne,u}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=d.of(e.output),a={};if(n.statusCode>=300){let i=await He(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await He(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await He(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,s=this.deserializer,c=d.of(e),l=[];for(let[e,r]of c.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:c}):a[e]=Tt(n.body);else if(n.body){let i=await He(n.body,t);i.byteLength>0&&(a[e]=await s.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?_t(o,`,`,2):nee(o);let c=[];for(let e of i)c.push(await s.read(n,e.trim()));a[e]=c}else a[e]=await s.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let t in n.headers)if(t.startsWith(i.httpPrefixHeaders)){let o=n.headers[t],c=r.getValueSchema();c.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await s.read(c,o)}}else i.httpResponseCode?a[e]=n.statusCode:l.push(e)}return l.discardResponseBody=o,l}},Zt=class extends nt{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new eee(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=d.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??St;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??yt;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},see=class extends nt{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=d.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(tt(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=Et(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??wt)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:vt(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=Ct.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??wt)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=Dt():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},Qt=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new see(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=d.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};function cee(e,t,n){if(n?.source){let e=n.source;if(typeof t==`number`&&(t>2**53-1||t<-(2**53-1)||e!==String(t)))return e.includes(`.`)?new kt(e,`bigDecimal`):BigInt(e)}return t}var lee=(e,t)=>He(e,t).then(e=>(t?.utf8Encoder??St)(e)),uee=(e,t)=>lee(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),$t=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),en=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t},dee=(e,t)=>tn(e,t,[`header`,`code`,`type`]),fee=(e,t,n=!1)=>tn(e,t,n?[`code`,`header`,`type`]:[`type`,`code`,`header`]),tn=({headers:e},t,n)=>{for(;n.length>0;)switch(n.shift()){case`header`:let n=$t(e??{},`x-amzn-errortype`);if(n!==void 0)return en(e[n]);break;case`code`:let r=$t(t??{},`code`);if(r&&t[r]!==void 0)return en(t[r]);break;case`type`:if(t?.__type!==void 0)return en(t.__type);break}},pee=class extends pt{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,cee):await uee(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=d.of(e);if(n){if(r.isStructSchema()){let e=t,n=r.isUnionSchema(),i={},a,{jsonName:o}=this.settings;o&&(a={});let s;n&&(s=new ct(e,i));for(let[t,c]of r.structIterator()){let r=t;o&&(r=c.getMergedTraits().jsonName??r,a[r]=t),n&&s.mark(r),e[r]!=null&&(i[t]=this._read(c,e[r]))}if(n)s.writeUnknown();else if(typeof e.__type==`string`)for(let t in e){let n=e[t],r=o?a[t]??t:t;r in i||(i[r]=n)}return i}if(Array.isArray(t)&&r.isListSchema()){let e=r.getValueSchema(),n=[];for(let r of t)n.push(this._read(e,r));return n}if(r.isMapSchema()){let e=r.getValueSchema(),n={};for(let r in t)n[r]=this._read(e,t[r]);return n}}if(r.isBlobSchema()&&typeof t==`string`)return bt(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?Ct.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(tt(r,this.settings)){case 5:return iee(t);case 6:return xt(t);case 7:return gt(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(r.isBigIntegerSchema()&&(typeof t==`number`||typeof t==`string`))return BigInt(t);if(r.isBigDecimalSchema()&&t!=null){if(t instanceof kt)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new kt(e.string,e.type):new kt(String(t),`bigDecimal`)}if(r.isNumericSchema()&&typeof t==`string`){switch(t){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return t}if(r.isDocumentSchema())if(n){let e=Array.isArray(t)?[]:{};for(let n in t){let i=t[n];i instanceof kt?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}},mee=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(e,t)=>{if(t instanceof kt){let e=`${`Νnv`+ this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${`Νb`+ this.counter++}_`+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}},hee=class extends pt{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=d.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new mee;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),typeof this.buffer==`object`&&(this.buffer.__type=d.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=d.of(e);if(r){if(i.isStructSchema()){let e=t,n={},{jsonName:r}=this.settings,a;r&&(a={});let o=0;for(let[t,s]of i.structIterator()){let c=this._write(s,e[t],i);if(c!==void 0){let e=t;r&&(e=s.getMergedTraits().jsonName??t,a[t]=e),n[e]=c,o++}}if(i.isUnionSchema()&&o===0){let{$unknown:t}=e;if(Array.isArray(t)){let[e,r]=t;n[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let t in e){let i=e[t],o=r?a[t]??t:t;o in n||(n[o]=this._write(15,i))}return n}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),n=[],r=!!i.getMergedTraits().sparse;for(let i of t)(r||i!=null)&&n.push(this._write(e,i));return n}if(i.isMapSchema()){let e=i.getValueSchema(),n={},r=!!i.getMergedTraits().sparse;for(let i in t){let a=t[i];(r||a!=null)&&(n[i]=this._write(e,a))}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??wt)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(tt(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return Et(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof kt&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return Dt();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?Ct.from(t):t}if(typeof t==`number`&&i.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if(typeof t==`string`&&i.isBlobSchema())return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??wt)(t);if(typeof t==`bigint`&&(this.useReplacer=!0),i.isDocumentSchema())if(r){let e=Array.isArray(t)?[]:{};for(let n in t){let r=t[n];r instanceof kt?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}},nn=class extends pt{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new hee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new pee(this.settings);return e.setSerdeContext(this.serdeContext),e}},gee=class extends ot{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t}),this.serviceTarget=n,this.codec=i??new nn({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new Be(this.awsQueryCompatible)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-amz-json-${this.getJsonRpcVersion()}`,r.headers[`x-amz-target`]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(r.headers[`x-amzn-query-mode`]=`true`),(ce(e.input)===`unit`||!r.body)&&(r.body=`{}`),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,i){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(r,n);let o=fee(n,r,a)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:s,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,n,r,i,a?this.mixin.findQueryCompatibleError:void 0),l=d.of(s),ee=r.message??r.Message??`UnknownError`,te=new((this.compositeErrorRegistry.getErrorCtor(s))??Error)({}),ne={},u=this.codec.createDeserializer();for(let[e,t]of l.structIterator())r[e]!=null&&(ne[e]=u.readObject(t,r[e]));throw a&&this.mixin.queryCompatOutput(r,ne),this.mixin.decorateServiceException(Object.assign(te,c,{$fault:l.getMergedTraits().error,message:ee},ne),r)}},_ee=class extends gee{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_1`}getJsonRpcVersion(){return`1.1`}getDefaultContentType(){return`application/x-amz-json-1.1`}},vee=class extends Xt{serializer;deserializer;codec;mixin=new Be;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new nn(n),this.serializer=new Qt(this.codec.createSerializer(),n),this.deserializer=new Zt(this.codec.createDeserializer(),n)}getShapeId(){return`aws.protocols#restJson1`}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=d.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return r.body==null&&r.headers[`content-type`]===this.getDefaultContentType()&&(r.body=`{}`),r}async deserializeResponse(e,t,n){let r=await super.deserializeResponse(e,t,n),i=d.of(e.output);for(let[e,t]of i.structIterator())t.getMemberTraits().httpPayload&&!(e in r)&&(r[e]=null);return r}async handleError(e,t,n,r,i){let a=dee(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=d.of(o),l=r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().jsonName??e;te[e]=ne.readObject(t,r[n])}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/json`}},yee=/[&<>"]/g,bee={"&":`&`,"<":`<`,">":`>`,'"':`"`};function xee(e){return e.replace(yee,e=>bee[e])}var See=/[&"'<>\r\n\u0085\u2028]/g,Cee={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function wee(e){return e.replace(See,e=>Cee[e])}var rn=class{value;constructor(e){this.value=e}toString(){return wee(``+this.value)}},an=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new rn(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${xee(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},Tee=class extends Ke{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}getShapeId(){return`aws.protocols#ec2Query`}useNestedResult(){return!1}},Eee=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return`NotFound`},Dee=class extends pt{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=d.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??bt)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=an.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=an.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=an.of(e);if(typeof n!=`string`)if(t instanceof an||t instanceof rn)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,ee]=this.getXmlnsAttribute(e,r),te=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,ee);else if(a.isMapSchema())this.writeMap(a,n,t,ee);else if(a.isStructSchema()){let r=this.writeStruct(a,n,ee);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=an.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,ee),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&te(n,e);else{let r=an.of(i.xmlName??e.getMemberName());ee&&r.addAttribute(l,ee);for(let e of t)(s||e!=null)&&te(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),ee=l.xmlName??`value`,te=!!l.sparse,ne=!!a.xmlFlattened,[u,re]=this.getXmlnsAttribute(e,r),ie=(e,t,n)=>{let r=an.of(s,t),[i,a]=this.getXmlnsAttribute(o,re);a&&r.addAttribute(i,a),e.addChildNode(r);let l=an.of(ee);c.isListSchema()?this.writeList(c,n,l,re):c.isMapSchema()?this.writeMap(c,n,l,re,!0):c.isStructSchema()?l=this.writeStruct(c,n,re):this.writeSimpleInto(c,n,l,re),e.addChildNode(l)};if(ne)for(let r in t){let i=t[r];if(te||i!=null){let t=an.of(a.xmlName??e.getMemberName());ie(t,r,i),n.addChildNode(t)}}else{let r;i||(r=an.of(a.xmlName??e.getMemberName()),re&&r.addAttribute(u,re),n.addChildNode(r));for(let e in t){let a=t[e];if(te||a!=null){let t=an.of(`entry`);ie(t,e,a),(i?n:r).addChildNode(t)}}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=d.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??wt)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(tt(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=Et(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=Et(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof kt?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?Dt():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=d.of(e),o=new rn(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}},Oee=class extends pt{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Dee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Re(this.settings);return e.setSerdeContext(this.serdeContext),e}},on=class extends Xt{codec;serializer;deserializer;mixin=new Be;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Oee(t),this.serializer=new Qt(this.codec.createSerializer(),t),this.deserializer=new Zt(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=d.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=Eee(n,r)??`Unknown`;if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=d.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];te[e]=ne.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}},sn=async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function cn(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`acm`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var ln=e=>{let t=[];switch(e.operation){default:t.push(cn(e))}return t},un=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},dn=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`acm`}),fn={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},pn={name:`@aws-sdk/client-acm`,description:`AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo acm`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-acm`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-acm`}},mn=`ref`,hn=-1,gn=!0,_n=`isSet`,vn=`PartitionResult`,yn=`booleanEquals`,bn=`getAttr`,xn={[mn]:`Endpoint`},Sn={[mn]:vn},Cn={},wn=[{[mn]:`Region`}],Tn={conditions:[[_n,[xn]],[_n,wn],[`aws.partition`,wn,vn],[yn,[{[mn]:`UseFIPS`},gn]],[yn,[{[mn]:`UseDualStack`},gn]],[yn,[{fn:bn,argv:[Sn,`supportsDualStack`]},gn]],[yn,[{fn:bn,argv:[Sn,`supportsFIPS`]},gn]],[`stringEquals`,[{fn:bn,argv:[Sn,`name`]},`aws-us-gov`]]],results:[[hn],[hn,`Invalid Configuration: FIPS and custom endpoint are not supported`],[hn,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[xn,Cn],[`https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Cn],[hn,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://acm.{Region}.amazonaws.com`,Cn],[`https://acm-fips.{Region}.{PartitionResult#dnsSuffix}`,Cn],[hn,`FIPS is enabled but this partition does not support FIPS`],[`https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}`,Cn],[hn,`DualStack is enabled but this partition does not support DualStack`],[`https://acm.{Region}.{PartitionResult#dnsSuffix}`,Cn],[hn,`Invalid Configuration: Missing Region`]]},En=2,Dn=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),On=Je.from(Dn,En,Tn.conditions,Tn.results),kn=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),An=(e,t={})=>kn.get(e,()=>Ge(On,{endpointParams:e,logger:t.logger}));rt.aws=de;var jn=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Mn=class e extends jn{name=`AccessDeniedException`;$fault=`client`;Message;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Nn=class e extends jn{name=`InvalidArnException`;$fault=`client`;constructor(t){super({name:`InvalidArnException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Pn=class e extends jn{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Fn=class e extends jn{name=`InvalidTagException`;$fault=`client`;constructor(t){super({name:`InvalidTagException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},In=class e extends jn{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ln=class e extends jn{name=`TagPolicyException`;$fault=`client`;constructor(t){super({name:`TagPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Rn=class e extends jn{name=`ThrottlingException`;$fault=`client`;throttlingReasons;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.throttlingReasons=t.throttlingReasons}},zn=class e extends jn{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bn=class e extends jn{name=`ConflictException`;$fault=`client`;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Vn=class e extends jn{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Hn=class e extends jn{name=`RequestInProgressException`;$fault=`client`;constructor(t){super({name:`RequestInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Un=class e extends jn{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Wn=class e extends jn{name=`InvalidArgsException`;$fault=`client`;constructor(t){super({name:`InvalidArgsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Gn=class e extends jn{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Kn=class e extends jn{name=`InvalidDomainValidationOptionsException`;$fault=`client`;constructor(t){super({name:`InvalidDomainValidationOptionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qn=class e extends jn{name=`InvalidStateException`;$fault=`client`;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Jn=`AccessDeniedException`,Yn=`Certificate`,Xn=`CreatedAt`,Zn=`CertificateArn`,Qn=`CertificateChain`,$n=`ConflictException`,er=`CertificateSummary`,tr=`CertificateSummaryList`,nr=`CertificateStatuses`,rr=`DomainName`,ir=`Exported`,ar=`ExtendedKeyUsages`,or=`ExportOption`,sr=`Filters`,cr=`HasAdditionalSubjectAlternativeNames`,lr=`ImportedAt`,ur=`InvalidArgsException`,dr=`InvalidArnException`,fr=`IssuedAt`,pr=`ImportCertificate`,mr=`ImportCertificateRequest`,hr=`ImportCertificateResponse`,gr=`InvalidDomainValidationOptionsException`,_r=`InvalidParameterException`,vr=`InvalidStateException`,yr=`InvalidTagException`,br=`InUse`,xr=`Includes`,Sr=`Key`,Cr=`KeyAlgorithm`,wr=`KeyUsages`,Tr=`ListCertificates`,Er=`ListCertificatesRequest`,Dr=`ListCertificatesResponse`,Or=`LimitExceededException`,kr=`Message`,Ar=`ManagedBy`,jr=`MaxItems`,Mr=`NotAfter`,Nr=`NotBefore`,Pr=`NextToken`,Fr=`PrivateKey`,Ir=`PrivateKeyBlob`,Lr=`RevokedAt`,Rr=`RenewalEligibility`,zr=`RequestInProgressException`,Br=`ResourceInUseException`,Vr=`ResourceNotFoundException`,Hr=`Status`,Ur=`SubjectAlternativeNameSummaries`,Wr=`SortBy`,Gr=`SortOrder`,Kr=`Type`,qr=`ThrottlingException`,Jr=`TagList`,Yr=`TooManyTagsException`,Xr=`TagPolicyException`,Zr=`ThrottlingReason`,Qr=`ThrottlingReasonList`,$r=`Tags`,ei=`Tag`,ti=`Value`,ni=`ValidationException`,ri=`awsQueryError`,ii=`client`,ai=`error`,oi=`extendedKeyUsage`,si=`exportOption`,ci=`httpError`,li=`keyTypes`,ui=`keyUsage`,di=`message`,fi=`managedBy`,pi=`reason`,mi=`resource`,hi=`smithy.ts.sdk.synthetic.com.amazonaws.acm`,gi=`throttlingReasons`,f=`com.amazonaws.acm`,_i=se.for(hi),vi=[-3,hi,`ACMServiceException`,0,[],[]];_i.registerError(vi,jn);var yi=se.for(f),bi=[-3,f,Jn,{[ri]:[`AccessDenied`,403],[ai]:ii,[ci]:403},[kr],[0]];yi.registerError(bi,Mn);var xi=[-3,f,$n,{[ai]:ii},[di],[0]];yi.registerError(xi,Bn);var Si=[-3,f,ur,{[ai]:ii},[di],[0]];yi.registerError(Si,Wn);var Ci=[-3,f,dr,{[ai]:ii},[di],[0]];yi.registerError(Ci,Nn);var wi=[-3,f,gr,{[ai]:ii},[di],[0]];yi.registerError(wi,Kn);var Ti=[-3,f,_r,{[ai]:ii},[di],[0]];yi.registerError(Ti,Pn);var Ei=[-3,f,vr,{[ai]:ii},[di],[0]];yi.registerError(Ei,qn);var Di=[-3,f,yr,{[ai]:ii},[di],[0]];yi.registerError(Di,Fn);var Oi=[-3,f,Or,{[ai]:ii},[di],[0]];yi.registerError(Oi,Un);var ki=[-3,f,zr,{[ai]:ii},[di],[0]];yi.registerError(ki,Hn);var Ai=[-3,f,Br,{[ai]:ii},[di],[0]];yi.registerError(Ai,Vn);var ji=[-3,f,Vr,{[ai]:ii},[di],[0]];yi.registerError(ji,In);var Mi=[-3,f,Xr,{[ai]:ii},[di],[0]];yi.registerError(Mi,Ln);var Ni=[-3,f,qr,{[ri]:[`Throttling`,400],[ai]:ii,[ci]:400},[di,gi],[0,()=>Ree]];yi.registerError(Ni,Rn);var Pi=[-3,f,Yr,{[ai]:ii},[di],[0]];yi.registerError(Pi,zn);var Fi=[-3,f,ni,{[ri]:[`ValidationError`,400],[ai]:ii,[ci]:400},[di],[0]];yi.registerError(Fi,Gn);var Ii=[_i,yi],Li=[0,f,Ir,8,21],Ri=[3,f,er,0,[Zn,rr,Ur,cr,Hr,Kr,Cr,wr,ar,or,br,ir,Rr,Nr,Mr,Xn,fr,lr,Lr,Ar],[0,0,64,2,0,0,0,64,64,0,2,2,0,4,4,4,4,4,4,0]],kee=[3,f,sr,0,[oi,ui,li,si,fi],[64,64,64,0,0]],Aee=[3,f,mr,0,[Yn,Fr,Zn,Qn,$r],[21,[()=>Li,0],0,21,()=>Lee],2],jee=[3,f,hr,0,[Zn],[0]],Mee=[3,f,Er,0,[nr,xr,Pr,jr,Wr,Gr],[64,()=>kee,0,1,0,0]],Nee=[3,f,Dr,0,[Pr,tr],[0,()=>Iee]],Pee=[3,f,ei,0,[Sr,ti],[0,0],1],Fee=[3,f,Zr,0,[pi,mi],[0,0]],Iee=[1,f,tr,0,()=>Ri],Lee=[1,f,Jr,0,()=>Pee],Ree=[1,f,Qr,0,()=>Fee],zee=[9,f,pr,0,()=>Aee,()=>jee],Bee=[9,f,Tr,0,()=>Mee,()=>Nee],Vee=e=>({apiVersion:`2015-12-08`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??An,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ln,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie}],logger:e?.logger??new ze,protocol:e?.protocol??_ee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.acm`,errorTypeRegistries:Ii,version:`2015-12-08`,serviceTarget:`CertificateManager`},serviceId:e?.serviceId??`ACM`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),Hee=e=>{let t=xe(e),n=()=>t().then(Ve),r=Vee(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:pn.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Uee=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Wee=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Gee=(e,t)=>{let n=Object.assign(Xe(e),lt(e),re(e),Uee(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),Wee(n))},Kee=class extends we{config;constructor(...[e]){let t=Hee(e||{});super(t),this.initConfig=t;let n=Gee(un(Ue(_e(Te(Le(Oe(dn(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:sn,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ae(this.config))}destroy(){super.destroy()}},qee=async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Jee(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Yee=e=>{let t=[];switch(e.operation){default:t.push(Jee(e))}return t},Xee=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},Zee=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),Qee={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},$ee={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo ec2`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/middleware-sdk-ec2":`^3.972.34`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ec2`}},zi=`ref`,Bi=-1,Vi=!0,Hi=`isSet`,Ui=`PartitionResult`,Wi=`booleanEquals`,Gi=`getAttr`,Ki={[zi]:`Endpoint`},qi={[zi]:Ui},Ji={},Yi=[{[zi]:`Region`}],Xi={conditions:[[Hi,[Ki]],[Hi,Yi],[`aws.partition`,Yi,Ui],[Wi,[{[zi]:`UseFIPS`},Vi]],[Wi,[{[zi]:`UseDualStack`},Vi]],[Wi,[{fn:Gi,argv:[qi,`supportsDualStack`]},Vi]],[Wi,[{fn:Gi,argv:[qi,`supportsFIPS`]},Vi]],[`stringEquals`,[{fn:Gi,argv:[qi,`name`]},`aws-us-gov`]]],results:[[Bi],[Bi,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Bi,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Ki,Ji],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Ji],[Bi,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,Ji],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,Ji],[Bi,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,Ji],[Bi,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,Ji],[Bi,`Invalid Configuration: Missing Region`]]},ete=2,tte=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),nte=Je.from(tte,ete,Xi.conditions,Xi.results),rte=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),ite=(e,t={})=>rte.get(e,()=>Ge(nte,{endpointParams:e,logger:t.logger}));rt.aws=de;var ate=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Zi=`Address`,ote=`AllocateAddressRequest`,ste=`AllocateAddressResult`,cte=`AssociateAddressRequest`,lte=`AssociateAddressResult`,ute=`AllAvailabilityZones`,dte=`AllocateAddress`,fte=`ApplianceArn`,pte=`AssociateAddress`,mte=`AttachedAppliances`,hte=`AttributeBooleanValue`,gte=`AssociateCarrierIpAddress`,_te=`AdditionalFlexibleNetworkInterfaces`,vte=`AvailableIpAddressCount`,Qi=`AssignIpv6AddressOnCreation`,yte=`AttachInternetGateway`,bte=`AttachInternetGatewayRequest`,xte=`AssociateIamInstanceProfile`,Ste=`AssociateIamInstanceProfileRequest`,Cte=`AssociateIamInstanceProfileResult`,wte=`AllocationIdList`,Tte=`AssociationIdList`,$i=`AdditionalInfo`,ea=`AllocationId`,ta=`AllocationIds`,na=`AssociationId`,Ete=`AssociationIds`,ra=`AttachmentId`,Dte=`AmiLaunchIndex`,Ote=`AttachmentLimitType`,kte=`AddressList`,ia=`AvailabilityMode`,Ate=`AssociatePublicIpAddress`,jte=`AmazonProvidedIpv6CidrBlock`,Mte=`AutoProvisionZones`,Nte=`AutoRecoverySupported`,Pte=`AssociateRouteTableRequest`,Fte=`AssociateRouteTableResult`,Ite=`AssociateRouteTable`,Lte=`AllowReassociation`,Rte=`AllRegions`,aa=`AssociatedResource`,oa=`AutoRecovery`,sa=`AssociationState`,zte=`AuthorizeSecurityGroupEgress`,Bte=`AuthorizeSecurityGroupEgressRequest`,Vte=`AuthorizeSecurityGroupEgressResult`,Hte=`AuthorizeSecurityGroupIngressRequest`,Ute=`AuthorizeSecurityGroupIngressResult`,Wte=`AuthorizeSecurityGroupIngress`,Gte=`AutoScalingIps`,ca=`AmdSevSnp`,Kte=`AttachmentState`,qte=`ArchitectureTypeList`,la=`AttachTime`,Jte=`AttachVolumeRequest`,Yte=`AttributeValue`,Xte=`AttachVolume`,ua=`AvailabilityZone`,da=`AvailabilityZoneAddress`,fa=`AvailabilityZoneAddresses`,Zte=`AvailabilityZoneGeography`,Qte=`AvailabilityZoneGeographyList`,pa=`AvailabilityZoneId`,ma=`AvailabilityZoneList`,ha=`AvailabilityZoneMessage`,ga=`AvailabilityZoneMessageList`,_a=`AvailabilityZoneSubGeography`,va=`AvailabilityZoneSubGeographyList`,ya=`AvailabilityZones`,ba=`Accelerators`,xa=`Addresses`,Sa=`Affinity`,Ca=`Arn`,wa=`Architecture`,Ta=`Associations`,Ea=`Association`,Da=`Attribute`,Oa=`Attachment`,ka=`Attachments`,Aa=`BlobAttributeValue`,ja=`BaselineBandwidthInGbps`,Ma=`BaselineBandwidthInMbps`,Na=`BlockDeviceMapping`,Pa=`BlockDeviceMappingList`,Fa=`BlockDeviceMappingRequestList`,Ia=`BlockDeviceMappings`,La=`BlockDurationMinutes`,Ra=`BaselineIops`,za=`BootMode`,Ba=`BootModeTypeList`,Va=`BareMetal`,Ha=`BlockPublicAccessStates`,Ua=`BurstablePerformanceSupported`,Wa=`BaselineThroughputInMBps`,Ga=`BandwidthWeighting`,Ka=`BandwidthWeightingTypeList`,qa=`BandwidthWeightings`,Ja=`CidrBlock`,Ya=`CidrBlockAssociationSet`,Xa=`CapacityBlockId`,Za=`CidrBlockState`,Qa=`CoreCountList`,$a=`CoreCount`,eo=`CpuCredits`,to=`CompletionDurationMinutes`,no=`CreationDate`,ro=`CarrierGatewayId`,io=`CurrentGeneration`,ao=`CarrierIp`,oo=`CurrentInstanceBootMode`,so=`CreateInternetGateway`,co=`CreateInternetGatewayRequest`,lo=`CreateInternetGatewayResult`,uo=`CreateImageRequest`,fo=`CreateImageResult`,po=`CidrIp`,mo=`CidrIpv6`,ho=`CidrIpv4`,go=`CoreInfo`,_o=`CreateImage`,vo=`CreateKeyPair`,yo=`CreateKeyPairRequest`,bo=`CoreNetworkArn`,xo=`CreateNatGateway`,So=`CreateNatGatewayRequest`,Co=`CreateNatGatewayResult`,wo=`CpuOptions`,To=`CustomerOwnedIp`,Eo=`CustomerOwnedIpv4Pool`,Do=`CpuOptionsRequest`,Oo=`CreatePlacementGroup`,ko=`CreatePlacementGroupRequest`,Ao=`CreatePlacementGroupResult`,jo=`CapacityReservationId`,Mo=`CapacityReservationPreference`,No=`CreateRouteRequest`,Po=`CapacityReservationResourceGroupArn`,Fo=`CreateRouteResult`,Io=`CapacityReservationSpecificationResponse`,Lo=`CapacityReservationSpecification`,Ro=`CapacityReservationTarget`,zo=`CapacityReservationTargetResponse`,Bo=`CreateRouteTableRequest`,Vo=`CreateRouteTableResult`,Ho=`CreateRouteTable`,Uo=`CreateRoute`,Wo=`CreateSecurityGroup`,Go=`CreateSecurityGroupRequest`,Ko=`CreateSecurityGroupResult`,qo=`CopySnapshotRequest`,Jo=`CopySnapshotRequestPSU`,Yo=`CopySnapshotResult`,Xo=`CreateSnapshotRequest`,Zo=`CreateSubnetRequest`,Qo=`CreateSubnetResult`,$o=`CreditSpecificationRequest`,es=`CopySnapshot`,ts=`CreditSpecification`,ns=`CreateSnapshot`,rs=`CreateSubnet`,is=`CurrentState`,as=`ClientToken`,os=`ConnectionTrackingConfiguration`,ss=`ConnectionTrackingSpecification`,cs=`ConnectionTrackingSpecificationRequest`,ls=`ConnectionTrackingSpecificationResponse`,us=`CompletionTime`,ds=`ConnectivityType`,fs=`CreateTime`,ps=`CreateVolumeRequest`,ms=`CreateVpcRequest`,hs=`CreateVpcResult`,gs=`CreateVolume`,_s=`CreateVpc`,vs=`Code`,ys=`Configured`,bs=`Count`,xs=`DescribeAddressesRequest`,Ss=`DescribeAddressesResult`,Cs=`DisassociateAddressRequest`,ws=`DisableApiStop`,Ts=`DisableApiTermination`,Es=`DestinationAvailabilityZone`,Ds=`DescribeAvailabilityZonesRequest`,Os=`DescribeAvailabilityZonesResult`,ks=`DescribeAvailabilityZones`,As=`DescribeAddresses`,js=`DisassociateAddress`,Ms=`DestinationCidrBlock`,Ns=`DefaultConnectionTrackingConfiguration`,Ps=`DefaultCores`,Fs=`DataEncryptionKeyId`,Is=`DefaultEnaQueueCountPerInterface`,Ls=`DefaultForAz`,Rs=`DedicatedHostsSupported`,zs=`DeviceIndex`,Bs=`DestinationIpv6CidrBlock`,Vs=`DeleteInternetGateway`,Hs=`DeleteInternetGatewayRequest`,Us=`DescribeInternetGatewaysRequest`,Ws=`DescribeInternetGatewaysResult`,Gs=`DetachInternetGatewayRequest`,Ks=`DescribeInternetGateways`,qs=`DetachInternetGateway`,Js=`DisassociateIamInstanceProfile`,Ys=`DescribeIamInstanceProfileAssociations`,Xs=`DescribeIamInstanceProfileAssociationsRequest`,Zs=`DescribeIamInstanceProfileAssociationsResult`,Qs=`DisassociateIamInstanceProfileRequest`,$s=`DisassociateIamInstanceProfileResult`,ec=`DiskInfoList`,tc=`DescribeImagesRequest`,nc=`DescribeImagesResult`,rc=`DescribeInstancesRequest`,ic=`DescribeInstancesResult`,ac=`DescribeInstanceTypesRequest`,oc=`DescribeInstanceTypesResult`,sc=`DescribeInstanceTypes`,cc=`DescribeImages`,lc=`DescribeInstances`,uc=`DiskInfo`,dc=`DeleteKeyPair`,fc=`DeleteKeyPairRequest`,pc=`DeleteKeyPairResult`,mc=`DescribeKeyPairsRequest`,hc=`DescribeKeyPairsResult`,gc=`DescribeKeyPairs`,_c=`DisableLniAtDeviceIndex`,vc=`DeviceName`,yc=`DefaultNetworkCardIndex`,bc=`DeleteNatGateway`,xc=`DeleteNatGatewayRequest`,Sc=`DeleteNatGatewayResult`,Cc=`DescribeNatGatewaysRequest`,wc=`DescribeNatGatewaysResult`,Tc=`DescribeNatGateways`,Ec=`DestinationOutpostArn`,Dc=`DhcpOptionsId`,Oc=`DeleteOnTermination`,kc=`DeletePlacementGroup`,Ac=`DeletePlacementGroupRequest`,jc=`DescribePlacementGroupsRequest`,Mc=`DescribePlacementGroupsResult`,Nc=`DescribePlacementGroups`,Pc=`DestinationPrefixListId`,Fc=`DeregistrationProtection`,p=`DryRun`,Ic=`DeleteRouteRequest`,Lc=`DescribeRegionsRequest`,Rc=`DescribeRegionsResult`,zc=`DeleteRouteTable`,Bc=`DeleteRouteTableRequest`,Vc=`DescribeRouteTablesRequest`,Hc=`DescribeRouteTablesResult`,Uc=`DisassociateRouteTableRequest`,Wc=`DescribeRouteTables`,Gc=`DisassociateRouteTable`,Kc=`DestinationRegion`,qc=`DeleteRoute`,Jc=`DescribeRegions`,Yc=`DeleteSecurityGroup`,Xc=`DeleteSecurityGroupRequest`,Zc=`DeleteSecurityGroupResult`,Qc=`DescribeSecurityGroupsRequest`,$c=`DescribeSecurityGroupsResult`,el=`DescribeSecurityGroups`,tl=`DeleteSnapshotRequest`,nl=`DeleteSubnetRequest`,rl=`DescribeSnapshotsRequest`,il=`DescribeSnapshotsResult`,al=`DescribeSubnetsRequest`,ol=`DescribeSubnetsResult`,sl=`DeleteSnapshot`,cl=`DeleteSubnet`,ll=`DescribeSnapshots`,ul=`DescribeSubnets`,dl=`DefaultTcpEstablishedTimeout`,fl=`DefaultThreadsPerCore`,pl=`DeprecationTime`,ml=`DeleteTime`,hl=`DefaultUdpStreamTimeout`,gl=`DefaultUdpTimeout`,_l=`DefaultVCpus`,vl=`DeleteVolumeRequest`,yl=`DeleteVpcRequest`,bl=`DescribeVolumesRequest`,xl=`DescribeVolumesResult`,Sl=`DescribeVpcsRequest`,Cl=`DescribeVpcsResult`,wl=`DetachVolumeRequest`,Tl=`DeleteVolume`,El=`DeleteVpc`,Dl=`DescribeVolumes`,Ol=`DescribeVpcs`,kl=`DetachVolume`,Al=`Description`,jl=`Device`,Ml=`Disks`,Nl=`Domain`,Pl=`EbsBlockDevice`,Fl=`ExecutableByStringList`,Il=`ExecutableBy`,Ll=`EbsCardIndex`,Rl=`EbsCardInfoList`,zl=`EbsCardInfo`,Bl=`EbsCards`,Vl=`EncryptionControl`,Hl=`EnableDns64`,Ul=`ElasticFileSystem`,Wl=`ElasticFileSystemExclusion`,Gl=`ElasticGpuAssociation`,Kl=`ElasticGpuAssociationId`,ql=`ElasticGpuAssociationList`,Jl=`ElasticGpuAssociationState`,Yl=`ElasticGpuAssociationTime`,Xl=`ElasticGpuAssociations`,Zl=`ElasticGpuId`,Ql=`ElasticGpuSpecification`,$l=`ElasticGpuSpecifications`,eu=`ElasticInferenceAccelerator`,tu=`ElasticInferenceAcceleratorAssociation`,nu=`ElasticInferenceAcceleratorAssociationId`,ru=`ElasticInferenceAcceleratorAssociationList`,iu=`ElasticInferenceAcceleratorAssociationState`,au=`ElasticInferenceAcceleratorAssociationTime`,ou=`ElasticInferenceAcceleratorArn`,su=`ElasticInferenceAcceleratorAssociations`,cu=`ElasticInferenceAccelerators`,lu=`EbsInstanceBlockDevice`,uu=`EbsInstanceBlockDeviceSpecification`,du=`EncryptionInTransitSupported`,fu=`EbsInfo`,pu=`EfaInfo`,mu=`EnableLniAtDeviceIndex`,hu=`EbsOptimized`,gu=`EbsOptimizedInfo`,_u=`EgressOnlyInternetGateway`,vu=`EgressOnlyInternetGatewayExclusion`,yu=`EgressOnlyInternetGatewayId`,bu=`EnclaveOptionsRequest`,xu=`EbsOptimizedSupport`,Su=`EnclaveOptions`,Cu=`EnablePrimaryIpv6`,wu=`EnaQueueCount`,Tu=`EnableResourceNameDnsAAAARecord`,Eu=`EnableResourceNameDnsAAAARecordOnLaunch`,Du=`EnableResourceNameDnsARecord`,Ou=`EnableResourceNameDnsARecordOnLaunch`,ku=`EnaSrdEnabled`,Au=`EnaSrdSpecification`,ju=`EnaSrdSpecificationRequest`,Mu=`EnaSrdSupported`,Nu=`EnaSrdUdpEnabled`,Pu=`EnaSrdUdpSpecification`,Fu=`EnaSrdUdpSpecificationRequest`,Iu=`EfaSupported`,Lu=`EncryptionSupport`,Ru=`EnaSupport`,zu=`EndTime`,Bu=`ExecutableUsers`,Vu=`Ebs`,Hu=`Enabled`,Uu=`Encrypted`,Wu=`Endpoint`,Gu=`Force`,Ku=`FailureCode`,qu=`FpgaDeviceInfo`,Ju=`FpgaDeviceInfoList`,Yu=`FpgaDeviceMemoryInfo`,Xu=`FlexibleEnaQueuesSupport`,Zu=`FpgaInfo`,Qu=`FilterList`,$u=`FailureMessage`,ed=`FromPort`,td=`FastRestored`,nd=`FullSnapshotSizeInBytes`,rd=`FreeTierEligible`,id=`Filters`,ad=`Filter`,od=`Fpgas`,sd=`Groups`,cd=`GroupArn`,ld=`GetConsoleOutput`,ud=`GetConsoleOutputRequest`,dd=`GetConsoleOutputResult`,fd=`GroupDescription`,pd=`GpuDeviceInfo`,md=`GpuDeviceInfoList`,hd=`GpuDeviceMemoryInfo`,gd=`GatewayId`,_d=`GroupIdentifierList`,vd=`GroupIdStringList`,yd=`GpuInfo`,bd=`GroupId`,xd=`GroupIds`,Sd=`GroupIdentifier`,Cd=`GroupLongName`,wd=`GroupName`,Td=`GroupNameStringList`,Ed=`GroupNames`,Dd=`GroupOwnerId`,Od=`GpuPartitionSize`,kd=`Geography`,Ad=`Gpus`,jd=`HiddenByDefault`,Md=`HttpEndpoint`,Nd=`HostId`,Pd=`HibernationOptions`,Fd=`HibernationOptionsRequest`,Id=`HttpProtocolIpv6`,Ld=`HttpPutResponseHopLimit`,Rd=`HostResourceGroupArn`,zd=`HibernationSupported`,Bd=`HttpTokens`,Vd=`HostnameType`,Hd=`Hibernate`,Ud=`Hypervisor`,Wd=`Id`,Gd=`Ipv6Addresses`,Kd=`Ipv6AddressAttribute`,qd=`Ipv6AddressCount`,Jd=`InstanceAttachmentEnaSrdSpecification`,Yd=`InstanceAttachmentEnaSrdUdpSpecification`,Xd=`InferenceAcceleratorInfo`,Zd=`Ipv4AddressesPerInterface`,Qd=`Ipv6AddressesPerInterface`,$d=`Ipv4AddressesPerSecondaryInterface`,ef=`ImageAllowed`,tf=`IpAddress`,nf=`Ipv6Address`,rf=`InstanceBlockDeviceMapping`,af=`InstanceBlockDeviceMappingList`,of=`InstanceBlockDeviceMappingSpecification`,sf=`InstanceBlockDeviceMappingSpecificationList`,cf=`Ipv6CidrBlock`,lf=`Ipv6CidrBlockAssociationSet`,uf=`Ipv6CidrBlockNetworkBorderGroup`,df=`Ipv6CidrBlockState`,ff=`IncludeDeprecated`,pf=`InferenceDeviceInfo`,mf=`InferenceDeviceInfoList`,hf=`InferenceDeviceMemoryInfo`,gf=`IncludeDisabled`,_f=`IsDefault`,vf=`IsEgress`,yf=`InternetGateway`,bf=`InternetGatewayAttachment`,xf=`InternetGatewayAttachmentList`,Sf=`InternetGatewayBlockMode`,Cf=`InternetGatewayExclusion`,wf=`InternetGatewayId`,Tf=`InternetGatewayIdList`,Ef=`InternetGatewayIds`,Df=`InternetGatewayList`,Of=`InternetGateways`,m=`InstanceId`,kf=`InstanceIpv6Address`,Af=`InstanceIpv6AddressList`,jf=`InstanceInterruptionBehavior`,Mf=`IamInstanceProfile`,Nf=`IamInstanceProfileAssociation`,Pf=`IamInstanceProfileAssociationSet`,Ff=`IamInstanceProfileAssociations`,If=`Ipv6IpamPoolId`,Lf=`Ipv4IpamPoolId`,Rf=`InstanceIpv4PrefixList`,zf=`InstanceIpv6PrefixList`,Bf=`IamInstanceProfileSpecification`,Vf=`InstanceIpv4Prefix`,Hf=`InstanceIpv6Prefix`,Uf=`InstanceInitiatedShutdownBehavior`,Wf=`ImageIdStringList`,Gf=`InstanceIdStringList`,Kf=`ImageId`,qf=`ImageIds`,Jf=`InstanceIds`,Yf=`ImportKeyPair`,Xf=`ImportKeyPairRequest`,Zf=`ImportKeyPairResult`,Qf=`ImageLocation`,$f=`ImageList`,ep=`InstanceLifecycle`,tp=`InstanceList`,np=`IpList`,rp=`InstanceMaintenanceOptions`,ip=`InstanceMaintenanceOptionsRequest`,ap=`InstanceMarketOptionsRequest`,op=`InstanceMetadataOptionsRequest`,sp=`InstanceMetadataOptionsResponse`,cp=`InstanceMarketOptions`,lp=`IncludeManagedResources`,up=`InstanceMetadataTags`,dp=`Ipv6Native`,fp=`InstanceNetworkInterface`,pp=`InstanceNetworkInterfaceAssociation`,mp=`InstanceNetworkInterfaceAttachment`,hp=`InstanceNetworkInterfaceList`,gp=`InstanceNetworkInterfaceSpecification`,_p=`InstanceNetworkInterfaceSpecificationList`,vp=`Ipv6NetmaskLength`,yp=`Ipv4NetmaskLength`,bp=`InstanceNetworkPerformanceOptions`,xp=`InstanceNetworkPerformanceOptionsRequest`,Sp=`ImageOwnerAlias`,Cp=`IpOwnerId`,wp=`InstanceOwnerId`,Tp=`InstanceOwningService`,Ep=`Ipv6PrefixCount`,Dp=`Ipv4PrefixCount`,Op=`IpPermissionsEgress`,kp=`IpamPoolId`,Ap=`InstancePrivateIpAddress`,jp=`InstancePrivateIpAddressList`,Mp=`IsPrimaryIpv6`,Np=`IncludePublicKey`,Pp=`IpPermissionList`,Fp=`Ipv4PrefixList`,Ip=`Ipv6PrefixList`,Lp=`Ipv4PrefixSpecificationRequest`,Rp=`Ipv6PrefixSpecificationRequest`,zp=`Ipv6Prefixes`,Bp=`IpPermissions`,Vp=`IpPermission`,Hp=`IpProtocol`,Up=`Ipv6Prefix`,Wp=`Ipv6Pool`,Gp=`Ipv4Prefixes`,Kp=`Ipv4Prefix`,qp=`IsPrimary`,Jp=`IpRangeList`,Yp=`Ipv6RangeList`,Xp=`IpRanges`,Zp=`IpRange`,Qp=`Ipv6Ranges`,$p=`Ipv6Range`,em=`InstanceStateChange`,tm=`InstanceStateChangeList`,nm=`InstanceSecondaryInterfaceAttachment`,rm=`InstanceSecondaryInterfaceList`,im=`InstanceSecondaryInterfacePrivateIpAddress`,am=`InstanceSecondaryInterfacePrivateIpAddressList`,om=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,sm=`InstanceSecondaryInterfacePrivateIpAddressRequest`,cm=`InstanceSecondaryInterfaceSpecificationListRequest`,lm=`InstanceSecondaryInterfaceSpecificationRequest`,um=`InstanceSecondaryInterface`,dm=`InstanceStorageInfo`,fm=`InstanceStorageSupported`,pm=`ImdsSupport`,mm=`InstanceState`,hm=`IpSource`,gm=`Ipv6Supported`,_m=`InstanceType`,vm=`InstanceTypeInfoList`,ym=`InstanceTypeInfo`,bm=`ImageType`,xm=`InstanceTenancy`,Sm=`InstanceTypes`,Cm=`InterfaceType`,wm=`IncludeUnsupportedInRegion`,Tm=`ImageWatermarks`,Em=`ImageWatermarkList`,Dm=`ImageWatermark`,Om=`Images`,km=`Image`,Am=`Instance`,jm=`Instances`,Mm=`Iops`,Nm=`Key`,Pm=`KeyFormat`,Fm=`KeyFingerprint`,Im=`KernelId`,Lm=`KmsKeyId`,Rm=`KeyMaterial`,zm=`KeyName`,Bm=`KeyNameStringList`,Vm=`KeyNames`,Hm=`KeyPairs`,Um=`KeyPairId`,Wm=`KeyPairIdStringList`,Gm=`KeyPairIds`,Km=`KeyPairInfo`,qm=`KeyPairList`,Jm=`KeyPair`,Ym=`KeyType`,Xm=`Kernel`,Zm=`LicenseConfigurationArn`,$te=`LicenseConfigurationRequest`,ene=`LicenseConfiguration`,tne=`LambdaExclusion`,nne=`LogicalGpuCount`,Qm=`LocalGatewayId`,$m=`LinkedGroupId`,rne=`LicenseList`,ine=`LastLaunchedTime`,ane=`LicenseSpecifications`,one=`LicenseSpecificationListRequest`,sne=`LicenseSpecification`,cne=`LaunchTemplate`,lne=`LaunchTemplateId`,une=`LaunchTemplateName`,dne=`LaunchTemplateSpecification`,fne=`LaunchTime`,pne=`Latest`,mne=`Lambda`,hne=`Licenses`,gne=`Location`,eh=`MultiAttachEnabled`,th=`MediaAcceleratorInfo`,nh=`MacAddress`,rh=`MaximumBandwidthInMbps`,ih=`MapCustomerOwnedIpOnLaunch`,_ne=`MaxCount`,vne=`MinCount`,yne=`MediaDeviceInfo`,bne=`MediaDeviceInfoList`,xne=`MediaDeviceMemoryInfo`,Sne=`MaximumEbsAttachments`,Cne=`MaximumEbsCards`,wne=`MaximumEfaInterfaces`,Tne=`MaximumEnaQueueCount`,Ene=`MaximumEnaQueueCountPerInterface`,ah=`MaximumIops`,Dne=`ModifyInstanceAttributeRequest`,One=`ModifyInstanceAttributeValue`,kne=`ModifyInstanceAttribute`,oh=`MemoryInfo`,Ane=`MaximumNetworkCards`,sh=`MaximumNetworkInterfaces`,ch=`MetadataOptions`,lh=`MaintenanceOptions`,uh=`MapPublicIpOnLaunch`,jne=`MaxPrice`,dh=`MaxResults`,Mne=`ModifySubnetAttributeRequest`,Nne=`ModifySubnetAttribute`,Pne=`MaximumSecondaryNetworkInterfaces`,fh=`ModificationState`,Fne=`MarketType`,ph=`MaximumThroughputInMBps`,Ine=`ModifyVolumeRequest`,Lne=`ModifyVolumeResult`,Rne=`ModifyVolume`,zne=`Main`,mh=`Manufacturer`,Bne=`Managed`,hh=`Message`,Vne=`Messages`,gh=`Mode`,_h=`Monitoring`,vh=`Name`,yh=`NetworkBorderGroup`,Hne=`NetworkCards`,bh=`NetworkCardIndex`,Une=`NetworkCardInfoList`,Wne=`NetworkCardInfo`,xh=`NoDevice`,Gne=`NeuronDeviceCoreInfo`,Kne=`NeuronDeviceInfo`,qne=`NeuronDeviceInfoList`,Jne=`NeuronDeviceMemoryInfo`,Yne=`NeuronDevices`,Xne=`NitroEnclavesSupport`,Sh=`NatGateway`,Zne=`NatGatewayAddresses`,Qne=`NatGatewayAttachedAppliance`,$ne=`NatGatewayAttachedApplianceList`,ere=`NatGatewayAddressList`,tre=`NatGatewayAddress`,nre=`NatGatewayExclusion`,Ch=`NatGatewayId`,rre=`NatGatewayIdStringList`,ire=`NatGatewayIds`,are=`NatGatewayList`,ore=`NatGateways`,wh=`NetworkInterfaceId`,sre=`NetworkInterfaceOwnerId`,Th=`NetworkInterfaces`,Eh=`NetworkInfo`,Dh=`NeuronInfo`,Oh=`NetworkPerformanceOptions`,kh=`NetworkPerformance`,cre=`NoReboot`,Ah=`NvmeSupport`,jh=`NitroTpmInfo`,lre=`NitroTpmSupport`,ure=`NitroTpmSupportedVersionsList`,h=`NextToken`,Mh=`NestedVirtualization`,dre=`Origin`,Nh=`OutpostArn`,fre=`OwnerAlias`,Ph=`OwnerId`,Fh=`OptInStatus`,pre=`OriginalIops`,mre=`OwnerIds`,hre=`OriginalMultiAttachEnabled`,Ih=`OdbNetworkArn`,gre=`OperatorRequest`,_re=`OperatorResponse`,vre=`OwnerStringList`,yre=`OriginalSize`,bre=`OriginalThroughput`,xre=`OriginalVolumeType`,Lh=`Operator`,Sre=`Output`,Cre=`Owners`,Rh=`Owner`,zh=`Principal`,Bh=`ProvisionedBandwidth`,wre=`PeakBandwidthInGbps`,Tre=`ProductCodeId`,Ere=`ProductCodeList`,Dre=`ProductCodeType`,Vh=`PartitionCount`,Ore=`ProductCode`,Hh=`ProductCodes`,kre=`PrivateDnsHostnameTypeOnLaunch`,Uh=`PrivateDnsName`,Wh=`PrivateDnsNameOptions`,Gh=`PrivateDnsNameOptionsOnLaunch`,Are=`PrivateDnsNameOptionsRequest`,jre=`PrivateDnsNameOptionsResponse`,Kh=`PublicDnsName`,qh=`PlatformDetails`,Jh=`PlacementGroup`,Yh=`PlacementGroupInfo`,Mre=`PlacementGroupIdStringList`,Nre=`PlacementGroupList`,Pre=`PlacementGroupStrategyList`,Fre=`PlacementGroups`,Xh=`PublicIp`,Ire=`PrivateIpAddressCount`,Lre=`PrivateIpAddressSpecification`,Rre=`PrivateIpAddressSpecificationList`,Zh=`PrivateIpAddress`,Qh=`PrivateIpAddresses`,zre=`PublicIpAddress`,$h=`PublicIpv4Pool`,Bre=`PublicIpStringList`,Vre=`PrimaryIpv6`,Hre=`PrivateIp`,eg=`ProcessorInfo`,Ure=`PublicIps`,Wre=`PublicKey`,Gre=`PublicKeyMaterial`,tg=`PrefixListId`,Kre=`PrefixListIdList`,qre=`PrefixListIds`,Jre=`PartitionNumber`,ng=`PeeringStatus`,Yre=`PhcSupport`,Xre=`PreviousState`,Zre=`ProvisionTime`,Qre=`PresignedUrl`,$re=`PropagatingVgw`,eie=`PropagatingVgwList`,tie=`PropagatingVgws`,nie=`ParentZoneId`,rie=`ParentZoneName`,rg=`Platform`,ig=`Placement`,ag=`Primary`,og=`Progress`,iie=`Provisioned`,aie=`Public`,sg=`Return`,oie=`ReleaseAddressRequest`,sie=`ReleaseAddress`,cie=`RestorableByUserIds`,lie=`RestorableBy`,cg=`RootDeviceName`,lg=`RootDeviceType`,uie=`RootDeviceTypeList`,die=`RestoreExpiryTime`,fie=`ResourceExclusions`,pie=`RegionGeography`,mie=`ReferencedGroupId`,hie=`ReferencedGroupInfo`,gie=`RegionGeographyList`,_ie=`RunInstancesMonitoringEnabled`,vie=`RebootInstancesRequest`,yie=`RunInstancesRequest`,bie=`RunInstancesUserData`,ug=`RamdiskId`,xie=`ReservationId`,Sie=`RebootInstances`,Cie=`RequesterId`,wie=`RunInstances`,Tie=`RegionList`,Eie=`ReservationList`,Die=`RouteList`,Oie=`RebootMigrationSupport`,kie=`RebootMigration`,dg=`RegionName`,Aie=`RegionNameStringList`,jie=`RegionNames`,Mie=`ReferencedSecurityGroup`,Nie=`RevokeSecurityGroupEgress`,Pie=`RevokeSecurityGroupEgressRequest`,Fie=`RevokeSecurityGroupEgressResult`,Iie=`RevokeSecurityGroupIngressRequest`,Lie=`RevokeSecurityGroupIngressResult`,Rie=`RevokeSecurityGroupIngress`,zie=`RevokedSecurityGroupRule`,Bie=`RevokedSecurityGroupRuleList`,fg=`RevokedSecurityGroupRules`,Vie=`RouteTableAssociation`,Hie=`RouteTableAssociationId`,Uie=`RouteTableAssociationList`,Wie=`RouteTableAssociationState`,pg=`RouteTableId`,Gie=`RouteTableIdStringList`,Kie=`RouteTableIds`,qie=`RouteTableList`,Jie=`ResourceType`,Yie=`RequestTime`,mg=`RouteTable`,Xie=`RouteTables`,Zie=`Ramdisk`,Qie=`Regions`,$ie=`Region`,eae=`Requested`,tae=`Reservations`,nae=`Reservation`,rae=`Route`,iae=`Routes`,aae=`SecondaryAllocationIds`,oae=`SecondaryAllocationId`,sae=`SupportedAdditionalProcessorFeatureList`,cae=`SubnetArn`,lae=`SupportedArchitectures`,uae=`SupportedBootModes`,dae=`SubnetCidrBlockState`,fae=`SustainedClockSpeedInGhz`,hg=`SourceDestCheck`,pae=`SpreadDomain`,mae=`SupportedFeatures`,hae=`SubGeography`,gg=`SecurityGroupArn`,_g=`SecurityGroupId`,gae=`SecurityGroupIdStringList`,_ae=`SecurityGroupIds`,vae=`SecurityGroupList`,vg=`SecurityGroupRules`,yae=`SecurityGroupRuleArn`,yg=`SecurityGroupRuleIds`,bae=`SecurityGroupRuleIdList`,bg=`SecurityGroupRuleId`,xae=`SecurityGroupRuleList`,Sae=`SecurityGroupRule`,Cae=`SecurityGroupStringList`,xg=`SecurityGroups`,Sg=`SecurityGroup`,wae=`SubnetIds`,Tae=`SubnetIpv6CidrBlockAssociation`,Eae=`SubnetIpv6CidrBlockAssociationSet`,Dae=`SourceImageCreationTime`,Oae=`SizeInGB`,Cg=`SourceImageId`,kae=`SecondaryInterfaceId`,Aae=`SourceInstanceId`,wg=`SizeInMiB`,jae=`SpotInstanceRequestId`,Tg=`SourceImageRegion`,Mae=`StartInstancesRequest`,Nae=`StartInstancesResult`,Pae=`StopInstancesRequest`,Fae=`StopInstancesResult`,Iae=`SupportedInRegion`,Lae=`SnapshotIdStringList`,Rae=`SubnetIdStringList`,zae=`SpotInstanceType`,Eg=`SecondaryInterfaces`,Bae=`SecondaryInterface`,Dg=`SnapshotId`,Vae=`SnapshotIds`,Hae=`StartingInstances`,Uae=`StartInstances`,Wae=`StoppingInstances`,Gae=`StopInstances`,Og=`SubnetId`,Kae=`SnapshotLocation`,qae=`SnapshotList`,kg=`SpreadLevel`,Jae=`SubnetList`,Yae=`ServiceManaged`,Xae=`SpotMarketOptions`,Ag=`StatusMessage`,jg=`StateMessage`,Zae=`SecondaryNetworkId`,Mg=`SriovNetSupport`,Qae=`SecondaryNetworkSupported`,$ae=`SpotOptions`,Ng=`SkipOsShutdown`,eoe=`SecondaryPrivateIpAddresses`,Pg=`SecondaryPrivateIpAddressCount`,toe=`SecondaryPrivateIpAddress`,noe=`SupportedRootDeviceTypes`,roe=`SourceRegion`,Fg=`StateReason`,Ig=`SourceSecurityGroupName`,Lg=`SourceSecurityGroupOwnerId`,ioe=`SourceSnapshotId`,Rg=`SecondarySubnetId`,aoe=`SupportedStrategies`,zg=`StartTime`,ooe=`StateTransitionReason`,Bg=`SseType`,soe=`StorageTier`,coe=`SupportedUsageClasses`,loe=`SensitiveUserData`,uoe=`SourceVolumeId`,doe=`SupportedVirtualizationTypes`,foe=`SupportedVersions`,Vg=`Size`,poe=`Snapshots`,moe=`Snapshot`,g=`State`,Hg=`Status`,Ug=`Strategy`,Wg=`Subnet`,hoe=`Subnets`,_=`Tags`,Gg=`TcpEstablishedTimeout`,goe=`TotalFpgaMemoryInMiB`,Kg=`TransitGatewayId`,_oe=`TotalGpuMemoryInMiB`,voe=`TerminateInstances`,yoe=`TotalInferenceMemoryInMiB`,boe=`TerminateInstancesRequest`,xoe=`TerminateInstancesResult`,Soe=`TargetIops`,Coe=`TerminatingInstances`,woe=`TagList`,Toe=`TargetMultiAttachEnabled`,Eoe=`TotalMediaMemoryInMiB`,Doe=`TotalNeuronDeviceMemoryInMiB`,qg=`ToPort`,Jg=`ThreadsPerCore`,Yg=`ThreadsPerCoreList`,Xg=`TagSpecifications`,Zg=`TotalSizeInGB`,Qg=`TagSpecificationList`,$g=`TagSpecification`,e_=`TargetSize`,t_=`TpmSupport`,n_=`TargetThroughput`,r_=`TransferType`,i_=`TargetVolumeType`,a_=`Tag`,o_=`Tenancy`,s_=`Throughput`,c_=`Timestamp`,l_=`Type`,u_=`UsageClassTypeList`,d_=`UserData`,f_=`UserId`,p_=`UserIdGroupPairs`,m_=`UserIdGroupPairList`,h_=`UserIdGroupPair`,g_=`UnknownIpPermissions`,__=`UsageOperation`,v_=`UsageOperationUpdateTime`,y_=`UdpStreamTimeout`,b_=`UdpTimeout`,x_=`Value`,S_=`VolumeAttachmentList`,C_=`VolumeAttachment`,w_=`VpcCidrBlockAssociation`,T_=`VpcCidrBlockAssociationSet`,E_=`VpcCidrBlockState`,D_=`VCpuInfo`,O_=`ValidCores`,k_=`VpcEncryptionControl`,A_=`VpcEncryptionControlConfiguration`,j_=`VpcEncryptionControlExclusion`,M_=`VpcEncryptionControlExclusions`,N_=`VpcEncryptionControlId`,P_=`VpcEndpointId`,v=`VpcId`,F_=`VpcIpv6CidrBlockAssociation`,I_=`VpcIpv6CidrBlockAssociationSet`,L_=`VolumeInitializationRate`,R_=`VolumeIdStringList`,z_=`VpcIdStringList`,B_=`VolumeId`,V_=`VolumeIds`,H_=`VpcIds`,U_=`VpcLattice`,W_=`VpcLatticeExclusion`,G_=`VolumeList`,K_=`VpcList`,q_=`VolumeModification`,J_=`VirtualName`,Y_=`VolumeOwnerId`,X_=`VpcPeeringConnectionId`,Z_=`VpcPeeringExclusion`,Q_=`VirtualPrivateGateway`,$_=`VirtualPrivateGatewayExclusion`,ev=`VpcPeering`,tv=`ValueStringList`,nv=`VolumeSize`,rv=`VolumeType`,iv=`VirtualizationTypeList`,av=`ValidThreadsPerCore`,ov=`VirtualizationType`,sv=`ValidUntil`,cv=`Values`,lv=`Version`,uv=`Volumes`,dv=`Volume`,fv=`Vpc`,pv=`Vpcs`,mv=`WatermarkCreationTime`,hv=`WatermarkKey`,gv=`WorkloadsList`,_v=`Workloads`,vv=`ZoneId`,yv=`ZoneIdStringList`,bv=`ZoneIds`,xv=`ZoneName`,Sv=`ZoneNameStringList`,Cv=`ZoneNames`,wv=`ZoneType`,Tv=`attachedApplianceSet`,Ev=`applianceArn`,Dv=`additionalFlexibleNetworkInterfaces`,Ov=`allocationId`,kv=`availableIpAddressCount`,Av=`assignIpv6AddressOnCreation`,jv=`additionalInfo`,Mv=`associationId`,Nv=`attachmentId`,Pv=`amiLaunchIndex`,Fv=`attachmentLimitType`,Iv=`availabilityMode`,Lv=`associatePublicIpAddress`,Rv=`amazonProvidedIpv6CidrBlock`,zv=`autoProvisionZones`,Bv=`autoRecoverySupported`,Vv=`allowReassociation`,Hv=`associatedResource`,Uv=`autoRecovery`,Wv=`associationState`,Gv=`autoScalingIps`,Kv=`amdSevSnp`,qv=`addressesSet`,Jv=`associationSet`,Yv=`attachmentSet`,Xv=`attachmentState`,Zv=`attachTime`,Qv=`availabilityZone`,$v=`availabilityZoneId`,ey=`availabilityZoneInfo`,ty=`accelerators`,ny=`affinity`,ry=`arn`,iy=`architecture`,ay=`association`,oy=`attachment`,sy=`attribute`,cy=`baselineBandwidthInGbps`,ly=`baselineBandwidthInMbps`,uy=`blockDeviceMapping`,dy=`baselineIops`,fy=`bootMode`,py=`bareMetal`,my=`blockPublicAccessStates`,hy=`burstablePerformanceSupported`,gy=`baselineThroughputInMBps`,_y=`bandwidthWeighting`,vy=`bandwidthWeightings`,yy=`cidrBlock`,by=`cidrBlockAssociationSet`,xy=`capacityBlockId`,Sy=`cidrBlockState`,Cy=`coreCount`,wy=`completionDurationMinutes`,Ty=`creationDate`,Ey=`carrierGatewayId`,Dy=`currentGeneration`,Oy=`carrierIp`,ky=`currentInstanceBootMode`,Ay=`cidrIp`,jy=`cidrIpv6`,My=`cidrIpv4`,Ny=`coreInfo`,Py=`coreNetworkArn`,Fy=`cpuOptions`,Iy=`customerOwnedIp`,Ly=`customerOwnedIpv4Pool`,Ry=`capacityReservationId`,zy=`capacityReservationPreference`,By=`capacityReservationResourceGroupArn`,Vy=`capacityReservationSpecification`,Hy=`capacityReservationTarget`,Uy=`currentState`,Wy=`clientToken`,Gy=`connectionTrackingConfiguration`,Ky=`completionTime`,qy=`connectivityType`,Jy=`createTime`,Yy=`code`,Xy=`configured`,Zy=`count`,Qy=`disableApiTermination`,$y=`destinationCidrBlock`,eb=`defaultCores`,tb=`dataEncryptionKeyId`,nb=`defaultEnaQueueCountPerInterface`,rb=`defaultForAz`,ib=`dedicatedHostsSupported`,ab=`deviceIndex`,ob=`destinationIpv6CidrBlock`,sb=`deviceName`,cb=`defaultNetworkCardIndex`,lb=`dnsName`,ub=`dhcpOptionsId`,db=`deleteOnTermination`,fb=`destinationPrefixListId`,pb=`deregistrationProtection`,y=`dryRun`,mb=`destinationRegion`,hb=`defaultTcpEstablishedTimeout`,gb=`defaultThreadsPerCore`,_b=`deprecationTime`,vb=`deleteTime`,yb=`defaultUdpStreamTimeout`,bb=`defaultUdpTimeout`,xb=`defaultVCpus`,Sb=`description`,Cb=`device`,wb=`disks`,Tb=`domain`,Eb=`ebsCardIndex`,Db=`ebsCardSet`,Ob=`encryptionControl`,kb=`enableDns64`,Ab=`elasticFileSystem`,jb=`elasticGpuAssociationId`,Mb=`elasticGpuAssociationState`,Nb=`elasticGpuAssociationSet`,Pb=`elasticGpuAssociationTime`,Fb=`elasticGpuId`,Ib=`elasticInferenceAcceleratorArn`,Lb=`elasticInferenceAcceleratorAssociationId`,Rb=`elasticInferenceAcceleratorAssociationState`,zb=`elasticInferenceAcceleratorAssociationSet`,Bb=`elasticInferenceAcceleratorAssociationTime`,Vb=`encryptionInTransitSupported`,Hb=`ebsInfo`,Ub=`efaInfo`,Wb=`enableLniAtDeviceIndex`,Gb=`ebsOptimized`,Kb=`ebsOptimizedInfo`,qb=`egressOnlyInternetGateway`,Jb=`egressOnlyInternetGatewayId`,Yb=`ebsOptimizedSupport`,Xb=`enclaveOptions`,Zb=`enaQueueCount`,b=`ec2QueryName`,Qb=`enableResourceNameDnsAAAARecord`,$b=`enableResourceNameDnsARecord`,ex=`enaSrdEnabled`,tx=`enaSrdSpecification`,nx=`enaSrdSupported`,rx=`enaSrdUdpEnabled`,ix=`enaSrdUdpSpecification`,ax=`efaSupported`,ox=`encryptionSupport`,sx=`enaSupport`,cx=`endTime`,lx=`ebs`,ux=`enabled`,dx=`encrypted`,fx=`failureCode`,px=`flexibleEnaQueuesSupport`,mx=`fpgaInfo`,hx=`failureMessage`,gx=`fromPort`,_x=`fastRestored`,vx=`fullSnapshotSizeInBytes`,yx=`freeTierEligible`,bx=`force`,xx=`fpgas`,Sx=`groupArn`,Cx=`groupDescription`,wx=`gatewayId`,Tx=`gpuInfo`,Ex=`groupId`,Dx=`groupLongName`,Ox=`groupName`,kx=`groupOwnerId`,Ax=`gpuPartitionSize`,jx=`geographySet`,Mx=`groupSet`,Nx=`gpus`,Px=`groups`,Fx=`hypervisor`,Ix=`hiddenByDefault`,Lx=`httpEndpoint`,Rx=`hostId`,zx=`hibernationOptions`,Bx=`httpProtocolIpv6`,Vx=`httpPutResponseHopLimit`,Hx=`hostResourceGroupArn`,Ux=`hibernationSupported`,Wx=`httpTokens`,Gx=`hostnameType`,Kx=`id`,qx=`ipv6AddressAttribute`,Jx=`ipv6AddressCount`,Yx=`inferenceAcceleratorInfo`,Xx=`ipv4AddressesPerInterface`,Zx=`ipv6AddressesPerInterface`,Qx=`ipv4AddressesPerSecondaryInterface`,$x=`ipv6AddressesSet`,eS=`imageAllowed`,tS=`ipAddress`,nS=`ipv6Address`,rS=`ipv6CidrBlock`,iS=`ipv6CidrBlockAssociationSet`,aS=`ipv6CidrBlockState`,oS=`isDefault`,sS=`isEgress`,cS=`internetGateway`,lS=`internetGatewayBlockMode`,uS=`internetGatewayId`,dS=`internetGatewaySet`,fS=`instanceId`,pS=`iamInstanceProfile`,mS=`iamInstanceProfileAssociation`,hS=`iamInstanceProfileAssociationSet`,gS=`instanceInitiatedShutdownBehavior`,_S=`imageId`,vS=`imageLocation`,yS=`instanceLifecycle`,bS=`instanceMetadataTags`,xS=`ipv6Native`,SS=`imageOwnerAlias`,CS=`imageOwnerId`,wS=`instanceOwnerId`,TS=`ipOwnerId`,ES=`instanceOwningService`,DS=`ipPermissionsEgress`,OS=`isPrimaryIpv6`,kS=`ipv4PrefixSet`,AS=`ipv6PrefixSet`,jS=`ipProtocol`,MS=`ipPermissions`,NS=`ipv4Prefix`,PS=`ipv6Pool`,FS=`ipv6Prefix`,IS=`isPublic`,LS=`isPrimary`,RS=`ipRanges`,zS=`ipv6Ranges`,BS=`instanceStorageInfo`,VS=`instanceStorageSupported`,HS=`imagesSet`,US=`imageState`,WS=`imdsSupport`,GS=`instancesSet`,KS=`instanceState`,qS=`ipSource`,JS=`ipv6Supported`,YS=`instanceType`,XS=`instanceTypeSet`,ZS=`idempotencyToken`,QS=`imageType`,$S=`instanceTenancy`,eC=`interfaceType`,tC=`imageWatermarkSet`,nC=`iops`,x=`item`,rC=`key`,iC=`keyFingerprint`,aC=`kernelId`,oC=`kmsKeyId`,sC=`keyMaterial`,cC=`keyName`,lC=`keyPairId`,uC=`keySet`,dC=`keyType`,fC=`kernel`,pC=`licenseConfigurationArn`,mC=`logicalGpuCount`,hC=`localGatewayId`,gC=`linkedGroupId`,_C=`lastLaunchedTime`,vC=`licenseSet`,yC=`launchTime`,bC=`lambda`,xC=`multiAttachEnabled`,SC=`mediaAcceleratorInfo`,CC=`macAddress`,wC=`maximumBandwidthInMbps`,TC=`mapCustomerOwnedIpOnLaunch`,EC=`maximumEbsAttachments`,DC=`maximumEbsCards`,OC=`maximumEfaInterfaces`,kC=`maximumEnaQueueCount`,AC=`maximumEnaQueueCountPerInterface`,jC=`maximumIops`,MC=`memoryInfo`,NC=`maximumNetworkCards`,PC=`maximumNetworkInterfaces`,FC=`metadataOptions`,IC=`maintenanceOptions`,LC=`mapPublicIpOnLaunch`,RC=`maxResults`,zC=`messageSet`,BC=`maximumSecondaryNetworkInterfaces`,VC=`modificationState`,HC=`maximumThroughputInMBps`,UC=`main`,WC=`manufacturer`,GC=`managed`,KC=`message`,qC=`monitoring`,JC=`mode`,YC=`name`,XC=`networkBorderGroup`,ZC=`networkCards`,QC=`networkCardIndex`,$C=`noDevice`,ew=`neuronDevices`,tw=`nitroEnclavesSupport`,nw=`natGateway`,rw=`natGatewayAddressSet`,iw=`natGatewayId`,aw=`natGatewaySet`,ow=`networkInterfaceId`,sw=`networkInterfaceOwnerId`,cw=`networkInterfaceSet`,lw=`networkInterface`,uw=`networkInfo`,dw=`neuronInfo`,fw=`networkPerformanceOptions`,pw=`networkPerformance`,mw=`noReboot`,hw=`nvmeSupport`,gw=`nitroTpmInfo`,_w=`nitroTpmSupport`,vw=`nextToken`,yw=`nestedVirtualization`,bw=`origin`,xw=`outpostArn`,Sw=`ownerAlias`,Cw=`ownerId`,ww=`optInStatus`,Tw=`originalIops`,Ew=`originalMultiAttachEnabled`,Dw=`odbNetworkArn`,Ow=`originalSize`,kw=`originalThroughput`,Aw=`originalVolumeType`,jw=`operator`,Mw=`output`,Nw=`principal`,Pw=`provisionedBandwidth`,Fw=`peakBandwidthInGbps`,Iw=`productCodes`,Lw=`partitionCount`,Rw=`productCode`,zw=`privateDnsNameOptions`,Bw=`privateDnsNameOptionsOnLaunch`,Vw=`privateDnsName`,Hw=`publicDnsName`,Uw=`platformDetails`,Ww=`placementGroup`,Gw=`placementGroupInfo`,Kw=`placementGroupSet`,qw=`publicIp`,Jw=`privateIpAddressesSet`,Yw=`privateIpAddressSet`,Xw=`privateIpAddress`,Zw=`publicIpv4Pool`,Qw=`processorInfo`,$w=`privateIp`,eT=`publicKey`,tT=`publicKeyMaterial`,nT=`prefixListId`,rT=`prefixListIds`,iT=`partitionNumber`,aT=`peeringStatus`,oT=`phcSupport`,sT=`previousState`,cT=`provisionTime`,lT=`presignedUrl`,uT=`propagatingVgwSet`,dT=`parentZoneId`,fT=`parentZoneName`,pT=`platform`,mT=`placement`,hT=`primary`,gT=`progress`,_T=`provisioned`,vT=`return`,yT=`rootDeviceName`,bT=`rootDeviceType`,xT=`restoreExpiryTime`,ST=`regionEndpoint`,CT=`resourceExclusions`,wT=`referencedGroupId`,TT=`referencedGroupInfo`,ET=`reservationId`,DT=`ramdiskId`,OT=`regionInfo`,kT=`requesterId`,AT=`rebootMigrationSupport`,jT=`rebootMigration`,MT=`regionName`,NT=`revokedSecurityGroupRuleSet`,PT=`reservationSet`,FT=`routeSet`,IT=`routeTableAssociationId`,LT=`routeTableId`,RT=`routeTableSet`,zT=`resourceType`,BT=`requestTime`,VT=`routeTable`,HT=`ramdisk`,UT=`reason`,WT=`requested`,GT=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,KT=`supportedArchitectures`,qT=`subnetArn`,JT=`supportedBootModes`,YT=`sustainedClockSpeedInGhz`,XT=`sourceDestCheck`,ZT=`spreadDomain`,QT=`supportedFeatures`,$T=`securityGroupArn`,eE=`securityGroupInfo`,tE=`securityGroupRuleArn`,nE=`securityGroupRuleId`,rE=`securityGroupRuleSet`,iE=`subGeographySet`,aE=`sourceImageCreationTime`,oE=`sizeInGB`,sE=`sourceInstanceId`,cE=`secondaryInterfaceId`,lE=`sourceImageId`,uE=`sizeInMiB`,dE=`sourceImageRegion`,fE=`spotInstanceRequestId`,pE=`supportedInRegion`,mE=`secondaryInterfaceSet`,hE=`snapshotId`,gE=`subnetId`,_E=`spreadLevel`,vE=`serviceManaged`,yE=`statusMessage`,bE=`stateMessage`,xE=`secondaryNetworkId`,SE=`secondaryNetworkSupported`,CE=`sriovNetSupport`,wE=`secondaryPrivateIpAddressCount`,TE=`supportedRootDeviceTypes`,EE=`stateReason`,DE=`sourceSecurityGroupName`,OE=`sourceSecurityGroupOwnerId`,kE=`secondarySubnetId`,AE=`snapshotSet`,jE=`subnetSet`,ME=`supportedStrategies`,NE=`startTime`,PE=`sseType`,FE=`storageTier`,IE=`supportedUsageClasses`,LE=`sourceVolumeId`,RE=`supportedVirtualizationTypes`,zE=`supportedVersions`,BE=`size`,VE=`state`,HE=`status`,UE=`strategy`,WE=`subnet`,GE=`tenancy`,KE=`tcpEstablishedTimeout`,qE=`totalFpgaMemoryInMiB`,JE=`transitGatewayId`,YE=`totalGpuMemoryInMiB`,XE=`totalInferenceMemoryInMiB`,ZE=`targetIops`,QE=`targetMultiAttachEnabled`,$E=`totalMediaMemoryInMiB`,eD=`totalNeuronDeviceMemoryInMiB`,tD=`toPort`,nD=`threadsPerCore`,rD=`tagSet`,iD=`totalSizeInGB`,aD=`targetSize`,oD=`tpmSupport`,sD=`targetThroughput`,cD=`transferType`,lD=`targetVolumeType`,uD=`throughput`,dD=`timestamp`,fD=`type`,pD=`userData`,mD=`userId`,hD=`unknownIpPermissionSet`,gD=`usageOperation`,_D=`usageOperationUpdateTime`,vD=`udpStreamTimeout`,yD=`udpTimeout`,bD=`value`,xD=`vCpuInfo`,SD=`validCores`,CD=`vpcEncryptionControlId`,wD=`vpcEndpointId`,TD=`vpcId`,ED=`volumeInitializationRate`,DD=`volumeId`,OD=`vpcLattice`,kD=`volumeModification`,AD=`virtualName`,jD=`volumeOwnerId`,MD=`vpcPeeringConnectionId`,ND=`virtualPrivateGateway`,PD=`vpcPeering`,FD=`volumeSet`,ID=`volumeSize`,LD=`vpcSet`,RD=`volumeType`,zD=`validThreadsPerCore`,BD=`virtualizationType`,VD=`version`,HD=`vpc`,UD=`watermarkCreationTime`,WD=`watermarkKey`,GD=`workloadSet`,S=`xmlName`,KD=`zoneId`,qD=`zoneName`,JD=`zoneState`,YD=`zoneType`,C=`com.amazonaws.ec2`,XD=se.for(GT),ZD=[-3,GT,`EC2ServiceException`,0,[],[]];XD.registerError(ZD,ate);var QD=[XD],$D=[0,C,Jo,8,0],eO=[0,C,One,8,0],tO=[0,C,bie,8,0],nO=[0,C,loe,8,0],rO=[3,C,Zi,0,[ea,na,Nl,wh,sre,Zh,_,$h,yh,To,Eo,ao,Og,Yae,m,Xh],[[0,{[b]:`AllocationId`,[S]:Ov}],[0,{[b]:`AssociationId`,[S]:Mv}],[0,{[b]:`Domain`,[S]:Tb}],[0,{[b]:`NetworkInterfaceId`,[S]:ow}],[0,{[b]:`NetworkInterfaceOwnerId`,[S]:sw}],[0,{[b]:`PrivateIpAddress`,[S]:Xw}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`PublicIpv4Pool`,[S]:Zw}],[0,{[b]:`NetworkBorderGroup`,[S]:XC}],[0,{[b]:`CustomerOwnedIp`,[S]:Iy}],[0,{[b]:`CustomerOwnedIpv4Pool`,[S]:Ly}],[0,{[b]:`CarrierIp`,[S]:Oy}],[0,{[b]:`SubnetId`,[S]:gE}],[0,{[b]:`ServiceManaged`,[S]:vE}],[0,{[b]:`InstanceId`,[S]:fS}],[0,{[b]:`PublicIp`,[S]:qw}]]],iO=[3,C,ote,0,[Nl,Zi,$h,yh,Eo,Xg,kp,p],[0,0,0,0,0,[()=>ZP,{[S]:$g}],0,[2,{[b]:`DryRun`,[S]:y}]]],aO=[3,C,ste,0,[ea,$h,yh,Nl,To,Eo,ao,Xh],[[0,{[b]:`AllocationId`,[S]:Ov}],[0,{[b]:`PublicIpv4Pool`,[S]:Zw}],[0,{[b]:`NetworkBorderGroup`,[S]:XC}],[0,{[b]:`Domain`,[S]:Tb}],[0,{[b]:`CustomerOwnedIp`,[S]:Iy}],[0,{[b]:`CustomerOwnedIpv4Pool`,[S]:Ly}],[0,{[b]:`CarrierIp`,[S]:Oy}],[0,{[b]:`PublicIp`,[S]:qw}]]],oO=[3,C,cte,0,[ea,m,Xh,p,wh,Zh,Lte],[0,0,0,[2,{[b]:`DryRun`,[S]:y}],[0,{[b]:`NetworkInterfaceId`,[S]:ow}],[0,{[b]:`PrivateIpAddress`,[S]:Xw}],[2,{[b]:`AllowReassociation`,[S]:Vv}]]],sO=[3,C,lte,0,[na],[[0,{[b]:`AssociationId`,[S]:Mv}]]],cO=[3,C,Ste,0,[Mf,m],[[()=>LA,0],0],2],lO=[3,C,Cte,0,[Nf],[[()=>IA,{[b]:`IamInstanceProfileAssociation`,[S]:mS}]]],uO=[3,C,Pte,0,[pg,gd,$h,p,Og],[[0,{[b]:`RouteTableId`,[S]:LT}],0,0,[2,{[b]:`DryRun`,[S]:y}],[0,{[b]:`SubnetId`,[S]:gE}]],1],dO=[3,C,Fte,0,[na,sa],[[0,{[b]:`AssociationId`,[S]:Mv}],[()=>TM,{[b]:`AssociationState`,[S]:Wv}]]],fO=[3,C,bte,0,[wf,v,p],[[0,{[b]:`InternetGatewayId`,[S]:uS}],[0,{[b]:`VpcId`,[S]:TD}],[2,{[b]:`DryRun`,[S]:y}]],2],pO=[3,C,Jte,0,[jl,m,B_,Ll,p],[0,0,0,1,[2,{[b]:`DryRun`,[S]:y}]],3],mO=[3,C,hte,0,[x_],[[2,{[b]:`Value`,[S]:bD}]]],hO=[3,C,Yte,0,[x_],[[0,{[b]:`Value`,[S]:bD}]]],gO=[3,C,Bte,0,[bd,Xg,p,Ig,Lg,Hp,ed,qg,po,Bp],[[0,{[b]:`GroupId`,[S]:Ex}],[()=>ZP,{[S]:$g}],[2,{[b]:`DryRun`,[S]:y}],[0,{[b]:`SourceSecurityGroupName`,[S]:DE}],[0,{[b]:`SourceSecurityGroupOwnerId`,[S]:OE}],[0,{[b]:`IpProtocol`,[S]:jS}],[1,{[b]:`FromPort`,[S]:gx}],[1,{[b]:`ToPort`,[S]:tD}],[0,{[b]:`CidrIp`,[S]:Ay}],[()=>nP,{[b]:`IpPermissions`,[S]:MS}]],1],_O=[3,C,Vte,0,[sg,vg],[[2,{[b]:`Return`,[S]:vT}],[()=>HP,{[b]:`SecurityGroupRuleSet`,[S]:rE}]]],vO=[3,C,Hte,0,[po,ed,bd,wd,Bp,Hp,Ig,Lg,qg,Xg,p],[0,1,0,0,[()=>nP,0],0,0,0,1,[()=>ZP,{[S]:$g}],[2,{[b]:`DryRun`,[S]:y}]]],yO=[3,C,Ute,0,[sg,vg],[[2,{[b]:`Return`,[S]:vT}],[()=>HP,{[b]:`SecurityGroupRuleSet`,[S]:rE}]]],bO=[3,C,ua,0,[Fh,Vne,dg,xv,vv,wd,yh,wv,rie,nie,Cd,kd,hae,g],[[0,{[b]:`OptInStatus`,[S]:ww}],[()=>dN,{[b]:`MessageSet`,[S]:zC}],[0,{[b]:`RegionName`,[S]:MT}],[0,{[b]:`ZoneName`,[S]:qD}],[0,{[b]:`ZoneId`,[S]:KD}],[0,{[b]:`GroupName`,[S]:Ox}],[0,{[b]:`NetworkBorderGroup`,[S]:XC}],[0,{[b]:`ZoneType`,[S]:YD}],[0,{[b]:`ParentZoneName`,[S]:fT}],[0,{[b]:`ParentZoneId`,[S]:dT}],[0,{[b]:`GroupLongName`,[S]:Dx}],[()=>lN,{[b]:`GeographySet`,[S]:jx}],[()=>fN,{[b]:`SubGeographySet`,[S]:iE}],[0,{[b]:`ZoneState`,[S]:JD}]]],xO=[3,C,da,0,[ua,pa,ta],[0,0,[()=>aN,{[S]:ea}]]],SO=[3,C,Zte,0,[vh],[[0,{[b]:`Name`,[S]:YC}]]],CO=[3,C,ha,0,[hh],[[0,{[b]:`Message`,[S]:KC}]]],wO=[3,C,_a,0,[vh],[[0,{[b]:`Name`,[S]:YC}]]],TO=[3,C,Aa,0,[x_],[[21,{[b]:`Value`,[S]:bD}]]],EO=[3,C,Na,0,[Vu,xh,vc,J_],[[()=>cA,{[b]:`Ebs`,[S]:lx}],[0,{[b]:`NoDevice`,[S]:$C}],[0,{[b]:`DeviceName`,[S]:sb}],[0,{[b]:`VirtualName`,[S]:AD}]]],DO=[3,C,Ha,0,[Sf],[[0,{[b]:`InternetGatewayBlockMode`,[S]:lS}]]],OO=[3,C,Lo,0,[Mo,Ro],[0,()=>AO]],kO=[3,C,Io,0,[Mo,Ro],[[0,{[b]:`CapacityReservationPreference`,[S]:zy}],[()=>jO,{[b]:`CapacityReservationTarget`,[S]:Hy}]]],AO=[3,C,Ro,0,[jo,Po],[0,0]],jO=[3,C,zo,0,[jo,Po],[[0,{[b]:`CapacityReservationId`,[S]:Ry}],[0,{[b]:`CapacityReservationResourceGroupArn`,[S]:By}]]],MO=[3,C,cs,0,[Gg,y_,b_],[1,1,1]],NO=[3,C,ls,0,[Gg,y_,b_],[[1,{[b]:`TcpEstablishedTimeout`,[S]:KE}],[1,{[b]:`UdpStreamTimeout`,[S]:vD}],[1,{[b]:`UdpTimeout`,[S]:yD}]]],PO=[3,C,qo,0,[roe,ioe,Al,Ec,Kc,Uu,Lm,Qre,Xg,to,Es,p],[0,0,0,0,[0,{[b]:`DestinationRegion`,[S]:mb}],[2,{[b]:`Encrypted`,[S]:dx}],[0,{[b]:`KmsKeyId`,[S]:oC}],[()=>$D,{[b]:`PresignedUrl`,[S]:lT}],[()=>ZP,{[S]:$g}],1,0,[2,{[b]:`DryRun`,[S]:y}]],2],FO=[3,C,Yo,0,[_,Dg],[[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`SnapshotId`,[S]:hE}]]],IO=[3,C,wo,0,[$a,Jg,ca,Mh],[[1,{[b]:`CoreCount`,[S]:Cy}],[1,{[b]:`ThreadsPerCore`,[S]:nD}],[0,{[b]:`AmdSevSnp`,[S]:Kv}],[0,{[b]:`NestedVirtualization`,[S]:yw}]]],LO=[3,C,Do,0,[$a,Jg,ca,Mh],[1,1,0,0]],RO=[3,C,uo,0,[m,vh,Xg,Kae,p,Al,cre,Ia],[[0,{[b]:`InstanceId`,[S]:fS}],[0,{[b]:`Name`,[S]:YC}],[()=>ZP,{[S]:$g}],0,[2,{[b]:`DryRun`,[S]:y}],[0,{[b]:`Description`,[S]:Sb}],[2,{[b]:`NoReboot`,[S]:mw}],[()=>hN,{[b]:`BlockDeviceMapping`,[S]:uy}]],2],zO=[3,C,fo,0,[Kf],[[0,{[b]:`ImageId`,[S]:_S}]]],BO=[3,C,co,0,[Xg,p],[[()=>ZP,{[S]:$g}],[2,{[b]:`DryRun`,[S]:y}]]],VO=[3,C,lo,0,[yf],[[()=>bj,{[b]:`InternetGateway`,[S]:cS}]]],HO=[3,C,yo,0,[zm,Ym,Xg,Pm,p],[0,0,[()=>ZP,{[S]:$g}],0,[2,{[b]:`DryRun`,[S]:y}]],1],UO=[3,C,So,0,[ia,ea,as,p,Og,v,fa,Xg,ds,Zh,aae,eoe,Pg],[0,0,[0,4],2,0,0,[()=>cN,{[S]:da}],[()=>ZP,{[S]:$g}],0,0,[()=>aN,{[S]:oae}],[()=>tP,{[S]:toe}],1]],WO=[3,C,Co,0,[as,Sh],[[0,{[b]:`ClientToken`,[S]:Wy}],[()=>Vj,{[b]:`NatGateway`,[S]:nw}]]],GO=[3,C,ko,0,[Vh,Xg,kg,$m,Lh,p,wd,Ug],[1,[()=>ZP,{[S]:$g}],0,0,()=>Zj,[2,{[b]:`DryRun`,[S]:y}],[0,{[b]:`GroupName`,[S]:Ox}],[0,{[b]:`Strategy`,[S]:UE}]]],KO=[3,C,Ao,0,[Jh],[[()=>eM,{[b]:`PlacementGroup`,[S]:Ww}]]],qO=[3,C,No,0,[pg,Pc,P_,Kg,Qm,ro,bo,Ih,p,Ms,gd,Bs,yu,m,wh,X_,Ch],[[0,{[b]:`RouteTableId`,[S]:LT}],0,0,0,0,0,0,0,[2,{[b]:`DryRun`,[S]:y}],[0,{[b]:`DestinationCidrBlock`,[S]:$y}],[0,{[b]:`GatewayId`,[S]:wx}],[0,{[b]:`DestinationIpv6CidrBlock`,[S]:ob}],[0,{[b]:`EgressOnlyInternetGatewayId`,[S]:Jb}],[0,{[b]:`InstanceId`,[S]:fS}],[0,{[b]:`NetworkInterfaceId`,[S]:ow}],[0,{[b]:`VpcPeeringConnectionId`,[S]:MD}],[0,{[b]:`NatGatewayId`,[S]:iw}]],1],JO=[3,C,Fo,0,[sg],[[2,{[b]:`Return`,[S]:vT}]]],YO=[3,C,Bo,0,[v,Xg,as,p],[[0,{[b]:`VpcId`,[S]:TD}],[()=>ZP,{[S]:$g}],[0,4],[2,{[b]:`DryRun`,[S]:y}]],1],XO=[3,C,Vo,0,[mg,as],[[()=>CM,{[b]:`RouteTable`,[S]:VT}],[0,{[b]:`ClientToken`,[S]:Wy}]]],ZO=[3,C,Go,0,[Al,wd,v,Xg,p],[[0,{[S]:fd}],0,0,[()=>ZP,{[S]:$g}],[2,{[b]:`DryRun`,[S]:y}]],2],QO=[3,C,Ko,0,[bd,_,gg],[[0,{[b]:`GroupId`,[S]:Ex}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`SecurityGroupArn`,[S]:$T}]]],$O=[3,C,Xo,0,[B_,Al,Nh,Xg,gne,p],[0,0,0,[()=>ZP,{[S]:$g}],0,[2,{[b]:`DryRun`,[S]:y}]],1],ek=[3,C,Zo,0,[v,Xg,ua,pa,Ja,cf,Nh,dp,Lf,yp,If,vp,p],[0,[()=>ZP,{[S]:$g}],0,0,0,0,0,2,0,1,0,1,[2,{[b]:`DryRun`,[S]:y}]],1],tk=[3,C,Qo,0,[Wg],[[()=>LM,{[b]:`Subnet`,[S]:WE}]]],nk=[3,C,ps,0,[ua,pa,Uu,Mm,Lm,Nh,Vg,Dg,rv,Xg,eh,s_,as,L_,Lh,p],[0,0,[2,{[b]:`Encrypted`,[S]:dx}],1,0,0,1,0,0,[()=>ZP,{[S]:$g}],2,1,[0,4],1,()=>Zj,[2,{[b]:`DryRun`,[S]:y}]]],rk=[3,C,ms,0,[Ja,Wp,cf,Lf,yp,If,vp,uf,k_,Xg,p,xm,jte],[0,0,0,0,1,0,1,0,()=>$M,[()=>ZP,{[S]:$g}],[2,{[b]:`DryRun`,[S]:y}],[0,{[b]:`InstanceTenancy`,[S]:$S}],[2,{[b]:`AmazonProvidedIpv6CidrBlock`,[S]:Rv}]]],ik=[3,C,hs,0,[fv],[[()=>YM,{[b]:`Vpc`,[S]:HD}]]],ak=[3,C,$o,0,[eo],[0],1],ok=[3,C,Ns,0,[dl,gl,hl],[[1,{[b]:`DefaultTcpEstablishedTimeout`,[S]:hb}],[1,{[b]:`DefaultUdpTimeout`,[S]:bb}],[1,{[b]:`DefaultUdpStreamTimeout`,[S]:yb}]]],sk=[3,C,Hs,0,[wf,p],[[0,{[b]:`InternetGatewayId`,[S]:uS}],[2,{[b]:`DryRun`,[S]:y}]],1],ck=[3,C,fc,0,[zm,Um,p],[0,0,[2,{[b]:`DryRun`,[S]:y}]]],lk=[3,C,pc,0,[sg,Um],[[2,{[b]:`Return`,[S]:vT}],[0,{[b]:`KeyPairId`,[S]:lC}]]],uk=[3,C,xc,0,[Ch,p],[[0,{[S]:Ch}],2],1],dk=[3,C,Sc,0,[Ch],[[0,{[b]:`NatGatewayId`,[S]:iw}]]],fk=[3,C,Ac,0,[wd,p],[[0,{[b]:`GroupName`,[S]:Ox}],[2,{[b]:`DryRun`,[S]:y}]],1],pk=[3,C,Ic,0,[pg,Pc,p,Ms,Bs],[[0,{[b]:`RouteTableId`,[S]:LT}],0,[2,{[b]:`DryRun`,[S]:y}],[0,{[b]:`DestinationCidrBlock`,[S]:$y}],[0,{[b]:`DestinationIpv6CidrBlock`,[S]:ob}]],1],mk=[3,C,Bc,0,[pg,p],[[0,{[b]:`RouteTableId`,[S]:LT}],[2,{[b]:`DryRun`,[S]:y}]],1],hk=[3,C,Xc,0,[bd,wd,p],[0,0,[2,{[b]:`DryRun`,[S]:y}]]],gk=[3,C,Zc,0,[sg,bd],[[2,{[b]:`Return`,[S]:vT}],[0,{[b]:`GroupId`,[S]:Ex}]]],_k=[3,C,tl,0,[Dg,p],[0,[2,{[b]:`DryRun`,[S]:y}]],1],vk=[3,C,nl,0,[Og,p],[0,[2,{[b]:`DryRun`,[S]:y}]],1],yk=[3,C,vl,0,[B_,p],[0,[2,{[b]:`DryRun`,[S]:y}]],1],bk=[3,C,yl,0,[v,p],[0,[2,{[b]:`DryRun`,[S]:y}]],1],xk=[3,C,xs,0,[Ure,p,id,ta],[[()=>OP,{[S]:Xh}],[2,{[b]:`DryRun`,[S]:y}],[()=>TN,{[S]:ad}],[()=>aN,{[S]:ea}]]],Sk=[3,C,Ss,0,[xa],[[()=>iN,{[b]:`AddressesSet`,[S]:qv}]]],Ck=[3,C,Ds,0,[Cv,bv,ute,p,id],[[()=>fF,{[S]:xv}],[()=>dF,{[S]:vv}],2,[2,{[b]:`DryRun`,[S]:y}],[()=>TN,{[S]:ad}]]],wk=[3,C,Os,0,[ya],[[()=>uN,{[b]:`AvailabilityZoneInfo`,[S]:ey}]]],Tk=[3,C,Xs,0,[Ete,id,dh,h],[[()=>sN,{[S]:na}],[()=>TN,{[S]:ad}],1,0]],Ek=[3,C,Zs,0,[Ff,h],[[()=>jN,{[b]:`IamInstanceProfileAssociationSet`,[S]:hS}],[0,{[b]:`NextToken`,[S]:vw}]]],Dk=[3,C,tc,0,[Bu,qf,Cre,ff,gf,dh,h,p,id],[[()=>wN,{[S]:Il}],[()=>MN,{[S]:Kf}],[()=>bP,{[S]:Rh}],2,2,1,0,[2,{[b]:`DryRun`,[S]:y}],[()=>TN,{[S]:ad}]]],Ok=[3,C,nc,0,[h,Om],[[0,{[b]:`NextToken`,[S]:vw}],[()=>NN,{[b]:`ImagesSet`,[S]:HS}]]],kk=[3,C,rc,0,[Jf,lp,p,id,h,dh],[[()=>RN,{[S]:m}],2,[2,{[b]:`DryRun`,[S]:y}],[()=>TN,{[S]:ad}],[0,{[b]:`NextToken`,[S]:vw}],[1,{[b]:`MaxResults`,[S]:RC}]]],Ak=[3,C,ic,0,[h,tae],[[0,{[b]:`NextToken`,[S]:vw}],[()=>MP,{[b]:`ReservationSet`,[S]:PT}]]],jk=[3,C,ac,0,[p,Sm,id,dh,h,wm],[2,[64,{[S]:_m}],[()=>TN,{[S]:ad}],1,0,2]],Mk=[3,C,oc,0,[Sm,h],[[()=>ZN,{[b]:`InstanceTypeSet`,[S]:XS}],[0,{[b]:`NextToken`,[S]:vw}]]],Nk=[3,C,Us,0,[h,dh,p,Ef,id],[0,1,[2,{[b]:`DryRun`,[S]:y}],[()=>$N,{[b]:`InternetGatewayId`,[S]:uS}],[()=>TN,{[S]:ad}]]],Pk=[3,C,Ws,0,[Of,h],[[()=>eP,{[b]:`InternetGatewaySet`,[S]:dS}],[0,{[b]:`NextToken`,[S]:vw}]]],Fk=[3,C,mc,0,[Vm,Gm,Np,p,id],[[()=>sP,{[S]:zm}],[()=>cP,{[S]:Um}],2,[2,{[b]:`DryRun`,[S]:y}],[()=>TN,{[S]:ad}]]],Ik=[3,C,hc,0,[Hm],[[()=>lP,{[b]:`KeySet`,[S]:uC}]]],Lk=[3,C,Cc,0,[p,ad,dh,ire,h],[2,[()=>TN,0],1,[()=>hP,{[S]:Ch}],0]],Rk=[3,C,wc,0,[ore,h],[[()=>gP,{[b]:`NatGatewaySet`,[S]:aw}],[0,{[b]:`NextToken`,[S]:vw}]]],zk=[3,C,jc,0,[xd,p,Ed,id],[[()=>xP,{[S]:bd}],[2,{[b]:`DryRun`,[S]:y}],[64,{[b]:`GroupName`,[S]:Ox}],[()=>TN,{[S]:ad}]]],Bk=[3,C,Mc,0,[Fre],[[()=>SP,{[b]:`PlacementGroupSet`,[S]:Kw}]]],Vk=[3,C,Lc,0,[jie,Rte,p,id],[[()=>jP,{[S]:dg}],2,[2,{[b]:`DryRun`,[S]:y}],[()=>TN,{[S]:ad}]]],Hk=[3,C,Rc,0,[Qie],[[()=>AP,{[b]:`RegionInfo`,[S]:OT}]]],Uk=[3,C,Vc,0,[h,dh,p,Kie,id],[0,1,[2,{[b]:`DryRun`,[S]:y}],[()=>LP,{[S]:pg}],[()=>TN,{[S]:ad}]]],Wk=[3,C,Hc,0,[Xie,h],[[()=>RP,{[b]:`RouteTableSet`,[S]:RT}],[0,{[b]:`NextToken`,[S]:vw}]]],Gk=[3,C,Qc,0,[xd,Ed,h,dh,p,id],[[()=>kN,{[S]:bd}],[()=>AN,{[S]:wd}],0,1,[2,{[b]:`DryRun`,[S]:y}],[()=>TN,{[S]:ad}]]],Kk=[3,C,$c,0,[h,xg],[[0,{[b]:`NextToken`,[S]:vw}],[()=>BP,{[b]:`SecurityGroupInfo`,[S]:eE}]]],qk=[3,C,rl,0,[dh,h,mre,cie,Vae,p,id],[1,0,[()=>bP,{[S]:Rh}],[64,{[S]:lie}],[()=>WP,{[S]:Dg}],[2,{[b]:`DryRun`,[S]:y}],[()=>TN,{[S]:ad}]]],Jk=[3,C,il,0,[h,poe],[[0,{[b]:`NextToken`,[S]:vw}],[()=>GP,{[b]:`SnapshotSet`,[S]:AE}]]],Yk=[3,C,al,0,[id,wae,h,dh,p],[[()=>TN,{[S]:ad}],[()=>KP,{[S]:Og}],0,1,[2,{[b]:`DryRun`,[S]:y}]]],Xk=[3,C,ol,0,[h,hoe],[[0,{[b]:`NextToken`,[S]:vw}],[()=>JP,{[b]:`SubnetSet`,[S]:jE}]]],Zk=[3,C,bl,0,[V_,lp,p,id,h,dh],[[()=>iF,{[S]:B_}],2,[2,{[b]:`DryRun`,[S]:y}],[()=>TN,{[S]:ad}],[0,{[b]:`NextToken`,[S]:vw}],[1,{[b]:`MaxResults`,[S]:RC}]]],Qk=[3,C,xl,0,[h,uv],[[0,{[b]:`NextToken`,[S]:vw}],[()=>aF,{[b]:`VolumeSet`,[S]:FD}]]],$k=[3,C,Sl,0,[id,H_,h,dh,p],[[()=>TN,{[S]:ad}],[()=>sF,{[S]:v}],0,1,[2,{[b]:`DryRun`,[S]:y}]]],eA=[3,C,Cl,0,[h,pv],[[0,{[b]:`NextToken`,[S]:vw}],[()=>lF,{[b]:`VpcSet`,[S]:LD}]]],tA=[3,C,Gs,0,[wf,v,p],[[0,{[b]:`InternetGatewayId`,[S]:uS}],[0,{[b]:`VpcId`,[S]:TD}],[2,{[b]:`DryRun`,[S]:y}]],2],nA=[3,C,wl,0,[B_,jl,Gu,m,p],[0,0,2,0,[2,{[b]:`DryRun`,[S]:y}]],1],rA=[3,C,Cs,0,[na,Xh,p],[0,0,[2,{[b]:`DryRun`,[S]:y}]]],iA=[3,C,Qs,0,[na],[0],1],aA=[3,C,$s,0,[Nf],[[()=>IA,{[b]:`IamInstanceProfileAssociation`,[S]:mS}]]],oA=[3,C,Uc,0,[na,p],[[0,{[b]:`AssociationId`,[S]:Mv}],[2,{[b]:`DryRun`,[S]:y}]],1],sA=[3,C,uc,0,[Oae,bs,l_],[[1,{[b]:`SizeInGB`,[S]:oE}],[1,{[b]:`Count`,[S]:Zy}],[0,{[b]:`Type`,[S]:fD}]]],cA=[3,C,Pl,0,[Oc,Mm,Dg,nv,rv,Lm,s_,Nh,ua,Uu,L_,pa,Ll],[[2,{[b]:`DeleteOnTermination`,[S]:db}],[1,{[b]:`Iops`,[S]:nC}],[0,{[b]:`SnapshotId`,[S]:hE}],[1,{[b]:`VolumeSize`,[S]:ID}],[0,{[b]:`VolumeType`,[S]:RD}],[0,{[b]:`KmsKeyId`,[S]:oC}],[1,{[b]:`Throughput`,[S]:uD}],[0,{[b]:`OutpostArn`,[S]:xw}],[0,{[b]:`AvailabilityZone`,[S]:Qv}],[2,{[b]:`Encrypted`,[S]:dx}],1,0,1]],lA=[3,C,zl,0,[Ll,Ma,Wa,Ra,rh,ph,ah],[[1,{[b]:`EbsCardIndex`,[S]:Eb}],[1,{[b]:`BaselineBandwidthInMbps`,[S]:ly}],[1,{[b]:`BaselineThroughputInMBps`,[S]:gy}],[1,{[b]:`BaselineIops`,[S]:dy}],[1,{[b]:`MaximumBandwidthInMbps`,[S]:wC}],[1,{[b]:`MaximumThroughputInMBps`,[S]:HC}],[1,{[b]:`MaximumIops`,[S]:jC}]]],uA=[3,C,fu,0,[xu,Lu,gu,Ah,Sne,Ote,Cne,Bl],[[0,{[b]:`EbsOptimizedSupport`,[S]:Yb}],[0,{[b]:`EncryptionSupport`,[S]:ox}],[()=>pA,{[b]:`EbsOptimizedInfo`,[S]:Kb}],[0,{[b]:`NvmeSupport`,[S]:hw}],[1,{[b]:`MaximumEbsAttachments`,[S]:EC}],[0,{[b]:`AttachmentLimitType`,[S]:Fv}],[1,{[b]:`MaximumEbsCards`,[S]:DC}],[()=>yN,{[b]:`EbsCardSet`,[S]:Db}]]],dA=[3,C,lu,0,[la,Oc,Hg,B_,aa,Y_,Lh,Ll],[[4,{[b]:`AttachTime`,[S]:Zv}],[2,{[b]:`DeleteOnTermination`,[S]:db}],[0,{[b]:`Status`,[S]:HE}],[0,{[b]:`VolumeId`,[S]:DD}],[0,{[b]:`AssociatedResource`,[S]:Hv}],[0,{[b]:`VolumeOwnerId`,[S]:jD}],[()=>Qj,{[b]:`Operator`,[S]:jw}],[1,{[b]:`EbsCardIndex`,[S]:Eb}]]],fA=[3,C,uu,0,[B_,Oc],[[0,{[b]:`VolumeId`,[S]:DD}],[2,{[b]:`DeleteOnTermination`,[S]:db}]]],pA=[3,C,gu,0,[Ma,Wa,Ra,rh,ph,ah],[[1,{[b]:`BaselineBandwidthInMbps`,[S]:ly}],[1,{[b]:`BaselineThroughputInMBps`,[S]:gy}],[1,{[b]:`BaselineIops`,[S]:dy}],[1,{[b]:`MaximumBandwidthInMbps`,[S]:wC}],[1,{[b]:`MaximumThroughputInMBps`,[S]:HC}],[1,{[b]:`MaximumIops`,[S]:jC}]]],mA=[3,C,pu,0,[wne],[[1,{[b]:`MaximumEfaInterfaces`,[S]:OC}]]],hA=[3,C,Gl,0,[Zl,Kl,Jl,Yl],[[0,{[b]:`ElasticGpuId`,[S]:Fb}],[0,{[b]:`ElasticGpuAssociationId`,[S]:jb}],[0,{[b]:`ElasticGpuAssociationState`,[S]:Mb}],[0,{[b]:`ElasticGpuAssociationTime`,[S]:Pb}]]],gA=[3,C,Ql,0,[l_],[0],1],_A=[3,C,eu,0,[l_,bs],[0,1],1],vA=[3,C,tu,0,[ou,nu,iu,au],[[0,{[b]:`ElasticInferenceAcceleratorArn`,[S]:Ib}],[0,{[b]:`ElasticInferenceAcceleratorAssociationId`,[S]:Lb}],[0,{[b]:`ElasticInferenceAcceleratorAssociationState`,[S]:Rb}],[4,{[b]:`ElasticInferenceAcceleratorAssociationTime`,[S]:Bb}]]],yA=[3,C,ju,0,[ku,Pu],[2,()=>bA]],bA=[3,C,Fu,0,[Nu],[2]],xA=[3,C,Su,0,[Hu],[[2,{[b]:`Enabled`,[S]:ux}]]],SA=[3,C,bu,0,[Hu],[2]],CA=[3,C,ad,0,[vh,cv],[0,[()=>tF,{[S]:x_}]]],wA=[3,C,qu,0,[vh,mh,bs,oh],[[0,{[b]:`Name`,[S]:YC}],[0,{[b]:`Manufacturer`,[S]:WC}],[1,{[b]:`Count`,[S]:Zy}],[()=>TA,{[b]:`MemoryInfo`,[S]:MC}]]],TA=[3,C,Yu,0,[wg],[[1,{[b]:`SizeInMiB`,[S]:uE}]]],EA=[3,C,Zu,0,[od,goe],[[()=>EN,{[b]:`Fpgas`,[S]:xx}],[1,{[b]:`TotalFpgaMemoryInMiB`,[S]:qE}]]],DA=[3,C,ud,0,[m,pne,p],[0,2,[2,{[b]:`DryRun`,[S]:y}]],1],OA=[3,C,dd,0,[m,c_,Sre],[[0,{[b]:`InstanceId`,[S]:fS}],[4,{[b]:`Timestamp`,[S]:dD}],[0,{[b]:`Output`,[S]:Mw}]]],kA=[3,C,pd,0,[vh,mh,bs,nne,Od,_v,oh],[[0,{[b]:`Name`,[S]:YC}],[0,{[b]:`Manufacturer`,[S]:WC}],[1,{[b]:`Count`,[S]:Zy}],[1,{[b]:`LogicalGpuCount`,[S]:mC}],[1,{[b]:`GpuPartitionSize`,[S]:Ax}],[()=>uF,{[b]:`WorkloadSet`,[S]:GD}],[()=>AA,{[b]:`MemoryInfo`,[S]:MC}]]],AA=[3,C,hd,0,[wg],[[1,{[b]:`SizeInMiB`,[S]:uE}]]],jA=[3,C,yd,0,[Ad,_oe],[[()=>DN,{[b]:`Gpus`,[S]:Nx}],[1,{[b]:`TotalGpuMemoryInMiB`,[S]:YE}]]],MA=[3,C,Sd,0,[bd,wd],[[0,{[b]:`GroupId`,[S]:Ex}],[0,{[b]:`GroupName`,[S]:Ox}]]],NA=[3,C,Pd,0,[ys],[[2,{[b]:`Configured`,[S]:Xy}]]],PA=[3,C,Fd,0,[ys],[2]],FA=[3,C,Mf,0,[Ca,Wd],[[0,{[b]:`Arn`,[S]:ry}],[0,{[b]:`Id`,[S]:Kx}]]],IA=[3,C,Nf,0,[na,m,Mf,g,c_],[[0,{[b]:`AssociationId`,[S]:Mv}],[0,{[b]:`InstanceId`,[S]:fS}],[()=>FA,{[b]:`IamInstanceProfile`,[S]:pS}],[0,{[b]:`State`,[S]:VE}],[4,{[b]:`Timestamp`,[S]:dD}]]],LA=[3,C,Bf,0,[Ca,vh],[[0,{[b]:`Arn`,[S]:ry}],[0,{[b]:`Name`,[S]:YC}]]],RA=[3,C,km,0,[qh,__,Ia,Al,Ru,Ud,Sp,vh,cg,lg,Mg,Fg,_,ov,za,t_,pl,pm,Aae,Fc,ine,ef,Cg,Tg,rd,Tm,Kf,Qf,g,Ph,no,aie,Hh,wa,bm,Im,ug,rg],[[0,{[b]:`PlatformDetails`,[S]:Uw}],[0,{[b]:`UsageOperation`,[S]:gD}],[()=>mN,{[b]:`BlockDeviceMapping`,[S]:uy}],[0,{[b]:`Description`,[S]:Sb}],[2,{[b]:`EnaSupport`,[S]:sx}],[0,{[b]:`Hypervisor`,[S]:Fx}],[0,{[b]:`ImageOwnerAlias`,[S]:SS}],[0,{[b]:`Name`,[S]:YC}],[0,{[b]:`RootDeviceName`,[S]:yT}],[0,{[b]:`RootDeviceType`,[S]:bT}],[0,{[b]:`SriovNetSupport`,[S]:CE}],[()=>PM,{[b]:`StateReason`,[S]:EE}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`VirtualizationType`,[S]:BD}],[0,{[b]:`BootMode`,[S]:fy}],[0,{[b]:`TpmSupport`,[S]:oD}],[0,{[b]:`DeprecationTime`,[S]:_b}],[0,{[b]:`ImdsSupport`,[S]:WS}],[0,{[b]:`SourceInstanceId`,[S]:sE}],[0,{[b]:`DeregistrationProtection`,[S]:pb}],[0,{[b]:`LastLaunchedTime`,[S]:_C}],[2,{[b]:`ImageAllowed`,[S]:eS}],[0,{[b]:`SourceImageId`,[S]:lE}],[0,{[b]:`SourceImageRegion`,[S]:dE}],[2,{[b]:`FreeTierEligible`,[S]:yx}],[()=>PN,{[b]:`ImageWatermarkSet`,[S]:tC}],[0,{[b]:`ImageId`,[S]:_S}],[0,{[b]:`ImageLocation`,[S]:vS}],[0,{[b]:`ImageState`,[S]:US}],[0,{[b]:`ImageOwnerId`,[S]:CS}],[0,{[b]:`CreationDate`,[S]:Ty}],[2,{[b]:`IsPublic`,[S]:IS}],[()=>EP,{[b]:`ProductCodes`,[S]:Iw}],[0,{[b]:`Architecture`,[S]:iy}],[0,{[b]:`ImageType`,[S]:QS}],[0,{[b]:`KernelId`,[S]:aC}],[0,{[b]:`RamdiskId`,[S]:DT}],[0,{[b]:`Platform`,[S]:pT}]]],zA=[3,C,Dm,0,[hv,Tg,Cg,Dae,mv],[[0,{[b]:`WatermarkKey`,[S]:WD}],[0,{[b]:`SourceImageRegion`,[S]:dE}],[0,{[b]:`SourceImageId`,[S]:lE}],[4,{[b]:`SourceImageCreationTime`,[S]:aE}],[4,{[b]:`WatermarkCreationTime`,[S]:UD}]]],BA=[3,C,Xf,0,[zm,Gre,Xg,p],[[0,{[b]:`KeyName`,[S]:cC}],[21,{[b]:`PublicKeyMaterial`,[S]:tT}],[()=>ZP,{[S]:$g}],[2,{[b]:`DryRun`,[S]:y}]],2],VA=[3,C,Zf,0,[Fm,zm,Um,_],[[0,{[b]:`KeyFingerprint`,[S]:iC}],[0,{[b]:`KeyName`,[S]:cC}],[0,{[b]:`KeyPairId`,[S]:lC}],[()=>XP,{[b]:`TagSet`,[S]:rD}]]],HA=[3,C,Xd,0,[ba,yoe],[[()=>FN,{[b]:`Accelerators`,[S]:ty}],[1,{[b]:`TotalInferenceMemoryInMiB`,[S]:XE}]]],UA=[3,C,pf,0,[bs,vh,mh,oh],[[1,{[b]:`Count`,[S]:Zy}],[0,{[b]:`Name`,[S]:YC}],[0,{[b]:`Manufacturer`,[S]:WC}],[()=>WA,{[b]:`MemoryInfo`,[S]:MC}]]],WA=[3,C,hf,0,[wg],[[1,{[b]:`SizeInMiB`,[S]:uE}]]],GA=[3,C,Am,0,[wa,Ia,as,hu,Ru,Ud,Mf,ep,Xl,su,Th,Nh,cg,lg,xg,hg,jae,Mg,Fg,_,ov,wo,Xa,jo,Lo,Pd,hne,ch,Su,za,qh,__,v_,Wh,nf,t_,lh,oo,Oh,Lh,Eg,m,Kf,g,Uh,Kh,ooe,zm,Dte,Hh,_m,fne,ig,Im,ug,rg,_h,Og,v,Zh,zre],[[0,{[b]:`Architecture`,[S]:iy}],[()=>IN,{[b]:`BlockDeviceMapping`,[S]:uy}],[0,{[b]:`ClientToken`,[S]:Wy}],[2,{[b]:`EbsOptimized`,[S]:Gb}],[2,{[b]:`EnaSupport`,[S]:sx}],[0,{[b]:`Hypervisor`,[S]:Fx}],[()=>FA,{[b]:`IamInstanceProfile`,[S]:pS}],[0,{[b]:`InstanceLifecycle`,[S]:yS}],[()=>bN,{[b]:`ElasticGpuAssociationSet`,[S]:Nb}],[()=>SN,{[b]:`ElasticInferenceAcceleratorAssociationSet`,[S]:zb}],[()=>UN,{[b]:`NetworkInterfaceSet`,[S]:cw}],[0,{[b]:`OutpostArn`,[S]:xw}],[0,{[b]:`RootDeviceName`,[S]:yT}],[0,{[b]:`RootDeviceType`,[S]:bT}],[()=>ON,{[b]:`GroupSet`,[S]:Mx}],[2,{[b]:`SourceDestCheck`,[S]:XT}],[0,{[b]:`SpotInstanceRequestId`,[S]:fE}],[0,{[b]:`SriovNetSupport`,[S]:CE}],[()=>PM,{[b]:`StateReason`,[S]:EE}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`VirtualizationType`,[S]:BD}],[()=>IO,{[b]:`CpuOptions`,[S]:Fy}],[0,{[b]:`CapacityBlockId`,[S]:xy}],[0,{[b]:`CapacityReservationId`,[S]:Ry}],[()=>kO,{[b]:`CapacityReservationSpecification`,[S]:Vy}],[()=>NA,{[b]:`HibernationOptions`,[S]:zx}],[()=>uP,{[b]:`LicenseSet`,[S]:vC}],[()=>rj,{[b]:`MetadataOptions`,[S]:FC}],[()=>xA,{[b]:`EnclaveOptions`,[S]:Xb}],[0,{[b]:`BootMode`,[S]:fy}],[0,{[b]:`PlatformDetails`,[S]:Uw}],[0,{[b]:`UsageOperation`,[S]:gD}],[4,{[b]:`UsageOperationUpdateTime`,[S]:_D}],[()=>aM,{[b]:`PrivateDnsNameOptions`,[S]:zw}],[0,{[b]:`Ipv6Address`,[S]:nS}],[0,{[b]:`TpmSupport`,[S]:oD}],[()=>$A,{[b]:`MaintenanceOptions`,[S]:IC}],[0,{[b]:`CurrentInstanceBootMode`,[S]:ky}],[()=>cj,{[b]:`NetworkPerformanceOptions`,[S]:fw}],[()=>Qj,{[b]:`Operator`,[S]:jw}],[()=>KN,{[b]:`SecondaryInterfaceSet`,[S]:mE}],[0,{[b]:`InstanceId`,[S]:fS}],[0,{[b]:`ImageId`,[S]:_S}],[()=>gj,{[b]:`InstanceState`,[S]:KS}],[0,{[b]:`PrivateDnsName`,[S]:Vw}],[0,{[b]:`DnsName`,[S]:lb}],[0,{[b]:`Reason`,[S]:UT}],[0,{[b]:`KeyName`,[S]:cC}],[1,{[b]:`AmiLaunchIndex`,[S]:Pv}],[()=>EP,{[b]:`ProductCodes`,[S]:Iw}],[0,{[b]:`InstanceType`,[S]:YS}],[4,{[b]:`LaunchTime`,[S]:yC}],[()=>$j,{[b]:`Placement`,[S]:mT}],[0,{[b]:`KernelId`,[S]:aC}],[0,{[b]:`RamdiskId`,[S]:DT}],[0,{[b]:`Platform`,[S]:pT}],[()=>Bj,{[b]:`Monitoring`,[S]:qC}],[0,{[b]:`SubnetId`,[S]:gE}],[0,{[b]:`VpcId`,[S]:TD}],[0,{[b]:`PrivateIpAddress`,[S]:Xw}],[0,{[b]:`IpAddress`,[S]:tS}]]],KA=[3,C,Jd,0,[ku,Pu],[[2,{[b]:`EnaSrdEnabled`,[S]:ex}],[()=>qA,{[b]:`EnaSrdUdpSpecification`,[S]:ix}]]],qA=[3,C,Yd,0,[Nu],[[2,{[b]:`EnaSrdUdpEnabled`,[S]:rx}]]],JA=[3,C,rf,0,[vc,Vu],[[0,{[b]:`DeviceName`,[S]:sb}],[()=>dA,{[b]:`Ebs`,[S]:lx}]]],YA=[3,C,of,0,[vc,Vu,J_,xh],[[0,{[b]:`DeviceName`,[S]:sb}],[()=>fA,{[b]:`Ebs`,[S]:lx}],[0,{[b]:`VirtualName`,[S]:AD}],[0,{[b]:`NoDevice`,[S]:$C}]]],XA=[3,C,Vf,0,[Kp],[[0,{[b]:`Ipv4Prefix`,[S]:NS}]]],ZA=[3,C,kf,0,[nf,Mp],[[0,{[b]:`Ipv6Address`,[S]:nS}],[2,{[b]:`IsPrimaryIpv6`,[S]:OS}]]],QA=[3,C,Hf,0,[Up],[[0,{[b]:`Ipv6Prefix`,[S]:FS}]]],$A=[3,C,rp,0,[oa,kie],[[0,{[b]:`AutoRecovery`,[S]:Uv}],[0,{[b]:`RebootMigration`,[S]:jT}]]],ej=[3,C,ip,0,[oa],[0]],tj=[3,C,ap,0,[Fne,$ae],[0,()=>jM]],nj=[3,C,op,0,[Bd,Ld,Md,Id,up],[0,1,0,0,0]],rj=[3,C,sp,0,[g,Bd,Ld,Md,Id,up],[[0,{[b]:`State`,[S]:VE}],[0,{[b]:`HttpTokens`,[S]:Wx}],[1,{[b]:`HttpPutResponseHopLimit`,[S]:Vx}],[0,{[b]:`HttpEndpoint`,[S]:Lx}],[0,{[b]:`HttpProtocolIpv6`,[S]:Bx}],[0,{[b]:`InstanceMetadataTags`,[S]:bS}]]],ij=[3,C,fp,0,[Ea,Oa,Al,sd,Gd,nh,wh,Ph,Uh,Zh,Qh,hg,Hg,Og,v,Cm,Gp,zp,os,Lh],[[()=>aj,{[b]:`Association`,[S]:ay}],[()=>oj,{[b]:`Attachment`,[S]:oy}],[0,{[b]:`Description`,[S]:Sb}],[()=>ON,{[b]:`GroupSet`,[S]:Mx}],[()=>BN,{[b]:`Ipv6AddressesSet`,[S]:$x}],[0,{[b]:`MacAddress`,[S]:CC}],[0,{[b]:`NetworkInterfaceId`,[S]:ow}],[0,{[b]:`OwnerId`,[S]:Cw}],[0,{[b]:`PrivateDnsName`,[S]:Vw}],[0,{[b]:`PrivateIpAddress`,[S]:Xw}],[()=>GN,{[b]:`PrivateIpAddressesSet`,[S]:Jw}],[2,{[b]:`SourceDestCheck`,[S]:XT}],[0,{[b]:`Status`,[S]:HE}],[0,{[b]:`SubnetId`,[S]:gE}],[0,{[b]:`VpcId`,[S]:TD}],[0,{[b]:`InterfaceType`,[S]:eC}],[()=>zN,{[b]:`Ipv4PrefixSet`,[S]:kS}],[()=>VN,{[b]:`Ipv6PrefixSet`,[S]:AS}],[()=>NO,{[b]:`ConnectionTrackingConfiguration`,[S]:Gy}],[()=>Qj,{[b]:`Operator`,[S]:jw}]]],aj=[3,C,pp,0,[ao,To,Cp,Kh,Xh],[[0,{[b]:`CarrierIp`,[S]:Oy}],[0,{[b]:`CustomerOwnedIp`,[S]:Iy}],[0,{[b]:`IpOwnerId`,[S]:TS}],[0,{[b]:`PublicDnsName`,[S]:Hw}],[0,{[b]:`PublicIp`,[S]:qw}]]],oj=[3,C,mp,0,[la,ra,Oc,zs,Hg,bh,Au,wu],[[4,{[b]:`AttachTime`,[S]:Zv}],[0,{[b]:`AttachmentId`,[S]:Nv}],[2,{[b]:`DeleteOnTermination`,[S]:db}],[1,{[b]:`DeviceIndex`,[S]:ab}],[0,{[b]:`Status`,[S]:HE}],[1,{[b]:`NetworkCardIndex`,[S]:QC}],[()=>KA,{[b]:`EnaSrdSpecification`,[S]:tx}],[1,{[b]:`EnaQueueCount`,[S]:Zb}]]],sj=[3,C,gp,0,[Ate,Oc,Al,zs,sd,qd,Gd,wh,Zh,Qh,Pg,Og,gte,Cm,bh,Gp,Dp,zp,Ep,Vre,Au,ss,wu],[[2,{[b]:`AssociatePublicIpAddress`,[S]:Lv}],[2,{[b]:`DeleteOnTermination`,[S]:db}],[0,{[b]:`Description`,[S]:Sb}],[1,{[b]:`DeviceIndex`,[S]:ab}],[()=>zP,{[S]:_g}],[1,{[b]:`Ipv6AddressCount`,[S]:Jx}],[()=>BN,{[b]:`Ipv6Addresses`,[S]:$x}],[0,{[b]:`NetworkInterfaceId`,[S]:ow}],[0,{[b]:`PrivateIpAddress`,[S]:Xw}],[()=>TP,{[b]:`PrivateIpAddresses`,[S]:Jw}],[1,{[b]:`SecondaryPrivateIpAddressCount`,[S]:wE}],[0,{[b]:`SubnetId`,[S]:gE}],2,0,1,[()=>iP,{[S]:Kp}],1,[()=>aP,{[S]:Up}],1,2,()=>yA,()=>MO,1]],cj=[3,C,bp,0,[Ga],[[0,{[b]:`BandwidthWeighting`,[S]:_y}]]],lj=[3,C,xp,0,[Ga],[0]],uj=[3,C,Ap,0,[Ea,ag,Uh,Zh],[[()=>aj,{[b]:`Association`,[S]:ay}],[2,{[b]:`Primary`,[S]:hT}],[0,{[b]:`PrivateDnsName`,[S]:Vw}],[0,{[b]:`PrivateIpAddress`,[S]:Xw}]]],dj=[3,C,um,0,[Oa,nh,kae,Ph,Qh,hg,Hg,Rg,Zae,Cm],[[()=>fj,{[b]:`Attachment`,[S]:oy}],[0,{[b]:`MacAddress`,[S]:CC}],[0,{[b]:`SecondaryInterfaceId`,[S]:cE}],[0,{[b]:`OwnerId`,[S]:Cw}],[()=>qN,{[b]:`PrivateIpAddressSet`,[S]:Yw}],[2,{[b]:`SourceDestCheck`,[S]:XT}],[0,{[b]:`Status`,[S]:HE}],[0,{[b]:`SecondarySubnetId`,[S]:kE}],[0,{[b]:`SecondaryNetworkId`,[S]:xE}],[0,{[b]:`InterfaceType`,[S]:eC}]]],fj=[3,C,nm,0,[la,ra,Oc,zs,Hg,bh],[[4,{[b]:`AttachTime`,[S]:Zv}],[0,{[b]:`AttachmentId`,[S]:Nv}],[2,{[b]:`DeleteOnTermination`,[S]:db}],[1,{[b]:`DeviceIndex`,[S]:ab}],[0,{[b]:`Status`,[S]:HE}],[1,{[b]:`NetworkCardIndex`,[S]:QC}]]],pj=[3,C,im,0,[Zh],[[0,{[b]:`PrivateIpAddress`,[S]:Xw}]]],mj=[3,C,sm,0,[Zh],[0],1],hj=[3,C,lm,0,[Oc,zs,Qh,Ire,Rg,Cm,bh],[2,1,[()=>JN,{[S]:Zh}],1,0,0,1]],gj=[3,C,mm,0,[vs,vh],[[1,{[b]:`Code`,[S]:Yy}],[0,{[b]:`Name`,[S]:YC}]]],_j=[3,C,em,0,[m,is,Xre],[[0,{[b]:`InstanceId`,[S]:fS}],[()=>gj,{[b]:`CurrentState`,[S]:Uy}],[()=>gj,{[b]:`PreviousState`,[S]:sT}]]],vj=[3,C,dm,0,[Zg,Ml,Ah,Lu],[[1,{[b]:`TotalSizeInGB`,[S]:iD}],[()=>vN,{[b]:`Disks`,[S]:wb}],[0,{[b]:`NvmeSupport`,[S]:hw}],[0,{[b]:`EncryptionSupport`,[S]:ox}]]],yj=[3,C,ym,0,[_m,io,rd,coe,noe,doe,Va,Ud,eg,D_,oh,fm,dm,fu,Eh,yd,Zu,Yh,Xd,zd,Ua,Rs,Nte,uae,Xne,lre,jh,th,Dh,Yre,Oie,Iae],[[0,{[b]:`InstanceType`,[S]:YS}],[2,{[b]:`CurrentGeneration`,[S]:Dy}],[2,{[b]:`FreeTierEligible`,[S]:yx}],[()=>$P,{[b]:`SupportedUsageClasses`,[S]:IE}],[()=>PP,{[b]:`SupportedRootDeviceTypes`,[S]:TE}],[()=>nF,{[b]:`SupportedVirtualizationTypes`,[S]:RE}],[2,{[b]:`BareMetal`,[S]:py}],[0,{[b]:`Hypervisor`,[S]:Fx}],[()=>sM,{[b]:`ProcessorInfo`,[S]:Qw}],[()=>GM,{[b]:`VCpuInfo`,[S]:xD}],[()=>Fj,{[b]:`MemoryInfo`,[S]:MC}],[2,{[b]:`InstanceStorageSupported`,[S]:VS}],[()=>vj,{[b]:`InstanceStorageInfo`,[S]:BS}],[()=>uA,{[b]:`EbsInfo`,[S]:Hb}],[()=>Gj,{[b]:`NetworkInfo`,[S]:uw}],[()=>jA,{[b]:`GpuInfo`,[S]:Tx}],[()=>EA,{[b]:`FpgaInfo`,[S]:mx}],[()=>tM,{[b]:`PlacementGroupInfo`,[S]:Gw}],[()=>HA,{[b]:`InferenceAcceleratorInfo`,[S]:Yx}],[2,{[b]:`HibernationSupported`,[S]:Ux}],[2,{[b]:`BurstablePerformanceSupported`,[S]:hy}],[2,{[b]:`DedicatedHostsSupported`,[S]:ib}],[2,{[b]:`AutoRecoverySupported`,[S]:Bv}],[()=>gN,{[b]:`SupportedBootModes`,[S]:JT}],[0,{[b]:`NitroEnclavesSupport`,[S]:tw}],[0,{[b]:`NitroTpmSupport`,[S]:_w}],[()=>Xj,{[b]:`NitroTpmInfo`,[S]:gw}],[()=>Mj,{[b]:`MediaAcceleratorInfo`,[S]:SC}],[()=>Yj,{[b]:`NeuronInfo`,[S]:dw}],[0,{[b]:`PhcSupport`,[S]:oT}],[0,{[b]:`RebootMigrationSupport`,[S]:AT}],[2,{[b]:`SupportedInRegion`,[S]:pE}]]],bj=[3,C,yf,0,[ka,wf,Ph,_],[[()=>QN,{[b]:`AttachmentSet`,[S]:Yv}],[0,{[b]:`InternetGatewayId`,[S]:uS}],[0,{[b]:`OwnerId`,[S]:Cw}],[()=>XP,{[b]:`TagSet`,[S]:rD}]]],xj=[3,C,bf,0,[g,v],[[0,{[b]:`State`,[S]:VE}],[0,{[b]:`VpcId`,[S]:TD}]]],Sj=[3,C,Vp,0,[Hp,ed,qg,p_,Xp,Qp,qre],[[0,{[b]:`IpProtocol`,[S]:jS}],[1,{[b]:`FromPort`,[S]:gx}],[1,{[b]:`ToPort`,[S]:tD}],[()=>eF,{[b]:`Groups`,[S]:Px}],[()=>rP,{[b]:`IpRanges`,[S]:RS}],[()=>oP,{[b]:`Ipv6Ranges`,[S]:zS}],[()=>wP,{[b]:`PrefixListIds`,[S]:rT}]]],Cj=[3,C,Zp,0,[Al,po],[[0,{[b]:`Description`,[S]:Sb}],[0,{[b]:`CidrIp`,[S]:Ay}]]],wj=[3,C,Lp,0,[Kp],[0]],Tj=[3,C,Rp,0,[Up],[0]],Ej=[3,C,$p,0,[Al,mo],[[0,{[b]:`Description`,[S]:Sb}],[0,{[b]:`CidrIpv6`,[S]:jy}]]],Dj=[3,C,Jm,0,[Um,_,zm,Fm,Rm],[[0,{[b]:`KeyPairId`,[S]:lC}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`KeyName`,[S]:cC}],[0,{[b]:`KeyFingerprint`,[S]:iC}],[()=>nO,{[b]:`KeyMaterial`,[S]:sC}]]],Oj=[3,C,Km,0,[Um,Ym,_,Wre,fs,zm,Fm],[[0,{[b]:`KeyPairId`,[S]:lC}],[0,{[b]:`KeyType`,[S]:dC}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`PublicKey`,[S]:eT}],[4,{[b]:`CreateTime`,[S]:Jy}],[0,{[b]:`KeyName`,[S]:cC}],[0,{[b]:`KeyFingerprint`,[S]:iC}]]],kj=[3,C,dne,0,[lne,une,lv],[0,0,0]],Aj=[3,C,ene,0,[Zm],[[0,{[b]:`LicenseConfigurationArn`,[S]:pC}]]],jj=[3,C,$te,0,[Zm],[0]],Mj=[3,C,th,0,[ba,Eoe],[[()=>fP,{[b]:`Accelerators`,[S]:ty}],[1,{[b]:`TotalMediaMemoryInMiB`,[S]:$E}]]],Nj=[3,C,yne,0,[bs,vh,mh,oh],[[1,{[b]:`Count`,[S]:Zy}],[0,{[b]:`Name`,[S]:YC}],[0,{[b]:`Manufacturer`,[S]:WC}],[()=>Pj,{[b]:`MemoryInfo`,[S]:MC}]]],Pj=[3,C,xne,0,[wg],[[1,{[b]:`SizeInMiB`,[S]:uE}]]],Fj=[3,C,oh,0,[wg],[[1,{[b]:`SizeInMiB`,[S]:uE}]]],Ij=[3,C,Dne,0,[m,hg,Su,ws,p,Da,x_,Ia,Ts,_m,Xm,Zie,d_,Uf,sd,hu,Mg,Ru],[[0,{[b]:`InstanceId`,[S]:fS}],[()=>mO,0],()=>SA,[()=>mO,0],[2,{[b]:`DryRun`,[S]:y}],[0,{[b]:`Attribute`,[S]:sy}],[()=>eO,{[b]:`Value`,[S]:bD}],[()=>LN,{[b]:`BlockDeviceMapping`,[S]:uy}],[()=>mO,{[b]:`DisableApiTermination`,[S]:Qy}],[()=>hO,{[b]:`InstanceType`,[S]:YS}],[()=>hO,{[b]:`Kernel`,[S]:fC}],[()=>hO,{[b]:`Ramdisk`,[S]:HT}],[()=>TO,{[b]:`UserData`,[S]:pD}],[()=>hO,{[b]:`InstanceInitiatedShutdownBehavior`,[S]:gS}],[()=>kN,{[S]:bd}],[()=>mO,{[b]:`EbsOptimized`,[S]:Gb}],[()=>hO,{[b]:`SriovNetSupport`,[S]:CE}],[()=>mO,{[b]:`EnaSupport`,[S]:sx}]],1],Lj=[3,C,Mne,0,[Og,Qi,uh,ih,Eo,Hl,kre,Ou,Eu,mu,_c],[[0,{[b]:`SubnetId`,[S]:gE}],[()=>mO,0],[()=>mO,0],[()=>mO,0],0,[()=>mO,0],0,[()=>mO,0],[()=>mO,0],1,[()=>mO,0]],1],Rj=[3,C,Ine,0,[B_,p,Vg,rv,Mm,s_,eh],[0,2,1,0,1,1,2],1],zj=[3,C,Lne,0,[q_],[[()=>JM,{[b]:`VolumeModification`,[S]:kD}]]],Bj=[3,C,_h,0,[g],[[0,{[b]:`State`,[S]:VE}]]],Vj=[3,C,Sh,0,[fs,ml,Ku,$u,Zne,Ch,Bh,g,Og,v,_,ds,ia,Gte,Mte,mte,pg],[[4,{[b]:`CreateTime`,[S]:Jy}],[4,{[b]:`DeleteTime`,[S]:vb}],[0,{[b]:`FailureCode`,[S]:fx}],[0,{[b]:`FailureMessage`,[S]:hx}],[()=>pP,{[b]:`NatGatewayAddressSet`,[S]:rw}],[0,{[b]:`NatGatewayId`,[S]:iw}],[()=>uM,{[b]:`ProvisionedBandwidth`,[S]:Pw}],[0,{[b]:`State`,[S]:VE}],[0,{[b]:`SubnetId`,[S]:gE}],[0,{[b]:`VpcId`,[S]:TD}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`ConnectivityType`,[S]:qy}],[0,{[b]:`AvailabilityMode`,[S]:Iv}],[0,{[b]:`AutoScalingIps`,[S]:Gv}],[0,{[b]:`AutoProvisionZones`,[S]:zv}],[()=>mP,{[b]:`AttachedApplianceSet`,[S]:Tv}],[0,{[b]:`RouteTableId`,[S]:LT}]]],Hj=[3,C,tre,0,[ea,wh,Hre,Xh,na,qp,$u,Hg,ua,pa],[[0,{[b]:`AllocationId`,[S]:Ov}],[0,{[b]:`NetworkInterfaceId`,[S]:ow}],[0,{[b]:`PrivateIp`,[S]:$w}],[0,{[b]:`PublicIp`,[S]:qw}],[0,{[b]:`AssociationId`,[S]:Mv}],[2,{[b]:`IsPrimary`,[S]:LS}],[0,{[b]:`FailureMessage`,[S]:hx}],[0,{[b]:`Status`,[S]:HE}],[0,{[b]:`AvailabilityZone`,[S]:Qv}],[0,{[b]:`AvailabilityZoneId`,[S]:$v}]]],Uj=[3,C,Qne,0,[l_,fte,P_,Kte,fh,Ku,$u],[[0,{[b]:`Type`,[S]:fD}],[0,{[b]:`ApplianceArn`,[S]:Ev}],[0,{[b]:`VpcEndpointId`,[S]:wD}],[0,{[b]:`AttachmentState`,[S]:Xv}],[0,{[b]:`ModificationState`,[S]:VC}],[0,{[b]:`FailureCode`,[S]:fx}],[0,{[b]:`FailureMessage`,[S]:hx}]]],Wj=[3,C,Wne,0,[bh,kh,sh,_te,ja,wre,Is,Tne,Ene],[[1,{[b]:`NetworkCardIndex`,[S]:QC}],[0,{[b]:`NetworkPerformance`,[S]:pw}],[1,{[b]:`MaximumNetworkInterfaces`,[S]:PC}],[1,{[b]:`AdditionalFlexibleNetworkInterfaces`,[S]:Dv}],[1,{[b]:`BaselineBandwidthInGbps`,[S]:cy}],[1,{[b]:`PeakBandwidthInGbps`,[S]:Fw}],[1,{[b]:`DefaultEnaQueueCountPerInterface`,[S]:nb}],[1,{[b]:`MaximumEnaQueueCount`,[S]:kC}],[1,{[b]:`MaximumEnaQueueCountPerInterface`,[S]:AC}]]],Gj=[3,C,Eh,0,[kh,sh,Ane,yc,Hne,Zd,Qd,gm,Ru,Iu,pu,du,Mu,qa,Xu,os,Qae,Pne,$d],[[0,{[b]:`NetworkPerformance`,[S]:pw}],[1,{[b]:`MaximumNetworkInterfaces`,[S]:PC}],[1,{[b]:`MaximumNetworkCards`,[S]:NC}],[1,{[b]:`DefaultNetworkCardIndex`,[S]:cb}],[()=>_P,{[b]:`NetworkCards`,[S]:ZC}],[1,{[b]:`Ipv4AddressesPerInterface`,[S]:Xx}],[1,{[b]:`Ipv6AddressesPerInterface`,[S]:Zx}],[2,{[b]:`Ipv6Supported`,[S]:JS}],[0,{[b]:`EnaSupport`,[S]:sx}],[2,{[b]:`EfaSupported`,[S]:ax}],[()=>mA,{[b]:`EfaInfo`,[S]:Ub}],[2,{[b]:`EncryptionInTransitSupported`,[S]:Vb}],[2,{[b]:`EnaSrdSupported`,[S]:nx}],[()=>pN,{[b]:`BandwidthWeightings`,[S]:vy}],[0,{[b]:`FlexibleEnaQueuesSupport`,[S]:px}],[()=>ok,{[b]:`ConnectionTrackingConfiguration`,[S]:Gy}],[2,{[b]:`SecondaryNetworkSupported`,[S]:SE}],[1,{[b]:`MaximumSecondaryNetworkInterfaces`,[S]:BC}],[1,{[b]:`Ipv4AddressesPerSecondaryInterface`,[S]:Qx}]]],Kj=[3,C,Gne,0,[bs,lv],[[1,{[b]:`Count`,[S]:Zy}],[1,{[b]:`Version`,[S]:VD}]]],qj=[3,C,Kne,0,[bs,vh,go,oh],[[1,{[b]:`Count`,[S]:Zy}],[0,{[b]:`Name`,[S]:YC}],[()=>Kj,{[b]:`CoreInfo`,[S]:Ny}],[()=>Jj,{[b]:`MemoryInfo`,[S]:MC}]]],Jj=[3,C,Jne,0,[wg],[[1,{[b]:`SizeInMiB`,[S]:uE}]]],Yj=[3,C,Dh,0,[Yne,Doe],[[()=>vP,{[b]:`NeuronDevices`,[S]:ew}],[1,{[b]:`TotalNeuronDeviceMemoryInMiB`,[S]:eD}]]],Xj=[3,C,jh,0,[foe],[[()=>yP,{[b]:`SupportedVersions`,[S]:zE}]]],Zj=[3,C,gre,0,[zh],[0]],Qj=[3,C,_re,0,[Bne,zh,jd],[[2,{[b]:`Managed`,[S]:GC}],[0,{[b]:`Principal`,[S]:Nw}],[2,{[b]:`HiddenByDefault`,[S]:Ix}]]],$j=[3,C,ig,0,[pa,Sa,wd,Jre,Nd,o_,pae,Rd,bd,ua],[[0,{[b]:`AvailabilityZoneId`,[S]:$v}],[0,{[b]:`Affinity`,[S]:ny}],[0,{[b]:`GroupName`,[S]:Ox}],[1,{[b]:`PartitionNumber`,[S]:iT}],[0,{[b]:`HostId`,[S]:Rx}],[0,{[b]:`Tenancy`,[S]:GE}],[0,{[b]:`SpreadDomain`,[S]:ZT}],[0,{[b]:`HostResourceGroupArn`,[S]:Hx}],[0,{[b]:`GroupId`,[S]:Ex}],[0,{[b]:`AvailabilityZone`,[S]:Qv}]]],eM=[3,C,Jh,0,[wd,g,Ug,Vh,bd,_,cd,kg,$m,Lh],[[0,{[b]:`GroupName`,[S]:Ox}],[0,{[b]:`State`,[S]:VE}],[0,{[b]:`Strategy`,[S]:UE}],[1,{[b]:`PartitionCount`,[S]:Lw}],[0,{[b]:`GroupId`,[S]:Ex}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`GroupArn`,[S]:Sx}],[0,{[b]:`SpreadLevel`,[S]:_E}],[0,{[b]:`LinkedGroupId`,[S]:gC}],[()=>Qj,{[b]:`Operator`,[S]:jw}]]],tM=[3,C,Yh,0,[aoe],[[()=>CP,{[b]:`SupportedStrategies`,[S]:ME}]]],nM=[3,C,tg,0,[Al,tg],[[0,{[b]:`Description`,[S]:Sb}],[0,{[b]:`PrefixListId`,[S]:nT}]]],rM=[3,C,Gh,0,[Vd,Du,Tu],[[0,{[b]:`HostnameType`,[S]:Gx}],[2,{[b]:`EnableResourceNameDnsARecord`,[S]:$b}],[2,{[b]:`EnableResourceNameDnsAAAARecord`,[S]:Qb}]]],iM=[3,C,Are,0,[Vd,Du,Tu],[0,2,2]],aM=[3,C,jre,0,[Vd,Du,Tu],[[0,{[b]:`HostnameType`,[S]:Gx}],[2,{[b]:`EnableResourceNameDnsARecord`,[S]:$b}],[2,{[b]:`EnableResourceNameDnsAAAARecord`,[S]:Qb}]]],oM=[3,C,Lre,0,[ag,Zh],[[2,{[b]:`Primary`,[S]:hT}],[0,{[b]:`PrivateIpAddress`,[S]:Xw}]]],sM=[3,C,eg,0,[lae,fae,mae,mh],[[()=>oN,{[b]:`SupportedArchitectures`,[S]:KT}],[1,{[b]:`SustainedClockSpeedInGhz`,[S]:YT}],[()=>YP,{[b]:`SupportedFeatures`,[S]:QT}],[0,{[b]:`Manufacturer`,[S]:WC}]]],cM=[3,C,Ore,0,[Tre,Dre],[[0,{[b]:`ProductCode`,[S]:Rw}],[0,{[b]:`Type`,[S]:fD}]]],lM=[3,C,$re,0,[gd],[[0,{[b]:`GatewayId`,[S]:wx}]]],uM=[3,C,Bh,0,[Zre,iie,Yie,eae,Hg],[[4,{[b]:`ProvisionTime`,[S]:cT}],[0,{[b]:`Provisioned`,[S]:_T}],[4,{[b]:`RequestTime`,[S]:BT}],[0,{[b]:`Requested`,[S]:WT}],[0,{[b]:`Status`,[S]:HE}]]],dM=[3,C,vie,0,[Jf,p],[[()=>RN,{[S]:m}],[2,{[b]:`DryRun`,[S]:y}]],1],fM=[3,C,Mie,0,[bd,ng,f_,v,X_],[[0,{[b]:`GroupId`,[S]:Ex}],[0,{[b]:`PeeringStatus`,[S]:aT}],[0,{[b]:`UserId`,[S]:mD}],[0,{[b]:`VpcId`,[S]:TD}],[0,{[b]:`VpcPeeringConnectionId`,[S]:MD}]]],pM=[3,C,$ie,0,[Fh,kd,dg,Wu],[[0,{[b]:`OptInStatus`,[S]:ww}],[()=>kP,{[b]:`GeographySet`,[S]:jx}],[0,{[b]:`RegionName`,[S]:MT}],[0,{[b]:`RegionEndpoint`,[S]:ST}]]],mM=[3,C,pie,0,[vh],[[0,{[b]:`Name`,[S]:YC}]]],hM=[3,C,oie,0,[ea,Xh,yh,p],[0,0,0,[2,{[b]:`DryRun`,[S]:y}]]],gM=[3,C,nae,0,[xie,Ph,Cie,sd,jm],[[0,{[b]:`ReservationId`,[S]:ET}],[0,{[b]:`OwnerId`,[S]:Cw}],[0,{[b]:`RequesterId`,[S]:kT}],[()=>ON,{[b]:`GroupSet`,[S]:Mx}],[()=>HN,{[b]:`InstancesSet`,[S]:GS}]]],_M=[3,C,zie,0,[bg,bd,vf,Hp,ed,qg,ho,mo,tg,mie,Al],[[0,{[b]:`SecurityGroupRuleId`,[S]:nE}],[0,{[b]:`GroupId`,[S]:Ex}],[2,{[b]:`IsEgress`,[S]:sS}],[0,{[b]:`IpProtocol`,[S]:jS}],[1,{[b]:`FromPort`,[S]:gx}],[1,{[b]:`ToPort`,[S]:tD}],[0,{[b]:`CidrIpv4`,[S]:My}],[0,{[b]:`CidrIpv6`,[S]:jy}],[0,{[b]:`PrefixListId`,[S]:nT}],[0,{[b]:`ReferencedGroupId`,[S]:wT}],[0,{[b]:`Description`,[S]:Sb}]]],vM=[3,C,Pie,0,[bd,yg,p,Ig,Lg,Hp,ed,qg,po,Bp],[[0,{[b]:`GroupId`,[S]:Ex}],[()=>VP,{[S]:bg}],[2,{[b]:`DryRun`,[S]:y}],[0,{[b]:`SourceSecurityGroupName`,[S]:DE}],[0,{[b]:`SourceSecurityGroupOwnerId`,[S]:OE}],[0,{[b]:`IpProtocol`,[S]:jS}],[1,{[b]:`FromPort`,[S]:gx}],[1,{[b]:`ToPort`,[S]:tD}],[0,{[b]:`CidrIp`,[S]:Ay}],[()=>nP,{[b]:`IpPermissions`,[S]:MS}]],1],yM=[3,C,Fie,0,[sg,g_,fg],[[2,{[b]:`Return`,[S]:vT}],[()=>nP,{[b]:`UnknownIpPermissionSet`,[S]:hD}],[()=>NP,{[b]:`RevokedSecurityGroupRuleSet`,[S]:NT}]]],bM=[3,C,Iie,0,[po,ed,bd,wd,Bp,Hp,Ig,Lg,qg,yg,p],[0,1,0,0,[()=>nP,0],0,0,0,1,[()=>VP,{[S]:bg}],[2,{[b]:`DryRun`,[S]:y}]]],xM=[3,C,Lie,0,[sg,g_,fg],[[2,{[b]:`Return`,[S]:vT}],[()=>nP,{[b]:`UnknownIpPermissionSet`,[S]:hD}],[()=>NP,{[b]:`RevokedSecurityGroupRuleSet`,[S]:NT}]]],SM=[3,C,rae,0,[Ms,Bs,Pc,yu,gd,m,wp,Ch,Kg,Qm,ro,wh,dre,g,X_,bo,Ih,tf],[[0,{[b]:`DestinationCidrBlock`,[S]:$y}],[0,{[b]:`DestinationIpv6CidrBlock`,[S]:ob}],[0,{[b]:`DestinationPrefixListId`,[S]:fb}],[0,{[b]:`EgressOnlyInternetGatewayId`,[S]:Jb}],[0,{[b]:`GatewayId`,[S]:wx}],[0,{[b]:`InstanceId`,[S]:fS}],[0,{[b]:`InstanceOwnerId`,[S]:wS}],[0,{[b]:`NatGatewayId`,[S]:iw}],[0,{[b]:`TransitGatewayId`,[S]:JE}],[0,{[b]:`LocalGatewayId`,[S]:hC}],[0,{[b]:`CarrierGatewayId`,[S]:Ey}],[0,{[b]:`NetworkInterfaceId`,[S]:ow}],[0,{[b]:`Origin`,[S]:bw}],[0,{[b]:`State`,[S]:VE}],[0,{[b]:`VpcPeeringConnectionId`,[S]:MD}],[0,{[b]:`CoreNetworkArn`,[S]:Py}],[0,{[b]:`OdbNetworkArn`,[S]:Dw}],[0,{[b]:`IpAddress`,[S]:tS}]]],CM=[3,C,mg,0,[Ta,tie,pg,iae,_,v,Ph],[[()=>IP,{[b]:`AssociationSet`,[S]:Jv}],[()=>DP,{[b]:`PropagatingVgwSet`,[S]:uT}],[0,{[b]:`RouteTableId`,[S]:LT}],[()=>FP,{[b]:`RouteSet`,[S]:FT}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`VpcId`,[S]:TD}],[0,{[b]:`OwnerId`,[S]:Cw}]]],wM=[3,C,Vie,0,[zne,Hie,pg,Og,gd,$h,sa],[[2,{[b]:`Main`,[S]:UC}],[0,{[b]:`RouteTableAssociationId`,[S]:IT}],[0,{[b]:`RouteTableId`,[S]:LT}],[0,{[b]:`SubnetId`,[S]:gE}],[0,{[b]:`GatewayId`,[S]:wx}],[0,{[b]:`PublicIpv4Pool`,[S]:Zw}],[()=>TM,{[b]:`AssociationState`,[S]:Wv}]]],TM=[3,C,Wie,0,[g,Ag],[[0,{[b]:`State`,[S]:VE}],[0,{[b]:`StatusMessage`,[S]:yE}]]],EM=[3,C,_ie,0,[Hu],[[2,{[b]:`Enabled`,[S]:ux}]],1],DM=[3,C,yie,0,[_ne,vne,Ia,Kf,_m,qd,Gd,Im,zm,_h,ig,ug,_ae,xg,Og,d_,Ql,cu,Xg,cne,cp,ts,wo,Lo,Pd,ane,ch,Su,Wh,lh,ws,Cu,Oh,Lh,Eg,p,Ts,Uf,Zh,as,$i,Th,Mf,hu],[1,1,[()=>hN,{[S]:Na}],0,0,1,[()=>BN,{[S]:nf}],0,0,[()=>EM,0],[()=>$j,0],0,[()=>zP,{[S]:_g}],[()=>UP,{[S]:Sg}],0,[()=>tO,0],[()=>xN,0],[()=>CN,{[S]:eu}],[()=>ZP,{[S]:$g}],()=>kj,()=>tj,()=>ak,()=>LO,()=>OO,()=>PA,[()=>dP,{[S]:sne}],()=>nj,()=>SA,()=>iM,()=>ej,2,2,()=>lj,()=>Zj,[()=>YN,{[S]:Bae}],[2,{[b]:`DryRun`,[S]:y}],[2,{[b]:`DisableApiTermination`,[S]:Qy}],[0,{[b]:`InstanceInitiatedShutdownBehavior`,[S]:gS}],[0,{[b]:`PrivateIpAddress`,[S]:Xw}],[0,{[b]:`ClientToken`,[ZS]:1,[S]:Wy}],[0,{[b]:`AdditionalInfo`,[S]:jv}],[()=>WN,{[b]:`NetworkInterface`,[S]:lw}],[()=>LA,{[b]:`IamInstanceProfile`,[S]:pS}],[2,{[b]:`EbsOptimized`,[S]:Gb}]],2],OM=[3,C,Sg,0,[bd,Op,_,v,gg,Ph,wd,Al,Bp],[[0,{[b]:`GroupId`,[S]:Ex}],[()=>nP,{[b]:`IpPermissionsEgress`,[S]:DS}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`VpcId`,[S]:TD}],[0,{[b]:`SecurityGroupArn`,[S]:$T}],[0,{[b]:`OwnerId`,[S]:Cw}],[0,{[b]:`GroupName`,[S]:Ox}],[0,{[b]:`GroupDescription`,[S]:Cx}],[()=>nP,{[b]:`IpPermissions`,[S]:MS}]]],kM=[3,C,Sae,0,[bg,bd,Dd,vf,Hp,ed,qg,ho,mo,tg,hie,Al,_,yae],[[0,{[b]:`SecurityGroupRuleId`,[S]:nE}],[0,{[b]:`GroupId`,[S]:Ex}],[0,{[b]:`GroupOwnerId`,[S]:kx}],[2,{[b]:`IsEgress`,[S]:sS}],[0,{[b]:`IpProtocol`,[S]:jS}],[1,{[b]:`FromPort`,[S]:gx}],[1,{[b]:`ToPort`,[S]:tD}],[0,{[b]:`CidrIpv4`,[S]:My}],[0,{[b]:`CidrIpv6`,[S]:jy}],[0,{[b]:`PrefixListId`,[S]:nT}],[()=>fM,{[b]:`ReferencedGroupInfo`,[S]:TT}],[0,{[b]:`Description`,[S]:Sb}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`SecurityGroupRuleArn`,[S]:tE}]]],AM=[3,C,moe,0,[fre,Nh,_,soe,die,Bg,ua,r_,to,us,nd,Dg,B_,g,jg,zg,og,Ph,Al,nv,Uu,Lm,Fs],[[0,{[b]:`OwnerAlias`,[S]:Sw}],[0,{[b]:`OutpostArn`,[S]:xw}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`StorageTier`,[S]:FE}],[4,{[b]:`RestoreExpiryTime`,[S]:xT}],[0,{[b]:`SseType`,[S]:PE}],[0,{[b]:`AvailabilityZone`,[S]:Qv}],[0,{[b]:`TransferType`,[S]:cD}],[1,{[b]:`CompletionDurationMinutes`,[S]:wy}],[4,{[b]:`CompletionTime`,[S]:Ky}],[1,{[b]:`FullSnapshotSizeInBytes`,[S]:vx}],[0,{[b]:`SnapshotId`,[S]:hE}],[0,{[b]:`VolumeId`,[S]:DD}],[0,{[b]:`Status`,[S]:HE}],[0,{[b]:`StatusMessage`,[S]:yE}],[4,{[b]:`StartTime`,[S]:NE}],[0,{[b]:`Progress`,[S]:gT}],[0,{[b]:`OwnerId`,[S]:Cw}],[0,{[b]:`Description`,[S]:Sb}],[1,{[b]:`VolumeSize`,[S]:ID}],[2,{[b]:`Encrypted`,[S]:dx}],[0,{[b]:`KmsKeyId`,[S]:oC}],[0,{[b]:`DataEncryptionKeyId`,[S]:tb}]]],jM=[3,C,Xae,0,[jne,zae,La,sv,jf],[0,0,1,4,0]],MM=[3,C,Mae,0,[Jf,$i,p],[[()=>RN,{[S]:m}],[0,{[b]:`AdditionalInfo`,[S]:jv}],[2,{[b]:`DryRun`,[S]:y}]],1],NM=[3,C,Nae,0,[Hae],[[()=>XN,{[b]:`InstancesSet`,[S]:GS}]]],PM=[3,C,Fg,0,[vs,hh],[[0,{[b]:`Code`,[S]:Yy}],[0,{[b]:`Message`,[S]:KC}]]],FM=[3,C,Pae,0,[Jf,Hd,Ng,p,Gu],[[()=>RN,{[S]:m}],2,2,[2,{[b]:`DryRun`,[S]:y}],[2,{[b]:`Force`,[S]:bx}]],1],IM=[3,C,Fae,0,[Wae],[[()=>XN,{[b]:`InstancesSet`,[S]:GS}]]],LM=[3,C,Wg,0,[pa,mu,ih,Eo,Ph,Qi,lf,_,cae,Nh,Hl,dp,Gh,Ha,l_,Og,g,v,Ja,vte,ua,Ls,uh],[[0,{[b]:`AvailabilityZoneId`,[S]:$v}],[1,{[b]:`EnableLniAtDeviceIndex`,[S]:Wb}],[2,{[b]:`MapCustomerOwnedIpOnLaunch`,[S]:TC}],[0,{[b]:`CustomerOwnedIpv4Pool`,[S]:Ly}],[0,{[b]:`OwnerId`,[S]:Cw}],[2,{[b]:`AssignIpv6AddressOnCreation`,[S]:Av}],[()=>qP,{[b]:`Ipv6CidrBlockAssociationSet`,[S]:iS}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`SubnetArn`,[S]:qT}],[0,{[b]:`OutpostArn`,[S]:xw}],[2,{[b]:`EnableDns64`,[S]:kb}],[2,{[b]:`Ipv6Native`,[S]:xS}],[()=>rM,{[b]:`PrivateDnsNameOptionsOnLaunch`,[S]:Bw}],[()=>DO,{[b]:`BlockPublicAccessStates`,[S]:my}],[0,{[b]:`Type`,[S]:fD}],[0,{[b]:`SubnetId`,[S]:gE}],[0,{[b]:`State`,[S]:VE}],[0,{[b]:`VpcId`,[S]:TD}],[0,{[b]:`CidrBlock`,[S]:yy}],[1,{[b]:`AvailableIpAddressCount`,[S]:kv}],[0,{[b]:`AvailabilityZone`,[S]:Qv}],[2,{[b]:`DefaultForAz`,[S]:rb}],[2,{[b]:`MapPublicIpOnLaunch`,[S]:LC}]]],RM=[3,C,dae,0,[g,Ag],[[0,{[b]:`State`,[S]:VE}],[0,{[b]:`StatusMessage`,[S]:yE}]]],zM=[3,C,Tae,0,[na,cf,df,Kd,hm],[[0,{[b]:`AssociationId`,[S]:Mv}],[0,{[b]:`Ipv6CidrBlock`,[S]:rS}],[()=>RM,{[b]:`Ipv6CidrBlockState`,[S]:aS}],[0,{[b]:`Ipv6AddressAttribute`,[S]:qx}],[0,{[b]:`IpSource`,[S]:qS}]]],BM=[3,C,a_,0,[Nm,x_],[[0,{[b]:`Key`,[S]:rC}],[0,{[b]:`Value`,[S]:bD}]]],VM=[3,C,$g,0,[Jie,_],[[0,{[b]:`ResourceType`,[S]:zT}],[()=>XP,{[S]:a_}]]],HM=[3,C,boe,0,[Jf,Gu,Ng,p],[[()=>RN,{[S]:m}],2,2,[2,{[b]:`DryRun`,[S]:y}]],1],UM=[3,C,xoe,0,[Coe],[[()=>XN,{[b]:`InstancesSet`,[S]:GS}]]],WM=[3,C,h_,0,[Al,f_,wd,bd,v,X_,ng],[[0,{[b]:`Description`,[S]:Sb}],[0,{[b]:`UserId`,[S]:mD}],[0,{[b]:`GroupName`,[S]:Ox}],[0,{[b]:`GroupId`,[S]:Ex}],[0,{[b]:`VpcId`,[S]:TD}],[0,{[b]:`VpcPeeringConnectionId`,[S]:MD}],[0,{[b]:`PeeringStatus`,[S]:aT}]]],GM=[3,C,D_,0,[_l,Ps,fl,O_,av],[[1,{[b]:`DefaultVCpus`,[S]:xb}],[1,{[b]:`DefaultCores`,[S]:eb}],[1,{[b]:`DefaultThreadsPerCore`,[S]:gb}],[()=>_N,{[b]:`ValidCores`,[S]:SD}],[()=>QP,{[b]:`ValidThreadsPerCore`,[S]:zD}]]],KM=[3,C,dv,0,[pa,Nh,uoe,Mm,_,rv,td,eh,s_,Bg,Lh,L_,B_,Vg,Dg,ua,g,fs,ka,Uu,Lm],[[0,{[b]:`AvailabilityZoneId`,[S]:$v}],[0,{[b]:`OutpostArn`,[S]:xw}],[0,{[b]:`SourceVolumeId`,[S]:LE}],[1,{[b]:`Iops`,[S]:nC}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[0,{[b]:`VolumeType`,[S]:RD}],[2,{[b]:`FastRestored`,[S]:_x}],[2,{[b]:`MultiAttachEnabled`,[S]:xC}],[1,{[b]:`Throughput`,[S]:uD}],[0,{[b]:`SseType`,[S]:PE}],[()=>Qj,{[b]:`Operator`,[S]:jw}],[1,{[b]:`VolumeInitializationRate`,[S]:ED}],[0,{[b]:`VolumeId`,[S]:DD}],[1,{[b]:`Size`,[S]:BE}],[0,{[b]:`SnapshotId`,[S]:hE}],[0,{[b]:`AvailabilityZone`,[S]:Qv}],[0,{[b]:`Status`,[S]:HE}],[4,{[b]:`CreateTime`,[S]:Jy}],[()=>rF,{[b]:`AttachmentSet`,[S]:Yv}],[2,{[b]:`Encrypted`,[S]:dx}],[0,{[b]:`KmsKeyId`,[S]:oC}]]],qM=[3,C,C_,0,[Oc,aa,Tp,Ll,B_,m,jl,g,la],[[2,{[b]:`DeleteOnTermination`,[S]:db}],[0,{[b]:`AssociatedResource`,[S]:Hv}],[0,{[b]:`InstanceOwningService`,[S]:ES}],[1,{[b]:`EbsCardIndex`,[S]:Eb}],[0,{[b]:`VolumeId`,[S]:DD}],[0,{[b]:`InstanceId`,[S]:fS}],[0,{[b]:`Device`,[S]:Cb}],[0,{[b]:`Status`,[S]:HE}],[4,{[b]:`AttachTime`,[S]:Zv}]]],JM=[3,C,q_,0,[B_,fh,Ag,e_,Soe,i_,n_,Toe,yre,pre,xre,bre,hre,og,zg,zu],[[0,{[b]:`VolumeId`,[S]:DD}],[0,{[b]:`ModificationState`,[S]:VC}],[0,{[b]:`StatusMessage`,[S]:yE}],[1,{[b]:`TargetSize`,[S]:aD}],[1,{[b]:`TargetIops`,[S]:ZE}],[0,{[b]:`TargetVolumeType`,[S]:lD}],[1,{[b]:`TargetThroughput`,[S]:sD}],[2,{[b]:`TargetMultiAttachEnabled`,[S]:QE}],[1,{[b]:`OriginalSize`,[S]:Ow}],[1,{[b]:`OriginalIops`,[S]:Tw}],[0,{[b]:`OriginalVolumeType`,[S]:Aw}],[1,{[b]:`OriginalThroughput`,[S]:kw}],[2,{[b]:`OriginalMultiAttachEnabled`,[S]:Ew}],[1,{[b]:`Progress`,[S]:gT}],[4,{[b]:`StartTime`,[S]:NE}],[4,{[b]:`EndTime`,[S]:cx}]]],YM=[3,C,fv,0,[Ph,xm,lf,Ya,_f,Vl,_,Ha,v,g,Ja,Dc],[[0,{[b]:`OwnerId`,[S]:Cw}],[0,{[b]:`InstanceTenancy`,[S]:$S}],[()=>cF,{[b]:`Ipv6CidrBlockAssociationSet`,[S]:iS}],[()=>oF,{[b]:`CidrBlockAssociationSet`,[S]:by}],[2,{[b]:`IsDefault`,[S]:oS}],[()=>QM,{[b]:`EncryptionControl`,[S]:Ob}],[()=>XP,{[b]:`TagSet`,[S]:rD}],[()=>DO,{[b]:`BlockPublicAccessStates`,[S]:my}],[0,{[b]:`VpcId`,[S]:TD}],[0,{[b]:`State`,[S]:VE}],[0,{[b]:`CidrBlock`,[S]:yy}],[0,{[b]:`DhcpOptionsId`,[S]:ub}]]],XM=[3,C,w_,0,[na,Ja,Za],[[0,{[b]:`AssociationId`,[S]:Mv}],[0,{[b]:`CidrBlock`,[S]:yy}],[()=>ZM,{[b]:`CidrBlockState`,[S]:Sy}]]],ZM=[3,C,E_,0,[g,Ag],[[0,{[b]:`State`,[S]:VE}],[0,{[b]:`StatusMessage`,[S]:yE}]]],QM=[3,C,k_,0,[v,N_,gh,g,jg,fie,_],[[0,{[b]:`VpcId`,[S]:TD}],[0,{[b]:`VpcEncryptionControlId`,[S]:CD}],[0,{[b]:`Mode`,[S]:JC}],[0,{[b]:`State`,[S]:VE}],[0,{[b]:`StateMessage`,[S]:bE}],[()=>tN,{[b]:`ResourceExclusions`,[S]:CT}],[()=>XP,{[b]:`TagSet`,[S]:rD}]]],$M=[3,C,A_,0,[gh,Cf,vu,nre,$_,Z_,tne,W_,Wl],[0,0,0,0,0,0,0,0,0],1],eN=[3,C,j_,0,[g,jg],[[0,{[b]:`State`,[S]:VE}],[0,{[b]:`StateMessage`,[S]:bE}]]],tN=[3,C,M_,0,[yf,_u,Sh,Q_,ev,mne,U_,Ul],[[()=>eN,{[b]:`InternetGateway`,[S]:cS}],[()=>eN,{[b]:`EgressOnlyInternetGateway`,[S]:qb}],[()=>eN,{[b]:`NatGateway`,[S]:nw}],[()=>eN,{[b]:`VirtualPrivateGateway`,[S]:ND}],[()=>eN,{[b]:`VpcPeering`,[S]:PD}],[()=>eN,{[b]:`Lambda`,[S]:bC}],[()=>eN,{[b]:`VpcLattice`,[S]:OD}],[()=>eN,{[b]:`ElasticFileSystem`,[S]:Ab}]]],nN=[3,C,F_,0,[na,cf,df,yh,Wp,Kd,hm],[[0,{[b]:`AssociationId`,[S]:Mv}],[0,{[b]:`Ipv6CidrBlock`,[S]:rS}],[()=>ZM,{[b]:`Ipv6CidrBlockState`,[S]:aS}],[0,{[b]:`NetworkBorderGroup`,[S]:XC}],[0,{[b]:`Ipv6Pool`,[S]:PS}],[0,{[b]:`Ipv6AddressAttribute`,[S]:qx}],[0,{[b]:`IpSource`,[S]:qS}]]],rN=`unit`,iN=[1,C,kte,0,[()=>rO,{[S]:x}]],aN=[1,C,wte,0,[0,{[S]:ea}]],oN=[1,C,qte,0,[0,{[S]:x}]],sN=[1,C,Tte,0,[0,{[S]:na}]],cN=[1,C,fa,0,[()=>xO,{[S]:da}]],lN=[1,C,Qte,0,[()=>SO,{[S]:x}]],uN=[1,C,ma,0,[()=>bO,{[S]:x}]],dN=[1,C,ga,0,[()=>CO,{[S]:x}]],fN=[1,C,va,0,[()=>wO,{[S]:x}]],pN=[1,C,Ka,0,[0,{[S]:x}]],mN=[1,C,Pa,0,[()=>EO,{[S]:x}]],hN=[1,C,Fa,0,[()=>EO,{[S]:Na}]],gN=[1,C,Ba,0,[0,{[S]:x}]],_N=[1,C,Qa,0,[1,{[S]:x}]],vN=[1,C,ec,0,[()=>sA,{[S]:x}]],yN=[1,C,Rl,0,[()=>lA,{[S]:x}]],bN=[1,C,ql,0,[()=>hA,{[S]:x}]],xN=[1,C,$l,0,[()=>gA,{[S]:x}]],SN=[1,C,ru,0,[()=>vA,{[S]:x}]],CN=[1,C,cu,0,[()=>_A,{[S]:x}]],wN=[1,C,Fl,0,[0,{[S]:Il}]],TN=[1,C,Qu,0,[()=>CA,{[S]:ad}]],EN=[1,C,Ju,0,[()=>wA,{[S]:x}]],DN=[1,C,md,0,[()=>kA,{[S]:x}]],ON=[1,C,_d,0,[()=>MA,{[S]:x}]],kN=[1,C,vd,0,[0,{[S]:Ex}]],AN=[1,C,Td,0,[0,{[S]:wd}]],jN=[1,C,Pf,0,[()=>IA,{[S]:x}]],MN=[1,C,Wf,0,[0,{[S]:Kf}]],NN=[1,C,$f,0,[()=>RA,{[S]:x}]],PN=[1,C,Em,0,[()=>zA,{[S]:x}]],FN=[1,C,mf,0,[()=>UA,0]],IN=[1,C,af,0,[()=>JA,{[S]:x}]],LN=[1,C,sf,0,[()=>YA,{[S]:x}]],RN=[1,C,Gf,0,[0,{[S]:m}]],zN=[1,C,Rf,0,[()=>XA,{[S]:x}]],BN=[1,C,Af,0,[()=>ZA,{[S]:x}]],VN=[1,C,zf,0,[()=>QA,{[S]:x}]],HN=[1,C,tp,0,[()=>GA,{[S]:x}]],UN=[1,C,hp,0,[()=>ij,{[S]:x}]],WN=[1,C,_p,0,[()=>sj,{[S]:x}]],GN=[1,C,jp,0,[()=>uj,{[S]:x}]],KN=[1,C,rm,0,[()=>dj,{[S]:x}]],qN=[1,C,am,0,[()=>pj,{[S]:x}]],JN=[1,C,om,0,[()=>mj,{[S]:x}]],YN=[1,C,cm,0,[()=>hj,{[S]:x}]],XN=[1,C,tm,0,[()=>_j,{[S]:x}]],ZN=[1,C,vm,0,[()=>yj,{[S]:x}]],QN=[1,C,xf,0,[()=>xj,{[S]:x}]],$N=[1,C,Tf,0,[0,{[S]:x}]],eP=[1,C,Df,0,[()=>bj,{[S]:x}]],tP=[1,C,np,0,[0,{[S]:x}]],nP=[1,C,Pp,0,[()=>Sj,{[S]:x}]],rP=[1,C,Jp,0,[()=>Cj,{[S]:x}]],iP=[1,C,Fp,0,[()=>wj,{[S]:x}]],aP=[1,C,Ip,0,[()=>Tj,{[S]:x}]],oP=[1,C,Yp,0,[()=>Ej,{[S]:x}]],sP=[1,C,Bm,0,[0,{[S]:zm}]],cP=[1,C,Wm,0,[0,{[S]:Um}]],lP=[1,C,qm,0,[()=>Oj,{[S]:x}]],uP=[1,C,rne,0,[()=>Aj,{[S]:x}]],dP=[1,C,one,0,[()=>jj,{[S]:x}]],fP=[1,C,bne,0,[()=>Nj,{[S]:x}]],pP=[1,C,ere,0,[()=>Hj,{[S]:x}]],mP=[1,C,$ne,0,[()=>Uj,{[S]:x}]],hP=[1,C,rre,0,[0,{[S]:x}]],gP=[1,C,are,0,[()=>Vj,{[S]:x}]],_P=[1,C,Une,0,[()=>Wj,{[S]:x}]],vP=[1,C,qne,0,[()=>qj,{[S]:x}]],yP=[1,C,ure,0,[0,{[S]:x}]],bP=[1,C,vre,0,[0,{[S]:Rh}]],xP=[1,C,Mre,0,[0,{[S]:bd}]],SP=[1,C,Nre,0,[()=>eM,{[S]:x}]],CP=[1,C,Pre,0,[0,{[S]:x}]],wP=[1,C,Kre,0,[()=>nM,{[S]:x}]],TP=[1,C,Rre,0,[()=>oM,{[S]:x}]],EP=[1,C,Ere,0,[()=>cM,{[S]:x}]],DP=[1,C,eie,0,[()=>lM,{[S]:x}]],OP=[1,C,Bre,0,[0,{[S]:Xh}]],kP=[1,C,gie,0,[()=>mM,{[S]:x}]],AP=[1,C,Tie,0,[()=>pM,{[S]:x}]],jP=[1,C,Aie,0,[0,{[S]:dg}]],MP=[1,C,Eie,0,[()=>gM,{[S]:x}]],NP=[1,C,Bie,0,[()=>_M,{[S]:x}]],PP=[1,C,uie,0,[0,{[S]:x}]],FP=[1,C,Die,0,[()=>SM,{[S]:x}]],IP=[1,C,Uie,0,[()=>wM,{[S]:x}]],LP=[1,C,Gie,0,[0,{[S]:x}]],RP=[1,C,qie,0,[()=>CM,{[S]:x}]],zP=[1,C,gae,0,[0,{[S]:_g}]],BP=[1,C,vae,0,[()=>OM,{[S]:x}]],VP=[1,C,bae,0,[0,{[S]:x}]],HP=[1,C,xae,0,[()=>kM,{[S]:x}]],UP=[1,C,Cae,0,[0,{[S]:Sg}]],WP=[1,C,Lae,0,[0,{[S]:Dg}]],GP=[1,C,qae,0,[()=>AM,{[S]:x}]],KP=[1,C,Rae,0,[0,{[S]:Og}]],qP=[1,C,Eae,0,[()=>zM,{[S]:x}]],JP=[1,C,Jae,0,[()=>LM,{[S]:x}]],YP=[1,C,sae,0,[0,{[S]:x}]],XP=[1,C,woe,0,[()=>BM,{[S]:x}]],ZP=[1,C,Qg,0,[()=>VM,{[S]:x}]],QP=[1,C,Yg,0,[1,{[S]:x}]],$P=[1,C,u_,0,[0,{[S]:x}]],eF=[1,C,m_,0,[()=>WM,{[S]:x}]],tF=[1,C,tv,0,[0,{[S]:x}]],nF=[1,C,iv,0,[0,{[S]:x}]],rF=[1,C,S_,0,[()=>qM,{[S]:x}]],iF=[1,C,R_,0,[0,{[S]:B_}]],aF=[1,C,G_,0,[()=>KM,{[S]:x}]],oF=[1,C,T_,0,[()=>XM,{[S]:x}]],sF=[1,C,z_,0,[0,{[S]:v}]],cF=[1,C,I_,0,[()=>nN,{[S]:x}]],lF=[1,C,K_,0,[()=>YM,{[S]:x}]],uF=[1,C,gv,0,[0,{[S]:x}]],dF=[1,C,yv,0,[0,{[S]:vv}]],fF=[1,C,Sv,0,[0,{[S]:xv}]],pF=[9,C,dte,0,()=>iO,()=>aO],mF=[9,C,pte,0,()=>oO,()=>sO],hF=[9,C,xte,0,()=>cO,()=>lO],gF=[9,C,Ite,0,()=>uO,()=>dO],_F=[9,C,yte,0,()=>fO,()=>rN],vF=[9,C,Xte,0,()=>pO,()=>qM],yF=[9,C,zte,0,()=>gO,()=>_O],bF=[9,C,Wte,0,()=>vO,()=>yO],xF=[9,C,es,0,()=>PO,()=>FO],SF=[9,C,_o,0,()=>RO,()=>zO],CF=[9,C,so,0,()=>BO,()=>VO],wF=[9,C,vo,0,()=>HO,()=>Dj],TF=[9,C,xo,0,()=>UO,()=>WO],EF=[9,C,Oo,0,()=>GO,()=>KO],DF=[9,C,Uo,0,()=>qO,()=>JO],OF=[9,C,Ho,0,()=>YO,()=>XO],kF=[9,C,Wo,0,()=>ZO,()=>QO],AF=[9,C,ns,0,()=>$O,()=>AM],jF=[9,C,rs,0,()=>ek,()=>tk],MF=[9,C,gs,0,()=>nk,()=>KM],NF=[9,C,_s,0,()=>rk,()=>ik],PF=[9,C,Vs,0,()=>sk,()=>rN],FF=[9,C,dc,0,()=>ck,()=>lk],IF=[9,C,bc,0,()=>uk,()=>dk],LF=[9,C,kc,0,()=>fk,()=>rN],RF=[9,C,qc,0,()=>pk,()=>rN],zF=[9,C,zc,0,()=>mk,()=>rN],BF=[9,C,Yc,0,()=>hk,()=>gk],VF=[9,C,sl,0,()=>_k,()=>rN],HF=[9,C,cl,0,()=>vk,()=>rN],UF=[9,C,Tl,0,()=>yk,()=>rN],WF=[9,C,El,0,()=>bk,()=>rN],GF=[9,C,As,0,()=>xk,()=>Sk],KF=[9,C,ks,0,()=>Ck,()=>wk],qF=[9,C,Ys,0,()=>Tk,()=>Ek],JF=[9,C,cc,0,()=>Dk,()=>Ok],YF=[9,C,lc,0,()=>kk,()=>Ak],XF=[9,C,sc,0,()=>jk,()=>Mk],ZF=[9,C,Ks,0,()=>Nk,()=>Pk],QF=[9,C,gc,0,()=>Fk,()=>Ik],$F=[9,C,Tc,0,()=>Lk,()=>Rk],eI=[9,C,Nc,0,()=>zk,()=>Bk],tI=[9,C,Jc,0,()=>Vk,()=>Hk],nI=[9,C,Wc,0,()=>Uk,()=>Wk],rI=[9,C,el,0,()=>Gk,()=>Kk],iI=[9,C,ll,0,()=>qk,()=>Jk],aI=[9,C,ul,0,()=>Yk,()=>Xk],oI=[9,C,Dl,0,()=>Zk,()=>Qk],sI=[9,C,Ol,0,()=>$k,()=>eA],cI=[9,C,qs,0,()=>tA,()=>rN],lI=[9,C,kl,0,()=>nA,()=>qM],uI=[9,C,js,0,()=>rA,()=>rN],dI=[9,C,Js,0,()=>iA,()=>aA],fI=[9,C,Gc,0,()=>oA,()=>rN],pI=[9,C,ld,0,()=>DA,()=>OA],mI=[9,C,Yf,0,()=>BA,()=>VA],hI=[9,C,kne,0,()=>Ij,()=>rN],gI=[9,C,Nne,0,()=>Lj,()=>rN],_I=[9,C,Rne,0,()=>Rj,()=>zj],vI=[9,C,Sie,0,()=>dM,()=>rN],yI=[9,C,sie,0,()=>hM,()=>rN],bI=[9,C,Nie,0,()=>vM,()=>yM],xI=[9,C,Rie,0,()=>bM,()=>xM],SI=[9,C,wie,0,()=>DM,()=>gM],CI=[9,C,Uae,0,()=>MM,()=>NM],wI=[9,C,Gae,0,()=>FM,()=>IM],TI=[9,C,voe,0,()=>HM,()=>UM],EI=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ite,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Yee,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie}],logger:e?.logger??new ze,protocol:e?.protocol??Tee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:QD,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),DI=e=>{let t=xe(e),n=()=>t().then(Ve),r=EI(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:$ee.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},OI=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},kI=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),AI=(e,t)=>{let n=Object.assign(Xe(e),lt(e),re(e),OI(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),kI(n))},jI=class extends we{config;constructor(...[e]){let t=DI(e||{});super(t),this.initConfig=t;let n=AI(Xee(Ue(_e(Te(Le(Oe(Zee(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:qee,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ae(this.config))}destroy(){super.destroy()}},MI=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6,NI=async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function PI(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`eks`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var FI=e=>{let t=[];switch(e.operation){default:t.push(PI(e))}return t},II=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},LI=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`eks`}),RI={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},zI={name:`@aws-sdk/client-eks`,description:`AWS SDK for JavaScript Eks Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo eks`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-eks`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-eks`}},BI=`ref`,VI=-1,HI=!0,UI=`isSet`,WI=`PartitionResult`,GI=`booleanEquals`,KI=`getAttr`,qI=`stringEquals`,JI={[BI]:`Endpoint`},YI={[BI]:WI},XI={fn:KI,argv:[YI,`name`]},ZI={},QI=[{[BI]:`Region`}],$I={conditions:[[UI,[JI]],[UI,QI],[`aws.partition`,QI,WI],[GI,[{[BI]:`UseFIPS`},HI]],[GI,[{[BI]:`UseDualStack`},HI]],[GI,[{fn:KI,argv:[YI,`supportsDualStack`]},HI]],[GI,[{fn:KI,argv:[YI,`supportsFIPS`]},HI]],[qI,[XI,`aws`]],[qI,[XI,`aws-us-gov`]]],results:[[VI],[VI,`Invalid Configuration: FIPS and custom endpoint are not supported`],[VI,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[JI,ZI],[`https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,ZI],[VI,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://fips.eks.{Region}.amazonaws.com`,ZI],[`https://eks.{Region}.amazonaws.com`,ZI],[`https://eks-fips.{Region}.{PartitionResult#dnsSuffix}`,ZI],[VI,`FIPS is enabled but this partition does not support FIPS`],[`https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}`,ZI],[VI,`DualStack is enabled but this partition does not support DualStack`],[`https://eks.{Region}.{PartitionResult#dnsSuffix}`,ZI],[VI,`Invalid Configuration: Missing Region`]]},eL=2,tL=new Int32Array([-1,1,-1,0,14,3,1,4,100000013,2,5,100000013,3,8,6,4,7,100000012,5,100000010,100000011,4,12,9,6,10,100000009,7,100000006,11,8,100000007,100000008,5,13,100000005,6,100000004,100000005,3,100000001,15,4,100000002,100000003]),nL=Je.from(tL,eL,$I.conditions,$I.results),rL=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),iL=(e,t={})=>rL.get(e,()=>Ge(nL,{endpointParams:e,logger:t.logger}));rt.aws=de;var aL=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},oL=class e extends aL{name=`AccessDeniedException`;$fault=`client`;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sL=class e extends aL{name=`InvalidParameterException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},cL=class e extends aL{name=`InvalidRequestException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},lL=class e extends aL{name=`ResourceNotFoundException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},uL=class e extends aL{name=`ServerException`;$fault=`server`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},dL=class e extends aL{name=`ClientException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},fL=class e extends aL{name=`ResourceInUseException`;$fault=`client`;clusterName;nodegroupName;addonName;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName}},pL=class e extends aL{name=`ThrottlingException`;$fault=`client`;clusterName;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},mL=class e extends aL{name=`ResourceLimitExceededException`;$fault=`client`;clusterName;nodegroupName;subscriptionId;constructor(t){super({name:`ResourceLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.subscriptionId=t.subscriptionId}},hL=class e extends aL{name=`ServiceUnavailableException`;$fault=`server`;constructor(t){super({name:`ServiceUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},gL=class e extends aL{name=`UnsupportedAvailabilityZoneException`;$fault=`client`;clusterName;nodegroupName;validZones;constructor(t){super({name:`UnsupportedAvailabilityZoneException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.validZones=t.validZones}},_L=class e extends aL{name=`BadRequestException`;$fault=`client`;constructor(t){super({name:`BadRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vL=class e extends aL{name=`NotFoundException`;$fault=`client`;constructor(t){super({name:`NotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yL=class e extends aL{name=`ResourcePropagationDelayException`;$fault=`client`;constructor(t){super({name:`ResourcePropagationDelayException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bL=class e extends aL{name=`InvalidStateException`;$fault=`client`;clusterName;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},xL=`Addon`,SL=`AssociatedAccessPolicy`,CL=`AssociatedAccessPoliciesList`,wL=`AssociateAccessPolicyRequest`,TL=`AssociateAccessPolicyResponse`,EL=`AssociateAccessPolicy`,DL=`AccessConfigResponse`,OL=`AccessDeniedException`,kL=`AccessEntry`,AL=`AddonHealth`,jL=`AddonInfo`,ML=`AddonIssueList`,NL=`AddonIssue`,PL=`AddonNamespaceConfigRequest`,FL=`AddonNamespaceConfigResponse`,IL=`AccessPolicy`,LL=`AddonPodIdentityAssociations`,RL=`AddonPodIdentityAssociationsList`,zL=`AccessPoliciesList`,BL=`AccessScope`,VL=`AutoScalingGroup`,HL=`AutoScalingGroupList`,UL=`AddonVersionInfo`,WL=`AddonVersionInfoList`,GL=`Addons`,KL=`BadRequestException`,qL=`BlockStorage`,JL=`CreateAddon`,YL=`CreateAccessConfigRequest`,XL=`CreateAccessEntry`,ZL=`CreateAccessEntryRequest`,QL=`CreateAccessEntryResponse`,$L=`CreateAddonRequest`,eR=`CreateAddonResponse`,tR=`ComputeConfigRequest`,nR=`ComputeConfigResponse`,rR=`ConnectorConfigResponse`,iR=`CreateClusterRequest`,aR=`CreateClusterResponse`,oR=`CreateCluster`,sR=`ClientException`,cR=`ClusterHealth`,lR=`ClusterIssueList`,uR=`ClusterIssue`,dR=`CreateNodegroup`,fR=`CreateNodegroupRequest`,pR=`CreateNodegroupResponse`,mR=`ControlPlanePlacementRequest`,hR=`ControlPlanePlacementResponse`,gR=`ControlPlaneScalingConfig`,_R=`Certificate`,vR=`Cluster`,yR=`Compatibility`,bR=`Compatibilities`,xR=`DeleteAddon`,SR=`DeleteAccessEntry`,CR=`DeleteAccessEntryRequest`,wR=`DeleteAccessEntryResponse`,TR=`DescribeAccessEntryRequest`,ER=`DescribeAccessEntryResponse`,DR=`DescribeAccessEntry`,OR=`DisassociateAccessPolicy`,kR=`DisassociateAccessPolicyRequest`,AR=`DisassociateAccessPolicyResponse`,jR=`DeleteAddonRequest`,MR=`DeleteAddonResponse`,NR=`DescribeAddonRequest`,PR=`DescribeAddonResponse`,FR=`DescribeAddonVersions`,IR=`DescribeAddonVersionsRequest`,LR=`DescribeAddonVersionsResponse`,RR=`DescribeAddon`,zR=`DeleteClusterRequest`,BR=`DeleteClusterResponse`,VR=`DescribeClusterRequest`,HR=`DescribeClusterResponse`,UR=`DeleteCluster`,WR=`DescribeCluster`,GR=`DeleteNodegroup`,KR=`DeleteNodegroupRequest`,qR=`DeleteNodegroupResponse`,JR=`DescribeNodegroupRequest`,YR=`DescribeNodegroupResponse`,XR=`DescribeNodegroup`,ZR=`EncryptionConfig`,QR=`EncryptionConfigList`,$R=`ErrorDetail`,ez=`ErrorDetails`,tz=`ElasticLoadBalancing`,nz=`EtcdPlacementRequest`,rz=`EtcdPlacementResponse`,iz=`Identity`,az=`IssueList`,oz=`InvalidParameterException`,sz=`InvalidRequestException`,cz=`InvalidStateException`,lz=`Issue`,uz=`KubernetesNetworkConfigRequest`,dz=`KubernetesNetworkConfigResponse`,fz=`ListAddons`,pz=`ListAssociatedAccessPolicies`,mz=`ListAssociatedAccessPoliciesRequest`,hz=`ListAssociatedAccessPoliciesResponse`,gz=`ListAccessEntries`,_z=`ListAccessEntriesRequest`,vz=`ListAccessEntriesResponse`,yz=`ListAccessPolicies`,bz=`ListAccessPoliciesRequest`,xz=`ListAccessPoliciesResponse`,Sz=`ListAddonsRequest`,Cz=`ListAddonsResponse`,wz=`ListClustersRequest`,Tz=`ListClustersResponse`,Ez=`ListClusters`,Dz=`ListNodegroups`,Oz=`ListNodegroupsRequest`,kz=`ListNodegroupsResponse`,Az=`LogSetup`,jz=`LogSetups`,Mz=`LaunchTemplateSpecification`,Nz=`Logging`,Pz=`MarketplaceInformation`,Fz=`Nodegroup`,Iz=`NotFoundException`,Lz=`NodegroupHealth`,Rz=`NodegroupResources`,zz=`NodeRepairConfig`,Bz=`NodeRepairConfigOverrides`,Vz=`NodeRepairConfigOverridesList`,Hz=`NodegroupScalingConfig`,Uz=`NodegroupUpdateConfig`,Wz=`OutpostConfigRequest`,Gz=`OutpostConfigResponse`,Kz=`OIDC`,qz=`Provider`,Jz=`RemoteAccessConfig`,Yz=`ResourceInUseException`,Xz=`ResourceLimitExceededException`,Zz=`RemoteNetworkConfigRequest`,Qz=`RemoteNetworkConfigResponse`,$z=`ResourceNotFoundException`,eB=`RemoteNodeNetwork`,tB=`RemoteNodeNetworkList`,nB=`ResourcePropagationDelayException`,rB=`RemotePodNetwork`,iB=`RemotePodNetworkList`,aB=`StorageConfigRequest`,oB=`StorageConfigResponse`,sB=`ServerException`,cB=`ServiceUnavailableException`,lB=`Taint`,uB=`ThrottlingException`,dB=`Update`,fB=`UpdateAddon`,pB=`UpdateAddonRequest`,mB=`UpdateAddonResponse`,hB=`UnsupportedAvailabilityZoneException`,gB=`UpdateLabelsPayload`,_B=`UpdateNodegroupConfig`,vB=`UpdateNodegroupConfigRequest`,yB=`UpdateNodegroupConfigResponse`,bB=`UpdateNodegroupVersion`,xB=`UpdateNodegroupVersionRequest`,SB=`UpdateNodegroupVersionResponse`,CB=`UpdateParam`,wB=`UpgradePolicyRequest`,TB=`UpgradePolicyResponse`,EB=`UpdateParams`,DB=`UpdateTaintsPayload`,OB=`VpcConfigRequest`,kB=`VpcConfigResponse`,AB=`WarmPoolConfig`,jB=`ZonalShiftConfigRequest`,MB=`ZonalShiftConfigResponse`,NB=`arn`,PB=`addonArn`,FB=`associatedAccessPolicy`,IB=`associatedAccessPolicies`,LB=`associatedAt`,RB=`accessConfig`,zB=`activationCode`,BB=`activationExpiry`,VB=`accessEntryArn`,HB=`accessEntry`,UB=`accessEntries`,WB=`activationId`,GB=`authenticationMode`,KB=`addonName`,qB=`addOrUpdateLabels`,JB=`addOrUpdateTaints`,YB=`accessPolicies`,XB=`associatedPolicyArn`,ZB=`accessScope`,QB=`autoScalingGroups`,$B=`amiType`,eV=`addonVersion`,tV=`addonVersions`,nV=`addon`,rV=`addons`,iV=`architecture`,aV=`bootstrapClusterCreatorAdminPermissions`,oV=`blockStorage`,sV=`bootstrapSelfManagedAddons`,cV=`client`,lV=`createdAt`,uV=`certificateAuthority`,dV=`connectorConfig`,fV=`computeConfig`,pV=`clusterLogging`,w=`clusterName`,mV=`controlPlaneInstanceType`,hV=`controlPlanePlacement`,gV=`controlPlaneScalingConfig`,_V=`clientRequestToken`,vV=`clusterSecurityGroupId`,yV=`computeTypes`,bV=`capacityType`,xV=`configurationValues`,SV=`clusterVersion`,CV=`cidrs`,wV=`cluster`,TV=`clusters`,EV=`code`,DV=`compatibilities`,OV=`data`,kV=`defaultNamespace`,AV=`deletionProtection`,jV=`diskSize`,MV=`desiredSize`,NV=`defaultVersion`,PV=`error`,FV=`encryptionConfig`,IV=`errorCode`,LV=`etcdInstanceType`,RV=`elasticLoadBalancing`,zV=`errorMessage`,BV=`etcdPlacement`,VV=`endpointPublicAccess`,HV=`endpointPrivateAccess`,UV=`ec2SshKey`,WV=`effect`,GV=`enabled`,KV=`endpoint`,qV=`errors`,JV=`fargateProfileName`,YV=`force`,XV=`groupName`,ZV=`health`,QV=`httpError`,T=`httpQuery`,E=`http`,$V=`issues`,eH=`ipFamily`,tH=`instanceTypes`,nH=`id`,rH=`identity`,iH=`include`,aH=`issuer`,oH=`key`,sH=`keyArn`,cH=`kubernetesGroups`,lH=`kubernetesNetworkConfig`,uH=`kubernetesVersion`,dH=`logging`,fH=`launchTemplate`,pH=`labels`,mH=`message`,hH=`modifiedAt`,gH=`maxGroupPreparedCapacity`,_H=`marketplaceInformation`,vH=`maxParallelNodesRepairedCount`,yH=`maxParallelNodesRepairedPercentage`,bH=`maxResults`,xH=`minRepairWaitTimeMins`,SH=`minSize`,CH=`maxSize`,wH=`maxUnavailable`,TH=`maxUnhealthyNodeThresholdCount`,EH=`maxUnhealthyNodeThresholdPercentage`,DH=`maxUnavailablePercentage`,OH=`name`,kH=`nodegroupArn`,AH=`namespaceConfig`,jH=`nodeMonitoringCondition`,MH=`nodegroupName`,NH=`nodePools`,PH=`nodeRole`,FH=`nodeRoleArn`,IH=`nodeRepairConfig`,LH=`nodeRepairConfigOverrides`,D=`nextToken`,RH=`nodeUnhealthyReason`,zH=`namespaces`,BH=`namespace`,VH=`nodegroup`,HH=`nodegroups`,UH=`owner`,WH=`outpostArns`,GH=`outpostConfig`,KH=`oidc`,qH=`owners`,JH=`publisher`,YH=`principalArn`,XH=`publicAccessCidrs`,ZH=`policyArn`,QH=`productId`,$H=`podIdentityAssociations`,eU=`poolState`,tU=`productUrl`,nU=`platformVersion`,rU=`platformVersions`,iU=`params`,aU=`provider`,oU=`preserve`,sU=`publishers`,cU=`roleArn`,lU=`remoteAccessSecurityGroup`,uU=`remoteAccess`,dU=`repairAction`,fU=`requiresConfiguration`,pU=`resolveConflicts`,mU=`resourceIds`,hU=`requiresIamPermissions`,gU=`removeLabels`,_U=`remoteNetworkConfig`,vU=`remoteNodeNetworks`,yU=`reuseOnScaleIn`,bU=`remotePodNetworks`,xU=`removeTaints`,SU=`releaseVersion`,CU=`resourcesVpcConfig`,wU=`resources`,TU=`smithy.ts.sdk.synthetic.com.amazonaws.eks`,EU=`serviceAccount`,DU=`serviceAccountRoleArn`,OU=`storageConfig`,kU=`scalingConfig`,AU=`securityGroupIds`,jU=`subscriptionId`,MU=`serviceIpv4Cidr`,NU=`serviceIpv6Cidr`,PU=`subnetIds`,FU=`spreadLevel`,IU=`sourceSecurityGroups`,LU=`supportType`,RU=`server`,zU=`status`,BU=`subnets`,VU=`tags`,HU=`taintsList`,UU=`taints`,WU=`tier`,GU=`type`,KU=`types`,qU=`username`,JU=`updateConfig`,YU=`upgradePolicy`,XU=`updateStrategy`,ZU=`update`,QU=`version`,$U=`vpcId`,eW=`validZones`,tW=`value`,nW=`warmPoolConfig`,rW=`zonalShiftConfig`,O=`com.amazonaws.eks`,iW=se.for(TU),aW=[-3,TU,`EKSServiceException`,0,[],[]];iW.registerError(aW,aL);var oW=se.for(O),sW=[-3,O,OL,{[PV]:cV,[QV]:403},[mH],[0]];oW.registerError(sW,oL);var cW=[-3,O,KL,{[PV]:cV,[QV]:400},[mH],[0]];oW.registerError(cW,_L);var lW=[-3,O,sR,{[PV]:cV,[QV]:400},[w,MH,KB,jU,mH],[0,0,0,0,0]];oW.registerError(lW,dL);var uW=[-3,O,oz,{[PV]:cV,[QV]:400},[w,MH,JV,KB,jU,mH],[0,0,0,0,0,0]];oW.registerError(uW,sL);var dW=[-3,O,sz,{[PV]:cV,[QV]:400},[w,MH,KB,jU,mH],[0,0,0,0,0]];oW.registerError(dW,cL);var fW=[-3,O,cz,{[PV]:cV,[QV]:400},[w,mH],[0,0]];oW.registerError(fW,bL);var pW=[-3,O,Iz,{[PV]:cV,[QV]:404},[mH],[0]];oW.registerError(pW,vL);var mW=[-3,O,Yz,{[PV]:cV,[QV]:409},[w,MH,KB,mH],[0,0,0,0]];oW.registerError(mW,fL);var hW=[-3,O,Xz,{[PV]:cV,[QV]:400},[w,MH,jU,mH],[0,0,0,0]];oW.registerError(hW,mL);var gW=[-3,O,$z,{[PV]:cV,[QV]:404},[w,MH,JV,KB,jU,mH],[0,0,0,0,0,0]];oW.registerError(gW,lL);var _W=[-3,O,nB,{[PV]:cV,[QV]:428},[mH],[0]];oW.registerError(_W,yL);var vW=[-3,O,sB,{[PV]:RU,[QV]:500},[w,MH,KB,jU,mH],[0,0,0,0,0]];oW.registerError(vW,uL);var yW=[-3,O,cB,{[PV]:RU,[QV]:503},[mH],[0]];oW.registerError(yW,hL);var bW=[-3,O,uB,{[PV]:cV,[QV]:429},[w,mH],[0,0]];oW.registerError(bW,pL);var xW=[-3,O,hB,{[PV]:cV,[QV]:400},[mH,w,MH,eW],[0,0,0,64]];oW.registerError(xW,gL);var SW=[iW,oW],CW=[3,O,DL,0,[aV,GB],[2,0]],wW=[3,O,kL,0,[w,YH,cH,VB,lV,hH,VU,qU,GU],[0,0,64,0,4,4,128,0,0]],TW=[3,O,IL,0,[OH,NB],[0,0]],EW=[3,O,BL,0,[GU,zH],[0,64]],DW=[3,O,xL,0,[KB,w,zU,eV,ZV,PB,lV,hH,DU,VU,JH,UH,_H,xV,$H,AH],[0,0,0,0,()=>OW,0,4,4,0,128,0,0,()=>XG,0,64,()=>MW]],OW=[3,O,AL,0,[$V],[()=>PK]],kW=[3,O,jL,0,[KB,GU,tV,JH,UH,_H,kV],[0,0,()=>LK,0,0,()=>XG,0]],AW=[3,O,NL,0,[EV,mH,mU],[0,0,64]],jW=[3,O,PL,0,[BH],[0]],MW=[3,O,FL,0,[BH],[0]],NW=[3,O,LL,0,[EU,cU],[0,0],2],PW=[3,O,UL,0,[eV,iV,yV,DV,fU,hU],[0,64,64,()=>VK,2,2]],FW=[3,O,wL,0,[w,YH,ZH,ZB],[[0,1],[0,1],0,()=>EW],4],IW=[3,O,TL,0,[w,YH,FB],[0,0,()=>LW]],LW=[3,O,SL,0,[ZH,ZB,LB,hH],[0,()=>EW,4,4]],RW=[3,O,VL,0,[OH],[0]],zW=[3,O,qL,0,[GV],[2]],BW=[3,O,_R,0,[OV],[0]],VW=[3,O,vR,0,[OH,NB,lV,QU,KV,cU,CU,lH,dH,rH,zU,uV,_V,nU,VU,FV,dV,nH,ZV,GH,RB,YU,rW,_U,fV,OU,AV,gV],[0,0,4,0,0,0,()=>kK,()=>PG,()=>JG,()=>jG,0,()=>BW,0,0,128,()=>HK,()=>qW,0,()=>HW,()=>oK,()=>CW,()=>DK,()=>MK,()=>uK,()=>KW,()=>mK,2,()=>XW]],HW=[3,O,cR,0,[$V],[()=>BK]],UW=[3,O,uR,0,[EV,mH,mU],[0,0,64]],WW=[3,O,yR,0,[SV,rU,NV],[0,64,2]],GW=[3,O,tR,0,[GV,NH,FH],[2,64,0]],KW=[3,O,nR,0,[GV,NH,FH],[2,64,0]],qW=[3,O,rR,0,[WB,zB,BB,aU,cU],[0,0,4,0,0]],JW=[3,O,mR,0,[XV,FU],[0,0]],YW=[3,O,hR,0,[XV,FU],[0,0]],XW=[3,O,gR,0,[WU],[0]],ZW=[3,O,YL,0,[aV,GB],[2,0]],QW=[3,O,ZL,0,[w,YH,cH,VU,_V,qU,GU],[[0,1],0,64,128,[0,4],0,0],2],$W=[3,O,QL,0,[HB],[()=>wW]],eG=[3,O,$L,0,[w,KB,eV,DU,pU,_V,VU,xV,$H,AH],[[0,1],0,0,0,0,[0,4],128,0,()=>FK,()=>jW],2],tG=[3,O,eR,0,[nV],[()=>DW]],nG=[3,O,iR,0,[OH,cU,CU,QU,lH,dH,_V,VU,FV,GH,RB,sV,YU,rW,_U,fV,OU,AV,gV],[0,0,()=>OK,0,()=>NG,()=>JG,[0,4],128,()=>HK,()=>aK,()=>ZW,2,()=>EK,()=>jK,()=>lK,()=>GW,()=>pK,2,()=>XW],3],rG=[3,O,aR,0,[wV],[()=>VW]],iG=[3,O,fR,0,[w,MH,BU,PH,kU,jV,tH,$B,uU,pH,UU,VU,_V,fH,JU,IH,bV,QU,SU,nW],[[0,1],0,64,0,()=>eK,1,64,0,()=>cK,128,()=>YK,128,[0,4],()=>FG,()=>tK,()=>nK,0,0,0,()=>AK],4],aG=[3,O,pR,0,[VH],[()=>ZG]],oG=[3,O,CR,0,[w,YH],[[0,1],[0,1]],2],sG=[3,O,wR,0,[],[]],cG=[3,O,jR,0,[w,KB,oU],[[0,1],[0,1],[2,{[T]:oU}]],2],lG=[3,O,MR,0,[nV],[()=>DW]],uG=[3,O,zR,0,[OH],[[0,1]],1],dG=[3,O,BR,0,[wV],[()=>VW]],fG=[3,O,KR,0,[w,MH],[[0,1],[0,1]],2],pG=[3,O,qR,0,[VH],[()=>ZG]],mG=[3,O,TR,0,[w,YH],[[0,1],[0,1]],2],hG=[3,O,ER,0,[HB],[()=>wW]],gG=[3,O,NR,0,[w,KB],[[0,1],[0,1]],2],_G=[3,O,PR,0,[nV],[()=>DW]],vG=[3,O,IR,0,[uH,bH,D,KB,KU,sU,qH],[[0,{[T]:uH}],[1,{[T]:bH}],[0,{[T]:D}],[0,{[T]:KB}],[64,{[T]:KU}],[64,{[T]:sU}],[64,{[T]:qH}]]],yG=[3,O,LR,0,[rV,D],[()=>IK,0]],bG=[3,O,VR,0,[OH],[[0,1]],1],xG=[3,O,HR,0,[wV],[()=>VW]],SG=[3,O,JR,0,[w,MH],[[0,1],[0,1]],2],CG=[3,O,YR,0,[VH],[()=>ZG]],wG=[3,O,kR,0,[w,YH,ZH],[[0,1],[0,1],[0,1]],3],TG=[3,O,AR,0,[],[]],EG=[3,O,tz,0,[GV],[2]],DG=[3,O,ZR,0,[wU,aU],[64,()=>sK]],OG=[3,O,$R,0,[IV,zV,mU],[0,0,64]],kG=[3,O,nz,0,[FU],[0]],AG=[3,O,rz,0,[FU],[0]],jG=[3,O,iz,0,[KH],[()=>iK]],MG=[3,O,lz,0,[EV,mH,mU],[0,0,64]],NG=[3,O,uz,0,[MU,eH,RV],[0,0,()=>EG]],PG=[3,O,dz,0,[MU,NU,eH,RV],[0,0,0,()=>EG]],FG=[3,O,Mz,0,[OH,QU,nH],[0,0,0]],IG=[3,O,_z,0,[w,XB,bH,D],[[0,1],[0,{[T]:XB}],[1,{[T]:bH}],[0,{[T]:D}]],1],LG=[3,O,vz,0,[UB,D],[64,0]],RG=[3,O,bz,0,[bH,D],[[1,{[T]:bH}],[0,{[T]:D}]]],zG=[3,O,xz,0,[YB,D],[()=>NK,0]],BG=[3,O,Sz,0,[w,bH,D],[[0,1],[1,{[T]:bH}],[0,{[T]:D}]],1],VG=[3,O,Cz,0,[rV,D],[64,0]],HG=[3,O,mz,0,[w,YH,bH,D],[[0,1],[0,1],[1,{[T]:bH}],[0,{[T]:D}]],2],UG=[3,O,hz,0,[w,YH,D,IB],[0,0,0,()=>RK]],WG=[3,O,wz,0,[bH,D,iH],[[1,{[T]:bH}],[0,{[T]:D}],[64,{[T]:iH}]]],GG=[3,O,Tz,0,[TV,D],[64,0]],KG=[3,O,Oz,0,[w,bH,D],[[0,1],[1,{[T]:bH}],[0,{[T]:D}]],1],qG=[3,O,kz,0,[HH,D],[64,0]],JG=[3,O,Nz,0,[pV],[()=>GK]],YG=[3,O,Az,0,[KU,GV],[64,2]],XG=[3,O,Pz,0,[QH,tU],[0,0]],ZG=[3,O,Fz,0,[MH,kH,w,QU,SU,lV,hH,zU,bV,kU,tH,BU,uU,$B,PH,pH,UU,wU,jV,ZV,JU,IH,fH,VU,nW],[0,0,0,0,0,4,4,0,0,()=>eK,64,64,()=>cK,0,0,128,()=>YK,()=>$G,1,()=>QG,()=>tK,()=>nK,()=>FG,128,()=>AK]],QG=[3,O,Lz,0,[$V],[()=>WK]],$G=[3,O,Rz,0,[QB,lU],[()=>zK,0]],eK=[3,O,Hz,0,[SH,CH,MV],[1,1,1]],tK=[3,O,Uz,0,[wH,DH,XU],[1,1,0]],nK=[3,O,zz,0,[GV,TH,EH,vH,yH,LH],[2,1,1,1,1,()=>KK]],rK=[3,O,Bz,0,[jH,RH,xH,dU],[0,0,1,0]],iK=[3,O,Kz,0,[aH],[0]],aK=[3,O,Wz,0,[WH,mV,hV,LV,BV],[64,0,()=>JW,0,()=>kG],2],oK=[3,O,Gz,0,[WH,mV,hV,LV,BV],[64,0,()=>YW,0,()=>AG],2],sK=[3,O,qz,0,[sH],[0]],cK=[3,O,Jz,0,[UV,IU],[0,64]],lK=[3,O,Zz,0,[vU,bU],[()=>qK,()=>JK]],uK=[3,O,Qz,0,[vU,bU],[()=>qK,()=>JK]],dK=[3,O,eB,0,[CV],[64]],fK=[3,O,rB,0,[CV],[64]],pK=[3,O,aB,0,[oV],[()=>zW]],mK=[3,O,oB,0,[oV],[()=>zW]],hK=[3,O,lB,0,[oH,tW,WV],[0,0,0]],gK=[3,O,dB,0,[nH,zU,GU,iU,lV,qV],[0,0,0,()=>XK,4,()=>UK]],_K=[3,O,pB,0,[w,KB,eV,DU,pU,_V,xV,$H],[[0,1],[0,1],0,0,0,[0,4],0,()=>FK],2],vK=[3,O,mB,0,[ZU],[()=>gK]],yK=[3,O,gB,0,[qB,gU],[128,64]],bK=[3,O,vB,0,[w,MH,pH,UU,kU,JU,IH,nW,_V],[[0,1],[0,1],()=>yK,()=>TK,()=>eK,()=>tK,()=>nK,()=>AK,[0,4]],2],xK=[3,O,yB,0,[ZU],[()=>gK]],SK=[3,O,xB,0,[w,MH,QU,SU,fH,YV,_V],[[0,1],[0,1],0,0,()=>FG,2,[0,4]],2],CK=[3,O,SB,0,[ZU],[()=>gK]],wK=[3,O,CB,0,[GU,tW],[0,0]],TK=[3,O,DB,0,[JB,xU],[()=>YK,()=>YK]],EK=[3,O,wB,0,[LU],[0]],DK=[3,O,TB,0,[LU],[0]],OK=[3,O,OB,0,[PU,AU,VV,HV,XH],[64,64,2,2,64]],kK=[3,O,kB,0,[PU,AU,vV,$U,VV,HV,XH],[64,64,0,0,2,2,64]],AK=[3,O,AB,0,[GV,SH,gH,eU,yU],[2,1,1,0,2]],jK=[3,O,jB,0,[GV],[2]],MK=[3,O,MB,0,[GV],[2]],NK=[1,O,zL,0,()=>TW],PK=[1,O,ML,0,()=>AW],FK=[1,O,RL,0,()=>NW],IK=[1,O,GL,0,()=>kW],LK=[1,O,WL,0,()=>PW],RK=[1,O,CL,0,()=>LW],zK=[1,O,HL,0,()=>RW],BK=[1,O,lR,0,()=>UW],VK=[1,O,bR,0,()=>WW],HK=[1,O,QR,0,()=>DG],UK=[1,O,ez,0,()=>OG],WK=[1,O,az,0,()=>MG],GK=[1,O,jz,0,()=>YG],KK=[1,O,Vz,0,()=>rK],qK=[1,O,tB,0,()=>dK],JK=[1,O,iB,0,()=>fK],YK=[1,O,HU,0,()=>hK],XK=[1,O,EB,0,()=>wK],ZK=[9,O,EL,{[E]:[`POST`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>FW,()=>IW],QK=[9,O,XL,{[E]:[`POST`,`/clusters/{clusterName}/access-entries`,200]},()=>QW,()=>$W],$K=[9,O,JL,{[E]:[`POST`,`/clusters/{clusterName}/addons`,200]},()=>eG,()=>tG],eq=[9,O,oR,{[E]:[`POST`,`/clusters`,200]},()=>nG,()=>rG],tq=[9,O,dR,{[E]:[`POST`,`/clusters/{clusterName}/node-groups`,200]},()=>iG,()=>aG],nq=[9,O,SR,{[E]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>oG,()=>sG],rq=[9,O,xR,{[E]:[`DELETE`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>cG,()=>lG],iq=[9,O,UR,{[E]:[`DELETE`,`/clusters/{name}`,200]},()=>uG,()=>dG],aq=[9,O,GR,{[E]:[`DELETE`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>fG,()=>pG],oq=[9,O,DR,{[E]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>mG,()=>hG],sq=[9,O,RR,{[E]:[`GET`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>gG,()=>_G],cq=[9,O,FR,{[E]:[`GET`,`/addons/supported-versions`,200]},()=>vG,()=>yG],lq=[9,O,WR,{[E]:[`GET`,`/clusters/{name}`,200]},()=>bG,()=>xG],uq=[9,O,XR,{[E]:[`GET`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>SG,()=>CG],dq=[9,O,OR,{[E]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}`,200]},()=>wG,()=>TG],fq=[9,O,gz,{[E]:[`GET`,`/clusters/{clusterName}/access-entries`,200]},()=>IG,()=>LG],pq=[9,O,yz,{[E]:[`GET`,`/access-policies`,200]},()=>RG,()=>zG],mq=[9,O,fz,{[E]:[`GET`,`/clusters/{clusterName}/addons`,200]},()=>BG,()=>VG],hq=[9,O,pz,{[E]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>HG,()=>UG],gq=[9,O,Ez,{[E]:[`GET`,`/clusters`,200]},()=>WG,()=>GG],_q=[9,O,Dz,{[E]:[`GET`,`/clusters/{clusterName}/node-groups`,200]},()=>KG,()=>qG],vq=[9,O,fB,{[E]:[`POST`,`/clusters/{clusterName}/addons/{addonName}/update`,200]},()=>_K,()=>vK],yq=[9,O,_B,{[E]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-config`,200]},()=>bK,()=>xK],bq=[9,O,bB,{[E]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-version`,200]},()=>SK,()=>CK],xq=e=>({apiVersion:`2017-11-01`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??iL,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??FI,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie}],logger:e?.logger??new ze,protocol:e?.protocol??vee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.eks`,errorTypeRegistries:SW,version:`2017-11-01`,serviceTarget:`AWSWesleyFrontend`},serviceId:e?.serviceId??`EKS`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),Sq=e=>{let t=xe(e),n=()=>t().then(Ve),r=xq(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:zI.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Cq=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},wq=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Tq=(e,t)=>{let n=Object.assign(Xe(e),lt(e),re(e),Cq(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),wq(n))},Eq=class extends we{config;constructor(...[e]){let t=Sq(e||{});super(t),this.initConfig=t;let n=Tq(II(Ue(_e(Te(Le(Oe(LI(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:NI,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ae(this.config))}destroy(){super.destroy()}},Dq=async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Oq(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var kq=e=>{let t=[];switch(e.operation){default:t.push(Oq(e))}return t},Aq=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},jq=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),Mq={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Nq={name:`@aws-sdk/client-elastic-load-balancing-v2`,description:`AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo elastic-load-balancing-v2`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elastic-load-balancing-v2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-elastic-load-balancing-v2`}},Pq=`ref`,Fq=-1,Iq=!0,Lq=`isSet`,Rq=`PartitionResult`,zq=`booleanEquals`,Bq=`getAttr`,Vq={[Pq]:`Endpoint`},Hq={[Pq]:Rq},Uq={},Wq=[{[Pq]:`Region`}],Gq={conditions:[[Lq,[Vq]],[Lq,Wq],[`aws.partition`,Wq,Rq],[zq,[{[Pq]:`UseFIPS`},Iq]],[zq,[{[Pq]:`UseDualStack`},Iq]],[zq,[{fn:Bq,argv:[Hq,`supportsDualStack`]},Iq]],[zq,[{fn:Bq,argv:[Hq,`supportsFIPS`]},Iq]],[`stringEquals`,[{fn:Bq,argv:[Hq,`name`]},`aws-us-gov`]]],results:[[Fq],[Fq,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Fq,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Vq,Uq],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Uq],[Fq,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,Uq],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,Uq],[Fq,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,Uq],[Fq,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,Uq],[Fq,`Invalid Configuration: Missing Region`]]},Kq=2,qq=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),Jq=Je.from(qq,Kq,Gq.conditions,Gq.results),Yq=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Xq=(e,t={})=>Yq.get(e,()=>Ge(Jq,{endpointParams:e,logger:t.logger}));rt.aws=de;var k=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Zq=class e extends k{name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Qq=class e extends k{name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$q=class e extends k{name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},eJ=class e extends k{name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tJ=class e extends k{name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},nJ=class e extends k{name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rJ=class e extends k{name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iJ=class e extends k{name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},aJ=class e extends k{name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},oJ=class e extends k{name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sJ=class e extends k{name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cJ=class e extends k{name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lJ=class e extends k{name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},uJ=class e extends k{name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dJ=class e extends k{name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},fJ=class e extends k{name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},pJ=class e extends k{name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},mJ=class e extends k{name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},hJ=class e extends k{name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gJ=class e extends k{name=`DuplicateListenerException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateListenerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_J=class e extends k{name=`IncompatibleProtocolsException`;$fault=`client`;Message;constructor(t){super({name:`IncompatibleProtocolsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vJ=class e extends k{name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},yJ=class e extends k{name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},bJ=class e extends k{name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},xJ=class e extends k{name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},SJ=class e extends k{name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},CJ=class e extends k{name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wJ=class e extends k{name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},TJ=class e extends k{name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},EJ=class e extends k{name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},DJ=class e extends k{name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},OJ=class e extends k{name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},kJ=class e extends k{name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},AJ=class e extends k{name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},jJ=class e extends k{name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},MJ=class e extends k{name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},NJ=class e extends k{name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},PJ=class e extends k{name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},FJ=class e extends k{name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},IJ=class e extends k{name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},LJ=class e extends k{name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},RJ=class e extends k{name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zJ=class e extends k{name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},BJ=class e extends k{name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},VJ=class e extends k{name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},HJ=class e extends k{name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},UJ=class e extends k{name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},WJ=class e extends k{name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},GJ=class e extends k{name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},KJ=class e extends k{name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qJ=class e extends k{name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},JJ=class e extends k{name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},YJ=class e extends k{name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},XJ=class e extends k{name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ZJ=class e extends k{name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},QJ=class e extends k{name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$J=`Action`,eY=`AdditionalClaims`,tY=`AuthenticateCognitoActionConfig`,nY=`AuthenticateCognitoConfig`,rY=`AnomalyDetection`,iY=`AuthorizationEndpoint`,aY=`AllocationId`,oY=`AllocationIdNotFoundException`,sY=`ALPNPolicyNotSupportedException`,cY=`AdministrativeOverride`,lY=`AuthenticateOidcActionConfig`,uY=`AuthenticateOidcConfig`,dY=`AlpnPolicy`,fY=`AuthenticationRequestExtraParams`,pY=`AddTags`,mY=`AddTagsInput`,hY=`AddTagsOutput`,gY=`AdvertiseTrustStoreCaNames`,_Y=`AvailabilityZone`,vY=`AvailabilityZoneNotSupportedException`,yY=`AvailabilityZones`,bY=`Actions`,xY=`Attributes`,SY=`Certificates`,CY=`CertificateArn`,wY=`CaCertificatesBundleNotFoundException`,TY=`CapacityDecreaseRequestsLimitExceededException`,EY=`CanonicalHostedZoneId`,DY=`ClientId`,OY=`CertificateList`,kY=`CreateLoadBalancer`,AY=`CreateLoadBalancerInput`,jY=`CreateLoadBalancerOutput`,MY=`CreateListenerInput`,NY=`CreateListenerOutput`,PY=`CreateListener`,FY=`CertificateNotFoundException`,IY=`CustomerOwnedIpv4Pool`,LY=`CreateRule`,RY=`CreateRuleInput`,zY=`CreateRuleOutput`,BY=`CapacityReservationPendingException`,VY=`ClientSecret`,HY=`ContentType`,UY=`CreateTargetGroup`,WY=`CreateTargetGroupInput`,GY=`CreateTargetGroupOutput`,KY=`CreatedTime`,qY=`CapacityUnitsLimitExceededException`,JY=`Certificate`,YY=`Cipher`,XY=`Ciphers`,ZY=`Code`,QY=`Conditions`,$Y=`Description`,eX=`DefaultActions`,tX=`DeleteAssociationSameAccountException`,nX=`DeleteListener`,rX=`DeleteLoadBalancer`,iX=`DescribeLoadBalancerAttributes`,aX=`DescribeLoadBalancerAttributesInput`,oX=`DescribeLoadBalancerAttributesOutput`,sX=`DeleteLoadBalancerInput`,cX=`DescribeLoadBalancersInput`,lX=`DuplicateLoadBalancerNameException`,uX=`DeleteLoadBalancerOutput`,dX=`DescribeLoadBalancersOutput`,fX=`DescribeLoadBalancers`,pX=`DuplicateListenerException`,mX=`DeleteListenerInput`,hX=`DescribeListenersInput`,gX=`DeleteListenerOutput`,_X=`DescribeListenersOutput`,vX=`DescribeListeners`,yX=`DNSName`,bX=`DeleteRule`,xX=`DeleteRuleInput`,SX=`DescribeRulesInput`,CX=`DeleteRuleOutput`,wX=`DescribeRulesOutput`,TX=`DescribeRules`,EX=`DurationSeconds`,DX=`DescribeSSLPolicies`,OX=`DescribeSSLPoliciesInput`,kX=`DescribeSSLPoliciesOutput`,AX=`DeregisterTargets`,jX=`DeleteTargetGroup`,MX=`DescribeTargetGroupAttributes`,NX=`DescribeTargetGroupAttributesInput`,PX=`DescribeTargetGroupAttributesOutput`,FX=`DeleteTargetGroupInput`,IX=`DescribeTargetGroupsInput`,LX=`DuplicateTargetGroupNameException`,RX=`DeleteTargetGroupOutput`,zX=`DescribeTargetGroupsOutput`,BX=`DescribeTargetGroups`,VX=`DescribeTargetHealth`,HX=`DescribeTargetHealthInput`,UX=`DescribeTargetHealthOutput`,WX=`DeregisterTargetsInput`,GX=`DescribeTagsInput`,KX=`DuplicateTagKeysException`,qX=`DeregisterTargetsOutput`,JX=`DescribeTagsOutput`,YX=`DuplicateTrustStoreNameException`,XX=`DescribeTags`,ZX=`Enabled`,QX=`EnablePrefixForIpv6SourceNat`,$X=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,eZ=`Format`,tZ=`ForwardActionConfig`,nZ=`ForwardConfig`,rZ=`FixedResponseActionConfig`,iZ=`FixedResponseConfig`,aZ=`Field`,oZ=`GrpcCode`,sZ=`Host`,cZ=`HttpCode`,lZ=`HealthCheckEnabled`,uZ=`HealthCheckIntervalSeconds`,dZ=`HealthCheckProtocol`,fZ=`HealthCheckPort`,pZ=`HealthCheckPath`,mZ=`HealthCheckTimeoutSeconds`,hZ=`HostHeaderConfig`,gZ=`HostHeaderConditionConfig`,Ooe=`HttpHeaderConditionConfig`,_Z=`HttpHeaderConfig`,vZ=`HttpHeaderName`,yZ=`HostHeaderRewriteConfig`,bZ=`HttpRequestMethodConfig`,xZ=`HttpRequestMethodConditionConfig`,SZ=`HealthyThresholdCount`,CZ=`HealthUnavailableException`,wZ=`Issuer`,TZ=`IpAddress`,EZ=`IpAddressType`,DZ=`InvalidCaCertificatesBundleException`,OZ=`IgnoreClientCertificateExpiry`,kZ=`InsufficientCapacityException`,AZ=`InvalidConfigurationRequestException`,jZ=`IsDefault`,MZ=`Ipv4IpamPoolId`,NZ=`InvalidLoadBalancerActionException`,PZ=`IpamPools`,FZ=`IPv6Address`,IZ=`IncompatibleProtocolsException`,LZ=`InvalidRevocationContentException`,RZ=`InvalidSchemeException`,zZ=`InvalidSubnetException`,BZ=`InvalidSecurityGroupException`,VZ=`InvalidTargetException`,HZ=`Id`,UZ=`Include`,WZ=`JwksEndpoint`,GZ=`JwtValidationActionAdditionalClaim`,KZ=`JwtValidationActionAdditionalClaims`,qZ=`JwtValidationActionConfig`,JZ=`JwtValidationConfig`,YZ=`Key`,XZ=`Listeners`,ZZ=`ListenerArn`,QZ=`ListenerArns`,$Z=`LoadBalancers`,eQ=`LoadBalancerAddresses`,tQ=`LoadBalancerArn`,nQ=`LoadBalancerArns`,rQ=`LoadBalancerAddress`,iQ=`LoadBalancerAttribute`,aQ=`LoadBalancerAttributes`,oQ=`LoadBalancerName`,sQ=`LoadBalancerNotFoundException`,cQ=`LoadBalancerState`,lQ=`LoadBalancerType`,uQ=`LoadBalancer`,dQ=`ListenerNotFoundException`,fQ=`Listener`,A=`Message`,pQ=`MutualAuthentication`,mQ=`MutualAuthenticationAttributes`,hQ=`MessageBody`,gQ=`MitigationInEffect`,_Q=`ModifyListener`,vQ=`ModifyLoadBalancerAttributes`,yQ=`ModifyLoadBalancerAttributesInput`,bQ=`ModifyLoadBalancerAttributesOutput`,xQ=`ModifyListenerInput`,SQ=`ModifyListenerOutput`,CQ=`ModifyRule`,wQ=`ModifyRuleInput`,TQ=`ModifyRuleOutput`,EQ=`ModifyTargetGroupAttributes`,DQ=`ModifyTargetGroupAttributesInput`,OQ=`ModifyTargetGroupAttributesOutput`,kQ=`Matcher`,AQ=`Marker`,jQ=`Mode`,MQ=`Name`,NQ=`NextMarker`,PQ=`Names`,FQ=`Order`,IQ=`OutpostId`,LQ=`OperationNotPermittedException`,RQ=`OnUnauthenticatedRequest`,zQ=`Priority`,BQ=`PrivateIPv4Address`,VQ=`PriorityInUseException`,HQ=`PathPatternConfig`,UQ=`PathPatternConditionConfig`,WQ=`PriorRequestNotCompleteException`,GQ=`PageSize`,KQ=`ProtocolVersion`,qQ=`Path`,JQ=`Port`,YQ=`Protocol`,XQ=`Query`,ZQ=`QueryStringConfig`,QQ=`QueryStringConditionConfig`,$Q=`QuicServerId`,e$=`QueryStringKeyValuePair`,t$=`QueryStringKeyValuePairList`,n$=`Reason`,r$=`ResourceArns`,i$=`RedirectActionConfig`,a$=`ResourceArn`,o$=`RuleArn`,s$=`RuleArns`,c$=`RedirectConfig`,l$=`RewriteConfigList`,u$=`RuleConditionList`,d$=`RevocationContentNotFoundException`,f$=`RewriteConfig`,p$=`RuleCondition`,m$=`RevocationIdNotFoundException`,h$=`ResourceInUseException`,g$=`ResourceNotFoundException`,_$=`RuleNotFoundException`,v$=`RegisterTargetsInput`,y$=`RemoveTagsInput`,b$=`RuleTransformList`,x$=`RegisterTargetsOutput`,S$=`RemoveTagsOutput`,C$=`ResetTransforms`,w$=`RegisterTargets`,T$=`RemoveTags`,E$=`RuleTransform`,D$=`RegexValues`,O$=`Result`,k$=`Regex`,A$=`Replace`,j$=`Rewrites`,M$=`Rules`,N$=`Rule`,P$=`State`,F$=`StatusCode`,I$=`SessionCookieName`,L$=`SecurityGroups`,R$=`SecurityGroupIds`,z$=`SubnetId`,B$=`SourceIpConfig`,V$=`SourceIpConditionConfig`,H$=`SupportedLoadBalancerTypes`,U$=`SubnetMappings`,W$=`SubnetMapping`,G$=`SubnetNotFoundException`,K$=`SourceNatIpv6Prefixes`,q$=`SourceNatIpv6Prefix`,J$=`SslPolicy`,Y$=`SslPolicies`,X$=`SslProtocols`,Z$=`SetSubnets`,Q$=`SetSecurityGroups`,$$=`SetSecurityGroupsInput`,e1=`SetSecurityGroupsOutput`,t1=`SetSubnetsInput`,n1=`SSLPolicyNotFoundException`,r1=`SetSubnetsOutput`,i1=`SessionTimeout`,a1=`Scope`,o1=`Scheme`,s1=`Subnets`,c1=`Type`,l1=`TargetControlPort`,u1=`TagDescriptions`,d1=`TagDescription`,f1=`TargetDescription`,p1=`TargetDescriptions`,m1=`TokenEndpoint`,h1=`TargetGroups`,g1=`TargetGroupArn`,_1=`TargetGroupAssociationLimitException`,v1=`TargetGroupArns`,y1=`TargetGroupAttribute`,b1=`TargetGroupAttributes`,x1=`TargetGroupList`,S1=`TargetGroupName`,C1=`TargetGroupNotFoundException`,w1=`TargetGroupStickinessConfig`,T1=`TargetGroupTuple`,E1=`TargetGroup`,D1=`TargetHealth`,O1=`TargetHealthDescriptions`,k1=`TargetHealthDescription`,A1=`TagKeys`,j1=`TagList`,M1=`TooManyActionsException`,N1=`TooManyCertificatesException`,P1=`TooManyLoadBalancersException`,F1=`TooManyListenersException`,I1=`TooManyRulesException`,L1=`TooManyRegistrationsForTargetIdException`,R1=`TooManyTagsException`,z1=`TooManyTargetsException`,B1=`TooManyTargetGroupsException`,V1=`TooManyTrustStoresException`,H1=`TooManyTrustStoreRevocationEntriesException`,U1=`TooManyUniqueTargetGroupsPerLoadBalancerException`,W1=`TrustStoreArn`,G1=`TrustStoreAssociationNotFoundException`,K1=`TrustStoreAssociationStatus`,q1=`TrustStoreInUseException`,J1=`TrustStoreNotFoundException`,Y1=`TrustStoreNotReadyException`,X1=`TargetType`,Z1=`Tags`,Q1=`Tag`,$1=`Targets`,e0=`Target`,t0=`Transforms`,n0=`UseExistingClientSecret`,r0=`UserInfoEndpoint`,i0=`UserPoolArn`,a0=`UserPoolClientId`,o0=`UserPoolDomain`,s0=`UnsupportedProtocolException`,c0=`UrlRewriteConfig`,l0=`UnhealthyThresholdCount`,u0=`Values`,d0=`VpcId`,f0=`Value`,p0=`Weight`,m0=`ZoneName`,j=`awsQueryError`,M=`client`,N=`error`,P=`httpError`,h0=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,g0=`server`,F=`com.amazonaws.elasticloadbalancingv2`,_0=se.for(h0),v0=[-3,h0,`ElasticLoadBalancingV2ServiceException`,0,[],[]];_0.registerError(v0,k);var I=se.for(F),y0=[-3,F,oY,{[j]:[`AllocationIdNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(y0,lJ);var b0=[-3,F,sY,{[j]:[`ALPNPolicyNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(b0,uJ);var x0=[-3,F,vY,{[j]:[`AvailabilityZoneNotSupported`,400],[N]:M,[P]:400},[A],[0]];I.registerError(x0,dJ);var S0=[-3,F,wY,{[j]:[`CaCertificatesBundleNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(S0,fJ);var C0=[-3,F,TY,{[j]:[`CapacityDecreaseRequestLimitExceeded`,400],[N]:M,[P]:400},[A],[0]];I.registerError(C0,pJ);var w0=[-3,F,BY,{[j]:[`CapacityReservationPending`,400],[N]:M,[P]:400},[A],[0]];I.registerError(w0,mJ);var T0=[-3,F,qY,{[j]:[`CapacityUnitsLimitExceeded`,400],[N]:M,[P]:400},[A],[0]];I.registerError(T0,hJ);var E0=[-3,F,FY,{[j]:[`CertificateNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(E0,Zq);var D0=[-3,F,tX,{[j]:[`DeleteAssociationSameAccount`,400],[N]:M,[P]:400},[A],[0]];I.registerError(D0,WJ);var O0=[-3,F,pX,{[j]:[`DuplicateListener`,400],[N]:M,[P]:400},[A],[0]];I.registerError(O0,gJ);var k0=[-3,F,lX,{[j]:[`DuplicateLoadBalancerName`,400],[N]:M,[P]:400},[A],[0]];I.registerError(k0,kJ);var A0=[-3,F,KX,{[j]:[`DuplicateTagKeys`,400],[N]:M,[P]:400},[A],[0]];I.registerError(A0,eJ);var j0=[-3,F,LX,{[j]:[`DuplicateTargetGroupName`,400],[N]:M,[P]:400},[A],[0]];I.registerError(j0,BJ);var M0=[-3,F,YX,{[j]:[`DuplicateTrustStoreName`,400],[N]:M,[P]:400},[A],[0]];I.registerError(M0,VJ);var N0=[-3,F,CZ,{[j]:[`HealthUnavailable`,500],[N]:g0,[P]:500},[A],[0]];I.registerError(N0,JJ);var P0=[-3,F,IZ,{[j]:[`IncompatibleProtocols`,400],[N]:M,[P]:400},[A],[0]];I.registerError(P0,_J);var F0=[-3,F,kZ,{[j]:[`InsufficientCapacity`,500],[N]:g0,[P]:500},[A],[0]];I.registerError(F0,ZJ);var I0=[-3,F,DZ,{[j]:[`InvalidCaCertificatesBundle`,400],[N]:M,[P]:400},[A],[0]];I.registerError(I0,HJ);var L0=[-3,F,AZ,{[j]:[`InvalidConfigurationRequest`,400],[N]:M,[P]:400},[A],[0]];I.registerError(L0,vJ);var R0=[-3,F,NZ,{[j]:[`InvalidLoadBalancerAction`,400],[N]:M,[P]:400},[A],[0]];I.registerError(R0,yJ);var z0=[-3,F,LZ,{[j]:[`InvalidRevocationContent`,400],[N]:M,[P]:400},[A],[0]];I.registerError(z0,oJ);var B0=[-3,F,RZ,{[j]:[`InvalidScheme`,400],[N]:M,[P]:400},[A],[0]];I.registerError(B0,AJ);var V0=[-3,F,BZ,{[j]:[`InvalidSecurityGroup`,400],[N]:M,[P]:400},[A],[0]];I.registerError(V0,jJ);var H0=[-3,F,zZ,{[j]:[`InvalidSubnet`,400],[N]:M,[P]:400},[A],[0]];I.registerError(H0,MJ);var U0=[-3,F,VZ,{[j]:[`InvalidTarget`,400],[N]:M,[P]:400},[A],[0]];I.registerError(U0,qJ);var W0=[-3,F,dQ,{[j]:[`ListenerNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(W0,Qq);var G0=[-3,F,sQ,{[j]:[`LoadBalancerNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(G0,tJ);var K0=[-3,F,LQ,{[j]:[`OperationNotPermitted`,400],[N]:M,[P]:400},[A],[0]];I.registerError(K0,NJ);var q0=[-3,F,VQ,{[j]:[`PriorityInUse`,400],[N]:M,[P]:400},[A],[0]];I.registerError(q0,LJ);var J0=[-3,F,WQ,{[j]:[`PriorRequestNotComplete`,429],[N]:M,[P]:429},[A],[0]];I.registerError(J0,QJ);var Y0=[-3,F,h$,{[j]:[`ResourceInUse`,400],[N]:M,[P]:400},[A],[0]];I.registerError(Y0,PJ);var X0=[-3,F,g$,{[j]:[`ResourceNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(X0,XJ);var Z0=[-3,F,d$,{[j]:[`RevocationContentNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(Z0,sJ);var Q0=[-3,F,m$,{[j]:[`RevocationIdNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(Q0,YJ);var $0=[-3,F,_$,{[j]:[`RuleNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError($0,nJ);var e2=[-3,F,n1,{[j]:[`SSLPolicyNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(e2,bJ);var t2=[-3,F,G$,{[j]:[`SubnetNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(t2,FJ);var n2=[-3,F,_1,{[j]:[`TargetGroupAssociationLimit`,400],[N]:M,[P]:400},[A],[0]];I.registerError(n2,xJ);var r2=[-3,F,C1,{[j]:[`TargetGroupNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(r2,rJ);var i2=[-3,F,M1,{[j]:[`TooManyActions`,400],[N]:M,[P]:400},[A],[0]];I.registerError(i2,SJ);var a2=[-3,F,N1,{[j]:[`TooManyCertificates`,400],[N]:M,[P]:400},[A],[0]];I.registerError(a2,$q);var o2=[-3,F,F1,{[j]:[`TooManyListeners`,400],[N]:M,[P]:400},[A],[0]];I.registerError(o2,CJ);var s2=[-3,F,P1,{[j]:[`TooManyLoadBalancers`,400],[N]:M,[P]:400},[A],[0]];I.registerError(s2,IJ);var c2=[-3,F,L1,{[j]:[`TooManyRegistrationsForTargetId`,400],[N]:M,[P]:400},[A],[0]];I.registerError(c2,wJ);var l2=[-3,F,I1,{[j]:[`TooManyRules`,400],[N]:M,[P]:400},[A],[0]];I.registerError(l2,RJ);var u2=[-3,F,R1,{[j]:[`TooManyTags`,400],[N]:M,[P]:400},[A],[0]];I.registerError(u2,iJ);var d2=[-3,F,B1,{[j]:[`TooManyTargetGroups`,400],[N]:M,[P]:400},[A],[0]];I.registerError(d2,zJ);var f2=[-3,F,z1,{[j]:[`TooManyTargets`,400],[N]:M,[P]:400},[A],[0]];I.registerError(f2,TJ);var p2=[-3,F,H1,{[j]:[`TooManyTrustStoreRevocationEntries`,400],[N]:M,[P]:400},[A],[0]];I.registerError(p2,cJ);var m2=[-3,F,V1,{[j]:[`TooManyTrustStores`,400],[N]:M,[P]:400},[A],[0]];I.registerError(m2,UJ);var h2=[-3,F,U1,{[j]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[N]:M,[P]:400},[A],[0]];I.registerError(h2,EJ);var g2=[-3,F,G1,{[j]:[`AssociationNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(g2,GJ);var _2=[-3,F,q1,{[j]:[`TrustStoreInUse`,400],[N]:M,[P]:400},[A],[0]];I.registerError(_2,KJ);var v2=[-3,F,J1,{[j]:[`TrustStoreNotFound`,400],[N]:M,[P]:400},[A],[0]];I.registerError(v2,aJ);var y2=[-3,F,Y1,{[j]:[`TrustStoreNotReady`,400],[N]:M,[P]:400},[A],[0]];I.registerError(y2,DJ);var b2=[-3,F,s0,{[j]:[`UnsupportedProtocol`,400],[N]:M,[P]:400},[A],[0]];I.registerError(b2,OJ);var x2=[_0,I],S2=[3,F,$J,0,[c1,g1,uY,nY,FQ,c$,iZ,nZ,JZ],[0,0,()=>O2,()=>D2,1,()=>V4,()=>m4,()=>h4,()=>S4],1],C2=[3,F,mY,0,[r$,Z1],[64,()=>t3],2],w2=[3,F,hY,0,[],[]],T2=[3,F,cY,0,[P$,n$,$Y],[0,0,0]],E2=[3,F,rY,0,[O$,gQ],[0,0]],D2=[3,F,tY,0,[i0,a0,o0,I$,a1,i1,fY,RQ],[0,0,0,0,0,1,128,0],3],O2=[3,F,lY,0,[wZ,iY,m1,r0,DY,VY,I$,a1,i1,fY,RQ,n0],[0,0,0,0,0,0,0,0,1,128,0,2],5],k2=[3,F,_Y,0,[m0,z$,IQ,eQ,K$],[0,0,0,()=>ese,64]],A2=[3,F,JY,0,[CY,jZ],[0,2]],j2=[3,F,YY,0,[MQ,zQ],[0,1]],M2=[3,F,MY,0,[tQ,eX,YQ,JQ,J$,SY,dY,Z1,pQ],[0,()=>W4,0,1,0,()=>K4,64,()=>t3,()=>L4],2],N2=[3,F,NY,0,[XZ],[()=>q4]],P2=[3,F,AY,0,[MQ,s1,U$,L$,o1,Z1,c1,EZ,IY,QX,PZ],[0,64,()=>e3,64,0,()=>t3,0,0,0,0,()=>b4],1],F2=[3,F,jY,0,[$Z],[()=>Y4]],I2=[3,F,RY,0,[ZZ,QY,zQ,bY,Z1,t0],[0,()=>Z4,1,()=>W4,()=>t3,()=>$4],4],L2=[3,F,zY,0,[M$],[()=>Q4]],R2=[3,F,WY,0,[MQ,YQ,KQ,JQ,d0,dZ,fZ,lZ,pZ,uZ,mZ,SZ,l0,kQ,X1,Z1,EZ,l1],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>O4,0,()=>t3,0,1],1],z2=[3,F,GY,0,[h1],[()=>i3]],B2=[3,F,mX,0,[ZZ],[0],1],V2=[3,F,gX,0,[],[]],H2=[3,F,sX,0,[tQ],[0],1],U2=[3,F,uX,0,[],[]],W2=[3,F,xX,0,[o$],[0],1],G2=[3,F,CX,0,[],[]],K2=[3,F,FX,0,[g1],[0],1],q2=[3,F,RX,0,[],[]],J2=[3,F,WX,0,[g1,$1],[0,()=>n3],2],Y2=[3,F,qX,0,[],[]],X2=[3,F,hX,0,[tQ,QZ,AQ,GQ],[0,64,0,1]],Z2=[3,F,_X,0,[XZ,NQ],[()=>q4,0]],Q2=[3,F,aX,0,[tQ],[0],1],$2=[3,F,oX,0,[xY],[()=>J4]],e4=[3,F,cX,0,[nQ,PQ,AQ,GQ],[64,64,0,1]],t4=[3,F,dX,0,[$Z,NQ],[()=>Y4,0]],n4=[3,F,SX,0,[ZZ,s$,AQ,GQ],[0,64,0,1]],r4=[3,F,wX,0,[M$,NQ],[()=>Q4,0]],i4=[3,F,OX,0,[PQ,AQ,GQ,lQ],[64,0,1,0]],a4=[3,F,kX,0,[Y$,NQ],[()=>nse,0]],o4=[3,F,GX,0,[r$],[64],1],s4=[3,F,JX,0,[u1],[()=>rse]],c4=[3,F,NX,0,[g1],[0],1],l4=[3,F,PX,0,[xY],[()=>r3]],u4=[3,F,IX,0,[tQ,v1,PQ,AQ,GQ],[0,64,64,0,1]],d4=[3,F,zX,0,[h1,NQ],[()=>i3,0]],f4=[3,F,HX,0,[g1,$1,UZ],[0,()=>n3,64],1],p4=[3,F,UX,0,[O1],[()=>ase]],m4=[3,F,rZ,0,[F$,hQ,HY],[0,0,0],1],h4=[3,F,tZ,0,[h1,w1],[()=>ise,()=>qoe]],g4=[3,F,gZ,0,[u0,D$],[64,64]],_4=[3,F,yZ,0,[j$],[()=>X4]],v4=[3,F,Ooe,0,[vZ,u0,D$],[0,64,64]],y4=[3,F,xZ,0,[u0],[64]],b4=[3,F,PZ,0,[MZ],[0]],x4=[3,F,GZ,0,[eZ,MQ,u0],[0,0,64],3],S4=[3,F,qZ,0,[WZ,wZ,eY],[0,0,()=>$oe],2],C4=[3,F,fQ,0,[ZZ,tQ,JQ,YQ,SY,J$,eX,dY,pQ],[0,0,1,0,()=>K4,0,()=>W4,64,()=>L4]],w4=[3,F,uQ,0,[tQ,yX,EY,KY,oQ,o1,d0,P$,c1,yY,L$,EZ,IY,$X,QX,PZ],[0,0,0,4,0,0,0,()=>D4,0,()=>G4,64,0,0,0,0,()=>b4]],T4=[3,F,rQ,0,[TZ,aY,BQ,FZ],[0,0,0,0]],E4=[3,F,iQ,0,[YZ,f0],[0,0]],D4=[3,F,cQ,0,[ZY,n$],[0,0]],O4=[3,F,kQ,0,[cZ,oZ],[0,0]],k4=[3,F,xQ,0,[ZZ,JQ,YQ,J$,SY,eX,dY,pQ],[0,1,0,0,()=>K4,()=>W4,64,()=>L4],1],A4=[3,F,SQ,0,[XZ],[()=>q4]],j4=[3,F,yQ,0,[tQ,xY],[0,()=>J4],2],M4=[3,F,bQ,0,[xY],[()=>J4]],N4=[3,F,wQ,0,[o$,QY,bY,t0,C$],[0,()=>Z4,()=>W4,()=>$4,2],1],P4=[3,F,TQ,0,[M$],[()=>Q4]],F4=[3,F,DQ,0,[g1,xY],[0,()=>r3],2],I4=[3,F,OQ,0,[xY],[()=>r3]],L4=[3,F,mQ,0,[jQ,W1,OZ,K1,gY],[0,0,2,0,0]],R4=[3,F,UQ,0,[u0,D$],[64,64]],z4=[3,F,QQ,0,[u0],[()=>tse]],B4=[3,F,e$,0,[YZ,f0],[0,0]],V4=[3,F,i$,0,[F$,YQ,JQ,sZ,qQ,XQ],[0,0,0,0,0,0],1],H4=[3,F,v$,0,[g1,$1],[0,()=>n3],2],koe=[3,F,x$,0,[],[]],Aoe=[3,F,y$,0,[r$,A1],[64,64],2],joe=[3,F,S$,0,[],[]],Moe=[3,F,f$,0,[k$,A$],[0,0],2],Noe=[3,F,N$,0,[o$,zQ,QY,bY,jZ,t0],[0,0,()=>Z4,()=>W4,2,()=>$4]],Poe=[3,F,p$,0,[aZ,u0,hZ,HQ,_Z,ZQ,bZ,B$,D$],[0,64,()=>g4,()=>R4,()=>v4,()=>z4,()=>y4,()=>Boe,64]],Foe=[3,F,E$,0,[c1,yZ,c0],[0,()=>_4,()=>Zoe],1],Ioe=[3,F,$$,0,[tQ,L$,$X],[0,64,0],2],Loe=[3,F,e1,0,[R$,$X],[64,0]],Roe=[3,F,t1,0,[tQ,s1,U$,EZ,QX],[0,64,()=>e3,0,0],1],zoe=[3,F,r1,0,[yY,EZ,QX],[()=>G4,0,0]],Boe=[3,F,V$,0,[u0],[64]],Voe=[3,F,J$,0,[X$,XY,MQ,H$],[64,()=>Qoe,0,64]],Hoe=[3,F,W$,0,[z$,aY,BQ,FZ,q$],[0,0,0,0,0]],Uoe=[3,F,Q1,0,[YZ,f0],[0,0],1],Woe=[3,F,d1,0,[a$,Z1],[0,()=>t3]],U4=[3,F,f1,0,[HZ,JQ,_Y,$Q],[0,1,0,0],1],Goe=[3,F,E1,0,[g1,S1,YQ,JQ,d0,dZ,fZ,lZ,uZ,mZ,SZ,l0,pZ,kQ,nQ,X1,KQ,EZ,l1],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>O4,64,0,0,0,1]],Koe=[3,F,y1,0,[YZ,f0],[0,0]],qoe=[3,F,w1,0,[ZX,EX],[2,1]],Joe=[3,F,T1,0,[g1,p0],[0,1]],Yoe=[3,F,D1,0,[P$,n$,$Y],[0,0,0]],Xoe=[3,F,k1,0,[e0,fZ,D1,rY,cY],[()=>U4,0,()=>Yoe,()=>E2,()=>T2]],Zoe=[3,F,c0,0,[j$],[()=>X4]],W4=[1,F,bY,0,()=>S2],G4=[1,F,yY,0,()=>k2],K4=[1,F,OY,0,()=>A2],Qoe=[1,F,XY,0,()=>j2],$oe=[1,F,KZ,0,()=>x4],q4=[1,F,XZ,0,()=>C4],ese=[1,F,eQ,0,()=>T4],J4=[1,F,aQ,0,()=>E4],Y4=[1,F,$Z,0,()=>w4],tse=[1,F,t$,0,()=>B4],X4=[1,F,l$,0,()=>Moe],Z4=[1,F,u$,0,()=>Poe],Q4=[1,F,M$,0,()=>Noe],$4=[1,F,b$,0,()=>Foe],nse=[1,F,Y$,0,()=>Voe],e3=[1,F,U$,0,()=>Hoe],rse=[1,F,u1,0,()=>Woe],t3=[1,F,j1,0,()=>Uoe],n3=[1,F,p1,0,()=>U4],r3=[1,F,b1,0,()=>Koe],ise=[1,F,x1,0,()=>Joe],i3=[1,F,h1,0,()=>Goe],ase=[1,F,O1,0,()=>Xoe],ose=[9,F,pY,0,()=>C2,()=>w2],sse=[9,F,PY,0,()=>M2,()=>N2],cse=[9,F,kY,0,()=>P2,()=>F2],lse=[9,F,LY,0,()=>I2,()=>L2],use=[9,F,UY,0,()=>R2,()=>z2],dse=[9,F,nX,0,()=>B2,()=>V2],fse=[9,F,rX,0,()=>H2,()=>U2],pse=[9,F,bX,0,()=>W2,()=>G2],mse=[9,F,jX,0,()=>K2,()=>q2],hse=[9,F,AX,0,()=>J2,()=>Y2],gse=[9,F,vX,0,()=>X2,()=>Z2],_se=[9,F,iX,0,()=>Q2,()=>$2],vse=[9,F,fX,0,()=>e4,()=>t4],yse=[9,F,TX,0,()=>n4,()=>r4],bse=[9,F,DX,0,()=>i4,()=>a4],xse=[9,F,XX,0,()=>o4,()=>s4],Sse=[9,F,MX,0,()=>c4,()=>l4],Cse=[9,F,BX,0,()=>u4,()=>d4],wse=[9,F,VX,0,()=>f4,()=>p4],Tse=[9,F,_Q,0,()=>k4,()=>A4],Ese=[9,F,vQ,0,()=>j4,()=>M4],Dse=[9,F,CQ,0,()=>N4,()=>P4],Ose=[9,F,EQ,0,()=>F4,()=>I4],kse=[9,F,w$,0,()=>H4,()=>koe],Ase=[9,F,T$,0,()=>Aoe,()=>joe],jse=[9,F,Q$,0,()=>Ioe,()=>Loe],Mse=[9,F,Z$,0,()=>Roe,()=>zoe],Nse=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Xq,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??kq,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie}],logger:e?.logger??new ze,protocol:e?.protocol??Ke,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:x2,xmlNamespace:`http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/`,version:`2015-12-01`,serviceTarget:`ElasticLoadBalancing_v10`},serviceId:e?.serviceId??`Elastic Load Balancing v2`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),Pse=e=>{let t=xe(e),n=()=>t().then(Ve),r=Nse(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:Nq.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Fse=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Ise=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Lse=(e,t)=>{let n=Object.assign(Xe(e),lt(e),re(e),Fse(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),Ise(n))},Rse=class extends we{config;constructor(...[e]){let t=Pse(e||{});super(t),this.initConfig=t;let n=Lse(Aq(Ue(_e(Te(Le(Oe(jq(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:Dq,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ae(this.config))}destroy(){super.destroy()}},zse=async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Bse(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Vse=e=>{let t=[];switch(e.operation){default:t.push(Bse(e))}return t},Hse=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},Use=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),Wse={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Gse={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo iam`,test:`yarn g:vitest run --passWithNoTests`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch --passWithNoTests`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iam`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-iam`}},a3=`ref`,o3=`authSchemes`,s3=`name`,c3=`signingRegion`,l3=-1,u3=!0,d3=`isSet`,f3=`PartitionResult`,p3=`booleanEquals`,m3=`stringEquals`,h3=`getAttr`,g3=`sigv4`,_3={[a3]:`Endpoint`},v3={fn:h3,argv:[{[a3]:f3},`name`]},y3={[a3]:f3},b3={[o3]:[{[s3]:g3,[c3]:`us-east-1`}]},x3={[o3]:[{[s3]:g3,[c3]:`cn-north-1`}]},S3={[o3]:[{[s3]:g3,[c3]:`us-gov-west-1`}]},C3={[o3]:[{[s3]:g3,[c3]:`us-iso-east-1`}]},w3={[o3]:[{[s3]:g3,[c3]:`us-isob-east-1`}]},T3={[o3]:[{[s3]:g3,[c3]:`{PartitionResult#implicitGlobalRegion}`}]},E3=[{[a3]:`Region`}],D3={conditions:[[d3,[_3]],[d3,E3],[`aws.partition`,E3,f3],[p3,[{[a3]:`UseFIPS`},u3]],[p3,[{[a3]:`UseDualStack`},u3]],[m3,[v3,`aws`]],[m3,[v3,`aws-cn`]],[m3,[v3,`aws-us-gov`]],[p3,[{fn:h3,argv:[y3,`supportsDualStack`]},u3]],[m3,[v3,`aws-iso`]],[m3,[v3,`aws-iso-b`]],[p3,[{fn:h3,argv:[y3,`supportsFIPS`]},u3]],[m3,[v3,`aws-iso-e`]],[m3,[v3,`aws-iso-f`]],[m3,[v3,`aws-eusc`]]],results:[[l3],[l3,`Invalid Configuration: FIPS and custom endpoint are not supported`],[l3,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[_3,{}],[`https://iam.global.api.aws`,b3],[`https://iam-fips.global.api.aws`,b3],[`https://iam.global.api.amazonwebservices.com.cn`,x3],[`https://iam.cn-north-1.amazonaws.com.cn`,x3],[`https://iam.us-gov.api.aws`,S3],[`https://iam.us-gov.amazonaws.com`,S3],[`https://iam.us-iso-east-1.c2s.ic.gov`,C3],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,C3],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,w3],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,w3],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[o3]:[{[s3]:g3,[c3]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[o3]:[{[s3]:g3,[c3]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[o3]:[{[s3]:g3,[c3]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,T3],[l3,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,T3],[l3,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,T3],[l3,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,T3],[l3,`Invalid Configuration: Missing Region`]]},Kse=2,qse=new Int32Array([-1,1,-1,0,27,3,1,4,100000024,2,5,100000024,3,18,6,4,14,7,6,100000007,8,7,100000009,9,9,100000010,10,10,100000012,11,12,100000014,12,13,100000015,13,14,100000016,100000023,5,100000004,15,6,100000006,16,7,100000008,17,8,100000021,100000022,4,23,19,7,100000009,20,9,100000011,21,10,100000013,22,11,100000019,100000020,5,100000005,24,7,100000008,25,8,26,100000018,11,100000017,100000018,3,100000001,28,4,100000002,100000003]),Jse=Je.from(qse,Kse,D3.conditions,D3.results),Yse=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Xse=(e,t={})=>Yse.get(e,()=>Ge(Jse,{endpointParams:e,logger:t.logger}));rt.aws=de;var L=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Zse=class e extends L{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Qse=class e extends L{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$se=class e extends L{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},ece=class e extends L{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tce=class e extends L{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nce=class e extends L{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rce=class e extends L{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ice=class e extends L{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ace=class e extends L{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oce=class e extends L{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sce=class e extends L{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cce=class e extends L{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lce=class e extends L{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uce=class e extends L{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dce=class e extends L{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fce=class e extends L{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pce=class e extends L{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},mce=class e extends L{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},hce=class e extends L{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gce=class e extends L{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_ce=class e extends L{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vce=class e extends L{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},yce=class e extends L{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bce=class e extends L{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xce=class e extends L{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Sce=class e extends L{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Cce=class e extends L{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wce=class e extends L{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Tce=class e extends L{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ece=class e extends L{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Dce=class e extends L{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Oce=class e extends L{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kce=class e extends L{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ace=class e extends L{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jce=class e extends L{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},O3=`Arn`,Mce=`AttachmentCount`,k3=`AccessKey`,A3=`AccessKeyId`,j3=`AccessKeyMetadata`,Nce=`AccountNotManagementOrDelegatedAdministratorException`,Pce=`AttachedPolicy`,Fce=`AttachedPermissionsBoundary`,M3=`AttachedPolicies`,Ice=`AttachRolePolicy`,N3=`AssumeRolePolicyDocument`,Lce=`AttachRolePolicyRequest`,Rce=`AddRoleToInstanceProfile`,zce=`AddRoleToInstanceProfileRequest`,Bce=`AttachUserPolicy`,Vce=`AttachUserPolicyRequest`,Hce=`CreateAccessKey`,Uce=`CreateAccessKeyRequest`,Wce=`CreateAccessKeyResponse`,P3=`CreateDate`,Gce=`CallerIsNotManagementAccountException`,Kce=`CreateInstanceProfile`,qce=`CreateInstanceProfileRequest`,Jce=`CreateInstanceProfileResponse`,Yce=`ConcurrentModificationException`,Xce=`CreatePolicyRequest`,Zce=`CreatePolicyResponse`,Qce=`CreatePolicy`,$ce=`CreateRole`,ele=`CredentialReportExpiredException`,tle=`CredentialReportNotPresentException`,nle=`CredentialReportNotReadyException`,rle=`CreateRoleRequest`,ile=`CreateRoleResponse`,ale=`CreateUser`,ole=`CreateUserRequest`,sle=`CreateUserResponse`,F3=`Description`,cle=`DeleteAccessKey`,lle=`DeleteAccessKeyRequest`,ule=`DeleteConflictException`,dle=`DuplicateCertificateException`,fle=`DeleteInstanceProfile`,ple=`DeleteInstanceProfileRequest`,mle=`DeletePolicyRequest`,hle=`DeletePolicy`,gle=`DetachRolePolicyRequest`,_le=`DetachRolePolicy`,vle=`DeleteRoleRequest`,yle=`DeleteRole`,ble=`DuplicateSSHPublicKeyException`,xle=`DeleteUser`,Sle=`DetachUserPolicyRequest`,Cle=`DetachUserPolicy`,wle=`DeleteUserRequest`,Tle=`DefaultVersionId`,Ele=`Document`,Dle=`EntityAlreadyExistsException`,Ole=`EntityTemporarilyUnmodifiableException`,kle=`FeatureDisabledException`,Ale=`FeatureEnabledException`,jle=`GetInstanceProfile`,Mle=`GetInstanceProfileRequest`,Nle=`GetInstanceProfileResponse`,Ple=`GetPolicy`,Fle=`GetPolicyRequest`,Ile=`GetPolicyResponse`,Lle=`GetPolicyVersion`,Rle=`GetPolicyVersionRequest`,zle=`GetPolicyVersionResponse`,Ble=`GetRole`,Vle=`GetRoleRequest`,Hle=`GetRoleResponse`,Ule=`GetUser`,Wle=`GetUserRequest`,Gle=`GetUserResponse`,Kle=`IsAttachable`,qle=`InvalidAuthenticationCodeException`,Jle=`InvalidCertificateException`,Yle=`IsDefaultVersion`,Xle=`InvalidInputException`,I3=`InstanceProfile`,Zle=`InstanceProfileId`,Qle=`InvalidPublicKeyException`,L3=`InstanceProfileName`,R3=`InstanceProfiles`,z3=`IsTruncated`,$le=`InvalidUserTypeException`,eue=`Key`,tue=`KeyPairMismatchException`,nue=`ListAccessKeys`,rue=`ListAccessKeysRequest`,iue=`ListAccessKeysResponse`,aue=`ListAttachedRolePolicies`,oue=`ListAttachedRolePoliciesRequest`,sue=`ListAttachedRolePoliciesResponse`,cue=`ListAttachedUserPolicies`,lue=`ListAttachedUserPoliciesRequest`,uue=`ListAttachedUserPoliciesResponse`,due=`LimitExceededException`,fue=`ListInstanceProfiles`,pue=`ListInstanceProfilesForRole`,mue=`ListInstanceProfilesForRoleRequest`,hue=`ListInstanceProfilesForRoleResponse`,gue=`ListInstanceProfilesRequest`,_ue=`ListInstanceProfilesResponse`,vue=`ListPoliciesRequest`,yue=`ListPoliciesResponse`,bue=`ListPolicies`,xue=`ListRoles`,Sue=`ListRolesRequest`,Cue=`ListRolesResponse`,wue=`ListUsers`,Tue=`LastUsedDate`,Eue=`ListUsersRequest`,Due=`ListUsersResponse`,B3=`Message`,Oue=`MalformedCertificateException`,V3=`MaxItems`,kue=`MalformedPolicyDocumentException`,H3=`MaxSessionDuration`,U3=`Marker`,Aue=`NoSuchEntityException`,jue=`OnlyAttached`,Mue=`OpenIdIdpCommunicationErrorException`,Nue=`OrganizationNotFoundException`,Pue=`OrganizationNotInAllFeaturesModeException`,W3=`PolicyArn`,G3=`PermissionsBoundary`,Fue=`PermissionsBoundaryArn`,Iue=`PermissionsBoundaryType`,Lue=`PermissionsBoundaryUsageCount`,Rue=`PolicyDocument`,zue=`PolicyEvaluationException`,Bue=`PolicyId`,Vue=`PasswordLastUsed`,K3=`PolicyName`,Hue=`PolicyNotAttachableException`,Uue=`PasswordPolicyViolationException`,q3=`PathPrefix`,Wue=`PolicyUsageFilter`,J3=`PolicyVersion`,Y3=`Path`,X3=`Policy`,Gue=`Policies`,Kue=`Region`,que=`ReportGenerationLimitExceededException`,Jue=`RoleId`,Z3=`RoleLastUsed`,Q3=`RoleName`,Yue=`RemoveRoleFromInstanceProfile`,Xue=`RemoveRoleFromInstanceProfileRequest`,$3=`Role`,e6=`Roles`,t6=`Status`,Zue=`SecretAccessKey`,Que=`ServiceAccessNotEnabledException`,$ue=`ServiceFailureException`,ede=`ServiceNotSupportedException`,tde=`Scope`,n6=`Tags`,nde=`Tag`,rde=`UpdateAccessKey`,ide=`UpdateAccessKeyRequest`,ade=`UpdateDate`,ode=`UnmodifiableEntityException`,sde=`UserId`,r6=`UserName`,cde=`UnrecognizedPublicKeyEncodingException`,i6=`User`,lde=`Users`,a6=`VersionId`,ude=`Value`,dde=`accessKeyMetadataListType`,fde=`accessKeySecretType`,pde=`attachedPoliciesListType`,R=`awsQueryError`,z=`client`,B=`error`,V=`httpError`,mde=`instanceProfileListType`,H=`message`,hde=`policyListType`,gde=`roleListType`,o6=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,s6=`server`,_de=`tagListType`,vde=`userListType`,U=`com.amazonaws.iam`,c6=se.for(o6),yde=[-3,o6,`IAMServiceException`,0,[],[]];c6.registerError(yde,L);var W=se.for(U),bde=[-3,U,Nce,{[B]:z,[V]:400},[B3],[0]];W.registerError(bde,ece);var xde=[-3,U,Gce,{[B]:z,[V]:400},[B3],[0]];W.registerError(xde,vce);var Sde=[-3,U,Yce,{[R]:[`ConcurrentModification`,409],[B]:z,[V]:409},[H],[0]];W.registerError(Sde,Zse);var Cde=[-3,U,ele,{[R]:[`ReportExpired`,410],[B]:z,[V]:410},[H],[0]];W.registerError(Cde,xce);var wde=[-3,U,tle,{[R]:[`ReportNotPresent`,410],[B]:z,[V]:410},[H],[0]];W.registerError(wde,Sce);var Tde=[-3,U,nle,{[R]:[`ReportInProgress`,404],[B]:z,[V]:404},[H],[0]];W.registerError(Tde,Cce);var Ede=[-3,U,ule,{[R]:[`DeleteConflict`,409],[B]:z,[V]:409},[H],[0]];W.registerError(Ede,fce);var Dde=[-3,U,dle,{[R]:[`DuplicateCertificate`,409],[B]:z,[V]:409},[H],[0]];W.registerError(Dde,Oce);var Ode=[-3,U,ble,{[R]:[`DuplicateSSHPublicKey`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Ode,Ace);var kde=[-3,U,Dle,{[R]:[`EntityAlreadyExists`,409],[B]:z,[V]:409},[H],[0]];W.registerError(kde,rce);var Ade=[-3,U,Ole,{[R]:[`EntityTemporarilyUnmodifiable`,409],[B]:z,[V]:409},[H],[0]];W.registerError(Ade,oce);var jde=[-3,U,kle,{[R]:[`FeatureDisabled`,404],[B]:z,[V]:404},[H],[0]];W.registerError(jde,gce);var Mde=[-3,U,Ale,{[R]:[`FeatureEnabled`,409],[B]:z,[V]:409},[H],[0]];W.registerError(Mde,yce);var Nde=[-3,U,qle,{[R]:[`InvalidAuthenticationCode`,403],[B]:z,[V]:403},[H],[0]];W.registerError(Nde,_ce);var Pde=[-3,U,Jle,{[R]:[`InvalidCertificate`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Pde,kce);var Fde=[-3,U,Xle,{[R]:[`InvalidInput`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Fde,tce);var Ide=[-3,U,Qle,{[R]:[`InvalidPublicKey`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Ide,jce);var Lde=[-3,U,$le,{[R]:[`InvalidUserType`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Lde,sce);var Rde=[-3,U,tue,{[R]:[`KeyPairMismatch`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Rde,Ece);var zde=[-3,U,due,{[R]:[`LimitExceeded`,409],[B]:z,[V]:409},[H],[0]];W.registerError(zde,nce);var Bde=[-3,U,Oue,{[R]:[`MalformedCertificate`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Bde,Dce);var Vde=[-3,U,kue,{[R]:[`MalformedPolicyDocument`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Vde,uce);var Hde=[-3,U,Aue,{[R]:[`NoSuchEntity`,404],[B]:z,[V]:404},[H],[0]];W.registerError(Hde,Qse);var Ude=[-3,U,Mue,{[R]:[`OpenIdIdpCommunicationError`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Ude,lce);var Wde=[-3,U,Nue,{[B]:z,[V]:400},[B3],[0]];W.registerError(Wde,pce);var Gde=[-3,U,Pue,{[B]:z,[V]:400},[B3],[0]];W.registerError(Gde,mce);var Kde=[-3,U,Uue,{[R]:[`PasswordPolicyViolation`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Kde,cce);var qde=[-3,U,zue,{[R]:[`PolicyEvaluation`,500],[B]:s6,[V]:500},[H],[0]];W.registerError(qde,Tce);var Jde=[-3,U,Hue,{[R]:[`PolicyNotAttachable`,400],[B]:z,[V]:400},[H],[0]];W.registerError(Jde,ace);var Yde=[-3,U,que,{[R]:[`ReportGenerationLimitExceeded`,409],[B]:z,[V]:409},[H],[0]];W.registerError(Yde,bce);var Xde=[-3,U,Que,{[B]:z,[V]:400},[B3],[0]];W.registerError(Xde,hce);var Zde=[-3,U,$ue,{[R]:[`ServiceFailure`,500],[B]:s6,[V]:500},[H],[0]];W.registerError(Zde,$se);var Qde=[-3,U,ede,{[R]:[`NotSupportedService`,404],[B]:z,[V]:404},[H],[0]];W.registerError(Qde,dce);var $de=[-3,U,ode,{[R]:[`UnmodifiableEntity`,400],[B]:z,[V]:400},[H],[0]];W.registerError($de,ice);var efe=[-3,U,cde,{[R]:[`UnrecognizedPublicKeyEncoding`,400],[B]:z,[V]:400},[H],[0]];W.registerError(efe,wce);var tfe=[c6,W],nfe=[0,U,fde,8,0],rfe=[3,U,k3,0,[r6,A3,t6,Zue,P3],[0,0,0,[()=>nfe,0],4],4],ife=[3,U,j3,0,[r6,A3,t6,P3],[0,0,0,4]],afe=[3,U,zce,0,[L3,Q3],[0,0],2],l6=[3,U,Fce,0,[Iue,Fue],[0,0]],ofe=[3,U,Pce,0,[K3,W3],[0,0]],sfe=[3,U,Lce,0,[Q3,W3],[0,0],2],cfe=[3,U,Vce,0,[r6,W3],[0,0],2],lfe=[3,U,Uce,0,[r6],[0]],ufe=[3,U,Wce,0,[k3],[[()=>rfe,0]],1],dfe=[3,U,qce,0,[L3,Y3,n6],[0,0,()=>v6],1],ffe=[3,U,Jce,0,[I3],[()=>u6],1],pfe=[3,U,Xce,0,[K3,Rue,Y3,F3,n6],[0,0,0,0,()=>v6],2],mfe=[3,U,Zce,0,[X3],[()=>d6]],hfe=[3,U,rle,0,[Q3,N3,Y3,F3,H3,G3,n6],[0,0,0,0,1,0,()=>v6],2],gfe=[3,U,ile,0,[$3],[()=>f6],1],_fe=[3,U,ole,0,[r6,Y3,G3,n6],[0,0,0,()=>v6],1],vfe=[3,U,sle,0,[i6],[()=>p6]],yfe=[3,U,lle,0,[A3,r6],[0,0],1],bfe=[3,U,ple,0,[L3],[0],1],xfe=[3,U,mle,0,[W3],[0],1],Sfe=[3,U,vle,0,[Q3],[0],1],Cfe=[3,U,wle,0,[r6],[0],1],wfe=[3,U,gle,0,[Q3,W3],[0,0],2],Tfe=[3,U,Sle,0,[r6,W3],[0,0],2],Efe=[3,U,Mle,0,[L3],[0],1],Dfe=[3,U,Nle,0,[I3],[()=>u6],1],Ofe=[3,U,Fle,0,[W3],[0],1],kfe=[3,U,Ile,0,[X3],[()=>d6]],Afe=[3,U,Rle,0,[W3,a6],[0,0],2],jfe=[3,U,zle,0,[J3],[()=>Qfe]],Mfe=[3,U,Vle,0,[Q3],[0],1],Nfe=[3,U,Hle,0,[$3],[()=>f6],1],Pfe=[3,U,Wle,0,[r6],[0]],Ffe=[3,U,Gle,0,[i6],[()=>p6],1],u6=[3,U,I3,0,[Y3,L3,Zle,O3,P3,e6,n6],[0,0,0,0,4,()=>_6,()=>v6],6],Ife=[3,U,rue,0,[r6,U3,V3],[0,0,1]],Lfe=[3,U,iue,0,[j3,z3,U3],[()=>rpe,2,0],1],Rfe=[3,U,oue,0,[Q3,q3,U3,V3],[0,0,0,1],1],zfe=[3,U,sue,0,[M3,z3,U3],[()=>h6,2,0]],Bfe=[3,U,lue,0,[r6,q3,U3,V3],[0,0,0,1],1],Vfe=[3,U,uue,0,[M3,z3,U3],[()=>h6,2,0]],Hfe=[3,U,mue,0,[Q3,U3,V3],[0,0,1],1],Ufe=[3,U,hue,0,[R3,z3,U3],[()=>g6,2,0],1],Wfe=[3,U,gue,0,[q3,U3,V3],[0,0,1]],Gfe=[3,U,_ue,0,[R3,z3,U3],[()=>g6,2,0],1],Kfe=[3,U,vue,0,[tde,jue,q3,Wue,U3,V3],[0,2,0,0,0,1]],qfe=[3,U,yue,0,[Gue,z3,U3],[()=>ipe,2,0]],Jfe=[3,U,Sue,0,[q3,U3,V3],[0,0,1]],Yfe=[3,U,Cue,0,[e6,z3,U3],[()=>_6,2,0],1],Xfe=[3,U,Eue,0,[q3,U3,V3],[0,0,1]],Zfe=[3,U,Due,0,[lde,z3,U3],[()=>ape,2,0],1],d6=[3,U,X3,0,[K3,Bue,O3,Y3,Tle,Mce,Lue,Kle,F3,P3,ade,n6],[0,0,0,0,0,1,1,2,0,4,4,()=>v6]],Qfe=[3,U,J3,0,[Ele,a6,Yle,P3],[0,0,2,4]],$fe=[3,U,Xue,0,[L3,Q3],[0,0],2],f6=[3,U,$3,0,[Y3,Q3,Jue,O3,P3,N3,F3,H3,G3,n6,Z3],[0,0,0,0,4,0,0,1,()=>l6,()=>v6,()=>epe],5],epe=[3,U,Z3,0,[Tue,Kue],[4,0]],tpe=[3,U,nde,0,[eue,ude],[0,0],2],npe=[3,U,ide,0,[A3,t6,r6],[0,0,0],2],p6=[3,U,i6,0,[Y3,r6,sde,O3,P3,Vue,G3,n6],[0,0,0,0,4,4,()=>l6,()=>v6],5],m6=`unit`,rpe=[1,U,dde,0,()=>ife],h6=[1,U,pde,0,()=>ofe],g6=[1,U,mde,0,()=>u6],ipe=[1,U,hde,0,()=>d6],_6=[1,U,gde,0,()=>f6],v6=[1,U,_de,0,()=>tpe],ape=[1,U,vde,0,()=>p6],ope=[9,U,Rce,0,()=>afe,()=>m6],spe=[9,U,Ice,0,()=>sfe,()=>m6],cpe=[9,U,Bce,0,()=>cfe,()=>m6],lpe=[9,U,Hce,0,()=>lfe,()=>ufe],upe=[9,U,Kce,0,()=>dfe,()=>ffe],dpe=[9,U,Qce,0,()=>pfe,()=>mfe],fpe=[9,U,$ce,0,()=>hfe,()=>gfe],ppe=[9,U,ale,0,()=>_fe,()=>vfe],mpe=[9,U,cle,0,()=>yfe,()=>m6],hpe=[9,U,fle,0,()=>bfe,()=>m6],gpe=[9,U,hle,0,()=>xfe,()=>m6],_pe=[9,U,yle,0,()=>Sfe,()=>m6],vpe=[9,U,xle,0,()=>Cfe,()=>m6],ype=[9,U,_le,0,()=>wfe,()=>m6],bpe=[9,U,Cle,0,()=>Tfe,()=>m6],xpe=[9,U,jle,0,()=>Efe,()=>Dfe],Spe=[9,U,Ple,0,()=>Ofe,()=>kfe],Cpe=[9,U,Lle,0,()=>Afe,()=>jfe],wpe=[9,U,Ble,0,()=>Mfe,()=>Nfe],Tpe=[9,U,Ule,0,()=>Pfe,()=>Ffe],Epe=[9,U,nue,0,()=>Ife,()=>Lfe],Dpe=[9,U,aue,0,()=>Rfe,()=>zfe],Ope=[9,U,cue,0,()=>Bfe,()=>Vfe],kpe=[9,U,fue,0,()=>Wfe,()=>Gfe],Ape=[9,U,pue,0,()=>Hfe,()=>Ufe],jpe=[9,U,bue,0,()=>Kfe,()=>qfe],Mpe=[9,U,xue,0,()=>Jfe,()=>Yfe],Npe=[9,U,wue,0,()=>Xfe,()=>Zfe],Ppe=[9,U,Yue,0,()=>$fe,()=>m6],Fpe=[9,U,rde,0,()=>npe,()=>m6],Ipe=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Xse,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Vse,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie}],logger:e?.logger??new ze,protocol:e?.protocol??Ke,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:tfe,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),Lpe=e=>{let t=xe(e),n=()=>t().then(Ve),r=Ipe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:Gse.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Rpe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},zpe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Bpe=(e,t)=>{let n=Object.assign(Xe(e),lt(e),re(e),Rpe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),zpe(n))},Vpe=class extends we{config;constructor(...[e]){let t=Lpe(e||{});super(t),this.initConfig=t;let n=Bpe(Hse(Ue(_e(Te(Le(Oe(Use(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:zse,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ae(this.config))}destroy(){super.destroy()}},y6={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},Hpe=y6.WHEN_SUPPORTED,Upe={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},Wpe=y6.WHEN_SUPPORTED,b6;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(b6||={});var Gpe;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(Gpe||={});var Kpe=b6.CRC32,qpe=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:be(t??Hpe),responseChecksumValidation:be(n??Wpe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},Jpe=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},Ype={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function Xpe(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}var Zpe={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},Qpe=e=>({applyToStack:t=>{t.add(Xpe(e),Zpe),t.addRelativeTo(Jpe(e),Ype)}}),$pe=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new x6(Promise.resolve(e)))})),t)):i.set(r,new x6(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: +`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}},tme=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:ee}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new eme(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:ee??2097152})},nme=`sigv4-s3express`,rme=`x-amz-s3session-token`,ime=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===nme;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(it(n,`S3_EXPRESS_BUCKET`,`J`),n.isS3ExpressBucket=!0),i){let t=r.input.Bucket;if(t){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});n.s3ExpressIdentity=i,Ee.isInstance(r.request)&&i.sessionToken&&(r.request.headers[rme]=i.sessionToken)}}}return t(r)},ame={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},ome=e=>({applyToStack:t=>{t.add(ime(e),ame)}}),sme=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},cme=e=>e=>{throw e},lme=(e,t)=>{},ume=e=>(t,n)=>async r=>{if(!Ee.isInstance(r.request))return t(r);let i=fe(n).selectedHttpAuthScheme;if(!i)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:a={}},identity:o,signer:s}=i,c;c=n.s3ExpressIdentity?await sme(n.s3ExpressIdentity,a,r.request,await e.signer()):await s.sign(r.request,o,a);let l=await t({...r,request:c}).catch((s.errorHandler||cme)(a));return(s.successHandler||lme)(l.response,a),l},dme=e=>({applyToStack:t=>{t.addRelativeTo(ume(e),Pe)}});function fme(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var pme={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},mme=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!Se.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await hme(s,e);if(a.body=fme(c),c.length===0&&pme[n.commandName]){let e=Error(`S3 aborted request`);throw e.$metadata={httpStatusCode:503},e.name=`InternalError`,e}let l=e.utf8Encoder(c.subarray(c.length-16));return l&&l.endsWith(``)&&(a.statusCode=503),i},hme=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),gme={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},S6=e=>({applyToStack:t=>{t.addRelativeTo(mme(e),gme)}});function _me(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}var vme={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function yme({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!MI(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var bme={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},xme=e=>({applyToStack:t=>{t.add(yme(e),bme),t.addRelativeTo(_me(e),vme)}}),Sme=class extends on{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=d.of(e.input),a=i.getSchema(),o=0,s=a[6]??0;if(t&&typeof t==`object`)for(let[e,n]of i.structIterator()){if(++o>s)break;if(e===`Bucket`){if(!t.Bucket&&n.getMergedTraits().httpLabel)throw Error(`No value provided for input HTTP label: Bucket.`);break}}return r}};function Cme(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&Ee.isInstance(r)&&r.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(r.headers?.[`content-length`])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(r.headers.Expect=`100-continue`)}return t({...n,request:r})}}var wme={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},Tme=e=>({applyToStack:t=>{t.add(Cme(e),wme)}}),G=`ref`,K=`argv`,C6=`backend`,w6=`authSchemes`,T6=`disableDoubleEncoding`,E6=`signingName`,D6=`signingRegion`,O6=`signingRegionSet`,q=-1,J=!0,k6=!1,A6=`isSet`,j6=`booleanEquals`,Y=`stringEquals`,M6=`coalesce`,N6=`substring`,P6=``,F6=`aws.partition`,I6=`partitionResult`,L6=`accessPointSuffix`,R6=`regionPrefix`,z6=e=>`outpostId_ssa_`+e+P6,B6=`hardwareType`,V6=`ite`,H6=`isValidHostLabel`,U6=`sigv4`,W6=`aws.isVirtualHostableS3Bucket`,G6=`url`,K6=`getAttr`,q6=`bucketArn`,J6=`--`,Y6=`arnType`,X6=`accesspoint`,Z6=e=>`accessPointName_ssa_`+e+P6,Q6=`s3-object-lambda`,$6=`s3-outposts`,e8=`bucketPartition`,t8=`us-east-1`,n8=`outpostType`,r8=`name`,i8=`s3`,a8=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,o8=`{url#scheme}://{url#authority}{url#path}`,s8=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,c8=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,l8=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,u8=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,d8=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",f8=`sigv4a`,p8=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,m8=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,h8=`https://s3.{partitionResult#dnsSuffix}`,g8={[G]:`UseFIPS`},_8={[G]:`UseDualStack`},v8={[G]:`Bucket`},y8={fn:K6,[K]:[{[G]:I6},r8]},b8={[G]:G6},x8={[G]:`Region`},S8={[G]:q6},C8={[G]:Y6},w8={[G]:`accessPointName_ssa_1`},T8={fn:K6,[K]:[S8,`region`]},E8={[G]:B6},D8={fn:K6,[K]:[S8,`service`]},O8={fn:K6,[K]:[S8,`accountId`]},k8={[C6]:`S3Express`,[w6]:[{[T6]:!0,[r8]:`{_s3e_auth}`,[E6]:`s3express`,[D6]:`{Region}`}]},A8={[C6]:`S3Express`,[w6]:[{[T6]:!0,[r8]:U6,[E6]:`s3express`,[D6]:`{Region}`}]},j8={[w6]:[{[T6]:!0,[r8]:f8,[E6]:$6,[O6]:[`*`]},{[T6]:!0,[r8]:U6,[E6]:$6,[D6]:`{Region}`}]},M8={[w6]:[{[T6]:!0,[r8]:U6,[E6]:i8,[D6]:t8}]},X={[w6]:[{[T6]:!0,[r8]:U6,[E6]:i8,[D6]:`{Region}`}]},N8={[w6]:[{[T6]:!0,[r8]:U6,[E6]:Q6,[D6]:`{bucketArn#region}`}]},P8={[w6]:[{[T6]:!0,[r8]:U6,[E6]:i8,[D6]:`{bucketArn#region}`}]},F8={[w6]:[{[T6]:!0,[r8]:f8,[E6]:$6,[O6]:[`*`]},{[T6]:!0,[r8]:U6,[E6]:$6,[D6]:`{bucketArn#region}`}]},I8={[w6]:[{[T6]:!0,[r8]:U6,[E6]:Q6,[D6]:`{Region}`}]},L8=[x8],R8=[{[G]:`Endpoint`}],z8=[v8],B8=[v8,0,7,!0],V8=[S8,`resourceId[1]`],Eme=[`*`],H8={conditions:[[A6,L8],[j6,[{[G]:`Accelerate`},J]],[j6,[g8,J]],[j6,[_8,J]],[A6,R8],[A6,z8],[Y,[{fn:M6,[K]:[{fn:N6,[K]:[v8,0,6,J]},P6]},`--x-s3`]],[Y,[{fn:M6,[K]:[{fn:N6,[K]:B8},P6]},`--xa-s3`]],[F6,L8,I6],[N6,B8,L6],[Y,[{[G]:L6},`--op-s3`]],[N6,[v8,8,12,J],R6],[N6,[v8,32,49,J],z6(2)],[N6,[v8,49,50,J],B6],[j6,[{[G]:`ForcePathStyle`},J]],[Y,[y8,`aws-cn`]],[V6,[_8,`.dualstack`,P6],`_s3e_ds`],[H6,[{[G]:z6(2)},k6]],[V6,[g8,`-fips`,P6],`_s3e_fips`],[V6,[{fn:M6,[K]:[{[G]:`DisableS3ExpressSessionAuth`},k6]},U6,`sigv4-s3express`],`_s3e_auth`],[W6,[v8,k6]],[`parseURL`,R8,G6],[j6,[{fn:M6,[K]:[{[G]:`UseS3ExpressControlEndpoint`},k6]},J]],[W6,[v8,J]],[Y,[{fn:K6,[K]:[b8,`scheme`]},`http`]],[H6,[x8,k6]],[`aws.parseArn`,z8,q6],[K6,[{fn:`split`,[K]:[v8,J6,0]},`[-2]`],`s3expressAvailabilityZoneId`],[Y,[{fn:M6,[K]:[{fn:N6,[K]:[v8,0,4,k6]},P6]},`arn:`]],[Y,[{fn:M6,[K]:[{fn:N6,[K]:[v8,16,18,J]},P6]},J6]],[j6,[{fn:K6,[K]:[b8,`isIp`]},J]],[Y,[{fn:M6,[K]:[{fn:N6,[K]:[v8,21,23,J]},P6]},J6]],[Y,[{fn:M6,[K]:[{fn:N6,[K]:[v8,27,29,J]},P6]},J6]],[Y,[{[G]:R6},`beta`]],[`uriEncode`,z8,`uri_encoded_bucket`],[H6,[x8,J]],[j6,[{fn:M6,[K]:[{[G]:`UseObjectLambdaEndpoint`},k6]},J]],[K6,[S8,`resourceId[0]`],Y6],[Y,[C8,P6]],[Y,[C8,X6]],[K6,V8,Z6(1)],[Y,[w8,P6]],[Y,[T8,P6]],[Y,[{fn:M6,[K]:[{fn:N6,[K]:[v8,14,16,J]},P6]},J6]],[Y,[E8,`e`]],[Y,[E8,`o`]],[Y,[x8,`aws-global`]],[Y,[{fn:M6,[K]:[{fn:N6,[K]:[v8,19,21,J]},P6]},J6]],[Y,[D8,Q6]],[j6,[{fn:M6,[K]:[{[G]:`DisableAccessPoints`},k6]},J]],[Y,[D8,$6]],[F6,[T8],e8],[H6,[w8,J]],[Y,[{fn:M6,[K]:[{fn:N6,[K]:[v8,26,28,J]},P6]},J6]],[Y,[{fn:M6,[K]:[{fn:N6,[K]:[v8,15,17,J]},P6]},J6]],[K6,[S8,`resourceId[4]`]],[Y,[{fn:M6,[K]:[{fn:N6,[K]:[v8,20,22,J]},P6]},J6]],[j6,[{[G]:`UseGlobalEndpoint`},J]],[Y,[x8,t8]],[K6,V8,z6(1)],[j6,[{fn:M6,[K]:[{[G]:`UseArnRegion`},J]},J]],[H6,[{[G]:z6(1)},k6]],[K6,[S8,`resourceId[2]`],n8],[Y,[x8,T8]],[Y,[{fn:K6,[K]:[{[G]:e8},r8]},y8]],[j6,[{[G]:`DisableMultiRegionAccessPoints`},J]],[H6,[T8,J]],[Y,[{fn:K6,[K]:[S8,`partition`]},y8]],[Y,[O8,P6]],[Y,[D8,i8]],[H6,[O8,k6]],[K6,[S8,`resourceId[3]`],Z6(2)],[H6,[w8,k6]],[Y,[{[G]:n8},X6]],[H6,[{[G]:Z6(2)},k6]]],results:[[q],[q,`Accelerate cannot be used with FIPS`],[q,`Cannot set dual-stack in combination with a custom endpoint.`],[q,`A custom endpoint cannot be combined with FIPS`],[q,`A custom endpoint cannot be combined with S3 Accelerate`],[q,`Partition does not support FIPS`],[q,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,k8],[a8,k8],[q,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,A8],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,k8],[q,`Unrecognized S3Express bucket name format.`],[o8,k8],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,A8],[q,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,j8],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,j8],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,j8],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,j8],[q,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[q,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[q,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[q,"Custom endpoint `{Endpoint}` was not a valid URI"],[q,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,M8],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,X],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,M8],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,X],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,M8],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,X],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,M8],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,X],[s8,M8],[a8,M8],[s8,X],[a8,X],[c8,M8],[c8,X],[l8,M8],[l8,X],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,X],[q,`Invalid region: region was not a valid DNS name.`],[q,`S3 Object Lambda does not support Dual-stack`],[q,`S3 Object Lambda does not support S3 Accelerate`],[q,`Access points are not supported for this operation`],[q,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[q,`Invalid ARN: Missing account id`],[u8(1),N8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,N8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,N8],[q,d8(1)],[q,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[q,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[q,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[q,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[q,`Invalid ARN: bucket ARN is missing a region`],[q,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[q,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[q,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,P8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,P8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,P8],[u8(1),P8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,P8],[q,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[q,`S3 MRAP does not support dual-stack`],[q,`S3 MRAP does not support FIPS`],[q,`S3 MRAP does not support S3 Accelerate`],[q,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[w6]:[{[T6]:J,name:f8,[E6]:i8,[O6]:Eme}]}],[q,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[q,`Invalid Access Point Name`],[q,`S3 Outposts does not support Dual-stack`],[q,`S3 Outposts does not support FIPS`],[q,`S3 Outposts does not support S3 Accelerate`],[q,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,F8],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,F8],[q,d8(2)],[q,"Expected an outpost type `accesspoint`, found {outpostType}"],[q,`Invalid ARN: expected an access point name`],[q,`Invalid ARN: Expected a 4-component resource`],[q,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[q,`Invalid ARN: The Outpost Id was not set`],[q,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[q,`Invalid ARN: No ARN type specified`],[q,"Invalid ARN: `{Bucket}` was not a valid ARN"],[q,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,M8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,X],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,M8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,X],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,M8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,X],[p8,M8],[p8,X],[m8,M8],[m8,X],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,X],[q,`Path-style addressing cannot be used with S3 Accelerate`],[o8,I8],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,I8],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,I8],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,M8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,X],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,M8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,X],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,M8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,X],[o8,M8],[o8,X],[h8,M8],[h8,X],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,X],[q,`A region must be set when sending requests to S3.`]]},Dme=2,Ome=new Int32Array([-1,1,-1,0,3,100000115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,100000115,16,10,13,18,11,13,19,12,13,22,100000014,13,35,14,100000042,36,100000103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,100000086,38,100000086,29,39,47,30,48,100000058,31,50,32,100000085,51,33,136,55,100000076,34,59,35,100000084,60,39,36,61,37,100000083,62,38,146,63,41,100000046,61,40,100000083,62,41,150,64,42,100000054,66,43,100000053,70,44,100000052,71,45,100000081,73,46,100000080,74,100000078,100000079,40,48,100000057,41,100000057,49,42,185,50,48,62,51,49,100000045,52,51,53,526,60,56,54,62,100000055,55,63,57,100000046,62,100000055,57,64,58,100000054,66,59,100000053,69,60,100000065,70,61,100000052,72,100000064,100000051,49,100000045,63,51,64,526,60,67,65,62,100000055,66,63,68,100000046,62,100000055,68,64,69,100000054,66,70,100000053,68,100000047,71,70,72,100000052,72,100000050,100000051,25,74,100000042,46,100000039,75,57,76,100000041,58,100000040,100000041,26,100000088,78,28,100000087,79,34,82,80,35,81,545,36,100000103,100000115,46,100000097,83,57,84,100000099,58,100000098,100000099,5,101,86,8,87,100000115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,100000014,95,35,96,100000042,36,100000103,100000042,22,100000013,98,35,99,100000042,36,100000101,100,46,100000110,100000111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,100000023,26,107,502,37,108,100000086,38,100000086,109,39,112,110,48,100000058,111,50,136,100000085,40,113,100000057,41,100000057,114,42,115,500,48,100000056,116,52,117,100000072,65,100000069,100000072,21,501,100000023,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,100000023,23,128,129,24,189,129,26,130,197,37,131,100000086,38,100000086,132,39,159,133,48,100000058,134,50,135,100000085,51,141,136,55,100000076,137,59,138,100000084,60,100000083,139,61,140,100000083,63,100000083,100000046,55,100000076,142,59,143,100000084,60,148,144,61,145,100000083,62,147,146,63,150,100000046,63,153,100000046,61,149,100000083,62,153,150,64,151,100000054,66,152,100000053,70,100000082,100000052,64,154,100000054,66,155,100000053,70,156,100000052,71,157,100000081,73,158,100000080,74,100000077,100000079,40,160,100000057,41,100000057,161,42,185,162,48,174,163,49,100000045,164,51,165,526,60,168,166,62,100000055,167,63,169,100000046,62,100000055,169,64,170,100000054,66,171,100000053,69,172,100000065,70,173,100000052,72,100000063,100000051,49,100000045,175,51,176,526,60,179,177,62,100000055,178,63,180,100000046,62,100000055,180,64,181,100000054,66,182,100000053,68,100000047,183,70,184,100000052,72,100000048,100000051,48,100000056,186,52,187,100000072,65,100000069,188,67,100000070,100000071,25,100000036,100000042,21,191,100000023,25,192,100000042,30,194,193,46,100000034,100000036,46,100000033,100000035,21,196,100000023,26,100000088,197,28,100000087,198,34,201,199,35,200,545,36,100000101,100000115,46,100000095,100000096,17,203,100000022,20,204,100000021,21,205,550,33,206,550,44,100000016,207,45,100000018,100000020,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,100000009,20,217,227,21,231,100000009,16,219,220,18,223,220,19,221,224,20,222,227,21,231,100000012,19,226,224,20,225,100000009,21,100000009,100000012,20,230,227,21,228,100000009,30,229,100000009,34,100000007,100000009,21,231,415,30,232,100000008,34,100000007,100000008,4,100000002,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,100000086,38,100000086,248,39,249,518,40,250,100000057,41,100000057,251,42,538,252,48,100000043,253,49,100000045,254,51,255,526,60,258,256,62,100000055,257,63,259,100000046,62,100000055,259,64,260,100000054,66,261,100000053,69,262,100000065,70,263,100000052,72,100000062,100000051,25,265,100000042,46,100000031,100000032,26,100000088,267,28,100000087,268,34,269,544,46,100000093,100000094,8,397,100000009,8,407,100000009,3,346,273,4,100000003,274,5,284,275,8,276,100000115,15,100000005,277,16,278,281,18,279,281,19,280,281,22,100000014,281,35,282,100000042,36,100000102,283,46,100000106,100000107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,100000086,38,100000086,291,39,292,307,40,293,100000057,41,100000057,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,100000005,302,20,337,303,26,304,341,37,305,100000086,38,100000086,306,39,309,307,48,100000058,308,50,100000074,100000085,40,310,100000057,41,100000057,311,42,335,312,48,324,313,49,100000045,314,51,315,526,60,318,316,62,100000055,317,63,319,100000046,62,100000055,319,64,320,100000054,66,321,100000053,69,322,100000065,70,323,100000052,72,100000061,100000051,49,100000045,325,51,326,526,60,329,327,62,100000055,328,63,330,100000046,62,100000055,330,64,331,100000054,66,332,100000053,68,100000047,333,70,334,100000052,72,100000049,100000051,48,100000056,336,52,100000067,100000072,25,338,100000042,46,100000027,100000028,15,100000005,340,26,100000088,341,28,100000087,342,34,345,343,35,344,545,36,100000102,100000115,46,100000091,100000092,4,100000002,347,5,357,348,8,349,100000115,15,100000005,350,16,351,354,18,352,354,19,353,354,22,100000014,354,35,355,100000042,36,100000043,356,46,100000104,100000105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,100000005,367,20,387,368,26,369,391,37,370,100000086,38,100000086,371,39,372,518,40,373,100000057,41,100000057,374,42,538,375,48,100000043,376,49,100000045,377,51,378,526,60,381,379,62,100000055,380,63,382,100000046,62,100000055,382,64,383,100000054,66,384,100000053,69,385,100000065,70,386,100000052,72,100000060,100000051,25,388,100000042,46,100000025,100000026,15,100000005,390,26,100000088,391,28,100000087,392,34,393,544,46,100000089,100000090,15,100000005,547,8,396,100000009,15,100000005,397,16,398,410,18,399,410,19,400,410,20,401,100000009,27,402,100000012,29,100000011,403,31,100000011,404,32,100000011,422,8,406,100000009,15,100000005,407,16,408,410,18,409,410,19,411,410,20,100000012,100000009,20,414,412,22,413,100000009,34,100000010,100000009,22,416,415,27,419,100000012,27,418,417,34,100000010,100000012,34,100000010,419,43,100000011,420,47,100000011,421,53,100000011,422,54,100000011,423,56,100000011,100000012,2,100000001,425,3,478,426,4,100000004,427,5,438,428,8,429,100000115,16,430,433,18,431,433,19,432,433,22,100000014,433,35,434,100000042,36,100000044,435,46,100000112,436,57,437,100000114,58,100000113,100000114,6,100000006,439,7,100000006,440,8,450,441,14,501,442,26,443,502,37,444,100000086,38,100000086,445,39,446,465,40,447,100000057,41,100000057,448,42,471,449,48,100000044,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,100000042,46,100000037,100000038,20,540,461,26,462,474,37,463,100000086,38,100000086,464,39,467,465,48,100000058,466,50,100000075,100000085,40,468,100000057,41,100000057,469,42,471,470,48,100000044,524,48,100000044,472,52,100000068,100000072,26,100000088,474,28,100000087,475,34,100000100,476,35,477,545,36,100000044,100000115,4,100000002,479,5,488,480,8,481,100000115,16,482,485,18,483,485,19,484,485,22,100000014,485,35,486,100000042,36,100000043,487,46,100000108,100000109,6,100000006,489,7,100000006,490,8,503,491,14,501,492,26,493,502,37,494,100000086,38,100000086,495,39,496,518,40,497,100000057,41,100000057,498,42,538,499,48,100000043,500,49,100000045,526,26,100000088,502,28,100000087,100000115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,100000042,46,100000029,100000030,20,540,514,26,515,542,37,516,100000086,38,100000086,517,39,520,518,48,100000058,519,50,100000073,100000085,40,521,100000057,41,100000057,522,42,538,523,48,100000043,524,49,100000045,525,51,529,526,60,100000055,527,62,100000055,528,63,100000055,100000046,60,532,530,62,100000055,531,63,533,100000046,62,100000055,533,64,534,100000054,66,535,100000053,69,536,100000065,70,537,100000052,72,100000059,100000051,48,100000043,539,52,100000066,100000072,25,100000024,100000042,26,100000088,542,28,100000087,543,34,100000100,544,35,546,545,36,100000042,100000115,36,100000043,100000115,17,548,100000022,20,549,100000021,33,552,550,44,100000017,551,45,100000019,100000020,44,100000015,553,45,100000015,100000020]),kme=Je.from(Ome,Dme,H8.conditions,H8.results),Ame=new et({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),U8=(e,t={})=>Ame.get(e,()=>Ge(kme,{endpointParams:e,logger:t.logger}));rt.aws=de;var jme=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=fe(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await qe(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function W8(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function G8(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Mme=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(je.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let ee=n[l];if(!ee)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let te=ee(r);te.schemeId=l,te.signingProperties={...te.signingProperties||{},...s,...o},a.push(te)}return a})(U8,e=>{let t=[];switch(e.operation){default:t.push(W8(e)),t.push(G8(e))}return t},{"aws.auth#sigv4":W8,"aws.auth#sigv4a":G8}),Nme=e=>{let t=Ce(le(e));return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},Pme=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:`s3`,clientContextParams:e.clientContextParams??{}}),K8={ForcePathStyle:{type:`clientContextParams`,name:`forcePathStyle`},UseArnRegion:{type:`clientContextParams`,name:`useArnRegion`},DisableMultiRegionAccessPoints:{type:`clientContextParams`,name:`disableMultiregionAccessPoints`},Accelerate:{type:`clientContextParams`,name:`useAccelerateEndpoint`},DisableS3ExpressSessionAuth:{type:`clientContextParams`,name:`disableS3ExpressSessionAuth`},UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},q8=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Fme=class e extends q8{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ime=class e extends q8{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Lme=class e extends q8{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Rme=class e extends q8{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zme=class e extends q8{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bme=class e extends q8{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Vme=class e extends q8{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},Hme=class e extends q8{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ume=class e extends q8{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Wme=class e extends q8{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Gme=class e extends q8{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Kme=class e extends q8{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qme=class e extends q8{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Jme=class e extends q8{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Yme=class e extends q8{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},J8=`ACL`,Xme=`AccessDenied`,Zme=`AbortDate`,Y8=`AccessKeyId`,Qme=`AbortMultipartUpload`,$me=`AbortMultipartUploadOutput`,ehe=`AbortMultipartUploadRequest`,the=`AcceptRanges`,nhe=`AbortRuleId`,rhe=`AccessTier`,X8=`Bucket`,Z8=`BucketArn`,ihe=`BucketAlreadyExists`,ahe=`BucketAlreadyOwnedByYou`,ohe=`BypassGovernanceRetention`,she=`BucketInfo`,Q8=`BucketKeyEnabled`,che=`BucketNamespace`,$8=`BucketRegion`,e5=`Body`,t5=`Buckets`,n5=`ChecksumAlgorithm`,lhe=`CreateBucket`,r5=`CreateBucketConfiguration`,uhe=`CreateBucketOutput`,dhe=`CreateBucketRequest`,i5=`CacheControl`,a5=`ChecksumCRC32`,o5=`ChecksumCRC32C`,s5=`ChecksumCRC64NVME`,c5=`Cache-Control`,fhe=`CreationDate`,l5=`Content-Disposition`,u5=`ContentDisposition`,d5=`Content-Encoding`,f5=`ContentEncoding`,p5=`ContentLanguage`,m5=`Content-Language`,h5=`Content-Length`,g5=`ContentLength`,_5=`Content-MD5`,v5=`ChecksumMD5`,y5=`ContentMD5`,phe=`CompletedMultipartUpload`,mhe=`CompleteMultipartUploadOutput`,hhe=`CreateMultipartUploadOutput`,ghe=`CompleteMultipartUploadResult`,_he=`CompleteMultipartUploadRequest`,vhe=`CreateMultipartUploadRequest`,b5=`CompleteMultipartUpload`,yhe=`CreateMultipartUpload`,bhe=`ChecksumMode`,xhe=`CommonPrefix`,She=`CommonPrefixList`,Che=`CompletedPartList`,whe=`CompletedPart`,The=`CommonPrefixes`,Ehe=`ContentRange`,Dhe=`Content-Range`,x5=`ChecksumSHA1`,S5=`ChecksumSHA256`,C5=`ChecksumSHA512`,Ohe=`CreateSessionOutput`,khe=`CreateSessionResult`,Ahe=`CreateSessionRequest`,jhe=`CreateSession`,w5=`ChecksumType`,T5=`Content-Type`,E5=`ContentType`,D5=`ContinuationToken`,O5=`ChecksumXXHASH64`,k5=`ChecksumXXHASH3`,A5=`ChecksumXXHASH128`,Mhe=`Contents`,j5=`Credentials`,M5=`DeleteMarker`,Nhe=`DisplayName`,Phe=`DeleteObjectOutput`,Fhe=`DeleteObjectRequest`,Ihe=`DeleteObject`,Lhe=`DataRedundancy`,N5=`Delimiter`,P5=`Expiration`,F5=`ExpectedBucketOwner`,I5=`ExpiresString`,Rhe=`EncryptionTypeMismatch`,L5=`ETag`,R5=`EncodingType`,z5=`Expires`,zhe=`FetchOwner`,B5=`GrantFullControl`,Bhe=`GetObject`,Vhe=`GetObjectOutput`,Hhe=`GetObjectRequest`,V5=`GrantRead`,H5=`GrantReadACP`,Uhe=`GrantWrite`,U5=`GrantWriteACP`,Whe=`ID`,W5=`IfMatch`,Ghe=`IfMatchInitiatedTime`,Khe=`IfMatchLastModifiedTime`,qhe=`IfMatchSize`,Jhe=`If-Modified-Since`,Yhe=`IfModifiedSince`,Xhe=`InitiateMultipartUploadResult`,G5=`If-Match`,K5=`IfNoneMatch`,q5=`If-None-Match`,Zhe=`InvalidObjectState`,Qhe=`IdempotencyParameterMismatch`,$he=`InvalidRequest`,ege=`IsRestoreInProgress`,tge=`IsTruncated`,nge=`IfUnmodifiedSince`,rge=`If-Unmodified-Since`,ige=`InvalidWriteOffset`,J5=`Key`,age=`KeyCount`,Y5=`Location`,oge=`ListAllMyBucketsResult`,sge=`ListBuckets`,cge=`ListBucketsOutput`,lge=`ListBucketsRequest`,uge=`ListBucketResult`,dge=`LocationConstraint`,fge=`LocationInfo`,X5=`LastModified`,pge=`Last-Modified`,mge=`ListObjectsV2`,hge=`ListObjectsV2Output`,gge=`ListObjectsV2Request`,Z5=`Metadata`,_ge=`MaxBuckets`,vge=`MFA`,Q5=`MaxKeys`,yge=`MissingMeta`,bge=`MpuObjectSize`,xge=`MultipartUpload`,$5=`Name`,Sge=`NextContinuationToken`,Cge=`NotFound`,wge=`NoSuchBucket`,Tge=`NoSuchKey`,Ege=`NoSuchUpload`,e7=`Owner`,Dge=`ObjectAlreadyInActiveTierError`,Oge=`ObjectLockEnabledForBucket`,t7=`ObjectLockLegalHoldStatus`,n7=`ObjectLockMode`,r7=`ObjectLockRetainUntilDate`,kge=`ObjectList`,Age=`ObjectNotInActiveTierError`,jge=`ObjectOwnership`,Mge=`OptionalObjectAttributes`,Nge=`Object`,i7=`Prefix`,Pge=`PartsCount`,a7=`PartNumber`,Fge=`PutObject`,Ige=`PutObjectOutput`,Lge=`PutObjectRequest`,Rge=`PutObjectTagging`,zge=`PutObjectTaggingOutput`,Bge=`PutObjectTaggingRequest`,Vge=`Parts`,Hge=`Part`,o7=`RequestCharged`,Uge=`ResponseCacheControl`,Wge=`ResponseContentDisposition`,Gge=`ResponseContentEncoding`,Kge=`ResponseContentLanguage`,qge=`ResponseContentType`,Jge=`ResponseExpires`,Yge=`RestoreExpiryDate`,s7=`RequestPayer`,Xge=`ReplicationStatus`,c7=`RestoreStatus`,l7=`Range`,Zge=`Restore`,u7=`StartAfter`,d7=`SecretAccessKey`,Qge=`StreamingBlob`,f7=`StorageClass`,$ge=`SessionCredentialValue`,e_e=`SessionCredentials`,t_e=`SessionMode`,p7=`ServerSideEncryption`,m7=`SSECustomerAlgorithm`,h7=`SSECustomerKey`,g7=`SSECustomerKeyMD5`,_7=`SSEKMSEncryptionContext`,v7=`SSEKMSKeyId`,y7=`SessionToken`,b7=`Size`,n_e=`Tags`,r_e=`TagCount`,i_e=`TooManyParts`,x7=`TagSet`,S7=`Tag`,C7=`Tagging`,w7=`Type`,T7=`UploadId`,a_e=`UploadPart`,o_e=`UploadPartOutput`,s_e=`UploadPartRequest`,c_e=`Value`,E7=`VersionId`,l_e=`WriteOffsetBytes`,D7=`WebsiteRedirectLocation`,u_e=`accept-ranges`,d_e=`bucket-region`,O7=`client`,k7=`continuation-token`,f_e=`delimiter`,A7=`error`,p_e=`encoding-type`,m_e=`fetch-owner`,j7=`http`,M7=`httpChecksum`,N7=`httpError`,Z=`httpHeader`,P7=`httpPayload`,F7=`httpPrefixHeaders`,Q=`httpQuery`,h_e=`max-buckets`,g_e=`max-keys`,I7=`prefix`,L7=`partNumber`,__e=`response-cache-control`,v_e=`response-content-disposition`,y_e=`response-content-encoding`,b_e=`response-content-language`,x_e=`response-content-type`,S_e=`response-expires`,R7=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,C_e=`start-after`,w_e=`streaming`,z7=`uploadId`,B7=`versionId`,V7=`xmlFlattened`,H7=`xmlName`,U7=`x-amz-acl`,T_e=`x-amz-abort-date`,E_e=`x-amz-abort-rule-id`,D_e=`x-amz-bucket-arn`,O_e=`x-amz-bypass-governance-retention`,k_e=`x-amz-bucket-namespace`,A_e=`x-amz-bucket-object-lock-enabled`,W7=`x-amz-checksum-algorithm`,G7=`x-amz-checksum-crc32`,K7=`x-amz-checksum-crc32c`,q7=`x-amz-checksum-crc64nvme`,J7=`x-amz-checksum-md5`,j_e=`x-amz-checksum-mode`,Y7=`x-amz-checksum-sha1`,X7=`x-amz-checksum-sha256`,Z7=`x-amz-checksum-sha512`,M_e=`x-amz-create-session-mode`,Q7=`x-amz-checksum-type`,$7=`x-amz-checksum-xxhash64`,e9=`x-amz-checksum-xxhash3`,t9=`x-amz-checksum-xxhash128`,n9=`x-amz-delete-marker`,r9=`x-amz-expiration`,i9=`x-amz-expected-bucket-owner`,a9=`x-amz-grant-full-control`,o9=`x-amz-grant-read`,s9=`x-amz-grant-read-acp`,N_e=`x-amz-grant-write`,c9=`x-amz-grant-write-acp`,P_e=`x-amz-if-match-initiated-time`,F_e=`x-amz-if-match-last-modified-time`,I_e=`x-amz-if-match-size`,l9=`x-amz-meta-`,L_e=`x-amz-mfa`,R_e=`x-amz-missing-meta`,z_e=`x-amz-mp-object-size`,B_e=`x-amz-mp-parts-count`,u9=`x-amz-object-lock-legal-hold`,d9=`x-amz-object-lock-mode`,f9=`x-amz-object-lock-retain-until-date`,V_e=`x-amz-object-ownership`,H_e=`x-amz-optional-object-attributes`,U_e=`x-amz-object-size`,W_e=`x-amz-restore`,p9=`x-amz-request-charged`,m9=`x-amz-request-payer`,G_e=`x-amz-replication-status`,h9=`x-amz-storage-class`,g9=`x-amz-sdk-checksum-algorithm`,_9=`x-amz-server-side-encryption`,v9=`x-amz-server-side-encryption-aws-kms-key-id`,y9=`x-amz-server-side-encryption-bucket-key-enabled`,b9=`x-amz-server-side-encryption-context`,x9=`x-amz-server-side-encryption-customer-algorithm`,S9=`x-amz-server-side-encryption-customer-key`,C9=`x-amz-server-side-encryption-customer-key-MD5`,w9=`x-amz-tagging`,K_e=`x-amz-tagging-count`,T9=`x-amz-version-id`,q_e=`x-amz-write-offset-bytes`,E9=`x-amz-website-redirect-location`,$=`com.amazonaws.s3`,D9=se.for(R7),J_e=[-3,R7,`S3ServiceException`,0,[],[]];D9.registerError(J_e,q8);var O9=se.for($),Y_e=[-3,$,Xme,{[A7]:O7,[N7]:403},[],[]];O9.registerError(Y_e,Ime);var X_e=[-3,$,ihe,{[A7]:O7,[N7]:409},[],[]];O9.registerError(X_e,Rme);var Z_e=[-3,$,ahe,{[A7]:O7,[N7]:409},[],[]];O9.registerError(Z_e,zme);var Q_e=[-3,$,Rhe,{[A7]:O7,[N7]:400},[],[]];O9.registerError(Q_e,Wme);var $_e=[-3,$,Qhe,{[A7]:O7,[N7]:400},[],[]];O9.registerError($_e,Jme);var eve=[-3,$,Zhe,{[A7]:O7,[N7]:403},[f7,rhe],[0,0]];O9.registerError(eve,Vme);var tve=[-3,$,$he,{[A7]:O7,[N7]:400},[],[]];O9.registerError(tve,Gme);var nve=[-3,$,ige,{[A7]:O7,[N7]:400},[],[]];O9.registerError(nve,Kme);var rve=[-3,$,wge,{[A7]:O7,[N7]:404},[],[]];O9.registerError(rve,Bme);var ive=[-3,$,Tge,{[A7]:O7,[N7]:404},[],[]];O9.registerError(ive,Hme);var ave=[-3,$,Ege,{[A7]:O7,[N7]:404},[],[]];O9.registerError(ave,Fme);var ove=[-3,$,Cge,{[A7]:O7},[],[]];O9.registerError(ove,Ume);var sve=[-3,$,Dge,{[A7]:O7,[N7]:403},[],[]];O9.registerError(sve,Yme);var cve=[-3,$,Age,{[A7]:O7,[N7]:403},[],[]];O9.registerError(cve,Lme);var lve=[-3,$,i_e,{[A7]:O7,[N7]:400},[],[]];O9.registerError(lve,qme);var uve=[D9,O9],k9=[0,$,$ge,8,0],A9=[0,$,h7,8,0],j9=[0,$,_7,8,0],M9=[0,$,v7,8,0],N9=[0,$,Qge,{[w_e]:1},42],dve=[3,$,$me,0,[o7],[[0,{[Z]:p9}]]],fve=[3,$,ehe,0,[X8,J5,T7,s7,F5,Ghe],[[0,1],[0,1],[0,{[Q]:z7}],[0,{[Z]:m9}],[0,{[Z]:i9}],[6,{[Z]:P_e}]],3],pve=[3,$,X8,0,[$5,fhe,$8,Z8],[0,4,0,0]],mve=[3,$,she,0,[Lhe,w7],[0,0]],hve=[3,$,xhe,0,[i7],[0]],gve=[3,$,phe,0,[Vge],[[()=>Yve,{[V7]:1,[H7]:Hge}]]],_ve=[3,$,whe,0,[L5,a5,o5,s5,x5,S5,C5,v5,O5,k5,A5,a7],[0,0,0,0,0,0,0,0,0,0,0,1]],vve=[3,$,mhe,{[H7]:ghe},[Y5,X8,J5,P5,L5,a5,o5,s5,x5,S5,C5,v5,O5,k5,A5,w5,p7,E7,v7,Q8,o7],[0,0,0,[0,{[Z]:r9}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Z]:_9}],[0,{[Z]:T9}],[()=>M9,{[Z]:v9}],[2,{[Z]:y9}],[0,{[Z]:p9}]]],yve=[3,$,_he,0,[X8,J5,T7,xge,a5,o5,s5,x5,S5,C5,v5,O5,k5,A5,w5,bge,s7,F5,W5,K5,m7,h7,g7],[[0,1],[0,1],[0,{[Q]:z7}],[()=>gve,{[P7]:1,[H7]:b5}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:q7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:Z7}],[0,{[Z]:J7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:t9}],[0,{[Z]:Q7}],[1,{[Z]:z_e}],[0,{[Z]:m9}],[0,{[Z]:i9}],[0,{[Z]:G5}],[0,{[Z]:q5}],[0,{[Z]:x9}],[()=>A9,{[Z]:S9}],[0,{[Z]:C9}]],3],bve=[3,$,r5,0,[dge,Y5,X8,n_e],[0,()=>Fve,()=>mve,[()=>F9,0]]],xve=[3,$,uhe,0,[Y5,Z8],[[0,{[Z]:Y5}],[0,{[Z]:D_e}]]],Sve=[3,$,dhe,0,[X8,J8,r5,B5,V5,H5,Uhe,U5,Oge,jge,che],[[0,1],[0,{[Z]:U7}],[()=>bve,{[P7]:1,[H7]:r5}],[0,{[Z]:a9}],[0,{[Z]:o9}],[0,{[Z]:s9}],[0,{[Z]:N_e}],[0,{[Z]:c9}],[2,{[Z]:A_e}],[0,{[Z]:V_e}],[0,{[Z]:k_e}]],1],Cve=[3,$,hhe,{[H7]:Xhe},[Zme,nhe,X8,J5,T7,p7,m7,g7,v7,_7,Q8,o7,n5,w5],[[4,{[Z]:T_e}],[0,{[Z]:E_e}],[0,{[H7]:X8}],0,0,[0,{[Z]:_9}],[0,{[Z]:x9}],[0,{[Z]:C9}],[()=>M9,{[Z]:v9}],[()=>j9,{[Z]:b9}],[2,{[Z]:y9}],[0,{[Z]:p9}],[0,{[Z]:W7}],[0,{[Z]:Q7}]]],wve=[3,$,vhe,0,[X8,J5,J8,i5,u5,f5,p5,E5,z5,B5,V5,H5,U5,Z5,p7,f7,D7,m7,h7,g7,v7,_7,Q8,s7,C7,n7,r7,t7,F5,n5,w5],[[0,1],[0,1],[0,{[Z]:U7}],[0,{[Z]:c5}],[0,{[Z]:l5}],[0,{[Z]:d5}],[0,{[Z]:m5}],[0,{[Z]:T5}],[4,{[Z]:z5}],[0,{[Z]:a9}],[0,{[Z]:o9}],[0,{[Z]:s9}],[0,{[Z]:c9}],[128,{[F7]:l9}],[0,{[Z]:_9}],[0,{[Z]:h9}],[0,{[Z]:E9}],[0,{[Z]:x9}],[()=>A9,{[Z]:S9}],[0,{[Z]:C9}],[()=>M9,{[Z]:v9}],[()=>j9,{[Z]:b9}],[2,{[Z]:y9}],[0,{[Z]:m9}],[0,{[Z]:w9}],[0,{[Z]:d9}],[5,{[Z]:f9}],[0,{[Z]:u9}],[0,{[Z]:i9}],[0,{[Z]:W7}],[0,{[Z]:Q7}]],2],Tve=[3,$,Ohe,{[H7]:khe},[j5,p7,v7,_7,Q8],[[()=>Hve,{[H7]:j5}],[0,{[Z]:_9}],[()=>M9,{[Z]:v9}],[()=>j9,{[Z]:b9}],[2,{[Z]:y9}]],1],Eve=[3,$,Ahe,0,[X8,t_e,p7,v7,_7,Q8],[[0,1],[0,{[Z]:M_e}],[0,{[Z]:_9}],[()=>M9,{[Z]:v9}],[()=>j9,{[Z]:b9}],[2,{[Z]:y9}]],1],Dve=[3,$,Phe,0,[M5,E7,o7],[[2,{[Z]:n9}],[0,{[Z]:T9}],[0,{[Z]:p9}]]],Ove=[3,$,Fhe,0,[X8,J5,vge,E7,s7,ohe,F5,W5,Khe,qhe],[[0,1],[0,1],[0,{[Z]:L_e}],[0,{[Q]:B7}],[0,{[Z]:m9}],[2,{[Z]:O_e}],[0,{[Z]:i9}],[0,{[Z]:G5}],[6,{[Z]:F_e}],[1,{[Z]:I_e}]],2],kve=[3,$,Vhe,0,[e5,M5,the,P5,Zge,X5,g5,L5,a5,o5,s5,x5,S5,C5,v5,O5,k5,A5,w5,yge,E7,i5,u5,f5,p5,Ehe,E5,z5,I5,D7,p7,Z5,m7,g7,v7,Q8,f7,o7,Xge,Pge,r_e,n7,r7,t7],[[()=>N9,16],[2,{[Z]:n9}],[0,{[Z]:u_e}],[0,{[Z]:r9}],[0,{[Z]:W_e}],[4,{[Z]:pge}],[1,{[Z]:h5}],[0,{[Z]:L5}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:q7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:Z7}],[0,{[Z]:J7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:t9}],[0,{[Z]:Q7}],[1,{[Z]:R_e}],[0,{[Z]:T9}],[0,{[Z]:c5}],[0,{[Z]:l5}],[0,{[Z]:d5}],[0,{[Z]:m5}],[0,{[Z]:Dhe}],[0,{[Z]:T5}],[4,{[Z]:z5}],[0,{[Z]:I5}],[0,{[Z]:E9}],[0,{[Z]:_9}],[128,{[F7]:l9}],[0,{[Z]:x9}],[0,{[Z]:C9}],[()=>M9,{[Z]:v9}],[2,{[Z]:y9}],[0,{[Z]:h9}],[0,{[Z]:p9}],[0,{[Z]:G_e}],[1,{[Z]:B_e}],[1,{[Z]:K_e}],[0,{[Z]:d9}],[5,{[Z]:f9}],[0,{[Z]:u9}]]],Ave=[3,$,Hhe,0,[X8,J5,W5,Yhe,K5,nge,l7,Uge,Wge,Gge,Kge,qge,Jge,E7,m7,h7,g7,s7,a7,F5,bhe],[[0,1],[0,1],[0,{[Z]:G5}],[4,{[Z]:Jhe}],[0,{[Z]:q5}],[4,{[Z]:rge}],[0,{[Z]:l7}],[0,{[Q]:__e}],[0,{[Q]:v_e}],[0,{[Q]:y_e}],[0,{[Q]:b_e}],[0,{[Q]:x_e}],[6,{[Q]:S_e}],[0,{[Q]:B7}],[0,{[Z]:x9}],[()=>A9,{[Z]:S9}],[0,{[Z]:C9}],[0,{[Z]:m9}],[1,{[Q]:L7}],[0,{[Z]:i9}],[0,{[Z]:j_e}]],2],jve=[3,$,cge,{[H7]:oge},[t5,e7,D5,i7],[[()=>qve,0],()=>P9,0,0]],Mve=[3,$,lge,0,[_ge,D5,i7,$8],[[1,{[Q]:h_e}],[0,{[Q]:k7}],[0,{[Q]:I7}],[0,{[Q]:d_e}]]],Nve=[3,$,hge,{[H7]:uge},[tge,Mhe,$5,i7,N5,Q5,The,R5,age,D5,Sge,u7,o7],[2,[()=>Xve,{[V7]:1}],0,0,0,1,[()=>Jve,{[V7]:1}],0,1,0,0,0,[0,{[Z]:p9}]]],Pve=[3,$,gge,0,[X8,N5,R5,Q5,i7,D5,zhe,u7,s7,F5,Mge],[[0,1],[0,{[Q]:f_e}],[0,{[Q]:p_e}],[1,{[Q]:g_e}],[0,{[Q]:I7}],[0,{[Q]:k7}],[2,{[Q]:m_e}],[0,{[Q]:C_e}],[0,{[Z]:m9}],[0,{[Z]:i9}],[64,{[Z]:H_e}]],1],Fve=[3,$,fge,0,[w7,$5],[0,0]],Ive=[3,$,Nge,0,[J5,X5,L5,n5,w5,b7,f7,e7,c7],[0,4,0,[64,{[V7]:1}],0,1,0,()=>P9,()=>Vve]],P9=[3,$,e7,0,[Nhe,Whe],[0,0]],Lve=[3,$,Ige,0,[P5,L5,a5,o5,s5,x5,S5,C5,v5,O5,k5,A5,w5,p7,E7,m7,g7,v7,_7,Q8,b7,o7],[[0,{[Z]:r9}],[0,{[Z]:L5}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:q7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:Z7}],[0,{[Z]:J7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:t9}],[0,{[Z]:Q7}],[0,{[Z]:_9}],[0,{[Z]:T9}],[0,{[Z]:x9}],[0,{[Z]:C9}],[()=>M9,{[Z]:v9}],[()=>j9,{[Z]:b9}],[2,{[Z]:y9}],[1,{[Z]:U_e}],[0,{[Z]:p9}]]],Rve=[3,$,Lge,0,[X8,J5,J8,e5,i5,u5,f5,p5,g5,y5,E5,n5,a5,o5,s5,x5,S5,C5,v5,O5,k5,A5,z5,W5,K5,B5,V5,H5,U5,l_e,Z5,p7,f7,D7,m7,h7,g7,v7,_7,Q8,s7,C7,n7,r7,t7,F5],[[0,1],[0,1],[0,{[Z]:U7}],[()=>N9,16],[0,{[Z]:c5}],[0,{[Z]:l5}],[0,{[Z]:d5}],[0,{[Z]:m5}],[1,{[Z]:h5}],[0,{[Z]:_5}],[0,{[Z]:T5}],[0,{[Z]:g9}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:q7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:Z7}],[0,{[Z]:J7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:t9}],[4,{[Z]:z5}],[0,{[Z]:G5}],[0,{[Z]:q5}],[0,{[Z]:a9}],[0,{[Z]:o9}],[0,{[Z]:s9}],[0,{[Z]:c9}],[1,{[Z]:q_e}],[128,{[F7]:l9}],[0,{[Z]:_9}],[0,{[Z]:h9}],[0,{[Z]:E9}],[0,{[Z]:x9}],[()=>A9,{[Z]:S9}],[0,{[Z]:C9}],[()=>M9,{[Z]:v9}],[()=>j9,{[Z]:b9}],[2,{[Z]:y9}],[0,{[Z]:m9}],[0,{[Z]:w9}],[0,{[Z]:d9}],[5,{[Z]:f9}],[0,{[Z]:u9}],[0,{[Z]:i9}]],2],zve=[3,$,zge,0,[E7],[[0,{[Z]:T9}]]],Bve=[3,$,Bge,0,[X8,J5,C7,E7,y5,n5,F5,s7],[[0,1],[0,1],[()=>Wve,{[P7]:1,[H7]:C7}],[0,{[Q]:B7}],[0,{[Z]:_5}],[0,{[Z]:g9}],[0,{[Z]:i9}],[0,{[Z]:m9}]],3],Vve=[3,$,c7,0,[ege,Yge],[2,4]],Hve=[3,$,e_e,0,[Y8,d7,y7,P5],[[0,{[H7]:Y8}],[()=>k9,{[H7]:d7}],[()=>k9,{[H7]:y7}],[4,{[H7]:P5}]],4],Uve=[3,$,S7,0,[J5,c_e],[0,0],2],Wve=[3,$,C7,0,[x7],[[()=>F9,0]],1],Gve=[3,$,o_e,0,[p7,L5,a5,o5,s5,x5,S5,C5,v5,O5,k5,A5,m7,g7,v7,Q8,o7],[[0,{[Z]:_9}],[0,{[Z]:L5}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:q7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:Z7}],[0,{[Z]:J7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:t9}],[0,{[Z]:x9}],[0,{[Z]:C9}],[()=>M9,{[Z]:v9}],[2,{[Z]:y9}],[0,{[Z]:p9}]]],Kve=[3,$,s_e,0,[X8,J5,a7,T7,e5,g5,y5,n5,a5,o5,s5,x5,S5,C5,v5,O5,k5,A5,m7,h7,g7,s7,F5],[[0,1],[0,1],[1,{[Q]:L7}],[0,{[Q]:z7}],[()=>N9,16],[1,{[Z]:h5}],[0,{[Z]:_5}],[0,{[Z]:g9}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:q7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:Z7}],[0,{[Z]:J7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:t9}],[0,{[Z]:x9}],[()=>A9,{[Z]:S9}],[0,{[Z]:C9}],[0,{[Z]:m9}],[0,{[Z]:i9}]],4],qve=[1,$,t5,0,[()=>pve,{[H7]:X8}]],Jve=[1,$,She,0,()=>hve],Yve=[1,$,Che,0,()=>_ve],Xve=[1,$,kge,0,[()=>Ive,0]],F9=[1,$,x7,0,[()=>Uve,{[H7]:S7}]],Zve=[9,$,Qme,{[j7]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>fve,()=>dve],Qve=[9,$,b5,{[j7]:[`POST`,`/{Key+}`,200]},()=>yve,()=>vve],$ve=[9,$,lhe,{[j7]:[`PUT`,`/`,200]},()=>Sve,()=>xve],eye=[9,$,yhe,{[j7]:[`POST`,`/{Key+}?uploads`,200]},()=>wve,()=>Cve],tye=[9,$,jhe,{[j7]:[`GET`,`/?session`,200]},()=>Eve,()=>Tve],nye=[9,$,Ihe,{[j7]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>Ove,()=>Dve],rye=[9,$,Bhe,{[M7]:`-`,[j7]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>Ave,()=>kve],iye=[9,$,sge,{[j7]:[`GET`,`/?x-id=ListBuckets`,200]},()=>Mve,()=>jve],aye=[9,$,mge,{[j7]:[`GET`,`/?list-type=2`,200]},()=>Pve,()=>Nve],oye=[9,$,Fge,{[M7]:`-`,[j7]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>Rve,()=>Lve],sye=[9,$,Rge,{[M7]:`-`,[j7]:[`PUT`,`/{Key+}?tagging`,200]},()=>Bve,()=>zve],cye=[9,$,a_e,{[M7]:`-`,[j7]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>Kve,()=>Gve],lye=class extends Ae.classBuilder().ep({...K8,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[tee(n,e.getEndpointParameterInstructions()),S6(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(tye).build(){},uye={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo s3`,test:`yarn g:vitest run`,"test:browser":`node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":`5.2.0`,"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/middleware-flexible-checksums":`^3.974.30`,"@aws-sdk/middleware-sdk-s3":`^3.972.51`,"@aws-sdk/signature-v4-multi-region":`^3.996.34`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1067.0`,"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`}};function I9(e){return typeof e==`string`?e.length===0:e.byteLength===0}var L9={name:`SHA-1`},R9={name:`HMAC`,hash:L9},dye=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),fye={};function z9(){return typeof window<`u`?window:typeof self<`u`?self:fye}var pye=function(){function e(e){this.toHash=new Uint8Array,e!==void 0&&(this.key=new Promise(function(t,n){z9().crypto.subtle.importKey(`raw`,B9(e),R9,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!I9(e)){var t=B9(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return z9().crypto.subtle.sign(R9,t,e.toHash).then(function(e){return new Uint8Array(e)})}):I9(this.toHash)?Promise.resolve(dye):Promise.resolve().then(function(){return z9().crypto.subtle.digest(L9,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array},e}();function B9(e){return typeof e==`string`?ree(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var mye=function(){function e(e){if(ut(z9()))this.hash=new pye(e);else throw Error(`SHA1 not supported`)}return e.prototype.update=function(e,t){this.hash.update(oee(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();async function hye(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},_ye=[1732584193,4023233417,2562383102,271733878],vye=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(yye(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=bye(e),n=0,{byteLength:r}=t;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:e,bufferLength:t,bytesHashed:n}=this,r=n*8;if(e.setUint8(this.bufferLength++,128),t%64>=56){for(let t=this.bufferLength;t<64;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let t=this.bufferLength;t<56;t++)e.setUint8(t,0);e.setUint32(56,r>>>0,!0),e.setUint32(60,Math.floor(r/4294967296),!0),this.hashBuffer(),this.finished=!0}let e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(t*4,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){let{buffer:e,state:t}=this,n=t[0],r=t[1],i=t[2],a=t[3];n=H9(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=H9(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=H9(i,a,n,r,e.getUint32(8,!0),17,606105819),r=H9(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=H9(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=H9(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=H9(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=H9(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=H9(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=H9(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=H9(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=H9(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=H9(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=H9(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=H9(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=H9(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=U9(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=U9(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=U9(i,a,n,r,e.getUint32(44,!0),14,643717713),r=U9(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=U9(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=U9(a,n,r,i,e.getUint32(40,!0),9,38016083),i=U9(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=U9(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=U9(n,r,i,a,e.getUint32(36,!0),5,568446438),a=U9(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=U9(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=U9(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=U9(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=U9(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=U9(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=U9(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=W9(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=W9(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=W9(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=W9(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=W9(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=W9(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=W9(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=W9(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=W9(n,r,i,a,e.getUint32(52,!0),4,681279174),a=W9(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=W9(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=W9(r,i,a,n,e.getUint32(24,!0),23,76029189),n=W9(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=W9(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=W9(i,a,n,r,e.getUint32(60,!0),16,530742520),r=W9(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=G9(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=G9(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=G9(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=G9(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=G9(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=G9(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=G9(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=G9(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=G9(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=G9(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=G9(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=G9(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=G9(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=G9(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=G9(i,a,n,r,e.getUint32(8,!0),15,718787259),r=G9(r,i,a,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=a+t[3]&4294967295}reset(){this.state=Uint32Array.from(_ye),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function V9(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function H9(e,t,n,r,i,a,o){return V9(t&n|~t&r,e,t,i,a,o)}function U9(e,t,n,r,i,a,o){return V9(t&r|n&~r,e,t,i,a,o)}function W9(e,t,n,r,i,a,o){return V9(t^n^r,e,t,i,a,o)}function G9(e,t,n,r,i,a,o){return V9(n^(t|~r),e,t,i,a,o)}function yye(e){return typeof e==`string`?e.length===0:e.byteLength===0}function bye(e){return typeof e==`string`?yt(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var xye=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??U8,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??aee,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Mme,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new Qe}],logger:e?.logger??new ze,protocol:e?.protocol??Sme,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:uve,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??Tt,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??je,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??Ze,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),Sye=e=>{let t=xe(e),n=()=>t().then(Ve),r=xye(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:uye.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??jt,maxAttempts:e?.maxAttempts??3,md5:e?.md5??vye,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha1:e?.sha1??mye,sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,streamHasher:e?.streamHasher??gye,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Cye=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},wye=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Tye=(e,t)=>{let n=Object.assign(Xe(e),lt(e),re(e),Cye(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),wye(n))},Eye=class extends we{config;constructor(...[e]){let t=Sye(e||{});super(t),this.initConfig=t;let n=Tye(tme(Nme(At(Ue(_e(Te(Le(qpe(Oe(Pme(t))))))))),{session:[()=>this,lye]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:jme,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(ae(this.config)),this.middlewareStack.use(xme(this.config)),this.middlewareStack.use(Tme(this.config)),this.middlewareStack.use(Qpe(this.config)),this.middlewareStack.use(ome(this.config)),this.middlewareStack.use(dme(this.config))}destroy(){super.destroy()}},K9=`ap-southeast-2`,q9=`${window.location.protocol}//localhost:9999`,Dye=`${window.location.protocol}//localhost:8443`,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null;function Oye(){if(!J9){let e=at();if(!e)throw Error(`AWS credentials not configured`);J9=new jI({endpoint:q9,region:K9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),J9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return J9}function kye(){if(!Y9){let e=at();if(!e)throw Error(`AWS credentials not configured`);Y9=new Eq({endpoint:q9,region:K9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Y9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Y9}function Aye(){if(!X9){let e=at();if(!e)throw Error(`AWS credentials not configured`);X9=new Rse({endpoint:q9,region:K9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),X9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return X9}function jye(){if(!Z9){let e=at();if(!e)throw Error(`AWS credentials not configured`);Z9=new Kee({endpoint:q9,region:K9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Z9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Z9}function Mye(){if(!Q9){let e=at();if(!e)throw Error(`AWS credentials not configured`);Q9=new Vpe({endpoint:q9,region:K9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Q9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Q9}function Nye(){if(!$9){let e=at();if(!e)throw Error(`AWS credentials not configured`);$9=new Eye({endpoint:Dye,region:K9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken},forcePathStyle:!0}),$9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&t.request.path.endsWith(`/`)&&t.request.path!==`/`&&(t.request.path=t.request.path.slice(0,-1)),await e(t)),{step:`build`,name:`removeTrailingSlash`}),$9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/s3${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return $9}function Pye(){J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null}export{Ppe as $,dI as $n,bq as $t,dpe as A,HF as An,ZK as At,xpe as B,QF as Bn,sq as Bt,y6 as C,FF as Cn,Dse as Ct,cpe as D,zF as Dn,jse as Dt,spe as E,RF as En,Ase as Et,gpe as F,qF as Fn,nq as Ft,Epe as G,rI as Gn,fq as Gt,Cpe as H,eI as Hn,lq as Ht,_pe as I,JF as In,rq as It,kpe as J,oI as Jn,hq as Jt,Dpe as K,iI as Kn,pq as Kt,vpe as L,XF as Ln,iq as Lt,ppe as M,WF as Mn,$K as Mt,mpe as N,GF as Nn,eq as Nt,lpe as O,BF as On,Mse as Ot,hpe as P,KF as Pn,tq as Pt,Npe as Q,uI as Qn,yq as Qt,ype as R,YF as Rn,aq as Rt,Kpe as S,PF as Sn,Ese as St,ope as T,LF as Tn,kse as Tt,wpe as U,tI as Un,uq as Ut,Spe as V,$F as Vn,cq as Vt,Tpe as W,nI as Wn,dq as Wt,jpe as X,cI as Xn,_q as Xt,Ape as Y,sI as Yn,gq as Yt,Mpe as Z,lI as Zn,vq as Zt,sye as _,kF as _n,fn as _r,xse as _t,Aye as a,_F as an,_I as ar,lse as at,S6 as b,MF as bn,wse as bt,Zve as c,bF as cn,bI as cr,fse as ct,eye as d,CF as dn,CI as dr,hse as dt,RI as en,fI as er,Fpe as et,nye as f,wF as fn,wI as fr,gse as ft,oye as g,OF as gn,Bee as gr,bse as gt,aye as h,DF as hn,zee as hr,yse as ht,kye as i,gF as in,gI as ir,cse as it,fpe as j,UF as jn,QK as jt,upe as k,VF as kn,Mq as kt,Qve as l,xF as ln,xI as lr,pse as lt,iye as m,EF as mn,Qee as mr,vse as mt,jye as n,mF as nn,mI as nr,ose as nt,Mye as o,vF as on,vI as or,use as ot,rye as p,TF as pn,TI as pr,_se as pt,Ope as q,aI as qn,mq as qt,Oye as r,hF as rn,hI as rr,sse as rt,Nye as s,yF as sn,yI as sr,dse as st,Pye as t,pF as tn,pI as tr,Wse as tt,$ve as u,SF as un,SI as ur,mse as ut,cye as v,AF as vn,Jt as vr,Sse as vt,Upe as w,IF as wn,Ose as wt,b6 as x,NF as xn,Tse as xt,K8 as y,jF as yn,Pt as yr,Cse as yt,bpe as z,ZF as zn,oq as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/badge.js b/spinifex/services/spinifexui/frontend/dist/assets/badge.js index 651f3b064..cc3ee85c5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/badge.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/badge.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{f as t,t as n}from"./dist.js";import{Rt as r}from"./auth.js";import{Pr as i}from"./index.js";var a=e(),o=n(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium whitespace-nowrap transition-all transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function s(e){let n=(0,a.c)(13),s,c,l,u,d;if(n[0]!==e){let{className:a,variant:f,render:p,...m}=e;s=p,d=f===void 0?`default`:f,u=i,c=`span`,l=t({className:r(o({className:a,variant:d}))},m),n[0]=e,n[1]=s,n[2]=c,n[3]=l,n[4]=u,n[5]=d}else s=n[1],c=n[2],l=n[3],u=n[4],d=n[5];let f;n[6]===d?f=n[7]:(f={slot:`badge`,variant:d},n[6]=d,n[7]=f);let p;return n[8]!==s||n[9]!==c||n[10]!==l||n[11]!==f?(p={defaultTagName:c,props:l,render:s,state:f},n[8]=s,n[9]=c,n[10]=l,n[11]=f,n[12]=p):p=n[12],u(p)}export{s as t}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{f as t,t as n}from"./dist.js";import{Lt as r}from"./auth.js";import{Pr as i}from"./index.js";var a=e(),o=n(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium whitespace-nowrap transition-all transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function s(e){let n=(0,a.c)(13),s,c,l,u,d;if(n[0]!==e){let{className:a,variant:f,render:p,...m}=e;s=p,d=f===void 0?`default`:f,u=i,c=`span`,l=t({className:r(o({className:a,variant:d}))},m),n[0]=e,n[1]=s,n[2]=c,n[3]=l,n[4]=u,n[5]=d}else s=n[1],c=n[2],l=n[3],u=n[4],d=n[5];let f;n[6]===d?f=n[7]:(f={slot:`badge`,variant:d},n[6]=d,n[7]=f);let p;return n[8]!==s||n[9]!==c||n[10]!==l||n[11]!==f?(p={defaultTagName:c,props:l,render:s,state:f},n[8]=s,n[9]=c,n[10]=l,n[11]=f,n[12]=p):p=n[12],u(p)}export{s as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/button.js b/spinifex/services/spinifexui/frontend/dist/assets/button.js index 6df129be6..2eed6d631 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/button.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/button.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{d as i,f as a,l as o,n as s,t as c,u as l}from"./dist.js";import{Rt as u}from"./auth.js";var d=t(n());function f(){return typeof window<`u`}function p(e){return g(e)?(e.nodeName||``).toLowerCase():`#document`}function m(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function h(e){return((g(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function g(e){return f()?e instanceof Node||e instanceof m(e).Node:!1}function _(e){return f()?e instanceof Element||e instanceof m(e).Element:!1}function v(e){return f()?e instanceof HTMLElement||e instanceof m(e).HTMLElement:!1}function y(e){return!f()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof m(e).ShadowRoot}function b(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=j(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function x(e){return/^(table|td|th)$/.test(p(e))}function S(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var C=/transform|translate|scale|rotate|perspective|filter/,w=/paint|layout|strict|content/,T=e=>!!e&&e!==`none`,E;function D(e){let t=_(e)?j(e):e;return T(t.transform)||T(t.translate)||T(t.scale)||T(t.rotate)||T(t.perspective)||!k()&&(T(t.backdropFilter)||T(t.filter))||C.test(t.willChange||``)||w.test(t.contain||``)}function O(e){let t=N(e);for(;v(t)&&!A(t);){if(D(t))return t;if(S(t))return null;t=N(t)}return null}function k(){return E??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),E}function A(e){return/^(html|body|#document)$/.test(p(e))}function j(e){return m(e).getComputedStyle(e)}function M(e){return _(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function N(e){if(p(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||y(e)&&e.host||h(e);return y(t)?t.host:t}function P(e){let t=N(e);return A(t)?e.ownerDocument?e.ownerDocument.body:e.body:v(t)&&b(t)?t:P(t)}function F(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=P(e),i=r===e.ownerDocument?.body,a=m(r);if(i){let e=I(a);return t.concat(a,a.visualViewport||[],b(r)?r:[],e&&n?F(e):[])}else return t.concat(r,F(r,[],n))}function I(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var L={...d},R=L.useInsertionEffect,z=R&&R!==L.useLayoutEffect?R:e=>e();function B(e){let t=o(V).current;return t.next=e,z(t.effect),t.trampoline}function V(){let e={next:void 0,callback:H,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function H(){}var U=typeof document<`u`?d.useLayoutEffect:()=>{},W=d.createContext(void 0);function G(e=!1){let t=d.useContext(W);if(t===void 0&&!e)throw Error(l(16));return t}function K(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:d.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function q(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0,composite:s}=e,c=d.useRef(null),l=G(!0),u=s??l!==void 0,{props:f}=K({focusableWhenDisabled:n,disabled:t,composite:u,tabIndex:r,isNativeButton:o}),p=d.useCallback(()=>{let e=c.current;J(e)&&u&&t&&f.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,f.disabled,u]);return U(p,[p]),{getButtonProps:d.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:s,onKeyDown:c,onPointerDown:l,...d}=e;return a({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(i(e),c?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=J(a),l=!o&&Y(a),d=r&&(o?s:!l),f=e.key===`Enter`,p=e.key===` `,m=a.getAttribute(`role`),h=m?.startsWith(`menuitem`)||m===`option`||m===`gridcell`;if(r&&u&&p){if(e.defaultPrevented&&h)return;e.preventDefault(),l||o&&s?(a.click(),e.preventBaseUIHandler()):d&&(n?.(e),e.preventBaseUIHandler());return}d&&(!o&&(p||f)&&e.preventDefault(),!o&&f&&n?.(e))},onKeyUp(e){if(!t){if(i(e),s?.(e),e.target===e.currentTarget&&o&&u&&J(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!o&&!u&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}l?.(e)}},o?{type:`button`}:{role:`button`},f,d)},[t,f,u,o]),buttonRef:B(e=>{c.current=e,p()})}}function J(e){return v(e)&&e.tagName===`BUTTON`}function Y(e){return!!(e?.tagName===`A`&&e?.href)}var X=d.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:c,...l}=e,{getButtonProps:u,buttonRef:d}=q({disabled:i,focusableWhenDisabled:a,native:o});return s(`button`,e,{state:{disabled:i},ref:[t,d],props:[l,u]})}),Z=r(),Q=e(),$=c(`group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-input/30`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,xs:`h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5`,sm:`h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,lg:`h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4`,icon:`size-7 [&_svg:not([class*='size-'])]:size-3.5`,"icon-xs":`size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5`,"icon-sm":`size-6 [&_svg:not([class*='size-'])]:size-3`,"icon-lg":`size-8 [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`,size:`default`}});function ee(e){let t=(0,Z.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[5]!==n||t[6]!==s||t[7]!==o?(c=u($({variant:o,size:s,className:n})),t[5]=n,t[6]=s,t[7]=o,t[8]=c):c=t[8];let l;return t[9]!==r||t[10]!==c?(l=(0,Q.jsx)(X,{className:c,"data-slot":`button`,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}export{b as C,k as D,S as E,g as S,x as T,m as _,G as a,v as b,L as c,h as d,I as f,N as g,F as h,W as i,j as l,M as m,$ as n,U as o,p,q as r,B as s,ee as t,O as u,D as v,y as w,A as x,_ as y}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{d as i,f as a,l as o,n as s,t as c,u as l}from"./dist.js";import{Lt as u}from"./auth.js";var d=t(n());function f(){return typeof window<`u`}function p(e){return g(e)?(e.nodeName||``).toLowerCase():`#document`}function m(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function h(e){return((g(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function g(e){return f()?e instanceof Node||e instanceof m(e).Node:!1}function _(e){return f()?e instanceof Element||e instanceof m(e).Element:!1}function v(e){return f()?e instanceof HTMLElement||e instanceof m(e).HTMLElement:!1}function y(e){return!f()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof m(e).ShadowRoot}function b(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=j(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function x(e){return/^(table|td|th)$/.test(p(e))}function S(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var C=/transform|translate|scale|rotate|perspective|filter/,w=/paint|layout|strict|content/,T=e=>!!e&&e!==`none`,E;function D(e){let t=_(e)?j(e):e;return T(t.transform)||T(t.translate)||T(t.scale)||T(t.rotate)||T(t.perspective)||!k()&&(T(t.backdropFilter)||T(t.filter))||C.test(t.willChange||``)||w.test(t.contain||``)}function O(e){let t=N(e);for(;v(t)&&!A(t);){if(D(t))return t;if(S(t))return null;t=N(t)}return null}function k(){return E??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),E}function A(e){return/^(html|body|#document)$/.test(p(e))}function j(e){return m(e).getComputedStyle(e)}function M(e){return _(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function N(e){if(p(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||y(e)&&e.host||h(e);return y(t)?t.host:t}function P(e){let t=N(e);return A(t)?e.ownerDocument?e.ownerDocument.body:e.body:v(t)&&b(t)?t:P(t)}function F(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=P(e),i=r===e.ownerDocument?.body,a=m(r);if(i){let e=I(a);return t.concat(a,a.visualViewport||[],b(r)?r:[],e&&n?F(e):[])}else return t.concat(r,F(r,[],n))}function I(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var L={...d},R=L.useInsertionEffect,z=R&&R!==L.useLayoutEffect?R:e=>e();function B(e){let t=o(V).current;return t.next=e,z(t.effect),t.trampoline}function V(){let e={next:void 0,callback:H,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function H(){}var U=typeof document<`u`?d.useLayoutEffect:()=>{},W=d.createContext(void 0);function G(e=!1){let t=d.useContext(W);if(t===void 0&&!e)throw Error(l(16));return t}function K(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:d.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function q(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0,composite:s}=e,c=d.useRef(null),l=G(!0),u=s??l!==void 0,{props:f}=K({focusableWhenDisabled:n,disabled:t,composite:u,tabIndex:r,isNativeButton:o}),p=d.useCallback(()=>{let e=c.current;J(e)&&u&&t&&f.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,f.disabled,u]);return U(p,[p]),{getButtonProps:d.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:s,onKeyDown:c,onPointerDown:l,...d}=e;return a({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(i(e),c?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=J(a),l=!o&&Y(a),d=r&&(o?s:!l),f=e.key===`Enter`,p=e.key===` `,m=a.getAttribute(`role`),h=m?.startsWith(`menuitem`)||m===`option`||m===`gridcell`;if(r&&u&&p){if(e.defaultPrevented&&h)return;e.preventDefault(),l||o&&s?(a.click(),e.preventBaseUIHandler()):d&&(n?.(e),e.preventBaseUIHandler());return}d&&(!o&&(p||f)&&e.preventDefault(),!o&&f&&n?.(e))},onKeyUp(e){if(!t){if(i(e),s?.(e),e.target===e.currentTarget&&o&&u&&J(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!o&&!u&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}l?.(e)}},o?{type:`button`}:{role:`button`},f,d)},[t,f,u,o]),buttonRef:B(e=>{c.current=e,p()})}}function J(e){return v(e)&&e.tagName===`BUTTON`}function Y(e){return!!(e?.tagName===`A`&&e?.href)}var X=d.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:c,...l}=e,{getButtonProps:u,buttonRef:d}=q({disabled:i,focusableWhenDisabled:a,native:o});return s(`button`,e,{state:{disabled:i},ref:[t,d],props:[l,u]})}),Z=r(),Q=e(),$=c(`group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-input/30`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,xs:`h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5`,sm:`h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,lg:`h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4`,icon:`size-7 [&_svg:not([class*='size-'])]:size-3.5`,"icon-xs":`size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5`,"icon-sm":`size-6 [&_svg:not([class*='size-'])]:size-3`,"icon-lg":`size-8 [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`,size:`default`}});function ee(e){let t=(0,Z.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[5]!==n||t[6]!==s||t[7]!==o?(c=u($({variant:o,size:s,className:n})),t[5]=n,t[6]=s,t[7]=o,t[8]=c):c=t[8];let l;return t[9]!==r||t[10]!==c?(l=(0,Q.jsx)(X,{className:c,"data-slot":`button`,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}export{b as C,k as D,S as E,g as S,x as T,m as _,G as a,v as b,L as c,h as d,I as f,N as g,F as h,W as i,j as l,M as m,$ as n,U as o,p,q as r,B as s,ee as t,O as u,D as v,y as w,A as x,_ as y}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/card.js b/spinifex/services/spinifexui/frontend/dist/assets/card.js index 4fe48925b..d5a606303 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/card.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/card.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{Rt as n}from"./auth.js";var r=t(),i=e();function a(e){let t=(0,r.c)(10),a,o,s;t[0]===e?(a=t[1],o=t[2],s=t[3]):({className:a,size:s,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s);let c=s===void 0?`default`:s,l;t[4]===a?l=t[5]:(l=n(`group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-xs/relaxed text-card-foreground ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg`,a),t[4]=a,t[5]=l);let u;return t[6]!==o||t[7]!==c||t[8]!==l?(u=(0,i.jsx)(`div`,{className:l,"data-size":c,"data-slot":`card`,...o}),t[6]=o,t[7]=c,t[8]=l,t[9]=u):u=t[9],u}function o(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-header`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function s(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`text-sm font-medium`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-title`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function c(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-action`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function l(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`px-4 group-data-[size=sm]/card:px-3`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-content`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function u(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`flex items-center rounded-b-lg px-4 group-data-[size=sm]/card:px-3 [.border-t]:pt-4 group-data-[size=sm]/card:[.border-t]:pt-3`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-footer`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}export{o as a,u as i,c as n,s as o,l as r,a as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Lt as n}from"./auth.js";var r=t(),i=e();function a(e){let t=(0,r.c)(10),a,o,s;t[0]===e?(a=t[1],o=t[2],s=t[3]):({className:a,size:s,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s);let c=s===void 0?`default`:s,l;t[4]===a?l=t[5]:(l=n(`group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-xs/relaxed text-card-foreground ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg`,a),t[4]=a,t[5]=l);let u;return t[6]!==o||t[7]!==c||t[8]!==l?(u=(0,i.jsx)(`div`,{className:l,"data-size":c,"data-slot":`card`,...o}),t[6]=o,t[7]=c,t[8]=l,t[9]=u):u=t[9],u}function o(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-header`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function s(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`text-sm font-medium`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-title`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function c(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-action`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function l(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`px-4 group-data-[size=sm]/card:px-3`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-content`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function u(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`flex items-center rounded-b-lg px-4 group-data-[size=sm]/card:px-3 [.border-t]:pt-4 group-data-[size=sm]/card:[.border-t]:pt-3`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`div`,{className:s,"data-slot":`card-footer`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}export{o as a,u as i,c as n,s as o,l as r,a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js b/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js index 4fa4bfe0f..85e587ddd 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{n as i,t as a}from"./error-banner.js";import{_r as o,hr as s,n as c}from"./awsClient.js";import{Ct as l,dt as u}from"./auth.js";import{Lr as d}from"./index.js";import{a as f,t as p}from"./field.js";import{a as m,i as h,l as g,n as _,o as v,r as y,s as ee,t as te}from"./alert-dialog.js";import{t as b}from"./textarea.js";var x=class extends l.classBuilder().ep(o).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ImportCertificate`,{}).n(`ACMClient`,`ImportCertificateCommand`).sc(s).build(){},S=t(n(),1),C=r(),w=new TextEncoder;function T(){let e=(0,C.c)(2),t=d(),n;return e[0]===t?n=e[1]:(n={mutationFn:E,onSuccess:()=>{t.invalidateQueries({queryKey:[`acm`,`certificates`]})}},e[0]=t,e[1]=n),i(n)}async function E(e){let t=new x({Certificate:w.encode(e.certificate),PrivateKey:w.encode(e.privateKey),CertificateChain:e.certificateChain&&e.certificateChain.length>0?w.encode(e.certificateChain):void 0});return await c().send(t)}var D=e();function O(e){let t=(0,C.c)(54),{open:n,onOpenChange:r,onImported:i}=e,[o,s]=(0,S.useState)(``),[c,l]=(0,S.useState)(``),[u,d]=(0,S.useState)(``),x=T(),w;t[0]===x?w=t[1]:(w=()=>{s(``),l(``),d(``),x.reset()},t[0]=x,t[1]=w);let E=w,O;t[2]!==r||t[3]!==E?(O=e=>{e||E(),r(e)},t[2]=r,t[3]=E,t[4]=O):O=t[4];let k=O,A;t[5]!==o||t[6]!==c?(A=o.trim().length>0&&c.trim().length>0,t[5]=o,t[6]=c,t[7]=A):A=t[7];let j=A,M;t[8]!==j||t[9]!==o||t[10]!==u||t[11]!==x||t[12]!==i||t[13]!==r||t[14]!==c||t[15]!==E?(M=async()=>{if(j)try{let e=await x.mutateAsync({certificate:o,privateKey:c,certificateChain:u});e.CertificateArn&&i(e.CertificateArn),E(),r(!1)}catch{}},t[8]=j,t[9]=o,t[10]=u,t[11]=x,t[12]=i,t[13]=r,t[14]=c,t[15]=E,t[16]=M):M=t[16];let N=M,P;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(P={maxWidth:`36rem`,width:`calc(100vw - 2rem)`},t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,D.jsxs)(ee,{children:[(0,D.jsx)(g,{children:`Import certificate`}),(0,D.jsx)(m,{children:`Paste a PEM-encoded certificate and its private key. The optional chain is appended for intermediate CAs.`})]}),t[18]=F):F=t[18];let I;t[19]===x.error?I=t[20]:(I=x.error&&(0,D.jsx)(a,{error:x.error,msg:`Failed to import certificate`}),t[19]=x.error,t[20]=I);let L;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-body`,children:`Certificate body`})}),t[21]=L):L=t[21];let R;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>s(e.target.value),t[22]=R):R=t[22];let z;t[23]===o?z=t[24]:(z=(0,D.jsxs)(p,{children:[L,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-body`,onChange:R,placeholder:`-----BEGIN CERTIFICATE-----`,rows:5,value:o})]}),t[23]=o,t[24]=z);let B;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-key`,children:`Private key`})}),t[25]=B):B=t[25];let V;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>l(e.target.value),t[26]=V):V=t[26];let H;t[27]===c?H=t[28]:(H=(0,D.jsxs)(p,{children:[B,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-key`,onChange:V,placeholder:`-----BEGIN PRIVATE KEY-----`,rows:5,value:c})]}),t[27]=c,t[28]=H);let U;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-chain`,children:`Certificate chain (optional)`})}),t[29]=U):U=t[29];let W;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>d(e.target.value),t[30]=W):W=t[30];let G;t[31]===u?G=t[32]:(G=(0,D.jsxs)(p,{children:[U,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-chain`,onChange:W,placeholder:`-----BEGIN CERTIFICATE-----`,rows:4,value:u})]}),t[31]=u,t[32]=G);let K;t[33]!==z||t[34]!==H||t[35]!==G?(K=(0,D.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[z,H,G]}),t[33]=z,t[34]=H,t[35]=G,t[36]=K):K=t[36];let q;t[37]===x.isPending?q=t[38]:(q=(0,D.jsx)(y,{disabled:x.isPending,children:`Cancel`}),t[37]=x.isPending,t[38]=q);let J=!j||x.isPending,Y=x.isPending?`Importing…`:`Import`,X;t[39]!==N||t[40]!==J||t[41]!==Y?(X=(0,D.jsx)(_,{disabled:J,onClick:N,children:Y}),t[39]=N,t[40]=J,t[41]=Y,t[42]=X):X=t[42];let Z;t[43]!==q||t[44]!==X?(Z=(0,D.jsxs)(v,{children:[q,X]}),t[43]=q,t[44]=X,t[45]=Z):Z=t[45];let Q;t[46]!==K||t[47]!==Z||t[48]!==I?(Q=(0,D.jsxs)(h,{className:`grid-cols-[minmax(0,1fr)]`,style:P,children:[F,I,K,Z]}),t[46]=K,t[47]=Z,t[48]=I,t[49]=Q):Q=t[49];let $;return t[50]!==k||t[51]!==n||t[52]!==Q?($=(0,D.jsx)(te,{onOpenChange:k,open:n,children:Q}),t[50]=k,t[51]=n,t[52]=Q,t[53]=$):$=t[53],$}export{O as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{n as i,t as a}from"./error-banner.js";import{_r as o,hr as s,n as c}from"./awsClient.js";import{St as l,ut as u}from"./auth.js";import{Lr as d}from"./index.js";import{a as f,t as p}from"./field.js";import{a as m,i as h,l as g,n as _,o as v,r as y,s as ee,t as te}from"./alert-dialog.js";import{t as b}from"./textarea.js";var x=class extends l.classBuilder().ep(o).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ImportCertificate`,{}).n(`ACMClient`,`ImportCertificateCommand`).sc(s).build(){},S=t(n(),1),C=r(),w=new TextEncoder;function T(){let e=(0,C.c)(2),t=d(),n;return e[0]===t?n=e[1]:(n={mutationFn:E,onSuccess:()=>{t.invalidateQueries({queryKey:[`acm`,`certificates`]})}},e[0]=t,e[1]=n),i(n)}async function E(e){let t=new x({Certificate:w.encode(e.certificate),PrivateKey:w.encode(e.privateKey),CertificateChain:e.certificateChain&&e.certificateChain.length>0?w.encode(e.certificateChain):void 0});return await c().send(t)}var D=e();function O(e){let t=(0,C.c)(54),{open:n,onOpenChange:r,onImported:i}=e,[o,s]=(0,S.useState)(``),[c,l]=(0,S.useState)(``),[u,d]=(0,S.useState)(``),x=T(),w;t[0]===x?w=t[1]:(w=()=>{s(``),l(``),d(``),x.reset()},t[0]=x,t[1]=w);let E=w,O;t[2]!==r||t[3]!==E?(O=e=>{e||E(),r(e)},t[2]=r,t[3]=E,t[4]=O):O=t[4];let k=O,A;t[5]!==o||t[6]!==c?(A=o.trim().length>0&&c.trim().length>0,t[5]=o,t[6]=c,t[7]=A):A=t[7];let j=A,M;t[8]!==j||t[9]!==o||t[10]!==u||t[11]!==x||t[12]!==i||t[13]!==r||t[14]!==c||t[15]!==E?(M=async()=>{if(j)try{let e=await x.mutateAsync({certificate:o,privateKey:c,certificateChain:u});e.CertificateArn&&i(e.CertificateArn),E(),r(!1)}catch{}},t[8]=j,t[9]=o,t[10]=u,t[11]=x,t[12]=i,t[13]=r,t[14]=c,t[15]=E,t[16]=M):M=t[16];let N=M,P;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(P={maxWidth:`36rem`,width:`calc(100vw - 2rem)`},t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,D.jsxs)(ee,{children:[(0,D.jsx)(g,{children:`Import certificate`}),(0,D.jsx)(m,{children:`Paste a PEM-encoded certificate and its private key. The optional chain is appended for intermediate CAs.`})]}),t[18]=F):F=t[18];let I;t[19]===x.error?I=t[20]:(I=x.error&&(0,D.jsx)(a,{error:x.error,msg:`Failed to import certificate`}),t[19]=x.error,t[20]=I);let L;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-body`,children:`Certificate body`})}),t[21]=L):L=t[21];let R;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>s(e.target.value),t[22]=R):R=t[22];let z;t[23]===o?z=t[24]:(z=(0,D.jsxs)(p,{children:[L,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-body`,onChange:R,placeholder:`-----BEGIN CERTIFICATE-----`,rows:5,value:o})]}),t[23]=o,t[24]=z);let B;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-key`,children:`Private key`})}),t[25]=B):B=t[25];let V;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>l(e.target.value),t[26]=V):V=t[26];let H;t[27]===c?H=t[28]:(H=(0,D.jsxs)(p,{children:[B,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-key`,onChange:V,placeholder:`-----BEGIN PRIVATE KEY-----`,rows:5,value:c})]}),t[27]=c,t[28]=H);let U;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-chain`,children:`Certificate chain (optional)`})}),t[29]=U):U=t[29];let W;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>d(e.target.value),t[30]=W):W=t[30];let G;t[31]===u?G=t[32]:(G=(0,D.jsxs)(p,{children:[U,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-chain`,onChange:W,placeholder:`-----BEGIN CERTIFICATE-----`,rows:4,value:u})]}),t[31]=u,t[32]=G);let K;t[33]!==z||t[34]!==H||t[35]!==G?(K=(0,D.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[z,H,G]}),t[33]=z,t[34]=H,t[35]=G,t[36]=K):K=t[36];let q;t[37]===x.isPending?q=t[38]:(q=(0,D.jsx)(y,{disabled:x.isPending,children:`Cancel`}),t[37]=x.isPending,t[38]=q);let J=!j||x.isPending,Y=x.isPending?`Importing…`:`Import`,X;t[39]!==N||t[40]!==J||t[41]!==Y?(X=(0,D.jsx)(_,{disabled:J,onClick:N,children:Y}),t[39]=N,t[40]=J,t[41]=Y,t[42]=X):X=t[42];let Z;t[43]!==q||t[44]!==X?(Z=(0,D.jsxs)(v,{children:[q,X]}),t[43]=q,t[44]=X,t[45]=Z):Z=t[45];let Q;t[46]!==K||t[47]!==Z||t[48]!==I?(Q=(0,D.jsxs)(h,{className:`grid-cols-[minmax(0,1fr)]`,style:P,children:[F,I,K,Z]}),t[46]=K,t[47]=Z,t[48]=I,t[49]=Q):Q=t[49];let $;return t[50]!==k||t[51]!==n||t[52]!==Q?($=(0,D.jsx)(te,{onOpenChange:k,open:n,children:Q}),t[50]=k,t[51]=n,t[52]=Q,t[53]=$):$=t[53],$}export{O as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js b/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js index b4a225d8d..c07fe10b6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js @@ -1,3 +1,3 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{Rt as i}from"./auth.js";import{t as a}from"./check.js";import{t as o}from"./chevron-down.js";import{t as s}from"./copy.js";import{t as c}from"./button.js";import{Nr as l}from"./index.js";import{t as u}from"./use-copy-to-clipboard.js";var d=l(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),f=r(),p=t(n(),1),m=e(),h={bin:`text-tactical-cyan font-semibold`,flag:`text-tactical-amber`,value:`text-foreground`,comment:`text-muted-foreground italic`,variable:`text-tactical-green font-semibold`};function g(e){return e.map(e=>e.parts.map(e=>e.value).join(``)).join(` +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{Lt as i}from"./auth.js";import{t as a}from"./check.js";import{t as o}from"./chevron-down.js";import{t as s}from"./copy.js";import{t as c}from"./button.js";import{Nr as l}from"./index.js";import{t as u}from"./use-copy-to-clipboard.js";var d=l(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),f=r(),p=t(n(),1),m=e(),h={bin:`text-tactical-cyan font-semibold`,flag:`text-tactical-amber`,value:`text-foreground`,comment:`text-muted-foreground italic`,variable:`text-tactical-green font-semibold`};function g(e){return e.map(e=>e.parts.map(e=>e.value).join(``)).join(` `)}function _(e){let t=(0,f.c)(18),{commands:n}=e,[r,l]=(0,p.useState)(!1),{copied:h,copy:_}=u();if(n.length===0)return null;let b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>l(y),t[0]=b):b=t[0];let x,S;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,m.jsx)(d,{className:`size-3.5`}),S=(0,m.jsx)(`span`,{children:`AWS CLI`}),t[1]=x,t[2]=S):(x=t[1],S=t[2]);let C=r&&`rotate-180`,w;t[3]===C?w=t[4]:(w=i(`ml-auto size-3.5 transition-transform`,C),t[3]=C,t[4]=w);let T;t[5]===w?T=t[6]:(T=(0,m.jsx)(o,{className:w}),t[5]=w,t[6]=T);let E;t[7]!==r||t[8]!==T?(E=(0,m.jsxs)(`button`,{type:`button`,onClick:b,className:`flex w-full items-center gap-2 px-3 py-2 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,"aria-expanded":r,children:[x,S,T]}),t[7]=r,t[8]=T,t[9]=E):E=t[9];let D;t[10]!==n||t[11]!==h||t[12]!==_||t[13]!==r?(D=r&&(0,m.jsxs)(`div`,{className:`border-t border-border`,children:[(0,m.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-3 py-1.5`,children:[(0,m.jsx)(`span`,{className:`text-[0.625rem] text-muted-foreground`,children:n.length>1?`${n.length} commands`:`command`}),(0,m.jsxs)(c,{type:`button`,variant:`ghost`,size:`xs`,onClick:async()=>await _(g(n)),children:[h?(0,m.jsx)(a,{className:`size-2.5`}):(0,m.jsx)(s,{className:`size-2.5`}),h?`Copied`:`Copy`]})]}),(0,m.jsx)(`div`,{className:`overflow-x-auto p-3`,children:n.map((e,t)=>(0,m.jsxs)(`div`,{children:[n.length>1&&(0,m.jsx)(`div`,{className:`mb-1 text-[0.625rem] font-medium text-muted-foreground`,children:e.label}),(0,m.jsx)(`pre`,{className:`font-mono text-xs/relaxed`,children:(0,m.jsx)(`code`,{children:e.parts.map(v)})}),tvoid a(z),t[4]=a,t[5]=d);let f;t[6]===i?f=t[7]:(f=i?(0,R.jsx)(c,{className:`size-3.5 text-tactical-green`}):(0,R.jsx)(m,{className:`size-3.5`}),t[6]=i,t[7]=f);let p;t[8]!==d||t[9]!==f?(p=(0,R.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-background px-3 py-2 font-mono text-xs`,children:[l,u,(0,R.jsx)(`button`,{"aria-label":`Copy command`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:d,type:`button`,children:f})]}),t[8]=d,t[9]=f,t[10]=p):p=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Run from the Spinifex repo root. The command builds and registers the node image, then click Recheck.`}),t[11]=v):v=t[11];let y=n?`size-4 animate-spin`:`size-4`,b;t[12]===y?b=t[13]:(b=(0,R.jsx)(h,{className:y}),t[12]=y,t[13]=b);let x;t[14]!==n||t[15]!==r||t[16]!==b?(x=(0,R.jsxs)(_,{disabled:n,onClick:r,size:`sm`,variant:`outline`,children:[b,`Recheck`]}),t[14]=n,t[15]=r,t[16]=b,t[17]=x):x=t[17];let S;return t[18]!==x||t[19]!==p?(S=(0,R.jsx)(`div`,{className:`max-w-2xl rounded-md border border-tactical-amber/40 bg-tactical-amber/5 p-6`,children:(0,R.jsxs)(`div`,{className:`flex items-start gap-3`,children:[o,(0,R.jsxs)(`div`,{className:`space-y-4`,children:[s,p,v,x]})]})}),t[18]=x,t[19]=p,t[20]=S):S=t[20],S}function V(e){let t=o(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function H(e){let t=o(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function U(){let e=x(),t=S(),[n,r]=(0,I.useState)(!1),{data:o}=a(C),{data:c}=a(w),{data:m}=a(D),{data:h}=a(E),g=b(),A=(h.Images??[]).some(F),L=async()=>{r(!0);try{await t.invalidateQueries({queryKey:E.queryKey})}finally{r(!1)}},z=o.Vpcs??[],U=c.Subnets??[],W=m.Roles??[],{control:G,formState:{errors:K,isSubmitting:q},handleSubmit:J,register:ne,setValue:Y,watch:X}=O({resolver:ee(v),defaultValues:{name:``,version:y[0],roleArn:``,vpcId:``,subnetIds:[],bootstrapClusterCreatorAdminPermissions:!0,endpointPublicAccess:!0,endpointPrivateAccess:!1,publicAccessCidrs:[`0.0.0.0/0`]}}),re=X(`vpcId`),Z=X(`subnetIds`),ie=X(`endpointPublicAccess`),Q=X(`publicAccessCidrs`),$=U.filter(e=>e.VpcId===re),ae=(e=``)=>{Y(`vpcId`,e??``,{shouldValidate:!0}),Y(`subnetIds`,[])},oe=e=>{Y(`subnetIds`,Z.includes(e)?Z.filter(t=>t!==e):[...Z,e],{shouldValidate:!0})},se=(e,t)=>{let n=[...Q];n[e]=t,Y(`publicAccessCidrs`,n,{shouldValidate:!0})},ce=()=>Y(`publicAccessCidrs`,[...Q,``],{shouldValidate:!0}),le=e=>Y(`publicAccessCidrs`,Q.filter((t,n)=>n!==e),{shouldValidate:!0});return A?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(s,{to:`/eks/list-clusters`,children:`Clusters`}),(0,R.jsx)(j,{subtitle:`EKS`,title:`Create Cluster`}),g.error&&(0,R.jsx)(i,{error:g.error,msg:`Failed to create cluster`}),(0,R.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:J(async t=>{await g.mutateAsync(t),await e({to:`/eks/list-clusters/$clusterName`,params:{clusterName:t.name}})}),children:[(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:(0,R.jsx)(`label`,{htmlFor:`cluster-name`,children:`Name`})}),(0,R.jsx)(T,{"aria-invalid":!!K.name,id:`cluster-name`,placeholder:`my-cluster`,...ne(`name`)}),(0,R.jsx)(N,{errors:[K.name]})]}),(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:(0,R.jsx)(`label`,{htmlFor:`cluster-version`,children:`Kubernetes version`})}),(0,R.jsx)(k,{control:G,name:`version`,render:({field:e})=>(0,R.jsxs)(p,{onValueChange:e.onChange,value:e.value,children:[(0,R.jsx)(f,{className:`w-full`,id:`cluster-version`,children:(0,R.jsx)(l,{placeholder:`Select version`})}),(0,R.jsx)(d,{children:y.map(e=>(0,R.jsx)(u,{value:e,children:e},e))})]})}),(0,R.jsx)(N,{errors:[K.version]})]}),(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:(0,R.jsx)(`label`,{htmlFor:`cluster-role`,children:`Cluster IAM role`})}),(0,R.jsx)(k,{control:G,name:`roleArn`,render:({field:e})=>(0,R.jsxs)(p,{onValueChange:e.onChange,value:e.value,children:[(0,R.jsx)(f,{"aria-invalid":!!K.roleArn,className:`w-full`,id:`cluster-role`,children:(0,R.jsx)(l,{placeholder:`Select role`})}),(0,R.jsx)(d,{children:W.map(e=>(0,R.jsx)(u,{value:e.Arn??``,children:e.RoleName},e.Arn))})]})}),(0,R.jsx)(N,{errors:[K.roleArn]})]}),(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:(0,R.jsx)(`label`,{htmlFor:`cluster-vpc`,children:`VPC`})}),(0,R.jsx)(k,{control:G,name:`vpcId`,render:({field:e})=>(0,R.jsxs)(p,{onValueChange:e=>ae(e),value:e.value,children:[(0,R.jsx)(f,{"aria-invalid":!!K.vpcId,className:`w-full`,id:`cluster-vpc`,children:(0,R.jsx)(l,{placeholder:`Select VPC`})}),(0,R.jsx)(d,{children:z.map(e=>(0,R.jsx)(u,{value:e.VpcId??``,children:V(e)},e.VpcId))})]})}),(0,R.jsx)(N,{errors:[K.vpcId]})]}),(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:`Subnets (select at least 1)`}),$.length===0?(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,R.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,R.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,R.jsx)(`input`,{"aria-label":`Subnet ${H(e)}`,checked:Z.includes(e.SubnetId??``),onChange:()=>oe(e.SubnetId??``),type:`checkbox`}),(0,R.jsx)(`span`,{className:`font-mono`,children:H(e)})]},e.SubnetId))}),(0,R.jsx)(N,{errors:[K.subnetIds]})]}),(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:`Endpoint access`}),(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Public access exposes the API server on an internet-facing endpoint; private access keeps it reachable only from within the VPC. At least one must be enabled.`}),(0,R.jsx)(k,{control:G,name:`endpointPublicAccess`,render:({field:e})=>(0,R.jsxs)(`label`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,R.jsx)(`input`,{"aria-label":`Enable public access`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Public`]})}),(0,R.jsx)(k,{control:G,name:`endpointPrivateAccess`,render:({field:e})=>(0,R.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,R.jsx)(`input`,{"aria-label":`Enable private access`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Private`]})}),(0,R.jsx)(N,{errors:[K.endpointPublicAccess]}),ie&&(0,R.jsxs)(`div`,{className:`mt-2 space-y-2`,children:[(0,R.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Public access source ranges (CIDR). Defaults to`,` `,(0,R.jsx)(`span`,{className:`font-mono`,children:`0.0.0.0/0`}),`.`]}),Q.map((e,t)=>(0,R.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,R.jsx)(T,{"aria-label":`Public access CIDR ${t+1}`,className:`font-mono`,onChange:e=>se(t,e.target.value),placeholder:`203.0.113.0/24`,value:e}),(0,R.jsx)(_,{onClick:()=>le(t),size:`sm`,type:`button`,variant:`ghost`,children:`Remove`})]},t)),(0,R.jsx)(_,{onClick:ce,size:`sm`,type:`button`,variant:`outline`,children:`Add CIDR`}),(0,R.jsx)(N,{errors:[K.publicAccessCidrs]})]})]}),(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:`Access`}),(0,R.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Authentication mode is `,(0,R.jsx)(`span`,{className:`font-mono`,children:`API`}),` (IAM access entries). The legacy aws-auth ConfigMap is not supported.`]}),(0,R.jsx)(k,{control:G,name:`bootstrapClusterCreatorAdminPermissions`,render:({field:e})=>(0,R.jsxs)(`label`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,R.jsx)(`input`,{"aria-label":`Grant the cluster creator admin permissions`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Grant the cluster creator admin permissions`]})})]}),(0,R.jsx)(te,{isPending:g.isPending,isSubmitting:q,onCancel:async()=>await e({to:`/eks/list-clusters`}),pendingLabel:`Creating…`,submitLabel:`Create Cluster`})]})]}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(s,{to:`/eks/list-clusters`,children:`Clusters`}),(0,R.jsx)(j,{subtitle:`EKS`,title:`Create Cluster`}),(0,R.jsx)(B,{isRechecking:n,onRecheck:L})]})}var W=U;export{W as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{t as a}from"./useSuspenseQuery.js";import{Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./check.js";import{c as l,i as u,n as d,s as f,t as p}from"./select.js";import{t as m}from"./copy.js";import{t as h}from"./rotate-cw.js";import{t as g}from"./triangle-alert.js";import{t as _}from"./button.js";import{c as v,i as y,p as b}from"./eks.js";import{Ir as x,Lr as S,Lt as C,Nt as w,Rn as T,pt as E,rt as D}from"./index.js";import{i as O,n as k,t as ee}from"./zod.js";import{t as A}from"./use-copy-to-clipboard.js";import{t as te}from"./form-actions.js";import{t as j}from"./page-heading.js";import{a as M,r as N,t as P}from"./field.js";import{t as F}from"./system-managed.js";var I=t(n(),1),L=r(),R=e(),z=`make import-eks-node-image`;function B(e){let t=(0,L.c)(21),{isRechecking:n,onRecheck:r}=e,{copied:i,copy:a}=A(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,R.jsx)(g,{className:`mt-0.5 size-5 shrink-0 text-tactical-amber`}),t[0]=o):o=t[0];let s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,R.jsxs)(`div`,{className:`space-y-1`,children:[(0,R.jsx)(`h2`,{className:`text-sm font-semibold text-foreground`,children:`EKS system image not found`}),(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`EKS clusters boot a Spinifex-managed node image (K3s) that is not shipped with the platform. Install it on the host before creating a cluster.`})]}),t[1]=s):s=t[1];let l,u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,R.jsx)(`span`,{className:`text-muted-foreground select-none`,children:`$`}),u=(0,R.jsx)(`span`,{className:`flex-1 text-foreground`,children:z}),t[2]=l,t[3]=u):(l=t[2],u=t[3]);let d;t[4]===a?d=t[5]:(d=()=>void a(z),t[4]=a,t[5]=d);let f;t[6]===i?f=t[7]:(f=i?(0,R.jsx)(c,{className:`size-3.5 text-tactical-green`}):(0,R.jsx)(m,{className:`size-3.5`}),t[6]=i,t[7]=f);let p;t[8]!==d||t[9]!==f?(p=(0,R.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-background px-3 py-2 font-mono text-xs`,children:[l,u,(0,R.jsx)(`button`,{"aria-label":`Copy command`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:d,type:`button`,children:f})]}),t[8]=d,t[9]=f,t[10]=p):p=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Run from the Spinifex repo root. The command builds and registers the node image, then click Recheck.`}),t[11]=v):v=t[11];let y=n?`size-4 animate-spin`:`size-4`,b;t[12]===y?b=t[13]:(b=(0,R.jsx)(h,{className:y}),t[12]=y,t[13]=b);let x;t[14]!==n||t[15]!==r||t[16]!==b?(x=(0,R.jsxs)(_,{disabled:n,onClick:r,size:`sm`,variant:`outline`,children:[b,`Recheck`]}),t[14]=n,t[15]=r,t[16]=b,t[17]=x):x=t[17];let S;return t[18]!==x||t[19]!==p?(S=(0,R.jsx)(`div`,{className:`max-w-2xl rounded-md border border-tactical-amber/40 bg-tactical-amber/5 p-6`,children:(0,R.jsxs)(`div`,{className:`flex items-start gap-3`,children:[o,(0,R.jsxs)(`div`,{className:`space-y-4`,children:[s,p,v,x]})]})}),t[18]=x,t[19]=p,t[20]=S):S=t[20],S}function V(e){let t=o(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function H(e){let t=o(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function U(){let e=x(),t=S(),[n,r]=(0,I.useState)(!1),{data:o}=a(C),{data:c}=a(w),{data:m}=a(D),{data:h}=a(E),g=b(),A=(h.Images??[]).some(F),L=async()=>{r(!0);try{await t.invalidateQueries({queryKey:E.queryKey})}finally{r(!1)}},z=o.Vpcs??[],U=c.Subnets??[],W=m.Roles??[],{control:G,formState:{errors:K,isSubmitting:q},handleSubmit:J,register:ne,setValue:Y,watch:X}=O({resolver:ee(v),defaultValues:{name:``,version:y[0],roleArn:``,vpcId:``,subnetIds:[],bootstrapClusterCreatorAdminPermissions:!0,endpointPublicAccess:!0,endpointPrivateAccess:!1,publicAccessCidrs:[`0.0.0.0/0`]}}),re=X(`vpcId`),Z=X(`subnetIds`),ie=X(`endpointPublicAccess`),Q=X(`publicAccessCidrs`),$=U.filter(e=>e.VpcId===re),ae=(e=``)=>{Y(`vpcId`,e??``,{shouldValidate:!0}),Y(`subnetIds`,[])},oe=e=>{Y(`subnetIds`,Z.includes(e)?Z.filter(t=>t!==e):[...Z,e],{shouldValidate:!0})},se=(e,t)=>{let n=[...Q];n[e]=t,Y(`publicAccessCidrs`,n,{shouldValidate:!0})},ce=()=>Y(`publicAccessCidrs`,[...Q,``],{shouldValidate:!0}),le=e=>Y(`publicAccessCidrs`,Q.filter((t,n)=>n!==e),{shouldValidate:!0});return A?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(s,{to:`/eks/list-clusters`,children:`Clusters`}),(0,R.jsx)(j,{subtitle:`EKS`,title:`Create Cluster`}),g.error&&(0,R.jsx)(i,{error:g.error,msg:`Failed to create cluster`}),(0,R.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:J(async t=>{await g.mutateAsync(t),await e({to:`/eks/list-clusters/$clusterName`,params:{clusterName:t.name}})}),children:[(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:(0,R.jsx)(`label`,{htmlFor:`cluster-name`,children:`Name`})}),(0,R.jsx)(T,{"aria-invalid":!!K.name,id:`cluster-name`,placeholder:`my-cluster`,...ne(`name`)}),(0,R.jsx)(N,{errors:[K.name]})]}),(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:(0,R.jsx)(`label`,{htmlFor:`cluster-version`,children:`Kubernetes version`})}),(0,R.jsx)(k,{control:G,name:`version`,render:({field:e})=>(0,R.jsxs)(p,{onValueChange:e.onChange,value:e.value,children:[(0,R.jsx)(f,{className:`w-full`,id:`cluster-version`,children:(0,R.jsx)(l,{placeholder:`Select version`})}),(0,R.jsx)(d,{children:y.map(e=>(0,R.jsx)(u,{value:e,children:e},e))})]})}),(0,R.jsx)(N,{errors:[K.version]})]}),(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:(0,R.jsx)(`label`,{htmlFor:`cluster-role`,children:`Cluster IAM role`})}),(0,R.jsx)(k,{control:G,name:`roleArn`,render:({field:e})=>(0,R.jsxs)(p,{onValueChange:e.onChange,value:e.value,children:[(0,R.jsx)(f,{"aria-invalid":!!K.roleArn,className:`w-full`,id:`cluster-role`,children:(0,R.jsx)(l,{placeholder:`Select role`})}),(0,R.jsx)(d,{children:W.map(e=>(0,R.jsx)(u,{value:e.Arn??``,children:e.RoleName},e.Arn))})]})}),(0,R.jsx)(N,{errors:[K.roleArn]})]}),(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:(0,R.jsx)(`label`,{htmlFor:`cluster-vpc`,children:`VPC`})}),(0,R.jsx)(k,{control:G,name:`vpcId`,render:({field:e})=>(0,R.jsxs)(p,{onValueChange:e=>ae(e),value:e.value,children:[(0,R.jsx)(f,{"aria-invalid":!!K.vpcId,className:`w-full`,id:`cluster-vpc`,children:(0,R.jsx)(l,{placeholder:`Select VPC`})}),(0,R.jsx)(d,{children:z.map(e=>(0,R.jsx)(u,{value:e.VpcId??``,children:V(e)},e.VpcId))})]})}),(0,R.jsx)(N,{errors:[K.vpcId]})]}),(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:`Subnets (select at least 1)`}),$.length===0?(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,R.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,R.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,R.jsx)(`input`,{"aria-label":`Subnet ${H(e)}`,checked:Z.includes(e.SubnetId??``),onChange:()=>oe(e.SubnetId??``),type:`checkbox`}),(0,R.jsx)(`span`,{className:`font-mono`,children:H(e)})]},e.SubnetId))}),(0,R.jsx)(N,{errors:[K.subnetIds]})]}),(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:`Endpoint access`}),(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Public access exposes the API server on an internet-facing endpoint; private access keeps it reachable only from within the VPC. At least one must be enabled.`}),(0,R.jsx)(k,{control:G,name:`endpointPublicAccess`,render:({field:e})=>(0,R.jsxs)(`label`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,R.jsx)(`input`,{"aria-label":`Enable public access`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Public`]})}),(0,R.jsx)(k,{control:G,name:`endpointPrivateAccess`,render:({field:e})=>(0,R.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,R.jsx)(`input`,{"aria-label":`Enable private access`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Private`]})}),(0,R.jsx)(N,{errors:[K.endpointPublicAccess]}),ie&&(0,R.jsxs)(`div`,{className:`mt-2 space-y-2`,children:[(0,R.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Public access source ranges (CIDR). Defaults to`,` `,(0,R.jsx)(`span`,{className:`font-mono`,children:`0.0.0.0/0`}),`.`]}),Q.map((e,t)=>(0,R.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,R.jsx)(T,{"aria-label":`Public access CIDR ${t+1}`,className:`font-mono`,onChange:e=>se(t,e.target.value),placeholder:`203.0.113.0/24`,value:e}),(0,R.jsx)(_,{onClick:()=>le(t),size:`sm`,type:`button`,variant:`ghost`,children:`Remove`})]},t)),(0,R.jsx)(_,{onClick:ce,size:`sm`,type:`button`,variant:`outline`,children:`Add CIDR`}),(0,R.jsx)(N,{errors:[K.publicAccessCidrs]})]})]}),(0,R.jsxs)(P,{children:[(0,R.jsx)(M,{children:`Access`}),(0,R.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Authentication mode is `,(0,R.jsx)(`span`,{className:`font-mono`,children:`API`}),` (IAM access entries). The legacy aws-auth ConfigMap is not supported.`]}),(0,R.jsx)(k,{control:G,name:`bootstrapClusterCreatorAdminPermissions`,render:({field:e})=>(0,R.jsxs)(`label`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,R.jsx)(`input`,{"aria-label":`Grant the cluster creator admin permissions`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Grant the cluster creator admin permissions`]})})]}),(0,R.jsx)(te,{isPending:g.isPending,isSubmitting:q,onCancel:async()=>await e({to:`/eks/list-clusters`}),pendingLabel:`Creating…`,submitLabel:`Create Cluster`})]})]}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(s,{to:`/eks/list-clusters`,children:`Clusters`}),(0,R.jsx)(j,{subtitle:`EKS`,title:`Create Cluster`}),(0,R.jsx)(B,{isRechecking:n,onRecheck:L})]})}var W=U;export{W as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js b/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js index f9752fd26..10c4633fc 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js @@ -1,4 +1,4 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{Wt as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./plus.js";import{t as p}from"./cli-command-panel.js";import{t as ee}from"./trash-2.js";import{t as m}from"./button.js";import{t as h}from"./certificate-import-dialog.js";import{n as g}from"./elbv2.js";import{G as _,Ir as v,Lt as y,Nt as b,Rn as x,U as te,kt as ne,z as re}from"./index.js";import{i as S,n as C,t as w}from"./zod.js";import{t as ie}from"./form-actions.js";import{t as ae}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{t as oe}from"./target-group-form.js";import{a as se,c as ce,o as le,r as ue,s as O,t as de}from"./elbv22.js";var k=t(n(),1),A=e();function fe(e){let t=a(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function j(e){let t=a(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function pe(e){return e===`TLS`||e===`TCP`?`TCP`:e===`UDP`?`UDP`:e===`TCP_UDP`?`TCP_UDP`:`HTTP`}function me(e){let t=new Map;for(let n of e){let e=n.AvailabilityZone??`unknown`,r=t.get(e)??[];r.push(n),t.set(e,r)}return[...t.entries()].toSorted((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>({az:e,subnets:t}))}function M(){let e=v(),{data:t}=i(y),{data:n}=i(b),{data:a}=i(ne),{data:M}=i(te),{data:N}=i(_),{data:ge}=i(re),P=g(),[F,I]=(0,k.useState)(null),[_e,L]=(0,k.useState)(!1),R=t.Vpcs??[],ve=n.Subnets??[],ye=a.SecurityGroups??[],be=M.TargetGroups??[],z=N.CertificateSummaryList??[],xe=ge.SslPolicies??[],Se=S({resolver:w(ue),defaultValues:{name:``,type:`application`,scheme:`internet-facing`,vpcId:R[0]?.VpcId??``,subnetIds:[],securityGroupIds:[],tags:[],listener:{protocol:`HTTP`,port:80,targetGroupMode:`new`,existingTargetGroupArn:``,certificateArn:void 0,sslPolicy:void 0}}}),B=S({resolver:w(se),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:R[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:Ce,register:V,watch:H,control:U,setValue:W,getValues:G,formState:{errors:K,isSubmitting:we}}=Se,q=H(`vpcId`),Te=H(`subnetIds`),Ee=H(`securityGroupIds`),J=H(`type`),Y=H(`listener.protocol`),X=H(`listener.targetGroupMode`),De=H(`tags`),Z=J===`network`,Oe=O(Y),ke=ce(J),Ae=Z?[`TCP`,`UDP`,`TLS`,`TCP_UDP`]:[`HTTP`,`HTTPS`],je=ve.filter(e=>e.VpcId===q),Q=ye.filter(e=>e.VpcId===q),$=be.filter(e=>e.VpcId===q),Me=e=>{let t=pe(e);B.setValue(`protocol`,t),B.setValue(`healthCheck.protocol`,t===`HTTP`?`HTTP`:`TCP`)},Ne=e=>{W(`type`,e);let t=le(e);W(`listener.protocol`,t),W(`listener.port`,80),W(`listener.certificateArn`,void 0),W(`listener.sslPolicy`,void 0),e===`network`&&W(`securityGroupIds`,[]),Me(t)},Pe=e=>{W(`listener.protocol`,e);let t=G(`listener.port`);O(e)?(t===80&&W(`listener.port`,443),e===`HTTPS`&&!G(`listener.sslPolicy`)&&W(`listener.sslPolicy`,de)):(t===443&&W(`listener.port`,80),W(`listener.certificateArn`,void 0),W(`listener.sslPolicy`,void 0)),Me(e)},Fe=(e=``)=>{let t=e??``;W(`vpcId`,t,{shouldValidate:!0}),W(`subnetIds`,[],{shouldValidate:!0}),W(`securityGroupIds`,[]),W(`listener.existingTargetGroupArn`,``),B.setValue(`vpcId`,t)},Ie=e=>{let t=G(`subnetIds`);W(`subnetIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})},Le=e=>{let t=G(`securityGroupIds`);W(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e])},Re=async t=>{I(null);let n;if(t.listener.targetGroupMode===`new`){if(!await B.trigger())return;n=B.getValues()}let r=await P.mutateAsync({lb:{name:t.name,type:t.type,scheme:t.scheme,vpcId:t.vpcId,subnetIds:t.subnetIds,securityGroupIds:t.securityGroupIds,tags:t.tags},listener:{protocol:t.listener.protocol,port:t.listener.port,targetGroupMode:t.listener.targetGroupMode,existingTargetGroupArn:t.listener.existingTargetGroupArn,certificateArn:t.listener.certificateArn,sslPolicy:t.listener.sslPolicy,newTargetGroup:n}});I(r),!r.error&&r.loadBalancerArn&&e({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(r.loadBalancerArn)}})},ze=me(je);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(o,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,A.jsx)(ae,{title:`Create Load Balancer`}),P.error&&(0,A.jsx)(r,{error:P.error,msg:`Failed to create load balancer`}),F?.error&&(0,A.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,A.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,F.failedStep]}),(0,A.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:F.error.message}),F.created.length>0&&(0,A.jsxs)(`div`,{className:`mt-3`,children:[(0,A.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources (clean up manually if needed):`}),(0,A.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:F.created.map((e,t)=>(0,A.jsxs)(`li`,{children:[e.type,`: `,e.id??`(created)`]},t))})]})]}),(0,A.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:Ce(Re),children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lb-name`,children:`Name`})}),(0,A.jsx)(x,{"aria-invalid":!!K.name,id:`lb-name`,placeholder:`my-load-balancer`,...V(`name`)}),(0,A.jsx)(E,{errors:[K.name]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Type`}),(0,A.jsx)(C,{control:U,name:`type`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Application Load Balancer`,checked:e.value===`application`,name:`lb-type`,onChange:()=>Ne(`application`),type:`radio`}),`Application (ALB)`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Network Load Balancer`,checked:e.value===`network`,name:`lb-type`,onChange:()=>Ne(`network`),type:`radio`}),`Network (NLB)`]})]})})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Scheme`}),(0,A.jsx)(C,{control:U,name:`scheme`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Internet-facing`,checked:e.value===`internet-facing`,name:`scheme`,onChange:()=>e.onChange(`internet-facing`),type:`radio`}),`Internet-facing`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Internal`,checked:e.value===`internal`,name:`scheme`,onChange:()=>e.onChange(`internal`),type:`radio`}),`Internal`]})]})})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lb-vpc`,children:`VPC`})}),(0,A.jsx)(C,{control:U,name:`vpcId`,render:({field:e})=>(0,A.jsxs)(d,{onValueChange:e=>Fe(e),value:e.value??``,children:[(0,A.jsx)(u,{"aria-invalid":!!K.vpcId,className:`w-full`,id:`lb-vpc`,children:(0,A.jsx)(s,{placeholder:`Select VPC`})}),(0,A.jsx)(l,{children:R.map(e=>(0,A.jsx)(c,{value:e.VpcId??``,children:fe(e)},e.VpcId))})]})}),(0,A.jsx)(E,{errors:[K.vpcId]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Subnets (select at least 1)`}),ze.length===0?(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,A.jsx)(`div`,{className:`space-y-3`,children:ze.map(e=>(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.az}),(0,A.jsx)(`div`,{className:`space-y-1`,children:e.subnets.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Subnet ${j(e)}`,checked:Te.includes(e.SubnetId??``),onChange:()=>Ie(e.SubnetId??``),type:`checkbox`}),(0,A.jsx)(`span`,{className:`font-mono`,children:j(e)})]},e.SubnetId))})]},e.az))}),(0,A.jsx)(E,{errors:[K.subnetIds]})]}),!Z&&(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Security groups`}),Q.length===0?(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the selected VPC.`}):(0,A.jsx)(`div`,{className:`space-y-1`,children:Q.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Ee.includes(e.GroupId??``),onChange:()=>Le(e.GroupId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Tags`}),(0,A.jsxs)(`div`,{className:`space-y-2`,children:[De.map((e,t)=>(0,A.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(x,{placeholder:`Key`,...V(`tags.${t}.key`)}),(0,A.jsx)(x,{placeholder:`Value`,...V(`tags.${t}.value`)}),(0,A.jsx)(m,{onClick:()=>W(`tags`,G(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,A.jsx)(ee,{className:`size-3.5`})})]},t)),(0,A.jsxs)(m,{onClick:()=>W(`tags`,[...G(`tags`),{key:``,value:``}]),size:`sm`,type:`button`,variant:`outline`,children:[(0,A.jsx)(f,{className:`size-3.5`}),`Add tag`]})]})]}),(0,A.jsxs)(`div`,{className:`space-y-4 rounded-md border bg-card p-4`,children:[(0,A.jsx)(`h2`,{className:`text-sm font-semibold`,children:`First listener & default target group`}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),(0,A.jsx)(C,{control:U,name:`listener.protocol`,render:({field:e})=>(0,A.jsxs)(d,{onValueChange:e=>{e&&Pe(e)},value:e.value,children:[(0,A.jsx)(u,{className:`w-full`,id:`listener-protocol`,children:(0,A.jsx)(s,{})}),(0,A.jsx)(l,{children:ke.map(e=>(0,A.jsx)(c,{value:e,children:e},e))})]})})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),(0,A.jsx)(x,{"aria-invalid":!!K.listener?.port,id:`listener-port`,inputMode:`numeric`,type:`number`,...V(`listener.port`,{valueAsNumber:!0})}),(0,A.jsx)(E,{errors:[K.listener?.port]})]}),Oe&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,A.jsx)(C,{control:U,name:`listener.certificateArn`,render:({field:e})=>(0,A.jsxs)(d,{onValueChange:e.onChange,value:e.value??``,children:[(0,A.jsx)(u,{"aria-invalid":!!K.listener?.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,A.jsx)(s,{placeholder:`Select certificate`})}),(0,A.jsx)(l,{children:z.map(e=>(0,A.jsx)(c,{value:e.CertificateArn??``,children:e.DomainName??e.CertificateArn?.split(`/`).pop()},e.CertificateArn))})]})}),(0,A.jsx)(E,{errors:[K.listener?.certificateArn]}),(0,A.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[z.length===0&&(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,A.jsx)(m,{className:`ml-auto`,onClick:()=>L(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),Y===`HTTPS`&&(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,A.jsx)(C,{control:U,name:`listener.sslPolicy`,render:({field:e})=>(0,A.jsxs)(d,{onValueChange:e.onChange,value:e.value??`ELBSecurityPolicy-2016-08`,children:[(0,A.jsx)(u,{className:`w-full`,id:`listener-ssl-policy`,children:(0,A.jsx)(s,{})}),(0,A.jsx)(l,{children:xe.map(e=>(0,A.jsx)(c,{value:e.Name??``,children:e.Name},e.Name))})]})})]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Default target group`}),(0,A.jsx)(C,{control:U,name:`listener.targetGroupMode`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Create new target group`,checked:e.value===`new`,name:`tg-mode`,onChange:()=>e.onChange(`new`),type:`radio`}),`Create new`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Use existing target group`,checked:e.value===`existing`,name:`tg-mode`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Use existing`]})]})})]}),X===`existing`&&(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`tg-existing`,children:`Target group`})}),(0,A.jsx)(C,{control:U,name:`listener.existingTargetGroupArn`,render:({field:e})=>(0,A.jsxs)(d,{onValueChange:e.onChange,value:e.value??``,children:[(0,A.jsx)(u,{"aria-invalid":!!K.listener?.existingTargetGroupArn,className:`w-full`,id:`tg-existing`,children:(0,A.jsx)(s,{placeholder:`Select target group`})}),(0,A.jsx)(l,{children:$.map(e=>(0,A.jsxs)(c,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,A.jsx)(E,{errors:[K.listener?.existingTargetGroupArn]}),$.length===0&&(0,A.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups in this VPC. Choose “Create new” instead.`})]}),X===`new`&&(0,A.jsx)(`div`,{className:`space-y-4 border-l-2 border-muted pl-4`,children:(0,A.jsx)(oe,{allowedProtocols:Ae,form:B,vpcs:R})})]}),(0,A.jsx)(h,{onImported:e=>W(`listener.certificateArn`,e,{shouldValidate:!0}),onOpenChange:L,open:_e}),(0,A.jsx)(p,{commands:he(H,B.watch)}),(0,A.jsx)(ie,{isPending:P.isPending,isSubmitting:we,onCancel:async()=>await e({to:`/ec2/describe-load-balancers`}),pendingLabel:`Creating…`,submitLabel:`Create Load Balancer`})]})]})}function he(e,t){let n=t=>{let n=e(t);return typeof n==`string`?n:``},r=t=>{let n=e(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]},i=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},a=n(`name`)||``,o=n(`type`)||`application`,s=n(`scheme`)||`internet-facing`,c=r(`subnetIds`),l=r(`securityGroupIds`),u=n(`listener.protocol`)||`HTTP`,d=i(`listener.port`)??80,f=n(`listener.certificateArn`),p=n(`listener.sslPolicy`),ee=n(`listener.targetGroupMode`),m=n(`listener.existingTargetGroupArn`),h=[],g={type:`comment`,value:o===`network`?`# Create NLB with listener and default target group +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./plus.js";import{t as p}from"./cli-command-panel.js";import{t as ee}from"./trash-2.js";import{t as m}from"./button.js";import{t as h}from"./certificate-import-dialog.js";import{n as g}from"./elbv2.js";import{G as _,Ir as v,Lt as y,Nt as b,Rn as x,U as te,kt as ne,z as re}from"./index.js";import{i as S,n as C,t as w}from"./zod.js";import{t as ie}from"./form-actions.js";import{t as ae}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{t as oe}from"./target-group-form.js";import{a as se,c as ce,o as le,r as ue,s as O,t as de}from"./elbv22.js";var k=t(n(),1),A=e();function fe(e){let t=a(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function j(e){let t=a(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function pe(e){return e===`TLS`||e===`TCP`?`TCP`:e===`UDP`?`UDP`:e===`TCP_UDP`?`TCP_UDP`:`HTTP`}function me(e){let t=new Map;for(let n of e){let e=n.AvailabilityZone??`unknown`,r=t.get(e)??[];r.push(n),t.set(e,r)}return[...t.entries()].toSorted((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>({az:e,subnets:t}))}function M(){let e=v(),{data:t}=i(y),{data:n}=i(b),{data:a}=i(ne),{data:M}=i(te),{data:N}=i(_),{data:ge}=i(re),P=g(),[F,I]=(0,k.useState)(null),[_e,L]=(0,k.useState)(!1),R=t.Vpcs??[],ve=n.Subnets??[],ye=a.SecurityGroups??[],be=M.TargetGroups??[],z=N.CertificateSummaryList??[],xe=ge.SslPolicies??[],Se=S({resolver:w(ue),defaultValues:{name:``,type:`application`,scheme:`internet-facing`,vpcId:R[0]?.VpcId??``,subnetIds:[],securityGroupIds:[],tags:[],listener:{protocol:`HTTP`,port:80,targetGroupMode:`new`,existingTargetGroupArn:``,certificateArn:void 0,sslPolicy:void 0}}}),B=S({resolver:w(se),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:R[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:Ce,register:V,watch:H,control:U,setValue:W,getValues:G,formState:{errors:K,isSubmitting:we}}=Se,q=H(`vpcId`),Te=H(`subnetIds`),Ee=H(`securityGroupIds`),J=H(`type`),Y=H(`listener.protocol`),X=H(`listener.targetGroupMode`),De=H(`tags`),Z=J===`network`,Oe=O(Y),ke=ce(J),Ae=Z?[`TCP`,`UDP`,`TLS`,`TCP_UDP`]:[`HTTP`,`HTTPS`],je=ve.filter(e=>e.VpcId===q),Q=ye.filter(e=>e.VpcId===q),$=be.filter(e=>e.VpcId===q),Me=e=>{let t=pe(e);B.setValue(`protocol`,t),B.setValue(`healthCheck.protocol`,t===`HTTP`?`HTTP`:`TCP`)},Ne=e=>{W(`type`,e);let t=le(e);W(`listener.protocol`,t),W(`listener.port`,80),W(`listener.certificateArn`,void 0),W(`listener.sslPolicy`,void 0),e===`network`&&W(`securityGroupIds`,[]),Me(t)},Pe=e=>{W(`listener.protocol`,e);let t=G(`listener.port`);O(e)?(t===80&&W(`listener.port`,443),e===`HTTPS`&&!G(`listener.sslPolicy`)&&W(`listener.sslPolicy`,de)):(t===443&&W(`listener.port`,80),W(`listener.certificateArn`,void 0),W(`listener.sslPolicy`,void 0)),Me(e)},Fe=(e=``)=>{let t=e??``;W(`vpcId`,t,{shouldValidate:!0}),W(`subnetIds`,[],{shouldValidate:!0}),W(`securityGroupIds`,[]),W(`listener.existingTargetGroupArn`,``),B.setValue(`vpcId`,t)},Ie=e=>{let t=G(`subnetIds`);W(`subnetIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})},Le=e=>{let t=G(`securityGroupIds`);W(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e])},Re=async t=>{I(null);let n;if(t.listener.targetGroupMode===`new`){if(!await B.trigger())return;n=B.getValues()}let r=await P.mutateAsync({lb:{name:t.name,type:t.type,scheme:t.scheme,vpcId:t.vpcId,subnetIds:t.subnetIds,securityGroupIds:t.securityGroupIds,tags:t.tags},listener:{protocol:t.listener.protocol,port:t.listener.port,targetGroupMode:t.listener.targetGroupMode,existingTargetGroupArn:t.listener.existingTargetGroupArn,certificateArn:t.listener.certificateArn,sslPolicy:t.listener.sslPolicy,newTargetGroup:n}});I(r),!r.error&&r.loadBalancerArn&&e({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(r.loadBalancerArn)}})},ze=me(je);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(o,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,A.jsx)(ae,{title:`Create Load Balancer`}),P.error&&(0,A.jsx)(r,{error:P.error,msg:`Failed to create load balancer`}),F?.error&&(0,A.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,A.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,F.failedStep]}),(0,A.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:F.error.message}),F.created.length>0&&(0,A.jsxs)(`div`,{className:`mt-3`,children:[(0,A.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources (clean up manually if needed):`}),(0,A.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:F.created.map((e,t)=>(0,A.jsxs)(`li`,{children:[e.type,`: `,e.id??`(created)`]},t))})]})]}),(0,A.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:Ce(Re),children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lb-name`,children:`Name`})}),(0,A.jsx)(x,{"aria-invalid":!!K.name,id:`lb-name`,placeholder:`my-load-balancer`,...V(`name`)}),(0,A.jsx)(E,{errors:[K.name]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Type`}),(0,A.jsx)(C,{control:U,name:`type`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Application Load Balancer`,checked:e.value===`application`,name:`lb-type`,onChange:()=>Ne(`application`),type:`radio`}),`Application (ALB)`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Network Load Balancer`,checked:e.value===`network`,name:`lb-type`,onChange:()=>Ne(`network`),type:`radio`}),`Network (NLB)`]})]})})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Scheme`}),(0,A.jsx)(C,{control:U,name:`scheme`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Internet-facing`,checked:e.value===`internet-facing`,name:`scheme`,onChange:()=>e.onChange(`internet-facing`),type:`radio`}),`Internet-facing`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Internal`,checked:e.value===`internal`,name:`scheme`,onChange:()=>e.onChange(`internal`),type:`radio`}),`Internal`]})]})})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lb-vpc`,children:`VPC`})}),(0,A.jsx)(C,{control:U,name:`vpcId`,render:({field:e})=>(0,A.jsxs)(d,{onValueChange:e=>Fe(e),value:e.value??``,children:[(0,A.jsx)(u,{"aria-invalid":!!K.vpcId,className:`w-full`,id:`lb-vpc`,children:(0,A.jsx)(s,{placeholder:`Select VPC`})}),(0,A.jsx)(l,{children:R.map(e=>(0,A.jsx)(c,{value:e.VpcId??``,children:fe(e)},e.VpcId))})]})}),(0,A.jsx)(E,{errors:[K.vpcId]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Subnets (select at least 1)`}),ze.length===0?(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,A.jsx)(`div`,{className:`space-y-3`,children:ze.map(e=>(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.az}),(0,A.jsx)(`div`,{className:`space-y-1`,children:e.subnets.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Subnet ${j(e)}`,checked:Te.includes(e.SubnetId??``),onChange:()=>Ie(e.SubnetId??``),type:`checkbox`}),(0,A.jsx)(`span`,{className:`font-mono`,children:j(e)})]},e.SubnetId))})]},e.az))}),(0,A.jsx)(E,{errors:[K.subnetIds]})]}),!Z&&(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Security groups`}),Q.length===0?(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the selected VPC.`}):(0,A.jsx)(`div`,{className:`space-y-1`,children:Q.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Ee.includes(e.GroupId??``),onChange:()=>Le(e.GroupId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Tags`}),(0,A.jsxs)(`div`,{className:`space-y-2`,children:[De.map((e,t)=>(0,A.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(x,{placeholder:`Key`,...V(`tags.${t}.key`)}),(0,A.jsx)(x,{placeholder:`Value`,...V(`tags.${t}.value`)}),(0,A.jsx)(m,{onClick:()=>W(`tags`,G(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,A.jsx)(ee,{className:`size-3.5`})})]},t)),(0,A.jsxs)(m,{onClick:()=>W(`tags`,[...G(`tags`),{key:``,value:``}]),size:`sm`,type:`button`,variant:`outline`,children:[(0,A.jsx)(f,{className:`size-3.5`}),`Add tag`]})]})]}),(0,A.jsxs)(`div`,{className:`space-y-4 rounded-md border bg-card p-4`,children:[(0,A.jsx)(`h2`,{className:`text-sm font-semibold`,children:`First listener & default target group`}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),(0,A.jsx)(C,{control:U,name:`listener.protocol`,render:({field:e})=>(0,A.jsxs)(d,{onValueChange:e=>{e&&Pe(e)},value:e.value,children:[(0,A.jsx)(u,{className:`w-full`,id:`listener-protocol`,children:(0,A.jsx)(s,{})}),(0,A.jsx)(l,{children:ke.map(e=>(0,A.jsx)(c,{value:e,children:e},e))})]})})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),(0,A.jsx)(x,{"aria-invalid":!!K.listener?.port,id:`listener-port`,inputMode:`numeric`,type:`number`,...V(`listener.port`,{valueAsNumber:!0})}),(0,A.jsx)(E,{errors:[K.listener?.port]})]}),Oe&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,A.jsx)(C,{control:U,name:`listener.certificateArn`,render:({field:e})=>(0,A.jsxs)(d,{onValueChange:e.onChange,value:e.value??``,children:[(0,A.jsx)(u,{"aria-invalid":!!K.listener?.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,A.jsx)(s,{placeholder:`Select certificate`})}),(0,A.jsx)(l,{children:z.map(e=>(0,A.jsx)(c,{value:e.CertificateArn??``,children:e.DomainName??e.CertificateArn?.split(`/`).pop()},e.CertificateArn))})]})}),(0,A.jsx)(E,{errors:[K.listener?.certificateArn]}),(0,A.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[z.length===0&&(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,A.jsx)(m,{className:`ml-auto`,onClick:()=>L(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),Y===`HTTPS`&&(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,A.jsx)(C,{control:U,name:`listener.sslPolicy`,render:({field:e})=>(0,A.jsxs)(d,{onValueChange:e.onChange,value:e.value??`ELBSecurityPolicy-2016-08`,children:[(0,A.jsx)(u,{className:`w-full`,id:`listener-ssl-policy`,children:(0,A.jsx)(s,{})}),(0,A.jsx)(l,{children:xe.map(e=>(0,A.jsx)(c,{value:e.Name??``,children:e.Name},e.Name))})]})})]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:`Default target group`}),(0,A.jsx)(C,{control:U,name:`listener.targetGroupMode`,render:({field:e})=>(0,A.jsxs)(`div`,{className:`flex gap-4`,children:[(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Create new target group`,checked:e.value===`new`,name:`tg-mode`,onChange:()=>e.onChange(`new`),type:`radio`}),`Create new`]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{"aria-label":`Use existing target group`,checked:e.value===`existing`,name:`tg-mode`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Use existing`]})]})})]}),X===`existing`&&(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`tg-existing`,children:`Target group`})}),(0,A.jsx)(C,{control:U,name:`listener.existingTargetGroupArn`,render:({field:e})=>(0,A.jsxs)(d,{onValueChange:e.onChange,value:e.value??``,children:[(0,A.jsx)(u,{"aria-invalid":!!K.listener?.existingTargetGroupArn,className:`w-full`,id:`tg-existing`,children:(0,A.jsx)(s,{placeholder:`Select target group`})}),(0,A.jsx)(l,{children:$.map(e=>(0,A.jsxs)(c,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,A.jsx)(E,{errors:[K.listener?.existingTargetGroupArn]}),$.length===0&&(0,A.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups in this VPC. Choose “Create new” instead.`})]}),X===`new`&&(0,A.jsx)(`div`,{className:`space-y-4 border-l-2 border-muted pl-4`,children:(0,A.jsx)(oe,{allowedProtocols:Ae,form:B,vpcs:R})})]}),(0,A.jsx)(h,{onImported:e=>W(`listener.certificateArn`,e,{shouldValidate:!0}),onOpenChange:L,open:_e}),(0,A.jsx)(p,{commands:he(H,B.watch)}),(0,A.jsx)(ie,{isPending:P.isPending,isSubmitting:we,onCancel:async()=>await e({to:`/ec2/describe-load-balancers`}),pendingLabel:`Creating…`,submitLabel:`Create Load Balancer`})]})]})}function he(e,t){let n=t=>{let n=e(t);return typeof n==`string`?n:``},r=t=>{let n=e(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]},i=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},a=n(`name`)||``,o=n(`type`)||`application`,s=n(`scheme`)||`internet-facing`,c=r(`subnetIds`),l=r(`securityGroupIds`),u=n(`listener.protocol`)||`HTTP`,d=i(`listener.port`)??80,f=n(`listener.certificateArn`),p=n(`listener.sslPolicy`),ee=n(`listener.targetGroupMode`),m=n(`listener.existingTargetGroupArn`),h=[],g={type:`comment`,value:o===`network`?`# Create NLB with listener and default target group `:`# Create ALB with listener and default target group diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js b/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js index 8a4ae1ac1..80bf5c5bf 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{vr as ee}from"./awsClient.js";import{Wt as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as te,s as ne,t as c}from"./select.js";import{t as re}from"./cli-command-panel.js";import{m as ie}from"./ec2.js";import{Ir as ae,Nt as oe,Rn as se,lt as ce}from"./index.js";import{a as le,i as ue,n as de,t as fe}from"./zod.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as l,r as he,t as u}from"./field.js";import{s as ge}from"./ec22.js";var _e=t(),d=e();function f(){let e=(0,_e.c)(70),t=ae(),{data:i}=r(oe),{data:s}=r(ce),f=ie(),p;e[0]===i.Subnets?p=e[1]:(p=i.Subnets??[],e[0]=i.Subnets,e[1]=p);let m=p,h;e[2]===m?h=e[3]:(h=m.filter(xe),e[2]=m,e[3]=h);let Ce=h,g=Ce.length>0?Ce:m,_;e[4]===s.Addresses?_=e[5]:(_=s.Addresses??[],e[4]=s.Addresses,e[5]=_);let v;e[6]===_?v=e[7]:(v=_.filter(be),e[6]=_,e[7]=v);let y=v,b;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:fe(ge),defaultValues:{subnetId:``,allocationId:``,name:``}},e[8]=b):b=e[8];let{control:x,handleSubmit:S,register:C,formState:we}=ue(b),{errors:w,isSubmitting:T}=we,E;e[9]===x?E=e[10]:(E={control:x},e[9]=x,e[10]=E);let D=le(E),O;e[11]===D?O=e[12]:(O=e=>e?D[e]:void 0,e[11]=D,e[12]=O);let k=O,A;e[13]!==f||e[14]!==t?(A=async e=>{let n=(await f.mutateAsync({subnetId:e.subnetId,allocationId:e.allocationId,name:e.name?.trim()??void 0})).NatGateway?.NatGatewayId;t(n?{to:`/ec2/describe-nat-gateways/$id`,params:{id:n}}:{to:`/ec2/describe-nat-gateways`})},e[13]=f,e[14]=t,e[15]=A):A=e[15];let j=A,M,N;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsx)(a,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),M=(0,d.jsx)(me,{title:`Create NAT Gateway`}),e[16]=M,e[17]=N):(M=e[16],N=e[17]);let P;e[18]===f.error?P=e[19]:(P=f.error&&(0,d.jsx)(n,{error:f.error,msg:`Failed to create NAT Gateway`}),e[18]=f.error,e[19]=P);let F;e[20]!==S||e[21]!==j?(F=S(j),e[20]=S,e[21]=j,e[22]=F):F=e[22];let I;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[23]=I):I=e[23];let L;e[24]===C?L=e[25]:(L=C(`name`),e[24]=C,e[25]=L);let R;e[26]===L?R=e[27]:(R=(0,d.jsxs)(u,{children:[I,(0,d.jsx)(se,{id:`name`,placeholder:`my-nat-gateway`,...L})]}),e[26]=L,e[27]=R);let z;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`subnetId`,children:`Public subnet`})}),e[28]=z):z=e[28];let B;e[29]!==w.subnetId||e[30]!==g?(B=e=>{let{field:t}=e;return(0,d.jsxs)(c,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(ne,{"aria-invalid":!!w.subnetId,className:`w-full`,id:`subnetId`,children:(0,d.jsx)(o,{placeholder:`Select a public subnet`})}),(0,d.jsx)(te,{children:g.map(ye)})]})},e[29]=w.subnetId,e[30]=g,e[31]=B):B=e[31];let V;e[32]!==x||e[33]!==B?(V=(0,d.jsx)(de,{control:x,name:`subnetId`,render:B}),e[32]=x,e[33]=B,e[34]=V):V=e[34];let H;e[35]===w.subnetId?H=e[36]:(H=(0,d.jsx)(he,{errors:[w.subnetId]}),e[35]=w.subnetId,e[36]=H);let U;e[37]!==V||e[38]!==H?(U=(0,d.jsxs)(u,{children:[z,V,H]}),e[37]=V,e[38]=H,e[39]=U):U=e[39];let W;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`allocationId`,children:`Elastic IP`})}),e[40]=W):W=e[40];let G;e[41]!==y||e[42]!==x||e[43]!==w.allocationId?(G=y.length>0?(0,d.jsx)(de,{control:x,name:`allocationId`,render:e=>{let{field:t}=e;return(0,d.jsxs)(c,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(ne,{"aria-invalid":!!w.allocationId,className:`w-full`,id:`allocationId`,children:(0,d.jsx)(o,{placeholder:`Select an Elastic IP`})}),(0,d.jsx)(te,{children:y.map(ve)})]})}}):(0,d.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No available Elastic IPs.`,` `,(0,d.jsx)(ee,{className:`text-primary hover:underline`,to:`/ec2/allocate-address`,children:`Allocate one`}),` `,`first.`]}),e[41]=y,e[42]=x,e[43]=w.allocationId,e[44]=G):G=e[44];let K;e[45]===w.allocationId?K=e[46]:(K=(0,d.jsx)(he,{errors:[w.allocationId]}),e[45]=w.allocationId,e[46]=K);let q;e[47]!==G||e[48]!==K?(q=(0,d.jsxs)(u,{children:[W,G,K]}),e[47]=G,e[48]=K,e[49]=q):q=e[49];let J;e[50]===k?J=e[51]:(J=Se(k),e[50]=k,e[51]=J);let Y;e[52]===J?Y=e[53]:(Y=(0,d.jsx)(re,{commands:J}),e[52]=J,e[53]=Y);let X;e[54]===t?X=e[55]:(X=async()=>await t({to:`/ec2/describe-nat-gateways`}),e[54]=t,e[55]=X);let Z;e[56]!==f.isPending||e[57]!==T||e[58]!==X?(Z=(0,d.jsx)(pe,{isPending:f.isPending,isSubmitting:T,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create NAT Gateway`}),e[56]=f.isPending,e[57]=T,e[58]=X,e[59]=Z):Z=e[59];let Q;e[60]!==F||e[61]!==R||e[62]!==U||e[63]!==q||e[64]!==Y||e[65]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[R,U,q,Y,Z]}),e[60]=F,e[61]=R,e[62]=U,e[63]=q,e[64]=Y,e[65]=Z,e[66]=Q):Q=e[66];let $;return e[67]!==P||e[68]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[N,M,P,Q]}),e[67]=P,e[68]=Q,e[69]=$):$=e[69],$}function ve(e){return(0,d.jsx)(s,{value:e.AllocationId??``,children:`${e.AllocationId} (${e.PublicIp})`},e.AllocationId)}function ye(e){let t=i(e.Tags);return(0,d.jsx)(s,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)}function be(e){return!e.AssociationId}function xe(e){return e.MapPublicIpOnLaunch}function Se(e){let t=e(`subnetId`),n=typeof t==`string`?t:``,r=e(`allocationId`),ee=typeof r==`string`?r:``,i=e(`name`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-nat-gateway`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{vr as ee}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as te,s as ne,t as c}from"./select.js";import{t as re}from"./cli-command-panel.js";import{m as ie}from"./ec2.js";import{Ir as ae,Nt as oe,Rn as se,lt as ce}from"./index.js";import{a as le,i as ue,n as de,t as fe}from"./zod.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as l,r as he,t as u}from"./field.js";import{s as ge}from"./ec22.js";var _e=t(),d=e();function f(){let e=(0,_e.c)(70),t=ae(),{data:i}=r(oe),{data:s}=r(ce),f=ie(),p;e[0]===i.Subnets?p=e[1]:(p=i.Subnets??[],e[0]=i.Subnets,e[1]=p);let m=p,h;e[2]===m?h=e[3]:(h=m.filter(xe),e[2]=m,e[3]=h);let Ce=h,g=Ce.length>0?Ce:m,_;e[4]===s.Addresses?_=e[5]:(_=s.Addresses??[],e[4]=s.Addresses,e[5]=_);let v;e[6]===_?v=e[7]:(v=_.filter(be),e[6]=_,e[7]=v);let y=v,b;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:fe(ge),defaultValues:{subnetId:``,allocationId:``,name:``}},e[8]=b):b=e[8];let{control:x,handleSubmit:S,register:C,formState:we}=ue(b),{errors:w,isSubmitting:T}=we,E;e[9]===x?E=e[10]:(E={control:x},e[9]=x,e[10]=E);let D=le(E),O;e[11]===D?O=e[12]:(O=e=>e?D[e]:void 0,e[11]=D,e[12]=O);let k=O,A;e[13]!==f||e[14]!==t?(A=async e=>{let n=(await f.mutateAsync({subnetId:e.subnetId,allocationId:e.allocationId,name:e.name?.trim()??void 0})).NatGateway?.NatGatewayId;t(n?{to:`/ec2/describe-nat-gateways/$id`,params:{id:n}}:{to:`/ec2/describe-nat-gateways`})},e[13]=f,e[14]=t,e[15]=A):A=e[15];let j=A,M,N;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsx)(a,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),M=(0,d.jsx)(me,{title:`Create NAT Gateway`}),e[16]=M,e[17]=N):(M=e[16],N=e[17]);let P;e[18]===f.error?P=e[19]:(P=f.error&&(0,d.jsx)(n,{error:f.error,msg:`Failed to create NAT Gateway`}),e[18]=f.error,e[19]=P);let F;e[20]!==S||e[21]!==j?(F=S(j),e[20]=S,e[21]=j,e[22]=F):F=e[22];let I;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[23]=I):I=e[23];let L;e[24]===C?L=e[25]:(L=C(`name`),e[24]=C,e[25]=L);let R;e[26]===L?R=e[27]:(R=(0,d.jsxs)(u,{children:[I,(0,d.jsx)(se,{id:`name`,placeholder:`my-nat-gateway`,...L})]}),e[26]=L,e[27]=R);let z;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`subnetId`,children:`Public subnet`})}),e[28]=z):z=e[28];let B;e[29]!==w.subnetId||e[30]!==g?(B=e=>{let{field:t}=e;return(0,d.jsxs)(c,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(ne,{"aria-invalid":!!w.subnetId,className:`w-full`,id:`subnetId`,children:(0,d.jsx)(o,{placeholder:`Select a public subnet`})}),(0,d.jsx)(te,{children:g.map(ye)})]})},e[29]=w.subnetId,e[30]=g,e[31]=B):B=e[31];let V;e[32]!==x||e[33]!==B?(V=(0,d.jsx)(de,{control:x,name:`subnetId`,render:B}),e[32]=x,e[33]=B,e[34]=V):V=e[34];let H;e[35]===w.subnetId?H=e[36]:(H=(0,d.jsx)(he,{errors:[w.subnetId]}),e[35]=w.subnetId,e[36]=H);let U;e[37]!==V||e[38]!==H?(U=(0,d.jsxs)(u,{children:[z,V,H]}),e[37]=V,e[38]=H,e[39]=U):U=e[39];let W;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`allocationId`,children:`Elastic IP`})}),e[40]=W):W=e[40];let G;e[41]!==y||e[42]!==x||e[43]!==w.allocationId?(G=y.length>0?(0,d.jsx)(de,{control:x,name:`allocationId`,render:e=>{let{field:t}=e;return(0,d.jsxs)(c,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(ne,{"aria-invalid":!!w.allocationId,className:`w-full`,id:`allocationId`,children:(0,d.jsx)(o,{placeholder:`Select an Elastic IP`})}),(0,d.jsx)(te,{children:y.map(ve)})]})}}):(0,d.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No available Elastic IPs.`,` `,(0,d.jsx)(ee,{className:`text-primary hover:underline`,to:`/ec2/allocate-address`,children:`Allocate one`}),` `,`first.`]}),e[41]=y,e[42]=x,e[43]=w.allocationId,e[44]=G):G=e[44];let K;e[45]===w.allocationId?K=e[46]:(K=(0,d.jsx)(he,{errors:[w.allocationId]}),e[45]=w.allocationId,e[46]=K);let q;e[47]!==G||e[48]!==K?(q=(0,d.jsxs)(u,{children:[W,G,K]}),e[47]=G,e[48]=K,e[49]=q):q=e[49];let J;e[50]===k?J=e[51]:(J=Se(k),e[50]=k,e[51]=J);let Y;e[52]===J?Y=e[53]:(Y=(0,d.jsx)(re,{commands:J}),e[52]=J,e[53]=Y);let X;e[54]===t?X=e[55]:(X=async()=>await t({to:`/ec2/describe-nat-gateways`}),e[54]=t,e[55]=X);let Z;e[56]!==f.isPending||e[57]!==T||e[58]!==X?(Z=(0,d.jsx)(pe,{isPending:f.isPending,isSubmitting:T,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create NAT Gateway`}),e[56]=f.isPending,e[57]=T,e[58]=X,e[59]=Z):Z=e[59];let Q;e[60]!==F||e[61]!==R||e[62]!==U||e[63]!==q||e[64]!==Y||e[65]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[R,U,q,Y,Z]}),e[60]=F,e[61]=R,e[62]=U,e[63]=q,e[64]=Y,e[65]=Z,e[66]=Q):Q=e[66];let $;return e[67]!==P||e[68]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[N,M,P,Q]}),e[67]=P,e[68]=Q,e[69]=$):$=e[69],$}function ve(e){return(0,d.jsx)(s,{value:e.AllocationId??``,children:`${e.AllocationId} (${e.PublicIp})`},e.AllocationId)}function ye(e){let t=i(e.Tags);return(0,d.jsx)(s,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)}function be(e){return!e.AssociationId}function xe(e){return e.MapPublicIpOnLaunch}function Se(e){let t=e(`subnetId`),n=typeof t==`string`?t:``,r=e(`allocationId`),ee=typeof r==`string`?r:``,i=e(`name`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-nat-gateway`},{type:`flag`,value:` \\ --subnet-id`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ --allocation-id`},{type:`value`,value:` ${ee||``}`}];return a.trim()&&o.push({type:`flag`,value:` \\ --tag-specifications`},{type:`value`,value:` 'ResourceType=natgateway,Tags=[{Key=Name,Value=${a.trim()}}]'`}),[{label:`Create NAT Gateway`,parts:o}]}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js b/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js index 676aa9ff8..085538be4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{Wt as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{_ as d}from"./ec2.js";import{Ir as f,Lt as p,Rn as m}from"./index.js";import{i as h,n as g,t as _}from"./zod.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{u as C}from"./ec22.js";var w=t(),T=e();function E(){let e=(0,w.c)(44),t=f(),{data:i}=r(p),s=d(),E;e[0]===i.Vpcs?E=e[1]:(E=i.Vpcs??[],e[0]=i.Vpcs,e[1]=E);let O=E,k;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(k={resolver:_(C),defaultValues:{vpcId:``,name:``}},e[2]=k):k=e[2];let{control:A,handleSubmit:j,register:M,formState:N}=h(k),{errors:P,isSubmitting:F}=N,I;e[3]!==s||e[4]!==t?(I=async e=>{let n=(await s.mutateAsync({vpcId:e.vpcId,name:e.name?.trim()?e.name.trim():void 0})).RouteTable?.RouteTableId;t(n?{to:`/ec2/describe-route-tables/$id`,params:{id:n}}:{to:`/ec2/describe-route-tables`})},e[3]=s,e[4]=t,e[5]=I):I=e[5];let L=I,R,z;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,T.jsx)(a,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z=(0,T.jsx)(y,{title:`Create Route Table`}),e[6]=R,e[7]=z):(R=e[6],z=e[7]);let B;e[8]===s.error?B=e[9]:(B=s.error&&(0,T.jsx)(n,{error:s.error,msg:`Failed to create Route Table`}),e[8]=s.error,e[9]=B);let V;e[10]!==j||e[11]!==L?(V=j(L),e[10]=j,e[11]=L,e[12]=V):V=e[12];let H;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,T.jsx)(b,{children:(0,T.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=H):H=e[13];let U;e[14]===M?U=e[15]:(U=M(`name`),e[14]=M,e[15]=U);let W;e[16]===U?W=e[17]:(W=(0,T.jsxs)(S,{children:[H,(0,T.jsx)(m,{id:`name`,placeholder:`my-route-table`,...U})]}),e[16]=U,e[17]=W);let G;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,T.jsx)(b,{children:(0,T.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[18]=G):G=e[18];let K;e[19]!==P.vpcId||e[20]!==O?(K=e=>{let{field:t}=e;return(0,T.jsxs)(u,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,T.jsx)(l,{"aria-invalid":!!P.vpcId,className:`w-full`,id:`vpcId`,children:(0,T.jsx)(o,{placeholder:`Select a VPC`})}),(0,T.jsx)(c,{children:O.map(D)})]})},e[19]=P.vpcId,e[20]=O,e[21]=K):K=e[21];let q;e[22]!==A||e[23]!==K?(q=(0,T.jsx)(g,{control:A,name:`vpcId`,render:K}),e[22]=A,e[23]=K,e[24]=q):q=e[24];let J;e[25]===P.vpcId?J=e[26]:(J=(0,T.jsx)(x,{errors:[P.vpcId]}),e[25]=P.vpcId,e[26]=J);let Y;e[27]!==q||e[28]!==J?(Y=(0,T.jsxs)(S,{children:[G,q,J]}),e[27]=q,e[28]=J,e[29]=Y):Y=e[29];let X;e[30]===t?X=e[31]:(X=async()=>await t({to:`/ec2/describe-route-tables`}),e[30]=t,e[31]=X);let Z;e[32]!==s.isPending||e[33]!==F||e[34]!==X?(Z=(0,T.jsx)(v,{isPending:s.isPending,isSubmitting:F,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Route Table`}),e[32]=s.isPending,e[33]=F,e[34]=X,e[35]=Z):Z=e[35];let Q;e[36]!==W||e[37]!==Y||e[38]!==Z||e[39]!==V?(Q=(0,T.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V,children:[W,Y,Z]}),e[36]=W,e[37]=Y,e[38]=Z,e[39]=V,e[40]=Q):Q=e[40];let $;return e[41]!==Q||e[42]!==B?($=(0,T.jsxs)(T.Fragment,{children:[R,z,B,Q]}),e[41]=Q,e[42]=B,e[43]=$):$=e[43],$}function D(e){let t=i(e.Tags);return(0,T.jsx)(s,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}export{E as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{Ut as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{_ as d}from"./ec2.js";import{Ir as f,Lt as p,Rn as m}from"./index.js";import{i as h,n as g,t as _}from"./zod.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{u as C}from"./ec22.js";var w=t(),T=e();function E(){let e=(0,w.c)(44),t=f(),{data:i}=r(p),s=d(),E;e[0]===i.Vpcs?E=e[1]:(E=i.Vpcs??[],e[0]=i.Vpcs,e[1]=E);let O=E,k;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(k={resolver:_(C),defaultValues:{vpcId:``,name:``}},e[2]=k):k=e[2];let{control:A,handleSubmit:j,register:M,formState:N}=h(k),{errors:P,isSubmitting:F}=N,I;e[3]!==s||e[4]!==t?(I=async e=>{let n=(await s.mutateAsync({vpcId:e.vpcId,name:e.name?.trim()?e.name.trim():void 0})).RouteTable?.RouteTableId;t(n?{to:`/ec2/describe-route-tables/$id`,params:{id:n}}:{to:`/ec2/describe-route-tables`})},e[3]=s,e[4]=t,e[5]=I):I=e[5];let L=I,R,z;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,T.jsx)(a,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z=(0,T.jsx)(y,{title:`Create Route Table`}),e[6]=R,e[7]=z):(R=e[6],z=e[7]);let B;e[8]===s.error?B=e[9]:(B=s.error&&(0,T.jsx)(n,{error:s.error,msg:`Failed to create Route Table`}),e[8]=s.error,e[9]=B);let V;e[10]!==j||e[11]!==L?(V=j(L),e[10]=j,e[11]=L,e[12]=V):V=e[12];let H;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,T.jsx)(b,{children:(0,T.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=H):H=e[13];let U;e[14]===M?U=e[15]:(U=M(`name`),e[14]=M,e[15]=U);let W;e[16]===U?W=e[17]:(W=(0,T.jsxs)(S,{children:[H,(0,T.jsx)(m,{id:`name`,placeholder:`my-route-table`,...U})]}),e[16]=U,e[17]=W);let G;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,T.jsx)(b,{children:(0,T.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[18]=G):G=e[18];let K;e[19]!==P.vpcId||e[20]!==O?(K=e=>{let{field:t}=e;return(0,T.jsxs)(u,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,T.jsx)(l,{"aria-invalid":!!P.vpcId,className:`w-full`,id:`vpcId`,children:(0,T.jsx)(o,{placeholder:`Select a VPC`})}),(0,T.jsx)(c,{children:O.map(D)})]})},e[19]=P.vpcId,e[20]=O,e[21]=K):K=e[21];let q;e[22]!==A||e[23]!==K?(q=(0,T.jsx)(g,{control:A,name:`vpcId`,render:K}),e[22]=A,e[23]=K,e[24]=q):q=e[24];let J;e[25]===P.vpcId?J=e[26]:(J=(0,T.jsx)(x,{errors:[P.vpcId]}),e[25]=P.vpcId,e[26]=J);let Y;e[27]!==q||e[28]!==J?(Y=(0,T.jsxs)(S,{children:[G,q,J]}),e[27]=q,e[28]=J,e[29]=Y):Y=e[29];let X;e[30]===t?X=e[31]:(X=async()=>await t({to:`/ec2/describe-route-tables`}),e[30]=t,e[31]=X);let Z;e[32]!==s.isPending||e[33]!==F||e[34]!==X?(Z=(0,T.jsx)(v,{isPending:s.isPending,isSubmitting:F,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Route Table`}),e[32]=s.isPending,e[33]=F,e[34]=X,e[35]=Z):Z=e[35];let Q;e[36]!==W||e[37]!==Y||e[38]!==Z||e[39]!==V?(Q=(0,T.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V,children:[W,Y,Z]}),e[36]=W,e[37]=Y,e[38]=Z,e[39]=V,e[40]=Q):Q=e[40];let $;return e[41]!==Q||e[42]!==B?($=(0,T.jsxs)(T.Fragment,{children:[R,z,B,Q]}),e[41]=Q,e[42]=B,e[43]=$):$=e[43],$}function D(e){let t=i(e.Tags);return(0,T.jsx)(s,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}export{E as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js index fd5f2397f..249523a84 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{Wt as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as ee,s as te,t as ne}from"./select.js";import{t as re}from"./cli-command-panel.js";import{v as ie}from"./ec2.js";import{Ir as ae,Lt as oe,Rn as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./form-actions.js";import{t as pe}from"./page-heading.js";import{a as c,r as l,t as u}from"./field.js";import{d as me}from"./ec22.js";var he=t(),d=e();function f(){let e=(0,he.c)(73),t=ae(),{data:i}=r(oe),s=ie(),f;e[0]===i.Vpcs?f=e[1]:(f=i.Vpcs??[],e[0]=i.Vpcs,e[1]=f);let p=f,m;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=de(me),e[2]=m):m=e[2];let h=p[0]?.VpcId??``,g;e[3]===h?g=e[4]:(g={resolver:m,defaultValues:{groupName:``,description:``,vpcId:h}},e[3]=h,e[4]=g);let{control:_,handleSubmit:v,register:y,formState:ve}=le(g),{errors:b,isSubmitting:ye}=ve,x;e[5]===_?x=e[6]:(x={control:_},e[5]=_,e[6]=x);let S=ce(x),C;e[7]===S?C=e[8]:(C=e=>e?S[e]:void 0,e[7]=S,e[8]=C);let w=C,T;e[9]!==s||e[10]!==t?(T=async e=>{let n=(await s.mutateAsync(e)).GroupId;t(n?{to:`/ec2/describe-security-groups/$id`,params:{id:n}}:{to:`/ec2/describe-security-groups`})},e[9]=s,e[10]=t,e[11]=T):T=e[11];let E=T,D,O;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,d.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),O=(0,d.jsx)(pe,{title:`Create Security Group`}),e[12]=D,e[13]=O):(D=e[12],O=e[13]);let k;e[14]===s.error?k=e[15]:(k=s.error&&(0,d.jsx)(n,{error:s.error,msg:`Failed to create security group`}),e[14]=s.error,e[15]=k);let A;e[16]!==v||e[17]!==E?(A=v(E),e[16]=v,e[17]=E,e[18]=A):A=e[18];let j;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,d.jsx)(c,{children:(0,d.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[19]=j):j=e[19];let M=!!b.groupName,N;e[20]===y?N=e[21]:(N=y(`groupName`),e[20]=y,e[21]=N);let P;e[22]!==M||e[23]!==N?(P=(0,d.jsx)(se,{"aria-invalid":M,id:`groupName`,placeholder:`my-security-group`,...N}),e[22]=M,e[23]=N,e[24]=P):P=e[24];let F;e[25]===b.groupName?F=e[26]:(F=(0,d.jsx)(l,{errors:[b.groupName]}),e[25]=b.groupName,e[26]=F);let I;e[27]!==P||e[28]!==F?(I=(0,d.jsxs)(u,{children:[j,P,F]}),e[27]=P,e[28]=F,e[29]=I):I=e[29];let L;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,d.jsx)(c,{children:(0,d.jsx)(`label`,{htmlFor:`description`,children:`Description`})}),e[30]=L):L=e[30];let R=!!b.description,z;e[31]===y?z=e[32]:(z=y(`description`),e[31]=y,e[32]=z);let B;e[33]!==R||e[34]!==z?(B=(0,d.jsx)(se,{"aria-invalid":R,id:`description`,placeholder:`My security group description`,...z}),e[33]=R,e[34]=z,e[35]=B):B=e[35];let V;e[36]===b.description?V=e[37]:(V=(0,d.jsx)(l,{errors:[b.description]}),e[36]=b.description,e[37]=V);let H;e[38]!==B||e[39]!==V?(H=(0,d.jsxs)(u,{children:[L,B,V]}),e[38]=B,e[39]=V,e[40]=H):H=e[40];let U;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,d.jsx)(c,{children:(0,d.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[41]=U):U=e[41];let W;e[42]!==b.vpcId||e[43]!==p?(W=e=>{let{field:t}=e;return(0,d.jsxs)(ne,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(te,{"aria-invalid":!!b.vpcId,className:`w-full`,id:`vpcId`,children:(0,d.jsx)(o,{})}),(0,d.jsx)(ee,{children:p.map(ge)})]})},e[42]=b.vpcId,e[43]=p,e[44]=W):W=e[44];let G;e[45]!==_||e[46]!==W?(G=(0,d.jsx)(ue,{control:_,name:`vpcId`,render:W}),e[45]=_,e[46]=W,e[47]=G):G=e[47];let K;e[48]===b.vpcId?K=e[49]:(K=(0,d.jsx)(l,{errors:[b.vpcId]}),e[48]=b.vpcId,e[49]=K);let q;e[50]!==G||e[51]!==K?(q=(0,d.jsxs)(u,{children:[U,G,K]}),e[50]=G,e[51]=K,e[52]=q):q=e[52];let J;e[53]===w?J=e[54]:(J=_e(w),e[53]=w,e[54]=J);let Y;e[55]===J?Y=e[56]:(Y=(0,d.jsx)(re,{commands:J}),e[55]=J,e[56]=Y);let X;e[57]===t?X=e[58]:(X=async()=>await t({to:`/ec2/describe-security-groups`}),e[57]=t,e[58]=X);let Z;e[59]!==s.isPending||e[60]!==ye||e[61]!==X?(Z=(0,d.jsx)(fe,{isPending:s.isPending,isSubmitting:ye,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Security Group`}),e[59]=s.isPending,e[60]=ye,e[61]=X,e[62]=Z):Z=e[62];let Q;e[63]!==A||e[64]!==I||e[65]!==H||e[66]!==q||e[67]!==Y||e[68]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,H,q,Y,Z]}),e[63]=A,e[64]=I,e[65]=H,e[66]=q,e[67]=Y,e[68]=Z,e[69]=Q):Q=e[69];let $;return e[70]!==k||e[71]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[D,O,k,Q]}),e[70]=k,e[71]=Q,e[72]=$):$=e[72],$}function ge(e){let t=i(e.Tags);return(0,d.jsx)(s,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function _e(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`vpcId`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{Ut as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as ee,s as te,t as ne}from"./select.js";import{t as re}from"./cli-command-panel.js";import{v as ie}from"./ec2.js";import{Ir as ae,Lt as oe,Rn as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./form-actions.js";import{t as pe}from"./page-heading.js";import{a as c,r as l,t as u}from"./field.js";import{d as me}from"./ec22.js";var he=t(),d=e();function f(){let e=(0,he.c)(73),t=ae(),{data:i}=r(oe),s=ie(),f;e[0]===i.Vpcs?f=e[1]:(f=i.Vpcs??[],e[0]=i.Vpcs,e[1]=f);let p=f,m;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=de(me),e[2]=m):m=e[2];let h=p[0]?.VpcId??``,g;e[3]===h?g=e[4]:(g={resolver:m,defaultValues:{groupName:``,description:``,vpcId:h}},e[3]=h,e[4]=g);let{control:_,handleSubmit:v,register:y,formState:ve}=le(g),{errors:b,isSubmitting:ye}=ve,x;e[5]===_?x=e[6]:(x={control:_},e[5]=_,e[6]=x);let S=ce(x),C;e[7]===S?C=e[8]:(C=e=>e?S[e]:void 0,e[7]=S,e[8]=C);let w=C,T;e[9]!==s||e[10]!==t?(T=async e=>{let n=(await s.mutateAsync(e)).GroupId;t(n?{to:`/ec2/describe-security-groups/$id`,params:{id:n}}:{to:`/ec2/describe-security-groups`})},e[9]=s,e[10]=t,e[11]=T):T=e[11];let E=T,D,O;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,d.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),O=(0,d.jsx)(pe,{title:`Create Security Group`}),e[12]=D,e[13]=O):(D=e[12],O=e[13]);let k;e[14]===s.error?k=e[15]:(k=s.error&&(0,d.jsx)(n,{error:s.error,msg:`Failed to create security group`}),e[14]=s.error,e[15]=k);let A;e[16]!==v||e[17]!==E?(A=v(E),e[16]=v,e[17]=E,e[18]=A):A=e[18];let j;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,d.jsx)(c,{children:(0,d.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[19]=j):j=e[19];let M=!!b.groupName,N;e[20]===y?N=e[21]:(N=y(`groupName`),e[20]=y,e[21]=N);let P;e[22]!==M||e[23]!==N?(P=(0,d.jsx)(se,{"aria-invalid":M,id:`groupName`,placeholder:`my-security-group`,...N}),e[22]=M,e[23]=N,e[24]=P):P=e[24];let F;e[25]===b.groupName?F=e[26]:(F=(0,d.jsx)(l,{errors:[b.groupName]}),e[25]=b.groupName,e[26]=F);let I;e[27]!==P||e[28]!==F?(I=(0,d.jsxs)(u,{children:[j,P,F]}),e[27]=P,e[28]=F,e[29]=I):I=e[29];let L;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,d.jsx)(c,{children:(0,d.jsx)(`label`,{htmlFor:`description`,children:`Description`})}),e[30]=L):L=e[30];let R=!!b.description,z;e[31]===y?z=e[32]:(z=y(`description`),e[31]=y,e[32]=z);let B;e[33]!==R||e[34]!==z?(B=(0,d.jsx)(se,{"aria-invalid":R,id:`description`,placeholder:`My security group description`,...z}),e[33]=R,e[34]=z,e[35]=B):B=e[35];let V;e[36]===b.description?V=e[37]:(V=(0,d.jsx)(l,{errors:[b.description]}),e[36]=b.description,e[37]=V);let H;e[38]!==B||e[39]!==V?(H=(0,d.jsxs)(u,{children:[L,B,V]}),e[38]=B,e[39]=V,e[40]=H):H=e[40];let U;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,d.jsx)(c,{children:(0,d.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[41]=U):U=e[41];let W;e[42]!==b.vpcId||e[43]!==p?(W=e=>{let{field:t}=e;return(0,d.jsxs)(ne,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(te,{"aria-invalid":!!b.vpcId,className:`w-full`,id:`vpcId`,children:(0,d.jsx)(o,{})}),(0,d.jsx)(ee,{children:p.map(ge)})]})},e[42]=b.vpcId,e[43]=p,e[44]=W):W=e[44];let G;e[45]!==_||e[46]!==W?(G=(0,d.jsx)(ue,{control:_,name:`vpcId`,render:W}),e[45]=_,e[46]=W,e[47]=G):G=e[47];let K;e[48]===b.vpcId?K=e[49]:(K=(0,d.jsx)(l,{errors:[b.vpcId]}),e[48]=b.vpcId,e[49]=K);let q;e[50]!==G||e[51]!==K?(q=(0,d.jsxs)(u,{children:[U,G,K]}),e[50]=G,e[51]=K,e[52]=q):q=e[52];let J;e[53]===w?J=e[54]:(J=_e(w),e[53]=w,e[54]=J);let Y;e[55]===J?Y=e[56]:(Y=(0,d.jsx)(re,{commands:J}),e[55]=J,e[56]=Y);let X;e[57]===t?X=e[58]:(X=async()=>await t({to:`/ec2/describe-security-groups`}),e[57]=t,e[58]=X);let Z;e[59]!==s.isPending||e[60]!==ye||e[61]!==X?(Z=(0,d.jsx)(fe,{isPending:s.isPending,isSubmitting:ye,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Security Group`}),e[59]=s.isPending,e[60]=ye,e[61]=X,e[62]=Z):Z=e[62];let Q;e[63]!==A||e[64]!==I||e[65]!==H||e[66]!==q||e[67]!==Y||e[68]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,H,q,Y,Z]}),e[63]=A,e[64]=I,e[65]=H,e[66]=q,e[67]=Y,e[68]=Z,e[69]=Q):Q=e[69];let $;return e[70]!==k||e[71]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[D,O,k,Q]}),e[70]=k,e[71]=Q,e[72]=$):$=e[72],$}function ge(e){let t=i(e.Tags);return(0,d.jsx)(s,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function _e(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`vpcId`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ --group-name`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ --description`},{type:`value`,value:` "${i||``}"`}];return o&&s.push({type:`flag`,value:` \\ --vpc-id`},{type:`value`,value:` ${o}`}),[{label:`Create Security Group`,parts:s}]}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js index afa0e872a..7ca9d3d8e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{Wt as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as ee,t as te}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{b as re}from"./ec2.js";import{Ir as ie,Lt as ae,Rn as oe,ut as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./form-actions.js";import{t as pe}from"./page-heading.js";import{a as l,r as me,t as u}from"./field.js";import{p as he}from"./ec22.js";var ge=t(),d=e();function f(){let e=(0,ge.c)(74),t=ie(),{data:i}=r(ae),{data:f}=r(se),p=re(),m;e[0]===i.Vpcs?m=e[1]:(m=i.Vpcs??[],e[0]=i.Vpcs,e[1]=m);let h=m,g;e[2]===f.AvailabilityZones?g=e[3]:(g=f.AvailabilityZones??[],e[2]=f.AvailabilityZones,e[3]=g);let _=g,v;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(v=de(he),e[4]=v):v=e[4];let y=h[0]?.VpcId??``,b;e[5]===y?b=e[6]:(b={resolver:v,defaultValues:{vpcId:y,cidrBlock:`10.0.1.0/24`,availabilityZone:void 0,mapPublicIpOnLaunch:!1}},e[5]=y,e[6]=b);let{control:x,handleSubmit:xe,register:Se,formState:Ce}=le(b),{errors:S,isSubmitting:we}=Ce,C;e[7]===x?C=e[8]:(C={control:x},e[7]=x,e[8]=C);let w=ce(C),T;e[9]===w?T=e[10]:(T=e=>e?w[e]:void 0,e[9]=w,e[10]=T);let E=T,D;e[11]!==p||e[12]!==t?(D=async e=>{let n=(await p.mutateAsync(e)).Subnet?.SubnetId;t(n?{to:`/ec2/describe-subnets/$id`,params:{id:n}}:{to:`/ec2/describe-subnets`})},e[11]=p,e[12]=t,e[13]=D):D=e[13];let O=D,k,A;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,d.jsx)(a,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),k=(0,d.jsx)(pe,{title:`Create Subnet`}),e[14]=k,e[15]=A):(k=e[14],A=e[15]);let j;e[16]===p.error?j=e[17]:(j=p.error&&(0,d.jsx)(n,{error:p.error,msg:`Failed to create subnet`}),e[16]=p.error,e[17]=j);let M;e[18]!==xe||e[19]!==O?(M=xe(O),e[18]=xe,e[19]=O,e[20]=M):M=e[20];let N;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[21]=N):N=e[21];let P;e[22]!==S.vpcId||e[23]!==h?(P=e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(ee,{"aria-invalid":!!S.vpcId,className:`w-full`,id:`vpcId`,children:(0,d.jsx)(o,{})}),(0,d.jsx)(c,{children:h.map(ye)})]})},e[22]=S.vpcId,e[23]=h,e[24]=P):P=e[24];let F;e[25]!==x||e[26]!==P?(F=(0,d.jsx)(ue,{control:x,name:`vpcId`,render:P}),e[25]=x,e[26]=P,e[27]=F):F=e[27];let I;e[28]===S.vpcId?I=e[29]:(I=(0,d.jsx)(me,{errors:[S.vpcId]}),e[28]=S.vpcId,e[29]=I);let L;e[30]!==F||e[31]!==I?(L=(0,d.jsxs)(u,{children:[N,F,I]}),e[30]=F,e[31]=I,e[32]=L):L=e[32];let R;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),e[33]=R):R=e[33];let Te=!!S.cidrBlock,z;e[34]===Se?z=e[35]:(z=Se(`cidrBlock`),e[34]=Se,e[35]=z);let B;e[36]!==Te||e[37]!==z?(B=(0,d.jsx)(oe,{"aria-invalid":Te,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...z}),e[36]=Te,e[37]=z,e[38]=B):B=e[38];let V;e[39]===S.cidrBlock?V=e[40]:(V=(0,d.jsx)(me,{errors:[S.cidrBlock]}),e[39]=S.cidrBlock,e[40]=V);let H;e[41]!==B||e[42]!==V?(H=(0,d.jsxs)(u,{children:[R,B,V]}),e[41]=B,e[42]=V,e[43]=H):H=e[43];let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),e[44]=U):U=e[44];let W;e[45]===_?W=e[46]:(W=e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e===`none`?void 0:e),value:t.value??`none`,children:[(0,d.jsx)(ee,{className:`w-full`,id:`availabilityZone`,children:(0,d.jsx)(o,{})}),(0,d.jsxs)(c,{children:[(0,d.jsx)(s,{value:`none`,children:`none`}),_.map(ve)]})]})},e[45]=_,e[46]=W);let G;e[47]!==x||e[48]!==W?(G=(0,d.jsxs)(u,{children:[U,(0,d.jsx)(ue,{control:x,name:`availabilityZone`,render:W})]}),e[47]=x,e[48]=W,e[49]=G):G=e[49];let K;e[50]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,d.jsx)(l,{children:`Auto-assign public IPv4`}),e[50]=K):K=e[50];let q;e[51]===x?q=e[52]:(q=(0,d.jsxs)(u,{children:[K,(0,d.jsx)(ue,{control:x,name:`mapPublicIpOnLaunch`,render:_e})]}),e[51]=x,e[52]=q);let J;e[53]===E?J=e[54]:(J=be(E),e[53]=E,e[54]=J);let Y;e[55]===J?Y=e[56]:(Y=(0,d.jsx)(ne,{commands:J}),e[55]=J,e[56]=Y);let X;e[57]===t?X=e[58]:(X=async()=>await t({to:`/ec2/describe-subnets`}),e[57]=t,e[58]=X);let Z;e[59]!==p.isPending||e[60]!==we||e[61]!==X?(Z=(0,d.jsx)(fe,{isPending:p.isPending,isSubmitting:we,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Subnet`}),e[59]=p.isPending,e[60]=we,e[61]=X,e[62]=Z):Z=e[62];let Q;e[63]!==M||e[64]!==L||e[65]!==H||e[66]!==G||e[67]!==q||e[68]!==Y||e[69]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:M,children:[L,H,G,q,Y,Z]}),e[63]=M,e[64]=L,e[65]=H,e[66]=G,e[67]=q,e[68]=Y,e[69]=Z,e[70]=Q):Q=e[70];let $;return e[71]!==j||e[72]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[A,k,j,Q]}),e[71]=j,e[72]=Q,e[73]=$):$=e[73],$}function _e(e){let{field:t}=e;return(0,d.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,d.jsx)(`input`,{"aria-label":`Enable auto-assign public IPv4 address`,checked:t.value??!1,onChange:e=>t.onChange(e.target.checked),type:`checkbox`}),`Enable auto-assign public IPv4 address`]})}function ve(e){return(0,d.jsx)(s,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function ye(e){let t=i(e.Tags);return(0,d.jsx)(s,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function be(e){let t=e(`vpcId`),n=typeof t==`string`?t:``,r=e(`cidrBlock`),i=typeof r==`string`?r:``,a=e(`availabilityZone`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./error-banner.js";import{t as r}from"./useSuspenseQuery.js";import{Ut as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as ee,t as te}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{b as re}from"./ec2.js";import{Ir as ie,Lt as ae,Rn as oe,ut as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./form-actions.js";import{t as pe}from"./page-heading.js";import{a as l,r as me,t as u}from"./field.js";import{p as he}from"./ec22.js";var ge=t(),d=e();function f(){let e=(0,ge.c)(74),t=ie(),{data:i}=r(ae),{data:f}=r(se),p=re(),m;e[0]===i.Vpcs?m=e[1]:(m=i.Vpcs??[],e[0]=i.Vpcs,e[1]=m);let h=m,g;e[2]===f.AvailabilityZones?g=e[3]:(g=f.AvailabilityZones??[],e[2]=f.AvailabilityZones,e[3]=g);let _=g,v;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(v=de(he),e[4]=v):v=e[4];let y=h[0]?.VpcId??``,b;e[5]===y?b=e[6]:(b={resolver:v,defaultValues:{vpcId:y,cidrBlock:`10.0.1.0/24`,availabilityZone:void 0,mapPublicIpOnLaunch:!1}},e[5]=y,e[6]=b);let{control:x,handleSubmit:xe,register:Se,formState:Ce}=le(b),{errors:S,isSubmitting:we}=Ce,C;e[7]===x?C=e[8]:(C={control:x},e[7]=x,e[8]=C);let w=ce(C),T;e[9]===w?T=e[10]:(T=e=>e?w[e]:void 0,e[9]=w,e[10]=T);let E=T,D;e[11]!==p||e[12]!==t?(D=async e=>{let n=(await p.mutateAsync(e)).Subnet?.SubnetId;t(n?{to:`/ec2/describe-subnets/$id`,params:{id:n}}:{to:`/ec2/describe-subnets`})},e[11]=p,e[12]=t,e[13]=D):D=e[13];let O=D,k,A;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,d.jsx)(a,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),k=(0,d.jsx)(pe,{title:`Create Subnet`}),e[14]=k,e[15]=A):(k=e[14],A=e[15]);let j;e[16]===p.error?j=e[17]:(j=p.error&&(0,d.jsx)(n,{error:p.error,msg:`Failed to create subnet`}),e[16]=p.error,e[17]=j);let M;e[18]!==xe||e[19]!==O?(M=xe(O),e[18]=xe,e[19]=O,e[20]=M):M=e[20];let N;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[21]=N):N=e[21];let P;e[22]!==S.vpcId||e[23]!==h?(P=e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(ee,{"aria-invalid":!!S.vpcId,className:`w-full`,id:`vpcId`,children:(0,d.jsx)(o,{})}),(0,d.jsx)(c,{children:h.map(ye)})]})},e[22]=S.vpcId,e[23]=h,e[24]=P):P=e[24];let F;e[25]!==x||e[26]!==P?(F=(0,d.jsx)(ue,{control:x,name:`vpcId`,render:P}),e[25]=x,e[26]=P,e[27]=F):F=e[27];let I;e[28]===S.vpcId?I=e[29]:(I=(0,d.jsx)(me,{errors:[S.vpcId]}),e[28]=S.vpcId,e[29]=I);let L;e[30]!==F||e[31]!==I?(L=(0,d.jsxs)(u,{children:[N,F,I]}),e[30]=F,e[31]=I,e[32]=L):L=e[32];let R;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),e[33]=R):R=e[33];let Te=!!S.cidrBlock,z;e[34]===Se?z=e[35]:(z=Se(`cidrBlock`),e[34]=Se,e[35]=z);let B;e[36]!==Te||e[37]!==z?(B=(0,d.jsx)(oe,{"aria-invalid":Te,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...z}),e[36]=Te,e[37]=z,e[38]=B):B=e[38];let V;e[39]===S.cidrBlock?V=e[40]:(V=(0,d.jsx)(me,{errors:[S.cidrBlock]}),e[39]=S.cidrBlock,e[40]=V);let H;e[41]!==B||e[42]!==V?(H=(0,d.jsxs)(u,{children:[R,B,V]}),e[41]=B,e[42]=V,e[43]=H):H=e[43];let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),e[44]=U):U=e[44];let W;e[45]===_?W=e[46]:(W=e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e===`none`?void 0:e),value:t.value??`none`,children:[(0,d.jsx)(ee,{className:`w-full`,id:`availabilityZone`,children:(0,d.jsx)(o,{})}),(0,d.jsxs)(c,{children:[(0,d.jsx)(s,{value:`none`,children:`none`}),_.map(ve)]})]})},e[45]=_,e[46]=W);let G;e[47]!==x||e[48]!==W?(G=(0,d.jsxs)(u,{children:[U,(0,d.jsx)(ue,{control:x,name:`availabilityZone`,render:W})]}),e[47]=x,e[48]=W,e[49]=G):G=e[49];let K;e[50]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,d.jsx)(l,{children:`Auto-assign public IPv4`}),e[50]=K):K=e[50];let q;e[51]===x?q=e[52]:(q=(0,d.jsxs)(u,{children:[K,(0,d.jsx)(ue,{control:x,name:`mapPublicIpOnLaunch`,render:_e})]}),e[51]=x,e[52]=q);let J;e[53]===E?J=e[54]:(J=be(E),e[53]=E,e[54]=J);let Y;e[55]===J?Y=e[56]:(Y=(0,d.jsx)(ne,{commands:J}),e[55]=J,e[56]=Y);let X;e[57]===t?X=e[58]:(X=async()=>await t({to:`/ec2/describe-subnets`}),e[57]=t,e[58]=X);let Z;e[59]!==p.isPending||e[60]!==we||e[61]!==X?(Z=(0,d.jsx)(fe,{isPending:p.isPending,isSubmitting:we,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Subnet`}),e[59]=p.isPending,e[60]=we,e[61]=X,e[62]=Z):Z=e[62];let Q;e[63]!==M||e[64]!==L||e[65]!==H||e[66]!==G||e[67]!==q||e[68]!==Y||e[69]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:M,children:[L,H,G,q,Y,Z]}),e[63]=M,e[64]=L,e[65]=H,e[66]=G,e[67]=q,e[68]=Y,e[69]=Z,e[70]=Q):Q=e[70];let $;return e[71]!==j||e[72]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[A,k,j,Q]}),e[71]=j,e[72]=Q,e[73]=$):$=e[73],$}function _e(e){let{field:t}=e;return(0,d.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,d.jsx)(`input`,{"aria-label":`Enable auto-assign public IPv4 address`,checked:t.value??!1,onChange:e=>t.onChange(e.target.checked),type:`checkbox`}),`Enable auto-assign public IPv4 address`]})}function ve(e){return(0,d.jsx)(s,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function ye(e){let t=i(e.Tags);return(0,d.jsx)(s,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function be(e){let t=e(`vpcId`),n=typeof t==`string`?t:``,r=e(`cidrBlock`),i=typeof r==`string`?r:``,a=e(`availabilityZone`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ --vpc-id`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ --cidr-block`},{type:`value`,value:` ${i||``}`}];o&&s.push({type:`flag`,value:` \\ --availability-zone`},{type:`value`,value:` ${o}`});let c=[{label:`Create Subnet`,parts:s}];return e(`mapPublicIpOnLaunch`)===!0&&c.push({label:`Enable auto-assign public IPv4`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 modify-subnet-attribute`},{type:`flag`,value:` \\ diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js index 1124ef63f..fc3b9b759 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Wt as i}from"./auth.js";import{t as a}from"./button.js";import{lt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Addresses?i=e[1]:(i=t.Addresses??[],e[0]=t.Addresses,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/ec2/allocate-address`,children:(0,u.jsx)(a,{children:`Allocate Elastic IP`})}),title:`Elastic IPs`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No Elastic IPs found.`})]}),e[3]=c,e[4]=p),p}function f(e){if(!e.AllocationId)return null;let t=i(e.Tags),n=e.AssociationId?`${e.PublicIp} • associated`:`${e.PublicIp} • available`;return(0,u.jsx)(c,{params:{id:e.AllocationId},subtitle:n,title:t?`${e.AllocationId} (${t})`:e.AllocationId??``,to:`/ec2/describe-addresses/$id`},e.AllocationId)}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{lt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Addresses?i=e[1]:(i=t.Addresses??[],e[0]=t.Addresses,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/ec2/allocate-address`,children:(0,u.jsx)(a,{children:`Allocate Elastic IP`})}),title:`Elastic IPs`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No Elastic IPs found.`})]}),e[3]=c,e[4]=p),p}function f(e){if(!e.AllocationId)return null;let t=i(e.Tags),n=e.AssociationId?`${e.PublicIp} • associated`:`${e.PublicIp} • available`;return(0,u.jsx)(c,{params:{id:e.AllocationId},subtitle:n,title:t?`${e.AllocationId} (${t})`:e.AllocationId??``,to:`/ec2/describe-addresses/$id`},e.AllocationId)}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-internet-gateways.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-internet-gateways.js index 1f2800b5d..7cf734030 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-internet-gateways.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-internet-gateways.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Wt as i}from"./auth.js";import{t as a}from"./button.js";import{vt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.InternetGateways?i=e[1]:(i=t.InternetGateways??[],e[0]=t.InternetGateways,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/ec2/create-internet-gateway`,children:(0,u.jsx)(a,{children:`Create Internet Gateway`})}),title:`Internet Gateways`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No Internet Gateways found.`})]}),e[3]=c,e[4]=p),p}function f(e){if(!e.InternetGatewayId)return null;let t=i(e.Tags),n=e.Attachments?.[0]?.VpcId;return(0,u.jsx)(c,{params:{id:e.InternetGatewayId},subtitle:n?`attached to ${n}`:`detached`,title:t?`${e.InternetGatewayId} (${t})`:e.InternetGatewayId,to:`/ec2/describe-internet-gateways/$id`},e.InternetGatewayId)}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{vt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.InternetGateways?i=e[1]:(i=t.InternetGateways??[],e[0]=t.InternetGateways,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/ec2/create-internet-gateway`,children:(0,u.jsx)(a,{children:`Create Internet Gateway`})}),title:`Internet Gateways`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No Internet Gateways found.`})]}),e[3]=c,e[4]=p),p}function f(e){if(!e.InternetGatewayId)return null;let t=i(e.Tags),n=e.Attachments?.[0]?.VpcId;return(0,u.jsx)(c,{params:{id:e.InternetGatewayId},subtitle:n?`attached to ${n}`:`detached`,title:t?`${e.InternetGatewayId} (${t})`:e.InternetGatewayId,to:`/ec2/describe-internet-gateways/$id`},e.InternetGatewayId)}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js index 4f0eeb50a..0a5d492de 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{Ir as o,R as s}from"./index.js";import{t as c}from"./page-heading.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(10),t=o(),{data:f}=n(s),m;e[0]===f.LoadBalancers?m=e[1]:(m=f.LoadBalancers??[],e[0]=f.LoadBalancers,e[1]=m);let h=m,g;e[2]===t?g=e[3]:(g=(0,d.jsx)(c,{actions:(0,d.jsx)(a,{onClick:async()=>await t({to:`/ec2/create-load-balancer`}),children:`Create Load Balancer`}),title:`Load Balancers`}),e[2]=t,e[3]=g);let _;e[4]!==h||e[5]!==t?(_=h.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`DNS Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`State`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Scheme`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`})]})}),(0,d.jsx)(`tbody`,{children:h.map(e=>{if(!e.LoadBalancerArn)return null;let n=e.LoadBalancerArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(r,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.DNSName??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:(0,d.jsx)(l,{state:e.State?.Code})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Type??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Scheme??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:i(e.CreatedTime)})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),e[4]=h,e[5]=t,e[6]=_):_=e[6];let v;return e[7]!==g||e[8]!==_?(v=(0,d.jsxs)(d.Fragment,{children:[g,_]}),e[7]=g,e[8]=_,e[9]=v):v=e[9],v}function p(e){return e.stopPropagation()}var m=f;export{m as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Bt as i}from"./auth.js";import{t as a}from"./button.js";import{Ir as o,R as s}from"./index.js";import{t as c}from"./page-heading.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(10),t=o(),{data:f}=n(s),m;e[0]===f.LoadBalancers?m=e[1]:(m=f.LoadBalancers??[],e[0]=f.LoadBalancers,e[1]=m);let h=m,g;e[2]===t?g=e[3]:(g=(0,d.jsx)(c,{actions:(0,d.jsx)(a,{onClick:async()=>await t({to:`/ec2/create-load-balancer`}),children:`Create Load Balancer`}),title:`Load Balancers`}),e[2]=t,e[3]=g);let _;e[4]!==h||e[5]!==t?(_=h.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`DNS Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`State`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Scheme`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`})]})}),(0,d.jsx)(`tbody`,{children:h.map(e=>{if(!e.LoadBalancerArn)return null;let n=e.LoadBalancerArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(r,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.DNSName??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:(0,d.jsx)(l,{state:e.State?.Code})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Type??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Scheme??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:i(e.CreatedTime)})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),e[4]=h,e[5]=t,e[6]=_):_=e[6];let v;return e[7]!==g||e[8]!==_?(v=(0,d.jsxs)(d.Fragment,{children:[g,_]}),e[7]=g,e[8]=_,e[9]=v):v=e[9],v}function p(e){return e.stopPropagation()}var m=f;export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-nat-gateways.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-nat-gateways.js index 955af61f1..554563874 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-nat-gateways.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-nat-gateways.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Wt as i}from"./auth.js";import{t as a}from"./button.js";import{St as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.NatGateways?i=e[1]:(i=t.NatGateways??[],e[0]=t.NatGateways,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-nat-gateway`,children:(0,d.jsx)(a,{children:`Create NAT Gateway`})}),title:`NAT Gateways`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No NAT Gateways found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.NatGatewayId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.NatGatewayId},subtitle:e.SubnetId??``,title:t?`${e.NatGatewayId} (${t})`:e.NatGatewayId,to:`/ec2/describe-nat-gateways/$id`},e.NatGatewayId)}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{St as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.NatGateways?i=e[1]:(i=t.NatGateways??[],e[0]=t.NatGateways,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-nat-gateway`,children:(0,d.jsx)(a,{children:`Create NAT Gateway`})}),title:`NAT Gateways`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No NAT Gateways found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.NatGatewayId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.NatGatewayId},subtitle:e.SubnetId??``,title:t?`${e.NatGatewayId} (${t})`:e.NatGatewayId,to:`/ec2/describe-nat-gateways/$id`},e.NatGatewayId)}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-route-tables.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-route-tables.js index 2682162c6..14a7729bf 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-route-tables.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-route-tables.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Wt as i}from"./auth.js";import{t as a}from"./button.js";import{Dt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.RouteTables?i=e[1]:(i=t.RouteTables??[],e[0]=t.RouteTables,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-route-table`,children:(0,d.jsx)(a,{children:`Create Route Table`})}),title:`Route Tables`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No Route Tables found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.RouteTableId)return null;let t=i(e.Tags),n=e.Associations?.some(h)??!1,r=e.Associations?.filter(m).length??0;return(0,d.jsx)(c,{badge:n?(0,d.jsx)(l,{variant:`secondary`,children:`Main`}):null,params:{id:e.RouteTableId},subtitle:`${e.VpcId??``} · ${r} subnet${r===1?``:`s`}`,title:t?`${e.RouteTableId} (${t})`:e.RouteTableId,to:`/ec2/describe-route-tables/$id`},e.RouteTableId)}function m(e){return e.SubnetId}function h(e){return e.Main}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{Dt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.RouteTables?i=e[1]:(i=t.RouteTables??[],e[0]=t.RouteTables,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-route-table`,children:(0,d.jsx)(a,{children:`Create Route Table`})}),title:`Route Tables`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No Route Tables found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.RouteTableId)return null;let t=i(e.Tags),n=e.Associations?.some(h)??!1,r=e.Associations?.filter(m).length??0;return(0,d.jsx)(c,{badge:n?(0,d.jsx)(l,{variant:`secondary`,children:`Main`}):null,params:{id:e.RouteTableId},subtitle:`${e.VpcId??``} · ${r} subnet${r===1?``:`s`}`,title:t?`${e.RouteTableId} (${t})`:e.RouteTableId,to:`/ec2/describe-route-tables/$id`},e.RouteTableId)}function m(e){return e.SubnetId}function h(e){return e.Main}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js index abe50bf49..a3864c762 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Wt as i}from"./auth.js";import{t as a}from"./button.js";import{Nt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Subnets?i=e[1]:(i=t.Subnets??[],e[0]=t.Subnets,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-subnet`,children:(0,d.jsx)(a,{children:`Create Subnet`})}),title:`Subnets`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.SubnetId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.SubnetId},subtitle:`${e.CidrBlock??``} \u2022 ${e.AvailabilityZone??``}`,title:t?`${e.SubnetId} (${t})`:e.SubnetId,to:`/ec2/describe-subnets/$id`},e.SubnetId)}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{Nt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Subnets?i=e[1]:(i=t.Subnets??[],e[0]=t.Subnets,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-subnet`,children:(0,d.jsx)(a,{children:`Create Subnet`})}),title:`Subnets`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.SubnetId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.SubnetId},subtitle:`${e.CidrBlock??``} \u2022 ${e.AvailabilityZone??``}`,title:t?`${e.SubnetId} (${t})`:e.SubnetId,to:`/ec2/describe-subnets/$id`},e.SubnetId)}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js index 1aa82a611..024b90f80 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Wt as i}from"./auth.js";import{t as a}from"./button.js";import{Lt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Vpcs?i=e[1]:(i=t.Vpcs??[],e[0]=t.Vpcs,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-vpc`,children:(0,d.jsx)(a,{children:`Create VPC`})}),title:`VPCs`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No VPCs found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.VpcId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??``,title:t?`${e.VpcId} (${t})`:e.VpcId,to:`/ec2/describe-vpcs/$id`},e.VpcId)}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{Lt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Vpcs?i=e[1]:(i=t.Vpcs??[],e[0]=t.Vpcs,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-vpc`,children:(0,d.jsx)(a,{children:`Create VPC`})}),title:`VPCs`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No VPCs found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.VpcId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??``,title:t?`${e.VpcId} (${t})`:e.VpcId,to:`/ec2/describe-vpcs/$id`},e.VpcId)}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/dist.js b/spinifex/services/spinifexui/frontend/dist/assets/dist.js index 2306ca316..fb3eb5415 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/dist.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/dist.js @@ -1 +1 @@ -import{o as e,r as t}from"./compiler-runtime.js";import{Kt as n}from"./auth.js";function r(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var i={};function a(e,t,n,r,i){if(!n&&!r&&!i&&!e)return s(t);let a=s(e);return t&&(a=c(a,t)),n&&(a=c(a,n)),r&&(a=c(a,r)),i&&(a=c(a,i)),a}function o(e){if(e.length===0)return i;if(e.length===1)return s(e[0]);let t=s(e[0]);for(let n=1;n=65&&i<=90&&(typeof t==`function`||t===void 0)}function f(e){return typeof e==`function`}function p(e,t){return f(e)?e(t):e??i}function m(e,t){return t?e?(...n)=>{let r=n[0];if(v(r)){let i=r;g(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:h(t):e}function h(e){return e&&((...t)=>{let n=t[0];return v(n)&&g(n),e(...t)})}function g(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function _(e,t){return t?e?t+` `+e:t:e}function v(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function y(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var b=y(`https://base-ui.com/production-error`,`Base UI`),x=e(t()),S={};function C(e,t){let n=x.useRef(S);return n.current===S&&(n.current=e(t)),n}function w(e,t,n,r){let i=C(E).current;return D(i,e,t,n,r)&&k(i,[e,t,n,r]),i.callback}function T(e){let t=C(E).current;return O(t,e)&&k(t,e),t.callback}function E(){return{callback:null,cleanup:null,refs:[]}}function D(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function O(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function k(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e=e}function M(e){if(!x.isValidElement(e))return null;let t=e,n=t.props;return(j(19)?n?.ref:t.ref)??null}function N(){}var P=Object.freeze([]),F=Object.freeze({});function I(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function L(e,t){return typeof e==`function`?e(t):e}function R(e,t){return typeof e==`function`?e(t):e}function z(e,t,n={}){let r=t.render,i=B(t,n);return n.enabled===!1?null:U(e,r,i,n.state??F)}function B(e,t={}){let{className:n,style:i,render:a}=e,{state:o=F,ref:s,props:c,stateAttributesMapping:l,enabled:u=!0}=t,d=u?L(n,o):void 0,f=u?R(i,o):void 0,p=u?I(o,l):F,m=u&&c?V(c):void 0,h=u?r(p,m)??{}:F;return typeof document<`u`&&(u?Array.isArray(s)?h.ref=T([h.ref,M(a),...s]):h.ref=w(h.ref,M(a),s):w(null,null)),u?(d!==void 0&&(h.className=_(h.className,d)),f!==void 0&&(h.style=r(h.style,f)),h):F}function V(e){return Array.isArray(e)?o(e):a(void 0,e)}var H=Symbol.for(`react.lazy`);function U(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=a(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===H&&(i=x.Children.toArray(t)[0]),x.cloneElement(i,e)}if(e&&typeof e==`string`)return W(e,n);throw Error(b(8))}function W(e,t){return e===`button`?(0,x.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,x.createElement)(`img`,{alt:``,...t,key:t.key}):x.createElement(e,t)}var G=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,K=n,q=(e,t)=>n=>{if(t?.variants==null)return K(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=G(t)||G(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return K(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};export{F as a,w as c,g as d,a as f,P as i,C as l,z as n,N as o,R as r,j as s,q as t,b as u}; \ No newline at end of file +import{o as e,r as t}from"./compiler-runtime.js";import{Gt as n}from"./auth.js";function r(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var i={};function a(e,t,n,r,i){if(!n&&!r&&!i&&!e)return s(t);let a=s(e);return t&&(a=c(a,t)),n&&(a=c(a,n)),r&&(a=c(a,r)),i&&(a=c(a,i)),a}function o(e){if(e.length===0)return i;if(e.length===1)return s(e[0]);let t=s(e[0]);for(let n=1;n=65&&i<=90&&(typeof t==`function`||t===void 0)}function f(e){return typeof e==`function`}function p(e,t){return f(e)?e(t):e??i}function m(e,t){return t?e?(...n)=>{let r=n[0];if(v(r)){let i=r;g(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:h(t):e}function h(e){return e&&((...t)=>{let n=t[0];return v(n)&&g(n),e(...t)})}function g(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function _(e,t){return t?e?t+` `+e:t:e}function v(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function y(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var b=y(`https://base-ui.com/production-error`,`Base UI`),x=e(t()),S={};function C(e,t){let n=x.useRef(S);return n.current===S&&(n.current=e(t)),n}function w(e,t,n,r){let i=C(E).current;return D(i,e,t,n,r)&&k(i,[e,t,n,r]),i.callback}function T(e){let t=C(E).current;return O(t,e)&&k(t,e),t.callback}function E(){return{callback:null,cleanup:null,refs:[]}}function D(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function O(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function k(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e=e}function M(e){if(!x.isValidElement(e))return null;let t=e,n=t.props;return(j(19)?n?.ref:t.ref)??null}function N(){}var P=Object.freeze([]),F=Object.freeze({});function I(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function L(e,t){return typeof e==`function`?e(t):e}function R(e,t){return typeof e==`function`?e(t):e}function z(e,t,n={}){let r=t.render,i=B(t,n);return n.enabled===!1?null:U(e,r,i,n.state??F)}function B(e,t={}){let{className:n,style:i,render:a}=e,{state:o=F,ref:s,props:c,stateAttributesMapping:l,enabled:u=!0}=t,d=u?L(n,o):void 0,f=u?R(i,o):void 0,p=u?I(o,l):F,m=u&&c?V(c):void 0,h=u?r(p,m)??{}:F;return typeof document<`u`&&(u?Array.isArray(s)?h.ref=T([h.ref,M(a),...s]):h.ref=w(h.ref,M(a),s):w(null,null)),u?(d!==void 0&&(h.className=_(h.className,d)),f!==void 0&&(h.style=r(h.style,f)),h):F}function V(e){return Array.isArray(e)?o(e):a(void 0,e)}var H=Symbol.for(`react.lazy`);function U(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=a(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===H&&(i=x.Children.toArray(t)[0]),x.cloneElement(i,e)}if(e&&typeof e==`string`)return W(e,n);throw Error(b(8))}function W(e,t){return e===`button`?(0,x.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,x.createElement)(`img`,{alt:``,...t,key:t.key}):x.createElement(e,t)}var G=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,K=n,q=(e,t)=>n=>{if(t?.variants==null)return K(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=G(t)||G(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return K(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};export{F as a,w as c,g as d,a as f,P as i,C as l,z as n,N as o,R as r,j as s,q as t,b as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ec2.js b/spinifex/services/spinifexui/frontend/dist/assets/ec2.js index 9398e4000..a6e58d759 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ec2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ec2.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{n as t}from"./error-banner.js";import{$n as n,An as r,Cn as i,Dn as a,En as o,Mn as s,On as c,Qn as l,Sn as u,Tn as d,Xn as f,Zn as p,_n as ee,an as m,ar as h,bn as te,cn as ne,cr as re,dn as ie,dr as ae,er as oe,fn as se,fr as ce,gn as le,hn as ue,in as de,ir as fe,jn as pe,kn as me,ln as he,lr as ge,mn as _e,mr as g,nn as ve,nr as ye,on as be,or as xe,pn as _,pr as v,r as y,rn as b,rr as x,sn as S,sr as C,tn as w,tr as T,un as E,ur as D,vn as O,wn as k,xn as A,yn as j}from"./awsClient.js";import{Ct as M,Ft as N,O as Se,Q as Ce,ct as we,dt as P,jt as Te,ut as Ee}from"./auth.js";import{Lr as F,bt as I}from"./index.js";import{t as De}from"./subnet-calculator.js";var L=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AllocateAddress`,{}).n(`EC2Client`,`AllocateAddressCommand`).sc(w).build(){},Oe=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateAddress`,{}).n(`EC2Client`,`AssociateAddressCommand`).sc(ve).build(){},ke=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateIamInstanceProfile`,{}).n(`EC2Client`,`AssociateIamInstanceProfileCommand`).sc(b).build(){},R=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateRouteTable`,{}).n(`EC2Client`,`AssociateRouteTableCommand`).sc(de).build(){},z=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachInternetGateway`,{}).n(`EC2Client`,`AttachInternetGatewayCommand`).sc(m).build(){},Ae=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachVolume`,{}).n(`EC2Client`,`AttachVolumeCommand`).sc(be).build(){},je=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupEgress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupEgressCommand`).sc(S).build(){},B=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupIngress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupIngressCommand`).sc(ne).build(){};function Me(e){let{port:t,query:n}=e,{protocol:r,path:i,hostname:a}=e;r&&r.slice(-1)!==`:`&&(r+=`:`),t&&(a+=`:${t}`),i&&i.charAt(0)!==`/`&&(i=`/${i}`);let o=n?Ce(n):``;o&&o[0]!==`?`&&(o=`?${o}`);let s=``;(e.username!=null||e.password!=null)&&(s=`${e.username??``}:${e.password??``}@`);let c=``;return e.fragment&&(c=`#${e.fragment}`),`${r}//${s}${a}${i}${o}${c}`}var Ne=`2016-11-15`;function Pe(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await Ee(r,{getEndpointParameterInstructions(){return{UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}}},{...e,region:r.SourceRegion}),a=typeof e.endpoint==`function`?await e.endpoint():Te(i),o=new N({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:Ne,DestinationRegion:t}}),s=await new Se({credentials:e.credentials,region:r.SourceRegion,service:`ec2`,sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(o,{expiresIn:3600});if(n={...n,input:{...n.input,DestinationRegion:t,PresignedUrl:Me(s)}},N.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${we(n.input.PresignedUrl)}`)}}return t(n)}}var Fe={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},Ie=e=>({applyToStack:t=>{t.add(Pe(e),Fe)}}),Le=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions()),Ie(n)]}).s(`AmazonEC2`,`CopySnapshot`,{}).n(`EC2Client`,`CopySnapshotCommand`).sc(he).build(){},Re=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateImage`,{}).n(`EC2Client`,`CreateImageCommand`).sc(E).build(){},V=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateInternetGateway`,{}).n(`EC2Client`,`CreateInternetGatewayCommand`).sc(ie).build(){},ze=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateKeyPair`,{}).n(`EC2Client`,`CreateKeyPairCommand`).sc(se).build(){},H=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateNatGateway`,{}).n(`EC2Client`,`CreateNatGatewayCommand`).sc(_).build(){},Be=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreatePlacementGroup`,{}).n(`EC2Client`,`CreatePlacementGroupCommand`).sc(_e).build(){},U=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRoute`,{}).n(`EC2Client`,`CreateRouteCommand`).sc(ue).build(){},W=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRouteTable`,{}).n(`EC2Client`,`CreateRouteTableCommand`).sc(le).build(){},G=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSecurityGroup`,{}).n(`EC2Client`,`CreateSecurityGroupCommand`).sc(ee).build(){},Ve=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSnapshot`,{}).n(`EC2Client`,`CreateSnapshotCommand`).sc(O).build(){},K=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSubnet`,{}).n(`EC2Client`,`CreateSubnetCommand`).sc(j).build(){},He=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVolume`,{}).n(`EC2Client`,`CreateVolumeCommand`).sc(te).build(){},q=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVpc`,{}).n(`EC2Client`,`CreateVpcCommand`).sc(A).build(){},Ue=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteInternetGateway`,{}).n(`EC2Client`,`DeleteInternetGatewayCommand`).sc(u).build(){},We=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteKeyPair`,{}).n(`EC2Client`,`DeleteKeyPairCommand`).sc(i).build(){},Ge=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteNatGateway`,{}).n(`EC2Client`,`DeleteNatGatewayCommand`).sc(k).build(){},Ke=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeletePlacementGroup`,{}).n(`EC2Client`,`DeletePlacementGroupCommand`).sc(d).build(){},qe=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRoute`,{}).n(`EC2Client`,`DeleteRouteCommand`).sc(o).build(){},Je=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRouteTable`,{}).n(`EC2Client`,`DeleteRouteTableCommand`).sc(a).build(){},Ye=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSecurityGroup`,{}).n(`EC2Client`,`DeleteSecurityGroupCommand`).sc(c).build(){},Xe=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSnapshot`,{}).n(`EC2Client`,`DeleteSnapshotCommand`).sc(me).build(){},Ze=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSubnet`,{}).n(`EC2Client`,`DeleteSubnetCommand`).sc(r).build(){},Qe=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVolume`,{}).n(`EC2Client`,`DeleteVolumeCommand`).sc(pe).build(){},$e=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVpc`,{}).n(`EC2Client`,`DeleteVpcCommand`).sc(s).build(){},et=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachInternetGateway`,{}).n(`EC2Client`,`DetachInternetGatewayCommand`).sc(f).build(){},tt=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachVolume`,{}).n(`EC2Client`,`DetachVolumeCommand`).sc(p).build(){},nt=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateAddress`,{}).n(`EC2Client`,`DisassociateAddressCommand`).sc(l).build(){},rt=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateIamInstanceProfile`,{}).n(`EC2Client`,`DisassociateIamInstanceProfileCommand`).sc(n).build(){},it=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateRouteTable`,{}).n(`EC2Client`,`DisassociateRouteTableCommand`).sc(oe).build(){},at=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`GetConsoleOutput`,{}).n(`EC2Client`,`GetConsoleOutputCommand`).sc(T).build(){},ot=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ImportKeyPair`,{}).n(`EC2Client`,`ImportKeyPairCommand`).sc(ye).build(){},st=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyInstanceAttribute`,{}).n(`EC2Client`,`ModifyInstanceAttributeCommand`).sc(x).build(){},J=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifySubnetAttribute`,{}).n(`EC2Client`,`ModifySubnetAttributeCommand`).sc(fe).build(){},ct=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyVolume`,{}).n(`EC2Client`,`ModifyVolumeCommand`).sc(h).build(){},lt=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RebootInstances`,{}).n(`EC2Client`,`RebootInstancesCommand`).sc(xe).build(){},ut=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ReleaseAddress`,{}).n(`EC2Client`,`ReleaseAddressCommand`).sc(C).build(){},dt=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupEgress`,{}).n(`EC2Client`,`RevokeSecurityGroupEgressCommand`).sc(re).build(){},ft=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupIngress`,{}).n(`EC2Client`,`RevokeSecurityGroupIngressCommand`).sc(ge).build(){},pt=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RunInstances`,{}).n(`EC2Client`,`RunInstancesCommand`).sc(D).build(){},mt=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StartInstances`,{}).n(`EC2Client`,`StartInstancesCommand`).sc(ae).build(){},ht=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StopInstances`,{}).n(`EC2Client`,`StopInstancesCommand`).sc(ce).build(){},gt=class extends M.classBuilder().ep(g).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`TerminateInstances`,{}).n(`EC2Client`,`TerminateInstancesCommand`).sc(v).build(){},Y={capacity_block:`capacity-block`,capacity_manager_data_export:`capacity-manager-data-export`,capacity_reservation:`capacity-reservation`,capacity_reservation_cancellation_quote:`capacity-reservation-cancellation-quote`,capacity_reservation_fleet:`capacity-reservation-fleet`,carrier_gateway:`carrier-gateway`,client_vpn_endpoint:`client-vpn-endpoint`,coip_pool:`coip-pool`,customer_gateway:`customer-gateway`,declarative_policies_report:`declarative-policies-report`,dedicated_host:`dedicated-host`,dhcp_options:`dhcp-options`,egress_only_internet_gateway:`egress-only-internet-gateway`,elastic_gpu:`elastic-gpu`,elastic_ip:`elastic-ip`,export_image_task:`export-image-task`,export_instance_task:`export-instance-task`,fleet:`fleet`,fpga_image:`fpga-image`,host_reservation:`host-reservation`,image:`image`,image_usage_report:`image-usage-report`,import_image_task:`import-image-task`,import_snapshot_task:`import-snapshot-task`,instance:`instance`,instance_connect_endpoint:`instance-connect-endpoint`,instance_event_window:`instance-event-window`,internet_gateway:`internet-gateway`,ipam:`ipam`,ipam_external_resource_verification_token:`ipam-external-resource-verification-token`,ipam_policy:`ipam-policy`,ipam_pool:`ipam-pool`,ipam_pool_allocation:`ipam-pool-allocation`,ipam_prefix_list_resolver:`ipam-prefix-list-resolver`,ipam_prefix_list_resolver_target:`ipam-prefix-list-resolver-target`,ipam_resource_discovery:`ipam-resource-discovery`,ipam_resource_discovery_association:`ipam-resource-discovery-association`,ipam_scope:`ipam-scope`,ipv4pool_ec2:`ipv4pool-ec2`,ipv6pool_ec2:`ipv6pool-ec2`,key_pair:`key-pair`,launch_template:`launch-template`,local_gateway:`local-gateway`,local_gateway_route_table:`local-gateway-route-table`,local_gateway_route_table_virtual_interface_group_association:`local-gateway-route-table-virtual-interface-group-association`,local_gateway_route_table_vpc_association:`local-gateway-route-table-vpc-association`,local_gateway_virtual_interface:`local-gateway-virtual-interface`,local_gateway_virtual_interface_group:`local-gateway-virtual-interface-group`,mac_modification_task:`mac-modification-task`,natgateway:`natgateway`,network_acl:`network-acl`,network_insights_access_scope:`network-insights-access-scope`,network_insights_access_scope_analysis:`network-insights-access-scope-analysis`,network_insights_analysis:`network-insights-analysis`,network_insights_path:`network-insights-path`,network_interface:`network-interface`,outpost_lag:`outpost-lag`,placement_group:`placement-group`,prefix_list:`prefix-list`,replace_root_volume_task:`replace-root-volume-task`,reserved_instances:`reserved-instances`,route_server:`route-server`,route_server_endpoint:`route-server-endpoint`,route_server_peer:`route-server-peer`,route_table:`route-table`,secondary_interface:`secondary-interface`,secondary_network:`secondary-network`,secondary_subnet:`secondary-subnet`,security_group:`security-group`,security_group_rule:`security-group-rule`,service_link_virtual_interface:`service-link-virtual-interface`,snapshot:`snapshot`,spot_fleet_request:`spot-fleet-request`,spot_instances_request:`spot-instances-request`,subnet:`subnet`,subnet_cidr_reservation:`subnet-cidr-reservation`,traffic_mirror_filter:`traffic-mirror-filter`,traffic_mirror_filter_rule:`traffic-mirror-filter-rule`,traffic_mirror_session:`traffic-mirror-session`,traffic_mirror_target:`traffic-mirror-target`,transit_gateway:`transit-gateway`,transit_gateway_attachment:`transit-gateway-attachment`,transit_gateway_connect_peer:`transit-gateway-connect-peer`,transit_gateway_metering_policy:`transit-gateway-metering-policy`,transit_gateway_multicast_domain:`transit-gateway-multicast-domain`,transit_gateway_policy_table:`transit-gateway-policy-table`,transit_gateway_route_table:`transit-gateway-route-table`,transit_gateway_route_table_announcement:`transit-gateway-route-table-announcement`,verified_access_endpoint:`verified-access-endpoint`,verified_access_endpoint_target:`verified-access-endpoint-target`,verified_access_group:`verified-access-group`,verified_access_instance:`verified-access-instance`,verified_access_policy:`verified-access-policy`,verified_access_trust_provider:`verified-access-trust-provider`,volume:`volume`,vpc:`vpc`,vpc_block_public_access_exclusion:`vpc-block-public-access-exclusion`,vpc_encryption_control:`vpc-encryption-control`,vpc_endpoint:`vpc-endpoint`,vpc_endpoint_connection:`vpc-endpoint-connection`,vpc_endpoint_connection_device_type:`vpc-endpoint-connection-device-type`,vpc_endpoint_service:`vpc-endpoint-service`,vpc_endpoint_service_permission:`vpc-endpoint-service-permission`,vpc_flow_log:`vpc-flow-log`,vpc_peering_connection:`vpc-peering-connection`,vpn_concentrator:`vpn-concentrator`,vpn_connection:`vpn-connection`,vpn_connection_device_type:`vpn-connection-device-type`,vpn_gateway:`vpn-gateway`},X=e(),_t=/\s+/;function vt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function yt(e){let t=new mt({InstanceIds:[e]});return await y().send(t)}function bt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:xt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function xt(e){let t=new ht({InstanceIds:[e]});return await y().send(t)}function St(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ct,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Ct(e){let t=new gt({InstanceIds:[e]});return await y().send(t)}function wt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Tt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Tt(e){let t=new lt({InstanceIds:[e]});return await y().send(t)}function Et(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Dt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function Dt(e){let t=y(),n=await Ot(t,e),r=new pt({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0,SecurityGroupIds:n.length>0?n:void 0,Placement:e.placementGroupName?{GroupName:e.placementGroupName}:void 0,BlockDeviceMappings:kt(e)});return await t.send(r)}async function Ot(e,t){if(t.securityGroupMode!==`create`)return t.securityGroupIds??[];let n=(await e.send(new G({GroupName:t.newSgName,Description:t.newSgDescription||`Created by launch wizard`,VpcId:t.resolvedVpcId}))).GroupId;if(!n)throw Error(`Security group was created but no ID was returned`);let r=[...t.allowSsh?[22]:[],...t.allowHttp?[80]:[],...t.allowHttps?[443]:[]];if(r.length>0){let i=t.ruleSource===`custom`&&t.customCidr?t.customCidr:`0.0.0.0/0`;await e.send(new B({GroupId:n,IpPermissions:r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:i}]}))}))}return[n]}function kt(e){let{rootDeviceName:t,rootVolumeSize:n,rootVolumeType:r,rootDeleteOnTermination:i}=e;return n!==void 0||r!==void 0||i!==void 0?[{DeviceName:t,Ebs:{...n!==void 0&&{VolumeSize:n},...r!==void 0&&{VolumeType:r},...i!==void 0&&{DeleteOnTermination:i}}}]:void 0}function At(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:jt,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function jt(e){let t=new ze({KeyName:e.keyName,KeyType:`rsa`}),n=await y().send(t);if(!n.KeyMaterial)throw Error(`Key pair was created but the API returned no private key. The key cannot be recovered — delete it and try again.`);return n}function Mt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Nt,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function Nt(e){let t=e.publicKeyMaterial.trim().split(_t).slice(0,2).join(` `),n=new ot({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await y().send(n)}function Pt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ft,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function Ft(e){let t=new We({KeyPairId:e});return await y().send(t)}function It(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Lt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Lt(e){let t=new He({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await y().send(t)}function Rt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function zt(e){let t=new ct({VolumeId:e.volumeId,Size:e.size});return await y().send(t)}function Bt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Vt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Vt(e){let t=new Qe({VolumeId:e});return await y().send(t)}function Ht(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ut,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Ut(e){let t=new Ve({VolumeId:e.volumeId,Description:e.description||void 0});return await y().send(t)}function Wt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Gt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Gt(e){let t=new Xe({SnapshotId:e});return await y().send(t)}function Kt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:qt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function qt(e){let t=new Le({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await y().send(t)}function Jt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Yt(e){let t=new Ae({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await y().send(t)}function Xt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Zt(e){let t=new tt({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await y().send(t)}function Qt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:$t,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function $t(e){let{instanceId:t,...n}=e,r=new st({InstanceId:t,InstanceType:{Value:n.instanceType}});return await y().send(r)}function en(){let e=(0,X.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:tn},e[0]=n):n=e[0],t(n)}async function tn(e){let t=new at({InstanceId:e});return await y().send(t)}function nn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(r)}async function rn(e){let t=new Re({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await y().send(t)}function an(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:on,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function on(e){let t=new q({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await y().send(t)}function sn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:cn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function cn(e){let t=new $e({VpcId:e});return await y().send(t)}function ln(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:un,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function un(e){let t=y(),n=await t.send(new K({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0})),r=n.Subnet?.SubnetId;return e.mapPublicIpOnLaunch&&r&&await t.send(new J({SubnetId:r,MapPublicIpOnLaunch:{Value:!0}})),n}function dn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:fn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function fn(e){let t=new Ze({SubnetId:e});return await y().send(t)}function pn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function mn(e){let t=new Be({GroupName:e.groupName,Strategy:e.strategy});return await y().send(t)}function hn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:gn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function gn(e){let t=new Ke({GroupName:e});return await y().send(t)}function _n(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:vn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function vn(e){let t=new G({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await y().send(t)}function yn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function bn(e){let t=new Ye({GroupId:e});return await y().send(t)}function xn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Sn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function Sn(e){let t=new B({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await y().send(t)}function Cn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:wn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function wn(e){let t=new je({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await y().send(t)}function Z(e){return{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,...e.sourceGroupId?{UserIdGroupPairs:[{GroupId:e.sourceGroupId}]}:{IpRanges:[{CidrIp:e.cidrIp??``}]}}}function Tn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:En,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function En(e){let t=new ft({GroupId:e.groupId,IpPermissions:[Z(e)]});return await y().send(t)}function Dn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:On,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function On(e){let t=new dt({GroupId:e.groupId,IpPermissions:[Z(e)]});return await y().send(t)}function kn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:An,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function An(e){let t=new V({TagSpecifications:$(Y.internet_gateway,e?.name,[])});return await y().send(t)}function jn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Mn(e){let t=new Ue({InternetGatewayId:e});return await y().send(t)}function Nn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Pn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Pn(e){let t=new z({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await y().send(t)}function Fn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:In,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function In(e){let t=new et({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await y().send(t)}function Ln(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Rn(e){let t=new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,e?.name,[])});return await y().send(t)}function zn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Bn(e){let t=new ut({AllocationId:e});return await y().send(t)}function Vn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Hn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Hn(e){let t=new Oe({AllocationId:e.allocationId,InstanceId:e.instanceId,NetworkInterfaceId:e.networkInterfaceId});return await y().send(t)}function Un(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Wn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Wn(e){let t=new nt({AssociationId:e});return await y().send(t)}function Gn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Kn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Kn(e){let t=new ke({InstanceId:e.instanceId,IamInstanceProfile:{Name:e.instanceProfileName}});return await y().send(t)}function qn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Jn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Jn(e){let t=new rt({AssociationId:e.associationId});return await y().send(t)}function Q(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Yn(e){let t=new H({SubnetId:e.subnetId,AllocationId:e.allocationId,TagSpecifications:$(Y.natgateway,e.name,[])});return await y().send(t)}function Xn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Zn(e){let t=new Ge({NatGatewayId:e});return await y().send(t)}function Qn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:$n,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function $n(e){let t=new W({VpcId:e.vpcId,TagSpecifications:$(Y.route_table,e.name,[])});return await y().send(t)}function er(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:tr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function tr(e){let t=new Je({RouteTableId:e});return await y().send(t)}function nr(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:rr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function rr(e){let t=new U({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock,GatewayId:e.gatewayId,NatGatewayId:e.natGatewayId});return await y().send(t)}function ir(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:ar,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function ar(e){let t=new qe({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock});return await y().send(t)}function or(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:sr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function sr(e){let t=new R({RouteTableId:e.routeTableId,SubnetId:e.subnetId});return await y().send(t)}function cr(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:lr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function lr(e){let t=new it({AssociationId:e});return await y().send(t)}function ur(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function $(e,t,n){let r=ur(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}function dr(){let e=F();return t({mutationFn:async e=>{let t=y(),n=[],r=e.autoGenerateNames?e.namePrefix:void 0,i=e.tags.map(e=>({Key:e.key,Value:e.value})),a=`creating VPC`;try{let o=r?`${r}-vpc`:e.namePrefix,s=e.tenancy,c=(await t.send(new q({CidrBlock:e.cidrBlock,InstanceTenancy:s,TagSpecifications:$(Y.vpc,o,i)}))).Vpc?.VpcId;if(!c)throw Error(`VPC was created but no VPC ID was returned by the API`);if(n.push({type:`VPC`,id:c}),e.mode===`vpc-only`)return{vpcId:c,created:n};let l=De(e.cidrBlock,e.publicSubnetCount,e.privateSubnetCount),u=e.publicSubnetCidrs.length>0?e.publicSubnetCidrs:l.publicSubnets.map(e=>e.cidr),d=e.privateSubnetCidrs.length>0?e.privateSubnetCidrs:l.privateSubnets.map(e=>e.cidr);a=`creating public subnets`;let f=[];for(let a=0;a0){a=`creating internet gateway`;let e=r?`${r}-igw`:void 0,o=(await t.send(new V({TagSpecifications:$(Y.internet_gateway,e,i)}))).InternetGateway?.InternetGatewayId;if(!o)throw Error(`Internet gateway was created but no ID was returned`);n.push({type:`Internet Gateway`,id:o}),a=`attaching internet gateway to VPC`,await t.send(new z({InternetGatewayId:o,VpcId:c})),a=`creating public route table`;let s=r?`${r}-rtb-public`:void 0,l=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,s,i)}))).RouteTable?.RouteTableId;if(!l)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:l}),a=`creating default route to internet gateway`,await t.send(new U({RouteTableId:l,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:o})),a=`associating public subnets with route table`;for(let e of f)await t.send(new R({RouteTableId:l,SubnetId:e}))}if(e.privateSubnetCount>0){a=`creating private route table`;let o=r?`${r}-rtb-private`:void 0,s=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,o,i)}))).RouteTable?.RouteTableId;if(!s)throw Error(`Private route table was created but no ID was returned`);n.push({type:`Private Route Table`,id:s}),a=`associating private subnets with route table`;for(let e of p)await t.send(new R({RouteTableId:s,SubnetId:e}));if(e.natGateway===`single`&&f[0]){a=`allocating Elastic IP for NAT gateway`;let e=(await t.send(new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,r?`${r}-eip-nat`:void 0,i)}))).AllocationId;if(!e)throw Error(`Elastic IP was allocated but no allocation ID was returned`);n.push({type:`Elastic IP`,id:e}),a=`creating NAT gateway`;let o=(await t.send(new H({SubnetId:f[0],AllocationId:e,TagSpecifications:$(Y.natgateway,r?`${r}-nat`:void 0,i)}))).NatGateway?.NatGatewayId;if(!o)throw Error(`NAT gateway was created but no ID was returned`);n.push({type:`NAT Gateway`,id:o}),a=`creating default route to NAT gateway`,await t.send(new U({RouteTableId:s,DestinationCidrBlock:`0.0.0.0/0`,NatGatewayId:o}))}}return{vpcId:c,created:n}}catch(e){return{vpcId:n.find(e=>e.type===`VPC`)?.id,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:`Failed while ${a}`}}},onSuccess:()=>{e.invalidateQueries({queryKey:[`ec2`,`vpcs`]}),e.invalidateQueries({queryKey:[`ec2`,`subnets`]}),e.invalidateQueries({queryKey:[`ec2`,`internetGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`routeTables`]}),e.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`addresses`]})}})}export{yn as A,en as B,dr as C,hn as D,Xn as E,Fn as F,zn as G,Qt as H,Xt as I,vt as J,Dn as K,Un as L,dn as M,Bt as N,ir as O,sn as P,qn as R,an as S,Pt as T,Rt as U,Mt as V,wt as W,St as X,bt as Y,Qn as _,Nn as a,ln as b,xn as c,Et as d,kn as f,nr as g,pn as h,or as i,Wt as j,er as k,Kt as l,Q as m,Vn as n,Jt as o,At as p,Tn as q,Gn as r,Cn as s,Ln as t,nn as u,_n as v,jn as w,It as x,Ht as y,cr as z}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{n as t}from"./error-banner.js";import{$n as n,An as r,Cn as i,Dn as a,En as o,Mn as s,On as c,Qn as l,Sn as u,Tn as d,Xn as f,Zn as p,_n as ee,an as m,ar as te,bn as ne,cn as re,cr as ie,dn as ae,dr as oe,er as se,fn as ce,fr as le,gn as ue,hn as de,in as fe,ir as pe,jn as me,kn as he,ln as ge,lr as _e,mn as ve,mr as h,nn as ye,nr as be,on as xe,or as Se,pn as g,pr as _,r as v,rn as y,rr as b,sn as x,sr as S,tn as C,tr as w,un as T,ur as E,vn as D,wn as O,xn as k,yn as A}from"./awsClient.js";import{At as j,D as Ce,Pt as M,St as N,Z as we,lt as Te,st as Ee,ut as P}from"./auth.js";import{Lr as F,bt as I}from"./index.js";import{t as De}from"./subnet-calculator.js";var L=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AllocateAddress`,{}).n(`EC2Client`,`AllocateAddressCommand`).sc(C).build(){},Oe=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateAddress`,{}).n(`EC2Client`,`AssociateAddressCommand`).sc(ye).build(){},ke=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateIamInstanceProfile`,{}).n(`EC2Client`,`AssociateIamInstanceProfileCommand`).sc(y).build(){},R=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateRouteTable`,{}).n(`EC2Client`,`AssociateRouteTableCommand`).sc(fe).build(){},z=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachInternetGateway`,{}).n(`EC2Client`,`AttachInternetGatewayCommand`).sc(m).build(){},Ae=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachVolume`,{}).n(`EC2Client`,`AttachVolumeCommand`).sc(xe).build(){},je=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupEgress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupEgressCommand`).sc(x).build(){},B=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupIngress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupIngressCommand`).sc(re).build(){};function Me(e){let{port:t,query:n}=e,{protocol:r,path:i,hostname:a}=e;r&&r.slice(-1)!==`:`&&(r+=`:`),t&&(a+=`:${t}`),i&&i.charAt(0)!==`/`&&(i=`/${i}`);let o=n?we(n):``;o&&o[0]!==`?`&&(o=`?${o}`);let s=``;(e.username!=null||e.password!=null)&&(s=`${e.username??``}:${e.password??``}@`);let c=``;return e.fragment&&(c=`#${e.fragment}`),`${r}//${s}${a}${i}${o}${c}`}var Ne=`2016-11-15`;function Pe(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await Te(r,{getEndpointParameterInstructions(){return{UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}}},{...e,region:r.SourceRegion}),a=typeof e.endpoint==`function`?await e.endpoint():j(i),o=new M({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:Ne,DestinationRegion:t}}),s=await new Ce({credentials:e.credentials,region:r.SourceRegion,service:`ec2`,sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(o,{expiresIn:3600});if(n={...n,input:{...n.input,DestinationRegion:t,PresignedUrl:Me(s)}},M.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${Ee(n.input.PresignedUrl)}`)}}return t(n)}}var Fe={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},Ie=e=>({applyToStack:t=>{t.add(Pe(e),Fe)}}),Le=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions()),Ie(n)]}).s(`AmazonEC2`,`CopySnapshot`,{}).n(`EC2Client`,`CopySnapshotCommand`).sc(ge).build(){},Re=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateImage`,{}).n(`EC2Client`,`CreateImageCommand`).sc(T).build(){},V=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateInternetGateway`,{}).n(`EC2Client`,`CreateInternetGatewayCommand`).sc(ae).build(){},ze=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateKeyPair`,{}).n(`EC2Client`,`CreateKeyPairCommand`).sc(ce).build(){},H=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateNatGateway`,{}).n(`EC2Client`,`CreateNatGatewayCommand`).sc(g).build(){},Be=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreatePlacementGroup`,{}).n(`EC2Client`,`CreatePlacementGroupCommand`).sc(ve).build(){},U=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRoute`,{}).n(`EC2Client`,`CreateRouteCommand`).sc(de).build(){},W=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRouteTable`,{}).n(`EC2Client`,`CreateRouteTableCommand`).sc(ue).build(){},G=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSecurityGroup`,{}).n(`EC2Client`,`CreateSecurityGroupCommand`).sc(ee).build(){},Ve=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSnapshot`,{}).n(`EC2Client`,`CreateSnapshotCommand`).sc(D).build(){},K=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSubnet`,{}).n(`EC2Client`,`CreateSubnetCommand`).sc(A).build(){},He=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVolume`,{}).n(`EC2Client`,`CreateVolumeCommand`).sc(ne).build(){},q=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVpc`,{}).n(`EC2Client`,`CreateVpcCommand`).sc(k).build(){},Ue=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteInternetGateway`,{}).n(`EC2Client`,`DeleteInternetGatewayCommand`).sc(u).build(){},We=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteKeyPair`,{}).n(`EC2Client`,`DeleteKeyPairCommand`).sc(i).build(){},Ge=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteNatGateway`,{}).n(`EC2Client`,`DeleteNatGatewayCommand`).sc(O).build(){},Ke=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeletePlacementGroup`,{}).n(`EC2Client`,`DeletePlacementGroupCommand`).sc(d).build(){},qe=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRoute`,{}).n(`EC2Client`,`DeleteRouteCommand`).sc(o).build(){},Je=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRouteTable`,{}).n(`EC2Client`,`DeleteRouteTableCommand`).sc(a).build(){},Ye=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSecurityGroup`,{}).n(`EC2Client`,`DeleteSecurityGroupCommand`).sc(c).build(){},Xe=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSnapshot`,{}).n(`EC2Client`,`DeleteSnapshotCommand`).sc(he).build(){},Ze=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSubnet`,{}).n(`EC2Client`,`DeleteSubnetCommand`).sc(r).build(){},Qe=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVolume`,{}).n(`EC2Client`,`DeleteVolumeCommand`).sc(me).build(){},$e=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVpc`,{}).n(`EC2Client`,`DeleteVpcCommand`).sc(s).build(){},et=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachInternetGateway`,{}).n(`EC2Client`,`DetachInternetGatewayCommand`).sc(f).build(){},tt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachVolume`,{}).n(`EC2Client`,`DetachVolumeCommand`).sc(p).build(){},nt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateAddress`,{}).n(`EC2Client`,`DisassociateAddressCommand`).sc(l).build(){},rt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateIamInstanceProfile`,{}).n(`EC2Client`,`DisassociateIamInstanceProfileCommand`).sc(n).build(){},it=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateRouteTable`,{}).n(`EC2Client`,`DisassociateRouteTableCommand`).sc(se).build(){},at=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`GetConsoleOutput`,{}).n(`EC2Client`,`GetConsoleOutputCommand`).sc(w).build(){},ot=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ImportKeyPair`,{}).n(`EC2Client`,`ImportKeyPairCommand`).sc(be).build(){},st=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyInstanceAttribute`,{}).n(`EC2Client`,`ModifyInstanceAttributeCommand`).sc(b).build(){},J=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifySubnetAttribute`,{}).n(`EC2Client`,`ModifySubnetAttributeCommand`).sc(pe).build(){},ct=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyVolume`,{}).n(`EC2Client`,`ModifyVolumeCommand`).sc(te).build(){},lt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RebootInstances`,{}).n(`EC2Client`,`RebootInstancesCommand`).sc(Se).build(){},ut=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ReleaseAddress`,{}).n(`EC2Client`,`ReleaseAddressCommand`).sc(S).build(){},dt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupEgress`,{}).n(`EC2Client`,`RevokeSecurityGroupEgressCommand`).sc(ie).build(){},ft=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupIngress`,{}).n(`EC2Client`,`RevokeSecurityGroupIngressCommand`).sc(_e).build(){},pt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RunInstances`,{}).n(`EC2Client`,`RunInstancesCommand`).sc(E).build(){},mt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StartInstances`,{}).n(`EC2Client`,`StartInstancesCommand`).sc(oe).build(){},ht=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StopInstances`,{}).n(`EC2Client`,`StopInstancesCommand`).sc(le).build(){},gt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`TerminateInstances`,{}).n(`EC2Client`,`TerminateInstancesCommand`).sc(_).build(){},Y={capacity_block:`capacity-block`,capacity_manager_data_export:`capacity-manager-data-export`,capacity_reservation:`capacity-reservation`,capacity_reservation_cancellation_quote:`capacity-reservation-cancellation-quote`,capacity_reservation_fleet:`capacity-reservation-fleet`,carrier_gateway:`carrier-gateway`,client_vpn_endpoint:`client-vpn-endpoint`,coip_pool:`coip-pool`,customer_gateway:`customer-gateway`,declarative_policies_report:`declarative-policies-report`,dedicated_host:`dedicated-host`,dhcp_options:`dhcp-options`,egress_only_internet_gateway:`egress-only-internet-gateway`,elastic_gpu:`elastic-gpu`,elastic_ip:`elastic-ip`,export_image_task:`export-image-task`,export_instance_task:`export-instance-task`,fleet:`fleet`,fpga_image:`fpga-image`,host_reservation:`host-reservation`,image:`image`,image_usage_report:`image-usage-report`,import_image_task:`import-image-task`,import_snapshot_task:`import-snapshot-task`,instance:`instance`,instance_connect_endpoint:`instance-connect-endpoint`,instance_event_window:`instance-event-window`,internet_gateway:`internet-gateway`,ipam:`ipam`,ipam_external_resource_verification_token:`ipam-external-resource-verification-token`,ipam_policy:`ipam-policy`,ipam_pool:`ipam-pool`,ipam_pool_allocation:`ipam-pool-allocation`,ipam_prefix_list_resolver:`ipam-prefix-list-resolver`,ipam_prefix_list_resolver_target:`ipam-prefix-list-resolver-target`,ipam_resource_discovery:`ipam-resource-discovery`,ipam_resource_discovery_association:`ipam-resource-discovery-association`,ipam_scope:`ipam-scope`,ipv4pool_ec2:`ipv4pool-ec2`,ipv6pool_ec2:`ipv6pool-ec2`,key_pair:`key-pair`,launch_template:`launch-template`,local_gateway:`local-gateway`,local_gateway_route_table:`local-gateway-route-table`,local_gateway_route_table_virtual_interface_group_association:`local-gateway-route-table-virtual-interface-group-association`,local_gateway_route_table_vpc_association:`local-gateway-route-table-vpc-association`,local_gateway_virtual_interface:`local-gateway-virtual-interface`,local_gateway_virtual_interface_group:`local-gateway-virtual-interface-group`,mac_modification_task:`mac-modification-task`,natgateway:`natgateway`,network_acl:`network-acl`,network_insights_access_scope:`network-insights-access-scope`,network_insights_access_scope_analysis:`network-insights-access-scope-analysis`,network_insights_analysis:`network-insights-analysis`,network_insights_path:`network-insights-path`,network_interface:`network-interface`,outpost_lag:`outpost-lag`,placement_group:`placement-group`,prefix_list:`prefix-list`,replace_root_volume_task:`replace-root-volume-task`,reserved_instances:`reserved-instances`,route_server:`route-server`,route_server_endpoint:`route-server-endpoint`,route_server_peer:`route-server-peer`,route_table:`route-table`,secondary_interface:`secondary-interface`,secondary_network:`secondary-network`,secondary_subnet:`secondary-subnet`,security_group:`security-group`,security_group_rule:`security-group-rule`,service_link_virtual_interface:`service-link-virtual-interface`,snapshot:`snapshot`,spot_fleet_request:`spot-fleet-request`,spot_instances_request:`spot-instances-request`,subnet:`subnet`,subnet_cidr_reservation:`subnet-cidr-reservation`,traffic_mirror_filter:`traffic-mirror-filter`,traffic_mirror_filter_rule:`traffic-mirror-filter-rule`,traffic_mirror_session:`traffic-mirror-session`,traffic_mirror_target:`traffic-mirror-target`,transit_gateway:`transit-gateway`,transit_gateway_attachment:`transit-gateway-attachment`,transit_gateway_connect_peer:`transit-gateway-connect-peer`,transit_gateway_metering_policy:`transit-gateway-metering-policy`,transit_gateway_multicast_domain:`transit-gateway-multicast-domain`,transit_gateway_policy_table:`transit-gateway-policy-table`,transit_gateway_route_table:`transit-gateway-route-table`,transit_gateway_route_table_announcement:`transit-gateway-route-table-announcement`,verified_access_endpoint:`verified-access-endpoint`,verified_access_endpoint_target:`verified-access-endpoint-target`,verified_access_group:`verified-access-group`,verified_access_instance:`verified-access-instance`,verified_access_policy:`verified-access-policy`,verified_access_trust_provider:`verified-access-trust-provider`,volume:`volume`,vpc:`vpc`,vpc_block_public_access_exclusion:`vpc-block-public-access-exclusion`,vpc_encryption_control:`vpc-encryption-control`,vpc_endpoint:`vpc-endpoint`,vpc_endpoint_connection:`vpc-endpoint-connection`,vpc_endpoint_connection_device_type:`vpc-endpoint-connection-device-type`,vpc_endpoint_service:`vpc-endpoint-service`,vpc_endpoint_service_permission:`vpc-endpoint-service-permission`,vpc_flow_log:`vpc-flow-log`,vpc_peering_connection:`vpc-peering-connection`,vpn_concentrator:`vpn-concentrator`,vpn_connection:`vpn-connection`,vpn_connection_device_type:`vpn-connection-device-type`,vpn_gateway:`vpn-gateway`},X=e(),_t=/\s+/;function vt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function yt(e){let t=new mt({InstanceIds:[e]});return await v().send(t)}function bt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:xt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function xt(e){let t=new ht({InstanceIds:[e]});return await v().send(t)}function St(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ct,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Ct(e){let t=new gt({InstanceIds:[e]});return await v().send(t)}function wt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Tt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Tt(e){let t=new lt({InstanceIds:[e]});return await v().send(t)}function Et(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Dt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function Dt(e){let t=v(),n=await Ot(t,e),r=new pt({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0,SecurityGroupIds:n.length>0?n:void 0,Placement:e.placementGroupName?{GroupName:e.placementGroupName}:void 0,BlockDeviceMappings:kt(e)});return await t.send(r)}async function Ot(e,t){if(t.securityGroupMode!==`create`)return t.securityGroupIds??[];let n=(await e.send(new G({GroupName:t.newSgName,Description:t.newSgDescription||`Created by launch wizard`,VpcId:t.resolvedVpcId}))).GroupId;if(!n)throw Error(`Security group was created but no ID was returned`);let r=[...t.allowSsh?[22]:[],...t.allowHttp?[80]:[],...t.allowHttps?[443]:[]];if(r.length>0){let i=t.ruleSource===`custom`&&t.customCidr?t.customCidr:`0.0.0.0/0`;await e.send(new B({GroupId:n,IpPermissions:r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:i}]}))}))}return[n]}function kt(e){let{rootDeviceName:t,rootVolumeSize:n,rootVolumeType:r,rootDeleteOnTermination:i}=e;return n!==void 0||r!==void 0||i!==void 0?[{DeviceName:t,Ebs:{...n!==void 0&&{VolumeSize:n},...r!==void 0&&{VolumeType:r},...i!==void 0&&{DeleteOnTermination:i}}}]:void 0}function At(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:jt,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function jt(e){let t=new ze({KeyName:e.keyName,KeyType:`rsa`}),n=await v().send(t);if(!n.KeyMaterial)throw Error(`Key pair was created but the API returned no private key. The key cannot be recovered — delete it and try again.`);return n}function Mt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Nt,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function Nt(e){let t=e.publicKeyMaterial.trim().split(_t).slice(0,2).join(` `),n=new ot({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await v().send(n)}function Pt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ft,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function Ft(e){let t=new We({KeyPairId:e});return await v().send(t)}function It(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Lt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Lt(e){let t=new He({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await v().send(t)}function Rt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function zt(e){let t=new ct({VolumeId:e.volumeId,Size:e.size});return await v().send(t)}function Bt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Vt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Vt(e){let t=new Qe({VolumeId:e});return await v().send(t)}function Ht(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ut,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Ut(e){let t=new Ve({VolumeId:e.volumeId,Description:e.description||void 0});return await v().send(t)}function Wt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Gt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Gt(e){let t=new Xe({SnapshotId:e});return await v().send(t)}function Kt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:qt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function qt(e){let t=new Le({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await v().send(t)}function Jt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Yt(e){let t=new Ae({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await v().send(t)}function Xt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Zt(e){let t=new tt({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await v().send(t)}function Qt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:$t,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function $t(e){let{instanceId:t,...n}=e,r=new st({InstanceId:t,InstanceType:{Value:n.instanceType}});return await v().send(r)}function en(){let e=(0,X.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:tn},e[0]=n):n=e[0],t(n)}async function tn(e){let t=new at({InstanceId:e});return await v().send(t)}function nn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(r)}async function rn(e){let t=new Re({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await v().send(t)}function an(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:on,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function on(e){let t=new q({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await v().send(t)}function sn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:cn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function cn(e){let t=new $e({VpcId:e});return await v().send(t)}function ln(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:un,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function un(e){let t=v(),n=await t.send(new K({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0})),r=n.Subnet?.SubnetId;return e.mapPublicIpOnLaunch&&r&&await t.send(new J({SubnetId:r,MapPublicIpOnLaunch:{Value:!0}})),n}function dn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:fn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function fn(e){let t=new Ze({SubnetId:e});return await v().send(t)}function pn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function mn(e){let t=new Be({GroupName:e.groupName,Strategy:e.strategy});return await v().send(t)}function hn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:gn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function gn(e){let t=new Ke({GroupName:e});return await v().send(t)}function _n(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:vn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function vn(e){let t=new G({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await v().send(t)}function yn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function bn(e){let t=new Ye({GroupId:e});return await v().send(t)}function xn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Sn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function Sn(e){let t=new B({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await v().send(t)}function Cn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:wn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function wn(e){let t=new je({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await v().send(t)}function Z(e){return{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,...e.sourceGroupId?{UserIdGroupPairs:[{GroupId:e.sourceGroupId}]}:{IpRanges:[{CidrIp:e.cidrIp??``}]}}}function Tn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:En,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function En(e){let t=new ft({GroupId:e.groupId,IpPermissions:[Z(e)]});return await v().send(t)}function Dn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:On,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function On(e){let t=new dt({GroupId:e.groupId,IpPermissions:[Z(e)]});return await v().send(t)}function kn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:An,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function An(e){let t=new V({TagSpecifications:$(Y.internet_gateway,e?.name,[])});return await v().send(t)}function jn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Mn(e){let t=new Ue({InternetGatewayId:e});return await v().send(t)}function Nn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Pn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Pn(e){let t=new z({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await v().send(t)}function Fn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:In,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function In(e){let t=new et({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await v().send(t)}function Ln(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Rn(e){let t=new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,e?.name,[])});return await v().send(t)}function zn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Bn(e){let t=new ut({AllocationId:e});return await v().send(t)}function Vn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Hn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Hn(e){let t=new Oe({AllocationId:e.allocationId,InstanceId:e.instanceId,NetworkInterfaceId:e.networkInterfaceId});return await v().send(t)}function Un(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Wn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Wn(e){let t=new nt({AssociationId:e});return await v().send(t)}function Gn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Kn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Kn(e){let t=new ke({InstanceId:e.instanceId,IamInstanceProfile:{Name:e.instanceProfileName}});return await v().send(t)}function qn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Jn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Jn(e){let t=new rt({AssociationId:e.associationId});return await v().send(t)}function Q(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Yn(e){let t=new H({SubnetId:e.subnetId,AllocationId:e.allocationId,TagSpecifications:$(Y.natgateway,e.name,[])});return await v().send(t)}function Xn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Zn(e){let t=new Ge({NatGatewayId:e});return await v().send(t)}function Qn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:$n,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function $n(e){let t=new W({VpcId:e.vpcId,TagSpecifications:$(Y.route_table,e.name,[])});return await v().send(t)}function er(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:tr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function tr(e){let t=new Je({RouteTableId:e});return await v().send(t)}function nr(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:rr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function rr(e){let t=new U({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock,GatewayId:e.gatewayId,NatGatewayId:e.natGatewayId});return await v().send(t)}function ir(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:ar,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function ar(e){let t=new qe({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock});return await v().send(t)}function or(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:sr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function sr(e){let t=new R({RouteTableId:e.routeTableId,SubnetId:e.subnetId});return await v().send(t)}function cr(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:lr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function lr(e){let t=new it({AssociationId:e});return await v().send(t)}function ur(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function $(e,t,n){let r=ur(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}function dr(){let e=F();return t({mutationFn:async e=>{let t=v(),n=[],r=e.autoGenerateNames?e.namePrefix:void 0,i=e.tags.map(e=>({Key:e.key,Value:e.value})),a=`creating VPC`;try{let o=r?`${r}-vpc`:e.namePrefix,s=e.tenancy,c=(await t.send(new q({CidrBlock:e.cidrBlock,InstanceTenancy:s,TagSpecifications:$(Y.vpc,o,i)}))).Vpc?.VpcId;if(!c)throw Error(`VPC was created but no VPC ID was returned by the API`);if(n.push({type:`VPC`,id:c}),e.mode===`vpc-only`)return{vpcId:c,created:n};let l=De(e.cidrBlock,e.publicSubnetCount,e.privateSubnetCount),u=e.publicSubnetCidrs.length>0?e.publicSubnetCidrs:l.publicSubnets.map(e=>e.cidr),d=e.privateSubnetCidrs.length>0?e.privateSubnetCidrs:l.privateSubnets.map(e=>e.cidr);a=`creating public subnets`;let f=[];for(let a=0;a0){a=`creating internet gateway`;let e=r?`${r}-igw`:void 0,o=(await t.send(new V({TagSpecifications:$(Y.internet_gateway,e,i)}))).InternetGateway?.InternetGatewayId;if(!o)throw Error(`Internet gateway was created but no ID was returned`);n.push({type:`Internet Gateway`,id:o}),a=`attaching internet gateway to VPC`,await t.send(new z({InternetGatewayId:o,VpcId:c})),a=`creating public route table`;let s=r?`${r}-rtb-public`:void 0,l=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,s,i)}))).RouteTable?.RouteTableId;if(!l)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:l}),a=`creating default route to internet gateway`,await t.send(new U({RouteTableId:l,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:o})),a=`associating public subnets with route table`;for(let e of f)await t.send(new R({RouteTableId:l,SubnetId:e}))}if(e.privateSubnetCount>0){a=`creating private route table`;let o=r?`${r}-rtb-private`:void 0,s=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,o,i)}))).RouteTable?.RouteTableId;if(!s)throw Error(`Private route table was created but no ID was returned`);n.push({type:`Private Route Table`,id:s}),a=`associating private subnets with route table`;for(let e of p)await t.send(new R({RouteTableId:s,SubnetId:e}));if(e.natGateway===`single`&&f[0]){a=`allocating Elastic IP for NAT gateway`;let e=(await t.send(new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,r?`${r}-eip-nat`:void 0,i)}))).AllocationId;if(!e)throw Error(`Elastic IP was allocated but no allocation ID was returned`);n.push({type:`Elastic IP`,id:e}),a=`creating NAT gateway`;let o=(await t.send(new H({SubnetId:f[0],AllocationId:e,TagSpecifications:$(Y.natgateway,r?`${r}-nat`:void 0,i)}))).NatGateway?.NatGatewayId;if(!o)throw Error(`NAT gateway was created but no ID was returned`);n.push({type:`NAT Gateway`,id:o}),a=`creating default route to NAT gateway`,await t.send(new U({RouteTableId:s,DestinationCidrBlock:`0.0.0.0/0`,NatGatewayId:o}))}}return{vpcId:c,created:n}}catch(e){return{vpcId:n.find(e=>e.type===`VPC`)?.id,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:`Failed while ${a}`}}},onSuccess:()=>{e.invalidateQueries({queryKey:[`ec2`,`vpcs`]}),e.invalidateQueries({queryKey:[`ec2`,`subnets`]}),e.invalidateQueries({queryKey:[`ec2`,`internetGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`routeTables`]}),e.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`addresses`]})}})}export{yn as A,en as B,dr as C,hn as D,Xn as E,Fn as F,zn as G,Qt as H,Xt as I,vt as J,Dn as K,Un as L,dn as M,Bt as N,ir as O,sn as P,qn as R,an as S,Pt as T,Rt as U,Mt as V,wt as W,St as X,bt as Y,Qn as _,Nn as a,ln as b,xn as c,Et as d,kn as f,nr as g,pn as h,or as i,Wt as j,er as k,Kt as l,Q as m,Vn as n,Jt as o,At as p,Tn as q,Gn as r,Cn as s,Ln as t,nn as u,_n as v,jn as w,It as x,Ht as y,cr as z}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/eks.js b/spinifex/services/spinifexui/frontend/dist/assets/eks.js index ffc5684bd..578d78150 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/eks.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/eks.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{n as t}from"./error-banner.js";import{$t as n,At as r,Ft as i,It as a,Lt as ee,Mt as te,Nt as ne,Pt as o,Qt as s,Rt as c,Wt as l,Zt as u,en as d,i as f,jt as p}from"./awsClient.js";import{Ct as m,a as h,dt as g,f as _,l as v,o as y,s as b,u as x}from"./auth.js";import{Lr as S}from"./index.js";import{i as C}from"./subnet-calculator.js";var w=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`AssociateAccessPolicy`,{}).n(`EKSClient`,`AssociateAccessPolicyCommand`).sc(r).build(){},T=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateAccessEntry`,{}).n(`EKSClient`,`CreateAccessEntryCommand`).sc(p).build(){},E=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateAddon`,{}).n(`EKSClient`,`CreateAddonCommand`).sc(te).build(){},D=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateCluster`,{}).n(`EKSClient`,`CreateClusterCommand`).sc(ne).build(){},O=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateNodegroup`,{}).n(`EKSClient`,`CreateNodegroupCommand`).sc(o).build(){},k=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteAccessEntry`,{}).n(`EKSClient`,`DeleteAccessEntryCommand`).sc(i).build(){},A=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteAddon`,{}).n(`EKSClient`,`DeleteAddonCommand`).sc(a).build(){},j=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteCluster`,{}).n(`EKSClient`,`DeleteClusterCommand`).sc(ee).build(){},M=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteNodegroup`,{}).n(`EKSClient`,`DeleteNodegroupCommand`).sc(c).build(){},N=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DisassociateAccessPolicy`,{}).n(`EKSClient`,`DisassociateAccessPolicyCommand`).sc(l).build(){},P=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`UpdateAddon`,{}).n(`EKSClient`,`UpdateAddonCommand`).sc(u).build(){},F=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`UpdateNodegroupConfig`,{}).n(`EKSClient`,`UpdateNodegroupConfigCommand`).sc(s).build(){},I=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[g(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`UpdateNodegroupVersion`,{}).n(`EKSClient`,`UpdateNodegroupVersionCommand`).sc(n).build(){},L=e();function R(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:z,onSuccess:()=>{n.invalidateQueries({queryKey:[`eks`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function z(e){let t=new D({name:e.name,version:e.version,roleArn:e.roleArn,resourcesVpcConfig:{subnetIds:e.subnetIds,endpointPublicAccess:e.endpointPublicAccess,endpointPrivateAccess:e.endpointPrivateAccess,publicAccessCidrs:e.endpointPublicAccess?e.publicAccessCidrs:void 0},accessConfig:{authenticationMode:`API`,bootstrapClusterCreatorAdminPermissions:e.bootstrapClusterCreatorAdminPermissions}});return await f().send(t)}function B(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:V,onSuccess:()=>{n.invalidateQueries({queryKey:[`eks`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function V(e){let t=new j({name:e});return await f().send(t)}function H(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:U,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function U(e){let t=new O({clusterName:e.clusterName,nodegroupName:e.nodegroupName,nodeRole:e.nodeRole,subnets:e.subnetIds,instanceTypes:e.instanceTypes,amiType:e.amiType,capacityType:e.capacityType,diskSize:e.diskSize,scalingConfig:{minSize:e.minSize,maxSize:e.maxSize,desiredSize:e.desiredSize}});return await f().send(t)}function W(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:re,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function re(e){let t=new F({clusterName:e.clusterName,nodegroupName:e.nodegroupName,scalingConfig:{minSize:e.minSize,maxSize:e.maxSize,desiredSize:e.desiredSize}});return await f().send(t)}function G(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new I({clusterName:e.clusterName,nodegroupName:e.nodegroupName,version:e.version});return await f().send(t)}function q(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:J,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function J(e){let t=new M({clusterName:e.clusterName,nodegroupName:e.nodegroupName});return await f().send(t)}function Y(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:X,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function X(e){let t=new E({clusterName:e.clusterName,addonName:e.addonName,addonVersion:e.addonVersion,serviceAccountRoleArn:e.serviceAccountRoleArn,configurationValues:e.configurationValues});return await f().send(t)}function ie(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ae,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function ae(e){let t=new P({clusterName:e.clusterName,addonName:e.addonName,addonVersion:e.addonVersion,serviceAccountRoleArn:e.serviceAccountRoleArn,configurationValues:e.configurationValues});return await f().send(t)}function oe(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:se,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function se(e){let t=new A({clusterName:e.clusterName,addonName:e.addonName});return await f().send(t)}function ce(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:le,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`]})}},e[0]=n,e[1]=r),t(r)}async function le(e){let t=new T({clusterName:e.clusterName,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups,type:e.type});return await f().send(t)}function ue(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:de,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`]})}},e[0]=n,e[1]=r),t(r)}async function de(e){let t=new k({clusterName:e.clusterName,principalArn:e.principalArn});return await f().send(t)}function fe(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:pe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`,t.principalArn,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function pe(e){let t=new w({clusterName:e.clusterName,principalArn:e.principalArn,policyArn:e.policyArn,accessScope:{type:e.accessScopeType,namespaces:e.namespaces}});return await f().send(t)}function me(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:he,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`,t.principalArn,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function he(e){let t=new N({clusterName:e.clusterName,principalArn:e.principalArn,policyArn:e.policyArn});return await f().send(t)}var ge=[`1.32`,`1.31`,`1.30`],_e=[{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy`,name:`AmazonEKSClusterAdminPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSAdminPolicy`,name:`AmazonEKSAdminPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSEditPolicy`,name:`AmazonEKSEditPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy`,name:`AmazonEKSViewPolicy`}],Z=[`AL2_x86_64`,`AL2_ARM_64`],Q=[`ON_DEMAND`,`SPOT`],$=_().min(1,`Name is required`).max(100,`Name must be 100 characters or fewer`).regex(/^[0-9A-Za-z][A-Za-z0-9\-_]*$/,`Must start with a letter or digit and contain only letters, digits, hyphens, or underscores`),ve=x({name:$,version:_().min(1,`Version is required`),roleArn:_().min(1,`Cluster IAM role is required`),vpcId:_().min(1,`VPC is required`),subnetIds:y(_()).min(1,`At least 1 subnet is required`),bootstrapClusterCreatorAdminPermissions:b(),endpointPublicAccess:b(),endpointPrivateAccess:b(),publicAccessCidrs:y(_())}).refine(e=>e.endpointPublicAccess||e.endpointPrivateAccess,{message:`Enable public access, private access, or both`,path:[`endpointPublicAccess`]}).refine(e=>!e.endpointPublicAccess||e.publicAccessCidrs.every(e=>C(e,0,32)),{message:`Each public access CIDR must be valid (e.g. 203.0.113.0/24)`,path:[`publicAccessCidrs`]}),ye=x({nodegroupName:$,nodeRole:_().min(1,`Node IAM role is required`),subnetIds:y(_()).min(1,`At least 1 subnet is required`),instanceTypes:_().min(1,`At least 1 instance type is required`),amiType:h(Z),capacityType:h(Q),diskSize:v().int().min(1),minSize:v().int().min(0),desiredSize:v().int().min(0),maxSize:v().int().min(1)}).refine(e=>e.minSize<=e.desiredSize&&e.desiredSize<=e.maxSize,{message:`Sizes must satisfy min ≤ desired ≤ max`,path:[`desiredSize`]}),be=x({addonName:_().min(1,`Add-on is required`),addonVersion:_().min(1,`Version is required`),serviceAccountRoleArn:_(),configurationValues:_().refine(e=>{if(e.trim()===``)return!0;try{return JSON.parse(e),!0}catch{return!1}},{message:`Configuration must be valid JSON`})});function xe(e){switch(e??``){case`ACTIVE`:return`default`;case`CREATE_FAILED`:case`DELETE_FAILED`:case`UPDATE_FAILED`:case`DEGRADED`:return`destructive`;default:return`secondary`}}var Se=x({principalArn:_().min(1,`Principal ARN is required`),kubernetesGroups:_()});export{G as S,B as _,xe as a,W as b,ve as c,ce as d,Y as f,oe as g,ue as h,ge as i,ye as l,H as m,Z as n,Se as o,R as p,Q as r,be as s,_e as t,fe as u,q as v,ie as x,me as y}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{n as t}from"./error-banner.js";import{$t as n,At as r,Ft as i,It as a,Lt as ee,Mt as te,Nt as ne,Pt as o,Qt as s,Rt as c,Wt as l,Zt as u,en as d,i as f,jt as p}from"./awsClient.js";import{St as m,a as h,f as g,l as _,o as v,s as y,u as b,ut as x}from"./auth.js";import{Lr as S}from"./index.js";import{i as C}from"./subnet-calculator.js";var w=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`AssociateAccessPolicy`,{}).n(`EKSClient`,`AssociateAccessPolicyCommand`).sc(r).build(){},T=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateAccessEntry`,{}).n(`EKSClient`,`CreateAccessEntryCommand`).sc(p).build(){},E=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateAddon`,{}).n(`EKSClient`,`CreateAddonCommand`).sc(te).build(){},D=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateCluster`,{}).n(`EKSClient`,`CreateClusterCommand`).sc(ne).build(){},O=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateNodegroup`,{}).n(`EKSClient`,`CreateNodegroupCommand`).sc(o).build(){},k=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteAccessEntry`,{}).n(`EKSClient`,`DeleteAccessEntryCommand`).sc(i).build(){},A=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteAddon`,{}).n(`EKSClient`,`DeleteAddonCommand`).sc(a).build(){},j=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteCluster`,{}).n(`EKSClient`,`DeleteClusterCommand`).sc(ee).build(){},M=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteNodegroup`,{}).n(`EKSClient`,`DeleteNodegroupCommand`).sc(c).build(){},N=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DisassociateAccessPolicy`,{}).n(`EKSClient`,`DisassociateAccessPolicyCommand`).sc(l).build(){},P=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`UpdateAddon`,{}).n(`EKSClient`,`UpdateAddonCommand`).sc(u).build(){},F=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`UpdateNodegroupConfig`,{}).n(`EKSClient`,`UpdateNodegroupConfigCommand`).sc(s).build(){},I=class extends m.classBuilder().ep(d).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`UpdateNodegroupVersion`,{}).n(`EKSClient`,`UpdateNodegroupVersionCommand`).sc(n).build(){},L=e();function R(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:z,onSuccess:()=>{n.invalidateQueries({queryKey:[`eks`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function z(e){let t=new D({name:e.name,version:e.version,roleArn:e.roleArn,resourcesVpcConfig:{subnetIds:e.subnetIds,endpointPublicAccess:e.endpointPublicAccess,endpointPrivateAccess:e.endpointPrivateAccess,publicAccessCidrs:e.endpointPublicAccess?e.publicAccessCidrs:void 0},accessConfig:{authenticationMode:`API`,bootstrapClusterCreatorAdminPermissions:e.bootstrapClusterCreatorAdminPermissions}});return await f().send(t)}function B(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:V,onSuccess:()=>{n.invalidateQueries({queryKey:[`eks`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function V(e){let t=new j({name:e});return await f().send(t)}function H(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:U,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function U(e){let t=new O({clusterName:e.clusterName,nodegroupName:e.nodegroupName,nodeRole:e.nodeRole,subnets:e.subnetIds,instanceTypes:e.instanceTypes,amiType:e.amiType,capacityType:e.capacityType,diskSize:e.diskSize,scalingConfig:{minSize:e.minSize,maxSize:e.maxSize,desiredSize:e.desiredSize}});return await f().send(t)}function W(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:re,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function re(e){let t=new F({clusterName:e.clusterName,nodegroupName:e.nodegroupName,scalingConfig:{minSize:e.minSize,maxSize:e.maxSize,desiredSize:e.desiredSize}});return await f().send(t)}function G(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new I({clusterName:e.clusterName,nodegroupName:e.nodegroupName,version:e.version});return await f().send(t)}function q(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:J,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function J(e){let t=new M({clusterName:e.clusterName,nodegroupName:e.nodegroupName});return await f().send(t)}function Y(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:X,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function X(e){let t=new E({clusterName:e.clusterName,addonName:e.addonName,addonVersion:e.addonVersion,serviceAccountRoleArn:e.serviceAccountRoleArn,configurationValues:e.configurationValues});return await f().send(t)}function ie(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ae,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function ae(e){let t=new P({clusterName:e.clusterName,addonName:e.addonName,addonVersion:e.addonVersion,serviceAccountRoleArn:e.serviceAccountRoleArn,configurationValues:e.configurationValues});return await f().send(t)}function oe(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:se,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function se(e){let t=new A({clusterName:e.clusterName,addonName:e.addonName});return await f().send(t)}function ce(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:le,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`]})}},e[0]=n,e[1]=r),t(r)}async function le(e){let t=new T({clusterName:e.clusterName,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups,type:e.type});return await f().send(t)}function ue(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:de,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`]})}},e[0]=n,e[1]=r),t(r)}async function de(e){let t=new k({clusterName:e.clusterName,principalArn:e.principalArn});return await f().send(t)}function fe(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:pe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`,t.principalArn,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function pe(e){let t=new w({clusterName:e.clusterName,principalArn:e.principalArn,policyArn:e.policyArn,accessScope:{type:e.accessScopeType,namespaces:e.namespaces}});return await f().send(t)}function me(){let e=(0,L.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:he,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`,t.principalArn,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function he(e){let t=new N({clusterName:e.clusterName,principalArn:e.principalArn,policyArn:e.policyArn});return await f().send(t)}var ge=[`1.32`,`1.31`,`1.30`],_e=[{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy`,name:`AmazonEKSClusterAdminPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSAdminPolicy`,name:`AmazonEKSAdminPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSEditPolicy`,name:`AmazonEKSEditPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy`,name:`AmazonEKSViewPolicy`}],Z=[`AL2_x86_64`,`AL2_ARM_64`],Q=[`ON_DEMAND`,`SPOT`],$=g().min(1,`Name is required`).max(100,`Name must be 100 characters or fewer`).regex(/^[0-9A-Za-z][A-Za-z0-9\-_]*$/,`Must start with a letter or digit and contain only letters, digits, hyphens, or underscores`),ve=b({name:$,version:g().min(1,`Version is required`),roleArn:g().min(1,`Cluster IAM role is required`),vpcId:g().min(1,`VPC is required`),subnetIds:v(g()).min(1,`At least 1 subnet is required`),bootstrapClusterCreatorAdminPermissions:y(),endpointPublicAccess:y(),endpointPrivateAccess:y(),publicAccessCidrs:v(g())}).refine(e=>e.endpointPublicAccess||e.endpointPrivateAccess,{message:`Enable public access, private access, or both`,path:[`endpointPublicAccess`]}).refine(e=>!e.endpointPublicAccess||e.publicAccessCidrs.every(e=>C(e,0,32)),{message:`Each public access CIDR must be valid (e.g. 203.0.113.0/24)`,path:[`publicAccessCidrs`]}),ye=b({nodegroupName:$,nodeRole:g().min(1,`Node IAM role is required`),subnetIds:v(g()).min(1,`At least 1 subnet is required`),instanceTypes:g().min(1,`At least 1 instance type is required`),amiType:h(Z),capacityType:h(Q),diskSize:_().int().min(1),minSize:_().int().min(0),desiredSize:_().int().min(0),maxSize:_().int().min(1)}).refine(e=>e.minSize<=e.desiredSize&&e.desiredSize<=e.maxSize,{message:`Sizes must satisfy min ≤ desired ≤ max`,path:[`desiredSize`]}),be=b({addonName:g().min(1,`Add-on is required`),addonVersion:g().min(1,`Version is required`),serviceAccountRoleArn:g(),configurationValues:g().refine(e=>{if(e.trim()===``)return!0;try{return JSON.parse(e),!0}catch{return!1}},{message:`Configuration must be valid JSON`})});function xe(e){switch(e??``){case`ACTIVE`:return`default`;case`CREATE_FAILED`:case`DELETE_FAILED`:case`UPDATE_FAILED`:case`DEGRADED`:return`destructive`;default:return`secondary`}}var Se=b({principalArn:g().min(1,`Principal ARN is required`),kubernetesGroups:g()});export{G as S,B as _,xe as a,W as b,ve as c,ce as d,Y as f,oe as g,ue as h,ge as i,ye as l,H as m,Z as n,Se as o,R as p,Q as r,be as s,_e as t,fe as u,q as v,ie as x,me as y}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/elbv2.js b/spinifex/services/spinifexui/frontend/dist/assets/elbv2.js index d6a6246fd..033772727 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/elbv2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/elbv2.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{n as t}from"./error-banner.js";import{Ct as n,Dt as r,Et as i,Ot as a,St as o,Tt as s,a as c,at as l,ct as u,dt as d,it as f,kt as p,lt as m,nt as h,ot as ee,rt as te,st as ne,ut as re,wt as ie,xt as g}from"./awsClient.js";import{Ct as _,dt as v}from"./auth.js";import{Lr as y}from"./index.js";var b=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`AddTags`,{}).n(`ElasticLoadBalancingV2Client`,`AddTagsCommand`).sc(h).build(){},x=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateListener`,{}).n(`ElasticLoadBalancingV2Client`,`CreateListenerCommand`).sc(te).build(){},S=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`CreateLoadBalancerCommand`).sc(f).build(){},C=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateRule`,{}).n(`ElasticLoadBalancingV2Client`,`CreateRuleCommand`).sc(l).build(){},w=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`CreateTargetGroupCommand`).sc(ee).build(){},T=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteListener`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteListenerCommand`).sc(ne).build(){},E=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteLoadBalancerCommand`).sc(u).build(){},D=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteRule`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteRuleCommand`).sc(m).build(){},O=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteTargetGroupCommand`).sc(re).build(){},k=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeregisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`DeregisterTargetsCommand`).sc(d).build(){},A=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyListener`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyListenerCommand`).sc(g).build(){},j=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyLoadBalancerAttributesCommand`).sc(o).build(){},M=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyRule`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyRuleCommand`).sc(n).build(){},N=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyTargetGroupAttributesCommand`).sc(ie).build(){},P=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`RegisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`RegisterTargetsCommand`).sc(s).build(){},F=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`RemoveTags`,{}).n(`ElasticLoadBalancingV2Client`,`RemoveTagsCommand`).sc(i).build(){},I=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`SetSecurityGroups`,{}).n(`ElasticLoadBalancingV2Client`,`SetSecurityGroupsCommand`).sc(r).build(){},L=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`SetSubnets`,{}).n(`ElasticLoadBalancingV2Client`,`SetSubnetsCommand`).sc(a).build(){},R=e();function z(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:B,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`]})}},e[0]=n,e[1]=r),t(r)}async function B(e){let t=new E({LoadBalancerArn:e});return await c().send(t)}function V(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new j({LoadBalancerArn:e.loadBalancerArn,Attributes:e.attributes.map(U)});return await c().send(t)}function U(e){return{Key:e.key,Value:e.value}}function W(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:G,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`tags`]})}},e[0]=n,e[1]=r),t(r)}async function G(e){let t=new Set(e.tags.map(q)),n=e.initialKeys.filter(e=>!t.has(e)),r=c();e.tags.length>0&&await r.send(new b({ResourceArns:[e.resourceArn],Tags:e.tags.map(K)})),n.length>0&&await r.send(new F({ResourceArns:[e.resourceArn],TagKeys:n}))}function K(e){return{Key:e.key,Value:e.value}}function q(e){return e.key}function J(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Y,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function Y(e){let t=new I({LoadBalancerArn:e.loadBalancerArn,SecurityGroups:e.securityGroupIds});return await c().send(t)}function ae(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:oe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function oe(e){let t=new L({LoadBalancerArn:e.loadBalancerArn,Subnets:e.subnetIds});return await c().send(t)}function se(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function ce(e){let t=e.tags.filter(ue).map(le),n=e.healthCheck.protocol===`HTTP`,r=new w({Name:e.name,Protocol:e.protocol,Port:e.port,VpcId:e.vpcId,TargetType:`instance`,HealthCheckProtocol:e.healthCheck.protocol,HealthCheckPath:n?e.healthCheck.path:void 0,HealthCheckPort:e.healthCheck.port,HealthCheckIntervalSeconds:e.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:e.healthCheck.timeoutSeconds,HealthyThresholdCount:e.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:e.healthCheck.unhealthyThresholdCount,Matcher:n?{HttpCode:e.healthCheck.matcher}:void 0,Tags:t.length>0?t:void 0});return await c().send(r)}function le(e){return{Key:e.key,Value:e.value}}function ue(e){return e.key.length>0}function de(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function fe(e){let t=new O({TargetGroupArn:e});return await c().send(t)}function pe(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:me,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}async function me(e){let t=new N({TargetGroupArn:e.targetGroupArn,Attributes:e.attributes.map(he)});return await c().send(t)}function he(e){return{Key:e.key,Value:e.value}}function X(e,t,n){return!(e===`HTTPS`||e===`TLS`)||!t?{}:{Certificates:[{CertificateArn:t}],SslPolicy:e===`HTTPS`?n:void 0}}function ge(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new x({LoadBalancerArn:e.loadBalancerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await c().send(n)}function ve(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`]})}},e[0]=n,e[1]=r),t(r)}async function ye(e){let t=new T({ListenerArn:e});return await c().send(t)}function be(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:xe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function xe(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new A({ListenerArn:e.listenerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await c().send(n)}function Se(){let e=y();return t({mutationFn:async e=>{let t=c(),n=[],r=``;try{let i=e.listener.existingTargetGroupArn;if(e.listener.targetGroupMode===`new`){let a=e.listener.newTargetGroup;if(!a)throw Error(`internal error: new target group requested but no data supplied`);r=`creating target group`;let o=a.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),s=a.healthCheck.protocol===`HTTP`;if(i=(await t.send(new w({Name:a.name,Protocol:a.protocol,Port:a.port,VpcId:a.vpcId,TargetType:`instance`,HealthCheckProtocol:a.healthCheck.protocol,HealthCheckPath:s?a.healthCheck.path:void 0,HealthCheckPort:a.healthCheck.port,HealthCheckIntervalSeconds:a.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:a.healthCheck.timeoutSeconds,HealthyThresholdCount:a.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:a.healthCheck.unhealthyThresholdCount,Matcher:s?{HttpCode:a.healthCheck.matcher}:void 0,Tags:o.length>0?o:void 0}))).TargetGroups?.[0]?.TargetGroupArn,!i)throw Error(`Target group was created but no ARN was returned by the API`);n.push({type:`Target Group`,id:i})}if(!i)throw Error(`Target group selection is required`);r=`creating load balancer`;let a=e.lb.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),o=(await t.send(new S({Name:e.lb.name,Scheme:e.lb.scheme,Type:e.lb.type,IpAddressType:`ipv4`,Subnets:e.lb.subnetIds,SecurityGroups:e.lb.securityGroupIds.length>0?e.lb.securityGroupIds:void 0,Tags:a.length>0?a:void 0}))).LoadBalancers?.[0]?.LoadBalancerArn;if(!o)throw Error(`Load balancer was created but no ARN was returned by the API`);return n.push({type:`Load Balancer`,id:o}),r=`creating listener`,await t.send(new x({LoadBalancerArn:o,Protocol:e.listener.protocol,Port:e.listener.port,DefaultActions:[{Type:`forward`,TargetGroupArn:i}],...X(e.listener.protocol,e.listener.certificateArn,e.listener.sslPolicy)})),n.push({type:`Listener`,id:void 0}),{loadBalancerArn:o,created:n}}catch(e){return{loadBalancerArn:void 0,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:r}}},onSettled:()=>{e.invalidateQueries({queryKey:[`elbv2`]})}})}function Z(e){return e.map(e=>({Id:e.id,Port:e.port}))}function Ce(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:we,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}async function we(e){let t=new P({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await c().send(t)}function Q(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Te,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}async function Te(e){let t=new k({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await c().send(t)}function $(e){return e.map(e=>{switch(e.field){case`host-header`:return{Field:e.field,HostHeaderConfig:{Values:e.values}};case`path-pattern`:return{Field:e.field,PathPatternConfig:{Values:e.values}};case`http-header`:return{Field:e.field,HttpHeaderConfig:{HttpHeaderName:e.httpHeaderName??``,Values:e.values}};case`http-request-method`:return{Field:e.field,HttpRequestMethodConfig:{Values:e.values}};case`source-ip`:return{Field:e.field,SourceIpConfig:{Values:e.values}};case`query-string`:return{Field:e.field,QueryStringConfig:{Values:(e.queryStringPairs??[]).map(e=>({Key:e.key&&e.key.length>0?e.key:void 0,Value:e.value}))}};default:return{Field:e.field,Values:e.values}}})}function Ee(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:De,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function De(e){let t=[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}],n=new C({ListenerArn:e.listenerArn,Priority:e.priority,Conditions:$(e.conditions),Actions:t});return await c().send(n)}function Oe(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ke,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function ke(e){let t=new M({RuleArn:e.ruleArn,Conditions:e.conditions?$(e.conditions):void 0,Actions:e.forwardTargetGroupArn?[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}]:void 0});return await c().send(t)}function Ae(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:je,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function je(e){let t=new D({RuleArn:e.ruleArn});return await c().send(t)}export{W as _,ve as a,de as c,V as d,Oe as f,ae as g,J as h,se as i,Q as l,Ce as m,Se as n,z as o,pe as p,Ee as r,Ae as s,ge as t,be as u}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{n as t}from"./error-banner.js";import{Ct as n,Dt as r,Et as i,Ot as a,St as o,Tt as s,a as c,at as l,ct as u,dt as d,it as f,kt as p,lt as m,nt as h,ot as ee,rt as te,st as ne,ut as re,wt as ie,xt as g}from"./awsClient.js";import{St as _,ut as v}from"./auth.js";import{Lr as y}from"./index.js";var b=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`AddTags`,{}).n(`ElasticLoadBalancingV2Client`,`AddTagsCommand`).sc(h).build(){},x=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateListener`,{}).n(`ElasticLoadBalancingV2Client`,`CreateListenerCommand`).sc(te).build(){},S=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`CreateLoadBalancerCommand`).sc(f).build(){},C=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateRule`,{}).n(`ElasticLoadBalancingV2Client`,`CreateRuleCommand`).sc(l).build(){},w=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`CreateTargetGroupCommand`).sc(ee).build(){},T=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteListener`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteListenerCommand`).sc(ne).build(){},E=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteLoadBalancerCommand`).sc(u).build(){},D=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteRule`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteRuleCommand`).sc(m).build(){},O=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteTargetGroupCommand`).sc(re).build(){},k=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeregisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`DeregisterTargetsCommand`).sc(d).build(){},A=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyListener`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyListenerCommand`).sc(g).build(){},j=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyLoadBalancerAttributesCommand`).sc(o).build(){},M=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyRule`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyRuleCommand`).sc(n).build(){},N=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyTargetGroupAttributesCommand`).sc(ie).build(){},P=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`RegisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`RegisterTargetsCommand`).sc(s).build(){},F=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`RemoveTags`,{}).n(`ElasticLoadBalancingV2Client`,`RemoveTagsCommand`).sc(i).build(){},I=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`SetSecurityGroups`,{}).n(`ElasticLoadBalancingV2Client`,`SetSecurityGroupsCommand`).sc(r).build(){},L=class extends _.classBuilder().ep(p).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`SetSubnets`,{}).n(`ElasticLoadBalancingV2Client`,`SetSubnetsCommand`).sc(a).build(){},R=e();function z(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:B,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`]})}},e[0]=n,e[1]=r),t(r)}async function B(e){let t=new E({LoadBalancerArn:e});return await c().send(t)}function V(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new j({LoadBalancerArn:e.loadBalancerArn,Attributes:e.attributes.map(U)});return await c().send(t)}function U(e){return{Key:e.key,Value:e.value}}function W(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:G,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`tags`]})}},e[0]=n,e[1]=r),t(r)}async function G(e){let t=new Set(e.tags.map(q)),n=e.initialKeys.filter(e=>!t.has(e)),r=c();e.tags.length>0&&await r.send(new b({ResourceArns:[e.resourceArn],Tags:e.tags.map(K)})),n.length>0&&await r.send(new F({ResourceArns:[e.resourceArn],TagKeys:n}))}function K(e){return{Key:e.key,Value:e.value}}function q(e){return e.key}function J(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Y,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function Y(e){let t=new I({LoadBalancerArn:e.loadBalancerArn,SecurityGroups:e.securityGroupIds});return await c().send(t)}function ae(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:oe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function oe(e){let t=new L({LoadBalancerArn:e.loadBalancerArn,Subnets:e.subnetIds});return await c().send(t)}function se(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function ce(e){let t=e.tags.filter(ue).map(le),n=e.healthCheck.protocol===`HTTP`,r=new w({Name:e.name,Protocol:e.protocol,Port:e.port,VpcId:e.vpcId,TargetType:`instance`,HealthCheckProtocol:e.healthCheck.protocol,HealthCheckPath:n?e.healthCheck.path:void 0,HealthCheckPort:e.healthCheck.port,HealthCheckIntervalSeconds:e.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:e.healthCheck.timeoutSeconds,HealthyThresholdCount:e.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:e.healthCheck.unhealthyThresholdCount,Matcher:n?{HttpCode:e.healthCheck.matcher}:void 0,Tags:t.length>0?t:void 0});return await c().send(r)}function le(e){return{Key:e.key,Value:e.value}}function ue(e){return e.key.length>0}function de(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function fe(e){let t=new O({TargetGroupArn:e});return await c().send(t)}function pe(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:me,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}async function me(e){let t=new N({TargetGroupArn:e.targetGroupArn,Attributes:e.attributes.map(he)});return await c().send(t)}function he(e){return{Key:e.key,Value:e.value}}function X(e,t,n){return!(e===`HTTPS`||e===`TLS`)||!t?{}:{Certificates:[{CertificateArn:t}],SslPolicy:e===`HTTPS`?n:void 0}}function ge(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new x({LoadBalancerArn:e.loadBalancerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await c().send(n)}function ve(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`]})}},e[0]=n,e[1]=r),t(r)}async function ye(e){let t=new T({ListenerArn:e});return await c().send(t)}function be(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:xe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function xe(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new A({ListenerArn:e.listenerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await c().send(n)}function Se(){let e=y();return t({mutationFn:async e=>{let t=c(),n=[],r=``;try{let i=e.listener.existingTargetGroupArn;if(e.listener.targetGroupMode===`new`){let a=e.listener.newTargetGroup;if(!a)throw Error(`internal error: new target group requested but no data supplied`);r=`creating target group`;let o=a.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),s=a.healthCheck.protocol===`HTTP`;if(i=(await t.send(new w({Name:a.name,Protocol:a.protocol,Port:a.port,VpcId:a.vpcId,TargetType:`instance`,HealthCheckProtocol:a.healthCheck.protocol,HealthCheckPath:s?a.healthCheck.path:void 0,HealthCheckPort:a.healthCheck.port,HealthCheckIntervalSeconds:a.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:a.healthCheck.timeoutSeconds,HealthyThresholdCount:a.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:a.healthCheck.unhealthyThresholdCount,Matcher:s?{HttpCode:a.healthCheck.matcher}:void 0,Tags:o.length>0?o:void 0}))).TargetGroups?.[0]?.TargetGroupArn,!i)throw Error(`Target group was created but no ARN was returned by the API`);n.push({type:`Target Group`,id:i})}if(!i)throw Error(`Target group selection is required`);r=`creating load balancer`;let a=e.lb.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),o=(await t.send(new S({Name:e.lb.name,Scheme:e.lb.scheme,Type:e.lb.type,IpAddressType:`ipv4`,Subnets:e.lb.subnetIds,SecurityGroups:e.lb.securityGroupIds.length>0?e.lb.securityGroupIds:void 0,Tags:a.length>0?a:void 0}))).LoadBalancers?.[0]?.LoadBalancerArn;if(!o)throw Error(`Load balancer was created but no ARN was returned by the API`);return n.push({type:`Load Balancer`,id:o}),r=`creating listener`,await t.send(new x({LoadBalancerArn:o,Protocol:e.listener.protocol,Port:e.listener.port,DefaultActions:[{Type:`forward`,TargetGroupArn:i}],...X(e.listener.protocol,e.listener.certificateArn,e.listener.sslPolicy)})),n.push({type:`Listener`,id:void 0}),{loadBalancerArn:o,created:n}}catch(e){return{loadBalancerArn:void 0,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:r}}},onSettled:()=>{e.invalidateQueries({queryKey:[`elbv2`]})}})}function Z(e){return e.map(e=>({Id:e.id,Port:e.port}))}function Ce(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:we,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}async function we(e){let t=new P({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await c().send(t)}function Q(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Te,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}async function Te(e){let t=new k({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await c().send(t)}function $(e){return e.map(e=>{switch(e.field){case`host-header`:return{Field:e.field,HostHeaderConfig:{Values:e.values}};case`path-pattern`:return{Field:e.field,PathPatternConfig:{Values:e.values}};case`http-header`:return{Field:e.field,HttpHeaderConfig:{HttpHeaderName:e.httpHeaderName??``,Values:e.values}};case`http-request-method`:return{Field:e.field,HttpRequestMethodConfig:{Values:e.values}};case`source-ip`:return{Field:e.field,SourceIpConfig:{Values:e.values}};case`query-string`:return{Field:e.field,QueryStringConfig:{Values:(e.queryStringPairs??[]).map(e=>({Key:e.key&&e.key.length>0?e.key:void 0,Value:e.value}))}};default:return{Field:e.field,Values:e.values}}})}function Ee(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:De,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function De(e){let t=[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}],n=new C({ListenerArn:e.listenerArn,Priority:e.priority,Conditions:$(e.conditions),Actions:t});return await c().send(n)}function Oe(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ke,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function ke(e){let t=new M({RuleArn:e.ruleArn,Conditions:e.conditions?$(e.conditions):void 0,Actions:e.forwardTargetGroupArn?[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}]:void 0});return await c().send(t)}function Ae(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:je,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function je(e){let t=new D({RuleArn:e.ruleArn});return await c().send(t)}export{W as _,ve as a,de as c,V as d,Oe as f,ae as g,J as h,se as i,Q as l,Ce as m,Se as n,z as o,pe as p,Ee as r,Ae as s,ge as t,be as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/field.js b/spinifex/services/spinifexui/frontend/dist/assets/field.js index 0c3a69976..ce9e28f98 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/field.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/field.js @@ -1 +1 @@ -import{n as e,r as t,t as n}from"./compiler-runtime.js";import{t as r}from"./dist.js";import{Rt as i}from"./auth.js";import"./index.js";t();var a=n(),o=e();function s(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`group/field-group @container/field-group flex w-full flex-col gap-4 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-group`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}var c=r(`group/field flex w-full gap-2 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:`flex-col [&>*]:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function l(e){let t=(0,a.c)(11),n,r,s;t[0]===e?(n=t[1],r=t[2],s=t[3]):({className:n,orientation:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=s);let l=s===void 0?`vertical`:s,u;t[4]!==n||t[5]!==l?(u=i(c({orientation:l}),n),t[4]=n,t[5]=l,t[6]=u):u=t[6];let d;return t[7]!==l||t[8]!==r||t[9]!==u?(d=(0,o.jsx)(`div`,{className:u,"data-orientation":l,"data-slot":`field`,role:`group`,...r}),t[7]=l,t[8]=r,t[9]=u,t[10]=d):d=t[10],d}function u(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`flex w-fit items-center gap-2 text-xs/relaxed leading-snug font-medium group-data-[disabled=true]/field:opacity-50`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-label`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}function d(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`text-left text-xs/relaxed leading-normal font-normal text-muted-foreground group-has-data-[orientation=horizontal]/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`p`,{className:s,"data-slot":`field-description`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}function f(e){let t=(0,a.c)(15),n,r,s,c;t[0]===e?(n=t[1],r=t[2],s=t[3],c=t[4]):({className:r,children:n,errors:s,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=s,t[4]=c);let l;bb0:{if(n){l=n;break bb0}if(!s?.length){l=null;break bb0}let e;t[5]===s?e=t[6]:(e=[...new Map(s.map(m)).values()],t[5]=s,t[6]=e);let r=e;if(r?.length===1){l=r[0]?.message;break bb0}let i;t[7]===r?i=t[8]:(i=(0,o.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:r.map(p)}),t[7]=r,t[8]=i),l=i}let u=l;if(!u)return null;let d;t[9]===r?d=t[10]:(d=i(`text-xs/relaxed font-normal text-destructive`,r),t[9]=r,t[10]=d);let f;return t[11]!==u||t[12]!==c||t[13]!==d?(f=(0,o.jsx)(`div`,{className:d,"data-slot":`field-error`,role:`alert`,...c,children:u}),t[11]=u,t[12]=c,t[13]=d,t[14]=f):f=t[14],f}function p(e){return e?.message&&(0,o.jsx)(`li`,{children:e.message},e.message)}function m(e){return[e?.message,e]}export{u as a,s as i,d as n,f as r,l as t}; \ No newline at end of file +import{n as e,r as t,t as n}from"./compiler-runtime.js";import{t as r}from"./dist.js";import{Lt as i}from"./auth.js";import"./index.js";t();var a=n(),o=e();function s(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`group/field-group @container/field-group flex w-full flex-col gap-4 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-group`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}var c=r(`group/field flex w-full gap-2 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:`flex-col [&>*]:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function l(e){let t=(0,a.c)(11),n,r,s;t[0]===e?(n=t[1],r=t[2],s=t[3]):({className:n,orientation:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=s);let l=s===void 0?`vertical`:s,u;t[4]!==n||t[5]!==l?(u=i(c({orientation:l}),n),t[4]=n,t[5]=l,t[6]=u):u=t[6];let d;return t[7]!==l||t[8]!==r||t[9]!==u?(d=(0,o.jsx)(`div`,{className:u,"data-orientation":l,"data-slot":`field`,role:`group`,...r}),t[7]=l,t[8]=r,t[9]=u,t[10]=d):d=t[10],d}function u(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`flex w-fit items-center gap-2 text-xs/relaxed leading-snug font-medium group-data-[disabled=true]/field:opacity-50`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`field-label`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}function d(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`text-left text-xs/relaxed leading-normal font-normal text-muted-foreground group-has-data-[orientation=horizontal]/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`p`,{className:s,"data-slot":`field-description`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}function f(e){let t=(0,a.c)(15),n,r,s,c;t[0]===e?(n=t[1],r=t[2],s=t[3],c=t[4]):({className:r,children:n,errors:s,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=s,t[4]=c);let l;bb0:{if(n){l=n;break bb0}if(!s?.length){l=null;break bb0}let e;t[5]===s?e=t[6]:(e=[...new Map(s.map(m)).values()],t[5]=s,t[6]=e);let r=e;if(r?.length===1){l=r[0]?.message;break bb0}let i;t[7]===r?i=t[8]:(i=(0,o.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:r.map(p)}),t[7]=r,t[8]=i),l=i}let u=l;if(!u)return null;let d;t[9]===r?d=t[10]:(d=i(`text-xs/relaxed font-normal text-destructive`,r),t[9]=r,t[10]=d);let f;return t[11]!==u||t[12]!==c||t[13]!==d?(f=(0,o.jsx)(`div`,{className:d,"data-slot":`field-error`,role:`alert`,...c,children:u}),t[11]=u,t[12]=c,t[13]=d,t[14]=f):f=t[14],f}function p(e){return e?.message&&(0,o.jsx)(`li`,{children:e.message},e.message)}function m(e){return[e?.message,e]}export{u as a,s as i,d as n,f as r,l as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/iam.js b/spinifex/services/spinifexui/frontend/dist/assets/iam.js index 2df921d49..529005e57 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/iam.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/iam.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{n as t}from"./error-banner.js";import{$ as n,A as r,D as i,E as a,F as o,I as s,L as c,M as l,N as u,O as ee,P as d,R as f,T as p,et as m,j as h,k as g,o as _,tt as v,z as y}from"./awsClient.js";import{Ct as b,dt as x}from"./auth.js";import{Lr as S}from"./index.js";var C=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AddRoleToInstanceProfile`,{}).n(`IAMClient`,`AddRoleToInstanceProfileCommand`).sc(p).build(){},w=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachRolePolicy`,{}).n(`IAMClient`,`AttachRolePolicyCommand`).sc(a).build(){},T=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachUserPolicy`,{}).n(`IAMClient`,`AttachUserPolicyCommand`).sc(i).build(){},E=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateAccessKey`,{}).n(`IAMClient`,`CreateAccessKeyCommand`).sc(ee).build(){},D=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateInstanceProfile`,{}).n(`IAMClient`,`CreateInstanceProfileCommand`).sc(g).build(){},O=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreatePolicy`,{}).n(`IAMClient`,`CreatePolicyCommand`).sc(r).build(){},k=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateRole`,{}).n(`IAMClient`,`CreateRoleCommand`).sc(h).build(){},A=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateUser`,{}).n(`IAMClient`,`CreateUserCommand`).sc(l).build(){},j=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteAccessKey`,{}).n(`IAMClient`,`DeleteAccessKeyCommand`).sc(u).build(){},M=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteInstanceProfile`,{}).n(`IAMClient`,`DeleteInstanceProfileCommand`).sc(d).build(){},N=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeletePolicy`,{}).n(`IAMClient`,`DeletePolicyCommand`).sc(o).build(){},P=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteRole`,{}).n(`IAMClient`,`DeleteRoleCommand`).sc(s).build(){},F=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteUser`,{}).n(`IAMClient`,`DeleteUserCommand`).sc(c).build(){},I=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachRolePolicy`,{}).n(`IAMClient`,`DetachRolePolicyCommand`).sc(f).build(){},L=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachUserPolicy`,{}).n(`IAMClient`,`DetachUserPolicyCommand`).sc(y).build(){},R=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`RemoveRoleFromInstanceProfile`,{}).n(`IAMClient`,`RemoveRoleFromInstanceProfileCommand`).sc(n).build(){},z=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`UpdateAccessKey`,{}).n(`IAMClient`,`UpdateAccessKeyCommand`).sc(m).build(){},B=e();function V(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new A({UserName:e.userName,Path:e.path||void 0});return await _().send(t)}function U(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:W,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function W(e){let t=new F({UserName:e});return await _().send(t)}function G(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new E({UserName:e});return await _().send(t)}function te(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:q,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function q(e){let{userName:t,accessKeyId:n}=e,r=new j({UserName:t,AccessKeyId:n});return await _().send(r)}function J(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:Y,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function Y(e){let{userName:t,accessKeyId:n,status:r}=e,i=new z({UserName:t,AccessKeyId:n,Status:r});return await _().send(i)}function X(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:Z,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function Z(e){let t=new O({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return await _().send(t)}function Q(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ne,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function ne(e){let t=new N({PolicyArn:e});return await _().send(t)}function re(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ie,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function ie(e){let{userName:t,policyArn:n}=e,r=new T({UserName:t,PolicyArn:n});return await _().send(r)}function ae(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:oe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function oe(e){let{userName:t,policyArn:n}=e,r=new L({UserName:t,PolicyArn:n});return await _().send(r)}function se(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},e[0]=n,e[1]=r),t(r)}async function ce(e){let t=new k({RoleName:e.roleName,Path:e.path||void 0,Description:e.description||void 0,AssumeRolePolicyDocument:e.assumeRolePolicyDocument});return await _().send(t)}function le(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ue,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},e[0]=n,e[1]=r),t(r)}async function ue(e){let t=new P({RoleName:e});return await _().send(t)}function de(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},e[0]=n,e[1]=r),t(r)}async function fe(e){let{roleName:t,policyArn:n}=e,r=new w({RoleName:t,PolicyArn:n});return await _().send(r)}function pe(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:$,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},e[0]=n,e[1]=r),t(r)}async function $(e){let{roleName:t,policyArn:n}=e,r=new I({RoleName:t,PolicyArn:n});return await _().send(r)}function me(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:he,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function he(e){let t=new D({InstanceProfileName:e.instanceProfileName,Path:e.path||void 0});return await _().send(t)}function ge(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=new M({InstanceProfileName:e});return await _().send(t)}function ve(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function ye(e){let{instanceProfileName:t,roleName:n}=e,r=new C({InstanceProfileName:t,RoleName:n});return await _().send(r)}function be(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:xe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function xe(e){let{instanceProfileName:t,roleName:n}=e,r=new R({InstanceProfileName:t,RoleName:n});return await _().send(r)}export{J as _,me as a,V as c,Q as d,le as f,be as g,ae as h,G as i,te as l,pe as m,de as n,X as o,U as p,re as r,se as s,ve as t,ge as u}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{n as t}from"./error-banner.js";import{$ as n,A as r,D as i,E as a,F as o,I as s,L as c,M as l,N as u,O as ee,P as d,R as f,T as p,et as m,j as h,k as g,o as _,tt as v,z as y}from"./awsClient.js";import{St as b,ut as x}from"./auth.js";import{Lr as S}from"./index.js";var C=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AddRoleToInstanceProfile`,{}).n(`IAMClient`,`AddRoleToInstanceProfileCommand`).sc(p).build(){},w=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachRolePolicy`,{}).n(`IAMClient`,`AttachRolePolicyCommand`).sc(a).build(){},T=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachUserPolicy`,{}).n(`IAMClient`,`AttachUserPolicyCommand`).sc(i).build(){},E=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateAccessKey`,{}).n(`IAMClient`,`CreateAccessKeyCommand`).sc(ee).build(){},D=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateInstanceProfile`,{}).n(`IAMClient`,`CreateInstanceProfileCommand`).sc(g).build(){},O=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreatePolicy`,{}).n(`IAMClient`,`CreatePolicyCommand`).sc(r).build(){},k=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateRole`,{}).n(`IAMClient`,`CreateRoleCommand`).sc(h).build(){},A=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateUser`,{}).n(`IAMClient`,`CreateUserCommand`).sc(l).build(){},j=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteAccessKey`,{}).n(`IAMClient`,`DeleteAccessKeyCommand`).sc(u).build(){},M=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteInstanceProfile`,{}).n(`IAMClient`,`DeleteInstanceProfileCommand`).sc(d).build(){},N=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeletePolicy`,{}).n(`IAMClient`,`DeletePolicyCommand`).sc(o).build(){},P=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteRole`,{}).n(`IAMClient`,`DeleteRoleCommand`).sc(s).build(){},F=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteUser`,{}).n(`IAMClient`,`DeleteUserCommand`).sc(c).build(){},I=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachRolePolicy`,{}).n(`IAMClient`,`DetachRolePolicyCommand`).sc(f).build(){},L=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachUserPolicy`,{}).n(`IAMClient`,`DetachUserPolicyCommand`).sc(y).build(){},R=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`RemoveRoleFromInstanceProfile`,{}).n(`IAMClient`,`RemoveRoleFromInstanceProfileCommand`).sc(n).build(){},z=class extends b.classBuilder().ep(v).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`UpdateAccessKey`,{}).n(`IAMClient`,`UpdateAccessKeyCommand`).sc(m).build(){},B=e();function V(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new A({UserName:e.userName,Path:e.path||void 0});return await _().send(t)}function U(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:W,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function W(e){let t=new F({UserName:e});return await _().send(t)}function G(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new E({UserName:e});return await _().send(t)}function te(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:q,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function q(e){let{userName:t,accessKeyId:n}=e,r=new j({UserName:t,AccessKeyId:n});return await _().send(r)}function J(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:Y,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function Y(e){let{userName:t,accessKeyId:n,status:r}=e,i=new z({UserName:t,AccessKeyId:n,Status:r});return await _().send(i)}function X(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:Z,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function Z(e){let t=new O({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return await _().send(t)}function Q(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ne,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function ne(e){let t=new N({PolicyArn:e});return await _().send(t)}function re(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ie,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function ie(e){let{userName:t,policyArn:n}=e,r=new T({UserName:t,PolicyArn:n});return await _().send(r)}function ae(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:oe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function oe(e){let{userName:t,policyArn:n}=e,r=new L({UserName:t,PolicyArn:n});return await _().send(r)}function se(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},e[0]=n,e[1]=r),t(r)}async function ce(e){let t=new k({RoleName:e.roleName,Path:e.path||void 0,Description:e.description||void 0,AssumeRolePolicyDocument:e.assumeRolePolicyDocument});return await _().send(t)}function le(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ue,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},e[0]=n,e[1]=r),t(r)}async function ue(e){let t=new P({RoleName:e});return await _().send(t)}function de(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},e[0]=n,e[1]=r),t(r)}async function fe(e){let{roleName:t,policyArn:n}=e,r=new w({RoleName:t,PolicyArn:n});return await _().send(r)}function pe(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:$,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},e[0]=n,e[1]=r),t(r)}async function $(e){let{roleName:t,policyArn:n}=e,r=new I({RoleName:t,PolicyArn:n});return await _().send(r)}function me(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:he,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function he(e){let t=new D({InstanceProfileName:e.instanceProfileName,Path:e.path||void 0});return await _().send(t)}function ge(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=new M({InstanceProfileName:e});return await _().send(t)}function ve(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function ye(e){let{instanceProfileName:t,roleName:n}=e,r=new C({InstanceProfileName:t,RoleName:n});return await _().send(r)}function be(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:xe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function xe(e){let{instanceProfileName:t,roleName:n}=e,r=new R({InstanceProfileName:t,RoleName:n});return await _().send(r)}export{J as _,me as a,V as c,Q as d,le as f,be as g,ae as h,G as i,te as l,pe as m,de as n,X as o,U as p,re as r,se as s,ve as t,ge as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/index.js b/spinifex/services/spinifexui/frontend/dist/assets/index.js index f539b7dff..44ce4d05c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/index.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/index.js @@ -1,10 +1,10 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login.js","assets/compiler-runtime.js","assets/auth.js","assets/tslib.es6.js","assets/awsClient.js","assets/index.browser.js","assets/useStore.js","assets/button.js","assets/dist.js","assets/collapsible.js","assets/createBaseUIEventDetails.js","assets/zod.js","assets/card.js","assets/field.js","assets/route.js","assets/_auth.js","assets/useQuery.js","assets/useBaseQuery.js","assets/chevron-down.js","assets/chevron-right.js","assets/page-heading.js","assets/state-badge.js","assets/badge.js","assets/admin.js","assets/queryOptions.js","assets/nodes.js","assets/redirect.js","assets/service-metrics.js","assets/ls.js","assets/useSuspenseQuery.js","assets/list-card.js","assets/create-bucket.js","assets/s3.js","assets/error-banner.js","assets/back-link.js","assets/cli-command-panel.js","assets/check.js","assets/copy.js","assets/use-copy-to-clipboard.js","assets/form-actions.js","assets/create-user.js","assets/iam.js","assets/iam2.js","assets/create-role.js","assets/textarea.js","assets/create-policy.js","assets/create-instance-profile.js","assets/create-cluster.js","assets/eks.js","assets/subnet-calculator.js","assets/select.js","assets/useCompositeListItem.js","assets/rotate-cw.js","assets/triangle-alert.js","assets/system-managed.js","assets/create-vpc.js","assets/ec2.js","assets/ec22.js","assets/create-volume.js","assets/create-target-group.js","assets/elbv2.js","assets/target-group-form.js","assets/plus.js","assets/trash-2.js","assets/elbv22.js","assets/create-subnet.js","assets/create-snapshot.js","assets/create-security-group.js","assets/create-route-table.js","assets/create-placement-group.js","assets/create-nat-gateway.js","assets/create-load-balancer.js","assets/certificate-import-dialog.js","assets/alert-dialog.js","assets/import-key-pair.js","assets/create-key-pair.js","assets/download.js","assets/create-internet-gateway.js","assets/run-instances.js","assets/allocate-address.js","assets/route2.js","assets/_bucket.js","assets/upload-button.js","assets/delete-confirmation-dialog.js","assets/list-users.js","assets/list-roles.js","assets/list-policies.js","assets/list-instance-profiles.js","assets/list-clusters.js","assets/describe-vpcs.js","assets/describe-volumes.js","assets/describe-target-groups.js","assets/describe-subnets.js","assets/describe-snapshots.js","assets/describe-security-groups.js","assets/describe-route-tables.js","assets/describe-placement-groups.js","assets/describe-nat-gateways.js","assets/describe-load-balancers.js","assets/describe-key-pairs.js","assets/describe-internet-gateways.js","assets/describe-instances.js","assets/describe-images.js","assets/describe-addresses.js","assets/_.js","assets/_userName.js","assets/detail-row.js","assets/_roleName.js","assets/policy-document-viewer.js","assets/_policyArn.js","assets/_instanceProfileName.js","assets/_clusterName.js","assets/tabs.js","assets/_id16.js","assets/_id15.js","assets/_id14.js","assets/_id13.js","assets/tags-editor.js","assets/_id12.js","assets/_id11.js","assets/_id10.js","assets/_id9.js","assets/_id8.js","assets/_id7.js","assets/_id6.js","assets/_id5.js","assets/_id4.js","assets/_id3.js","assets/ami-details.js","assets/_id2.js","assets/_id.js"])))=>i.map(i=>d[i]); -import{i as e,n as t,o as n,r,t as i}from"./compiler-runtime.js";import{t as a}from"./queryOptions.js";import{A as o,B as s,C as c,D as l,E as u,F as d,G as f,I as p,L as m,M as h,N as g,O as _,P as v,R as y,S as b,T as x,V as S,W as C,_ as w,a as T,b as E,c as D,d as O,f as k,g as A,h as j,i as M,j as ee,k as N,l as P,m as te,n as ne,o as re,r as ie,s as ae,t as F,v as oe,w as se,x as I,y as ce,z as le}from"./useStore.js";import{i as ue,n as de,r as fe,t as pe}from"./matchContext.js";import{n as me,t as he}from"./redirect.js";import{B as ge,Bn as _e,Bt as ve,Fn as ye,G as be,Gn as xe,Gt as Se,H as Ce,Hn as we,Ht as Te,In as Ee,J as De,Jn as Oe,Jt as ke,K as Ae,Kn as je,Kt as Me,Ln as Ne,Nn as Pe,Pn as Fe,Q as Ie,Rn as Le,U as Re,Un as ze,Ut as Be,V as Ve,Vn as He,Vt as Ue,W as We,Wn as Ge,X as Ke,Xt as qe,Y as Je,Yn as Ye,Yt as Xe,Z as Ze,_r as Qe,_t as $e,a as et,b as tt,bt as nt,en as rt,ft as it,gr as at,gt as ot,h as st,ht as ct,i as lt,kt as ut,m as dt,mr as ft,mt as pt,n as mt,o as ht,pt as gt,q as _t,qn as vt,qt as yt,r as bt,s as xt,t as St,tt as Ct,vr as wt,vt as Tt,y as Et,yr as Dt,yt as Ot,zn as kt,zt as At}from"./awsClient.js";import{a as jt,c as Mt,f as Nt,l as Pt,n as Ft,o as It,s as Lt,t as Rt,u as zt}from"./dist.js";import{$ as Bt,A as Vt,At as Ht,B as Ut,C as Wt,Ct as L,D as Gt,Dt as Kt,E as qt,F as Jt,Ft as Yt,G as Xt,I as Zt,It as Qt,K as $t,L as en,Lt as tn,M as nn,Mt as rn,N as an,Nt as on,O as sn,P as cn,R as ln,Rt as un,S as dn,St as fn,U as pn,V as mn,W as hn,X as gn,Y as _n,Z as vn,_t as yn,bt as bn,dt as R,et as xn,ft as Sn,g as Cn,gt as wn,ht as Tn,j as En,k as Dn,kt as On,mt as kn,n as An,ot as z,pt as jn,q as Mn,r as Nn,tt as Pn,vt as Fn,wt as In,x as Ln,xt as Rn,yt as zn,z as Bn,zt as Vn}from"./auth.js";import{C as Hn,D as Un,E as Wn,S as Gn,T as Kn,_ as qn,b as Jn,d as Yn,f as Xn,g as Zn,h as Qn,l as $n,m as er,n as tr,o as B,p as nr,r as rr,s as ir,t as ar,u as or,v as sr,w as cr,x as lr,y as V}from"./button.js";import{C as ur,S as dr,a as fr,b as pr,f as mr,g as hr,h as gr,i as _r,m as vr,o as yr,p as br,r as xr,s as Sr,t as Cr,v as wr,x as Tr,y as H}from"./createBaseUIEventDetails.js";import{F as Er,I as Dr,N as Or,P as kr,v as Ar}from"./tslib.es6.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var jr=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(){}},Mr=new class extends jr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let 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(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Nr={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Pr=new class{#e=Nr;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)}};function Fr(e){setTimeout(e,0)}var Ir=typeof window>`u`||`Deno`in globalThis;function Lr(){}function Rr(e,t){return typeof e==`function`?e(t):e}function zr(e){return typeof e==`number`&&e>=0&&e!==1/0}function Br(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vr(e,t){return typeof e==`function`?e(t):e}function Hr(e,t){return typeof e==`function`?e(t):e}function Ur(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Gr(o,t.options))return!1}else if(!qr(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Wr(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Kr(t.options.mutationKey)!==Kr(a))return!1}else if(!qr(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Gr(e,t){return(t?.queryKeyHashFn||Kr)(e)}function Kr(e){return JSON.stringify(e,(e,t)=>Qr(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function qr(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>qr(e[n],t[n])):!1}var Jr=Object.prototype.hasOwnProperty;function Yr(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Zr(e)&&Zr(t);if(!r&&!(Qr(e)&&Qr(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{Pr.setTimeout(t,e)})}function ti(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Yr(e,t)}function ni(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ri(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ii=Symbol();function ai(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ii?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function oi(e,t){return typeof e==`function`?e(...t):!!e}function si(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var ci=(()=>{let e=()=>Ir;return{isServer(){return e()},setIsServer(t){e=t}}})();function li(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var ui=Fr;function di(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ui,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var fi=di(),pi=new class extends jr{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let 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(t=>{t(e)}))}isOnline(){return this.#e}};function mi(e){return Math.min(1e3*2**e,3e4)}function hi(e){return(e??`online`)===`online`?pi.isOnline():!0}var gi=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function _i(e){let t=!1,n=0,r,i=li(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new gi(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Mr.isFocused()&&(e.networkMode===`always`||pi.isOnline())&&e.canRun(),u=()=>hi(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(ci.isServer()?0:3),o=e.retryDelay??mi,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var vi=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zr(this.gcTime)&&(this.#e=Pr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ci.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Pr.clearTimeout(this.#e),this.#e=void 0)}};function yi(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{si(e,()=>t.signal,()=>n=!0)},u=ai(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?ri:ni;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?xi:bi,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:bi(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function bi(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xi(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Si=class extends vi{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Ti(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.#a?.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){let e=Ti(this.options);e.data!==void 0&&(this.setState(wi(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=ti(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Lr).catch(Lr):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=>Hr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ii||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Vr(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:!Br(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.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.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ai(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?yi(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=_i({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof gi&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof gi){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Ci(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...wi(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),fi.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Ci(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hi(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function wi(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ti(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Ei=class extends vi{#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||Di(),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){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=_i({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,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{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),fi.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Di(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Oi=class extends jr{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Ei({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=ki(e);if(typeof t==`string`){let 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)){let t=ki(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=ki(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=ki(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){fi.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){let t={exact:!0,...e};return this.getAll().find(e=>Wr(t,e))}findAll(e={}){return this.getAll().filter(t=>Wr(e,t))}notify(e){fi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return fi.batch(()=>Promise.all(e.map(e=>e.continue().catch(Lr))))}};function ki(e){return e.options.scope?.id}var Ai=class extends jr{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Gr(r,t),a=this.get(i);return a||(a=new Si({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){fi.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Ur(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Ur(e,t)):t}notify(e){fi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){fi.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){fi.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ji=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Ai,this.#t=e.mutationCache||new Oi,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Mr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=pi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===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){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Vr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Rr(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return fi.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;fi.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return fi.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=fi.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Lr).catch(Lr)}invalidateQueries(e,t={}){return fi.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=fi.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Lr)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Lr)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Vr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Lr).catch(Lr)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Lr).catch(Lr)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return pi.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(Kr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{qr(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Kr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{qr(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Gr(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===ii&&(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()}},U=n(r(),1),W=t(),Mi=U.createContext(void 0),Ni=e=>{let t=U.useContext(Mi);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Pi=({client:e,children:t})=>(U.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,W.jsx)(Mi.Provider,{value:e,children:t}));function Fi(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Ii(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Li(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Ii(r):Array.isArray(t)?t.push(Ii(r)):n[e]=[t,Ii(r)]}return n}var Ri=Bi(JSON.parse),zi=Vi(JSON.stringify,JSON.parse);function Bi(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Li(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Vi(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Fi(e,r);return t?`?${t}`:``}}var Hi=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Ui=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Wi=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Gi=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Ki=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},qi=(e,t,n)=>{if(!(!he(n)&&!ue(n)))throw he(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(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,r=>({...r,status:he(n)?`redirected`:ue(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Gi(e,t.index),isFetching:!1,error:n})),ue(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),he(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Ji=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Yi=(e,t,n)=>{let r=Gi(e,n);e.updateMatch(t,e=>({...e,context:r}))},Xi=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,qi(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,qi(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!he(n)&&!ue(n)&&(e.serialError??=n)},Zi=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Wi(e,t)&&(n.options.loader||n.options.beforeLoad||ca(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Hi(e)},i);r._nonReactive.pendingTimeout=t}},Qi=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Zi(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&qi(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},$i=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=_(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&Xi(e,n,o),s&&Xi(e,n,s),Zi(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=_();let f={...Gi(e,n,!1),...i.__routeContext},{search:p,params:h,cause:g}=i,v=Wi(e,t),y={search:p,abortController:c,params:h,preload:v,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(he(r)||ue(r))&&(u(),Xi(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},x;try{if(x=r.options.beforeLoad(y),m(x))return u(),x.catch(t=>{Xi(e,n,t)}).then(b)}catch(t){u(),Xi(e,n,t)}b(x)},ea=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>$i(e,n,t,i),s=()=>{if(Ji(e,n))return;let t=Qi(e,n,i);return m(t)?t.then(o):o()};return a()},ta=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},na=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Gi(e,r),d=Wi(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},ra=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{sa(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(na(e,t,n,r,i)),l=!!s&&m(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;qi(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Gi(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Gi(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,ue(t)&&await i.options.notFoundComponent?.preload?.(),qi(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,qi(e,e.router.getMatch(n),t)}!he(o)&&!ue(o)&&await sa(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Gi(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),qi(e,r,t)}},ia=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(na(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await ra(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){he(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await ra(e,t,i,n,d):Yi(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Ji(e,i)){if(!e.router.getMatch(i))return e.matches[n];Yi(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Wi(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&qi(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=_(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function aa(e){let t=e,n=[];Ui(t.router)&&Hi(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await sa(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await sa(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=ta(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Hi(t);if(m(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function oa(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function sa(e,t=la){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===la?(()=>{if(e._componentsPromise===void 0){let t=oa(e,la);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():oa(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function ca(e){for(let t of la)if(e.options[t]?.preload)return!0;return!1}var la=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ua(e){return{input:({url:t})=>{for(let n of e)t=fa(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=pa(e[n],t);return t}}}function da(e){let t=j(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=k([`/`,t,e.pathname]),e)}}function fa(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function pa(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function ma(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>ha(o,_.get())),x=r(()=>ha(s,v.get())),S=r(()=>ha(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=se(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:j,setCached:M};A(e.matches),a?.(k);function A(e){ga(e,o,_,n,i)}function j(e){ga(e,s,v,n,i)}function M(e){ga(e,c,y,n,i)}return k}function ha(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function ga(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}l(n.get(),a)||n.set(a)})}var _a=`__TSR_index`,va=`popstate`,ya=`beforeunload`;function ba(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=wa(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[_a];i=xa(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[_a];i=xa(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[_a]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function xa(e,t){t||={};let n=Ta();return{...t,key:n,__TSR_key:n,[_a]:e}}function Sa(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>wa(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Ta();t.history.replaceState({[_a]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=wa(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[_a]-l.state[_a],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=ba({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(ya,S,{capture:!0}),t.removeEventListener(va,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(ya,S,{capture:!0}),t.addEventListener(va,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Ca(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function wa(e,t){let n=Ca(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Ta();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[_a]:0,key:a,__TSR_key:a}}}function Ta(){return(Math.random()+1).toString(36).substring(7)}function Ea(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Da=new WeakMap,Oa=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=P(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Sa()),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 e;this.resolvePathCache=se(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=ma(ja(this.latestLocation),e),Za(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=j(o);t&&t!==`/`&&e.push(da({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ua(e),this.history&&this.updateLatestLocation(),a=!0}a&&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=()=>{let e=c(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&b(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:N(e).path,external:!1,searchStr:o,search:le(t?.search,i),hash:N(r.slice(1)).path,state:s(t?.state,a)}}let o=new URL(i,this.origin),c=fa(this.rewrite,o),l=this.options.parseSearch(c.search),u=this.options.stringifySearch(l);return c.search=u,{href:c.href.replace(c.origin,``),publicHref:i,pathname:N(c.pathname).path,external:!!this.rewrite&&c.origin!==this.origin,searchStr:u,search:le(t?.search,l),hash:N(c.hash.slice(1)).path,state:s(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>te({base:e,to:t.includes(`//`)?D(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Na({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,c=Object.assign(Object.create(null),r.params),l=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),u=a?this.resolvePathWithBase(l,a):l,d=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?c:Object.assign(c,g(t.params,c)),f=this.routesByPath[w(u)],p;if(f)p=this.getRouteBranch(f);else if(u.includes(`$`))p=[];else{let e=this.getMatchedRoutes(u);p=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(p=[...p,this.options.notFoundRoute])}if(p.length&&v(d))for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(d,t(d))}catch{}}let m=e.leaveParams?u:N(O({path:u,params:d,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Ma(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=Pa({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=le(o,h);let _=this.options.stringifySearch(h),y=t.hash===!0?n.hash:t.hash?g(t.hash,n.hash):void 0,b=y?`#${y}`:``,x=t.state===!0?n.state:t.state?g(t.state,n.state):{};x=s(n.state,x);let S=`${m}${_}${b}`,C,T,E=!1;if(this.rewrite){let e=new URL(S,this.origin),t=pa(this.rewrite,e);C=e.href.replace(e.origin,``),t.origin===this.origin?T=t.pathname+t.search+t.hash:(T=t.href,E=!0)}else C=ee(S),T=C;return{publicHref:T,href:C,pathname:m,search:h,searchStr:_,state:x,hash:y??``,external:E,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=ce(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,g(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=o(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=w(this.latestLocation.href)===w(n.href),s=this.commitLocationPromise;if(this.commitLocationPromise=_(()=>{s?.resolve(),s=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=wa(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=fa(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(d(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.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(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Da.set(this.latestLocation,t):Da.delete(this.latestLocation);let n=this.latestLocation,r=Ea(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await aa({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){he(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):ue(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Ea(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&d(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=sa,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await aa({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(he(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});ue(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=I(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!o(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?o(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.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??zi,parseSearch:e.parseSearch??Ri,protocolAllowlist:e.protocolAllowlist??u}),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;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=oe(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){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:w(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let c=o?Ia(this.options.notFoundMode,a):void 0,l=Array(a.length),u=new Map;for(let e of this.stores.matchStores.values())e.routeId&&u.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:l,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return l}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=y(t),i={...e.search};for(let e of t)try{Object.assign(i,Ma(e.options.validateSearch,i))}catch{}let a=y(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{La(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},ka=class extends Error{},Aa=class extends Error{};function ja(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Ma(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new ka(`Async validation not supported`);if(n.issues)throw new ka(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 Na({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=w(e),a,o=E(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Pa({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Fa(n)(e,t,r??!1)}function Fa(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=Ma(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>e>=r.length?t.search?t.search===!0?n:g(t.search,n):{}:r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a});return function(e,r,a){return t=r,n=a,i(0,e)}}function Ia(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return fe}function La(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Ra(){try{return sessionStorage}catch{return}}var za=`tsr-scroll-restoration-v1_3`,Ba=Ra();function Va(){try{return JSON.parse(Ba?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Ha(){try{Ba?.setItem(za,JSON.stringify(Ua))}catch{}}var Ua=Va(),Wa=`data-scroll-restoration-id`,Ga=e=>e.state.__TSR_key||e.href;function Ka(e){let t=e.getAttribute(Wa);if(t)return`[${Wa}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var qa=!1,Ja=`window`;function Ya(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Xa(e){let t=[];for(let n of e){if(n===Ja)continue;let e=Ya(n);e&&t.push(e)}return t}function Za(e,t){if((t??e.options.scrollRestoration)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,qa=!1;let n=e.options.getScrollRestorationKey||Ga,r=new Map,i=(e,t,n)=>{let i=r.get(e)||{};i.scrollX=t,i.scrollY=n,r.set(e,i)};history.scrollRestoration=`manual`;let a=t=>{if(!(qa||!e.isScrollRestoring))if(t.target===document)i(Ja,scrollX,scrollY);else{let e=t.target;i(e,e.scrollLeft,e.scrollTop)}},o=t=>{if(!e.isScrollRestoring)return;let n=Ua[t]||={};for(let[e,t]of r)e===Ja?n[Ja]=t:e.isConnected&&(n[Ka(e)]=t)};document.addEventListener(`scroll`,a,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(n(e.fromLocation)),r.clear()}),addEventListener(`pagehide`,()=>{o(n(e.stores.resolvedLocation.get()??e.stores.location.get())),Ha()}),e.subscribe(`onRendered`,t=>{let i=e.options.scrollRestorationBehavior,a=e.options.scrollToTopSelectors,o=e.resetNextScroll,s;if(r.clear(),o||(e.resetNextScroll=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let c=n(t.toLocation),l=t.fromLocation&&n(t.fromLocation);if(e.isScrollRestoring&&l&&l!==c){let e=Ua[l];if(e){let t=Ua[c];for(let n in e){if(n===Ja){if(o)continue}else{let e=Ya(n);if(!e||o&&a&&(s??=Xa(a),s.includes(e)))continue}t||=Ua[c]={},t[n]??=e[n]}}}qa=!0;try{let n=t.toLocation.hash,r=t.toLocation.state.__hashScrollIntoViewOptions??!0,l=!1;if(o){let o=Da.get(t.toLocation),u=n&&r&&(o===`PUSH`||o===`REPLACE`),d=e.isScrollRestoring?Ua[c]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:n}=d[e];if(e===Ja){if(u)continue;scrollTo({top:n,left:t,behavior:i}),l=!0}else{let r=Ya(e);r&&(r.scrollLeft=t,r.scrollTop=n)}}if(!l&&!n){let e={top:0,left:0,behavior:i};if(scrollTo(e),a){s??=Xa(a);for(let t of s)t.scrollTo(e)}}}!l&&n&&r&&document.getElementById(n)?.scrollIntoView(r)}finally{qa=!1}})}function Qa(e,t){if(e)return typeof e==`string`?e:e[t]}function $a(e){return e?.scriptFormat??`module`}function eo(e,t,n){let r=to(t),i=Qa(n,`script`)??r.crossOrigin;return{...$a(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function to(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function no(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function ro(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var io=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=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=fe:this.parentRoute||x();let r=n?fe:t?.path;r&&r!==`/`&&(r=A(r));let i=t?.id||r,a=n?fe:k([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=k([`/`,a]));let o=a===`__root__`?`/`:k([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=w(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>me({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},ao=class extends io{constructor(e){super(e)}};function oo(e){let t=e.errorComponent??so;return(0,W.jsx)(G,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?U.createElement(t,{error:n,reset:r}):e.children})}var G=class extends U.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let 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 so({error:e}){let[t,n]=U.useState(!1);return(0,W.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,W.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,W.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,W.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,W.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,W.jsx)(`div`,{children:(0,W.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,W.jsx)(`code`,{children:e.message}):null})}):null]})}var K=(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))(K||{});function co({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function lo(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var uo=[],fo=0,{link:po,unlink:mo,propagate:ho,checkDirty:go,shallowPropagate:_o}=co({update(e){return e._update()},notify(e){uo[yo++]=e,e.flags&=~K.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=K.Mutable|K.Dirty,Co(e))}}),vo=0,yo=0,bo,xo=0;function So(e){try{++xo,e()}finally{--xo||wo()}}function Co(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=mo(n,e)}function wo(){if(!(xo>0)){for(;vo{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=bo,o=t?.compare??Object.is;if(n)bo=i,++fo,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=K.Mutable|K.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{bo=a,n&&(i.flags&=~K.RecursedCheck),Co(i)}}};return n?(i.flags=K.Mutable|K.Dirty,i.get=function(){let e=i.flags;if(e&K.Dirty||e&K.Pending&&go(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&_o(e)}}else e&K.Pending&&(i.flags=e&~K.Pending);return bo!==void 0&&po(i,bo,fo),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(ho(e),_o(e),wo())}},i}function Eo(e){let t=()=>{let t=bo;bo=n,++fo,n.depsTail=void 0,n.flags=K.Watching|K.RecursedCheck;try{return e()}finally{bo=t,n.flags&=~K.RecursedCheck,Co(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:K.Watching|K.RecursedCheck,notify(){let e=this.flags;e&K.Dirty||e&K.Pending&&go(this.deps,this)?t():this.flags=K.Watching},stop(){this.flags=K.None,this.depsTail=void 0,Co(this)}};return t(),n}var Do={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function Oo(e){let t=M(),n=U.useContext(e.from?pe:de),r=e.from??n,i=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,a=U.useRef(void 0);return F(i??Do,n=>{if((e.shouldThrow??!0)&&!n&&x(),n===void 0)return;let r=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=s(a.current,r);return a.current=e,e}return r})}function ko(e){return Oo({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Ao(e){let{select:t,...n}=e;return Oo({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function jo(e){return Oo({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Mo(e){return Oo({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function No(e){let t=M();return U.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Po(e){return Oo({...e,select:t=>e.select?e.select(t.context):t.context})}var Fo=class extends io{constructor(e){super(e),this.useMatch=e=>Oo({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Po({...e,from:this.id}),this.useSearch=e=>Mo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>jo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Ao({...e,from:this.id}),this.useLoaderData=e=>ko({...e,from:this.id}),this.useNavigate=()=>No({from:this.fullPath}),this.Link=U.forwardRef((e,t)=>(0,W.jsx)(wt,{ref:t,from:this.fullPath,...e}))}};function Io(e){return new Fo(e)}function Lo(){return e=>zo(e)}var Ro=class extends ao{constructor(e){super(e),this.useMatch=e=>Oo({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Po({...e,from:this.id}),this.useSearch=e=>Mo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>jo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Ao({...e,from:this.id}),this.useLoaderData=e=>ko({...e,from:this.id}),this.useNavigate=()=>No({from:this.fullPath}),this.Link=U.forwardRef((e,t)=>(0,W.jsx)(wt,{ref:t,from:this.fullPath,...e}))}};function zo(e){return new Ro(e)}function q(e){return new Bo(e,{silent:!0}).createRoute}var Bo=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Io(e);return t.isRoot=!1,t},this.silent=t?.silent}};function J(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,p(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(S)S(o());else throw o();return U.createElement(r,e)};return s.preload=o,s}function Vo(e){let t=M(),n=`not-found-${F(t.stores.location,e=>e.pathname)}-${F(t.stores.status,e=>e)}`;return(0,W.jsx)(oo,{getResetKey:()=>n,onCatch:(t,n)=>{if(ue(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(ue(t))return e.fallback?.(t);throw t},children:e.children})}function Ho(){return(0,W.jsx)(`p`,{children:`Not Found`})}function Uo(e){return(0,W.jsx)(W.Fragment,{children:e.children})}function Wo(e,t,n){return t.options.notFoundComponent?(0,W.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,W.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,W.jsx)(Ho,{})}var Go=U.memo(function({matchId:e}){let t=M(),n=t.stores.matchStores.get(e);n||x();let r=F(t.stores.loadedAt,e=>e),i=F(n,e=>e);return(0,W.jsx)(Ko,{router:t,matchId:e,resetKey:r,matchState:U.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Ko({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,W.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?U.Suspense:Uo,f=s?oo:Uo,p=l?Vo:Uo;return(0,W.jsxs)(i.isRoot?i.options.shellComponent??Uo:Uo,{children:[(0,W.jsx)(de.Provider,{value:t,children:(0,W.jsx)(d,{fallback:o,children:(0,W.jsx)(f,{getResetKey:()=>n,errorComponent:s||so,onCatch:(e,t)=>{if(ue(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,W.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return U.createElement(l,e)},children:u||r._displayPending?(0,W.jsx)(re,{fallback:o,children:(0,W.jsx)(Jo,{matchId:t})}):(0,W.jsx)(Jo,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(qo,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function qo({resetKey:e}){let t=M(),n=U.useRef(void 0);return C(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...Ea(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var Jo=U.memo(function({matchId:e}){let t=M(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||x();let i=F(r,e=>e),a=i.routeId,o=t.routesById[a],s=U.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=U.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,W.jsx)(e,{},s):(0,W.jsx)(Yo,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=_();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return ue(i.error)||x(),Wo(t,o,i.error);if(i.status===`redirected`)throw he(i.error)||x(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Yo=U.memo(function(){let e=M(),t=U.useContext(de),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=F(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=F(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,W.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||x(),Wo(e,a,void 0);if(!i)return null;let s=(0,W.jsx)(Go,{matchId:i});return n===`__root__`?(0,W.jsx)(U.Suspense,{fallback:o,children:s}):s});function Xo(){let e=M(),t=U.useRef({router:e,mounted:!1}),[n,r]=U.useState(!1),i=F(e.stores.isLoading,e=>e),a=F(e.stores.hasPending,e=>e),o=f(i),s=i||n||a,c=f(s),l=i||a,u=f(l);return e.startTransition=e=>{r(!0),U.startTransition(()=>{e(),r(!1)})},U.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return w(e.latestLocation.publicHref)!==w(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),C(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),C(()=>{o&&!i&&e.emit({type:`onLoad`,...Ea(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),C(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Ea(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),C(()=>{if(c&&!s){let t=Ea(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),So(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Zo(){let e=M(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,W.jsx)(t,{}):null,r=(0,W.jsxs)(typeof document<`u`&&e.ssr?Uo:U.Suspense,{fallback:n,children:[(0,W.jsx)(Xo,{}),(0,W.jsx)(Qo,{})]});return e.options.InnerWrap?(0,W.jsx)(e.options.InnerWrap,{children:r}):r}function Qo(){let e=M(),t=F(e.stores.firstId,e=>e),n=F(e.stores.loadedAt,e=>e),r=t?(0,W.jsx)(Go,{matchId:t}):null;return(0,W.jsx)(de.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,W.jsx)(oo,{getResetKey:()=>n,errorComponent:so,onCatch:void 0,children:r})})}var $o=e=>({createMutableStore:To,createReadonlyStore:To,batch:So}),es=e=>new ts(e),ts=class extends Oa{constructor(e){super(e,$o)}};function ns({router:e,children:t,...n}){v(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,W.jsx)(T.Provider,{value:e,children:t});return e.options.Wrap?(0,W.jsx)(e.options.Wrap,{children:r}):r}function rs({router:e,...t}){return(0,W.jsx)(ns,{router:e,...t,children:(0,W.jsx)(Zo,{})})}function is(e){let t=M(),n=(0,U.useRef)(void 0);return F(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=s(n.current,i);return n.current=e,e}return i})}function as(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function os(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,W.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,W.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,W.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,W.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,W.jsx)(ss,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function ss({attrs:e,children:t,preventScriptHoist:n}){M();let r=ae(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(U.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return as(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,as(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,W.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,W.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,W.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var cs=e=>{let t=M(),n=t.options.ssr?.nonce,r=F(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),o),i=U.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:h(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=F(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),o),s=F(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=ro(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Qa(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},o),c=F(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...eo(a,t,e),nonce:n}})})}),i},o),l=F(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),o),u=F(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),o),d=[];return no(d,i),d.push(...c),no(d,a),d.push(...s),no(d,l),no(d,u),d};function ls(e){let t=cs(e.assetCrossOrigin),n=M().options.ssr?.nonce;return(0,W.jsx)(W.Fragment,{children:t.map(e=>(0,U.createElement)(os,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var us=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ds=e(((e,t)=>{t.exports=us()})),fs=e((e=>{var t=ds(),n=r(),i=Dt();function a(e){var t=`https://react.dev/errors/`+e;if(1re||(e.current=ne[re],ne[re]=null,re--)}function F(e,t){re++,ne[re]=e.current,e.current=t}var oe=ie(null),se=ie(null),I=ie(null),ce=ie(null);function le(e,t){switch(F(I,t),F(se,e),F(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(oe),F(oe,e)}function ue(){ae(oe),ae(se),ae(I)}function de(e){e.memoizedState!==null&&F(ce,e);var t=oe.current,n=Wd(t,e.type);t!==n&&(F(se,e),F(oe,n))}function fe(e){se.current===e&&(ae(oe),ae(se)),ce.current===e&&(ae(ce),ep._currentValue=te)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var jr=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(){}},Mr=new class extends jr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let 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(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Nr={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Pr=new class{#e=Nr;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)}};function Fr(e){setTimeout(e,0)}var Ir=typeof window>`u`||`Deno`in globalThis;function Lr(){}function Rr(e,t){return typeof e==`function`?e(t):e}function zr(e){return typeof e==`number`&&e>=0&&e!==1/0}function Br(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vr(e,t){return typeof e==`function`?e(t):e}function Hr(e,t){return typeof e==`function`?e(t):e}function Ur(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Gr(o,t.options))return!1}else if(!qr(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Wr(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Kr(t.options.mutationKey)!==Kr(a))return!1}else if(!qr(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Gr(e,t){return(t?.queryKeyHashFn||Kr)(e)}function Kr(e){return JSON.stringify(e,(e,t)=>Qr(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function qr(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>qr(e[n],t[n])):!1}var Jr=Object.prototype.hasOwnProperty;function Yr(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Zr(e)&&Zr(t);if(!r&&!(Qr(e)&&Qr(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{Pr.setTimeout(t,e)})}function ti(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Yr(e,t)}function ni(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ri(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ii=Symbol();function ai(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ii?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function oi(e,t){return typeof e==`function`?e(...t):!!e}function si(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var ci=(()=>{let e=()=>Ir;return{isServer(){return e()},setIsServer(t){e=t}}})();function li(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var ui=Fr;function di(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ui,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var fi=di(),pi=new class extends jr{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let 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(t=>{t(e)}))}isOnline(){return this.#e}};function mi(e){return Math.min(1e3*2**e,3e4)}function hi(e){return(e??`online`)===`online`?pi.isOnline():!0}var gi=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function _i(e){let t=!1,n=0,r,i=li(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new gi(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Mr.isFocused()&&(e.networkMode===`always`||pi.isOnline())&&e.canRun(),u=()=>hi(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(ci.isServer()?0:3),o=e.retryDelay??mi,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var vi=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zr(this.gcTime)&&(this.#e=Pr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ci.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Pr.clearTimeout(this.#e),this.#e=void 0)}};function yi(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{si(e,()=>t.signal,()=>n=!0)},u=ai(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?ri:ni;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?xi:bi,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:bi(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function bi(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xi(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Si=class extends vi{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Ti(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.#a?.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){let e=Ti(this.options);e.data!==void 0&&(this.setState(wi(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=ti(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Lr).catch(Lr):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=>Hr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ii||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Vr(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:!Br(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.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.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ai(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?yi(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=_i({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof gi&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof gi){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Ci(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...wi(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),fi.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Ci(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hi(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function wi(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ti(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Ei=class extends vi{#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||Di(),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){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=_i({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,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{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),fi.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Di(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Oi=class extends jr{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Ei({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=ki(e);if(typeof t==`string`){let 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)){let t=ki(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=ki(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=ki(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){fi.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){let t={exact:!0,...e};return this.getAll().find(e=>Wr(t,e))}findAll(e={}){return this.getAll().filter(t=>Wr(e,t))}notify(e){fi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return fi.batch(()=>Promise.all(e.map(e=>e.continue().catch(Lr))))}};function ki(e){return e.options.scope?.id}var Ai=class extends jr{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Gr(r,t),a=this.get(i);return a||(a=new Si({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){fi.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Ur(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Ur(e,t)):t}notify(e){fi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){fi.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){fi.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ji=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Ai,this.#t=e.mutationCache||new Oi,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Mr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=pi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===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){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Vr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Rr(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return fi.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;fi.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return fi.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=fi.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Lr).catch(Lr)}invalidateQueries(e,t={}){return fi.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=fi.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Lr)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Lr)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Vr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Lr).catch(Lr)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Lr).catch(Lr)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return pi.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(Kr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{qr(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Kr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{qr(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Gr(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===ii&&(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()}},U=n(r(),1),W=t(),Mi=U.createContext(void 0),Ni=e=>{let t=U.useContext(Mi);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Pi=({client:e,children:t})=>(U.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,W.jsx)(Mi.Provider,{value:e,children:t}));function Fi(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Ii(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Li(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Ii(r):Array.isArray(t)?t.push(Ii(r)):n[e]=[t,Ii(r)]}return n}var Ri=Bi(JSON.parse),zi=Vi(JSON.stringify,JSON.parse);function Bi(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Li(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Vi(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Fi(e,r);return t?`?${t}`:``}}var Hi=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Ui=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Wi=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Gi=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Ki=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},qi=(e,t,n)=>{if(!(!he(n)&&!ue(n)))throw he(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(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,r=>({...r,status:he(n)?`redirected`:ue(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Gi(e,t.index),isFetching:!1,error:n})),ue(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),he(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Ji=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Yi=(e,t,n)=>{let r=Gi(e,n);e.updateMatch(t,e=>({...e,context:r}))},Xi=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,qi(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,qi(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!he(n)&&!ue(n)&&(e.serialError??=n)},Zi=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Wi(e,t)&&(n.options.loader||n.options.beforeLoad||ca(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Hi(e)},i);r._nonReactive.pendingTimeout=t}},Qi=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Zi(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&qi(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},$i=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=_(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&Xi(e,n,o),s&&Xi(e,n,s),Zi(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=_();let f={...Gi(e,n,!1),...i.__routeContext},{search:p,params:h,cause:g}=i,v=Wi(e,t),y={search:p,abortController:c,params:h,preload:v,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(he(r)||ue(r))&&(u(),Xi(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},x;try{if(x=r.options.beforeLoad(y),m(x))return u(),x.catch(t=>{Xi(e,n,t)}).then(b)}catch(t){u(),Xi(e,n,t)}b(x)},ea=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>$i(e,n,t,i),s=()=>{if(Ji(e,n))return;let t=Qi(e,n,i);return m(t)?t.then(o):o()};return a()},ta=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},na=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Gi(e,r),d=Wi(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},ra=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{sa(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(na(e,t,n,r,i)),l=!!s&&m(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;qi(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Gi(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Gi(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,ue(t)&&await i.options.notFoundComponent?.preload?.(),qi(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,qi(e,e.router.getMatch(n),t)}!he(o)&&!ue(o)&&await sa(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Gi(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),qi(e,r,t)}},ia=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(na(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await ra(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){he(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await ra(e,t,i,n,d):Yi(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Ji(e,i)){if(!e.router.getMatch(i))return e.matches[n];Yi(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Wi(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&qi(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=_(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function aa(e){let t=e,n=[];Ui(t.router)&&Hi(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await sa(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await sa(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=ta(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Hi(t);if(m(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function oa(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function sa(e,t=la){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===la?(()=>{if(e._componentsPromise===void 0){let t=oa(e,la);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():oa(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function ca(e){for(let t of la)if(e.options[t]?.preload)return!0;return!1}var la=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ua(e){return{input:({url:t})=>{for(let n of e)t=fa(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=pa(e[n],t);return t}}}function da(e){let t=j(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=k([`/`,t,e.pathname]),e)}}function fa(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function pa(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function ma(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>ha(o,_.get())),x=r(()=>ha(s,v.get())),S=r(()=>ha(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=se(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:j,setCached:M};A(e.matches),a?.(k);function A(e){ga(e,o,_,n,i)}function j(e){ga(e,s,v,n,i)}function M(e){ga(e,c,y,n,i)}return k}function ha(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function ga(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}l(n.get(),a)||n.set(a)})}var _a=`__TSR_index`,va=`popstate`,ya=`beforeunload`;function ba(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=wa(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[_a];i=xa(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[_a];i=xa(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[_a]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function xa(e,t){t||={};let n=Ta();return{...t,key:n,__TSR_key:n,[_a]:e}}function Sa(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>wa(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Ta();t.history.replaceState({[_a]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=wa(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[_a]-l.state[_a],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=ba({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(ya,S,{capture:!0}),t.removeEventListener(va,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(ya,S,{capture:!0}),t.addEventListener(va,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Ca(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function wa(e,t){let n=Ca(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Ta();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[_a]:0,key:a,__TSR_key:a}}}function Ta(){return(Math.random()+1).toString(36).substring(7)}function Ea(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Da=new WeakMap,Oa=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=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=P(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Sa()),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 e;this.resolvePathCache=se(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=ma(ja(this.latestLocation),e),Za(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=j(o);t&&t!==`/`&&e.push(da({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ua(e),this.history&&this.updateLatestLocation(),a=!0}a&&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=()=>{let e=c(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&b(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:N(e).path,external:!1,searchStr:o,search:le(t?.search,i),hash:N(r.slice(1)).path,state:s(t?.state,a)}}let o=new URL(i,this.origin),c=fa(this.rewrite,o),l=this.options.parseSearch(c.search),u=this.options.stringifySearch(l);return c.search=u,{href:c.href.replace(c.origin,``),publicHref:i,pathname:N(c.pathname).path,external:!!this.rewrite&&c.origin!==this.origin,searchStr:u,search:le(t?.search,l),hash:N(c.hash.slice(1)).path,state:s(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>te({base:e,to:t.includes(`//`)?D(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Na({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,c=Object.assign(Object.create(null),r.params),l=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),u=a?this.resolvePathWithBase(l,a):l,d=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?c:Object.assign(c,g(t.params,c)),f=this.routesByPath[w(u)],p;if(f)p=this.getRouteBranch(f);else if(u.includes(`$`))p=[];else{let e=this.getMatchedRoutes(u);p=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(p=[...p,this.options.notFoundRoute])}if(p.length&&v(d))for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(d,t(d))}catch{}}let m=e.leaveParams?u:N(O({path:u,params:d,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Ma(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=Pa({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=le(o,h);let _=this.options.stringifySearch(h),y=t.hash===!0?n.hash:t.hash?g(t.hash,n.hash):void 0,b=y?`#${y}`:``,x=t.state===!0?n.state:t.state?g(t.state,n.state):{};x=s(n.state,x);let S=`${m}${_}${b}`,C,T,E=!1;if(this.rewrite){let e=new URL(S,this.origin),t=pa(this.rewrite,e);C=e.href.replace(e.origin,``),t.origin===this.origin?T=t.pathname+t.search+t.hash:(T=t.href,E=!0)}else C=ee(S),T=C;return{publicHref:T,href:C,pathname:m,search:h,searchStr:_,state:x,hash:y??``,external:E,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=ce(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,g(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=o(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=w(this.latestLocation.href)===w(n.href),s=this.commitLocationPromise;if(this.commitLocationPromise=_(()=>{s?.resolve(),s=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=wa(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=fa(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(d(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.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(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Da.set(this.latestLocation,t):Da.delete(this.latestLocation);let n=this.latestLocation,r=Ea(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await aa({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){he(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):ue(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Ea(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&d(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=sa,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await aa({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(he(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});ue(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=I(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!o(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?o(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.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??zi,parseSearch:e.parseSearch??Ri,protocolAllowlist:e.protocolAllowlist??u}),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;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=oe(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){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:w(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let c=o?Ia(this.options.notFoundMode,a):void 0,l=Array(a.length),u=new Map;for(let e of this.stores.matchStores.values())e.routeId&&u.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:l,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return l}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=y(t),i={...e.search};for(let e of t)try{Object.assign(i,Ma(e.options.validateSearch,i))}catch{}let a=y(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{La(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},ka=class extends Error{},Aa=class extends Error{};function ja(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Ma(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new ka(`Async validation not supported`);if(n.issues)throw new ka(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 Na({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=w(e),a,o=E(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Pa({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Fa(n)(e,t,r??!1)}function Fa(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=Ma(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=g(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function Ia(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return fe}function La(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Ra(){try{return sessionStorage}catch{return}}var za=`tsr-scroll-restoration-v1_3`,Ba=Ra();function Va(){try{return JSON.parse(Ba?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Ha(){try{Ba?.setItem(za,JSON.stringify(Ua))}catch{}}var Ua=Va(),Wa=`data-scroll-restoration-id`,Ga=e=>e.state.__TSR_key||e.href;function Ka(e){let t=e.getAttribute(Wa);if(t)return`[${Wa}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var qa=!1,Ja=`window`;function Ya(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Xa(e){let t=[];for(let n of e){if(n===Ja)continue;let e=Ya(n);e&&t.push(e)}return t}function Za(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Ga,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(qa||!r.restoring))if(e.target===document)o(Ja,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=Ua[e]||={};for(let[e,n]of a)e===Ja?t[Ja]=n:e.isConnected&&(t[Ka(e)]=n)};n&&!r.restoration&&(r.restoration=!0,qa=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Ha()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=Ua[u];if(e){let t=Ua[l];for(let n in e){if(n===Ja){if(s)continue}else{let e=Ya(n);if(!e||s&&o&&(c??=Xa(o),c.includes(e)))continue}t||=Ua[l]={},t[n]??=e[n]}}}qa=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=Da.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?Ua[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===Ja){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=Ya(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=Xa(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{qa=!1}}))}function Qa(e,t){if(e)return typeof e==`string`?e:e[t]}function $a(e){return e?.scriptFormat??`module`}function eo(e,t,n){let r=to(t),i=Qa(n,`script`)??r.crossOrigin;return{...$a(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function to(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function no(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function ro(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var io=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=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=fe:this.parentRoute||x();let r=n?fe:t?.path;r&&r!==`/`&&(r=A(r));let i=t?.id||r,a=n?fe:k([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=k([`/`,a]));let o=a===`__root__`?`/`:k([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=w(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>me({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},ao=class extends io{constructor(e){super(e)}};function oo(e){let t=e.errorComponent??so;return(0,W.jsx)(G,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?U.createElement(t,{error:n,reset:r}):e.children})}var G=class extends U.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let 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 so({error:e}){let[t,n]=U.useState(!1);return(0,W.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,W.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,W.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,W.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,W.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,W.jsx)(`div`,{children:(0,W.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,W.jsx)(`code`,{children:e.message}):null})}):null]})}var K=(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))(K||{});function co({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function lo(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var uo=[],fo=0,{link:po,unlink:mo,propagate:ho,checkDirty:go,shallowPropagate:_o}=co({update(e){return e._update()},notify(e){uo[yo++]=e,e.flags&=~K.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=K.Mutable|K.Dirty,Co(e))}}),vo=0,yo=0,bo,xo=0;function So(e){try{++xo,e()}finally{--xo||wo()}}function Co(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=mo(n,e)}function wo(){if(!(xo>0)){for(;vo{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=bo,o=t?.compare??Object.is;if(n)bo=i,++fo,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=K.Mutable|K.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{bo=a,n&&(i.flags&=~K.RecursedCheck),Co(i)}}};return n?(i.flags=K.Mutable|K.Dirty,i.get=function(){let e=i.flags;if(e&K.Dirty||e&K.Pending&&go(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&_o(e)}}else e&K.Pending&&(i.flags=e&~K.Pending);return bo!==void 0&&po(i,bo,fo),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(ho(e),_o(e),wo())}},i}function Eo(e){let t=()=>{let t=bo;bo=n,++fo,n.depsTail=void 0,n.flags=K.Watching|K.RecursedCheck;try{return e()}finally{bo=t,n.flags&=~K.RecursedCheck,Co(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:K.Watching|K.RecursedCheck,notify(){let e=this.flags;e&K.Dirty||e&K.Pending&&go(this.deps,this)?t():this.flags=K.Watching},stop(){this.flags=K.None,this.depsTail=void 0,Co(this)}};return t(),n}var Do={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function Oo(e){let t=M(),n=U.useContext(e.from?pe:de),r=e.from??n,i=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,a=U.useRef(void 0);return F(i??Do,n=>{if((e.shouldThrow??!0)&&!n&&x(),n===void 0)return;let r=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=s(a.current,r);return a.current=e,e}return r})}function ko(e){return Oo({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Ao(e){let{select:t,...n}=e;return Oo({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function jo(e){return Oo({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Mo(e){return Oo({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function No(e){let t=M();return U.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Po(e){return Oo({...e,select:t=>e.select?e.select(t.context):t.context})}var Fo=class extends io{constructor(e){super(e),this.useMatch=e=>Oo({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Po({...e,from:this.id}),this.useSearch=e=>Mo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>jo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Ao({...e,from:this.id}),this.useLoaderData=e=>ko({...e,from:this.id}),this.useNavigate=()=>No({from:this.fullPath}),this.Link=U.forwardRef((e,t)=>(0,W.jsx)(wt,{ref:t,from:this.fullPath,...e}))}};function Io(e){return new Fo(e)}function Lo(){return e=>zo(e)}var Ro=class extends ao{constructor(e){super(e),this.useMatch=e=>Oo({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Po({...e,from:this.id}),this.useSearch=e=>Mo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>jo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Ao({...e,from:this.id}),this.useLoaderData=e=>ko({...e,from:this.id}),this.useNavigate=()=>No({from:this.fullPath}),this.Link=U.forwardRef((e,t)=>(0,W.jsx)(wt,{ref:t,from:this.fullPath,...e}))}};function zo(e){return new Ro(e)}function q(e){return new Bo(e,{silent:!0}).createRoute}var Bo=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Io(e);return t.isRoot=!1,t},this.silent=t?.silent}};function J(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,p(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(S)S(o());else throw o();return U.createElement(r,e)};return s.preload=o,s}function Vo(e){let t=M(),n=`not-found-${F(t.stores.location,e=>e.pathname)}-${F(t.stores.status,e=>e)}`;return(0,W.jsx)(oo,{getResetKey:()=>n,onCatch:(t,n)=>{if(ue(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(ue(t))return e.fallback?.(t);throw t},children:e.children})}function Ho(){return(0,W.jsx)(`p`,{children:`Not Found`})}function Uo(e){return(0,W.jsx)(W.Fragment,{children:e.children})}function Wo(e,t,n){return t.options.notFoundComponent?(0,W.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,W.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,W.jsx)(Ho,{})}var Go=U.memo(function({matchId:e}){let t=M(),n=t.stores.matchStores.get(e);n||x();let r=F(t.stores.loadedAt,e=>e),i=F(n,e=>e);return(0,W.jsx)(Ko,{router:t,matchId:e,resetKey:r,matchState:U.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Ko({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,W.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?U.Suspense:Uo,f=s?oo:Uo,p=l?Vo:Uo;return(0,W.jsxs)(i.isRoot?i.options.shellComponent??Uo:Uo,{children:[(0,W.jsx)(de.Provider,{value:t,children:(0,W.jsx)(d,{fallback:o,children:(0,W.jsx)(f,{getResetKey:()=>n,errorComponent:s||so,onCatch:(e,t)=>{if(ue(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,W.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return U.createElement(l,e)},children:u||r._displayPending?(0,W.jsx)(re,{fallback:o,children:(0,W.jsx)(Jo,{matchId:t})}):(0,W.jsx)(Jo,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(qo,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function qo({resetKey:e}){let t=M(),n=U.useRef(void 0);return C(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...Ea(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var Jo=U.memo(function({matchId:e}){let t=M(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||x();let i=F(r,e=>e),a=i.routeId,o=t.routesById[a],s=U.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=U.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,W.jsx)(e,{},s):(0,W.jsx)(Yo,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=_();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return ue(i.error)||x(),Wo(t,o,i.error);if(i.status===`redirected`)throw he(i.error)||x(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Yo=U.memo(function(){let e=M(),t=U.useContext(de),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=F(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=F(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,W.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||x(),Wo(e,a,void 0);if(!i)return null;let s=(0,W.jsx)(Go,{matchId:i});return n===`__root__`?(0,W.jsx)(U.Suspense,{fallback:o,children:s}):s});function Xo(){let e=M(),t=U.useRef({router:e,mounted:!1}),[n,r]=U.useState(!1),i=F(e.stores.isLoading,e=>e),a=F(e.stores.hasPending,e=>e),o=f(i),s=i||n||a,c=f(s),l=i||a,u=f(l);return e.startTransition=e=>{r(!0),U.startTransition(()=>{e(),r(!1)})},U.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return w(e.latestLocation.publicHref)!==w(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),C(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),C(()=>{o&&!i&&e.emit({type:`onLoad`,...Ea(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),C(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Ea(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),C(()=>{if(c&&!s){let t=Ea(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),So(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Zo(){let e=M(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,W.jsx)(t,{}):null,r=(0,W.jsxs)(typeof document<`u`&&e.ssr?Uo:U.Suspense,{fallback:n,children:[(0,W.jsx)(Xo,{}),(0,W.jsx)(Qo,{})]});return e.options.InnerWrap?(0,W.jsx)(e.options.InnerWrap,{children:r}):r}function Qo(){let e=M(),t=F(e.stores.firstId,e=>e),n=F(e.stores.loadedAt,e=>e),r=t?(0,W.jsx)(Go,{matchId:t}):null;return(0,W.jsx)(de.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,W.jsx)(oo,{getResetKey:()=>n,errorComponent:so,onCatch:void 0,children:r})})}var $o=e=>({createMutableStore:To,createReadonlyStore:To,batch:So}),es=e=>new ts(e),ts=class extends Oa{constructor(e){super(e,$o)}};function ns({router:e,children:t,...n}){v(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,W.jsx)(T.Provider,{value:e,children:t});return e.options.Wrap?(0,W.jsx)(e.options.Wrap,{children:r}):r}function rs({router:e,...t}){return(0,W.jsx)(ns,{router:e,...t,children:(0,W.jsx)(Zo,{})})}function is(e){let t=M(),n=(0,U.useRef)(void 0);return F(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=s(n.current,i);return n.current=e,e}return i})}function as(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function os(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,W.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,W.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,W.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,W.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,W.jsx)(ss,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function ss({attrs:e,children:t,preventScriptHoist:n}){M();let r=ae(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(U.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return as(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,as(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,W.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,W.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,W.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var cs=e=>{let t=M(),n=t.options.ssr?.nonce,r=F(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),o),i=U.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:h(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=F(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),o),s=F(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=ro(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Qa(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},o),c=F(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...eo(a,t,e),nonce:n}})})}),i},o),l=F(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),o),u=F(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),o),d=[];return no(d,i),d.push(...c),no(d,a),d.push(...s),no(d,l),no(d,u),d};function ls(e){let t=cs(e.assetCrossOrigin),n=M().options.ssr?.nonce;return(0,W.jsx)(W.Fragment,{children:t.map(e=>(0,U.createElement)(os,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var us=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ds=e(((e,t)=>{t.exports=us()})),fs=e((e=>{var t=ds(),n=r(),i=Dt();function a(e){var t=`https://react.dev/errors/`+e;if(1re||(e.current=ne[re],ne[re]=null,re--)}function F(e,t){re++,ne[re]=e.current,e.current=t}var oe=ie(null),se=ie(null),I=ie(null),ce=ie(null);function le(e,t){switch(F(I,t),F(se,e),F(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(oe),F(oe,e)}function ue(){ae(oe),ae(se),ae(I)}function de(e){e.memoizedState!==null&&F(ce,e);var t=oe.current,n=Wd(t,e.type);t!==n&&(F(se,e),F(oe,n))}function fe(e){se.current===e&&(ae(oe),ae(se)),ce.current===e&&(ae(ce),ep._currentValue=te)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1)`:-1i||c[r]!==l[i]){var u=` `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ge=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?he(n):``}function ve(e,t){switch(e.tag){case 26:case 27:case 5:return he(e.type);case 16:return he(`Lazy`);case 13:return e.child!==t&&t!==null?he(`Suspense Fallback`):he(`Suspense`);case 19:return he(`SuspenseList`);case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return he(`Activity`);default:return``}}function ye(e){try{var t=``,n=null;do t+=ve(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` -`+e.stack}}var be=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,Ce=t.unstable_shouldYield,we=t.unstable_requestPaint,Te=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function We(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ge(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Je(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Ye(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),un=!1;if(ln)try{var dn={};Object.defineProperty(dn,"passive",{get:function(){un=!0}}),window.addEventListener(`test`,dn,dn),window.removeEventListener(`test`,dn,dn)}catch{un=!1}var fn=null,pn=null,mn=null;function hn(){if(mn)return mn;var e,t=pn,n=t.length,r,i=`value`in fn?fn.value:fn.textContent,a=i.length;for(e=0;e=Gn),Jn=` `,Yn=!1;function Xn(e,t){switch(e){case`keyup`:return Un.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Zn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Qn=!1;function $n(e,t){switch(e){case`compositionend`:return Zn(t);case`keypress`:return t.which===32?(Yn=!0,Jn):null;case`textInput`:return e=t.data,e===Jn&&Yn?null:e;default:return null}}function er(e,t){if(Qn)return e===`compositionend`||!Wn&&Xn(e,t)?(e=hn(),mn=pn=fn=null,Qn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=br(n)}}function Sr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Tr=ln&&`documentMode`in document&&11>=document.documentMode,H=null,Er=null,Dr=null,Or=!1;function kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Or||H==null||H!==Lt(r)||(r=H,`selectionStart`in r&&wr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Dr&&yr(Dr,r)||(Dr=r,r=Dd(Er,`onSelect`),0>=o,i-=o,xi=1<<32-Le(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ai&&Ci(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Ai&&Ci(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ai&&Ci(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Ai&&Ci(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Sa(l)===r.type){n(e,r.sibling),c=i(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=ci(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=si(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=di(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Sa(o),b(e,r,o,c)}if(ee(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Oa(o),c);if(o.$$typeof===x)return b(e,r,Xi(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=li(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=ri(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Il&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ei(e),$r(e,null,n),t}return Xr(e,r,t,n),ei(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=sa;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Y&f)===f:(r&f)===f){f!==0&&f===oa&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Pa=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=N.T,s={};N.T=s,ks(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Os(e,t,ua(c,r),mu(e)):Os(e,t,r,mu(e))}catch(n){Os(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function vs(){}function ys(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=bs(e).queue;_s(e,i,t,te,n===null?vs:function(){return xs(e),n(r)})}function bs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xs(e){var t=bs(e);t.next===null&&(t=e.alternate.memoizedState),Os(e,t.next.queue,{},mu())}function Ss(){return Yi(ep)}function Cs(){return Eo().memoizedState}function ws(){return Eo().memoizedState}function Ts(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=La(n);var r=Ra(t,e,n);r!==null&&(gu(r,t,n),za(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function Es(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},As(e)?js(t,n):(n=Zr(e,t,n,r),n!==null&&(gu(n,e,r),Ms(n,t,r)))}function Ds(e,t,n){Os(e,t,n,mu())}function Os(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(As(e))js(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,vr(s,o))return Xr(e,t,i,0),Ll===null&&Yr(),!1}catch{}if(n=Zr(e,t,i,r),n!==null)return gu(n,e,r),Ms(n,t,r),!0}return!1}function ks(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},As(e)){if(t)throw Error(a(479))}else t=Zr(e,n,r,2),t!==null&&gu(t,e,2)}function As(e){var t=e.alternate;return e===G||t!==null&&t===G}function js(e,t){lo=co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ms(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Ns={readContext:Yi,use:ko,useCallback:go,useContext:go,useEffect:go,useImperativeHandle:go,useLayoutEffect:go,useInsertionEffect:go,useMemo:go,useReducer:go,useRef:go,useState:go,useDebugValue:go,useDeferredValue:go,useTransition:go,useSyncExternalStore:go,useId:go,useHostTransitionStatus:go,useFormState:go,useActionState:go,useOptimistic:go,useMemoCache:go,useCacheRefresh:go};Ns.useEffectEvent=go;var Ps={readContext:Yi,use:ko,useCallback:function(e,t){return To().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=To();t=t===void 0?null:t;var r=e();if(uo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=To();if(n!==void 0){var i=n(t);if(uo){Ie(!0);try{n(t)}finally{Ie(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Es.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=To();return e={current:e},t.memoizedState=e},useState:function(e){e=Bo(e);var t=e.queue,n=Ds.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:fs,useDeferredValue:function(e,t){return hs(To(),e,t)},useTransition:function(){var e=Bo(!1);return e=_s.bind(null,G,e.queue,!0,!1),To().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=G,i=To();if(Ai){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Ll===null)throw Error(a(349));Y&127||Io(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,rs(Ro.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Lo.bind(null,r,o,n,t),null),n},useId:function(){var e=To(),t=Ll.identifierPrefix;if(Ai){var n=Si,r=xi;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=fo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[ot]=t,o[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Id(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Oc(t)}}return Nc(t),kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Oc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=I.current,Fi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Oi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Mi(t,!0)}else e=Hd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Nc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Fi(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[ot]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nc(t),e=!1}else n=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(a(558))}return Nc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Fi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[ot]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nc(t),i=!1}else i=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),jc(t,t.updateQueue),Nc(t),null);case 4:return ue(),e===null&&Cd(t.stateNode.containerInfo),Nc(t),null;case 10:return Ui(t.type),Nc(t),null;case 19:if(ae(io),r=t.memoizedState,r===null)return Nc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Mc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Mc(r,!1),e=o.updateQueue,t.updateQueue=e,jc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)oi(n,e),n=n.sibling;return F(io,io.current&1|2),Ai&&Ci(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Te()>nu&&(t.flags|=128,i=!0,Mc(r,!1),t.lanes=4194304)}else{if(!i)if(e=ao(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,jc(t,e),Mc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ai)return Nc(t),null}else 2*Te()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Mc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Nc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Te(),e.sibling=null,n=io.current,F(io,i?n&1|2:n&1),Ai&&Ci(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Nc(t),t.subtreeFlags&6&&(t.flags|=8192)):Nc(t),n=t.updateQueue,n!==null&&jc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ae(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),Nc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Fc(e,t){switch(Ei(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),ue(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(a(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(io),null;case 4:return ue(),null;case 10:return Ui(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&ae(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function Ic(e,t){switch(Ei(t),t.tag){case 3:Ui(ta),ue();break;case 26:case 27:case 5:fe(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:ae(io);break;case 10:Ui(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&ae(fa);break;case 24:Ui(ta)}}function Lc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function Rc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function zc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Ku(e,e.return,t)}}}function Bc(e,t,n){n.props=Vs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Vc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Hc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}function Uc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Wc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[st]=t}catch(t){Ku(e,e.return,t)}}function Gc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Kc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Gc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$t));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Yc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[ot]=e,t[st]=n}catch(t){Ku(e,e.return,t)}}var Xc=!1,Zc=!1,Qc=!1,$c=typeof WeakSet==`function`?WeakSet:Set,el=null;function tl(e,t){if(e=e.containerInfo,Bd=cp,e=Cr(e),wr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},cp=!1,el=t;el!==null;)if(t=el,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,el=e;else for(;el!==null;){switch(t=el,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Id(o,r,n),o[ot]=e,yt(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=xr(s,h),v=xr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,N.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,Il&6)throw Error(a(331));var c=Il;if(Il|=4,jl(o.current),Cl(o,o.current,s,n),Il=c,ad(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{P.p=i,N.T=r,Hu(e,t)}}function Gu(e,t,n){t=pi(n,t),t=qs(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Xe(e,2),id(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=pi(n,e),n=Js(2),r=Ra(t,n,2),r!==null&&(Ys(n,r,t,e),Xe(r,2),id(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Fl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ll===e&&(Y&n)===n&&(Gl===4||Gl===3&&(Y&62914560)===Y&&300>Te()-eu?!(Il&2)&&Cu(e,0):Jl|=n,Xl===Y&&(Xl=0)),id(e)}function Yu(e,t){t===0&&(t=Je()),e=Qr(e,t),e!==null&&(Xe(e,t),id(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return xe(e,t)}var $u=null,X=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==X&&e.next===null&&(X===null?$u=X=e:X=X.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Le(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=Y,a=Ge(r,r===Ll?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(r,a)||(n=!0,ud(r,a));r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&qd()&&(e=rd);for(var t=Te(),n=null,r=$u;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(X=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}au!==0&&au!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Rd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),yt(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Id(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Id(r,`link`,e),yt(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=vt(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);yt(c),Id(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=vt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),yt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=vt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),yt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var i=(i=I.current)?vf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Mf(n.href),n=vt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Mf(n.href);var o=vt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=If(n),n=vt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Mf(e){return`href="`+zt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),yt(t),e.head.appendChild(t))}function If(e){return`[src="`+zt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),Id(r,`style`,i),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Mf(n.href);var o=e.querySelector(Nf(i));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Pf(n),(i=gf.get(i))&&Bf(r,i),o=(e.ownerDocument||e).createElement(`link`),yt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(i=e.querySelector(Lf(o)))?(t.instance=i,yt(i),i):(r=n,(i=gf.get(o))&&(r=p({},n),Vf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),yt(i),Id(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,zf(r,n.precedence,e));return t.instance}function zf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Gf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=fs()}))(),1),ms=i(),hs=(0,U.createContext)(void 0);function gs(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function _s(e){let t=(0,ms.c)(14),{children:n,defaultTheme:r,storageKey:i}=e,a=r===void 0?`dark`:r,o=i===void 0?`ui-theme`:i,s;t[0]!==a||t[1]!==o?(s=()=>gs(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,U.useState)(s),u,d;t[3]===c?(u=t[4],d=t[5]):(u=()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),c===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(c)},d=[c],t[3]=c,t[4]=u,t[5]=d),(0,U.useEffect)(u,d);let f;t[6]===o?f=t[7]:(f=e=>{try{localStorage.setItem(o,e)}catch{}l(e)},t[6]=o,t[7]=f);let p;t[8]!==f||t[9]!==c?(p={theme:c,setTheme:f},t[8]=f,t[9]=c,t[10]=p):p=t[10];let m=p,h;return t[11]!==n||t[12]!==m?(h=(0,W.jsx)(hs.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function vs(){let e=(0,U.useContext)(hs);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function ys(e){return Ft(e.defaultTagName??`div`,e,e)}var bs=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),xs=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Ss=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Cs=e=>{let t=Ss(e);return t.charAt(0).toUpperCase()+t.slice(1)},ws={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`},Ts=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Es=(0,U.createContext)({}),Ds=()=>(0,U.useContext)(Es),Os=(0,U.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=Ds()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,U.createElement)(`svg`,{ref:c,...ws,width:t??l??ws.width,height:t??l??ws.height,stroke:e??f,strokeWidth:m,className:bs(`lucide`,p,i),...!a&&!Ts(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,U.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),ks=(e,t)=>{let n=(0,U.forwardRef)(({className:n,...r},i)=>(0,U.createElement)(Os,{ref:i,iconNode:t,className:bs(`lucide-${xs(Cs(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Cs(e),n},As=ks(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),js=ks(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),Ms=ks(`boxes`,[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),Ns=ks(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),Ps=ks(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Fs=ks(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),Is=ks(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Ls=ks(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Rs=ks(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),zs=ks(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),Bs=ks(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Vs=ks(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),Hs=ks(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),Us=ks(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),Ws=ks(`log-out`,[[`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`}]]),Gs=ks(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),Ks=ks(`moon`,[[`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`}]]),qs=ks(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),Js=ks(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Ys=ks(`router`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]),Xs=ks(`route`,[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),Zs=ks(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Qs=ks(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),$s=ks(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),ec=ks(`sun`,[[`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`}]]),tc=ks(`user-cog`,[[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m14.305 16.53.923-.382`,key:`1itpsq`}],[`path`,{d:`m15.228 13.852-.923-.383`,key:`eplpkm`}],[`path`,{d:`m16.852 12.228-.383-.923`,key:`13v3q0`}],[`path`,{d:`m16.852 17.772-.383.924`,key:`1i8mnm`}],[`path`,{d:`m19.148 12.228.383-.923`,key:`1q8j1v`}],[`path`,{d:`m19.53 18.696-.382-.924`,key:`vk1qj3`}],[`path`,{d:`m20.772 13.852.924-.383`,key:`n880s0`}],[`path`,{d:`m20.772 16.148.924.383`,key:`1g6xey`}],[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),nc=ks(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),rc=ks(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]),ic=ks(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),ac=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}({}),oc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},sc={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},cc={disabled:!1,...sc},lc={valid(e){return e===null?null:e?{[ac.valid]:``}:{[ac.invalid]:``}}},uc={invalid:void 0,name:void 0,validityData:{state:oc,errors:[],error:``,value:``,initialValue:null},setValidityData:It,disabled:void 0,touched:sc.touched,setTouched:It,dirty:sc.dirty,setDirty:It,filled:sc.filled,setFilled:It,focused:sc.focused,setFocused:It,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:cc,markedDirtyRef:{current:!1},registerFieldControl:It,validation:{getValidationProps:(e=jt)=>e,getInputValidationProps:(e=jt)=>e,inputRef:{current:null},commit:async()=>{}}},dc=U.createContext(uc);function fc(e=!0){let t=U.useContext(dc);if(t.setValidityData===It&&!e)throw Error(zt(28));return t}var pc=U.createContext({controlId:void 0,registerControlId:It,labelId:void 0,setLabelId:It,messageIds:[],setMessageIds:It,getDescriptionProps:e=>e});function mc(){return U.useContext(pc)}function hc(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=mc(),o=dr(t),s=n?i:void 0,c=Pt(()=>Symbol(`labelable-control`)),l=U.useRef(!1),u=U.useRef(t!=null),d=ir(()=>{!l.current||a===It||(l.current=!1,a(c.current,void 0))});return B(()=>{if(a===It)return;let e;if(n){let n=r?.current;e=V(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),U.useEffect(()=>d,[d]),i??o}var gc=typeof navigator<`u`,_c=Ec(),vc=Oc(),yc=Dc(),bc=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),xc=_c.platform===`MacIntel`&&_c.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(_c.platform);gc&&/firefox/i.test(yc);var Sc=gc&&/apple/i.test(navigator.vendor);gc&&/Edg/i.test(yc);var Cc=gc&&/android/i.test(vc)||/android/i.test(yc),wc=gc&&vc.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,Tc=yc.includes(`jsdom/`);function Ec(){if(!gc)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Dc(){if(!gc)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function Oc(){if(!gc)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var kc=`data-base-ui-focusable`,Ac=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,jc=`ArrowLeft`,Mc=`ArrowRight`,Nc=`ArrowUp`,Pc=`ArrowDown`;function Fc(e,t){if(!V(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(H(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Ic(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Lc(e){return e.matches(`html,body`)}function Rc(e){return Jn(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function zc(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Ac}`)!=null}function Bc(e){return e?e.getAttribute(`role`)===`combobox`&&Rc(e):!1}function Vc(e){if(!e||Tc)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Hc(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Uc(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Uc(e,t.id,n)])}function Wc(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Gc(e){e.preventDefault(),e.stopPropagation()}function Kc(e){return`nativeEvent`in e}function qc(e){return e.pointerType===``&&e.isTrusted?!0:Cc&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Jc(e){return Tc?!1:!Cc&&e.width===0&&e.height===0||Cc&&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 Yc(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Xc(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Zc=[`top`,`right`,`bottom`,`left`],Qc=Math.min,$c=Math.max,el=Math.round,tl=Math.floor,nl=e=>({x:e,y:e}),rl={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function il(e,t,n){return $c(e,Qc(t,n))}function al(e,t){return typeof e==`function`?e(t):e}function ol(e){return e.split(`-`)[0]}function sl(e){return e.split(`-`)[1]}function cl(e){return e===`x`?`y`:`x`}function ll(e){return e===`y`?`height`:`width`}function ul(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function dl(e){return cl(ul(e))}function fl(e,t,n){n===void 0&&(n=!1);let r=sl(e),i=dl(e),a=ll(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=xl(o)),[o,xl(o)]}function pl(e){let t=xl(e);return[ml(e),t,ml(t)]}function ml(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var hl=[`left`,`right`],gl=[`right`,`left`],_l=[`top`,`bottom`],vl=[`bottom`,`top`];function yl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?gl:hl:t?hl:gl;case`left`:case`right`:return t?_l:vl;default:return[]}}function bl(e,t,n,r){let i=sl(e),a=yl(ol(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ml)))),a}function xl(e){let t=ol(e);return rl[t]+e.slice(t.length)}function Sl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Sl(e)}function wl(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Tl(e,t,n){return Math.floor(e/t)!==n}function El(e,t){return t<0||t>=e.length}function Dl(e,t){return kl(e.current,{disabledIndices:t})}function Ol(e,t){return kl(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function kl(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Pl(e,a,r));return a}function Al(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,u,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Pl(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=tl(l/y)+1;for(let t=u-n+i,c=0;cl){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Pl(e,r,s))return r}};d&&Gc(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=kl(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-ye?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=kl(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}El(e,f)&&(f=u)}if(n===`both`){let n=tl(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Gc(t),u%o===o-1?r&&(f=kl(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=kl(e,{startingIndex:u,disabledIndices:s}),r&&Tl(f,o,n)&&(f=kl(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Tl(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Gc(t),u%o===0?r&&(f=kl(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=kl(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Tl(f,o,n)&&(f=kl(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Tl(f,o,n)&&(f=u));let c=tl(l/o)===n;El(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:kl(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function jl(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;rr[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function Ml(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function Nl(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Pl(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Il(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Fl(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Il(e,t=e?$n(e):null){return!e||!e.isConnected||!t||Fl(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Ll=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Rl(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return cr(n)?n.host:null}function Y(e){for(let t of Array.from(e.children))if(nr(t)===`summary`)return t;return null}function zl(e,t){let n=Y(t);return!!n&&(e===n||H(n,e))}function Bl(e){let t=e?nr(e):``;return e!=null&&e.matches(Ll)&&(t!==`summary`||e.parentElement!=null&&nr(e.parentElement)===`details`&&Y(e.parentElement)===e)&&(t!==`details`||Y(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Vl(e){if(!Bl(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Rl(t)){let n=t!==e,r=nr(t)===`slot`;if(t.hasAttribute(`inert`)||n&&nr(t)===`details`&&!t.open&&!zl(e,t)||t.hasAttribute(`hidden`)||!r&&!Hl(t,n))return!1}return!0}function Hl(e,t){let n=$n(e);return t?n.display!==`none`:Il(e,n)}function Ul(e){let t=e.tabIndex;if(t<0){let t=nr(e);if(t===`details`||t===`audio`||t===`video`||Jn(e)&&e.isContentEditable)return 0}return t}function Wl(e){if(nr(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Gl(e,t){let n=Wl(e);if(!n)return!0;let r=t.find(e=>{let t=Wl(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Wl(e);return t?.name===n.name&&t.form===n.form})===n}function Kl(e){if(Jn(e)&&nr(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Jn(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function ql(e,t){Kl(e).forEach(e=>{Bl(e)&&t.push(e),ql(e,t)})}function Jl(e,t,n){Kl(e).forEach(e=>{Jn(e)&&e.matches(t)&&n.push(e),Jl(e,t,n)})}function Yl(e){return Vl(e)&&Ul(e)>=0}function Xl(e){let t=[];return ql(e,t),t.filter(Vl)}function Zl(e){let t=Xl(e);return t.filter(e=>Ul(e)>=0&&Gl(e,t))}function Ql(e,t){let n=Zl(e),r=n.length;if(r===0)return;let i=wr(Tr(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function $l(e){return Ql(Tr(e).body,1)||e}function eu(e){return Ql(Tr(e).body,-1)||e}function tu(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!H(n,r)}function nu(e){Zl(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function ru(e){let t=[];Jl(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var iu=[];function au(e){U.useEffect(e,iu)}var ou=0,su=class e{static create(){return new e}currentId=ou;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=ou,t()},e)}isStarted(){return this.currentId!==ou}clear=()=>{this.currentId!==ou&&(clearTimeout(this.currentId),this.currentId=ou)};disposeEffect=()=>this.clear};function cu(){let e=Pt(su.create).current;return au(e.disposeEffect),e}var lu=null;globalThis.requestAnimationFrame;var uu=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},du=class e{static create(){return new e}static request(e){return uu.request(e)}static cancel(e){return uu.cancel(e)}currentId=lu;request(e){this.cancel(),this.currentId=uu.request(()=>{this.currentId=lu,e()})}cancel=()=>{this.currentId!==lu&&(uu.cancel(this.currentId),this.currentId=lu)};disposeEffect=()=>this.cancel};function fu(){let e=Pt(du.create).current;return au(e.disposeEffect),e}function pu(e){return e==null?e:`current`in e?e.current:e}var mu=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),hu={[mu.startingStyle]:``},gu={[mu.endingStyle]:``},_u={transitionStatus(e){return e===`starting`?hu:e===`ending`?gu:null}},vu=n(Dt());function yu(e,t=!1,n=!0){let r=fu();return ir((i,a=null)=>{r.cancel();let o=pu(e);if(o==null)return;let s=o,c=()=>{vu.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=mu.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function bu(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=ir(i),o=yu(r,n,!1);U.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function xu(e,t=!1,n=!1){let[r,i]=U.useState(e&&t?`idle`:void 0),[a,o]=U.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),B(()=>{if(!e&&a&&r!==`ending`&&n){let e=du.request(()=>{i(`ending`)});return()=>{du.cancel(e)}}},[e,a,r,n]),B(()=>{if(!e||t)return;let n=du.request(()=>{i(void 0)});return()=>{du.cancel(n)}},[t,e]),B(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=du.request(()=>{i(`idle`)});return()=>{du.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function Su({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=U.useRef(e!==void 0),[a,o]=U.useState(t);return[i?e:a,U.useCallback(e=>{i||o(e)},[])]}function Cu(e,t,n,r,i=!0){let{registerFieldControl:a}=fc(),o=U.useRef(null);o.current||=Symbol(),B(()=>{let s=o.current;if(!(!s||!i))return a(s,{controlRef:e,getValue:r,id:t,value:n}),()=>{a(s,void 0)}},[e,i,r,t,a,n])}var wu=U.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFocused:y,setFilled:b,validationMode:x,validation:S}=fc(),C=h||s,w=m??a,T={...p,disabled:C},{labelId:E}=mc(),D=hc({id:i});B(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let O=U.useRef(null);B(()=>{u&&O.current===wr(Tr(O.current))&&y(!0)},[u,y]);let[k]=Su({controlled:o,default:l,name:`FieldControl`,state:`value`}),A=o!==void 0,j=A?k:void 0,M=ir(()=>S.inputRef.current?.value);return Cu(S.inputRef,D,j,M),Ft(`input`,e,{ref:[t,O],state:T,props:[{id:D,disabled:C,name:w,ref:S.inputRef,"aria-labelledby":E,autoFocus:u,...A?{value:j}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Cr(mr,e.nativeEvent)),_(t!==v.initialValue),b(t!==``)},onFocus(){y(!0)},onBlur(e){g(!0),y(!1),x===`onBlur`&&S.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),S.commit(e.currentTarget.value))}},S.getInputValidationProps(),f],stateAttributesMapping:lc})}),Tu=U.forwardRef(function(e,t){return(0,W.jsx)(wu,{ref:t,...e})});function Eu(e){let t=(0,ms.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=un(`h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground autofill:[-webkit-text-fill-color:var(--color-foreground)] autofill:[transition:background-color_9999s_ease-in-out_0s] focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,W.jsx)(Tu,{className:a,"data-slot":`input`,type:i,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var Du=U.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return Ft(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function Ou(e){let t=(0,ms.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=un(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,W.jsx)(Du,{className:o,"data-slot":`separator`,orientation:a,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var ku=U.createContext(!1),Au=U.createContext(void 0);function ju(e){let t=U.useContext(Au);if(e===!1&&t===void 0)throw Error(zt(27));return t}var Mu=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=mu.startingStyle]=`startingStyle`,e[e.endingStyle=mu.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Nu=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),Pu={[Nu.popupOpen]:``},Fu={[Nu.popupOpen]:``,[Nu.pressed]:``},Iu={[Mu.open]:``},Lu={[Mu.closed]:``},Ru={[Mu.anchorHidden]:``},zu={open(e){return e?Pu:null}},Bu={open(e){return e?Fu:null}},Vu={open(e){return e?Iu:Lu},anchorHidden(e){return e?Ru:null}},Hu={...Vu,..._u},Uu=U.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=ju(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Ft(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Hu,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Wu=U.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=ju(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=rr({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Cr(xr,e.nativeEvent))}return Ft(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Gu=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=ju(),c=dr(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Ft(`p`,e,{ref:t,props:[{id:c},o]})});function Ku(e,t){return t!=null&&!Yc(t)?0:typeof e==`function`?e():e}function qu(e,t,n){let r=Ku(e,n);return typeof r==`number`?r:r?.[t]}function Ju(e){return typeof e==`function`?e():e}function Yu(e,t){return t||e===`click`||e===`mousedown`}function Xu(e){return e?.includes(`mouse`)&&e!==`mousedown`}var Zu=U.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new su,currentIdRef:{current:null},currentContextRef:{current:null}});function Qu(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=U.useRef(n),a=U.useRef(n),o=U.useRef(null),s=U.useRef(null),c=cu();return(0,W.jsx)(Zu.Provider,{value:U.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function $u(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=U.useContext(Zu),[f,p]=U.useState(!1);return B(()=>{function e(){p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),B(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:qu(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Cr(mr))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),B(()=>()=>{l.current=null},[l]),U.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function X(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function ed(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var rd={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},id={...rd,position:`fixed`,top:0,left:0},ad={...rd,position:`absolute`},od=U.forwardRef(function(e,t){let[n,r]=U.useState();B(()=>{Sc&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,W.jsx)(`span`,{...e,ref:t,style:id,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function sd(e){return`data-base-ui-${e}`}var cd=0;function ld(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(cd);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),It;let o=requestAnimationFrame(a);return cd=o,()=>{cd===o&&(cancelAnimationFrame(o),cd=0)}}var ud={inert:new WeakMap,"aria-hidden":new WeakMap},dd=`data-base-ui-inert`,fd={inert:new WeakSet,"aria-hidden":new WeakSet},pd=new WeakMap,md=0;function hd(e){return fd[e]}function gd(e){return e?cr(e)?e.host:gd(e.parentNode):null}var _d=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=gd(t);return e.contains(n)?n:null}).filter(e=>e!=null),vd=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},yd=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{nr(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function bd(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=_d(t,e),u=i?_d(t,a):[],d=new Set(u),f=i?yd(t,vd(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=ud[o],n=hd(o);c=n,s=e;let r=_d(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);yd(t,vd(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(pd.get(e)||0)+1;pd.set(e,t),m.push(e),t===1&&e.setAttribute(dd,``)}),md+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(pd.get(e)||0)-1;pd.set(e,t),t||e.removeAttribute(dd)}),--md,md||(ud.inert=new WeakMap,ud[`aria-hidden`]=new WeakMap,fd.inert=new WeakSet,fd[`aria-hidden`]=new WeakSet,pd=new WeakMap)}}function Z(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=Tr(e[0]).body;return bd(e,o,n,r,{mark:i,markerIgnoreElements:a})}var xd={style:{transition:`none`}},Sd={fallbackAxisSide:`none`},Cd={fallbackAxisSide:`end`},wd={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Td=U.createContext(null),Ed=()=>U.useContext(Td),Dd=sd(`portal`);function Od(e={}){let{ref:t,container:n,componentProps:r=jt,elementProps:i}=e,a=ur(),o=Ed()?.portalNode,[s,c]=U.useState(null),[l,u]=U.useState(null),d=ir(e=>{e!==null&&u(e)}),f=U.useRef(null);B(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(Gn(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=Ft(`div`,r,{ref:[t,d],props:[{id:a,[Dd]:``},i]});return{portalNode:l,portalSubtree:s&&p?vu.createPortal(p,s):null}}var kd=U.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=Od({container:o,ref:t,componentProps:e,elementProps:c}),d=U.useRef(null),f=U.useRef(null),p=U.useRef(null),m=U.useRef(null),[h,g]=U.useState(null),_=U.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;U.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&tu(e)&&(e.type===`focusin`?_.current&&=(ru(l),!1):(nu(l),_.current=!0))}return ed(X(l,`focusin`,e,!0),X(l,`focusout`,e,!0))},[l,v]),U.useEffect(()=>{!l||y!==!1||(ru(l),_.current=!1)},[y,l]);let x=U.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,W.jsxs)(U.Fragment,{children:[u,(0,W.jsxs)(Td.Provider,{value:x,children:[b&&l&&(0,W.jsx)(od,{"data-type":`outside`,ref:d,onFocus:e=>{tu(e,l)?p.current?.focus():eu(h?h.domReference:null)?.focus()}}),b&&l&&(0,W.jsx)(`span`,{"aria-owns":l.id,style:wd}),l&&vu.createPortal(a,l),b&&l&&(0,W.jsx)(od,{"data-type":`outside`,ref:f,onFocus:e=>{tu(e,l)?m.current?.focus():($l(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Cr(`focus-out`,e.nativeEvent)))}})]})]})});function Ad(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(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)}}}var jd=U.createContext(null),Md=U.createContext(null),Nd=()=>U.useContext(jd)?.id||null,Pd=e=>{let t=U.useContext(Md);return e??t};function Fd(e,t){let n=qn(pr(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`):``}var Id=20,Ld=[];function Rd(){Ld=Ld.filter(e=>e.deref()?.isConnected)}function zd(e){Rd(),e&&nr(e)!==`body`&&(Ld.push(new WeakRef(e)),Ld.length>Id&&(Ld=Ld.slice(-20)))}function Bd(){return Rd(),Ld[Ld.length-1]?.deref()}function Vd(e){return e?Yl(e)?e:Zl(e)[0]||e:null}function Hd(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=Xl(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Yl(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Ud(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=ir(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Bc(_)&&S,w=U.useRef([`content`]),T=td(i),E=td(a),D=td(l),O=Pd(p),k=Ed(),A=U.useRef(!1),j=U.useRef(!1),M=U.useRef(!1),ee=U.useRef(null),N=U.useRef(``),P=U.useRef(``),te=U.useRef(null),ne=U.useRef(null),re=Mt(te,f,k?.beforeInsideRef),ie=Mt(ne,k?.afterInsideRef),ae=cu(),F=cu(),oe=fu(),se=k!=null,I=Hc(v),ce=ir((e=I)=>e?Zl(e):[]),le=ir(()=>m?.().filter(e=>e!=null)??[]);U.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&H(I,wr(Tr(I)))&&ce().length===0&&!C&&Gc(e)}return X(Tr(I),`keydown`,e)},[r,I,s,C,ce]),U.useEffect(()=>{if(r||!g)return;let e=Tr(I);function t(){M.current=!1}function n(e){let t=pr(e),n=le();M.current=!(H(v,t)||H(_,t)||H(k?.portalNode,t)||n.some(e=>e===t||H(e,t))),P.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(j.current=!0)}function i(){P.current=`keyboard`}return ed(X(e,`pointerdown`,n,!0),X(e,`pointerup`,t,!0),X(e,`pointercancel`,t,!0),X(e,`keydown`,i,!0))},[r,v,_,I,g,k,le]),U.useEffect(()=>{if(r||!c)return;let e=Tr(I);function t(){j.current=!0,F.start(0,()=>{j.current=!1})}function n(e){let t=pr(e);Yl(t)&&(ee.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=pr(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=le(),f=n?.hasAttribute(sd(`focus-guard`))&&[te.current,ne.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,pu(d),pu(u)].includes(n),p=!(H(_,n)||H(v,n)||H(n,v)||H(k?.portalNode,n)||l.some(e=>e===n||H(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>H(e,n))||f||O&&(Uc(O.nodesRef.current,a).find(e=>H(e.context?.elements.floating,n)||H(e.context?.elements.domReference,n))||Wc(O.nodesRef.current,a).find(e=>[e.context?.elements.floating,Hc(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&I&&Hd(I,w),o&&r!==_&&!Il(i)&&wr(e)===e.body){if(Jn(I)&&(I.focus(),o===`popup`)){oe.request(()=>{I.focus()});return}let e=ce(),t=ee.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||I;Jn(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!j.current&&(C||n!==Bd())&&(A.current=!0,h.setOpen(!1,Cr(yr,t)))})}function a(){M.current||(b.current.insideReactTree=!0,ae.start(0,()=>{b.current.insideReactTree=!1}))}let l=Jn(_)?_:null;if(!(!v&&!l))return ed(l&&X(l,`focusout`,i),l&&X(l,`pointerdown`,t),v&&X(v,`focusin`,n),v&&X(v,`focusout`,i),v&&k&&X(v,`focusout`,a,!0))},[r,_,v,I,s,O,k,h,c,o,ce,C,x,w,b,ae,F,oe,u,d,le]),U.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${sd(`portal`)}]`)||[]),t=(O?Wc(O.nodesRef.current,x()):[]).find(e=>Bc(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Z([v,...e,te.current,ne.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...le(),t,pu(d),pu(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=Z([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,k,C,O,x,u,d,le]),B(()=>{if(!g||r||!Jn(I))return;let e=Tr(I),t=wr(e);queueMicrotask(()=>{let n=T.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||H(I,t))return;let i=null,a=()=>(i??=ce(I),i[0]||I),o;o=r===!0||r===null?a():pu(r),o||=a();let s=H(I,wr(e));ld(o,{preventScroll:o===I,shouldFocus(){if(s)return!0;let t=wr(e);return!(t!==o&&H(I,t))}})})},[r,g,I,ce,T,D]),B(()=>{if(r||!I)return;let e=Tr(I);zd(wr(e));function t(e){if(e.open||(N.current=Fd(e.nativeEvent,P.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(A.current=!0),e.reason===`outside-press`)if(e.nested)A.current=!1;else if(qc(e.nativeEvent)||Jc(e.nativeEvent))A.current=!1;else{let e=!1;Tr(I).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}y.on(`openchange`,t);function n(){let e=E.current,t=typeof e==`function`?e(N.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`)return _?.isConnected?_:Bd()||null;let n=_?.isConnected?_:Bd();return pu(t)||n||null}return()=>{y.off(`openchange`,t);let r=wr(e),i=le(),a=H(v,r)||i.some(e=>e===r||H(e,r))||O&&Uc(O.nodesRef.current,x(),!1).some(e=>H(e.context?.elements.floating,r)),o=E.current,s=n();queueMicrotask(()=>{let t=Vd(s),n=typeof o!=`boolean`;o&&!A.current&&Jn(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),A.current=!1})}},[r,v,I,E,y,O,_,x,le]),B(()=>{if(!bc||g||!v)return;let e=wr(Tr(v));!Jn(e)||!Rc(e)||H(v,e)&&e.blur()},[g,v]),B(()=>{if(!(r||!k))return k.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,s,g,h,c,_]),B(()=>{if(!(r||!I))return Hd(I,w),()=>{queueMicrotask(Rd)}},[r,I,w]);let ue=!r&&(s?!C:!0)&&(se||s);return(0,W.jsxs)(U.Fragment,{children:[ue&&(0,W.jsx)(od,{"data-type":`inside`,ref:re,onFocus:e=>{if(s){let e=ce();ld(e[e.length-1])}else k?.portalNode&&(A.current=!1,tu(e,k.portalNode)?$l(_)?.focus():pu(d??k.beforeOutsideRef)?.focus())}}),n,ue&&(0,W.jsx)(od,{"data-type":`inside`,ref:ie,onFocus:e=>{s?ld(ce()[0]):k?.portalNode&&(c&&(A.current=!0),tu(e,k.portalNode)?eu(_)?.focus():pu(u??k.afterOutsideRef)?.focus())}})]})}function Wd(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Gd(e){return e!=null&&e.clientX!=null}function Kd(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=U.useRef(!1),u=U.useRef(null),[d,f]=U.useState(),[p,m]=U.useState([]),h=ir(e=>{i.set(`positionReference`,e)}),g=ir((e,t,n)=>{l.current||c.current.openEvent&&!Gd(c.current.openEvent)||i.set(`positionReference`,Wd(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=ir(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=Yc(d)?o:a;U.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=qn(o);function r(t){H(o,pr(t))?e():g(t.clientX,t.clientY)}return!c.current.openEvent||Gd(c.current.openEvent)?u.current=X(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),U.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),U.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),U.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=U.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return U.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var qd={intentional:`onClick`,sloppy:`onPointerDown`};function Jd(){return!1}function Yd(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Xd(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Jd,referencePressEvent:s=`sloppy`,bubbles:c,externalTree:l}=t,u=`rootStore`in e?e.rootStore:e,d=u.useState(`open`),f=u.useState(`floatingElement`),{dataRef:p}=u.context,m=Pd(l),h=ir(typeof i==`function`?i:()=>!1),g=typeof i==`function`?h:i,_=g!==!1,v=ir(()=>a),{escapeKey:y,outsidePress:b}=Yd(c),x=U.useRef(!1),S=U.useRef(!1),C=U.useRef(!1),w=U.useRef(!1),T=U.useRef(``),E=U.useRef(null),D=cu(),O=cu(),k=ir(()=>{O.clear(),p.current.insideReactTree=!1}),A=ir(e=>{let t=p.current.floatingContext?.nodeId;return(m?Uc(m.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=ir(e=>Ic(e,u.select(`floatingElement`))||Ic(e,u.select(`domReferenceElement`))),M=ir(e=>{o()&&u.setOpen(!1,Cr(hr,e.nativeEvent))}),ee=ir(e=>{if(!d||!n||!r||e.key!==`Escape`||w.current||!y&&A(`__escapeKeyBubbles`))return;let t=Cr(fr,Kc(e)?e.nativeEvent:e);u.setOpen(!1,t),t.isCanceled||e.preventDefault(),!y&&!t.isPropagationAllowed&&e.stopPropagation()}),N=ir(()=>{p.current.insideReactTree=!0,O.start(0,k)}),P=ir(e=>{if(!d||!n||e.button!==0)return;let t=pr(e.nativeEvent);H(u.select(`floatingElement`),t)&&(x.current||(x.current=!0,S.current=!1))}),te=ir(e=>{!d||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});U.useEffect(()=>{if(!d||!n)return;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=b;let e=new su,t=new su;function i(){e.clear(),w.current=!0}function a(){e.start(Un()?5:0,()=>{w.current=!1})}function o(){C.current=!0,t.start(0,()=>{C.current=!1})}function s(){x.current=!1,S.current=!1}function c(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=v(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function l(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=p.current.floatingContext?.nodeId,n=m&&Uc(m.nodesRef.current,t).some(t=>Ic(e,t.context?.elements.floating));return j(e)||n}function O(e){if(l(e)){e.type!==`click`&&!j(e)&&(t.clear(),C.current=!1),k();return}if(p.current.insideReactTree){k();return}let n=pr(e),r=`[${sd(`inert`)}]`,i=V(n)?n.getRootNode():null,a=Array.from((cr(i)?i:Tr(u.select(`floatingElement`))).querySelectorAll(r)),o=u.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>H(e,n))))return;let s=V(n)?n:null;for(;s&&!lr(s);){let e=Zn(s);if(lr(e)||!V(e))break;s=e}if(!(a.length&&V(n)&&!Lc(n)&&!H(n,u.select(`floatingElement`))&&a.every(e=>!H(s,e)))){if(Jn(n)&&!(`touches`in e)){let t=lr(n),r=$n(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!h(e)){if(c()===`intentional`&&C.current){t.clear(),C.current=!1;return}typeof g==`function`&&!g(e)||A(`__outsidePressBubbles`)||(u.setOpen(!1,Cr(br,e)),k())}}}function M(e){c()!==`sloppy`||e.pointerType===`touch`||!u.select(`open`)||!n||j(e)||O(e)}function N(e){if(c()!==`sloppy`||!u.select(`open`)||!n||j(e))return;let t=e.touches[0];t&&(E.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function P(e,t){let n=pr(e);if(!n)return;let r=X(n,e.type,()=>{t(e),r()})}function te(e){T.current=`touch`,P(e,N)}function ne(e){D.clear(),e.type===`pointerdown`&&(T.current=e.pointerType),!(e.type===`mousedown`&&E.current&&!E.current.dismissOnMouseDown)&&P(e,e=>{e.type===`pointerdown`?M(e):O(e)})}function re(e){if(!x.current)return;let n=S.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!h(e)){if(n){o();return}typeof g==`function`&&!g(e)||(t.clear(),C.current=!0,k())}}}function ie(e){if(c()!==`sloppy`||!E.current||j(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(O(e),D.clear(),E.current=null)}function ae(e){P(e,ie)}function F(e){c()!==`sloppy`||!E.current||j(e)||(E.current.dismissOnTouchEnd&&O(e),D.clear(),E.current=null)}function oe(e){P(e,F)}let se=Tr(f),I=ed(r&&ed(X(se,`keydown`,ee),X(se,`compositionstart`,i),X(se,`compositionend`,a)),_&&ed(X(se,`click`,ne,!0),X(se,`pointerdown`,ne,!0),X(se,`pointerup`,re,!0),X(se,`pointercancel`,re,!0),X(se,`mousedown`,ne,!0),X(se,`mouseup`,re,!0),X(se,`touchstart`,te,!0),X(se,`touchmove`,ae,!0),X(se,`touchend`,oe,!0)));return()=>{I(),e.clear(),t.clear(),s(),C.current=!1}},[p,f,r,_,g,d,n,y,b,ee,k,v,A,j,m,u,D]),U.useEffect(k,[g,k]);let ne=U.useMemo(()=>({onKeyDown:ee,[qd[s]]:M,...s!==`intentional`&&{onClick:M}}),[ee,M,s]),re=U.useMemo(()=>({onKeyDown:ee,onPointerDown:te,onMouseDown:te,onClickCapture:N,onMouseDownCapture(e){N(),P(e)},onPointerDownCapture(e){N(),P(e)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[ee,N,P,te]);return U.useMemo(()=>n?{reference:ne,floating:re,trigger:ne}:{},[n,ne,re])}function Zd(e,t,n){let{reference:r,floating:i}=e,a=ul(t),o=dl(t),s=ll(o),c=ol(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(sl(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Qd(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=al(t,e),p=Cl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=wl(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=wl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var $d=50,ef=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Qd},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Zd(l,r,c),f=r,p=0,m={};for(let n=0;ne<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==ul(t))||T.every(e=>ul(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ul(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function nf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rf(e){return Zc.some(t=>e[t]>=0)}var af=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=al(e,t);switch(i){case`referenceHidden`:{let e=nf(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:rf(e)}}}case`escaped`:{let e=nf(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:rf(e)}}}default:return{}}}}},of=new Set([`left`,`top`]);async function sf(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ol(n),s=sl(n),c=ul(n)===`y`,l=of.has(o)?-1:1,u=a&&c?-1:1,d=al(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var cf=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await sf(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},lf=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=al(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ul(ol(i)),p=cl(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=il(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=il(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},uf=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=al(e,t),u={x:n,y:r},d=ul(i),f=cl(d),p=u[f],m=u[d],h=al(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=of.has(ol(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},df=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=al(e,t),u=await o.detectOverflow(t,l),d=ol(i),f=sl(i),p=ul(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Qc(h-u[g],v),x=Qc(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=$c(u.left,0),t=$c(u.right,0),n=$c(u.top,0),r=$c(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:$c(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:$c(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function ff(e){let t=$n(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Jn(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=el(n)!==a||el(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function pf(e){return V(e)?e:e.contextElement}function mf(e){let t=pf(e);if(!Jn(t))return nl(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ff(t),o=(a?el(n.width):n.width)/r,s=(a?el(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var hf=nl(0);function gf(e){let t=qn(e);return!Un()||!t.visualViewport?hf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _f(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==qn(e)?!1:t}function vf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=pf(e),o=nl(1);t&&(r?V(r)&&(o=mf(r)):o=mf(e));let s=_f(a,n,r)?gf(a):nl(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=qn(a),t=r&&V(r)?qn(r):r,n=e,i=Xn(n);for(;i&&r&&t!==n;){let e=mf(i),t=i.getBoundingClientRect(),r=$n(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=qn(i),i=Xn(n)}}return wl({width:u,height:d,x:c,y:l})}function yf(e,t){let n=er(e).scrollLeft;return t?t.left+n:vf(Yn(e)).left+n}function bf(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-yf(e,n),y:n.top+t.scrollTop}}function xf(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Yn(r),s=t?Wn(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=nl(1),u=nl(0),d=Jn(r);if((d||!d&&!a)&&((nr(r)!==`body`||Hn(o))&&(c=er(r)),d)){let e=vf(r);l=mf(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?bf(o,c):nl(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Sf(e){return Array.from(e.getClientRects())}function Cf(e){let t=Yn(e),n=er(e),r=e.ownerDocument.body,i=$c(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=$c(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+yf(e),s=-n.scrollTop;return $n(r).direction===`rtl`&&(o+=$c(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var wf=25;function Tf(e,t){let n=qn(e),r=Yn(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Un();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=yf(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=wf&&(a-=o)}else l<=wf&&(a+=l);return{width:a,height:o,x:s,y:c}}function Ef(e,t){let n=vf(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Jn(e)?mf(e):nl(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Df(e,t,n){let r;if(t===`viewport`)r=Tf(e,n);else if(t===`document`)r=Cf(Yn(e));else if(V(t))r=Ef(t,n);else{let n=gf(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return wl(r)}function Of(e,t){let n=Zn(e);return n===t||!V(n)||lr(n)?!1:$n(n).position===`fixed`||Of(n,t)}function kf(e,t){let n=t.get(e);if(n)return n;let r=Qn(e,[],!1).filter(e=>V(e)&&nr(e)!==`body`),i=null,a=$n(e).position===`fixed`,o=a?Zn(e):e;for(;V(o)&&!lr(o);){let t=$n(o),n=sr(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Hn(o)&&!n&&Of(e,o))?r=r.filter(e=>e!==o):i=t,o=Zn(o)}return t.set(e,r),r}function Af(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Wn(t)?[]:kf(t,this._c):[].concat(n),r],o=Df(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!zf(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Vf(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=pf(e),u=i||a?[...l?Qn(l):[],...t?Qn(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Bf(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?vf(e):null;c&&g();function g(){let t=vf(e);h&&!zf(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Hf=cf,Uf=lf,Wf=tf,Gf=df,Kf=af,qf=uf,Jf=(e,t,n)=>{let r=new Map,i={platform:Rf,...n},a={...i.platform,_c:r};return ef(e,t,{...i,platform:a})},Yf=typeof document<`u`?U.useLayoutEffect:function(){};function Xf(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,i;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(!Xf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Xf(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Zf(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qf(e,t){let n=Zf(e);return Math.round(t*n)/n}function $f(e){let t=U.useRef(e);return Yf(()=>{t.current=e}),t}function ep(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=U.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=U.useState(r);Xf(f,r)||p(r);let[m,h]=U.useState(null),[g,_]=U.useState(null),v=U.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=U.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=U.useRef(null),C=U.useRef(null),w=U.useRef(u),T=c!=null,E=$f(c),D=$f(i),O=$f(l),k=U.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Jf(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Xf(w.current,t)&&(w.current=t,vu.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Yf(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=U.useRef(!1);Yf(()=>(A.current=!0,()=>{A.current=!1}),[]),Yf(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=U.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=U.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=U.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Qf(M.floating,u.x),r=Qf(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Zf(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return U.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:ee}),[u,k,j,M,ee])}var tp=(e,t)=>{let n=Hf(e);return{name:n.name,fn:n.fn,options:[e,t]}},np=(e,t)=>{let n=Uf(e);return{name:n.name,fn:n.fn,options:[e,t]}},rp=(e,t)=>({fn:qf(e).fn,options:[e,t]}),ip=(e,t)=>{let n=Wf(e);return{name:n.name,fn:n.fn,options:[e,t]}},ap=(e,t)=>{let n=Gf(e);return{name:n.name,fn:n.fn,options:[e,t]}},op=(e,t)=>{let n=Kf(e);return{name:n.name,fn:n.fn,options:[e,t]}},Q=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(zt(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},sp=[],cp=void 0;function lp(){return cp}function up(e){sp.push(e)}function dp(e){let t=(t,n)=>{let r=Pt(pp).current,i;try{cp=r;for(let e of sp)e.before(r);i=e(t,n);for(let e of sp)e.after(r);r.didInitialize=!0}finally{cp=void 0}return i};return t.displayName=e.displayName||e.name,t}function fp(e){return U.forwardRef(dp(e))}function pp(){return{didInitialize:!1}}var mp=ie(),hp=ne(),gp=Lt(19)?yp:bp;function _p(e,t,n,r,i){return gp(e,t,n,r,i)}function vp(e,t,n,r,i){let a=U.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,mp.useSyncExternalStore)(e.subscribe,a,a)}up({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,mp.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function yp(e,t,n,r,i){let a=lp();if(!a)return vp(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function bp(e,t,n,r,i){return(0,hp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var xp=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return _p(this,e,t,n,r)}},Sp=class extends xp{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){U.useDebugValue(e);let n=this;B(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;B(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;B(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){U.useDebugValue(e);let n=this,r=t!==void 0;B(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return U.useDebugValue(e),_p(this,this.selectors[e],t,n,r)}useContextCallback(e,t){U.useDebugValue(e);let n=ir(t??It);this.context[e]=n}useStateSetter(e){let t=U.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Cp={open:Q(e=>e.open),transitionStatus:Q(e=>e.transitionStatus),domReferenceElement:Q(e=>e.domReferenceElement),referenceElement:Q(e=>e.positionReference??e.referenceElement),floatingElement:Q(e=>e.floatingElement),floatingId:Q(e=>e.floatingId)},wp=class extends Sp{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Ad(),nested:n,triggerElements:i},Cp),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Xc(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Tp(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=U.useRef(null);r===void 0&&f.current===null&&(f.current=new wp({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),B(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};V(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var Ep={tabIndex:-1,[kc]:``};function Dp(e,t,n=!1){let r=ur(),i=Nd()!=null,a=U.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return Tp({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function Op(e,t){let n=U.useRef(null),r=U.useRef(null);return U.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function kp(e,t,n){let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function Ap(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Op(e,n),o=ir(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return B(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function jp(e){let t=e.useState(`open`);B(()=>{if(!t){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let n=e.context.triggerElements.size,r={};if(e.state.triggerCount!==n&&(r.triggerCount=n),!e.select(`activeTriggerId`)&&n===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n}}(r.triggerCount!==void 0||r.activeTriggerId!==void 0)&&e.update(r)},[t,e,e.useState(`triggerCount`)])}function Mp(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=xu(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=ir(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),s=t.useState(`preventUnmountingOnClose`);return bu({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}function Np(e,t){e.useSyncedValues(t),B(()=>()=>{e.update({activeTriggerProps:jt,inactiveTriggerProps:jt,popupProps:jt})},[e])}function Pp(e,t){B(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),B(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Fp=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Ip(){return new wp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Fp,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Lp(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Ip(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:jt,inactiveTriggerProps:jt,popupProps:jt}}function Rp(e,t,n=!1){return new wp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var zp=Q(e=>e.triggerIdProp??e.activeTriggerId),Bp=Q(e=>e.openProp??e.open),Vp=Q(e=>(e.popupElement?.id??e.floatingId)||void 0);function Hp(e,t){return t!==void 0&&Bp(e)&&zp(e)===t}function Up(e,t){return Hp(e,t)?!0:t!==void 0&&Bp(e)&&zp(e)==null&&e.triggerCount===1}var Wp={open:Bp,mounted:Q(e=>e.mounted),transitionStatus:Q(e=>e.transitionStatus),floatingRootContext:Q(e=>e.floatingRootContext),triggerCount:Q(e=>e.triggerCount),preventUnmountingOnClose:Q(e=>e.preventUnmountingOnClose),payload:Q(e=>e.payload),activeTriggerId:zp,activeTriggerElement:Q(e=>e.mounted?e.activeTriggerElement:null),popupId:Vp,isTriggerActive:Q((e,t)=>t!==void 0&&zp(e)===t),isOpenedByTrigger:Q((e,t)=>Hp(e,t)),isMountedByTrigger:Q((e,t)=>t!==void 0&&zp(e)===t&&e.mounted),triggerProps:Q((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Q((e,t)=>Up(e,t)?Vp(e):void 0),popupProps:Q(e=>e.popupProps),popupElement:Q(e=>e.popupElement),positionerElement:Q(e=>e.positionerElement)};function Gp(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=ur(),a=Nd()!=null,o=Pt(()=>new wp({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Fp,floatingId:i,syncOnly:!1,nested:a})).current;return B(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=V(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Kp(e={}){let{nodeId:t,externalTree:n}=e,r=Gp(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=U.useState(null),[f,p]=U.useState(void 0),[m,h]=U.useState(void 0),g=U.useRef(null),_=Pd(n),v=U.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),y=ep({...e,elements:{...v,...u&&{reference:u}}}),b=V(f)?f:null,x=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:b),i.useSyncedValue(`floatingElement`,x);let S=U.useCallback(e=>{let t=V(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=U.useCallback(e=>{(V(e)||e===null)&&(g.current=e,p(e)),(V(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!V(e))&&y.refs.setReference(e)},[y.refs,p]),w=U.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),T=U.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),E=U.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),D=U.useMemo(()=>({...y,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:T,elements:E,nodeId:t,rootStore:i}),[y,T,E,t,i,c,l]);return B(()=>{s&&(g.current=s)},[s]),B(()=>{i.context.dataRef.current.floatingContext=D;let e=_?.nodesRef.current.find(e=>e.id===t);e&&(e.context=D)}),U.useMemo(()=>({...y,context:D,refs:T,elements:E,rootStore:i}),[y,T,E,D,i])}var qp=wc&⪼function Jp(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=U.useRef(!1),c=U.useRef(null),l=U.useRef(!0),u=cu();U.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=qn(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&Jn(e)&&e===wr(Tr(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return ed(X(t,`blur`,r),qp&&X(t,`keydown`,a,!0),qp&&X(t,`pointerdown`,o,!0))},[i,n]),U.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);V(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=U.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=pr(t.nativeEvent);if(V(a)){if(qp&&!t.relatedTarget){if(!l.current&&!Rc(a))return}else if(!Vc(a))return}let o=Fc(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,Cr(vr,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Cr(vr,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=V(n)&&n.hasAttribute(sd(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=wr(Tr(e));!n&&t===e||H(o.current.floatingContext?.refs.floating.current,t)||H(e,t)||a||Fc(n??t,i.context.triggerElements)||i.setOpen(!1,Cr(vr,r))})}}},[o,r,i,u]);return U.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var Yp=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new su,this.restTimeout=new su,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Xp=new WeakMap;function Zp(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Xp.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Xp.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Qp(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Xp.get(n);a&&a!==e&&Zp(a),Zp(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Xp.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function $p(e){let t=e.context.dataRef.current,n=Pt(()=>t.hoverInteractionState??Yp.create()).current;return t.hoverInteractionState||=n,au(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function em(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=Pd(),d=Nd(),f=$p(a),p=cu(),m=ir(()=>Yu(l.current.openEvent?.type,f.interactedInside)),h=ir(()=>Xu(l.current.openEvent?.type)),g=ir(()=>{Zp(f)});B(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),U.useEffect(()=>g,[g]),B(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&V(c)&&s){let e=c,t=s,n=Tr(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r;return Qp(f,{scopeElement:f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),U.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&Uc(u.nodesRef.current,d).length>0)}function t(e){let t=qu(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Cr(gr,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=pr(e);if(!zc(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,_),g()}function h(n){if(e()&&u){u.events.on(`floating.closed`,_);return}if(Fc(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&V(o)&&Uc(u.nodesRef.current,r,!1).some(e=>H(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),m()||t(n)}}function _(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,_),a.setOpen(!1,Cr(gr,t)),u.events.emit(`floating.closed`,t)})}let v=s;return ed(v&&X(v,`mouseenter`,c),v&&X(v,`mouseleave`,h),v&&X(v,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,_)})},[n,s,a,l,r,i,m,g,f,u,d,p])}var tm={current:null};function nm(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=tm,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,_=Pd(l),v=$p(m),y=U.useRef(!1),b=td(i),x=td(r),S=td(o),C=td(n),w=td(p),T=td(f),E=ir(()=>Yu(h.current.openEvent?.type,v.interactedInside)),D=ir(()=>w.current?.()!==!1),O=ir((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!H(e,t);if(!V(n))return!1;let i=n;return r.hasMatchingElement(e=>H(e,i))&&(!e||!H(e,i))}),k=ir(()=>{v.handler&&=(Tr(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=ir(()=>{Zp(v)});return u&&(v.handleCloseOptions=b.current?.__options),U.useEffect(()=>k,[k]),U.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===gr,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),U.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=qu(x.current,`close`,v.pointerType);n?v.openChangeTimeout.start(n,()=>{m.setOpen(!1,Cr(gr,e)),_?.events.emit(`floating.closed`,e)}):t&&(v.openChangeTimeout.clear(),m.setOpen(!1,Cr(gr,e)),_?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!V(t))return;function r(e){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!Yc(v.pointerType))return;let t=Ju(S.current),n=qu(x.current,`open`,v.pointerType),r=pr(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(V(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(H(e,r)){s=e;break}}V(i)&&V(o)&&!m.context.triggerElements.hasElement(i)&&H(i,o)&&(s=o);let c=s==null?!1:O(o,s,r),l=m.select(`open`),u=T.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&y.current,f=!c&&V(s)&&V(o)&&H(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){D()&&m.setOpen(!0,Cr(gr,e,s));return}p||(n?v.openChangeTimeout.start(n,()=>{g&&D()&&m.setOpen(!0,Cr(gr,e,s))}):g&&D()&&m.setOpen(!0,Cr(gr,e,s)))}function i(t){if(E()){A();return}k();let n=Tr(m.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!Fc(t.relatedTarget,m.context.triggerElements)){if(b.current&&r){m.select(`open`)||v.openChangeTimeout.clear();let i=c.current;v.handler=b.current({...r,tree:_,x:t.clientX,y:t.clientY,onClose(){A(),k(),C.current&&!E()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,v.handler),v.handler(t);return}(v.pointerType!==`touch`||!H(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?ed(X(t,`mousemove`,r,{once:!0}),X(t,`mouseenter`,r),X(t,`mouseleave`,i)):ed(X(t,`mouseenter`,r),X(t,`mouseleave`,i))},[k,A,h,x,m,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D]),U.useMemo(()=>{if(!n)return;function e(e){v.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=O(r,n,e.target);if(a&&!Yc(v.pointerType))return;if(i&&o&&v.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);e&&Qp(v,{scopeElement:v.handleCloseOptions?.getScope?.()??n.ownerDocument.body,referenceElement:n,floatingElement:e})}let s=Ju(S.current);if(i&&!o||s===0||!o&&v.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;v.restTimeout.clear();function c(){if(v.restTimeoutPending=!1,E())return;let e=m.select(`open`);!v.blockMouseMove&&(!e||o)&&D()&&m.setOpen(!0,Cr(gr,t,n))}v.pointerType===`touch`?vu.flushSync(()=>{c()}):o&&i?c():(v.restTimeoutPending=!0,v.restTimeout.start(s,c))}}},[n,v,E,O,a,m,S,D])}var rm=.1,im=rm*rm,am=.5;function om(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function sm(e,t,n,r,i,a,o,s,c,l){let u=!1;return om(e,t,n,r,i,a)&&(u=!u),om(e,t,i,a,o,s)&&(u=!u),om(e,t,o,s,c,l)&&(u=!u),om(e,t,c,l,n,r)&&(u=!u),u}function cm(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function lm(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function um(e={}){let{blockPointerEvents:t=!1}=e,n=new su,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*im;return u=e,d=t,f=n,o0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=lm(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=lm(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=lm(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=lm(d,f,x.right-1,A,S.left+1,k);break;default:}if(j)return;if(l&&!cm(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?am/2:am*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+am+1,o=C||T?S.bottom-am:S.top,s=C?T?S.bottom-am:S.top:S.bottom-am;M=sm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?am/2:am*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-am,o=C||T?S.top+am:S.bottom,s=C?T?S.top+am:S.bottom:S.top+am;M=sm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?am/2:am*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+am+1,o=w||E?S.right-am:S.left,s=w?E?S.right-am:S.left:S.right-am;M=sm(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?am/2:am*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-am,o=w||E?S.left+am:S.right,s=w?E?S.left+am:S.right:S.left+am;M=sm(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var dm=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),fm=function(e){return e[e.open=Mu.open]=`open`,e[e.closed=Mu.closed]=`closed`,e[e.startingStyle=Mu.startingStyle]=`startingStyle`,e[e.endingStyle=Mu.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),pm=U.createContext(void 0);function mm(){let e=U.useContext(pm);if(e===void 0)throw Error(zt(26));return e}var hm=`ArrowUp`,gm=`ArrowDown`,_m=`ArrowLeft`,vm=`ArrowRight`,ym=`Home`,bm=new Set([_m,vm]),xm=new Set([_m,vm,ym,`End`]),Sm=new Set([hm,gm]),Cm=new Set([hm,gm,ym,`End`]),wm=new Set([...bm,...Sm]),Tm=new Set([...wm,ym,`End`]),Em=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function Dm(e){return Jn(e)&&e.tagName===`INPUT`}function Om(e){return!!(Dm(e)&&e.selectionStart!=null||Jn(e)&&e.tagName===`TEXTAREA`)}function km(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidthe.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLefte.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Am(e,t,`top`),r=jm(e),i=jm(t);n-i.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Am(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function jm(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var Mm={...Vu,..._u,nestedDialogOpen(e){return e?{[fm.nestedDialogOpen]:``}:null}},Nm=U.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=ju(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`),C=s.id??S;mm(),bu({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});function w(e){return e===`touch`?c.context.popupRef.current:!0}let T=o===void 0?w:o,E=g>0,D=c.useStateSetter(`popupElement`),O=Ft(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:E},props:[f,{id:C,"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,...Ep,hidden:!m,onKeyDown(e){Tm.has(e.key)&&e.stopPropagation()},style:{[dm.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,D],stateAttributesMapping:Mm});return(0,W.jsx)(Ud,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:T,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:O})});function Pm(e){return Lt(19)?e:e?`true`:void 0}var Fm=U.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,W.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),Im=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=ju(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,W.jsx)(pm.Provider,{value:n,children:(0,W.jsxs)(kd,{ref:t,...r,children:[a&&o===!0&&(0,W.jsx)(Fm,{ref:i.context.internalBackdropRef,inert:Pm(!s)}),e.children]})}):null});function Lm(e){let t=U.useRef(!0);t.current&&(t.current=!1,e())}var Rm={},zm={},Bm=``;function Vm(e){if(typeof document>`u`)return!1;let t=Tr(e);return qn(t).innerWidth-t.documentElement.clientWidth>0}function Hm(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Tr(e),n=t.documentElement,r=t.body,i=Hn(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Um(e){let t=Tr(e),n=t.documentElement,r=t.body,i=Hn(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Wm(e){let t=Tr(e),n=t.documentElement,r=t.body,i=qn(n),a=0,o=0,s=!1,c=du.create();if(bc&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Rm={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Bm=n.style.scrollBehavior,zm={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};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Hn(n)?n:r;if(s=Hm(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Rm),Object.assign(r.style,zm),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Bm)}function d(){u(),c.request(l)}l();let f=X(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Gm=new class{lockCount=0;restore=null;timeoutLock=su.create();timeoutUnlock=su.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Tr(e).documentElement,n=qn(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=It;return}let r=xc||!Vm(e);this.restore=r?Um(e):Wm(e)}};function Km(e=!0,t=null){B(()=>{if(e)return Gm.acquire(t)},[e,t])}function qm(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:i}=e,a=t.useState(`open`);Pp(t,a),jp(t);let{forceUnmount:o}=Mp(a,t),s=U.useCallback(()=>{t.setOpen(!1,Cr(Sr))},[t]);return U.useImperativeHandle(r,()=>({unmount:o,close:s}),[o,s]),{parentContext:n,isDrawer:i}}function Jm({store:e,dialogRoot:t}){let{parentContext:n,isDrawer:r}=t,i=e.useState(`open`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=U.useState(0),[d,f]=U.useState(0),p=l===0,m=Xd(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=pr(t);if(p&&!a){let t=n;return o&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===t||e.context.backdropRef.current===t||H(t,s)&&!t?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:p});return Km(i&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{u(e),f(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{u(0),f(0)}),U.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(l+1,d+ +!!r),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[r,i,l,d,n]),Np(e,{activeTriggerProps:m.reference??jt,inactiveTriggerProps:m.trigger??jt,popupProps:U.useMemo(()=>Nt(Ep,m.floating),[m.floating]),nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Ym={...Wp,modal:Q(e=>e.modal),nested:Q(e=>e.nested),nestedOpenDialogCount:Q(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Q(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Q(e=>e.disablePointerDismissal),openMethod:Q(e=>e.openMethod),descriptionElementId:Q(e=>e.descriptionElementId),titleElementId:Q(e=>e.titleElementId),viewportElement:Q(e=>e.viewportElement),role:Q(e=>e.role)},Xm=class e extends Sp{constructor(e,t,n=!1){let r=new Fp,i=Zm(e);i.floatingRootContext=Rp(r,t,n),super(i,{popupRef:U.createRef(),backdropRef:U.createRef(),internalBackdropRef:U.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},Ym)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};kp(n,e,t.trigger),this.update(n)};static useStore(t,n){return Dp(t,(t,r)=>new e(n,t,r),!0).store}};function Zm(e={}){return{...Lp(),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 Qm(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=ju(!0),y={modal:h,disablePointerDismissal:g,nested:!!v,role:_},b=Xm.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y});Lm(()=>{let e=r===void 0&&b.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?b.update(e?{...y,...e}:y):e&&b.update(e)}),b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`),w=qm({store:b,actionsRef:l,parentContext:v?.store.context,isDrawer:p}),T=x||S,E=U.useMemo(()=>({store:b}),[b]);return(0,W.jsx)(ku.Provider,{value:!1,children:(0,W.jsxs)(Au.Provider,{value:E,children:[T&&(0,W.jsx)(Jm,{store:b,dialogRoot:w}),typeof n==`function`?n({payload:C}):n]})})}function $m(e){return Qm(e,U.useContext(ku)?`drawer`:`dialog`)}var eh=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=ju(),c=dr(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Ft(`h2`,e,{ref:t,props:[{id:c},o]})});function th(e){let t=(0,ms.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)($m,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function nh(e){let t=(0,ms.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(Im,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function rh(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 z-50 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(Uu,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ih(e){let t=(0,ms.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsx)(rh,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=un(`data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-closed:animate-out data-open:animate-in fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[7]=r,t[8]=u);let d;t[9]===c?d=t[10]:(d=c&&(0,W.jsxs)(Wu,{"data-slot":`sheet-close`,render:(0,W.jsx)(ar,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,W.jsx)(ic,{}),(0,W.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=c,t[10]=d);let f;return t[11]!==n||t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==d?(f=(0,W.jsxs)(nh,{children:[l,(0,W.jsxs)(Nm,{className:u,"data-side":s,"data-slot":`sheet-content`,...i,children:[n,d]})]}),t[11]=n,t[12]=i,t[13]=s,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function ah(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`flex flex-col gap-1.5 p-6`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function oh(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(eh,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function sh(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(Gu,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var ch=U.createContext(void 0);function lh(e){let t=U.useContext(ch);if(t===void 0&&!e)throw Error(zt(72));return t}var uh={...Wp,disabled:Q(e=>e.disabled),instantType:Q(e=>e.instantType),isInstantPhase:Q(e=>e.isInstantPhase),trackCursorAxis:Q(e=>e.trackCursorAxis),disableHoverablePopup:Q(e=>e.disableHoverablePopup),lastOpenChangeReason:Q(e=>e.openChangeReason),closeOnClick:Q(e=>e.closeOnClick),closeDelay:Q(e=>e.closeDelay),hasViewport:Q(e=>e.hasViewport)},dh=class e extends Sp{constructor(e,t,n=!1){let r=new Fp,i={...fh(),...e};i.floatingRootContext=Rp(r,t,n),super(i,{popupRef:U.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},uh)}setOpen=(e,t)=>{let n=t.reason,r=n===gr,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),kp(r,e,t.trigger),this.update(r)};r?vu.flushSync(o):o()};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Cr(hr,e))}static useStore(t,n){return Dp(t,(t,r)=>new e(n,t,r)).store}};function fh(){return{...Lp(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var ph=dp(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=dh.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});Lm(()=>{r===void 0&&p.state.open===!1&&n===!0&&p.update({open:!0,activeTriggerId:d})}),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),jp(p);let{forceUnmount:y,transitionStatus:b}=Mp(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=U.useRef(null);B(()=>{m&&t&&p.setOpen(!1,Cr(_r))},[m,t,p]),B(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),B(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=U.useCallback(()=>{p.setOpen(!1,Cr(Sr))},[p]);U.useImperativeHandle(o,()=>({unmount:y,close:T}),[y,T]);let E=h||_||!t&&a!==`none`;return(0,W.jsxs)(ch.Provider,{value:p,children:[E&&(0,W.jsx)(mh,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function mh({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Xd(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Kd(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return Np(e,{activeTriggerProps:U.useMemo(()=>Nt(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:U.useMemo(()=>Nt(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:U.useMemo(()=>Nt(Ep,a.floating,i.floating),[a.floating,i.floating])}),null}var hh=U.createContext(void 0);function gh(){return U.useContext(hh)}var _h=function(e){return e[e.popupOpen=Nu.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),vh=`data-base-ui-tooltip-trigger`;function yh(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;em.select(`transitionStatus`)===`ending`,shouldOpen(){return!N.current}}),F=Jp(v,{enabled:!A}).reference,oe=e=>{let t=N.current,n=yh(e),r=ie(n),i=y.current,a=i&&n&&H(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,Cr(gr,e));return}if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&Yc(te.current)){let t=()=>{!N.current&&!j.current&&!m.select(`open`)&&m.setOpen(!0,Cr(gr,e,i))},n=ne();n===0?(P.clear(),t()):P.start(n,t)}},se=m.useState(`triggerProps`,C);return Ft(`button`,e,{state:{open:_},ref:[t,S,y],props:[ae,F,C||M!==`none`?se:void 0,{onMouseOver(e){oe(e.nativeEvent)},onFocus(e){re(yh(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){N.current=!1,P.clear(),te.current=void 0},onPointerEnter(e){te.current=e.pointerType},onPointerDown(e){te.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[_h.triggerDisabled]:A?``:void 0,[vh]:A?void 0:``},f],stateAttributesMapping:zu})}),Sh=U.createContext(void 0);function Ch(){let e=U.useContext(Sh);if(e===void 0)throw Error(zt(70));return e}var wh=U.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=Od({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,W.jsxs)(U.Fragment,{children:[l,c&&vu.createPortal(n,c)]})}),Th=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return lh().useState(`mounted`)||n?(0,W.jsx)(Sh.Provider,{value:n,children:(0,W.jsx)(wh,{ref:t,...r})}):null}),Eh=U.createContext(void 0);function Dh(){let e=U.useContext(Eh);if(e===void 0)throw Error(zt(71));return e}var Oh=U.createContext(void 0);function kh(){return U.useContext(Oh)?.direction??`ltr`}var Ah=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=al(e,t)||{};if(l==null)return{};let f=Cl(u),p={x:n,y:r},m=dl(i),h=ll(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=il(k,j,A),ee=!c.arrow&&sl(i)!=null&&j!==M&&a.reference[h]/2-(j({...Ah(e),options:[e,t]}),Mh={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await op().fn(e)).data?.referenceHidden||a}}}},Nh={sideX:`left`,sideY:`top`},Ph={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=qn(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Nh};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=Tr(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=ol(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:Nh.sideX,g=f===`top`?`bottom`:Nh.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function Fh(e,t,n){let 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 Ih(e,t,n){let{rects:r,placement:i}=e;return{side:Fh(t,ol(i),n),align:sl(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Lh(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:x}=e,[S,C]=U.useState(null);!h&&S!==null&&C(null);let w=g.side||`flip`,T=g.align||`flip`,E=g.fallbackAxisSide||`end`,D=typeof t==`function`?t:void 0,O=ir(D),k=D?O:t,A=td(t),j=td(h),M=kh()===`rtl`,ee=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":M?`left`:`right`,"inline-start":M?`right`:`left`}[r],N=a===`center`?ee:`${ee}-${a}`,P=c,te=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),ie=+(r===`left`);typeof P==`number`?P={top:P+te,right:P+ie,bottom:P+ne,left:P+re}:P&&={top:(P.top||0)+te,right:(P.right||0)+ie,bottom:(P.bottom||0)+ne,left:(P.left||0)+re};let ae={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},F=U.useRef(null),oe=td(i),se=td(o),I=typeof i==`function`?0:i,ce=typeof o==`function`?0:o,le=[];f&&le.push(f),le.push(tp(e=>{let t=Ih(e,r,M),n=typeof oe.current==`function`?oe.current(t):oe.current,i=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[I,ce,M,r]));let ue=T===`none`&&w!==`shift`,de=!ue&&(l||_||w===`shift`),fe=w===`none`?null:ip({...ae,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!_&&w===`flip`,crossAxis:T===`flip`?`alignment`:!1,fallbackAxisSideDirection:E}),pe=ue?null:np(e=>{let t=Tr(e.elements.floating).documentElement;return{...ae,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:T!==`none`,crossAxis:de,limiter:l||_?void 0:rp(e=>{if(!F.current)return{};let{width:t,height:n}=F.current.getBoundingClientRect(),r=ul(ol(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[ae,l,_,P,T]);w===`shift`||T===`shift`||a===`center`?le.push(pe,fe):le.push(fe,pe),le.push(ap({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!j.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=qn(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),jh(e=>({element:F.current||Tr(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=ol(a),l=ul(c),u=F.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(Ih(e,r,M)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,de&&l===`y`&&b?S:x),{}}},Mh,y),B(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let me=U.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=Kp({rootContext:m,open:p?h:void 0,placement:N,middleware:le,strategy:n,whileElementsMounted:p?void 0:(...e)=>Vf(...e,me),nodeId:v,externalTree:x}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||Nh,De=Ce?n:`fixed`,Oe=U.useMemo(()=>{let e=y?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[y,De,Te,_e,Ee,ve,we,Ce]),ke=U.useRef(null);B(()=>{if(!h)return;let e=A.current,t=typeof e==`function`?e():e,n=(Rh(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[h,he,k,A]),U.useEffect(()=>{if(!h)return;let e=A.current;typeof e!=`function`&&Rh(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[h,he,k,A]),U.useEffect(()=>{if(p&&h&&ge.domReference&&ge.floating)return Vf(ge.domReference,ge.floating,be,me)},[p,h,ge,be,me]);let Ae=ol(xe),je=Fh(r,Ae,M),Me=sl(xe)||`center`,Ne=!!ye.hide?.referenceHidden;B(()=>{b&&h&&Ce&&C(Ae)},[b,h,Ce,Ae]);let Pe=U.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Fe=ye.arrow?.centerOffset!==0;return U.useMemo(()=>({positionerStyles:Oe,arrowStyles:Pe,arrowRef:F,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,Pe,F,Fe,je,Me,Ae,Ne,he,Se,Ce,be])}function Rh(e){return e!=null&&`current`in e}function zh(e){return e===`starting`?xd:jt}function Bh(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),Ft(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},zh(r),i],stateAttributesMapping:Vu})}var Vh=U.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Cd,style:g,..._}=e,v=lh(),y=Ch(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=Lh({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?Ph:void 0}),O=Bh(e,U.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,W.jsx)(Eh.Provider,{value:D,children:O})}),Hh={...Vu,..._u},Uh=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=lh(),{side:s,align:c}=Dh(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);bu({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),em(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return Ft(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,zh(d),a],stateAttributesMapping:Hh})}),Wh=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=lh(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=Dh();return Ft(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:Vu})}),Gh=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=U.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=U.useMemo(()=>({open:t,close:n}),[t,n]);return(0,W.jsx)(hh.Provider,{value:i,children:(0,W.jsx)(Qu,{delay:a,timeoutMs:r,children:e.children})})};function Kh(e){let t=(0,ms.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,W.jsx)(Gh,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function qh(e){let t=(0,ms.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(Kh,{children:(0,W.jsx)(ph,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function Jh(e){let t=(0,ms.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(xh,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function Yh(e){let t=(0,ms.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`top`:a,u=o===void 0?4:o,d=s===void 0?`center`:s,f=c===void 0?0:c,p;t[8]===r?p=t[9]:(p=un(`data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background **:data-[slot=kbd]:rounded-md`,r),t[8]=r,t[9]=p);let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,W.jsx)(Wh,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[10]=m):m=t[10];let h;t[11]!==n||t[12]!==i||t[13]!==p?(h=(0,W.jsxs)(Uh,{className:p,"data-slot":`tooltip-content`,...i,children:[n,m]}),t[11]=n,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==f||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,W.jsx)(Th,{children:(0,W.jsx)(Vh,{align:d,alignOffset:f,className:`isolate z-50`,side:l,sideOffset:u,children:h})}),t[15]=d,t[16]=f,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}var Xh=window.matchMedia(`(max-width: 767px)`);function Zh(e){return Xh.addEventListener(`change`,e),()=>Xh.removeEventListener(`change`,e)}function Qh(){return Xh.matches}function $h(){return(0,U.useSyncExternalStore)(Zh,Qh)}var eg=`sidebar_state`,tg=3600*24*7,ng=`12rem`,rg=`16rem`,ig=`3rem`,ag=`b`,og=U.createContext(null);function sg(){let e=U.useContext(og);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function cg(e){let t=(0,ms.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=$h(),[d,f]=U.useState(!1),[p,m]=U.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${eg}=${t}; path=/; max-age=${tg}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(ug):_(lg),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===ag&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),U.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===r?T=t[25]:(T=un(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[24]=r,t[25]=T);let E;t[26]===s?E=t[27]:(E={"--sidebar-width":ng,"--sidebar-width-icon":ig,...s},t[26]=s,t[27]=E);let D=E,O;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==D?(O=(0,W.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:D,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=D,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,W.jsx)(og.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function lg(e){return!e}function ug(e){return!e}function dg(e){let t=(0,ms.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offExamples`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=sg();if(u===`none`){let e;t[7]===r?e=t[8]:(e=un(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,W.jsx)(`div`,{className:e,"data-slot":`sidebar`,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":rg},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,W.jsxs)(ah,{className:`sr-only`,children:[(0,W.jsx)(oh,{children:`Sidebar`}),(0,W.jsx)(sh,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,W.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=o);let s;t[17]!==c||t[18]!==o?(s=(0,W.jsxs)(ih,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:c,style:r,children:[a,o]}),t[17]=c,t[18]=o,t[19]=s):s=t[19];let l;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==s?(l=(0,W.jsx)(th,{onOpenChange:m,open:p,...i,children:s}),t[20]=p,t[21]=i,t[22]=m,t[23]=s,t[24]=l):l=t[24],l}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=un(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,W.jsx)(`div`,{className:_,"data-slot":`sidebar-gap`}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=un(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,W.jsx)(`div`,{className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,W.jsx)(`div`,{className:x,"data-slot":`sidebar-container`,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,W.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":h,"data-side":c,"data-slot":`sidebar`,"data-state":f,"data-variant":l,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function fg(e){let t=(0,ms.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a}=sg(),o;t[4]===n?o=t[5]:(o=un(n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==a?(s=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=s):s=t[8];let c,l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsx)(Js,{}),l=(0,W.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[9]=c,t[10]=l):(c=t[9],l=t[10]);let u;return t[11]!==i||t[12]!==o||t[13]!==s?(u=(0,W.jsxs)(ar,{className:o,"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:s,size:`icon-lg`,variant:`ghost`,...i,children:[c,l]}),t[11]=i,t[12]=o,t[13]=s,t[14]=u):u=t[14],u}function pg(e){let t=(0,ms.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let{toggleSidebar:i}=sg(),a;t[3]===n?a=t[4]:(a=un(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-sidebar`,`[[data-side=left][data-collapsible=offExamples]_&]:-right-2`,`[[data-side=right][data-collapsible=offExamples]_&]:-left-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a||t[7]!==i?(o=(0,W.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function mg(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`header`,"data-slot":`sidebar-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function hg(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function gg(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`mx-2 w-auto bg-sidebar-border`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(Ou,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function _g(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`content`,"data-slot":`sidebar-content`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function vg(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`relative flex w-full min-w-0 flex-col px-2 py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`group`,"data-slot":`sidebar-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function yg(e){let t=(0,ms.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=ys,r=`div`,i=Nt({className:un(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,o)},c),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`sidebar-group-label`,sidebar:`group-label`},t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[6]=n,t[7]=r,t[8]=i,t[9]=s):s=t[9],a(s)}function bg(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`flex w-full min-w-0 flex-col gap-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`ul`,{className:i,"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function xg(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`li`,{className:i,"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Sg=Rt(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-xs`,sm:`h-7 text-xs`,lg:`h-12 text-xs group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Cg(e){let t=(0,ms.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r===void 0?!1:r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=sg(),m=Nt({className:un(Sg({variant:u,size:d}),s)},c),h=o?Jh:n,g;t[0]!==l||t[1]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[0]=l,t[1]=d,t[2]=g):g=t[2];let _;t[3]!==m||t[4]!==h||t[5]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[3]=m,t[4]=h,t[5]=g,t[6]=_):_=t[6];let v=ys(_);if(!o)return v;let y;t[7]===o?y=t[8]:(y=typeof o==`string`?{children:o}:o,t[7]=o,t[8]=y);let b=y,x=p!==`collapsed`||f,S;t[9]!==x||t[10]!==b?(S=(0,W.jsx)(Yh,{align:`center`,hidden:x,side:`right`,...b}),t[9]=x,t[10]=b,t[11]=S):S=t[11];let C;return t[12]!==v||t[13]!==S?(C=(0,W.jsxs)(qh,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var wg=class{async sign(e,t,n){return e}},Tg=`ref`,Eg=-1,Dg=!0,Og=`isSet`,kg=`PartitionResult`,Ag=`booleanEquals`,jg=`stringEquals`,Mg=`getAttr`,Ng=`us-east-1`,Pg=`sigv4`,Fg=`sts`,Ig=`https://sts.{Region}.{PartitionResult#dnsSuffix}`,Lg={[Tg]:`Endpoint`},Rg={[Tg]:`Region`},zg={[Tg]:kg},Bg={},Vg=[Rg],Hg={conditions:[[Og,[Lg]],[Og,Vg],[`aws.partition`,Vg,kg],[Ag,[{[Tg]:`UseFIPS`},Dg]],[Ag,[{[Tg]:`UseDualStack`},Dg]],[jg,[Rg,`aws-global`]],[Ag,[{[Tg]:`UseGlobalEndpoint`},Dg]],[jg,[Rg,`eu-central-1`]],[Ag,[{fn:Mg,argv:[zg,`supportsDualStack`]},Dg]],[Ag,[{fn:Mg,argv:[zg,`supportsFIPS`]},Dg]],[jg,[Rg,`ap-south-1`]],[jg,[Rg,`eu-north-1`]],[jg,[Rg,`eu-west-1`]],[jg,[Rg,`eu-west-2`]],[jg,[Rg,`eu-west-3`]],[jg,[Rg,`sa-east-1`]],[jg,[Rg,Ng]],[jg,[Rg,`us-east-2`]],[jg,[Rg,`us-west-2`]],[jg,[Rg,`us-west-1`]],[jg,[Rg,`ca-central-1`]],[jg,[Rg,`ap-southeast-1`]],[jg,[Rg,`ap-northeast-1`]],[jg,[Rg,`ap-southeast-2`]],[jg,[{fn:Mg,argv:[zg,`name`]},`aws-us-gov`]]],results:[[Eg],[`https://sts.amazonaws.com`,{authSchemes:[{name:Pg,signingName:Fg,signingRegion:Ng}]}],[Ig,{authSchemes:[{name:Pg,signingName:Fg,signingRegion:`{Region}`}]}],[Eg,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Eg,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Lg,Bg],[`https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Bg],[Eg,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://sts.{Region}.amazonaws.com`,Bg],[`https://sts-fips.{Region}.{PartitionResult#dnsSuffix}`,Bg],[Eg,`FIPS is enabled but this partition does not support FIPS`],[`https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}`,Bg],[Eg,`DualStack is enabled but this partition does not support DualStack`],[Ig,Bg],[Eg,`Invalid Configuration: Missing Region`]]},Ug=2,Wg=new Int32Array([-1,1,-1,0,30,3,1,4,100000014,2,5,100000014,3,25,6,4,24,7,5,100000001,8,6,9,100000013,7,100000001,10,10,100000001,11,11,100000001,12,12,100000001,13,13,100000001,14,14,100000001,15,15,100000001,16,16,100000001,17,17,100000001,18,18,100000001,19,19,100000001,20,20,100000001,21,21,100000001,22,22,100000001,23,23,100000001,100000002,8,100000011,100000012,4,28,26,9,27,100000010,24,100000008,100000009,8,29,100000007,9,100000006,100000007,3,100000003,31,4,100000004,100000005]),Gg=wn.from(Wg,Ug,Hg.conditions,Hg.results),Kg=new Tn({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`]}),qg=(e,t={})=>Kg.get(e,()=>jn(Gg,{endpointParams:e,logger:t.logger}));kn.aws=Zt;var Jg=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=Qt(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await yn(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:Qt(t).operation,region:await on(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function Yg(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Xg(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Zg(e){return{schemeId:`smithy.api#noAuth`}}var Qg=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(qt.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a})(qg,e=>{let t=[];switch(e.operation){case`AssumeRoleWithSAML`:t.push(Zg(e)),t.push(Xg(e));break;case`AssumeRoleWithWebIdentity`:t.push(Zg(e)),t.push(Xg(e));break;default:t.push(Yg(e)),t.push(Xg(e))}return t},{"aws.auth#sigv4":Yg,"aws.auth#sigv4a":Xg,"smithy.api#noAuth":Zg}),$g=e=>{let t=Dn(Gt(e));return Object.assign(t,{authSchemePreference:on(e.authSchemePreference??[])})},e_=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:`sts`}),t_={UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},n_={name:`@aws-sdk/client-sts`,description:`AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native`,version:`3.1063.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-sts`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo sts`,test:`yarn g:vitest run`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.18`,"@aws-sdk/credential-provider-node":`^3.972.52`,"@aws-sdk/signature-v4-multi-region":`^3.996.32`,"@aws-sdk/types":`^3.973.11`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-sts`}},r_=class e extends fn{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},i_=class e extends r_{name=`ExpiredTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},a_=class e extends r_{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},o_=class e extends r_{name=`PackedPolicyTooLargeException`;$fault=`client`;constructor(t){super({name:`PackedPolicyTooLargeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},s_=class e extends r_{name=`RegionDisabledException`;$fault=`client`;constructor(t){super({name:`RegionDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},c_=class e extends r_{name=`IDPRejectedClaimException`;$fault=`client`;constructor(t){super({name:`IDPRejectedClaimException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},l_=class e extends r_{name=`InvalidIdentityTokenException`;$fault=`client`;constructor(t){super({name:`InvalidIdentityTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},u_=class e extends r_{name=`IDPCommunicationErrorException`;$fault=`client`;$retryable={};constructor(t){super({name:`IDPCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},d_=class e extends r_{name=`InvalidAuthorizationMessageException`;$fault=`client`;constructor(t){super({name:`InvalidAuthorizationMessageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},f_=class e extends r_{name=`ExpiredTradeInTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTradeInTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},p_=class e extends r_{name=`JWTPayloadSizeExceededException`;$fault=`client`;constructor(t){super({name:`JWTPayloadSizeExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},m_=class e extends r_{name=`OutboundWebIdentityFederationDisabledException`;$fault=`client`;constructor(t){super({name:`OutboundWebIdentityFederationDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},h_=class e extends r_{name=`SessionDurationEscalationException`;$fault=`client`;constructor(t){super({name:`SessionDurationEscalationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},g_=`Arn`,__=`AccessKeyId`,v_=`Account`,y_=`Credentials`,b_=`DurationSeconds`,x_=`Expiration`,S_=`ExpiredTokenException`,C_=`ExpiredTradeInTokenException`,w_=`GetCallerIdentity`,T_=`GetCallerIdentityRequest`,E_=`GetCallerIdentityResponse`,D_=`GetSessionToken`,O_=`GetSessionTokenRequest`,k_=`GetSessionTokenResponse`,A_=`InvalidAuthorizationMessageException`,j_=`IDPCommunicationErrorException`,M_=`IDPRejectedClaimException`,N_=`InvalidIdentityTokenException`,P_=`JWTPayloadSizeExceededException`,F_=`MalformedPolicyDocumentException`,I_=`OutboundWebIdentityFederationDisabledException`,L_=`PackedPolicyTooLargeException`,R_=`RegionDisabledException`,z_=`SecretAccessKey`,B_=`SessionDurationEscalationException`,V_=`SerialNumber`,H_=`SessionToken`,U_=`TokenCode`,W_=`UserId`,G_=`accessKeySecretType`,K_=`awsQueryError`,q_=`client`,J_=`error`,Y_=`httpError`,X_=`message`,Z_=`smithy.ts.sdk.synthetic.com.amazonaws.sts`,Q_=`com.amazonaws.sts`,$_=In.for(Z_),ev=[-3,Z_,`STSServiceException`,0,[],[]];$_.registerError(ev,r_);var tv=In.for(Q_),nv=[-3,Q_,S_,{[K_]:[`ExpiredTokenException`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(nv,i_);var rv=[-3,Q_,C_,{[K_]:[`ExpiredTradeInTokenException`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(rv,f_);var iv=[-3,Q_,j_,{[K_]:[`IDPCommunicationError`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(iv,u_);var av=[-3,Q_,M_,{[K_]:[`IDPRejectedClaim`,403],[J_]:q_,[Y_]:403},[X_],[0]];tv.registerError(av,c_);var ov=[-3,Q_,A_,{[K_]:[`InvalidAuthorizationMessageException`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(ov,d_);var sv=[-3,Q_,N_,{[K_]:[`InvalidIdentityToken`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(sv,l_);var cv=[-3,Q_,P_,{[K_]:[`JWTPayloadSizeExceededException`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(cv,p_);var lv=[-3,Q_,F_,{[K_]:[`MalformedPolicyDocument`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(lv,a_);var uv=[-3,Q_,I_,{[K_]:[`OutboundWebIdentityFederationDisabledException`,403],[J_]:q_,[Y_]:403},[X_],[0]];tv.registerError(uv,m_);var dv=[-3,Q_,L_,{[K_]:[`PackedPolicyTooLarge`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(dv,o_);var fv=[-3,Q_,R_,{[K_]:[`RegionDisabledException`,403],[J_]:q_,[Y_]:403},[X_],[0]];tv.registerError(fv,s_);var pv=[-3,Q_,B_,{[K_]:[`SessionDurationEscalationException`,403],[J_]:q_,[Y_]:403},[X_],[0]];tv.registerError(pv,h_);var mv=[$_,tv],hv=[0,Q_,G_,8,0],gv=[3,Q_,y_,0,[__,z_,H_,x_],[0,[()=>hv,0],0,4],4],_v=[3,Q_,T_,0,[],[]],vv=[3,Q_,E_,0,[W_,v_,g_],[0,0,0]],yv=[3,Q_,O_,0,[b_,V_,U_],[1,0,0]],bv=[3,Q_,k_,0,[y_],[[()=>gv,0]]],xv=[9,Q_,w_,0,()=>_v,()=>vv],Sv=[9,Q_,D_,0,()=>yv,()=>bv],Cv=e=>({apiVersion:`2011-06-15`,base64Decoder:e?.base64Decoder??Dr,base64Encoder:e?.base64Encoder??kr,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??qg,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Qg,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new En},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new Vt},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new wg}],logger:e?.logger??new Fn,protocol:e?.protocol??Cn,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sts`,errorTypeRegistries:mv,xmlNamespace:`https://sts.amazonaws.com/doc/2011-06-15/`,version:`2011-06-15`,serviceTarget:`AWSSecurityTokenServiceV20110615`},serviceId:e?.serviceId??`STS`,signerConstructor:e?.signerConstructor??qt,urlParser:e?.urlParser??rn,utf8Decoder:e?.utf8Decoder??Er,utf8Encoder:e?.utf8Encoder??Or}),wv=e=>{let t=cn(e),n=()=>t().then(Rn),r=Cv(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ar,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??en({serviceId:r.serviceId,clientVersion:n_.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Ht(`Region is missing`),requestHandler:dn.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||vn),sha256:e?.sha256??Wt,streamCollector:e?.streamCollector??Ln,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Tv=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Ev=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Dv=(e,t)=>{let n=Object.assign(nn(e),zn(e),xn(e),Tv(e));return t.forEach(e=>e.configure(n)),Object.assign(e,an(n),bn(n),Pn(n),Ev(n))},Ov=class extends On{config;constructor(...[e]){let t=wv(e||{});super(t),this.initConfig=t;let n=Dv($g(Sn(Mn(Jt(gn(Bn(e_(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(Kt(this.config)),this.middlewareStack.use(ln(this.config)),this.middlewareStack.use(_n(this.config)),this.middlewareStack.use(Bt(this.config)),this.middlewareStack.use($t(this.config)),this.middlewareStack.use(Xt(this.config)),this.middlewareStack.use(hn(this.config)),this.middlewareStack.use(pn(this.config,{httpAuthSchemeParametersProvider:Jg,identityProviderConfigProvider:async e=>new Ut({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(mn(this.config))}destroy(){super.destroy()}},kv=class extends L.classBuilder().ep(t_).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetCallerIdentity`,{}).n(`STSClient`,`GetCallerIdentityCommand`).sc(xv).build(){},Av=class extends L.classBuilder().ep(t_).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetSessionToken`,{}).n(`STSClient`,`GetSessionTokenCommand`).sc(Sv).build(){},jv=`ap-southeast-2`,Mv=9999,Nv=class extends Error{status;constructor(e,t,n){super(e),this.name=t,this.status=n}};function Pv(e,t){let n=`<${t}>`,r=``,i=e.indexOf(n);if(i===-1)return null;let a=e.indexOf(r,i+n.length);return a===-1?null:e.slice(i+n.length,a)}async function Fv({action:e,credentials:t,service:n=`spinifex`}){let r=window.location.protocol.replace(`:`,``),i=`Action=${e}`,a=new Yt({method:`POST`,protocol:r,hostname:`localhost`,port:Mv,path:`/`,headers:{host:`localhost:${Mv}`,"content-type":`application/x-www-form-urlencoded`},body:i}),o=await new sn({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken},region:jv,service:n,sha256:Wt}).sign(a),s={};for(let[e,t]of Object.entries(o.headers))typeof t==`string`&&(s[e]=t);let c=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,l=await fetch(c,{method:`POST`,headers:s,body:i});if(!l.ok){let t=await l.text().catch(()=>``),n=Pv(t,`Code`),r=Pv(t,`Message`)??t;throw new Nv(`${e} failed: ${l.status}${r?` - ${r}`:``}`,n??`SignedFetchError`,l.status)}return await l.json()}var Iv=`ap-southeast-2`,Lv=`${window.location.protocol}//localhost:9999`,Rv=43200;function zv(e){e.middlewareStack.add(e=>async t=>(Yt.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}function Bv(e){let t=new Ov({endpoint:Lv,region:Iv,credentials:e});return zv(t),t}function Vv(){let e=Nn();if(!e)throw Error(`AWS credentials not configured`);return Bv({accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken})}async function Hv(e){let t=(await Bv(e).send(new Av({DurationSeconds:Rv}))).Credentials;if(!t?.AccessKeyId||!t.SecretAccessKey||!t.SessionToken||!t.Expiration)throw Error(`GetSessionToken returned incomplete credentials`);return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.SessionToken,expiration:t.Expiration.toISOString()}}var Uv=`000000000001`;function Wv(e){let t=e?.indexOf(`:user/`)??-1;return t===-1||e===void 0?null:e.slice(t+6)||null}var Gv=(0,U.createContext)(void 0);function Kv({children:e}){let[t,n]=(0,U.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,U.useEffect)(()=>{async function e(){let e=Nn();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await Vv().send(new kv({})),r=t.Account??null,i=r===Uv,a=null;if(i)try{a=await Fv({action:`GetVersion`,credentials:e})}catch{}n({isAdmin:i,accountId:r,userName:Wv(t.Arn),version:a,license:a?.license??null,loading:!1})}catch{n(e=>({...e,loading:!1}))}}e()},[]),(0,W.jsx)(Gv,{value:t,children:e})}function qv(){let e=(0,U.useContext)(Gv);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}var Jv=new Set([`InvalidClientTokenId`,`SignatureDoesNotMatch`,`AuthFailure`,`MissingAuthenticationToken`,`IncompleteSignature`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function Yv(e){if(typeof e!=`object`||!e||!(`name`in e))return!1;let{name:t}=e;return typeof t==`string`&&Jv.has(t)}var Xv=class extends L.classBuilder().ep(Qe).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ListCertificates`,{}).n(`ACMClient`,`ListCertificatesCommand`).sc(at).build(){},Zv=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAddresses`,{}).n(`EC2Client`,`DescribeAddressesCommand`).sc(Pe).build(){},Qv=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAvailabilityZones`,{}).n(`EC2Client`,`DescribeAvailabilityZonesCommand`).sc(Fe).build(){},$v=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeIamInstanceProfileAssociations`,{}).n(`EC2Client`,`DescribeIamInstanceProfileAssociationsCommand`).sc(ye).build(){},ey=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeImages`,{}).n(`EC2Client`,`DescribeImagesCommand`).sc(Ee).build(){},ty=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstances`,{}).n(`EC2Client`,`DescribeInstancesCommand`).sc(Le).build(){},ny=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstanceTypes`,{}).n(`EC2Client`,`DescribeInstanceTypesCommand`).sc(Ne).build(){},ry=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInternetGateways`,{}).n(`EC2Client`,`DescribeInternetGatewaysCommand`).sc(kt).build(){},iy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeKeyPairs`,{}).n(`EC2Client`,`DescribeKeyPairsCommand`).sc(_e).build(){},ay=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeNatGateways`,{}).n(`EC2Client`,`DescribeNatGatewaysCommand`).sc(He).build(){},oy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribePlacementGroups`,{}).n(`EC2Client`,`DescribePlacementGroupsCommand`).sc(we).build(){},sy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRegions`,{}).n(`EC2Client`,`DescribeRegionsCommand`).sc(ze).build(){},cy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRouteTables`,{}).n(`EC2Client`,`DescribeRouteTablesCommand`).sc(Ge).build(){},ly=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSecurityGroups`,{}).n(`EC2Client`,`DescribeSecurityGroupsCommand`).sc(xe).build(){},uy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSnapshots`,{}).n(`EC2Client`,`DescribeSnapshotsCommand`).sc(je).build(){},dy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSubnets`,{}).n(`EC2Client`,`DescribeSubnetsCommand`).sc(vt).build(){},fy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVolumes`,{}).n(`EC2Client`,`DescribeVolumesCommand`).sc(Oe).build(){},py=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVpcs`,{}).n(`EC2Client`,`DescribeVpcsCommand`).sc(Ye).build(){},my=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAccessEntry`,{}).n(`EKSClient`,`DescribeAccessEntryCommand`).sc(At).build(){},hy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAddon`,{}).n(`EKSClient`,`DescribeAddonCommand`).sc(ve).build(){},gy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAddonVersions`,{}).n(`EKSClient`,`DescribeAddonVersionsCommand`).sc(Ue).build(){},_y=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeCluster`,{}).n(`EKSClient`,`DescribeClusterCommand`).sc(Te).build(){},vy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeNodegroup`,{}).n(`EKSClient`,`DescribeNodegroupCommand`).sc(Be).build(){},yy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAccessEntries`,{}).n(`EKSClient`,`ListAccessEntriesCommand`).sc(Se).build(){},by=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAccessPolicies`,{}).n(`EKSClient`,`ListAccessPoliciesCommand`).sc(Me).build(){},xy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAddons`,{}).n(`EKSClient`,`ListAddonsCommand`).sc(yt).build(){},Sy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAssociatedAccessPolicies`,{}).n(`EKSClient`,`ListAssociatedAccessPoliciesCommand`).sc(ke).build(){},Cy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListClusters`,{}).n(`EKSClient`,`ListClustersCommand`).sc(Xe).build(){},wy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListNodegroups`,{}).n(`EKSClient`,`ListNodegroupsCommand`).sc(qe).build(){},Ty=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeListeners`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeListenersCommand`).sc(it).build(){},Ey=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancerAttributesCommand`).sc(gt).build(){},Dy=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancers`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancersCommand`).sc(pt).build(){},Oy=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeRules`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeRulesCommand`).sc(ct).build(){},ky=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeSSLPolicies`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeSSLPoliciesCommand`).sc(ot).build(){},Ay=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTags`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTagsCommand`).sc($e).build(){},jy=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupAttributesCommand`).sc(Tt).build(){},My=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroups`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupsCommand`).sc(Ot).build(){},Ny=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetHealth`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetHealthCommand`).sc(nt).build(){},Py=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetInstanceProfile`,{}).n(`IAMClient`,`GetInstanceProfileCommand`).sc(ge).build(){},Fy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicy`,{}).n(`IAMClient`,`GetPolicyCommand`).sc(Ve).build(){},Iy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicyVersion`,{}).n(`IAMClient`,`GetPolicyVersionCommand`).sc(Ce).build(){},Ly=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetRole`,{}).n(`IAMClient`,`GetRoleCommand`).sc(Re).build(){},Ry=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetUser`,{}).n(`IAMClient`,`GetUserCommand`).sc(We).build(){},zy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAccessKeys`,{}).n(`IAMClient`,`ListAccessKeysCommand`).sc(be).build(){},By=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedRolePolicies`,{}).n(`IAMClient`,`ListAttachedRolePoliciesCommand`).sc(Ae).build(){},Vy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedUserPolicies`,{}).n(`IAMClient`,`ListAttachedUserPoliciesCommand`).sc(_t).build(){},Hy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfiles`,{}).n(`IAMClient`,`ListInstanceProfilesCommand`).sc(De).build(){},Uy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfilesForRole`,{}).n(`IAMClient`,`ListInstanceProfilesForRoleCommand`).sc(Je).build(){},Wy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListPolicies`,{}).n(`IAMClient`,`ListPoliciesCommand`).sc(Ke).build(){},Gy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListRoles`,{}).n(`IAMClient`,`ListRolesCommand`).sc(Ze).build(){},Ky=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListUsers`,{}).n(`IAMClient`,`ListUsersCommand`).sc(Ie).build(){},qy=class extends L.classBuilder().ep(Et).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions()),tt(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(dt).build(){},Jy=class extends L.classBuilder().ep({...Et,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[R(n,e.getEndpointParameterInstructions()),tt(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(st).build(){},Yy=!1;function Xy(e,t){Yy||!Yv(e)||(Yy=!0,An(),St(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function Zy(){let e=new ji({queryCache:new Ai({onError:t=>Xy(t,e)}),mutationCache:new Oi({onError:t=>Xy(t,e)}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function Qy(){let e=(0,ms.c)(8),{theme:t,setTheme:n}=vs(),r;e[0]!==n||e[1]!==t?(r=()=>{n(t===`light`?`dark`:t===`dark`?`light`:`dark`)},e[0]=n,e[1]=t,e[2]=r):r=e[2];let i=r,a,o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,W.jsx)(ec,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,W.jsx)(Ks,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,W.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`}),e[3]=a,e[4]=o,e[5]=s):(a=e[3],o=e[4],s=e[5]);let c;return e[6]===i?c=e[7]:(c=(0,W.jsxs)(ar,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function $y(){let e=(0,ms.c)(7),{isAdmin:t,license:n}=qv(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=un(`z-50 flex h-10 shrink-0 items-center gap-2 border-b border-sidebar-border bg-sidebar px-4 text-sidebar-foreground`,`sticky top-0`),a=(0,W.jsx)(fg,{className:`-ml-1`}),e[0]=i,e[1]=a):(i=e[0],a=e[1]);let o;e[2]===r?o=e[3]:(o=r&&(0,W.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:un(tr({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,W.jsx)(Qy,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,W.jsxs)(`header`,{className:i,children:[a,(0,W.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function eb(){let e=(0,ms.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,W.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,W.jsx)(wt,{to:`/`,children:(0,W.jsx)(ar,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function tb(){let e=(0,ms.c)(194),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:nb},e[0]=t):t=e[0];let n=is(t),r=No(),i=Ni(),{isAdmin:a}=qv(),o;e[1]!==r||e[2]!==i?(o=function(){An(),St(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=o):o=e[3];let s=o,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsxs)(mg,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,W.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,W.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=c):c=e[4];let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsx)(yg,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,W.jsx)(Rs,{className:`size-4`}),f=(0,W.jsx)(`span`,{children:`Dashboard`}),e[6]=d,e[7]=f):(d=e[6],f=e[7]);let p;e[8]===u?p=e[9]:(p=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/`,children:(0,W.jsxs)(Cg,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/nodes`,children:(0,W.jsxs)(Cg,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,W.jsx)(Zs,{className:`size-4`}),(0,W.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=a,e[11]=n,e[12]=m):m=e[12];let h;e[13]!==p||e[14]!==m?(h=(0,W.jsxs)(vg,{children:[l,(0,W.jsxs)(bg,{children:[p,m]})]}),e[13]=p,e[14]=m,e[15]=h):h=e[15];let g;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,W.jsx)(yg,{children:`EC2`}),e[16]=g):g=e[16];let _;e[17]===n?_=e[18]:(_=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=_);let v,y;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,W.jsx)(Zs,{className:`size-4`}),y=(0,W.jsx)(`span`,{children:`Instances`}),e[19]=v,e[20]=y):(v=e[19],y=e[20]);let b;e[21]===_?b=e[22]:(b=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-instances`,children:(0,W.jsxs)(Cg,{isActive:_,tooltip:`Instances`,children:[v,y]})})}),e[21]=_,e[22]=b);let x;e[23]===n?x=e[24]:(x=n.startsWith(`/ec2/describe-images`),e[23]=n,e[24]=x);let S,C;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,W.jsx)(Bs,{className:`size-4`}),C=(0,W.jsx)(`span`,{children:`Images`}),e[25]=S,e[26]=C):(S=e[25],C=e[26]);let w;e[27]===x?w=e[28]:(w=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-images`,children:(0,W.jsxs)(Cg,{isActive:x,tooltip:`Images`,children:[S,C]})})}),e[27]=x,e[28]=w);let T;e[29]===n?T=e[30]:(T=n.startsWith(`/ec2/describe-key-pairs`),e[29]=n,e[30]=T);let E,D;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,W.jsx)(Vs,{className:`size-4`}),D=(0,W.jsx)(`span`,{children:`Key Pairs`}),e[31]=E,e[32]=D):(E=e[31],D=e[32]);let O;e[33]===T?O=e[34]:(O=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-key-pairs`,children:(0,W.jsxs)(Cg,{isActive:T,tooltip:`Key Pairs`,children:[E,D]})})}),e[33]=T,e[34]=O);let k;e[35]===n?k=e[36]:(k=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[35]=n,e[36]=k);let A,j;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,W.jsx)(Gs,{className:`size-4`}),j=(0,W.jsx)(`span`,{children:`Elastic IPs`}),e[37]=A,e[38]=j):(A=e[37],j=e[38]);let M;e[39]===k?M=e[40]:(M=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-addresses`,children:(0,W.jsxs)(Cg,{isActive:k,tooltip:`Elastic IPs`,children:[A,j]})})}),e[39]=k,e[40]=M);let ee;e[41]===n?ee=e[42]:(ee=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[41]=n,e[42]=ee);let N,P;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,W.jsx)(Ls,{className:`size-4`}),P=(0,W.jsx)(`span`,{children:`Volumes`}),e[43]=N,e[44]=P):(N=e[43],P=e[44]);let te;e[45]===ee?te=e[46]:(te=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-volumes`,children:(0,W.jsxs)(Cg,{isActive:ee,tooltip:`Volumes`,children:[N,P]})})}),e[45]=ee,e[46]=te);let ne;e[47]===n?ne=e[48]:(ne=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[47]=n,e[48]=ne);let re,ie;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,W.jsx)(Ns,{className:`size-4`}),ie=(0,W.jsx)(`span`,{children:`Snapshots`}),e[49]=re,e[50]=ie):(re=e[49],ie=e[50]);let ae;e[51]===ne?ae=e[52]:(ae=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-snapshots`,children:(0,W.jsxs)(Cg,{isActive:ne,tooltip:`Snapshots`,children:[re,ie]})})}),e[51]=ne,e[52]=ae);let F;e[53]===n?F=e[54]:(F=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[53]=n,e[54]=F);let oe,se;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,W.jsx)(Hs,{className:`size-4`}),se=(0,W.jsx)(`span`,{children:`Placement Groups`}),e[55]=oe,e[56]=se):(oe=e[55],se=e[56]);let I;e[57]===F?I=e[58]:(I=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-placement-groups`,children:(0,W.jsxs)(Cg,{isActive:F,tooltip:`Placement Groups`,children:[oe,se]})})}),e[57]=F,e[58]=I);let ce;e[59]===n?ce=e[60]:(ce=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[59]=n,e[60]=ce);let le,ue;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,W.jsx)(rc,{className:`size-4`}),ue=(0,W.jsx)(`span`,{children:`Load Balancers`}),e[61]=le,e[62]=ue):(le=e[61],ue=e[62]);let de;e[63]===ce?de=e[64]:(de=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-load-balancers`,children:(0,W.jsxs)(Cg,{isActive:ce,tooltip:`Load Balancers`,children:[le,ue]})})}),e[63]=ce,e[64]=de);let fe;e[65]===n?fe=e[66]:(fe=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[65]=n,e[66]=fe);let pe,me;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,W.jsx)(Fs,{className:`size-4`}),me=(0,W.jsx)(`span`,{children:`Target Groups`}),e[67]=pe,e[68]=me):(pe=e[67],me=e[68]);let he;e[69]===fe?he=e[70]:(he=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-target-groups`,children:(0,W.jsxs)(Cg,{isActive:fe,tooltip:`Target Groups`,children:[pe,me]})})}),e[69]=fe,e[70]=he);let ge;e[71]!==b||e[72]!==w||e[73]!==O||e[74]!==M||e[75]!==te||e[76]!==ae||e[77]!==I||e[78]!==de||e[79]!==he?(ge=(0,W.jsxs)(vg,{children:[g,(0,W.jsxs)(bg,{children:[b,w,O,M,te,ae,I,de,he]})]}),e[71]=b,e[72]=w,e[73]=O,e[74]=M,e[75]=te,e[76]=ae,e[77]=I,e[78]=de,e[79]=he,e[80]=ge):ge=e[80];let _e;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,W.jsx)(yg,{children:`Networking`}),e[81]=_e):_e=e[81];let ve;e[82]===n?ve=e[83]:(ve=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[82]=n,e[83]=ve);let ye,be;e[84]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,W.jsx)(qs,{className:`size-4`}),be=(0,W.jsx)(`span`,{children:`VPCs`}),e[84]=ye,e[85]=be):(ye=e[84],be=e[85]);let xe;e[86]===ve?xe=e[87]:(xe=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-vpcs`,children:(0,W.jsxs)(Cg,{isActive:ve,tooltip:`VPCs`,children:[ye,be]})})}),e[86]=ve,e[87]=xe);let Se;e[88]===n?Se=e[89]:(Se=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[88]=n,e[89]=Se);let Ce,we;e[90]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,W.jsx)(Us,{className:`size-4`}),we=(0,W.jsx)(`span`,{children:`Subnets`}),e[90]=Ce,e[91]=we):(Ce=e[90],we=e[91]);let Te;e[92]===Se?Te=e[93]:(Te=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-subnets`,children:(0,W.jsxs)(Cg,{isActive:Se,tooltip:`Subnets`,children:[Ce,we]})})}),e[92]=Se,e[93]=Te);let Ee;e[94]===n?Ee=e[95]:(Ee=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[94]=n,e[95]=Ee);let De,Oe;e[96]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,W.jsx)(Qs,{className:`size-4`}),Oe=(0,W.jsx)(`span`,{children:`Security Groups`}),e[96]=De,e[97]=Oe):(De=e[96],Oe=e[97]);let ke;e[98]===Ee?ke=e[99]:(ke=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-security-groups`,children:(0,W.jsxs)(Cg,{isActive:Ee,tooltip:`Security Groups`,children:[De,Oe]})})}),e[98]=Ee,e[99]=ke);let Ae;e[100]===n?Ae=e[101]:(Ae=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[100]=n,e[101]=Ae);let je,Me;e[102]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,W.jsx)(Xs,{className:`size-4`}),Me=(0,W.jsx)(`span`,{children:`Route Tables`}),e[102]=je,e[103]=Me):(je=e[102],Me=e[103]);let Ne;e[104]===Ae?Ne=e[105]:(Ne=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-route-tables`,children:(0,W.jsxs)(Cg,{isActive:Ae,tooltip:`Route Tables`,children:[je,Me]})})}),e[104]=Ae,e[105]=Ne);let Pe;e[106]===n?Pe=e[107]:(Pe=n.startsWith(`/ec2/describe-internet-gateways`),e[106]=n,e[107]=Pe);let Fe,Ie;e[108]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,W.jsx)(Is,{className:`size-4`}),Ie=(0,W.jsx)(`span`,{children:`Internet Gateways`}),e[108]=Fe,e[109]=Ie):(Fe=e[108],Ie=e[109]);let Le;e[110]===Pe?Le=e[111]:(Le=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-internet-gateways`,children:(0,W.jsxs)(Cg,{isActive:Pe,tooltip:`Internet Gateways`,children:[Fe,Ie]})})}),e[110]=Pe,e[111]=Le);let Re;e[112]===n?Re=e[113]:(Re=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[112]=n,e[113]=Re);let ze,Be;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,W.jsx)(Ys,{className:`size-4`}),Be=(0,W.jsx)(`span`,{children:`NAT Gateways`}),e[114]=ze,e[115]=Be):(ze=e[114],Be=e[115]);let Ve;e[116]===Re?Ve=e[117]:(Ve=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-nat-gateways`,children:(0,W.jsxs)(Cg,{isActive:Re,tooltip:`NAT Gateways`,children:[ze,Be]})})}),e[116]=Re,e[117]=Ve);let He;e[118]!==xe||e[119]!==Te||e[120]!==ke||e[121]!==Ne||e[122]!==Le||e[123]!==Ve?(He=(0,W.jsxs)(vg,{children:[_e,(0,W.jsxs)(bg,{children:[xe,Te,ke,Ne,Le,Ve]})]}),e[118]=xe,e[119]=Te,e[120]=ke,e[121]=Ne,e[122]=Le,e[123]=Ve,e[124]=He):He=e[124];let Ue;e[125]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,W.jsx)(yg,{children:`EKS`}),e[125]=Ue):Ue=e[125];let We;e[126]===n?We=e[127]:(We=n.startsWith(`/eks/list-clusters`)||n.startsWith(`/eks/create-cluster`),e[126]=n,e[127]=We);let Ge,Ke;e[128]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,W.jsx)(Ms,{className:`size-4`}),Ke=(0,W.jsx)(`span`,{children:`Clusters`}),e[128]=Ge,e[129]=Ke):(Ge=e[128],Ke=e[129]);let qe;e[130]===We?qe=e[131]:(qe=(0,W.jsxs)(vg,{children:[Ue,(0,W.jsx)(bg,{children:(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/eks/list-clusters`,children:(0,W.jsxs)(Cg,{isActive:We,tooltip:`Clusters`,children:[Ge,Ke]})})})})]}),e[130]=We,e[131]=qe);let Je;e[132]===Symbol.for(`react.memo_cache_sentinel`)?(Je=(0,W.jsx)(yg,{children:`IAM`}),e[132]=Je):Je=e[132];let Ye;e[133]===n?Ye=e[134]:(Ye=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[133]=n,e[134]=Ye);let Xe,Ze;e[135]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,W.jsx)(nc,{className:`size-4`}),Ze=(0,W.jsx)(`span`,{children:`Users`}),e[135]=Xe,e[136]=Ze):(Xe=e[135],Ze=e[136]);let Qe;e[137]===Ye?Qe=e[138]:(Qe=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/iam/list-users`,children:(0,W.jsxs)(Cg,{isActive:Ye,tooltip:`Users`,children:[Xe,Ze]})})}),e[137]=Ye,e[138]=Qe);let $e;e[139]===n?$e=e[140]:($e=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[139]=n,e[140]=$e);let et,tt;e[141]===Symbol.for(`react.memo_cache_sentinel`)?(et=(0,W.jsx)($s,{className:`size-4`}),tt=(0,W.jsx)(`span`,{children:`Policies`}),e[141]=et,e[142]=tt):(et=e[141],tt=e[142]);let nt;e[143]===$e?nt=e[144]:(nt=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/iam/list-policies`,children:(0,W.jsxs)(Cg,{isActive:$e,tooltip:`Policies`,children:[et,tt]})})}),e[143]=$e,e[144]=nt);let rt;e[145]===n?rt=e[146]:(rt=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[145]=n,e[146]=rt);let it,at;e[147]===Symbol.for(`react.memo_cache_sentinel`)?(it=(0,W.jsx)(tc,{className:`size-4`}),at=(0,W.jsx)(`span`,{children:`Roles`}),e[147]=it,e[148]=at):(it=e[147],at=e[148]);let ot;e[149]===rt?ot=e[150]:(ot=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/iam/list-roles`,children:(0,W.jsxs)(Cg,{isActive:rt,tooltip:`Roles`,children:[it,at]})})}),e[149]=rt,e[150]=ot);let st;e[151]===n?st=e[152]:(st=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[151]=n,e[152]=st);let ct,lt;e[153]===Symbol.for(`react.memo_cache_sentinel`)?(ct=(0,W.jsx)(zs,{className:`size-4`}),lt=(0,W.jsx)(`span`,{children:`Instance Profiles`}),e[153]=ct,e[154]=lt):(ct=e[153],lt=e[154]);let ut;e[155]===st?ut=e[156]:(ut=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/iam/list-instance-profiles`,children:(0,W.jsxs)(Cg,{isActive:st,tooltip:`Instance Profiles`,children:[ct,lt]})})}),e[155]=st,e[156]=ut);let dt;e[157]!==Qe||e[158]!==nt||e[159]!==ot||e[160]!==ut?(dt=(0,W.jsxs)(vg,{children:[Je,(0,W.jsxs)(bg,{children:[Qe,nt,ot,ut]})]}),e[157]=Qe,e[158]=nt,e[159]=ot,e[160]=ut,e[161]=dt):dt=e[161];let ft;e[162]===Symbol.for(`react.memo_cache_sentinel`)?(ft=(0,W.jsx)(yg,{children:`S3`}),e[162]=ft):ft=e[162];let pt;e[163]===n?pt=e[164]:(pt=n.startsWith(`/s3/ls`),e[163]=n,e[164]=pt);let mt,ht;e[165]===Symbol.for(`react.memo_cache_sentinel`)?(ht=(0,W.jsx)(Zs,{className:`size-4`}),mt=(0,W.jsx)(`span`,{children:`Buckets`}),e[165]=mt,e[166]=ht):(mt=e[165],ht=e[166]);let gt;e[167]===pt?gt=e[168]:(gt=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/s3/ls`,children:(0,W.jsxs)(Cg,{isActive:pt,tooltip:`Buckets`,children:[ht,mt]})})}),e[167]=pt,e[168]=gt);let _t;e[169]!==a||e[170]!==n?(_t=a&&(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/s3/service-metrics`,children:(0,W.jsxs)(Cg,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,W.jsx)(As,{className:`size-4`}),(0,W.jsx)(`span`,{children:`Service Metrics`})]})})}),e[169]=a,e[170]=n,e[171]=_t):_t=e[171];let vt;e[172]!==gt||e[173]!==_t?(vt=(0,W.jsxs)(vg,{children:[ft,(0,W.jsxs)(bg,{children:[gt,_t]})]}),e[172]=gt,e[173]=_t,e[174]=vt):vt=e[174];let yt;e[175]===a?yt=e[176]:(yt=a&&(0,W.jsxs)(vg,{children:[(0,W.jsx)(yg,{children:`Documentation`}),(0,W.jsx)(bg,{children:(0,W.jsx)(xg,{children:(0,W.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,W.jsxs)(Cg,{tooltip:`Documentation`,children:[(0,W.jsx)(js,{className:`size-4`}),(0,W.jsx)(`span`,{children:`Docs`})]})})})})]}),e[175]=a,e[176]=yt);let bt;e[177]!==vt||e[178]!==yt||e[179]!==ge||e[180]!==He||e[181]!==qe||e[182]!==h||e[183]!==dt?(bt=(0,W.jsxs)(_g,{children:[h,ge,He,qe,dt,vt,yt]}),e[177]=vt,e[178]=yt,e[179]=ge,e[180]=He,e[181]=qe,e[182]=h,e[183]=dt,e[184]=bt):bt=e[184];let xt;e[185]===Symbol.for(`react.memo_cache_sentinel`)?(xt=(0,W.jsx)(gg,{className:`mx-0 w-full`}),e[185]=xt):xt=e[185];let Ct,Tt;e[186]===Symbol.for(`react.memo_cache_sentinel`)?(Ct=(0,W.jsx)(Ws,{className:`size-4`}),Tt=(0,W.jsx)(`span`,{children:`Sign out`}),e[186]=Ct,e[187]=Tt):(Ct=e[186],Tt=e[187]);let Et;e[188]===s?Et=e[189]:(Et=(0,W.jsxs)(hg,{children:[xt,(0,W.jsx)(bg,{children:(0,W.jsx)(xg,{children:(0,W.jsxs)(Cg,{onClick:s,tooltip:`Sign out`,children:[Ct,Tt]})})})]}),e[188]=s,e[189]=Et);let Dt;e[190]===Symbol.for(`react.memo_cache_sentinel`)?(Dt=(0,W.jsx)(pg,{}),e[190]=Dt):Dt=e[190];let Ot;return e[191]!==bt||e[192]!==Et?(Ot=(0,W.jsxs)(dg,{collapsible:`icon`,children:[c,bt,Et,Dt]}),e[191]=bt,e[192]=Et,e[193]=Ot):Ot=e[193],Ot}function nb(e){return e.pathname}function rb(e){let t=(0,ms.c)(18),{error:n,reset:r}=e,i=M(),a=Ni(),o;t[0]!==a||t[1]!==r||t[2]!==i?(o=function(){a.invalidateQueries(),r(),i.invalidate()},t[0]=a,t[1]=r,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsx)(tb,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsx)($y,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,W.jsx)(`div`,{className:`flex justify-center`,children:(0,W.jsx)(Ps,{className:`size-12 text-destructive`})}),d=(0,W.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f=n.message||`An unexpected error occurred`,p;t[8]===f?p=t[9]:(p=(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,W.jsx)(ar,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let h;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,W.jsx)(wt,{to:`/`,children:(0,W.jsx)(ar,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,W.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,h]}),t[13]=m,t[14]=g);let _;return t[15]!==g||t[16]!==p?(_=(0,W.jsxs)(W.Fragment,{children:[c,(0,W.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,W.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,W.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,g]})})]})]}),t[15]=g,t[16]=p,t[17]=_):_=t[17],_}var ib=Lo()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(ls,{}),(0,W.jsx)(tb,{}),(0,W.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,W.jsx)($y,{}),(0,W.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,W.jsx)(Yo,{})})]})]}),errorComponent:rb,notFoundComponent:eb}),ab=q(`/login`)({validateSearch:e=>({reason:e.reason===`expired`?`expired`:void 0}),beforeLoad:()=>{if(Nn())throw me({to:`/`})},component:J(()=>z(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),`component`)}),ob=q(`/_auth`)({beforeLoad:()=>{if(!Nn())throw me({to:`/login`})},component:J(()=>z(()=>import(`./route.js`),__vite__mapDeps([14,1])),`component`)}),sb=a({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new Qv({});return await bt().send(e)},staleTime:3e5}),cb=a({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new ty({});return await bt().send(e)},refetchInterval:5e3}),lb=e=>a({queryKey:[`ec2`,`instances`,e],queryFn:async()=>{let t=new ty({InstanceIds:[e]});return await bt().send(t)},refetchInterval:5e3}),ub=e=>a({queryKey:[`ec2`,`iam-instance-profile-associations`,e],queryFn:async()=>{let t=new $v({Filters:[{Name:`instance-id`,Values:[e]}]});return await bt().send(t)},refetchInterval:5e3}),db=a({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new ny({Filters:[{Name:`capacity`,Values:[`true`]}]});return await bt().send(e)},refetchInterval:5e3}),fb=a({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new ey({});return await bt().send(e)}}),pb=e=>a({queryKey:[`ec2`,`images`,e??`none`],queryFn:async()=>{if(!e)return{Images:[],$metadata:{}};let t=new ey({ImageIds:[e]});return await bt().send(t)}}),mb=a({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new iy({});return await bt().send(e)}}),hb=e=>a({queryKey:[`ec2`,`keypairs`,e],queryFn:async()=>{let t=new iy({KeyPairIds:[e]});return await bt().send(t)}}),gb=a({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new sy({});return await bt().send(e)},staleTime:3e5}),_b=a({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new dy({});return await bt().send(e)}}),vb=e=>a({queryKey:[`ec2`,`subnets`,e],queryFn:async()=>{let t=new dy({SubnetIds:[e]});return await bt().send(t)}}),yb=a({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new uy({});return await bt().send(e)},refetchInterval:5e3}),bb=e=>a({queryKey:[`ec2`,`snapshots`,e],queryFn:async()=>{let t=new uy({SnapshotIds:[e]});return await bt().send(t)},refetchInterval:5e3}),xb=a({queryKey:[`ec2`,`internetGateways`],queryFn:async()=>{let e=new ry({});return await bt().send(e)},refetchInterval:5e3}),Sb=e=>a({queryKey:[`ec2`,`internetGateways`,e],queryFn:async()=>{let t=new ry({InternetGatewayIds:[e]});return await bt().send(t)},refetchInterval:5e3}),Cb=a({queryKey:[`ec2`,`routeTables`],queryFn:async()=>{let e=new cy({});return await bt().send(e)},refetchInterval:5e3}),wb=e=>a({queryKey:[`ec2`,`routeTables`,e],queryFn:async()=>{let t=new cy({RouteTableIds:[e]});return await bt().send(t)},refetchInterval:5e3}),Tb=a({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new py({});return await bt().send(e)}}),Eb=e=>a({queryKey:[`ec2`,`vpcs`,e],queryFn:async()=>{let t=new py({VpcIds:[e]});return await bt().send(t)}}),Db=a({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new oy({});return await bt().send(e)}}),Ob=e=>a({queryKey:[`ec2`,`placementGroups`,e],queryFn:async()=>{let t=new oy({GroupIds:[e]});return await bt().send(t)}}),kb=a({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new ly({});return await bt().send(e)}}),Ab=e=>a({queryKey:[`ec2`,`securityGroups`,e],queryFn:async()=>{let t=new ly({GroupIds:[e]});return await bt().send(t)}}),jb=a({queryKey:[`ec2`,`addresses`],queryFn:async()=>{let e=new Zv({});return await bt().send(e)},refetchInterval:5e3}),Mb=e=>a({queryKey:[`ec2`,`addresses`,e],queryFn:async()=>{let t=new Zv({AllocationIds:[e]});return await bt().send(t)},refetchInterval:5e3}),Nb=a({queryKey:[`ec2`,`natGateways`],queryFn:async()=>{let e=new ay({});return await bt().send(e)},refetchInterval:5e3}),Pb=e=>a({queryKey:[`ec2`,`natGateways`,e],queryFn:async()=>{let t=new ay({NatGatewayIds:[e]});return await bt().send(t)},refetchInterval:5e3}),Fb=a({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new fy({});return await bt().send(e)},refetchInterval:5e3}),Ib=e=>a({queryKey:[`ec2`,`volumes`,e],queryFn:async()=>{let t=new fy({VolumeIds:[e]});return await bt().send(t)},refetchInterval:5e3}),Lb=a({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new qy({});return await xt().send(e)}}),Rb=(e,t)=>a({queryKey:[`s3`,`buckets`,e,`objects`,t??``],queryFn:async()=>{let n=new Jy({Bucket:e,Prefix:t,Delimiter:`/`});return await xt().send(n)}}),zb=q(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(cb),e.queryClient.ensureQueryData(Fb),e.queryClient.ensureQueryData(Tb),e.queryClient.ensureQueryData(mb),e.queryClient.ensureQueryData(Lb),e.queryClient.ensureQueryData(kb),e.queryClient.ensureQueryData(Nb),e.queryClient.ensureQueryData(jb),e.queryClient.ensureQueryData(xb)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:J(()=>z(()=>import(`./_auth.js`),__vite__mapDeps([15,1,2,3,4,5,6,16,17,18,19,20,21,22,8,12,23,24])),`component`)}),Bb=q(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:J(()=>z(()=>import(`./nodes.js`),__vite__mapDeps([25,1,2,3,16,17,26,20,22,8,12,23,24])),`component`)}),Vb=q(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:J(()=>z(()=>import(`./service-metrics.js`),__vite__mapDeps([27,1,16,17,26,20,22,2,3,8,12,23,24])),`component`)}),Hb=q(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Lb)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:J(()=>z(()=>import(`./ls.js`),__vite__mapDeps([28,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),Ub=q(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:J(()=>z(()=>import(`./create-bucket.js`),__vite__mapDeps([31,1,2,3,32,5,4,6,33,11,34,35,7,8,36,18,37,38,39,20,13])),`component`)}),Wb=q(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./create-user.js`),__vite__mapDeps([40,1,41,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,20,13,42])),`component`)}),Gb=q(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./create-role.js`),__vite__mapDeps([43,1,41,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,20,13,44,42])),`component`)}),Kb=q(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./create-policy.js`),__vite__mapDeps([45,1,41,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,20,13,44,42])),`component`)}),qb=q(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./create-instance-profile.js`),__vite__mapDeps([46,1,41,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,20,13,42])),`component`)}),Jb=a({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new Ky({});return await ht().send(e)},staleTime:3e5}),Yb=e=>a({queryKey:[`iam`,`users`,e],queryFn:async()=>{let t=new Ry({UserName:e});return await ht().send(t)},staleTime:3e5}),Xb=e=>a({queryKey:[`iam`,`access-keys`,e],queryFn:async()=>{let t=new zy({UserName:e});return await ht().send(t)},staleTime:3e5}),Zb=a({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new Wy({Scope:`Local`});return await ht().send(e)},staleTime:3e5}),Qb=e=>a({queryKey:[`iam`,`policies`,e],queryFn:async()=>{let t=new Fy({PolicyArn:e});return await ht().send(t)},staleTime:3e5}),$b=(e,t)=>a({queryKey:[`iam`,`policy-versions`,e,t],queryFn:async()=>{let n=new Iy({PolicyArn:e,VersionId:t});return await ht().send(n)},staleTime:3e5}),ex=e=>a({queryKey:[`iam`,`attached-user-policies`,e],queryFn:async()=>{let t=new Vy({UserName:e});return await ht().send(t)},staleTime:3e5}),tx=a({queryKey:[`iam`,`roles`],queryFn:async()=>{let e=new Gy({});return await ht().send(e)},staleTime:3e5}),nx=e=>a({queryKey:[`iam`,`roles`,e],queryFn:async()=>{let t=new Ly({RoleName:e});return await ht().send(t)},staleTime:3e5}),rx=e=>a({queryKey:[`iam`,`attached-role-policies`,e],queryFn:async()=>{let t=new By({RoleName:e});return await ht().send(t)},staleTime:3e5}),ix=a({queryKey:[`iam`,`instance-profiles`],queryFn:async()=>{let e=new Hy({});return await ht().send(e)},staleTime:3e5}),ax=e=>a({queryKey:[`iam`,`instance-profiles`,e],queryFn:async()=>{let t=new Py({InstanceProfileName:e});return await ht().send(t)},staleTime:3e5}),ox=e=>a({queryKey:[`iam`,`instance-profiles-for-role`,e],queryFn:async()=>{let t=new Uy({RoleName:e});return await ht().send(t)},staleTime:3e5}),sx=q(`/_auth/eks/(clusters)/create-cluster`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Tb),e.queryClient.ensureQueryData(_b),e.queryClient.ensureQueryData(tx),e.queryClient.ensureQueryData(fb)])},head:()=>({meta:[{title:`Create Cluster | EKS | Mulga`}]}),component:J(()=>z(()=>import(`./create-cluster.js`),__vite__mapDeps([47,1,2,3,48,4,5,6,33,49,7,8,50,51,10,36,18,11,29,17,34,37,52,53,39,20,13,38,54])),`component`)}),cx=q(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-vpc.js`),__vite__mapDeps([55,1,56,2,3,4,5,6,33,49,7,8,50,51,10,36,18,11,34,19,35,37,38,39,20,13,57])),`component`)}),lx=q(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(sb)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-volume.js`),__vite__mapDeps([58,1,56,2,3,4,5,6,33,49,50,7,8,51,10,36,18,11,29,17,34,35,37,38,39,20,13,57])),`component`)}),ux=q(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Tb)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-target-group.js`),__vite__mapDeps([59,1,60,2,3,4,5,6,33,11,29,17,34,35,7,8,36,18,37,38,61,9,10,50,51,62,63,13,39,20,64])),`component`)}),dx=q(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Tb),e.queryClient.ensureQueryData(sb)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-subnet.js`),__vite__mapDeps([65,1,2,3,56,4,5,6,33,49,50,7,8,51,10,36,18,11,29,17,34,35,37,38,39,20,13,57])),`component`)}),fx=q(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fb)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-snapshot.js`),__vite__mapDeps([66,1,56,2,3,4,5,6,33,49,50,7,8,51,10,36,18,11,29,17,34,35,37,38,39,20,13,44,57])),`component`)}),px=q(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Tb)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-security-group.js`),__vite__mapDeps([67,1,2,3,56,4,5,6,33,49,50,7,8,51,10,36,18,11,29,17,34,35,37,38,39,20,13,57])),`component`)}),mx=q(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Tb)},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-route-table.js`),__vite__mapDeps([68,1,2,3,56,4,5,6,33,49,50,7,8,51,10,36,18,11,29,17,34,39,20,13,57])),`component`)}),hx=q(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-placement-group.js`),__vite__mapDeps([69,1,56,2,3,4,5,6,33,49,50,7,8,51,10,36,18,11,34,35,37,38,39,20,13,57])),`component`)}),gx=q(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(_b),e.queryClient.ensureQueryData(jb)])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-nat-gateway.js`),__vite__mapDeps([70,1,2,3,4,5,6,56,33,49,50,7,8,51,10,36,18,11,29,17,34,35,37,38,39,20,13,57])),`component`)}),_x=a({queryKey:[`acm`,`certificates`],queryFn:async()=>{let e=new Xv({});return await mt().send(e)}}),vx=5e3,yx=a({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new Dy({});return await et().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?vx:!1}),bx=e=>a({queryKey:[`elbv2`,`loadBalancers`,e],queryFn:async()=>{let t=new Dy({LoadBalancerArns:[e]});return await et().send(t)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?vx:!1}),xx=e=>a({queryKey:[`elbv2`,`loadBalancers`,e,`attributes`],queryFn:async()=>{let t=new Ey({LoadBalancerArn:e});return await et().send(t)}}),Sx=a({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new My({});return await et().send(e)}}),Cx=e=>a({queryKey:[`elbv2`,`targetGroups`,e],queryFn:async()=>{let t=new My({TargetGroupArns:[e]});return await et().send(t)}}),wx=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`attributes`],queryFn:async()=>{let t=new jy({TargetGroupArn:e});return await et().send(t)}}),Tx=e=>a({queryKey:[`elbv2`,`listeners`,e],queryFn:async()=>{let t=new Ty({LoadBalancerArn:e});return await et().send(t)}}),Ex=e=>a({queryKey:[`elbv2`,`listeners`,e,`rules`],queryFn:async()=>{let t=new Oy({ListenerArn:e});return await et().send(t)}}),Dx=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`health`],queryFn:async()=>{let t=new Ny({TargetGroupArn:e});return await et().send(t)}}),Ox=a({queryKey:[`elbv2`,`sslPolicies`],queryFn:async()=>{let e=new ky({});return await et().send(e)},staleTime:1/0}),kx=e=>a({queryKey:[`elbv2`,`tags`,...e],queryFn:async()=>{let t=new Ay({ResourceArns:e});return await et().send(t)},enabled:e.length>0}),Ax=q(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Tb),e.queryClient.ensureQueryData(_b),e.queryClient.ensureQueryData(kb),e.queryClient.ensureQueryData(Sx),e.queryClient.ensureQueryData(_x),e.queryClient.ensureQueryData(Ox)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-load-balancer.js`),__vite__mapDeps([71,1,2,3,72,4,5,6,73,7,8,33,13,44,60,50,51,10,36,18,11,29,17,34,62,35,37,38,63,61,9,39,20,64])),`component`)}),jx=q(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./import-key-pair.js`),__vite__mapDeps([74,1,56,2,3,4,5,6,33,49,11,34,35,7,8,36,18,37,38,39,20,13,44,57])),`component`)}),Mx=q(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-key-pair.js`),__vite__mapDeps([75,1,56,2,3,4,5,6,33,49,73,7,8,11,34,36,76,35,18,37,38,53,39,20,13,57])),`component`)}),Nx=q(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-internet-gateway.js`),__vite__mapDeps([77,1,56,2,3,4,5,6,33,49,11,34,35,7,8,36,18,37,38,39,20,13,57])),`component`)}),Px=q(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(fb),e.queryClient.ensureQueryData(mb),e.queryClient.ensureQueryData(db),e.queryClient.ensureQueryData(_b),e.queryClient.ensureQueryData(Db),e.queryClient.ensureQueryData(Tb),e.queryClient.ensureQueryData(kb)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./run-instances.js`),__vite__mapDeps([78,1,2,3,56,4,5,6,33,49,7,8,9,10,50,51,36,18,11,29,17,34,35,37,38,20,13,57])),`component`)}),Fx=q(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./allocate-address.js`),__vite__mapDeps([79,1,56,2,3,4,5,6,33,49,11,34,35,7,8,36,18,37,38,39,20,13,57])),`component`)}),Ix=q(`/_auth/s3/ls/$bucket`)({component:J(()=>z(()=>import(`./route2.js`),__vite__mapDeps([80,1])),`component`)}),Lx=q(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Rb(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:J(()=>z(()=>import(`./_bucket.js`),__vite__mapDeps([81,1,2,3,32,5,4,6,33,82,7,8,76,63,83,73,29,17,34,20])),`component`)}),Rx=q(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Jb)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./list-users.js`),__vite__mapDeps([84,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),zx=q(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(tx)},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./list-roles.js`),__vite__mapDeps([85,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Bx=q(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Zb)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./list-policies.js`),__vite__mapDeps([86,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Vx=q(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ix)},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./list-instance-profiles.js`),__vite__mapDeps([87,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Hx=3e4,Ux=3e5,Wx=a({queryKey:[`eks`,`clusters`],queryFn:async()=>{let e=new Cy({});return await lt().send(e)},staleTime:Hx}),Gx=e=>a({queryKey:[`eks`,`clusters`,e],queryFn:async()=>{let t=new _y({name:e});return await lt().send(t)},staleTime:Hx}),Kx=e=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`],queryFn:async()=>{let t=new wy({clusterName:e});return await lt().send(t)},staleTime:Hx}),qx=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`,t],queryFn:async()=>{let n=new vy({clusterName:e,nodegroupName:t});return await lt().send(n)},staleTime:Hx}),Jx=e=>a({queryKey:[`eks`,`clusters`,e,`access-entries`],queryFn:async()=>{let t=new yy({clusterName:e});return await lt().send(t)},staleTime:Hx}),Yx=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t],queryFn:async()=>{let n=new my({clusterName:e,principalArn:t});return await lt().send(n)},staleTime:Hx}),Xx=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t,`policies`],queryFn:async()=>{let n=new Sy({clusterName:e,principalArn:t});return await lt().send(n)},staleTime:Hx});a({queryKey:[`eks`,`access-policies`],queryFn:async()=>{let e=new by({});return await lt().send(e)},staleTime:Ux});var Zx=a({queryKey:[`eks`,`addon-versions`],queryFn:async()=>{let e=new gy({});return await lt().send(e)},staleTime:Ux}),Qx=e=>a({queryKey:[`eks`,`clusters`,e,`addons`],queryFn:async()=>{let t=new xy({clusterName:e});return await lt().send(t)},staleTime:Hx}),$x=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`addons`,t],queryFn:async()=>{let n=new hy({clusterName:e,addonName:t});return await lt().send(n)},staleTime:Hx}),eS=q(`/_auth/eks/(clusters)/list-clusters/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Wx)},head:()=>({meta:[{title:`Clusters | EKS | Mulga`}]}),component:J(()=>z(()=>import(`./list-clusters.js`),__vite__mapDeps([88,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),tS=q(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Tb)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-vpcs.js`),__vite__mapDeps([89,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),nS=q(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fb)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-volumes.js`),__vite__mapDeps([90,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),rS=q(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Sx)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-target-groups.js`),__vite__mapDeps([91,1,4,2,3,5,6,7,8,16,17,29,20])),`component`)}),iS=q(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_b)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-subnets.js`),__vite__mapDeps([92,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),aS=q(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(yb)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-snapshots.js`),__vite__mapDeps([93,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),oS=q(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(kb)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-security-groups.js`),__vite__mapDeps([94,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),sS=q(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Cb)},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-route-tables.js`),__vite__mapDeps([95,1,2,3,4,5,6,7,8,29,17,30,20,22])),`component`)}),cS=q(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Db)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([96,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),lS=q(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Nb)},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-nat-gateways.js`),__vite__mapDeps([97,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),uS=q(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(yx)},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([98,1,2,3,4,5,6,7,8,29,17,20,21])),`component`)}),dS=q(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(mb)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([99,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),fS=q(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(xb)},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-internet-gateways.js`),__vite__mapDeps([100,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),pS=q(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(cb)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-instances.js`),__vite__mapDeps([101,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),mS=q(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(fb)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-images.js`),__vite__mapDeps([102,1,29,17,30,4,2,3,5,6,20,21,54])),`component`)}),hS=q(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(jb)},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-addresses.js`),__vite__mapDeps([103,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),gS=q(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=Vn(t._splat??``);await e.queryClient.ensureQueryData(Rb(t.bucket,n))},head:({params:e})=>({meta:[{title:`${tn(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:J(()=>z(()=>import(`./_.js`),__vite__mapDeps([104,1,2,3,32,5,4,6,33,82,7,8,76,63,83,73,29,17,34])),`component`)}),_S=q(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Yb(t.userName)),e.queryClient.ensureQueryData(Xb(t.userName)),e.queryClient.ensureQueryData(ex(t.userName)),e.queryClient.ensureQueryData(Zb)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./_userName.js`),__vite__mapDeps([105,1,2,3,41,4,5,6,33,73,7,8,29,17,34,36,63,53,83,106,20,21,38])),`component`)}),vS=q(`/_auth/iam/(roles)/list-roles/$roleName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(nx(t.roleName)),e.queryClient.ensureQueryData(rx(t.roleName)),e.queryClient.ensureQueryData(ox(t.roleName)),e.queryClient.ensureQueryData(Zb)])},head:({params:e})=>({meta:[{title:`${e.roleName} | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./_roleName.js`),__vite__mapDeps([107,1,2,3,4,5,6,41,33,7,8,29,17,34,63,83,73,106,20,108])),`component`)}),yS=q(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(Qb(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData($b(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./_policyArn.js`),__vite__mapDeps([109,1,2,3,41,4,5,6,33,7,8,29,17,34,63,83,73,106,20,108])),`component`)}),bS=q(`/_auth/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(ax(t.instanceProfileName)),e.queryClient.ensureQueryData(tx)])},head:({params:e})=>({meta:[{title:`${e.instanceProfileName} | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./_instanceProfileName.js`),__vite__mapDeps([110,1,2,3,4,5,6,41,33,7,8,29,17,34,63,83,73,106,20])),`component`)}),xS=q(`/_auth/eks/(clusters)/list-clusters/$clusterName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Gx(t.clusterName)),e.queryClient.ensureQueryData(Kx(t.clusterName)),e.queryClient.ensureQueryData(Jx(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.clusterName} | EKS | Mulga`}]}),component:J(()=>z(()=>import(`./_clusterName.js`),__vite__mapDeps([111,1,2,3,4,5,6,48,33,49,73,7,8,112,51,10,11,16,17,29,34,35,36,18,37,38,63,83,106,20,22,13,44])),`component`)}),SS=q(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Eb(t.id)),e.queryClient.ensureQueryData(_b)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:J(()=>z(()=>import(`./_id16.js`),__vite__mapDeps([113,1,2,3,4,5,6,56,33,49,7,8,29,17,34,63,83,73,106,20,21])),`component`)}),CS=q(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Ib(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id15.js`),__vite__mapDeps([114,1,56,2,3,4,5,6,33,49,11,29,17,34,39,7,8,20,13,57])),`component`)}),wS=q(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Ib(t.id)),e.queryClient.ensureQueryData(cb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id14.js`),__vite__mapDeps([115,1,2,3,4,5,6,56,33,49,73,7,8,50,51,10,36,18,29,17,34,63,83,106,20,21,13])),`component`)}),TS=q(`/_auth/ec2/(target-groups)/describe-target-groups/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(Cx(n)),e.queryClient.ensureQueryData(wx(n)),e.queryClient.ensureQueryData(kx([n])),e.queryClient.ensureQueryData(cb)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:J(()=>z(()=>import(`./_id13.js`),__vite__mapDeps([116,1,2,3,60,4,5,6,33,73,7,8,112,51,10,16,17,29,34,63,83,106,117,50,36,18,62,13,20])),`component`)}),ES=q(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(vb(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:J(()=>z(()=>import(`./_id12.js`),__vite__mapDeps([118,1,2,3,4,5,6,56,33,49,7,8,29,17,34,63,83,73,106,20,21])),`component`)}),DS=q(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(bb(t.id)),e.queryClient.ensureQueryData(gb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id11.js`),__vite__mapDeps([119,1,2,3,4,5,6,56,33,49,73,7,8,29,17,34,37,63,83,106,20,21,13])),`component`)}),OS=q(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Ab(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:J(()=>z(()=>import(`./_id10.js`),__vite__mapDeps([120,1,4,2,3,5,6,56,33,49,73,7,8,50,51,10,36,18,11,29,17,34,62,63,83,106,20,13,57])),`component`)}),kS=q(`/_auth/ec2/(route-tables)/describe-route-tables/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(wb(t.id)),e.queryClient.ensureQueryData(xb),e.queryClient.ensureQueryData(Nb),e.queryClient.ensureQueryData(_b)])},head:({params:e})=>({meta:[{title:`${e.id} | Route Table | Mulga`}]}),component:J(()=>z(()=>import(`./_id9.js`),__vite__mapDeps([121,1,2,3,4,5,6,56,33,49,7,8,50,51,10,36,18,11,29,17,34,63,83,73,106,20,22,13,57])),`component`)}),AS=q(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Ob(t.id)),e.queryClient.ensureQueryData(cb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id8.js`),__vite__mapDeps([122,1,4,2,3,5,6,56,33,49,7,8,29,17,34,63,83,73,106,20,21])),`component`)}),jS=q(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Pb(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | NAT Gateway | Mulga`}]}),component:J(()=>z(()=>import(`./_id7.js`),__vite__mapDeps([123,1,2,3,4,5,6,56,33,49,7,8,29,17,34,63,83,73,106,20,21])),`component`)}),MS=q(`/_auth/ec2/(load-balancers)/describe-load-balancers/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(bx(n)),e.queryClient.ensureQueryData(Tx(n)),e.queryClient.ensureQueryData(xx(n)),e.queryClient.ensureQueryData(kx([n])),e.queryClient.ensureQueryData(Sx),e.queryClient.ensureQueryData(_b)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:J(()=>z(()=>import(`./_id6.js`),__vite__mapDeps([124,1,2,3,72,4,5,6,73,7,8,33,13,44,60,50,51,10,36,18,112,11,29,17,34,63,83,106,117,62,20,21,64])),`component`)}),NS=q(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(hb(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id5.js`),__vite__mapDeps([125,1,2,3,56,4,5,6,33,49,7,8,29,17,34,63,83,73,106,20])),`component`)}),PS=q(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Sb(t.id)),e.queryClient.ensureQueryData(Tb)])},head:({params:e})=>({meta:[{title:`${e.id} | Internet Gateway | Mulga`}]}),component:J(()=>z(()=>import(`./_id4.js`),__vite__mapDeps([126,1,2,3,4,5,6,56,33,49,7,8,50,51,10,36,18,29,17,34,63,83,73,106,20])),`component`)}),FS=q(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(lb(t.id)),e.queryClient.ensureQueryData(db)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(pb(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id3.js`),__vite__mapDeps([127,1,2,3,4,5,6,56,33,49,73,7,8,50,51,10,36,18,16,17,29,34,52,63,83,106,20,21,13,44,23,24,128])),`component`)}),IS=q(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(pb(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id2.js`),__vite__mapDeps([129,1,29,17,34,4,2,3,5,6,20,21,54,128,106])),`component`)}),LS=q(`/_auth/ec2/(elastic-ips)/describe-addresses/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Mb(t.id)),e.queryClient.ensureQueryData(cb)])},head:({params:e})=>({meta:[{title:`${e.id} | Elastic IP | Mulga`}]}),component:J(()=>z(()=>import(`./_id.js`),__vite__mapDeps([130,1,2,3,56,4,5,6,33,49,7,8,50,51,10,36,18,29,17,34,63,83,73,106,20])),`component`)}),RS=ab.update({id:`/login`,path:`/login`,getParentRoute:()=>ib}),$=ob.update({id:`/_auth`,getParentRoute:()=>ib}),zS=zb.update({id:`/`,path:`/`,getParentRoute:()=>$}),BS=Bb.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>$}),VS=Vb.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>$}),HS=Hb.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>$}),US=Ub.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>$}),WS=Wb.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>$}),GS=Gb.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>$}),KS=Kb.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>$}),qS=qb.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>$}),JS=sx.update({id:`/eks/(clusters)/create-cluster`,path:`/eks/create-cluster`,getParentRoute:()=>$}),YS=cx.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>$}),XS=lx.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>$}),ZS=ux.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>$}),QS=dx.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>$}),$S=fx.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>$}),eC=px.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>$}),tC=mx.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>$}),nC=hx.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>$}),rC=gx.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>$}),iC=Ax.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>$}),aC=jx.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>$}),oC=Mx.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>$}),sC=Nx.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>$}),cC=Px.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>$}),lC=Fx.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>$}),uC=Ix.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>$}),dC=Lx.update({id:`/`,path:`/`,getParentRoute:()=>uC}),fC=Rx.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>$}),pC=zx.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>$}),mC=Bx.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>$}),hC=Vx.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>$}),gC=eS.update({id:`/eks/(clusters)/list-clusters/`,path:`/eks/list-clusters/`,getParentRoute:()=>$}),_C=tS.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>$}),vC=nS.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>$}),yC=rS.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>$}),bC=iS.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>$}),xC=aS.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>$}),SC=oS.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>$}),CC=sS.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>$}),wC=cS.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>$}),TC=lS.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>$}),EC=uS.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>$}),DC=dS.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>$}),OC=fS.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>$}),kC=pS.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>$}),AC=mS.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>$}),jC=hS.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>$}),MC=gS.update({id:`/$`,path:`/$`,getParentRoute:()=>uC}),NC=_S.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>$}),PC=vS.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>$}),FC=yS.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>$}),IC=bS.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>$}),LC=xS.update({id:`/eks/(clusters)/list-clusters/$clusterName`,path:`/eks/list-clusters/$clusterName`,getParentRoute:()=>$}),RC=SS.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>$}),zC=CS.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>$}),BC=wS.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>$}),VC=TS.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>$}),HC=ES.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>$}),UC=DS.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>$}),WC=OS.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>$}),GC=kS.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>$}),KC=AS.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>$}),qC=jS.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>$}),JC=MS.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>$}),YC=NS.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>$}),XC=PS.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>$}),ZC=FS.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>$}),QC=IS.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>$}),$C=LS.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>$}),ew={AuthS3LsBucketSplatRoute:MC,AuthS3LsBucketIndexRoute:dC},tw={AuthNodesRoute:BS,AuthIndexRoute:zS,AuthS3ServiceMetricsRoute:VS,AuthS3LsBucketRouteRoute:uC._addFileChildren(ew),AuthEc2elasticIpsAllocateAddressRoute:lC,AuthEc2instancesRunInstancesRoute:cC,AuthEc2internetGatewaysCreateInternetGatewayRoute:sC,AuthEc2keyCreateKeyPairRoute:oC,AuthEc2keyImportKeyPairRoute:aC,AuthEc2loadBalancersCreateLoadBalancerRoute:iC,AuthEc2natGatewaysCreateNatGatewayRoute:rC,AuthEc2placementGroupsCreatePlacementGroupRoute:nC,AuthEc2routeTablesCreateRouteTableRoute:tC,AuthEc2securityGroupsCreateSecurityGroupRoute:eC,AuthEc2snapshotsCreateSnapshotRoute:$S,AuthEc2subnetCreateSubnetRoute:QS,AuthEc2targetGroupsCreateTargetGroupRoute:ZS,AuthEc2volumesCreateVolumeRoute:XS,AuthEc2vpcCreateVpcRoute:YS,AuthEksclustersCreateClusterRoute:JS,AuthIaminstanceProfilesCreateInstanceProfileRoute:qS,AuthIampoliciesCreatePolicyRoute:KS,AuthIamrolesCreateRoleRoute:GS,AuthIamusersCreateUserRoute:WS,AuthS3bucketsCreateBucketRoute:US,AuthS3LsIndexRoute:HS,AuthEc2elasticIpsDescribeAddressesIdRoute:$C,AuthEc2imagesDescribeImagesIdRoute:QC,AuthEc2instancesDescribeInstancesIdRoute:ZC,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:XC,AuthEc2keyDescribeKeyPairsIdRoute:YC,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:JC,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:qC,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:KC,AuthEc2routeTablesDescribeRouteTablesIdRoute:GC,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:WC,AuthEc2snapshotsDescribeSnapshotsIdRoute:UC,AuthEc2subnetDescribeSubnetsIdRoute:HC,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:VC,AuthEc2volumesDescribeVolumesIdRoute:BC,AuthEc2volumesModifyVolumeIdRoute:zC,AuthEc2vpcDescribeVpcsIdRoute:RC,AuthEksclustersListClustersClusterNameRoute:LC,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:IC,AuthIampoliciesListPoliciesPolicyArnRoute:FC,AuthIamrolesListRolesRoleNameRoute:PC,AuthIamusersListUsersUserNameRoute:NC,AuthEc2elasticIpsDescribeAddressesIndexRoute:jC,AuthEc2imagesDescribeImagesIndexRoute:AC,AuthEc2instancesDescribeInstancesIndexRoute:kC,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:OC,AuthEc2keyDescribeKeyPairsIndexRoute:DC,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:EC,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:TC,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:wC,AuthEc2routeTablesDescribeRouteTablesIndexRoute:CC,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:SC,AuthEc2snapshotsDescribeSnapshotsIndexRoute:xC,AuthEc2subnetDescribeSubnetsIndexRoute:bC,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:yC,AuthEc2volumesDescribeVolumesIndexRoute:vC,AuthEc2vpcDescribeVpcsIndexRoute:_C,AuthEksclustersListClustersIndexRoute:gC,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:hC,AuthIampoliciesListPoliciesIndexRoute:mC,AuthIamrolesListRolesIndexRoute:pC,AuthIamusersListUsersIndexRoute:fC},nw={AuthRouteRoute:$._addFileChildren(tw),LoginRoute:RS},rw=ib._addFileChildren(nw)._addFileTypes(),iw=Zy(),aw=es({routeTree:rw,context:{queryClient:iw},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),ow=document.querySelector(`#app`);ow&&!ow.innerHTML&&ps.createRoot(ow).render((0,W.jsx)(U.StrictMode,{children:(0,W.jsx)(_s,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,W.jsx)(Pi,{client:iw,children:(0,W.jsx)(Kv,{children:(0,W.jsx)(cg,{children:(0,W.jsx)(rs,{router:aw})})})})})}));export{Zb as $,Al as $n,Mr as $r,Nm as $t,Wx as A,X as An,Ls as Ar,bb as At,kx as B,Su as Bn,fi as Br,Hv as Bt,Jx as C,Pd as Cn,ic as Cr,Ob as Ct,Qx as D,id as Dn,Ys as Dr,Cb as Dt,Zx as E,ld as En,Zs as Er,wb as Et,Tx as F,Bu as Fn,Yo as Fr,Fb as Ft,_x as G,_u as Gn,Lr as Gr,kh as Gt,Cx as H,bu as Hn,ci as Hr,Bh as Ht,xx as I,zu as In,No as Ir,Eb as It,rx as J,cu as Jn,Vr as Jr,Km as Jt,fx as K,du as Kn,ti as Kr,eh as Kt,bx as L,Du as Ln,Ni as Lr,Tb as Lt,Kx as M,Wu as Mn,Ns as Mr,vb as Mt,Lx as N,Uu as Nn,ks as Nr,_b as Nt,Xx as O,ad as On,qs as Or,Ab as Ot,Ex as P,Vu as Pn,ys as Pr,Ib as Pt,ix as Q,Nl as Qn,Pr as Qr,Pm as Qt,yx as R,Eu as Rn,Di as Rr,ab as Rt,gS as S,Nd as Sn,lc as Sr,Nb as St,$x as T,Sd as Tn,$s as Tr,gb as Tt,Sx as U,yu as Un,Kr as Ur,zh as Ut,wx as V,xu as Vn,li as Vr,Fv as Vt,Dx as W,mu as Wn,zr as Wr,Lh as Wt,ax as X,kl as Xn,oi as Xr,Im as Xt,ex as Y,jl as Yn,Xr as Yr,Lm as Yt,ox as Z,Ml as Zn,Br as Zr,Fm as Zt,xS as _,_p as _n,xc as _r,Sb as _t,NS as a,Tm as an,wl as ar,Jb as at,vS as b,Xd as bn,mc as br,mb as bt,AS as c,xm as cn,Jc as cr,Mb as ct,DS as d,Cm as dn,Bc as dr,ub as dt,jr as ei,gm as en,Ol as er,Qb as et,ES as f,Om as fn,Rc as fr,pb as ft,SS as g,xp as gn,Nc as gr,cb as gt,CS as h,Ep as hn,Mc as hr,db as ht,PS as i,hm as in,Pl as ir,Yb as it,qx as j,Gu as jn,Is as jr,yb as jt,Gx as k,td as kn,Vs as kr,kb as kt,kS as l,Em as ln,Gc as lr,jb as lt,wS as m,Gp as mn,jc as mr,lb as mt,IS as n,_m as nn,Il as nr,nx as nt,MS as o,ym as on,Yc as or,Rb as ot,TS as p,km as pn,Pc as pr,fb as pt,Xb as q,fu as qn,Hr as qr,Qm as qt,FS as r,vm as rn,El as rr,tx as rt,jS as s,bm as sn,qc as sr,Lb as st,LS as t,wm as tn,Dl as tr,$b as tt,OS as u,Sm as un,Hc as ur,sb as ut,bS as v,Q as vn,bc as vr,xb as vt,Yx as w,kd as wn,rc as wr,Db as wt,_S as x,Ud as xn,fc as xr,Pb as xt,yS as y,Rf as yn,hc as yr,hb as yt,Ox as z,Cu as zn,Ci as zr,qv as zt}; \ No newline at end of file +`+e.stack}}var be=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,Ce=t.unstable_shouldYield,we=t.unstable_requestPaint,Te=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function We(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ge(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Je(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Ye(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function L(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e=Gn),Jn=` `,Yn=!1;function Xn(e,t){switch(e){case`keyup`:return Un.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Zn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Qn=!1;function $n(e,t){switch(e){case`compositionend`:return Zn(t);case`keypress`:return t.which===32?(Yn=!0,Jn):null;case`textInput`:return e=t.data,e===Jn&&Yn?null:e;default:return null}}function er(e,t){if(Qn)return e===`compositionend`||!Wn&&Xn(e,t)?(e=L(),hn=mn=pn=null,Qn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=br(n)}}function Sr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Tr=un&&`documentMode`in document&&11>=document.documentMode,H=null,Er=null,Dr=null,Or=!1;function kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Or||H==null||H!==Lt(r)||(r=H,`selectionStart`in r&&wr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Dr&&yr(Dr,r)||(Dr=r,r=Dd(Er,`onSelect`),0>=o,i-=o,xi=1<<32-Le(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ai&&Ci(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Ai&&Ci(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ai&&Ci(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Ai&&Ci(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Sa(l)===r.type){n(e,r.sibling),c=i(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=ci(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=si(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=di(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Sa(o),b(e,r,o,c)}if(ee(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Oa(o),c);if(o.$$typeof===x)return b(e,r,Xi(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=li(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=ri(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Il&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ei(e),$r(e,null,n),t}return Xr(e,r,t,n),ei(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=sa;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Y&f)===f:(r&f)===f){f!==0&&f===oa&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Pa=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=N.T,s={};N.T=s,ks(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Os(e,t,ua(c,r),mu(e)):Os(e,t,r,mu(e))}catch(n){Os(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function vs(){}function ys(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=bs(e).queue;_s(e,i,t,te,n===null?vs:function(){return xs(e),n(r)})}function bs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xs(e){var t=bs(e);t.next===null&&(t=e.alternate.memoizedState),Os(e,t.next.queue,{},mu())}function Ss(){return Yi(ep)}function Cs(){return Eo().memoizedState}function ws(){return Eo().memoizedState}function Ts(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=La(n);var r=Ra(t,e,n);r!==null&&(gu(r,t,n),za(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function Es(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},As(e)?js(t,n):(n=Zr(e,t,n,r),n!==null&&(gu(n,e,r),Ms(n,t,r)))}function Ds(e,t,n){Os(e,t,n,mu())}function Os(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(As(e))js(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,vr(s,o))return Xr(e,t,i,0),Ll===null&&Yr(),!1}catch{}if(n=Zr(e,t,i,r),n!==null)return gu(n,e,r),Ms(n,t,r),!0}return!1}function ks(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},As(e)){if(t)throw Error(a(479))}else t=Zr(e,n,r,2),t!==null&&gu(t,e,2)}function As(e){var t=e.alternate;return e===G||t!==null&&t===G}function js(e,t){lo=co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ms(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Ns={readContext:Yi,use:ko,useCallback:go,useContext:go,useEffect:go,useImperativeHandle:go,useLayoutEffect:go,useInsertionEffect:go,useMemo:go,useReducer:go,useRef:go,useState:go,useDebugValue:go,useDeferredValue:go,useTransition:go,useSyncExternalStore:go,useId:go,useHostTransitionStatus:go,useFormState:go,useActionState:go,useOptimistic:go,useMemoCache:go,useCacheRefresh:go};Ns.useEffectEvent=go;var Ps={readContext:Yi,use:ko,useCallback:function(e,t){return To().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=To();t=t===void 0?null:t;var r=e();if(uo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=To();if(n!==void 0){var i=n(t);if(uo){Ie(!0);try{n(t)}finally{Ie(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Es.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=To();return e={current:e},t.memoizedState=e},useState:function(e){e=Bo(e);var t=e.queue,n=Ds.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:fs,useDeferredValue:function(e,t){return hs(To(),e,t)},useTransition:function(){var e=Bo(!1);return e=_s.bind(null,G,e.queue,!0,!1),To().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=G,i=To();if(Ai){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Ll===null)throw Error(a(349));Y&127||Io(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,rs(Ro.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Lo.bind(null,r,o,n,t),null),n},useId:function(){var e=To(),t=Ll.identifierPrefix;if(Ai){var n=Si,r=xi;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=fo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[ot]=t,o[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Id(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Oc(t)}}return Nc(t),kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Oc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=I.current,Fi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Oi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Mi(t,!0)}else e=Hd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Nc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Fi(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[ot]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nc(t),e=!1}else n=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(a(558))}return Nc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Fi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[ot]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nc(t),i=!1}else i=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),jc(t,t.updateQueue),Nc(t),null);case 4:return ue(),e===null&&Cd(t.stateNode.containerInfo),Nc(t),null;case 10:return Ui(t.type),Nc(t),null;case 19:if(ae(io),r=t.memoizedState,r===null)return Nc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Mc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Mc(r,!1),e=o.updateQueue,t.updateQueue=e,jc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)oi(n,e),n=n.sibling;return F(io,io.current&1|2),Ai&&Ci(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Te()>nu&&(t.flags|=128,i=!0,Mc(r,!1),t.lanes=4194304)}else{if(!i)if(e=ao(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,jc(t,e),Mc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ai)return Nc(t),null}else 2*Te()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Mc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Nc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Te(),e.sibling=null,n=io.current,F(io,i?n&1|2:n&1),Ai&&Ci(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Nc(t),t.subtreeFlags&6&&(t.flags|=8192)):Nc(t),n=t.updateQueue,n!==null&&jc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ae(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),Nc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Fc(e,t){switch(Ei(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),ue(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(a(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(io),null;case 4:return ue(),null;case 10:return Ui(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&ae(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function Ic(e,t){switch(Ei(t),t.tag){case 3:Ui(ta),ue();break;case 26:case 27:case 5:fe(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:ae(io);break;case 10:Ui(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&ae(fa);break;case 24:Ui(ta)}}function Lc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function Rc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function zc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Ku(e,e.return,t)}}}function Bc(e,t,n){n.props=Vs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Vc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Hc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}function Uc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Wc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[st]=t}catch(t){Ku(e,e.return,t)}}function Gc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Kc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Gc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Yc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[ot]=e,t[st]=n}catch(t){Ku(e,e.return,t)}}var Xc=!1,Zc=!1,Qc=!1,$c=typeof WeakSet==`function`?WeakSet:Set,el=null;function tl(e,t){if(e=e.containerInfo,Bd=cp,e=Cr(e),wr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},cp=!1,el=t;el!==null;)if(t=el,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,el=e;else for(;el!==null;){switch(t=el,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Id(o,r,n),o[ot]=e,yt(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=xr(s,h),v=xr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,N.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,Il&6)throw Error(a(331));var c=Il;if(Il|=4,jl(o.current),Cl(o,o.current,s,n),Il=c,ad(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{P.p=i,N.T=r,Hu(e,t)}}function Gu(e,t,n){t=pi(n,t),t=qs(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Xe(e,2),id(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=pi(n,e),n=Js(2),r=Ra(t,n,2),r!==null&&(Ys(n,r,t,e),Xe(r,2),id(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Fl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ll===e&&(Y&n)===n&&(Gl===4||Gl===3&&(Y&62914560)===Y&&300>Te()-eu?!(Il&2)&&Cu(e,0):Jl|=n,Xl===Y&&(Xl=0)),id(e)}function Yu(e,t){t===0&&(t=Je()),e=Qr(e,t),e!==null&&(Xe(e,t),id(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return xe(e,t)}var $u=null,X=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==X&&e.next===null&&(X===null?$u=X=e:X=X.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Le(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=Y,a=Ge(r,r===Ll?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(r,a)||(n=!0,ud(r,a));r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&qd()&&(e=rd);for(var t=Te(),n=null,r=$u;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(X=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}au!==0&&au!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Rd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),yt(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Id(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Id(r,`link`,e),yt(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=vt(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);yt(c),Id(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=vt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),yt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=vt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),yt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var i=(i=I.current)?vf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Mf(n.href),n=vt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Mf(n.href);var o=vt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=If(n),n=vt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Mf(e){return`href="`+zt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),yt(t),e.head.appendChild(t))}function If(e){return`[src="`+zt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),Id(r,`style`,i),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Mf(n.href);var o=e.querySelector(Nf(i));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Pf(n),(i=gf.get(i))&&Bf(r,i),o=(e.ownerDocument||e).createElement(`link`),yt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(i=e.querySelector(Lf(o)))?(t.instance=i,yt(i),i):(r=n,(i=gf.get(o))&&(r=p({},n),Vf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),yt(i),Id(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,zf(r,n.precedence,e));return t.instance}function zf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Gf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=fs()}))(),1),ms=i(),hs=(0,U.createContext)(void 0);function gs(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function _s(e){let t=(0,ms.c)(14),{children:n,defaultTheme:r,storageKey:i}=e,a=r===void 0?`dark`:r,o=i===void 0?`ui-theme`:i,s;t[0]!==a||t[1]!==o?(s=()=>gs(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,U.useState)(s),u,d;t[3]===c?(u=t[4],d=t[5]):(u=()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),c===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(c)},d=[c],t[3]=c,t[4]=u,t[5]=d),(0,U.useEffect)(u,d);let f;t[6]===o?f=t[7]:(f=e=>{try{localStorage.setItem(o,e)}catch{}l(e)},t[6]=o,t[7]=f);let p;t[8]!==f||t[9]!==c?(p={theme:c,setTheme:f},t[8]=f,t[9]=c,t[10]=p):p=t[10];let m=p,h;return t[11]!==n||t[12]!==m?(h=(0,W.jsx)(hs.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function vs(){let e=(0,U.useContext)(hs);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function ys(e){return Ft(e.defaultTagName??`div`,e,e)}var bs=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),xs=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Ss=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Cs=e=>{let t=Ss(e);return t.charAt(0).toUpperCase()+t.slice(1)},ws={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`},Ts=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Es=(0,U.createContext)({}),Ds=()=>(0,U.useContext)(Es),Os=(0,U.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=Ds()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,U.createElement)(`svg`,{ref:c,...ws,width:t??l??ws.width,height:t??l??ws.height,stroke:e??f,strokeWidth:m,className:bs(`lucide`,p,i),...!a&&!Ts(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,U.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),ks=(e,t)=>{let n=(0,U.forwardRef)(({className:n,...r},i)=>(0,U.createElement)(Os,{ref:i,iconNode:t,className:bs(`lucide-${xs(Cs(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Cs(e),n},As=ks(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),js=ks(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),Ms=ks(`boxes`,[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),Ns=ks(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),Ps=ks(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Fs=ks(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),Is=ks(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Ls=ks(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Rs=ks(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),zs=ks(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),Bs=ks(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Vs=ks(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),Hs=ks(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),Us=ks(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),Ws=ks(`log-out`,[[`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`}]]),Gs=ks(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),Ks=ks(`moon`,[[`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`}]]),qs=ks(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),Js=ks(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Ys=ks(`router`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]),Xs=ks(`route`,[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),Zs=ks(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Qs=ks(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),$s=ks(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),ec=ks(`sun`,[[`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`}]]),tc=ks(`user-cog`,[[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m14.305 16.53.923-.382`,key:`1itpsq`}],[`path`,{d:`m15.228 13.852-.923-.383`,key:`eplpkm`}],[`path`,{d:`m16.852 12.228-.383-.923`,key:`13v3q0`}],[`path`,{d:`m16.852 17.772-.383.924`,key:`1i8mnm`}],[`path`,{d:`m19.148 12.228.383-.923`,key:`1q8j1v`}],[`path`,{d:`m19.53 18.696-.382-.924`,key:`vk1qj3`}],[`path`,{d:`m20.772 13.852.924-.383`,key:`n880s0`}],[`path`,{d:`m20.772 16.148.924.383`,key:`1g6xey`}],[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),nc=ks(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),rc=ks(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]),ic=ks(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),ac=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}({}),oc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},sc={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},cc={disabled:!1,...sc},lc={valid(e){return e===null?null:e?{[ac.valid]:``}:{[ac.invalid]:``}}},uc={invalid:void 0,name:void 0,validityData:{state:oc,errors:[],error:``,value:``,initialValue:null},setValidityData:It,disabled:void 0,touched:sc.touched,setTouched:It,dirty:sc.dirty,setDirty:It,filled:sc.filled,setFilled:It,focused:sc.focused,setFocused:It,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:cc,markedDirtyRef:{current:!1},registerFieldControl:It,validation:{getValidationProps:(e=jt)=>e,getInputValidationProps:(e=jt)=>e,inputRef:{current:null},commit:async()=>{}}},dc=U.createContext(uc);function fc(e=!0){let t=U.useContext(dc);if(t.setValidityData===It&&!e)throw Error(zt(28));return t}var pc=U.createContext({controlId:void 0,registerControlId:It,labelId:void 0,setLabelId:It,messageIds:[],setMessageIds:It,getDescriptionProps:e=>e});function mc(){return U.useContext(pc)}function hc(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=mc(),o=dr(t),s=n?i:void 0,c=Pt(()=>Symbol(`labelable-control`)),l=U.useRef(!1),u=U.useRef(t!=null),d=ir(()=>{!l.current||a===It||(l.current=!1,a(c.current,void 0))});return B(()=>{if(a===It)return;let e;if(n){let n=r?.current;e=V(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),U.useEffect(()=>d,[d]),i??o}var gc=typeof navigator<`u`,_c=Ec(),vc=Oc(),yc=Dc(),bc=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),xc=_c.platform===`MacIntel`&&_c.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(_c.platform);gc&&/firefox/i.test(yc);var Sc=gc&&/apple/i.test(navigator.vendor);gc&&/Edg/i.test(yc);var Cc=gc&&/android/i.test(vc)||/android/i.test(yc),wc=gc&&vc.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,Tc=yc.includes(`jsdom/`);function Ec(){if(!gc)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Dc(){if(!gc)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function Oc(){if(!gc)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var kc=`data-base-ui-focusable`,Ac=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,jc=`ArrowLeft`,Mc=`ArrowRight`,Nc=`ArrowUp`,Pc=`ArrowDown`;function Fc(e,t){if(!V(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(H(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Ic(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Lc(e){return e.matches(`html,body`)}function Rc(e){return Jn(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function zc(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Ac}`)!=null}function Bc(e){return e?e.getAttribute(`role`)===`combobox`&&Rc(e):!1}function Vc(e){if(!e||Tc)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Hc(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Uc(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Uc(e,t.id,n)])}function Wc(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Gc(e){e.preventDefault(),e.stopPropagation()}function Kc(e){return`nativeEvent`in e}function qc(e){return e.pointerType===``&&e.isTrusted?!0:Cc&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Jc(e){return Tc?!1:!Cc&&e.width===0&&e.height===0||Cc&&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 Yc(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Xc(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Zc=[`top`,`right`,`bottom`,`left`],Qc=Math.min,$c=Math.max,el=Math.round,tl=Math.floor,nl=e=>({x:e,y:e}),rl={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function il(e,t,n){return $c(e,Qc(t,n))}function al(e,t){return typeof e==`function`?e(t):e}function ol(e){return e.split(`-`)[0]}function sl(e){return e.split(`-`)[1]}function cl(e){return e===`x`?`y`:`x`}function ll(e){return e===`y`?`height`:`width`}function ul(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function dl(e){return cl(ul(e))}function fl(e,t,n){n===void 0&&(n=!1);let r=sl(e),i=dl(e),a=ll(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=xl(o)),[o,xl(o)]}function pl(e){let t=xl(e);return[ml(e),t,ml(t)]}function ml(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var hl=[`left`,`right`],gl=[`right`,`left`],_l=[`top`,`bottom`],vl=[`bottom`,`top`];function yl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?gl:hl:t?hl:gl;case`left`:case`right`:return t?_l:vl;default:return[]}}function bl(e,t,n,r){let i=sl(e),a=yl(ol(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ml)))),a}function xl(e){let t=ol(e);return rl[t]+e.slice(t.length)}function Sl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Sl(e)}function wl(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Tl(e,t,n){return Math.floor(e/t)!==n}function El(e,t){return t<0||t>=e.length}function Dl(e,t){return kl(e.current,{disabledIndices:t})}function Ol(e,t){return kl(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function kl(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Pl(e,a,r));return a}function Al(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,u,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Pl(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=tl(l/y)+1;for(let t=u-n+i,c=0;cl){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Pl(e,r,s))return r}};d&&Gc(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=kl(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-ye?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=kl(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}El(e,f)&&(f=u)}if(n===`both`){let n=tl(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Gc(t),u%o===o-1?r&&(f=kl(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=kl(e,{startingIndex:u,disabledIndices:s}),r&&Tl(f,o,n)&&(f=kl(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Tl(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Gc(t),u%o===0?r&&(f=kl(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=kl(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Tl(f,o,n)&&(f=kl(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Tl(f,o,n)&&(f=u));let c=tl(l/o)===n;El(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:kl(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function jl(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;rr[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function Ml(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function Nl(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Pl(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Il(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Fl(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Il(e,t=e?$n(e):null){return!e||!e.isConnected||!t||Fl(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Ll=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Rl(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return cr(n)?n.host:null}function Y(e){for(let t of Array.from(e.children))if(nr(t)===`summary`)return t;return null}function zl(e,t){let n=Y(t);return!!n&&(e===n||H(n,e))}function Bl(e){let t=e?nr(e):``;return e!=null&&e.matches(Ll)&&(t!==`summary`||e.parentElement!=null&&nr(e.parentElement)===`details`&&Y(e.parentElement)===e)&&(t!==`details`||Y(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Vl(e){if(!Bl(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Rl(t)){let n=t!==e,r=nr(t)===`slot`;if(t.hasAttribute(`inert`)||n&&nr(t)===`details`&&!t.open&&!zl(e,t)||t.hasAttribute(`hidden`)||!r&&!Hl(t,n))return!1}return!0}function Hl(e,t){let n=$n(e);return t?n.display!==`none`:Il(e,n)}function Ul(e){let t=e.tabIndex;if(t<0){let t=nr(e);if(t===`details`||t===`audio`||t===`video`||Jn(e)&&e.isContentEditable)return 0}return t}function Wl(e){if(nr(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Gl(e,t){let n=Wl(e);if(!n)return!0;let r=t.find(e=>{let t=Wl(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Wl(e);return t?.name===n.name&&t.form===n.form})===n}function Kl(e){if(Jn(e)&&nr(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Jn(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function ql(e,t){Kl(e).forEach(e=>{Bl(e)&&t.push(e),ql(e,t)})}function Jl(e,t,n){Kl(e).forEach(e=>{Jn(e)&&e.matches(t)&&n.push(e),Jl(e,t,n)})}function Yl(e){return Vl(e)&&Ul(e)>=0}function Xl(e){let t=[];return ql(e,t),t.filter(Vl)}function Zl(e){let t=Xl(e);return t.filter(e=>Ul(e)>=0&&Gl(e,t))}function Ql(e,t){let n=Zl(e),r=n.length;if(r===0)return;let i=wr(Tr(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function $l(e){return Ql(Tr(e).body,1)||e}function eu(e){return Ql(Tr(e).body,-1)||e}function tu(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!H(n,r)}function nu(e){Zl(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function ru(e){let t=[];Jl(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var iu=[];function au(e){U.useEffect(e,iu)}var ou=0,su=class e{static create(){return new e}currentId=ou;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=ou,t()},e)}isStarted(){return this.currentId!==ou}clear=()=>{this.currentId!==ou&&(clearTimeout(this.currentId),this.currentId=ou)};disposeEffect=()=>this.clear};function cu(){let e=Pt(su.create).current;return au(e.disposeEffect),e}var lu=null;globalThis.requestAnimationFrame;var uu=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},du=class e{static create(){return new e}static request(e){return uu.request(e)}static cancel(e){return uu.cancel(e)}currentId=lu;request(e){this.cancel(),this.currentId=uu.request(()=>{this.currentId=lu,e()})}cancel=()=>{this.currentId!==lu&&(uu.cancel(this.currentId),this.currentId=lu)};disposeEffect=()=>this.cancel};function fu(){let e=Pt(du.create).current;return au(e.disposeEffect),e}function pu(e){return e==null?e:`current`in e?e.current:e}var mu=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),hu={[mu.startingStyle]:``},gu={[mu.endingStyle]:``},_u={transitionStatus(e){return e===`starting`?hu:e===`ending`?gu:null}},vu=n(Dt());function yu(e,t=!1,n=!0){let r=fu();return ir((i,a=null)=>{r.cancel();let o=pu(e);if(o==null)return;let s=o,c=()=>{vu.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=mu.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function bu(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=ir(i),o=yu(r,n,!1);U.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function xu(e,t=!1,n=!1){let[r,i]=U.useState(e&&t?`idle`:void 0),[a,o]=U.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),B(()=>{if(!e&&a&&r!==`ending`&&n){let e=du.request(()=>{i(`ending`)});return()=>{du.cancel(e)}}},[e,a,r,n]),B(()=>{if(!e||t)return;let n=du.request(()=>{i(void 0)});return()=>{du.cancel(n)}},[t,e]),B(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=du.request(()=>{i(`idle`)});return()=>{du.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function Su({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=U.useRef(e!==void 0),[a,o]=U.useState(t);return[i?e:a,U.useCallback(e=>{i||o(e)},[])]}function Cu(e,t,n,r,i=!0){let{registerFieldControl:a}=fc(),o=U.useRef(null);o.current||=Symbol(),B(()=>{let s=o.current;if(!(!s||!i))return a(s,{controlRef:e,getValue:r,id:t,value:n}),()=>{a(s,void 0)}},[e,i,r,t,a,n])}var wu=U.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFocused:y,setFilled:b,validationMode:x,validation:S}=fc(),C=h||s,w=m??a,T={...p,disabled:C},{labelId:E}=mc(),D=hc({id:i});B(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let O=U.useRef(null);B(()=>{u&&O.current===wr(Tr(O.current))&&y(!0)},[u,y]);let[k]=Su({controlled:o,default:l,name:`FieldControl`,state:`value`}),A=o!==void 0,j=A?k:void 0,M=ir(()=>S.inputRef.current?.value);return Cu(S.inputRef,D,j,M),Ft(`input`,e,{ref:[t,O],state:T,props:[{id:D,disabled:C,name:w,ref:S.inputRef,"aria-labelledby":E,autoFocus:u,...A?{value:j}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Cr(mr,e.nativeEvent)),_(t!==v.initialValue),b(t!==``)},onFocus(){y(!0)},onBlur(e){g(!0),y(!1),x===`onBlur`&&S.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),S.commit(e.currentTarget.value))}},S.getInputValidationProps(),f],stateAttributesMapping:lc})}),Tu=U.forwardRef(function(e,t){return(0,W.jsx)(wu,{ref:t,...e})});function Eu(e){let t=(0,ms.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=rn(`h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground autofill:[-webkit-text-fill-color:var(--color-foreground)] autofill:[transition:background-color_9999s_ease-in-out_0s] focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,W.jsx)(Tu,{className:a,"data-slot":`input`,type:i,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var Du=U.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return Ft(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function Ou(e){let t=(0,ms.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=rn(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,W.jsx)(Du,{className:o,"data-slot":`separator`,orientation:a,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var ku=U.createContext(!1),Au=U.createContext(void 0);function ju(e){let t=U.useContext(Au);if(e===!1&&t===void 0)throw Error(zt(27));return t}var Mu=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=mu.startingStyle]=`startingStyle`,e[e.endingStyle=mu.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Nu=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),Pu={[Nu.popupOpen]:``},Fu={[Nu.popupOpen]:``,[Nu.pressed]:``},Iu={[Mu.open]:``},Lu={[Mu.closed]:``},Ru={[Mu.anchorHidden]:``},zu={open(e){return e?Pu:null}},Bu={open(e){return e?Fu:null}},Vu={open(e){return e?Iu:Lu},anchorHidden(e){return e?Ru:null}},Hu={...Vu,..._u},Uu=U.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=ju(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Ft(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Hu,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Wu=U.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=ju(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=rr({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Cr(xr,e.nativeEvent))}return Ft(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Gu=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=ju(),c=dr(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Ft(`p`,e,{ref:t,props:[{id:c},o]})});function Ku(e,t){return t!=null&&!Yc(t)?0:typeof e==`function`?e():e}function qu(e,t,n){let r=Ku(e,n);return typeof r==`number`?r:r?.[t]}function Ju(e){return typeof e==`function`?e():e}function Yu(e,t){return t||e===`click`||e===`mousedown`}function Xu(e){return e?.includes(`mouse`)&&e!==`mousedown`}var Zu=U.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new su,currentIdRef:{current:null},currentContextRef:{current:null}});function Qu(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=U.useRef(n),a=U.useRef(n),o=U.useRef(null),s=U.useRef(null),c=cu();return(0,W.jsx)(Zu.Provider,{value:U.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function $u(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=U.useContext(Zu),[f,p]=U.useState(!1);return B(()=>{function e(){p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),B(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:qu(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Cr(mr))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),B(()=>()=>{l.current=null},[l]),U.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function X(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function ed(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var rd={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},id={...rd,position:`fixed`,top:0,left:0},ad={...rd,position:`absolute`},od=U.forwardRef(function(e,t){let[n,r]=U.useState();B(()=>{Sc&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,W.jsx)(`span`,{...e,ref:t,style:id,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function sd(e){return`data-base-ui-${e}`}var cd=0;function ld(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(cd);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),It;let o=requestAnimationFrame(a);return cd=o,()=>{cd===o&&(cancelAnimationFrame(o),cd=0)}}var ud={inert:new WeakMap,"aria-hidden":new WeakMap},dd=`data-base-ui-inert`,fd={inert:new WeakSet,"aria-hidden":new WeakSet},pd=new WeakMap,md=0;function hd(e){return fd[e]}function gd(e){return e?cr(e)?e.host:gd(e.parentNode):null}var _d=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=gd(t);return e.contains(n)?n:null}).filter(e=>e!=null),vd=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},yd=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{nr(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function bd(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=_d(t,e),u=i?_d(t,a):[],d=new Set(u),f=i?yd(t,vd(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=ud[o],n=hd(o);c=n,s=e;let r=_d(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);yd(t,vd(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(pd.get(e)||0)+1;pd.set(e,t),m.push(e),t===1&&e.setAttribute(dd,``)}),md+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(pd.get(e)||0)-1;pd.set(e,t),t||e.removeAttribute(dd)}),--md,md||(ud.inert=new WeakMap,ud[`aria-hidden`]=new WeakMap,fd.inert=new WeakSet,fd[`aria-hidden`]=new WeakSet,pd=new WeakMap)}}function Z(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=Tr(e[0]).body;return bd(e,o,n,r,{mark:i,markerIgnoreElements:a})}var xd={style:{transition:`none`}},Sd={fallbackAxisSide:`none`},Cd={fallbackAxisSide:`end`},wd={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Td=U.createContext(null),Ed=()=>U.useContext(Td),Dd=sd(`portal`);function Od(e={}){let{ref:t,container:n,componentProps:r=jt,elementProps:i}=e,a=ur(),o=Ed()?.portalNode,[s,c]=U.useState(null),[l,u]=U.useState(null),d=ir(e=>{e!==null&&u(e)}),f=U.useRef(null);B(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(Gn(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=Ft(`div`,r,{ref:[t,d],props:[{id:a,[Dd]:``},i]});return{portalNode:l,portalSubtree:s&&p?vu.createPortal(p,s):null}}var kd=U.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=Od({container:o,ref:t,componentProps:e,elementProps:c}),d=U.useRef(null),f=U.useRef(null),p=U.useRef(null),m=U.useRef(null),[h,g]=U.useState(null),_=U.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;U.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&tu(e)&&(e.type===`focusin`?_.current&&=(ru(l),!1):(nu(l),_.current=!0))}return ed(X(l,`focusin`,e,!0),X(l,`focusout`,e,!0))},[l,v]),U.useEffect(()=>{!l||y!==!1||(ru(l),_.current=!1)},[y,l]);let x=U.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,W.jsxs)(U.Fragment,{children:[u,(0,W.jsxs)(Td.Provider,{value:x,children:[b&&l&&(0,W.jsx)(od,{"data-type":`outside`,ref:d,onFocus:e=>{tu(e,l)?p.current?.focus():eu(h?h.domReference:null)?.focus()}}),b&&l&&(0,W.jsx)(`span`,{"aria-owns":l.id,style:wd}),l&&vu.createPortal(a,l),b&&l&&(0,W.jsx)(od,{"data-type":`outside`,ref:f,onFocus:e=>{tu(e,l)?m.current?.focus():($l(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Cr(`focus-out`,e.nativeEvent)))}})]})]})});function Ad(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(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)}}}var jd=U.createContext(null),Md=U.createContext(null),Nd=()=>U.useContext(jd)?.id||null,Pd=e=>{let t=U.useContext(Md);return e??t};function Fd(e,t){let n=qn(pr(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`):``}var Id=20,Ld=[];function Rd(){Ld=Ld.filter(e=>e.deref()?.isConnected)}function zd(e){Rd(),e&&nr(e)!==`body`&&(Ld.push(new WeakRef(e)),Ld.length>Id&&(Ld=Ld.slice(-20)))}function Bd(){return Rd(),Ld[Ld.length-1]?.deref()}function Vd(e){return e?Yl(e)?e:Zl(e)[0]||e:null}function Hd(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=Xl(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Yl(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Ud(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=ir(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Bc(_)&&S,w=U.useRef([`content`]),T=td(i),E=td(a),D=td(l),O=Pd(p),k=Ed(),A=U.useRef(!1),j=U.useRef(!1),M=U.useRef(!1),ee=U.useRef(null),N=U.useRef(``),P=U.useRef(``),te=U.useRef(null),ne=U.useRef(null),re=Mt(te,f,k?.beforeInsideRef),ie=Mt(ne,k?.afterInsideRef),ae=cu(),F=cu(),oe=fu(),se=k!=null,I=Hc(v),ce=ir((e=I)=>e?Zl(e):[]),le=ir(()=>m?.().filter(e=>e!=null)??[]);U.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&H(I,wr(Tr(I)))&&ce().length===0&&!C&&Gc(e)}return X(Tr(I),`keydown`,e)},[r,I,s,C,ce]),U.useEffect(()=>{if(r||!g)return;let e=Tr(I);function t(){M.current=!1}function n(e){let t=pr(e),n=le();M.current=!(H(v,t)||H(_,t)||H(k?.portalNode,t)||n.some(e=>e===t||H(e,t))),P.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(j.current=!0)}function i(){P.current=`keyboard`}return ed(X(e,`pointerdown`,n,!0),X(e,`pointerup`,t,!0),X(e,`pointercancel`,t,!0),X(e,`keydown`,i,!0))},[r,v,_,I,g,k,le]),U.useEffect(()=>{if(r||!c)return;let e=Tr(I);function t(){j.current=!0,F.start(0,()=>{j.current=!1})}function n(e){let t=pr(e);Yl(t)&&(ee.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=pr(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=le(),f=n?.hasAttribute(sd(`focus-guard`))&&[te.current,ne.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,pu(d),pu(u)].includes(n),p=!(H(_,n)||H(v,n)||H(n,v)||H(k?.portalNode,n)||l.some(e=>e===n||H(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>H(e,n))||f||O&&(Uc(O.nodesRef.current,a).find(e=>H(e.context?.elements.floating,n)||H(e.context?.elements.domReference,n))||Wc(O.nodesRef.current,a).find(e=>[e.context?.elements.floating,Hc(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&I&&Hd(I,w),o&&r!==_&&!Il(i)&&wr(e)===e.body){if(Jn(I)&&(I.focus(),o===`popup`)){oe.request(()=>{I.focus()});return}let e=ce(),t=ee.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||I;Jn(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!j.current&&(C||n!==Bd())&&(A.current=!0,h.setOpen(!1,Cr(yr,t)))})}function a(){M.current||(b.current.insideReactTree=!0,ae.start(0,()=>{b.current.insideReactTree=!1}))}let l=Jn(_)?_:null;if(!(!v&&!l))return ed(l&&X(l,`focusout`,i),l&&X(l,`pointerdown`,t),v&&X(v,`focusin`,n),v&&X(v,`focusout`,i),v&&k&&X(v,`focusout`,a,!0))},[r,_,v,I,s,O,k,h,c,o,ce,C,x,w,b,ae,F,oe,u,d,le]),U.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${sd(`portal`)}]`)||[]),t=(O?Wc(O.nodesRef.current,x()):[]).find(e=>Bc(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Z([v,...e,te.current,ne.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...le(),t,pu(d),pu(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=Z([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,k,C,O,x,u,d,le]),B(()=>{if(!g||r||!Jn(I))return;let e=Tr(I),t=wr(e);queueMicrotask(()=>{let n=T.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||H(I,t))return;let i=null,a=()=>(i??=ce(I),i[0]||I),o;o=r===!0||r===null?a():pu(r),o||=a();let s=H(I,wr(e));ld(o,{preventScroll:o===I,shouldFocus(){if(s)return!0;let t=wr(e);return!(t!==o&&H(I,t))}})})},[r,g,I,ce,T,D]),B(()=>{if(r||!I)return;let e=Tr(I);zd(wr(e));function t(e){if(e.open||(N.current=Fd(e.nativeEvent,P.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(A.current=!0),e.reason===`outside-press`)if(e.nested)A.current=!1;else if(qc(e.nativeEvent)||Jc(e.nativeEvent))A.current=!1;else{let e=!1;Tr(I).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}y.on(`openchange`,t);function n(){let e=E.current,t=typeof e==`function`?e(N.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`)return _?.isConnected?_:Bd()||null;let n=_?.isConnected?_:Bd();return pu(t)||n||null}return()=>{y.off(`openchange`,t);let r=wr(e),i=le(),a=H(v,r)||i.some(e=>e===r||H(e,r))||O&&Uc(O.nodesRef.current,x(),!1).some(e=>H(e.context?.elements.floating,r)),o=E.current,s=n();queueMicrotask(()=>{let t=Vd(s),n=typeof o!=`boolean`;o&&!A.current&&Jn(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),A.current=!1})}},[r,v,I,E,y,O,_,x,le]),B(()=>{if(!bc||g||!v)return;let e=wr(Tr(v));!Jn(e)||!Rc(e)||H(v,e)&&e.blur()},[g,v]),B(()=>{if(!(r||!k))return k.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,s,g,h,c,_]),B(()=>{if(!(r||!I))return Hd(I,w),()=>{queueMicrotask(Rd)}},[r,I,w]);let ue=!r&&(s?!C:!0)&&(se||s);return(0,W.jsxs)(U.Fragment,{children:[ue&&(0,W.jsx)(od,{"data-type":`inside`,ref:re,onFocus:e=>{if(s){let e=ce();ld(e[e.length-1])}else k?.portalNode&&(A.current=!1,tu(e,k.portalNode)?$l(_)?.focus():pu(d??k.beforeOutsideRef)?.focus())}}),n,ue&&(0,W.jsx)(od,{"data-type":`inside`,ref:ie,onFocus:e=>{s?ld(ce()[0]):k?.portalNode&&(c&&(A.current=!0),tu(e,k.portalNode)?eu(_)?.focus():pu(u??k.afterOutsideRef)?.focus())}})]})}function Wd(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Gd(e){return e!=null&&e.clientX!=null}function Kd(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=U.useRef(!1),u=U.useRef(null),[d,f]=U.useState(),[p,m]=U.useState([]),h=ir(e=>{i.set(`positionReference`,e)}),g=ir((e,t,n)=>{l.current||c.current.openEvent&&!Gd(c.current.openEvent)||i.set(`positionReference`,Wd(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=ir(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=Yc(d)?o:a;U.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=qn(o);function r(t){H(o,pr(t))?e():g(t.clientX,t.clientY)}return!c.current.openEvent||Gd(c.current.openEvent)?u.current=X(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),U.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),U.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),U.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=U.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return U.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var qd={intentional:`onClick`,sloppy:`onPointerDown`};function Jd(){return!1}function Yd(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Xd(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Jd,referencePressEvent:s=`sloppy`,bubbles:c,externalTree:l}=t,u=`rootStore`in e?e.rootStore:e,d=u.useState(`open`),f=u.useState(`floatingElement`),{dataRef:p}=u.context,m=Pd(l),h=ir(typeof i==`function`?i:()=>!1),g=typeof i==`function`?h:i,_=g!==!1,v=ir(()=>a),{escapeKey:y,outsidePress:b}=Yd(c),x=U.useRef(!1),S=U.useRef(!1),C=U.useRef(!1),w=U.useRef(!1),T=U.useRef(``),E=U.useRef(null),D=cu(),O=cu(),k=ir(()=>{O.clear(),p.current.insideReactTree=!1}),A=ir(e=>{let t=p.current.floatingContext?.nodeId;return(m?Uc(m.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=ir(e=>Ic(e,u.select(`floatingElement`))||Ic(e,u.select(`domReferenceElement`))),M=ir(e=>{o()&&u.setOpen(!1,Cr(hr,e.nativeEvent))}),ee=ir(e=>{if(!d||!n||!r||e.key!==`Escape`||w.current||!y&&A(`__escapeKeyBubbles`))return;let t=Cr(fr,Kc(e)?e.nativeEvent:e);u.setOpen(!1,t),t.isCanceled||e.preventDefault(),!y&&!t.isPropagationAllowed&&e.stopPropagation()}),N=ir(()=>{p.current.insideReactTree=!0,O.start(0,k)}),P=ir(e=>{if(!d||!n||e.button!==0)return;let t=pr(e.nativeEvent);H(u.select(`floatingElement`),t)&&(x.current||(x.current=!0,S.current=!1))}),te=ir(e=>{!d||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});U.useEffect(()=>{if(!d||!n)return;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=b;let e=new su,t=new su;function i(){e.clear(),w.current=!0}function a(){e.start(Un()?5:0,()=>{w.current=!1})}function o(){C.current=!0,t.start(0,()=>{C.current=!1})}function s(){x.current=!1,S.current=!1}function c(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=v(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function l(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=p.current.floatingContext?.nodeId,n=m&&Uc(m.nodesRef.current,t).some(t=>Ic(e,t.context?.elements.floating));return j(e)||n}function O(e){if(l(e)){e.type!==`click`&&!j(e)&&(t.clear(),C.current=!1),k();return}if(p.current.insideReactTree){k();return}let n=pr(e),r=`[${sd(`inert`)}]`,i=V(n)?n.getRootNode():null,a=Array.from((cr(i)?i:Tr(u.select(`floatingElement`))).querySelectorAll(r)),o=u.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>H(e,n))))return;let s=V(n)?n:null;for(;s&&!lr(s);){let e=Zn(s);if(lr(e)||!V(e))break;s=e}if(!(a.length&&V(n)&&!Lc(n)&&!H(n,u.select(`floatingElement`))&&a.every(e=>!H(s,e)))){if(Jn(n)&&!(`touches`in e)){let t=lr(n),r=$n(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!h(e)){if(c()===`intentional`&&C.current){t.clear(),C.current=!1;return}typeof g==`function`&&!g(e)||A(`__outsidePressBubbles`)||(u.setOpen(!1,Cr(br,e)),k())}}}function M(e){c()!==`sloppy`||e.pointerType===`touch`||!u.select(`open`)||!n||j(e)||O(e)}function N(e){if(c()!==`sloppy`||!u.select(`open`)||!n||j(e))return;let t=e.touches[0];t&&(E.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function P(e,t){let n=pr(e);if(!n)return;let r=X(n,e.type,()=>{t(e),r()})}function te(e){T.current=`touch`,P(e,N)}function ne(e){D.clear(),e.type===`pointerdown`&&(T.current=e.pointerType),!(e.type===`mousedown`&&E.current&&!E.current.dismissOnMouseDown)&&P(e,e=>{e.type===`pointerdown`?M(e):O(e)})}function re(e){if(!x.current)return;let n=S.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!h(e)){if(n){o();return}typeof g==`function`&&!g(e)||(t.clear(),C.current=!0,k())}}}function ie(e){if(c()!==`sloppy`||!E.current||j(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(O(e),D.clear(),E.current=null)}function ae(e){P(e,ie)}function F(e){c()!==`sloppy`||!E.current||j(e)||(E.current.dismissOnTouchEnd&&O(e),D.clear(),E.current=null)}function oe(e){P(e,F)}let se=Tr(f),I=ed(r&&ed(X(se,`keydown`,ee),X(se,`compositionstart`,i),X(se,`compositionend`,a)),_&&ed(X(se,`click`,ne,!0),X(se,`pointerdown`,ne,!0),X(se,`pointerup`,re,!0),X(se,`pointercancel`,re,!0),X(se,`mousedown`,ne,!0),X(se,`mouseup`,re,!0),X(se,`touchstart`,te,!0),X(se,`touchmove`,ae,!0),X(se,`touchend`,oe,!0)));return()=>{I(),e.clear(),t.clear(),s(),C.current=!1}},[p,f,r,_,g,d,n,y,b,ee,k,v,A,j,m,u,D]),U.useEffect(k,[g,k]);let ne=U.useMemo(()=>({onKeyDown:ee,[qd[s]]:M,...s!==`intentional`&&{onClick:M}}),[ee,M,s]),re=U.useMemo(()=>({onKeyDown:ee,onPointerDown:te,onMouseDown:te,onClickCapture:N,onMouseDownCapture(e){N(),P(e)},onPointerDownCapture(e){N(),P(e)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[ee,N,P,te]);return U.useMemo(()=>n?{reference:ne,floating:re,trigger:ne}:{},[n,ne,re])}function Zd(e,t,n){let{reference:r,floating:i}=e,a=ul(t),o=dl(t),s=ll(o),c=ol(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(sl(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Qd(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=al(t,e),p=Cl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=wl(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=wl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var $d=50,ef=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Qd},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Zd(l,r,c),f=r,p=0,m={};for(let n=0;ne<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==ul(t))||T.every(e=>ul(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ul(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function nf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rf(e){return Zc.some(t=>e[t]>=0)}var af=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=al(e,t);switch(i){case`referenceHidden`:{let e=nf(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:rf(e)}}}case`escaped`:{let e=nf(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:rf(e)}}}default:return{}}}}},of=new Set([`left`,`top`]);async function sf(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ol(n),s=sl(n),c=ul(n)===`y`,l=of.has(o)?-1:1,u=a&&c?-1:1,d=al(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var cf=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await sf(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},lf=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=al(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ul(ol(i)),p=cl(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=il(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=il(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},uf=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=al(e,t),u={x:n,y:r},d=ul(i),f=cl(d),p=u[f],m=u[d],h=al(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=of.has(ol(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},df=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=al(e,t),u=await o.detectOverflow(t,l),d=ol(i),f=sl(i),p=ul(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Qc(h-u[g],v),x=Qc(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=$c(u.left,0),t=$c(u.right,0),n=$c(u.top,0),r=$c(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:$c(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:$c(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function ff(e){let t=$n(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Jn(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=el(n)!==a||el(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function pf(e){return V(e)?e:e.contextElement}function mf(e){let t=pf(e);if(!Jn(t))return nl(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ff(t),o=(a?el(n.width):n.width)/r,s=(a?el(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var hf=nl(0);function gf(e){let t=qn(e);return!Un()||!t.visualViewport?hf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _f(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==qn(e)?!1:t}function vf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=pf(e),o=nl(1);t&&(r?V(r)&&(o=mf(r)):o=mf(e));let s=_f(a,n,r)?gf(a):nl(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=qn(a),t=r&&V(r)?qn(r):r,n=e,i=Xn(n);for(;i&&r&&t!==n;){let e=mf(i),t=i.getBoundingClientRect(),r=$n(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=qn(i),i=Xn(n)}}return wl({width:u,height:d,x:c,y:l})}function yf(e,t){let n=er(e).scrollLeft;return t?t.left+n:vf(Yn(e)).left+n}function bf(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-yf(e,n),y:n.top+t.scrollTop}}function xf(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Yn(r),s=t?Wn(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=nl(1),u=nl(0),d=Jn(r);if((d||!d&&!a)&&((nr(r)!==`body`||Hn(o))&&(c=er(r)),d)){let e=vf(r);l=mf(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?bf(o,c):nl(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Sf(e){return Array.from(e.getClientRects())}function Cf(e){let t=Yn(e),n=er(e),r=e.ownerDocument.body,i=$c(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=$c(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+yf(e),s=-n.scrollTop;return $n(r).direction===`rtl`&&(o+=$c(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var wf=25;function Tf(e,t){let n=qn(e),r=Yn(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Un();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=yf(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=wf&&(a-=o)}else l<=wf&&(a+=l);return{width:a,height:o,x:s,y:c}}function Ef(e,t){let n=vf(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Jn(e)?mf(e):nl(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Df(e,t,n){let r;if(t===`viewport`)r=Tf(e,n);else if(t===`document`)r=Cf(Yn(e));else if(V(t))r=Ef(t,n);else{let n=gf(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return wl(r)}function Of(e,t){let n=Zn(e);return n===t||!V(n)||lr(n)?!1:$n(n).position===`fixed`||Of(n,t)}function kf(e,t){let n=t.get(e);if(n)return n;let r=Qn(e,[],!1).filter(e=>V(e)&&nr(e)!==`body`),i=null,a=$n(e).position===`fixed`,o=a?Zn(e):e;for(;V(o)&&!lr(o);){let t=$n(o),n=sr(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Hn(o)&&!n&&Of(e,o))?r=r.filter(e=>e!==o):i=t,o=Zn(o)}return t.set(e,r),r}function Af(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Wn(t)?[]:kf(t,this._c):[].concat(n),r],o=Df(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!zf(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Vf(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=pf(e),u=i||a?[...l?Qn(l):[],...t?Qn(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Bf(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?vf(e):null;c&&g();function g(){let t=vf(e);h&&!zf(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Hf=cf,Uf=lf,Wf=tf,Gf=df,Kf=af,qf=uf,Jf=(e,t,n)=>{let r=new Map,i={platform:Rf,...n},a={...i.platform,_c:r};return ef(e,t,{...i,platform:a})},Yf=typeof document<`u`?U.useLayoutEffect:function(){};function Xf(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,i;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(!Xf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Xf(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Zf(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qf(e,t){let n=Zf(e);return Math.round(t*n)/n}function $f(e){let t=U.useRef(e);return Yf(()=>{t.current=e}),t}function ep(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=U.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=U.useState(r);Xf(f,r)||p(r);let[m,h]=U.useState(null),[g,_]=U.useState(null),v=U.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=U.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=U.useRef(null),C=U.useRef(null),w=U.useRef(u),T=c!=null,E=$f(c),D=$f(i),O=$f(l),k=U.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Jf(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Xf(w.current,t)&&(w.current=t,vu.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Yf(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=U.useRef(!1);Yf(()=>(A.current=!0,()=>{A.current=!1}),[]),Yf(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=U.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=U.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=U.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Qf(M.floating,u.x),r=Qf(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Zf(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return U.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:ee}),[u,k,j,M,ee])}var tp=(e,t)=>{let n=Hf(e);return{name:n.name,fn:n.fn,options:[e,t]}},np=(e,t)=>{let n=Uf(e);return{name:n.name,fn:n.fn,options:[e,t]}},rp=(e,t)=>({fn:qf(e).fn,options:[e,t]}),ip=(e,t)=>{let n=Wf(e);return{name:n.name,fn:n.fn,options:[e,t]}},ap=(e,t)=>{let n=Gf(e);return{name:n.name,fn:n.fn,options:[e,t]}},op=(e,t)=>{let n=Kf(e);return{name:n.name,fn:n.fn,options:[e,t]}},Q=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(zt(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},sp=[],cp=void 0;function lp(){return cp}function up(e){sp.push(e)}function dp(e){let t=(t,n)=>{let r=Pt(pp).current,i;try{cp=r;for(let e of sp)e.before(r);i=e(t,n);for(let e of sp)e.after(r);r.didInitialize=!0}finally{cp=void 0}return i};return t.displayName=e.displayName||e.name,t}function fp(e){return U.forwardRef(dp(e))}function pp(){return{didInitialize:!1}}var mp=ie(),hp=ne(),gp=Lt(19)?yp:bp;function _p(e,t,n,r,i){return gp(e,t,n,r,i)}function vp(e,t,n,r,i){let a=U.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,mp.useSyncExternalStore)(e.subscribe,a,a)}up({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,mp.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function yp(e,t,n,r,i){let a=lp();if(!a)return vp(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function bp(e,t,n,r,i){return(0,hp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var xp=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return _p(this,e,t,n,r)}},Sp=class extends xp{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){U.useDebugValue(e);let n=this;B(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;B(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;B(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){U.useDebugValue(e);let n=this,r=t!==void 0;B(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return U.useDebugValue(e),_p(this,this.selectors[e],t,n,r)}useContextCallback(e,t){U.useDebugValue(e);let n=ir(t??It);this.context[e]=n}useStateSetter(e){let t=U.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Cp={open:Q(e=>e.open),transitionStatus:Q(e=>e.transitionStatus),domReferenceElement:Q(e=>e.domReferenceElement),referenceElement:Q(e=>e.positionReference??e.referenceElement),floatingElement:Q(e=>e.floatingElement),floatingId:Q(e=>e.floatingId)},wp=class extends Sp{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Ad(),nested:n,triggerElements:i},Cp),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Xc(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Tp(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=U.useRef(null);r===void 0&&f.current===null&&(f.current=new wp({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),B(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};V(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var Ep={tabIndex:-1,[kc]:``};function Dp(e,t,n=!1){let r=ur(),i=Nd()!=null,a=U.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return Tp({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function Op(e,t){let n=U.useRef(null),r=U.useRef(null);return U.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function kp(e,t,n){let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function Ap(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Op(e,n),o=ir(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return B(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function jp(e){let t=e.useState(`open`);B(()=>{if(!t){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let n=e.context.triggerElements.size,r={};if(e.state.triggerCount!==n&&(r.triggerCount=n),!e.select(`activeTriggerId`)&&n===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n}}(r.triggerCount!==void 0||r.activeTriggerId!==void 0)&&e.update(r)},[t,e,e.useState(`triggerCount`)])}function Mp(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=xu(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=ir(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),s=t.useState(`preventUnmountingOnClose`);return bu({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}function Np(e,t){e.useSyncedValues(t),B(()=>()=>{e.update({activeTriggerProps:jt,inactiveTriggerProps:jt,popupProps:jt})},[e])}function Pp(e,t){B(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),B(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Fp=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Ip(){return new wp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Fp,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Lp(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Ip(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:jt,inactiveTriggerProps:jt,popupProps:jt}}function Rp(e,t,n=!1){return new wp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var zp=Q(e=>e.triggerIdProp??e.activeTriggerId),Bp=Q(e=>e.openProp??e.open),Vp=Q(e=>(e.popupElement?.id??e.floatingId)||void 0);function Hp(e,t){return t!==void 0&&Bp(e)&&zp(e)===t}function Up(e,t){return Hp(e,t)?!0:t!==void 0&&Bp(e)&&zp(e)==null&&e.triggerCount===1}var Wp={open:Bp,mounted:Q(e=>e.mounted),transitionStatus:Q(e=>e.transitionStatus),floatingRootContext:Q(e=>e.floatingRootContext),triggerCount:Q(e=>e.triggerCount),preventUnmountingOnClose:Q(e=>e.preventUnmountingOnClose),payload:Q(e=>e.payload),activeTriggerId:zp,activeTriggerElement:Q(e=>e.mounted?e.activeTriggerElement:null),popupId:Vp,isTriggerActive:Q((e,t)=>t!==void 0&&zp(e)===t),isOpenedByTrigger:Q((e,t)=>Hp(e,t)),isMountedByTrigger:Q((e,t)=>t!==void 0&&zp(e)===t&&e.mounted),triggerProps:Q((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Q((e,t)=>Up(e,t)?Vp(e):void 0),popupProps:Q(e=>e.popupProps),popupElement:Q(e=>e.popupElement),positionerElement:Q(e=>e.positionerElement)};function Gp(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=ur(),a=Nd()!=null,o=Pt(()=>new wp({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Fp,floatingId:i,syncOnly:!1,nested:a})).current;return B(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=V(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Kp(e={}){let{nodeId:t,externalTree:n}=e,r=Gp(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=U.useState(null),[f,p]=U.useState(void 0),[m,h]=U.useState(void 0),g=U.useRef(null),_=Pd(n),v=U.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),y=ep({...e,elements:{...v,...u&&{reference:u}}}),b=V(f)?f:null,x=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:b),i.useSyncedValue(`floatingElement`,x);let S=U.useCallback(e=>{let t=V(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=U.useCallback(e=>{(V(e)||e===null)&&(g.current=e,p(e)),(V(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!V(e))&&y.refs.setReference(e)},[y.refs,p]),w=U.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),T=U.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),E=U.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),D=U.useMemo(()=>({...y,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:T,elements:E,nodeId:t,rootStore:i}),[y,T,E,t,i,c,l]);return B(()=>{s&&(g.current=s)},[s]),B(()=>{i.context.dataRef.current.floatingContext=D;let e=_?.nodesRef.current.find(e=>e.id===t);e&&(e.context=D)}),U.useMemo(()=>({...y,context:D,refs:T,elements:E,rootStore:i}),[y,T,E,D,i])}var qp=wc&⪼function Jp(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=U.useRef(!1),c=U.useRef(null),l=U.useRef(!0),u=cu();U.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=qn(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&Jn(e)&&e===wr(Tr(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return ed(X(t,`blur`,r),qp&&X(t,`keydown`,a,!0),qp&&X(t,`pointerdown`,o,!0))},[i,n]),U.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);V(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=U.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=pr(t.nativeEvent);if(V(a)){if(qp&&!t.relatedTarget){if(!l.current&&!Rc(a))return}else if(!Vc(a))return}let o=Fc(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,Cr(vr,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Cr(vr,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=V(n)&&n.hasAttribute(sd(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=wr(Tr(e));!n&&t===e||H(o.current.floatingContext?.refs.floating.current,t)||H(e,t)||a||Fc(n??t,i.context.triggerElements)||i.setOpen(!1,Cr(vr,r))})}}},[o,r,i,u]);return U.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var Yp=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new su,this.restTimeout=new su,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Xp=new WeakMap;function Zp(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Xp.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Xp.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Qp(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Xp.get(n);a&&a!==e&&Zp(a),Zp(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Xp.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function $p(e){let t=e.context.dataRef.current,n=Pt(()=>t.hoverInteractionState??Yp.create()).current;return t.hoverInteractionState||=n,au(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function em(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=Pd(),d=Nd(),f=$p(a),p=cu(),m=ir(()=>Yu(l.current.openEvent?.type,f.interactedInside)),h=ir(()=>Xu(l.current.openEvent?.type)),g=ir(()=>{Zp(f)});B(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),U.useEffect(()=>g,[g]),B(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&V(c)&&s){let e=c,t=s,n=Tr(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r;return Qp(f,{scopeElement:f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),U.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&Uc(u.nodesRef.current,d).length>0)}function t(e){let t=qu(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Cr(gr,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=pr(e);if(!zc(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,_),g()}function h(n){if(e()&&u){u.events.on(`floating.closed`,_);return}if(Fc(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&V(o)&&Uc(u.nodesRef.current,r,!1).some(e=>H(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),m()||t(n)}}function _(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,_),a.setOpen(!1,Cr(gr,t)),u.events.emit(`floating.closed`,t)})}let v=s;return ed(v&&X(v,`mouseenter`,c),v&&X(v,`mouseleave`,h),v&&X(v,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,_)})},[n,s,a,l,r,i,m,g,f,u,d,p])}var tm={current:null};function nm(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=tm,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,_=Pd(l),v=$p(m),y=U.useRef(!1),b=td(i),x=td(r),S=td(o),C=td(n),w=td(p),T=td(f),E=ir(()=>Yu(h.current.openEvent?.type,v.interactedInside)),D=ir(()=>w.current?.()!==!1),O=ir((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!H(e,t);if(!V(n))return!1;let i=n;return r.hasMatchingElement(e=>H(e,i))&&(!e||!H(e,i))}),k=ir(()=>{v.handler&&=(Tr(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=ir(()=>{Zp(v)});return u&&(v.handleCloseOptions=b.current?.__options),U.useEffect(()=>k,[k]),U.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===gr,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),U.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=qu(x.current,`close`,v.pointerType);n?v.openChangeTimeout.start(n,()=>{m.setOpen(!1,Cr(gr,e)),_?.events.emit(`floating.closed`,e)}):t&&(v.openChangeTimeout.clear(),m.setOpen(!1,Cr(gr,e)),_?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!V(t))return;function r(e){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!Yc(v.pointerType))return;let t=Ju(S.current),n=qu(x.current,`open`,v.pointerType),r=pr(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(V(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(H(e,r)){s=e;break}}V(i)&&V(o)&&!m.context.triggerElements.hasElement(i)&&H(i,o)&&(s=o);let c=s==null?!1:O(o,s,r),l=m.select(`open`),u=T.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&y.current,f=!c&&V(s)&&V(o)&&H(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){D()&&m.setOpen(!0,Cr(gr,e,s));return}p||(n?v.openChangeTimeout.start(n,()=>{g&&D()&&m.setOpen(!0,Cr(gr,e,s))}):g&&D()&&m.setOpen(!0,Cr(gr,e,s)))}function i(t){if(E()){A();return}k();let n=Tr(m.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!Fc(t.relatedTarget,m.context.triggerElements)){if(b.current&&r){m.select(`open`)||v.openChangeTimeout.clear();let i=c.current;v.handler=b.current({...r,tree:_,x:t.clientX,y:t.clientY,onClose(){A(),k(),C.current&&!E()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,v.handler),v.handler(t);return}(v.pointerType!==`touch`||!H(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?ed(X(t,`mousemove`,r,{once:!0}),X(t,`mouseenter`,r),X(t,`mouseleave`,i)):ed(X(t,`mouseenter`,r),X(t,`mouseleave`,i))},[k,A,h,x,m,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D]),U.useMemo(()=>{if(!n)return;function e(e){v.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=O(r,n,e.target);if(a&&!Yc(v.pointerType))return;if(i&&o&&v.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);e&&Qp(v,{scopeElement:v.handleCloseOptions?.getScope?.()??n.ownerDocument.body,referenceElement:n,floatingElement:e})}let s=Ju(S.current);if(i&&!o||s===0||!o&&v.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;v.restTimeout.clear();function c(){if(v.restTimeoutPending=!1,E())return;let e=m.select(`open`);!v.blockMouseMove&&(!e||o)&&D()&&m.setOpen(!0,Cr(gr,t,n))}v.pointerType===`touch`?vu.flushSync(()=>{c()}):o&&i?c():(v.restTimeoutPending=!0,v.restTimeout.start(s,c))}}},[n,v,E,O,a,m,S,D])}var rm=.1,im=rm*rm,am=.5;function om(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function sm(e,t,n,r,i,a,o,s,c,l){let u=!1;return om(e,t,n,r,i,a)&&(u=!u),om(e,t,i,a,o,s)&&(u=!u),om(e,t,o,s,c,l)&&(u=!u),om(e,t,c,l,n,r)&&(u=!u),u}function cm(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function lm(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function um(e={}){let{blockPointerEvents:t=!1}=e,n=new su,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*im;return u=e,d=t,f=n,o0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=lm(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=lm(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=lm(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=lm(d,f,x.right-1,A,S.left+1,k);break;default:}if(j)return;if(l&&!cm(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?am/2:am*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+am+1,o=C||T?S.bottom-am:S.top,s=C?T?S.bottom-am:S.top:S.bottom-am;M=sm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?am/2:am*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-am,o=C||T?S.top+am:S.bottom,s=C?T?S.top+am:S.bottom:S.top+am;M=sm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?am/2:am*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+am+1,o=w||E?S.right-am:S.left,s=w?E?S.right-am:S.left:S.right-am;M=sm(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?am/2:am*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-am,o=w||E?S.left+am:S.right,s=w?E?S.left+am:S.right:S.left+am;M=sm(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var dm=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),fm=function(e){return e[e.open=Mu.open]=`open`,e[e.closed=Mu.closed]=`closed`,e[e.startingStyle=Mu.startingStyle]=`startingStyle`,e[e.endingStyle=Mu.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),pm=U.createContext(void 0);function mm(){let e=U.useContext(pm);if(e===void 0)throw Error(zt(26));return e}var hm=`ArrowUp`,gm=`ArrowDown`,_m=`ArrowLeft`,vm=`ArrowRight`,ym=`Home`,bm=new Set([_m,vm]),xm=new Set([_m,vm,ym,`End`]),Sm=new Set([hm,gm]),Cm=new Set([hm,gm,ym,`End`]),wm=new Set([...bm,...Sm]),Tm=new Set([...wm,ym,`End`]),Em=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function Dm(e){return Jn(e)&&e.tagName===`INPUT`}function Om(e){return!!(Dm(e)&&e.selectionStart!=null||Jn(e)&&e.tagName===`TEXTAREA`)}function km(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidthe.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLefte.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Am(e,t,`top`),r=jm(e),i=jm(t);n-i.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Am(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function jm(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var Mm={...Vu,..._u,nestedDialogOpen(e){return e?{[fm.nestedDialogOpen]:``}:null}},Nm=U.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=ju(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`),C=s.id??S;mm(),bu({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});function w(e){return e===`touch`?c.context.popupRef.current:!0}let T=o===void 0?w:o,E=g>0,D=c.useStateSetter(`popupElement`),O=Ft(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:E},props:[f,{id:C,"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,...Ep,hidden:!m,onKeyDown(e){Tm.has(e.key)&&e.stopPropagation()},style:{[dm.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,D],stateAttributesMapping:Mm});return(0,W.jsx)(Ud,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:T,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:O})});function Pm(e){return Lt(19)?e:e?`true`:void 0}var Fm=U.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,W.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),Im=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=ju(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,W.jsx)(pm.Provider,{value:n,children:(0,W.jsxs)(kd,{ref:t,...r,children:[a&&o===!0&&(0,W.jsx)(Fm,{ref:i.context.internalBackdropRef,inert:Pm(!s)}),e.children]})}):null});function Lm(e){let t=U.useRef(!0);t.current&&(t.current=!1,e())}var Rm={},zm={},Bm=``;function Vm(e){if(typeof document>`u`)return!1;let t=Tr(e);return qn(t).innerWidth-t.documentElement.clientWidth>0}function Hm(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Tr(e),n=t.documentElement,r=t.body,i=Hn(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Um(e){let t=Tr(e),n=t.documentElement,r=t.body,i=Hn(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Wm(e){let t=Tr(e),n=t.documentElement,r=t.body,i=qn(n),a=0,o=0,s=!1,c=du.create();if(bc&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Rm={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Bm=n.style.scrollBehavior,zm={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};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Hn(n)?n:r;if(s=Hm(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Rm),Object.assign(r.style,zm),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Bm)}function d(){u(),c.request(l)}l();let f=X(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Gm=new class{lockCount=0;restore=null;timeoutLock=su.create();timeoutUnlock=su.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Tr(e).documentElement,n=qn(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=It;return}let r=xc||!Vm(e);this.restore=r?Um(e):Wm(e)}};function Km(e=!0,t=null){B(()=>{if(e)return Gm.acquire(t)},[e,t])}function qm(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:i}=e,a=t.useState(`open`);Pp(t,a),jp(t);let{forceUnmount:o}=Mp(a,t),s=U.useCallback(()=>{t.setOpen(!1,Cr(Sr))},[t]);return U.useImperativeHandle(r,()=>({unmount:o,close:s}),[o,s]),{parentContext:n,isDrawer:i}}function Jm({store:e,dialogRoot:t}){let{parentContext:n,isDrawer:r}=t,i=e.useState(`open`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=U.useState(0),[d,f]=U.useState(0),p=l===0,m=Xd(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=pr(t);if(p&&!a){let t=n;return o&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===t||e.context.backdropRef.current===t||H(t,s)&&!t?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:p});return Km(i&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{u(e),f(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{u(0),f(0)}),U.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(l+1,d+ +!!r),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[r,i,l,d,n]),Np(e,{activeTriggerProps:m.reference??jt,inactiveTriggerProps:m.trigger??jt,popupProps:U.useMemo(()=>Nt(Ep,m.floating),[m.floating]),nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Ym={...Wp,modal:Q(e=>e.modal),nested:Q(e=>e.nested),nestedOpenDialogCount:Q(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Q(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Q(e=>e.disablePointerDismissal),openMethod:Q(e=>e.openMethod),descriptionElementId:Q(e=>e.descriptionElementId),titleElementId:Q(e=>e.titleElementId),viewportElement:Q(e=>e.viewportElement),role:Q(e=>e.role)},Xm=class e extends Sp{constructor(e,t,n=!1){let r=new Fp,i=Zm(e);i.floatingRootContext=Rp(r,t,n),super(i,{popupRef:U.createRef(),backdropRef:U.createRef(),internalBackdropRef:U.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},Ym)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};kp(n,e,t.trigger),this.update(n)};static useStore(t,n){return Dp(t,(t,r)=>new e(n,t,r),!0).store}};function Zm(e={}){return{...Lp(),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 Qm(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=ju(!0),y={modal:h,disablePointerDismissal:g,nested:!!v,role:_},b=Xm.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y});Lm(()=>{let e=r===void 0&&b.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?b.update(e?{...y,...e}:y):e&&b.update(e)}),b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`),w=qm({store:b,actionsRef:l,parentContext:v?.store.context,isDrawer:p}),T=x||S,E=U.useMemo(()=>({store:b}),[b]);return(0,W.jsx)(ku.Provider,{value:!1,children:(0,W.jsxs)(Au.Provider,{value:E,children:[T&&(0,W.jsx)(Jm,{store:b,dialogRoot:w}),typeof n==`function`?n({payload:C}):n]})})}function $m(e){return Qm(e,U.useContext(ku)?`drawer`:`dialog`)}var eh=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=ju(),c=dr(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Ft(`h2`,e,{ref:t,props:[{id:c},o]})});function th(e){let t=(0,ms.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)($m,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function nh(e){let t=(0,ms.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(Im,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function rh(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=rn(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 z-50 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(Uu,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ih(e){let t=(0,ms.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsx)(rh,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=rn(`data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-closed:animate-out data-open:animate-in fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[7]=r,t[8]=u);let d;t[9]===c?d=t[10]:(d=c&&(0,W.jsxs)(Wu,{"data-slot":`sheet-close`,render:(0,W.jsx)(ar,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,W.jsx)(ic,{}),(0,W.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=c,t[10]=d);let f;return t[11]!==n||t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==d?(f=(0,W.jsxs)(nh,{children:[l,(0,W.jsxs)(Nm,{className:u,"data-side":s,"data-slot":`sheet-content`,...i,children:[n,d]})]}),t[11]=n,t[12]=i,t[13]=s,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function ah(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=rn(`flex flex-col gap-1.5 p-6`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function oh(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=rn(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(eh,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function sh(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=rn(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(Gu,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var ch=U.createContext(void 0);function lh(e){let t=U.useContext(ch);if(t===void 0&&!e)throw Error(zt(72));return t}var uh={...Wp,disabled:Q(e=>e.disabled),instantType:Q(e=>e.instantType),isInstantPhase:Q(e=>e.isInstantPhase),trackCursorAxis:Q(e=>e.trackCursorAxis),disableHoverablePopup:Q(e=>e.disableHoverablePopup),lastOpenChangeReason:Q(e=>e.openChangeReason),closeOnClick:Q(e=>e.closeOnClick),closeDelay:Q(e=>e.closeDelay),hasViewport:Q(e=>e.hasViewport)},dh=class e extends Sp{constructor(e,t,n=!1){let r=new Fp,i={...fh(),...e};i.floatingRootContext=Rp(r,t,n),super(i,{popupRef:U.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},uh)}setOpen=(e,t)=>{let n=t.reason,r=n===gr,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),kp(r,e,t.trigger),this.update(r)};r?vu.flushSync(o):o()};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Cr(hr,e))}static useStore(t,n){return Dp(t,(t,r)=>new e(n,t,r)).store}};function fh(){return{...Lp(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var ph=dp(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=dh.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});Lm(()=>{r===void 0&&p.state.open===!1&&n===!0&&p.update({open:!0,activeTriggerId:d})}),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),jp(p);let{forceUnmount:y,transitionStatus:b}=Mp(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=U.useRef(null);B(()=>{m&&t&&p.setOpen(!1,Cr(_r))},[m,t,p]),B(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),B(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=U.useCallback(()=>{p.setOpen(!1,Cr(Sr))},[p]);U.useImperativeHandle(o,()=>({unmount:y,close:T}),[y,T]);let E=h||_||!t&&a!==`none`;return(0,W.jsxs)(ch.Provider,{value:p,children:[E&&(0,W.jsx)(mh,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function mh({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Xd(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Kd(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return Np(e,{activeTriggerProps:U.useMemo(()=>Nt(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:U.useMemo(()=>Nt(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:U.useMemo(()=>Nt(Ep,a.floating,i.floating),[a.floating,i.floating])}),null}var hh=U.createContext(void 0);function gh(){return U.useContext(hh)}var _h=function(e){return e[e.popupOpen=Nu.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),vh=`data-base-ui-tooltip-trigger`;function yh(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;em.select(`transitionStatus`)===`ending`,shouldOpen(){return!N.current}}),F=Jp(v,{enabled:!A}).reference,oe=e=>{let t=N.current,n=yh(e),r=ie(n),i=y.current,a=i&&n&&H(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,Cr(gr,e));return}if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&Yc(te.current)){let t=()=>{!N.current&&!j.current&&!m.select(`open`)&&m.setOpen(!0,Cr(gr,e,i))},n=ne();n===0?(P.clear(),t()):P.start(n,t)}},se=m.useState(`triggerProps`,C);return Ft(`button`,e,{state:{open:_},ref:[t,S,y],props:[ae,F,C||M!==`none`?se:void 0,{onMouseOver(e){oe(e.nativeEvent)},onFocus(e){re(yh(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){N.current=!1,P.clear(),te.current=void 0},onPointerEnter(e){te.current=e.pointerType},onPointerDown(e){te.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[_h.triggerDisabled]:A?``:void 0,[vh]:A?void 0:``},f],stateAttributesMapping:zu})}),Sh=U.createContext(void 0);function Ch(){let e=U.useContext(Sh);if(e===void 0)throw Error(zt(70));return e}var wh=U.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=Od({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,W.jsxs)(U.Fragment,{children:[l,c&&vu.createPortal(n,c)]})}),Th=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return lh().useState(`mounted`)||n?(0,W.jsx)(Sh.Provider,{value:n,children:(0,W.jsx)(wh,{ref:t,...r})}):null}),Eh=U.createContext(void 0);function Dh(){let e=U.useContext(Eh);if(e===void 0)throw Error(zt(71));return e}var Oh=U.createContext(void 0);function kh(){return U.useContext(Oh)?.direction??`ltr`}var Ah=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=al(e,t)||{};if(l==null)return{};let f=Cl(u),p={x:n,y:r},m=dl(i),h=ll(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=il(k,j,A),ee=!c.arrow&&sl(i)!=null&&j!==M&&a.reference[h]/2-(j({...Ah(e),options:[e,t]}),Mh={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await op().fn(e)).data?.referenceHidden||a}}}},Nh={sideX:`left`,sideY:`top`},Ph={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=qn(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Nh};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=Tr(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=ol(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:Nh.sideX,g=f===`top`?`bottom`:Nh.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function Fh(e,t,n){let 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 Ih(e,t,n){let{rects:r,placement:i}=e;return{side:Fh(t,ol(i),n),align:sl(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Lh(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:x}=e,[S,C]=U.useState(null);!h&&S!==null&&C(null);let w=g.side||`flip`,T=g.align||`flip`,E=g.fallbackAxisSide||`end`,D=typeof t==`function`?t:void 0,O=ir(D),k=D?O:t,A=td(t),j=td(h),M=kh()===`rtl`,ee=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":M?`left`:`right`,"inline-start":M?`right`:`left`}[r],N=a===`center`?ee:`${ee}-${a}`,P=c,te=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),ie=+(r===`left`);typeof P==`number`?P={top:P+te,right:P+ie,bottom:P+ne,left:P+re}:P&&={top:(P.top||0)+te,right:(P.right||0)+ie,bottom:(P.bottom||0)+ne,left:(P.left||0)+re};let ae={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},F=U.useRef(null),oe=td(i),se=td(o),I=typeof i==`function`?0:i,ce=typeof o==`function`?0:o,le=[];f&&le.push(f),le.push(tp(e=>{let t=Ih(e,r,M),n=typeof oe.current==`function`?oe.current(t):oe.current,i=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[I,ce,M,r]));let ue=T===`none`&&w!==`shift`,de=!ue&&(l||_||w===`shift`),fe=w===`none`?null:ip({...ae,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!_&&w===`flip`,crossAxis:T===`flip`?`alignment`:!1,fallbackAxisSideDirection:E}),pe=ue?null:np(e=>{let t=Tr(e.elements.floating).documentElement;return{...ae,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:T!==`none`,crossAxis:de,limiter:l||_?void 0:rp(e=>{if(!F.current)return{};let{width:t,height:n}=F.current.getBoundingClientRect(),r=ul(ol(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[ae,l,_,P,T]);w===`shift`||T===`shift`||a===`center`?le.push(pe,fe):le.push(fe,pe),le.push(ap({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!j.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=qn(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),jh(e=>({element:F.current||Tr(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=ol(a),l=ul(c),u=F.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(Ih(e,r,M)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,de&&l===`y`&&b?S:x),{}}},Mh,y),B(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let me=U.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=Kp({rootContext:m,open:p?h:void 0,placement:N,middleware:le,strategy:n,whileElementsMounted:p?void 0:(...e)=>Vf(...e,me),nodeId:v,externalTree:x}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||Nh,De=Ce?n:`fixed`,Oe=U.useMemo(()=>{let e=y?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[y,De,Te,_e,Ee,ve,we,Ce]),ke=U.useRef(null);B(()=>{if(!h)return;let e=A.current,t=typeof e==`function`?e():e,n=(Rh(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[h,he,k,A]),U.useEffect(()=>{if(!h)return;let e=A.current;typeof e!=`function`&&Rh(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[h,he,k,A]),U.useEffect(()=>{if(p&&h&&ge.domReference&&ge.floating)return Vf(ge.domReference,ge.floating,be,me)},[p,h,ge,be,me]);let Ae=ol(xe),je=Fh(r,Ae,M),Me=sl(xe)||`center`,Ne=!!ye.hide?.referenceHidden;B(()=>{b&&h&&Ce&&C(Ae)},[b,h,Ce,Ae]);let Pe=U.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Fe=ye.arrow?.centerOffset!==0;return U.useMemo(()=>({positionerStyles:Oe,arrowStyles:Pe,arrowRef:F,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,Pe,F,Fe,je,Me,Ae,Ne,he,Se,Ce,be])}function Rh(e){return e!=null&&`current`in e}function zh(e){return e===`starting`?xd:jt}function Bh(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),Ft(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},zh(r),i],stateAttributesMapping:Vu})}var Vh=U.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Cd,style:g,..._}=e,v=lh(),y=Ch(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=Lh({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?Ph:void 0}),O=Bh(e,U.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,W.jsx)(Eh.Provider,{value:D,children:O})}),Hh={...Vu,..._u},Uh=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=lh(),{side:s,align:c}=Dh(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);bu({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),em(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return Ft(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,zh(d),a],stateAttributesMapping:Hh})}),Wh=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=lh(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=Dh();return Ft(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:Vu})}),Gh=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=U.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=U.useMemo(()=>({open:t,close:n}),[t,n]);return(0,W.jsx)(hh.Provider,{value:i,children:(0,W.jsx)(Qu,{delay:a,timeoutMs:r,children:e.children})})};function Kh(e){let t=(0,ms.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,W.jsx)(Gh,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function qh(e){let t=(0,ms.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(Kh,{children:(0,W.jsx)(ph,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function Jh(e){let t=(0,ms.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(xh,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function Yh(e){let t=(0,ms.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`top`:a,u=o===void 0?4:o,d=s===void 0?`center`:s,f=c===void 0?0:c,p;t[8]===r?p=t[9]:(p=rn(`data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background **:data-[slot=kbd]:rounded-md`,r),t[8]=r,t[9]=p);let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,W.jsx)(Wh,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[10]=m):m=t[10];let h;t[11]!==n||t[12]!==i||t[13]!==p?(h=(0,W.jsxs)(Uh,{className:p,"data-slot":`tooltip-content`,...i,children:[n,m]}),t[11]=n,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==f||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,W.jsx)(Th,{children:(0,W.jsx)(Vh,{align:d,alignOffset:f,className:`isolate z-50`,side:l,sideOffset:u,children:h})}),t[15]=d,t[16]=f,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}var Xh=window.matchMedia(`(max-width: 767px)`);function Zh(e){return Xh.addEventListener(`change`,e),()=>Xh.removeEventListener(`change`,e)}function Qh(){return Xh.matches}function $h(){return(0,U.useSyncExternalStore)(Zh,Qh)}var eg=`sidebar_state`,tg=3600*24*7,ng=`12rem`,rg=`16rem`,ig=`3rem`,ag=`b`,og=U.createContext(null);function sg(){let e=U.useContext(og);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function cg(e){let t=(0,ms.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=$h(),[d,f]=U.useState(!1),[p,m]=U.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${eg}=${t}; path=/; max-age=${tg}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(ug):_(lg),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===ag&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),U.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===r?T=t[25]:(T=rn(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[24]=r,t[25]=T);let E;t[26]===s?E=t[27]:(E={"--sidebar-width":ng,"--sidebar-width-icon":ig,...s},t[26]=s,t[27]=E);let D=E,O;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==D?(O=(0,W.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:D,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=D,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,W.jsx)(og.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function lg(e){return!e}function ug(e){return!e}function dg(e){let t=(0,ms.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offExamples`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=sg();if(u===`none`){let e;t[7]===r?e=t[8]:(e=rn(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,W.jsx)(`div`,{className:e,"data-slot":`sidebar`,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":rg},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,W.jsxs)(ah,{className:`sr-only`,children:[(0,W.jsx)(oh,{children:`Sidebar`}),(0,W.jsx)(sh,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,W.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=o);let s;t[17]!==c||t[18]!==o?(s=(0,W.jsxs)(ih,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:c,style:r,children:[a,o]}),t[17]=c,t[18]=o,t[19]=s):s=t[19];let l;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==s?(l=(0,W.jsx)(th,{onOpenChange:m,open:p,...i,children:s}),t[20]=p,t[21]=i,t[22]=m,t[23]=s,t[24]=l):l=t[24],l}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=rn(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,W.jsx)(`div`,{className:_,"data-slot":`sidebar-gap`}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=rn(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,W.jsx)(`div`,{className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,W.jsx)(`div`,{className:x,"data-slot":`sidebar-container`,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,W.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":h,"data-side":c,"data-slot":`sidebar`,"data-state":f,"data-variant":l,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function fg(e){let t=(0,ms.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a}=sg(),o;t[4]===n?o=t[5]:(o=rn(n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==a?(s=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=s):s=t[8];let c,l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsx)(Js,{}),l=(0,W.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[9]=c,t[10]=l):(c=t[9],l=t[10]);let u;return t[11]!==i||t[12]!==o||t[13]!==s?(u=(0,W.jsxs)(ar,{className:o,"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:s,size:`icon-lg`,variant:`ghost`,...i,children:[c,l]}),t[11]=i,t[12]=o,t[13]=s,t[14]=u):u=t[14],u}function pg(e){let t=(0,ms.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let{toggleSidebar:i}=sg(),a;t[3]===n?a=t[4]:(a=rn(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-sidebar`,`[[data-side=left][data-collapsible=offExamples]_&]:-right-2`,`[[data-side=right][data-collapsible=offExamples]_&]:-left-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a||t[7]!==i?(o=(0,W.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function mg(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=rn(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`header`,"data-slot":`sidebar-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function hg(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=rn(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function gg(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=rn(`mx-2 w-auto bg-sidebar-border`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(Ou,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function _g(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=rn(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`content`,"data-slot":`sidebar-content`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function vg(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=rn(`relative flex w-full min-w-0 flex-col px-2 py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`group`,"data-slot":`sidebar-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function yg(e){let t=(0,ms.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=ys,r=`div`,i=Nt({className:rn(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,o)},c),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`sidebar-group-label`,sidebar:`group-label`},t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[6]=n,t[7]=r,t[8]=i,t[9]=s):s=t[9],a(s)}function bg(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=rn(`flex w-full min-w-0 flex-col gap-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`ul`,{className:i,"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function xg(e){let t=(0,ms.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=rn(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`li`,{className:i,"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Sg=Rt(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-xs`,sm:`h-7 text-xs`,lg:`h-12 text-xs group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Cg(e){let t=(0,ms.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r===void 0?!1:r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=sg(),m=Nt({className:rn(Sg({variant:u,size:d}),s)},c),h=o?Jh:n,g;t[0]!==l||t[1]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[0]=l,t[1]=d,t[2]=g):g=t[2];let _;t[3]!==m||t[4]!==h||t[5]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[3]=m,t[4]=h,t[5]=g,t[6]=_):_=t[6];let v=ys(_);if(!o)return v;let y;t[7]===o?y=t[8]:(y=typeof o==`string`?{children:o}:o,t[7]=o,t[8]=y);let b=y,x=p!==`collapsed`||f,S;t[9]!==x||t[10]!==b?(S=(0,W.jsx)(Yh,{align:`center`,hidden:x,side:`right`,...b}),t[9]=x,t[10]=b,t[11]=S):S=t[11];let C;return t[12]!==v||t[13]!==S?(C=(0,W.jsxs)(qh,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var wg=class{async sign(e,t,n){return e}},Tg=`ref`,Eg=-1,Dg=!0,Og=`isSet`,kg=`PartitionResult`,Ag=`booleanEquals`,jg=`stringEquals`,Mg=`getAttr`,Ng=`us-east-1`,Pg=`sigv4`,Fg=`sts`,Ig=`https://sts.{Region}.{PartitionResult#dnsSuffix}`,Lg={[Tg]:`Endpoint`},Rg={[Tg]:`Region`},zg={[Tg]:kg},Bg={},Vg=[Rg],Hg={conditions:[[Og,[Lg]],[Og,Vg],[`aws.partition`,Vg,kg],[Ag,[{[Tg]:`UseFIPS`},Dg]],[Ag,[{[Tg]:`UseDualStack`},Dg]],[jg,[Rg,`aws-global`]],[Ag,[{[Tg]:`UseGlobalEndpoint`},Dg]],[jg,[Rg,`eu-central-1`]],[Ag,[{fn:Mg,argv:[zg,`supportsDualStack`]},Dg]],[Ag,[{fn:Mg,argv:[zg,`supportsFIPS`]},Dg]],[jg,[Rg,`ap-south-1`]],[jg,[Rg,`eu-north-1`]],[jg,[Rg,`eu-west-1`]],[jg,[Rg,`eu-west-2`]],[jg,[Rg,`eu-west-3`]],[jg,[Rg,`sa-east-1`]],[jg,[Rg,Ng]],[jg,[Rg,`us-east-2`]],[jg,[Rg,`us-west-2`]],[jg,[Rg,`us-west-1`]],[jg,[Rg,`ca-central-1`]],[jg,[Rg,`ap-southeast-1`]],[jg,[Rg,`ap-northeast-1`]],[jg,[Rg,`ap-southeast-2`]],[jg,[{fn:Mg,argv:[zg,`name`]},`aws-us-gov`]]],results:[[Eg],[`https://sts.amazonaws.com`,{authSchemes:[{name:Pg,signingName:Fg,signingRegion:Ng}]}],[Ig,{authSchemes:[{name:Pg,signingName:Fg,signingRegion:`{Region}`}]}],[Eg,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Eg,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Lg,Bg],[`https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Bg],[Eg,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://sts.{Region}.amazonaws.com`,Bg],[`https://sts-fips.{Region}.{PartitionResult#dnsSuffix}`,Bg],[Eg,`FIPS is enabled but this partition does not support FIPS`],[`https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}`,Bg],[Eg,`DualStack is enabled but this partition does not support DualStack`],[Ig,Bg],[Eg,`Invalid Configuration: Missing Region`]]},Ug=2,Wg=new Int32Array([-1,1,-1,0,30,3,1,4,100000014,2,5,100000014,3,25,6,4,24,7,5,100000001,8,6,9,100000013,7,100000001,10,10,100000001,11,11,100000001,12,12,100000001,13,13,100000001,14,14,100000001,15,15,100000001,16,16,100000001,17,17,100000001,18,18,100000001,19,19,100000001,20,20,100000001,21,21,100000001,22,22,100000001,23,23,100000001,100000002,8,100000011,100000012,4,28,26,9,27,100000010,24,100000008,100000009,8,29,100000007,9,100000006,100000007,3,100000003,31,4,100000004,100000005]),Gg=On.from(Wg,Ug,Hg.conditions,Hg.results),Kg=new Nn({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`]}),qg=(e,t={})=>Kg.get(e,()=>Tn(Gg,{endpointParams:e,logger:t.logger}));Fn.aws=Jt;var Jg=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=Yt(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await Dn(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:Yt(t).operation,region:await on(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function Yg(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Xg(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Zg(e){return{schemeId:`smithy.api#noAuth`}}var Qg=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(gn.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a})(qg,e=>{let t=[];switch(e.operation){case`AssumeRoleWithSAML`:t.push(Zg(e)),t.push(Xg(e));break;case`AssumeRoleWithWebIdentity`:t.push(Zg(e)),t.push(Xg(e));break;default:t.push(Yg(e)),t.push(Xg(e))}return t},{"aws.auth#sigv4":Yg,"aws.auth#sigv4a":Xg,"smithy.api#noAuth":Zg}),$g=e=>{let t=cn(Kt(e));return Object.assign(t,{authSchemePreference:on(e.authSchemePreference??[])})},e_=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:`sts`}),t_={UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},n_={name:`@aws-sdk/client-sts`,description:`AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo sts`,test:`yarn g:vitest run`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/signature-v4-multi-region":`^3.996.34`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-sts`}},r_=class e extends zn{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},i_=class e extends r_{name=`ExpiredTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},a_=class e extends r_{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},o_=class e extends r_{name=`PackedPolicyTooLargeException`;$fault=`client`;constructor(t){super({name:`PackedPolicyTooLargeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},s_=class e extends r_{name=`RegionDisabledException`;$fault=`client`;constructor(t){super({name:`RegionDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},c_=class e extends r_{name=`IDPRejectedClaimException`;$fault=`client`;constructor(t){super({name:`IDPRejectedClaimException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},l_=class e extends r_{name=`InvalidIdentityTokenException`;$fault=`client`;constructor(t){super({name:`InvalidIdentityTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},u_=class e extends r_{name=`IDPCommunicationErrorException`;$fault=`client`;$retryable={};constructor(t){super({name:`IDPCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},d_=class e extends r_{name=`InvalidAuthorizationMessageException`;$fault=`client`;constructor(t){super({name:`InvalidAuthorizationMessageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},f_=class e extends r_{name=`ExpiredTradeInTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTradeInTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},p_=class e extends r_{name=`JWTPayloadSizeExceededException`;$fault=`client`;constructor(t){super({name:`JWTPayloadSizeExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},m_=class e extends r_{name=`OutboundWebIdentityFederationDisabledException`;$fault=`client`;constructor(t){super({name:`OutboundWebIdentityFederationDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},h_=class e extends r_{name=`SessionDurationEscalationException`;$fault=`client`;constructor(t){super({name:`SessionDurationEscalationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},g_=`Arn`,__=`AccessKeyId`,v_=`Account`,y_=`Credentials`,b_=`DurationSeconds`,x_=`Expiration`,S_=`ExpiredTokenException`,C_=`ExpiredTradeInTokenException`,w_=`GetCallerIdentity`,T_=`GetCallerIdentityRequest`,E_=`GetCallerIdentityResponse`,D_=`GetSessionToken`,O_=`GetSessionTokenRequest`,k_=`GetSessionTokenResponse`,A_=`InvalidAuthorizationMessageException`,j_=`IDPCommunicationErrorException`,M_=`IDPRejectedClaimException`,N_=`InvalidIdentityTokenException`,P_=`JWTPayloadSizeExceededException`,F_=`MalformedPolicyDocumentException`,I_=`OutboundWebIdentityFederationDisabledException`,L_=`PackedPolicyTooLargeException`,R_=`RegionDisabledException`,z_=`SecretAccessKey`,B_=`SessionDurationEscalationException`,V_=`SerialNumber`,H_=`SessionToken`,U_=`TokenCode`,W_=`UserId`,G_=`accessKeySecretType`,K_=`awsQueryError`,q_=`client`,J_=`error`,Y_=`httpError`,X_=`message`,Z_=`smithy.ts.sdk.synthetic.com.amazonaws.sts`,Q_=`com.amazonaws.sts`,$_=Wt.for(Z_),ev=[-3,Z_,`STSServiceException`,0,[],[]];$_.registerError(ev,r_);var tv=Wt.for(Q_),nv=[-3,Q_,S_,{[K_]:[`ExpiredTokenException`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(nv,i_);var rv=[-3,Q_,C_,{[K_]:[`ExpiredTradeInTokenException`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(rv,f_);var iv=[-3,Q_,j_,{[K_]:[`IDPCommunicationError`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(iv,u_);var av=[-3,Q_,M_,{[K_]:[`IDPRejectedClaim`,403],[J_]:q_,[Y_]:403},[X_],[0]];tv.registerError(av,c_);var ov=[-3,Q_,A_,{[K_]:[`InvalidAuthorizationMessageException`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(ov,d_);var sv=[-3,Q_,N_,{[K_]:[`InvalidIdentityToken`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(sv,l_);var cv=[-3,Q_,P_,{[K_]:[`JWTPayloadSizeExceededException`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(cv,p_);var lv=[-3,Q_,F_,{[K_]:[`MalformedPolicyDocument`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(lv,a_);var uv=[-3,Q_,I_,{[K_]:[`OutboundWebIdentityFederationDisabledException`,403],[J_]:q_,[Y_]:403},[X_],[0]];tv.registerError(uv,m_);var dv=[-3,Q_,L_,{[K_]:[`PackedPolicyTooLarge`,400],[J_]:q_,[Y_]:400},[X_],[0]];tv.registerError(dv,o_);var fv=[-3,Q_,R_,{[K_]:[`RegionDisabledException`,403],[J_]:q_,[Y_]:403},[X_],[0]];tv.registerError(fv,s_);var pv=[-3,Q_,B_,{[K_]:[`SessionDurationEscalationException`,403],[J_]:q_,[Y_]:403},[X_],[0]];tv.registerError(pv,h_);var mv=[$_,tv],hv=[0,Q_,G_,8,0],gv=[3,Q_,y_,0,[__,z_,H_,x_],[0,[()=>hv,0],0,4],4],_v=[3,Q_,T_,0,[],[]],vv=[3,Q_,E_,0,[W_,v_,g_],[0,0,0]],yv=[3,Q_,O_,0,[b_,V_,U_],[1,0,0]],bv=[3,Q_,k_,0,[y_],[[()=>gv,0]]],xv=[9,Q_,w_,0,()=>_v,()=>vv],Sv=[9,Q_,D_,0,()=>yv,()=>bv],Cv=e=>({apiVersion:`2011-06-15`,base64Decoder:e?.base64Decoder??Dr,base64Encoder:e?.base64Encoder??kr,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??qg,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Qg,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Vt},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new jn},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new wg}],logger:e?.logger??new xn,protocol:e?.protocol??En,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sts`,errorTypeRegistries:mv,xmlNamespace:`https://sts.amazonaws.com/doc/2011-06-15/`,version:`2011-06-15`,serviceTarget:`AWSSecurityTokenServiceV20110615`},serviceId:e?.serviceId??`STS`,signerConstructor:e?.signerConstructor??gn,urlParser:e?.urlParser??An,utf8Decoder:e?.utf8Decoder??Er,utf8Encoder:e?.utf8Encoder??Or}),wv=e=>{let t=sn(e),n=()=>t().then(Sn),r=Cv(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ar,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Qt({serviceId:r.serviceId,clientVersion:n_.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Mn(`Region is missing`),requestHandler:hn.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||yn),sha256:e?.sha256??Ut,streamCollector:e?.streamCollector??Rn,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Tv=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Ev=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Dv=(e,t)=>{let n=Object.assign(kn(e),Ln(e),Bt(e),Tv(e));return t.forEach(e=>e.configure(n)),Object.assign(e,an(n),Bn(n),wn(n),Ev(n))},Ov=class extends ln{config;constructor(...[e]){let t=wv(e||{});super(t),this.initConfig=t;let n=Dv($g(Cn(tn(un(bn(pn(e_(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(qt(this.config)),this.middlewareStack.use(nn(this.config)),this.middlewareStack.use(en(this.config)),this.middlewareStack.use(fn(this.config)),this.middlewareStack.use(Xt(this.config)),this.middlewareStack.use(vn(this.config)),this.middlewareStack.use(_n(this.config)),this.middlewareStack.use(Zt(this.config,{httpAuthSchemeParametersProvider:Jg,identityProviderConfigProvider:async e=>new Vn({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(Ht(this.config))}destroy(){super.destroy()}},kv=class extends L.classBuilder().ep(t_).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetCallerIdentity`,{}).n(`STSClient`,`GetCallerIdentityCommand`).sc(xv).build(){},Av=class extends L.classBuilder().ep(t_).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetSessionToken`,{}).n(`STSClient`,`GetSessionTokenCommand`).sc(Sv).build(){},jv=`ap-southeast-2`,Mv=9999,Nv=class extends Error{status;constructor(e,t,n){super(e),this.name=t,this.status=n}};function Pv(e,t){let n=`<${t}>`,r=``,i=e.indexOf(n);if(i===-1)return null;let a=e.indexOf(r,i+n.length);return a===-1?null:e.slice(i+n.length,a)}async function Fv({action:e,credentials:t,service:n=`spinifex`}){let r=window.location.protocol.replace(`:`,``),i=`Action=${e}`,a=new dn({method:`POST`,protocol:r,hostname:`localhost`,port:Mv,path:`/`,headers:{host:`localhost:${Mv}`,"content-type":`application/x-www-form-urlencoded`},body:i}),o=await new Gt({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken},region:jv,service:n,sha256:Ut}).sign(a),s={};for(let[e,t]of Object.entries(o.headers))typeof t==`string`&&(s[e]=t);let c=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,l=await fetch(c,{method:`POST`,headers:s,body:i});if(!l.ok){let t=await l.text().catch(()=>``),n=Pv(t,`Code`),r=Pv(t,`Message`)??t;throw new Nv(`${e} failed: ${l.status}${r?` - ${r}`:``}`,n??`SignedFetchError`,l.status)}return await l.json()}var Iv=`ap-southeast-2`,Lv=`${window.location.protocol}//localhost:9999`,Rv=43200;function zv(e){e.middlewareStack.add(e=>async t=>(dn.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}function Bv(e){let t=new Ov({endpoint:Lv,region:Iv,credentials:e});return zv(t),t}function Vv(){let e=In();if(!e)throw Error(`AWS credentials not configured`);return Bv({accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken})}async function Hv(e){let t=(await Bv(e).send(new Av({DurationSeconds:Rv}))).Credentials;if(!t?.AccessKeyId||!t.SecretAccessKey||!t.SessionToken||!t.Expiration)throw Error(`GetSessionToken returned incomplete credentials`);return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.SessionToken,expiration:t.Expiration.toISOString()}}var Uv=`000000000001`;function Wv(e){let t=e?.indexOf(`:user/`)??-1;return t===-1||e===void 0?null:e.slice(t+6)||null}var Gv=(0,U.createContext)(void 0);function Kv({children:e}){let[t,n]=(0,U.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,U.useEffect)(()=>{async function e(){let e=In();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await Vv().send(new kv({})),r=t.Account??null,i=r===Uv,a=null;if(i)try{a=await Fv({action:`GetVersion`,credentials:e})}catch{}n({isAdmin:i,accountId:r,userName:Wv(t.Arn),version:a,license:a?.license??null,loading:!1})}catch{n(e=>({...e,loading:!1}))}}e()},[]),(0,W.jsx)(Gv,{value:t,children:e})}function qv(){let e=(0,U.useContext)(Gv);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}var Jv=new Set([`InvalidClientTokenId`,`SignatureDoesNotMatch`,`AuthFailure`,`MissingAuthenticationToken`,`IncompleteSignature`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function Yv(e){if(typeof e!=`object`||!e||!(`name`in e))return!1;let{name:t}=e;return typeof t==`string`&&Jv.has(t)}var Xv=class extends L.classBuilder().ep(Qe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ListCertificates`,{}).n(`ACMClient`,`ListCertificatesCommand`).sc(at).build(){},Zv=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAddresses`,{}).n(`EC2Client`,`DescribeAddressesCommand`).sc(Pe).build(){},Qv=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAvailabilityZones`,{}).n(`EC2Client`,`DescribeAvailabilityZonesCommand`).sc(Fe).build(){},$v=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeIamInstanceProfileAssociations`,{}).n(`EC2Client`,`DescribeIamInstanceProfileAssociationsCommand`).sc(ye).build(){},ey=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeImages`,{}).n(`EC2Client`,`DescribeImagesCommand`).sc(Ee).build(){},ty=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstances`,{}).n(`EC2Client`,`DescribeInstancesCommand`).sc(Le).build(){},ny=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstanceTypes`,{}).n(`EC2Client`,`DescribeInstanceTypesCommand`).sc(Ne).build(){},ry=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInternetGateways`,{}).n(`EC2Client`,`DescribeInternetGatewaysCommand`).sc(kt).build(){},iy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeKeyPairs`,{}).n(`EC2Client`,`DescribeKeyPairsCommand`).sc(_e).build(){},ay=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeNatGateways`,{}).n(`EC2Client`,`DescribeNatGatewaysCommand`).sc(He).build(){},oy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribePlacementGroups`,{}).n(`EC2Client`,`DescribePlacementGroupsCommand`).sc(we).build(){},sy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRegions`,{}).n(`EC2Client`,`DescribeRegionsCommand`).sc(ze).build(){},cy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRouteTables`,{}).n(`EC2Client`,`DescribeRouteTablesCommand`).sc(Ge).build(){},ly=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSecurityGroups`,{}).n(`EC2Client`,`DescribeSecurityGroupsCommand`).sc(xe).build(){},uy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSnapshots`,{}).n(`EC2Client`,`DescribeSnapshotsCommand`).sc(je).build(){},dy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSubnets`,{}).n(`EC2Client`,`DescribeSubnetsCommand`).sc(vt).build(){},fy=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVolumes`,{}).n(`EC2Client`,`DescribeVolumesCommand`).sc(Oe).build(){},py=class extends L.classBuilder().ep(ft).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVpcs`,{}).n(`EC2Client`,`DescribeVpcsCommand`).sc(Ye).build(){},my=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAccessEntry`,{}).n(`EKSClient`,`DescribeAccessEntryCommand`).sc(At).build(){},hy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAddon`,{}).n(`EKSClient`,`DescribeAddonCommand`).sc(ve).build(){},gy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAddonVersions`,{}).n(`EKSClient`,`DescribeAddonVersionsCommand`).sc(Ue).build(){},_y=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeCluster`,{}).n(`EKSClient`,`DescribeClusterCommand`).sc(Te).build(){},vy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeNodegroup`,{}).n(`EKSClient`,`DescribeNodegroupCommand`).sc(Be).build(){},yy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAccessEntries`,{}).n(`EKSClient`,`ListAccessEntriesCommand`).sc(Se).build(){},by=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAccessPolicies`,{}).n(`EKSClient`,`ListAccessPoliciesCommand`).sc(Me).build(){},xy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAddons`,{}).n(`EKSClient`,`ListAddonsCommand`).sc(yt).build(){},Sy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAssociatedAccessPolicies`,{}).n(`EKSClient`,`ListAssociatedAccessPoliciesCommand`).sc(ke).build(){},Cy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListClusters`,{}).n(`EKSClient`,`ListClustersCommand`).sc(Xe).build(){},wy=class extends L.classBuilder().ep(rt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListNodegroups`,{}).n(`EKSClient`,`ListNodegroupsCommand`).sc(qe).build(){},Ty=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeListeners`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeListenersCommand`).sc(it).build(){},Ey=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancerAttributesCommand`).sc(gt).build(){},Dy=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancers`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancersCommand`).sc(pt).build(){},Oy=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeRules`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeRulesCommand`).sc(ct).build(){},ky=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeSSLPolicies`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeSSLPoliciesCommand`).sc(ot).build(){},Ay=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTags`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTagsCommand`).sc($e).build(){},jy=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupAttributesCommand`).sc(Tt).build(){},My=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroups`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupsCommand`).sc(Ot).build(){},Ny=class extends L.classBuilder().ep(ut).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetHealth`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetHealthCommand`).sc(nt).build(){},Py=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetInstanceProfile`,{}).n(`IAMClient`,`GetInstanceProfileCommand`).sc(ge).build(){},Fy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicy`,{}).n(`IAMClient`,`GetPolicyCommand`).sc(Ve).build(){},Iy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicyVersion`,{}).n(`IAMClient`,`GetPolicyVersionCommand`).sc(Ce).build(){},Ly=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetRole`,{}).n(`IAMClient`,`GetRoleCommand`).sc(Re).build(){},Ry=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetUser`,{}).n(`IAMClient`,`GetUserCommand`).sc(We).build(){},zy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAccessKeys`,{}).n(`IAMClient`,`ListAccessKeysCommand`).sc(be).build(){},By=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedRolePolicies`,{}).n(`IAMClient`,`ListAttachedRolePoliciesCommand`).sc(Ae).build(){},Vy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedUserPolicies`,{}).n(`IAMClient`,`ListAttachedUserPoliciesCommand`).sc(_t).build(){},Hy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfiles`,{}).n(`IAMClient`,`ListInstanceProfilesCommand`).sc(De).build(){},Uy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfilesForRole`,{}).n(`IAMClient`,`ListInstanceProfilesForRoleCommand`).sc(Je).build(){},Wy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListPolicies`,{}).n(`IAMClient`,`ListPoliciesCommand`).sc(Ke).build(){},Gy=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListRoles`,{}).n(`IAMClient`,`ListRolesCommand`).sc(Ze).build(){},Ky=class extends L.classBuilder().ep(Ct).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListUsers`,{}).n(`IAMClient`,`ListUsersCommand`).sc(Ie).build(){},qy=class extends L.classBuilder().ep(Et).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions()),tt(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(dt).build(){},Jy=class extends L.classBuilder().ep({...Et,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions()),tt(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(st).build(){},Yy=!1;function Xy(e,t){Yy||!Yv(e)||(Yy=!0,Pn(),St(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function Zy(){let e=new ji({queryCache:new Ai({onError:t=>Xy(t,e)}),mutationCache:new Oi({onError:t=>Xy(t,e)}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function Qy(){let e=(0,ms.c)(8),{theme:t,setTheme:n}=vs(),r;e[0]!==n||e[1]!==t?(r=()=>{n(t===`light`?`dark`:t===`dark`?`light`:`dark`)},e[0]=n,e[1]=t,e[2]=r):r=e[2];let i=r,a,o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,W.jsx)(ec,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,W.jsx)(Ks,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,W.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`}),e[3]=a,e[4]=o,e[5]=s):(a=e[3],o=e[4],s=e[5]);let c;return e[6]===i?c=e[7]:(c=(0,W.jsxs)(ar,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function $y(){let e=(0,ms.c)(7),{isAdmin:t,license:n}=qv(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=rn(`z-50 flex h-10 shrink-0 items-center gap-2 border-b border-sidebar-border bg-sidebar px-4 text-sidebar-foreground`,`sticky top-0`),a=(0,W.jsx)(fg,{className:`-ml-1`}),e[0]=i,e[1]=a):(i=e[0],a=e[1]);let o;e[2]===r?o=e[3]:(o=r&&(0,W.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:rn(tr({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,W.jsx)(Qy,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,W.jsxs)(`header`,{className:i,children:[a,(0,W.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function eb(){let e=(0,ms.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,W.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,W.jsx)(wt,{to:`/`,children:(0,W.jsx)(ar,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function tb(){let e=(0,ms.c)(194),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:nb},e[0]=t):t=e[0];let n=is(t),r=No(),i=Ni(),{isAdmin:a}=qv(),o;e[1]!==r||e[2]!==i?(o=function(){Pn(),St(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=o):o=e[3];let s=o,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsxs)(mg,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,W.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,W.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=c):c=e[4];let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsx)(yg,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,W.jsx)(Rs,{className:`size-4`}),f=(0,W.jsx)(`span`,{children:`Dashboard`}),e[6]=d,e[7]=f):(d=e[6],f=e[7]);let p;e[8]===u?p=e[9]:(p=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/`,children:(0,W.jsxs)(Cg,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/nodes`,children:(0,W.jsxs)(Cg,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,W.jsx)(Zs,{className:`size-4`}),(0,W.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=a,e[11]=n,e[12]=m):m=e[12];let h;e[13]!==p||e[14]!==m?(h=(0,W.jsxs)(vg,{children:[l,(0,W.jsxs)(bg,{children:[p,m]})]}),e[13]=p,e[14]=m,e[15]=h):h=e[15];let g;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,W.jsx)(yg,{children:`EC2`}),e[16]=g):g=e[16];let _;e[17]===n?_=e[18]:(_=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=_);let v,y;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,W.jsx)(Zs,{className:`size-4`}),y=(0,W.jsx)(`span`,{children:`Instances`}),e[19]=v,e[20]=y):(v=e[19],y=e[20]);let b;e[21]===_?b=e[22]:(b=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-instances`,children:(0,W.jsxs)(Cg,{isActive:_,tooltip:`Instances`,children:[v,y]})})}),e[21]=_,e[22]=b);let x;e[23]===n?x=e[24]:(x=n.startsWith(`/ec2/describe-images`),e[23]=n,e[24]=x);let S,C;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,W.jsx)(Bs,{className:`size-4`}),C=(0,W.jsx)(`span`,{children:`Images`}),e[25]=S,e[26]=C):(S=e[25],C=e[26]);let w;e[27]===x?w=e[28]:(w=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-images`,children:(0,W.jsxs)(Cg,{isActive:x,tooltip:`Images`,children:[S,C]})})}),e[27]=x,e[28]=w);let T;e[29]===n?T=e[30]:(T=n.startsWith(`/ec2/describe-key-pairs`),e[29]=n,e[30]=T);let E,D;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,W.jsx)(Vs,{className:`size-4`}),D=(0,W.jsx)(`span`,{children:`Key Pairs`}),e[31]=E,e[32]=D):(E=e[31],D=e[32]);let O;e[33]===T?O=e[34]:(O=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-key-pairs`,children:(0,W.jsxs)(Cg,{isActive:T,tooltip:`Key Pairs`,children:[E,D]})})}),e[33]=T,e[34]=O);let k;e[35]===n?k=e[36]:(k=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[35]=n,e[36]=k);let A,j;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,W.jsx)(Gs,{className:`size-4`}),j=(0,W.jsx)(`span`,{children:`Elastic IPs`}),e[37]=A,e[38]=j):(A=e[37],j=e[38]);let M;e[39]===k?M=e[40]:(M=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-addresses`,children:(0,W.jsxs)(Cg,{isActive:k,tooltip:`Elastic IPs`,children:[A,j]})})}),e[39]=k,e[40]=M);let ee;e[41]===n?ee=e[42]:(ee=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[41]=n,e[42]=ee);let N,P;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,W.jsx)(Ls,{className:`size-4`}),P=(0,W.jsx)(`span`,{children:`Volumes`}),e[43]=N,e[44]=P):(N=e[43],P=e[44]);let te;e[45]===ee?te=e[46]:(te=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-volumes`,children:(0,W.jsxs)(Cg,{isActive:ee,tooltip:`Volumes`,children:[N,P]})})}),e[45]=ee,e[46]=te);let ne;e[47]===n?ne=e[48]:(ne=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[47]=n,e[48]=ne);let re,ie;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,W.jsx)(Ns,{className:`size-4`}),ie=(0,W.jsx)(`span`,{children:`Snapshots`}),e[49]=re,e[50]=ie):(re=e[49],ie=e[50]);let ae;e[51]===ne?ae=e[52]:(ae=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-snapshots`,children:(0,W.jsxs)(Cg,{isActive:ne,tooltip:`Snapshots`,children:[re,ie]})})}),e[51]=ne,e[52]=ae);let F;e[53]===n?F=e[54]:(F=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[53]=n,e[54]=F);let oe,se;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,W.jsx)(Hs,{className:`size-4`}),se=(0,W.jsx)(`span`,{children:`Placement Groups`}),e[55]=oe,e[56]=se):(oe=e[55],se=e[56]);let I;e[57]===F?I=e[58]:(I=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-placement-groups`,children:(0,W.jsxs)(Cg,{isActive:F,tooltip:`Placement Groups`,children:[oe,se]})})}),e[57]=F,e[58]=I);let ce;e[59]===n?ce=e[60]:(ce=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[59]=n,e[60]=ce);let le,ue;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,W.jsx)(rc,{className:`size-4`}),ue=(0,W.jsx)(`span`,{children:`Load Balancers`}),e[61]=le,e[62]=ue):(le=e[61],ue=e[62]);let de;e[63]===ce?de=e[64]:(de=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-load-balancers`,children:(0,W.jsxs)(Cg,{isActive:ce,tooltip:`Load Balancers`,children:[le,ue]})})}),e[63]=ce,e[64]=de);let fe;e[65]===n?fe=e[66]:(fe=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[65]=n,e[66]=fe);let pe,me;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,W.jsx)(Fs,{className:`size-4`}),me=(0,W.jsx)(`span`,{children:`Target Groups`}),e[67]=pe,e[68]=me):(pe=e[67],me=e[68]);let he;e[69]===fe?he=e[70]:(he=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-target-groups`,children:(0,W.jsxs)(Cg,{isActive:fe,tooltip:`Target Groups`,children:[pe,me]})})}),e[69]=fe,e[70]=he);let ge;e[71]!==b||e[72]!==w||e[73]!==O||e[74]!==M||e[75]!==te||e[76]!==ae||e[77]!==I||e[78]!==de||e[79]!==he?(ge=(0,W.jsxs)(vg,{children:[g,(0,W.jsxs)(bg,{children:[b,w,O,M,te,ae,I,de,he]})]}),e[71]=b,e[72]=w,e[73]=O,e[74]=M,e[75]=te,e[76]=ae,e[77]=I,e[78]=de,e[79]=he,e[80]=ge):ge=e[80];let _e;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,W.jsx)(yg,{children:`Networking`}),e[81]=_e):_e=e[81];let ve;e[82]===n?ve=e[83]:(ve=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[82]=n,e[83]=ve);let ye,be;e[84]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,W.jsx)(qs,{className:`size-4`}),be=(0,W.jsx)(`span`,{children:`VPCs`}),e[84]=ye,e[85]=be):(ye=e[84],be=e[85]);let xe;e[86]===ve?xe=e[87]:(xe=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-vpcs`,children:(0,W.jsxs)(Cg,{isActive:ve,tooltip:`VPCs`,children:[ye,be]})})}),e[86]=ve,e[87]=xe);let Se;e[88]===n?Se=e[89]:(Se=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[88]=n,e[89]=Se);let Ce,we;e[90]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,W.jsx)(Us,{className:`size-4`}),we=(0,W.jsx)(`span`,{children:`Subnets`}),e[90]=Ce,e[91]=we):(Ce=e[90],we=e[91]);let Te;e[92]===Se?Te=e[93]:(Te=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-subnets`,children:(0,W.jsxs)(Cg,{isActive:Se,tooltip:`Subnets`,children:[Ce,we]})})}),e[92]=Se,e[93]=Te);let Ee;e[94]===n?Ee=e[95]:(Ee=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[94]=n,e[95]=Ee);let De,Oe;e[96]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,W.jsx)(Qs,{className:`size-4`}),Oe=(0,W.jsx)(`span`,{children:`Security Groups`}),e[96]=De,e[97]=Oe):(De=e[96],Oe=e[97]);let ke;e[98]===Ee?ke=e[99]:(ke=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-security-groups`,children:(0,W.jsxs)(Cg,{isActive:Ee,tooltip:`Security Groups`,children:[De,Oe]})})}),e[98]=Ee,e[99]=ke);let Ae;e[100]===n?Ae=e[101]:(Ae=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[100]=n,e[101]=Ae);let je,Me;e[102]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,W.jsx)(Xs,{className:`size-4`}),Me=(0,W.jsx)(`span`,{children:`Route Tables`}),e[102]=je,e[103]=Me):(je=e[102],Me=e[103]);let Ne;e[104]===Ae?Ne=e[105]:(Ne=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-route-tables`,children:(0,W.jsxs)(Cg,{isActive:Ae,tooltip:`Route Tables`,children:[je,Me]})})}),e[104]=Ae,e[105]=Ne);let Pe;e[106]===n?Pe=e[107]:(Pe=n.startsWith(`/ec2/describe-internet-gateways`),e[106]=n,e[107]=Pe);let Fe,Ie;e[108]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,W.jsx)(Is,{className:`size-4`}),Ie=(0,W.jsx)(`span`,{children:`Internet Gateways`}),e[108]=Fe,e[109]=Ie):(Fe=e[108],Ie=e[109]);let Le;e[110]===Pe?Le=e[111]:(Le=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-internet-gateways`,children:(0,W.jsxs)(Cg,{isActive:Pe,tooltip:`Internet Gateways`,children:[Fe,Ie]})})}),e[110]=Pe,e[111]=Le);let Re;e[112]===n?Re=e[113]:(Re=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[112]=n,e[113]=Re);let ze,Be;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,W.jsx)(Ys,{className:`size-4`}),Be=(0,W.jsx)(`span`,{children:`NAT Gateways`}),e[114]=ze,e[115]=Be):(ze=e[114],Be=e[115]);let Ve;e[116]===Re?Ve=e[117]:(Ve=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/ec2/describe-nat-gateways`,children:(0,W.jsxs)(Cg,{isActive:Re,tooltip:`NAT Gateways`,children:[ze,Be]})})}),e[116]=Re,e[117]=Ve);let He;e[118]!==xe||e[119]!==Te||e[120]!==ke||e[121]!==Ne||e[122]!==Le||e[123]!==Ve?(He=(0,W.jsxs)(vg,{children:[_e,(0,W.jsxs)(bg,{children:[xe,Te,ke,Ne,Le,Ve]})]}),e[118]=xe,e[119]=Te,e[120]=ke,e[121]=Ne,e[122]=Le,e[123]=Ve,e[124]=He):He=e[124];let Ue;e[125]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,W.jsx)(yg,{children:`EKS`}),e[125]=Ue):Ue=e[125];let We;e[126]===n?We=e[127]:(We=n.startsWith(`/eks/list-clusters`)||n.startsWith(`/eks/create-cluster`),e[126]=n,e[127]=We);let Ge,Ke;e[128]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,W.jsx)(Ms,{className:`size-4`}),Ke=(0,W.jsx)(`span`,{children:`Clusters`}),e[128]=Ge,e[129]=Ke):(Ge=e[128],Ke=e[129]);let qe;e[130]===We?qe=e[131]:(qe=(0,W.jsxs)(vg,{children:[Ue,(0,W.jsx)(bg,{children:(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/eks/list-clusters`,children:(0,W.jsxs)(Cg,{isActive:We,tooltip:`Clusters`,children:[Ge,Ke]})})})})]}),e[130]=We,e[131]=qe);let Je;e[132]===Symbol.for(`react.memo_cache_sentinel`)?(Je=(0,W.jsx)(yg,{children:`IAM`}),e[132]=Je):Je=e[132];let Ye;e[133]===n?Ye=e[134]:(Ye=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[133]=n,e[134]=Ye);let Xe,Ze;e[135]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,W.jsx)(nc,{className:`size-4`}),Ze=(0,W.jsx)(`span`,{children:`Users`}),e[135]=Xe,e[136]=Ze):(Xe=e[135],Ze=e[136]);let Qe;e[137]===Ye?Qe=e[138]:(Qe=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/iam/list-users`,children:(0,W.jsxs)(Cg,{isActive:Ye,tooltip:`Users`,children:[Xe,Ze]})})}),e[137]=Ye,e[138]=Qe);let $e;e[139]===n?$e=e[140]:($e=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[139]=n,e[140]=$e);let et,tt;e[141]===Symbol.for(`react.memo_cache_sentinel`)?(et=(0,W.jsx)($s,{className:`size-4`}),tt=(0,W.jsx)(`span`,{children:`Policies`}),e[141]=et,e[142]=tt):(et=e[141],tt=e[142]);let nt;e[143]===$e?nt=e[144]:(nt=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/iam/list-policies`,children:(0,W.jsxs)(Cg,{isActive:$e,tooltip:`Policies`,children:[et,tt]})})}),e[143]=$e,e[144]=nt);let rt;e[145]===n?rt=e[146]:(rt=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[145]=n,e[146]=rt);let it,at;e[147]===Symbol.for(`react.memo_cache_sentinel`)?(it=(0,W.jsx)(tc,{className:`size-4`}),at=(0,W.jsx)(`span`,{children:`Roles`}),e[147]=it,e[148]=at):(it=e[147],at=e[148]);let ot;e[149]===rt?ot=e[150]:(ot=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/iam/list-roles`,children:(0,W.jsxs)(Cg,{isActive:rt,tooltip:`Roles`,children:[it,at]})})}),e[149]=rt,e[150]=ot);let st;e[151]===n?st=e[152]:(st=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[151]=n,e[152]=st);let ct,lt;e[153]===Symbol.for(`react.memo_cache_sentinel`)?(ct=(0,W.jsx)(zs,{className:`size-4`}),lt=(0,W.jsx)(`span`,{children:`Instance Profiles`}),e[153]=ct,e[154]=lt):(ct=e[153],lt=e[154]);let ut;e[155]===st?ut=e[156]:(ut=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/iam/list-instance-profiles`,children:(0,W.jsxs)(Cg,{isActive:st,tooltip:`Instance Profiles`,children:[ct,lt]})})}),e[155]=st,e[156]=ut);let dt;e[157]!==Qe||e[158]!==nt||e[159]!==ot||e[160]!==ut?(dt=(0,W.jsxs)(vg,{children:[Je,(0,W.jsxs)(bg,{children:[Qe,nt,ot,ut]})]}),e[157]=Qe,e[158]=nt,e[159]=ot,e[160]=ut,e[161]=dt):dt=e[161];let ft;e[162]===Symbol.for(`react.memo_cache_sentinel`)?(ft=(0,W.jsx)(yg,{children:`S3`}),e[162]=ft):ft=e[162];let pt;e[163]===n?pt=e[164]:(pt=n.startsWith(`/s3/ls`),e[163]=n,e[164]=pt);let mt,ht;e[165]===Symbol.for(`react.memo_cache_sentinel`)?(ht=(0,W.jsx)(Zs,{className:`size-4`}),mt=(0,W.jsx)(`span`,{children:`Buckets`}),e[165]=mt,e[166]=ht):(mt=e[165],ht=e[166]);let gt;e[167]===pt?gt=e[168]:(gt=(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/s3/ls`,children:(0,W.jsxs)(Cg,{isActive:pt,tooltip:`Buckets`,children:[ht,mt]})})}),e[167]=pt,e[168]=gt);let _t;e[169]!==a||e[170]!==n?(_t=a&&(0,W.jsx)(xg,{children:(0,W.jsx)(wt,{to:`/s3/service-metrics`,children:(0,W.jsxs)(Cg,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,W.jsx)(As,{className:`size-4`}),(0,W.jsx)(`span`,{children:`Service Metrics`})]})})}),e[169]=a,e[170]=n,e[171]=_t):_t=e[171];let vt;e[172]!==gt||e[173]!==_t?(vt=(0,W.jsxs)(vg,{children:[ft,(0,W.jsxs)(bg,{children:[gt,_t]})]}),e[172]=gt,e[173]=_t,e[174]=vt):vt=e[174];let yt;e[175]===a?yt=e[176]:(yt=a&&(0,W.jsxs)(vg,{children:[(0,W.jsx)(yg,{children:`Documentation`}),(0,W.jsx)(bg,{children:(0,W.jsx)(xg,{children:(0,W.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,W.jsxs)(Cg,{tooltip:`Documentation`,children:[(0,W.jsx)(js,{className:`size-4`}),(0,W.jsx)(`span`,{children:`Docs`})]})})})})]}),e[175]=a,e[176]=yt);let bt;e[177]!==vt||e[178]!==yt||e[179]!==ge||e[180]!==He||e[181]!==qe||e[182]!==h||e[183]!==dt?(bt=(0,W.jsxs)(_g,{children:[h,ge,He,qe,dt,vt,yt]}),e[177]=vt,e[178]=yt,e[179]=ge,e[180]=He,e[181]=qe,e[182]=h,e[183]=dt,e[184]=bt):bt=e[184];let xt;e[185]===Symbol.for(`react.memo_cache_sentinel`)?(xt=(0,W.jsx)(gg,{className:`mx-0 w-full`}),e[185]=xt):xt=e[185];let Ct,Tt;e[186]===Symbol.for(`react.memo_cache_sentinel`)?(Ct=(0,W.jsx)(Ws,{className:`size-4`}),Tt=(0,W.jsx)(`span`,{children:`Sign out`}),e[186]=Ct,e[187]=Tt):(Ct=e[186],Tt=e[187]);let Et;e[188]===s?Et=e[189]:(Et=(0,W.jsxs)(hg,{children:[xt,(0,W.jsx)(bg,{children:(0,W.jsx)(xg,{children:(0,W.jsxs)(Cg,{onClick:s,tooltip:`Sign out`,children:[Ct,Tt]})})})]}),e[188]=s,e[189]=Et);let Dt;e[190]===Symbol.for(`react.memo_cache_sentinel`)?(Dt=(0,W.jsx)(pg,{}),e[190]=Dt):Dt=e[190];let Ot;return e[191]!==bt||e[192]!==Et?(Ot=(0,W.jsxs)(dg,{collapsible:`icon`,children:[c,bt,Et,Dt]}),e[191]=bt,e[192]=Et,e[193]=Ot):Ot=e[193],Ot}function nb(e){return e.pathname}function rb(e){let t=(0,ms.c)(18),{error:n,reset:r}=e,i=M(),a=Ni(),o;t[0]!==a||t[1]!==r||t[2]!==i?(o=function(){a.invalidateQueries(),r(),i.invalidate()},t[0]=a,t[1]=r,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsx)(tb,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsx)($y,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,W.jsx)(`div`,{className:`flex justify-center`,children:(0,W.jsx)(Ps,{className:`size-12 text-destructive`})}),d=(0,W.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f=n.message||`An unexpected error occurred`,p;t[8]===f?p=t[9]:(p=(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,W.jsx)(ar,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let h;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,W.jsx)(wt,{to:`/`,children:(0,W.jsx)(ar,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,W.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,h]}),t[13]=m,t[14]=g);let _;return t[15]!==g||t[16]!==p?(_=(0,W.jsxs)(W.Fragment,{children:[c,(0,W.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,W.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,W.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,g]})})]})]}),t[15]=g,t[16]=p,t[17]=_):_=t[17],_}var ib=Lo()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(ls,{}),(0,W.jsx)(tb,{}),(0,W.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,W.jsx)($y,{}),(0,W.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,W.jsx)(Yo,{})})]})]}),errorComponent:rb,notFoundComponent:eb}),ab=q(`/login`)({validateSearch:e=>({reason:e.reason===`expired`?`expired`:void 0}),beforeLoad:()=>{if(In())throw me({to:`/`})},component:J(()=>R(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),`component`)}),ob=q(`/_auth`)({beforeLoad:()=>{if(!In())throw me({to:`/login`})},component:J(()=>R(()=>import(`./route.js`),__vite__mapDeps([14,1])),`component`)}),sb=a({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new Qv({});return await bt().send(e)},staleTime:3e5}),cb=a({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new ty({});return await bt().send(e)},refetchInterval:5e3}),lb=e=>a({queryKey:[`ec2`,`instances`,e],queryFn:async()=>{let t=new ty({InstanceIds:[e]});return await bt().send(t)},refetchInterval:5e3}),ub=e=>a({queryKey:[`ec2`,`iam-instance-profile-associations`,e],queryFn:async()=>{let t=new $v({Filters:[{Name:`instance-id`,Values:[e]}]});return await bt().send(t)},refetchInterval:5e3}),db=a({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new ny({Filters:[{Name:`capacity`,Values:[`true`]}]});return await bt().send(e)},refetchInterval:5e3}),fb=a({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new ey({});return await bt().send(e)}}),pb=e=>a({queryKey:[`ec2`,`images`,e??`none`],queryFn:async()=>{if(!e)return{Images:[],$metadata:{}};let t=new ey({ImageIds:[e]});return await bt().send(t)}}),mb=a({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new iy({});return await bt().send(e)}}),hb=e=>a({queryKey:[`ec2`,`keypairs`,e],queryFn:async()=>{let t=new iy({KeyPairIds:[e]});return await bt().send(t)}}),gb=a({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new sy({});return await bt().send(e)},staleTime:3e5}),_b=a({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new dy({});return await bt().send(e)}}),vb=e=>a({queryKey:[`ec2`,`subnets`,e],queryFn:async()=>{let t=new dy({SubnetIds:[e]});return await bt().send(t)}}),yb=a({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new uy({});return await bt().send(e)},refetchInterval:5e3}),bb=e=>a({queryKey:[`ec2`,`snapshots`,e],queryFn:async()=>{let t=new uy({SnapshotIds:[e]});return await bt().send(t)},refetchInterval:5e3}),xb=a({queryKey:[`ec2`,`internetGateways`],queryFn:async()=>{let e=new ry({});return await bt().send(e)},refetchInterval:5e3}),Sb=e=>a({queryKey:[`ec2`,`internetGateways`,e],queryFn:async()=>{let t=new ry({InternetGatewayIds:[e]});return await bt().send(t)},refetchInterval:5e3}),Cb=a({queryKey:[`ec2`,`routeTables`],queryFn:async()=>{let e=new cy({});return await bt().send(e)},refetchInterval:5e3}),wb=e=>a({queryKey:[`ec2`,`routeTables`,e],queryFn:async()=>{let t=new cy({RouteTableIds:[e]});return await bt().send(t)},refetchInterval:5e3}),Tb=a({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new py({});return await bt().send(e)}}),Eb=e=>a({queryKey:[`ec2`,`vpcs`,e],queryFn:async()=>{let t=new py({VpcIds:[e]});return await bt().send(t)}}),Db=a({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new oy({});return await bt().send(e)}}),Ob=e=>a({queryKey:[`ec2`,`placementGroups`,e],queryFn:async()=>{let t=new oy({GroupIds:[e]});return await bt().send(t)}}),kb=a({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new ly({});return await bt().send(e)}}),Ab=e=>a({queryKey:[`ec2`,`securityGroups`,e],queryFn:async()=>{let t=new ly({GroupIds:[e]});return await bt().send(t)}}),jb=a({queryKey:[`ec2`,`addresses`],queryFn:async()=>{let e=new Zv({});return await bt().send(e)},refetchInterval:5e3}),Mb=e=>a({queryKey:[`ec2`,`addresses`,e],queryFn:async()=>{let t=new Zv({AllocationIds:[e]});return await bt().send(t)},refetchInterval:5e3}),Nb=a({queryKey:[`ec2`,`natGateways`],queryFn:async()=>{let e=new ay({});return await bt().send(e)},refetchInterval:5e3}),Pb=e=>a({queryKey:[`ec2`,`natGateways`,e],queryFn:async()=>{let t=new ay({NatGatewayIds:[e]});return await bt().send(t)},refetchInterval:5e3}),Fb=a({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new fy({});return await bt().send(e)},refetchInterval:5e3}),Ib=e=>a({queryKey:[`ec2`,`volumes`,e],queryFn:async()=>{let t=new fy({VolumeIds:[e]});return await bt().send(t)},refetchInterval:5e3}),Lb=a({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new qy({});return await xt().send(e)}}),Rb=(e,t)=>a({queryKey:[`s3`,`buckets`,e,`objects`,t??``],queryFn:async()=>{let n=new Jy({Bucket:e,Prefix:t,Delimiter:`/`});return await xt().send(n)}}),zb=q(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(cb),e.queryClient.ensureQueryData(Fb),e.queryClient.ensureQueryData(Tb),e.queryClient.ensureQueryData(mb),e.queryClient.ensureQueryData(Lb),e.queryClient.ensureQueryData(kb),e.queryClient.ensureQueryData(Nb),e.queryClient.ensureQueryData(jb),e.queryClient.ensureQueryData(xb)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:J(()=>R(()=>import(`./_auth.js`),__vite__mapDeps([15,1,2,3,4,5,6,16,17,18,19,20,21,22,8,12,23,24])),`component`)}),Bb=q(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:J(()=>R(()=>import(`./nodes.js`),__vite__mapDeps([25,1,2,3,16,17,26,20,22,8,12,23,24])),`component`)}),Vb=q(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:J(()=>R(()=>import(`./service-metrics.js`),__vite__mapDeps([27,1,16,17,26,20,22,2,3,8,12,23,24])),`component`)}),Hb=q(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Lb)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:J(()=>R(()=>import(`./ls.js`),__vite__mapDeps([28,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),Ub=q(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:J(()=>R(()=>import(`./create-bucket.js`),__vite__mapDeps([31,1,2,3,32,5,4,6,33,11,34,35,7,8,36,18,37,38,39,20,13])),`component`)}),Wb=q(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./create-user.js`),__vite__mapDeps([40,1,41,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,20,13,42])),`component`)}),Gb=q(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./create-role.js`),__vite__mapDeps([43,1,41,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,20,13,44,42])),`component`)}),Kb=q(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./create-policy.js`),__vite__mapDeps([45,1,41,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,20,13,44,42])),`component`)}),qb=q(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./create-instance-profile.js`),__vite__mapDeps([46,1,41,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,20,13,42])),`component`)}),Jb=a({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new Ky({});return await ht().send(e)},staleTime:3e5}),Yb=e=>a({queryKey:[`iam`,`users`,e],queryFn:async()=>{let t=new Ry({UserName:e});return await ht().send(t)},staleTime:3e5}),Xb=e=>a({queryKey:[`iam`,`access-keys`,e],queryFn:async()=>{let t=new zy({UserName:e});return await ht().send(t)},staleTime:3e5}),Zb=a({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new Wy({Scope:`Local`});return await ht().send(e)},staleTime:3e5}),Qb=e=>a({queryKey:[`iam`,`policies`,e],queryFn:async()=>{let t=new Fy({PolicyArn:e});return await ht().send(t)},staleTime:3e5}),$b=(e,t)=>a({queryKey:[`iam`,`policy-versions`,e,t],queryFn:async()=>{let n=new Iy({PolicyArn:e,VersionId:t});return await ht().send(n)},staleTime:3e5}),ex=e=>a({queryKey:[`iam`,`attached-user-policies`,e],queryFn:async()=>{let t=new Vy({UserName:e});return await ht().send(t)},staleTime:3e5}),tx=a({queryKey:[`iam`,`roles`],queryFn:async()=>{let e=new Gy({});return await ht().send(e)},staleTime:3e5}),nx=e=>a({queryKey:[`iam`,`roles`,e],queryFn:async()=>{let t=new Ly({RoleName:e});return await ht().send(t)},staleTime:3e5}),rx=e=>a({queryKey:[`iam`,`attached-role-policies`,e],queryFn:async()=>{let t=new By({RoleName:e});return await ht().send(t)},staleTime:3e5}),ix=a({queryKey:[`iam`,`instance-profiles`],queryFn:async()=>{let e=new Hy({});return await ht().send(e)},staleTime:3e5}),ax=e=>a({queryKey:[`iam`,`instance-profiles`,e],queryFn:async()=>{let t=new Py({InstanceProfileName:e});return await ht().send(t)},staleTime:3e5}),ox=e=>a({queryKey:[`iam`,`instance-profiles-for-role`,e],queryFn:async()=>{let t=new Uy({RoleName:e});return await ht().send(t)},staleTime:3e5}),sx=q(`/_auth/eks/(clusters)/create-cluster`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Tb),e.queryClient.ensureQueryData(_b),e.queryClient.ensureQueryData(tx),e.queryClient.ensureQueryData(fb)])},head:()=>({meta:[{title:`Create Cluster | EKS | Mulga`}]}),component:J(()=>R(()=>import(`./create-cluster.js`),__vite__mapDeps([47,1,2,3,48,4,5,6,33,49,7,8,50,51,10,36,18,11,29,17,34,37,52,53,39,20,13,38,54])),`component`)}),cx=q(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-vpc.js`),__vite__mapDeps([55,1,56,2,3,4,5,6,33,49,7,8,50,51,10,36,18,11,34,19,35,37,38,39,20,13,57])),`component`)}),lx=q(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(sb)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-volume.js`),__vite__mapDeps([58,1,56,2,3,4,5,6,33,49,50,7,8,51,10,36,18,11,29,17,34,35,37,38,39,20,13,57])),`component`)}),ux=q(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Tb)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-target-group.js`),__vite__mapDeps([59,1,60,2,3,4,5,6,33,11,29,17,34,35,7,8,36,18,37,38,61,9,10,50,51,62,63,13,39,20,64])),`component`)}),dx=q(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Tb),e.queryClient.ensureQueryData(sb)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-subnet.js`),__vite__mapDeps([65,1,2,3,56,4,5,6,33,49,50,7,8,51,10,36,18,11,29,17,34,35,37,38,39,20,13,57])),`component`)}),fx=q(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fb)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-snapshot.js`),__vite__mapDeps([66,1,56,2,3,4,5,6,33,49,50,7,8,51,10,36,18,11,29,17,34,35,37,38,39,20,13,44,57])),`component`)}),px=q(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Tb)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-security-group.js`),__vite__mapDeps([67,1,2,3,56,4,5,6,33,49,50,7,8,51,10,36,18,11,29,17,34,35,37,38,39,20,13,57])),`component`)}),mx=q(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Tb)},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-route-table.js`),__vite__mapDeps([68,1,2,3,56,4,5,6,33,49,50,7,8,51,10,36,18,11,29,17,34,39,20,13,57])),`component`)}),hx=q(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-placement-group.js`),__vite__mapDeps([69,1,56,2,3,4,5,6,33,49,50,7,8,51,10,36,18,11,34,35,37,38,39,20,13,57])),`component`)}),gx=q(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(_b),e.queryClient.ensureQueryData(jb)])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-nat-gateway.js`),__vite__mapDeps([70,1,2,3,4,5,6,56,33,49,50,7,8,51,10,36,18,11,29,17,34,35,37,38,39,20,13,57])),`component`)}),_x=a({queryKey:[`acm`,`certificates`],queryFn:async()=>{let e=new Xv({});return await mt().send(e)}}),vx=5e3,yx=a({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new Dy({});return await et().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?vx:!1}),bx=e=>a({queryKey:[`elbv2`,`loadBalancers`,e],queryFn:async()=>{let t=new Dy({LoadBalancerArns:[e]});return await et().send(t)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?vx:!1}),xx=e=>a({queryKey:[`elbv2`,`loadBalancers`,e,`attributes`],queryFn:async()=>{let t=new Ey({LoadBalancerArn:e});return await et().send(t)}}),Sx=a({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new My({});return await et().send(e)}}),Cx=e=>a({queryKey:[`elbv2`,`targetGroups`,e],queryFn:async()=>{let t=new My({TargetGroupArns:[e]});return await et().send(t)}}),wx=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`attributes`],queryFn:async()=>{let t=new jy({TargetGroupArn:e});return await et().send(t)}}),Tx=e=>a({queryKey:[`elbv2`,`listeners`,e],queryFn:async()=>{let t=new Ty({LoadBalancerArn:e});return await et().send(t)}}),Ex=e=>a({queryKey:[`elbv2`,`listeners`,e,`rules`],queryFn:async()=>{let t=new Oy({ListenerArn:e});return await et().send(t)}}),Dx=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`health`],queryFn:async()=>{let t=new Ny({TargetGroupArn:e});return await et().send(t)}}),Ox=a({queryKey:[`elbv2`,`sslPolicies`],queryFn:async()=>{let e=new ky({});return await et().send(e)},staleTime:1/0}),kx=e=>a({queryKey:[`elbv2`,`tags`,...e],queryFn:async()=>{let t=new Ay({ResourceArns:e});return await et().send(t)},enabled:e.length>0}),Ax=q(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Tb),e.queryClient.ensureQueryData(_b),e.queryClient.ensureQueryData(kb),e.queryClient.ensureQueryData(Sx),e.queryClient.ensureQueryData(_x),e.queryClient.ensureQueryData(Ox)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-load-balancer.js`),__vite__mapDeps([71,1,2,3,72,4,5,6,73,7,8,33,13,44,60,50,51,10,36,18,11,29,17,34,62,35,37,38,63,61,9,39,20,64])),`component`)}),jx=q(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./import-key-pair.js`),__vite__mapDeps([74,1,56,2,3,4,5,6,33,49,11,34,35,7,8,36,18,37,38,39,20,13,44,57])),`component`)}),Mx=q(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-key-pair.js`),__vite__mapDeps([75,1,56,2,3,4,5,6,33,49,73,7,8,11,34,36,76,35,18,37,38,53,39,20,13,57])),`component`)}),Nx=q(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./create-internet-gateway.js`),__vite__mapDeps([77,1,56,2,3,4,5,6,33,49,11,34,35,7,8,36,18,37,38,39,20,13,57])),`component`)}),Px=q(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(fb),e.queryClient.ensureQueryData(mb),e.queryClient.ensureQueryData(db),e.queryClient.ensureQueryData(_b),e.queryClient.ensureQueryData(Db),e.queryClient.ensureQueryData(Tb),e.queryClient.ensureQueryData(kb)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./run-instances.js`),__vite__mapDeps([78,1,2,3,56,4,5,6,33,49,7,8,9,10,50,51,36,18,11,29,17,34,35,37,38,20,13,57])),`component`)}),Fx=q(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./allocate-address.js`),__vite__mapDeps([79,1,56,2,3,4,5,6,33,49,11,34,35,7,8,36,18,37,38,39,20,13,57])),`component`)}),Ix=q(`/_auth/s3/ls/$bucket`)({component:J(()=>R(()=>import(`./route2.js`),__vite__mapDeps([80,1])),`component`)}),Lx=q(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Rb(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:J(()=>R(()=>import(`./_bucket.js`),__vite__mapDeps([81,1,2,3,32,5,4,6,33,82,7,8,76,63,83,73,29,17,34,20])),`component`)}),Rx=q(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Jb)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./list-users.js`),__vite__mapDeps([84,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),zx=q(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(tx)},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./list-roles.js`),__vite__mapDeps([85,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Bx=q(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Zb)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./list-policies.js`),__vite__mapDeps([86,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Vx=q(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ix)},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./list-instance-profiles.js`),__vite__mapDeps([87,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Hx=3e4,Ux=3e5,Wx=a({queryKey:[`eks`,`clusters`],queryFn:async()=>{let e=new Cy({});return await lt().send(e)},staleTime:Hx}),Gx=e=>a({queryKey:[`eks`,`clusters`,e],queryFn:async()=>{let t=new _y({name:e});return await lt().send(t)},staleTime:Hx}),Kx=e=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`],queryFn:async()=>{let t=new wy({clusterName:e});return await lt().send(t)},staleTime:Hx}),qx=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`,t],queryFn:async()=>{let n=new vy({clusterName:e,nodegroupName:t});return await lt().send(n)},staleTime:Hx}),Jx=e=>a({queryKey:[`eks`,`clusters`,e,`access-entries`],queryFn:async()=>{let t=new yy({clusterName:e});return await lt().send(t)},staleTime:Hx}),Yx=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t],queryFn:async()=>{let n=new my({clusterName:e,principalArn:t});return await lt().send(n)},staleTime:Hx}),Xx=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t,`policies`],queryFn:async()=>{let n=new Sy({clusterName:e,principalArn:t});return await lt().send(n)},staleTime:Hx});a({queryKey:[`eks`,`access-policies`],queryFn:async()=>{let e=new by({});return await lt().send(e)},staleTime:Ux});var Zx=a({queryKey:[`eks`,`addon-versions`],queryFn:async()=>{let e=new gy({});return await lt().send(e)},staleTime:Ux}),Qx=e=>a({queryKey:[`eks`,`clusters`,e,`addons`],queryFn:async()=>{let t=new xy({clusterName:e});return await lt().send(t)},staleTime:Hx}),$x=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`addons`,t],queryFn:async()=>{let n=new hy({clusterName:e,addonName:t});return await lt().send(n)},staleTime:Hx}),eS=q(`/_auth/eks/(clusters)/list-clusters/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Wx)},head:()=>({meta:[{title:`Clusters | EKS | Mulga`}]}),component:J(()=>R(()=>import(`./list-clusters.js`),__vite__mapDeps([88,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),tS=q(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Tb)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-vpcs.js`),__vite__mapDeps([89,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),nS=q(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fb)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-volumes.js`),__vite__mapDeps([90,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),rS=q(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Sx)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-target-groups.js`),__vite__mapDeps([91,1,4,2,3,5,6,7,8,16,17,29,20])),`component`)}),iS=q(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_b)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-subnets.js`),__vite__mapDeps([92,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),aS=q(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(yb)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-snapshots.js`),__vite__mapDeps([93,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),oS=q(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(kb)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-security-groups.js`),__vite__mapDeps([94,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),sS=q(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Cb)},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-route-tables.js`),__vite__mapDeps([95,1,2,3,4,5,6,7,8,29,17,30,20,22])),`component`)}),cS=q(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Db)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([96,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),lS=q(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Nb)},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-nat-gateways.js`),__vite__mapDeps([97,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),uS=q(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(yx)},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([98,1,2,3,4,5,6,7,8,29,17,20,21])),`component`)}),dS=q(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(mb)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([99,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),fS=q(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(xb)},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-internet-gateways.js`),__vite__mapDeps([100,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),pS=q(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(cb)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-instances.js`),__vite__mapDeps([101,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),mS=q(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(fb)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-images.js`),__vite__mapDeps([102,1,29,17,30,4,2,3,5,6,20,21,54])),`component`)}),hS=q(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(jb)},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./describe-addresses.js`),__vite__mapDeps([103,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),gS=q(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=mn(t._splat??``);await e.queryClient.ensureQueryData(Rb(t.bucket,n))},head:({params:e})=>({meta:[{title:`${$t(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:J(()=>R(()=>import(`./_.js`),__vite__mapDeps([104,1,2,3,32,5,4,6,33,82,7,8,76,63,83,73,29,17,34])),`component`)}),_S=q(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Yb(t.userName)),e.queryClient.ensureQueryData(Xb(t.userName)),e.queryClient.ensureQueryData(ex(t.userName)),e.queryClient.ensureQueryData(Zb)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./_userName.js`),__vite__mapDeps([105,1,2,3,41,4,5,6,33,73,7,8,29,17,34,36,63,53,83,106,20,21,38])),`component`)}),vS=q(`/_auth/iam/(roles)/list-roles/$roleName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(nx(t.roleName)),e.queryClient.ensureQueryData(rx(t.roleName)),e.queryClient.ensureQueryData(ox(t.roleName)),e.queryClient.ensureQueryData(Zb)])},head:({params:e})=>({meta:[{title:`${e.roleName} | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./_roleName.js`),__vite__mapDeps([107,1,2,3,4,5,6,41,33,7,8,29,17,34,63,83,73,106,20,108])),`component`)}),yS=q(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(Qb(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData($b(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./_policyArn.js`),__vite__mapDeps([109,1,2,3,41,4,5,6,33,7,8,29,17,34,63,83,73,106,20,108])),`component`)}),bS=q(`/_auth/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(ax(t.instanceProfileName)),e.queryClient.ensureQueryData(tx)])},head:({params:e})=>({meta:[{title:`${e.instanceProfileName} | IAM | Mulga`}]}),component:J(()=>R(()=>import(`./_instanceProfileName.js`),__vite__mapDeps([110,1,2,3,4,5,6,41,33,7,8,29,17,34,63,83,73,106,20])),`component`)}),xS=q(`/_auth/eks/(clusters)/list-clusters/$clusterName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Gx(t.clusterName)),e.queryClient.ensureQueryData(Kx(t.clusterName)),e.queryClient.ensureQueryData(Jx(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.clusterName} | EKS | Mulga`}]}),component:J(()=>R(()=>import(`./_clusterName.js`),__vite__mapDeps([111,1,2,3,4,5,6,48,33,49,73,7,8,112,51,10,11,16,17,29,34,35,36,18,37,38,63,83,106,20,22,13,44])),`component`)}),SS=q(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Eb(t.id)),e.queryClient.ensureQueryData(_b)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:J(()=>R(()=>import(`./_id16.js`),__vite__mapDeps([113,1,2,3,4,5,6,56,33,49,7,8,29,17,34,63,83,73,106,20,21])),`component`)}),CS=q(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Ib(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id15.js`),__vite__mapDeps([114,1,56,2,3,4,5,6,33,49,11,29,17,34,39,7,8,20,13,57])),`component`)}),wS=q(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Ib(t.id)),e.queryClient.ensureQueryData(cb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id14.js`),__vite__mapDeps([115,1,2,3,4,5,6,56,33,49,73,7,8,50,51,10,36,18,29,17,34,63,83,106,20,21,13])),`component`)}),TS=q(`/_auth/ec2/(target-groups)/describe-target-groups/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(Cx(n)),e.queryClient.ensureQueryData(wx(n)),e.queryClient.ensureQueryData(kx([n])),e.queryClient.ensureQueryData(cb)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:J(()=>R(()=>import(`./_id13.js`),__vite__mapDeps([116,1,2,3,60,4,5,6,33,73,7,8,112,51,10,16,17,29,34,63,83,106,117,50,36,18,62,13,20])),`component`)}),ES=q(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(vb(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:J(()=>R(()=>import(`./_id12.js`),__vite__mapDeps([118,1,2,3,4,5,6,56,33,49,7,8,29,17,34,63,83,73,106,20,21])),`component`)}),DS=q(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(bb(t.id)),e.queryClient.ensureQueryData(gb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id11.js`),__vite__mapDeps([119,1,2,3,4,5,6,56,33,49,73,7,8,29,17,34,37,63,83,106,20,21,13])),`component`)}),OS=q(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Ab(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:J(()=>R(()=>import(`./_id10.js`),__vite__mapDeps([120,1,4,2,3,5,6,56,33,49,73,7,8,50,51,10,36,18,11,29,17,34,62,63,83,106,20,13,57])),`component`)}),kS=q(`/_auth/ec2/(route-tables)/describe-route-tables/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(wb(t.id)),e.queryClient.ensureQueryData(xb),e.queryClient.ensureQueryData(Nb),e.queryClient.ensureQueryData(_b)])},head:({params:e})=>({meta:[{title:`${e.id} | Route Table | Mulga`}]}),component:J(()=>R(()=>import(`./_id9.js`),__vite__mapDeps([121,1,2,3,4,5,6,56,33,49,7,8,50,51,10,36,18,11,29,17,34,63,83,73,106,20,22,13,57])),`component`)}),AS=q(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Ob(t.id)),e.queryClient.ensureQueryData(cb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id8.js`),__vite__mapDeps([122,1,4,2,3,5,6,56,33,49,7,8,29,17,34,63,83,73,106,20,21])),`component`)}),jS=q(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Pb(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | NAT Gateway | Mulga`}]}),component:J(()=>R(()=>import(`./_id7.js`),__vite__mapDeps([123,1,2,3,4,5,6,56,33,49,7,8,29,17,34,63,83,73,106,20,21])),`component`)}),MS=q(`/_auth/ec2/(load-balancers)/describe-load-balancers/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(bx(n)),e.queryClient.ensureQueryData(Tx(n)),e.queryClient.ensureQueryData(xx(n)),e.queryClient.ensureQueryData(kx([n])),e.queryClient.ensureQueryData(Sx),e.queryClient.ensureQueryData(_b)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:J(()=>R(()=>import(`./_id6.js`),__vite__mapDeps([124,1,2,3,72,4,5,6,73,7,8,33,13,44,60,50,51,10,36,18,112,11,29,17,34,63,83,106,117,62,20,21,64])),`component`)}),NS=q(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(hb(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id5.js`),__vite__mapDeps([125,1,2,3,56,4,5,6,33,49,7,8,29,17,34,63,83,73,106,20])),`component`)}),PS=q(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Sb(t.id)),e.queryClient.ensureQueryData(Tb)])},head:({params:e})=>({meta:[{title:`${e.id} | Internet Gateway | Mulga`}]}),component:J(()=>R(()=>import(`./_id4.js`),__vite__mapDeps([126,1,2,3,4,5,6,56,33,49,7,8,50,51,10,36,18,29,17,34,63,83,73,106,20])),`component`)}),FS=q(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(lb(t.id)),e.queryClient.ensureQueryData(db)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(pb(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id3.js`),__vite__mapDeps([127,1,2,3,4,5,6,56,33,49,73,7,8,50,51,10,36,18,16,17,29,34,52,63,83,106,20,21,13,44,23,24,128])),`component`)}),IS=q(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(pb(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:J(()=>R(()=>import(`./_id2.js`),__vite__mapDeps([129,1,29,17,34,4,2,3,5,6,20,21,54,128,106])),`component`)}),LS=q(`/_auth/ec2/(elastic-ips)/describe-addresses/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Mb(t.id)),e.queryClient.ensureQueryData(cb)])},head:({params:e})=>({meta:[{title:`${e.id} | Elastic IP | Mulga`}]}),component:J(()=>R(()=>import(`./_id.js`),__vite__mapDeps([130,1,2,3,56,4,5,6,33,49,7,8,50,51,10,36,18,29,17,34,63,83,73,106,20])),`component`)}),RS=ab.update({id:`/login`,path:`/login`,getParentRoute:()=>ib}),$=ob.update({id:`/_auth`,getParentRoute:()=>ib}),zS=zb.update({id:`/`,path:`/`,getParentRoute:()=>$}),BS=Bb.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>$}),VS=Vb.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>$}),HS=Hb.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>$}),US=Ub.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>$}),WS=Wb.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>$}),GS=Gb.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>$}),KS=Kb.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>$}),qS=qb.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>$}),JS=sx.update({id:`/eks/(clusters)/create-cluster`,path:`/eks/create-cluster`,getParentRoute:()=>$}),YS=cx.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>$}),XS=lx.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>$}),ZS=ux.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>$}),QS=dx.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>$}),$S=fx.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>$}),eC=px.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>$}),tC=mx.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>$}),nC=hx.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>$}),rC=gx.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>$}),iC=Ax.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>$}),aC=jx.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>$}),oC=Mx.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>$}),sC=Nx.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>$}),cC=Px.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>$}),lC=Fx.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>$}),uC=Ix.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>$}),dC=Lx.update({id:`/`,path:`/`,getParentRoute:()=>uC}),fC=Rx.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>$}),pC=zx.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>$}),mC=Bx.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>$}),hC=Vx.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>$}),gC=eS.update({id:`/eks/(clusters)/list-clusters/`,path:`/eks/list-clusters/`,getParentRoute:()=>$}),_C=tS.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>$}),vC=nS.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>$}),yC=rS.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>$}),bC=iS.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>$}),xC=aS.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>$}),SC=oS.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>$}),CC=sS.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>$}),wC=cS.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>$}),TC=lS.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>$}),EC=uS.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>$}),DC=dS.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>$}),OC=fS.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>$}),kC=pS.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>$}),AC=mS.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>$}),jC=hS.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>$}),MC=gS.update({id:`/$`,path:`/$`,getParentRoute:()=>uC}),NC=_S.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>$}),PC=vS.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>$}),FC=yS.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>$}),IC=bS.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>$}),LC=xS.update({id:`/eks/(clusters)/list-clusters/$clusterName`,path:`/eks/list-clusters/$clusterName`,getParentRoute:()=>$}),RC=SS.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>$}),zC=CS.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>$}),BC=wS.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>$}),VC=TS.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>$}),HC=ES.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>$}),UC=DS.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>$}),WC=OS.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>$}),GC=kS.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>$}),KC=AS.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>$}),qC=jS.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>$}),JC=MS.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>$}),YC=NS.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>$}),XC=PS.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>$}),ZC=FS.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>$}),QC=IS.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>$}),$C=LS.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>$}),ew={AuthS3LsBucketSplatRoute:MC,AuthS3LsBucketIndexRoute:dC},tw={AuthNodesRoute:BS,AuthIndexRoute:zS,AuthS3ServiceMetricsRoute:VS,AuthS3LsBucketRouteRoute:uC._addFileChildren(ew),AuthEc2elasticIpsAllocateAddressRoute:lC,AuthEc2instancesRunInstancesRoute:cC,AuthEc2internetGatewaysCreateInternetGatewayRoute:sC,AuthEc2keyCreateKeyPairRoute:oC,AuthEc2keyImportKeyPairRoute:aC,AuthEc2loadBalancersCreateLoadBalancerRoute:iC,AuthEc2natGatewaysCreateNatGatewayRoute:rC,AuthEc2placementGroupsCreatePlacementGroupRoute:nC,AuthEc2routeTablesCreateRouteTableRoute:tC,AuthEc2securityGroupsCreateSecurityGroupRoute:eC,AuthEc2snapshotsCreateSnapshotRoute:$S,AuthEc2subnetCreateSubnetRoute:QS,AuthEc2targetGroupsCreateTargetGroupRoute:ZS,AuthEc2volumesCreateVolumeRoute:XS,AuthEc2vpcCreateVpcRoute:YS,AuthEksclustersCreateClusterRoute:JS,AuthIaminstanceProfilesCreateInstanceProfileRoute:qS,AuthIampoliciesCreatePolicyRoute:KS,AuthIamrolesCreateRoleRoute:GS,AuthIamusersCreateUserRoute:WS,AuthS3bucketsCreateBucketRoute:US,AuthS3LsIndexRoute:HS,AuthEc2elasticIpsDescribeAddressesIdRoute:$C,AuthEc2imagesDescribeImagesIdRoute:QC,AuthEc2instancesDescribeInstancesIdRoute:ZC,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:XC,AuthEc2keyDescribeKeyPairsIdRoute:YC,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:JC,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:qC,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:KC,AuthEc2routeTablesDescribeRouteTablesIdRoute:GC,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:WC,AuthEc2snapshotsDescribeSnapshotsIdRoute:UC,AuthEc2subnetDescribeSubnetsIdRoute:HC,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:VC,AuthEc2volumesDescribeVolumesIdRoute:BC,AuthEc2volumesModifyVolumeIdRoute:zC,AuthEc2vpcDescribeVpcsIdRoute:RC,AuthEksclustersListClustersClusterNameRoute:LC,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:IC,AuthIampoliciesListPoliciesPolicyArnRoute:FC,AuthIamrolesListRolesRoleNameRoute:PC,AuthIamusersListUsersUserNameRoute:NC,AuthEc2elasticIpsDescribeAddressesIndexRoute:jC,AuthEc2imagesDescribeImagesIndexRoute:AC,AuthEc2instancesDescribeInstancesIndexRoute:kC,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:OC,AuthEc2keyDescribeKeyPairsIndexRoute:DC,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:EC,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:TC,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:wC,AuthEc2routeTablesDescribeRouteTablesIndexRoute:CC,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:SC,AuthEc2snapshotsDescribeSnapshotsIndexRoute:xC,AuthEc2subnetDescribeSubnetsIndexRoute:bC,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:yC,AuthEc2volumesDescribeVolumesIndexRoute:vC,AuthEc2vpcDescribeVpcsIndexRoute:_C,AuthEksclustersListClustersIndexRoute:gC,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:hC,AuthIampoliciesListPoliciesIndexRoute:mC,AuthIamrolesListRolesIndexRoute:pC,AuthIamusersListUsersIndexRoute:fC},nw={AuthRouteRoute:$._addFileChildren(tw),LoginRoute:RS},rw=ib._addFileChildren(nw)._addFileTypes(),iw=Zy(),aw=es({routeTree:rw,context:{queryClient:iw},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),ow=document.querySelector(`#app`);ow&&!ow.innerHTML&&ps.createRoot(ow).render((0,W.jsx)(U.StrictMode,{children:(0,W.jsx)(_s,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,W.jsx)(Pi,{client:iw,children:(0,W.jsx)(Kv,{children:(0,W.jsx)(cg,{children:(0,W.jsx)(rs,{router:aw})})})})})}));export{Zb as $,Al as $n,Mr as $r,Nm as $t,Wx as A,X as An,Ls as Ar,bb as At,kx as B,Su as Bn,fi as Br,Hv as Bt,Jx as C,Pd as Cn,ic as Cr,Ob as Ct,Qx as D,id as Dn,Ys as Dr,Cb as Dt,Zx as E,ld as En,Zs as Er,wb as Et,Tx as F,Bu as Fn,Yo as Fr,Fb as Ft,_x as G,_u as Gn,Lr as Gr,kh as Gt,Cx as H,bu as Hn,ci as Hr,Bh as Ht,xx as I,zu as In,No as Ir,Eb as It,rx as J,cu as Jn,Vr as Jr,Km as Jt,fx as K,du as Kn,ti as Kr,eh as Kt,bx as L,Du as Ln,Ni as Lr,Tb as Lt,Kx as M,Wu as Mn,Ns as Mr,vb as Mt,Lx as N,Uu as Nn,ks as Nr,_b as Nt,Xx as O,ad as On,qs as Or,Ab as Ot,Ex as P,Vu as Pn,ys as Pr,Ib as Pt,ix as Q,Nl as Qn,Pr as Qr,Pm as Qt,yx as R,Eu as Rn,Di as Rr,ab as Rt,gS as S,Nd as Sn,lc as Sr,Nb as St,$x as T,Sd as Tn,$s as Tr,gb as Tt,Sx as U,yu as Un,Kr as Ur,zh as Ut,wx as V,xu as Vn,li as Vr,Fv as Vt,Dx as W,mu as Wn,zr as Wr,Lh as Wt,ax as X,kl as Xn,oi as Xr,Im as Xt,ex as Y,jl as Yn,Xr as Yr,Lm as Yt,ox as Z,Ml as Zn,Br as Zr,Fm as Zt,xS as _,_p as _n,xc as _r,Sb as _t,NS as a,Tm as an,wl as ar,Jb as at,vS as b,Xd as bn,mc as br,mb as bt,AS as c,xm as cn,Jc as cr,Mb as ct,DS as d,Cm as dn,Bc as dr,ub as dt,jr as ei,gm as en,Ol as er,Qb as et,ES as f,Om as fn,Rc as fr,pb as ft,SS as g,xp as gn,Nc as gr,cb as gt,CS as h,Ep as hn,Mc as hr,db as ht,PS as i,hm as in,Pl as ir,Yb as it,qx as j,Gu as jn,Is as jr,yb as jt,Gx as k,td as kn,Vs as kr,kb as kt,kS as l,Em as ln,Gc as lr,jb as lt,wS as m,Gp as mn,jc as mr,lb as mt,IS as n,_m as nn,Il as nr,nx as nt,MS as o,ym as on,Yc as or,Rb as ot,TS as p,km as pn,Pc as pr,fb as pt,Xb as q,fu as qn,Hr as qr,Qm as qt,FS as r,vm as rn,El as rr,tx as rt,jS as s,bm as sn,qc as sr,Lb as st,LS as t,wm as tn,Dl as tr,$b as tt,OS as u,Sm as un,Hc as ur,sb as ut,bS as v,Q as vn,bc as vr,xb as vt,Yx as w,kd as wn,rc as wr,Db as wt,_S as x,Ud as xn,fc as xr,Pb as xt,yS as y,Rf as yn,hc as yr,hb as yt,Ox as z,Cu as zn,Ci as zr,qv as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ls.js b/spinifex/services/spinifexui/frontend/dist/assets/ls.js index 00ad4358d..03154d58c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ls.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ls.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Vt as i}from"./auth.js";import{t as a}from"./button.js";import{st as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Buckets?i=e[1]:(i=t.Buckets??[],e[0]=t.Buckets,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/s3/create-bucket`,children:(0,u.jsx)(a,{children:`Create Bucket`})}),title:`Buckets`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No buckets found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.Name?(0,u.jsx)(c,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${i(e.CreationDate)}`:void 0,title:e.Name,to:`/s3/ls/$bucket`},e.Name):null}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{vr as r}from"./awsClient.js";import{Bt as i}from"./auth.js";import{t as a}from"./button.js";import{st as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Buckets?i=e[1]:(i=t.Buckets??[],e[0]=t.Buckets,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/s3/create-bucket`,children:(0,u.jsx)(a,{children:`Create Bucket`})}),title:`Buckets`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No buckets found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.Name?(0,u.jsx)(c,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${i(e.CreationDate)}`:void 0,title:e.Name,to:`/s3/ls/$bucket`},e.Name):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/nodes.js b/spinifex/services/spinifexui/frontend/dist/assets/nodes.js index 564934b27..6b3f0330d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/nodes.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/nodes.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{n as r}from"./redirect.js";import{Ut as i}from"./auth.js";import{zt as a}from"./index.js";import{t as o}from"./page-heading.js";import{r as s,t as c}from"./admin.js";import{t as l}from"./badge.js";import{a as u,o as d,r as f,t as p}from"./card.js";var m=t(),h=e();function g(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function _(e){return e>=1?`${e.toFixed(1)}Gi`:`${Math.round(e*1024)}Mi`}function v(e){let t=Math.floor(Date.now()/1e3-e);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function y(){let e=(0,m.c)(31),{isAdmin:t}=a(),i;e[0]===t?i=e[1]:(i={...c,enabled:t,refetchInterval:5e3},e[0]=t,e[1]=i);let{data:l}=n(i),g;e[2]===t?g=e[3]:(g={...s,enabled:t,refetchInterval:5e3},e[2]=t,e[3]=g);let{data:_}=n(g);if(!t)throw r({to:`/`});let v,y,T;if(e[4]!==l?.nodes||e[5]!==_?.vms){v=l?.nodes??[];let t;e[9]===_?.vms?t=e[10]:(t=_?.vms??[],e[9]=_?.vms,e[10]=t);let n;e[11]===t?n=e[12]:(n=t.filter(C),e[11]=t,e[12]=n),T=n;let r=new Map;for(let e of v)for(let t of e.instance_types??[]){let e=r.get(t.name);e?e.available+=t.available:r.set(t.name,{vcpu:t.vcpu,memory_gb:t.memory_gb,available:t.available})}y=[...r.entries()].map(S).toSorted(x),e[4]=l?.nodes,e[5]=_?.vms,e[6]=v,e[7]=y,e[8]=T}else v=e[6],y=e[7],T=e[8];let E=y,O;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,h.jsx)(o,{title:`Nodes`}),e[13]=O):O=e[13];let A;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Cluster Nodes`})}),e[14]=A):A=e[14];let M;e[15]===v?M=e[16]:(M=(0,h.jsxs)(p,{children:[A,(0,h.jsx)(f,{children:v.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No nodes responding`}):(0,h.jsx)(w,{nodes:v})})]}),e[15]=v,e[16]=M);let N;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Elastic Compute Cloud (EC2)`})}),e[17]=N):N=e[17];let P;e[18]===T?P=e[19]:(P=(0,h.jsxs)(p,{children:[N,(0,h.jsx)(f,{children:T.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances running`}):(0,h.jsx)(D,{vms:T})})]}),e[18]=T,e[19]=P);let I;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Resource Usage`})}),e[20]=I):I=e[20];let L;e[21]!==E||e[22]!==v?(L=(0,h.jsxs)(p,{children:[I,(0,h.jsx)(f,{className:`space-y-4`,children:v.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(k,{nodes:v}),E.length>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`h4`,{className:`mt-4 text-xs font-medium text-muted-foreground`,children:`Instance Type Capacity`}),(0,h.jsx)(j,{instanceTypes:E})]})]})})]}),e[21]=E,e[22]=v,e[23]=L):L=e[23];let R;e[24]===v?R=e[25]:(R=v.some(b)&&(0,h.jsxs)(p,{children:[(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`GPU Inventory`})}),(0,h.jsx)(f,{children:(0,h.jsx)(F,{nodes:v})})]}),e[24]=v,e[25]=R);let z;return e[26]!==R||e[27]!==M||e[28]!==P||e[29]!==L?(z=(0,h.jsxs)(h.Fragment,{children:[O,(0,h.jsxs)(`div`,{className:`space-y-6`,children:[M,P,L,R]})]}),e[26]=R,e[27]=M,e[28]=P,e[29]=L,e[30]=z):z=e[30],z}function b(e){return(e.gpus?.length??0)>0}function x(e,t){return e.name.localeCompare(t.name)}function S(e){let[t,n]=e;return{name:t,...n}}function C(e){return!e.managed_by}function w(e){let t=(0,m.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(T),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function T(e){let t=[e.nats_role?`nats:${e.nats_role}`:null,e.predastore_role?`predastore:${e.predastore_role}`:null].filter(Boolean).join(`,`);return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,h.jsx)(l,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:t||`-`}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:g(e.uptime)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,h.jsx)(`td`,{className:`py-1.5`,children:(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:e.services?.join(`,`)??`-`})})]},e.node)}function E(e){return e?e.profile?`${i(e.vram_mib)} (${e.profile})`:`${e.model} ${i(e.vram_mib)}`:`-`}function D(e){let t=(0,m.c)(5),{vms:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Type`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Memory`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Age`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(O),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function O(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_id}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,h.jsx)(l,{variant:e.status===`running`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_type}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:_(e.memory_gb)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:E(e.gpu)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.node}),(0,h.jsx)(`td`,{className:`py-1.5`,children:e.launch_time>0?v(e.launch_time):`-`})]},e.instance_id)}function k(e){let t=(0,m.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`CPU (used/total)`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`MEM (used/total)`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU (used/total)`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`EC2`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(A),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function A(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,h.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[e.alloc_vcpu,`/`,e.total_vcpu]}),(0,h.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[_(e.alloc_mem_gb),`/`,_(e.total_mem_gb)]}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.total_gpus>0?`${e.alloc_gpus}/${e.total_gpus}`:`-`}),(0,h.jsx)(`td`,{className:`py-1.5`,children:e.vm_count})]},e.node)}function j(e){let t=(0,m.c)(5),{instanceTypes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance Type`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Available`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Memory`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(M),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function M(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.name}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.available}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,h.jsx)(`td`,{className:`py-1.5`,children:_(e.memory_gb)})]},e.name)}function N(e){let t=(0,m.c)(22),{gpu:n}=e,r;t[0]===n.model?r=t[1]:(r=(0,h.jsx)(`span`,{className:`font-medium`,children:n.model}),t[0]=n.model,t[1]=r);let a;t[2]===n.vram_mib?a=t[3]:(a=i(n.vram_mib),t[2]=n.vram_mib,t[3]=a);let o;t[4]===a?o=t[5]:(o=(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:a}),t[4]=a,t[5]=o);let s;t[6]===n.pci_address?s=t[7]:(s=(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:n.pci_address}),t[6]=n.pci_address,t[7]=s);let c;t[8]!==n.instance_id||t[9]!==n.mig_enabled?(c=n.mig_enabled?(0,h.jsx)(l,{className:`text-[0.625rem]`,variant:`secondary`,children:`MIG`}):(0,h.jsx)(`span`,{className:n.instance_id?`text-amber-500`:`text-green-600`,children:n.instance_id?`in-use: ${n.instance_id}`:`free`}),t[8]=n.instance_id,t[9]=n.mig_enabled,t[10]=c):c=t[10];let u;t[11]!==r||t[12]!==o||t[13]!==s||t[14]!==c?(u=(0,h.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 font-mono`,children:[r,o,s,c]}),t[11]=r,t[12]=o,t[13]=s,t[14]=c,t[15]=u):u=t[15];let d;t[16]!==n.mig_enabled||t[17]!==n.slices?(d=n.mig_enabled&&n.slices&&n.slices.length>0&&(0,h.jsxs)(`table`,{className:`mt-2 w-full`,children:[(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`GI`}),(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`Profile`}),(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`VRAM`}),(0,h.jsx)(`th`,{className:`pb-0.5 font-normal`,children:`Instance`})]})}),(0,h.jsx)(`tbody`,{children:n.slices.map(P)})]}),t[16]=n.mig_enabled,t[17]=n.slices,t[18]=d):d=t[18];let f;return t[19]!==u||t[20]!==d?(f=(0,h.jsxs)(`div`,{className:`rounded border p-2 text-xs`,children:[u,d]}),t[19]=u,t[20]=d,t[21]=f):f=t[21],f}function P(e){return(0,h.jsxs)(`tr`,{children:[(0,h.jsx)(`td`,{className:`py-0.5 pr-4 font-mono`,children:e.gi_id}),(0,h.jsx)(`td`,{className:`py-0.5 pr-4 font-mono`,children:e.profile}),(0,h.jsx)(`td`,{className:`py-0.5 pr-4`,children:i(e.vram_mib)}),(0,h.jsx)(`td`,{className:e.instance_id?`py-0.5 font-mono text-amber-500`:`py-0.5 text-green-600`,children:e.instance_id??`free`})]},e.gi_id)}function F(e){let t=(0,m.c)(6),{nodes:n}=e,r,i;if(t[0]!==n){let e=n.filter(R);r=`space-y-4`,i=e.map(I),t[0]=n,t[1]=r,t[2]=i}else r=t[1],i=t[2];let a;return t[3]!==r||t[4]!==i?(a=(0,h.jsx)(`div`,{className:r,children:i}),t[3]=r,t[4]=i,t[5]=a):a=t[5],a}function I(e){return(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`h4`,{className:`mb-1.5 text-xs font-medium text-muted-foreground`,children:e.node}),(0,h.jsx)(`div`,{className:`space-y-2`,children:e.gpus?.map(L)})]},e.node)}function L(e){return(0,h.jsx)(N,{gpu:e},e.pci_address)}function R(e){return(e.gpus?.length??0)>0}export{y as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{n as r}from"./redirect.js";import{Ht as i}from"./auth.js";import{zt as a}from"./index.js";import{t as o}from"./page-heading.js";import{r as s,t as c}from"./admin.js";import{t as l}from"./badge.js";import{a as u,o as d,r as f,t as p}from"./card.js";var m=t(),h=e();function g(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function _(e){return e>=1?`${e.toFixed(1)}Gi`:`${Math.round(e*1024)}Mi`}function v(e){let t=Math.floor(Date.now()/1e3-e);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function y(){let e=(0,m.c)(31),{isAdmin:t}=a(),i;e[0]===t?i=e[1]:(i={...c,enabled:t,refetchInterval:5e3},e[0]=t,e[1]=i);let{data:l}=n(i),g;e[2]===t?g=e[3]:(g={...s,enabled:t,refetchInterval:5e3},e[2]=t,e[3]=g);let{data:_}=n(g);if(!t)throw r({to:`/`});let v,y,T;if(e[4]!==l?.nodes||e[5]!==_?.vms){v=l?.nodes??[];let t;e[9]===_?.vms?t=e[10]:(t=_?.vms??[],e[9]=_?.vms,e[10]=t);let n;e[11]===t?n=e[12]:(n=t.filter(C),e[11]=t,e[12]=n),T=n;let r=new Map;for(let e of v)for(let t of e.instance_types??[]){let e=r.get(t.name);e?e.available+=t.available:r.set(t.name,{vcpu:t.vcpu,memory_gb:t.memory_gb,available:t.available})}y=[...r.entries()].map(S).toSorted(x),e[4]=l?.nodes,e[5]=_?.vms,e[6]=v,e[7]=y,e[8]=T}else v=e[6],y=e[7],T=e[8];let E=y,O;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,h.jsx)(o,{title:`Nodes`}),e[13]=O):O=e[13];let A;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Cluster Nodes`})}),e[14]=A):A=e[14];let M;e[15]===v?M=e[16]:(M=(0,h.jsxs)(p,{children:[A,(0,h.jsx)(f,{children:v.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No nodes responding`}):(0,h.jsx)(w,{nodes:v})})]}),e[15]=v,e[16]=M);let N;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Elastic Compute Cloud (EC2)`})}),e[17]=N):N=e[17];let P;e[18]===T?P=e[19]:(P=(0,h.jsxs)(p,{children:[N,(0,h.jsx)(f,{children:T.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances running`}):(0,h.jsx)(D,{vms:T})})]}),e[18]=T,e[19]=P);let I;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`Resource Usage`})}),e[20]=I):I=e[20];let L;e[21]!==E||e[22]!==v?(L=(0,h.jsxs)(p,{children:[I,(0,h.jsx)(f,{className:`space-y-4`,children:v.length===0?(0,h.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(k,{nodes:v}),E.length>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`h4`,{className:`mt-4 text-xs font-medium text-muted-foreground`,children:`Instance Type Capacity`}),(0,h.jsx)(j,{instanceTypes:E})]})]})})]}),e[21]=E,e[22]=v,e[23]=L):L=e[23];let R;e[24]===v?R=e[25]:(R=v.some(b)&&(0,h.jsxs)(p,{children:[(0,h.jsx)(u,{children:(0,h.jsx)(d,{className:`text-sm`,children:`GPU Inventory`})}),(0,h.jsx)(f,{children:(0,h.jsx)(F,{nodes:v})})]}),e[24]=v,e[25]=R);let z;return e[26]!==R||e[27]!==M||e[28]!==P||e[29]!==L?(z=(0,h.jsxs)(h.Fragment,{children:[O,(0,h.jsxs)(`div`,{className:`space-y-6`,children:[M,P,L,R]})]}),e[26]=R,e[27]=M,e[28]=P,e[29]=L,e[30]=z):z=e[30],z}function b(e){return(e.gpus?.length??0)>0}function x(e,t){return e.name.localeCompare(t.name)}function S(e){let[t,n]=e;return{name:t,...n}}function C(e){return!e.managed_by}function w(e){let t=(0,m.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(T),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function T(e){let t=[e.nats_role?`nats:${e.nats_role}`:null,e.predastore_role?`predastore:${e.predastore_role}`:null].filter(Boolean).join(`,`);return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,h.jsx)(l,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:t||`-`}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:g(e.uptime)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,h.jsx)(`td`,{className:`py-1.5`,children:(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:e.services?.join(`,`)??`-`})})]},e.node)}function E(e){return e?e.profile?`${i(e.vram_mib)} (${e.profile})`:`${e.model} ${i(e.vram_mib)}`:`-`}function D(e){let t=(0,m.c)(5),{vms:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Type`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Memory`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Age`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(O),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function O(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_id}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,h.jsx)(l,{variant:e.status===`running`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_type}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:_(e.memory_gb)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:E(e.gpu)}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.node}),(0,h.jsx)(`td`,{className:`py-1.5`,children:e.launch_time>0?v(e.launch_time):`-`})]},e.instance_id)}function k(e){let t=(0,m.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`CPU (used/total)`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`MEM (used/total)`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU (used/total)`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`EC2`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(A),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function A(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,h.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[e.alloc_vcpu,`/`,e.total_vcpu]}),(0,h.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[_(e.alloc_mem_gb),`/`,_(e.total_mem_gb)]}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.total_gpus>0?`${e.alloc_gpus}/${e.total_gpus}`:`-`}),(0,h.jsx)(`td`,{className:`py-1.5`,children:e.vm_count})]},e.node)}function j(e){let t=(0,m.c)(5),{instanceTypes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance Type`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Available`}),(0,h.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,h.jsx)(`th`,{className:`pb-1 font-medium`,children:`Memory`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(M),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,h.jsx)(`div`,{className:`overflow-x-auto`,children:(0,h.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,h.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function M(e){return(0,h.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,h.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.name}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.available}),(0,h.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,h.jsx)(`td`,{className:`py-1.5`,children:_(e.memory_gb)})]},e.name)}function N(e){let t=(0,m.c)(22),{gpu:n}=e,r;t[0]===n.model?r=t[1]:(r=(0,h.jsx)(`span`,{className:`font-medium`,children:n.model}),t[0]=n.model,t[1]=r);let a;t[2]===n.vram_mib?a=t[3]:(a=i(n.vram_mib),t[2]=n.vram_mib,t[3]=a);let o;t[4]===a?o=t[5]:(o=(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:a}),t[4]=a,t[5]=o);let s;t[6]===n.pci_address?s=t[7]:(s=(0,h.jsx)(`span`,{className:`text-muted-foreground`,children:n.pci_address}),t[6]=n.pci_address,t[7]=s);let c;t[8]!==n.instance_id||t[9]!==n.mig_enabled?(c=n.mig_enabled?(0,h.jsx)(l,{className:`text-[0.625rem]`,variant:`secondary`,children:`MIG`}):(0,h.jsx)(`span`,{className:n.instance_id?`text-amber-500`:`text-green-600`,children:n.instance_id?`in-use: ${n.instance_id}`:`free`}),t[8]=n.instance_id,t[9]=n.mig_enabled,t[10]=c):c=t[10];let u;t[11]!==r||t[12]!==o||t[13]!==s||t[14]!==c?(u=(0,h.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 font-mono`,children:[r,o,s,c]}),t[11]=r,t[12]=o,t[13]=s,t[14]=c,t[15]=u):u=t[15];let d;t[16]!==n.mig_enabled||t[17]!==n.slices?(d=n.mig_enabled&&n.slices&&n.slices.length>0&&(0,h.jsxs)(`table`,{className:`mt-2 w-full`,children:[(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`text-left text-muted-foreground`,children:[(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`GI`}),(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`Profile`}),(0,h.jsx)(`th`,{className:`pr-4 pb-0.5 font-normal`,children:`VRAM`}),(0,h.jsx)(`th`,{className:`pb-0.5 font-normal`,children:`Instance`})]})}),(0,h.jsx)(`tbody`,{children:n.slices.map(P)})]}),t[16]=n.mig_enabled,t[17]=n.slices,t[18]=d):d=t[18];let f;return t[19]!==u||t[20]!==d?(f=(0,h.jsxs)(`div`,{className:`rounded border p-2 text-xs`,children:[u,d]}),t[19]=u,t[20]=d,t[21]=f):f=t[21],f}function P(e){return(0,h.jsxs)(`tr`,{children:[(0,h.jsx)(`td`,{className:`py-0.5 pr-4 font-mono`,children:e.gi_id}),(0,h.jsx)(`td`,{className:`py-0.5 pr-4 font-mono`,children:e.profile}),(0,h.jsx)(`td`,{className:`py-0.5 pr-4`,children:i(e.vram_mib)}),(0,h.jsx)(`td`,{className:e.instance_id?`py-0.5 font-mono text-amber-500`:`py-0.5 text-green-600`,children:e.instance_id??`free`})]},e.gi_id)}function F(e){let t=(0,m.c)(6),{nodes:n}=e,r,i;if(t[0]!==n){let e=n.filter(R);r=`space-y-4`,i=e.map(I),t[0]=n,t[1]=r,t[2]=i}else r=t[1],i=t[2];let a;return t[3]!==r||t[4]!==i?(a=(0,h.jsx)(`div`,{className:r,children:i}),t[3]=r,t[4]=i,t[5]=a):a=t[5],a}function I(e){return(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`h4`,{className:`mb-1.5 text-xs font-medium text-muted-foreground`,children:e.node}),(0,h.jsx)(`div`,{className:`space-y-2`,children:e.gpus?.map(L)})]},e.node)}function L(e){return(0,h.jsx)(N,{gpu:e},e.pci_address)}function R(e){return(e.gpus?.length??0)>0}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js b/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js index 23e1fda6e..d217e4ddb 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js @@ -1,4 +1,4 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as ee}from"./chevron-down.js";import{a as s,c,i as l,n as u,o as d,r as f,s as p,t as m}from"./select.js";import{t as h}from"./cli-command-panel.js";import{t as g}from"./button.js";import{d as _}from"./ec2.js";import{Ir as v,Lt as y,Nt as b,Rn as x,bt as S,ht as te,kt as C,pt as ne,wt as w}from"./index.js";import{i as re,n as T,t as ie}from"./zod.js";import{t as E}from"./page-heading.js";import{a as D,n as O,r as k,t as A}from"./field.js";import{i as ae,t as oe,v as se}from"./ec22.js";import{n as ce,r as le,t as ue}from"./collapsible.js";var de=t(n()),j=e(),M=`/dev/sda1`,fe=`gp3`,pe=1,me=16384;function he(){let e=v(),{data:t}=i(ne),{data:n}=i(S),{data:M}=i(te),{data:he}=i(b),{data:_e}=i(w),{data:ve}=i(y),{data:ye}=i(C),P=_(),F=t.Images??[],be=n.KeyPairs??[],I=he.Subnets??[],xe=_e.PlacementGroups??[],Se=ve.Vpcs??[],L=ye.SecurityGroups??[],Ce=(Se.find(e=>e.IsDefault)??Se[0])?.VpcId,we=se(L.map(e=>e.GroupName??``)),R={},z=new Map;for(let e of M.InstanceTypes??[]){let t=e.InstanceType;if(t&&(R[t]=(R[t]??0)+1,!z.has(t))){let n=e.GpuInfo?.Gpus;n&&n.length>0&&z.set(t,{totalMiB:e.GpuInfo?.TotalGpuMemoryInMiB??0,gpuName:n[0]?.Name??``})}}let B=Object.keys(R).toSorted(),V=B.filter(e=>z.has(e)),H=B.filter(e=>!z.has(e)),Te=F[0]?.ImageId,Ee=be[0]?.KeyName,De=B.find(e=>e.endsWith(`.nano`))??B[0],Oe=N(F.find(e=>e.ImageId===Te)),{control:U,handleSubmit:ke,register:W,setValue:G,getValues:Ae,watch:K,formState:{errors:q,isSubmitting:J}}=re({resolver:ie(ae.refine(e=>e.count<=(R[e.instanceType]??1),{message:`Cannot exceed available capacity`,path:[`count`]}).superRefine((e,t)=>{let n=N(F.find(t=>t.ImageId===e.imageId)).snapshotSize;e.rootVolumeSize!==void 0&&n!==void 0&&e.rootVolumeSizee.ImageId===Me)),Ne=K(`subnetId`),Pe=K(`securityGroupMode`),Fe=K(`ruleSource`),Ie=K(`securityGroupIds`)??[],Q=I.find(e=>e.SubnetId===Ne)?.VpcId??Ce,$=Q?L.filter(e=>e.VpcId===Q):L,Le=e=>{let t=Ae(`securityGroupIds`)??[];G(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})};return(0,de.useEffect)(()=>{G(`rootDeviceName`,Z.deviceName)},[Me,Z.deviceName,G]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(o,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,j.jsx)(E,{title:`Run Instances`}),B.length===0&&(0,j.jsx)(r,{msg:`No compute available. No new instances can be created until compute is available.`}),P.error&&(0,j.jsx)(r,{error:P.error,msg:`Failed to create instance`}),(0,j.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:ke(async t=>{await P.mutateAsync({...t,resolvedVpcId:Q}),e({to:`/ec2/describe-instances`})}),children:[(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,j.jsx)(T,{control:U,name:`imageId`,render:({field:e})=>{let t=F.find(t=>t.ImageId===e.value);return(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,j.jsx)(p,{"aria-invalid":!!q.imageId,className:`w-full`,id:`imageId`,children:(0,j.jsx)(c,{children:t?`${t.Name??`Unnamed`} (${t.Architecture})`:``})}),(0,j.jsx)(u,{children:F.map(e=>(0,j.jsxs)(l,{value:e.ImageId??``,children:[e.Name??`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId))})]})}}),(0,j.jsx)(k,{errors:[q.imageId]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,j.jsx)(T,{control:U,name:`instanceType`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(p,{"aria-invalid":!!q.instanceType,className:`w-full`,id:`instanceType`,children:(0,j.jsx)(c,{})}),(0,j.jsxs)(u,{children:[H.length>0&&(0,j.jsxs)(f,{children:[V.length>0&&(0,j.jsx)(s,{children:`Standard`}),H.map(e=>(0,j.jsxs)(l,{value:e,children:[e,` (`,R[e],` available)`]},e))]}),V.length>0&&H.length>0&&(0,j.jsx)(d,{}),V.length>0&&(0,j.jsxs)(f,{children:[(0,j.jsx)(s,{children:`GPU-Accelerated`}),V.map(e=>{let t=z.get(e);return(0,j.jsxs)(l,{value:e,children:[e,t?` — ${a(t.totalMiB)}`:``,` (`,R[e],` available)`]},e)})]})]})]})}),X&&(0,j.jsxs)(O,{children:[`GPU: `,X.gpuName,` ·`,` `,a(X.totalMiB),` VRAM`]}),(0,j.jsx)(k,{errors:[q.instanceType]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,j.jsx)(T,{control:U,name:`keyName`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(p,{"aria-invalid":!!q.keyName,className:`w-full`,id:`keyName`,children:(0,j.jsx)(c,{})}),(0,j.jsx)(u,{children:be.map(e=>(0,j.jsx)(l,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))})]})}),(0,j.jsx)(k,{errors:[q.keyName]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,j.jsx)(T,{control:U,name:`subnetId`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(p,{className:`w-full`,id:`subnetId`,children:(0,j.jsx)(c,{})}),(0,j.jsxs)(u,{children:[(0,j.jsx)(l,{value:`none`,children:`none`}),I.map(e=>(0,j.jsx)(l,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId))]})]})})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:`Security Group`}),(0,j.jsx)(O,{children:Q?`Applies to VPC ${Q}`:`No VPC resolved — select a subnet`}),(0,j.jsx)(T,{control:U,name:`securityGroupMode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Create new security group`,checked:e.value===`create`,onChange:()=>e.onChange(`create`),type:`radio`}),`Create new`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Select existing security group`,checked:e.value===`existing`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Select existing`]})]})}),Pe===`create`?(0,j.jsxs)(`div`,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`newSgName`,children:`Name`})}),(0,j.jsx)(x,{"aria-invalid":!!q.newSgName,id:`newSgName`,type:`text`,...W(`newSgName`)}),(0,j.jsx)(k,{errors:[q.newSgName]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`newSgDescription`,children:`Description`})}),(0,j.jsx)(x,{id:`newSgDescription`,type:`text`,...W(`newSgDescription`)})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:`Inbound rules`}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(T,{control:U,name:`allowSsh`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Allow SSH`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow SSH (tcp/22)`]})}),(0,j.jsx)(T,{control:U,name:`allowHttp`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Allow HTTP`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTP (tcp/80)`]})}),(0,j.jsx)(T,{control:U,name:`allowHttps`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Allow HTTPS`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTPS (tcp/443)`]})})]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:`Source`}),(0,j.jsx)(T,{control:U,name:`ruleSource`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Source anywhere`,checked:e.value===`anywhere`,onChange:()=>e.onChange(`anywhere`),type:`radio`}),`Anywhere (0.0.0.0/0)`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Source custom CIDR`,checked:e.value===`custom`,onChange:()=>e.onChange(`custom`),type:`radio`}),`Custom CIDR`]})]})}),Fe===`custom`&&(0,j.jsxs)(`div`,{className:`mt-2`,children:[(0,j.jsx)(x,{"aria-invalid":!!q.customCidr,placeholder:`203.0.113.0/24`,type:`text`,...W(`customCidr`)}),(0,j.jsx)(k,{errors:[q.customCidr]})]})]})]}):(0,j.jsxs)(`div`,{className:`mt-3`,children:[$.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the resolved VPC.`}):(0,j.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Ie.includes(e.GroupId??``),onChange:()=>Le(e.GroupId??``),type:`checkbox`}),(0,j.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))}),(0,j.jsx)(k,{errors:[q.securityGroupIds]})]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`placementGroupName`,children:`Placement Group`})}),(0,j.jsx)(T,{control:U,name:`placementGroupName`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(p,{className:`w-full`,id:`placementGroupName`,children:(0,j.jsx)(c,{})}),(0,j.jsxs)(u,{children:[(0,j.jsx)(l,{value:`none`,children:`none`}),xe.map(e=>(0,j.jsxs)(l,{value:e.GroupName??``,children:[e.GroupName,` (`,e.Strategy,`)`]},e.GroupId))]})]})})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),(0,j.jsx)(x,{"aria-describedby":`count-description`,"aria-invalid":!!q.count,id:`count`,type:`number`,...W(`count`,{valueAsNumber:!0})}),(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:Y&&`Available capacity for ${Y}: ${je}`}),(0,j.jsx)(k,{errors:[q.count]})]}),(0,j.jsxs)(ue,{children:[(0,j.jsxs)(le,{className:`group flex h-7 w-full items-center justify-between rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none hover:bg-input/40 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 md:text-xs/relaxed dark:bg-input/30 dark:hover:bg-input/50`,render:(0,j.jsx)(`button`,{"aria-label":`Block Device Mappings (root volume)`,type:`button`}),children:[(0,j.jsx)(`span`,{children:`Block Device Mappings (root volume)`}),(0,j.jsx)(ee,{className:`size-3.5 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180`})]}),(0,j.jsxs)(ce,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`rootDeviceName`,children:`Device Name`})}),(0,j.jsx)(x,{"aria-invalid":!!q.rootDeviceName,id:`rootDeviceName`,type:`text`,...W(`rootDeviceName`)}),(0,j.jsx)(k,{errors:[q.rootDeviceName]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`rootVolumeSize`,children:`Volume Size (GiB)`})}),(0,j.jsx)(x,{"aria-invalid":!!q.rootVolumeSize,id:`rootVolumeSize`,max:me,min:Z.snapshotSize??pe,placeholder:Z.snapshotSize?`${Z.snapshotSize} (AMI default)`:`use AMI / backend default`,type:`number`,...W(`rootVolumeSize`,{setValueAs:e=>e===``||e==null?void 0:Number(e)})}),Z.snapshotSize!==void 0&&(0,j.jsxs)(O,{children:[`AMI snapshot size: `,Z.snapshotSize,` GiB`]}),(0,j.jsx)(k,{errors:[q.rootVolumeSize]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`rootVolumeType`,children:`Volume Type`})}),(0,j.jsx)(T,{control:U,name:`rootVolumeType`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value??fe,children:[(0,j.jsx)(p,{"aria-invalid":!!q.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,j.jsx)(c,{})}),(0,j.jsx)(u,{children:oe.map(e=>(0,j.jsx)(l,{value:e,children:e},e))})]})}),(0,j.jsx)(k,{errors:[q.rootVolumeType]})]}),(0,j.jsx)(A,{children:(0,j.jsx)(T,{control:U,name:`rootDeleteOnTermination`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Delete on termination`,checked:e.value??!0,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Delete on termination`]})})})]})]}),(0,j.jsx)(h,{commands:ge(K,Q)}),(0,j.jsxs)(`div`,{className:`flex gap-2`,children:[(0,j.jsx)(g,{disabled:J||P.isPending,onClick:async()=>await e({to:`/ec2/describe-instances`}),type:`button`,variant:`outline`,children:`Cancel`}),(0,j.jsx)(g,{disabled:J||P.isPending||B.length===0,type:`submit`,children:J||P.isPending?`Creating…`:`Create Instance`})]})]})]})}function N(e){let t=e?.RootDeviceName??M,n=e?.BlockDeviceMappings??[];return{deviceName:t,snapshotSize:(n.find(e=>e.DeviceName===t)??n[0])?.Ebs?.VolumeSize}}function ge(e,t){let n=e(`imageId`),r=typeof n==`string`?n:``,i=e(`instanceType`),a=typeof i==`string`?i:``,o=e(`keyName`),ee=typeof o==`string`?o:``,s=e(`subnetId`),c=typeof s==`string`?s:``,l=e(`placementGroupName`),u=typeof l==`string`?l:``,d=e(`count`),f=typeof d==`number`?d:0,p=e(`rootDeviceName`),m=typeof p==`string`?p:``,h=e(`rootVolumeSize`),g=typeof h==`number`?h:void 0,_=e(`rootVolumeType`),v=typeof _==`string`?_:``,y=e(`rootDeleteOnTermination`),b=typeof y==`boolean`?y:!0,x=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./error-banner.js";import{t as i}from"./useSuspenseQuery.js";import{Ht as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as ee}from"./chevron-down.js";import{a as s,c,i as l,n as u,o as d,r as f,s as p,t as m}from"./select.js";import{t as h}from"./cli-command-panel.js";import{t as g}from"./button.js";import{d as _}from"./ec2.js";import{Ir as v,Lt as y,Nt as b,Rn as x,bt as S,ht as te,kt as C,pt as ne,wt as w}from"./index.js";import{i as re,n as T,t as ie}from"./zod.js";import{t as E}from"./page-heading.js";import{a as D,n as O,r as k,t as A}from"./field.js";import{i as ae,t as oe,v as se}from"./ec22.js";import{n as ce,r as le,t as ue}from"./collapsible.js";var de=t(n()),j=e(),M=`/dev/sda1`,fe=`gp3`,pe=1,me=16384;function he(){let e=v(),{data:t}=i(ne),{data:n}=i(S),{data:M}=i(te),{data:he}=i(b),{data:_e}=i(w),{data:ve}=i(y),{data:ye}=i(C),P=_(),F=t.Images??[],be=n.KeyPairs??[],I=he.Subnets??[],xe=_e.PlacementGroups??[],Se=ve.Vpcs??[],L=ye.SecurityGroups??[],Ce=(Se.find(e=>e.IsDefault)??Se[0])?.VpcId,we=se(L.map(e=>e.GroupName??``)),R={},z=new Map;for(let e of M.InstanceTypes??[]){let t=e.InstanceType;if(t&&(R[t]=(R[t]??0)+1,!z.has(t))){let n=e.GpuInfo?.Gpus;n&&n.length>0&&z.set(t,{totalMiB:e.GpuInfo?.TotalGpuMemoryInMiB??0,gpuName:n[0]?.Name??``})}}let B=Object.keys(R).toSorted(),V=B.filter(e=>z.has(e)),H=B.filter(e=>!z.has(e)),Te=F[0]?.ImageId,Ee=be[0]?.KeyName,De=B.find(e=>e.endsWith(`.nano`))??B[0],Oe=N(F.find(e=>e.ImageId===Te)),{control:U,handleSubmit:ke,register:W,setValue:G,getValues:Ae,watch:K,formState:{errors:q,isSubmitting:J}}=re({resolver:ie(ae.refine(e=>e.count<=(R[e.instanceType]??1),{message:`Cannot exceed available capacity`,path:[`count`]}).superRefine((e,t)=>{let n=N(F.find(t=>t.ImageId===e.imageId)).snapshotSize;e.rootVolumeSize!==void 0&&n!==void 0&&e.rootVolumeSizee.ImageId===Me)),Ne=K(`subnetId`),Pe=K(`securityGroupMode`),Fe=K(`ruleSource`),Ie=K(`securityGroupIds`)??[],Q=I.find(e=>e.SubnetId===Ne)?.VpcId??Ce,$=Q?L.filter(e=>e.VpcId===Q):L,Le=e=>{let t=Ae(`securityGroupIds`)??[];G(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})};return(0,de.useEffect)(()=>{G(`rootDeviceName`,Z.deviceName)},[Me,Z.deviceName,G]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(o,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,j.jsx)(E,{title:`Run Instances`}),B.length===0&&(0,j.jsx)(r,{msg:`No compute available. No new instances can be created until compute is available.`}),P.error&&(0,j.jsx)(r,{error:P.error,msg:`Failed to create instance`}),(0,j.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:ke(async t=>{await P.mutateAsync({...t,resolvedVpcId:Q}),e({to:`/ec2/describe-instances`})}),children:[(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,j.jsx)(T,{control:U,name:`imageId`,render:({field:e})=>{let t=F.find(t=>t.ImageId===e.value);return(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,j.jsx)(p,{"aria-invalid":!!q.imageId,className:`w-full`,id:`imageId`,children:(0,j.jsx)(c,{children:t?`${t.Name??`Unnamed`} (${t.Architecture})`:``})}),(0,j.jsx)(u,{children:F.map(e=>(0,j.jsxs)(l,{value:e.ImageId??``,children:[e.Name??`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId))})]})}}),(0,j.jsx)(k,{errors:[q.imageId]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,j.jsx)(T,{control:U,name:`instanceType`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(p,{"aria-invalid":!!q.instanceType,className:`w-full`,id:`instanceType`,children:(0,j.jsx)(c,{})}),(0,j.jsxs)(u,{children:[H.length>0&&(0,j.jsxs)(f,{children:[V.length>0&&(0,j.jsx)(s,{children:`Standard`}),H.map(e=>(0,j.jsxs)(l,{value:e,children:[e,` (`,R[e],` available)`]},e))]}),V.length>0&&H.length>0&&(0,j.jsx)(d,{}),V.length>0&&(0,j.jsxs)(f,{children:[(0,j.jsx)(s,{children:`GPU-Accelerated`}),V.map(e=>{let t=z.get(e);return(0,j.jsxs)(l,{value:e,children:[e,t?` — ${a(t.totalMiB)}`:``,` (`,R[e],` available)`]},e)})]})]})]})}),X&&(0,j.jsxs)(O,{children:[`GPU: `,X.gpuName,` ·`,` `,a(X.totalMiB),` VRAM`]}),(0,j.jsx)(k,{errors:[q.instanceType]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,j.jsx)(T,{control:U,name:`keyName`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(p,{"aria-invalid":!!q.keyName,className:`w-full`,id:`keyName`,children:(0,j.jsx)(c,{})}),(0,j.jsx)(u,{children:be.map(e=>(0,j.jsx)(l,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))})]})}),(0,j.jsx)(k,{errors:[q.keyName]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,j.jsx)(T,{control:U,name:`subnetId`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(p,{className:`w-full`,id:`subnetId`,children:(0,j.jsx)(c,{})}),(0,j.jsxs)(u,{children:[(0,j.jsx)(l,{value:`none`,children:`none`}),I.map(e=>(0,j.jsx)(l,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId))]})]})})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:`Security Group`}),(0,j.jsx)(O,{children:Q?`Applies to VPC ${Q}`:`No VPC resolved — select a subnet`}),(0,j.jsx)(T,{control:U,name:`securityGroupMode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Create new security group`,checked:e.value===`create`,onChange:()=>e.onChange(`create`),type:`radio`}),`Create new`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Select existing security group`,checked:e.value===`existing`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Select existing`]})]})}),Pe===`create`?(0,j.jsxs)(`div`,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`newSgName`,children:`Name`})}),(0,j.jsx)(x,{"aria-invalid":!!q.newSgName,id:`newSgName`,type:`text`,...W(`newSgName`)}),(0,j.jsx)(k,{errors:[q.newSgName]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`newSgDescription`,children:`Description`})}),(0,j.jsx)(x,{id:`newSgDescription`,type:`text`,...W(`newSgDescription`)})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:`Inbound rules`}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(T,{control:U,name:`allowSsh`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Allow SSH`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow SSH (tcp/22)`]})}),(0,j.jsx)(T,{control:U,name:`allowHttp`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Allow HTTP`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTP (tcp/80)`]})}),(0,j.jsx)(T,{control:U,name:`allowHttps`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Allow HTTPS`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTPS (tcp/443)`]})})]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:`Source`}),(0,j.jsx)(T,{control:U,name:`ruleSource`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Source anywhere`,checked:e.value===`anywhere`,onChange:()=>e.onChange(`anywhere`),type:`radio`}),`Anywhere (0.0.0.0/0)`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Source custom CIDR`,checked:e.value===`custom`,onChange:()=>e.onChange(`custom`),type:`radio`}),`Custom CIDR`]})]})}),Fe===`custom`&&(0,j.jsxs)(`div`,{className:`mt-2`,children:[(0,j.jsx)(x,{"aria-invalid":!!q.customCidr,placeholder:`203.0.113.0/24`,type:`text`,...W(`customCidr`)}),(0,j.jsx)(k,{errors:[q.customCidr]})]})]})]}):(0,j.jsxs)(`div`,{className:`mt-3`,children:[$.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the resolved VPC.`}):(0,j.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Ie.includes(e.GroupId??``),onChange:()=>Le(e.GroupId??``),type:`checkbox`}),(0,j.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))}),(0,j.jsx)(k,{errors:[q.securityGroupIds]})]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`placementGroupName`,children:`Placement Group`})}),(0,j.jsx)(T,{control:U,name:`placementGroupName`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(p,{className:`w-full`,id:`placementGroupName`,children:(0,j.jsx)(c,{})}),(0,j.jsxs)(u,{children:[(0,j.jsx)(l,{value:`none`,children:`none`}),xe.map(e=>(0,j.jsxs)(l,{value:e.GroupName??``,children:[e.GroupName,` (`,e.Strategy,`)`]},e.GroupId))]})]})})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),(0,j.jsx)(x,{"aria-describedby":`count-description`,"aria-invalid":!!q.count,id:`count`,type:`number`,...W(`count`,{valueAsNumber:!0})}),(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:Y&&`Available capacity for ${Y}: ${je}`}),(0,j.jsx)(k,{errors:[q.count]})]}),(0,j.jsxs)(ue,{children:[(0,j.jsxs)(le,{className:`group flex h-7 w-full items-center justify-between rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none hover:bg-input/40 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 md:text-xs/relaxed dark:bg-input/30 dark:hover:bg-input/50`,render:(0,j.jsx)(`button`,{"aria-label":`Block Device Mappings (root volume)`,type:`button`}),children:[(0,j.jsx)(`span`,{children:`Block Device Mappings (root volume)`}),(0,j.jsx)(ee,{className:`size-3.5 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180`})]}),(0,j.jsxs)(ce,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`rootDeviceName`,children:`Device Name`})}),(0,j.jsx)(x,{"aria-invalid":!!q.rootDeviceName,id:`rootDeviceName`,type:`text`,...W(`rootDeviceName`)}),(0,j.jsx)(k,{errors:[q.rootDeviceName]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`rootVolumeSize`,children:`Volume Size (GiB)`})}),(0,j.jsx)(x,{"aria-invalid":!!q.rootVolumeSize,id:`rootVolumeSize`,max:me,min:Z.snapshotSize??pe,placeholder:Z.snapshotSize?`${Z.snapshotSize} (AMI default)`:`use AMI / backend default`,type:`number`,...W(`rootVolumeSize`,{setValueAs:e=>e===``||e==null?void 0:Number(e)})}),Z.snapshotSize!==void 0&&(0,j.jsxs)(O,{children:[`AMI snapshot size: `,Z.snapshotSize,` GiB`]}),(0,j.jsx)(k,{errors:[q.rootVolumeSize]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`rootVolumeType`,children:`Volume Type`})}),(0,j.jsx)(T,{control:U,name:`rootVolumeType`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value??fe,children:[(0,j.jsx)(p,{"aria-invalid":!!q.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,j.jsx)(c,{})}),(0,j.jsx)(u,{children:oe.map(e=>(0,j.jsx)(l,{value:e,children:e},e))})]})}),(0,j.jsx)(k,{errors:[q.rootVolumeType]})]}),(0,j.jsx)(A,{children:(0,j.jsx)(T,{control:U,name:`rootDeleteOnTermination`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Delete on termination`,checked:e.value??!0,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Delete on termination`]})})})]})]}),(0,j.jsx)(h,{commands:ge(K,Q)}),(0,j.jsxs)(`div`,{className:`flex gap-2`,children:[(0,j.jsx)(g,{disabled:J||P.isPending,onClick:async()=>await e({to:`/ec2/describe-instances`}),type:`button`,variant:`outline`,children:`Cancel`}),(0,j.jsx)(g,{disabled:J||P.isPending||B.length===0,type:`submit`,children:J||P.isPending?`Creating…`:`Create Instance`})]})]})]})}function N(e){let t=e?.RootDeviceName??M,n=e?.BlockDeviceMappings??[];return{deviceName:t,snapshotSize:(n.find(e=>e.DeviceName===t)??n[0])?.Ebs?.VolumeSize}}function ge(e,t){let n=e(`imageId`),r=typeof n==`string`?n:``,i=e(`instanceType`),a=typeof i==`string`?i:``,o=e(`keyName`),ee=typeof o==`string`?o:``,s=e(`subnetId`),c=typeof s==`string`?s:``,l=e(`placementGroupName`),u=typeof l==`string`?l:``,d=e(`count`),f=typeof d==`number`?d:0,p=e(`rootDeviceName`),m=typeof p==`string`?p:``,h=e(`rootVolumeSize`),g=typeof h==`number`?h:void 0,_=e(`rootVolumeType`),v=typeof _==`string`?_:``,y=e(`rootDeleteOnTermination`),b=typeof y==`boolean`?y:!0,x=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ --image-id`},{type:`value`,value:` ${r||``}`},{type:`flag`,value:` \\ --instance-type`},{type:`value`,value:` ${a||``}`},{type:`flag`,value:` \\ --key-name`},{type:`value`,value:` ${ee||``}`}];c&&x.push({type:`flag`,value:` \\ diff --git a/spinifex/services/spinifexui/frontend/dist/assets/s3.js b/spinifex/services/spinifexui/frontend/dist/assets/s3.js index ea394b024..2498646bf 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/s3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/s3.js @@ -1,4 +1,4 @@ -import{i as e,t}from"./compiler-runtime.js";import{n}from"./error-banner.js";import{C as r,S as i,_ as a,b as o,c as s,d as c,f as l,g as u,l as d,s as f,u as p,v as m,w as h,x as g,y as _}from"./awsClient.js";import{Ct as v,Ft as y,J as b,ct as x,dt as S,jt as C,ut as w,vt as T}from"./auth.js";import{_ as E,a as D,g as O,h as ee,i as k,m as A,n as j,o as te,r as M,s as ne,t as N}from"./tslib.es6.js";import{i as P}from"./index.browser.js";import{Lr as F}from"./index.js";var I=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},L,R,z,B,V,H,U,W,G,K=()=>{L||(L=I(),[R,z,B,V,H,U,W,G]=L)},re=class{c1=0;c2=0;constructor(){K(),this.reset()}update(e){let t=e.length,n=0,r=this.c1,i=this.c2;for(;n+8<=t;){let t=((i^e[n++])&255)<<1,a=((i>>>8^e[n++])&255)<<1,o=((i>>>16^e[n++])&255)<<1,s=((i>>>24^e[n++])&255)<<1,c=((r^e[n++])&255)<<1,l=((r>>>8^e[n++])&255)<<1,u=((r>>>16^e[n++])&255)<<1,d=((r>>>24^e[n++])&255)<<1;r=G[t]^W[a]^U[o]^H[s]^V[c]^B[l]^z[u]^R[d],i=G[t+1]^W[a+1]^U[o+1]^H[s+1]^V[c+1]^B[l+1]^z[u+1]^R[d+1]}for(;n>>8|(r&255)<<24)>>>0,r=r>>>8^R[t],i^=R[t+1],n++}this.c1=r,this.c2=i}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},ie={CrtCrc64Nvme:null},ae=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:a})=>{if(!n)return a===r.WHEN_SUPPORTED||t?i:void 0;if(e[n])return e[n]},oe=e=>e===g.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,se=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},ce=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},le=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!O(e),ue=function(){function e(){this.crc32c=new de}return e.prototype.update=function(e){te(e)||this.crc32c.update(ne(e))},e.prototype.digest=function(){return N(this,void 0,void 0,function(){return j(this,function(e){return[2,D(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new de},e}(),de=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=M(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^fe[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),fe=k([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]),pe=()=>P,me=[g.CRC32,g.CRC32C,g.CRC64NVME,g.SHA1,g.SHA256],he=[g.SHA256,g.SHA1,g.CRC32,g.CRC32C,g.CRC64NVME],ge=(e,t)=>{let{checksumAlgorithms:n={}}=t;switch(e){case g.MD5:return n?.MD5??t.md5;case g.CRC32:return n?.CRC32??pe();case g.CRC32C:return n?.CRC32C??ue;case g.CRC64NVME:return typeof ie.CrtCrc64Nvme==`function`?n?.CRC64NVME??ie.CrtCrc64Nvme:n?.CRC64NVME??re;case g.SHA1:return n?.SHA1??t.sha1;case g.SHA256:return n?.SHA256??t.sha256;default:if(n?.[e])return n[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${me}, or provide an implementation to the client constructor checksums field.`)}},_e=(e,t)=>{let n=new e;return n.update(E(t||``)),n.digest()},ve={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},ye=(e,t)=>(n,a)=>async o=>{if(!y.isInstance(o.request)||ce(`x-amz-checksum-`,o.request.headers))return n(o);let{request:s,input:c}=o,{body:l,headers:u}=s,{base64Encoder:d,streamHasher:f}=e,{requestChecksumRequired:p,requestAlgorithmMember:m}=t,h=await e.requestChecksumCalculation(),_=m?.name,v=m?.httpHeader;_&&!c[_]&&(h===r.WHEN_SUPPORTED||p)&&(c[_]=i,v&&(u[v]=i));let x=ae(c,{requestChecksumRequired:p,requestAlgorithmMember:m?.name,requestChecksumCalculation:h}),S=l,C=u;if(x){switch(x){case g.CRC32:b(a,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case g.CRC32C:b(a,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case g.CRC64NVME:b(a,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case g.SHA1:b(a,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case g.SHA256:b(a,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let t=oe(x),n=ge(x,e);if(le(l)){let{getAwsChunkedEncodingStream:r,bodyLengthChecker:i}=e;S=r(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?A(l,e.requestStreamBufferSize,a.logger):l,{base64Encoder:d,bodyLengthChecker:i,checksumLocationName:t,checksumAlgorithmFn:n,streamHasher:f}),C={...u,"content-encoding":u[`content-encoding`]?`${u[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":u[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":t},delete C[`content-length`]}else if(!se(t,u)){let e=await _e(n,l);C={...u,[t]:d(e)}}}try{return await n({...o,request:{...s,headers:C,body:S}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},be={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},xe=(e,t)=>(n,i)=>async a=>{let o=a.input,{requestValidationModeMember:s}=t,c=await e.requestChecksumCalculation(),l=await e.responseChecksumValidation();switch(c){case r.WHEN_REQUIRED:b(i,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case r.WHEN_SUPPORTED:b(i,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(l){case h.WHEN_REQUIRED:b(i,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case h.WHEN_SUPPORTED:b(i,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return s&&!o[s]&&l===h.WHEN_SUPPORTED&&(o[s]=`ENABLED`),n(a)},Se=(e=[])=>{let t=[],n=he.length;for(let r of e){let e=he.indexOf(r);e===-1?t[n++]=r:t[e]=r}return t.filter(Boolean)},Ce=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},we=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await _e(t,e)),Te=async(e,{config:t,responseAlgorithms:n,logger:r})=>{let i=Se(n),{body:a,headers:o}=e;for(let n of i){let i=oe(n),s=o[i];if(s){let o;try{o=ge(n,t)}catch(e){if(n===g.CRC64NVME){r?.warn(`Skipping ${g.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:c}=t;if(le(a)){e.body=ee({expectedChecksum:s,checksumSourceLocation:i,checksum:new o,source:a,base64Encoder:c});return}let l=await we(a,{checksumAlgorithmFn:o,base64Encoder:c});if(l===s)break;throw Error(`Checksum mismatch: expected "${l}" but received "${s}" in response header "${i}".`)}}},Ee={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},De=(e,t)=>(n,r)=>async i=>{if(!y.isInstance(i.request))return n(i);let a=i.input,o=await n(i),s=o.response,{requestValidationModeMember:c,responseAlgorithms:l}=t;if(c&&a[c]===`ENABLED`){let{clientName:t,commandName:n}=r,i=Object.keys(e.checksumAlgorithms??{}).filter(e=>{let t=oe(e);return s.headers[t]!==void 0}),a=Se([...l??[],...i]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=oe(e),n=s.headers[t];return!n||Ce(n)}))return o;await Te(s,{config:e,responseAlgorithms:a,logger:r.logger})}return o},Oe=(e,t)=>({applyToStack:n=>{n.add(ye(e,t),ve),n.addRelativeTo(xe(e,t),be),n.addRelativeTo(De(e,t),Ee)}}),ke=`content-length`,Ae=`x-amz-decoded-content-length`;function je(){return(e,t)=>async n=>{let{request:r}=n;if(y.isInstance(r)&&!(ke in r.headers)&&!(Ae in r.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof t?.logger?.warn==`function`&&!(t.logger instanceof T)?t.logger.warn(e):console.warn(e)}return e({...n})}}var Me={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},Ne=e=>({applyToStack:e=>{e.add(je(),Me)}});function Pe(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}var Fe={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0},Ie=e=>({applyToStack:t=>{t.add(Pe(e),Fe)}});function Le(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let i;typeof n==`string`?ze(n,e)?i=e.base64Decoder(n):(i=e.utf8Decoder(n),r[t.target]=e.base64Encoder(i)):(i=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(i));let a=new e.md5;a.update(i),r[t.hash]=e.base64Encoder(await a.digest())}}return t({...n,input:r})}}var Re={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},q=e=>({applyToStack:t=>{t.add(Le(e),Re)}});function ze(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}var Be=class extends v.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions()),o(n)]}).s(`AmazonS3`,`AbortMultipartUpload`,{}).n(`S3Client`,`AbortMultipartUploadCommand`).sc(s).build(){},Ve=class extends v.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions()),o(n),q(n)]}).s(`AmazonS3`,`CompleteMultipartUpload`,{}).n(`S3Client`,`CompleteMultipartUploadCommand`).sc(d).build(){},He=class extends v.classBuilder().ep({..._,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions()),o(n),Ie(n)]}).s(`AmazonS3`,`CreateBucket`,{}).n(`S3Client`,`CreateBucketCommand`).sc(p).build(){},Ue=class extends v.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions()),o(n),q(n)]}).s(`AmazonS3`,`CreateMultipartUpload`,{}).n(`S3Client`,`CreateMultipartUploadCommand`).sc(c).build(){},We=class extends v.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions()),o(n)]}).s(`AmazonS3`,`DeleteObject`,{}).n(`S3Client`,`DeleteObjectCommand`).sc(l).build(){},Ge=class extends v.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions()),Oe(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),Ne(n),o(n),q(n)]}).s(`AmazonS3`,`PutObject`,{}).n(`S3Client`,`PutObjectCommand`).sc(u).build(){},Ke=class extends v.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions()),Oe(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),o(n)]}).s(`AmazonS3`,`PutObjectTagging`,{}).n(`S3Client`,`PutObjectTaggingCommand`).sc(a).build(){},qe=class extends v.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[S(n,e.getEndpointParameterInstructions()),Oe(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),o(n),q(n)]}).s(`AmazonS3`,`UploadPart`,{}).n(`S3Client`,`UploadPartCommand`).sc(m).build(){},Je={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,MD5:`MD5`,SHA1:`SHA1`,SHA256:`SHA256`,SHA512:`SHA512`,XXHASH128:`XXHASH128`,XXHASH3:`XXHASH3`,XXHASH64:`XXHASH64`},Ye=e(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),Ze=e((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),J=e((e=>{var t=Xe(),n=Ze(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return p(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return m(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=h(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:g(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=v(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:g(e.length)|0,n=o(t),r=0;r=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function _(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return V(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return W(e).length;default:if(i)return r?-1:V(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=v;function y(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return ne(this,t,n);case`utf8`:case`utf-8`:return k(this,t,n);case`ascii`:return te(this,t,n);case`latin1`:case`binary`:return M(this,t,n);case`base64`:return ee(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return N(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;tn&&(t+=` ... `),``},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,re(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:S(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function S(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;lo&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;fi&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return C(this,e,t,n);case`utf8`:case`utf-8`:return w(this,e,t,n);case`ascii`:return T(this,e,t,n);case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function ee(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return j(r)}var A=4096;function j(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);for(var n=``,r=0;rr)&&(n=r);for(var i=``,a=t;an&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tn)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!1,52,8)};function F(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;F(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o>>=0,n>>>=0,!r){var i=2**(8*n)-1;F(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function I(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function L(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)};function R(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function H(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function W(e){return t.toByteArray(B(e))}function G(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function re(e){return e!==e}var ie=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),Qe=t(),$e=Ye(),Y=J(),et={lstatSync:()=>{},isFileReadStream(e){return!1},runtime:`browser`},tt=e=>{if(e==null)return 0;if(typeof e==`string`)return Y.Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(et.isFileReadStream(e))try{return et.lstatSync(e.path).size}catch{return}},X;(function(e){e.EMPTY_INPUT=`a null or undefined Body`,e.CONTENT_LENGTH=`the ContentLength property of the params set by the caller`,e.STRING_LENGTH=`the encoded byte length of the Body string`,e.TYPED_ARRAY=`the byteLength of a typed byte array such as Uint8Array`,e.LENGTH=`the value of Body.length`,e.SIZE=`the value of Body.size`,e.START_END_DIFF=`the numeric difference between Body.start and Body.end`,e.LSTAT=`the size of the file given by Body.path on disk as reported by lstatSync`})(X||={});var nt=(e,t)=>{if(t!=null)return X.CONTENT_LENGTH;if(e==null)return X.EMPTY_INPUT;if(typeof e==`string`)return X.STRING_LENGTH;if(typeof e.byteLength==`number`)return X.TYPED_ARRAY;if(typeof e.length==`number`)return X.LENGTH;if(typeof e.size==`number`)return X.SIZE;if(typeof e.start==`number`&&typeof e.end==`number`)return X.START_END_DIFF;if(et.isFileReadStream(e))try{return et.lstatSync(e.path).size,X.LSTAT}catch{return}},Z=e(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),rt=e(((e,t)=>{t.exports=Ye().EventEmitter})),it=e(((e,t)=>{t.exports={}})),at=e(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return ei.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),ot=e(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Q=e(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),st=e(((e,t)=>{var n=Q().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),ct=e(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),lt=e(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){z(t,e)}}var r;T.WritableState=C;var i={deprecate:ct()},a=rt(),o=J().Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=ot(),d=st().getHighWaterMark,f=Q().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;Z()(T,a);function S(){}function C(e,t,i){r||=$(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){te(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=$();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=ee(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&N(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ee(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=ht(),i=lt();Z()(c,r);for(var a=n(i.prototype),o=0;o{var n=J(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),dt=e((e=>{var t=ut().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),ft=e(((e,t)=>{var n=Q().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),pt=e(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=ft(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),mt=e(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),ht=e(((e,t)=>{t.exports=E;var n;E.ReadableState=T,Ye().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=rt(),a=J().Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=it(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=at(),f=ot(),p=st().getHighWaterMark,m=Q().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;Z()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=$(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=dt().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=$(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,te(e,o);else{var c;if(i||(c=ee(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):N(e,o)):O(e,o,t,!1);else r||(o.reading=!1,N(e,o))}return!o.ended&&(o.length=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function j(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=A(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?H(this):M(this),null;if(e=j(e,t),e===0&&t.ended)return t.length===0&&H(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e0?V(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&H(this)),i!==null&&this.emit(`data`,i),i};function te(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,ne(e)))}}function M(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(ne,e))}function ne(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function N(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length1&&W(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function F(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,B(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?M(this):r.reading||process.nextTick(L,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(I,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(I,this),t};function I(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function L(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,R(this,e)),e.paused=!1,this};function R(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(z,e,t))}function z(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),B(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function B(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function H(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(U,t,e))}function U(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=mt()),x(E,e,t)});function W(e,t){for(var n=0,r=e.length;n{t.exports=l;var n=Q().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=$();Z()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{t.exports=r;var n=gt();Z()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),vt=e(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Q().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=ft()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),yt=e(((e,t)=>{t.exports=r;var n=Ye().EventEmitter;Z()(r,n),r.Readable=ht(),r.Writable=lt(),r.Duplex=$(),r.Transform=gt(),r.PassThrough=_t(),r.finished=ft(),r.pipeline=vt(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}}))();async function*bt(e,t,n){let r=1,i={chunks:[],length:0};for await(let a of n(e))for(i.chunks.push(a),i.length+=a.byteLength;i.length>t;){let e=i.chunks.length>1?Y.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:e.subarray(0,t)},i.chunks=[e.subarray(t)],i.length=i.chunks[0].byteLength,r+=1}yield{partNumber:r,data:i.chunks.length===1?i.chunks[0]:Y.Buffer.concat(i.chunks),lastPart:!0}}async function*xt(e,t){let n=1,r=0,i=t;for(;i{if(e instanceof Uint8Array)return xt(e,t);if(e instanceof yt.Readable)return bt(e,t,St);if(e instanceof String||typeof e==`string`)return xt(Y.Buffer.from(e),t);if(typeof e.stream==`function`)return bt(e.stream(),t,Ct);if(e instanceof ReadableStream)return bt(e,t,Ct);throw Error(`Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.`)},Tt=class e extends $e.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(t){if(super(),this.queueSize=t.queueSize||this.queueSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,!this.params)throw Error(`InputError: Upload requires params to be passed to upload.`);this.totalBytes=this.params.ContentLength??tt(this.params.Body),this.totalBytesSource=nt(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=t.abortController??new AbortController,this.partSize=t.partSize||Math.max(e.MIN_PART_SIZE,Math.ceil((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}async abort(){this.abortController.abort()}async done(){if(this.sent)throw Error(`@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.`);return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(e,t){return this.uploadEvent=e,super.on(e,t)}async __uploadUsingPut(e){this.isMultiPart=!1;let t={...this.params,Body:e.data},n=this.client.config,r=n.requestHandler,i=r instanceof $e.EventEmitter?r:null,a=t=>{this.bytesUploadedSoFar=t.loaded,this.totalBytes=t.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:e.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};i!==null&&i.on(`xhr.upload.progress`,a);let o=await Promise.all([this.client.send(new Ge(t)),n?.endpoint?.()]),s=o[0],c=o[1];if(c||=C(await w(t,Ge,{...n})),!c)throw Error(`Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.`);i!==null&&i.off(`xhr.upload.progress`,a);let l=this.params.Key.split(`/`).map(e=>x(e)).join(`/`),u=x(this.params.Bucket),d=(()=>{let e=c.hostname.startsWith(`${u}.`),t=this.client.config.forcePathStyle,n=c.port?`:${c.port}`:``;return t?`${c.protocol}//${c.hostname}${n}/${u}/${l}`:e?`${c.protocol}//${c.hostname}${n}/${l}`:`${c.protocol}//${u}.${c.hostname}${n}/${l}`})();this.singleUploadResult={...s,Bucket:this.params.Bucket,Key:this.params.Key,Location:d};let f=tt(e.data);this.__notifyProgress({loaded:f,total:f,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){let e=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};e===`WHEN_SUPPORTED`&&(t.ChecksumAlgorithm=this.params.ChecksumAlgorithm||Je.CRC32),this.createMultiPartPromise=this.client.send(new Ue(t)).then(e=>(this.abortMultipartUploadCommand=new Be({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e.UploadId}),e))}return this.createMultiPartPromise}async __doConcurrentUpload(e){for await(let t of e){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(t.partNumber===1&&t.lastPart)return await this.__uploadUsingPut(t);if(!this.uploadId){let{UploadId:e}=await this.__createMultipartUpload();if(this.uploadId=e,this.abortController.signal.aborted)return}let e=tt(t.data)||0,n=this.client.config.requestHandler,r=n instanceof $e.EventEmitter?n:null,i=0,a=(n,r)=>{(Number(r.query.partNumber)||-1)===t.partNumber&&(n.total&&e&&(this.bytesUploadedSoFar+=n.loaded-i,i=n.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};r!==null&&r.on(`xhr.upload.progress`,a),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(t);let o=await this.client.send(new qe({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:t.data,PartNumber:t.partNumber}));if(r!==null&&r.off(`xhr.upload.progress`,a),this.abortController.signal.aborted)return;if(!o.ETag)throw Error(`Part ${t.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:t.partNumber,ETag:o.ETag,...o.ChecksumCRC32&&{ChecksumCRC32:o.ChecksumCRC32},...o.ChecksumCRC32C&&{ChecksumCRC32C:o.ChecksumCRC32C},...o.ChecksumSHA1&&{ChecksumSHA1:o.ChecksumSHA1},...o.ChecksumSHA256&&{ChecksumSHA256:o.ChecksumSHA256}}),r===null&&(this.bytesUploadedSoFar+=e),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){let e=wt(this.params.Body,this.partSize),t=[];for(let n=0;n{t.push(e)});this.concurrentUploaders.push(n)}if(await Promise.all(this.concurrentUploaders),t.length>=1)throw await this.markUploadAsAborted(),t[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(Error(`Upload aborted.`),{name:`AbortError`});let n;if(this.isMultiPart){let{expectedPartsCount:e,uploadedParts:t,totalBytes:r,totalBytesSource:i}=this;if(r!==void 0&&e!==void 0&&t.length!==e)throw Error(`Expected ${e} part(s) but uploaded ${t.length} part(s). +import{i as e,t}from"./compiler-runtime.js";import{n}from"./error-banner.js";import{C as r,S as i,_ as a,b as o,c as s,d as c,f as l,g as u,l as d,s as f,u as p,v as m,w as h,x as g,y as _}from"./awsClient.js";import{At as v,Pt as y,St as b,_t as x,lt as S,q as C,st as w,ut as T}from"./auth.js";import{_ as E,a as ee,g as D,h as te,i as O,m as k,n as A,o as ne,r as j,s as M,t as N}from"./tslib.es6.js";import{i as P}from"./index.browser.js";import{Lr as F}from"./index.js";var I=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},L,R,z,B,V,H,U,W,G,K=()=>{L||(L=I(),[R,z,B,V,H,U,W,G]=L)},re=class{c1=0;c2=0;constructor(){K(),this.reset()}update(e){let t=e.length,n=0,r=this.c1,i=this.c2;for(;n+8<=t;){let t=((i^e[n++])&255)<<1,a=((i>>>8^e[n++])&255)<<1,o=((i>>>16^e[n++])&255)<<1,s=((i>>>24^e[n++])&255)<<1,c=((r^e[n++])&255)<<1,l=((r>>>8^e[n++])&255)<<1,u=((r>>>16^e[n++])&255)<<1,d=((r>>>24^e[n++])&255)<<1;r=G[t]^W[a]^U[o]^H[s]^V[c]^B[l]^z[u]^R[d],i=G[t+1]^W[a+1]^U[o+1]^H[s+1]^V[c+1]^B[l+1]^z[u+1]^R[d+1]}for(;n>>8|(r&255)<<24)>>>0,r=r>>>8^R[t],i^=R[t+1],n++}this.c1=r,this.c2=i}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},ie={CrtCrc64Nvme:null},ae=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:a})=>{if(!n)return a===r.WHEN_SUPPORTED||t?i:void 0;if(e[n])return e[n]},oe=e=>e===g.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,se=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},ce=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},le=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!D(e),ue=function(){function e(){this.crc32c=new de}return e.prototype.update=function(e){ne(e)||this.crc32c.update(M(e))},e.prototype.digest=function(){return N(this,void 0,void 0,function(){return A(this,function(e){return[2,ee(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new de},e}(),de=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=j(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^fe[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),fe=O([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]),pe=()=>P,me=[g.CRC32,g.CRC32C,g.CRC64NVME,g.SHA1,g.SHA256],he=[g.SHA256,g.SHA1,g.CRC32,g.CRC32C,g.CRC64NVME],ge=(e,t)=>{let{checksumAlgorithms:n={}}=t;switch(e){case g.MD5:return n?.MD5??t.md5;case g.CRC32:return n?.CRC32??pe();case g.CRC32C:return n?.CRC32C??ue;case g.CRC64NVME:return typeof ie.CrtCrc64Nvme==`function`?n?.CRC64NVME??ie.CrtCrc64Nvme:n?.CRC64NVME??re;case g.SHA1:return n?.SHA1??t.sha1;case g.SHA256:return n?.SHA256??t.sha256;default:if(n?.[e])return n[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${me}, or provide an implementation to the client constructor checksums field.`)}},_e=(e,t)=>{let n=new e;return n.update(E(t||``)),n.digest()},ve={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},ye=(e,t)=>(n,a)=>async o=>{if(!y.isInstance(o.request)||ce(`x-amz-checksum-`,o.request.headers))return n(o);let{request:s,input:c}=o,{body:l,headers:u}=s,{base64Encoder:d,streamHasher:f}=e,{requestChecksumRequired:p,requestAlgorithmMember:m}=t,h=await e.requestChecksumCalculation(),_=m?.name,v=m?.httpHeader;_&&!c[_]&&(h===r.WHEN_SUPPORTED||p)&&(c[_]=i,v&&(u[v]=i));let b=ae(c,{requestChecksumRequired:p,requestAlgorithmMember:m?.name,requestChecksumCalculation:h}),x=l,S=u;if(b){switch(b){case g.CRC32:C(a,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case g.CRC32C:C(a,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case g.CRC64NVME:C(a,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case g.SHA1:C(a,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case g.SHA256:C(a,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let t=oe(b),n=ge(b,e);if(le(l)){let{getAwsChunkedEncodingStream:r,bodyLengthChecker:i}=e;x=r(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?k(l,e.requestStreamBufferSize,a.logger):l,{base64Encoder:d,bodyLengthChecker:i,checksumLocationName:t,checksumAlgorithmFn:n,streamHasher:f}),S={...u,"content-encoding":u[`content-encoding`]?`${u[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":u[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":t},delete S[`content-length`]}else if(!se(t,u)){let e=await _e(n,l);S={...u,[t]:d(e)}}}try{return await n({...o,request:{...s,headers:S,body:x}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},be={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},xe=(e,t)=>(n,i)=>async a=>{let o=a.input,{requestValidationModeMember:s}=t,c=await e.requestChecksumCalculation(),l=await e.responseChecksumValidation();switch(c){case r.WHEN_REQUIRED:C(i,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case r.WHEN_SUPPORTED:C(i,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(l){case h.WHEN_REQUIRED:C(i,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case h.WHEN_SUPPORTED:C(i,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return s&&!o[s]&&l===h.WHEN_SUPPORTED&&(o[s]=`ENABLED`),n(a)},Se=(e=[])=>{let t=[],n=he.length;for(let r of e){let e=he.indexOf(r);e===-1?t[n++]=r:t[e]=r}return t.filter(Boolean)},Ce=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},we=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await _e(t,e)),Te=async(e,{config:t,responseAlgorithms:n,logger:r})=>{let i=Se(n),{body:a,headers:o}=e;for(let n of i){let i=oe(n),s=o[i];if(s){let o;try{o=ge(n,t)}catch(e){if(n===g.CRC64NVME){r?.warn(`Skipping ${g.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:c}=t;if(le(a)){e.body=te({expectedChecksum:s,checksumSourceLocation:i,checksum:new o,source:a,base64Encoder:c});return}let l=await we(a,{checksumAlgorithmFn:o,base64Encoder:c});if(l===s)break;throw Error(`Checksum mismatch: expected "${l}" but received "${s}" in response header "${i}".`)}}},Ee={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},De=(e,t)=>(n,r)=>async i=>{if(!y.isInstance(i.request))return n(i);let a=i.input,o=await n(i),s=o.response,{requestValidationModeMember:c,responseAlgorithms:l}=t;if(c&&a[c]===`ENABLED`){let{clientName:t,commandName:n}=r,i=Object.keys(e.checksumAlgorithms??{}).filter(e=>{let t=oe(e);return s.headers[t]!==void 0}),a=Se([...l??[],...i]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=oe(e),n=s.headers[t];return!n||Ce(n)}))return o;await Te(s,{config:e,responseAlgorithms:a,logger:r.logger})}return o},Oe=(e,t)=>({applyToStack:n=>{n.add(ye(e,t),ve),n.addRelativeTo(xe(e,t),be),n.addRelativeTo(De(e,t),Ee)}}),ke=`content-length`,Ae=`x-amz-decoded-content-length`;function je(){return(e,t)=>async n=>{let{request:r}=n;if(y.isInstance(r)&&!(ke in r.headers)&&!(Ae in r.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof t?.logger?.warn==`function`&&!(t.logger instanceof x)?t.logger.warn(e):console.warn(e)}return e({...n})}}var Me={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},Ne=e=>({applyToStack:e=>{e.add(je(),Me)}});function Pe(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}var Fe={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0},Ie=e=>({applyToStack:t=>{t.add(Pe(e),Fe)}});function Le(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let i;typeof n==`string`?ze(n,e)?i=e.base64Decoder(n):(i=e.utf8Decoder(n),r[t.target]=e.base64Encoder(i)):(i=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(i));let a=new e.md5;a.update(i),r[t.hash]=e.base64Encoder(await a.digest())}}return t({...n,input:r})}}var Re={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},q=e=>({applyToStack:t=>{t.add(Le(e),Re)}});function ze(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}var Be=class extends b.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),o(n)]}).s(`AmazonS3`,`AbortMultipartUpload`,{}).n(`S3Client`,`AbortMultipartUploadCommand`).sc(s).build(){},Ve=class extends b.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),o(n),q(n)]}).s(`AmazonS3`,`CompleteMultipartUpload`,{}).n(`S3Client`,`CompleteMultipartUploadCommand`).sc(d).build(){},He=class extends b.classBuilder().ep({..._,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),o(n),Ie(n)]}).s(`AmazonS3`,`CreateBucket`,{}).n(`S3Client`,`CreateBucketCommand`).sc(p).build(){},Ue=class extends b.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),o(n),q(n)]}).s(`AmazonS3`,`CreateMultipartUpload`,{}).n(`S3Client`,`CreateMultipartUploadCommand`).sc(c).build(){},We=class extends b.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),o(n)]}).s(`AmazonS3`,`DeleteObject`,{}).n(`S3Client`,`DeleteObjectCommand`).sc(l).build(){},Ge=class extends b.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),Oe(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),Ne(n),o(n),q(n)]}).s(`AmazonS3`,`PutObject`,{}).n(`S3Client`,`PutObjectCommand`).sc(u).build(){},Ke=class extends b.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),Oe(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),o(n)]}).s(`AmazonS3`,`PutObjectTagging`,{}).n(`S3Client`,`PutObjectTaggingCommand`).sc(a).build(){},qe=class extends b.classBuilder().ep({..._,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),Oe(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),o(n),q(n)]}).s(`AmazonS3`,`UploadPart`,{}).n(`S3Client`,`UploadPartCommand`).sc(m).build(){},Je={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,MD5:`MD5`,SHA1:`SHA1`,SHA256:`SHA256`,SHA512:`SHA512`,XXHASH128:`XXHASH128`,XXHASH3:`XXHASH3`,XXHASH64:`XXHASH64`},Ye=e(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),Ze=e((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),J=e((e=>{var t=Xe(),n=Ze(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return p(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return m(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=h(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:g(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=v(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:g(e.length)|0,n=o(t),r=0;r=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function _(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return V(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return W(e).length;default:if(i)return r?-1:V(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=v;function y(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return M(this,t,n);case`utf8`:case`utf-8`:return O(this,t,n);case`ascii`:return ne(this,t,n);case`latin1`:case`binary`:return j(this,t,n);case`base64`:return te(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return N(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;tn&&(t+=` ... `),``},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,re(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:S(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function S(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;lo&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;fi&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return C(this,e,t,n);case`utf8`:case`utf-8`:return w(this,e,t,n);case`ascii`:return T(this,e,t,n);case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return ee(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return D(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function te(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return A(r)}var k=4096;function A(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);for(var n=``,r=0;rr)&&(n=r);for(var i=``,a=t;an&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tn)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!1,52,8)};function F(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;F(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o>>=0,n>>>=0,!r){var i=2**(8*n)-1;F(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function I(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function L(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)};function R(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function H(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function W(e){return t.toByteArray(B(e))}function G(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function re(e){return e!==e}var ie=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),Qe=t(),$e=Ye(),Y=J(),et={lstatSync:()=>{},isFileReadStream(e){return!1},runtime:`browser`},tt=e=>{if(e==null)return 0;if(typeof e==`string`)return Y.Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(et.isFileReadStream(e))try{return et.lstatSync(e.path).size}catch{return}},X;(function(e){e.EMPTY_INPUT=`a null or undefined Body`,e.CONTENT_LENGTH=`the ContentLength property of the params set by the caller`,e.STRING_LENGTH=`the encoded byte length of the Body string`,e.TYPED_ARRAY=`the byteLength of a typed byte array such as Uint8Array`,e.LENGTH=`the value of Body.length`,e.SIZE=`the value of Body.size`,e.START_END_DIFF=`the numeric difference between Body.start and Body.end`,e.LSTAT=`the size of the file given by Body.path on disk as reported by lstatSync`})(X||={});var nt=(e,t)=>{if(t!=null)return X.CONTENT_LENGTH;if(e==null)return X.EMPTY_INPUT;if(typeof e==`string`)return X.STRING_LENGTH;if(typeof e.byteLength==`number`)return X.TYPED_ARRAY;if(typeof e.length==`number`)return X.LENGTH;if(typeof e.size==`number`)return X.SIZE;if(typeof e.start==`number`&&typeof e.end==`number`)return X.START_END_DIFF;if(et.isFileReadStream(e))try{return et.lstatSync(e.path).size,X.LSTAT}catch{return}},Z=e(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),rt=e(((e,t)=>{t.exports=Ye().EventEmitter})),it=e(((e,t)=>{t.exports={}})),at=e(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return ei.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),ot=e(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Q=e(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),st=e(((e,t)=>{var n=Q().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),ct=e(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),lt=e(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){z(t,e)}}var r;T.WritableState=C;var i={deprecate:ct()},a=rt(),o=J().Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=ot(),d=st().getHighWaterMark,f=Q().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;Z()(T,a);function S(){}function C(e,t,i){r||=$(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){ne(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=$();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function ee(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||ee(this,r,e,n))&&(r.pendingcb++,i=te(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&N(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function D(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function te(e,t,n,r,i,a){if(!n){var o=D(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=ht(),i=lt();Z()(c,r);for(var a=n(i.prototype),o=0;o{var n=J(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),dt=e((e=>{var t=ut().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),ft=e(((e,t)=>{var n=Q().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),pt=e(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=ft(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),mt=e(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),ht=e(((e,t)=>{t.exports=E;var n;E.ReadableState=T,Ye().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=rt(),a=J().Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=it(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=at(),f=ot(),p=st().getHighWaterMark,m=Q().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;Z()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=$(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=dt().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=$(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),ee(this,e,t,!1,r)},E.prototype.unshift=function(e){return ee(this,e,null,!0,!1)};function ee(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,ne(e,o);else{var c;if(i||(c=te(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):D(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?D(e,o,t,!1):N(e,o)):D(e,o,t,!1);else r||(o.reading=!1,N(e,o))}return!o.ended&&(o.length=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function A(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=k(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?H(this):j(this),null;if(e=A(e,t),e===0&&t.ended)return t.length===0&&H(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e0?V(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&H(this)),i!==null&&this.emit(`data`,i),i};function ne(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}function j(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(M,e))}function M(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function N(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length1&&W(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function F(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,B(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?j(this):r.reading||process.nextTick(L,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(I,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(I,this),t};function I(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function L(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,R(this,e)),e.paused=!1,this};function R(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(z,e,t))}function z(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),B(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function B(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function H(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(U,t,e))}function U(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=mt()),x(E,e,t)});function W(e,t){for(var n=0,r=e.length;n{t.exports=l;var n=Q().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=$();Z()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{t.exports=r;var n=gt();Z()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),vt=e(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Q().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=ft()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),yt=e(((e,t)=>{t.exports=r;var n=Ye().EventEmitter;Z()(r,n),r.Readable=ht(),r.Writable=lt(),r.Duplex=$(),r.Transform=gt(),r.PassThrough=_t(),r.finished=ft(),r.pipeline=vt(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}}))();async function*bt(e,t,n){let r=1,i={chunks:[],length:0};for await(let a of n(e))for(i.chunks.push(a),i.length+=a.byteLength;i.length>t;){let e=i.chunks.length>1?Y.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:e.subarray(0,t)},i.chunks=[e.subarray(t)],i.length=i.chunks[0].byteLength,r+=1}yield{partNumber:r,data:i.chunks.length===1?i.chunks[0]:Y.Buffer.concat(i.chunks),lastPart:!0}}async function*xt(e,t){let n=1,r=0,i=t;for(;i{if(e instanceof Uint8Array)return xt(e,t);if(e instanceof yt.Readable)return bt(e,t,St);if(e instanceof String||typeof e==`string`)return xt(Y.Buffer.from(e),t);if(typeof e.stream==`function`)return bt(e.stream(),t,Ct);if(e instanceof ReadableStream)return bt(e,t,Ct);throw Error(`Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.`)},Tt=class e extends $e.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(t){if(super(),this.queueSize=t.queueSize||this.queueSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,!this.params)throw Error(`InputError: Upload requires params to be passed to upload.`);this.totalBytes=this.params.ContentLength??tt(this.params.Body),this.totalBytesSource=nt(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=t.abortController??new AbortController,this.partSize=t.partSize||Math.max(e.MIN_PART_SIZE,Math.ceil((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}async abort(){this.abortController.abort()}async done(){if(this.sent)throw Error(`@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.`);return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(e,t){return this.uploadEvent=e,super.on(e,t)}async __uploadUsingPut(e){this.isMultiPart=!1;let t={...this.params,Body:e.data},n=this.client.config,r=n.requestHandler,i=r instanceof $e.EventEmitter?r:null,a=t=>{this.bytesUploadedSoFar=t.loaded,this.totalBytes=t.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:e.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};i!==null&&i.on(`xhr.upload.progress`,a);let o=await Promise.all([this.client.send(new Ge(t)),n?.endpoint?.()]),s=o[0],c=o[1];if(c||=v(await S(t,Ge,{...n})),!c)throw Error(`Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.`);i!==null&&i.off(`xhr.upload.progress`,a);let l=this.params.Key.split(`/`).map(e=>w(e)).join(`/`),u=w(this.params.Bucket),d=(()=>{let e=c.hostname.startsWith(`${u}.`),t=this.client.config.forcePathStyle,n=c.port?`:${c.port}`:``;return t?`${c.protocol}//${c.hostname}${n}/${u}/${l}`:e?`${c.protocol}//${c.hostname}${n}/${l}`:`${c.protocol}//${u}.${c.hostname}${n}/${l}`})();this.singleUploadResult={...s,Bucket:this.params.Bucket,Key:this.params.Key,Location:d};let f=tt(e.data);this.__notifyProgress({loaded:f,total:f,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){let e=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};e===`WHEN_SUPPORTED`&&(t.ChecksumAlgorithm=this.params.ChecksumAlgorithm||Je.CRC32),this.createMultiPartPromise=this.client.send(new Ue(t)).then(e=>(this.abortMultipartUploadCommand=new Be({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e.UploadId}),e))}return this.createMultiPartPromise}async __doConcurrentUpload(e){for await(let t of e){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(t.partNumber===1&&t.lastPart)return await this.__uploadUsingPut(t);if(!this.uploadId){let{UploadId:e}=await this.__createMultipartUpload();if(this.uploadId=e,this.abortController.signal.aborted)return}let e=tt(t.data)||0,n=this.client.config.requestHandler,r=n instanceof $e.EventEmitter?n:null,i=0,a=(n,r)=>{(Number(r.query.partNumber)||-1)===t.partNumber&&(n.total&&e&&(this.bytesUploadedSoFar+=n.loaded-i,i=n.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};r!==null&&r.on(`xhr.upload.progress`,a),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(t);let o=await this.client.send(new qe({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:t.data,PartNumber:t.partNumber}));if(r!==null&&r.off(`xhr.upload.progress`,a),this.abortController.signal.aborted)return;if(!o.ETag)throw Error(`Part ${t.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:t.partNumber,ETag:o.ETag,...o.ChecksumCRC32&&{ChecksumCRC32:o.ChecksumCRC32},...o.ChecksumCRC32C&&{ChecksumCRC32C:o.ChecksumCRC32C},...o.ChecksumSHA1&&{ChecksumSHA1:o.ChecksumSHA1},...o.ChecksumSHA256&&{ChecksumSHA256:o.ChecksumSHA256}}),r===null&&(this.bytesUploadedSoFar+=e),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){let e=wt(this.params.Body,this.partSize),t=[];for(let n=0;n{t.push(e)});this.concurrentUploaders.push(n)}if(await Promise.all(this.concurrentUploaders),t.length>=1)throw await this.markUploadAsAborted(),t[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(Error(`Upload aborted.`),{name:`AbortError`});let n;if(this.isMultiPart){let{expectedPartsCount:e,uploadedParts:t,totalBytes:r,totalBytesSource:i}=this;if(r!==void 0&&e!==void 0&&t.length!==e)throw Error(`Expected ${e} part(s) but uploaded ${t.length} part(s). The expected part count is based on the byte-count of the input.params.Body, which was read from ${i} and is ${r}. If this is not correct, provide an override value by setting a number diff --git a/spinifex/services/spinifexui/frontend/dist/assets/select.js b/spinifex/services/spinifexui/frontend/dist/assets/select.js index 7de3a18c3..7893c82c4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/select.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/select.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,f as o,i as s,l as c,n as l,o as u,u as d}from"./dist.js";import{Rt as f}from"./auth.js";import{t as p}from"./check.js";import{t as m}from"./chevron-down.js";import{_ as h,b as g,o as _,r as v,s as y}from"./button.js";import{S as b,_ as x,b as S,f as ee,g as te,l as ne,n as C,o as w,t as T,u as E,v as D,x as O,y as k}from"./createBaseUIEventDetails.js";import{$n as A,An as j,Bn as M,Cn as re,Dn as N,En as ie,Fn as P,Gn as F,Gt as ae,Hn as I,Ht as L,In as oe,Jn as R,Jt as z,Ln as B,Nr as V,On as H,Pn as U,Qn as W,Qt as G,Sn as se,Sr as K,Tn as q,Ut as ce,Vn as le,Wt as ue,Xn as de,Yn as fe,Yt as pe,Zn as me,Zt as he,_n as J,_r as ge,an as _e,ar as ve,bn as ye,br as be,cr as xe,dr as Se,er as Ce,fr as we,gn as Te,gr as Ee,hn as De,hr as Oe,ir as ke,kn as Ae,lr as je,mn as Me,mr as Y,nr as Ne,or as Pe,pr as Fe,qn as Ie,rr as Le,sr as Re,tr as ze,ur as Be,vn as X,vr as Ve,wn as He,xn as Ue,xr as We,yn as Ge,yr as Ke,zn as qe}from"./index.js";import{n as Je,r as Ye,t as Xe}from"./useCompositeListItem.js";var Ze=V(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Z=e(),Q=t(n()),Qe=Q.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:u,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function $e(){return Q.useContext(Qe)}function et(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:c=0,reason:l=te}=t,u=`rootStore`in e?e.rootStore:e,d=u.context.dataRef,f=Q.useRef(void 0),p=Ie(),m=R(),h=Q.useMemo(()=>{function e(e,t,n,r){let i=T(l,t,n);e&&r===`touch`&&c>0?m.start(c,()=>{u.setOpen(!0,i)}):u.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,i=u.select(`domReferenceElement`)!==t;return e&&i||!e||!a?!0:r&&s?!n(r.type):!1}return{onPointerDown(e){f.current=e.pointerType},onMouseDown(n){let i=f.current,a=n.nativeEvent,s=u.select(`open`);if(n.button!==0||r===`click`||Pe(i,!0)&&o)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),l=S(a);if(we(l)){e(c,a,l,i);return}let d=n.currentTarget;p.request(()=>{e(c,a,d,i)})},onClick(n){if(r===`mousedown-only`)return;let i=f.current;if(r===`mousedown`&&i){f.current=void 0;return}Pe(i,!0)&&o||e(t(u.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){f.current=void 0}}},[d,r,o,l,u,s,a,p,m,c]);return Q.useMemo(()=>n?{reference:h}:i,[n,h])}var tt=`Escape`;function nt(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function rt(e,t){return nt(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function it(e,t,n){return nt(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function at(e,t,n){return nt(t,n?e===Y:e===Oe,e===Fe)}function ot(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===tt:nt(t,n?e===Oe:e===Y,e===Ee)}function st(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:v=`vertical`,parentOrientation:b,cols:x=1,id:ee,resetOnPointerLeave:te=!0,externalTree:ne}=t,C=`rootStore`in e?e.rootStore:e,j=C.useState(`open`),M=C.useState(`floatingElement`),N=C.useState(`domReferenceElement`),P=C.context.dataRef,F=Be(M),ae=Se(N),I=Ae(F),L=se(),oe=re(ne),R=Q.useRef(f),z=Q.useRef(o??-1),B=Q.useRef(null),V=Q.useRef(!0),H=y(e=>{i(z.current===-1?null:z.current,e)}),U=Q.useRef(H),G=Q.useRef(!!M),K=Q.useRef(j),q=Q.useRef(!1),ce=Q.useRef(!1),le=Q.useRef(null),ue=Ae(h),pe=Ae(j),he=Ae(o),J=Ae(te),ge=Ie(),_e=Ie(),ve=y(()=>{function e(e){d?oe?.events.emit(`virtualfocus`,e):le.current=ie(e,{sync:q.current,preventScroll:!0})}let t=n.current[z.current],r=ce.current;t&&e(t),(q.current?e=>e():e=>ge.request(e))(()=>{let i=n.current[z.current]||t;i&&(t||e(i),De&&(r||!V.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});_(()=>{P.current.orientation=v},[P,v]),_(()=>{a&&(j&&M?(z.current=o??-1,R.current&&o!=null&&(ce.current=!0,H())):G.current&&(z.current=-1,U.current()))},[a,j,M,o,H]),_(()=>{if(a){if(!j){q.current=!1;return}if(M)if(r==null){if(q.current=!1,he.current!=null)return;if(G.current&&(z.current=-1,ve()),(!K.current||!G.current)&&R.current&&(B.current!=null||R.current===!0&&B.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>_e.request(e):queueMicrotask)(t),e+=1):(z.current=B.current==null||it(B.current,v,u)||l?ze(n):Ce(n),B.current=null,H())};t()}}else Le(n.current,r)||(z.current=r,ve(),ce.current=!1)}},[a,j,M,r,he,l,n,v,u,H,ve,_e]),_(()=>{if(!a||M||!oe||d||!G.current)return;let e=oe.nodesRef.current,t=e.find(e=>e.id===L)?.context?.elements.floating,n=D(O(M)),r=e.some(e=>e.context&&k(e.context.elements.floating,n));t&&!r&&V.current&&t.focus({preventScroll:!0})},[a,M,oe,L,d]),_(()=>{U.current=H,K.current=j,G.current=!!M}),_(()=>{j||(B.current=null,R.current=f)},[j,f]);let ye=r!=null,be=y(e=>{if(!pe.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(z.current!==t||r!==t)&&(z.current=t,H(e))}),we=y(()=>b??oe?.nodesRef.current.find(e=>e.id===L)?.context?.dataRef?.current.orientation),Te=y(()=>ze(n,ue.current)),Ee=y(e=>{if(V.current=!1,q.current=!0,e.which===229||!pe.current&&e.currentTarget===I.current)return;if(l&&ot(e.key,v,u,x)){rt(e.key,we())||je(e),C.setOpen(!1,T(E,e.nativeEvent)),g(N)&&(d?oe?.events.emit(`virtualfocus`,N):N.focus());return}let t=z.current,r=ze(n,h),i=Ce(n,h);if(ae||(e.key===`Home`&&(je(e),z.current=r,H(e)),e.key===`End`&&(je(e),z.current=i,H(e))),x>1){let t=Array.from({length:n.current.length},()=>({width:1,height:1})),a=fe(t,x,!1),o=a.findIndex(e=>e!=null&&!ke(n.current,e,h)),s=a.reduce((e,t,r)=>t!=null&&!ke(n.current,t,h)?r:e,-1),l=a[A(a.map(e=>e==null?null:n.current[e]),{event:e,orientation:v,loopFocus:c,rtl:u,cols:x,disabledIndices:W([...(typeof h==`function`?null:h)||n.current.map((e,t)=>ke(n.current,t,h)?t:void 0),void 0],a),minIndex:o,maxIndex:s,prevIndex:me(z.current>i?r:z.current,t,a,x,e.key===`ArrowDown`?`bl`:e.key===(u?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(l!=null&&(z.current=l,H(e)),v===`both`)return}if(rt(e.key,v)){if(je(e),j&&!d&&D(e.currentTarget.ownerDocument)===e.currentTarget){z.current=it(e.key,v,u)?r:i,H(e);return}it(e.key,v,u)?c?t>=i?s&&t!==n.current.length?z.current=-1:(q.current=!1,z.current=r):z.current=de(n.current,{startingIndex:t,disabledIndices:h}):z.current=Math.min(i,de(n.current,{startingIndex:t,disabledIndices:h})):c?t<=r?s&&t!==-1?z.current=n.current.length:(q.current=!1,z.current=i):z.current=de(n.current,{startingIndex:t,decrement:!0,disabledIndices:h}):z.current=Math.max(r,de(n.current,{startingIndex:t,decrement:!0,disabledIndices:h})),Le(n.current,z.current)&&(z.current=-1),H(e)}}),De=Q.useMemo(()=>({onFocus(e){q.current=!0,be(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){q.current=!0,ce.current=!1,p&&be(e)},onPointerLeave(e){if(!pe.current||!V.current||e.pointerType===`touch`)return;q.current=!0;let t=e.relatedTarget;if(!(!p||n.current.includes(t))&&J.current&&(le.current?.(),le.current=null,z.current=-1,H(e),!d)){let e=I.current,t=D(O(e));e&&k(e,t)&&e.focus({preventScroll:!0})}}}),[be,pe,I,p,n,H,J,d]),Oe=Q.useMemo(()=>d&&j&&ye&&{"aria-activedescendant":`${ee}-${r}`},[d,j,ye,ee,r]),Me=Q.useMemo(()=>({"aria-orientation":v===`both`?void 0:v,...ae?{}:Oe,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&j&&!d){let t=S(e.nativeEvent);if(t&&!k(I.current,t))return;je(e),C.setOpen(!1,T(w,e.nativeEvent)),g(N)&&N.focus();return}Ee(e)},onPointerMove(){V.current=!0}}),[Oe,Ee,I,v,ae,C,j,d,N]),Y=Q.useMemo(()=>{function e(e){C.setOpen(!0,T(E,e.nativeEvent,e.currentTarget))}function t(e){f===`auto`&&Re(e.nativeEvent)&&(R.current=!d)}function n(e){R.current=f,f===`auto`&&xe(e.nativeEvent)&&(R.current=!0)}return{onKeyDown(t){let n=C.select(`open`);V.current=!1;let r=t.key.startsWith(`Arrow`),i=at(t.key,we(),u),a=rt(t.key,v),o=(l?i:a)||t.key===`Enter`||t.key.trim()===``;if(d&&n)return Ee(t);if(!(!n&&!m&&r)){if(o){let e=rt(t.key,we());B.current=l&&e?null:t.key}if(l){i&&(je(t),n?(z.current=Te(),H(t)):e(t));return}a&&(he.current!=null&&(z.current=he.current),je(t),!n&&m?e(t):Ee(t),n&&H(t))}},onFocus(e){C.select(`open`)&&!d&&(z.current=-1,H(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[Ee,f,Te,l,H,C,m,v,we,u,he,d]),Ne=Q.useMemo(()=>({...Oe,...Y}),[Oe,Y]);return Q.useMemo(()=>a?{reference:Ne,floating:Me,item:De,trigger:Y}:{},[a,Ne,Me,Y,De])}function ct(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,onTyping:o,enabled:s=!0,resetMs:c=750,selectedIndex:l=null}=t,u=`rootStore`in e?e.rootStore:e,d=u.useState(`open`),f=R(),p=Q.useRef(``),m=Q.useRef(l??i??-1),h=Q.useRef(null),g=y(e=>{function t(e){let t=r?.current[e];return!t||Ne(t)}function s(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n0&&e.key===` `&&(je(e),o?.(!0)),p.current.length>0&&p.current[0]!==` `&&s(u,p.current)===-1&&e.key!==` `&&o?.(!1),u==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;d&&e.key!==` `&&(je(e),o?.(!0));let g=p.current===``;g&&(m.current=l??i??-1),u.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&p.current===e.key&&(p.current=``,m.current=h.current),p.current+=e.key,f.start(c,()=>{p.current=``,m.current=h.current,o?.(!1)});let _=((g?l??i??-1:m.current)??0)+1,v=s(u,p.current,_);v===-1?e.key!==` `&&(p.current=``,o?.(!1)):(a?.(v),h.current=v)}),v=y(e=>{let t=e.relatedTarget,n=u.select(`domReferenceElement`),r=u.select(`floatingElement`);k(n,t)||k(r,t)||(f.clear(),p.current=``,m.current=h.current,o?.(!1))});_(()=>{!d&&l!==null||(f.clear(),h.current=null,p.current!==``&&(p.current=``))},[d,l,f]),_(()=>{d&&p.current===``&&(m.current=l??i??-1)},[d,l,i]);let b=Q.useMemo(()=>({onKeyDown:g,onBlur:v}),[g,v]);return Q.useMemo(()=>s?{reference:b,floating:b}:{},[s,b])}function lt(e){let t=Q.useRef(``),n=Q.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Q.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function ut(e,t){let n=Q.useRef(e),r=y(t);_(()=>{n.current!==e&&r(n.current)},[e,r]),_(()=>{n.current=e},[e])}function dt(e,t){let{onClick:n,onPointerDown:r}=lt(y((n,r)=>{(typeof e==`function`?e():e)||t(r||(ge?`touch`:``))}));return Q.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function ft(e){let[t,n]=Q.useState(null),r=dt(e,n);return ut(e,t=>{t&&!e&&n(null)}),Q.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function pt(e){let[t,n]=Q.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var mt=Q.createContext(null),ht=Q.createContext(null);function gt(){let e=Q.useContext(mt);if(e===null)throw Error(d(60));return e}function _t(){let e=Q.useContext(ht);if(e===null)throw Error(d(61));return e}var vt=(e,t)=>Object.is(e,t);function yt(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function bt(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:yt(t,e,n))}function xt(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:yt(e,t,n))}function St(e,t,n){return e.filter(e=>!yt(t,e,n))}function Ct(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function wt(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function Tt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(wt(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function Et(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 Ct(e)}function Dt(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?Ct(e.value):Ct(e)}function Ot(e,t,n){function r(){return Et(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)){let n=t,i=wt(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function kt(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Z.jsx)(Q.Fragment,{children:Ot(r,t,n)},i)),e),[])}var $={id:X(e=>e.id),labelId:X(e=>e.labelId),modal:X(e=>e.modal),multiple:X(e=>e.multiple),items:X(e=>e.items),itemToStringLabel:X(e=>e.itemToStringLabel),itemToStringValue:X(e=>e.itemToStringValue),isItemEqualToValue:X(e=>e.isItemEqualToValue),value:X(e=>e.value),hasSelectedValue:X(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Dt(t,r)!==``}),hasNullItemLabel:X((e,t)=>t?Tt(e.items):!1),open:X(e=>e.open),mounted:X(e=>e.mounted),forceMount:X(e=>e.forceMount),transitionStatus:X(e=>e.transitionStatus),openMethod:X(e=>e.openMethod),activeIndex:X(e=>e.activeIndex),selectedIndex:X(e=>e.selectedIndex),isActive:X((e,t)=>e.activeIndex===t),isSelected:X((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>yt(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:yt(n,i,r)}),isSelectedByFocus:X((e,t)=>e.selectedIndex===t),popupProps:X(e=>e.popupProps),triggerProps:X(e=>e.triggerProps),triggerElement:X(e=>e.triggerElement),positionerElement:X(e=>e.positionerElement),listElement:X(e=>e.listElement),popupSide:X(e=>e.popupSide),scrollUpArrowVisible:X(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:X(e=>e.scrollDownArrowVisible),hasScrollArrows:X(e=>e.hasScrollArrows)};function At(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function jt(e,t){return Math.max(0,e-t)}function Mt(e,t){if(t<=0)return 0;let n=At(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function Nt(e){let{id:t,value:n,defaultValue:r=null,onValueChange:l,open:u,defaultOpen:d=!1,onOpenChange:f,name:p,form:m,autoComplete:h,disabled:g=!1,readOnly:v=!1,required:b=!1,modal:x=!0,actionsRef:S,inputRef:te,onOpenChangeComplete:ne,items:C,multiple:w=!1,itemToStringLabel:E,itemToStringValue:D,isItemEqualToValue:O=vt,highlightItemOnHover:k=!0,children:A}=e,{clearErrors:j}=$e(),{setDirty:re,setTouched:ie,setFocused:P,shouldValidateOnChange:F,validityData:ae,setFilled:L,name:oe,disabled:R,validation:z,validationMode:B}=We(),V=Ke({id:t}),U=R||g,W=oe??p,[G,se]=M({controlled:n,default:w?r??s:r,name:`Select`,state:`value`}),[K,q]=M({controlled:u,default:d,name:`Select`,state:`open`}),ce=Q.useRef([]),ue=Q.useRef([]),de=Q.useRef(null),fe=Q.useRef(null),me=Q.useRef(0),he=Q.useRef(null),ge=Q.useRef([]),_e=Q.useRef(!1),ve=Q.useRef(!1),be=Q.useRef(null),xe=Q.useRef(null),Se=Q.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),Ce=Q.useRef(!1),{mounted:we,setMounted:Ee,transitionStatus:Oe}=le(K),{openMethod:ke,triggerProps:je}=ft(K),Y=c(()=>new Te({id:V,labelId:void 0,modal:x,multiple:w,itemToStringLabel:E,itemToStringValue:D,isItemEqualToValue:O,value:G,open:K,mounted:we,transitionStatus:Oe,items:C,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,Ne=J(Y,$.activeIndex),Pe=J(Y,$.selectedIndex),Fe=J(Y,$.triggerElement),Ie=J(Y,$.positionerElement),Le=pt(ke),Re=ke??Le,ze=Q.useMemo(()=>w&&Array.isArray(G)&&G.length===0?``:Dt(G,D),[w,G,D]),Be=Q.useMemo(()=>w&&Array.isArray(G)?G.map(e=>Dt(e,D)):Dt(G,D),[w,G,D]);qe(Ae(Y.state.triggerElement),V,G,y(()=>Be));let X=Q.useRef(G),Ve=w?Array.isArray(G)&&G.length>0:G!=null;_(()=>{G!==X.current&&Y.set(`forceMount`,!0)},[Y,G]),_(()=>{L(Ve)},[Ve,L]),_(function(){let e=ge.current,t;if(w){let n=Array.isArray(G)?G:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=xt(e,r,O);t=i===-1?null:i}}else{let n=xt(e,G,O);t=n===-1?null:n}t===null&&(xe.current=null),!K&&Y.set(`selectedIndex`,t)},[Ve,w,K,G,ge,O,Y,xe]),ut(G,()=>{j(W),re(G!==ae.initialValue),F()?z.commit(G):z.commit(G,!0)});let He=y((e,t)=>{if(f?.(e,t),!t.isCanceled&&(q(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(ie(!0),P(!1),B===`onBlur`&&z.commit(G)),!e&&Y.state.activeIndex!==null)){let e=ce.current[Y.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Ue=y(()=>{Ee(!1),Y.update({activeIndex:null,openMethod:null}),ne?.(!1)});I({enabled:!S,open:K,ref:de,onComplete(){K||Ue()}}),Q.useImperativeHandle(S,()=>({unmount:Ue}),[Ue]);let Ge=y((e,t)=>{l?.(e,t),!t.isCanceled&&se(e)}),Je=y(()=>{let e=Y.state.listElement||de.current;if(!e)return;let t=jt(e.scrollHeight,e.clientHeight),n=Mt(e.scrollTop,t),r=n>0,i=n{let e=o(tt.reference,Qe.reference,Ze.reference,Xe.reference,je);return V&&(e.id=V),e},[Xe.reference,tt.reference,Qe.reference,Ze.reference,je,V]),rt=Q.useMemo(()=>o(De,tt.floating,Qe.floating,Ze.floating),[tt.floating,Qe.floating,Ze.floating]),it=Qe.item??i;pe(()=>{Y.update({popupProps:rt,triggerProps:nt})}),_(()=>{Y.update({id:V,modal:x,multiple:w,value:G,open:K,mounted:we,transitionStatus:Oe,popupProps:rt,triggerProps:nt,items:C,itemToStringLabel:E,itemToStringValue:D,isItemEqualToValue:O,openMethod:Re})},[Y,V,x,w,G,K,we,Oe,rt,nt,C,E,D,O,Re]);let at=Q.useMemo(()=>({store:Y,name:W,required:b,disabled:U,readOnly:v,multiple:w,highlightItemOnHover:k,setValue:Ge,setOpen:He,listRef:ce,popupRef:de,scrollHandlerRef:fe,handleScrollArrowVisibility:Je,scrollArrowsMountedCountRef:me,itemProps:it,events:Ye.context.events,valueRef:he,valuesRef:ge,labelsRef:ue,typingRef:_e,selectionRef:Se,firstItemTextRef:be,selectedItemTextRef:xe,validation:z,onOpenChangeComplete:ne,keyboardActiveRef:ve,alignItemWithTriggerActiveRef:Ce,initialValueRef:X}),[Y,W,b,U,v,w,k,Ge,He,it,Ye.context.events,z,ne,Je]),ot=a(te,z.inputRef),lt=w&&Array.isArray(G)&&G.length>0,dt=w?void 0:W,gt=Q.useMemo(()=>!w||!Array.isArray(G)||!W?null:G.map(e=>{let t=Dt(e,D);return(0,Z.jsx)(`input`,{type:`hidden`,form:m,name:W,value:t},t)}),[w,G,m,W,D]);return(0,Z.jsx)(mt.Provider,{value:at,children:(0,Z.jsxs)(ht.Provider,{value:Ye,children:[A,(0,Z.jsx)(`input`,{...z.getInputValidationProps({onFocus(){Y.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||U||v){e.preventBaseUIHandler?.();return}let t=e.currentTarget.value,n=T(ee,e.nativeEvent);function r(){if(w)return;let e=ge.current.find(e=>Dt(e,D).toLowerCase()===t.toLowerCase()||Et(e,E).toLowerCase()===t.toLowerCase());e!=null&&(re(e!==ae.initialValue),Ge(e,n),F()&&z.commit(e))}Y.set(`forceMount`,!0),queueMicrotask(r)}}),id:V&&dt==null?`${V}-hidden-input`:void 0,form:m,name:dt,autoComplete:h,value:ze,disabled:U,required:b&&!lt,readOnly:v,ref:ot,style:W?H:N,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),gt]})})}function Pt(e,t){return e??t}function Ft(e){let t=e.getBoundingClientRect(),n=h(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var It=2,Lt=400,Rt={...P,...K,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},zt=Q.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:s=!1,nativeButton:c=!0,style:u,...d}=e,{setTouched:f,setFocused:p,validationMode:m,state:h,disabled:g}=We(),{labelId:_}=be(),{store:b,setOpen:x,selectionRef:S,validation:te,readOnly:ne,required:w,alignItemWithTriggerActiveRef:E,disabled:D,keyboardActiveRef:A}=gt(),j=g||D||s,M=J(b,$.open),re=J(b,$.mounted),N=J(b,$.value),ie=J(b,$.triggerProps),P=J(b,$.positionerElement),F=J(b,$.listElement),ae=J(b,$.popupSide),I=J(b,$.id),L=J(b,$.labelId),oe=J(b,$.hasSelectedValue),z=re&&P?ae:null,B=i??I,V=Pt(_,L);Ke({id:B});let H=Ae(P),U=Q.useRef(null),{getButtonProps:W,buttonRef:G}=v({disabled:j,native:c}),se=a(t,U,G,y(e=>{b.set(`triggerElement`,e)})),K=R(),q=R(),ce=R();Q.useEffect(()=>{if(M)return ce.start(Lt,()=>{S.current.allowUnselectedMouseUp=!0,S.current.allowSelectedMouseUp=!0}),()=>{ce.clear()};S.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},q.clear()},[M,S,q,ce]);let le=o(ie,{id:B,role:`combobox`,"aria-expanded":M?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":M?F?.id??Be(P)?.id:void 0,"aria-labelledby":V,"aria-readonly":ne||void 0,"aria-required":w||void 0,tabIndex:j?-1:0,ref:se,onFocus(e){p(!0),M&&E.current&&x(!1,T(ee,e.nativeEvent)),K.start(0,()=>{b.set(`forceMount`,!0)})},onBlur(e){k(P,e.relatedTarget)||(f(!0),p(!1),m===`onBlur`&&te.commit(N))},onPointerMove(){A.current=!1},onKeyDown(){A.current=!0},onMouseDown(e){if(M)return;let t=O(e.currentTarget);function n(e){if(!U.current)return;let t=e.target;if(k(U.current,t)||k(H.current,t)||t===U.current)return;let n=Ft(U.current);e.clientX>=n.left-It&&e.clientX<=n.right+It&&e.clientY>=n.top-It&&e.clientY<=n.bottom+It||x(!1,T(C,e))}q.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},te.getValidationProps,d,W);le.role=`combobox`;let ue={...h,open:M,disabled:j,value:N,readOnly:ne,popupSide:z,placeholder:!oe};return l(`button`,e,{ref:[t,U],state:ue,stateAttributesMapping:Rt,props:le})}),Bt={value:()=>null},Vt=Q.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:u}=gt(),d=J(c,$.value),f=J(c,$.items),p=J(c,$.itemToStringLabel),m=J(c,$.hasSelectedValue),h=!m&&a!=null&&i==null,g=J(c,$.hasNullItemLabel,h),_={value:d,placeholder:!m},v=null;return v=typeof i==`function`?i(d):i??(!m&&a!=null&&!g?a:Array.isArray(d)?kt(d,f,p):Ot(d,f,p)),l(`span`,e,{state:_,ref:[t,u],props:[{children:v},s],stateAttributesMapping:Bt})}),Ht=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=gt();return l(`span`,e,{state:{open:J(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:oe})}),Ut=Q.createContext(void 0),Wt=Q.forwardRef(function(e,t){let{store:n}=gt(),r=J(n,$.mounted),i=J(n,$.forceMount);return r||i?(0,Z.jsx)(Ut.Provider,{value:!0,children:(0,Z.jsx)(He,{ref:t,...e})}):null}),Gt=Q.createContext(void 0);function Kt(){let e=Q.useContext(Gt);if(!e)throw Error(d(59));return e}function qt(e,t){e&&Object.assign(e.style,t)}var Jt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Yt=20;function Xt(e,t,n,r){let[i,a]=Q.useState(!1);_(()=>{if(!e||!t||n==null){a(!1);return}let r=O(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Yt)},[e,t,n]),z(e&&(!t||i),r)}var Zt={position:`fixed`},Qt=Q.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=q,style:v,...b}=e,{store:x,listRef:S,labelsRef:te,alignItemWithTriggerActiveRef:ne,selectedItemTextRef:C,valuesRef:w,initialValueRef:E,popupRef:D,setValue:O}=gt(),k=_t(),A=J(x,$.open),j=J(x,$.mounted),M=J(x,$.modal),re=J(x,$.value),N=J(x,$.openMethod),ie=J(x,$.positionerElement),P=J(x,$.triggerElement),F=J(x,$.isItemEqualToValue),ae=J(x,$.transitionStatus),I=Q.useRef(null),oe=Q.useRef(null),[R,z]=Q.useState(h),B=j&&R&&N!==`touch`;!j&&R!==h&&z(h),_(()=>{j||($.scrollUpArrowVisible(x.state)&&x.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(x.state)&&x.set(`scrollDownArrowVisible`,!1))},[x,j]),Q.useImperativeHandle(ne,()=>B),Xt((B||M)&&A,N===`touch`,ie,P);let V=ue({anchor:n,floatingRootContext:k,positionMethod:r,mounted:j,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??B,collisionAvoidance:g,keepMounted:!0}),H=B?`none`:V.side,U=B?Zt:V.positionerStyles,W={open:A,side:H,align:V.align,anchorHidden:V.anchorHidden};_(()=>{x.set(`popupSide`,V.side)},[x,V.side]);let se=L(e,W,{styles:U,transitionStatus:ae,props:b,refs:[t,y(e=>{x.set(`positionerElement`,e)})],hidden:!j,inert:!A}),K=Q.useRef(0),ce=y(e=>{if(e.size===0&&K.current===0||w.current.length===0)return;let t=K.current;if(K.current=e.size,e.size===t)return;let n=T(ee);if(t!==0&&!x.state.multiple&&re!==null&&xt(w.current,re,F)===-1){let e=E.current,t=e!=null&&xt(w.current,e,F)!==-1?e:null;O(t,n),t===null&&(x.set(`selectedIndex`,null),C.current=null)}if(t!==0&&x.state.multiple&&Array.isArray(re)){let e=e=>xt(w.current,e,F)!==-1,t=re.filter(t=>e(t));(t.length!==re.length||t.some(e=>!bt(re,e,F)))&&(O(t,n),t.length===0&&(x.set(`selectedIndex`,null),C.current=null))}if(A&&B){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};qt(ie,e),qt(D.current,e)}}),le=Q.useMemo(()=>({...V,side:H,alignItemWithTriggerActive:B,setControlledAlignItemWithTrigger:z,scrollUpArrowRef:I,scrollDownArrowRef:oe}),[V,H,B,z]);return(0,Z.jsx)(Ye,{elementsRef:S,labelsRef:te,onMapChange:ce,children:(0,Z.jsxs)(Gt.Provider,{value:le,children:[j&&M&&(0,Z.jsx)(he,{inert:G(!A),cutout:P}),se]})})}),$t=`base-ui-disable-scrollbar`,en={className:$t,getElement(e){return(0,Z.jsx)(`style`,{nonce:e,href:$t,precedence:`base-ui:low`,children:`.${$t}{scrollbar-width:none}.${$t}::-webkit-scrollbar{display:none}`})}},tn=Q.createContext(void 0);function nn(e){let t=Q.useContext(tn);if(t===void 0&&!e)throw Error(d(69));return t}var rn=Q.createContext(void 0),an={disableStyleElements:!1};function on(){return Q.useContext(rn)??an}var sn={...U,...F},cn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s,popupRef:c,onOpenChangeComplete:u,setOpen:d,valueRef:f,firstItemTextRef:p,selectedItemTextRef:m,keyboardActiveRef:g,multiple:v,handleScrollArrowVisibility:b,scrollHandlerRef:S,listRef:ee,highlightItemOnHover:te}=gt(),{side:ne,align:C,alignItemWithTriggerActive:w,isPositioned:E,setControlledAlignItemWithTrigger:D,scrollDownArrowRef:k,scrollUpArrowRef:A}=Kt(),M=nn(!0)!=null,re=_t(),N=ae(),{nonce:ie,disableStyleElements:P}=on(),F=J(s,$.id),L=J(s,$.open),oe=J(s,$.mounted),R=J(s,$.popupProps),z=J(s,$.transitionStatus),B=J(s,$.triggerElement),V=J(s,$.positionerElement),H=J(s,$.listElement),U=Q.useRef(!1),W=Q.useRef(!1),G=Q.useRef({}),se=Ie(),K=y(e=>{if(!V||!c.current||!W.current)return;if(U.current||!w){b();return}let t=V.style.top===`0px`,n=V.style.bottom===`0px`;if(!t&&!n){b();return}let r=dn(V),i=fn(V.getBoundingClientRect().height,`y`,r),a=O(V),o=getComputedStyle(V),s=parseFloat(o.marginTop),l=parseFloat(o.marginBottom),u=ln(getComputedStyle(c.current)),d=Math.min(a.documentElement.clientHeight-s-l,u),f=e.scrollTop,p=un(e),m=0,h=null,g=!1,_=!1,v=e=>{V.style.height=`${e}px`},y=(t,n)=>{let r=At(t,0,d-i);r>0&&v(i+r),e.scrollTop=n,d-(i+r)<=1&&(U.current=!0),b()},x=t?p-f:f,S=Math.min(i+x,d);if(m=S,x<=1){y(x,t?p:0);return}if(d-S>1?t?_=!0:h=0:(g=!0,n&&f1&&(e.scrollTop=n)}(g||m>=d-1)&&(U.current=!0),b()});Q.useImperativeHandle(S,()=>K,[K]),I({open:L,ref:c,onComplete(){L&&u?.(!0)}});let q={open:L,transitionStatus:z,side:ne,align:C};_(()=>{!V||!c.current||Object.keys(G.current).length||(G.current={top:V.style.top||`0`,left:V.style.left||`0`,right:V.style.right,height:V.style.height,bottom:V.style.bottom,minHeight:V.style.minHeight,maxHeight:V.style.maxHeight,marginTop:V.style.marginTop,marginBottom:V.style.marginBottom})},[c,V]),_(()=>{L||w||(W.current=!1,U.current=!1,qt(V,G.current))},[L,w,V,c]),_(()=>{let e=c.current;if(!L||!B||!V||!e||w&&!E||s.state.transitionStatus===`ending`)return;if(!w){W.current=!0,se.request(b),e.style.removeProperty(`--transform-origin`);return}let t=hn(e);e.style.removeProperty(`--transform-origin`);try{let t=m.current;t?.isConnected||(t=!$.hasSelectedValue(s.state)&&p.current?.isConnected?p.current:null);let n=f.current,r=getComputedStyle(V),i=getComputedStyle(e),a=O(B),o=h(V),c=dn(B),l=pn(B.getBoundingClientRect(),c),u=pn(V.getBoundingClientRect(),c),d=l.height,g=H||e,_=g.scrollHeight,v=parseFloat(i.borderBottomWidth),y=parseFloat(r.marginTop)||10,x=parseFloat(r.marginBottom)||10,S=parseFloat(r.minHeight)||100,ne=ln(i),C=a.documentElement.clientHeight-y-x,w=a.documentElement.clientWidth,T=C-l.bottom+d,E,k=N===`rtl`?l.right-u.width:l.left,A=0;if(t&&n){let e=pn(n.getBoundingClientRect(),c);E=pn(t.getBoundingClientRect(),c),k=u.left+(N===`rtl`?e.right-E.right:e.left-E.left);let r=e.top-l.top+e.height/2;A=E.top-u.top+E.height/2-r}let j=T+A+x+v,M=Math.min(C,j),re=C-y-x,ie=j-M,P=w-5;V.style.left=`${At(k,5,P-u.width)}px`,V.style.height=`${M}px`,V.style.maxHeight=`auto`,V.style.marginTop=`${y}px`,V.style.marginBottom=`${x}px`,e.style.height=`100%`;let F=un(g),ae=ie>=F-1;ae&&(M=Math.min(C,u.height)-(ie-F));let I=l.top<20||l.bottom>C-20||Math.ceil(M)+1=re?`0`:`${e}px`,V.style.height=`${M}px`,g.scrollTop=un(g)}else V.style.bottom=`0`,g.scrollTop=ie;if(E){let t=u.top,n=u.height,r=E.top+E.height/2,i=At(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(oe===C||M>=ne)&&(U.current=!0),b(),te&&s.state.selectedIndex===null&&s.state.activeIndex===null&&ee.current[0]!=null&&s.set(`activeIndex`,0),W.current=!0}finally{t()}},[s,L,V,B,f,p,m,c,b,w,D,se,k,A,H,ee,te,N,E]),Q.useEffect(()=>{if(!w||!V||!L)return;let e=h(V);function t(e){d(!1,T(x,e))}return j(e,`resize`,t)},[d,w,V,L]);let le={...H?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":v||void 0,id:`${F}-list`},onKeyDown(e){g.current=!0,M&&_e.has(e.key)&&e.stopPropagation()},onMouseMove(){g.current=!1},onScroll(e){H||K(e.currentTarget)},...w&&{style:H?{height:`100%`}:Jt}},ue=l(`div`,e,{ref:[t,c],state:q,stateAttributesMapping:sn,props:[R,le,ce(z),{className:!H&&w?en.className:void 0},o]});return(0,Z.jsxs)(Q.Fragment,{children:[!P&&en.getElement(ie),(0,Z.jsx)(Ue,{context:re,modal:!1,disabled:!oe,returnFocus:a,restoreFocus:!0,children:ue})]})});function ln(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function un(e){return jt(e.scrollHeight,e.clientHeight)}function dn(e){return Ge.getScale(e)}function fn(e,t,n){return e/n[t]}function pn(e,t){return ve({x:fn(e.x,`x`,t),y:fn(e.y,`y`,t),width:fn(e.width,`x`,t),height:fn(e.height,`y`,t)})}var mn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function hn(e){let{style:t}=e,n={};for(let[e,r]of mn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of mn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var gn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=gt(),{alignItemWithTriggerActive:c}=Kt(),u=J(o,$.hasScrollArrows),d=J(o,$.openMethod),f=J(o,$.multiple),p={id:`${J(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":f||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Jt},className:u&&d!==`touch`?en.className:void 0};return l(`div`,e,{ref:[t,y(e=>{o.set(`listElement`,e)})],props:[p,a]})}),_n=Q.createContext(void 0);function vn(){let e=Q.useContext(_n);if(!e)throw Error(d(57));return e}var yn=Q.memo(Q.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...u}=e,d=Q.useRef(null),f=Je({label:o,textRef:d,indexGuessBehavior:Xe.GuessFromOrder}),{store:p,itemProps:m,setOpen:h,setValue:g,selectionRef:y,typingRef:b,valuesRef:x,multiple:S,selectedItemTextRef:ee}=gt(),te=J(p,$.isActive,f.index),C=J(p,$.isSelected,f.index,a),w=J(p,$.isSelectedByFocus,f.index),E=J(p,$.isItemEqualToValue),D=f.index,O=D!==-1,k=Q.useRef(null);_(()=>{if(!O)return;let e=x.current;return e[D]=a,()=>{delete e[D]}},[O,D,a,x]),_(()=>{if(!O)return;let e=p.state.value,t=e;S&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&yt(a,t,E)&&(p.set(`selectedIndex`,D),d.current&&(ee.current=d.current))},[O,D,S,E,p,a,ee]);let A=Q.useRef(null),j=Q.useRef(`mouse`),M=Q.useRef(!1),{getButtonProps:re,buttonRef:N}=v({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),ie={disabled:s,selected:C,highlighted:te};function P(e){let t=p.state.value;if(S){let n=Array.isArray(t)?t:[];g(C?St(n,a,E):[...n,a],T(ne,e))}else g(a,T(ne,e)),h(!1,T(ne,e))}function F(){y.current.dragY=0}let ae={role:`option`,"aria-selected":C,tabIndex:te?0:-1,onKeyDown(e){A.current=e.key,p.set(`activeIndex`,D),e.key===` `&&b.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&j.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&Re(e.nativeEvent)&&(n!==void 0||te),i=t&&!r&&!M.current;M.current=!1,!(e.type===`keydown`&&A.current===null)&&(s||e.type===`keydown`&&A.current===` `&&b.current||i||(A.current=null,P(e.nativeEvent)))},onPointerEnter(e){j.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=y.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){j.current=e.pointerType,M.current=!0,F()},onMouseUp(){if(F(),s||j.current===`touch`||M.current)return;let e=!y.current.allowSelectedMouseUp&&C,t=!y.current.allowUnselectedMouseUp&&!C;e||t||(M.current=!0,k.current?.click(),M.current=!1)}},I=l(`div`,e,{ref:[N,t,f.ref,k],state:ie,props:[m,ae,u,re]}),L=Q.useMemo(()=>({selected:C,index:D,textRef:d,selectedByFocus:w,hasRegistered:O}),[C,D,d,w,O]);return(0,Z.jsx)(_n.Provider,{value:L,children:I})})),bn=Q.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=vn();return n||r?(0,Z.jsx)(xn,{...e,ref:t}):null}),xn=Q.memo(Q.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=vn(),c=Q.useRef(null),{transitionStatus:u,setMounted:d}=le(s),f=l(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:F});return I({open:s,ref:c,onComplete(){s||d(!1)}}),f})),Sn=Q.memo(Q.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i,hasRegistered:a}=vn(),{firstItemTextRef:o,selectedItemTextRef:s}=gt(),{render:c,className:u,style:d,...f}=e;return l(`div`,e,{ref:[Q.useCallback(e=>{e&&(a&&n===0&&(o.current=e),a&&i&&(s.current=e))},[o,s,n,i,a]),t,r],props:f})})),Cn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:u,popupRef:d,listRef:f,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:m}=gt(),{side:h,scrollDownArrowRef:g,scrollUpArrowRef:v}=Kt(),y=J(u,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),b=J(u,$.openMethod),x=y&&b!==`touch`,S=R(),ee=c?v:g,{transitionStatus:te,setMounted:ne}=le(x);_(()=>(m.current+=1,u.state.hasScrollArrows||u.set(`hasScrollArrows`,!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&u.state.hasScrollArrows&&u.set(`hasScrollArrows`,!1)}),[u,m]),I({open:x,ref:ee,onComplete(){x||ne(!1)}});let C=l(`div`,e,{ref:[t,ee],state:{direction:a,visible:x,side:h,transitionStatus:te},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||S.isStarted())return;u.set(`activeIndex`,null);function t(){let e=u.state.listElement??d.current;if(!e)return;u.set(`activeIndex`,null),p();let n=jt(e.scrollHeight,e.clientHeight),r=Mt(e.scrollTop,n),i=r===(c?0:n),a=f.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&u.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){S.clear();return}if(a.length>0){let t=ee.current?.offsetHeight||0;e.scrollTop=wn(a,c,r,e.clientHeight,t,n)}S.start(40,t)}S.start(40,t)},onMouseLeave(){S.clear()}},s]});return x||o?C:null});function wn(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return os){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?Mt(l.offsetTop+l.offsetHeight-r+i,a):a}var Tn=Q.forwardRef(function(e,t){return(0,Z.jsx)(Cn,{...e,ref:t,direction:`down`})}),En=Q.forwardRef(function(e,t){return(0,Z.jsx)(Cn,{...e,ref:t,direction:`up`})}),Dn=Q.createContext(void 0);function On(){let e=Q.useContext(Dn);if(e===void 0)throw Error(d(56));return e}var kn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Q.useState(),c=Q.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),u=l(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,Z.jsx)(Dn.Provider,{value:c,children:u})}),An=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=On(),c=b(a);return _(()=>{s(c)},[c,s]),l(`div`,e,{ref:t,props:[{id:c},o]})}),jn=r(),Mn=Nt;function Nn(e){let t=(0,jn.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`scroll-my-1 p-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(kn,{className:i,"data-slot":`select-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Pn(e){let t=(0,jn.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`flex flex-1 text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(Vt,{className:i,"data-slot":`select-value`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Fn(e){let t=(0,jn.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,size:o,id:i,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o===void 0?`default`:o,c;t[6]===r?c=t[7]:(c=f(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,r),t[6]=r,t[7]=c);let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Z.jsx)(Ht,{render:(0,Z.jsx)(m,{className:`pointer-events-none size-3.5 text-muted-foreground`})}),t[8]=l):l=t[8];let u;return t[9]!==n||t[10]!==i||t[11]!==a||t[12]!==s||t[13]!==c?(u=(0,Z.jsxs)(zt,{className:c,"data-size":s,"data-slot":`select-trigger`,id:i,...a,children:[n,l]}),t[9]=n,t[10]=i,t[11]=a,t[12]=s,t[13]=c,t[14]=u):u=t[14],u}function In(e){let t=(0,jn.c)(26),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:r,children:n,side:a,sideOffset:o,align:s,alignOffset:c,alignItemWithTrigger:l,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=a===void 0?`bottom`:a,d=o===void 0?4:o,p=s===void 0?`center`:s,m=c===void 0?0:c,h=l===void 0?!0:l,g;t[9]===r?g=t[10]:(g=f(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-closed:animate-out data-open:animate-in relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100`,r),t[9]=r,t[10]=g);let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Z.jsx)(Bn,{}),t[11]=_):_=t[11];let v;t[12]===n?v=t[13]:(v=(0,Z.jsx)(gn,{children:n}),t[12]=n,t[13]=v);let y;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsx)(Vn,{}),t[14]=y):y=t[14];let b;t[15]!==i||t[16]!==g||t[17]!==v?(b=(0,Z.jsxs)(cn,{className:g,"data-slot":`select-content`,...i,children:[_,v,y]}),t[15]=i,t[16]=g,t[17]=v,t[18]=b):b=t[18];let x;return t[19]!==p||t[20]!==h||t[21]!==m||t[22]!==u||t[23]!==d||t[24]!==b?(x=(0,Z.jsx)(Wt,{children:(0,Z.jsx)(Qt,{align:p,alignItemWithTrigger:h,alignOffset:m,className:`isolate z-50`,side:u,sideOffset:d,children:b})}),t[19]=p,t[20]=h,t[21]=m,t[22]=u,t[23]=d,t[24]=b,t[25]=x):x=t[25],x}function Ln(e){let t=(0,jn.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`px-2 py-1.5 text-xs text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(An,{className:i,"data-slot":`select-label`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Rn(e){let t=(0,jn.c)(13),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=f(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,r),t[4]=r,t[5]=a);let o;t[6]===n?o=t[7]:(o=(0,Z.jsx)(Sn,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:n}),t[6]=n,t[7]=o);let s;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(bn,{render:(0,Z.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Z.jsx)(p,{className:`pointer-events-none`})}),t[8]=s):s=t[8];let c;return t[9]!==i||t[10]!==a||t[11]!==o?(c=(0,Z.jsxs)(yn,{className:a,"data-slot":`select-item`,...i,children:[o,s]}),t[9]=i,t[10]=a,t[11]=o,t[12]=c):c=t[12],c}function zn(e){let t=(0,jn.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`pointer-events-none -mx-1 my-1 h-px bg-border/50`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(B,{className:i,"data-slot":`select-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Bn(e){let t=(0,jn.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(Ze,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Z.jsx)(En,{className:i,"data-slot":`select-scroll-up-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Vn(e){let t=(0,jn.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(m,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Z.jsx)(Tn,{className:i,"data-slot":`select-scroll-down-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}export{Ln as a,Pn as c,Rn as i,In as n,zn as o,Nn as r,Fn as s,Mn as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,f as o,i as s,l as c,n as l,o as u,u as d}from"./dist.js";import{Lt as f}from"./auth.js";import{t as p}from"./check.js";import{t as m}from"./chevron-down.js";import{_ as h,b as g,o as _,r as v,s as y}from"./button.js";import{S as b,_ as x,b as S,f as ee,g as te,l as ne,n as C,o as w,t as T,u as E,v as D,x as O,y as k}from"./createBaseUIEventDetails.js";import{$n as A,An as j,Bn as M,Cn as re,Dn as N,En as ie,Fn as P,Gn as F,Gt as ae,Hn as I,Ht as L,In as oe,Jn as R,Jt as z,Ln as B,Nr as V,On as H,Pn as U,Qn as W,Qt as G,Sn as se,Sr as K,Tn as q,Ut as ce,Vn as le,Wt as ue,Xn as de,Yn as fe,Yt as pe,Zn as me,Zt as he,_n as J,_r as ge,an as _e,ar as ve,bn as ye,br as be,cr as xe,dr as Se,er as Ce,fr as we,gn as Te,gr as Ee,hn as De,hr as Oe,ir as ke,kn as Ae,lr as je,mn as Me,mr as Y,nr as Ne,or as Pe,pr as Fe,qn as Ie,rr as Le,sr as Re,tr as ze,ur as Be,vn as X,vr as Ve,wn as He,xn as Ue,xr as We,yn as Ge,yr as Ke,zn as qe}from"./index.js";import{n as Je,r as Ye,t as Xe}from"./useCompositeListItem.js";var Ze=V(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Z=e(),Q=t(n()),Qe=Q.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:u,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function $e(){return Q.useContext(Qe)}function et(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:c=0,reason:l=te}=t,u=`rootStore`in e?e.rootStore:e,d=u.context.dataRef,f=Q.useRef(void 0),p=Ie(),m=R(),h=Q.useMemo(()=>{function e(e,t,n,r){let i=T(l,t,n);e&&r===`touch`&&c>0?m.start(c,()=>{u.setOpen(!0,i)}):u.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,i=u.select(`domReferenceElement`)!==t;return e&&i||!e||!a?!0:r&&s?!n(r.type):!1}return{onPointerDown(e){f.current=e.pointerType},onMouseDown(n){let i=f.current,a=n.nativeEvent,s=u.select(`open`);if(n.button!==0||r===`click`||Pe(i,!0)&&o)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),l=S(a);if(we(l)){e(c,a,l,i);return}let d=n.currentTarget;p.request(()=>{e(c,a,d,i)})},onClick(n){if(r===`mousedown-only`)return;let i=f.current;if(r===`mousedown`&&i){f.current=void 0;return}Pe(i,!0)&&o||e(t(u.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){f.current=void 0}}},[d,r,o,l,u,s,a,p,m,c]);return Q.useMemo(()=>n?{reference:h}:i,[n,h])}var tt=`Escape`;function nt(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function rt(e,t){return nt(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function it(e,t,n){return nt(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function at(e,t,n){return nt(t,n?e===Y:e===Oe,e===Fe)}function ot(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===tt:nt(t,n?e===Oe:e===Y,e===Ee)}function st(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:v=`vertical`,parentOrientation:b,cols:x=1,id:ee,resetOnPointerLeave:te=!0,externalTree:ne}=t,C=`rootStore`in e?e.rootStore:e,j=C.useState(`open`),M=C.useState(`floatingElement`),N=C.useState(`domReferenceElement`),P=C.context.dataRef,F=Be(M),ae=Se(N),I=Ae(F),L=se(),oe=re(ne),R=Q.useRef(f),z=Q.useRef(o??-1),B=Q.useRef(null),V=Q.useRef(!0),H=y(e=>{i(z.current===-1?null:z.current,e)}),U=Q.useRef(H),G=Q.useRef(!!M),K=Q.useRef(j),q=Q.useRef(!1),ce=Q.useRef(!1),le=Q.useRef(null),ue=Ae(h),pe=Ae(j),he=Ae(o),J=Ae(te),ge=Ie(),_e=Ie(),ve=y(()=>{function e(e){d?oe?.events.emit(`virtualfocus`,e):le.current=ie(e,{sync:q.current,preventScroll:!0})}let t=n.current[z.current],r=ce.current;t&&e(t),(q.current?e=>e():e=>ge.request(e))(()=>{let i=n.current[z.current]||t;i&&(t||e(i),De&&(r||!V.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});_(()=>{P.current.orientation=v},[P,v]),_(()=>{a&&(j&&M?(z.current=o??-1,R.current&&o!=null&&(ce.current=!0,H())):G.current&&(z.current=-1,U.current()))},[a,j,M,o,H]),_(()=>{if(a){if(!j){q.current=!1;return}if(M)if(r==null){if(q.current=!1,he.current!=null)return;if(G.current&&(z.current=-1,ve()),(!K.current||!G.current)&&R.current&&(B.current!=null||R.current===!0&&B.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>_e.request(e):queueMicrotask)(t),e+=1):(z.current=B.current==null||it(B.current,v,u)||l?ze(n):Ce(n),B.current=null,H())};t()}}else Le(n.current,r)||(z.current=r,ve(),ce.current=!1)}},[a,j,M,r,he,l,n,v,u,H,ve,_e]),_(()=>{if(!a||M||!oe||d||!G.current)return;let e=oe.nodesRef.current,t=e.find(e=>e.id===L)?.context?.elements.floating,n=D(O(M)),r=e.some(e=>e.context&&k(e.context.elements.floating,n));t&&!r&&V.current&&t.focus({preventScroll:!0})},[a,M,oe,L,d]),_(()=>{U.current=H,K.current=j,G.current=!!M}),_(()=>{j||(B.current=null,R.current=f)},[j,f]);let ye=r!=null,be=y(e=>{if(!pe.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(z.current!==t||r!==t)&&(z.current=t,H(e))}),we=y(()=>b??oe?.nodesRef.current.find(e=>e.id===L)?.context?.dataRef?.current.orientation),Te=y(()=>ze(n,ue.current)),Ee=y(e=>{if(V.current=!1,q.current=!0,e.which===229||!pe.current&&e.currentTarget===I.current)return;if(l&&ot(e.key,v,u,x)){rt(e.key,we())||je(e),C.setOpen(!1,T(E,e.nativeEvent)),g(N)&&(d?oe?.events.emit(`virtualfocus`,N):N.focus());return}let t=z.current,r=ze(n,h),i=Ce(n,h);if(ae||(e.key===`Home`&&(je(e),z.current=r,H(e)),e.key===`End`&&(je(e),z.current=i,H(e))),x>1){let t=Array.from({length:n.current.length},()=>({width:1,height:1})),a=fe(t,x,!1),o=a.findIndex(e=>e!=null&&!ke(n.current,e,h)),s=a.reduce((e,t,r)=>t!=null&&!ke(n.current,t,h)?r:e,-1),l=a[A(a.map(e=>e==null?null:n.current[e]),{event:e,orientation:v,loopFocus:c,rtl:u,cols:x,disabledIndices:W([...(typeof h==`function`?null:h)||n.current.map((e,t)=>ke(n.current,t,h)?t:void 0),void 0],a),minIndex:o,maxIndex:s,prevIndex:me(z.current>i?r:z.current,t,a,x,e.key===`ArrowDown`?`bl`:e.key===(u?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(l!=null&&(z.current=l,H(e)),v===`both`)return}if(rt(e.key,v)){if(je(e),j&&!d&&D(e.currentTarget.ownerDocument)===e.currentTarget){z.current=it(e.key,v,u)?r:i,H(e);return}it(e.key,v,u)?c?t>=i?s&&t!==n.current.length?z.current=-1:(q.current=!1,z.current=r):z.current=de(n.current,{startingIndex:t,disabledIndices:h}):z.current=Math.min(i,de(n.current,{startingIndex:t,disabledIndices:h})):c?t<=r?s&&t!==-1?z.current=n.current.length:(q.current=!1,z.current=i):z.current=de(n.current,{startingIndex:t,decrement:!0,disabledIndices:h}):z.current=Math.max(r,de(n.current,{startingIndex:t,decrement:!0,disabledIndices:h})),Le(n.current,z.current)&&(z.current=-1),H(e)}}),De=Q.useMemo(()=>({onFocus(e){q.current=!0,be(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){q.current=!0,ce.current=!1,p&&be(e)},onPointerLeave(e){if(!pe.current||!V.current||e.pointerType===`touch`)return;q.current=!0;let t=e.relatedTarget;if(!(!p||n.current.includes(t))&&J.current&&(le.current?.(),le.current=null,z.current=-1,H(e),!d)){let e=I.current,t=D(O(e));e&&k(e,t)&&e.focus({preventScroll:!0})}}}),[be,pe,I,p,n,H,J,d]),Oe=Q.useMemo(()=>d&&j&&ye&&{"aria-activedescendant":`${ee}-${r}`},[d,j,ye,ee,r]),Me=Q.useMemo(()=>({"aria-orientation":v===`both`?void 0:v,...ae?{}:Oe,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&j&&!d){let t=S(e.nativeEvent);if(t&&!k(I.current,t))return;je(e),C.setOpen(!1,T(w,e.nativeEvent)),g(N)&&N.focus();return}Ee(e)},onPointerMove(){V.current=!0}}),[Oe,Ee,I,v,ae,C,j,d,N]),Y=Q.useMemo(()=>{function e(e){C.setOpen(!0,T(E,e.nativeEvent,e.currentTarget))}function t(e){f===`auto`&&Re(e.nativeEvent)&&(R.current=!d)}function n(e){R.current=f,f===`auto`&&xe(e.nativeEvent)&&(R.current=!0)}return{onKeyDown(t){let n=C.select(`open`);V.current=!1;let r=t.key.startsWith(`Arrow`),i=at(t.key,we(),u),a=rt(t.key,v),o=(l?i:a)||t.key===`Enter`||t.key.trim()===``;if(d&&n)return Ee(t);if(!(!n&&!m&&r)){if(o){let e=rt(t.key,we());B.current=l&&e?null:t.key}if(l){i&&(je(t),n?(z.current=Te(),H(t)):e(t));return}a&&(he.current!=null&&(z.current=he.current),je(t),!n&&m?e(t):Ee(t),n&&H(t))}},onFocus(e){C.select(`open`)&&!d&&(z.current=-1,H(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[Ee,f,Te,l,H,C,m,v,we,u,he,d]),Ne=Q.useMemo(()=>({...Oe,...Y}),[Oe,Y]);return Q.useMemo(()=>a?{reference:Ne,floating:Me,item:De,trigger:Y}:{},[a,Ne,Me,Y,De])}function ct(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,onTyping:o,enabled:s=!0,resetMs:c=750,selectedIndex:l=null}=t,u=`rootStore`in e?e.rootStore:e,d=u.useState(`open`),f=R(),p=Q.useRef(``),m=Q.useRef(l??i??-1),h=Q.useRef(null),g=y(e=>{function t(e){let t=r?.current[e];return!t||Ne(t)}function s(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n0&&e.key===` `&&(je(e),o?.(!0)),p.current.length>0&&p.current[0]!==` `&&s(u,p.current)===-1&&e.key!==` `&&o?.(!1),u==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;d&&e.key!==` `&&(je(e),o?.(!0));let g=p.current===``;g&&(m.current=l??i??-1),u.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&p.current===e.key&&(p.current=``,m.current=h.current),p.current+=e.key,f.start(c,()=>{p.current=``,m.current=h.current,o?.(!1)});let _=((g?l??i??-1:m.current)??0)+1,v=s(u,p.current,_);v===-1?e.key!==` `&&(p.current=``,o?.(!1)):(a?.(v),h.current=v)}),v=y(e=>{let t=e.relatedTarget,n=u.select(`domReferenceElement`),r=u.select(`floatingElement`);k(n,t)||k(r,t)||(f.clear(),p.current=``,m.current=h.current,o?.(!1))});_(()=>{!d&&l!==null||(f.clear(),h.current=null,p.current!==``&&(p.current=``))},[d,l,f]),_(()=>{d&&p.current===``&&(m.current=l??i??-1)},[d,l,i]);let b=Q.useMemo(()=>({onKeyDown:g,onBlur:v}),[g,v]);return Q.useMemo(()=>s?{reference:b,floating:b}:{},[s,b])}function lt(e){let t=Q.useRef(``),n=Q.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Q.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function ut(e,t){let n=Q.useRef(e),r=y(t);_(()=>{n.current!==e&&r(n.current)},[e,r]),_(()=>{n.current=e},[e])}function dt(e,t){let{onClick:n,onPointerDown:r}=lt(y((n,r)=>{(typeof e==`function`?e():e)||t(r||(ge?`touch`:``))}));return Q.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function ft(e){let[t,n]=Q.useState(null),r=dt(e,n);return ut(e,t=>{t&&!e&&n(null)}),Q.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function pt(e){let[t,n]=Q.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var mt=Q.createContext(null),ht=Q.createContext(null);function gt(){let e=Q.useContext(mt);if(e===null)throw Error(d(60));return e}function _t(){let e=Q.useContext(ht);if(e===null)throw Error(d(61));return e}var vt=(e,t)=>Object.is(e,t);function yt(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function bt(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:yt(t,e,n))}function xt(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:yt(e,t,n))}function St(e,t,n){return e.filter(e=>!yt(t,e,n))}function Ct(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function wt(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function Tt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(wt(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function Et(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 Ct(e)}function Dt(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?Ct(e.value):Ct(e)}function Ot(e,t,n){function r(){return Et(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)){let n=t,i=wt(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function kt(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Z.jsx)(Q.Fragment,{children:Ot(r,t,n)},i)),e),[])}var $={id:X(e=>e.id),labelId:X(e=>e.labelId),modal:X(e=>e.modal),multiple:X(e=>e.multiple),items:X(e=>e.items),itemToStringLabel:X(e=>e.itemToStringLabel),itemToStringValue:X(e=>e.itemToStringValue),isItemEqualToValue:X(e=>e.isItemEqualToValue),value:X(e=>e.value),hasSelectedValue:X(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Dt(t,r)!==``}),hasNullItemLabel:X((e,t)=>t?Tt(e.items):!1),open:X(e=>e.open),mounted:X(e=>e.mounted),forceMount:X(e=>e.forceMount),transitionStatus:X(e=>e.transitionStatus),openMethod:X(e=>e.openMethod),activeIndex:X(e=>e.activeIndex),selectedIndex:X(e=>e.selectedIndex),isActive:X((e,t)=>e.activeIndex===t),isSelected:X((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>yt(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:yt(n,i,r)}),isSelectedByFocus:X((e,t)=>e.selectedIndex===t),popupProps:X(e=>e.popupProps),triggerProps:X(e=>e.triggerProps),triggerElement:X(e=>e.triggerElement),positionerElement:X(e=>e.positionerElement),listElement:X(e=>e.listElement),popupSide:X(e=>e.popupSide),scrollUpArrowVisible:X(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:X(e=>e.scrollDownArrowVisible),hasScrollArrows:X(e=>e.hasScrollArrows)};function At(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function jt(e,t){return Math.max(0,e-t)}function Mt(e,t){if(t<=0)return 0;let n=At(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function Nt(e){let{id:t,value:n,defaultValue:r=null,onValueChange:l,open:u,defaultOpen:d=!1,onOpenChange:f,name:p,form:m,autoComplete:h,disabled:g=!1,readOnly:v=!1,required:b=!1,modal:x=!0,actionsRef:S,inputRef:te,onOpenChangeComplete:ne,items:C,multiple:w=!1,itemToStringLabel:E,itemToStringValue:D,isItemEqualToValue:O=vt,highlightItemOnHover:k=!0,children:A}=e,{clearErrors:j}=$e(),{setDirty:re,setTouched:ie,setFocused:P,shouldValidateOnChange:F,validityData:ae,setFilled:L,name:oe,disabled:R,validation:z,validationMode:B}=We(),V=Ke({id:t}),U=R||g,W=oe??p,[G,se]=M({controlled:n,default:w?r??s:r,name:`Select`,state:`value`}),[K,q]=M({controlled:u,default:d,name:`Select`,state:`open`}),ce=Q.useRef([]),ue=Q.useRef([]),de=Q.useRef(null),fe=Q.useRef(null),me=Q.useRef(0),he=Q.useRef(null),ge=Q.useRef([]),_e=Q.useRef(!1),ve=Q.useRef(!1),be=Q.useRef(null),xe=Q.useRef(null),Se=Q.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),Ce=Q.useRef(!1),{mounted:we,setMounted:Ee,transitionStatus:Oe}=le(K),{openMethod:ke,triggerProps:je}=ft(K),Y=c(()=>new Te({id:V,labelId:void 0,modal:x,multiple:w,itemToStringLabel:E,itemToStringValue:D,isItemEqualToValue:O,value:G,open:K,mounted:we,transitionStatus:Oe,items:C,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,Ne=J(Y,$.activeIndex),Pe=J(Y,$.selectedIndex),Fe=J(Y,$.triggerElement),Ie=J(Y,$.positionerElement),Le=pt(ke),Re=ke??Le,ze=Q.useMemo(()=>w&&Array.isArray(G)&&G.length===0?``:Dt(G,D),[w,G,D]),Be=Q.useMemo(()=>w&&Array.isArray(G)?G.map(e=>Dt(e,D)):Dt(G,D),[w,G,D]);qe(Ae(Y.state.triggerElement),V,G,y(()=>Be));let X=Q.useRef(G),Ve=w?Array.isArray(G)&&G.length>0:G!=null;_(()=>{G!==X.current&&Y.set(`forceMount`,!0)},[Y,G]),_(()=>{L(Ve)},[Ve,L]),_(function(){let e=ge.current,t;if(w){let n=Array.isArray(G)?G:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=xt(e,r,O);t=i===-1?null:i}}else{let n=xt(e,G,O);t=n===-1?null:n}t===null&&(xe.current=null),!K&&Y.set(`selectedIndex`,t)},[Ve,w,K,G,ge,O,Y,xe]),ut(G,()=>{j(W),re(G!==ae.initialValue),F()?z.commit(G):z.commit(G,!0)});let He=y((e,t)=>{if(f?.(e,t),!t.isCanceled&&(q(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(ie(!0),P(!1),B===`onBlur`&&z.commit(G)),!e&&Y.state.activeIndex!==null)){let e=ce.current[Y.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Ue=y(()=>{Ee(!1),Y.update({activeIndex:null,openMethod:null}),ne?.(!1)});I({enabled:!S,open:K,ref:de,onComplete(){K||Ue()}}),Q.useImperativeHandle(S,()=>({unmount:Ue}),[Ue]);let Ge=y((e,t)=>{l?.(e,t),!t.isCanceled&&se(e)}),Je=y(()=>{let e=Y.state.listElement||de.current;if(!e)return;let t=jt(e.scrollHeight,e.clientHeight),n=Mt(e.scrollTop,t),r=n>0,i=n{let e=o(tt.reference,Qe.reference,Ze.reference,Xe.reference,je);return V&&(e.id=V),e},[Xe.reference,tt.reference,Qe.reference,Ze.reference,je,V]),rt=Q.useMemo(()=>o(De,tt.floating,Qe.floating,Ze.floating),[tt.floating,Qe.floating,Ze.floating]),it=Qe.item??i;pe(()=>{Y.update({popupProps:rt,triggerProps:nt})}),_(()=>{Y.update({id:V,modal:x,multiple:w,value:G,open:K,mounted:we,transitionStatus:Oe,popupProps:rt,triggerProps:nt,items:C,itemToStringLabel:E,itemToStringValue:D,isItemEqualToValue:O,openMethod:Re})},[Y,V,x,w,G,K,we,Oe,rt,nt,C,E,D,O,Re]);let at=Q.useMemo(()=>({store:Y,name:W,required:b,disabled:U,readOnly:v,multiple:w,highlightItemOnHover:k,setValue:Ge,setOpen:He,listRef:ce,popupRef:de,scrollHandlerRef:fe,handleScrollArrowVisibility:Je,scrollArrowsMountedCountRef:me,itemProps:it,events:Ye.context.events,valueRef:he,valuesRef:ge,labelsRef:ue,typingRef:_e,selectionRef:Se,firstItemTextRef:be,selectedItemTextRef:xe,validation:z,onOpenChangeComplete:ne,keyboardActiveRef:ve,alignItemWithTriggerActiveRef:Ce,initialValueRef:X}),[Y,W,b,U,v,w,k,Ge,He,it,Ye.context.events,z,ne,Je]),ot=a(te,z.inputRef),lt=w&&Array.isArray(G)&&G.length>0,dt=w?void 0:W,gt=Q.useMemo(()=>!w||!Array.isArray(G)||!W?null:G.map(e=>{let t=Dt(e,D);return(0,Z.jsx)(`input`,{type:`hidden`,form:m,name:W,value:t},t)}),[w,G,m,W,D]);return(0,Z.jsx)(mt.Provider,{value:at,children:(0,Z.jsxs)(ht.Provider,{value:Ye,children:[A,(0,Z.jsx)(`input`,{...z.getInputValidationProps({onFocus(){Y.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||U||v){e.preventBaseUIHandler?.();return}let t=e.currentTarget.value,n=T(ee,e.nativeEvent);function r(){if(w)return;let e=ge.current.find(e=>Dt(e,D).toLowerCase()===t.toLowerCase()||Et(e,E).toLowerCase()===t.toLowerCase());e!=null&&(re(e!==ae.initialValue),Ge(e,n),F()&&z.commit(e))}Y.set(`forceMount`,!0),queueMicrotask(r)}}),id:V&&dt==null?`${V}-hidden-input`:void 0,form:m,name:dt,autoComplete:h,value:ze,disabled:U,required:b&&!lt,readOnly:v,ref:ot,style:W?H:N,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),gt]})})}function Pt(e,t){return e??t}function Ft(e){let t=e.getBoundingClientRect(),n=h(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var It=2,Lt=400,Rt={...P,...K,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},zt=Q.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:s=!1,nativeButton:c=!0,style:u,...d}=e,{setTouched:f,setFocused:p,validationMode:m,state:h,disabled:g}=We(),{labelId:_}=be(),{store:b,setOpen:x,selectionRef:S,validation:te,readOnly:ne,required:w,alignItemWithTriggerActiveRef:E,disabled:D,keyboardActiveRef:A}=gt(),j=g||D||s,M=J(b,$.open),re=J(b,$.mounted),N=J(b,$.value),ie=J(b,$.triggerProps),P=J(b,$.positionerElement),F=J(b,$.listElement),ae=J(b,$.popupSide),I=J(b,$.id),L=J(b,$.labelId),oe=J(b,$.hasSelectedValue),z=re&&P?ae:null,B=i??I,V=Pt(_,L);Ke({id:B});let H=Ae(P),U=Q.useRef(null),{getButtonProps:W,buttonRef:G}=v({disabled:j,native:c}),se=a(t,U,G,y(e=>{b.set(`triggerElement`,e)})),K=R(),q=R(),ce=R();Q.useEffect(()=>{if(M)return ce.start(Lt,()=>{S.current.allowUnselectedMouseUp=!0,S.current.allowSelectedMouseUp=!0}),()=>{ce.clear()};S.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},q.clear()},[M,S,q,ce]);let le=o(ie,{id:B,role:`combobox`,"aria-expanded":M?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":M?F?.id??Be(P)?.id:void 0,"aria-labelledby":V,"aria-readonly":ne||void 0,"aria-required":w||void 0,tabIndex:j?-1:0,ref:se,onFocus(e){p(!0),M&&E.current&&x(!1,T(ee,e.nativeEvent)),K.start(0,()=>{b.set(`forceMount`,!0)})},onBlur(e){k(P,e.relatedTarget)||(f(!0),p(!1),m===`onBlur`&&te.commit(N))},onPointerMove(){A.current=!1},onKeyDown(){A.current=!0},onMouseDown(e){if(M)return;let t=O(e.currentTarget);function n(e){if(!U.current)return;let t=e.target;if(k(U.current,t)||k(H.current,t)||t===U.current)return;let n=Ft(U.current);e.clientX>=n.left-It&&e.clientX<=n.right+It&&e.clientY>=n.top-It&&e.clientY<=n.bottom+It||x(!1,T(C,e))}q.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},te.getValidationProps,d,W);le.role=`combobox`;let ue={...h,open:M,disabled:j,value:N,readOnly:ne,popupSide:z,placeholder:!oe};return l(`button`,e,{ref:[t,U],state:ue,stateAttributesMapping:Rt,props:le})}),Bt={value:()=>null},Vt=Q.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:u}=gt(),d=J(c,$.value),f=J(c,$.items),p=J(c,$.itemToStringLabel),m=J(c,$.hasSelectedValue),h=!m&&a!=null&&i==null,g=J(c,$.hasNullItemLabel,h),_={value:d,placeholder:!m},v=null;return v=typeof i==`function`?i(d):i??(!m&&a!=null&&!g?a:Array.isArray(d)?kt(d,f,p):Ot(d,f,p)),l(`span`,e,{state:_,ref:[t,u],props:[{children:v},s],stateAttributesMapping:Bt})}),Ht=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=gt();return l(`span`,e,{state:{open:J(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:oe})}),Ut=Q.createContext(void 0),Wt=Q.forwardRef(function(e,t){let{store:n}=gt(),r=J(n,$.mounted),i=J(n,$.forceMount);return r||i?(0,Z.jsx)(Ut.Provider,{value:!0,children:(0,Z.jsx)(He,{ref:t,...e})}):null}),Gt=Q.createContext(void 0);function Kt(){let e=Q.useContext(Gt);if(!e)throw Error(d(59));return e}function qt(e,t){e&&Object.assign(e.style,t)}var Jt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Yt=20;function Xt(e,t,n,r){let[i,a]=Q.useState(!1);_(()=>{if(!e||!t||n==null){a(!1);return}let r=O(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Yt)},[e,t,n]),z(e&&(!t||i),r)}var Zt={position:`fixed`},Qt=Q.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=q,style:v,...b}=e,{store:x,listRef:S,labelsRef:te,alignItemWithTriggerActiveRef:ne,selectedItemTextRef:C,valuesRef:w,initialValueRef:E,popupRef:D,setValue:O}=gt(),k=_t(),A=J(x,$.open),j=J(x,$.mounted),M=J(x,$.modal),re=J(x,$.value),N=J(x,$.openMethod),ie=J(x,$.positionerElement),P=J(x,$.triggerElement),F=J(x,$.isItemEqualToValue),ae=J(x,$.transitionStatus),I=Q.useRef(null),oe=Q.useRef(null),[R,z]=Q.useState(h),B=j&&R&&N!==`touch`;!j&&R!==h&&z(h),_(()=>{j||($.scrollUpArrowVisible(x.state)&&x.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(x.state)&&x.set(`scrollDownArrowVisible`,!1))},[x,j]),Q.useImperativeHandle(ne,()=>B),Xt((B||M)&&A,N===`touch`,ie,P);let V=ue({anchor:n,floatingRootContext:k,positionMethod:r,mounted:j,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??B,collisionAvoidance:g,keepMounted:!0}),H=B?`none`:V.side,U=B?Zt:V.positionerStyles,W={open:A,side:H,align:V.align,anchorHidden:V.anchorHidden};_(()=>{x.set(`popupSide`,V.side)},[x,V.side]);let se=L(e,W,{styles:U,transitionStatus:ae,props:b,refs:[t,y(e=>{x.set(`positionerElement`,e)})],hidden:!j,inert:!A}),K=Q.useRef(0),ce=y(e=>{if(e.size===0&&K.current===0||w.current.length===0)return;let t=K.current;if(K.current=e.size,e.size===t)return;let n=T(ee);if(t!==0&&!x.state.multiple&&re!==null&&xt(w.current,re,F)===-1){let e=E.current,t=e!=null&&xt(w.current,e,F)!==-1?e:null;O(t,n),t===null&&(x.set(`selectedIndex`,null),C.current=null)}if(t!==0&&x.state.multiple&&Array.isArray(re)){let e=e=>xt(w.current,e,F)!==-1,t=re.filter(t=>e(t));(t.length!==re.length||t.some(e=>!bt(re,e,F)))&&(O(t,n),t.length===0&&(x.set(`selectedIndex`,null),C.current=null))}if(A&&B){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};qt(ie,e),qt(D.current,e)}}),le=Q.useMemo(()=>({...V,side:H,alignItemWithTriggerActive:B,setControlledAlignItemWithTrigger:z,scrollUpArrowRef:I,scrollDownArrowRef:oe}),[V,H,B,z]);return(0,Z.jsx)(Ye,{elementsRef:S,labelsRef:te,onMapChange:ce,children:(0,Z.jsxs)(Gt.Provider,{value:le,children:[j&&M&&(0,Z.jsx)(he,{inert:G(!A),cutout:P}),se]})})}),$t=`base-ui-disable-scrollbar`,en={className:$t,getElement(e){return(0,Z.jsx)(`style`,{nonce:e,href:$t,precedence:`base-ui:low`,children:`.${$t}{scrollbar-width:none}.${$t}::-webkit-scrollbar{display:none}`})}},tn=Q.createContext(void 0);function nn(e){let t=Q.useContext(tn);if(t===void 0&&!e)throw Error(d(69));return t}var rn=Q.createContext(void 0),an={disableStyleElements:!1};function on(){return Q.useContext(rn)??an}var sn={...U,...F},cn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s,popupRef:c,onOpenChangeComplete:u,setOpen:d,valueRef:f,firstItemTextRef:p,selectedItemTextRef:m,keyboardActiveRef:g,multiple:v,handleScrollArrowVisibility:b,scrollHandlerRef:S,listRef:ee,highlightItemOnHover:te}=gt(),{side:ne,align:C,alignItemWithTriggerActive:w,isPositioned:E,setControlledAlignItemWithTrigger:D,scrollDownArrowRef:k,scrollUpArrowRef:A}=Kt(),M=nn(!0)!=null,re=_t(),N=ae(),{nonce:ie,disableStyleElements:P}=on(),F=J(s,$.id),L=J(s,$.open),oe=J(s,$.mounted),R=J(s,$.popupProps),z=J(s,$.transitionStatus),B=J(s,$.triggerElement),V=J(s,$.positionerElement),H=J(s,$.listElement),U=Q.useRef(!1),W=Q.useRef(!1),G=Q.useRef({}),se=Ie(),K=y(e=>{if(!V||!c.current||!W.current)return;if(U.current||!w){b();return}let t=V.style.top===`0px`,n=V.style.bottom===`0px`;if(!t&&!n){b();return}let r=dn(V),i=fn(V.getBoundingClientRect().height,`y`,r),a=O(V),o=getComputedStyle(V),s=parseFloat(o.marginTop),l=parseFloat(o.marginBottom),u=ln(getComputedStyle(c.current)),d=Math.min(a.documentElement.clientHeight-s-l,u),f=e.scrollTop,p=un(e),m=0,h=null,g=!1,_=!1,v=e=>{V.style.height=`${e}px`},y=(t,n)=>{let r=At(t,0,d-i);r>0&&v(i+r),e.scrollTop=n,d-(i+r)<=1&&(U.current=!0),b()},x=t?p-f:f,S=Math.min(i+x,d);if(m=S,x<=1){y(x,t?p:0);return}if(d-S>1?t?_=!0:h=0:(g=!0,n&&f1&&(e.scrollTop=n)}(g||m>=d-1)&&(U.current=!0),b()});Q.useImperativeHandle(S,()=>K,[K]),I({open:L,ref:c,onComplete(){L&&u?.(!0)}});let q={open:L,transitionStatus:z,side:ne,align:C};_(()=>{!V||!c.current||Object.keys(G.current).length||(G.current={top:V.style.top||`0`,left:V.style.left||`0`,right:V.style.right,height:V.style.height,bottom:V.style.bottom,minHeight:V.style.minHeight,maxHeight:V.style.maxHeight,marginTop:V.style.marginTop,marginBottom:V.style.marginBottom})},[c,V]),_(()=>{L||w||(W.current=!1,U.current=!1,qt(V,G.current))},[L,w,V,c]),_(()=>{let e=c.current;if(!L||!B||!V||!e||w&&!E||s.state.transitionStatus===`ending`)return;if(!w){W.current=!0,se.request(b),e.style.removeProperty(`--transform-origin`);return}let t=hn(e);e.style.removeProperty(`--transform-origin`);try{let t=m.current;t?.isConnected||(t=!$.hasSelectedValue(s.state)&&p.current?.isConnected?p.current:null);let n=f.current,r=getComputedStyle(V),i=getComputedStyle(e),a=O(B),o=h(V),c=dn(B),l=pn(B.getBoundingClientRect(),c),u=pn(V.getBoundingClientRect(),c),d=l.height,g=H||e,_=g.scrollHeight,v=parseFloat(i.borderBottomWidth),y=parseFloat(r.marginTop)||10,x=parseFloat(r.marginBottom)||10,S=parseFloat(r.minHeight)||100,ne=ln(i),C=a.documentElement.clientHeight-y-x,w=a.documentElement.clientWidth,T=C-l.bottom+d,E,k=N===`rtl`?l.right-u.width:l.left,A=0;if(t&&n){let e=pn(n.getBoundingClientRect(),c);E=pn(t.getBoundingClientRect(),c),k=u.left+(N===`rtl`?e.right-E.right:e.left-E.left);let r=e.top-l.top+e.height/2;A=E.top-u.top+E.height/2-r}let j=T+A+x+v,M=Math.min(C,j),re=C-y-x,ie=j-M,P=w-5;V.style.left=`${At(k,5,P-u.width)}px`,V.style.height=`${M}px`,V.style.maxHeight=`auto`,V.style.marginTop=`${y}px`,V.style.marginBottom=`${x}px`,e.style.height=`100%`;let F=un(g),ae=ie>=F-1;ae&&(M=Math.min(C,u.height)-(ie-F));let I=l.top<20||l.bottom>C-20||Math.ceil(M)+1=re?`0`:`${e}px`,V.style.height=`${M}px`,g.scrollTop=un(g)}else V.style.bottom=`0`,g.scrollTop=ie;if(E){let t=u.top,n=u.height,r=E.top+E.height/2,i=At(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(oe===C||M>=ne)&&(U.current=!0),b(),te&&s.state.selectedIndex===null&&s.state.activeIndex===null&&ee.current[0]!=null&&s.set(`activeIndex`,0),W.current=!0}finally{t()}},[s,L,V,B,f,p,m,c,b,w,D,se,k,A,H,ee,te,N,E]),Q.useEffect(()=>{if(!w||!V||!L)return;let e=h(V);function t(e){d(!1,T(x,e))}return j(e,`resize`,t)},[d,w,V,L]);let le={...H?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":v||void 0,id:`${F}-list`},onKeyDown(e){g.current=!0,M&&_e.has(e.key)&&e.stopPropagation()},onMouseMove(){g.current=!1},onScroll(e){H||K(e.currentTarget)},...w&&{style:H?{height:`100%`}:Jt}},ue=l(`div`,e,{ref:[t,c],state:q,stateAttributesMapping:sn,props:[R,le,ce(z),{className:!H&&w?en.className:void 0},o]});return(0,Z.jsxs)(Q.Fragment,{children:[!P&&en.getElement(ie),(0,Z.jsx)(Ue,{context:re,modal:!1,disabled:!oe,returnFocus:a,restoreFocus:!0,children:ue})]})});function ln(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function un(e){return jt(e.scrollHeight,e.clientHeight)}function dn(e){return Ge.getScale(e)}function fn(e,t,n){return e/n[t]}function pn(e,t){return ve({x:fn(e.x,`x`,t),y:fn(e.y,`y`,t),width:fn(e.width,`x`,t),height:fn(e.height,`y`,t)})}var mn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function hn(e){let{style:t}=e,n={};for(let[e,r]of mn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of mn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var gn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=gt(),{alignItemWithTriggerActive:c}=Kt(),u=J(o,$.hasScrollArrows),d=J(o,$.openMethod),f=J(o,$.multiple),p={id:`${J(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":f||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Jt},className:u&&d!==`touch`?en.className:void 0};return l(`div`,e,{ref:[t,y(e=>{o.set(`listElement`,e)})],props:[p,a]})}),_n=Q.createContext(void 0);function vn(){let e=Q.useContext(_n);if(!e)throw Error(d(57));return e}var yn=Q.memo(Q.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...u}=e,d=Q.useRef(null),f=Je({label:o,textRef:d,indexGuessBehavior:Xe.GuessFromOrder}),{store:p,itemProps:m,setOpen:h,setValue:g,selectionRef:y,typingRef:b,valuesRef:x,multiple:S,selectedItemTextRef:ee}=gt(),te=J(p,$.isActive,f.index),C=J(p,$.isSelected,f.index,a),w=J(p,$.isSelectedByFocus,f.index),E=J(p,$.isItemEqualToValue),D=f.index,O=D!==-1,k=Q.useRef(null);_(()=>{if(!O)return;let e=x.current;return e[D]=a,()=>{delete e[D]}},[O,D,a,x]),_(()=>{if(!O)return;let e=p.state.value,t=e;S&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&yt(a,t,E)&&(p.set(`selectedIndex`,D),d.current&&(ee.current=d.current))},[O,D,S,E,p,a,ee]);let A=Q.useRef(null),j=Q.useRef(`mouse`),M=Q.useRef(!1),{getButtonProps:re,buttonRef:N}=v({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),ie={disabled:s,selected:C,highlighted:te};function P(e){let t=p.state.value;if(S){let n=Array.isArray(t)?t:[];g(C?St(n,a,E):[...n,a],T(ne,e))}else g(a,T(ne,e)),h(!1,T(ne,e))}function F(){y.current.dragY=0}let ae={role:`option`,"aria-selected":C,tabIndex:te?0:-1,onKeyDown(e){A.current=e.key,p.set(`activeIndex`,D),e.key===` `&&b.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&j.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&Re(e.nativeEvent)&&(n!==void 0||te),i=t&&!r&&!M.current;M.current=!1,!(e.type===`keydown`&&A.current===null)&&(s||e.type===`keydown`&&A.current===` `&&b.current||i||(A.current=null,P(e.nativeEvent)))},onPointerEnter(e){j.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=y.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){j.current=e.pointerType,M.current=!0,F()},onMouseUp(){if(F(),s||j.current===`touch`||M.current)return;let e=!y.current.allowSelectedMouseUp&&C,t=!y.current.allowUnselectedMouseUp&&!C;e||t||(M.current=!0,k.current?.click(),M.current=!1)}},I=l(`div`,e,{ref:[N,t,f.ref,k],state:ie,props:[m,ae,u,re]}),L=Q.useMemo(()=>({selected:C,index:D,textRef:d,selectedByFocus:w,hasRegistered:O}),[C,D,d,w,O]);return(0,Z.jsx)(_n.Provider,{value:L,children:I})})),bn=Q.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=vn();return n||r?(0,Z.jsx)(xn,{...e,ref:t}):null}),xn=Q.memo(Q.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=vn(),c=Q.useRef(null),{transitionStatus:u,setMounted:d}=le(s),f=l(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:F});return I({open:s,ref:c,onComplete(){s||d(!1)}}),f})),Sn=Q.memo(Q.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i,hasRegistered:a}=vn(),{firstItemTextRef:o,selectedItemTextRef:s}=gt(),{render:c,className:u,style:d,...f}=e;return l(`div`,e,{ref:[Q.useCallback(e=>{e&&(a&&n===0&&(o.current=e),a&&i&&(s.current=e))},[o,s,n,i,a]),t,r],props:f})})),Cn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:u,popupRef:d,listRef:f,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:m}=gt(),{side:h,scrollDownArrowRef:g,scrollUpArrowRef:v}=Kt(),y=J(u,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),b=J(u,$.openMethod),x=y&&b!==`touch`,S=R(),ee=c?v:g,{transitionStatus:te,setMounted:ne}=le(x);_(()=>(m.current+=1,u.state.hasScrollArrows||u.set(`hasScrollArrows`,!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&u.state.hasScrollArrows&&u.set(`hasScrollArrows`,!1)}),[u,m]),I({open:x,ref:ee,onComplete(){x||ne(!1)}});let C=l(`div`,e,{ref:[t,ee],state:{direction:a,visible:x,side:h,transitionStatus:te},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||S.isStarted())return;u.set(`activeIndex`,null);function t(){let e=u.state.listElement??d.current;if(!e)return;u.set(`activeIndex`,null),p();let n=jt(e.scrollHeight,e.clientHeight),r=Mt(e.scrollTop,n),i=r===(c?0:n),a=f.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&u.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){S.clear();return}if(a.length>0){let t=ee.current?.offsetHeight||0;e.scrollTop=wn(a,c,r,e.clientHeight,t,n)}S.start(40,t)}S.start(40,t)},onMouseLeave(){S.clear()}},s]});return x||o?C:null});function wn(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return os){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?Mt(l.offsetTop+l.offsetHeight-r+i,a):a}var Tn=Q.forwardRef(function(e,t){return(0,Z.jsx)(Cn,{...e,ref:t,direction:`down`})}),En=Q.forwardRef(function(e,t){return(0,Z.jsx)(Cn,{...e,ref:t,direction:`up`})}),Dn=Q.createContext(void 0);function On(){let e=Q.useContext(Dn);if(e===void 0)throw Error(d(56));return e}var kn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Q.useState(),c=Q.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),u=l(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,Z.jsx)(Dn.Provider,{value:c,children:u})}),An=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=On(),c=b(a);return _(()=>{s(c)},[c,s]),l(`div`,e,{ref:t,props:[{id:c},o]})}),jn=r(),Mn=Nt;function Nn(e){let t=(0,jn.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`scroll-my-1 p-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(kn,{className:i,"data-slot":`select-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Pn(e){let t=(0,jn.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`flex flex-1 text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(Vt,{className:i,"data-slot":`select-value`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Fn(e){let t=(0,jn.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,size:o,id:i,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o===void 0?`default`:o,c;t[6]===r?c=t[7]:(c=f(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,r),t[6]=r,t[7]=c);let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Z.jsx)(Ht,{render:(0,Z.jsx)(m,{className:`pointer-events-none size-3.5 text-muted-foreground`})}),t[8]=l):l=t[8];let u;return t[9]!==n||t[10]!==i||t[11]!==a||t[12]!==s||t[13]!==c?(u=(0,Z.jsxs)(zt,{className:c,"data-size":s,"data-slot":`select-trigger`,id:i,...a,children:[n,l]}),t[9]=n,t[10]=i,t[11]=a,t[12]=s,t[13]=c,t[14]=u):u=t[14],u}function In(e){let t=(0,jn.c)(26),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:r,children:n,side:a,sideOffset:o,align:s,alignOffset:c,alignItemWithTrigger:l,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=a===void 0?`bottom`:a,d=o===void 0?4:o,p=s===void 0?`center`:s,m=c===void 0?0:c,h=l===void 0?!0:l,g;t[9]===r?g=t[10]:(g=f(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-closed:animate-out data-open:animate-in relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100`,r),t[9]=r,t[10]=g);let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Z.jsx)(Bn,{}),t[11]=_):_=t[11];let v;t[12]===n?v=t[13]:(v=(0,Z.jsx)(gn,{children:n}),t[12]=n,t[13]=v);let y;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsx)(Vn,{}),t[14]=y):y=t[14];let b;t[15]!==i||t[16]!==g||t[17]!==v?(b=(0,Z.jsxs)(cn,{className:g,"data-slot":`select-content`,...i,children:[_,v,y]}),t[15]=i,t[16]=g,t[17]=v,t[18]=b):b=t[18];let x;return t[19]!==p||t[20]!==h||t[21]!==m||t[22]!==u||t[23]!==d||t[24]!==b?(x=(0,Z.jsx)(Wt,{children:(0,Z.jsx)(Qt,{align:p,alignItemWithTrigger:h,alignOffset:m,className:`isolate z-50`,side:u,sideOffset:d,children:b})}),t[19]=p,t[20]=h,t[21]=m,t[22]=u,t[23]=d,t[24]=b,t[25]=x):x=t[25],x}function Ln(e){let t=(0,jn.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`px-2 py-1.5 text-xs text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(An,{className:i,"data-slot":`select-label`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Rn(e){let t=(0,jn.c)(13),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=f(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,r),t[4]=r,t[5]=a);let o;t[6]===n?o=t[7]:(o=(0,Z.jsx)(Sn,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:n}),t[6]=n,t[7]=o);let s;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(bn,{render:(0,Z.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Z.jsx)(p,{className:`pointer-events-none`})}),t[8]=s):s=t[8];let c;return t[9]!==i||t[10]!==a||t[11]!==o?(c=(0,Z.jsxs)(yn,{className:a,"data-slot":`select-item`,...i,children:[o,s]}),t[9]=i,t[10]=a,t[11]=o,t[12]=c):c=t[12],c}function zn(e){let t=(0,jn.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`pointer-events-none -mx-1 my-1 h-px bg-border/50`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(B,{className:i,"data-slot":`select-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Bn(e){let t=(0,jn.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(Ze,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Z.jsx)(En,{className:i,"data-slot":`select-scroll-up-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Vn(e){let t=(0,jn.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(m,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Z.jsx)(Tn,{className:i,"data-slot":`select-scroll-down-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}export{Ln as a,Pn as c,Rn as i,In as n,zn as o,Nn as r,Fn as s,Mn as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js b/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js index 0d960a3c9..e87e74da0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/state-badge.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{Rt as n}from"./auth.js";var r=t(),i=e(),a=new Set([`running`,`available`,`completed`,`Active`]),o=new Set([`stopped`,`error`]),s=new Set([`pending`,`shutting-down`,`stopping`]);function c(e){return e&&a.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&o.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&s.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:e===`terminated`?`bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function l(e){let t=(0,r.c)(5),{state:a}=e,o;t[0]===a?o=t[1]:(o=n(`rounded-full px-2 py-1 text-xs`,c(a)),t[0]=a,t[1]=o);let s;return t[2]!==a||t[3]!==o?(s=(0,i.jsx)(`div`,{className:o,children:a}),t[2]=a,t[3]=o,t[4]=s):s=t[4],s}export{l as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Lt as n}from"./auth.js";var r=t(),i=e(),a=new Set([`running`,`available`,`completed`,`Active`]),o=new Set([`stopped`,`error`]),s=new Set([`pending`,`shutting-down`,`stopping`]);function c(e){return e&&a.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&o.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&s.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:e===`terminated`?`bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function l(e){let t=(0,r.c)(5),{state:a}=e,o;t[0]===a?o=t[1]:(o=n(`rounded-full px-2 py-1 text-xs`,c(a)),t[0]=a,t[1]=o);let s;return t[2]!==a||t[3]!==o?(s=(0,i.jsx)(`div`,{className:o,children:a}),t[2]=a,t[3]=o,t[4]=s):s=t[4],s}export{l as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/tabs.js b/spinifex/services/spinifexui/frontend/dist/assets/tabs.js index 488059b8e..a362ca3f3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/tabs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/tabs.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,i as o,n as s,u as c}from"./dist.js";import{Rt as l}from"./auth.js";import{a as u,i as d,o as f,r as p,s as m}from"./button.js";import{S as h,b as g,c as _,d as v,f as y,i as b,t as x,v as S,x as C,y as w}from"./createBaseUIEventDetails.js";import{$n as T,Bn as E,Gn as D,Gt as O,Hn as k,Qn as A,Qt as j,Vn as M,Wn as N,Xn as P,Yn as F,Zn as I,an as L,cn as R,dn as z,en as B,er as V,fn as H,in as U,ir as W,ln as G,nn as K,pn as q,rn as J,rr as ee,sn as te,tn as ne,tr as re,un as ie}from"./index.js";import{n as ae,r as oe}from"./useCompositeListItem.js";var Y=t(n()),se=Y.createContext(void 0);function X(){let e=Y.useContext(se);if(e===void 0)throw Error(c(64));return e}var ce=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),Z={tabActivationDirection:e=>({[ce.activationDirection]:e})},Q=e(),le=Y.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:c,style:l,...u}=e,d=e.defaultValue!==void 0,p=Y.useRef([]),[h,g]=Y.useState(()=>new Map),[y,S]=E({controlled:c,default:r,name:`Tabs`,state:`value`}),C=c!==void 0,[w,T]=Y.useState(()=>new Map),D=Y.useCallback(e=>{if(e===void 0)return null;for(let[t,n]of w.entries())if(n!=null&&e===(n.value??n.index))return t;return null},[w]),[O,k]=Y.useState(()=>({previousValue:y,tabActivationDirection:`none`})),{previousValue:A,tabActivationDirection:j}=O,M=j,N=!1;A!==y&&(M=ue(A,y,a,w),N=A!=null&&y!=null&&D(y)==null);let P=N?A:y,F=A!==P||j!==M;f(()=>{F&&k({previousValue:P,tabActivationDirection:M})},[P,F,M]);let I=m((e,t)=>{t.activationDirection=ue(y,e,a,w),i?.(e,t),!t.isCanceled&&S(e)}),L=m((e,t)=>{i?.(e,x(t,void 0,void 0,{activationDirection:`none`}))}),R=m((e,t)=>{g(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),z=m((e,t)=>{g(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),B=Y.useCallback(e=>h.get(e),[h]),V=Y.useCallback(e=>{for(let t of w.values())if(e===t?.value)return t?.id},[w]),H=Y.useMemo(()=>({getTabElementBySelectedValue:D,getTabIdByPanelValue:V,getTabPanelIdByValue:B,onValueChange:I,orientation:a,registerMountedTabPanel:R,setTabMap:T,unregisterMountedTabPanel:z,tabActivationDirection:M,value:y}),[D,V,B,I,a,R,T,z,M,y]),U=Y.useMemo(()=>{for(let e of w.values())if(e!=null&&e.value===y)return e},[w,y]),W=Y.useMemo(()=>{for(let e of w.values())if(e!=null&&!e.disabled)return e.value},[w]),G=Y.useRef(!d),K=Y.useRef(d),q=Y.useRef(!1);f(()=>{if(C)return;function e(e,t){S(e),k(t=>t.previousValue===e&&t.tabActivationDirection===`none`?t:{previousValue:e,tabActivationDirection:`none`}),L(e,t),G.current=!1}if(w.size===0){if(!q.current||y===null)return;e(null,v);return}q.current=!0;let t=U?.disabled,n=U==null&&y!==null;if(!t&&y===r&&(K.current=!1),K.current&&t&&y===r)return;let i=G.current;if(t||n){let n=W??null;if(y===n){G.current=!1;return}let r=v;i?r=_:t&&(r=b),e(n,r);return}i&&U!=null&&(L(y,_),G.current=!1)},[r,W,C,L,U,S,w,y]);let J=s(`div`,e,{state:{orientation:a,tabActivationDirection:M},ref:t,props:u,stateAttributesMapping:Z});return(0,Q.jsx)(se.Provider,{value:H,children:(0,Q.jsx)(oe,{elementsRef:p,children:J})})});function ue(e,t,n,r){if(e==null||t==null)return`none`;let i=null,a=null;for(let[n,o]of r.entries()){if(o==null)continue;let r=o.value??o.index;if(e===r&&(i=n),t===r&&(a=n),i!=null&&a!=null)break}if(i==null||a==null)return i!==a&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?n===`horizontal`?t>e?`right`:`left`:t>e?`down`:`up`:`none`;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect();if(n===`horizontal`){if(s.lefto.left)return`right`}else{if(s.topo.top)return`down`}return`none`}var de=`data-composite-item-active`;function fe(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=u(),{ref:i,index:o}=ae(e),s=n===o,c=Y.useRef(null),l=a(i,c);return{compositeProps:Y.useMemo(()=>({tabIndex:s?0:-1,onFocus(){r(o)},onMouseMove(){let e=c.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!s&&!n&&e.focus()}}),[s,r,o,t]),compositeRef:l,index:o}}var pe=Y.createContext(void 0);function me(){let e=Y.useContext(pe);if(e===void 0)throw Error(c(65));return e}var he=Y.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:c=!0,style:l,...u}=e,{value:d,getTabPanelIdByValue:m,orientation:g}=X(),{activateOnFocus:_,highlightedTabIndex:v,onTabActivation:b,registerTabResizeObserverElement:T,setHighlightedTabIndex:E,tabsListElement:D}=me(),O=h(o),{compositeProps:k,compositeRef:A,index:j}=fe({metadata:Y.useMemo(()=>({disabled:r,id:O,value:a}),[r,O,a])}),M=a===d,N=Y.useRef(!1),P=Y.useRef(null);Y.useEffect(()=>{let e=P.current;if(e)return T(e)},[T]),f(()=>{if(N.current){N.current=!1;return}if(!(M&&j>-1&&v!==j))return;let e=D;if(e!=null){let t=S(C(e));if(t&&w(e,t))return}r||E(j)},[M,j,v,E,r,D]);let{getButtonProps:F,buttonRef:I}=p({disabled:r,native:c,focusableWhenDisabled:!0}),L=m(a),R=Y.useRef(!1),z=Y.useRef(!1);function B(e){M||r||b(a,x(y,e.nativeEvent,void 0,{activationDirection:`none`}))}function V(e){M||(j>-1&&!r&&E(j),!r&&_&&(!R.current||R.current&&z.current)&&b(a,x(y,e.nativeEvent,void 0,{activationDirection:`none`})))}function H(e){if(M||r)return;R.current=!0;function t(){R.current=!1,z.current=!1}(!e.button||e.button===0)&&(z.current=!0,C(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return s(`button`,e,{state:{disabled:r,active:M,orientation:g},ref:[t,I,A,P],props:[k,{role:`tab`,"aria-controls":L,"aria-selected":M,id:O,onClick:B,onFocus:V,onPointerDown:H,[de]:M?``:void 0,onKeyDownCapture(){N.current=!0}},u,F]})}),ge=function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=N.startingStyle]=`startingStyle`,e[e.endingStyle=N.endingStyle]=`endingStyle`,e}({}),_e={...Z,...D},ve=Y.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...c}=e,{value:l,getTabIdByPanelValue:u,orientation:d,tabActivationDirection:p,registerMountedTabPanel:m,unregisterMountedTabPanel:g}=X(),_=h(),{ref:v,index:y}=ae({metadata:Y.useMemo(()=>({id:_,value:r}),[_,r])}),b=r===l,{mounted:x,transitionStatus:S,setMounted:C}=M(b),w=!x,T=u(r),E={hidden:w,orientation:d,tabActivationDirection:p,transitionStatus:S},D=Y.useRef(null),O=s(`div`,e,{state:E,ref:[t,v,D],props:[{"aria-labelledby":T,hidden:w,id:_,role:`tabpanel`,tabIndex:b?0:-1,inert:j(!b),[ge.index]:y},c],stateAttributesMapping:_e});return k({open:b,ref:D,onComplete(){b||C(!1)}}),f(()=>{if(!(w&&!a)&&_!=null)return m(r,_),()=>{g(r,_)}},[w,a,r,_,m,g]),a||x?O:null});function ye(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var be=[];function xe(e){let{itemSizes:t,cols:n=1,loopFocus:r=!0,onLoop:i,dense:o=!1,orientation:s=`both`,direction:c,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:d,enableHomeAndEndKeys:f=!1,stopEventPropagation:p=!1,disabledIndices:h,modifierKeys:_=be}=e,[v,y]=Y.useState(0),b=n>1,x=Y.useRef(null),S=a(x,d),C=Y.useRef([]),w=Y.useRef(!1),E=l??v,D=m((e,t=!1)=>{if((u??y)(e),t){let t=C.current[e];q(x.current,t,c,s)}}),O=m(e=>{if(e.size===0||w.current)return;w.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&D(r),q(x.current,n,c,s)}),k=m((e,t,n)=>i?i?.(e,t,n,C):n),j=Y.useMemo(()=>({"aria-orientation":s===`both`?void 0:s,ref:S,onFocus(e){let t=x.current,n=g(e.nativeEvent);!t||n==null||!H(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let a=f?L:ne;if(!a.has(e.key)||Se(e,_)||!x.current)return;let l=c===`rtl`,u=l?K:J,d={horizontal:u,vertical:B,both:u}[s],m=l?J:K,v={horizontal:m,vertical:U,both:m}[s],y=g(e.nativeEvent);if(y!=null&&H(y)&&!ye(y)){let t=y.selectionStart,n=y.selectionEnd,r=y.value??``;if(t==null||e.shiftKey||t!==n||e.key!==v&&t0)return}let S=E,w=re(C,h),O=V(C,h);if(b){let i=t||Array.from({length:C.current.length},()=>({width:1,height:1})),a=F(i,n,o),c=a.findIndex(e=>e!=null&&!W(C.current,e,h)),u=a.reduce((e,t,n)=>t!=null&&!W(C.current,t,h)?n:e,-1);S=a[T(a.map(e=>e==null?null:C.current[e]),{event:e,orientation:s,loopFocus:r,onLoop:k,cols:n,disabledIndices:A([...h||C.current.map((e,t)=>W(C.current,t)?t:void 0),void 0],a),minIndex:c,maxIndex:u,prevIndex:I(E>O?w:E,i,a,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:l})]}let j={horizontal:[u],vertical:[B],both:[u,B]}[s],M={horizontal:[m],vertical:[U],both:[m,U]}[s],N=b?a:{horizontal:f?R:te,vertical:f?z:ie,both:a}[s];f&&(e.key===`Home`?S=w:e.key===`End`&&(S=O)),S===E&&(j.includes(e.key)||M.includes(e.key))&&(r&&S===O&&j.includes(e.key)?(S=w,i&&(S=i(e,E,S,C))):r&&S===w&&M.includes(e.key)?(S=O,i&&(S=i(e,E,S,C))):S=P(C.current,{startingIndex:S,decrement:M.includes(e.key),disabledIndices:h})),S!==E&&!ee(C.current,S)&&(p&&e.stopPropagation(),N.has(e.key)&&e.preventDefault(),D(S,!0),queueMicrotask(()=>{C.current[S]?.focus()}))}}),[n,o,c,h,C,f,E,b,t,r,i,k,S,_,D,s,p]);return Y.useMemo(()=>({props:j,highlightedIndex:E,onHighlightedIndexChange:D,elementsRef:C,disabledIndices:h,onMapChange:O,relayKeyboardEvent:j.onKeyDown}),[j,E,D,C,h,O])}function Se(e,t){for(let n of G.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function Ce(e){let{render:t,className:n,style:r,refs:a=o,props:c=o,state:l=i,stateAttributesMapping:u,highlightedIndex:f,onHighlightedIndexChange:p,orientation:m,dense:h,itemSizes:g,loopFocus:_,onLoop:v,cols:y,enableHomeAndEndKeys:b,onMapChange:x,stopEventPropagation:S=!0,rootRef:C,disabledIndices:w,modifierKeys:T,highlightItemOnHover:E=!1,tag:D=`div`,...k}=e,{props:A,highlightedIndex:j,onHighlightedIndexChange:M,elementsRef:N,onMapChange:P,relayKeyboardEvent:F}=xe({itemSizes:g,cols:y,loopFocus:_,onLoop:v,dense:h,orientation:m,highlightedIndex:f,onHighlightedIndexChange:p,rootRef:C,stopEventPropagation:S,enableHomeAndEndKeys:b,direction:O(),disabledIndices:w,modifierKeys:T}),I=s(D,e,{state:l,ref:a,props:[A,...c,k],stateAttributesMapping:u}),L=Y.useMemo(()=>({highlightedIndex:j,onHighlightedIndexChange:M,highlightItemOnHover:E,relayKeyboardEvent:F}),[j,M,E,F]);return(0,Q.jsx)(d.Provider,{value:L,children:(0,Q.jsx)(oe,{elementsRef:N,onMapChange:e=>{x?.(e),P(e)},children:I})})}var we=Y.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:s,...c}=e,{onValueChange:l,orientation:u,value:d,setTabMap:f,tabActivationDirection:p}=X(),[h,g]=Y.useState(0),[_,v]=Y.useState(null),y=Y.useRef(new Set),b=Y.useRef(new Set),x=Y.useRef(null);Y.useEffect(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{y.current.forEach(e=>{e()})});return x.current=e,_&&e.observe(_),b.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),x.current=null}},[_]);let S=m(e=>(y.current.add(e),()=>{y.current.delete(e)})),C=m(e=>(b.current.add(e),x.current?.observe(e),()=>{b.current.delete(e),x.current?.unobserve(e)})),w=m((e,t)=>{e!==d&&l(e,t)}),T={orientation:u,tabActivationDirection:p},E={"aria-orientation":u===`vertical`?`vertical`:void 0,role:`tablist`},D=Y.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:h,registerIndicatorUpdateListener:S,registerTabResizeObserverElement:C,onTabActivation:w,setHighlightedTabIndex:g,tabsListElement:_}),[n,h,S,C,w,g,_]);return(0,Q.jsx)(pe.Provider,{value:D,children:(0,Q.jsx)(Ce,{render:a,className:r,style:s,state:T,refs:[t,v],props:[E,c],stateAttributesMapping:Z,highlightedIndex:h,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:g,onMapChange:f,disabledIndices:o})})}),$=r();function Te(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`flex flex-col gap-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(le,{className:i,"data-slot":`tabs`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ee(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`inline-flex items-center gap-1 border-b`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(we,{className:i,"data-slot":`tabs-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function De(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`inline-flex items-center justify-center border-b-2 border-transparent px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-selected:border-primary data-selected:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(he,{className:i,"data-slot":`tabs-tab`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Oe(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`focus-visible:outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(ve,{className:i,"data-slot":`tabs-panel`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{De as i,Ee as n,Oe as r,Te as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,i as o,n as s,u as c}from"./dist.js";import{Lt as l}from"./auth.js";import{a as u,i as d,o as f,r as p,s as m}from"./button.js";import{S as h,b as g,c as _,d as v,f as y,i as b,t as x,v as S,x as C,y as w}from"./createBaseUIEventDetails.js";import{$n as T,Bn as E,Gn as D,Gt as O,Hn as k,Qn as A,Qt as j,Vn as M,Wn as N,Xn as P,Yn as F,Zn as I,an as L,cn as R,dn as z,en as B,er as V,fn as H,in as U,ir as W,ln as G,nn as K,pn as q,rn as J,rr as ee,sn as te,tn as ne,tr as re,un as ie}from"./index.js";import{n as ae,r as oe}from"./useCompositeListItem.js";var Y=t(n()),se=Y.createContext(void 0);function X(){let e=Y.useContext(se);if(e===void 0)throw Error(c(64));return e}var ce=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),Z={tabActivationDirection:e=>({[ce.activationDirection]:e})},Q=e(),le=Y.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:c,style:l,...u}=e,d=e.defaultValue!==void 0,p=Y.useRef([]),[h,g]=Y.useState(()=>new Map),[y,S]=E({controlled:c,default:r,name:`Tabs`,state:`value`}),C=c!==void 0,[w,T]=Y.useState(()=>new Map),D=Y.useCallback(e=>{if(e===void 0)return null;for(let[t,n]of w.entries())if(n!=null&&e===(n.value??n.index))return t;return null},[w]),[O,k]=Y.useState(()=>({previousValue:y,tabActivationDirection:`none`})),{previousValue:A,tabActivationDirection:j}=O,M=j,N=!1;A!==y&&(M=ue(A,y,a,w),N=A!=null&&y!=null&&D(y)==null);let P=N?A:y,F=A!==P||j!==M;f(()=>{F&&k({previousValue:P,tabActivationDirection:M})},[P,F,M]);let I=m((e,t)=>{t.activationDirection=ue(y,e,a,w),i?.(e,t),!t.isCanceled&&S(e)}),L=m((e,t)=>{i?.(e,x(t,void 0,void 0,{activationDirection:`none`}))}),R=m((e,t)=>{g(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),z=m((e,t)=>{g(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),B=Y.useCallback(e=>h.get(e),[h]),V=Y.useCallback(e=>{for(let t of w.values())if(e===t?.value)return t?.id},[w]),H=Y.useMemo(()=>({getTabElementBySelectedValue:D,getTabIdByPanelValue:V,getTabPanelIdByValue:B,onValueChange:I,orientation:a,registerMountedTabPanel:R,setTabMap:T,unregisterMountedTabPanel:z,tabActivationDirection:M,value:y}),[D,V,B,I,a,R,T,z,M,y]),U=Y.useMemo(()=>{for(let e of w.values())if(e!=null&&e.value===y)return e},[w,y]),W=Y.useMemo(()=>{for(let e of w.values())if(e!=null&&!e.disabled)return e.value},[w]),G=Y.useRef(!d),K=Y.useRef(d),q=Y.useRef(!1);f(()=>{if(C)return;function e(e,t){S(e),k(t=>t.previousValue===e&&t.tabActivationDirection===`none`?t:{previousValue:e,tabActivationDirection:`none`}),L(e,t),G.current=!1}if(w.size===0){if(!q.current||y===null)return;e(null,v);return}q.current=!0;let t=U?.disabled,n=U==null&&y!==null;if(!t&&y===r&&(K.current=!1),K.current&&t&&y===r)return;let i=G.current;if(t||n){let n=W??null;if(y===n){G.current=!1;return}let r=v;i?r=_:t&&(r=b),e(n,r);return}i&&U!=null&&(L(y,_),G.current=!1)},[r,W,C,L,U,S,w,y]);let J=s(`div`,e,{state:{orientation:a,tabActivationDirection:M},ref:t,props:u,stateAttributesMapping:Z});return(0,Q.jsx)(se.Provider,{value:H,children:(0,Q.jsx)(oe,{elementsRef:p,children:J})})});function ue(e,t,n,r){if(e==null||t==null)return`none`;let i=null,a=null;for(let[n,o]of r.entries()){if(o==null)continue;let r=o.value??o.index;if(e===r&&(i=n),t===r&&(a=n),i!=null&&a!=null)break}if(i==null||a==null)return i!==a&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?n===`horizontal`?t>e?`right`:`left`:t>e?`down`:`up`:`none`;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect();if(n===`horizontal`){if(s.lefto.left)return`right`}else{if(s.topo.top)return`down`}return`none`}var de=`data-composite-item-active`;function fe(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=u(),{ref:i,index:o}=ae(e),s=n===o,c=Y.useRef(null),l=a(i,c);return{compositeProps:Y.useMemo(()=>({tabIndex:s?0:-1,onFocus(){r(o)},onMouseMove(){let e=c.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!s&&!n&&e.focus()}}),[s,r,o,t]),compositeRef:l,index:o}}var pe=Y.createContext(void 0);function me(){let e=Y.useContext(pe);if(e===void 0)throw Error(c(65));return e}var he=Y.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:c=!0,style:l,...u}=e,{value:d,getTabPanelIdByValue:m,orientation:g}=X(),{activateOnFocus:_,highlightedTabIndex:v,onTabActivation:b,registerTabResizeObserverElement:T,setHighlightedTabIndex:E,tabsListElement:D}=me(),O=h(o),{compositeProps:k,compositeRef:A,index:j}=fe({metadata:Y.useMemo(()=>({disabled:r,id:O,value:a}),[r,O,a])}),M=a===d,N=Y.useRef(!1),P=Y.useRef(null);Y.useEffect(()=>{let e=P.current;if(e)return T(e)},[T]),f(()=>{if(N.current){N.current=!1;return}if(!(M&&j>-1&&v!==j))return;let e=D;if(e!=null){let t=S(C(e));if(t&&w(e,t))return}r||E(j)},[M,j,v,E,r,D]);let{getButtonProps:F,buttonRef:I}=p({disabled:r,native:c,focusableWhenDisabled:!0}),L=m(a),R=Y.useRef(!1),z=Y.useRef(!1);function B(e){M||r||b(a,x(y,e.nativeEvent,void 0,{activationDirection:`none`}))}function V(e){M||(j>-1&&!r&&E(j),!r&&_&&(!R.current||R.current&&z.current)&&b(a,x(y,e.nativeEvent,void 0,{activationDirection:`none`})))}function H(e){if(M||r)return;R.current=!0;function t(){R.current=!1,z.current=!1}(!e.button||e.button===0)&&(z.current=!0,C(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return s(`button`,e,{state:{disabled:r,active:M,orientation:g},ref:[t,I,A,P],props:[k,{role:`tab`,"aria-controls":L,"aria-selected":M,id:O,onClick:B,onFocus:V,onPointerDown:H,[de]:M?``:void 0,onKeyDownCapture(){N.current=!0}},u,F]})}),ge=function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=N.startingStyle]=`startingStyle`,e[e.endingStyle=N.endingStyle]=`endingStyle`,e}({}),_e={...Z,...D},ve=Y.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...c}=e,{value:l,getTabIdByPanelValue:u,orientation:d,tabActivationDirection:p,registerMountedTabPanel:m,unregisterMountedTabPanel:g}=X(),_=h(),{ref:v,index:y}=ae({metadata:Y.useMemo(()=>({id:_,value:r}),[_,r])}),b=r===l,{mounted:x,transitionStatus:S,setMounted:C}=M(b),w=!x,T=u(r),E={hidden:w,orientation:d,tabActivationDirection:p,transitionStatus:S},D=Y.useRef(null),O=s(`div`,e,{state:E,ref:[t,v,D],props:[{"aria-labelledby":T,hidden:w,id:_,role:`tabpanel`,tabIndex:b?0:-1,inert:j(!b),[ge.index]:y},c],stateAttributesMapping:_e});return k({open:b,ref:D,onComplete(){b||C(!1)}}),f(()=>{if(!(w&&!a)&&_!=null)return m(r,_),()=>{g(r,_)}},[w,a,r,_,m,g]),a||x?O:null});function ye(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var be=[];function xe(e){let{itemSizes:t,cols:n=1,loopFocus:r=!0,onLoop:i,dense:o=!1,orientation:s=`both`,direction:c,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:d,enableHomeAndEndKeys:f=!1,stopEventPropagation:p=!1,disabledIndices:h,modifierKeys:_=be}=e,[v,y]=Y.useState(0),b=n>1,x=Y.useRef(null),S=a(x,d),C=Y.useRef([]),w=Y.useRef(!1),E=l??v,D=m((e,t=!1)=>{if((u??y)(e),t){let t=C.current[e];q(x.current,t,c,s)}}),O=m(e=>{if(e.size===0||w.current)return;w.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&D(r),q(x.current,n,c,s)}),k=m((e,t,n)=>i?i?.(e,t,n,C):n),j=Y.useMemo(()=>({"aria-orientation":s===`both`?void 0:s,ref:S,onFocus(e){let t=x.current,n=g(e.nativeEvent);!t||n==null||!H(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let a=f?L:ne;if(!a.has(e.key)||Se(e,_)||!x.current)return;let l=c===`rtl`,u=l?K:J,d={horizontal:u,vertical:B,both:u}[s],m=l?J:K,v={horizontal:m,vertical:U,both:m}[s],y=g(e.nativeEvent);if(y!=null&&H(y)&&!ye(y)){let t=y.selectionStart,n=y.selectionEnd,r=y.value??``;if(t==null||e.shiftKey||t!==n||e.key!==v&&t0)return}let S=E,w=re(C,h),O=V(C,h);if(b){let i=t||Array.from({length:C.current.length},()=>({width:1,height:1})),a=F(i,n,o),c=a.findIndex(e=>e!=null&&!W(C.current,e,h)),u=a.reduce((e,t,n)=>t!=null&&!W(C.current,t,h)?n:e,-1);S=a[T(a.map(e=>e==null?null:C.current[e]),{event:e,orientation:s,loopFocus:r,onLoop:k,cols:n,disabledIndices:A([...h||C.current.map((e,t)=>W(C.current,t)?t:void 0),void 0],a),minIndex:c,maxIndex:u,prevIndex:I(E>O?w:E,i,a,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:l})]}let j={horizontal:[u],vertical:[B],both:[u,B]}[s],M={horizontal:[m],vertical:[U],both:[m,U]}[s],N=b?a:{horizontal:f?R:te,vertical:f?z:ie,both:a}[s];f&&(e.key===`Home`?S=w:e.key===`End`&&(S=O)),S===E&&(j.includes(e.key)||M.includes(e.key))&&(r&&S===O&&j.includes(e.key)?(S=w,i&&(S=i(e,E,S,C))):r&&S===w&&M.includes(e.key)?(S=O,i&&(S=i(e,E,S,C))):S=P(C.current,{startingIndex:S,decrement:M.includes(e.key),disabledIndices:h})),S!==E&&!ee(C.current,S)&&(p&&e.stopPropagation(),N.has(e.key)&&e.preventDefault(),D(S,!0),queueMicrotask(()=>{C.current[S]?.focus()}))}}),[n,o,c,h,C,f,E,b,t,r,i,k,S,_,D,s,p]);return Y.useMemo(()=>({props:j,highlightedIndex:E,onHighlightedIndexChange:D,elementsRef:C,disabledIndices:h,onMapChange:O,relayKeyboardEvent:j.onKeyDown}),[j,E,D,C,h,O])}function Se(e,t){for(let n of G.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function Ce(e){let{render:t,className:n,style:r,refs:a=o,props:c=o,state:l=i,stateAttributesMapping:u,highlightedIndex:f,onHighlightedIndexChange:p,orientation:m,dense:h,itemSizes:g,loopFocus:_,onLoop:v,cols:y,enableHomeAndEndKeys:b,onMapChange:x,stopEventPropagation:S=!0,rootRef:C,disabledIndices:w,modifierKeys:T,highlightItemOnHover:E=!1,tag:D=`div`,...k}=e,{props:A,highlightedIndex:j,onHighlightedIndexChange:M,elementsRef:N,onMapChange:P,relayKeyboardEvent:F}=xe({itemSizes:g,cols:y,loopFocus:_,onLoop:v,dense:h,orientation:m,highlightedIndex:f,onHighlightedIndexChange:p,rootRef:C,stopEventPropagation:S,enableHomeAndEndKeys:b,direction:O(),disabledIndices:w,modifierKeys:T}),I=s(D,e,{state:l,ref:a,props:[A,...c,k],stateAttributesMapping:u}),L=Y.useMemo(()=>({highlightedIndex:j,onHighlightedIndexChange:M,highlightItemOnHover:E,relayKeyboardEvent:F}),[j,M,E,F]);return(0,Q.jsx)(d.Provider,{value:L,children:(0,Q.jsx)(oe,{elementsRef:N,onMapChange:e=>{x?.(e),P(e)},children:I})})}var we=Y.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:s,...c}=e,{onValueChange:l,orientation:u,value:d,setTabMap:f,tabActivationDirection:p}=X(),[h,g]=Y.useState(0),[_,v]=Y.useState(null),y=Y.useRef(new Set),b=Y.useRef(new Set),x=Y.useRef(null);Y.useEffect(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{y.current.forEach(e=>{e()})});return x.current=e,_&&e.observe(_),b.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),x.current=null}},[_]);let S=m(e=>(y.current.add(e),()=>{y.current.delete(e)})),C=m(e=>(b.current.add(e),x.current?.observe(e),()=>{b.current.delete(e),x.current?.unobserve(e)})),w=m((e,t)=>{e!==d&&l(e,t)}),T={orientation:u,tabActivationDirection:p},E={"aria-orientation":u===`vertical`?`vertical`:void 0,role:`tablist`},D=Y.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:h,registerIndicatorUpdateListener:S,registerTabResizeObserverElement:C,onTabActivation:w,setHighlightedTabIndex:g,tabsListElement:_}),[n,h,S,C,w,g,_]);return(0,Q.jsx)(pe.Provider,{value:D,children:(0,Q.jsx)(Ce,{render:a,className:r,style:s,state:T,refs:[t,v],props:[E,c],stateAttributesMapping:Z,highlightedIndex:h,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:g,onMapChange:f,disabledIndices:o})})}),$=r();function Te(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`flex flex-col gap-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(le,{className:i,"data-slot":`tabs`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ee(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`inline-flex items-center gap-1 border-b`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(we,{className:i,"data-slot":`tabs-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function De(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`inline-flex items-center justify-center border-b-2 border-transparent px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-selected:border-primary data-selected:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(he,{className:i,"data-slot":`tabs-tab`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Oe(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`focus-visible:outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(ve,{className:i,"data-slot":`tabs-panel`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{De as i,Ee as n,Oe as r,Te as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js b/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js index dbb1fd5ac..8bd36740c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{Wt as ee}from"./auth.js";import{c as te,i as ne,n as re,s as ie,t as ae}from"./select.js";import{t as oe}from"./plus.js";import{t as se}from"./trash-2.js";import{t as ce}from"./button.js";import{Rn as n}from"./index.js";import{a as le,n as ue}from"./zod.js";import{a as r,r as i,t as a}from"./field.js";import{n as de,r as fe,t as pe}from"./collapsible.js";var me=t(),o=e();function he(e){let t=(0,me.c)(147),{form:ee,vpcs:ne,allowedProtocols:he}=e,ve;t[0]===he?ve=t[1]:(ve=he===void 0?[`HTTP`,`HTTPS`,`TCP`,`UDP`,`TLS`,`TCP_UDP`]:he,t[0]=he,t[1]=ve);let ye=ve,{control:s,register:c,setValue:l,getValues:u,formState:be}=ee,{errors:d}=be,xe;t[2]===s?xe=t[3]:(xe={control:s,name:`tags`},t[2]=s,t[3]=xe);let Se=le(xe),Ce;t[4]===s?Ce=t[5]:(Ce={control:s,name:`protocol`},t[4]=s,t[5]=Ce);let we=le(Ce),f=we===`HTTP`||we===`HTTPS`,Te;t[6]===l?Te=t[7]:(Te=e=>{e&&(l(`protocol`,e),l(`healthCheck.protocol`,e===`HTTP`||e===`HTTPS`?`HTTP`:`TCP`))},t[6]=l,t[7]=Te);let Ee=Te,De;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-name`,children:`Name`})}),t[8]=De):De=t[8];let Oe=!!d.name,p;t[9]===c?p=t[10]:(p=c(`name`),t[9]=c,t[10]=p);let m;t[11]!==Oe||t[12]!==p?(m=(0,o.jsx)(n,{"aria-invalid":Oe,id:`tg-name`,placeholder:`my-target-group`,...p}),t[11]=Oe,t[12]=p,t[13]=m):m=t[13];let h;t[14]===d.name?h=t[15]:(h=(0,o.jsx)(i,{errors:[d.name]}),t[14]=d.name,t[15]=h);let g;t[16]!==m||t[17]!==h?(g=(0,o.jsxs)(a,{children:[De,m,h]}),t[16]=m,t[17]=h,t[18]=g):g=t[18];let ke;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-protocol`,children:`Protocol`})}),t[19]=ke):ke=t[19];let _;t[20]!==ye||t[21]!==Ee?(_=e=>{let{field:t}=e;return(0,o.jsxs)(ae,{onValueChange:Ee,value:t.value,children:[(0,o.jsx)(ie,{className:`w-full`,id:`tg-protocol`,children:(0,o.jsx)(te,{})}),(0,o.jsx)(re,{children:ye.map(_e)})]})},t[20]=ye,t[21]=Ee,t[22]=_):_=t[22];let v;t[23]!==s||t[24]!==_?(v=(0,o.jsxs)(a,{children:[ke,(0,o.jsx)(ue,{control:s,name:`protocol`,render:_})]}),t[23]=s,t[24]=_,t[25]=v):v=t[25];let Ae;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-port`,children:`Port`})}),t[26]=Ae):Ae=t[26];let je=!!d.port,y;t[27]===c?y=t[28]:(y=c(`port`,{valueAsNumber:!0}),t[27]=c,t[28]=y);let b;t[29]!==je||t[30]!==y?(b=(0,o.jsx)(n,{"aria-invalid":je,id:`tg-port`,inputMode:`numeric`,placeholder:`80`,type:`number`,...y}),t[29]=je,t[30]=y,t[31]=b):b=t[31];let x;t[32]===d.port?x=t[33]:(x=(0,o.jsx)(i,{errors:[d.port]}),t[32]=d.port,t[33]=x);let S;t[34]!==b||t[35]!==x?(S=(0,o.jsxs)(a,{children:[Ae,b,x]}),t[34]=b,t[35]=x,t[36]=S):S=t[36];let Me;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-vpc`,children:`VPC`})}),t[37]=Me):Me=t[37];let C;t[38]!==d.vpcId||t[39]!==ne?(C=e=>{let{field:t}=e;return(0,o.jsxs)(ae,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,o.jsx)(ie,{"aria-invalid":!!d.vpcId,className:`w-full`,id:`tg-vpc`,children:(0,o.jsx)(te,{placeholder:`Select VPC`})}),(0,o.jsx)(re,{children:ne.map(ge)})]})},t[38]=d.vpcId,t[39]=ne,t[40]=C):C=t[40];let w;t[41]!==s||t[42]!==C?(w=(0,o.jsx)(ue,{control:s,name:`vpcId`,render:C}),t[41]=s,t[42]=C,t[43]=w):w=t[43];let T;t[44]===d.vpcId?T=t[45]:(T=(0,o.jsx)(i,{errors:[d.vpcId]}),t[44]=d.vpcId,t[45]=T);let E;t[46]!==w||t[47]!==T?(E=(0,o.jsxs)(a,{children:[Me,w,T]}),t[46]=w,t[47]=T,t[48]=E):E=t[48];let Ne;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,o.jsx)(fe,{className:`text-left text-sm font-medium text-muted-foreground hover:text-foreground`,render:(0,o.jsx)(`button`,{"aria-label":`Health check settings`,type:`button`}),children:`Health check settings`}),t[49]=Ne):Ne=t[49];let D;t[50]!==d.healthCheck?.path||t[51]!==f||t[52]!==c?(D=f&&(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-path`,children:`Path`})}),(0,o.jsx)(n,{"aria-invalid":!!d.healthCheck?.path,id:`hc-path`,placeholder:`/`,...c(`healthCheck.path`)}),(0,o.jsx)(i,{errors:[d.healthCheck?.path]})]}),t[50]=d.healthCheck?.path,t[51]=f,t[52]=c,t[53]=D):D=t[53];let Pe;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-port`,children:`Port`})}),t[54]=Pe):Pe=t[54];let Fe=!!d.healthCheck?.port,O;t[55]===c?O=t[56]:(O=c(`healthCheck.port`),t[55]=c,t[56]=O);let k;t[57]!==Fe||t[58]!==O?(k=(0,o.jsx)(n,{"aria-invalid":Fe,id:`hc-port`,placeholder:`traffic-port or numeric`,...O}),t[57]=Fe,t[58]=O,t[59]=k):k=t[59];let Ie=d.healthCheck?.port,A;t[60]===Ie?A=t[61]:(A=(0,o.jsx)(i,{errors:[Ie]}),t[60]=Ie,t[61]=A);let j;t[62]!==k||t[63]!==A?(j=(0,o.jsxs)(a,{children:[Pe,k,A]}),t[62]=k,t[63]=A,t[64]=j):j=t[64];let Le;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-interval`,children:`Interval (seconds)`})}),t[65]=Le):Le=t[65];let Re=!!d.healthCheck?.intervalSeconds,M;t[66]===c?M=t[67]:(M=c(`healthCheck.intervalSeconds`,{valueAsNumber:!0}),t[66]=c,t[67]=M);let N;t[68]!==Re||t[69]!==M?(N=(0,o.jsx)(n,{"aria-invalid":Re,id:`hc-interval`,inputMode:`numeric`,type:`number`,...M}),t[68]=Re,t[69]=M,t[70]=N):N=t[70];let ze=d.healthCheck?.intervalSeconds,P;t[71]===ze?P=t[72]:(P=(0,o.jsx)(i,{errors:[ze]}),t[71]=ze,t[72]=P);let F;t[73]!==N||t[74]!==P?(F=(0,o.jsxs)(a,{children:[Le,N,P]}),t[73]=N,t[74]=P,t[75]=F):F=t[75];let Be;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-timeout`,children:`Timeout (seconds)`})}),t[76]=Be):Be=t[76];let Ve=!!d.healthCheck?.timeoutSeconds,I;t[77]===c?I=t[78]:(I=c(`healthCheck.timeoutSeconds`,{valueAsNumber:!0}),t[77]=c,t[78]=I);let L;t[79]!==Ve||t[80]!==I?(L=(0,o.jsx)(n,{"aria-invalid":Ve,id:`hc-timeout`,inputMode:`numeric`,type:`number`,...I}),t[79]=Ve,t[80]=I,t[81]=L):L=t[81];let He=d.healthCheck?.timeoutSeconds,R;t[82]===He?R=t[83]:(R=(0,o.jsx)(i,{errors:[He]}),t[82]=He,t[83]=R);let z;t[84]!==L||t[85]!==R?(z=(0,o.jsxs)(a,{children:[Be,L,R]}),t[84]=L,t[85]=R,t[86]=z):z=t[86];let Ue;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-healthy`,children:`Healthy threshold`})}),t[87]=Ue):Ue=t[87];let We=!!d.healthCheck?.healthyThresholdCount,B;t[88]===c?B=t[89]:(B=c(`healthCheck.healthyThresholdCount`,{valueAsNumber:!0}),t[88]=c,t[89]=B);let V;t[90]!==We||t[91]!==B?(V=(0,o.jsx)(n,{"aria-invalid":We,id:`hc-healthy`,inputMode:`numeric`,type:`number`,...B}),t[90]=We,t[91]=B,t[92]=V):V=t[92];let Ge=d.healthCheck?.healthyThresholdCount,H;t[93]===Ge?H=t[94]:(H=(0,o.jsx)(i,{errors:[Ge]}),t[93]=Ge,t[94]=H);let U;t[95]!==V||t[96]!==H?(U=(0,o.jsxs)(a,{children:[Ue,V,H]}),t[95]=V,t[96]=H,t[97]=U):U=t[97];let Ke;t[98]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-unhealthy`,children:`Unhealthy threshold`})}),t[98]=Ke):Ke=t[98];let qe=!!d.healthCheck?.unhealthyThresholdCount,W;t[99]===c?W=t[100]:(W=c(`healthCheck.unhealthyThresholdCount`,{valueAsNumber:!0}),t[99]=c,t[100]=W);let G;t[101]!==qe||t[102]!==W?(G=(0,o.jsx)(n,{"aria-invalid":qe,id:`hc-unhealthy`,inputMode:`numeric`,type:`number`,...W}),t[101]=qe,t[102]=W,t[103]=G):G=t[103];let Je=d.healthCheck?.unhealthyThresholdCount,K;t[104]===Je?K=t[105]:(K=(0,o.jsx)(i,{errors:[Je]}),t[104]=Je,t[105]=K);let q;t[106]!==G||t[107]!==K?(q=(0,o.jsxs)(a,{children:[Ke,G,K]}),t[106]=G,t[107]=K,t[108]=q):q=t[108];let J;t[109]!==d.healthCheck?.matcher||t[110]!==f||t[111]!==c?(J=f&&(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-matcher`,children:`Matcher (HTTP codes)`})}),(0,o.jsx)(n,{"aria-invalid":!!d.healthCheck?.matcher,id:`hc-matcher`,placeholder:`200 or 200-299 or 200,201`,...c(`healthCheck.matcher`)}),(0,o.jsx)(i,{errors:[d.healthCheck?.matcher]})]}),t[109]=d.healthCheck?.matcher,t[110]=f,t[111]=c,t[112]=J):J=t[112];let Y;t[113]!==D||t[114]!==j||t[115]!==F||t[116]!==z||t[117]!==U||t[118]!==q||t[119]!==J?(Y=(0,o.jsxs)(pe,{children:[Ne,(0,o.jsxs)(de,{className:`mt-3 space-y-4 border-l-2 border-muted pl-4`,children:[D,j,F,z,U,q,J]})]}),t[113]=D,t[114]=j,t[115]=F,t[116]=z,t[117]=U,t[118]=q,t[119]=J,t[120]=Y):Y=t[120];let Ye;t[121]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,o.jsx)(r,{children:`Tags`}),t[121]=Ye):Ye=t[121];let X;if(t[122]!==u||t[123]!==c||t[124]!==l||t[125]!==Se){let e;t[127]!==u||t[128]!==c||t[129]!==l?(e=(e,t)=>(0,o.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,o.jsx)(n,{placeholder:`Key`,...c(`tags.${t}.key`)}),(0,o.jsx)(n,{placeholder:`Value`,...c(`tags.${t}.value`)}),(0,o.jsx)(ce,{onClick:()=>l(`tags`,u(`tags`).filter((e,ee)=>ee!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,o.jsx)(se,{className:`size-3.5`})})]},t),t[127]=u,t[128]=c,t[129]=l,t[130]=e):e=t[130],X=Se.map(e),t[122]=u,t[123]=c,t[124]=l,t[125]=Se,t[126]=X}else X=t[126];let Z;t[131]!==u||t[132]!==l?(Z=()=>l(`tags`,[...u(`tags`),{key:``,value:``}]),t[131]=u,t[132]=l,t[133]=Z):Z=t[133];let Xe;t[134]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,o.jsx)(oe,{className:`size-3.5`}),t[134]=Xe):Xe=t[134];let Q;t[135]===Z?Q=t[136]:(Q=(0,o.jsxs)(ce,{onClick:Z,size:`sm`,type:`button`,variant:`outline`,children:[Xe,`Add tag`]}),t[135]=Z,t[136]=Q);let $;t[137]!==X||t[138]!==Q?($=(0,o.jsxs)(a,{children:[Ye,(0,o.jsxs)(`div`,{className:`space-y-2`,children:[X,Q]})]}),t[137]=X,t[138]=Q,t[139]=$):$=t[139];let Ze;return t[140]!==g||t[141]!==v||t[142]!==S||t[143]!==E||t[144]!==Y||t[145]!==$?(Ze=(0,o.jsxs)(o.Fragment,{children:[g,v,S,E,Y,$]}),t[140]=g,t[141]=v,t[142]=S,t[143]=E,t[144]=Y,t[145]=$,t[146]=Ze):Ze=t[146],Ze}function ge(e){let t=ee(e.Tags);return(0,o.jsx)(ne,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function _e(e){return(0,o.jsx)(ne,{value:e,children:e},e)}export{he as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ut as ee}from"./auth.js";import{c as te,i as ne,n as re,s as ie,t as ae}from"./select.js";import{t as oe}from"./plus.js";import{t as se}from"./trash-2.js";import{t as ce}from"./button.js";import{Rn as n}from"./index.js";import{a as le,n as ue}from"./zod.js";import{a as r,r as i,t as a}from"./field.js";import{n as de,r as fe,t as pe}from"./collapsible.js";var me=t(),o=e();function he(e){let t=(0,me.c)(147),{form:ee,vpcs:ne,allowedProtocols:he}=e,ve;t[0]===he?ve=t[1]:(ve=he===void 0?[`HTTP`,`HTTPS`,`TCP`,`UDP`,`TLS`,`TCP_UDP`]:he,t[0]=he,t[1]=ve);let ye=ve,{control:s,register:c,setValue:l,getValues:u,formState:be}=ee,{errors:d}=be,xe;t[2]===s?xe=t[3]:(xe={control:s,name:`tags`},t[2]=s,t[3]=xe);let Se=le(xe),Ce;t[4]===s?Ce=t[5]:(Ce={control:s,name:`protocol`},t[4]=s,t[5]=Ce);let we=le(Ce),f=we===`HTTP`||we===`HTTPS`,Te;t[6]===l?Te=t[7]:(Te=e=>{e&&(l(`protocol`,e),l(`healthCheck.protocol`,e===`HTTP`||e===`HTTPS`?`HTTP`:`TCP`))},t[6]=l,t[7]=Te);let Ee=Te,De;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-name`,children:`Name`})}),t[8]=De):De=t[8];let Oe=!!d.name,p;t[9]===c?p=t[10]:(p=c(`name`),t[9]=c,t[10]=p);let m;t[11]!==Oe||t[12]!==p?(m=(0,o.jsx)(n,{"aria-invalid":Oe,id:`tg-name`,placeholder:`my-target-group`,...p}),t[11]=Oe,t[12]=p,t[13]=m):m=t[13];let h;t[14]===d.name?h=t[15]:(h=(0,o.jsx)(i,{errors:[d.name]}),t[14]=d.name,t[15]=h);let g;t[16]!==m||t[17]!==h?(g=(0,o.jsxs)(a,{children:[De,m,h]}),t[16]=m,t[17]=h,t[18]=g):g=t[18];let ke;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-protocol`,children:`Protocol`})}),t[19]=ke):ke=t[19];let _;t[20]!==ye||t[21]!==Ee?(_=e=>{let{field:t}=e;return(0,o.jsxs)(ae,{onValueChange:Ee,value:t.value,children:[(0,o.jsx)(ie,{className:`w-full`,id:`tg-protocol`,children:(0,o.jsx)(te,{})}),(0,o.jsx)(re,{children:ye.map(_e)})]})},t[20]=ye,t[21]=Ee,t[22]=_):_=t[22];let v;t[23]!==s||t[24]!==_?(v=(0,o.jsxs)(a,{children:[ke,(0,o.jsx)(ue,{control:s,name:`protocol`,render:_})]}),t[23]=s,t[24]=_,t[25]=v):v=t[25];let Ae;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-port`,children:`Port`})}),t[26]=Ae):Ae=t[26];let je=!!d.port,y;t[27]===c?y=t[28]:(y=c(`port`,{valueAsNumber:!0}),t[27]=c,t[28]=y);let b;t[29]!==je||t[30]!==y?(b=(0,o.jsx)(n,{"aria-invalid":je,id:`tg-port`,inputMode:`numeric`,placeholder:`80`,type:`number`,...y}),t[29]=je,t[30]=y,t[31]=b):b=t[31];let x;t[32]===d.port?x=t[33]:(x=(0,o.jsx)(i,{errors:[d.port]}),t[32]=d.port,t[33]=x);let S;t[34]!==b||t[35]!==x?(S=(0,o.jsxs)(a,{children:[Ae,b,x]}),t[34]=b,t[35]=x,t[36]=S):S=t[36];let Me;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-vpc`,children:`VPC`})}),t[37]=Me):Me=t[37];let C;t[38]!==d.vpcId||t[39]!==ne?(C=e=>{let{field:t}=e;return(0,o.jsxs)(ae,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,o.jsx)(ie,{"aria-invalid":!!d.vpcId,className:`w-full`,id:`tg-vpc`,children:(0,o.jsx)(te,{placeholder:`Select VPC`})}),(0,o.jsx)(re,{children:ne.map(ge)})]})},t[38]=d.vpcId,t[39]=ne,t[40]=C):C=t[40];let w;t[41]!==s||t[42]!==C?(w=(0,o.jsx)(ue,{control:s,name:`vpcId`,render:C}),t[41]=s,t[42]=C,t[43]=w):w=t[43];let T;t[44]===d.vpcId?T=t[45]:(T=(0,o.jsx)(i,{errors:[d.vpcId]}),t[44]=d.vpcId,t[45]=T);let E;t[46]!==w||t[47]!==T?(E=(0,o.jsxs)(a,{children:[Me,w,T]}),t[46]=w,t[47]=T,t[48]=E):E=t[48];let Ne;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,o.jsx)(fe,{className:`text-left text-sm font-medium text-muted-foreground hover:text-foreground`,render:(0,o.jsx)(`button`,{"aria-label":`Health check settings`,type:`button`}),children:`Health check settings`}),t[49]=Ne):Ne=t[49];let D;t[50]!==d.healthCheck?.path||t[51]!==f||t[52]!==c?(D=f&&(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-path`,children:`Path`})}),(0,o.jsx)(n,{"aria-invalid":!!d.healthCheck?.path,id:`hc-path`,placeholder:`/`,...c(`healthCheck.path`)}),(0,o.jsx)(i,{errors:[d.healthCheck?.path]})]}),t[50]=d.healthCheck?.path,t[51]=f,t[52]=c,t[53]=D):D=t[53];let Pe;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-port`,children:`Port`})}),t[54]=Pe):Pe=t[54];let Fe=!!d.healthCheck?.port,O;t[55]===c?O=t[56]:(O=c(`healthCheck.port`),t[55]=c,t[56]=O);let k;t[57]!==Fe||t[58]!==O?(k=(0,o.jsx)(n,{"aria-invalid":Fe,id:`hc-port`,placeholder:`traffic-port or numeric`,...O}),t[57]=Fe,t[58]=O,t[59]=k):k=t[59];let Ie=d.healthCheck?.port,A;t[60]===Ie?A=t[61]:(A=(0,o.jsx)(i,{errors:[Ie]}),t[60]=Ie,t[61]=A);let j;t[62]!==k||t[63]!==A?(j=(0,o.jsxs)(a,{children:[Pe,k,A]}),t[62]=k,t[63]=A,t[64]=j):j=t[64];let Le;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-interval`,children:`Interval (seconds)`})}),t[65]=Le):Le=t[65];let Re=!!d.healthCheck?.intervalSeconds,M;t[66]===c?M=t[67]:(M=c(`healthCheck.intervalSeconds`,{valueAsNumber:!0}),t[66]=c,t[67]=M);let N;t[68]!==Re||t[69]!==M?(N=(0,o.jsx)(n,{"aria-invalid":Re,id:`hc-interval`,inputMode:`numeric`,type:`number`,...M}),t[68]=Re,t[69]=M,t[70]=N):N=t[70];let ze=d.healthCheck?.intervalSeconds,P;t[71]===ze?P=t[72]:(P=(0,o.jsx)(i,{errors:[ze]}),t[71]=ze,t[72]=P);let F;t[73]!==N||t[74]!==P?(F=(0,o.jsxs)(a,{children:[Le,N,P]}),t[73]=N,t[74]=P,t[75]=F):F=t[75];let Be;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-timeout`,children:`Timeout (seconds)`})}),t[76]=Be):Be=t[76];let Ve=!!d.healthCheck?.timeoutSeconds,I;t[77]===c?I=t[78]:(I=c(`healthCheck.timeoutSeconds`,{valueAsNumber:!0}),t[77]=c,t[78]=I);let L;t[79]!==Ve||t[80]!==I?(L=(0,o.jsx)(n,{"aria-invalid":Ve,id:`hc-timeout`,inputMode:`numeric`,type:`number`,...I}),t[79]=Ve,t[80]=I,t[81]=L):L=t[81];let He=d.healthCheck?.timeoutSeconds,R;t[82]===He?R=t[83]:(R=(0,o.jsx)(i,{errors:[He]}),t[82]=He,t[83]=R);let z;t[84]!==L||t[85]!==R?(z=(0,o.jsxs)(a,{children:[Be,L,R]}),t[84]=L,t[85]=R,t[86]=z):z=t[86];let Ue;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-healthy`,children:`Healthy threshold`})}),t[87]=Ue):Ue=t[87];let We=!!d.healthCheck?.healthyThresholdCount,B;t[88]===c?B=t[89]:(B=c(`healthCheck.healthyThresholdCount`,{valueAsNumber:!0}),t[88]=c,t[89]=B);let V;t[90]!==We||t[91]!==B?(V=(0,o.jsx)(n,{"aria-invalid":We,id:`hc-healthy`,inputMode:`numeric`,type:`number`,...B}),t[90]=We,t[91]=B,t[92]=V):V=t[92];let Ge=d.healthCheck?.healthyThresholdCount,H;t[93]===Ge?H=t[94]:(H=(0,o.jsx)(i,{errors:[Ge]}),t[93]=Ge,t[94]=H);let U;t[95]!==V||t[96]!==H?(U=(0,o.jsxs)(a,{children:[Ue,V,H]}),t[95]=V,t[96]=H,t[97]=U):U=t[97];let Ke;t[98]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-unhealthy`,children:`Unhealthy threshold`})}),t[98]=Ke):Ke=t[98];let qe=!!d.healthCheck?.unhealthyThresholdCount,W;t[99]===c?W=t[100]:(W=c(`healthCheck.unhealthyThresholdCount`,{valueAsNumber:!0}),t[99]=c,t[100]=W);let G;t[101]!==qe||t[102]!==W?(G=(0,o.jsx)(n,{"aria-invalid":qe,id:`hc-unhealthy`,inputMode:`numeric`,type:`number`,...W}),t[101]=qe,t[102]=W,t[103]=G):G=t[103];let Je=d.healthCheck?.unhealthyThresholdCount,K;t[104]===Je?K=t[105]:(K=(0,o.jsx)(i,{errors:[Je]}),t[104]=Je,t[105]=K);let q;t[106]!==G||t[107]!==K?(q=(0,o.jsxs)(a,{children:[Ke,G,K]}),t[106]=G,t[107]=K,t[108]=q):q=t[108];let J;t[109]!==d.healthCheck?.matcher||t[110]!==f||t[111]!==c?(J=f&&(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-matcher`,children:`Matcher (HTTP codes)`})}),(0,o.jsx)(n,{"aria-invalid":!!d.healthCheck?.matcher,id:`hc-matcher`,placeholder:`200 or 200-299 or 200,201`,...c(`healthCheck.matcher`)}),(0,o.jsx)(i,{errors:[d.healthCheck?.matcher]})]}),t[109]=d.healthCheck?.matcher,t[110]=f,t[111]=c,t[112]=J):J=t[112];let Y;t[113]!==D||t[114]!==j||t[115]!==F||t[116]!==z||t[117]!==U||t[118]!==q||t[119]!==J?(Y=(0,o.jsxs)(pe,{children:[Ne,(0,o.jsxs)(de,{className:`mt-3 space-y-4 border-l-2 border-muted pl-4`,children:[D,j,F,z,U,q,J]})]}),t[113]=D,t[114]=j,t[115]=F,t[116]=z,t[117]=U,t[118]=q,t[119]=J,t[120]=Y):Y=t[120];let Ye;t[121]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,o.jsx)(r,{children:`Tags`}),t[121]=Ye):Ye=t[121];let X;if(t[122]!==u||t[123]!==c||t[124]!==l||t[125]!==Se){let e;t[127]!==u||t[128]!==c||t[129]!==l?(e=(e,t)=>(0,o.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,o.jsx)(n,{placeholder:`Key`,...c(`tags.${t}.key`)}),(0,o.jsx)(n,{placeholder:`Value`,...c(`tags.${t}.value`)}),(0,o.jsx)(ce,{onClick:()=>l(`tags`,u(`tags`).filter((e,ee)=>ee!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,o.jsx)(se,{className:`size-3.5`})})]},t),t[127]=u,t[128]=c,t[129]=l,t[130]=e):e=t[130],X=Se.map(e),t[122]=u,t[123]=c,t[124]=l,t[125]=Se,t[126]=X}else X=t[126];let Z;t[131]!==u||t[132]!==l?(Z=()=>l(`tags`,[...u(`tags`),{key:``,value:``}]),t[131]=u,t[132]=l,t[133]=Z):Z=t[133];let Xe;t[134]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,o.jsx)(oe,{className:`size-3.5`}),t[134]=Xe):Xe=t[134];let Q;t[135]===Z?Q=t[136]:(Q=(0,o.jsxs)(ce,{onClick:Z,size:`sm`,type:`button`,variant:`outline`,children:[Xe,`Add tag`]}),t[135]=Z,t[136]=Q);let $;t[137]!==X||t[138]!==Q?($=(0,o.jsxs)(a,{children:[Ye,(0,o.jsxs)(`div`,{className:`space-y-2`,children:[X,Q]})]}),t[137]=X,t[138]=Q,t[139]=$):$=t[139];let Ze;return t[140]!==g||t[141]!==v||t[142]!==S||t[143]!==E||t[144]!==Y||t[145]!==$?(Ze=(0,o.jsxs)(o.Fragment,{children:[g,v,S,E,Y,$]}),t[140]=g,t[141]=v,t[142]=S,t[143]=E,t[144]=Y,t[145]=$,t[146]=Ze):Ze=t[146],Ze}function ge(e){let t=ee(e.Tags);return(0,o.jsx)(ne,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function _e(e){return(0,o.jsx)(ne,{value:e,children:e},e)}export{he as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/textarea.js b/spinifex/services/spinifexui/frontend/dist/assets/textarea.js index fe79fba95..61da33bba 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/textarea.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/textarea.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{Rt as n}from"./auth.js";var r=t(),i=e();function a(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`flex field-sizing-content min-h-16 w-full resize-none rounded-md border border-input bg-input/20 px-2 py-2 text-sm transition-colors outline-none placeholder:text-muted-foreground autofill:[-webkit-text-fill-color:var(--color-foreground)] autofill:[transition:background-color_9999s_ease-in-out_0s] focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`textarea`,{className:s,"data-slot":`textarea`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}export{a as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Lt as n}from"./auth.js";var r=t(),i=e();function a(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`flex field-sizing-content min-h-16 w-full resize-none rounded-md border border-input bg-input/20 px-2 py-2 text-sm transition-colors outline-none placeholder:text-muted-foreground autofill:[-webkit-text-fill-color:var(--color-foreground)] autofill:[transition:background-color_9999s_ease-in-out_0s] focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`textarea`,{className:s,"data-slot":`textarea`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js b/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js index 584598cbf..05b20bd5d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{p as a,s as o,vr as s,y as c}from"./awsClient.js";import{Ct as l,Ht as u,Pt as d,Vt as f,dt as p}from"./auth.js";import{t as m}from"./download.js";import{t as h}from"./trash-2.js";import{t as g}from"./button.js";import{M as _}from"./tslib.es6.js";import{a as v,i as y,n as b}from"./s3.js";import{Nr as x}from"./index.js";import{t as S}from"./delete-confirmation-dialog.js";var C=x(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),w=x(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),T=x(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),E=e=>(e,t)=>async n=>{let r=await e(n),{response:i}=r;if(d.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{_(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return r},D={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},O=e=>({applyToStack:t=>{t.addRelativeTo(E(e),D)}}),k=class extends l.classBuilder().ep({...c,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions()),v(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),y(n),O(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(a).build(){},A=r(),j=e();function M(e){let t=(0,A.c)(9),{folderName:n,fullPrefix:r,bucketName:i}=e,a;t[0]!==i||t[1]!==r?(a={bucket:i,_splat:r},t[0]=i,t[1]=r,t[2]=a):a=t[2];let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,j.jsx)(w,{className:`size-5 text-muted-foreground`}),t[3]=o):o=t[3];let c;t[4]===n?c=t[5]:(c=(0,j.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=c);let l;return t[6]!==a||t[7]!==c?(l=(0,j.jsxs)(s,{className:`flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,params:a,to:`/s3/ls/$bucket/$`,children:[o,c]}),t[6]=a,t[7]=c,t[8]=l):l=t[8],l}var N=t(n(),1);function P({object:e,bucketName:t,displayName:n,fullKey:r}){let[a,s]=(0,N.useState)(!1),[c,l]=(0,N.useState)(null),d=b();async function p(){l(null);try{let e=new k({Bucket:t,Key:r}),i=await o().send(e);if(i.Body){let e=await i.Body.transformToByteArray(),t=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=t,r.download=n,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(t)}}catch(e){l(Error(`Failed to download object`,{cause:e}))}}async function g(){try{await d.mutateAsync({bucket:t,key:r})}finally{s(!1)}}return(0,j.jsxs)(`div`,{children:[d.error&&(0,j.jsx)(i,{error:d.error,msg:`Failed to delete object`}),c&&(0,j.jsx)(i,{error:c,msg:`Failed to download object`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between rounded-lg border bg-card p-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(C,{className:`size-5 text-muted-foreground`}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`font-medium`,children:n}),e.LastModified&&(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,f(e.LastModified)]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:u(e.Size??0)}),(0,j.jsx)(`button`,{"aria-label":`Download ${n}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:p,type:`button`,children:(0,j.jsx)(m,{className:`size-4`})}),(0,j.jsx)(`button`,{"aria-label":`Delete ${n}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>s(!0),type:`button`,children:(0,j.jsx)(h,{className:`size-4`})})]}),(0,j.jsx)(S,{description:(0,j.jsxs)(j.Fragment,{children:[`Are you sure you want to delete `,(0,j.jsx)(`strong`,{children:n}),`? This action cannot be undone.`]}),isPending:d.isPending,onConfirm:g,onOpenChange:s,open:a,title:`Delete Object`})]})]},e.Key)}function F({bucket:e,prefix:t=``,isPending:n,onUpload:r}){let i=(0,N.useRef)(null);async function a(n){let a=n.target.files;if(!(!a||a.length===0))try{await Promise.all([...a].map(async n=>await r({bucket:e,key:`${t}${n.name}`,file:n})))}finally{i.current&&(i.current.value=``)}}return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`input`,{accept:`*/*`,"aria-label":`Choose files to upload`,className:`hidden`,multiple:!0,onChange:a,ref:i,type:`file`}),(0,j.jsxs)(g,{disabled:n,onClick:()=>i.current?.click(),size:`sm`,children:[(0,j.jsx)(T,{className:`mr-2 size-4`}),n?`Uploading…`:`Upload Files`]})]})}export{P as n,M as r,F as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./error-banner.js";import{p as a,s as o,vr as s,y as c}from"./awsClient.js";import{Bt as l,Nt as u,St as d,Vt as f,ut as p}from"./auth.js";import{t as m}from"./download.js";import{t as h}from"./trash-2.js";import{t as g}from"./button.js";import{M as _}from"./tslib.es6.js";import{a as v,i as y,n as b}from"./s3.js";import{Nr as x}from"./index.js";import{t as S}from"./delete-confirmation-dialog.js";var C=x(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),w=x(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),T=x(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),E=e=>(e,t)=>async n=>{let r=await e(n),{response:i}=r;if(u.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{_(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return r},D={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},O=e=>({applyToStack:t=>{t.addRelativeTo(E(e),D)}}),k=class extends d.classBuilder().ep({...c,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions()),v(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),y(n),O(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(a).build(){},A=r(),j=e();function M(e){let t=(0,A.c)(9),{folderName:n,fullPrefix:r,bucketName:i}=e,a;t[0]!==i||t[1]!==r?(a={bucket:i,_splat:r},t[0]=i,t[1]=r,t[2]=a):a=t[2];let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,j.jsx)(w,{className:`size-5 text-muted-foreground`}),t[3]=o):o=t[3];let c;t[4]===n?c=t[5]:(c=(0,j.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=c);let l;return t[6]!==a||t[7]!==c?(l=(0,j.jsxs)(s,{className:`flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,params:a,to:`/s3/ls/$bucket/$`,children:[o,c]}),t[6]=a,t[7]=c,t[8]=l):l=t[8],l}var N=t(n(),1);function P({object:e,bucketName:t,displayName:n,fullKey:r}){let[a,s]=(0,N.useState)(!1),[c,u]=(0,N.useState)(null),d=b();async function p(){u(null);try{let e=new k({Bucket:t,Key:r}),i=await o().send(e);if(i.Body){let e=await i.Body.transformToByteArray(),t=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=t,r.download=n,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(t)}}catch(e){u(Error(`Failed to download object`,{cause:e}))}}async function g(){try{await d.mutateAsync({bucket:t,key:r})}finally{s(!1)}}return(0,j.jsxs)(`div`,{children:[d.error&&(0,j.jsx)(i,{error:d.error,msg:`Failed to delete object`}),c&&(0,j.jsx)(i,{error:c,msg:`Failed to download object`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between rounded-lg border bg-card p-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(C,{className:`size-5 text-muted-foreground`}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`font-medium`,children:n}),e.LastModified&&(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,l(e.LastModified)]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:f(e.Size??0)}),(0,j.jsx)(`button`,{"aria-label":`Download ${n}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:p,type:`button`,children:(0,j.jsx)(m,{className:`size-4`})}),(0,j.jsx)(`button`,{"aria-label":`Delete ${n}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>s(!0),type:`button`,children:(0,j.jsx)(h,{className:`size-4`})})]}),(0,j.jsx)(S,{description:(0,j.jsxs)(j.Fragment,{children:[`Are you sure you want to delete `,(0,j.jsx)(`strong`,{children:n}),`? This action cannot be undone.`]}),isPending:d.isPending,onConfirm:g,onOpenChange:s,open:a,title:`Delete Object`})]})]},e.Key)}function F({bucket:e,prefix:t=``,isPending:n,onUpload:r}){let i=(0,N.useRef)(null);async function a(n){let a=n.target.files;if(!(!a||a.length===0))try{await Promise.all([...a].map(async n=>await r({bucket:e,key:`${t}${n.name}`,file:n})))}finally{i.current&&(i.current.value=``)}}return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`input`,{accept:`*/*`,"aria-label":`Choose files to upload`,className:`hidden`,multiple:!0,onChange:a,ref:i,type:`file`}),(0,j.jsxs)(g,{disabled:n,onClick:()=>i.current?.click(),size:`sm`,children:[(0,j.jsx)(T,{className:`mr-2 size-4`}),n?`Uploading…`:`Upload Files`]})]})}export{P as n,M as r,F as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/zod.js b/spinifex/services/spinifexui/frontend/dist/assets/zod.js index 0880c9aab..7bb93e02a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/zod.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/zod.js @@ -1 +1 @@ -import{o as e,r as t}from"./compiler-runtime.js";import{h as n,m as r,p as i}from"./auth.js";var a=e(t(),1),o=e=>e.type===`checkbox`,s=e=>e instanceof Date,c=e=>e==null,l=e=>typeof e==`object`,u=e=>!c(e)&&!Array.isArray(e)&&l(e)&&!s(e),d=e=>u(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,f=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),p=e=>{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty(`isPrototypeOf`)},m=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function h(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(m&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(u(e)&&p(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=h(e[t]));return r}var g={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},_={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},v={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},y=`form`,b=`root`,x=[`__proto__`,`constructor`,`prototype`],S=e=>/^\w*$/.test(e),C=e=>e===void 0,w=e=>e.split(/[.[\]'"]/g).filter(Boolean),T=(e,t,n)=>{if(!t||!u(e))return n;let r=S(t)?[t]:w(t);if(r.some(e=>x.includes(e)))return n;let i=r.reduce((e,t)=>c(e)?void 0:e[t],e);return C(i)||i===e?C(e[t])?n:e[t]:i},E=e=>typeof e==`boolean`,D=e=>typeof e==`function`,O=(e,t,n)=>{let r=-1,i=S(t)?[t]:w(t),a=i.length,o=a-1;for(;++ra.useContext(k),j=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==_.all&&(t._proxyFormState[i]=!r||_.all),n&&(n[i]=!0),e[i]}});return i},M=m?a.useLayoutEffect:a.useEffect;function N(e){let t=A(),{control:n=t,disabled:r,name:i,exact:o}=e||{},[s,c]=a.useState(()=>({...n._formState,defaultValues:n._defaultValues})),l=a.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return M(()=>n._subscribe({name:i,formState:l.current,exact:o,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}}),[i,r,o]),a.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),a.useMemo(()=>j(s,n,l.current,!1),[s,n])}var P=e=>typeof e==`string`,F=(e,t,n,r,i)=>P(e)?(r&&t.watch.add(e),T(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),T(n,e))):(r&&(t.watchAll=!0),n),I=e=>c(e)||!l(e);function L(e,t,n=new WeakSet){if(e===t)return!0;if(I(e)||I(t))return Object.is(e,t);if(s(e)&&s(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(s(r)&&s(e)||(u(r)||Array.isArray(r))&&(u(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function ee(e){let t=A(),{control:n=t,name:r,defaultValue:i,disabled:o,exact:s,compute:c}=e||{},l=a.useRef(i),u=a.useRef(c),d=a.useRef(void 0),f=a.useRef(n),p=a.useRef(r);u.current=c;let[m,h]=a.useState(()=>{let e=n._getWatch(r,l.current);return u.current?u.current(e):e}),g=a.useCallback(e=>{let t=F(r,n._names,e||n._formValues,!1,l.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=a.useCallback(e=>{if(!o){let t=F(r,n._names,e||n._formValues,!1,l.current);if(u.current){let e=u.current(t);L(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,o,r]);M(()=>((f.current!==n||!L(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:e=>{_(e.values)}})),[n,s,r,_]),a.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=a.useMemo(()=>{if(o)return null;let e=!v&&!L(y,r);return v||e?g():null},[o,v,r,y,g]);return b===null?m:b}function R(e){let t=A(),{name:n,disabled:r,control:i=t,shouldUnregister:o,defaultValue:s,exact:c=!0}=e,l=f(i._names.array,n),u=ee({control:i,name:n,defaultValue:a.useMemo(()=>T(i._formValues,n,T(i._defaultValues,n,s)),[i,n,s]),exact:c}),p=N({control:i,name:n,exact:c}),m=a.useRef(e),_=a.useRef(i.register(n,{...e.rules,value:u,...E(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;let v=a.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!T(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!T(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!T(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!T(p.validatingFields,n)},error:{enumerable:!0,get:()=>T(p.errors,n)}}),[p,n]),y=a.useCallback(e=>_.current.onChange({target:{value:d(e),name:n},type:g.CHANGE}),[n]),b=a.useCallback(()=>_.current.onBlur({target:{value:T(i._formValues,n),name:n},type:g.BLUR}),[n,i._formValues]),x=a.useCallback(e=>{let t=T(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>D(e.focus)&&e.focus(),select:()=>D(e.select)&&e.select(),setCustomValidity:t=>D(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>D(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),S=a.useMemo(()=>({name:n,value:u,...E(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:y,onBlur:b,ref:x}),[n,r,p.disabled,y,b,x,u]);return a.useEffect(()=>{let e=i._options.shouldUnregister||o;i.register(n,{...m.current.rules,...E(m.current.disabled)?{disabled:m.current.disabled}:{}});let t=(e,t)=>{let n=T(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=h(T(i._defaultValues,n,T(i._options.defaultValues,n,m.current.defaultValue)));O(i._defaultValues,n,e),C(T(i._formValues,n))&&O(i._formValues,n,e)}return!l&&i.register(n),()=>{(l?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,l,o]),a.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),a.useMemo(()=>({field:S,formState:p,fieldState:v}),[S,p,v])}var z=e=>e.render(R(e)),te=a.createContext(null);te.displayName=`HookFormContext`;var ne=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},re=e=>Array.isArray(e)?e.filter(Boolean):[],B=e=>Array.isArray(e)?e:[e],ie=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function ae(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&u(i)&&a){let e=ae(i,a);u(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var V=e=>u(e)&&!Object.keys(e).length,oe=e=>e.type===`file`,se=e=>{if(!m)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ce=e=>e.type===`select-multiple`,le=e=>e.type===`radio`,ue=e=>le(e)||o(e),de=e=>se(e)&&e.isConnected;function fe(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(D(e[t]))return!0;return!1};function he(e){return Array.isArray(e)||u(e)&&!me(e)}function ge(e,t={}){for(let n in e){let r=e[n];he(r)?(t[n]=Array.isArray(r)?[]:{},ge(r,t[n])):C(r)||(t[n]=!0)}return t}function U(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){let t=e.map(e=>U(e));return t.some(e=>e!==void 0)?t:void 0}if(u(e)){let t={};for(let n in e){let r=U(e[n]);C(r)||(t[n]=r)}return Object.keys(t).length?t:void 0}}}function W(e,t,n){n||=ge(t);for(let r in e){let i=e[r];if(he(i))C(t)||I(n[r])?n[r]=ge(i,Array.isArray(i)?[]:{}):W(i,c(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return U(n)||{}}var _e={value:!1,isValid:!1},ve={value:!0,isValid:!0},G=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!C(e[0].attributes.value)?C(e[0].value)||e[0].value===``?ve:{value:e[0].value,isValid:!0}:ve:_e}return _e},ye=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>C(e)?e:t?e===``?NaN:e&&+e:n&&P(e)?new Date(e):r?r(e):e,be={isValid:!1,value:null},K=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,be):be;function xe(e){let t=e.ref;return oe(t)?t.files:le(t)?K(e.refs).value:ce(t)?[...t.selectedOptions].map(({value:e})=>e):o(t)?G(e.refs).value:ye(C(t.value)?e.ref.value:t.value,e)}var Se=(e,t,n,r)=>{let i={};for(let n of e){let e=T(t,n);e&&O(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},q=e=>e instanceof RegExp,Ce=e=>C(e)?e:q(e)?e.source:u(e)?q(e.value)?e.value.source:e.value:e,J=e=>({isOnSubmit:!e||e===_.onSubmit,isOnBlur:e===_.onBlur,isOnChange:e===_.onChange,isOnAll:e===_.all,isOnTouch:e===_.onTouched}),we=`AsyncFunction`,Te=e=>!!e&&!!e.validate&&!!(D(e.validate)&&e.validate.constructor.name===we||u(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===we)),Ee=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),De=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(`${t}.`))),Y=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=T(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(Y(a,t))break}else if(u(a)&&Y(a,t))break}}};function Oe(e,t,n){let r=T(e,n);if(r||S(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=T(t,r),o=T(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var ke=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return V(a)||r&&Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||_.all))},Ae=(e,t,n)=>!e||!t||e===t||B(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),je=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Me=(e,t)=>!re(T(e,t)).length&&H(e,t),Ne=(e,t,n)=>{let r=T(e,n),i=Array.isArray(r)?r:[];return O(i,b,t[n]),O(e,n,i),e};function Pe(e,t,n=`validate`){if(P(e)||Array.isArray(e)&&e.every(P)||E(e)&&!e)return{type:n,message:P(e)?e:``,ref:t}}var X=e=>u(e)&&!q(e)?e:{value:e,message:``},Fe=async(e,t,n,r,i,a)=>{let{ref:s,refs:l,required:d,maxLength:f,minLength:p,min:m,max:h,pattern:g,validate:_,name:y,valueAsNumber:b,mount:x}=e._f,S=T(n,y);if(!x||t.has(y))return{};let w=l?l[0]:s,O=e=>{i&&w.reportValidity&&(w.setCustomValidity(E(e)?``:e||``),w.reportValidity())},k={},A=le(s),j=o(s),M=A||j,N=(b||oe(s))&&C(s.value)&&C(S)||se(s)&&s.value===``||S===``||Array.isArray(S)&&!S.length,F=ne.bind(null,y,r,k),I=(e,t,n,r=v.maxLength,i=v.minLength)=>{let a=e?t:n;k[y]={type:e?r:i,message:a,ref:s,...F(e?r:i,a)}};if(a?!Array.isArray(S)||!S.length:d&&(!M&&(N||c(S))||E(S)&&!S||j&&!G(l).isValid||A&&!K(l).isValid)){let{value:e,message:t}=P(d)?{value:!!d,message:d}:X(d);if(e&&(k[y]={type:v.required,message:t,ref:w,...F(v.required,t)},!r))return O(t),k}if(!N&&(!c(m)||!c(h))){let e,t,n=X(h),i=X(m);if(!c(S)&&!isNaN(S)){let r=s.valueAsNumber||S&&+S;c(n.value)||(e=r>n.value),c(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),o=s.type==`time`,c=s.type==`week`;P(n.value)&&S&&(e=o?a(S)>a(n.value):c?S>n.value:r>new Date(n.value)),P(i.value)&&S&&(t=o?a(S)+e.value,i=!c(t.value)&&S.length<+t.value;if((n||i)&&(I(n,e.message,t.message),!r))return O(k[y].message),k}if(g&&!N&&P(S)){let{value:e,message:t}=X(g);if(q(e)&&!S.match(e)&&(k[y]={type:v.pattern,message:t,ref:s,...F(v.pattern,t)},!r))return O(t),k}if(_){if(D(_)){let e=Pe(await _(S,n),w);if(e&&(k[y]={...e,...F(v.validate,e.message)},!r))return O(e.message),k}else if(u(_)){let e={};for(let t in _){if(!V(e)&&!r)break;let i=Pe(await _[t](S,n),w,t);i&&(e={...i,...F(t,i.message)},O(i.message),r&&(k[y]=e))}if(!V(e)&&(k[y]={ref:w,...e},!r))return k}}return O(!0),k},Ie={mode:_.onSubmit,reValidateMode:_.onChange,shouldFocusError:!0},Le={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Re(e={}){let t={...Ie,...e},n={...h(Le),isLoading:D(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(u(t.defaultValues)||u(t.values))&&h(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:h(i),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},p={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},x,k=0,A={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},j={...A},M={...j},N={array:ie(),state:ie()},I=t.criteriaMode===_.all,ee=e=>t=>{clearTimeout(k),k=setTimeout(e,t)},R=async e=>{if(!l.keepIsValid&&!t.disabled&&(j.isValid||M.isValid||e)){let e;t.resolver?(e=V((await U()).errors),z()):e=await G({fields:r,onlyCheckValid:!0,eventType:g.VALID}),e!==n.isValid&&N.state.next({isValid:e})}},z=(e,r)=>{!t.disabled&&(j.isValidating||j.validatingFields||M.isValidating||M.validatingFields)&&((e||Array.from(p.mount)).forEach(e=>{e&&(r?O(n.validatingFields,e,r):H(n.validatingFields,e))}),N.state.next({validatingFields:n.validatingFields,isValidating:!V(n.validatingFields)}))},te=()=>{n.dirtyFields=W(i,a)},ne=(e,i=[],o,s,c=!0,u=!0)=>{if(s&&o&&!t.disabled){if(l.action=!0,u&&Array.isArray(T(r,e))){let t=o(T(r,e),s.argA,s.argB);c&&O(r,e,t)}if(u&&Array.isArray(T(n.errors,e))){let t=o(T(n.errors,e),s.argA,s.argB);c&&O(n.errors,e,t),Me(n.errors,e)}if((j.touchedFields||M.touchedFields)&&u&&Array.isArray(T(n.touchedFields,e))){let t=o(T(n.touchedFields,e),s.argA,s.argB);c&&O(n.touchedFields,e,t)}(j.dirtyFields||M.dirtyFields)&&te(),N.state.next({name:e,isDirty:K(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else O(a,e,i)},le=(e,t)=>{O(n.errors,e,t),N.state.next({errors:n.errors})},fe=e=>{n.errors=e,N.state.next({errors:n.errors,isValid:!1})},pe=e=>{let t=S(e)?[e]:w(e),n=a,r=i;for(let e=0;e{let c=T(r,e);if(c){if(pe(e))return;let r=C(T(a,e)),u=T(a,e,C(o)?T(i,e):o);C(u)||s&&s.defaultChecked||t?O(a,e,t?u:xe(c._f)):Pe(e,u),l.mount&&!l.action&&(R(),r&&n.isDirty&&(j.isDirty||M.isDirty)&&(K()||(n.isDirty=!1,N.state.next({...n}))))}},he=(e,r,o,s,c)=>{let l=!1,u=!1,d={name:e};if(!t.disabled){if(!o||s){(j.isDirty||M.isDirty)&&(u=n.isDirty,n.isDirty=d.isDirty=K(),l=u!==d.isDirty);let t=L(T(i,e),r);u=!!T(n.dirtyFields,e),t===n.isDirty?t?H(n.dirtyFields,e):O(n.dirtyFields,e,!0):n.dirtyFields=W(i,a),d.dirtyFields=n.dirtyFields,l||=(j.dirtyFields||M.dirtyFields)&&u!==!t}if(o){let t=T(n.touchedFields,e);t||(O(n.touchedFields,e,o),d.touchedFields=n.touchedFields,l||=(j.touchedFields||M.touchedFields)&&t!==o)}l&&c&&N.state.next(d)}return l?d:{}},ge=(e,r,i,a)=>{let o=T(n.errors,e),s=(j.isValid||M.isValid)&&E(r)&&n.isValid!==r;if(t.delayError&&i?(x=ee(()=>le(e,i)),x(t.delayError)):(clearTimeout(k),x=null,i?O(n.errors,e,i):H(n.errors,e)),(i?!L(o,i):o)||!V(a)||s){let t={...a,...s&&E(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},N.state.next(t)}},U=async e=>(z(e,!0),await t.resolver(a,t.context,Se(e||p.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),_e=async e=>{let{errors:t}=await U(e);if(z(e),e)for(let r of e){let e=T(t,r);e?p.array.has(r)&&u(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?Ne(n.errors,{[r]:e},r):O(n.errors,r,e):H(n.errors,r)}else n.errors=t;return t},ve=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(u(i))for(let e in i){let t=i[e];t&&Q(`${y}.${e}`,{message:P(t.message)?t.message:``,type:t.type||v.validate})}else P(i)||!i?Q(y,{message:i||``,type:v.validate}):Ge(y);return i}return!0},G=async({fields:r,onlyCheckValid:i,name:o,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(c.runRootValidation=!0,!await ve({name:o,eventType:s})&&(c.valid=!1,i)))return c.valid;for(let o in r){let l=r[o];if(l){let{_f:r,...u}=l;if(r){let o=p.array.has(r.name),s=l._f&&Te(l._f),u=j.validatingFields||j.isValidating||M.validatingFields||M.isValidating;s&&u&&z([r.name],!0);let d=await Fe(l,p.disabled,a,I,t.shouldUseNativeValidation&&!i,o);if(s&&u&&z([r.name]),d[r.name]&&(c.valid=!1,i)||(!i&&(T(d,r.name)?o?Ne(n.errors,d,r.name):O(n.errors,r.name,d[r.name]):H(n.errors,r.name)),e.shouldUseNativeValidation&&d[r.name]))break}!V(u)&&await G({context:c,onlyCheckValid:i,fields:u,name:o,eventType:s})}}return c.valid},be=()=>{for(let e of p.unMount){let t=T(r,e);t&&(t._f.refs?t._f.refs.every(e=>!de(e)):!de(t._f.ref))&&Ye(e)}p.unMount=new Set},K=(e,n)=>!t.disabled&&(e&&n&&O(a,e,n),!L(Ue(),i)),q=(e,t,n)=>F(e,p,{...l.mount?a:C(t)?i:P(e)?{[e]:t}:t},n,t),we=e=>re(T(l.mount?a:i,e,t.shouldUnregister?T(i,e,[]):[])),Pe=(e,t,n={},i=!1)=>{let s=T(r,e),l=t;if(s){let n=s._f;n&&(!n.disabled&&O(a,e,ye(t,n)),l=se(n.ref)&&c(t)?``:t,ce(n.ref)?[...n.ref.options].forEach(e=>e.selected=l.includes(e.value)):n.refs?o(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(l)?e.checked=!!l.find(t=>t===e.value):e.checked=l===e.value||!!l)}):n.refs.forEach(e=>e.checked=e.value===l):oe(n.ref)?n.ref.value=``:(n.ref.value=l,n.ref.type||N.state.next({name:e,values:i?a:h(a)})))}(n.shouldDirty||n.shouldTouch)&&he(e,l,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&He(e)},X=(e,t,n,i=!1)=>{for(let a in t){if(!t.hasOwnProperty(a))return;let o=t[a],c=e+`.`+a,l=T(r,c);(p.array.has(e)||u(o)||l&&!l._f)&&!s(o)?X(c,o,n,i):Pe(c,o,n,i)}},Re=(e,t,i,o)=>{let s=T(r,e),u=p.array.has(e),d=o?t:h(t),f=L(T(a,e),d);if(f||O(a,e,d),u)N.array.next({name:e,values:o?a:h(a)}),(j.isDirty||j.dirtyFields||M.isDirty||M.dirtyFields)&&i.shouldDirty&&(te(),N.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:K(e,d)}));else{let t=Array.isArray(d)&&!d.length||V(d);!s||s._f||c(d)||t?Pe(e,d,i,o):X(e,d,i,o)}if(!f){let t=De(e,p),r=o?a:h(a);N.state.next({...t&&n,name:l.mount||t?e:void 0,values:r})}},Z=(e,t,n={})=>Re(e,t,n,!1),ze=(e,t={})=>{let r=D(e)?e(a):e;if(!L(a,r)){a={...a,...r};for(let e of p.mount)Re(e,T(r,e),t,!0);N.state.next({...n,name:void 0,type:void 0,values:a}),t.shouldValidate&&R()}},Be=async i=>{l.mount=!0;let o=i.target,c=o.name,u=!0,f=T(r,c),m=e=>{u=Number.isNaN(e)||s(e)&&isNaN(e.getTime())||L(e,T(a,c,e))},_=J(t.mode),v=J(t.reValidateMode);if(f){let s,l,y=o.type?xe(f._f):d(i),b=i.type===g.BLUR||i.type===g.FOCUS_OUT,S=!Ee(f._f)&&!e.validate&&!t.resolver&&!T(n.errors,c)&&!f._f.deps||je(b,T(n.touchedFields,c),n.isSubmitted,v,_),C=De(c,p,b);O(a,c,y),b?(!o||!o.readOnly)&&(f._f.onBlur&&f._f.onBlur(i),x&&x(0)):f._f.onChange&&f._f.onChange(i);let w=he(c,y,b),E=!V(w)||C;if(!b&&N.state.next({name:c,type:i.type,values:h(a)}),S)return(j.isValid||M.isValid)&&(t.mode===`onBlur`?b&&R():b||R()),E&&N.state.next({name:c,...C?{}:w});if(!t.resolver&&e.validate&&await ve({name:c,eventType:i.type}),!b&&C&&N.state.next({...n}),t.resolver){let{errors:e}=await U([c]);if(z([c]),m(y),u){let t=Oe(n.errors,r,c),i=Oe(e,r,t.name||c);s=i.error,c=i.name,l=V(e)}}else z([c],!0),s=(await Fe(f,p.disabled,a,I,t.shouldUseNativeValidation))[c],z([c]),m(y),u&&(s?l=!1:(j.isValid||M.isValid)&&(l=await G({fields:r,onlyCheckValid:!0,name:c,eventType:i.type})));u&&(f._f.deps&&(!Array.isArray(f._f.deps)||f._f.deps.length>0)&&He(f._f.deps),ge(c,l,s,w))}},Ve=(e,t)=>{if(T(n.errors,t)&&e.focus)return e.focus(),1},He=async(e,i={})=>{let a,o,s=B(e);if(t.resolver){let t=await _e(C(e)?e:s);a=V(t),o=e?!s.some(e=>T(t,e)):a}else e?(o=(await Promise.all(s.map(async e=>{let t=T(r,e);return await G({fields:t&&t._f?{[e]:t}:t,eventType:g.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&R()):o=a=await G({fields:r,name:e,eventType:g.TRIGGER});return N.state.next({...!P(e)||(j.isValid||M.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&Y(r,Ve,e?s:p.mount),o},Ue=(e,t)=>{let r={...l.mount?a:i};return t&&(r=ae(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),C(e)?r:P(e)?T(r,e):e.map(e=>T(r,e))},We=(e,t)=>({invalid:!!T((t||n).errors,e),isDirty:!!T((t||n).dirtyFields,e),error:T((t||n).errors,e),isValidating:!!T(n.validatingFields,e),isTouched:!!T((t||n).touchedFields,e)}),Ge=e=>{let t=e?B(e):void 0;t?.forEach(e=>H(n.errors,e)),t?t.forEach(e=>{N.state.next({name:e,errors:n.errors})}):N.state.next({errors:{}})},Q=(e,t,i)=>{let a=(T(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=T(n.errors,e)||{};O(n.errors,e,{...l,...t,ref:a}),N.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},Ke=(e,t)=>D(e)?N.state.subscribe({next:n=>`values`in n&&e(n.values||q(void 0,t),n)}):q(e,t,!0),qe=e=>N.state.subscribe({next:t=>{if(Ae(e.name,t.name,e.exact)&&ke(t,e.formState||j,it,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}}).unsubscribe,Je=e=>(l.mount=!0,M={...M,...e.formState},qe({...e,formState:{...A,...e.formState}})),Ye=(e,o={})=>{for(let s of e?B(e):p.mount)p.mount.delete(s),p.array.delete(s),o.keepValue||(H(r,s),H(a,s)),!o.keepError&&H(n.errors,s),!o.keepDirty&&H(n.dirtyFields,s),!o.keepTouched&&H(n.touchedFields,s),!o.keepIsValidating&&H(n.validatingFields,s),!t.shouldUnregister&&!o.keepDefaultValue&&H(i,s);N.state.next({values:h(a)}),N.state.next({...n,...o.keepDirty?{isDirty:K()}:{}}),!o.keepIsValid&&R()},Xe=({disabled:e,name:t})=>{if(E(e)&&l.mount||e||p.disabled.has(t)){let n=p.disabled.has(t)!==!!e;e?p.disabled.add(t):p.disabled.delete(t),n&&l.mount&&!l.action&&R()}},$=(e,n={})=>{let a=T(r,e),o=E(n.disabled)||E(t.disabled),s=!p.registerName.has(e)&&a&&a._f&&!a._f.mount;return O(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),p.mount.add(e),a&&!s?Xe({disabled:E(n.disabled)?n.disabled:t.disabled,name:e}):me(e,!0,n.value),{...o?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Ce(n.min),max:Ce(n.max),minLength:Ce(n.minLength),maxLength:Ce(n.maxLength),pattern:Ce(n.pattern)}:{},name:e,onChange:Be,onBlur:Be,ref:o=>{if(o){p.registerName.add(e),$(e,n),p.registerName.delete(e),a=T(r,e);let t=C(o.value)&&o.querySelectorAll&&o.querySelectorAll(`input,select,textarea`)[0]||o,s=ue(t),c=a._f.refs||[];if(s?c.find(e=>e===t):t===a._f.ref)return;O(r,e,{_f:{...a._f,...s?{refs:[...c.filter(de),t,...Array.isArray(T(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),me(e,!1,void 0,t)}else a=T(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(f(p.array,e)&&l.action)&&p.unMount.add(e)}}},Ze=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&Y(r,Ve,p.mount),Qe=e=>{E(e)&&(N.state.next({disabled:e}),Y(r,(t,n)=>{let i=T(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},$e=(e,i)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=h(a);if(N.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await U();z(),n.errors=e,c=h(t)}else await G({fields:r,eventType:g.SUBMIT});if(p.disabled.size)for(let e of p.disabled)H(c,e);if(H(n.errors,b),V(n.errors)){N.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else i&&await i({...n.errors},o),Ze(),setTimeout(Ze);if(N.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:V(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},et=(e,t={})=>{T(r,e)&&(C(t.defaultValue)?Z(e,h(T(i,e))):(Z(e,t.defaultValue),O(i,e,h(t.defaultValue))),t.keepTouched||H(n.touchedFields,e),t.keepDirty||(H(n.dirtyFields,e),n.isDirty=t.defaultValue?K(e,h(T(i,e))):K()),t.keepError||(H(n.errors,e),j.isValid&&R()),N.state.next({...n}))},tt=(e,o={})=>{let s=e?h(e):i,c=h(s),u=V(e),d=c;if(o.keepDefaultValues||(i=s),!o.keepValues){if(o.keepDirtyValues){let e=new Set([...p.mount,...Object.keys(W(i,a))]);for(let t of Array.from(e)){let e=T(n.dirtyFields,t),r=T(a,t),i=T(d,t);e&&!C(r)?O(d,t,r):!e&&!C(i)&&Z(t,i)}}else{if(m&&C(e))for(let e of p.mount){let t=T(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(se(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(o.keepFieldsRef)for(let e of p.mount)Z(e,T(d,e));else r={}}if(t.shouldUnregister){if(a=o.keepDefaultValues?h(i):{},o.keepFieldsRef)for(let e of p.mount)O(a,e,T(d,e))}else a=h(d);N.array.next({values:{...d}}),N.state.next({values:{...d}})}p={mount:o.keepDirtyValues?p.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},l.mount=!j.isValid||!!o.keepIsValid||!!o.keepDirtyValues||!t.shouldUnregister&&!V(d),l.watch=!!t.shouldUnregister,l.keepIsValid=!!o.keepIsValid,l.action=!1,o.keepErrors||(n.errors={}),N.state.next({submitCount:o.keepSubmitCount?n.submitCount:0,isDirty:u?!1:o.keepDirty?n.isDirty:o.keepValues?K():!!(o.keepDefaultValues&&!L(e,i)),isSubmitted:o.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:u?{}:o.keepDirtyValues?o.keepDefaultValues&&a?W(i,a):n.dirtyFields:o.keepDefaultValues&&e?W(i,e):o.keepDirty?n.dirtyFields:{},touchedFields:o.keepTouched?n.touchedFields:{},errors:o.keepErrors?n.errors:{},isSubmitSuccessful:o.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},nt=(e,n)=>tt(D(e)?e(a):e,{...t.resetOptions,...n}),rt=(e,t={})=>{let n=T(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&D(e.select)&&e.select()})}},it=e=>{n={...n,...e}},at={control:{register:$,unregister:Ye,getFieldState:We,handleSubmit:$e,setError:Q,_subscribe:qe,_runSchema:U,_updateIsValidating:z,_focusError:Ze,_getWatch:q,_getDirty:K,_setValid:R,_setFieldArray:ne,_setDisabledField:Xe,_setErrors:fe,_getFieldArray:we,_reset:tt,_resetDefaultValues:()=>D(t.defaultValues)&&t.defaultValues().then(e=>{nt(e,t.resetOptions),N.state.next({isLoading:!1})}),_removeUnmounted:be,_disableForm:Qe,_subjects:N,_proxyFormState:j,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return p},set _names(e){p=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:Je,trigger:He,register:$,handleSubmit:$e,watch:Ke,setValue:Z,setValues:ze,getValues:Ue,reset:nt,resetField:et,resetDefaultValues:(e,t={})=>{if(i=h(e),!t.keepDirty){let e=W(i,a);n.dirtyFields=e,n.isDirty=!V(e)}t.keepIsValid||R(),N.state.next({...n,defaultValues:i})},clearErrors:Ge,unregister:Ye,setError:Q,setFocus:rt,getFieldState:We};return{...at,formControl:at}}var Z=()=>{if(typeof crypto<`u`&&crypto.randomUUID)return crypto.randomUUID();let e=typeof performance>`u`?Date.now():performance.now()*1e3;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,t=>{let n=(Math.random()*16+e)%16|0;return(t==`x`?n:n&3|8).toString(16)})},ze=(e,t,n={})=>n.shouldFocus||C(n.shouldFocus)?n.focusName||`${e}.${C(n.focusIndex)?t:n.focusIndex}.`:``,Be=(e,t)=>[...e,...B(t)],Ve=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function He(e,t,n){return[...e.slice(0,t),...B(n),...e.slice(t)]}var Ue=(e,t,n)=>Array.isArray(e)?(C(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],We=(e,t)=>[...B(t),...B(e)];function Ge(e,t){let n=0,r=[...e];for(let e of t)r.splice(e-n,1),n++;return re(r).length?r:[]}var Q=(e,t)=>C(t)?[]:Ge(e,B(t).sort((e,t)=>e-t)),Ke=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},qe=(e,t,n)=>(e[t]=n,e);function Je(e){let t=A(),{control:n=t,name:r,keyName:i=`id`,shouldUnregister:o,rules:s}=e,[c,l]=a.useState(n._getFieldArray(r)),u=a.useRef(n._getFieldArray(r).map(Z)),d=a.useRef(!1);n._names.array.add(r),a.useMemo(()=>s&&c.length>=0&&n.register(r,s),[n,r,c.length,s]),M(()=>n._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===r||!t){let n=T(e,r);Array.isArray(n)?(l(n),u.current=n.map(Z)):t||(l([]),u.current=[])}}}).unsubscribe,[n,r]);let f=a.useCallback(e=>{d.current=!0,n._setFieldArray(r,e)},[n,r]);return a.useEffect(()=>{n._state.action=!1,De(r,n._names)&&n._subjects.state.next({...n._formState});let e=J(n._options.mode);if(d.current&&(!e.isOnSubmit||n._formState.isSubmitted)&&!J(n._options.reValidateMode).isOnSubmit&&!e.isOnBlur)if(n._options.resolver)n._runSchema([r]).then(e=>{n._updateIsValidating([r]);let t=T(e.errors,r),i=T(n._formState.errors,r);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?O(n._formState.errors,r,t):H(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{let e=T(n._fields,r);e&&e._f&&!(J(n._options.reValidateMode).isOnSubmit&&J(n._options.mode).isOnSubmit)&&Fe(e,n._names.disabled,n._formValues,n._options.criteriaMode===_.all,n._options.shouldUseNativeValidation,!0).then(e=>!V(e)&&n._subjects.state.next({errors:Ne(n._formState.errors,e,r)}))}n._subjects.state.next({name:r,values:h(n._formValues)}),n._names.focus&&Y(n._fields,(e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1}),n._names.focus=``,n._setValid(),d.current=!1},[c,r,n]),a.useEffect(()=>(!T(n._formValues,r)&&n._setFieldArray(r),()=>{let e=!(n._options.shouldUnregister||o);d.current&&e&&n._subjects.state.next({name:r,values:h(n._formValues)}),e?((e,t)=>{let r=T(n._fields,e);r&&r._f&&(r._f.mount=t)})(r,!1):n.unregister(r)}),[r,n,i,o]),{swap:a.useCallback((e,t)=>{let i=n._getFieldArray(r);Ke(i,e,t),Ke(u.current,e,t),f(i),l(i),n._setFieldArray(r,i,Ke,{argA:e,argB:t},!1)},[f,r,n]),move:a.useCallback((e,t)=>{let i=n._getFieldArray(r);Ue(i,e,t),Ue(u.current,e,t),f(i),l(i),n._setFieldArray(r,i,Ue,{argA:e,argB:t},!1)},[f,r,n]),prepend:a.useCallback((e,t)=>{let i=B(h(e)),a=We(n._getFieldArray(r),i);n._names.focus=ze(r,0,t),u.current=We(u.current,i.map(Z)),f(a),l(a),n._setFieldArray(r,a,We,{argA:Ve(e)})},[f,r,n]),append:a.useCallback((e,t)=>{let i=B(h(e)),a=Be(n._getFieldArray(r),i);n._names.focus=ze(r,a.length-1,t),u.current=Be(u.current,i.map(Z)),f(a),l(a),n._setFieldArray(r,a,Be,{argA:Ve(e)})},[f,r,n]),remove:a.useCallback(e=>{let t=Q(n._getFieldArray(r),e);u.current=Q(u.current,e),f(t),l(t),!Array.isArray(T(n._fields,r))&&O(n._fields,r,void 0),n._setFieldArray(r,t,Q,{argA:e})},[f,r,n]),insert:a.useCallback((e,t,i)=>{let a=B(h(t)),o=He(n._getFieldArray(r),e,a);n._names.focus=ze(r,e,i),u.current=He(u.current,e,a.map(Z)),f(o),l(o),n._setFieldArray(r,o,He,{argA:e,argB:Ve(t)})},[f,r,n]),update:a.useCallback((e,t)=>{let i=h(t),a=qe(n._getFieldArray(r),e,i);u.current=[...a].map((t,n)=>!t||n===e?Z():u.current[n]),f(a),l([...a]),n._setFieldArray(r,a,qe,{argA:e,argB:i},!0,!1)},[f,r,n]),replace:a.useCallback(e=>{let t=B(h(e));u.current=t.map(Z),f([...t]),l([...t]),n._setFieldArray(r,[...t],e=>e,{},!0,!1)},[f,r,n]),fields:a.useMemo(()=>c.map((e,t)=>({...e,[i]:u.current[t]||Z()})),[c,i])}}function Ye(e={}){let t=a.useRef(void 0),n=a.useRef(void 0),[r,i]=a.useState(()=>({...h(Le),isLoading:D(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:D(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!D(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=Re(e);t.current={...i,formState:r}}let o=t.current.control;return o._options=e,M(()=>{let e=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),o._formState.isReady=!0,e},[o]),a.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),a.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),a.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),a.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),a.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}},[o,r.isDirty]),a.useEffect(()=>{e.values&&!L(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,i(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),a.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=a.useMemo(()=>j(r,o),[o,r]),t.current}var Xe=(e,t,n)=>{if(e&&`reportValidity`in e){let r=T(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},$=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Xe(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>Xe(t,n,e))}},Ze=(e,t)=>{t.shouldUseNativeValidation&&$(e,t);let n={};for(let r in e){let i=T(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Qe(t.names||Object.keys(e),r)){let e=Object.assign({},T(n,r));O(e,`root`,a),O(n,r,e)}else O(n,r,a)}return n},Qe=(e,t)=>{let n=$e(t).replace(/[.*+?^${}()|\\]/g,`\\$&`);return e.some(e=>$e(e).match(`^${n}\\.\\d+`))};function $e(e){return e.replace(/[\[\]]/g,``)}function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(et({},t,{path:[].concat(r.path,t.path)}))})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=ne(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()};e.length;)r();return n}function it(e,t,a){if(a===void 0&&(a={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(e))return function(n,r,i){try{return Promise.resolve(tt(function(){return Promise.resolve(e[a.mode===`sync`?`parse`:`parseAsync`](n,t)).then(function(e){return i.shouldUseNativeValidation&&$({},i),{errors:{},values:a.raw?Object.assign({},n):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:Ze(nt(e.errors,!i.shouldUseNativeValidation&&i.criteriaMode===`all`),i)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(o,s,c){try{return Promise.resolve(tt(function(){return Promise.resolve((a.mode===`sync`?i:r)(e,o,t)).then(function(e){return c.shouldUseNativeValidation&&$({},c),{errors:{},values:a.raw?Object.assign({},o):e}})},function(e){if(function(e){return e instanceof n}(e))return{values:{},errors:Ze(rt(e.issues,!c.shouldUseNativeValidation&&c.criteriaMode===`all`),c)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}export{ee as a,Ye as i,z as n,Je as r,it as t}; \ No newline at end of file +import{o as e,r as t}from"./compiler-runtime.js";import{h as n,m as r,p as i}from"./auth.js";var a=e(t(),1),o=e=>e.type===`checkbox`,s=e=>e instanceof Date,c=e=>e==null,l=e=>typeof e==`object`,u=e=>!c(e)&&!Array.isArray(e)&&l(e)&&!s(e),d=e=>u(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,f=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),p=e=>{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty(`isPrototypeOf`)},m=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function h(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(m&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(u(e)&&p(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=h(e[t]));return r}var g={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},_={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},v={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},y=`form`,b=`root`,x=[`__proto__`,`constructor`,`prototype`],S=e=>/^\w*$/.test(e),C=e=>e===void 0,w=e=>e.split(/[.[\]'"]/g).filter(Boolean),T=(e,t,n)=>{if(!t||!u(e))return n;let r=S(t)?[t]:w(t);if(r.some(e=>x.includes(e)))return n;let i=r.reduce((e,t)=>c(e)?void 0:e[t],e);return C(i)||i===e?C(e[t])?n:e[t]:i},E=e=>typeof e==`boolean`,D=e=>typeof e==`function`,O=(e,t,n)=>{let r=-1,i=S(t)?[t]:w(t),a=i.length,o=a-1;for(;++ra.useContext(k),j=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==_.all&&(t._proxyFormState[i]=!r||_.all),n&&(n[i]=!0),e[i]}});return i},M=m?a.useLayoutEffect:a.useEffect;function N(e){let t=A(),{control:n=t,disabled:r,name:i,exact:o}=e||{},[s,c]=a.useState(()=>({...n._formState,defaultValues:n._defaultValues})),l=a.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return M(()=>n._subscribe({name:i,formState:l.current,exact:o,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}}),[i,r,o]),a.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),a.useMemo(()=>j(s,n,l.current,!1),[s,n])}var P=e=>typeof e==`string`,F=(e,t,n,r,i)=>P(e)?(r&&t.watch.add(e),T(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),T(n,e))):(r&&(t.watchAll=!0),n),I=e=>c(e)||!l(e),ee=(e,t)=>t.length===0&&!Array.isArray(e)&&!p(e);function L(e,t,n=new WeakSet){if(e===t)return!0;if(I(e)||I(t))return Object.is(e,t);if(s(e)&&s(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(ee(e,r)||ee(t,i))return Object.is(e,t);if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(s(r)&&s(e)||(u(r)||Array.isArray(r))&&(u(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function R(e){let t=A(),{control:n=t,name:r,defaultValue:i,disabled:o,exact:s,compute:c}=e||{},l=a.useRef(i),u=a.useRef(c),d=a.useRef(void 0),f=a.useRef(n),p=a.useRef(r);u.current=c;let[m,h]=a.useState(()=>{let e=n._getWatch(r,l.current);return u.current?u.current(e):e}),g=a.useCallback(e=>{let t=F(r,n._names,e||n._formValues,!1,l.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=a.useCallback(e=>{if(!o){let t=F(r,n._names,e||n._formValues,!1,l.current);if(u.current){let e=u.current(t);L(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,o,r]);M(()=>((f.current!==n||!L(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:e=>{_(e.values)}})),[n,s,r,_]),a.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=a.useMemo(()=>{if(o)return null;let e=!v&&!L(y,r);return v||e?g():null},[o,v,r,y,g]);return b===null?m:b}function z(e){let t=A(),{name:n,disabled:r,control:i=t,shouldUnregister:o,defaultValue:s,exact:c=!0}=e,l=f(i._names.array,n),u=R({control:i,name:n,defaultValue:a.useMemo(()=>T(i._formValues,n,T(i._defaultValues,n,s)),[i,n,s]),exact:c}),p=N({control:i,name:n,exact:c}),m=a.useRef(e),_=a.useRef(i.register(n,{...e.rules,value:u,...E(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;let v=a.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!T(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!T(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!T(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!T(p.validatingFields,n)},error:{enumerable:!0,get:()=>T(p.errors,n)}}),[p,n]),y=a.useCallback(e=>{let t=d(e);T(i._fields,n)||(_.current=i.register(n,{...m.current.rules,value:t})),_.current.onChange({target:{value:d(e),name:n},type:g.CHANGE})},[n,i]),b=a.useCallback(()=>_.current.onBlur({target:{value:T(i._formValues,n),name:n},type:g.BLUR}),[n,i._formValues]),x=a.useCallback(e=>{let t=T(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>D(e.focus)&&e.focus(),select:()=>D(e.select)&&e.select(),setCustomValidity:t=>D(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>D(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),S=a.useMemo(()=>({name:n,value:u,...E(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:y,onBlur:b,ref:x}),[n,r,p.disabled,y,b,x,u]);return a.useEffect(()=>{let e=i._options.shouldUnregister||o;i.register(n,{...m.current.rules,...E(m.current.disabled)?{disabled:m.current.disabled}:{}});let t=(e,t)=>{let n=T(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=h(T(o?i._defaultValues:i._options.values||i._defaultValues,n,T(i._options.defaultValues,n,m.current.defaultValue)));O(i._defaultValues,n,e),C(T(i._formValues,n))&&O(i._formValues,n,e)}return!l&&i.register(n),()=>{(l?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,l,o]),a.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),a.useMemo(()=>({field:S,formState:p,fieldState:v}),[S,p,v])}var te=e=>e.render(z(e)),ne=a.createContext(null);ne.displayName=`HookFormContext`;var re=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ie=e=>Array.isArray(e)?e.filter(Boolean):[],B=e=>Array.isArray(e)?e:[e],ae=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function oe(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&u(i)&&a){let e=oe(i,a);u(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var V=e=>u(e)&&!Object.keys(e).length,se=e=>e.type===`file`,ce=e=>{if(!m)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},le=e=>e.type===`select-multiple`,ue=e=>e.type===`radio`,de=e=>ue(e)||o(e),fe=e=>ce(e)&&e.isConnected;function pe(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(D(e[t]))return!0;return!1};function ge(e){return Array.isArray(e)||u(e)&&!he(e)}function U(e,t={}){for(let n in e){let r=e[n];ge(r)?(t[n]=Array.isArray(r)?[]:{},U(r,t[n])):C(r)||(t[n]=!0)}return t}function _e(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){let t=e.map(e=>_e(e));return t.some(e=>e!==void 0)?t:void 0}if(u(e)){let t={};for(let n in e){let r=_e(e[n]);C(r)||(t[n]=r)}return Object.keys(t).length?t:void 0}}}function W(e,t,n){n||=U(t);for(let r in e){let i=e[r];if(ge(i))C(t)||I(n[r])?n[r]=U(i,Array.isArray(i)?[]:{}):W(i,c(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return _e(n)||{}}var ve={value:!1,isValid:!1},G={value:!0,isValid:!0},ye=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!C(e[0].attributes.value)?C(e[0].value)||e[0].value===``?G:{value:e[0].value,isValid:!0}:G:ve}return ve},be=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>C(e)?e:t?e===``?NaN:e&&+e:n&&P(e)?new Date(e):r?r(e):e,K={isValid:!1,value:null},xe=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,K):K;function Se(e){let t=e.ref;return se(t)?t.files:ue(t)?xe(e.refs).value:le(t)?[...t.selectedOptions].map(({value:e})=>e):o(t)?ye(e.refs).value:be(C(t.value)?e.ref.value:t.value,e)}var Ce=(e,t,n,r)=>{let i={};for(let n of e){let e=T(t,n);e&&O(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},we=e=>e instanceof RegExp,Te=e=>C(e)?e:we(e)?e.source:u(e)?we(e.value)?e.value.source:e.value:e,q=e=>({isOnSubmit:!e||e===_.onSubmit,isOnBlur:e===_.onBlur,isOnChange:e===_.onChange,isOnAll:e===_.all,isOnTouch:e===_.onTouched}),Ee=`AsyncFunction`,De=e=>!!e&&!!e.validate&&!!(D(e.validate)&&e.validate.constructor.name===Ee||u(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===Ee)),Oe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),ke=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(`${t}.`))),J=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=T(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(J(a,t))break}else if(u(a)&&J(a,t))break}}};function Ae(e,t,n){let r=T(e,n);if(r||S(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=T(t,r),o=T(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var je=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return V(a)||r&&Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||_.all))},Me=(e,t,n)=>!e||!t||e===t||B(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),Ne=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Pe=(e,t)=>!ie(T(e,t)).length&&H(e,t),Fe=(e,t,n)=>{let r=T(e,n),i=Array.isArray(r)?r:[];return O(i,b,t[n]),O(e,n,i),e};function Ie(e,t,n=`validate`){if(P(e)||Array.isArray(e)&&e.every(P)||E(e)&&!e)return{type:n,message:P(e)?e:``,ref:t}}var Y=e=>u(e)&&!we(e)?e:{value:e,message:``},Le=async(e,t,n,r,i,a)=>{let{ref:s,refs:l,required:d,maxLength:f,minLength:p,min:m,max:h,pattern:g,validate:_,name:y,valueAsNumber:b,mount:x}=e._f,S=T(n,y);if(!x||t.has(y))return{};let w=l?l[0]:s,O=e=>{i&&w.reportValidity&&(w.setCustomValidity(E(e)?``:e||``),w.reportValidity())},k={},A=ue(s),j=o(s),M=A||j,N=(b||se(s))&&C(s.value)&&C(S)||ce(s)&&s.value===``||S===``||Array.isArray(S)&&!S.length,F=re.bind(null,y,r,k),I=(e,t,n,r=v.maxLength,i=v.minLength)=>{let a=e?t:n;k[y]={type:e?r:i,message:a,ref:s,...F(e?r:i,a)}};if(a?!Array.isArray(S)||!S.length:d&&(!M&&(N||c(S))||E(S)&&!S||j&&!ye(l).isValid||A&&!xe(l).isValid)){let{value:e,message:t}=P(d)?{value:!!d,message:d}:Y(d);if(e&&(k[y]={type:v.required,message:t,ref:w,...F(v.required,t)},!r))return O(t),k}if(!N&&(!c(m)||!c(h))){let e,t,n=Y(h),i=Y(m);if(!c(S)&&!isNaN(S)){let r=s.valueAsNumber||S&&+S;c(n.value)||(e=r>n.value),c(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),o=s.type==`time`,c=s.type==`week`;P(n.value)&&S&&(e=o?a(S)>a(n.value):c?S>n.value:r>new Date(n.value)),P(i.value)&&S&&(t=o?a(S)+e.value,i=!c(t.value)&&S.length<+t.value;if((n||i)&&(I(n,e.message,t.message),!r))return O(k[y].message),k}if(g&&!N&&P(S)){let{value:e,message:t}=Y(g);if(we(e)&&!S.match(e)&&(k[y]={type:v.pattern,message:t,ref:s,...F(v.pattern,t)},!r))return O(t),k}if(_){if(D(_)){let e=Ie(await _(S,n),w);if(e&&(k[y]={...e,...F(v.validate,e.message)},!r))return O(e.message),k}else if(u(_)){let e={};for(let t in _){if(!V(e)&&!r)break;let i=Ie(await _[t](S,n),w,t);i&&(e={...i,...F(t,i.message)},O(i.message),r&&(k[y]=e))}if(!V(e)&&(k[y]={ref:w,...e},!r))return k}}return O(!0),k},Re={mode:_.onSubmit,reValidateMode:_.onChange,shouldFocusError:!0},ze={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function X(e={}){let t={...Re,...e},n={...h(ze),isLoading:D(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(u(t.defaultValues)||u(t.values))&&h(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:h(i),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},p={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},x,k=0,A={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},j={...A},M={...j},N={array:ae(),state:ae()},I=t.criteriaMode===_.all,ee=e=>t=>{clearTimeout(k),k=setTimeout(e,t)},R=async e=>{if(!l.keepIsValid&&!t.disabled&&(j.isValid||M.isValid||e)){let e;t.resolver?(e=V((await U()).errors),z()):e=await G({fields:r,onlyCheckValid:!0,eventType:g.VALID}),e!==n.isValid&&N.state.next({isValid:e})}},z=(e,r)=>{!t.disabled&&(j.isValidating||j.validatingFields||M.isValidating||M.validatingFields)&&((e||Array.from(p.mount)).forEach(e=>{e&&(r?O(n.validatingFields,e,r):H(n.validatingFields,e))}),N.state.next({validatingFields:n.validatingFields,isValidating:!V(n.validatingFields)}))},te=()=>{n.dirtyFields=W(i,a)},ne=(e,i=[],o,s,c=!0,u=!0)=>{if(s&&o&&!t.disabled){if(l.action=!0,u&&Array.isArray(T(r,e))){let t=o(T(r,e),s.argA,s.argB);c&&O(r,e,t)}if(u&&Array.isArray(T(n.errors,e))){let t=o(T(n.errors,e),s.argA,s.argB);c&&O(n.errors,e,t),Pe(n.errors,e)}if((j.touchedFields||M.touchedFields)&&u&&Array.isArray(T(n.touchedFields,e))){let t=o(T(n.touchedFields,e),s.argA,s.argB);c&&O(n.touchedFields,e,t)}(j.dirtyFields||M.dirtyFields)&&te(),N.state.next({name:e,isDirty:K(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else O(a,e,i)},re=(e,t)=>{O(n.errors,e,t),N.state.next({errors:n.errors})},ue=e=>{n.errors=e,N.state.next({errors:n.errors,isValid:!1})},pe=e=>{let t=S(e)?[e]:w(e),n=a,r=i;for(let e=0;e{let c=T(r,e);if(c){if(pe(e))return;let r=C(T(a,e)),u=T(a,e,C(o)?T(i,e):o);C(u)||s&&s.defaultChecked||t?O(a,e,t?u:Se(c._f)):Ee(e,u),l.mount&&!l.action&&(R(),r&&n.isDirty&&(j.isDirty||M.isDirty)&&(K()||(n.isDirty=!1,N.state.next({...n}))))}},he=(e,r,o,s,c)=>{let l=!1,u=!1,d={name:e};if(!t.disabled){if(!o||s){(j.isDirty||M.isDirty)&&(u=n.isDirty,n.isDirty=d.isDirty=K(),l=u!==d.isDirty);let t=L(T(i,e),r);u=!!T(n.dirtyFields,e),t===n.isDirty?t?H(n.dirtyFields,e):O(n.dirtyFields,e,!0):n.dirtyFields=W(i,a),d.dirtyFields=n.dirtyFields,l||=(j.dirtyFields||M.dirtyFields)&&u!==!t}if(o){let t=T(n.touchedFields,e);t||(O(n.touchedFields,e,o),d.touchedFields=n.touchedFields,l||=(j.touchedFields||M.touchedFields)&&t!==o)}l&&c&&N.state.next(d)}return l?d:{}},ge=(e,r,i,a)=>{let o=T(n.errors,e),s=(j.isValid||M.isValid)&&E(r)&&n.isValid!==r;if(t.delayError&&i?(x=ee(()=>re(e,i)),x(t.delayError)):(clearTimeout(k),x=null,i?O(n.errors,e,i):H(n.errors,e)),(i?!L(o,i):o)||!V(a)||s){let t={...a,...s&&E(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},N.state.next(t)}},U=async e=>(z(e,!0),await t.resolver(a,t.context,Ce(e||p.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),_e=async e=>{let{errors:t}=await U(e);if(z(e),e)for(let r of e){let e=T(t,r);e?p.array.has(r)&&u(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?Fe(n.errors,{[r]:e},r):O(n.errors,r,e):H(n.errors,r)}else n.errors=t;return t},ve=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(u(i))for(let e in i){let t=i[e];t&&Ge(`${y}.${e}`,{message:P(t.message)?t.message:``,type:t.type||v.validate})}else P(i)||!i?Ge(y,{message:i||``,type:v.validate}):We(y);return i}return!0},G=async({fields:r,onlyCheckValid:i,name:o,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(c.runRootValidation=!0,!await ve({name:o,eventType:s})&&(c.valid=!1,i)))return c.valid;for(let o in r){let l=r[o];if(l){let{_f:r,...u}=l;if(r){let o=p.array.has(r.name),s=l._f&&De(l._f),u=j.validatingFields||j.isValidating||M.validatingFields||M.isValidating;s&&u&&z([r.name],!0);let d=await Le(l,p.disabled,a,I,t.shouldUseNativeValidation&&!i,o);if(s&&u&&z([r.name]),d[r.name]&&(c.valid=!1,i)||(!i&&(T(d,r.name)?o?Fe(n.errors,d,r.name):O(n.errors,r.name,d[r.name]):H(n.errors,r.name)),e.shouldUseNativeValidation&&d[r.name]))break}!V(u)&&await G({context:c,onlyCheckValid:i,fields:u,name:o,eventType:s})}}return c.valid},ye=()=>{for(let e of p.unMount){let t=T(r,e);t&&(t._f.refs?t._f.refs.every(e=>!fe(e)):!fe(t._f.ref))&&Ye(e)}p.unMount=new Set},K=(e,n)=>!t.disabled&&(e&&n&&O(a,e,n),!L(He(),i)),xe=(e,t,n)=>F(e,p,{...l.mount?a:C(t)?i:P(e)?{[e]:t}:t},n,t),we=e=>ie(T(l.mount?a:i,e,t.shouldUnregister?T(i,e,[]):[])),Ee=(e,t,n={},i=!1)=>{let s=T(r,e),l=t;if(s){let n=s._f;n&&(!n.disabled&&O(a,e,be(t,n)),l=ce(n.ref)&&c(t)?``:t,le(n.ref)?[...n.ref.options].forEach(e=>e.selected=l.includes(e.value)):n.refs?o(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(l)?e.checked=!!l.find(t=>t===e.value):e.checked=l===e.value||!!l)}):n.refs.forEach(e=>e.checked=e.value===l):se(n.ref)?n.ref.value=``:(n.ref.value=l,n.ref.type||N.state.next({name:e,values:i?a:h(a)})))}(n.shouldDirty||n.shouldTouch)&&he(e,l,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&Q(e)},Ie=(e,t,n,i=!1)=>{for(let a in t){if(!t.hasOwnProperty(a))return;let o=t[a],c=e+`.`+a,l=T(r,c);(p.array.has(e)||u(o)||l&&!l._f)&&!s(o)?Ie(c,o,n,i):Ee(c,o,n,i)}},Y=(e,t,i,o)=>{let s=T(r,e),u=p.array.has(e),d=o?t:h(t),f=L(T(a,e),d);if(f||O(a,e,d),u)N.array.next({name:e,values:o?a:h(a)}),(j.isDirty||j.dirtyFields||M.isDirty||M.dirtyFields)&&i.shouldDirty&&(te(),N.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:K(e,d)}));else{let t=Array.isArray(d)&&!d.length||V(d);!s||s._f||c(d)||t?Ee(e,d,i,o):Ie(e,d,i,o)}if(!f){let t=ke(e,p),r=o?a:h(a);N.state.next({...t&&n,name:l.mount||t?e:void 0,values:r})}},X=(e,t,n={})=>Y(e,t,n,!1),Z=(e,t={})=>{let r=D(e)?e(a):e;if(!L(a,r)){a={...a,...r};for(let e of p.mount)Y(e,T(r,e),t,!0);N.state.next({...n,name:void 0,type:void 0,values:a}),t.shouldValidate&&R()}},Be=async i=>{l.mount=!0;let o=i.target,c=o.name,u=!0,f=T(r,c),m=e=>{u=Number.isNaN(e)||s(e)&&isNaN(e.getTime())||L(e,T(a,c,e))},_=q(t.mode),v=q(t.reValidateMode);if(f){let s,l,y=o.type?Se(f._f):d(i),b=i.type===g.BLUR||i.type===g.FOCUS_OUT,S=!Oe(f._f)&&!e.validate&&!t.resolver&&!T(n.errors,c)&&!f._f.deps||Ne(b,T(n.touchedFields,c),n.isSubmitted,v,_),C=ke(c,p,b);O(a,c,y),b?(!o||!o.readOnly)&&(f._f.onBlur&&f._f.onBlur(i),x&&x(0)):f._f.onChange&&f._f.onChange(i);let w=he(c,y,b),E=!V(w)||C;if(!b&&N.state.next({name:c,type:i.type,values:h(a)}),S)return(j.isValid||M.isValid)&&(t.mode===`onBlur`?b&&R():b||R()),E&&N.state.next({name:c,...C?{}:w});if(!t.resolver&&e.validate&&await ve({name:c,eventType:i.type}),!b&&C&&N.state.next({...n}),t.resolver){let{errors:e}=await U([c]);if(z([c]),m(y),!u){!V(w)&&N.state.next(w);return}let t=Ae(n.errors,r,c),i=Ae(e,r,t.name||c);s=i.error,c=i.name,l=V(e)}else z([c],!0),s=(await Le(f,p.disabled,a,I,t.shouldUseNativeValidation))[c],z([c]),m(y),u&&(s?l=!1:(j.isValid||M.isValid)&&(l=await G({fields:r,onlyCheckValid:!0,name:c,eventType:i.type})));u&&(f._f.deps&&(!Array.isArray(f._f.deps)||f._f.deps.length>0)&&Q(f._f.deps),ge(c,l,s,w))}},Ve=(e,t)=>{if(T(n.errors,t)&&e.focus)return e.focus(),1},Q=async(e,i={})=>{let a,o,s=B(e);if(t.resolver){let t=await _e(C(e)?e:s);a=V(t),o=e?!s.some(e=>T(t,e)):a}else e?(o=(await Promise.all(s.map(async e=>{let t=T(r,e);return await G({fields:t&&t._f?{[e]:t}:t,eventType:g.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&R()):o=a=await G({fields:r,name:e,eventType:g.TRIGGER});return N.state.next({...!P(e)||(j.isValid||M.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&J(r,Ve,e?s:p.mount),o},He=(e,t)=>{let r={...l.mount?a:i};return t&&(r=oe(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),C(e)?r:P(e)?T(r,e):e.map(e=>T(r,e))},Ue=(e,t)=>({invalid:!!T((t||n).errors,e),isDirty:!!T((t||n).dirtyFields,e),error:T((t||n).errors,e),isValidating:!!T(n.validatingFields,e),isTouched:!!T((t||n).touchedFields,e)}),We=e=>{let t=e?B(e):void 0;t?.forEach(e=>H(n.errors,e)),t?t.forEach(e=>{N.state.next({name:e,errors:n.errors})}):N.state.next({errors:{}})},Ge=(e,t,i)=>{let a=(T(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=T(n.errors,e)||{};O(n.errors,e,{...l,...t,ref:a}),N.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},Ke=(e,t)=>D(e)?N.state.subscribe({next:n=>`values`in n&&e(n.values||xe(void 0,t),n)}):xe(e,t,!0),qe=e=>N.state.subscribe({next:t=>{if(Me(e.name,t.name,e.exact)&&je(t,e.formState||j,it,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}}).unsubscribe,Je=e=>(l.mount=!0,M={...M,...e.formState},qe({...e,formState:{...A,...e.formState}})),Ye=(e,o={})=>{for(let s of e?B(e):p.mount)p.mount.delete(s),p.array.delete(s),o.keepValue||(H(r,s),H(a,s)),!o.keepError&&H(n.errors,s),!o.keepDirty&&H(n.dirtyFields,s),!o.keepTouched&&H(n.touchedFields,s),!o.keepIsValidating&&H(n.validatingFields,s),!t.shouldUnregister&&!o.keepDefaultValue&&H(i,s);N.state.next({values:h(a)}),N.state.next({...n,...o.keepDirty?{isDirty:K()}:{}}),!o.keepIsValid&&R()},Xe=({disabled:e,name:t})=>{if(E(e)&&l.mount||e||p.disabled.has(t)){let n=p.disabled.has(t)!==!!e;e?p.disabled.add(t):p.disabled.delete(t),n&&l.mount&&!l.action&&R()}},Ze=(e,n={})=>{let a=T(r,e),o=E(n.disabled)||E(t.disabled),s=!p.registerName.has(e)&&a&&a._f&&!a._f.mount;return O(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),p.mount.add(e),a&&!s?Xe({disabled:E(n.disabled)?n.disabled:t.disabled,name:e}):me(e,!0,n.value),{...o?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Te(n.min),max:Te(n.max),minLength:Te(n.minLength),maxLength:Te(n.maxLength),pattern:Te(n.pattern)}:{},name:e,onChange:Be,onBlur:Be,ref:o=>{if(o){p.registerName.add(e),Ze(e,n),p.registerName.delete(e),a=T(r,e);let t=C(o.value)&&o.querySelectorAll&&o.querySelectorAll(`input,select,textarea`)[0]||o,s=de(t),c=a._f.refs||[];if(s?c.find(e=>e===t):t===a._f.ref)return;O(r,e,{_f:{...a._f,...s?{refs:[...c.filter(fe),t,...Array.isArray(T(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),me(e,!1,void 0,t)}else a=T(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(f(p.array,e)&&l.action)&&p.unMount.add(e)}}},$=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&J(r,Ve,p.mount),Qe=e=>{E(e)&&(N.state.next({disabled:e}),J(r,(t,n)=>{let i=T(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},$e=(e,i)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=h(a);if(N.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await U();z(),n.errors=e,c=h(t)}else await G({fields:r,eventType:g.SUBMIT});if(p.disabled.size)for(let e of p.disabled)H(c,e);if(H(n.errors,b),V(n.errors)){N.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else i&&await i({...n.errors},o),$(),setTimeout($);if(N.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:V(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},et=(e,t={})=>{T(r,e)&&(C(t.defaultValue)?X(e,h(T(i,e))):(X(e,t.defaultValue),O(i,e,h(t.defaultValue))),t.keepTouched||H(n.touchedFields,e),t.keepDirty||(H(n.dirtyFields,e),n.isDirty=t.defaultValue?K(e,h(T(i,e))):K()),t.keepError||(H(n.errors,e),j.isValid&&R()),N.state.next({...n}))},tt=(e,o={})=>{let s=e?h(e):i,c=h(s),u=V(e),d=c;if(o.keepDefaultValues||(i=s),!o.keepValues){if(o.keepDirtyValues){let e=new Set([...p.mount,...Object.keys(W(i,a))]);for(let t of Array.from(e)){let e=T(n.dirtyFields,t),r=T(a,t),i=T(d,t);e&&!C(r)?O(d,t,r):!e&&!C(i)&&X(t,i)}}else{if(m&&C(e))for(let e of p.mount){let t=T(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(ce(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(o.keepFieldsRef)for(let e of p.mount)X(e,T(d,e));else r={}}if(t.shouldUnregister){if(a=o.keepDefaultValues?h(i):{},o.keepFieldsRef)for(let e of p.mount)O(a,e,T(d,e))}else a=h(d);N.array.next({values:{...d}}),N.state.next({values:{...d}})}p={mount:o.keepDirtyValues?p.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},l.mount=!j.isValid||!!o.keepIsValid||!!o.keepDirtyValues||!t.shouldUnregister&&!V(d),l.watch=!!t.shouldUnregister,l.keepIsValid=!!o.keepIsValid,l.action=!1,o.keepErrors||(n.errors={}),N.state.next({submitCount:o.keepSubmitCount?n.submitCount:0,isDirty:u?!1:o.keepDirty?n.isDirty:o.keepValues?K():!!(o.keepDefaultValues&&!L(e,i)),isSubmitted:o.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:u?{}:o.keepDirtyValues?o.keepDefaultValues&&a?W(i,a):n.dirtyFields:o.keepDefaultValues&&e?W(i,e):o.keepDirty?n.dirtyFields:{},touchedFields:o.keepTouched?n.touchedFields:{},errors:o.keepErrors?n.errors:{},isSubmitSuccessful:o.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},nt=(e,n)=>tt(D(e)?e(a):e,{...t.resetOptions,...n}),rt=(e,t={})=>{let n=T(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&D(e.select)&&e.select()})}},it=e=>{n={...n,...e}},at={control:{register:Ze,unregister:Ye,getFieldState:Ue,handleSubmit:$e,setError:Ge,_subscribe:qe,_runSchema:U,_updateIsValidating:z,_focusError:$,_getWatch:xe,_getDirty:K,_setValid:R,_setFieldArray:ne,_setDisabledField:Xe,_setErrors:ue,_getFieldArray:we,_reset:tt,_resetDefaultValues:()=>D(t.defaultValues)&&t.defaultValues().then(e=>{nt(e,t.resetOptions),N.state.next({isLoading:!1})}),_removeUnmounted:ye,_disableForm:Qe,_subjects:N,_proxyFormState:j,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return p},set _names(e){p=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:Je,trigger:Q,register:Ze,handleSubmit:$e,watch:Ke,setValue:X,setValues:Z,getValues:He,reset:nt,resetField:et,resetDefaultValues:(e,t={})=>{if(i=h(e),!t.keepDirty){let e=W(i,a);n.dirtyFields=e,n.isDirty=!V(e)}t.keepIsValid||R(),N.state.next({...n,defaultValues:i})},clearErrors:We,unregister:Ye,setError:Ge,setFocus:rt,getFieldState:Ue};return{...at,formControl:at}}var Z=()=>{if(typeof crypto<`u`&&crypto.randomUUID)return crypto.randomUUID();let e=typeof performance>`u`?Date.now():performance.now()*1e3;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,t=>{let n=(Math.random()*16+e)%16|0;return(t==`x`?n:n&3|8).toString(16)})},Be=(e,t,n={})=>n.shouldFocus||C(n.shouldFocus)?n.focusName||`${e}.${C(n.focusIndex)?t:n.focusIndex}.`:``,Ve=(e,t)=>[...e,...B(t)],Q=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function He(e,t,n){return[...e.slice(0,t),...B(n),...e.slice(t)]}var Ue=(e,t,n)=>Array.isArray(e)?(C(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],We=(e,t)=>[...B(t),...B(e)];function Ge(e,t){let n=0,r=[...e];for(let e of t)r.splice(e-n,1),n++;return ie(r).length?r:[]}var Ke=(e,t)=>C(t)?[]:Ge(e,B(t).sort((e,t)=>e-t)),qe=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},Je=(e,t,n)=>(e[t]=n,e);function Ye(e){let t=A(),{control:n=t,name:r,keyName:i=`id`,shouldUnregister:o,rules:s}=e,[c,l]=a.useState(n._getFieldArray(r)),u=a.useRef(n._getFieldArray(r).map(Z)),d=a.useRef(!1);n._names.array.add(r),a.useMemo(()=>s&&c.length>=0&&n.register(r,s),[n,r,c.length,s]),M(()=>n._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===r||!t){let n=T(e,r);Array.isArray(n)?(l(n),u.current=n.map(Z)):t||(l([]),u.current=[])}}}).unsubscribe,[n,r]);let f=a.useCallback(e=>{d.current=!0,n._setFieldArray(r,e)},[n,r]);return a.useEffect(()=>{n._state.action=!1,ke(r,n._names)&&n._subjects.state.next({...n._formState});let e=q(n._options.mode);if(d.current&&(!e.isOnSubmit||n._formState.isSubmitted)&&!q(n._options.reValidateMode).isOnSubmit&&!e.isOnBlur)if(n._options.resolver)n._runSchema([r]).then(e=>{n._updateIsValidating([r]);let t=T(e.errors,r),i=T(n._formState.errors,r);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?O(n._formState.errors,r,t):H(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{let e=T(n._fields,r);e&&e._f&&!(q(n._options.reValidateMode).isOnSubmit&&q(n._options.mode).isOnSubmit)&&Le(e,n._names.disabled,n._formValues,n._options.criteriaMode===_.all,n._options.shouldUseNativeValidation,!0).then(e=>!V(e)&&n._subjects.state.next({errors:Fe(n._formState.errors,e,r)}))}n._subjects.state.next({name:r,values:h(n._formValues)}),n._names.focus&&J(n._fields,(e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1}),n._names.focus=``,n._setValid(),d.current=!1},[c,r,n]),a.useEffect(()=>(!T(n._formValues,r)&&n._setFieldArray(r),()=>{let e=!(n._options.shouldUnregister||o);d.current&&e&&n._subjects.state.next({name:r,values:h(n._formValues)}),e?((e,t)=>{let r=T(n._fields,e);r&&r._f&&(r._f.mount=t)})(r,!1):n.unregister(r)}),[r,n,i,o]),{swap:a.useCallback((e,t)=>{let i=n._getFieldArray(r);qe(i,e,t),qe(u.current,e,t),f(i),l(i),n._setFieldArray(r,i,qe,{argA:e,argB:t},!1)},[f,r,n]),move:a.useCallback((e,t)=>{let i=n._getFieldArray(r);Ue(i,e,t),Ue(u.current,e,t),f(i),l(i),n._setFieldArray(r,i,Ue,{argA:e,argB:t},!1)},[f,r,n]),prepend:a.useCallback((e,t)=>{let i=B(h(e)),a=We(n._getFieldArray(r),i);n._names.focus=Be(r,0,t),u.current=We(u.current,i.map(Z)),f(a),l(a),n._setFieldArray(r,a,We,{argA:Q(e)})},[f,r,n]),append:a.useCallback((e,t)=>{let i=B(h(e)),a=Ve(n._getFieldArray(r),i);n._names.focus=Be(r,a.length-1,t),u.current=Ve(u.current,i.map(Z)),f(a),l(a),n._setFieldArray(r,a,Ve,{argA:Q(e)})},[f,r,n]),remove:a.useCallback(e=>{let t=Ke(n._getFieldArray(r),e);u.current=Ke(u.current,e),f(t),l(t),!Array.isArray(T(n._fields,r))&&O(n._fields,r,void 0),n._setFieldArray(r,t,Ke,{argA:e})},[f,r,n]),insert:a.useCallback((e,t,i)=>{let a=B(h(t)),o=He(n._getFieldArray(r),e,a);n._names.focus=Be(r,e,i),u.current=He(u.current,e,a.map(Z)),f(o),l(o),n._setFieldArray(r,o,He,{argA:e,argB:Q(t)})},[f,r,n]),update:a.useCallback((e,t)=>{let i=h(t),a=Je(n._getFieldArray(r),e,i);u.current=[...a].map((t,n)=>!t||n===e?Z():u.current[n]),f(a),l([...a]),n._setFieldArray(r,a,Je,{argA:e,argB:i},!0,!1)},[f,r,n]),replace:a.useCallback(e=>{let t=B(h(e));u.current=t.map(Z),f([...t]),l([...t]),n._setFieldArray(r,[...t],e=>e,{},!0,!1)},[f,r,n]),fields:a.useMemo(()=>c.map((e,t)=>({...e,[i]:u.current[t]||Z()})),[c,i])}}function Xe(e={}){let t=a.useRef(void 0),n=a.useRef(void 0),[r,i]=a.useState(()=>({...h(ze),isLoading:D(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:D(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!D(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=X(e);t.current={...i,formState:r}}let o=t.current.control;return o._options=e,M(()=>{let e=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),o._formState.isReady=!0,e},[o]),a.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),a.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),a.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),a.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),a.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}},[o,r.isDirty]),a.useEffect(()=>{e.values&&!L(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,i(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),a.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=a.useMemo(()=>j(r,o),[o,r]),t.current}var Ze=(e,t,n)=>{if(e&&`reportValidity`in e){let r=T(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},$=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Ze(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>Ze(t,n,e))}},Qe=(e,t)=>{t.shouldUseNativeValidation&&$(e,t);let n={};for(let r in e){let i=T(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if($e(t.names||Object.keys(e),r)){let e=Object.assign({},T(n,r));O(e,`root`,a),O(n,r,e)}else O(n,r,a)}return n},$e=(e,t)=>{let n=et(t).replace(/[.*+?^${}()|\\]/g,`\\$&`);return e.some(e=>et(e).match(`^${n}\\.\\d+`))};function et(e){return e.replace(/[\[\]]/g,``)}function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(tt({},t,{path:[].concat(r.path,t.path)}))})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=re(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()};e.length;)r();return n}function at(e,t,a){if(a===void 0&&(a={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(e))return function(n,r,i){try{return Promise.resolve(nt(function(){return Promise.resolve(e[a.mode===`sync`?`parse`:`parseAsync`](n,t)).then(function(e){return i.shouldUseNativeValidation&&$({},i),{errors:{},values:a.raw?Object.assign({},n):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:Qe(rt(e.errors,!i.shouldUseNativeValidation&&i.criteriaMode===`all`),i)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(o,s,c){try{return Promise.resolve(nt(function(){return Promise.resolve((a.mode===`sync`?i:r)(e,o,t)).then(function(e){return c.shouldUseNativeValidation&&$({},c),{errors:{},values:a.raw?Object.assign({},o):e}})},function(e){if(function(e){return e instanceof n}(e))return{values:{},errors:Qe(it(e.issues,!c.shouldUseNativeValidation&&c.criteriaMode===`all`),c)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}export{R as a,Xe as i,te as n,Ye as r,at as t}; \ No newline at end of file