@lunora/studio 1.0.0-alpha.52 → 1.0.0-alpha.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/index.d.ts +671 -777
  2. package/dist/index.js +1 -1
  3. package/dist/mount.d.ts +10 -10
  4. package/dist/packem_chunks/FileBrowser.js +1 -1
  5. package/dist/packem_chunks/LogsPanel.js +90 -51
  6. package/dist/packem_chunks/MetricsPanel.js +1 -1
  7. package/dist/packem_chunks/SettingsPanel.js +1 -1
  8. package/dist/packem_chunks/TableEditor.js +1 -1
  9. package/dist/packem_chunks/log-drains-panel.js +1 -1
  10. package/dist/packem_chunks/organizations-panel.js +240 -209
  11. package/dist/packem_shared/{GlobalDataBrowser-f5Ll2AQK.js → GlobalDataBrowser-D8h1fTL1.js} +1 -1
  12. package/dist/packem_shared/app.d-__J6S7he.d.ts +254 -0
  13. package/dist/packem_shared/{cf-links-BZfRdxSE.js → cf-links-SIbyi4Y1.js} +1 -1
  14. package/dist/standalone/{chunk-OSPEOESV.js → chunk-2MYDFHDZ.js} +1 -1
  15. package/dist/standalone/{chunk-G465LTLD.js → chunk-3HKJ6FSC.js} +1 -1
  16. package/dist/standalone/{chunk-SDQE2IUJ.js → chunk-3W4CSGDO.js} +1 -1
  17. package/dist/standalone/{chunk-RXVQJ4DO.js → chunk-4F72YCTU.js} +1 -1
  18. package/dist/standalone/{chunk-6TYT447C.js → chunk-4YHXOOK7.js} +1 -1
  19. package/dist/standalone/{chunk-DBLAQC32.js → chunk-5AXARNJ2.js} +1 -1
  20. package/dist/standalone/{chunk-IZN4TYMN.js → chunk-5IGHDPEP.js} +1 -1
  21. package/dist/standalone/{chunk-Q7PYLDZU.js → chunk-6CNL7BUU.js} +1 -1
  22. package/dist/standalone/{chunk-VLIRTNLA.js → chunk-6PXHT2QI.js} +1 -1
  23. package/dist/standalone/{chunk-KKJZL75J.js → chunk-777XYTDZ.js} +1 -1
  24. package/dist/standalone/{chunk-JPILGFXT.js → chunk-7YGTGBP7.js} +1 -1
  25. package/dist/standalone/{chunk-Q7TKOAGT.js → chunk-ASLE5VQE.js} +1 -1
  26. package/dist/standalone/{chunk-ZZMGCPXE.js → chunk-B6DIQBOK.js} +1 -1
  27. package/dist/standalone/{chunk-A3ZJACVT.js → chunk-BR7WLG6X.js} +1 -1
  28. package/dist/standalone/{chunk-TO6D2PJC.js → chunk-CHNXZYAC.js} +1 -1
  29. package/dist/standalone/{chunk-WUFVFVHJ.js → chunk-D73WYMRU.js} +1 -1
  30. package/dist/standalone/{chunk-VZFJI6XE.js → chunk-EXE42KMM.js} +1 -1
  31. package/dist/standalone/{chunk-LUP4YTBS.js → chunk-FDWXYXOM.js} +1 -1
  32. package/dist/standalone/{chunk-AITOCPML.js → chunk-FQUNSQLG.js} +1 -1
  33. package/dist/standalone/{chunk-MDTNVR3G.js → chunk-GRBWXZE4.js} +1 -1
  34. package/dist/standalone/{chunk-7SN6J4DZ.js → chunk-GVFODXW2.js} +1 -1
  35. package/dist/standalone/{chunk-CP2EQVLU.js → chunk-H5X5TIWZ.js} +1 -1
  36. package/dist/standalone/{chunk-T3UCZ5PJ.js → chunk-HFSJCS2N.js} +1 -1
  37. package/dist/standalone/{chunk-W6JKUZKD.js → chunk-HI373BLB.js} +1 -1
  38. package/dist/standalone/{chunk-ZETIKSQJ.js → chunk-IDAIBUKJ.js} +1 -1
  39. package/dist/standalone/{chunk-N4NG7HGI.js → chunk-IDK76JPE.js} +1 -1
  40. package/dist/standalone/{chunk-KDZJ5A3R.js → chunk-JFT5OIL2.js} +1 -1
  41. package/dist/standalone/{chunk-ZECNJ4FG.js → chunk-JGCZJNMT.js} +1 -1
  42. package/dist/standalone/{chunk-XOANGJJP.js → chunk-JZ4X6QMK.js} +1 -1
  43. package/dist/standalone/{chunk-AVONJCNY.js → chunk-K53QX72G.js} +1 -1
  44. package/dist/standalone/{chunk-LVH4KLXS.js → chunk-LVDKJBWU.js} +1 -1
  45. package/dist/standalone/{chunk-KGQGNJJ2.js → chunk-MN4QBJWN.js} +1 -1
  46. package/dist/standalone/{chunk-WJ6OBCUM.js → chunk-NBLGUSJW.js} +1 -1
  47. package/dist/standalone/{chunk-DANDBL6P.js → chunk-NEQV5EQC.js} +2 -2
  48. package/dist/standalone/{chunk-FJV4UNYY.js → chunk-NP7AR65U.js} +1 -1
  49. package/dist/standalone/{chunk-TSLR3ZU2.js → chunk-NWVHLLPB.js} +1 -1
  50. package/dist/standalone/{chunk-4ELN4RE4.js → chunk-NYK3PFSC.js} +1 -1
  51. package/dist/standalone/{chunk-BE24FXAK.js → chunk-ONCMJKJS.js} +1 -1
  52. package/dist/standalone/chunk-OXHHSUXO.js +1 -0
  53. package/dist/standalone/{chunk-UX53GWGU.js → chunk-PQKG5GKG.js} +1 -1
  54. package/dist/standalone/{chunk-LAK5VSPI.js → chunk-QVIPA6UJ.js} +1 -1
  55. package/dist/standalone/{chunk-IMZKGRPW.js → chunk-R2SUQVIO.js} +1 -1
  56. package/dist/standalone/{chunk-LDEVBRDZ.js → chunk-REQTQOBK.js} +1 -1
  57. package/dist/standalone/{chunk-E3FVNRH7.js → chunk-RHYLU4OZ.js} +1 -1
  58. package/dist/standalone/chunk-S2G7OH5T.js +11 -0
  59. package/dist/standalone/{chunk-DTPFXYHG.js → chunk-SCH473C7.js} +1 -1
  60. package/dist/standalone/{chunk-X4QFAAZ5.js → chunk-SWMBBYJU.js} +1 -1
  61. package/dist/standalone/{chunk-YA6POZJD.js → chunk-SXATIQAK.js} +1 -1
  62. package/dist/standalone/{chunk-VN2PDOMK.js → chunk-TYMKCYYT.js} +1 -1
  63. package/dist/standalone/{chunk-2ZL6MXBC.js → chunk-V7RQA6NY.js} +1 -1
  64. package/dist/standalone/chunk-VXM5H542.js +4 -0
  65. package/dist/standalone/chunk-W3XY7KL4.js +1 -0
  66. package/dist/standalone/{chunk-4QA5TWYJ.js → chunk-WAVZATY2.js} +1 -1
  67. package/dist/standalone/{chunk-FWTZYHX4.js → chunk-WCB3KG7C.js} +1 -1
  68. package/dist/standalone/chunk-WM2MP5ZK.js +1 -0
  69. package/dist/standalone/{chunk-EEWKIQUE.js → chunk-WOYQG5AM.js} +1 -1
  70. package/dist/standalone/{chunk-JM7XBQVK.js → chunk-XCNYUUD6.js} +1 -1
  71. package/dist/standalone/{chunk-ONSKQCYN.js → chunk-ZSUTV374.js} +1 -1
  72. package/dist/standalone/{chunk-22C6COGE.js → chunk-ZXLEXF4X.js} +2 -2
  73. package/dist/standalone/studio.js +1 -1
  74. package/dist/styles.css +2 -2
  75. package/package.json +8 -8
  76. package/dist/packem_shared/app.d-CGdOmLTm.d.ts +0 -300
  77. package/dist/standalone/chunk-AJ2B326V.js +0 -1
  78. package/dist/standalone/chunk-KJJ3WM6H.js +0 -4
  79. package/dist/standalone/chunk-L2YBC2BV.js +0 -11
  80. package/dist/standalone/chunk-VC5RNEHU.js +0 -1
  81. package/dist/standalone/chunk-WI7GWFEG.js +0 -1
  82. /package/dist/standalone/{chunk-ITQKVEP7.js → chunk-5XO36X4C.js} +0 -0
  83. /package/dist/standalone/{chunk-TQ36RWOP.js → chunk-IYHPYY4A.js} +0 -0
@@ -0,0 +1 @@
1
+ import{a as Mt,b as ae}from"./chunk-GVFODXW2.js";import{a as Ft}from"./chunk-AHILM3ZP.js";import{a as Dt}from"./chunk-J6J54MBP.js";import{a as fe}from"./chunk-4F72YCTU.js";import{a as St,b as Nt,c as At,d as tt,e as ne,f as de}from"./chunk-GTM65MVX.js";import{a as kt,e as wt}from"./chunk-SEU5V7I6.js";import{a as zt}from"./chunk-VLXV72QE.js";import{a as Tt}from"./chunk-JSEXCW5Q.js";import{R as W}from"./chunk-VL23Y44O.js";import"./chunk-HV7G6DFP.js";import{c as j}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import"./chunk-CKSHCYGC.js";import{f as le}from"./chunk-S2G7OH5T.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{a as ce}from"./chunk-TAD43CG5.js";import{d as K,h as Ot,k as A,l as _t,p as $t}from"./chunk-5XO36X4C.js";import"./chunk-ZXLEXF4X.js";import{a as n,e as It,f as Jt,g as Bt,h as Ut}from"./chunk-RRCPZMC2.js";var G=It(Bt(),1);var P=It(Jt(),1);var o=It(Ut(),1);var jt=n(t=>{let e=JSON.parse(t);if(typeof e!="object"||e===null||Array.isArray(e))throw new TypeError("Expected a JSON object");return e},"parseJsonObject"),Ht=n(t=>{let e=jt(t),l={};for(let[d,f]of Object.entries(e)){if(!Array.isArray(f)||f.some(r=>typeof r!="string"))throw new TypeError(`"${d}" must map to an array of action strings`);l[d]=f}return l},"parsePermission"),Pt=n(t=>t==null||t===""?"":typeof t=="string"?t:JSON.stringify(t,null,2),"jsonInitial"),q=n(t=>{let e=(0,G.c)(6),{children:l,htmlFor:d,label:f}=t,r;e[0]!==d||e[1]!==f?(r=(0,o.jsxDEV)(Tt,{htmlFor:d,children:f},void 0,!1),e[0]=d,e[1]=f,e[2]=r):r=e[2];let i;return e[3]!==l||e[4]!==r?(i=(0,o.jsxDEV)("div",{className:"flex flex-col gap-1",children:[r,l]},void 0,!0),e[3]=l,e[4]=r,e[5]=i):i=e[5],i},"Field"),me=n(({busy:t,canSubmit:e,children:l,destructive:d=!1,error:f,onClose:r,onSubmit:i,submitLabel:s,testId:a,title:m})=>{let c=K();return(0,o.jsxDEV)(Ft,{label:m,onClose:r,panelTestId:`${a}-panel`,testId:`${a}-overlay`,variant:"dialog",children:[(0,o.jsxDEV)("h2",{className:"text-sm font-semibold text-foreground",children:m},void 0,!1),l,f!==null&&(0,o.jsxDEV)("p",{className:"text-sm text-destructive","data-testid":`${a}-error`,role:"alert",children:f},void 0,!1),(0,o.jsxDEV)("div",{className:"flex justify-end gap-2 pt-1",children:[(0,o.jsxDEV)(j,{"data-testid":`${a}-cancel`,onClick:r,size:"sm",type:"button",variant:"outline",children:c("Cancel")},void 0,!1),(0,o.jsxDEV)(j,{"data-testid":`${a}-submit`,disabled:t||!e,onClick:i,size:"sm",type:"button",variant:d?"destructive":"default",children:t?c("Saving\u2026"):s},void 0,!1)]},void 0,!0)]},void 0,!0)},"DialogForm"),Rt=n(t=>{let e=(0,G.c)(79),{mode:l,onClose:d,onDone:f,org:r}=t,i=le(),s=K(),{busy:a,error:m,run:c}=ae(),p;e[0]!==r?(p=r?A(r.name):"",e[0]=r,e[1]=p):p=e[1];let[u,g]=(0,P.useState)(p),k;e[2]!==r?(k=r?A(r.slug):"",e[2]=r,e[3]=k):k=e[3];let[h,y]=(0,P.useState)(k),w;e[4]!==r?(w=r?A(r.logo):"",e[4]=r,e[5]=w):w=e[5];let[b,I]=(0,P.useState)(w),[v,S]=(0,P.useState)(""),C;e[6]!==l||e[7]!==r?.metadata?(C=l==="edit"?Pt(r?.metadata):"",e[6]=l,e[7]=r?.metadata,e[8]=C):C=e[8];let[x,N]=(0,P.useState)(C),_;e[9]!==i||e[10]!==b||e[11]!==x||e[12]!==l||e[13]!==u||e[14]!==d||e[15]!==f||e[16]!==r?.id||e[17]!==v||e[18]!==c||e[19]!==h?(_=n(()=>{c(async()=>{let E=x.trim()===""?void 0:jt(x);l==="create"?await i.createAuthOrganization({logo:b.trim()===""?void 0:b.trim(),metadata:E,name:u.trim(),ownerId:v.trim()===""?void 0:v.trim(),slug:h.trim()===""?void 0:h.trim()}):await i.updateAuthOrganization({logo:b.trim()===""?void 0:b.trim(),metadata:E,name:u.trim()===""?void 0:u.trim(),organizationId:A(r?.id),slug:h.trim()===""?void 0:h.trim()}),f(),d()})},"t5"),e[9]=i,e[10]=b,e[11]=x,e[12]=l,e[13]=u,e[14]=d,e[15]=f,e[16]=r?.id,e[17]=v,e[18]=c,e[19]=h,e[20]=_):_=e[20];let D=_,z;e[21]!==l||e[22]!==u?(z=u.trim()!==""||l==="edit",e[21]=l,e[22]=u,e[23]=z):z=e[23];let $;e[24]!==l||e[25]!==s?($=s(l==="create"?"Create":"Save"),e[24]=l,e[25]=s,e[26]=$):$=e[26];let T;e[27]!==l||e[28]!==s?(T=s(l==="create"?"New organization":"Edit organization"),e[27]=l,e[28]=s,e[29]=T):T=e[29];let Q;e[30]!==s?(Q=s("name"),e[30]=s,e[31]=Q):Q=e[31];let H;e[32]===Symbol.for("react.memo_cache_sentinel")?(H=n(E=>{g(E.target.value)},"t10"),e[32]=H):H=e[32];let J;e[33]!==u?(J=(0,o.jsxDEV)(W,{"data-testid":"org-form-name",id:"org-form-name",onChange:H,value:u},void 0,!1),e[33]=u,e[34]=J):J=e[34];let L;e[35]!==J||e[36]!==Q?(L=(0,o.jsxDEV)(q,{htmlFor:"org-form-name",label:Q,children:J},void 0,!1),e[35]=J,e[36]=Q,e[37]=L):L=e[37];let B;e[38]!==s?(B=s("Slug (optional \u2014 derived from name)"),e[38]=s,e[39]=B):B=e[39];let V;e[40]===Symbol.for("react.memo_cache_sentinel")?(V=n(E=>{y(E.target.value)},"t14"),e[40]=V):V=e[40];let M;e[41]!==h?(M=(0,o.jsxDEV)(W,{"data-testid":"org-form-slug",id:"org-form-slug",onChange:V,value:h},void 0,!1),e[41]=h,e[42]=M):M=e[42];let F;e[43]!==B||e[44]!==M?(F=(0,o.jsxDEV)(q,{htmlFor:"org-form-slug",label:B,children:M},void 0,!1),e[43]=B,e[44]=M,e[45]=F):F=e[45];let U;e[46]!==s?(U=s("Logo URL (optional)"),e[46]=s,e[47]=U):U=e[47];let ie;e[48]===Symbol.for("react.memo_cache_sentinel")?(ie=n(E=>{I(E.target.value)},"t18"),e[48]=ie):ie=e[48];let X;e[49]!==b?(X=(0,o.jsxDEV)(W,{"data-testid":"org-form-logo",id:"org-form-logo",onChange:ie,value:b},void 0,!1),e[49]=b,e[50]=X):X=e[50];let Y;e[51]!==U||e[52]!==X?(Y=(0,o.jsxDEV)(q,{htmlFor:"org-form-logo",label:U,children:X},void 0,!1),e[51]=U,e[52]=X,e[53]=Y):Y=e[53];let Z;e[54]!==l||e[55]!==v||e[56]!==s?(Z=l==="create"&&(0,o.jsxDEV)(q,{htmlFor:"org-form-owner",label:s("Owner user id (optional)"),children:(0,o.jsxDEV)(W,{"data-testid":"org-form-owner",id:"org-form-owner",onChange:n(E=>{S(E.target.value)},"onChange"),value:v},void 0,!1)},void 0,!1),e[54]=l,e[55]=v,e[56]=s,e[57]=Z):Z=e[57];let ee;e[58]!==s?(ee=s("Metadata (JSON, optional)"),e[58]=s,e[59]=ee):ee=e[59];let oe;e[60]===Symbol.for("react.memo_cache_sentinel")?(oe=n(E=>{N(E.target.value)},"t23"),e[60]=oe):oe=e[60];let te;e[61]!==x?(te=(0,o.jsxDEV)(zt,{"data-testid":"org-form-metadata",id:"org-form-metadata",onChange:oe,value:x},void 0,!1),e[61]=x,e[62]=te):te=e[62];let O;e[63]!==ee||e[64]!==te?(O=(0,o.jsxDEV)(q,{htmlFor:"org-form-metadata",label:ee,children:te},void 0,!1),e[63]=ee,e[64]=te,e[65]=O):O=e[65];let se;return e[66]!==a||e[67]!==m||e[68]!==d||e[69]!==D||e[70]!==L||e[71]!==F||e[72]!==Y||e[73]!==Z||e[74]!==O||e[75]!==z||e[76]!==$||e[77]!==T?(se=(0,o.jsxDEV)(me,{busy:a,canSubmit:z,error:m,onClose:d,onSubmit:D,submitLabel:$,testId:"org-form",title:T,children:[L,F,Y,Z,O]},void 0,!0),e[66]=a,e[67]=m,e[68]=d,e[69]=D,e[70]=L,e[71]=F,e[72]=Y,e[73]=Z,e[74]=O,e[75]=z,e[76]=$,e[77]=T,e[78]=se):se=e[78],se},"OrgFormDialog"),Vt=n(t=>{let e=(0,G.c)(40),{onClose:l,onDone:d,organizationId:f}=t,r=le(),i=K(),{busy:s,error:a,run:m}=ae(),[c,p]=(0,P.useState)(""),[u,g]=(0,P.useState)(""),k;e[0]!==r||e[1]!==l||e[2]!==d||e[3]!==f||e[4]!==u||e[5]!==m||e[6]!==c?(k=n(()=>{m(async()=>{await r.addAuthOrgMember({organizationId:f,role:u.trim()===""?void 0:u.trim(),userId:c.trim()}),d(),l()})},"t1"),e[0]=r,e[1]=l,e[2]=d,e[3]=f,e[4]=u,e[5]=m,e[6]=c,e[7]=k):k=e[7];let h=k,y;e[8]!==c?(y=c.trim(),e[8]=c,e[9]=y):y=e[9];let w=y!=="",b;e[10]!==i?(b=i("Add member"),e[10]=i,e[11]=b):b=e[11];let I;e[12]!==i?(I=i("Add member"),e[12]=i,e[13]=I):I=e[13];let v;e[14]!==i?(v=i("User id"),e[14]=i,e[15]=v):v=e[15];let S;e[16]===Symbol.for("react.memo_cache_sentinel")?(S=n(T=>{p(T.target.value)},"t7"),e[16]=S):S=e[16];let C;e[17]!==c?(C=(0,o.jsxDEV)(W,{"data-testid":"org-add-member-user",id:"org-add-member-user",onChange:S,value:c},void 0,!1),e[17]=c,e[18]=C):C=e[18];let x;e[19]!==v||e[20]!==C?(x=(0,o.jsxDEV)(q,{htmlFor:"org-add-member-user",label:v,children:C},void 0,!1),e[19]=v,e[20]=C,e[21]=x):x=e[21];let N;e[22]!==i?(N=i("Role (optional)"),e[22]=i,e[23]=N):N=e[23];let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=n(T=>{g(T.target.value)},"t11"),e[24]=_):_=e[24];let D;e[25]!==u?(D=(0,o.jsxDEV)(W,{"data-testid":"org-add-member-role",id:"org-add-member-role",onChange:_,value:u},void 0,!1),e[25]=u,e[26]=D):D=e[26];let z;e[27]!==N||e[28]!==D?(z=(0,o.jsxDEV)(q,{htmlFor:"org-add-member-role",label:N,children:D},void 0,!1),e[27]=N,e[28]=D,e[29]=z):z=e[29];let $;return e[30]!==s||e[31]!==a||e[32]!==l||e[33]!==h||e[34]!==z||e[35]!==w||e[36]!==b||e[37]!==I||e[38]!==x?($=(0,o.jsxDEV)(me,{busy:s,canSubmit:w,error:a,onClose:l,onSubmit:h,submitLabel:b,testId:"org-add-member",title:I,children:[x,z]},void 0,!0),e[30]=s,e[31]=a,e[32]=l,e[33]=h,e[34]=z,e[35]=w,e[36]=b,e[37]=I,e[38]=x,e[39]=$):$=e[39],$},"MemberAddDialog"),qt=n(t=>{let e=(0,G.c)(40),{onClose:l,onDone:d,organizationId:f}=t,r=le(),i=K(),{busy:s,error:a,run:m}=ae(),[c,p]=(0,P.useState)(""),[u,g]=(0,P.useState)(""),k;e[0]!==r||e[1]!==c||e[2]!==l||e[3]!==d||e[4]!==f||e[5]!==u||e[6]!==m?(k=n(()=>{m(async()=>{await r.inviteAuthOrgMember({email:c.trim(),organizationId:f,role:u.trim()===""?void 0:u.trim()}),d(),l()})},"t1"),e[0]=r,e[1]=c,e[2]=l,e[3]=d,e[4]=f,e[5]=u,e[6]=m,e[7]=k):k=e[7];let h=k,y;e[8]!==c?(y=c.trim(),e[8]=c,e[9]=y):y=e[9];let w=y!=="",b;e[10]!==i?(b=i("Send invitation"),e[10]=i,e[11]=b):b=e[11];let I;e[12]!==i?(I=i("Invite member"),e[12]=i,e[13]=I):I=e[13];let v;e[14]!==i?(v=i("email"),e[14]=i,e[15]=v):v=e[15];let S;e[16]===Symbol.for("react.memo_cache_sentinel")?(S=n(T=>{p(T.target.value)},"t7"),e[16]=S):S=e[16];let C;e[17]!==c?(C=(0,o.jsxDEV)(W,{"data-testid":"org-invite-member-email",id:"org-invite-member-email",onChange:S,type:"email",value:c},void 0,!1),e[17]=c,e[18]=C):C=e[18];let x;e[19]!==v||e[20]!==C?(x=(0,o.jsxDEV)(q,{htmlFor:"org-invite-member-email",label:v,children:C},void 0,!1),e[19]=v,e[20]=C,e[21]=x):x=e[21];let N;e[22]!==i?(N=i("Role (optional)"),e[22]=i,e[23]=N):N=e[23];let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=n(T=>{g(T.target.value)},"t11"),e[24]=_):_=e[24];let D;e[25]!==u?(D=(0,o.jsxDEV)(W,{"data-testid":"org-invite-member-role",id:"org-invite-member-role",onChange:_,value:u},void 0,!1),e[25]=u,e[26]=D):D=e[26];let z;e[27]!==N||e[28]!==D?(z=(0,o.jsxDEV)(q,{htmlFor:"org-invite-member-role",label:N,children:D},void 0,!1),e[27]=N,e[28]=D,e[29]=z):z=e[29];let $;return e[30]!==s||e[31]!==a||e[32]!==l||e[33]!==h||e[34]!==z||e[35]!==w||e[36]!==b||e[37]!==I||e[38]!==x?($=(0,o.jsxDEV)(me,{busy:s,canSubmit:w,error:a,onClose:l,onSubmit:h,submitLabel:b,testId:"org-invite-member",title:I,children:[x,z]},void 0,!0),e[30]=s,e[31]=a,e[32]=l,e[33]=h,e[34]=z,e[35]=w,e[36]=b,e[37]=I,e[38]=x,e[39]=$):$=e[39],$},"MemberInviteDialog"),Gt=n(t=>{let e=(0,G.c)(32),{member:l,onClose:d,onDone:f}=t,r=le(),i=K(),{busy:s,error:a,run:m}=ae(),c;e[0]!==l.role?(c=A(l.role),e[0]=l.role,e[1]=c):c=e[1];let[p,u]=(0,P.useState)(c),g;e[2]!==r||e[3]!==l.id||e[4]!==d||e[5]!==f||e[6]!==p||e[7]!==m?(g=n(()=>{m(async()=>{await r.setAuthOrgMemberRole({memberId:A(l.id),role:p.trim()}),f(),d()})},"t2"),e[2]=r,e[3]=l.id,e[4]=d,e[5]=f,e[6]=p,e[7]=m,e[8]=g):g=e[8];let k=g,h;e[9]!==p?(h=p.trim(),e[9]=p,e[10]=h):h=e[10];let y=h!=="",w;e[11]!==i?(w=i("Save"),e[11]=i,e[12]=w):w=e[12];let b;e[13]!==i?(b=i("Change member role"),e[13]=i,e[14]=b):b=e[14];let I;e[15]!==i?(I=i("Role"),e[15]=i,e[16]=I):I=e[16];let v;e[17]===Symbol.for("react.memo_cache_sentinel")?(v=n(N=>{u(N.target.value)},"t8"),e[17]=v):v=e[17];let S;e[18]!==p?(S=(0,o.jsxDEV)(W,{"data-testid":"org-member-role-value",id:"org-member-role-value",onChange:v,value:p},void 0,!1),e[18]=p,e[19]=S):S=e[19];let C;e[20]!==I||e[21]!==S?(C=(0,o.jsxDEV)(q,{htmlFor:"org-member-role-value",label:I,children:S},void 0,!1),e[20]=I,e[21]=S,e[22]=C):C=e[22];let x;return e[23]!==s||e[24]!==a||e[25]!==d||e[26]!==k||e[27]!==C||e[28]!==y||e[29]!==w||e[30]!==b?(x=(0,o.jsxDEV)(me,{busy:s,canSubmit:y,error:a,onClose:d,onSubmit:k,submitLabel:w,testId:"org-member-role",title:b,children:C},void 0,!1),e[23]=s,e[24]=a,e[25]=d,e[26]=k,e[27]=C,e[28]=y,e[29]=w,e[30]=b,e[31]=x):x=e[31],x},"MemberRoleDialog"),Et=n(t=>{let e=(0,G.c)(36),{mode:l,onClose:d,onDone:f,organizationId:r,team:i}=t,s=le(),a=K(),{busy:m,error:c,run:p}=ae(),u;e[0]!==i?(u=i?A(i.name):"",e[0]=i,e[1]=u):u=e[1];let[g,k]=(0,P.useState)(u),h;e[2]!==s||e[3]!==l||e[4]!==g||e[5]!==d||e[6]!==f||e[7]!==r||e[8]!==p||e[9]!==i?.id?(h=n(()=>{p(async()=>{await(l==="create"?s.createAuthOrgTeam({name:g.trim(),organizationId:r}):s.updateAuthOrgTeam({name:g.trim(),teamId:A(i?.id)})),f(),d()})},"t2"),e[2]=s,e[3]=l,e[4]=g,e[5]=d,e[6]=f,e[7]=r,e[8]=p,e[9]=i?.id,e[10]=h):h=e[10];let y=h,w;e[11]!==g?(w=g.trim(),e[11]=g,e[12]=w):w=e[12];let b=w!=="",I;e[13]!==l||e[14]!==a?(I=a(l==="create"?"Create":"Save"),e[13]=l,e[14]=a,e[15]=I):I=e[15];let v;e[16]!==l||e[17]!==a?(v=a(l==="create"?"New team":"Rename team"),e[16]=l,e[17]=a,e[18]=v):v=e[18];let S;e[19]!==a?(S=a("name"),e[19]=a,e[20]=S):S=e[20];let C;e[21]===Symbol.for("react.memo_cache_sentinel")?(C=n(D=>{k(D.target.value)},"t8"),e[21]=C):C=e[21];let x;e[22]!==g?(x=(0,o.jsxDEV)(W,{"data-testid":"org-team-form-name",id:"org-team-form-name",onChange:C,value:g},void 0,!1),e[22]=g,e[23]=x):x=e[23];let N;e[24]!==S||e[25]!==x?(N=(0,o.jsxDEV)(q,{htmlFor:"org-team-form-name",label:S,children:x},void 0,!1),e[24]=S,e[25]=x,e[26]=N):N=e[26];let _;return e[27]!==m||e[28]!==c||e[29]!==d||e[30]!==y||e[31]!==N||e[32]!==b||e[33]!==I||e[34]!==v?(_=(0,o.jsxDEV)(me,{busy:m,canSubmit:b,error:c,onClose:d,onSubmit:y,submitLabel:I,testId:"org-team-form",title:v,children:N},void 0,!1),e[27]=m,e[28]=c,e[29]=d,e[30]=y,e[31]=N,e[32]=b,e[33]=I,e[34]=v,e[35]=_):_=e[35],_},"TeamFormDialog"),Kt=n(t=>{let e=(0,G.c)(30),{onClose:l,onDone:d,teamId:f}=t,r=le(),i=K(),{busy:s,error:a,run:m}=ae(),[c,p]=(0,P.useState)(""),u;e[0]!==r||e[1]!==l||e[2]!==d||e[3]!==m||e[4]!==f||e[5]!==c?(u=n(()=>{m(async()=>{await r.addAuthOrgTeamMember({teamId:f,userId:c.trim()}),d(),l()})},"t1"),e[0]=r,e[1]=l,e[2]=d,e[3]=m,e[4]=f,e[5]=c,e[6]=u):u=e[6];let g=u,k;e[7]!==c?(k=c.trim(),e[7]=c,e[8]=k):k=e[8];let h=k!=="",y;e[9]!==i?(y=i("Add member"),e[9]=i,e[10]=y):y=e[10];let w;e[11]!==i?(w=i("Add team member"),e[11]=i,e[12]=w):w=e[12];let b;e[13]!==i?(b=i("User id"),e[13]=i,e[14]=b):b=e[14];let I;e[15]===Symbol.for("react.memo_cache_sentinel")?(I=n(x=>{p(x.target.value)},"t7"),e[15]=I):I=e[15];let v;e[16]!==c?(v=(0,o.jsxDEV)(W,{"data-testid":"org-team-add-member-user",id:"org-team-add-member-user",onChange:I,value:c},void 0,!1),e[16]=c,e[17]=v):v=e[17];let S;e[18]!==b||e[19]!==v?(S=(0,o.jsxDEV)(q,{htmlFor:"org-team-add-member-user",label:b,children:v},void 0,!1),e[18]=b,e[19]=v,e[20]=S):S=e[20];let C;return e[21]!==s||e[22]!==a||e[23]!==l||e[24]!==g||e[25]!==h||e[26]!==y||e[27]!==w||e[28]!==S?(C=(0,o.jsxDEV)(me,{busy:s,canSubmit:h,error:a,onClose:l,onSubmit:g,submitLabel:y,testId:"org-team-add-member",title:w,children:S},void 0,!1),e[21]=s,e[22]=a,e[23]=l,e[24]=g,e[25]=h,e[26]=y,e[27]=w,e[28]=S,e[29]=C):C=e[29],C},"TeamMemberAddDialog"),Lt=n(t=>{let e=(0,G.c)(47),{mode:l,onClose:d,onDone:f,organizationId:r,role:i}=t,s=le(),a=K(),{busy:m,error:c,run:p}=ae(),u;e[0]!==i?(u=i?A(i.role):"",e[0]=i,e[1]=u):u=e[1];let[g,k]=(0,P.useState)(u),h;e[2]!==l||e[3]!==i?.permission?(h=l==="edit"?Pt(i?.permission):"",e[2]=l,e[3]=i?.permission,e[4]=h):h=e[4];let[y,w]=(0,P.useState)(h),b;e[5]!==s||e[6]!==l||e[7]!==g||e[8]!==d||e[9]!==f||e[10]!==r||e[11]!==y||e[12]!==i?.id||e[13]!==p?(b=n(()=>{p(async()=>{let T=Ht(y);await(l==="create"?s.createAuthOrgRole({organizationId:r,permission:T,role:g.trim()}):s.updateAuthOrgRole({permission:T,roleId:A(i?.id)})),f(),d()})},"t3"),e[5]=s,e[6]=l,e[7]=g,e[8]=d,e[9]=f,e[10]=r,e[11]=y,e[12]=i?.id,e[13]=p,e[14]=b):b=e[14];let I=b,v;e[15]!==l||e[16]!==g||e[17]!==y?(v=y.trim()!==""&&(l==="edit"||g.trim()!==""),e[15]=l,e[16]=g,e[17]=y,e[18]=v):v=e[18];let S;e[19]!==l||e[20]!==a?(S=a(l==="create"?"Create":"Save"),e[19]=l,e[20]=a,e[21]=S):S=e[21];let C;e[22]!==l||e[23]!==a?(C=a(l==="create"?"New role":"Edit role"),e[22]=l,e[23]=a,e[24]=C):C=e[24];let x;e[25]!==l||e[26]!==g||e[27]!==a?(x=l==="create"&&(0,o.jsxDEV)(q,{htmlFor:"org-role-form-name",label:a("Role name"),children:(0,o.jsxDEV)(W,{"data-testid":"org-role-form-name",id:"org-role-form-name",onChange:n(T=>{k(T.target.value)},"onChange"),value:g},void 0,!1)},void 0,!1),e[25]=l,e[26]=g,e[27]=a,e[28]=x):x=e[28];let N;e[29]!==a?(N=a('Permission (JSON, e.g. {"project":["create","update"]})'),e[29]=a,e[30]=N):N=e[30];let _;e[31]===Symbol.for("react.memo_cache_sentinel")?(_=n(T=>{w(T.target.value)},"t9"),e[31]=_):_=e[31];let D;e[32]!==y?(D=(0,o.jsxDEV)(zt,{"data-testid":"org-role-form-permission",id:"org-role-form-permission",onChange:_,value:y},void 0,!1),e[32]=y,e[33]=D):D=e[33];let z;e[34]!==D||e[35]!==N?(z=(0,o.jsxDEV)(q,{htmlFor:"org-role-form-permission",label:N,children:D},void 0,!1),e[34]=D,e[35]=N,e[36]=z):z=e[36];let $;return e[37]!==m||e[38]!==c||e[39]!==d||e[40]!==I||e[41]!==z||e[42]!==v||e[43]!==S||e[44]!==C||e[45]!==x?($=(0,o.jsxDEV)(me,{busy:m,canSubmit:v,error:c,onClose:d,onSubmit:I,submitLabel:S,testId:"org-role-form",title:C,children:[x,z]},void 0,!0),e[37]=m,e[38]=c,e[39]=d,e[40]=I,e[41]=z,e[42]=v,e[43]=S,e[44]=C,e[45]=x,e[46]=$):$=e[46],$},"RoleFormDialog"),Qt=n(t=>{let e=(0,G.c)(18),{action:l,message:d,onClose:f,onDone:r,testId:i,title:s}=t,a=K(),{busy:m,error:c,run:p}=ae(),u;e[0]!==l||e[1]!==f||e[2]!==r||e[3]!==p?(u=n(()=>{p(async()=>{await l(),r(),f()})},"t1"),e[0]=l,e[1]=f,e[2]=r,e[3]=p,e[4]=u):u=e[4];let g=u,k;e[5]!==a?(k=a("Delete"),e[5]=a,e[6]=k):k=e[6];let h;e[7]!==d?(h=(0,o.jsxDEV)("p",{className:"text-sm text-muted-foreground",children:d},void 0,!1),e[7]=d,e[8]=h):h=e[8];let y;return e[9]!==m||e[10]!==c||e[11]!==f||e[12]!==g||e[13]!==k||e[14]!==h||e[15]!==i||e[16]!==s?(y=(0,o.jsxDEV)(me,{busy:m,canSubmit:!0,destructive:!0,error:c,onClose:f,onSubmit:g,submitLabel:k,testId:i,title:s,children:h},void 0,!1),e[9]=m,e[10]=c,e[11]=f,e[12]=g,e[13]=k,e[14]=h,e[15]=i,e[16]=s,e[17]=y):y=e[17],y},"ConfirmDialog"),lt=n(t=>{let e=(0,G.c)(13),{action:l,children:d,heading:f,testId:r}=t,i;e[0]!==f?(i=(0,o.jsxDEV)("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:f},void 0,!1),e[0]=f,e[1]=i):i=e[1];let s;e[2]!==l?(s=l!==void 0&&(0,o.jsxDEV)("div",{className:"flex items-center gap-2",children:l},void 0,!1),e[2]=l,e[3]=s):s=e[3];let a;e[4]!==i||e[5]!==s?(a=(0,o.jsxDEV)("header",{className:"flex items-center justify-between gap-2 border-b border-border px-4 py-3",children:[i,s]},void 0,!0),e[4]=i,e[5]=s,e[6]=a):a=e[6];let m;e[7]!==d?(m=(0,o.jsxDEV)(wt,{className:"px-0",children:d},void 0,!1),e[7]=d,e[8]=m):m=e[8];let c;return e[9]!==a||e[10]!==m||e[11]!==r?(c=(0,o.jsxDEV)(kt,{className:"overflow-hidden py-0","data-testid":r,children:[a,m]},void 0,!0),e[9]=a,e[10]=m,e[11]=r,e[12]=c):c=e[12],c},"SectionCard"),it=n(t=>{let e=(0,G.c)(23),{columns:l,rowActions:d,rowPrefix:f,rows:r}=t,i=K(),s;e[0]!==l?(s=l.map(Xt),e[0]=l,e[1]=s):s=e[1];let a;e[2]!==i?(a=i("Actions"),e[2]=i,e[3]=a):a=e[3];let m;e[4]!==a?(m=(0,o.jsxDEV)(ne,{"aria-label":a},void 0,!1),e[4]=a,e[5]=m):m=e[5];let c;e[6]!==s||e[7]!==m?(c=(0,o.jsxDEV)(Nt,{children:(0,o.jsxDEV)(tt,{children:[s,m]},void 0,!0)},void 0,!1),e[6]=s,e[7]=m,e[8]=c):c=e[8];let p;if(e[9]!==l||e[10]!==d||e[11]!==f||e[12]!==r){let k;e[14]!==l||e[15]!==d||e[16]!==f?(k=n(h=>{let y=A(h.id);return(0,o.jsxDEV)(tt,{"data-testid":`${f}-${y}`,children:[l.map(w=>(0,o.jsxDEV)(de,{className:w.className,children:w.render(h)},w.head,!1)),(0,o.jsxDEV)(de,{children:(0,o.jsxDEV)("div",{className:"flex justify-end gap-1",children:d(h)},void 0,!1)},void 0,!1)]},y,!0)},"t62"),e[14]=l,e[15]=d,e[16]=f,e[17]=k):k=e[17],p=r.map(k),e[9]=l,e[10]=d,e[11]=f,e[12]=r,e[13]=p}else p=e[13];let u;e[18]!==p?(u=(0,o.jsxDEV)(At,{children:p},void 0,!1),e[18]=p,e[19]=u):u=e[19];let g;return e[20]!==c||e[21]!==u?(g=(0,o.jsxDEV)(St,{children:[c,u]},void 0,!0),e[20]=c,e[21]=u,e[22]=g):g=e[22],g},"ManagedTable"),Wt=n(t=>{let e=(0,G.c)(219),{organizationId:l,rolesEnabled:d,teamsEnabled:f}=t,r=le(),i=K(),[s,a]=(0,P.useState)(null),[m,c]=(0,P.useState)(null),[p,u]=(0,P.useState)(!1),[g,k]=(0,P.useState)(null),h;e[0]!==l?(h=["lunora-auth-org-members",l],e[0]=l,e[1]=h):h=e[1];let y;e[2]!==r||e[3]!==l?(y=n(()=>r.listAuthOrgMembers({limit:200,organizationId:l}),"t2"),e[2]=r,e[3]=l,e[4]=y):y=e[4];let w=fe(h,y),b;e[5]!==l?(b=["lunora-auth-org-invitations",l],e[5]=l,e[6]=b):b=e[6];let I;e[7]!==r||e[8]!==l?(I=n(()=>r.listAuthOrgInvitations({limit:200,organizationId:l}),"t4"),e[7]=r,e[8]=l,e[9]=I):I=e[9];let v=fe(b,I),S;e[10]!==l?(S=["lunora-auth-org-teams",l],e[10]=l,e[11]=S):S=e[11];let C;e[12]!==r||e[13]!==l?(C=n(()=>r.listAuthOrgTeams({limit:200,organizationId:l}),"t6"),e[12]=r,e[13]=l,e[14]=C):C=e[14];let x;e[15]!==f?(x={enabled:f},e[15]=f,e[16]=x):x=e[16];let N=fe(S,C,x),_;e[17]!==l?(_=["lunora-auth-org-roles",l],e[17]=l,e[18]=_):_=e[18];let D;e[19]!==r||e[20]!==l?(D=n(()=>r.listAuthOrgRoles({limit:200,organizationId:l}),"t9"),e[19]=r,e[20]=l,e[21]=D):D=e[21];let z;e[22]!==d?(z={enabled:d},e[22]=d,e[23]=z):z=e[23];let $=fe(_,D,z),T;e[24]!==m?(T=["lunora-auth-org-team-members",m],e[24]=m,e[25]=T):T=e[25];let Q;e[26]!==r||e[27]!==m?(Q=n(()=>r.listAuthOrgTeamMembers({limit:200,teamId:m??""}),"t12"),e[26]=r,e[27]=m,e[28]=Q):Q=e[28];let H=m!==null,J;e[29]!==H?(J={enabled:H},e[29]=H,e[30]=J):J=e[30];let L=fe(T,Q,J),B;e[31]!==w.data?.rows?(B=w.data?.rows??[],e[31]=w.data?.rows,e[32]=B):B=e[32];let V=B,M;e[33]!==v.data?.rows?(M=v.data?.rows??[],e[33]=v.data?.rows,e[34]=M):M=e[34];let F=M,U;e[35]!==N.data?.rows?(U=N.data?.rows??[],e[35]=N.data?.rows,e[36]=U):U=e[36];let ie=U,X;e[37]!==$.data?.rows?(X=$.data?.rows??[],e[37]=$.data?.rows,e[38]=X):X=e[38];let Y=X,Z;e[39]!==m||e[40]!==L?(Z=m===null?[]:L.data?.rows??[],e[39]=m,e[40]=L,e[41]=Z):Z=e[41];let ee=Z,oe=w.error??v.error??N.error??$.error??L.error,te;e[42]!==v||e[43]!==w||e[44]!==d||e[45]!==$||e[46]!==m||e[47]!==L||e[48]!==f||e[49]!==N?(te=n(()=>{w.refetch(),v.refetch(),f&&N.refetch(),d&&$.refetch(),m!==null&&L.refetch()},"t20"),e[42]=v,e[43]=w,e[44]=d,e[45]=$,e[46]=m,e[47]=L,e[48]=f,e[49]=N,e[50]=te):te=e[50];let O=te;Dt(O,!0);let se;e[51]===Symbol.for("react.memo_cache_sentinel")?(se=n(()=>{a(null)},"t21"),e[51]=se):se=e[51];let E=se,ot;e[52]!==O?(ot=n(R=>{_t((async()=>{u(!0),k(null);try{await R(),O(),u(!1)}catch(gt){k(Ot(gt)),u(!1)}})())},"t22"),e[52]=O,e[53]=ot):ot=e[53];let re=ot,st;e[54]!==r||e[55]!==i?(st=n(R=>{let gt=A(R.id);a({action:n(async()=>{await r.removeAuthOrgTeam({teamId:gt}),c(xt=>xt===gt?null:xt)},"action"),kind:"confirm",message:i("Delete this team and its memberships? This cannot be undone."),testId:"org-team-delete",title:i("Delete team")})},"t23"),e[54]=r,e[55]=i,e[56]=st):st=e[56];let vt=st,ue;e[57]!==i?(ue=i("userId"),e[57]=i,e[58]=ue):ue=e[58];let ge;e[59]!==ue?(ge={head:ue,render:Yt},e[59]=ue,e[60]=ge):ge=e[60];let ve;e[61]!==i?(ve=i("role"),e[61]=i,e[62]=ve):ve=e[62];let he;e[63]!==ve?(he={head:ve,render:Zt},e[63]=ve,e[64]=he):he=e[64];let rt;e[65]!==ge||e[66]!==he?(rt=[ge,he],e[65]=ge,e[66]=he,e[67]=rt):rt=e[67];let ht=rt,be;e[68]!==i?(be=i("email"),e[68]=i,e[69]=be):be=e[69];let pe;e[70]!==be?(pe={head:be,render:el},e[70]=be,e[71]=pe):pe=e[71];let ye;e[72]!==i?(ye=i("role"),e[72]=i,e[73]=ye):ye=e[73];let Ce;e[74]!==ye?(Ce={head:ye,render:tl},e[74]=ye,e[75]=Ce):Ce=e[75];let xe;e[76]!==i?(xe=i("status"),e[76]=i,e[77]=xe):xe=e[77];let Ie;e[78]!==xe?(Ie={head:xe,render:ll},e[78]=xe,e[79]=Ie):Ie=e[79];let at;e[80]!==pe||e[81]!==Ce||e[82]!==Ie?(at=[pe,Ce,Ie],e[80]=pe,e[81]=Ce,e[82]=Ie,e[83]=at):at=e[83];let bt=at,ke;e[84]!==i?(ke=i("id"),e[84]=i,e[85]=ke):ke=e[85];let we;e[86]!==ke?(we={className:"font-mono text-xs",head:ke,render:il},e[86]=ke,e[87]=we):we=e[87];let Se;e[88]!==i?(Se=i("name"),e[88]=i,e[89]=Se):Se=e[89];let Ne;e[90]!==Se?(Ne={head:Se,render:ol},e[90]=Se,e[91]=Ne):Ne=e[91];let nt;e[92]!==we||e[93]!==Ne?(nt=[we,Ne],e[92]=we,e[93]=Ne,e[94]=nt):nt=e[94];let pt=nt,Ae;e[95]!==i?(Ae=i("userId"),e[95]=i,e[96]=Ae):Ae=e[96];let dt;e[97]!==Ae?(dt=[{head:Ae,render:sl}],e[97]=Ae,e[98]=dt):dt=e[98];let yt=dt,ze;e[99]!==i?(ze=i("role"),e[99]=i,e[100]=ze):ze=e[100];let De;e[101]!==ze?(De={head:ze,render:rl},e[101]=ze,e[102]=De):De=e[102];let Oe;e[103]!==i?(Oe=i("Permission"),e[103]=i,e[104]=Oe):Oe=e[104];let _e;e[105]!==Oe?(_e={className:"font-mono text-xs whitespace-pre-wrap",head:Oe,render:al},e[105]=Oe,e[106]=_e):_e=e[106];let mt;e[107]!==De||e[108]!==_e?(mt=[De,_e],e[107]=De,e[108]=_e,e[109]=mt):mt=e[109];let Ct=mt,$e;e[110]!==oe?($e=oe!==null&&(0,o.jsxDEV)("p",{className:"text-sm text-destructive","data-testid":"org-detail-error",role:"alert",children:oe},void 0,!1),e[110]=oe,e[111]=$e):$e=e[111];let Te;e[112]!==g?(Te=g!==null&&(0,o.jsxDEV)("p",{className:"text-sm text-destructive","data-testid":"org-action-error",role:"alert",children:g},void 0,!1),e[112]=g,e[113]=Te):Te=e[113];let ct;e[114]===Symbol.for("react.memo_cache_sentinel")?(ct=n(()=>{a({kind:"add-member"})},"t50"),e[114]=ct):ct=e[114];let Me;e[115]!==i?(Me=i("Add member"),e[115]=i,e[116]=Me):Me=e[116];let Fe;e[117]!==Me?(Fe=(0,o.jsxDEV)(j,{"data-testid":"org-open-add-member",onClick:ct,size:"xs",type:"button",variant:"outline",children:Me},void 0,!1),e[117]=Me,e[118]=Fe):Fe=e[118];let ft;e[119]===Symbol.for("react.memo_cache_sentinel")?(ft=n(()=>{a({kind:"invite-member"})},"t53"),e[119]=ft):ft=e[119];let Re;e[120]!==i?(Re=i("Invite member"),e[120]=i,e[121]=Re):Re=e[121];let Ee;e[122]!==Re?(Ee=(0,o.jsxDEV)(j,{"data-testid":"org-open-invite-member",onClick:ft,size:"xs",type:"button",variant:"outline",children:Re},void 0,!1),e[122]=Re,e[123]=Ee):Ee=e[123];let Le;e[124]!==Fe||e[125]!==Ee?(Le=(0,o.jsxDEV)(o.Fragment,{children:[Fe,Ee]},void 0,!0),e[124]=Fe,e[125]=Ee,e[126]=Le):Le=e[126];let je;e[127]!==i?(je=i("Members"),e[127]=i,e[128]=je):je=e[128];let Pe;e[129]!==p||e[130]!==r||e[131]!==ht||e[132]!==V||e[133]!==re||e[134]!==i?(Pe=V.length===0?(0,o.jsxDEV)("div",{className:"p-3",children:(0,o.jsxDEV)(ce,{testId:"org-members-empty",title:i("No members.")},void 0,!1)},void 0,!1):(0,o.jsxDEV)(it,{columns:ht,rowActions:n(R=>(0,o.jsxDEV)(o.Fragment,{children:[(0,o.jsxDEV)(j,{"data-testid":`org-member-role-${A(R.id)}`,onClick:n(()=>{a({kind:"member-role",member:R})},"onClick"),size:"xs",type:"button",variant:"ghost",children:i("Change role")},void 0,!1),(0,o.jsxDEV)(j,{"data-testid":`org-remove-member-${A(R.id)}`,disabled:p,onClick:n(()=>{re(()=>r.removeAuthOrgMember({memberId:A(R.id)}))},"onClick"),size:"xs",type:"button",variant:"ghost",children:i("Remove")},void 0,!1)]},void 0,!0),"rowActions"),rowPrefix:"org-member",rows:V},void 0,!1),e[129]=p,e[130]=r,e[131]=ht,e[132]=V,e[133]=re,e[134]=i,e[135]=Pe):Pe=e[135];let Qe;e[136]!==Le||e[137]!==je||e[138]!==Pe?(Qe=(0,o.jsxDEV)(lt,{action:Le,heading:je,testId:"org-members",children:Pe},void 0,!1),e[136]=Le,e[137]=je,e[138]=Pe,e[139]=Qe):Qe=e[139];let Je;e[140]!==p||e[141]!==r||e[142]!==bt||e[143]!==F||e[144]!==re||e[145]!==i?(Je=F.length>0&&(0,o.jsxDEV)(lt,{heading:i("Invitations"),testId:"org-invitations",children:(0,o.jsxDEV)(it,{columns:bt,rowActions:n(R=>(0,o.jsxDEV)(j,{"data-testid":`org-cancel-invitation-${A(R.id)}`,disabled:p,onClick:n(()=>{re(()=>r.cancelAuthOrgInvitation({invitationId:A(R.id)}))},"onClick"),size:"xs",type:"button",variant:"ghost",children:i("Cancel")},void 0,!1),"rowActions"),rowPrefix:"org-invitation",rows:F},void 0,!1)},void 0,!1),e[140]=p,e[141]=r,e[142]=bt,e[143]=F,e[144]=re,e[145]=i,e[146]=Je):Je=e[146];let Be;e[147]!==vt||e[148]!==m||e[149]!==i||e[150]!==pt||e[151]!==ie||e[152]!==f?(Be=f&&(0,o.jsxDEV)(lt,{action:(0,o.jsxDEV)(j,{"data-testid":"org-open-create-team",onClick:n(()=>{a({kind:"team-create"})},"onClick"),size:"xs",type:"button",variant:"outline",children:i("New team")},void 0,!1),heading:i("Teams"),testId:"org-teams",children:ie.length===0?(0,o.jsxDEV)("div",{className:"p-3",children:(0,o.jsxDEV)(ce,{testId:"org-teams-empty",title:i("No teams.")},void 0,!1)},void 0,!1):(0,o.jsxDEV)(it,{columns:pt,rowActions:n(R=>(0,o.jsxDEV)(o.Fragment,{children:[(0,o.jsxDEV)(j,{"aria-pressed":m===A(R.id),"data-testid":`org-team-select-${A(R.id)}`,onClick:n(()=>{c(A(R.id))},"onClick"),size:"xs",type:"button",variant:"ghost",children:i("Members")},void 0,!1),(0,o.jsxDEV)(j,{"data-testid":`org-team-rename-${A(R.id)}`,onClick:n(()=>{a({kind:"team-rename",team:R})},"onClick"),size:"xs",type:"button",variant:"ghost",children:i("Rename")},void 0,!1),(0,o.jsxDEV)(j,{"data-testid":`org-team-delete-${A(R.id)}`,onClick:n(()=>{vt(R)},"onClick"),size:"xs",type:"button",variant:"ghost",children:i("Delete")},void 0,!1)]},void 0,!0),"rowActions"),rowPrefix:"org-team",rows:ie},void 0,!1)},void 0,!1),e[147]=vt,e[148]=m,e[149]=i,e[150]=pt,e[151]=ie,e[152]=f,e[153]=Be):Be=e[153];let Ue;e[154]!==p||e[155]!==r||e[156]!==re||e[157]!==m||e[158]!==i||e[159]!==yt||e[160]!==ee||e[161]!==f?(Ue=f&&m!==null&&(0,o.jsxDEV)(lt,{action:(0,o.jsxDEV)(j,{"data-testid":"org-open-add-team-member",onClick:n(()=>{a({kind:"team-add-member",teamId:m})},"onClick"),size:"xs",type:"button",variant:"outline",children:i("Add member")},void 0,!1),heading:i("Team members"),testId:"org-team-members",children:ee.length===0?(0,o.jsxDEV)("div",{className:"p-3",children:(0,o.jsxDEV)(ce,{testId:"org-team-members-empty",title:i("No team members.")},void 0,!1)},void 0,!1):(0,o.jsxDEV)(it,{columns:yt,rowActions:n(R=>(0,o.jsxDEV)(j,{"data-testid":`org-team-remove-member-${A(R.id)}`,disabled:p,onClick:n(()=>{re(()=>r.removeAuthOrgTeamMember({teamMemberId:A(R.id)}))},"onClick"),size:"xs",type:"button",variant:"ghost",children:i("Remove")},void 0,!1),"rowActions"),rowPrefix:"org-team-member",rows:ee},void 0,!1)},void 0,!1),e[154]=p,e[155]=r,e[156]=re,e[157]=m,e[158]=i,e[159]=yt,e[160]=ee,e[161]=f,e[162]=Ue):Ue=e[162];let He;e[163]!==r||e[164]!==Ct||e[165]!==Y||e[166]!==d||e[167]!==i?(He=d&&(0,o.jsxDEV)(lt,{action:(0,o.jsxDEV)(j,{"data-testid":"org-open-create-role",onClick:n(()=>{a({kind:"role-create"})},"onClick"),size:"xs",type:"button",variant:"outline",children:i("New role")},void 0,!1),heading:i("Roles"),testId:"org-roles",children:Y.length===0?(0,o.jsxDEV)("div",{className:"p-3",children:(0,o.jsxDEV)(ce,{testId:"org-roles-empty",title:i("No custom roles.")},void 0,!1)},void 0,!1):(0,o.jsxDEV)(it,{columns:Ct,rowActions:n(R=>(0,o.jsxDEV)(o.Fragment,{children:[(0,o.jsxDEV)(j,{"data-testid":`org-role-edit-${A(R.id)}`,onClick:n(()=>{a({kind:"role-edit",role:R})},"onClick"),size:"xs",type:"button",variant:"ghost",children:i("Edit")},void 0,!1),(0,o.jsxDEV)(j,{"data-testid":`org-role-delete-${A(R.id)}`,onClick:n(()=>{a({action:n(()=>r.deleteAuthOrgRole({roleId:A(R.id)}),"action"),kind:"confirm",message:i("Delete this custom role? Members keeping it will lose its grants."),testId:"org-role-delete",title:i("Delete role")})},"onClick"),size:"xs",type:"button",variant:"ghost",children:i("Delete")},void 0,!1)]},void 0,!0),"rowActions"),rowPrefix:"org-role",rows:Y},void 0,!1)},void 0,!1),e[163]=r,e[164]=Ct,e[165]=Y,e[166]=d,e[167]=i,e[168]=He):He=e[168];let Ve;e[169]!==s?.kind||e[170]!==l||e[171]!==O?(Ve=s?.kind==="add-member"&&(0,o.jsxDEV)(Vt,{onClose:E,onDone:O,organizationId:l},void 0,!1),e[169]=s?.kind,e[170]=l,e[171]=O,e[172]=Ve):Ve=e[172];let qe;e[173]!==s?.kind||e[174]!==l||e[175]!==O?(qe=s?.kind==="invite-member"&&(0,o.jsxDEV)(qt,{onClose:E,onDone:O,organizationId:l},void 0,!1),e[173]=s?.kind,e[174]=l,e[175]=O,e[176]=qe):qe=e[176];let Ge;e[177]!==s||e[178]!==O?(Ge=s?.kind==="member-role"&&(0,o.jsxDEV)(Gt,{member:s.member,onClose:E,onDone:O},void 0,!1),e[177]=s,e[178]=O,e[179]=Ge):Ge=e[179];let Ke;e[180]!==s?.kind||e[181]!==l||e[182]!==O?(Ke=s?.kind==="team-create"&&(0,o.jsxDEV)(Et,{mode:"create",onClose:E,onDone:O,organizationId:l},void 0,!1),e[180]=s?.kind,e[181]=l,e[182]=O,e[183]=Ke):Ke=e[183];let We;e[184]!==s||e[185]!==l||e[186]!==O?(We=s?.kind==="team-rename"&&(0,o.jsxDEV)(Et,{mode:"edit",onClose:E,onDone:O,organizationId:l,team:s.team},void 0,!1),e[184]=s,e[185]=l,e[186]=O,e[187]=We):We=e[187];let Xe;e[188]!==s||e[189]!==O?(Xe=s?.kind==="team-add-member"&&(0,o.jsxDEV)(Kt,{onClose:E,onDone:O,teamId:s.teamId},void 0,!1),e[188]=s,e[189]=O,e[190]=Xe):Xe=e[190];let Ye;e[191]!==s?.kind||e[192]!==l||e[193]!==O?(Ye=s?.kind==="role-create"&&(0,o.jsxDEV)(Lt,{mode:"create",onClose:E,onDone:O,organizationId:l},void 0,!1),e[191]=s?.kind,e[192]=l,e[193]=O,e[194]=Ye):Ye=e[194];let Ze;e[195]!==s||e[196]!==l||e[197]!==O?(Ze=s?.kind==="role-edit"&&(0,o.jsxDEV)(Lt,{mode:"edit",onClose:E,onDone:O,organizationId:l,role:s.role},void 0,!1),e[195]=s,e[196]=l,e[197]=O,e[198]=Ze):Ze=e[198];let et;e[199]!==s||e[200]!==O?(et=s?.kind==="confirm"&&(0,o.jsxDEV)(Qt,{action:s.action,message:s.message,onClose:E,onDone:O,testId:s.testId,title:s.title},void 0,!1),e[199]=s,e[200]=O,e[201]=et):et=e[201];let ut;return e[202]!==$e||e[203]!==Te||e[204]!==Qe||e[205]!==Je||e[206]!==Be||e[207]!==Ue||e[208]!==He||e[209]!==Ve||e[210]!==qe||e[211]!==Ge||e[212]!==Ke||e[213]!==We||e[214]!==Xe||e[215]!==Ye||e[216]!==Ze||e[217]!==et?(ut=(0,o.jsxDEV)("div",{className:"flex flex-col gap-4","data-testid":"org-detail",children:[$e,Te,Qe,Je,Be,Ue,He,Ve,qe,Ge,Ke,We,Xe,Ye,Ze,et]},void 0,!0),e[202]=$e,e[203]=Te,e[204]=Qe,e[205]=Je,e[206]=Be,e[207]=Ue,e[208]=He,e[209]=Ve,e[210]=qe,e[211]=Ge,e[212]=Ke,e[213]=We,e[214]=Xe,e[215]=Ye,e[216]=Ze,e[217]=et,e[218]=ut):ut=e[218],ut},"OrganizationDetail");function Xt(t){return(0,o.jsxDEV)(ne,{children:t.head},t.head,!1)}n(Xt,"_temp");function Yt(t){return(0,o.jsxDEV)("span",{className:"font-mono text-xs",children:A(t.userId)},void 0,!1)}n(Yt,"_temp2");function Zt(t){return A(t.role)}n(Zt,"_temp3");function el(t){return A(t.email)}n(el,"_temp4");function tl(t){return A(t.role)}n(tl,"_temp5");function ll(t){return A(t.status)}n(ll,"_temp6");function il(t){return A(t.id)}n(il,"_temp7");function ol(t){return A(t.name)}n(ol,"_temp8");function sl(t){return(0,o.jsxDEV)("span",{className:"font-mono text-xs",children:A(t.userId)},void 0,!1)}n(sl,"_temp9");function rl(t){return A(t.role)}n(rl,"_temp0");function al(t){return A(t.permission)}n(al,"_temp1");var Il=n(()=>{let t=(0,G.c)(62),e=le(),l=K(),{config:d,ready:f}=Mt(),r=d.capabilities.organization,[i,s]=(0,P.useState)(null),[a,m]=(0,P.useState)(null),c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=["lunora-auth-orgs"],t[0]=c):c=t[0];let p;t[1]!==e?(p=n(()=>e.listAuthOrganizations({limit:100}),"t1"),t[1]=e,t[2]=p):p=t[2];let u;t[3]!==r?(u={enabled:r},t[3]=r,t[4]=u):u=t[4];let g=fe(c,p,u),k=g.data?.rows??null,h;t[5]!==g?(h=n(()=>{g.refetch()},"t3"),t[5]=g,t[6]=h):h=t[6],Dt(h,r);let y;t[7]===Symbol.for("react.memo_cache_sentinel")?(y=n(()=>{m(null)},"t4"),t[7]=y):y=t[7];let w=y,b;t[8]!==g?(b=n(()=>{g.refetch()},"t5"),t[8]=g,t[9]=b):b=t[9];let I=b,v;t[10]===Symbol.for("react.memo_cache_sentinel")?(v=n(M=>{s(M)},"t6"),t[10]=v):v=t[10];let S=v;if(f&&!r){let M;t[11]!==l?(M=l("Enable the organization() plugin in your auth config to manage organizations here."),t[11]=l,t[12]=M):M=t[12];let F;t[13]!==l?(F=l("Organizations are not enabled."),t[13]=l,t[14]=F):F=t[14];let U;return t[15]!==M||t[16]!==F?(U=(0,o.jsxDEV)(ce,{description:M,testId:"org-disabled",title:F},void 0,!1),t[15]=M,t[16]=F,t[17]=U):U=t[17],U}let C;t[18]!==l?(C=l("Organizations"),t[18]=l,t[19]=C):C=t[19];let x;t[20]!==C?(x=(0,o.jsxDEV)("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:C},void 0,!1),t[20]=C,t[21]=x):x=t[21];let N;t[22]===Symbol.for("react.memo_cache_sentinel")?(N=n(()=>{m({kind:"create"})},"t9"),t[22]=N):N=t[22];let _;t[23]!==l?(_=l("New organization"),t[23]=l,t[24]=_):_=t[24];let D;t[25]!==_?(D=(0,o.jsxDEV)(j,{"data-testid":"org-new",onClick:N,size:"sm",type:"button",children:_},void 0,!1),t[25]=_,t[26]=D):D=t[26];let z;t[27]!==D||t[28]!==x?(z=(0,o.jsxDEV)("div",{className:"flex items-center justify-between",children:[x,D]},void 0,!0),t[27]=D,t[28]=x,t[29]=z):z=t[29];let $;t[30]!==g.error?($=g.error!==null&&(0,o.jsxDEV)("p",{className:"text-sm text-destructive","data-testid":"org-error",role:"alert",children:g.error},void 0,!1),t[30]=g.error,t[31]=$):$=t[31];let T;t[32]!==k||t[33]!==l?(T=k!==null&&k.length===0&&(0,o.jsxDEV)(ce,{testId:"org-empty",title:l("No organizations.")},void 0,!1),t[32]=k,t[33]=l,t[34]=T):T=t[34];let Q;t[35]!==k||t[36]!==i||t[37]!==l?(Q=k!==null&&k.length>0&&(0,o.jsxDEV)(kt,{className:"overflow-hidden py-0",children:(0,o.jsxDEV)(wt,{className:"px-0",children:(0,o.jsxDEV)(St,{"data-testid":"org-table",children:[(0,o.jsxDEV)(Nt,{children:(0,o.jsxDEV)(tt,{children:[(0,o.jsxDEV)(ne,{children:l("id")},void 0,!1),(0,o.jsxDEV)(ne,{children:l("name")},void 0,!1),(0,o.jsxDEV)(ne,{children:l("slug")},void 0,!1),(0,o.jsxDEV)(ne,{children:l("created")},void 0,!1),(0,o.jsxDEV)(ne,{"aria-label":l("Actions")},void 0,!1)]},void 0,!0)},void 0,!1),(0,o.jsxDEV)(At,{children:k.map(M=>{let F=A(M.id);return(0,o.jsxDEV)(tt,{"data-testid":`org-row-${F}`,children:[(0,o.jsxDEV)(de,{className:"font-mono text-xs",children:F},void 0,!1),(0,o.jsxDEV)(de,{children:A(M.name)},void 0,!1),(0,o.jsxDEV)(de,{children:A(M.slug)},void 0,!1),(0,o.jsxDEV)(de,{className:"text-muted-foreground tabular-nums",children:$t(M.createdAt)},void 0,!1),(0,o.jsxDEV)(de,{children:(0,o.jsxDEV)("div",{className:"flex justify-end gap-1",children:[(0,o.jsxDEV)(j,{"aria-pressed":i===F,"data-testid":`org-select-${F}`,onClick:n(()=>{S(F)},"onClick"),size:"xs",type:"button",variant:"ghost",children:l("Manage")},void 0,!1),(0,o.jsxDEV)(j,{"data-testid":`org-edit-${F}`,onClick:n(()=>{m({kind:"edit",org:M})},"onClick"),size:"xs",type:"button",variant:"ghost",children:l("Edit")},void 0,!1),(0,o.jsxDEV)(j,{"data-testid":`org-delete-${F}`,onClick:n(()=>{m({kind:"delete",org:M})},"onClick"),size:"xs",type:"button",variant:"ghost",children:l("Delete")},void 0,!1)]},void 0,!0)},void 0,!1)]},F,!0)})},void 0,!1)]},void 0,!0)},void 0,!1)},void 0,!1),t[35]=k,t[36]=i,t[37]=l,t[38]=Q):Q=t[38];let H;t[39]!==d.organization||t[40]!==i?(H=i!==null&&(0,o.jsxDEV)(Wt,{organizationId:i,rolesEnabled:d.organization.roles,teamsEnabled:d.organization.teams},void 0,!1),t[39]=d.organization,t[40]=i,t[41]=H):H=t[41];let J;t[42]!==a?.kind||t[43]!==I?(J=a?.kind==="create"&&(0,o.jsxDEV)(Rt,{mode:"create",onClose:w,onDone:I},void 0,!1),t[42]=a?.kind,t[43]=I,t[44]=J):J=t[44];let L;t[45]!==a||t[46]!==I?(L=a?.kind==="edit"&&(0,o.jsxDEV)(Rt,{mode:"edit",onClose:w,onDone:I,org:a.org},void 0,!1),t[45]=a,t[46]=I,t[47]=L):L=t[47];let B;t[48]!==e||t[49]!==a||t[50]!==I||t[51]!==l?(B=a?.kind==="delete"&&(0,o.jsxDEV)(Qt,{action:n(async()=>{let M=A(a.org.id);await e.deleteAuthOrganization({organizationId:M}),s(F=>F===M?null:F)},"action"),message:l("Delete this organization? Its members, invitations, teams, and custom roles are removed. This cannot be undone."),onClose:w,onDone:I,testId:"org-delete",title:l("Delete organization")},void 0,!1),t[48]=e,t[49]=a,t[50]=I,t[51]=l,t[52]=B):B=t[52];let V;return t[53]!==z||t[54]!==$||t[55]!==T||t[56]!==Q||t[57]!==H||t[58]!==J||t[59]!==L||t[60]!==B?(V=(0,o.jsxDEV)("div",{className:"flex flex-col gap-4","data-testid":"lunora-organizations",children:[z,$,T,Q,H,J,L,B]},void 0,!0),t[53]=z,t[54]=$,t[55]=T,t[56]=Q,t[57]=H,t[58]=J,t[59]=L,t[60]=B,t[61]=V):V=t[61],V},"OrganizationsPanel");export{Il as OrganizationsPanel};
@@ -1 +1 @@
1
- import{c as e}from"./chunk-UK64ZSUW.js";import{d as c}from"./chunk-ITQKVEP7.js";import{a as t,e as s,f as g,h}from"./chunk-RRCPZMC2.js";var m=s(g(),1);var n=s(h(),1);var y=t(({children:f,confirmLabel:l,disabled:r=!1,onConfirm:p,testId:o})=>{let a=c(),[u,i]=(0,m.useState)(!1),d=t(()=>{i(!0)},"startConfirm"),C=t(()=>{i(!1)},"cancelConfirm"),v=t(()=>{i(!1),p()},"acceptConfirm");return u?(0,n.jsxDEV)("span",{className:"inline-flex items-center gap-1","data-testid":`${o}-prompt`,role:"group",children:[(0,n.jsxDEV)(e,{"data-testid":`${o}-confirm`,disabled:r,onClick:v,size:"sm",type:"button",variant:"destructive",children:l??a("Confirm")},void 0,!1),(0,n.jsxDEV)(e,{"data-testid":`${o}-cancel`,onClick:C,size:"sm",type:"button",variant:"ghost",children:a("Cancel")},void 0,!1)]},void 0,!0):(0,n.jsxDEV)(e,{"data-testid":o,disabled:r,onClick:d,size:"sm",type:"button",variant:"outline",children:f},void 0,!1)},"ConfirmButton");export{y as a};
1
+ import{c as e}from"./chunk-UK64ZSUW.js";import{d as c}from"./chunk-5XO36X4C.js";import{a as t,e as s,f as g,h}from"./chunk-RRCPZMC2.js";var m=s(g(),1);var n=s(h(),1);var y=t(({children:f,confirmLabel:l,disabled:r=!1,onConfirm:p,testId:o})=>{let a=c(),[u,i]=(0,m.useState)(!1),d=t(()=>{i(!0)},"startConfirm"),C=t(()=>{i(!1)},"cancelConfirm"),v=t(()=>{i(!1),p()},"acceptConfirm");return u?(0,n.jsxDEV)("span",{className:"inline-flex items-center gap-1","data-testid":`${o}-prompt`,role:"group",children:[(0,n.jsxDEV)(e,{"data-testid":`${o}-confirm`,disabled:r,onClick:v,size:"sm",type:"button",variant:"destructive",children:l??a("Confirm")},void 0,!1),(0,n.jsxDEV)(e,{"data-testid":`${o}-cancel`,onClick:C,size:"sm",type:"button",variant:"ghost",children:a("Cancel")},void 0,!1)]},void 0,!0):(0,n.jsxDEV)(e,{"data-testid":o,disabled:r,onClick:d,size:"sm",type:"button",variant:"outline",children:f},void 0,!1)},"ConfirmButton");export{y as a};
@@ -1 +1 @@
1
- import{d as N,k as x}from"./chunk-ITQKVEP7.js";import{a as m,e as w,g as y,h as C}from"./chunk-RRCPZMC2.js";var v=w(y(),1);var o=w(C(),1);var T=m(b=>{let e=(0,v.c)(8),{value:l}=b;if(l==null){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsxDEV)("span",{className:"text-muted-foreground/50 italic",children:"NULL"},void 0,!1),e[0]=a):a=e[0],a}let t;e[1]!==l?(t=x(l),e[1]=l,e[2]=t):t=e[2];let r;e[3]!==l?(r=x(l),e[3]=l,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=(0,o.jsxDEV)("span",{title:t,children:r},void 0,!1),e[5]=t,e[6]=r,e[7]=s):s=e[7],s},"CellValue"),G=m(b=>{let e=(0,v.c)(22),{columns:l,rows:t}=b,r=N(),s;e[0]!==r?(s=r("Field"),e[0]=r,e[1]=s):s=e[1];let a;e[2]!==s?(a=(0,o.jsxDEV)("th",{className:"border-b border-e border-border px-3 py-1.5 text-start font-mono text-[11px] tracking-wide uppercase text-muted-foreground",children:s},void 0,!1),e[2]=s,e[3]=a):a=e[3];let i;if(e[4]!==t||e[5]!==r){let d;e[7]!==r?(d=m((u,h)=>(0,o.jsxDEV)("th",{className:"border-b border-border px-3 py-1.5 text-start font-mono text-[11px] tracking-wide uppercase tabular-nums text-muted-foreground",children:r("Row {n}",{n:h+1})},h,!1),"t42"),e[7]=r,e[8]=d):d=e[8],i=t.map(d),e[4]=t,e[5]=r,e[6]=i}else i=e[6];let n;e[9]!==a||e[10]!==i?(n=(0,o.jsxDEV)("thead",{className:"sticky top-0 z-10 bg-muted",children:(0,o.jsxDEV)("tr",{children:[a,i]},void 0,!0)},void 0,!1),e[9]=a,e[10]=i,e[11]=n):n=e[11];let f;if(e[12]!==l||e[13]!==t){let d;e[15]!==t?(d=m(u=>(0,o.jsxDEV)("tr",{className:"hover:bg-muted/40",children:[(0,o.jsxDEV)("th",{className:"border-b border-e border-border px-3 py-1.5 text-start font-mono font-medium whitespace-nowrap",scope:"row",children:u},void 0,!1),t.map((h,g)=>(0,o.jsxDEV)("td",{className:"max-w-md truncate border-b border-border px-3 py-1.5 font-mono",children:(0,o.jsxDEV)(T,{value:h[u]},void 0,!1)},g,!1))]},u,!0),"t62"),e[15]=t,e[16]=d):d=e[16],f=l.map(d),e[12]=l,e[13]=t,e[14]=f}else f=e[14];let c;e[17]!==f?(c=(0,o.jsxDEV)("tbody",{children:f},void 0,!1),e[17]=f,e[18]=c):c=e[18];let p;return e[19]!==n||e[20]!==c?(p=(0,o.jsxDEV)("div",{className:"min-h-0 flex-1 overflow-auto","data-testid":"db-transposed",children:(0,o.jsxDEV)("table",{className:"border-collapse text-xs",children:[n,c]},void 0,!0)},void 0,!1),e[19]=n,e[20]=c,e[21]=p):p=e[21],p},"TransposedTable"),L=m(({children:b,layout:e="card",testId:l})=>(0,o.jsxDEV)("div",{className:e==="fill"?"flex min-h-0 flex-1 flex-col overflow-hidden border-t border-border":"overflow-x-auto border border-border bg-card","data-testid":l,children:b},void 0,!1),"GridContainer");export{T as a,G as b,L as c};
1
+ import{d as N,k as x}from"./chunk-5XO36X4C.js";import{a as m,e as w,g as y,h as C}from"./chunk-RRCPZMC2.js";var v=w(y(),1);var o=w(C(),1);var T=m(b=>{let e=(0,v.c)(8),{value:l}=b;if(l==null){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsxDEV)("span",{className:"text-muted-foreground/50 italic",children:"NULL"},void 0,!1),e[0]=a):a=e[0],a}let t;e[1]!==l?(t=x(l),e[1]=l,e[2]=t):t=e[2];let r;e[3]!==l?(r=x(l),e[3]=l,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=(0,o.jsxDEV)("span",{title:t,children:r},void 0,!1),e[5]=t,e[6]=r,e[7]=s):s=e[7],s},"CellValue"),G=m(b=>{let e=(0,v.c)(22),{columns:l,rows:t}=b,r=N(),s;e[0]!==r?(s=r("Field"),e[0]=r,e[1]=s):s=e[1];let a;e[2]!==s?(a=(0,o.jsxDEV)("th",{className:"border-b border-e border-border px-3 py-1.5 text-start font-mono text-[11px] tracking-wide uppercase text-muted-foreground",children:s},void 0,!1),e[2]=s,e[3]=a):a=e[3];let i;if(e[4]!==t||e[5]!==r){let d;e[7]!==r?(d=m((u,h)=>(0,o.jsxDEV)("th",{className:"border-b border-border px-3 py-1.5 text-start font-mono text-[11px] tracking-wide uppercase tabular-nums text-muted-foreground",children:r("Row {n}",{n:h+1})},h,!1),"t42"),e[7]=r,e[8]=d):d=e[8],i=t.map(d),e[4]=t,e[5]=r,e[6]=i}else i=e[6];let n;e[9]!==a||e[10]!==i?(n=(0,o.jsxDEV)("thead",{className:"sticky top-0 z-10 bg-muted",children:(0,o.jsxDEV)("tr",{children:[a,i]},void 0,!0)},void 0,!1),e[9]=a,e[10]=i,e[11]=n):n=e[11];let f;if(e[12]!==l||e[13]!==t){let d;e[15]!==t?(d=m(u=>(0,o.jsxDEV)("tr",{className:"hover:bg-muted/40",children:[(0,o.jsxDEV)("th",{className:"border-b border-e border-border px-3 py-1.5 text-start font-mono font-medium whitespace-nowrap",scope:"row",children:u},void 0,!1),t.map((h,g)=>(0,o.jsxDEV)("td",{className:"max-w-md truncate border-b border-border px-3 py-1.5 font-mono",children:(0,o.jsxDEV)(T,{value:h[u]},void 0,!1)},g,!1))]},u,!0),"t62"),e[15]=t,e[16]=d):d=e[16],f=l.map(d),e[12]=l,e[13]=t,e[14]=f}else f=e[14];let c;e[17]!==f?(c=(0,o.jsxDEV)("tbody",{children:f},void 0,!1),e[17]=f,e[18]=c):c=e[18];let p;return e[19]!==n||e[20]!==c?(p=(0,o.jsxDEV)("div",{className:"min-h-0 flex-1 overflow-auto","data-testid":"db-transposed",children:(0,o.jsxDEV)("table",{className:"border-collapse text-xs",children:[n,c]},void 0,!0)},void 0,!1),e[19]=n,e[20]=c,e[21]=p):p=e[21],p},"TransposedTable"),L=m(({children:b,layout:e="card",testId:l})=>(0,o.jsxDEV)("div",{className:e==="fill"?"flex min-h-0 flex-1 flex-col overflow-hidden border-t border-border":"overflow-x-auto border border-border bg-card","data-testid":l,children:b},void 0,!1),"GridContainer");export{T as a,G as b,L as c};
@@ -1,3 +1,3 @@
1
- import{a as J}from"./chunk-EEWKIQUE.js";import{c as L}from"./chunk-RXVQJ4DO.js";import{a as v,e as y}from"./chunk-SEU5V7I6.js";import{a as P}from"./chunk-VLXV72QE.js";import{a as B}from"./chunk-LUP4YTBS.js";import{b as j}from"./chunk-4PC7IXNY.js";import"./chunk-2MLA6WFH.js";import"./chunk-VL23Y44O.js";import"./chunk-HV7G6DFP.js";import{c as D}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import"./chunk-CKSHCYGC.js";import{a as f}from"./chunk-G7ZBM54M.js";import{f as _}from"./chunk-L2YBC2BV.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{d as E,f as S,g as w,h as b,l as I}from"./chunk-ITQKVEP7.js";import{b as N}from"./chunk-22C6COGE.js";import{a as o,e as R,f as K,h as U}from"./chunk-RRCPZMC2.js";var c=R(K(),1);var e=R(U(),1);var V=S(f.exportShard),X=S(f.importShard),z=o(m=>m.map(a=>JSON.stringify(a)).join(`
1
+ import{a as J}from"./chunk-WOYQG5AM.js";import{c as L}from"./chunk-4F72YCTU.js";import{a as v,e as y}from"./chunk-SEU5V7I6.js";import{a as P}from"./chunk-VLXV72QE.js";import{a as B}from"./chunk-FDWXYXOM.js";import{b as j}from"./chunk-4PC7IXNY.js";import"./chunk-2MLA6WFH.js";import"./chunk-VL23Y44O.js";import"./chunk-HV7G6DFP.js";import{c as D}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import"./chunk-CKSHCYGC.js";import{a as f}from"./chunk-G7ZBM54M.js";import{f as _}from"./chunk-S2G7OH5T.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import{d as E,f as S,g as w,h as b,l as I}from"./chunk-5XO36X4C.js";import{b as N}from"./chunk-ZXLEXF4X.js";import{a as o,e as R,f as K,h as U}from"./chunk-RRCPZMC2.js";var c=R(K(),1);var e=R(U(),1);var V=S(f.exportShard),X=S(f.importShard),z=o(m=>m.map(a=>JSON.stringify(a)).join(`
2
2
  `),"toNdjson"),G=o(m=>{let a=[],x=m.split(`
3
3
  `);for(let[r,n]of x.entries()){let h=n.trim();if(h==="")continue;let l=JSON.parse(h);if(typeof l!="object"||l===null)throw new N("INTERNAL",`line ${(r+1).toString()}: expected a { table, doc } object`);let s=l;if(typeof s.table!="string"||typeof s.doc!="object"||s.doc===null||Array.isArray(s.doc))throw new N("INTERNAL",`line ${(r+1).toString()}: expected a { table, doc } object`);a.push(s)}return a},"parseNdjson"),ie=o(({initialShardKey:m})=>{let a=_(),x=L(),r=E(),[n,h]=(0,c.useState)(m??""),[l,s]=(0,c.useState)(""),[C,p]=(0,c.useState)(!1),[T,u]=(0,c.useState)(null),[i,g]=(0,c.useState)(null),[A,O]=(0,c.useState)(null),$=o(async()=>{p(!0),u(null),g(null);try{let t=await a.query(V,{},w(n));j(n),s(z(t.rows)),O(t.rows.length)}catch(t){u(b(t))}finally{p(!1)}},"exportShard"),k=o(async()=>{p(!0),u(null),g(null),O(null);let t;try{t=G(l)}catch(d){u(r("Invalid NDJSON: {message}",{message:b(d)})),p(!1);return}try{let d=await a.query(X,{rows:t},w(n));j(n),g(d),x(f.readTablePage),x(f.listTables)}catch(d){u(b(d))}finally{p(!1)}},"importShard"),M=i===null?0:Object.values(i.inserted).reduce((t,d)=>t+d,0),q=o(()=>{I($())},"runExport"),F=o(()=>{I(k())},"runImport"),H=o(t=>{s(t.target.value)},"onNdjsonChange");return(0,e.jsxDEV)("div",{className:"flex flex-col gap-4","data-testid":"lunora-export-import",children:[(0,e.jsxDEV)(v,{className:"rounded-xl border border-border bg-card shadow-xs",children:[(0,e.jsxDEV)("header",{className:"border-b border-border px-4 py-3",children:(0,e.jsxDEV)("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:r("Export")},void 0,!1)},void 0,!1),(0,e.jsxDEV)(y,{className:"flex flex-col gap-3 p-4",children:[(0,e.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsxDEV)(B,{onChange:h,testId:"ei-shard-input",value:n},void 0,!1),(0,e.jsxDEV)(D,{"data-testid":"ei-export",disabled:C,onClick:q,type:"button",children:r("Export")},void 0,!1)]},void 0,!0),A!==null&&(0,e.jsxDEV)("p",{className:"text-sm text-muted-foreground","data-testid":"ei-export-result",children:r("Exported {count} rows.",{count:A})},void 0,!1)]},void 0,!0)]},void 0,!0),(0,e.jsxDEV)(v,{className:"rounded-xl border border-border bg-card shadow-xs",children:[(0,e.jsxDEV)("header",{className:"border-b border-border px-4 py-3",children:(0,e.jsxDEV)("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:r("Import")},void 0,!1)},void 0,!1),(0,e.jsxDEV)(y,{className:"flex flex-col gap-3 p-4",children:[(0,e.jsxDEV)(P,{"aria-label":"NDJSON",className:"font-mono text-xs min-h-40 rounded-md","data-testid":"ei-ndjson",onChange:H,placeholder:'{"table":"messages","doc":{\u2026}}',value:l},void 0,!1),(0,e.jsxDEV)("div",{className:"flex flex-wrap items-center gap-2",children:(0,e.jsxDEV)(J,{confirmLabel:r("Import (writes rows)?"),disabled:C||l.trim()==="",onConfirm:F,testId:"ei-import",children:r("Import")},void 0,!1)},void 0,!1),i!==null&&(0,e.jsxDEV)("div",{className:"flex flex-col gap-2","data-testid":"ei-import-result",children:[(0,e.jsxDEV)("p",{className:"text-sm text-muted-foreground",children:r("Inserted {inserted}, {conflicts} conflicts, {errors} errors.",{conflicts:i.conflicts,errors:i.errors.length,inserted:M})},void 0,!1),i.errors.length>0&&(0,e.jsxDEV)("ul",{className:"flex flex-col gap-1","data-testid":"ei-import-errors",children:i.errors.map(t=>(0,e.jsxDEV)("li",{className:"text-xs text-destructive",children:r("line {line} ({table}): {message}",{line:t.line,message:t.message,table:t.table})},`${t.table}-${t.line.toString()}`,!1))},void 0,!1)]},void 0,!0)]},void 0,!0)]},void 0,!0),T!==null&&(0,e.jsxDEV)("p",{className:"text-sm text-destructive","data-testid":"ei-error",role:"alert",children:T},void 0,!1)]},void 0,!0)},"ExportImportPanel");export{ie as ExportImportPanel};
@@ -7,7 +7,7 @@ import{a as t}from"./chunk-RRCPZMC2.js";var r={BAD_REQUEST:{status:400,title:"Ba
7
7
  `),header:"`unique` must be a literal",id:"lunora-unique-literal",test:t(e=>e.includes("must be a literal")&&e.includes("unique"),"test")},{body:["A declared container/workflow class isn't re-exported by your worker entry, so `wrangler deploy` would reject it.","","Add the generated re-export shown in the error to your worker entry (e.g. `src/index.ts`):","","```ts",'export * from "./lunora/_generated/containers";',"```"].join(`
8
8
  `),header:"Binding not exported by your worker entry",id:"lunora-worker-entry-export-gap",test:t(e=>e.includes("not exported by your worker entry"),"test")},{body:["A row with the same value already exists in a `unique` index.","","- If you meant to upsert, use `ctx.db.<table>().upsert(...)` (or `.patch(...)` an existing row) instead of `.insert(...)`.",`- Otherwise pick a value that isn't already taken, and consider surfacing a friendly "already exists" message to the user.`].join(`
9
9
  `),header:"Unique constraint violation",id:"lunora-runtime-unique",test:t(e=>e.includes("unique constraint violation on"),"test")},{body:r.CONFLICT.hint.join(`
10
- `),header:"Optimistic concurrency conflict",id:"lunora-runtime-occ",test:t(e=>e.includes("optimistic concurrency conflict"),"test")}],u=t(e=>(Array.isArray(e)?e.join(`
11
- `):e).split(`
10
+ `),header:"Optimistic concurrency conflict",id:"lunora-runtime-occ",test:t(e=>e.includes("optimistic concurrency conflict"),"test")}],u=t(e=>(typeof e=="string"?e:e.join(`
11
+ `)).split(`
12
12
  `).filter(a=>!a.startsWith("```")).join(`
13
13
  `).replaceAll(/\*\*(.+?)\*\*/gu,"$1").replaceAll(/`([^`]+)`/gu,"$1"),"flattenHint");var o=class extends Error{static{t(this,"LunoraError")}type="VisulimaError";hint;title;loc;code;status;docsUrl;data;constructor(a,l,n={}){let i=s(a);super(l??a,n.cause===void 0?void 0:{cause:n.cause}),this.name=n.name??"LunoraError",this.hint=n.hint??i?.hint,this.title=n.title??i?.title,this.loc=n.location,this.code=a,this.status=n.status??i?.status??500,this.docsUrl=n.docsUrl??i?.docsUrl,this.data=n.data}};export{u as a,o as b};
@@ -1,4 +1,4 @@
1
- import{a as pS,b as rp,c as bS,d as hp,e as ES,f as TS,k as AS}from"./chunk-DANDBL6P.js";import"./chunk-ZPUO7FNI.js";import"./chunk-WVTPZ6CM.js";import"./chunk-SHERR7ZP.js";import"./chunk-5OIBXYZM.js";import"./chunk-L7SK4ZZD.js";import"./chunk-ZIGWVHCS.js";import"./chunk-7TJJXVSE.js";import"./chunk-WI7GWFEG.js";import{a as SS}from"./chunk-2K47A3P6.js";import"./chunk-KEGAWN6Y.js";import"./chunk-RXVQJ4DO.js";import"./chunk-SEU5V7I6.js";import"./chunk-KZ6INM5M.js";import"./chunk-4QHKBC77.js";import{a as dp}from"./chunk-2MLA6WFH.js";import{R as yS}from"./chunk-VL23Y44O.js";import{a as ET}from"./chunk-HV7G6DFP.js";import{c as gS}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import"./chunk-G7ZBM54M.js";import{a as rS,e as hS}from"./chunk-L2YBC2BV.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import"./chunk-TAD43CG5.js";import{a as mS,d as fp,m as vS}from"./chunk-ITQKVEP7.js";import{b as sS}from"./chunk-22C6COGE.js";import{a as o,c as gf,e as Wi,f as fS,g as TT,h as dS,j as sp}from"./chunk-RRCPZMC2.js";var DS=gf(Ge=>{"use strict";(function(){function he(){if(ot=!1,F){var z=Ge.unstable_now();Ae=z;var Y=!0;try{e:{me=!1,He&&(He=!1,pt(Ke),Ke=-1),ie=!0;var q=Z;try{t:{for(fe(z),le=G(Q);le!==null&&!(le.expirationTime>z&&A());){var we=le.callback;if(typeof we=="function"){le.callback=null,Z=le.priorityLevel;var Le=we(le.expirationTime<=z);if(z=Ge.unstable_now(),typeof Le=="function"){le.callback=Le,fe(z),Y=!0;break t}le===G(Q)&&j(Q),fe(z)}else j(Q);le=G(Q)}if(le!==null)Y=!0;else{var ba=G(pe);ba!==null&&ne(X,ba.startTime-z),Y=!1}}break e}finally{le=null,Z=q,ie=!1}Y=void 0}}finally{Y?ve():F=!1}}}o(he,"performWorkUntilDeadline");function r(z,Y){var q=z.length;z.push(Y);e:for(;0<q;){var we=q-1>>>1,Le=z[we];if(0<L(Le,Y))z[we]=Y,z[q]=Le,q=we;else break e}}o(r,"push");function G(z){return z.length===0?null:z[0]}o(G,"peek");function j(z){if(z.length===0)return null;var Y=z[0],q=z.pop();if(q!==Y){z[0]=q;e:for(var we=0,Le=z.length,ba=Le>>>1;we<ba;){var iu=2*(we+1)-1,yo=z[iu],Sn=iu+1,it=z[Sn];if(0>L(yo,q))Sn<Le&&0>L(it,yo)?(z[we]=it,z[Sn]=q,we=Sn):(z[we]=yo,z[iu]=q,we=iu);else if(Sn<Le&&0>L(it,q))z[we]=it,z[Sn]=q,we=Sn;else break e}}return Y}o(j,"pop");function L(z,Y){var q=z.sortIndex-Y.sortIndex;return q!==0?q:z.id-Y.id}o(L,"compare");function fe(z){for(var Y=G(pe);Y!==null;){if(Y.callback===null)j(pe);else if(Y.startTime<=z)j(pe),Y.sortIndex=Y.expirationTime,r(Q,Y);else break;Y=G(pe)}}o(fe,"advanceTimers");function X(z){if(He=!1,fe(z),!me)if(G(Q)!==null)me=!0,F||(F=!0,ve());else{var Y=G(pe);Y!==null&&ne(X,Y.startTime-z)}}o(X,"handleTimeout");function A(){return ot?!0:!(Ge.unstable_now()-Ae<U)}o(A,"shouldYieldToHost");function ne(z,Y){Ke=Gt(function(){z(Ge.unstable_now())},Y)}if(o(ne,"requestHostTimeout"),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Ge.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Oe=performance;Ge.unstable_now=function(){return Oe.now()}}else{var Te=Date,ee=Te.now();Ge.unstable_now=function(){return Te.now()-ee}}var Q=[],pe=[],ze=1,le=null,Z=3,ie=!1,me=!1,He=!1,ot=!1,Gt=typeof setTimeout=="function"?setTimeout:null,pt=typeof clearTimeout=="function"?clearTimeout:null,bt=typeof setImmediate<"u"?setImmediate:null,F=!1,Ke=-1,U=5,Ae=-1;if(typeof bt=="function")var ve=o(function(){bt(he)},"schedulePerformWorkUntilDeadline");else if(typeof MessageChannel<"u"){var ce=new MessageChannel,ul=ce.port2;ce.port1.onmessage=he,ve=o(function(){ul.postMessage(null)},"schedulePerformWorkUntilDeadline")}else ve=o(function(){Gt(he,0)},"schedulePerformWorkUntilDeadline");Ge.unstable_IdlePriority=5,Ge.unstable_ImmediatePriority=1,Ge.unstable_LowPriority=4,Ge.unstable_NormalPriority=3,Ge.unstable_Profiling=null,Ge.unstable_UserBlockingPriority=2,Ge.unstable_cancelCallback=function(z){z.callback=null},Ge.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<z?Math.floor(1e3/z):5},Ge.unstable_getCurrentPriorityLevel=function(){return Z},Ge.unstable_next=function(z){switch(Z){case 1:case 2:case 3:var Y=3;break;default:Y=Z}var q=Z;Z=Y;try{return z()}finally{Z=q}},Ge.unstable_requestPaint=function(){ot=!0},Ge.unstable_runWithPriority=function(z,Y){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var q=Z;Z=z;try{return Y()}finally{Z=q}},Ge.unstable_scheduleCallback=function(z,Y,q){var we=Ge.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?we+q:we):q=we,z){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=q+Le,z={id:ze++,callback:Y,priorityLevel:z,startTime:q,expirationTime:Le,sortIndex:-1},q>we?(z.sortIndex=q,r(pe,z),G(Q)===null&&z===G(pe)&&(He?(pt(Ke),Ke=-1):He=!0,ne(X,q-we))):(z.sortIndex=Le,r(Q,z),me||ie||(me=!0,F||(F=!0,ve()))),z},Ge.unstable_shouldYield=A,Ge.unstable_wrapCallback=function(z){var Y=Z;return function(){var q=Z;Z=Y;try{return z.apply(this,arguments)}finally{Z=q}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var OS=gf((BT,RS)=>{"use strict";RS.exports=DS()});var zS=gf(vf=>{"use strict";(function(){function he(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}o(he,"findHook");function r(e,t,n,l){if(n>=t.length)return l;var a=t[n],u=lt(e)?e.slice():I({},e);return u[a]=r(e[a],t,n+1,l),u}o(r,"copyWithSetImpl");function G(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var l=0;l<n.length-1;l++)if(t[l]!==n[l]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return j(e,t,n,0)}}o(G,"copyWithRename");function j(e,t,n,l){var a=t[l],u=lt(e)?e.slice():I({},e);return l+1===t.length?(u[n[l]]=u[a],lt(u)?u.splice(a,1):delete u[a]):u[a]=j(e[a],t,n,l+1),u}o(j,"copyWithRenameImpl");function L(e,t,n){var l=t[n],a=lt(e)?e.slice():I({},e);return n+1===t.length?(lt(a)?a.splice(l,1):delete a[l],a):(a[l]=L(e[l],t,n+1),a)}o(L,"copyWithDeleteImpl");function fe(){return!1}o(fe,"shouldSuspendImpl");function X(){return null}o(X,"shouldErrorImpl");function A(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}o(A,"warnInvalidHookAccess");function ne(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}o(ne,"warnInvalidContextAccess");function Oe(){}o(Oe,"noop");function Te(){}o(Te,"warnForMissingKey");function ee(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}o(ee,"setToSortedString");function Q(e,t,n,l){return new sb(e,t,n,l)}o(Q,"createFiber");function pe(e,t){e.context===Pl&&(Cd(e.current,2,t,e,null,null),Du())}o(pe,"scheduleRoot");function ze(e,t){if(sn!==null){var n=t.staleFamilies;t=t.updatedFamilies,Jo(),mm(e.current,t,n),Du()}}o(ze,"scheduleRefresh");function le(e){sn=e}o(le,"setRefreshHandler");function Z(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}o(Z,"isValidContainer");function ie(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}o(ie,"getNearestMountedFiber");function me(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}o(me,"getSuspenseInstanceFromFiber");function He(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}o(He,"getActivityInstanceFromFiber");function ot(e){if(ie(e)!==e)throw Error("Unable to find node on an unmounted component.")}o(ot,"assertIsMounted");function Gt(e){var t=e.alternate;if(!t){if(t=ie(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,l=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return ot(a),e;if(u===l)return ot(a),t;u=u.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==l.return)n=a,l=u;else{for(var i=!1,c=a.child;c;){if(c===n){i=!0,n=a,l=u;break}if(c===l){i=!0,l=a,n=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===n){i=!0,n=u,l=a;break}if(c===l){i=!0,l=u,n=a;break}c=c.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==l)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}o(Gt,"findCurrentFiberUsingSlowPath");function pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=pt(e),t!==null)return t;e=e.sibling}return null}o(pt,"findCurrentHostFiberImpl");function bt(e){return e===null||typeof e!="object"?null:(e=Tg&&e[Tg]||e["@@iterator"],typeof e=="function"?e:null)}o(bt,"getIteratorFn");function F(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_2?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _u:return"Fragment";case Bd:return"Profiler";case fs:return"StrictMode";case qd:return"Suspense";case jd:return"SuspenseList";case Yd:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Uu:return"Portal";case Kn:return e.displayName||"Context";case Nd:return(e._context.displayName||"Context")+".Consumer";case ni:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rs:return t=e.displayName||null,t!==null?t:F(e.type)||"Memo";case kt:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}o(F,"getComponentNameFromType");function Ke(e){return typeof e.tag=="number"?U(e):typeof e.name=="string"?e.name:null}o(Ke,"getComponentNameFromOwner");function U(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===fs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return U(e.return)}return null}o(U,"getComponentNameFromFiber");function Ae(e){return{current:e}}o(Ae,"createCursor");function ve(e,t){0>ml?console.error("Unexpected pop."):(t!==Ld[ml]&&console.error("Unexpected Fiber popped."),e.current=Gd[ml],Gd[ml]=null,Ld[ml]=null,ml--)}o(ve,"pop");function ce(e,t,n){ml++,Gd[ml]=e.current,Ld[ml]=n,e.current=t}o(ce,"push");function ul(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}o(ul,"requiredContext");function z(e,t){ce($l,t,e),ce(li,e,e),ce(Jl,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Jy(t):Ml;break;default:if(n=t.tagName,t=t.namespaceURI)t=Jy(t),t=$y(t,n);else switch(n){case"svg":t=ro;break;case"math":t=ff;break;default:t=Ml}}n=n.toLowerCase(),n=Gp(null,n),n={context:t,ancestorInfo:n},ve(Jl,e),ce(Jl,n,e)}o(z,"pushHostContainer");function Y(e){ve(Jl,e),ve(li,e),ve($l,e)}o(Y,"popHostContainer");function q(){return ul(Jl.current)}o(q,"getHostContext");function we(e){e.memoizedState!==null&&ce(ds,e,e);var t=ul(Jl.current),n=e.type,l=$y(t.context,n);n=Gp(t.ancestorInfo,n),l={context:l,ancestorInfo:n},t!==l&&(ce(li,e,e),ce(Jl,l,e))}o(we,"pushHostContext");function Le(e){li.current===e&&(ve(Jl,e),ve(li,e)),ds.current===e&&(ve(ds,e),Ki._currentValue=ou)}o(Le,"popHostContext");function ba(){}o(ba,"disabledLog");function iu(){if(ai===0){Ag=console.log,Dg=console.info,Rg=console.warn,Og=console.error,zg=console.group,Cg=console.groupCollapsed,Mg=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ba,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ai++}o(iu,"disableLogs");function yo(){if(ai--,ai===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Ag}),info:I({},e,{value:Dg}),warn:I({},e,{value:Rg}),error:I({},e,{value:Og}),group:I({},e,{value:zg}),groupCollapsed:I({},e,{value:Cg}),groupEnd:I({},e,{value:Mg})})}0>ai&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}o(yo,"reenableLogs");function Sn(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
1
+ import{a as pS,b as rp,c as bS,d as hp,e as ES,f as TS,k as AS}from"./chunk-NEQV5EQC.js";import"./chunk-ZPUO7FNI.js";import"./chunk-WVTPZ6CM.js";import"./chunk-SHERR7ZP.js";import"./chunk-5OIBXYZM.js";import"./chunk-L7SK4ZZD.js";import"./chunk-ZIGWVHCS.js";import"./chunk-7TJJXVSE.js";import"./chunk-OXHHSUXO.js";import{a as SS}from"./chunk-2K47A3P6.js";import"./chunk-KEGAWN6Y.js";import"./chunk-4F72YCTU.js";import"./chunk-SEU5V7I6.js";import"./chunk-KZ6INM5M.js";import"./chunk-4QHKBC77.js";import{a as dp}from"./chunk-2MLA6WFH.js";import{R as yS}from"./chunk-VL23Y44O.js";import{a as ET}from"./chunk-HV7G6DFP.js";import{c as gS}from"./chunk-UK64ZSUW.js";import"./chunk-O3NAGRTR.js";import"./chunk-ZPP2KOR4.js";import"./chunk-CKSHCYGC.js";import"./chunk-G7ZBM54M.js";import{a as rS,e as hS}from"./chunk-S2G7OH5T.js";import"./chunk-ZHVTQ37P.js";import"./chunk-3OA7PECS.js";import"./chunk-TAD43CG5.js";import{a as mS,d as fp,m as vS}from"./chunk-5XO36X4C.js";import{b as sS}from"./chunk-ZXLEXF4X.js";import{a as o,c as gf,e as Wi,f as fS,g as TT,h as dS,j as sp}from"./chunk-RRCPZMC2.js";var DS=gf(Ge=>{"use strict";(function(){function he(){if(ot=!1,F){var z=Ge.unstable_now();Ae=z;var Y=!0;try{e:{me=!1,He&&(He=!1,pt(Ke),Ke=-1),ie=!0;var q=Z;try{t:{for(fe(z),le=G(Q);le!==null&&!(le.expirationTime>z&&A());){var we=le.callback;if(typeof we=="function"){le.callback=null,Z=le.priorityLevel;var Le=we(le.expirationTime<=z);if(z=Ge.unstable_now(),typeof Le=="function"){le.callback=Le,fe(z),Y=!0;break t}le===G(Q)&&j(Q),fe(z)}else j(Q);le=G(Q)}if(le!==null)Y=!0;else{var ba=G(pe);ba!==null&&ne(X,ba.startTime-z),Y=!1}}break e}finally{le=null,Z=q,ie=!1}Y=void 0}}finally{Y?ve():F=!1}}}o(he,"performWorkUntilDeadline");function r(z,Y){var q=z.length;z.push(Y);e:for(;0<q;){var we=q-1>>>1,Le=z[we];if(0<L(Le,Y))z[we]=Y,z[q]=Le,q=we;else break e}}o(r,"push");function G(z){return z.length===0?null:z[0]}o(G,"peek");function j(z){if(z.length===0)return null;var Y=z[0],q=z.pop();if(q!==Y){z[0]=q;e:for(var we=0,Le=z.length,ba=Le>>>1;we<ba;){var iu=2*(we+1)-1,yo=z[iu],Sn=iu+1,it=z[Sn];if(0>L(yo,q))Sn<Le&&0>L(it,yo)?(z[we]=it,z[Sn]=q,we=Sn):(z[we]=yo,z[iu]=q,we=iu);else if(Sn<Le&&0>L(it,q))z[we]=it,z[Sn]=q,we=Sn;else break e}}return Y}o(j,"pop");function L(z,Y){var q=z.sortIndex-Y.sortIndex;return q!==0?q:z.id-Y.id}o(L,"compare");function fe(z){for(var Y=G(pe);Y!==null;){if(Y.callback===null)j(pe);else if(Y.startTime<=z)j(pe),Y.sortIndex=Y.expirationTime,r(Q,Y);else break;Y=G(pe)}}o(fe,"advanceTimers");function X(z){if(He=!1,fe(z),!me)if(G(Q)!==null)me=!0,F||(F=!0,ve());else{var Y=G(pe);Y!==null&&ne(X,Y.startTime-z)}}o(X,"handleTimeout");function A(){return ot?!0:!(Ge.unstable_now()-Ae<U)}o(A,"shouldYieldToHost");function ne(z,Y){Ke=Gt(function(){z(Ge.unstable_now())},Y)}if(o(ne,"requestHostTimeout"),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Ge.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Oe=performance;Ge.unstable_now=function(){return Oe.now()}}else{var Te=Date,ee=Te.now();Ge.unstable_now=function(){return Te.now()-ee}}var Q=[],pe=[],ze=1,le=null,Z=3,ie=!1,me=!1,He=!1,ot=!1,Gt=typeof setTimeout=="function"?setTimeout:null,pt=typeof clearTimeout=="function"?clearTimeout:null,bt=typeof setImmediate<"u"?setImmediate:null,F=!1,Ke=-1,U=5,Ae=-1;if(typeof bt=="function")var ve=o(function(){bt(he)},"schedulePerformWorkUntilDeadline");else if(typeof MessageChannel<"u"){var ce=new MessageChannel,ul=ce.port2;ce.port1.onmessage=he,ve=o(function(){ul.postMessage(null)},"schedulePerformWorkUntilDeadline")}else ve=o(function(){Gt(he,0)},"schedulePerformWorkUntilDeadline");Ge.unstable_IdlePriority=5,Ge.unstable_ImmediatePriority=1,Ge.unstable_LowPriority=4,Ge.unstable_NormalPriority=3,Ge.unstable_Profiling=null,Ge.unstable_UserBlockingPriority=2,Ge.unstable_cancelCallback=function(z){z.callback=null},Ge.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<z?Math.floor(1e3/z):5},Ge.unstable_getCurrentPriorityLevel=function(){return Z},Ge.unstable_next=function(z){switch(Z){case 1:case 2:case 3:var Y=3;break;default:Y=Z}var q=Z;Z=Y;try{return z()}finally{Z=q}},Ge.unstable_requestPaint=function(){ot=!0},Ge.unstable_runWithPriority=function(z,Y){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var q=Z;Z=z;try{return Y()}finally{Z=q}},Ge.unstable_scheduleCallback=function(z,Y,q){var we=Ge.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?we+q:we):q=we,z){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=q+Le,z={id:ze++,callback:Y,priorityLevel:z,startTime:q,expirationTime:Le,sortIndex:-1},q>we?(z.sortIndex=q,r(pe,z),G(Q)===null&&z===G(pe)&&(He?(pt(Ke),Ke=-1):He=!0,ne(X,q-we))):(z.sortIndex=Le,r(Q,z),me||ie||(me=!0,F||(F=!0,ve()))),z},Ge.unstable_shouldYield=A,Ge.unstable_wrapCallback=function(z){var Y=Z;return function(){var q=Z;Z=Y;try{return z.apply(this,arguments)}finally{Z=q}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var OS=gf((BT,RS)=>{"use strict";RS.exports=DS()});var zS=gf(vf=>{"use strict";(function(){function he(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}o(he,"findHook");function r(e,t,n,l){if(n>=t.length)return l;var a=t[n],u=lt(e)?e.slice():I({},e);return u[a]=r(e[a],t,n+1,l),u}o(r,"copyWithSetImpl");function G(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var l=0;l<n.length-1;l++)if(t[l]!==n[l]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return j(e,t,n,0)}}o(G,"copyWithRename");function j(e,t,n,l){var a=t[l],u=lt(e)?e.slice():I({},e);return l+1===t.length?(u[n[l]]=u[a],lt(u)?u.splice(a,1):delete u[a]):u[a]=j(e[a],t,n,l+1),u}o(j,"copyWithRenameImpl");function L(e,t,n){var l=t[n],a=lt(e)?e.slice():I({},e);return n+1===t.length?(lt(a)?a.splice(l,1):delete a[l],a):(a[l]=L(e[l],t,n+1),a)}o(L,"copyWithDeleteImpl");function fe(){return!1}o(fe,"shouldSuspendImpl");function X(){return null}o(X,"shouldErrorImpl");function A(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}o(A,"warnInvalidHookAccess");function ne(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}o(ne,"warnInvalidContextAccess");function Oe(){}o(Oe,"noop");function Te(){}o(Te,"warnForMissingKey");function ee(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}o(ee,"setToSortedString");function Q(e,t,n,l){return new sb(e,t,n,l)}o(Q,"createFiber");function pe(e,t){e.context===Pl&&(Cd(e.current,2,t,e,null,null),Du())}o(pe,"scheduleRoot");function ze(e,t){if(sn!==null){var n=t.staleFamilies;t=t.updatedFamilies,Jo(),mm(e.current,t,n),Du()}}o(ze,"scheduleRefresh");function le(e){sn=e}o(le,"setRefreshHandler");function Z(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}o(Z,"isValidContainer");function ie(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}o(ie,"getNearestMountedFiber");function me(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}o(me,"getSuspenseInstanceFromFiber");function He(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}o(He,"getActivityInstanceFromFiber");function ot(e){if(ie(e)!==e)throw Error("Unable to find node on an unmounted component.")}o(ot,"assertIsMounted");function Gt(e){var t=e.alternate;if(!t){if(t=ie(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,l=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return ot(a),e;if(u===l)return ot(a),t;u=u.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==l.return)n=a,l=u;else{for(var i=!1,c=a.child;c;){if(c===n){i=!0,n=a,l=u;break}if(c===l){i=!0,l=a,n=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===n){i=!0,n=u,l=a;break}if(c===l){i=!0,l=u,n=a;break}c=c.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==l)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}o(Gt,"findCurrentFiberUsingSlowPath");function pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=pt(e),t!==null)return t;e=e.sibling}return null}o(pt,"findCurrentHostFiberImpl");function bt(e){return e===null||typeof e!="object"?null:(e=Tg&&e[Tg]||e["@@iterator"],typeof e=="function"?e:null)}o(bt,"getIteratorFn");function F(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_2?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _u:return"Fragment";case Bd:return"Profiler";case fs:return"StrictMode";case qd:return"Suspense";case jd:return"SuspenseList";case Yd:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Uu:return"Portal";case Kn:return e.displayName||"Context";case Nd:return(e._context.displayName||"Context")+".Consumer";case ni:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rs:return t=e.displayName||null,t!==null?t:F(e.type)||"Memo";case kt:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}o(F,"getComponentNameFromType");function Ke(e){return typeof e.tag=="number"?U(e):typeof e.name=="string"?e.name:null}o(Ke,"getComponentNameFromOwner");function U(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===fs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return U(e.return)}return null}o(U,"getComponentNameFromFiber");function Ae(e){return{current:e}}o(Ae,"createCursor");function ve(e,t){0>ml?console.error("Unexpected pop."):(t!==Ld[ml]&&console.error("Unexpected Fiber popped."),e.current=Gd[ml],Gd[ml]=null,Ld[ml]=null,ml--)}o(ve,"pop");function ce(e,t,n){ml++,Gd[ml]=e.current,Ld[ml]=n,e.current=t}o(ce,"push");function ul(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}o(ul,"requiredContext");function z(e,t){ce($l,t,e),ce(li,e,e),ce(Jl,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Jy(t):Ml;break;default:if(n=t.tagName,t=t.namespaceURI)t=Jy(t),t=$y(t,n);else switch(n){case"svg":t=ro;break;case"math":t=ff;break;default:t=Ml}}n=n.toLowerCase(),n=Gp(null,n),n={context:t,ancestorInfo:n},ve(Jl,e),ce(Jl,n,e)}o(z,"pushHostContainer");function Y(e){ve(Jl,e),ve(li,e),ve($l,e)}o(Y,"popHostContainer");function q(){return ul(Jl.current)}o(q,"getHostContext");function we(e){e.memoizedState!==null&&ce(ds,e,e);var t=ul(Jl.current),n=e.type,l=$y(t.context,n);n=Gp(t.ancestorInfo,n),l={context:l,ancestorInfo:n},t!==l&&(ce(li,e,e),ce(Jl,l,e))}o(we,"pushHostContext");function Le(e){li.current===e&&(ve(Jl,e),ve(li,e)),ds.current===e&&(ve(ds,e),Ki._currentValue=ou)}o(Le,"popHostContext");function ba(){}o(ba,"disabledLog");function iu(){if(ai===0){Ag=console.log,Dg=console.info,Rg=console.warn,Og=console.error,zg=console.group,Cg=console.groupCollapsed,Mg=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ba,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ai++}o(iu,"disableLogs");function yo(){if(ai--,ai===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Ag}),info:I({},e,{value:Dg}),warn:I({},e,{value:Rg}),error:I({},e,{value:Og}),group:I({},e,{value:zg}),groupCollapsed:I({},e,{value:Cg}),groupEnd:I({},e,{value:Mg})})}0>ai&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}o(yo,"reenableLogs");function Sn(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
2
2
  `)&&(e=e.slice(29)),t=e.indexOf(`
3
3
  `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
4
4
  `,t)),t!==-1)e=e.slice(0,t);else return"";return e}o(Sn,"formatOwnerStack");function it(e){if(Vd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Vd=t&&t[1]||"",Ug=-1<n.stack.indexOf(`