beadscope 0.5.1 → 0.6.0

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 (120) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/fallback-build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +4 -4
  5. package/.next/required-server-files.js +3 -3
  6. package/.next/required-server-files.json +3 -3
  7. package/.next/server/app/_global-error.html +1 -1
  8. package/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  13. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/_not-found.html +2 -2
  15. package/.next/server/app/_not-found.rsc +4 -4
  16. package/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  17. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
  18. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  19. package/.next/server/app/api/config/route.js.nft.json +1 -1
  20. package/.next/server/app/api/fs/route.js.nft.json +1 -1
  21. package/.next/server/app/api/p/[projectId]/activity/route.js.nft.json +1 -1
  22. package/.next/server/app/api/p/[projectId]/attachments/[...path]/route.js.nft.json +1 -1
  23. package/.next/server/app/api/p/[projectId]/attachments/route.js.nft.json +1 -1
  24. package/.next/server/app/api/p/[projectId]/beads/[id]/archive/route.js.nft.json +1 -1
  25. package/.next/server/app/api/p/[projectId]/beads/[id]/assist/route.js.nft.json +1 -1
  26. package/.next/server/app/api/p/[projectId]/beads/[id]/comments/route.js.nft.json +1 -1
  27. package/.next/server/app/api/p/[projectId]/beads/[id]/deps/route.js.nft.json +1 -1
  28. package/.next/server/app/api/p/[projectId]/beads/[id]/gate/route.js.nft.json +1 -1
  29. package/.next/server/app/api/p/[projectId]/beads/[id]/human/route.js.nft.json +1 -1
  30. package/.next/server/app/api/p/[projectId]/beads/[id]/route.js.nft.json +1 -1
  31. package/.next/server/app/api/p/[projectId]/beads/[id]/status/route.js.nft.json +1 -1
  32. package/.next/server/app/api/p/[projectId]/beads/route.js.nft.json +1 -1
  33. package/.next/server/app/api/p/[projectId]/beads/stream/route.js.nft.json +1 -1
  34. package/.next/server/app/api/p/[projectId]/doctor/route.js.nft.json +1 -1
  35. package/.next/server/app/api/p/[projectId]/gamification/route.js.nft.json +1 -1
  36. package/.next/server/app/api/p/[projectId]/insights/route.js.nft.json +1 -1
  37. package/.next/server/app/api/p/[projectId]/order/route.js.nft.json +1 -1
  38. package/.next/server/app/api/p/[projectId]/publish/route.js.nft.json +1 -1
  39. package/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  40. package/.next/server/app/api/projects/route.js.nft.json +1 -1
  41. package/.next/server/app/api/telemetry/route.js.nft.json +1 -1
  42. package/.next/server/app/api/update/check/route.js +3 -3
  43. package/.next/server/app/api/update/check/route.js.nft.json +1 -1
  44. package/.next/server/app/api/update/run/route.js +3 -3
  45. package/.next/server/app/api/update/run/route.js.nft.json +1 -1
  46. package/.next/server/app/api/viewer-mode/route.js.nft.json +1 -1
  47. package/.next/server/app/index.html +2 -2
  48. package/.next/server/app/index.rsc +7 -7
  49. package/.next/server/app/index.segments/__PAGE__.segment.rsc +7 -7
  50. package/.next/server/app/index.segments/_full.segment.rsc +7 -7
  51. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  52. package/.next/server/app/p/[projectId]/page.js.nft.json +1 -1
  53. package/.next/server/app/p/[projectId]/page_client-reference-manifest.js +1 -1
  54. package/.next/server/app/page.js.nft.json +1 -1
  55. package/.next/server/app/page_client-reference-manifest.js +1 -1
  56. package/.next/server/chunks/[root-of-the-server]__0190u3x31o2kc._.js +1 -1
  57. package/.next/server/chunks/[root-of-the-server]__0190u3x31o2kc._.js.map +1 -1
  58. package/.next/server/chunks/[root-of-the-server]__1-f7qk3-8a266._.js +1 -1
  59. package/.next/server/chunks/[root-of-the-server]__1zrubp2jc8bi0._.js +1 -1
  60. package/.next/server/chunks/_004qegokrf7fy._.js +1 -1
  61. package/.next/server/chunks/_004qegokrf7fy._.js.map +1 -1
  62. package/.next/server/chunks/_10s9tyeasgb0i._.js +1 -1
  63. package/.next/server/chunks/_10s9tyeasgb0i._.js.map +1 -1
  64. package/.next/server/chunks/_146xyuw6iu78n._.js +1 -1
  65. package/.next/server/chunks/_146xyuw6iu78n._.js.map +1 -1
  66. package/.next/server/chunks/_1n-6yntr59hz-._.js +1 -1
  67. package/.next/server/chunks/_1n-6yntr59hz-._.js.map +1 -1
  68. package/.next/server/chunks/_1tji4d-rsralm._.js +1 -1
  69. package/.next/server/chunks/lib_beads-view_ts_1fvxcrevh9zu_._.js +1 -1
  70. package/.next/server/chunks/lib_beads-view_ts_1fvxcrevh9zu_._.js.map +1 -1
  71. package/.next/server/chunks/lib_config_ts_0zrjxh_mm8sv8._.js +1 -1
  72. package/.next/server/chunks/lib_config_ts_0zrjxh_mm8sv8._.js.map +1 -1
  73. package/.next/server/chunks/ssr/[root-of-the-server]__10sjsc4ko7y98._.js +1 -1
  74. package/.next/server/chunks/ssr/[root-of-the-server]__10sjsc4ko7y98._.js.map +1 -1
  75. package/.next/server/chunks/ssr/[root-of-the-server]__1xizcyi5hek65._.js +7 -7
  76. package/.next/server/chunks/ssr/[root-of-the-server]__1xizcyi5hek65._.js.map +1 -1
  77. package/.next/server/chunks/ssr/_0_ky_k50rh6-9._.js +1 -1
  78. package/.next/server/chunks/ssr/_0_ky_k50rh6-9._.js.map +1 -1
  79. package/.next/server/chunks/ssr/_16j7dxy5pqj44._.js +291 -0
  80. package/.next/server/chunks/ssr/_16j7dxy5pqj44._.js.map +1 -0
  81. package/.next/server/chunks/ssr/_1bulx6_unf6c7._.js +3 -0
  82. package/.next/server/chunks/ssr/_1bulx6_unf6c7._.js.map +1 -0
  83. package/.next/server/chunks/ssr/_1mzldxegsozij._.js +1 -1
  84. package/.next/server/chunks/ssr/_1mzldxegsozij._.js.map +1 -1
  85. package/.next/server/chunks/ssr/_1obdc2e416ry-._.js +3 -0
  86. package/.next/server/chunks/ssr/_1obdc2e416ry-._.js.map +1 -0
  87. package/.next/server/chunks/ssr/components_launcher_tsx_1i40oht1v6miz._.js +1 -1
  88. package/.next/server/chunks/ssr/components_launcher_tsx_1i40oht1v6miz._.js.map +1 -1
  89. package/.next/server/chunks/ssr/components_providers_tsx_0thx-xfvr_dtx._.js.map +1 -1
  90. package/.next/server/middleware-build-manifest.js +3 -3
  91. package/.next/server/middleware.js.nft.json +1 -1
  92. package/.next/server/pages/404.html +2 -2
  93. package/.next/server/pages/500.html +1 -1
  94. package/.next/server/preview-props.json +3 -3
  95. package/.next/server/server-reference-manifest.js +1 -1
  96. package/.next/server/server-reference-manifest.json +1 -1
  97. package/.next/static/chunks/0gexf4-utluu4.js +1 -0
  98. package/.next/static/chunks/23nopl40nheqr.js +1 -0
  99. package/.next/static/chunks/2c10hhzk7mgkf.js +58 -0
  100. package/.next/static/chunks/2n4lv4u0xo5oz.css +3 -0
  101. package/.next/static/chunks/3m8u_309a1_fw.js +1 -0
  102. package/.next/static/chunks/3tepw2noo82tm.js +1 -0
  103. package/README.md +47 -1
  104. package/bin/beadscope.mjs +75 -32
  105. package/package.json +2 -1
  106. package/.next/server/chunks/ssr/_02mwe4ucwaopu._.js +0 -291
  107. package/.next/server/chunks/ssr/_02mwe4ucwaopu._.js.map +0 -1
  108. package/.next/server/chunks/ssr/_1020o02v8ucmf._.js +0 -3
  109. package/.next/server/chunks/ssr/_1020o02v8ucmf._.js.map +0 -1
  110. package/.next/server/chunks/ssr/_1i_x4qkev3tax._.js +0 -3
  111. package/.next/server/chunks/ssr/_1i_x4qkev3tax._.js.map +0 -1
  112. package/.next/static/chunks/07balm4l-kilq.js +0 -1
  113. package/.next/static/chunks/0lf_v5uyq3i9q.js +0 -1
  114. package/.next/static/chunks/1j-4i4b4rc0hy.js +0 -58
  115. package/.next/static/chunks/21v6r4y8vgqng.css +0 -3
  116. package/.next/static/chunks/2xh00k9l33qnb.js +0 -1
  117. package/.next/static/chunks/3yqhmu1hny1_2.js +0 -1
  118. /package/.next/static/{xa_jNrYAvP6guImijiv2P → BoR0CvHf7BXhmN1hRjwWk}/_buildManifest.js +0 -0
  119. /package/.next/static/{xa_jNrYAvP6guImijiv2P → BoR0CvHf7BXhmN1hRjwWk}/_clientMiddlewareManifest.js +0 -0
  120. /package/.next/static/{xa_jNrYAvP6guImijiv2P → BoR0CvHf7BXhmN1hRjwWk}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[67539,e=>{var t=e.i(18050),r=e.i(57675),n=e.i(47163);let o={sm:"h-8 rounded-lg px-3 text-label",md:"h-9 rounded-[9px] px-3 text-label",lg:"h-[38px] rounded-[9px] px-4 text-body"},i={secondary:"border border-border bg-[var(--surface-2)] text-[var(--text-2)] hover:bg-[var(--surface-3)]",outline:"border border-border text-[var(--text-2)] hover:bg-[var(--surface-2)]",ghost:"text-[var(--text-3)] hover:bg-[var(--surface-2)] hover:text-[var(--text)]",dashed:"border border-dashed border-[var(--border-strong)] text-[var(--text-2)] hover:border-[var(--brand)] hover:text-[var(--brand)]"},s={sm:"h-6 w-6 rounded-md",md:"h-[30px] w-[30px] rounded-lg",lg:"h-[34px] w-[34px] rounded-lg"},a="w-full min-w-0 rounded-[9px] border border-border bg-[var(--surface-2)] text-[var(--text)] outline-none focus:border-[var(--brand)] disabled:opacity-50",l={sm:"h-8 px-[9px] text-label",md:"h-[38px] px-3 text-body"};e.s(["K",0,function({variant:e="secondary",size:s="md",icon:a,pressed:l,className:u,children:c,...d}){return(0,t.jsxs)("button",{type:"button","aria-pressed":l,...d,className:(0,n.f)("tap-target inline-flex flex-shrink-0 items-center justify-center gap-[6px] whitespace-nowrap font-medium transition-colors disabled:opacity-50",o[s],i[e],void 0!==l&&"aria-pressed:border-[var(--brand)] aria-pressed:bg-[var(--brand-weak)] aria-pressed:text-[var(--brand)]",u),children:[a&&(0,t.jsx)(r.W,{name:a,size:"lg"===s?15:14}),c]})},"h",0,function({className:e,...r}){return(0,t.jsx)("input",{type:"checkbox",...r,className:(0,n.f)("h-5 w-5 flex-shrink-0 cursor-pointer accent-[var(--brand)] disabled:cursor-default disabled:opacity-40 md:h-4 md:w-4",e)})},"_",0,function({label:e,variant:r="bordered",size:o="md",danger:i=!1,className:a,children:l,...u}){return(0,t.jsx)("button",{type:"button",...u,"aria-label":e,className:(0,n.f)("tap-target flex flex-shrink-0 items-center justify-center transition-colors disabled:opacity-50",s[o],"bordered"===r?"border border-border bg-[var(--surface)] text-[var(--text-2)]":"text-[var(--text-3)]",i?"hover:border-[#ef444433] hover:bg-[#ef444415] hover:text-[#ef4444]":"hover:bg-[var(--surface-2)] hover:text-[var(--text)]",a),children:l})},"W",0,function({tone:e="muted",underline:r=!1,mono:o=!1,className:i,...s}){return(0,t.jsx)("button",{type:"button",...s,className:(0,n.f)("tap-target cursor-pointer text-left transition-colors disabled:opacity-50","muted"===e&&"text-[var(--text-3)] hover:text-[var(--text)]","text"===e&&"text-[var(--text)] hover:underline","brand"===e&&"text-[var(--brand)] hover:underline",r&&"underline underline-offset-2",o&&"font-mono",i)})},"L",0,function({options:e,value:r,onChange:o,label:i,fill:s=!1}){return(0,t.jsx)("div",{role:"group","aria-label":i,className:(0,n.f)("flex gap-1 rounded-[9px] border border-border bg-[var(--surface-2)] p-1",s?"w-full":"flex-shrink-0"),children:e.map(e=>{let i=e.value===r;return(0,t.jsx)("button",{type:"button","aria-pressed":i,onClick:()=>o(e.value),className:(0,n.f)("tap-target rounded-[7px] px-[11px] py-[6px] text-label font-medium transition-colors",s&&"flex-1",i?"bg-[var(--brand-solid)] text-white":"text-[var(--text-2)] hover:bg-[var(--surface-3)]"),children:e.label},String(e.value))})})},"$",0,function({size:e="md",className:r,...o}){return(0,t.jsx)("select",{...o,className:(0,n.f)("cursor-pointer rounded-[9px] border border-border bg-[var(--surface-2)] text-[var(--text)] outline-none focus:border-[var(--brand)] disabled:opacity-50","sm"===e?"h-8 px-2 text-label max-md:h-11":"h-[38px] px-[10px] text-body max-md:h-11",r)})},"p",0,function({size:e="md",className:r,...o}){return(0,t.jsx)("textarea",{...o,className:(0,n.f)(a,"resize-y","sm"===e?"rounded-lg p-2 text-label":"p-[9px_11px] text-body leading-[1.5]",r)})},"C",0,function({size:e="md",mono:r=!1,dashed:o=!1,className:i,...s}){return(0,t.jsx)("input",{type:"text",...s,className:(0,n.f)(a,l[e],r&&"font-mono",o&&"border-dashed bg-transparent",i)})}])},57675,e=>{var t=e.i(18050);let r={logo:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><circle cx="6" cy="6" r="2.4"/><circle cx="18" cy="6" r="2.4"/><circle cx="6" cy="18" r="2.4"/><circle cx="18" cy="18" r="2.4"/><path d="M8.3 6h7.4M6 8.3v7.4M18 8.3v7.4M8.3 18h7.4"/></svg>',board:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><rect x="3" y="3" width="18" height="18" rx="2.5"/><line x1="9" y1="3" x2="9" y2="21"/><line x1="15" y1="3" x2="15" y2="21"/></svg>',target:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="5"/><circle cx="12" cy="12" r="1.4"/></svg>',graph:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><circle cx="5" cy="6" r="2.4"/><circle cx="19" cy="6" r="2.4"/><circle cx="12" cy="18" r="2.4"/><line x1="6.9" y1="7.5" x2="10.4" y2="16.2"/><line x1="17.1" y1="7.5" x2="13.6" y2="16.2"/><line x1="7.4" y1="6" x2="16.6" y2="6"/></svg>',settings:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><line x1="4" y1="6" x2="20" y2="6"/><circle cx="9" cy="6" r="2.2"/><line x1="4" y1="12" x2="20" y2="12"/><circle cx="15" cy="12" r="2.2"/><line x1="4" y1="18" x2="20" y2="18"/><circle cx="9" cy="18" r="2.2"/></svg>',search:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><circle cx="11" cy="11" r="7"/><line x1="20.5" y1="20.5" x2="16.5" y2="16.5"/></svg>',plus:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>',x:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',check:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><polyline points="20 6 9 17 4 12"/></svg>',chevron:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><polyline points="6 9 12 15 18 9"/></svg>',comment:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><path d="M21 11.5a8.4 8.4 0 0 1-8.9 8.4 8.6 8.6 0 0 1-3.4-.7L3 21l1.5-5.4A8.4 8.4 0 1 1 21 11.5z"/></svg>',link:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><path d="M10 13a5 5 0 0 0 7.1 0l2.9-2.9a5 5 0 0 0-7.1-7.1L11.5 4.5"/><path d="M14 11a5 5 0 0 0-7.1 0L4 13.9a5 5 0 0 0 7.1 7.1l1.3-1.3"/></svg>',sun:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><circle cx="12" cy="12" r="4"/><line x1="12" y1="2" x2="12" y2="4.5"/><line x1="12" y1="19.5" x2="12" y2="22"/><line x1="2" y1="12" x2="4.5" y2="12"/><line x1="19.5" y1="12" x2="22" y2="12"/><line x1="4.9" y1="4.9" x2="6.6" y2="6.6"/><line x1="17.4" y1="17.4" x2="19.1" y2="19.1"/><line x1="4.9" y1="19.1" x2="6.6" y2="17.4"/><line x1="17.4" y1="6.6" x2="19.1" y2="4.9"/></svg>',moon:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></svg>',monitor:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><rect x="3" y="4" width="18" height="12" rx="2"/><line x1="8" y1="20" x2="16" y2="20"/><line x1="12" y1="16" x2="12" y2="20"/></svg>',user:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>',gate:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><path d="M12 3l7 3v5c0 4.4-3 8.3-7 9.5C8 22.3 5 18.4 5 14V6z"/><polyline points="9 12 11.5 14.5 15.5 10"/></svg>',bot:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><rect x="4" y="8" width="16" height="12" rx="3"/><line x1="12" y1="4" x2="12" y2="8"/><circle cx="12" cy="3" r="1.1" fill="currentColor"/><line x1="9" y1="13.5" x2="9" y2="15"/><line x1="15" y1="13.5" x2="15" y2="15"/><line x1="2" y1="13" x2="4" y2="13"/><line x1="20" y1="13" x2="22" y2="13"/></svg>',archive:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><rect x="3" y="4" width="18" height="4" rx="1"/><path d="M5 8v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8"/><line x1="10" y1="12" x2="14" y2="12"/></svg>',trash:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><polyline points="3 6 21 6"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/><path d="M10 11v6M14 11v6"/><path d="M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2"/></svg>',bug:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><rect x="8" y="6" width="8" height="13" rx="4"/><path d="M8 11H4M16 11h4M8 15H4M16 15h4M9 6.5 7.5 4M15 6.5 16.5 4M8.5 18.5 6.5 20.5M15.5 18.5 17.5 20.5"/></svg>',feature:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><path d="M12 3l1.9 4.8L18.7 9l-4.8 1.2L12 15l-1.9-4.8L5.3 9l4.8-1.2L12 3z"/><path d="M19 14l.7 1.8L21.5 17l-1.8.6L19 19.5l-.7-1.9L16.5 17l1.8-.6L19 14z"/></svg>',task:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><rect x="3" y="3" width="18" height="18" rx="3.5"/><polyline points="8 12 11 15 16 9"/></svg>',chore:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><path d="M14.7 6.3a3.7 3.7 0 0 0-4.9 4.7l-6 6a1.6 1.6 0 0 0 2.2 2.2l6-6a3.7 3.7 0 0 0 4.7-4.9l-2.5 2.5-2-.5-.5-2 2.5-2.5z"/></svg>',decision:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><line x1="12" y1="4" x2="12" y2="20"/><path d="M5 7h14"/><path d="M5 7 2.5 12.5h5L5 7zM19 7l-2.5 5.5h5L19 7z"/><line x1="8" y1="20" x2="16" y2="20"/></svg>',spike:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><path d="M9 3h6M10 3v5.5l-4.7 8.5A1.5 1.5 0 0 0 6.6 20h10.8a1.5 1.5 0 0 0 1.3-2.3L14 8.5V3"/><line x1="7.5" y1="14" x2="16.5" y2="14"/></svg>',story:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><path d="M4 5a2 2 0 0 1 2-2h13v15H6a2 2 0 0 0-2 2V5z"/><line x1="9" y1="7" x2="15" y2="7"/><line x1="9" y1="10.5" x2="13" y2="10.5"/></svg>',milestone:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><line x1="5" y1="21" x2="5" y2="3"/><path d="M5 4h11l-2.2 4L16 12H5"/></svg>',pencil:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z"/></svg>',list:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><line x1="8" y1="6" x2="20" y2="6"/><line x1="8" y1="12" x2="20" y2="12"/><line x1="8" y1="18" x2="20" y2="18"/><circle cx="4" cy="6" r="1"/><circle cx="4" cy="12" r="1"/><circle cx="4" cy="18" r="1"/></svg>',image:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><rect x="3" y="3" width="18" height="18" rx="2.5"/><circle cx="8.5" cy="8.5" r="1.6"/><path d="M21 15l-5-5L5 21"/></svg>',rocket:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><path d="M5 15c-1.5 1-2 5-2 5s4-.5 5-2a2.83 2.83 0 0 0-3-3z"/><path d="M9 13a14 14 0 0 1 8-9 9.5 9.5 0 0 1 3 3 14 14 0 0 1-9 8l-3-1z"/><path d="M12.5 8.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0z"/></svg>',bolt:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%"><path d="M13 2L4.5 13.5H11l-1 8.5 8.5-11.5H12z"/></svg>'};e.s(["W",0,function({name:e,size:n=16,className:o,style:i}){let s=r[e]??r.task;return(0,t.jsx)("span",{className:o,style:{display:"inline-flex",width:n,height:n,...i},dangerouslySetInnerHTML:{__html:s}})},"F",0,function(e){return r[e]?e:"task"}])},89554,14690,e=>{var t=e.i(18050),r=e.i(71645),n=e.i(18566);let o=[{id:"light",name:"Light",mode:"light",swatch:["#f6f6f8","#ffffff","#6d5ef0"]},{id:"dark",name:"Dark",mode:"dark",swatch:["#0c0c0f","#1d1d22","#8b7cf8"]},{id:"dracula",name:"Dracula",mode:"dark",swatch:["#282a36","#44475a","#bd93f9"]},{id:"nord",name:"Nord",mode:"dark",swatch:["#2e3440","#3b4252","#88c0d0"]},{id:"solarized-dark",name:"Solarized Dark",mode:"dark",swatch:["#002b36","#073642","#268bd2"]},{id:"gruvbox-dark",name:"Gruvbox Dark",mode:"dark",swatch:["#282828","#3c3836","#fabd2f"]},{id:"tokyo-night",name:"Tokyo Night",mode:"dark",swatch:["#1a1b26","#24283b","#7aa2f7"]},{id:"catppuccin-mocha",name:"Catppuccin Mocha",mode:"dark",swatch:["#1e1e2e","#313244","#cba6f7"]},{id:"rose-pine",name:"Rosé Pine",mode:"dark",swatch:["#191724","#26233a","#c4a7e7"]}],i=new Map(o.map(e=>[e.id,e]));function s(e){return(e?i.get(e):void 0)??i.get("light")}let a="system",l={id:a,name:"System",mode:"light",swatch:["#f6f6f8","#1d1d22","#6d5ef0"]};function u(e){return e===a?a:e&&i.has(e)?e:a}function c(e,t){return e===a?i.get(t?"dark":"light"):s(e)}let d=[a,"light","dark"];function f(e){return d[(d.indexOf(e)+1)%d.length]}function h(e){return e===a?l.name:s(e).name}e.s(["v",0,a,"y",0,l,"z",0,o,"_",0,u,"Q",0,f,"w",0,c,"a",0,function(e,t){return{icon:e===a?"monitor":"dark"===t?"moon":"sun",title:`Theme: ${h(e)} — click for ${h(f(e))}`}}],14690);let p="beadscope:theme",m="(prefers-color-scheme: dark)";function g(e){return window.addEventListener(p,e),window.addEventListener("storage",e),()=>{window.removeEventListener(p,e),window.removeEventListener("storage",e)}}function v(){return"light"}function b(e){let t=window.matchMedia(m);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function y(){return window.matchMedia(m).matches}function x(){return!1}function w(e){return e?`beadscope.theme.${e}`:"beadscope.theme"}function k(){let e=globalThis.localStorage;return"function"==typeof e?.getItem&&"function"==typeof e.setItem?e:void 0}function S(e){try{let t=k(),r=t?t.getItem(w(e)):null;return u(r)}catch{return a}}let E=r.createContext({theme:{id:"light",name:"Light",mode:"light",swatch:["#f6f6f8","#ffffff","#6d5ef0"]},choice:"light",mode:"light",setTheme:()=>{},toggle:()=>{}});e.s(["J",0,function({children:e}){var o;let i,s=(o=(0,n.usePathname)(),(i=o?.match(/^\/p\/([^/]+)/))?decodeURIComponent(i[1]):null),a=r.useSyncExternalStore(g,()=>S(s),v),l=c(a,r.useSyncExternalStore(b,y,x));return r.useEffect(()=>{document.documentElement.dataset.theme=l.id,document.documentElement.classList.toggle("dark","dark"===l.mode)},[l.id,l.mode]),(0,t.jsx)(E.Provider,{value:{theme:l,choice:a,mode:l.mode,setTheme:function(e){k()?.setItem(w(s),u(e)),window.dispatchEvent(new Event(p))},toggle:function(){k()?.setItem(w(s),f(S(s))),window.dispatchEvent(new Event(p))}},children:e})},"i",0,()=>r.useContext(E)],89554)},47163,7670,e=>{function t(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n}e.s(["q",0,t,"U",0,t],7670);let r=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),n=[],o=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],i=r.nextPart.get(n);if(i){let r=o(e,t+1,i);if(r)return r}let s=r.validators;if(null===s)return;let a=0===t?e.join("-"):e.slice(t).join("-"),l=s.length;for(let e=0;e<l;e++){let t=s[e];if(t.validator(a))return t.classGroupId}},i=(e,t)=>{let n=r();for(let r in e)s(e[r],n,r,t);return n},s=(e,t,r,n)=>{let o=e.length;for(let i=0;i<o;i++)a(e[i],t,r,n)},a=(e,t,r,n)=>{"string"==typeof e?l(e,t,r):"function"==typeof e?u(e,t,r,n):c(e,t,r,n)},l=(e,t,r)=>{(""===e?t:d(t,e)).classGroupId=r},u=(e,t,r,n)=>{f(e)?s(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},c=(e,t,r,n)=>{let o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){let[i,a]=o[e];s(a,d(t,i),r,n)}},d=(e,t)=>{let n=e,o=t.split("-"),i=o.length;for(let e=0;e<i;e++){let t=o[e],i=n.nextPart.get(t);i||(i=r(),n.nextPart.set(t,i)),n=i}return n},f=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,h=[],p=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),m=/\s+/,g=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=g(e[n]))&&(r&&(r+=" "),r+=t);return r},v=(e,...t)=>{let r,s,a,l,u=e=>{let t=s(e);if(t)return t;let n=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:s}=t,a=[],l=e.trim().split(m),u="";for(let e=l.length-1;e>=0;e-=1){let t,c=l[e],{isExternal:d,modifiers:f,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}=r(c);if(d){u=c+(u.length>0?" "+u:u);continue}let g=!!m;if(g){let e=(t=n(p.substring(0,m)))&&s[t]?n(p):void 0;e&&e!==t&&(t=e,g=!1)}else t=n(p);if(!t){if(!g||!(t=n(p))){u=c+(u.length>0?" "+u:u);continue}g=!1}let v=0===f.length?"":1===f.length?f[0]:i(f).join(":"),b=h?v+"!":v,y=b+t;if(a.indexOf(y)>-1)continue;a.push(y);let x=o(t,g);for(let e=0;e<x.length;++e){let t=x[e];a.push(b+t)}u=c+(u.length>0?" "+u:u)}return u})(e,r);return a(e,n),n};return l=c=>{var d;let f;return s=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),o=(o,i)=>{r[o]=i,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}})((d=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,o=0,i=0,s=e.length;for(let a=0;a<s;a++){let s=e[a];if(0===n&&0===o){if(":"===s){r.push(e.slice(i,a)),i=a+1;continue}if("/"===s){t=a;continue}}"["===s?n++:"]"===s?n--:"("===s?o++:")"===s&&o--}let a=0===r.length?e:e.slice(i),l=a,u=!1;return a.endsWith("!")?(l=a.slice(0,-1),u=!0):a.startsWith("!")&&(l=a.slice(1),u=!0),p(r,u,l,t&&t>i?t-i:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):p(h,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(d),sortModifiers:(f=new Map,d.orderSensitiveModifiers.forEach((e,t)=>{f.set(e,1e6+t)}),e=>{let t=[],r=[];for(let n=0;n<e.length;n++){let o=e[n],i="["===o[0],s=f.has(o);i||s?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(o)):r.push(o)}return r.length>0&&(r.sort(),t.push(...r)),t}),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t})(d),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return i(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,n,o;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(n=(t=r.slice(1,-1)).indexOf(":"),(o=t.slice(0,n))?"arbitrary.."+o:void 0)}let n=e.split("-"),i=+(""===n[0]&&n.length>1);return o(n,i,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=s[e],o=r[e];if(t){if(o){let e=Array(o.length+t.length);for(let t=0;t<o.length;t++)e[t]=o[t];for(let r=0;r<t.length;r++)e[o.length+r]=t[r];return e}return t}return o||n}return r[e]||n}}})(d)}).cache.get,a=r.cache.set,l=u,u(c)},(...e)=>l(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=g(t))&&(o&&(o+=" "),o+=r);return o})(...e))},b=[],y=e=>{let t=t=>t[e]||b;return t.isThemeGetter=!0,t},x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,w=/^\((?:(\w[\w-]*):)?(.+)\)$/i,k=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E=/\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$/,C=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,R=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,T=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>k.test(e),M=e=>!!e&&!Number.isNaN(Number(e)),I=e=>!!e&&Number.isInteger(Number(e)),j=e=>e.endsWith("%")&&M(e.slice(0,-1)),P=e=>S.test(e),z=()=>!0,A=e=>E.test(e)&&!C.test(e),L=()=>!1,N=e=>R.test(e),F=e=>T.test(e),B=e=>!Q(e)&&!_(e),D=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),U=e=>en(e,ea,L),Q=e=>x.test(e),q=e=>en(e,el,A),$=e=>en(e,eu,M),H=e=>en(e,ed,z),G=e=>en(e,ec,L),V=e=>en(e,ei,L),K=e=>en(e,es,F),W=e=>en(e,ef,N),_=e=>w.test(e),Y=e=>eo(e,el),X=e=>eo(e,ec),Z=e=>eo(e,ei),J=e=>eo(e,ea),ee=e=>eo(e,es),et=e=>eo(e,ef,!0),er=e=>eo(e,ed,!0),en=(e,t,r)=>{let n=x.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},eo=(e,t,r=!1)=>{let n=w.exec(e);return!!n&&(n[1]?t(n[1]):r)},ei=e=>"position"===e||"percentage"===e,es=e=>"image"===e||"url"===e,ea=e=>"length"===e||"size"===e||"bg-size"===e,el=e=>"length"===e,eu=e=>"number"===e,ec=e=>"family-name"===e,ed=e=>"number"===e||"weight"===e,ef=e=>"shadow"===e,eh=()=>{let e=y("color"),t=y("font"),r=y("text"),n=y("font-weight"),o=y("tracking"),i=y("leading"),s=y("breakpoint"),a=y("container"),l=y("spacing"),u=y("radius"),c=y("shadow"),d=y("inset-shadow"),f=y("text-shadow"),h=y("drop-shadow"),p=y("blur"),m=y("perspective"),g=y("aspect"),v=y("ease"),b=y("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),_,Q],S=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],C=()=>[_,Q,l],R=()=>[O,"full","auto",...C()],T=()=>[I,"none","subgrid",_,Q],A=()=>["auto",{span:["full",I,_,Q]},I,_,Q],L=()=>[I,"auto",_,Q],N=()=>["auto","min","max","fr",_,Q],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],en=()=>["start","end","center","stretch","center-safe","end-safe"],eo=()=>["auto",...C()],ei=()=>[O,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],es=()=>[O,"screen","full","dvw","lvw","svw","min","max","fit",...C()],ea=()=>[O,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],el=()=>[e,_,Q],eu=()=>[...w(),Z,V,{position:[_,Q]}],ec=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ed=()=>["auto","cover","contain",J,U,{size:[_,Q]}],ef=()=>[j,Y,q],eh=()=>["","none","full",u,_,Q],ep=()=>["",M,Y,q],em=()=>["solid","dashed","dotted","double"],eg=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ev=()=>[M,j,Z,V],eb=()=>["","none",p,_,Q],ey=()=>["none",M,_,Q],ex=()=>["none",M,_,Q],ew=()=>[M,_,Q],ek=()=>[O,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[P],breakpoint:[P],color:[z],container:[P],"drop-shadow":[P],ease:["in","out","in-out"],font:[B],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[P],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[P],shadow:[P],spacing:["px",M],text:[P],"text-shadow":[P],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",O,Q,_,g]}],container:["container"],"container-type":[{"@container":["","normal","size",_,Q]}],"container-named":[D],columns:[{columns:[M,Q,_,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:k()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[I,"auto",_,Q]}],basis:[{basis:[O,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[M,O,"auto","initial","none",Q]}],grow:[{grow:["",M,_,Q]}],shrink:[{shrink:["",M,_,Q]}],order:[{order:[I,"first","last","none",_,Q]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...en(),"normal"]}],"justify-self":[{"justify-self":["auto",...en()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...en(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...en(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...en(),"baseline"]}],"place-self":[{"place-self":["auto",...en()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:eo()}],mx:[{mx:eo()}],my:[{my:eo()}],ms:[{ms:eo()}],me:[{me:eo()}],mbs:[{mbs:eo()}],mbe:[{mbe:eo()}],mt:[{mt:eo()}],mr:[{mr:eo()}],mb:[{mb:eo()}],ml:[{ml:eo()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:ei()}],"inline-size":[{inline:["auto",...es()]}],"min-inline-size":[{"min-inline":["auto",...es()]}],"max-inline-size":[{"max-inline":["none",...es()]}],"block-size":[{block:["auto",...ea()]}],"min-block-size":[{"min-block":["auto",...ea()]}],"max-block-size":[{"max-block":["none",...ea()]}],w:[{w:[a,"screen",...ei()]}],"min-w":[{"min-w":[a,"screen","none",...ei()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...ei()]}],h:[{h:["screen","lh",...ei()]}],"min-h":[{"min-h":["screen","lh","none",...ei()]}],"max-h":[{"max-h":["screen","lh",...ei()]}],"font-size":[{text:["base",r,Y,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,er,H]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",j,Q]}],"font-family":[{font:[X,G,t]}],"font-features":[{"font-features":[Q]}],"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:[o,_,Q]}],"line-clamp":[{"line-clamp":[M,"none",_,$]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",_,Q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,Q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:el()}],"text-color":[{text:el()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...em(),"wavy"]}],"text-decoration-thickness":[{decoration:[M,"from-font","auto",_,q]}],"text-decoration-color":[{decoration:el()}],"underline-offset":[{"underline-offset":[M,"auto",_,Q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"tab-size":[{tab:[I,_,Q]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,Q]}],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",_,Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:eu()}],"bg-repeat":[{bg:ec()}],"bg-size":[{bg:ed()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},I,_,Q],radial:["",_,Q],conic:[I,_,Q]},ee,K]}],"bg-color":[{bg:el()}],"gradient-from-pos":[{from:ef()}],"gradient-via-pos":[{via:ef()}],"gradient-to-pos":[{to:ef()}],"gradient-from":[{from:el()}],"gradient-via":[{via:el()}],"gradient-to":[{to:el()}],rounded:[{rounded:eh()}],"rounded-s":[{"rounded-s":eh()}],"rounded-e":[{"rounded-e":eh()}],"rounded-t":[{"rounded-t":eh()}],"rounded-r":[{"rounded-r":eh()}],"rounded-b":[{"rounded-b":eh()}],"rounded-l":[{"rounded-l":eh()}],"rounded-ss":[{"rounded-ss":eh()}],"rounded-se":[{"rounded-se":eh()}],"rounded-ee":[{"rounded-ee":eh()}],"rounded-es":[{"rounded-es":eh()}],"rounded-tl":[{"rounded-tl":eh()}],"rounded-tr":[{"rounded-tr":eh()}],"rounded-br":[{"rounded-br":eh()}],"rounded-bl":[{"rounded-bl":eh()}],"border-w":[{border:ep()}],"border-w-x":[{"border-x":ep()}],"border-w-y":[{"border-y":ep()}],"border-w-s":[{"border-s":ep()}],"border-w-e":[{"border-e":ep()}],"border-w-bs":[{"border-bs":ep()}],"border-w-be":[{"border-be":ep()}],"border-w-t":[{"border-t":ep()}],"border-w-r":[{"border-r":ep()}],"border-w-b":[{"border-b":ep()}],"border-w-l":[{"border-l":ep()}],"divide-x":[{"divide-x":ep()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ep()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...em(),"hidden","none"]}],"divide-style":[{divide:[...em(),"hidden","none"]}],"border-color":[{border:el()}],"border-color-x":[{"border-x":el()}],"border-color-y":[{"border-y":el()}],"border-color-s":[{"border-s":el()}],"border-color-e":[{"border-e":el()}],"border-color-bs":[{"border-bs":el()}],"border-color-be":[{"border-be":el()}],"border-color-t":[{"border-t":el()}],"border-color-r":[{"border-r":el()}],"border-color-b":[{"border-b":el()}],"border-color-l":[{"border-l":el()}],"divide-color":[{divide:el()}],"outline-style":[{outline:[...em(),"none","hidden"]}],"outline-offset":[{"outline-offset":[M,_,Q]}],"outline-w":[{outline:["",M,Y,q]}],"outline-color":[{outline:el()}],shadow:[{shadow:["","none",c,et,W]}],"shadow-color":[{shadow:el()}],"inset-shadow":[{"inset-shadow":["none",d,et,W]}],"inset-shadow-color":[{"inset-shadow":el()}],"ring-w":[{ring:ep()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:el()}],"ring-offset-w":[{"ring-offset":[M,q]}],"ring-offset-color":[{"ring-offset":el()}],"inset-ring-w":[{"inset-ring":ep()}],"inset-ring-color":[{"inset-ring":el()}],"text-shadow":[{"text-shadow":["none",f,et,W]}],"text-shadow-color":[{"text-shadow":el()}],opacity:[{opacity:[M,_,Q]}],"mix-blend":[{"mix-blend":[...eg(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":eg()}],"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":[M]}],"mask-image-linear-from-pos":[{"mask-linear-from":ev()}],"mask-image-linear-to-pos":[{"mask-linear-to":ev()}],"mask-image-linear-from-color":[{"mask-linear-from":el()}],"mask-image-linear-to-color":[{"mask-linear-to":el()}],"mask-image-t-from-pos":[{"mask-t-from":ev()}],"mask-image-t-to-pos":[{"mask-t-to":ev()}],"mask-image-t-from-color":[{"mask-t-from":el()}],"mask-image-t-to-color":[{"mask-t-to":el()}],"mask-image-r-from-pos":[{"mask-r-from":ev()}],"mask-image-r-to-pos":[{"mask-r-to":ev()}],"mask-image-r-from-color":[{"mask-r-from":el()}],"mask-image-r-to-color":[{"mask-r-to":el()}],"mask-image-b-from-pos":[{"mask-b-from":ev()}],"mask-image-b-to-pos":[{"mask-b-to":ev()}],"mask-image-b-from-color":[{"mask-b-from":el()}],"mask-image-b-to-color":[{"mask-b-to":el()}],"mask-image-l-from-pos":[{"mask-l-from":ev()}],"mask-image-l-to-pos":[{"mask-l-to":ev()}],"mask-image-l-from-color":[{"mask-l-from":el()}],"mask-image-l-to-color":[{"mask-l-to":el()}],"mask-image-x-from-pos":[{"mask-x-from":ev()}],"mask-image-x-to-pos":[{"mask-x-to":ev()}],"mask-image-x-from-color":[{"mask-x-from":el()}],"mask-image-x-to-color":[{"mask-x-to":el()}],"mask-image-y-from-pos":[{"mask-y-from":ev()}],"mask-image-y-to-pos":[{"mask-y-to":ev()}],"mask-image-y-from-color":[{"mask-y-from":el()}],"mask-image-y-to-color":[{"mask-y-to":el()}],"mask-image-radial":[{"mask-radial":[_,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ev()}],"mask-image-radial-to-pos":[{"mask-radial-to":ev()}],"mask-image-radial-from-color":[{"mask-radial-from":el()}],"mask-image-radial-to-color":[{"mask-radial-to":el()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[M]}],"mask-image-conic-from-pos":[{"mask-conic-from":ev()}],"mask-image-conic-to-pos":[{"mask-conic-to":ev()}],"mask-image-conic-from-color":[{"mask-conic-from":el()}],"mask-image-conic-to-color":[{"mask-conic-to":el()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:eu()}],"mask-repeat":[{mask:ec()}],"mask-size":[{mask:ed()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,Q]}],filter:[{filter:["","none",_,Q]}],blur:[{blur:eb()}],brightness:[{brightness:[M,_,Q]}],contrast:[{contrast:[M,_,Q]}],"drop-shadow":[{"drop-shadow":["","none",h,et,W]}],"drop-shadow-color":[{"drop-shadow":el()}],grayscale:[{grayscale:["",M,_,Q]}],"hue-rotate":[{"hue-rotate":[M,_,Q]}],invert:[{invert:["",M,_,Q]}],saturate:[{saturate:[M,_,Q]}],sepia:[{sepia:["",M,_,Q]}],"backdrop-filter":[{"backdrop-filter":["","none",_,Q]}],"backdrop-blur":[{"backdrop-blur":eb()}],"backdrop-brightness":[{"backdrop-brightness":[M,_,Q]}],"backdrop-contrast":[{"backdrop-contrast":[M,_,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",M,_,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[M,_,Q]}],"backdrop-invert":[{"backdrop-invert":["",M,_,Q]}],"backdrop-opacity":[{"backdrop-opacity":[M,_,Q]}],"backdrop-saturate":[{"backdrop-saturate":[M,_,Q]}],"backdrop-sepia":[{"backdrop-sepia":["",M,_,Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,Q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[M,"initial",_,Q]}],ease:[{ease:["linear","initial",v,_,Q]}],delay:[{delay:[M,_,Q]}],animate:[{animate:["none",b,_,Q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,_,Q]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ey()}],"rotate-x":[{"rotate-x":ey()}],"rotate-y":[{"rotate-y":ey()}],"rotate-z":[{"rotate-z":ey()}],scale:[{scale:ex()}],"scale-x":[{"scale-x":ex()}],"scale-y":[{"scale-y":ex()}],"scale-z":[{"scale-z":ex()}],"scale-3d":["scale-3d"],skew:[{skew:ew()}],"skew-x":[{"skew-x":ew()}],"skew-y":[{"skew-y":ew()}],transform:[{transform:[_,Q,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ek()}],"translate-x":[{"translate-x":ek()}],"translate-y":[{"translate-y":ek()}],"translate-z":[{"translate-z":ek()}],"translate-none":["translate-none"],zoom:[{zoom:[I,_,Q]}],accent:[{accent:el()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:el()}],"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",_,Q]}],"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":el()}],"scrollbar-track-color":[{"scrollbar-track":el()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",_,Q]}],fill:[{fill:["none",...el()]}],"stroke-w":[{stroke:[M,Y,q,$]}],stroke:[{stroke:["none",...el()]}],"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"]}},ep=(e,t,r)=>{void 0!==r&&(e[t]=r)},em=(e,t)=>{if(t)for(let r in t)ep(e,r,t[r])},eg=(e,t)=>{if(t)for(let r in t)ev(e,t,r)},ev=(e,t,r)=>{let n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)},eb=((e,...t)=>"function"==typeof e?v(eh,e,...t):v(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(ep(e,"cacheSize",t),ep(e,"prefix",r),ep(e,"experimentalParseClassName",n),em(e.theme,i.theme),em(e.classGroups,i.classGroups),em(e.conflictingClassGroups,i.conflictingClassGroups),em(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),ep(e,"postfixLookupClassGroups",i.postfixLookupClassGroups),ep(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),eg(e.theme,o.theme),eg(e.classGroups,o.classGroups),eg(e.conflictingClassGroups,o.conflictingClassGroups),eg(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ev(e,o,"postfixLookupClassGroups"),ev(e,o,"orderSensitiveModifiers"),e))(eh(),e),...t))({extend:{classGroups:{"font-size":[{text:["page-title","section","body","label","meta"]}]}}});e.s(["f",0,function(...e){return eb(t(e))}],47163)},26674,38396,e=>{var t=e.i(71645),r=e.i(74080),n=e.i(29315),o=e.i(74735),i=e.i(65420),s=e.i(83977),a=e.i(46376),l=e.i(67865),u=e.i(56789),c=e.i(52535),d=e.i(83976),f=e.i(75606),h=e.i(6304),p=e.i(51321),m=e.i(52245);let g={clipPath:"inset(50%)",position:"fixed",top:0,left:0};e.s(["j",0,"data-base-ui-click-trigger","e",0,{style:{transition:"none"}},"B",0,{fallbackAxisSide:"none"},"K",0,500,"n",0,{fallbackAxisSide:"end"},"g",0,500,"Z",0,g],38396);var v=e.i(18050);let b=t.createContext(null),y=()=>t.useContext(b),x=(0,p.f)("portal");function w(e={}){let{ref:o,container:i,componentProps:c=u.w,elementProps:d}=e,f=(0,s.f)(),h=y(),p=h?.portalNode,[g,v]=t.useState(null),[b,k]=t.useState(null),S=(0,l.f)(e=>{null!==e&&k(e)}),E=t.useRef(null);(0,a.f)(()=>{if(null===i){E.current&&(E.current=null,k(null),v(null));return}if(null==f)return;let e=(i&&((0,n.t)(i)?i:i.current))??p??document.body;if(null==e){E.current&&(E.current=null,k(null),v(null));return}E.current!==e&&(E.current=e,k(null),v(e))},[i,p,f]);let C=(0,m.f)("div",c,{ref:[o,S],props:[{id:f,[x]:""},d]});return{portalNode:b,portalSubtree:g&&C?r.createPortal(C,g):null}}let k=t.forwardRef(function(e,n){let{render:s,className:l,style:u,children:p,container:m,renderGuards:y,...x}=e,{portalNode:k,portalSubtree:S}=w({container:m,ref:n,componentProps:e,elementProps:x}),E=t.useRef(null),C=t.useRef(null),R=t.useRef(null),T=t.useRef(null),[O,M]=t.useState(null),I=t.useRef(!1),j=O?.modal,P=O?.open,z="boolean"==typeof y?y:!!O&&!O.modal&&O.open&&!!k;t.useEffect(()=>{if(k&&!j)return(0,i.f)((0,o.f)(k,"focusin",e,!0),(0,o.f)(k,"focusout",e,!0));function e(e){k&&e.relatedTarget&&(0,d.A)(e)&&("focusin"===e.type?I.current&&((0,d.d)(k),I.current=!1):((0,d.r)(k),I.current=!0))}},[k,j]),(0,a.f)(()=>{k&&!0===P&&I.current&&((0,d.d)(k),I.current=!1)},[P,k]);let A=t.useMemo(()=>({beforeOutsideRef:E,afterOutsideRef:C,beforeInsideRef:R,afterInsideRef:T,portalNode:k,setFocusManagerState:M}),[k]);return(0,v.jsxs)(t.Fragment,{children:[S,(0,v.jsxs)(b.Provider,{value:A,children:[z&&k&&(0,v.jsx)(c.f,{"data-type":"outside",ref:E,onFocus:e=>{if((0,d.A)(e,k))R.current?.focus();else{let e=O?O.domReference:null,t=(0,d.B)(e);t?.focus()}}}),z&&k&&(0,v.jsx)("span",{"aria-owns":k.id,style:g}),k&&r.createPortal(p,k),z&&k&&(0,v.jsx)(c.f,{"data-type":"outside",ref:C,onFocus:e=>{if((0,d.A)(e,k))T.current?.focus();else{let t=O?O.domReference:null,r=(0,d.O)(t);r?.focus(),O?.closeOnFocusOut&&O?.onOpenChange(!1,(0,f.f)(h.f.focusOut,e.nativeEvent))}}})]})]})});e.s(["r",0,k,"o",0,w,"M",0,y],26674)},56341,1252,e=>{var t=e.i(16269),r=e.i(71645),n=e.i(2239),o=e.i(30224),i=e.i(58321),s=e.i(96499);let a=(0,i.f)(19)?function(e,t,o,i,a){let l,u=(0,s._)();if(!u){let s;return s=r.useCallback(()=>t(e.getSnapshot(),o,i,a),[e,t,o,i,a]),(0,n.useSyncExternalStore)(e.subscribe,s,s)}let c=u.syncIndex;return u.syncIndex+=1,u.didInitialize?(l=u.syncHooks[c]).store===e&&l.selector===t&&Object.is(l.a1,o)&&Object.is(l.a2,i)&&Object.is(l.a3,a)||(l.store!==e&&(u.didChangeStore=!0),l.store=e,l.selector=t,l.a1=o,l.a2=i,l.a3=a,l.value=t(e.getSnapshot(),o,i,a)):(l={store:e,selector:t,a1:o,a2:i,a3:a,value:t(e.getSnapshot(),o,i,a)},u.syncHooks.push(l)),l.value}:function(e,t,r,n,i){return(0,o.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,r,n,i))};(0,s.V)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let r=0;r<e.syncHooks.length;r+=1){let n=e.syncHooks[r],o=n.selector(n.store.state,n.a1,n.a2,n.a3);Object.is(n.value,o)||(t=!0,n.value=o)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let r=new Set;for(let t of e.syncHooks)r.add(t.store);let n=[];for(let e of r)n.push(e.subscribe(t));return()=>{for(let e of n)e()}}),(0,n.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});class l{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 r of this.listeners){if(t!==this.updateTick)return;r(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}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,r,n){return a(this,e,t,r,n)}}var u=e.i(67865),c=e.i(46376),d=e.i(56789);class f extends l{constructor(e,t={},r){super(e),this.context=t,this.selectors=r}useSyncedValue(e,t){r.useDebugValue(e);let n=this;(0,c.f)(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let r=this;(0,c.f)(()=>(r.state[e]!==t&&r.set(e,t),()=>{r.set(e,void 0)}),[r,e,t])}useSyncedValues(e){let t=this,r=Object.values(e);(0,c.f)(()=>{t.update(e)},[t,...r])}useControlledProp(e,t){r.useDebugValue(e);let n=this,o=void 0!==t;(0,c.f)(()=>{o&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,o])}select(e,t,r,n){return(0,this.selectors[e])(this.state,t,r,n)}useState(e,t,n,o){return r.useDebugValue(e),a(this,this.selectors[e],t,n,o)}useContextCallback(e,t){r.useDebugValue(e);let n=(0,u.f)(t??d.x);this.context[e]=n}useStateSetter(e){let t=r.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let r,n=(r="function"==typeof e?e:this.selectors[e])(this.state);return t(n,n,this),this.subscribe(e=>{let o=r(e);if(!Object.is(n,o)){let e=n;n=o,t(o,e,this)}})}}e.s(["f",0,f],1252);var h=e.i(61286),p=e.i(57940);let m={open:(0,t.f)(e=>e.open),transitionStatus:(0,t.f)(e=>e.transitionStatus),domReferenceElement:(0,t.f)(e=>e.domReferenceElement),referenceElement:(0,t.f)(e=>e.positionReference??e.referenceElement),floatingElement:(0,t.f)(e=>e.floatingElement),floatingId:(0,t.f)(e=>e.floatingId)};e.s(["f",0,class extends f{constructor(e){let{syncOnly:t,nested:r,onOpenChange:n,triggerElements:o,...i}=e;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:(0,h.f)(),nested:r,triggerElements:o},m),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,p.D)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let r={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",r)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}],56341)},46420,61286,79248,e=>{var t=e.i(71645),r=e.i(83977),n=e.i(46376),o=e.i(88940);function i(){let e=new Map;return{emit(t,r){e.get(t)?.forEach(e=>e(r))},on(t,r){e.has(t)||e.set(t,new Set),e.get(t).add(r)},off(t,r){e.get(t)?.delete(r)}}}e.s(["f",0,i],61286);class s{nodesRef={current:[]};events=i();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}e.s(["f",0,s],79248);var a=e.i(18050);let l=t.createContext(null),u=t.createContext(null),c=()=>t.useContext(l)?.id||null,d=e=>{let r=t.useContext(u);return e??r};e.s(["s",0,function(e){let{children:r,id:n}=e,o=c();return(0,a.jsx)(l.Provider,{value:t.useMemo(()=>({id:n,parentId:o}),[n,o]),children:r})},"V",0,function(e){let{children:t,externalTree:r}=e,n=(0,o.f)(()=>r??new s).current;return(0,a.jsx)(u.Provider,{value:n,children:t})},"T",0,function(e){let t=(0,r.f)(),o=d(e),i=c();return(0,n.f)(()=>{if(!t)return;let e={id:t,parentId:i};return o?.addNode(e),()=>{o?.removeNode(e)}},[o,t,i]),t},"G",0,c,"$",0,d],46420)},17989,e=>{var t=e.i(71645),r=e.i(74735),n=e.i(65420),o=e.i(8868),i=e.i(67865),s=e.i(39957),a=e.i(29315),l=e.i(18663),u=e.i(46420),c=e.i(75606),d=e.i(41530),f=e.i(50446),h=e.i(90098),p=e.i(51321),m=e.i(47554),g=e.i(96296),v=e.i(57940),b=e.i(58408);function y(){return!1}e.s(["f",0,function(e,x={}){let{enabled:w=!0,escapeKey:k=!0,outsidePress:S=!0,outsidePressEvent:E="sloppy",referencePress:C=y,bubbles:R,externalTree:T}=x,O="rootStore"in e?e.rootStore:e,M=O.useState("open"),I=O.useState("floatingElement"),{dataRef:j}=O.context,P=(0,u.$)(T),z=(0,i.f)("function"==typeof S?S:()=>!1),A="function"==typeof S?z:S,L=!1!==A,N=(0,i.f)(()=>E),{escapeKey:F,outsidePress:B}={escapeKey:"boolean"==typeof R?R:R?.escapeKey??!1,outsidePress:"boolean"==typeof R?R:R?.outsidePress??!0},D=t.useRef(!1),U=t.useRef(!1),Q=t.useRef(!1),q=t.useRef(!1),$=t.useRef(""),H=t.useRef(null),G=(0,s.e)(),V=(0,s.e)(),K=(0,i.f)(()=>{V.clear(),j.current.insideReactTree=!1}),W=(0,i.f)(e=>{let t=j.current.floatingContext?.nodeId;return(P?(0,b.Q)(P.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),_=(0,i.f)(e=>(0,g.V)(e,O.select("floatingElement"))||(0,g.V)(e,O.select("domReferenceElement"))),Y=(0,i.f)(e=>{C()&&O.setOpen(!1,(0,c.f)(d.f.triggerPress,e.nativeEvent))}),X=(0,i.f)(e=>{if(!M||!w||!k||"Escape"!==e.key||q.current||!F&&W("__escapeKeyBubbles"))return;let t=(0,v.M)(e)?e.nativeEvent:e,r=(0,c.f)(f.f.escapeKey,t);O.setOpen(!1,r),r.isCanceled||e.preventDefault(),F||r.isPropagationAllowed||e.stopPropagation()}),Z=(0,i.f)(()=>{j.current.insideReactTree=!0,V.start(0,K)}),J=(0,i.f)(e=>{if(!M||!w||0!==e.button)return;let t=(0,m.Z)(e.nativeEvent);(0,m.I)(O.select("floatingElement"),t)&&(D.current||(D.current=!0,U.current=!1))}),ee=(0,i.f)(e=>{!M||!w||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&D.current&&(U.current=!0)});t.useEffect(()=>{if(!M||!w)return;j.current.__escapeKeyBubbles=F,j.current.__outsidePressBubbles=B;let e=new s.U,t=new s.U;function i(){Q.current=!0,t.start(0,()=>{Q.current=!1})}function u(){D.current=!1,U.current=!1}function d(){let e=$.current,t=N(),r="function"==typeof t?t():t;return"string"==typeof r?r:r["pen"!==e&&e?e:"mouse"]}function f(e){let t=j.current.floatingContext?.nodeId,r=P&&(0,b.Q)(P.nodesRef.current,t).some(t=>(0,g.V)(e,t.context?.elements.floating));return _(e)||r}function v(e){let r;if("intentional"===(r=d())&&"click"!==e.type||"sloppy"===r&&"click"===e.type){"click"===e.type||_(e)||(t.clear(),Q.current=!1),K();return}if(j.current.insideReactTree)return void K();let n=(0,m.Z)(e),i=`[${(0,p.f)("inert")}]`,s=(0,a.m)(n)?n.getRootNode():null,l=Array.from(((0,a.R)(s)?s:(0,o.f)(O.select("floatingElement"))).querySelectorAll(i)),u=O.context.triggerElements;if(n&&(u.hasElement(n)||u.hasMatchingElement(e=>(0,m.I)(e,n))))return;let v=(0,a.m)(n)?n:null;for(;v&&!(0,a.Z)(v);){let e=(0,a.J)(v);if((0,a.Z)(e)||!(0,a.m)(e))break;v=e}if(!(l.length&&(0,a.m)(n)&&!(0,g.X)(n)&&!(0,m.I)(n,O.select("floatingElement"))&&l.every(e=>!(0,m.I)(v,e)))){if((0,a.E)(n)&&!("touches"in e)){let t=(0,a.Z)(n),r=(0,a.X)(n),o=/auto|scroll/,i=t||o.test(r.overflowX),s=t||o.test(r.overflowY),l=i&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,u=s&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,c="rtl"===r.direction,d=u&&(c?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),f=l&&e.offsetY>n.clientHeight;if(d||f)return}if(!f(e)){if("intentional"===d()&&Q.current){t.clear(),Q.current=!1;return}"function"==typeof A&&!A(e)||W("__outsidePressBubbles")||(O.setOpen(!1,(0,c.f)(h.f.outsidePress,e)),K())}}}function y(e){if("sloppy"!==d()||!O.select("open")||!w||_(e))return;let t=e.touches[0];t&&(H.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},G.start(1e3,()=>{H.current&&(H.current.dismissOnTouchEnd=!1,H.current.dismissOnMouseDown=!1)}))}function x(e,t){let n=(0,m.Z)(e);if(!n)return;let o=(0,r.f)(n,e.type,()=>{t(e),o()})}function S(e){G.clear(),"pointerdown"===e.type&&($.current=e.pointerType),("mousedown"!==e.type||!H.current||H.current.dismissOnMouseDown)&&x(e,e=>{if("pointerdown"===e.type)"sloppy"!==d()||"touch"===e.pointerType||!O.select("open")||!w||_(e)||v(e);else v(e)})}function E(e){if(!D.current)return;let r=U.current;if(u(),"intentional"===d()){if("pointercancel"===e.type){r&&i();return}f(e)||(r?i():("function"!=typeof A||A(e))&&(t.clear(),Q.current=!0,K()))}}function C(e){if("sloppy"!==d()||!H.current||_(e))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-H.current.startX),n=Math.abs(t.clientY-H.current.startY),o=Math.sqrt(r*r+n*n);o>5&&(H.current.dismissOnTouchEnd=!0),o>10&&(v(e),G.clear(),H.current=null)}function R(e){"sloppy"!==d()||!H.current||_(e)||(H.current.dismissOnTouchEnd&&v(e),G.clear(),H.current=null)}let T=(0,o.f)(I),z=(0,n.f)(k&&(0,n.f)((0,r.f)(T,"keydown",X),(0,r.f)(T,"compositionstart",function(){e.clear(),q.current=!0}),(0,r.f)(T,"compositionend",function(){e.start(5*!!l.f.engine.webkit,()=>{q.current=!1})})),L&&(0,n.f)((0,r.f)(T,"click",S,!0),(0,r.f)(T,"pointerdown",S,!0),(0,r.f)(T,"pointerup",E,!0),(0,r.f)(T,"pointercancel",E,!0),(0,r.f)(T,"mousedown",S,!0),(0,r.f)(T,"mouseup",E,!0),(0,r.f)(T,"touchstart",function(e){$.current="touch",x(e,y)},!0),(0,r.f)(T,"touchmove",function(e){x(e,C)},!0),(0,r.f)(T,"touchend",function(e){x(e,R)},!0)));return()=>{z(),e.clear(),t.clear(),u(),Q.current=!1}},[j,I,k,L,A,M,w,F,B,X,K,N,W,_,P,O,G]),t.useEffect(K,[A,K]);let et=t.useMemo(()=>({onKeyDown:X,onPointerDown:Y,onClick:Y}),[X,Y]),er=t.useMemo(()=>({onKeyDown:X,onPointerDown:ee,onMouseDown:ee,onClickCapture:Z,onMouseDownCapture(e){Z(),J(e)},onPointerDownCapture(e){Z(),J(e)},onMouseUpCapture:Z,onTouchEndCapture:Z,onTouchMoveCapture:Z}),[X,Z,J,ee]);return t.useMemo(()=>w?{reference:et,floating:er,trigger:et}:{},[w,et,er])}])},50527,e=>{var t=e.i(71645),r=e.i(46376),n=e.i(29315),o=e.i(56341);e.s(["f",0,function(e){let{popupStore:i,treatPopupAsFloatingElement:s=!1,floatingRootContext:a,floatingId:l,nested:u,onOpenChange:c}=e,d=i.useState("open"),f=i.useState("activeTriggerElement"),h=i.useState(s?"popupElement":"positionerElement"),p=i.context.triggerElements,m=t.useRef(null);void 0===a&&null===m.current&&(m.current=new o.f({open:d,transitionStatus:void 0,referenceElement:f,floatingElement:h,triggerElements:p,onOpenChange:c,floatingId:l,syncOnly:!0,nested:u}));let g=a??m.current;return i.useSyncedValue("floatingId",l),(0,r.f)(()=>{let e={open:d,floatingId:l,referenceElement:f,floatingElement:h};(0,n.m)(f)&&(e.domReferenceElement=f),g.state.positionReference===g.state.referenceElement&&(e.positionReference=f),g.update(e)},[d,l,f,h,g]),g.context.onOpenChange=c,g.context.nested=u,g}])},96296,49055,e=>{var t=e.i(29315),r=e.i(70189);let n="data-base-ui-focusable",o="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";e.s(["e",0,"ArrowDown","b",0,"ArrowLeft","q",0,"ArrowRight","V",0,"ArrowUp","Q",0,n,"n",0,o],49055);var i=e.i(47554);function s(e){return(0,t.E)(e)&&e.matches(o)}e.s(["G",0,function(e){return e?e.hasAttribute(n)?e:e.querySelector(`[${n}]`)||e:null},"V",0,function(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))},"W",0,function(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${o}`)!=null},"X",0,function(e){return e.matches("html,body")},"x",0,function(e,r){if(!(0,t.m)(e))return!1;if(r.hasElement(e))return!e.hasAttribute("data-trigger-disabled");for(let[,t]of r.entries())if((0,i.I)(t,e))return!t.hasAttribute("data-trigger-disabled");return!1},"J",0,function(e){return!!e&&"combobox"===e.getAttribute("role")&&s(e)},"Q",0,s,"F",0,function(e){if(!e||r.f.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}],96296)},57940,e=>{var t=e.i(22162),r=e.i(70189);e.s(["D",0,function(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t},"J",0,function(e,t){let r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)},"M",0,function(e){return"nativeEvent"in e},"E",0,function(e){return""===e.pointerType&&!!e.isTrusted||(t.f.os.android&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)},"$",0,function(e){return!r.f.env.jsdom&&(!t.f.os.android&&0===e.width&&0===e.height||t.f.os.android&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)},"Y",0,function(e){e.preventDefault(),e.stopPropagation()}])},58408,e=>{e.s(["V",0,function(e,t){let r=[],n=e.find(e=>e.id===t)?.parentId;for(;n;){let t=e.find(e=>e.id===n);n=t?.parentId,t&&(r=r.concat(t))}return r},"Q",0,function e(t,r,n=!0){return t.filter(e=>e.parentId===r).flatMap(r=>[...!n||r.context?.open?[r]:[],...e(t,r.id,n)])}])},83976,21082,e=>{var t=e.i(29315),r=e.i(8868),n=e.i(47554);function o(e,{startingIndex:t=-1,decrement:r=!1,disabledIndices:n,amount:s=1}={}){let a=t;do a+=r?-s:s;while(a>=0&&a<=e.length-1&&i(e,a,n))return a}function i(e,t,r){if("function"==typeof r?r(t):r?.includes(t)??!1)return!0;let n=e[t];return!!n&&(!s(n)||!r&&(n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled")))}function s(e,r=e?(0,t.X)(e):null){var n;return!!e&&!!e.isConnected&&!!r&&"hidden"!==(n=r).visibility&&"collapse"!==n.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==r.display&&"contents"!==r.display)}function a(e){for(let r of Array.from(e.children))if("summary"===(0,t.A)(r))return r;return null}function l(e){let r=e?(0,t.A)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==r||null!=e.parentElement&&"details"===(0,t.A)(e.parentElement)&&a(e.parentElement)===e)&&("details"!==r||null==a(e))&&("input"!==r||"hidden"!==e.type)}function u(e){if(!l(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let r=e;r;r=function(e){let r=e.assignedSlot;if(r)return r;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return(0,t.R)(n)?n.host:null}(r)){let o=r!==e,i="slot"===(0,t.A)(r);if(r.hasAttribute("inert")||o&&"details"===(0,t.A)(r)&&!r.open&&!function(e,t){let r=a(t);return!!r&&(e===r||(0,n.I)(r,e))}(e,r)||r.hasAttribute("hidden")||!i&&!function(e,r){let n=(0,t.X)(e);return r?"none"!==n.display:s(e,n)}(r,o))return!1}return!0}function c(e){let r=e.tabIndex;if(r<0){let r=(0,t.A)(e);if("details"===r||"audio"===r||"video"===r||(0,t.E)(e)&&e.isContentEditable)return 0}return r}function d(e){return"input"!==(0,t.A)(e)?null:"radio"===e.type&&""!==e.name?e:null}function f(e){if((0,t.E)(e)&&"slot"===(0,t.A)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,t.E)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function h(e){let t=[];return!function e(t,r){f(t).forEach(t=>{l(t)&&r.push(t),e(t,r)})}(e,t),t.filter(u)}function p(e){let t=h(e);return t.filter(e=>c(e)>=0&&function(e,t){let r=d(e);if(!r)return!0;let n=t.find(e=>{let t=d(e);return t?.name===r.name&&t.form===r.form&&t.checked});return n?n===r:t.find(e=>{let t=d(e);return t?.name===r.name&&t.form===r.form})===r}(e,t))}function m(e,t){let o=p(e),i=o.length;if(0===i)return;let s=(0,n.T)((0,r.f)(e)),a=o.indexOf(s);return o[-1===a?1===t?0:i-1:a+t]}function g(e,t){if(!e)return null;let n=p((0,r.f)(e).body),o=n.length;if(0===o)return null;let i=n.indexOf(e);return -1===i?null:n[(i+t+o)%o]}e.s(["e",0,o,"_",0,function(e,t){return o(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})},"J",0,function(e,t){return o(e.current,{disabledIndices:t})},"v",0,s,"c",0,function(e,t){return t<0||t>=e.length},"K",0,i],21082),e.s(["r",0,function(e){p(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})},"d",0,function(e){let r=[];!function e(r,n,o){f(r).forEach(r=>{(0,t.E)(r)&&r.matches(n)&&o.push(r),e(r,n,o)})}(e,"[data-tabindex]",r),r.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})},"J",0,h,"O",0,function(e){return m((0,r.f)(e).body,1)||e},"B",0,function(e){return m((0,r.f)(e).body,-1)||e},"W",0,function(e){return g(e,1)},"E",0,function(e){return g(e,-1)},"A",0,function(e,t){let r=t||e.currentTarget,o=e.relatedTarget;return!o||!(0,n.I)(r,o)},"m",0,function(e){return u(e)&&c(e)>=0},"T",0,p],83976)},75606,e=>{var t=e.i(56789);e.s(["f",0,function(e,r,n,o){let i=!1,s=!1,a=o??t.w;return{reason:e,event:r??new Event("base-ui"),cancel(){i=!0},allowPropagation(){s=!0},get isCanceled(){return i},get isPropagationAllowed(){return s},trigger:n,...a}}])},16919,9835,77570,e=>{e.s(["f",0,function(e,t){let r={};for(let n in e){let o=e[n];if(t?.hasOwnProperty(n)){let e=t[n](o);null!=e&&Object.assign(r,e);continue}!0===o?r[`data-${n.toLowerCase()}`]="":o&&(r[`data-${n.toLowerCase()}`]=o.toString())}return r}],16919),e.s(["f",0,function(e,t){return"function"==typeof e?e(t):e}],9835),e.s(["f",0,function(e,t){return"function"==typeof e?e(t):e}],77570)},16856,e=>{e.s(["cancelOpen",0,"cancel-open","closePress",0,"close-press","disabled",0,"disabled","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","itemPress",0,"item-press","listNavigation",0,"list-navigation","none",0,"none","outsidePress",0,"outside-press","siblingOpen",0,"sibling-open","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press"])},6304,e=>{var t=e.i(16856);e.s(["f",0,t])},68765,e=>{var t=e.i(16856);e.s(["f",0,t])},90098,51321,e=>{var t=e.i(16856);e.s(["f",0,t],90098),e.s(["f",0,function(e){return`data-base-ui-${e}`}],51321)},36512,e=>{var t=e.i(16856);e.s(["f",0,t])},22428,e=>{var t=e.i(16856);e.s(["f",0,t])},41530,50446,e=>{var t=e.i(16856);e.s(["f",0,t],41530),e.s(["f",0,t],50446)},47554,e=>{var t=e.i(29315);e.s(["T",0,function(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t},"I",0,function(e,r){if(!e||!r)return!1;let n=r.getRootNode?.();if(e.contains(r))return!0;if(n&&(0,t.R)(n)){let t=r;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1},"Z",0,function(e){return"composedPath"in e?e.composedPath()[0]:e.target}])},9407,e=>{var t;let r=((t={}).startingStyle="data-starting-style",t.endingStyle="data-ending-style",t),n={[r.startingStyle]:""},o={[r.endingStyle]:""};e.s(["S",0,r,"T",0,{transitionStatus:e=>"starting"===e?n:"ending"===e?o:null}])},88015,e=>{var t=e.i(83977);e.s(["f",0,function(e){return(0,t.f)(e,"base-ui")}])},37584,22640,e=>{var t=e.i(71645),r=e.i(67865),n=e.i(74080),o=e.i(8445),i=e.i(94603),s=e.i(9407);function a(e,t=!1,l=!0){let u=(0,o.z)();return(0,r.f)((r,o=null)=>{u.cancel();let a=(0,i.f)(e);if(null==a)return;let c=()=>{n.flushSync(r)};if("function"!=typeof a.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function d(){Promise.all(a.getAnimations().map(e=>e.finished)).then(()=>{o?.aborted||c()}).catch(()=>{if(l){o?.aborted||c();return}let e=a.getAnimations();!o?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&d()})}if(t){let e=s.S.startingStyle;if(!a.hasAttribute(e))return void u.request(d);let t=new MutationObserver(()=>{a.hasAttribute(e)||(t.disconnect(),d())});return t.observe(a,{attributes:!0,attributeFilter:[e]}),void o?.addEventListener("abort",()=>t.disconnect(),{once:!0})}u.request(d)})}e.s(["f",0,a],22640),e.s(["f",0,function(e){let{enabled:n=!0,open:o,ref:i,onComplete:s}=e,l=(0,r.f)(s),u=a(i,o,!1);t.useEffect(()=>{if(!n)return;let e=new AbortController;return u(l,e.signal),()=>{e.abort()}},[n,o,l,u])}],37584)},52245,e=>{e.i(47167);var t=e.i(33332),r=e.i(71645),n=e.i(28918),o=e.i(78554),i=e.i(35241);e.i(99627);var s=e.i(56789),a=e.i(16919),l=e.i(9835),u=e.i(77570),c=e.i(76782);let d=Symbol.for("react.lazy");e.s(["f",0,function(e,f,h={}){let p=f.render,m=function(e,t={}){var r;let{className:d,style:f,render:h}=e,{state:p=s.w,ref:m,props:g,stateAttributesMapping:v,enabled:b=!0}=t,y=b?(0,l.f)(d,p):void 0,x=b?(0,u.f)(f,p):void 0,w=b?(0,a.f)(p,v):s.w,k=b&&g?Array.isArray(r=g)?(0,c.b)(r):(0,c.w)(void 0,r):void 0,S=b?(0,i.f)(w,k)??{}:s.w;return("u">typeof document&&(b?Array.isArray(m)?S.ref=(0,n.f)([S.ref,(0,o.f)(h),...m]):S.ref=(0,n.A)(S.ref,(0,o.f)(h),m):(0,n.A)(null,null)),b)?(void 0!==y&&(S.className=(0,c.c)(S.className,y)),void 0!==x&&(S.style=(0,i.f)(S.style,x)),S):s.w}(f,h);return!1===h.enabled?null:function(e,n,o,i){if(n){if("function"==typeof n)return n(o,i);let e=(0,c.w)(o,n.props);e.ref=o.ref;let t=n;return t?.$$typeof===d&&(t=r.Children.toArray(n)[0]),r.cloneElement(t,e)}if(e&&"string"==typeof e){var s,a;return s=e,a=o,"button"===s?(0,r.createElement)("button",{type:"button",...a,key:a.key}):"img"===s?(0,r.createElement)("img",{alt:"",...a,key:a.key}):r.createElement(s,a)}throw Error((0,t.f)(8))}(e,p,m,h.state??s.w)}])},23910,e=>{var t=e.i(71645),r=e.i(46376),n=e.i(8445);e.s(["f",0,function(e,o=!1,i=!1){let[s,a]=t.useState(e&&o?"idle":void 0),[l,u]=t.useState(e);return e&&!l&&(u(!0),a("starting")),e||!l||"ending"===s||i||a("ending"),e||l||"ending"!==s||a(void 0),(0,r.f)(()=>{if(!e&&l&&"ending"!==s&&i){let e=n.$.request(()=>{a("ending")});return()=>{n.$.cancel(e)}}},[e,l,s,i]),(0,r.f)(()=>{if(!e||o)return;let t=n.$.request(()=>{a(void 0)});return()=>{n.$.cancel(t)}},[o,e]),(0,r.f)(()=>{if(!e||!o)return;e&&l&&"idle"!==s&&a("starting");let t=n.$.request(()=>{a("idle")});return()=>{n.$.cancel(t)}},[o,e,l,s]),{mounted:l,setMounted:u,transitionStatus:s}}])},76782,e=>{var t=e.i(35241);let r={};function n(e){return s(e)?{...a(e,r)}:function(e){let t={...e};for(let e in t){let r=t[e];i(e,r)&&(t[e]=l(r))}return t}(e)}function o(e,r){return s(r)?a(r,e):function(e,r){if(!r)return e;for(let n in r){let o=r[n];switch(n){case"style":e[n]=(0,t.f)(e.style,o);break;case"className":e[n]=c(e.className,o);break;default:i(n,o)?e[n]=function(e,t){return t?e?(...r)=>{let n=r[0];if(d(n)){u(n);let o=t(...r);return n.baseUIHandlerPrevented||e?.(...r),o}let o=t(...r);return e?.(...r),o}:l(t):e}(e[n],o):e[n]=o}}return e}(e,r)}function i(e,t){let r=e.charCodeAt(0),n=e.charCodeAt(1),o=e.charCodeAt(2);return 111===r&&110===n&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}function s(e){return"function"==typeof e}function a(e,t){return s(e)?e(t):e??r}function l(e){return e?(...t)=>{let r=t[0];return d(r)&&u(r),e(...t)}:e}function u(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function c(e,t){return t?e?t+" "+e:t:e}function d(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["U",0,u,"c",0,c,"w",0,function(e,t,r,i,s){if(!r&&!i&&!s&&!e)return n(t);let a=n(e);return t&&(a=o(a,t)),r&&(a=o(a,r)),i&&(a=o(a,i)),s&&(a=o(a,s)),a},"b",0,function(e){if(0===e.length)return r;if(1===e.length)return n(e[0]);let t=n(e[0]);for(let r=1;r<e.length;r+=1)t=o(t,e[r]);return t}])},52535,e=>{var t=e.i(71645),r=e.i(46376),n=e.i(79214),n=n,o=e.i(18663);let i={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},s={...i,position:"fixed",top:0,left:0};({...i,position:"absolute"});var a=e.i(18050);let l=t.forwardRef(function(e,i){let[l,u]=t.useState();return(0,r.f)(()=>{n.screenReader.voiceOver&&o.f.engine.webkit&&u("button")},[]),(0,a.jsx)("span",{...e,ref:i,style:s,"aria-hidden":!l||void 0,tabIndex:0,role:l,"data-base-ui-focus-guard":""})});e.s(["f",0,l],52535)},5005,e=>{var t,r,n=e.i(9407);let o=((t={}).open="data-open",t.closed="data-closed",t[t.startingStyle=n.S.startingStyle]="startingStyle",t[t.endingStyle=n.S.endingStyle]="endingStyle",t.anchorHidden="data-anchor-hidden",t.side="data-side",t.align="data-align",t),i=((r={}).popupOpen="data-popup-open",r.pressed="data-pressed",r),s={[i.popupOpen]:""},a={[i.popupOpen]:"",[i.pressed]:""},l={[o.open]:""},u={[o.closed]:""},c={[o.anchorHidden]:""};e.s(["q",0,o,"Y",0,i,"E",0,{open:e=>e?l:u,anchorHidden:e=>e?c:null},"f",0,{open:e=>e?a:null},"J",0,{open:e=>e?s:null}])},64111,80025,e=>{var t=e.i(71645),r=e.i(74080),n=e.i(56789),o=e.i(83977),i=e.i(67865),s=e.i(46376),a=e.i(13203),l=e.i(49055),u=e.i(46420),c=e.i(50527),d=e.i(23910),f=e.i(37584),h=e.i(75606),p=e.i(22428),m=e.i(36512),g=e.i(41530),v=e.i(50446),b=e.i(16856);e.s(["f",0,b],80025);var b=b;let y={tabIndex:-1,[l.Q]:""};function x(e,r){let n=t.useRef(null),o=t.useRef(null);return t.useCallback(t=>{if(void 0===e)return;let i=!1;if(null!==n.current){let e=n.current,t=o.current,s=r.context.triggerElements.getById(e);t&&s===t&&(r.context.triggerElements.delete(e),i=!0),n.current=null,o.current=null}if(null!==t&&(n.current=e,o.current=t,r.context.triggerElements.add(e,t),i=!0),i){let e=r.context.triggerElements.size;r.select("open")&&r.state.triggerCount!==e&&r.set("triggerCount",e)}},[r,e])}function w(e,t,r,n=!1){t?e.preventUnmountingOnClose=!1:n&&(e.preventUnmountingOnClose=!0);let o=r?.id??null;(o||t)&&(e.activeTriggerId=o,e.activeTriggerElement=r??null)}function k(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}e.s(["X",0,y,"c",0,function(e,t,n,o={}){let i=n.reason,s=i===p.f.triggerHover,a=t&&i===m.f.triggerFocus,l=!t&&(i===g.f.triggerPress||i===v.f.escapeKey),u=k(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;o.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let c=()=>{let r={...o.extraState,open:t};a?r.instantType="focus":l?r.instantType="dismiss":s&&(r.instantType=void 0),w(r,t,n.trigger,u()),e.update(r)};s?r.flushSync(c):c()},"x",0,k,"H",0,function(e){return t=>"touch"!==t||e.current},"s",0,w,"z",0,function(e,t={}){let{closeOnActiveTriggerUnmount:r=!1}=t,n=e.useState("open"),o=e.useState("triggerCount");(0,s.f)(()=>{if(!n){0!==e.state.triggerCount&&e.set("triggerCount",0);return}let t=e.context.triggerElements.size,o={};e.state.triggerCount!==t&&(o.triggerCount=t);let i=e.select("activeTriggerId"),s=null;if(i){let t=e.context.triggerElements.getById(i);t?t!==e.state.activeTriggerElement&&(o.activeTriggerElement=t):s=i}if(!s&&!i&&1===t){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,r]=t.value;o.activeTriggerId=e,o.activeTriggerElement=r}}(void 0!==o.triggerCount||void 0!==o.activeTriggerId||void 0!==o.activeTriggerElement)&&e.update(o),s&&r&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===s&&!e.context.triggerElements.getById(s)){let t=(0,h.f)(b.none);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[n,e,o,r])},"T",0,function(e,t,r,n){(0,a.f)(()=>{void 0===t&&!1===e.state.open&&r&&(e.state={...e.state,open:!0,activeTriggerId:n,preventUnmountingOnClose:!1})})},"L",0,function(e,t,r){let{mounted:n,setMounted:o,transitionStatus:s}=(0,d.f)(e),a=t.useState("preventUnmountingOnClose"),l=!e&&a;t.useSyncedValues({mounted:n,transitionStatus:s,preventUnmountingOnClose:l});let u=(0,i.f)(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),r?.(),t.context.onOpenChangeComplete?.(!1)});return(0,f.f)({enabled:n&&!e&&!l,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:s}},"y",0,function(e,t){e.useSyncedValues(t),(0,s.f)(()=>()=>{e.update({activeTriggerProps:n.w,inactiveTriggerProps:n.w,popupProps:n.w})},[e])},"d",0,function(e,t){(0,s.f)(()=>{t||null===e.state.openMethod||e.set("openMethod",null)},[t,e]),(0,s.f)(()=>()=>{null!==e.state.openMethod&&e.set("openMethod",null)},[e])},"k",0,function(e,r,n=!1){let i=(0,o.f)(),s=null!=(0,u.G)(),a=t.useRef(null);void 0===e&&null===a.current&&(a.current=r(i,s));let l=e??a.current;return(0,c.f)({popupStore:l,treatPopupAsFloatingElement:n,floatingRootContext:l.state.floatingRootContext,floatingId:i,nested:s,onOpenChange:l.setOpen}),{store:l,internalStore:a.current}},"F",0,function(e,t,r,n){let o=r.useState("isMountedByTrigger",e),a=x(e,r),l=(0,i.f)(t=>{if(a(t),!t)return;let o=r.select("open"),i=r.select("activeTriggerId");i===e?r.update({activeTriggerElement:t,...o?n:null}):null==i&&o&&r.update({activeTriggerId:e,activeTriggerElement:t,...n})});return(0,s.f)(()=>{o&&r.update({activeTriggerElement:t.current,...n})},[o,r,t,...Object.values(n)]),{registerTrigger:l,isMountedByThisTrigger:o}},"w",0,x],64111)},90627,e=>{e.i(47167),e.s(["f",0,class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let r=this.idMap.get(e);r!==t&&(void 0!==r&&this.elementsSet.delete(r),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}}])},16786,e=>{var t=e.i(16269),r=e.i(56789),n=e.i(56341),o=e.i(90627);let i=(0,t.f)(e=>e.triggerIdProp??e.activeTriggerId),s=(0,t.f)(e=>e.openProp??e.open),a=(0,t.f)(e=>(e.popupElement?.id??e.floatingId)||void 0);function l(e,t){return void 0!==t&&s(e)&&i(e)===t}let u={open:s,mounted:(0,t.f)(e=>e.mounted),transitionStatus:(0,t.f)(e=>e.transitionStatus),floatingRootContext:(0,t.f)(e=>e.floatingRootContext),triggerCount:(0,t.f)(e=>e.triggerCount),preventUnmountingOnClose:(0,t.f)(e=>e.preventUnmountingOnClose),payload:(0,t.f)(e=>e.payload),activeTriggerId:i,activeTriggerElement:(0,t.f)(e=>e.mounted?e.activeTriggerElement:null),popupId:a,isTriggerActive:(0,t.f)((e,t)=>void 0!==t&&i(e)===t),isOpenedByTrigger:(0,t.f)((e,t)=>l(e,t)),isMountedByTrigger:(0,t.f)((e,t)=>void 0!==t&&i(e)===t&&e.mounted),triggerProps:(0,t.f)((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:(0,t.f)((e,t)=>l(e,t)||void 0!==t&&s(e)&&null==i(e)&&1===e.triggerCount?a(e):void 0),popupProps:(0,t.f)(e=>e.popupProps),popupElement:(0,t.f)(e=>e.popupElement),positionerElement:(0,t.f)(e=>e.positionerElement)};e.s(["i",0,function(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new n.f({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new o.f,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0}),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:r.w,inactiveTriggerProps:r.w,popupProps:r.w}},"c",0,function(e,t,r=!1){return new n.f({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:r,onOpenChange:void 0})},"j",0,u],16786)},94603,e=>{e.s(["f",0,function(e){return null==e?e:"current"in e?e.current:e}])},74735,e=>{e.s(["f",0,function(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}])},56789,e=>{let t=Object.freeze([]),r=Object.freeze({});e.s(["v",0,t,"w",0,r,"x",0,function(){}])},96499,e=>{let t;var r=e.i(71645),n=e.i(88940);let o=[];function i(e){let r=(r,i)=>{let a,l=(0,n.f)(s).current;try{for(let e of(t=l,o))e.before(l);for(let t of(a=e(r,i),o))t.after(l);l.didInitialize=!0}finally{t=void 0}return a};return r.displayName=e.displayName||e.name,r}function s(){return{didInitialize:!1}}e.s(["U",0,i,"u",0,function(e){return r.forwardRef(i(e))},"_",0,function(){return t},"V",0,function(e){o.push(e)}])},33332,e=>{let t=function(e,...t){let r=new URL("https://base-ui.com/production-error");return r.searchParams.set("code",e.toString()),t.forEach(e=>r.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${r} for the full message.`};e.s(["f",0,t])},78554,e=>{var t=e.i(71645),r=e.i(58321);e.s(["f",0,function(e){if(!t.isValidElement(e))return null;let n=e.props;return((0,r.f)(19)?n?.ref:e.ref)??null}])},65420,e=>{e.s(["f",0,function(...e){return()=>{for(let t=0;t<e.length;t+=1){let r=e[t];r&&r()}}}])},35241,e=>{e.s(["f",0,function(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}])},8868,e=>{e.s(["f",0,function(e){return e?.ownerDocument||document}])},79214,e=>{let{userAgent:t,platform:r,maxTouchPoints:n}="u"<typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},o=t.toLowerCase(),i=r.toLowerCase(),s=/^i(os$|p)/.test(i)||"macintel"===i&&n>1,a="android",l=i===a||o.includes(a),u=!s&&i.startsWith("mac"),c=i.startsWith("win"),d=!l&&/^(linux|chrome os)/.test(i),f=u||s;e.s(["android",0,l,"apple",0,f,"ios",0,s,"linux",0,d,"mac",0,u,"windows",0,c],3720);var h=e.i(3720);let p="u">typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none"),m=!p&&o.includes("firefox"),g=!p&&o.includes("chrom");e.s(["blink",0,g,"gecko",0,m,"webkit",0,p],79850);var v=e.i(79850);e.s(["voiceOver",0,f],99170);var b=e.i(99170);let y=/jsdom|happydom/.test(o);e.s(["jsdom",0,y],36174);var x=e.i(36174);e.s(["engine",0,v,"env",0,x,"os",0,h,"screenReader",0,b],79214)},18663,e=>{var t=e.i(79214);e.s(["f",0,t])},70189,e=>{var t=e.i(79214);e.s(["f",0,t])},22162,e=>{var t=e.i(79214);e.s(["f",0,t])},58321,e=>{let t=parseInt(e.i(71645).version,10);e.s(["f",0,function(e){return t>=e}])},16269,e=>{e.i(47167);var t=e.i(33332);e.s(["f",0,(e,r,n,o,i,s,...a)=>{let l;if(a.length>0)throw Error((0,t.f)(1));if(e&&r&&n&&o&&i&&s)l=(t,a,l,u)=>s(e(t,a,l,u),r(t,a,l,u),n(t,a,l,u),o(t,a,l,u),i(t,a,l,u),a,l,u);else if(e&&r&&n&&o&&i)l=(t,s,a,l)=>i(e(t,s,a,l),r(t,s,a,l),n(t,s,a,l),o(t,s,a,l),s,a,l);else if(e&&r&&n&&o)l=(t,i,s,a)=>o(e(t,i,s,a),r(t,i,s,a),n(t,i,s,a),i,s,a);else if(e&&r&&n)l=(t,o,i,s)=>n(e(t,o,i,s),r(t,o,i,s),o,i,s);else if(e&&r)l=(t,n,o,i)=>r(e(t,n,o,i),n,o,i);else if(e)l=e;else throw Error("Missing arguments");return l}])},8445,e=>{e.i(47167);var t=e.i(88940),r=e.i(26300);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class o{static create(){return new o}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["$",0,o,"z",0,function(){let e=(0,t.f)(o.create).current;return(0,r.f)(e.disposeEffect),e}])},83977,e=>{var t=e.i(71645),r=e.i(14553);let n=0,o=r.f.useId;e.s(["f",0,function(e,r){if(void 0!==o){let t=o();return e??(r?`${r}-${t}`:t)}return function(e,r="mui"){let[o,i]=t.useState(e),s=e||o;return t.useEffect(()=>{null==o&&(n+=1,i(`${r}-${n}`))},[o,r]),s}(e,r)}])},46376,e=>{var t=e.i(71645);let r="u">typeof document?t.useLayoutEffect:()=>{};e.s(["f",0,r])},28918,e=>{var t=e.i(88940);function r(){return{callback:null,cleanup:null,refs:[]}}function n(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){let n=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let o=t[e];if(null!=o)switch(typeof o){case"function":{let t=o(r);"function"==typeof t&&(n[e]=t);break}case"object":o.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let r=t[e];if(null!=r)switch(typeof r){case"function":{let t=n[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}e.s(["A",0,function(e,o,i,s){var a,l,u,c,d;let f=(0,t.f)(r).current;return a=f,l=e,u=o,c=i,d=s,(a.refs[0]!==l||a.refs[1]!==u||a.refs[2]!==c||a.refs[3]!==d)&&n(f,[e,o,i,s]),f.callback},"f",0,function(e){var o,i;let s=(0,t.f)(r).current;return o=s,i=e,(o.refs.length!==i.length||o.refs.some((e,t)=>e!==i[t]))&&n(s,e),s.callback}])},13203,e=>{var t=e.i(71645);e.s(["f",0,function(e){let r=t.useRef(!0);r.current&&(r.current=!1,e())}])},26300,e=>{var t=e.i(71645);let r=[];e.s(["f",0,function(e){t.useEffect(e,r)}])},88940,e=>{var t=e.i(71645);let r={};e.s(["f",0,function(e,n){let o=t.useRef(r);return o.current===r&&(o.current=e(n)),o}])},67865,14553,e=>{let t={...e.i(71645)};e.s(["f",0,t],14553);var r=e.i(88940);let n=t.useInsertionEffect,o=n&&n!==t.useLayoutEffect?n:e=>e();function i(){let e={next:void 0,callback:s,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function s(){}e.s(["f",0,function(e){let t=(0,r.f)(i).current;return t.next=e,o(t.effect),t.trampoline}],67865)},39957,e=>{var t=e.i(88940),r=e.i(26300);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["U",0,n,"e",0,function(){let e=(0,t.f)(n.create).current;return(0,r.f)(e.disposeEffect),e}])},46265,e=>{var t=e.i(46376),r=e.i(88940);function n(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}e.s(["f",0,function(e){let o=(0,r.f)(n,e).current;return o.next=e,(0,t.f)(o.effect),o}])},99627,e=>{e.i(47167),e.s(["f",0,function(){}])},29315,e=>{let t;function r(){return"u">typeof window}function n(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!r()&&(e instanceof Node||e instanceof o(e).Node)}function a(e){return!!r()&&(e instanceof Element||e instanceof o(e).Element)}function l(e){return!!r()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function u(e){return!(!r()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=b(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function d(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let f=/transform|translate|scale|rotate|perspective|filter/,h=/paint|layout|strict|content/,p=e=>!!e&&"none"!==e;function m(e){let t=a(e)?b(e):e;return p(t.transform)||p(t.translate)||p(t.scale)||p(t.rotate)||p(t.perspective)||!g()&&(p(t.backdropFilter)||p(t.filter))||f.test(t.willChange||"")||h.test(t.contain||"")}function g(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function v(e){return/^(html|body|#document)$/.test(n(e))}function b(e){return o(e).getComputedStyle(e)}function y(e){if("html"===n(e))return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||i(e);return u(t)?t.host:t}function x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["X",0,b,"f",0,function(e){let t=y(e);for(;l(t)&&!v(t);){if(m(t))return t;if(d(t))break;t=y(t)}return null},"I",0,i,"w",0,x,"A",0,n,"Q",0,function(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}},"G",0,function e(t,r,n){var i;void 0===r&&(r=[]),void 0===n&&(n=!0);let s=function e(t){let r=y(t);return v(r)?t.ownerDocument?t.ownerDocument.body:t.body:l(r)&&c(r)?r:e(r)}(t),a=s===(null==(i=t.ownerDocument)?void 0:i.body),u=o(s);if(!a)return r.concat(s,e(s,[],n));{let t=x(u);return r.concat(u,u.visualViewport||[],c(s)?s:[],t&&n?e(t):[])}},"J",0,y,"K",0,o,"e",0,m,"m",0,a,"E",0,l,"Z",0,v,"t",0,s,"B",0,c,"R",0,u,"S",0,function(e){return/^(table|td|th)$/.test(n(e))},"D",0,d,"i",0,g])},33848,e=>{var t=e.i(29315);e.s(["f",()=>t.K])},73911,e=>{let t;var r=e.i(19273),n=(t=()=>r.l,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["f",0,n])},75555,15823,14448,93803,e=>{var t=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(){}};e.s(["f",0,t],15823);var r=new class extends t{#e;#t;#r;constructor(){super(),this.#r=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?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"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}};e.s(["f",0,r],75555);var n=new class extends t{#n=!0;#t;#r;constructor(){super(),this.#r=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#n}};e.s(["f",0,n],14448),e.i(19273),e.s(["f",0,function(){let e,t,r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}],93803)},14272,e=>{var t=e.i(40143),r=e.i(88587),n=e.i(36553),o=class extends r.f{#o;#i;#s;#a;constructor(e){super(),this.#o=e.client,this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#i=[],this.state=e.state||i(),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.#i.includes(e)||(this.#i.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#i=this.#i.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#i.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#l({type:"continue"})},r={client:this.#o,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=(0,n.v)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#l({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#l({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});let o="pending"===this.state.status,i=!this.#a.canStart();try{if(o)t();else{this.#l({type:"pending",variables:e,isPaused:i}),this.#s.config.onMutate&&await this.#s.config.onMutate(e,this,r);let t=await this.options.onMutate?.(e,r);t!==this.state.context&&this.#l({type:"pending",context:t,variables:e,isPaused:i})}let n=await this.#a.start();return await this.#s.config.onSuccess?.(n,e,this.state.context,this,r),await this.options.onSuccess?.(n,e,this.state.context,r),await this.#s.config.onSettled?.(n,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(n,null,e,this.state.context,r),this.#l({type:"success",data:n}),n}catch(t){try{await this.#s.config.onError?.(t,e,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,r)}catch(e){Promise.reject(e)}try{await this.#s.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,r)}catch(e){Promise.reject(e)}throw this.#l({type:"error",error:t}),t}finally{this.#s.runNext(this)}}#l(e){this.state=(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.f.batch(()=>{this.#i.forEach(t=>{t.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function i(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}e.s(["I",0,o,"r",0,i])},56345,e=>{var t=e.i(14272),r=e.i(40143),n=e.i(15823),o=e.i(19273),i=class extends n.f{#o;#u=void 0;#c;#d;constructor(e,t){super(),this.#o=e,this.setOptions(t),this.bindMethods(),this.#f()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#o.defaultMutationOptions(e),(0,o.U)(this.options,t)||this.#o.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#c,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.q)(t.mutationKey)!==(0,o.q)(this.options.mutationKey)?this.reset():this.#c?.state.status==="pending"&&this.#c.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#c?.removeObserver(this)}onMutationUpdate(e){this.#f(),this.#h(e)}getCurrentResult(){return this.#u}reset(){this.#c?.removeObserver(this),this.#c=void 0,this.#f(),this.#h()}mutate(e,t){return this.#d=t,this.#c?.removeObserver(this),this.#c=this.#o.getMutationCache().build(this.#o,this.options),this.#c.addObserver(this),this.#c.execute(e)}#f(){let e=this.#c?.state??(0,t.r)();this.#u={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#h(e){r.f.batch(()=>{if(this.#d&&this.hasListeners()){let t=this.#u.variables,r=this.#u.context,n={client:this.#o,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#d.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#d.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#d.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#d.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#u)})})}};e.s(["f",0,i])},40143,e=>{let t,r,n,o,i,s;var a=e.i(80166).T,l=(t=[],r=0,n=e=>{e()},o=e=>{e()},i=a,{batch:e=>{let s;r++;try{s=e()}finally{let e;--r||(e=t,t=[],e.length&&i(()=>{o(()=>{e.forEach(e=>{n(e)})})}))}return s},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s=e=>{r?t.push(e):i(()=>{n(e)})},setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e},setScheduler:e=>{i=e}});e.s(["f",0,l])},86491,e=>{var t=e.i(19273),r=e.i(40143),n=e.i(36553),o=e.i(88587);function i(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}var s=class extends o.f{#p;#m;#g;#v;#o;#a;#b;#y;constructor(e){super(),this.#y=!1,this.#b=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#v=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#m=u(this.options),this.state=e.state??this.#m,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#p}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#b,...e},e?._type&&(this.#p=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=u(this.options);void 0!==e.data&&(this.setState(l(e.data,e.dataUpdatedAt)),this.#m=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#v.remove(this)}setData(e,r){let n=(0,t.M)(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),n}setState(e){this.#l({type:"setState",state:e})}cancel(e){let r=this.#a?.promise;return this.#a?.cancel(e),r?r.then(t.z).catch(t.z):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#m}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,t.F)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.V||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.H)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,t.B)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#v.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.#y||this.#x()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#v.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#x(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,r){var o;let s;if("idle"!==this.state.fetchStatus&&this.#a?.status()!=="rejected"){if(void 0!==this.state.data&&r?.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 a=new AbortController,l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#y=!0,a.signal)})},u=()=>{let e,n=(0,t.W)(this.options,r),o=(l(e={client:this.#o,queryKey:this.queryKey,meta:this.meta}),e);return(this.#y=!1,this.options.persister)?this.options.persister(n,o,this):n(o)},c=(l(s={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:u}),s),d="infinite"===this.#p?(o=this.options.pages,{onFetch:(e,r)=>{let n=e.options,s=e.fetchOptions?.meta?.fetchMore?.direction,a=e.state.data?.pages||[],l=e.state.data?.pageParams||[],u={pages:[],pageParams:[]},c=0,d=async()=>{let r=!1,d=(0,t.W)(e.options,e.fetchOptions),f=async(n,o,i)=>{let s;if(r)return Promise.reject(e.signal.reason);if(null==o&&n.pages.length)return Promise.resolve(n);let a=(s={client:e.client,queryKey:e.queryKey,pageParam:o,direction:i?"backward":"forward",meta:e.options.meta},(0,t.d)(s,()=>e.signal,()=>r=!0),s),l=await d(a),{maxPages:u}=e.options,c=i?t.R:t.E;return{pages:c(n.pages,l,u),pageParams:c(n.pageParams,o,u)}};if(s&&a.length){let e="backward"===s,t={pages:a,pageParams:l},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:i)(n,t);u=await f(t,r,e)}else{let e=o??a.length;do{let e=0===c?l[0]??n.initialPageParam:i(n,u);if(c>0&&null==e)break;u=await f(u,e),c++}while(c<e)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r):e.fetchFn=d}}):this.options.behavior;d?.onFetch(c,this),this.#g=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#l({type:"fetch",meta:c.fetchOptions?.meta}),this.#a=(0,n.v)({initialPromise:r?.initialPromise,fn:c.fetchFn,onCancel:e=>{e instanceof n.x&&e.revert&&this.setState({...this.#g,fetchStatus:"idle"}),a.abort()},onFail:(e,t)=>{this.#l({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#v.config.onSuccess?.(e,this),this.#v.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof n.x){if(e.silent)return this.#a.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#l({type:"error",error:e}),this.#v.config.onError?.(e,this),this.#v.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,...a(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...l(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#g=e.manual?r:void 0,r;case"error":let n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),r.f.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#v.notify({query:this,type:"updated",action:e})})}};function a(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.e)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function l(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function u(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["X",0,s,"W",0,a],86491)},88587,e=>{var t=e.i(80166),r=e.i(73911),n=e.i(19273),o=class{#w;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.u)(this.gcTime)&&(this.#w=t.U.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.f.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#w&&(t.U.clearTimeout(this.#w),this.#w=void 0)}};e.s(["f",0,o])},36553,e=>{var t=e.i(75555),r=e.i(14448),n=e.i(93803),o=e.i(73911),i=e.i(19273);function s(e){return Math.min(1e3*2**e,3e4)}function a(e){return(e??"online")!=="online"||r.f.isOnline()}var l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};e.s(["x",0,l,"e",0,a,"v",0,function(e){let u,c=!1,d=0,f=(0,n.f)(),h=()=>t.f.isFocused()&&("always"===e.networkMode||r.f.isOnline())&&e.canRun(),p=()=>a(e.networkMode)&&e.canRun(),m=e=>{"pending"===f.status&&(u?.(),f.resolve(e))},g=e=>{"pending"===f.status&&(u?.(),f.reject(e))},v=()=>new Promise(t=>{u=e=>{("pending"!==f.status||h())&&t(e)},e.onPause?.()}).then(()=>{u=void 0,"pending"===f.status&&e.onContinue?.()}),b=()=>{let t;if("pending"!==f.status)return;let r=0===d?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{if("pending"!==f.status)return;let r=e.retry??3*!o.f.isServer(),n=e.retryDelay??s,a="function"==typeof n?n(d,t):n,l=!0===r||"number"==typeof r&&d<r||"function"==typeof r&&r(d,t);c||!l?g(t):(d++,e.onFail?.(d,t),(0,i.s)(a).then(()=>h()?void 0:v()).then(()=>{c?g(t):b()}))})};return{promise:f,status:()=>f.status,cancel:t=>{if("pending"===f.status){let r=new l(t);g(r),e.onCancel?.(r)}},continue:()=>(u?.(),f),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1},canStart:p,start:()=>(p()?b():v().then(b),f)}}])},80166,e=>{e.i(47167);var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#k=t;#S=!1;setTimeoutProvider(e){this.#k=e}setTimeout(e,t){return this.#k.setTimeout(e,t)}clearTimeout(e){this.#k.clearTimeout(e)}setInterval(e,t){return this.#k.setInterval(e,t)}clearInterval(e){this.#k.clearInterval(e)}};e.s(["T",0,function(e){setTimeout(e,0)},"U",0,r])},19273,e=>{e.i(47167);var t=e.i(80166),r="u"<typeof window||"Deno"in globalThis;function n(e,t){return(t?.queryKeyHashFn||o)(e)}function o(e){return JSON.stringify(e,(e,t)=>l(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function i(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>i(e[r],t[r]))}var s=Object.prototype.hasOwnProperty;function a(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function l(e){if(!u(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!u(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}var c=Symbol();e.s(["d",0,function(e,t,r){let n,o=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),o||(o=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)}),e},"E",0,function(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n},"R",0,function(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n},"W",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==c?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"b",0,function(e,t){return"function"==typeof e?e(t):e},"q",0,o,"J",0,n,"l",0,r,"u",0,function(e){return"number"==typeof e&&e>=0&&1/0!==e},"L",0,function(e,t){let{exact:r,status:n,predicate:s,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(o(t.options.mutationKey)!==o(a))return!1}else if(!i(t.options.mutationKey,a))return!1}return(!n||t.state.status===n)&&(!s||!!s(t))},"N",0,function(e,t){let{type:r="all",exact:o,fetchStatus:s,predicate:a,queryKey:l,stale:u}=e;if(l){if(o){if(t.queryHash!==n(l,t.options))return!1}else if(!i(t.queryKey,l))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(!s||s===t.state.fetchStatus)&&(!a||!!a(t))},"z",0,function(){},"P",0,i,"M",0,function(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r,n=0){if(t===r)return t;if(n>500)return r;let o=a(t)&&a(r);if(!o&&!(l(t)&&l(r)))return r;let i=(o?t:Object.keys(t)).length,u=o?r:Object.keys(r),c=u.length,d=o?Array(c):{},f=0;for(let a=0;a<c;a++){let l=o?a:u[a],c=t[l],h=r[l];if(c===h){d[l]=c,(o?a<i:s.call(t,l))&&f++;continue}if(null===c||null===h||"object"!=typeof c||"object"!=typeof h){d[l]=h;continue}let p=e(c,h,n+1);d[l]=p,p===c&&f++}return i===c&&f===i?t:d}(e,t):t},"F",0,function(e,t){return"function"==typeof e?e(t):e},"H",0,function(e,t){return"function"==typeof e?e(t):e},"U",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},"Z",0,function(e,t){return"function"==typeof e?e(...t):!!e},"V",0,c,"s",0,function(e){return new Promise(r=>{t.U.setTimeout(r,e)})},"B",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}])},12598,e=>{var t=e.i(71645),r=e.i(18050),n=t.createContext(void 0);e.s(["P",0,({client:e,children:o})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(n.Provider,{value:e,children:o})),"d",0,e=>{let r=t.useContext(n);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r}])},75260,e=>{var t=e.i(71645),r=e.i(56345),n=e.i(19273),o=e.i(40143),i=e.i(12598);e.s(["f",0,function(e,s){let a=(0,i.d)(s),[l]=t.useState(()=>new r.f(a,e));t.useEffect(()=>{l.setOptions(e)},[l,e]);let u=t.useSyncExternalStore(t.useCallback(e=>l.subscribe(o.f.batchCalls(e)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c=t.useCallback((e,t)=>{l.mutate(e,t).catch(n.z)},[l]);if(u.error&&(0,n.Z)(l.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:c,mutateAsync:u.mutate}}])},66027,e=>{let t;var r=e.i(75555),n=e.i(73911),o=e.i(40143),i=e.i(86491),s=e.i(15823),a=e.i(93803),l=e.i(19273),u=e.i(80166),c=class extends s.f{constructor(e,t){super(),this.options=t,this.#o=e,this.#E=null,this.#C=(0,a.f)(),this.bindMethods(),this.setOptions(t)}#o;#R=void 0;#T=void 0;#u=void 0;#O;#M;#C;#E;#I;#j;#P;#z;#A;#L;#N=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#R.addObserver(this),d(this.#R,this.options)?this.#F():this.updateResult(),this.#B())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#R,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#R,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#D(),this.#U(),this.#R.removeObserver(this)}setOptions(e){let t=this.options,r=this.#R;if(this.options=this.#o.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.F)(this.options.enabled,this.#R))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#Q(),this.#R.setOptions(this.options),t._defaulted&&!(0,l.U)(this.options,t)&&this.#o.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#R,observer:this});let n=this.hasListeners();n&&h(this.#R,r,this.options,t)&&this.#F(),this.updateResult(),n&&(this.#R!==r||(0,l.F)(this.options.enabled,this.#R)!==(0,l.F)(t.enabled,this.#R)||(0,l.H)(this.options.staleTime,this.#R)!==(0,l.H)(t.staleTime,this.#R))&&this.#q();let o=this.#$();n&&(this.#R!==r||(0,l.F)(this.options.enabled,this.#R)!==(0,l.F)(t.enabled,this.#R)||o!==this.#L)&&this.#H(o)}getOptimisticResult(e){var t,r;let n=this.#o.getQueryCache().build(this.#o,e),o=this.createResult(n,e);return t=this,r=o,(0,l.U)(t.getCurrentResult(),r)||(this.#u=o,this.#M=this.options,this.#O=this.#R.state),o}getCurrentResult(){return this.#u}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#C.status||this.#C.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#N.add(e)}getCurrentQuery(){return this.#R}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#o.defaultQueryOptions(e),r=this.#o.getQueryCache().build(this.#o,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#F({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#u))}#F(e){this.#Q();let t=this.#R.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.z)),t}#q(){this.#D();let e=(0,l.H)(this.options.staleTime,this.#R);if(n.f.isServer()||this.#u.isStale||!(0,l.u)(e))return;let t=(0,l.B)(this.#u.dataUpdatedAt,e);this.#z=u.U.setTimeout(()=>{this.#u.isStale||this.updateResult()},t+1)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#R):this.options.refetchInterval)??!1}#H(e){this.#U(),this.#L=e,!n.f.isServer()&&!1!==(0,l.F)(this.options.enabled,this.#R)&&(0,l.u)(this.#L)&&0!==this.#L&&(this.#A=u.U.setInterval(()=>{(this.options.refetchIntervalInBackground||r.f.isFocused())&&this.#F()},this.#L))}#B(){this.#q(),this.#H(this.#$())}#D(){void 0!==this.#z&&(u.U.clearTimeout(this.#z),this.#z=void 0)}#U(){void 0!==this.#A&&(u.U.clearInterval(this.#A),this.#A=void 0)}createResult(e,t){let r,n=this.#R,o=this.options,s=this.#u,u=this.#O,c=this.#M,f=e!==n?e.state:this.#T,{state:m}=e,g={...m},v=!1;if(t._optimisticResults){let r=this.hasListeners(),s=!r&&d(e,t),a=r&&h(e,n,t,o);(s||a)&&(g={...g,...(0,i.W)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:y,status:x}=g;r=g.data;let w=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===x){let e;s?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=s.data,w=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#P?.state.data,this.#P):t.placeholderData,void 0!==e&&(x="success",r=(0,l.M)(s?.data,e,t),v=!0)}if(t.select&&void 0!==r&&!w)if(s&&r===u?.data&&t.select===this.#I)r=this.#j;else try{this.#I=t.select,r=t.select(r),r=(0,l.M)(s?.data,r,t),this.#j=r,this.#E=null}catch(e){this.#E=e}this.#E&&(b=this.#E,r=this.#j,y=Date.now(),x="error");let k="fetching"===g.fetchStatus,S="pending"===x,E="error"===x,C=S&&k,R=void 0!==r,T={status:x,fetchStatus:g.fetchStatus,isPending:S,isSuccess:"success"===x,isError:E,isInitialLoading:C,isLoading:C,data:r,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:y,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:k,isRefetching:k&&!S,isLoadingError:E&&!R,isPaused:"paused"===g.fetchStatus,isPlaceholderData:v,isRefetchError:E&&R,isStale:p(e,t),refetch:this.refetch,promise:this.#C,isEnabled:!1!==(0,l.F)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==T.data,r="error"===T.status&&!t,o=e=>{r?e.reject(T.error):t&&e.resolve(T.data)},i=()=>{o(this.#C=T.promise=(0,a.f)())},s=this.#C;switch(s.status){case"pending":e.queryHash===n.queryHash&&o(s);break;case"fulfilled":(r||T.data!==s.value)&&i();break;case"rejected":r&&T.error===s.reason||i()}}return T}updateResult(){let e=this.#u,t=this.createResult(this.#R,this.options);if(this.#O=this.#R.state,this.#M=this.options,void 0!==this.#O.data&&(this.#P=this.#R),(0,l.U)(t,e))return;this.#u=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#N.size)return!0;let n=new Set(r??this.#N);return this.options.throwOnError&&n.add("error"),Object.keys(this.#u).some(t=>this.#u[t]!==e[t]&&n.has(t))};this.#h({listeners:r()})}#Q(){let e=this.#o.getQueryCache().build(this.#o,this.options);if(e===this.#R)return;let t=this.#R;this.#R=e,this.#T=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#B()}#h(e){o.f.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#u)}),this.#o.getQueryCache().notify({query:this.#R,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,l.F)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,l.F)(t.retryOnMount,e))||void 0!==e.state.data&&f(e,t,t.refetchOnMount)}function f(e,t,r){if(!1!==(0,l.F)(t.enabled,e)&&"static"!==(0,l.H)(t.staleTime,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&p(e,t)}return!1}function h(e,t,r,n){return(e!==t||!1===(0,l.F)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&p(e,r)}function p(e,t){return!1!==(0,l.F)(t.enabled,e)&&e.isStaleByTime((0,l.H)(t.staleTime,e))}var m=e.i(71645),g=e.i(12598);e.i(18050);var v=m.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),b=m.createContext(!1);b.Provider;var y=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});e.s(["f",0,function(e,t){return function(e,t,r){let i,s=m.useContext(b),a=m.useContext(v),u=(0,g.d)(r),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let d=u.getQueryCache().get(c.queryHash),f=!1!==e.subscribed;if(c._optimisticResults=s?"isRestoring":f?"optimistic":void 0,c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}i=d?.state.error&&"function"==typeof c.throwOnError?(0,l.Z)(c.throwOnError,[d.state.error,d]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||i)&&!a.isReset()&&(c.retryOnMount=!1),m.useEffect(()=>{a.clearReset()},[a]);let h=!u.getQueryCache().get(c.queryHash),[p]=m.useState(()=>new t(u,c)),x=p.getOptimisticResult(c),w=!s&&f;if(m.useSyncExternalStore(m.useCallback(e=>{let t=w?p.subscribe(o.f.batchCalls(e)):l.z;return p.updateResult(),t},[p,w]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),m.useEffect(()=>{p.setOptions(c)},[c,p]),c?.suspense&&x.isPending)throw y(c,p,a);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||(0,l.Z)(r,[e.error,n])))({result:x,errorResetBoundary:a,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw x.error;if(u.getDefaultOptions().queries?._experimental_afterQuery?.(c,x),c.experimental_prefetchInRender&&!n.f.isServer()&&x.isLoading&&x.isFetching&&!s){let e=h?y(c,p,a):d?.promise;e?.catch(l.z).finally(()=>{p.updateResult()})}return c.notifyOnChangeProps?x:p.trackResult(x)}(e,c,t)}],66027)},56420,e=>{var t=e.i(71645);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var o={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"};let i=(0,t.createContext)({}),s=(0,t.forwardRef)(({color:e,size:n,strokeWidth:s,absoluteStrokeWidth:a,className:l="",children:u,iconNode:c,...d},f)=>{let{size:h=24,strokeWidth:p=2,absoluteStrokeWidth:m=!1,color:g="currentColor",className:v=""}=(0,t.useContext)(i)??{},b=a??m?24*Number(s??p)/Number(n??h):s??p;return(0,t.createElement)("svg",{ref:f,...o,width:n??h??o.width,height:n??h??o.height,stroke:e??g,strokeWidth:b,className:r("lucide",v,l),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(u)?u:[u]])});e.s(["f",0,(e,o)=>{let i=(0,t.forwardRef)(({className:i,...a},l)=>(0,t.createElement)(s,{ref:l,iconNode:o,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...a}));return i.displayName=n(e),i}],56420)},58379,e=>{let t=(0,e.i(56420).f)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["f",0,t])},55566,e=>{let t=(0,e.i(56420).f)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["f",0,t])},46696,e=>{var t=e.i(71645),r=e.i(74080);let n=Array(12).fill(0),o=({visible:e,className:r})=>t.default.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":e},t.default.createElement("div",{className:"sonner-spinner"},n.map((e,r)=>t.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),i=t.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},t.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),s=t.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},t.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),a=t.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},t.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),l=t.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},t.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),u=t.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},t.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),c=1,d=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:c++,i=this.toasts.find(e=>e.id===o),s=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:r}),{...t,...e,id:o,dismissible:s,title:r}):t):this.addToast({title:r,...n,dismissible:s,id:o}),o},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,r)=>{let n,o;if(!r)return;void 0!==r.loading&&(o=this.create({...r,promise:e,type:"loading",message:r.loading,description:"function"!=typeof r.description?r.description:void 0}));let i=Promise.resolve(e instanceof Function?e():e),s=void 0!==o,a=i.then(async e=>{if(n=["resolve",e],t.default.isValidElement(e))s=!1,this.create({id:o,type:"default",message:e});else if(f(e)&&!e.ok){s=!1;let n="function"==typeof r.error?await r.error(`HTTP error! status: ${e.status}`):r.error,i="function"==typeof r.description?await r.description(`HTTP error! status: ${e.status}`):r.description,a="object"!=typeof n||t.default.isValidElement(n)?{message:n}:n;this.create({id:o,type:"error",description:i,...a})}else if(e instanceof Error){s=!1;let n="function"==typeof r.error?await r.error(e):r.error,i="function"==typeof r.description?await r.description(e):r.description,a="object"!=typeof n||t.default.isValidElement(n)?{message:n}:n;this.create({id:o,type:"error",description:i,...a})}else if(void 0!==r.success){s=!1;let n="function"==typeof r.success?await r.success(e):r.success,i="function"==typeof r.description?await r.description(e):r.description,a="object"!=typeof n||t.default.isValidElement(n)?{message:n}:n;this.create({id:o,type:"success",description:i,...a})}}).catch(async e=>{if(n=["reject",e],void 0!==r.error){s=!1;let n="function"==typeof r.error?await r.error(e):r.error,i="function"==typeof r.description?await r.description(e):r.description,a="object"!=typeof n||t.default.isValidElement(n)?{message:n}:n;this.create({id:o,type:"error",description:i,...a})}}).finally(()=>{s&&(this.dismiss(o),o=void 0),null==r.finally||r.finally.call(r)}),l=()=>new Promise((e,t)=>a.then(()=>"reject"===n[0]?t(n[1]):e(n[1])).catch(t));return"string"!=typeof o&&"number"!=typeof o?{unwrap:l}:Object.assign(o,{unwrap:l})},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||c++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},f=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,h=Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||c++;return d.addToast({title:e,...t,id:r}),r},{success:d.success,info:d.info,warning:d.warning,error:d.error,custom:d.custom,message:d.message,promise:d.promise,dismiss:d.dismiss,loading:d.loading},{getHistory:()=>d.toasts,getToasts:()=>d.getActiveToasts()});function p(e){return void 0!==e.label}function m(...e){return e.filter(Boolean).join(" ")}!function(e){if(!e||"u"<typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");let g=e=>{var r,n,c,d,f,h,g,v,b,y,x,w,k;let{invert:S,toast:E,unstyled:C,interacting:R,setHeights:T,visibleToasts:O,heights:M,index:I,toasts:j,expanded:P,removeToast:z,defaultRichColors:A,closeButton:L,style:N,cancelButtonStyle:F,actionButtonStyle:B,className:D="",descriptionClassName:U="",duration:Q,position:q,gap:$,expandByDefault:H,classNames:G,icons:V,closeButtonAriaLabel:K="Close toast"}=e,[W,_]=t.default.useState(null),[Y,X]=t.default.useState(null),[Z,J]=t.default.useState(!1),[ee,et]=t.default.useState(!1),[er,en]=t.default.useState(!1),[eo,ei]=t.default.useState(!1),[es,ea]=t.default.useState(!1),[el,eu]=t.default.useState(0),[ec,ed]=t.default.useState(0),ef=t.default.useRef(E.duration||Q||4e3),eh=t.default.useRef(null),ep=t.default.useRef(null),em=0===I,eg=I+1<=O,ev=E.type,eb=!1!==E.dismissible,ey=E.className||"",ex=E.descriptionClassName||"",ew=t.default.useMemo(()=>M.findIndex(e=>e.toastId===E.id)||0,[M,E.id]),ek=t.default.useMemo(()=>{var e;return null!=(e=E.closeButton)?e:L},[E.closeButton,L]),eS=t.default.useMemo(()=>E.duration||Q||4e3,[E.duration,Q]),eE=t.default.useRef(0),eC=t.default.useRef(0),eR=t.default.useRef(0),eT=t.default.useRef(null),[eO,eM]=q.split("-"),eI=t.default.useMemo(()=>M.reduce((e,t,r)=>r>=ew?e:e+t.height,0),[M,ew]),ej=(()=>{let[e,r]=t.default.useState(document.hidden);return t.default.useEffect(()=>{let e=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),eP=E.invert||S,ez="loading"===ev;eC.current=t.default.useMemo(()=>ew*$+eI,[ew,eI]),t.default.useEffect(()=>{ef.current=eS},[eS]),t.default.useEffect(()=>{J(!0)},[]),t.default.useEffect(()=>{let e=ep.current;if(e){let t=e.getBoundingClientRect().height;return ed(t),T(e=>[{toastId:E.id,height:t,position:E.position},...e]),()=>T(e=>e.filter(e=>e.toastId!==E.id))}},[T,E.id]),t.default.useLayoutEffect(()=>{if(!Z)return;let e=ep.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,ed(r),T(e=>e.find(e=>e.toastId===E.id)?e.map(e=>e.toastId===E.id?{...e,height:r}:e):[{toastId:E.id,height:r,position:E.position},...e])},[Z,E.title,E.description,T,E.id,E.jsx,E.action,E.cancel]);let eA=t.default.useCallback(()=>{et(!0),eu(eC.current),T(e=>e.filter(e=>e.toastId!==E.id)),setTimeout(()=>{z(E)},200)},[E,z,T,eC]);t.default.useEffect(()=>{let e;if((!E.promise||"loading"!==ev)&&1/0!==E.duration&&"loading"!==E.type){if(P||R||ej){if(eR.current<eE.current){let e=new Date().getTime()-eE.current;ef.current=ef.current-e}eR.current=new Date().getTime()}else 1/0!==ef.current&&(eE.current=new Date().getTime(),e=setTimeout(()=>{null==E.onAutoClose||E.onAutoClose.call(E,E),eA()},ef.current));return()=>clearTimeout(e)}},[P,R,E,ev,ej,eA]),t.default.useEffect(()=>{E.delete&&(eA(),null==E.onDismiss||E.onDismiss.call(E,E))},[eA,E.delete]);let eL=E.icon||(null==V?void 0:V[ev])||(e=>{switch(e){case"success":return i;case"info":return a;case"warning":return s;case"error":return l;default:return null}})(ev);return t.default.createElement("li",{tabIndex:0,ref:ep,className:m(D,ey,null==G?void 0:G.toast,null==E||null==(r=E.classNames)?void 0:r.toast,null==G?void 0:G.default,null==G?void 0:G[ev],null==E||null==(n=E.classNames)?void 0:n[ev]),"data-sonner-toast":"","data-rich-colors":null!=(y=E.richColors)?y:A,"data-styled":!(E.jsx||E.unstyled||C),"data-mounted":Z,"data-promise":!!E.promise,"data-swiped":es,"data-removed":ee,"data-visible":eg,"data-y-position":eO,"data-x-position":eM,"data-index":I,"data-front":em,"data-swiping":er,"data-dismissible":eb,"data-type":ev,"data-invert":eP,"data-swipe-out":eo,"data-swipe-direction":Y,"data-expanded":!!(P||H&&Z),"data-testid":E.testId,style:{"--index":I,"--toasts-before":I,"--z-index":j.length-I,"--offset":`${ee?el:eC.current}px`,"--initial-height":H?"auto":`${ec}px`,...N,...E.style},onDragEnd:()=>{en(!1),_(null),eT.current=null},onPointerDown:e=>{2===e.button||ez||!eb||(eh.current=new Date,eu(eC.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(en(!0),eT.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n,o;if(eo||!eb)return;eT.current=null;let i=Number((null==(e=ep.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),s=Number((null==(t=ep.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),a=new Date().getTime()-(null==(r=eh.current)?void 0:r.getTime()),l="x"===W?i:s,u=Math.abs(l)/a;if(Math.abs(l)>=45||u>.11){eu(eC.current),null==E.onDismiss||E.onDismiss.call(E,E),"x"===W?X(i>0?"right":"left"):X(s>0?"down":"up"),eA(),ei(!0);return}null==(n=ep.current)||n.style.setProperty("--swipe-amount-x","0px"),null==(o=ep.current)||o.style.setProperty("--swipe-amount-y","0px"),ea(!1),en(!1),_(null)},onPointerMove:t=>{var r,n,o,i;if(!eT.current||!eb||(null==(r=window.getSelection())?void 0:r.toString().length)>0)return;let s=t.clientY-eT.current.y,a=t.clientX-eT.current.x,l=null!=(i=e.swipeDirections)?i:function(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}(q);!W&&(Math.abs(a)>1||Math.abs(s)>1)&&_(Math.abs(a)>Math.abs(s)?"x":"y");let u={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if("y"===W){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&s<0||l.includes("bottom")&&s>0)u.y=s;else{let e=s*c(s);u.y=Math.abs(e)<Math.abs(s)?e:s}}else if("x"===W&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&a<0||l.includes("right")&&a>0)u.x=a;else{let e=a*c(a);u.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(u.x)>0||Math.abs(u.y)>0)&&ea(!0),null==(n=ep.current)||n.style.setProperty("--swipe-amount-x",`${u.x}px`),null==(o=ep.current)||o.style.setProperty("--swipe-amount-y",`${u.y}px`)}},ek&&!E.jsx&&"loading"!==ev?t.default.createElement("button",{"aria-label":K,"data-disabled":ez,"data-close-button":!0,onClick:ez||!eb?()=>{}:()=>{eA(),null==E.onDismiss||E.onDismiss.call(E,E)},className:m(null==G?void 0:G.closeButton,null==E||null==(c=E.classNames)?void 0:c.closeButton)},null!=(x=null==V?void 0:V.close)?x:u):null,(ev||E.icon||E.promise)&&null!==E.icon&&((null==V?void 0:V[ev])!==null||E.icon)?t.default.createElement("div",{"data-icon":"",className:m(null==G?void 0:G.icon,null==E||null==(d=E.classNames)?void 0:d.icon)},E.promise||"loading"===E.type&&!E.icon?E.icon||((null==V?void 0:V.loading)?t.default.createElement("div",{className:m(null==G?void 0:G.loader,null==E||null==(k=E.classNames)?void 0:k.loader,"sonner-loader"),"data-visible":"loading"===ev},V.loading):t.default.createElement(o,{className:m(null==G?void 0:G.loader,null==E||null==(w=E.classNames)?void 0:w.loader),visible:"loading"===ev})):null,"loading"!==E.type?eL:null):null,t.default.createElement("div",{"data-content":"",className:m(null==G?void 0:G.content,null==E||null==(f=E.classNames)?void 0:f.content)},t.default.createElement("div",{"data-title":"",className:m(null==G?void 0:G.title,null==E||null==(h=E.classNames)?void 0:h.title)},E.jsx?E.jsx:"function"==typeof E.title?E.title():E.title),E.description?t.default.createElement("div",{"data-description":"",className:m(U,ex,null==G?void 0:G.description,null==E||null==(g=E.classNames)?void 0:g.description)},"function"==typeof E.description?E.description():E.description):null),t.default.isValidElement(E.cancel)?E.cancel:E.cancel&&p(E.cancel)?t.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:E.cancelButtonStyle||F,onClick:e=>{!p(E.cancel)||eb&&(null==E.cancel.onClick||E.cancel.onClick.call(E.cancel,e),eA())},className:m(null==G?void 0:G.cancelButton,null==E||null==(v=E.classNames)?void 0:v.cancelButton)},E.cancel.label):null,t.default.isValidElement(E.action)?E.action:E.action&&p(E.action)?t.default.createElement("button",{"data-button":!0,"data-action":!0,style:E.actionButtonStyle||B,onClick:e=>{!p(E.action)||(null==E.action.onClick||E.action.onClick.call(E.action,e),e.defaultPrevented||eA())},className:m(null==G?void 0:G.actionButton,null==E||null==(b=E.classNames)?void 0:b.actionButton)},E.action.label):null)};function v(){if("u"<typeof window||"u"<typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}let b=t.default.forwardRef(function(e,n){let{id:o,invert:i,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:l,closeButton:u,className:c,offset:f,mobileOffset:h,theme:p="light",richColors:m,duration:b,style:y,visibleToasts:x=3,toastOptions:w,dir:k=v(),gap:S=14,icons:E,containerAriaLabel:C="Notifications"}=e,[R,T]=t.default.useState([]),O=t.default.useMemo(()=>o?R.filter(e=>e.toasterId===o):R.filter(e=>!e.toasterId),[R,o]),M=t.default.useMemo(()=>Array.from(new Set([s].concat(O.filter(e=>e.position).map(e=>e.position)))),[O,s]),[I,j]=t.default.useState([]),[P,z]=t.default.useState(!1),[A,L]=t.default.useState(!1),[N,F]=t.default.useState("system"!==p?p:"u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=t.default.useRef(null),D=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=t.default.useRef(null),Q=t.default.useRef(!1),q=t.default.useCallback(e=>{T(t=>{var r;return(null==(r=t.find(t=>t.id===e.id))?void 0:r.delete)||d.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return t.default.useEffect(()=>d.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{T(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{r.default.flushSync(()=>{T(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[R]),t.default.useEffect(()=>{if("system"!==p)return void F(p);if("system"===p&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),"u"<typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{e?F("dark"):F("light")})}catch(t){e.addListener(({matches:e})=>{try{e?F("dark"):F("light")}catch(e){console.error(e)}})}},[p]),t.default.useEffect(()=>{R.length<=1&&z(!1)},[R]),t.default.useEffect(()=>{let e=e=>{var t,r;a.every(t=>e[t]||e.code===t)&&(z(!0),null==(r=B.current)||r.focus()),"Escape"===e.code&&(document.activeElement===B.current||(null==(t=B.current)?void 0:t.contains(document.activeElement)))&&z(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]),t.default.useEffect(()=>{if(B.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,Q.current=!1)}},[B.current]),t.default.createElement("section",{ref:n,"aria-label":`${C} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((r,n)=>{var o;let s,[a,d]=r.split("-");return O.length?t.default.createElement("ol",{key:r,dir:"auto"===k?v():k,tabIndex:-1,ref:B,className:c,"data-sonner-toaster":!0,"data-sonner-theme":N,"data-y-position":a,"data-x-position":d,style:{"--front-toast-height":`${(null==(o=I[0])?void 0:o.height)||0}px`,"--width":"356px","--gap":`${S}px`,...y,...(s={},[f,h].forEach((e,t)=>{let r=1===t,n=r?"--mobile-offset":"--offset",o=r?"16px":"24px";function i(e){["top","right","bottom","left"].forEach(t=>{s[`${n}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?i(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?s[`${n}-${t}`]=o:s[`${n}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):i(o)}),s)},onBlur:e=>{Q.current&&!e.currentTarget.contains(e.relatedTarget)&&(Q.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:e=>{!(e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible)&&(Q.current||(Q.current=!0,U.current=e.relatedTarget))},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{A||z(!1)},onDragEnd:()=>z(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||L(!0)},onPointerUp:()=>L(!1)},O.filter(e=>!e.position&&0===n||e.position===r).map((n,o)=>{var s,a;return t.default.createElement(g,{key:n.id,icons:E,index:o,toast:n,defaultRichColors:m,duration:null!=(s=null==w?void 0:w.duration)?s:b,className:null==w?void 0:w.className,descriptionClassName:null==w?void 0:w.descriptionClassName,invert:i,visibleToasts:x,closeButton:null!=(a=null==w?void 0:w.closeButton)?a:u,interacting:A,position:r,style:null==w?void 0:w.style,unstyled:null==w?void 0:w.unstyled,classNames:null==w?void 0:w.classNames,cancelButtonStyle:null==w?void 0:w.cancelButtonStyle,actionButtonStyle:null==w?void 0:w.actionButtonStyle,closeButtonAriaLabel:null==w?void 0:w.closeButtonAriaLabel,removeToast:q,toasts:O.filter(e=>e.position==n.position),heights:I.filter(e=>e.position==n.position),setHeights:j,expandByDefault:l,gap:S,expanded:P,swipeDirections:e.swipeDirections})})):null}))});e.s(["K",0,b,"c",0,h])},55838,(e,t,r)=>{var n=e.r(71645),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,c=n[1];return a(function(){o.value=r,o.getSnapshot=t,u(o)&&c({inst:o})},[e,r,t]),s(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),l(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},52822,(e,t,r)=>{var n=e.r(71645),o=e.r(2239),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useSyncExternalStore,a=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=s(e,(d=u(function(){function e(e){if(!l){if(l=!0,s=e,e=n(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return a=t}return a=e}if(t=a,i(s,e))return t;var r=n(e);return void 0!==o&&o(t,r)?(s=e,t):(s=e,a=r)}var s,a,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,o]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}},2239,(e,t,r)=>{e.i(47167),t.exports=e.r(55838)},30224,(e,t,r)=>{e.i(47167),t.exports=e.r(52822)}],18566,(e,t,r)=>{t.exports=e.r(76562)}]);
@@ -0,0 +1 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,40676,10223,e=>{var t=e.i(18050),n=e.i(71645),r=e.i(75260),i=e.i(66027),o=e.i(12598),l=e.i(46696),s=e.i(57675);function a({title:e,description:n,control:r,titleId:i,descriptionId:o,children:l}){return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 max-md:flex-col max-md:items-start max-md:gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{id:i,className:"text-body",children:e}),n&&(0,t.jsx)("div",{id:o,className:"mt-1 text-meta text-[var(--text-3)]",children:n}),l]}),r&&(0,t.jsx)("div",{className:"flex-shrink-0 max-md:max-w-full",children:r})]})}function f({on:e,onText:n="Enabled",offText:r="Disabled",className:i="",children:o,...l}){return(0,t.jsx)("button",{type:"button",...l,className:`flex h-[34px] flex-shrink-0 items-center gap-[7px] rounded-[9px] border border-border bg-[var(--surface-2)] px-[13px] text-label hover:bg-[var(--surface-3)] disabled:opacity-50 max-md:h-11 ${i}`,children:o??(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.W,{name:e?"check":"x",size:14}),(0,t.jsx)("span",{children:e?n:r})]})})}e.s(["N",0,function({title:e,children:n}){return(0,t.jsxs)("section",{"data-phone-targets":!0,className:"flex flex-col gap-[14px] rounded-[13px] border border-border bg-[var(--surface)] p-[18px_20px] max-md:p-4",children:[(0,t.jsx)("h2",{className:"m-0 text-body font-semibold",children:e}),n]})},"s",0,a,"K",0,f],10223);var c=e.i(67539);e.s(["h",0,function(){return(0,n.useEffect)(()=>{let e=0;function t(){"visible"!==document.visibilityState||Date.now()-e<6e4||(e=Date.now(),fetch("/api/telemetry",{method:"POST"}).catch(()=>{}))}return t(),document.addEventListener("visibilitychange",t),window.addEventListener("pointerdown",t),window.addEventListener("keydown",t),()=>{document.removeEventListener("visibilitychange",t),window.removeEventListener("pointerdown",t),window.removeEventListener("keydown",t)}},[]),null},"u",0,function(){let e=(0,o.d)(),n=(0,i.f)({queryKey:["usage-statistics"],queryFn:async()=>{let e=await fetch("/api/telemetry");if(!e.ok)throw Error("Could not load usage preference.");return e.json()}}),s=(0,r.f)({mutationFn:async e=>{let t=await fetch("/api/telemetry",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})});if(!t.ok)throw Error("Could not save usage preference. Please try again.");return t.json()},onSuccess:t=>{e.setQueryData(["usage-statistics"],t),l.c.success("Usage preference saved")},onError:e=>l.c.error(e.message)});return(0,t.jsxs)(a,{titleId:"usage-label",descriptionId:"usage-description",title:"Share basic usage statistics",description:(0,t.jsx)(t.Fragment,{children:"Reports one daily activity event with a random installation ID and app version to PostHog in the US while you use the app. Failed deliveries may retry. No bead content, project paths, names, emails, or session recordings. Enabled by default. Turning this off stops future events for all projects and browsers using this installation, including after restarting."}),control:(0,t.jsx)(f,{on:n.data?.enabled??!1,role:"switch","aria-checked":n.data?.enabled??!1,"aria-labelledby":"usage-label","aria-describedby":"usage-description",disabled:!n.data||s.isPending,onClick:()=>s.mutate(!n.data?.enabled),children:n.data?s.isPending?"Saving…":n.data.enabled?"Enabled":"Disabled":"Loading…"}),children:[n.data&&!n.data.configured&&(0,t.jsx)("p",{className:"mt-2 text-meta text-[var(--text-3)]",children:"Usage reporting is not configured for this installation. No events are sent."}),n.isError&&(0,t.jsxs)("p",{role:"alert",className:"text-label",children:["Could not load usage preference. ",(0,t.jsx)(c.W,{tone:"brand",onClick:()=>void n.refetch(),children:"Retry"})]})]})}],40676)},13082,e=>{var t=e.i(71645),n=e.i(74735),r=e.i(22162),i=e.i(18663),o=e.i(65420),l=e.i(8868),s=e.i(39957),a=e.i(29315),f=e.i(51321),c=e.i(47554),u=e.i(96296),d=e.i(75606),m=e.i(41530),p=e.i(50446),g=e.i(36512);let h=r.f.os.mac&&i.f.engine.webkit;e.s(["f",0,function(e,r={}){let{enabled:i=!0,delay:v}=r,y="rootStore"in e?e.rootStore:e,{events:x,dataRef:w}=y.context,b=t.useRef(!1),E=t.useRef(null),R=t.useRef(!0),T=(0,s.e)();t.useEffect(()=>{let e=y.select("domReferenceElement");if(!i)return;let t=(0,a.K)(e);return(0,o.f)((0,n.f)(t,"blur",function(){let e=y.select("domReferenceElement");!y.select("open")&&(0,a.E)(e)&&e===(0,c.T)((0,l.f)(e))&&(b.current=!0)}),h&&(0,n.f)(t,"keydown",function(){R.current=!0},!0),h&&(0,n.f)(t,"pointerdown",function(){R.current=!1},!0))},[y,i]),t.useEffect(()=>{if(i)return x.on("openchange",e),()=>{x.off("openchange",e)};function e(e){if(e.reason===m.f.triggerPress||e.reason===p.f.escapeKey){let e=y.select("domReferenceElement");(0,a.m)(e)&&(E.current=e,b.current=!0)}}},[x,i,y]);let S=t.useMemo(()=>{function e(){b.current=!1,E.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(b.current){if(E.current===n)return;e()}let r=(0,c.Z)(t.nativeEvent);if((0,a.m)(r)){if(h&&!t.relatedTarget){if(!R.current&&!(0,u.Q)(r))return}else if(!(0,u.F)(r))return}let i=(0,u.x)(t.relatedTarget,y.context.triggerElements),{nativeEvent:o,currentTarget:l}=t,s="function"==typeof v?v():v;y.select("open")&&i||0===s||void 0===s?y.setOpen(!0,(0,d.f)(g.f.triggerFocus,o,l)):T.start(s,()=>{b.current||y.setOpen(!0,(0,d.f)(g.f.triggerFocus,o,l))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,i=(0,a.m)(n)&&n.hasAttribute((0,f.f)("focus-guard"))&&"outside"===n.getAttribute("data-type");T.start(0,()=>{let e=y.select("domReferenceElement"),t=(0,c.T)((0,l.f)(e));if(!n&&t===e||(0,c.I)(w.current.floatingContext?.refs.floating.current,t)||(0,c.I)(e,t)||i)return;let o=n??t;(0,u.x)(o,y.context.triggerElements)||y.setOpen(!1,(0,d.f)(g.f.triggerFocus,r))})}}},[w,v,y,T]);return t.useMemo(()=>i?{reference:S,trigger:S}:{},[i,S])}])},31157,e=>{var t=e.i(71645),n=e.i(74735),r=e.i(65420),i=e.i(46376),o=e.i(8868),l=e.i(67865),s=e.i(39957),a=e.i(29315),f=e.i(75606),c=e.i(22428),u=e.i(46420),d=e.i(47554),m=e.i(58408),p=e.i(73752),g=e.i(96296),h=e.i(44681),v=e.i(94814);e.s(["f",0,function(e,y={}){let{enabled:x=!0,closeDelay:w=0,nodeId:b}=y,E="rootStore"in e?e.rootStore:e,R=E.useState("open"),T=E.useState("floatingElement"),S=E.useState("domReferenceElement"),{dataRef:C}=E.context,O=(0,u.$)(),P=(0,u.G)(),M=(0,p.s)(E),A=(0,s.e)(),k=(0,l.f)(()=>(0,h.a)(C.current.openEvent?.type,M.interactedInside)),I=(0,l.f)(()=>(0,h.j)(C.current.openEvent?.type)),L=(0,l.f)(()=>{(0,p.O)(M)});(0,i.f)(()=>{R||(M.pointerType=void 0,M.restTimeoutPending=!1,M.interactedInside=!1,L())},[R,M,L]),t.useEffect(()=>L,[L]),(0,i.f)(()=>{if(x&&R&&M.handleCloseOptions?.blockPointerEvents&&I()&&(0,a.m)(S)&&T){let e=(0,o.f)(T),t=O?.nodesRef.current.find(e=>e.id===P)?.context?.elements.floating;t&&(t.style.pointerEvents="");let n=M.pointerEventsScopeElement!==T?M.pointerEventsScopeElement:null,r=t!==T?t:null,i=M.handleCloseOptions?.getScope?.()??n??r??S.closest("[data-rootownerid]")??e.body;return(0,p.p)(M,{scopeElement:i,referenceElement:S,floatingElement:T}),()=>{L()}}},[x,R,S,T,M,I,O,P,L]),t.useEffect(()=>{if(x)return(0,r.f)(T&&(0,n.f)(T,"mouseenter",function(){M.openChangeTimeout.clear(),A.clear(),O?.events.off("floating.closed",t),L()}),T&&(0,n.f)(T,"mouseleave",function(n){if(e()&&O)return void O.events.on("floating.closed",t);if((0,v.f)(n.relatedTarget,E.context.triggerElements))return;let r=C.current.floatingContext?.nodeId??b,i=n.relatedTarget;if(!(O&&r&&(0,a.m)(i)&&(0,m.Q)(O.nodesRef.current,r,!1).some(e=>(0,d.I)(e.context?.elements.floating,i)))){let e,t;if(M.handler)return void M.handler(n);L(),I()&&!k()&&(e=(0,h.c)(w,"close",M.pointerType),t=()=>{E.setOpen(!1,(0,f.f)(c.f.triggerHover,n)),O?.events.emit("floating.closed",n)},e?M.openChangeTimeout.start(e,t):(M.openChangeTimeout.clear(),t()))}}),T&&(0,n.f)(T,"pointerdown",function(e){let t=(0,d.Z)(e);if(!(0,g.W)(t)){M.interactedInside=!1;return}M.interactedInside=t?.closest("[aria-haspopup]")!=null},!0),()=>{O?.events.off("floating.closed",t)});function e(){return!!(O&&P&&(0,m.Q)(O.nodesRef.current,P).length>0)}function t(n){!O||!P||e()||A.start(0,()=>{O.events.off("floating.closed",t),E.setOpen(!1,(0,f.f)(c.f.triggerHover,n)),O.events.emit("floating.closed",n)})}},[x,T,E,C,w,b,I,k,L,M,O,P,A])}])},73752,e=>{var t=e.i(26300),n=e.i(88940),r=e.i(39957);e.i(96296);class i{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 r.U,this.restTimeout=new r.U,this.handleCloseOptions=void 0}static create(){return new i}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}let o=new WeakMap;function l(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&o.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),o.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}e.s(["p",0,function(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,s=o.get(n);s&&s!==e&&l(s),l(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,o.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",i.style.pointerEvents="auto"},"O",0,l,"s",0,function(e){let r=e.context.dataRef.current,o=(0,n.f)(()=>r.hoverInteractionState??i.create()).current;return r.hoverInteractionState||(r.hoverInteractionState=o),(0,t.f)(r.hoverInteractionState.disposeEffect),r.hoverInteractionState}])},72135,e=>{var t=e.i(71645),n=e.i(74080),r=e.i(74735),i=e.i(65420),o=e.i(8868),l=e.i(67865),s=e.i(46265),a=e.i(29315),f=e.i(75606),c=e.i(22428),u=e.i(46420),d=e.i(47554),m=e.i(57940),p=e.i(73752),g=e.i(44681),h=e.i(94814);let v={current:null};e.s(["f",0,function(e,y={}){let{enabled:x=!0,delay:w=0,handleClose:b=null,mouseOnly:E=!1,restMs:R=0,move:T=!0,triggerElementRef:S=v,externalTree:C,isActiveTrigger:O=!0,getHandleCloseContext:P,isClosing:M,shouldOpen:A}=y,k="rootStore"in e?e.rootStore:e,{dataRef:I,events:L}=k.context,D=(0,u.$)(C),j=(0,p.s)(k),F=t.useRef(!1),H=(0,s.f)(b),$=(0,s.f)(w),W=(0,s.f)(R),B=(0,s.f)(x),N=(0,s.f)(A),V=(0,s.f)(M),X=(0,l.f)(()=>(0,g.a)(I.current.openEvent?.type,j.interactedInside)),K=(0,l.f)(()=>N.current?.()!==!1),Z=(0,l.f)((e,t,n)=>{let r=k.context.triggerElements;return r.hasElement(t)?!e||!(0,d.I)(e,t):!!(0,a.m)(n)&&r.hasMatchingElement(e=>(0,d.I)(e,n))&&(!e||!(0,d.I)(e,n))}),J=(0,l.f)(()=>{j.handler&&((0,o.f)(k.select("domReferenceElement")).removeEventListener("mousemove",j.handler),j.handler=void 0)}),Q=(0,l.f)(()=>{(0,p.O)(j)});return O&&(j.handleCloseOptions=H.current?.__options),t.useEffect(()=>J,[J]),t.useEffect(()=>{if(x)return L.on("openchange",e),()=>{L.off("openchange",e)};function e(e){e.open?F.current=!1:(F.current=e.reason===c.f.triggerHover,J(),j.openChangeTimeout.clear(),j.restTimeout.clear(),j.blockMouseMove=!0,j.restTimeoutPending=!1)}},[x,L,j,J]),t.useEffect(()=>{if(!x)return;function e(t,n=!0){let r=(0,g.c)($.current,"close",j.pointerType);r?j.openChangeTimeout.start(r,()=>{k.setOpen(!1,(0,f.f)(c.f.triggerHover,t)),D?.events.emit("floating.closed",t)}):n&&(j.openChangeTimeout.clear(),k.setOpen(!1,(0,f.f)(c.f.triggerHover,t)),D?.events.emit("floating.closed",t))}let t=S.current??(O?k.select("domReferenceElement"):null);if((0,a.m)(t))return T?(0,i.f)((0,r.f)(t,"mousemove",n,{once:!0}),(0,r.f)(t,"mouseenter",n),(0,r.f)(t,"mouseleave",l)):(0,i.f)((0,r.f)(t,"mouseenter",n),(0,r.f)(t,"mouseleave",l));function n(e){if(j.openChangeTimeout.clear(),j.blockMouseMove=!1,E&&!(0,m.J)(j.pointerType))return;let t=(0,g.Z)(W.current),n=(0,g.c)($.current,"open",j.pointerType),r=(0,d.Z)(e),i=e.currentTarget??null,o=k.select("domReferenceElement"),l=i;if((0,a.m)(r)&&!k.context.triggerElements.hasElement(r)){for(let e of k.context.triggerElements.elements())if((0,d.I)(e,r)){l=e;break}}(0,a.m)(i)&&(0,a.m)(o)&&!k.context.triggerElements.hasElement(i)&&(0,d.I)(i,o)&&(l=o);let s=null!=l&&Z(o,l,r),u=k.select("open"),p=V.current?.()??"ending"===k.select("transitionStatus"),h=!u&&p&&F.current,v=!s&&(0,a.m)(l)&&(0,a.m)(o)&&(0,d.I)(o,l)&&h,y=t>0&&!n,x=!u||s;if(s&&(u||h)||v){K()&&k.setOpen(!0,(0,f.f)(c.f.triggerHover,e,l));return}!y&&(n?j.openChangeTimeout.start(n,()=>{x&&K()&&k.setOpen(!0,(0,f.f)(c.f.triggerHover,e,l))}):x&&K()&&k.setOpen(!0,(0,f.f)(c.f.triggerHover,e,l)))}function l(t){if(X())return void Q();J();let n=k.select("domReferenceElement"),r=(0,o.f)(n);j.restTimeout.clear(),j.restTimeoutPending=!1;let i=I.current.floatingContext??P?.();if(!(0,h.f)(t.relatedTarget,k.context.triggerElements)){if(H.current&&i){k.select("open")||j.openChangeTimeout.clear();let n=S.current;j.handler=H.current({...i,tree:D,x:t.clientX,y:t.clientY,onClose(){Q(),J(),B.current&&!X()&&n===k.select("domReferenceElement")&&e(t,!0)}}),r.addEventListener("mousemove",j.handler),j.handler(t);return}"touch"===j.pointerType&&(0,d.I)(k.select("floatingElement"),t.relatedTarget)||e(t)}}},[J,Q,I,$,k,x,H,j,O,Z,X,E,T,W,S,D,B,P,V,K]),t.useMemo(()=>{if(x)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,i=k.select("domReferenceElement"),o=k.select("open"),l=Z(i,r,e.target);if(E&&!(0,m.J)(j.pointerType))return;if(o&&l&&j.handleCloseOptions?.blockPointerEvents){let e=k.select("floatingElement");if(e){let t=j.handleCloseOptions?.getScope?.()??r.ownerDocument.body;(0,p.p)(j,{scopeElement:t,referenceElement:r,floatingElement:e})}}let s=(0,g.Z)(W.current);function a(){if(j.restTimeoutPending=!1,X())return;let e=k.select("open");!j.blockMouseMove&&(!e||l)&&K()&&k.setOpen(!0,(0,f.f)(c.f.triggerHover,t,r))}(!o||l)&&0!==s&&(!l&&j.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(j.restTimeout.clear(),"touch"===j.pointerType?n.flushSync(()=>{a()}):l&&o?a():(j.restTimeoutPending=!0,j.restTimeout.start(s,a))))}};function e(e){j.pointerType=e.pointerType}},[x,j,X,Z,E,k,W,K])}])},44681,e=>{var t=e.i(57940);e.s(["c",0,function(e,n,r){let i=null==r||(0,t.J)(r)?"function"==typeof e?e():e:0;return"number"==typeof i?i:i?.[n]},"Z",0,function(e){return"function"==typeof e?e():e},"a",0,function(e,t){return t||"click"===e||"mousedown"===e},"j",0,function(e){return e?.includes("mouse")&&"mousedown"!==e}])},50316,e=>{var t=e.i(29315),n=e.i(39957),r=e.i(47554),i=e.i(58408);let o=.1*.1;function l(e,t,n,r,i,o){return r>=t!=o>=t&&e<=(i-n)*(t-r)/(o-r)+n}function s(e,t,n,r,i,o,s,a,f,c){let u=!1;return l(e,t,n,r,i,o)&&(u=!u),l(e,t,i,o,s,a)&&(u=!u),l(e,t,s,a,f,c)&&(u=!u),l(e,t,f,c,n,r)&&(u=!u),u}function a(e,t,n,r,i,o){let l=Math.min(n,i),s=Math.max(n,i),a=Math.min(r,o),f=Math.max(r,o);return e>=l&&e<=s&&t>=a&&t<=f}e.s(["f",0,function(e={}){let{blockPointerEvents:l=!1}=e,f=new n.U,c=({x:e,y:n,placement:l,elements:c,onClose:u,nodeId:d,tree:m})=>{let p=l?.split("-")[0],g=!1,h=null,v=null,y="u">typeof performance?performance.now():0;return function(l){f.clear();let x=c.domReference,w=c.floating;if(!x||!w||null==p||null==e||null==n)return;let{clientX:b,clientY:E}=l,R=(0,r.Z)(l),T="mouseleave"===l.type,S=(0,r.I)(w,R),C=(0,r.I)(x,R);if(S&&(g=!0,!T))return;if(C&&(g=!1,!T)){g=!0;return}if(T&&(0,t.m)(l.relatedTarget)&&(0,r.I)(w,l.relatedTarget))return;function O(){return!!(m&&(0,i.Q)(m.nodesRef.current,d).length>0)}function P(){O()||(f.clear(),u())}if(O())return;let M=x.getBoundingClientRect(),A=w.getBoundingClientRect(),k=e>A.right-A.width/2,I=n>A.bottom-A.height/2,L=A.width>M.width,D=A.height>M.height,j=(L?M:A).left,F=(L?M:A).right,H=(D?M:A).top,$=(D?M:A).bottom;if("top"===p&&n>=M.bottom-1||"bottom"===p&&n<=M.top+1||"left"===p&&e>=M.right-1||"right"===p&&e<=M.left+1)return void P();let W=!1;switch(p){case"top":W=a(b,E,j,M.top+1,F,A.bottom-1);break;case"bottom":W=a(b,E,j,A.top+1,F,M.bottom-1);break;case"left":W=a(b,E,A.right-1,$,M.left+1,H);break;case"right":W=a(b,E,M.right-1,$,A.left+1,H)}if(W)return;if(g&&(!(b>=M.x)||!(b<=M.x+M.width)||!(E>=M.y)||!(E<=M.y+M.height))||!T&&function(e,t){let n=performance.now(),r=n-y;if(null===h||null===v||0===r)return h=e,v=t,y=n,!1;let i=e-h,l=t-v;return h=e,v=t,y=n,i*i+l*l<r*r*o}(b,E))return void P();let B=!1;switch(p){case"top":{let t=L?.25:2,r=n+.5+1,i=k||L?A.bottom-.5:A.top,o=k?L?A.bottom-.5:A.top:A.bottom-.5;B=s(b,E,L||k?e+t:e-t,r,L?e-t:k?e+t:e-t,r,A.left,i,A.right,o);break}case"bottom":{let t=L?.25:2,r=n-.5,i=k||L?A.top+.5:A.bottom,o=k?L?A.top+.5:A.bottom:A.top+.5;B=s(b,E,L||k?e+t:e-t,r,L?e-t:k?e+t:e-t,r,A.left,i,A.right,o);break}case"left":{let t=D?.25:2,r=e+.5+1,i=I||D?A.right-.5:A.left,o=I?D?A.right-.5:A.left:A.right-.5;B=s(b,E,i,A.top,o,A.bottom,r,D||I?n+t:n-t,r,D?n-t:I?n+t:n-t);break}case"right":{let t=D?.25:2,r=e-.5,i=I||D?A.left+.5:A.right,o=I?D?A.left+.5:A.right:A.left+.5;B=s(b,E,r,D||I?n+t:n-t,r,D?n-t:I?n+t:n-t,i,A.top,o,A.bottom)}}B?g||f.start(40,P):P()}};return c.__options={...e,blockPointerEvents:l},c}])},94814,e=>{var t=e.i(96296);e.s(["f",()=>t.x])},15982,e=>{var t=e.i(56789),n=e.i(38396);e.s(["f",0,function(e){return"starting"===e?n.e:t.w}])},29365,72855,60495,e=>{let t;var n,r=e.i(71645);let i=["top","right","bottom","left"],o=Math.min,l=Math.max,s=Math.round,a=Math.floor,f=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function h(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function v(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let y=["left","right"],x=["right","left"],w=["top","bottom"],b=["bottom","top"];function E(e){let t=d(e);return c[t]+e.slice(t.length)}function R(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function T(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}}var S=e.i(8868),C=e.i(33848),O=e.i(46376),P=e.i(46265),M=e.i(67865);function A(e,t,n){let r,{reference:i,floating:o}=e,l=h(t),s=p(h(t)),a=g(s),f=d(t),c="y"===l,u=i.x+i.width/2-o.width/2,v=i.y+i.height/2-o.height/2,y=i[a]/2-o[a]/2;switch(f){case"top":r={x:u,y:i.y-o.height};break;case"bottom":r={x:u,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:v};break;case"left":r={x:i.x-o.width,y:v};break;default:r={x:i.x,y:i.y}}switch(m(t)){case"start":r[s]-=y*(n&&c?-1:1);break;case"end":r[s]+=y*(n&&c?-1:1)}return r}async function k(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:s,strategy:a}=e,{boundary:f="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=u(t,e),g=R(p),h=s[m?"floating"===d?"reference":"floating":d],v=T(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(h)))||n?h:h.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:f,rootBoundary:c,strategy:a})),y="floating"===d?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},b=T(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:x,strategy:a}):y);return{top:(v.top-b.top+g.top)/w.y,bottom:(b.bottom-v.bottom+g.bottom)/w.y,left:(v.left-b.left+g.left)/w.x,right:(b.right-v.right+g.right)/w.x}}let I=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:k},a=await (null==l.isRTL?void 0:l.isRTL(t)),f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:u}=A(f,r,a),d=r,m=0,p={};for(let n=0;n<o.length;n++){let g=o[n];if(!g)continue;let{name:h,fn:v}=g,{x:y,y:x,data:w,reset:b}=await v({x:c,y:u,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:f,platform:s,elements:{reference:e,floating:t}});c=null!=y?y:c,u=null!=x?x:u,p[h]={...p[h],...w},b&&m<50&&(m++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(f=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:u}=A(f,d,a)),n=-1)}return{x:c,y:u,placement:d,strategy:i,middlewareData:p}};function L(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D(e){return i.some(t=>e[t]>=0)}let j=new Set(["left","top"]);async function F(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=d(n),s=m(n),a="y"===h(n),f=j.has(l)?-1:1,c=o&&a?-1:1,p=u(t,e),{mainAxis:g,crossAxis:v,alignmentAxis:y}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof y&&(v="end"===s?-1*y:y),a?{x:v*c,y:g*f}:{x:g*f,y:v*c}}var H=e.i(29315);function $(e){let t=(0,H.X)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=(0,H.E)(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,a=s(n)!==o||s(r)!==l;return a&&(n=o,r=l),{width:n,height:r,$:a}}function W(e){return(0,H.m)(e)?e:e.contextElement}function B(e){let t=W(e);if(!(0,H.E)(t))return f(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=$(t),l=(o?s(n.width):n.width)/r,a=(o?s(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let N=f(0);function V(e){let t=(0,H.K)(e);return(0,H.i)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:N}function X(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=W(e),s=f(1);t&&(r?(0,H.m)(r)&&(s=B(r)):s=B(e));let a=(void 0===(i=n)&&(i=!1),r&&(!i||r===(0,H.K)(l))&&i)?V(l):f(0),c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,m=o.height/s.y;if(l){let e=(0,H.K)(l),t=r&&(0,H.m)(r)?(0,H.K)(r):r,n=e,i=(0,H.w)(n);for(;i&&r&&t!==n;){let e=B(i),t=i.getBoundingClientRect(),r=(0,H.X)(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,m*=e.y,c+=o,u+=l,n=(0,H.K)(i),i=(0,H.w)(n)}}return T({width:d,height:m,x:c,y:u})}function K(e,t){let n=(0,H.Q)(e).scrollLeft;return t?t.left+n:X((0,H.I)(e)).left+n}function Z(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-K(e,n),y:n.top+t.scrollTop}}function J(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=(0,H.K)(e),r=(0,H.I)(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,s=0,a=0;if(i){o=i.width,l=i.height;let e=(0,H.i)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,a=i.offsetTop)}let f=K(r);if(f<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else f<=25&&(o+=f);return{width:o,height:l,x:s,y:a}}(e,n);else if("document"===t){let t,n,o,s,a,f,c;r=(0,H.I)(e),t=(0,H.I)(r),n=(0,H.Q)(r),o=r.ownerDocument.body,s=l(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=l(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),f=-n.scrollLeft+K(r),c=-n.scrollTop,"rtl"===(0,H.X)(o).direction&&(f+=l(t.clientWidth,o.clientWidth)-s),i={width:s,height:a,x:f,y:c}}else if((0,H.m)(t)){let e,r,o,l,s,a;r=(e=X(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,l=(0,H.E)(t)?B(t):f(1),s=t.clientWidth*l.x,a=t.clientHeight*l.y,i={width:s,height:a,x:o*l.x,y:r*l.y}}else{let n=V(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return T(i)}function Q(e){return"static"===(0,H.X)(e).position}function U(e,t){if(!(0,H.E)(e)||"fixed"===(0,H.X)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,H.I)(e)===n&&(n=n.ownerDocument.body),n}function _(e,t){let n=(0,H.K)(e);if((0,H.D)(e))return n;if(!(0,H.E)(e)){let t=(0,H.J)(e);for(;t&&!(0,H.Z)(t);){if((0,H.m)(t)&&!Q(t))return t;t=(0,H.J)(t)}return n}let r=U(e,t);for(;r&&(0,H.S)(r)&&Q(r);)r=U(r,t);return r&&(0,H.Z)(r)&&Q(r)&&!(0,H.e)(r)?n:r||(0,H.f)(e)||n}let z=async function(e){let t=this.getOffsetParent||_,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=(0,H.E)(t),i=(0,H.I)(t),o="fixed"===n,l=X(e,!0,o,t),s={scrollLeft:0,scrollTop:0},a=f(0);if(r||!r&&!o)if(("body"!==(0,H.A)(t)||(0,H.B)(i))&&(s=(0,H.Q)(t)),r){let e=X(t,!0,o,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else i&&(a.x=K(i));o&&!r&&i&&(a.x=K(i));let c=!i||r||o?f(0):Z(i,s);return{x:l.left+s.scrollLeft-a.x-c.x,y:l.top+s.scrollTop-a.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},G={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=(0,H.I)(r),s=!!t&&(0,H.D)(t.floating);if(r===l||s&&o)return n;let a={scrollLeft:0,scrollTop:0},c=f(1),u=f(0),d=(0,H.E)(r);if((d||!d&&!o)&&(("body"!==(0,H.A)(r)||(0,H.B)(l))&&(a=(0,H.Q)(r)),d)){let e=X(r);c=B(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let m=!l||d||o?f(0):Z(l,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+m.x,y:n.y*c.y-a.scrollTop*c.y+u.y+m.y}},getDocumentElement:H.I,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,s=[..."clippingAncestors"===n?(0,H.D)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,H.G)(e,[],!1).filter(e=>(0,H.m)(e)&&"body"!==(0,H.A)(e)),i=null,o="fixed"===(0,H.X)(e).position,l=o?(0,H.J)(e):e;for(;(0,H.m)(l)&&!(0,H.Z)(l);){let t=(0,H.X)(l),n=(0,H.e)(l);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||(0,H.B)(l)&&!n&&function e(t,n){let r=(0,H.J)(t);return!(r===n||!(0,H.m)(r)||(0,H.Z)(r))&&("fixed"===(0,H.X)(r).position||e(r,n))}(e,l)))?i=t:r=r.filter(e=>e!==l),l=(0,H.J)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=J(t,s[0],i),f=a.top,c=a.right,u=a.bottom,d=a.left;for(let e=1;e<s.length;e++){let n=J(t,s[e],i);f=l(n.top,f),c=o(n.right,c),u=o(n.bottom,u),d=l(n.left,d)}return{width:c-d,height:u-f,x:d,y:f}},getOffsetParent:_,getElementRects:z,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=$(e);return{width:t,height:n}},getScale:B,isElement:H.m,isRTL:function(e){return"rtl"===(0,H.X)(e).direction}};function Y(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function q(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,m=W(e),p=s||f?[...m?(0,H.G)(m):[],...t?(0,H.G)(t):[]]:[];p.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),f&&e.addEventListener("resize",n)});let g=m&&u?function(e,t){let n,r=null,i=(0,H.I)(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function f(c,u){void 0===c&&(c=!1),void 0===u&&(u=1),s();let d=e.getBoundingClientRect(),{left:m,top:p,width:g,height:h}=d;if(c||t(),!g||!h)return;let v={rootMargin:-a(p)+"px "+-a(i.clientWidth-(m+g))+"px "+-a(i.clientHeight-(p+h))+"px "+-a(m)+"px",threshold:l(0,o(1,u))||1},y=!0;function x(t){let r=t[0].intersectionRatio;if(r!==u){if(!y)return f();r?f(!1,r):n=setTimeout(()=>{f(!1,1e-7)},1e3)}1!==r||Y(d,e.getBoundingClientRect())||f(),y=!1}try{r=new IntersectionObserver(x,{...v,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(x,v)}r.observe(e)}(!0),s}(m,n):null,h=-1,v=null;c&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===m&&v&&t&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),m&&!d&&v.observe(m),t&&v.observe(t));let y=d?X(e):null;return d&&function t(){let r=X(e);y&&!Y(y,r)&&n(),y=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{s&&e.removeEventListener("scroll",n),f&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(i)}}var ee=e.i(74080),et="u">typeof document?r.useLayoutEffect:function(){};function en(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!en(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!en(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function er(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ei(e,t){let n=er(e);return Math.round(t*n)/n}function eo(e){let t=r.useRef(e);return et(()=>{t.current=e}),t}var el=e.i(46420),es=e.i(83977),ea=e.i(88940),ef=e.i(90627),ec=e.i(56341);let eu=r.createContext(void 0);function ed(){let e=r.useContext(eu);return e?.direction??"ltr"}e.s(["f",0,ed],72855);let em=(n=void 0,{name:(t={name:"hide",options:n={},async fn(e){let{rects:t,platform:r}=e,{strategy:i="referenceHidden",...o}=u(n,e);switch(i){case"referenceHidden":{let n=L(await r.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:D(n)}}}case"escaped":{let n=L(await r.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:D(n)}}}default:return{}}}}).name,fn:t.fn,options:[void 0,void 0]}).fn,ep={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,o=await em(e);return{data:{referenceHidden:o.data?.referenceHidden||0===t&&0===n&&0===r&&0===i}}}},eg={sideX:"left",sideY:"top"};function eh(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function ev(e,t,n){let{rects:r,placement:i}=e;return{side:eh(t,d(i),n),align:m(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function ey(e){return null!=e&&"current"in e}e.s(["x",0,eg,"e",0,{name:"adaptiveOrigin",async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:o,strategy:l,placement:s}=e,a=(0,C.f)(i),f=a.getComputedStyle(i);if("0s"===f.transitionDuration||""===f.transitionDuration)return{x:t,y:n,data:eg};let c=await o.getOffsetParent?.(i),u={width:0,height:0};if("fixed"===l&&a?.visualViewport)u={width:a.visualViewport.width,height:a.visualViewport.height};else if(c===a){let e=(0,S.f)(i);u={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await o.isElement?.(c)&&(u=await o.getDimensions(c));let m=d(s),p=t,g=n;return"left"===m&&(p=u.width-(t+r.width)),"top"===m&&(g=u.height-(n+r.height)),{x:p,y:g,data:{sideX:"left"===m?"right":eg.sideX,sideY:"top"===m?"bottom":eg.sideY}}}}],60495),e.s(["f",0,function(e){var t,n,i,s,a,f,c,T,A,k,L,D;let $,W,B,N,{anchor:V,positionMethod:X="absolute",side:K="bottom",sideOffset:Z=0,align:J="center",alignOffset:Q=0,collisionBoundary:U,collisionPadding:_=5,sticky:z=!1,arrowPadding:Y=5,disableAnchorTracking:eu=!1,inline:em,keepMounted:ex=!1,floatingRootContext:ew,mounted:eb,collisionAvoidance:eE,shiftCrossAxis:eR=!1,nodeId:eT,adaptiveOrigin:eS,lazyFlip:eC=!1,externalTree:eO}=e,[eP,eM]=r.useState(null);eb||null===eP||eM(null);let eA=eE.side||"flip",ek=eE.align||"flip",eI=eE.fallbackAxisSide||"end",eL="function"==typeof V?V:void 0,eD=(0,M.f)(eL),ej=eL?eD:V,eF=(0,P.f)(V),eH=(0,P.f)(eb),e$="rtl"===ed(),eW=eP||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":e$?"left":"right","inline-start":e$?"right":"left"})[K],eB="center"===J?eW:`${eW}-${J}`,eN=_,eV=+("bottom"===K),eX=+("top"===K),eK=+("right"===K),eZ=+("left"===K);"number"==typeof eN?eN={top:eN+eV,right:eN+eZ,bottom:eN+eX,left:eN+eK}:eN&&(eN={top:(eN.top||0)+eV,right:(eN.right||0)+eZ,bottom:(eN.bottom||0)+eX,left:(eN.left||0)+eK});let eJ={boundary:"clipping-ancestors"===U?"clippingAncestors":U,padding:eN},eQ=r.useRef(null),eU=(0,P.f)(Z),e_=(0,P.f)(Q),ez=[];em&&ez.push(em),ez.push((t=e=>{let t=ev(e,K,e$),n="function"==typeof eU.current?eU.current(t):eU.current,r="function"==typeof e_.current?e_.current(t):e_.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},n=["function"!=typeof Z?Z:0,"function"!=typeof Q?Q:0,e$,K],void 0===(i=t)&&(i=0),{name:($={name:"offset",options:i,async fn(e){var t,n;let{x:r,y:o,placement:l,middlewareData:s}=e,a=await F(e,i);return l===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:r+a.x,y:o+a.y,data:{...a,placement:l}}}}).name,fn:$.fn,options:[t,n]}));let eG="none"===ek&&"shift"!==eA,eY=!eG&&(z||eR||"shift"===eA),eq="none"===eA?null:{name:(W={name:"flip",options:a=s={...eJ,padding:{top:eN.top+1,right:eN.right+1,bottom:eN.bottom+1,left:eN.left+1},mainAxis:!eR&&"flip"===eA,crossAxis:"flip"===ek&&"alignment",fallbackAxisSideDirection:eI},async fn(e){var t,n,r,i,o,l,s,f;let c,R,T,{placement:S,middlewareData:C,rects:O,initialPlacement:P,platform:M,elements:A}=e,{mainAxis:k=!0,crossAxis:I=!0,fallbackPlacements:L,fallbackStrategy:D="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:F=!0,...H}=u(a,e);if(null!=(t=C.arrow)&&t.alignmentOffset)return{};let $=d(S),W=h(P),B=d(P)===P,N=await (null==M.isRTL?void 0:M.isRTL(A.floating)),V=L||(B||!F?[E(P)]:(c=E(P),[v(P),c,v(c)])),X="none"!==j;!L&&X&&V.push(...(R=m(P),T=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:y;return t?y:x;case"left":case"right":return t?w:b;default:return[]}}(d(P),"start"===j,N),R&&(T=T.map(e=>e+"-"+R),F&&(T=T.concat(T.map(v)))),T));let K=[P,...V],Z=await M.detectOverflow(e,H),J=[],Q=(null==(n=C.flip)?void 0:n.overflows)||[];if(k&&J.push(Z[$]),I){let e,t,n,r,i=(l=S,s=O,void 0===(f=N)&&(f=!1),e=m(l),n=g(t=p(h(l))),r="x"===t?e===(f?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[n]>s.floating[n]&&(r=E(r)),[r,E(r)]);J.push(Z[i[0]],Z[i[1]])}if(Q=[...Q,{placement:S,overflows:J}],!J.every(e=>e<=0)){let e=((null==(r=C.flip)?void 0:r.index)||0)+1,t=K[e];if(t&&("alignment"!==I||W===h(t)||Q.every(e=>h(e.placement)!==W||e.overflows[0]>0)))return{data:{index:e,overflows:Q},reset:{placement:t}};let n=null==(i=Q.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(D){case"bestFit":{let e=null==(o=Q.filter(e=>{if(X){let t=h(e.placement);return t===W||"y"===t}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])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=P}if(S!==n)return{reset:{placement:n}}}return{}}}).name,fn:W.fn,options:[s,void 0]},e0=eG?null:(f=e=>{var t,n;let r=(0,S.f)(e.elements.floating).documentElement;return{...eJ,rootBoundary:eR?{x:0,y:0,width:r.clientWidth,height:r.clientHeight}:void 0,mainAxis:"none"!==ek,crossAxis:eY,limiter:z||eR?void 0:{fn:(void 0===(n=t=e=>{if(!eQ.current)return{};let{width:t,height:n}=eQ.current.getBoundingClientRect(),r=h(d(e.placement)),i="y"===r?eN.left+eN.right:eN.top+eN.bottom;return{offset:("y"===r?t:n)/2+i/2}})&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:i,rects:o,middlewareData:l}=e,{offset:s=0,mainAxis:a=!0,crossAxis:f=!0}=u(n,e),c={x:t,y:r},m=h(i),g=p(m),v=c[g],y=c[m],x=u(s,e),w="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(a){let e="y"===g?"height":"width",t=o.reference[g]-o.floating[e]+w.mainAxis,n=o.reference[g]+o.reference[e]-w.mainAxis;v<t?v=t:v>n&&(v=n)}if(f){var b,E;let e="y"===g?"width":"height",t=j.has(d(i)),n=o.reference[m]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[m])||0)+(t?0:w.crossAxis),r=o.reference[m]+o.reference[e]+(t?0:(null==(E=l.offset)?void 0:E[m])||0)-(t?w.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[g]:v,[m]:y}}}).fn,options:[t,void 0]}}},c=[eJ,z,eR,eN,ek],void 0===(T=f)&&(T={}),{name:(B={name:"shift",options:T,async fn(e){let{x:t,y:n,placement:r,platform:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:f={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=u(T,e),m={x:t,y:n},g=await i.detectOverflow(e,c),v=h(d(r)),y=p(v),x=m[y],w=m[v];if(s){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+g[e],r=x-g[t];x=l(n,o(x,r))}if(a){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=w+g[e],r=w-g[t];w=l(n,o(w,r))}let b=f.fn({...e,[y]:x,[v]:w});return{...b,data:{x:b.x-t,y:b.y-n,enabled:{[y]:s,[v]:a}}}}}).name,fn:B.fn,options:[f,c]});"shift"===eA||"shift"===ek||"center"===J?ez.push(e0,eq):ez.push(eq,e0),ez.push({name:(N={name:"size",options:k=A={...eJ,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!eH.current)return;let i=e.style;i.setProperty("--available-width",`${t}px`),i.setProperty("--available-height",`${n}px`);let o=(0,C.f)(e).devicePixelRatio||1,{x:l,y:s,width:a,height:f}=r.reference,c=(Math.round((l+a)*o)-Math.round(l*o))/o,u=(Math.round((s+f)*o)-Math.round(s*o))/o;i.setProperty("--anchor-width",`${c}px`),i.setProperty("--anchor-height",`${u}px`)}},async fn(e){var t,n;let r,i,{placement:s,rects:a,platform:f,elements:c}=e,{apply:p=()=>{},...g}=u(k,e),v=await f.detectOverflow(e,g),y=d(s),x=m(s),w="y"===h(s),{width:b,height:E}=a.floating;"top"===y||"bottom"===y?(r=y,i=x===(await (null==f.isRTL?void 0:f.isRTL(c.floating))?"start":"end")?"left":"right"):(i=y,r="end"===x?"top":"bottom");let R=E-v.top-v.bottom,T=b-v.left-v.right,S=o(E-v[r],R),C=o(b-v[i],T),O=!e.middlewareData.shift,P=S,M=C;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(M=T),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(P=R),O&&!x){let e=l(v.left,0),t=l(v.right,0),n=l(v.top,0),r=l(v.bottom,0);w?M=b-2*(0!==e||0!==t?e+t:l(v.left,v.right)):P=E-2*(0!==n||0!==r?n+r:l(v.top,v.bottom))}await p({...e,availableWidth:M,availableHeight:P});let A=await f.getDimensions(c.floating);return b!==A.width||E!==A.height?{reset:{rects:!0}}:{}}}).name,fn:N.fn,options:[A,void 0]},(L=e=>({element:eQ.current||(0,S.f)(e.elements.floating).createElement("div"),padding:Y,offsetParent:"floating"}),D=[Y],{...{name:"arrow",options:L,async fn(e){let{x:t,y:n,placement:r,rects:i,platform:s,elements:a,middlewareData:f}=e,{element:c,padding:d=0,offsetParent:v="real"}=u(L,e)||{};if(null==c)return{};let y=R(d),x={x:t,y:n},w=p(h(r)),b=g(w),E=await s.getDimensions(c),T="y"===w,S=T?"clientHeight":"clientWidth",C=i.reference[b]+i.reference[w]-x[w]-i.floating[b],O=x[w]-i.reference[w],P="real"===v?await s.getOffsetParent?.(c):a.floating,M=a.floating[S]||i.floating[b];M&&await s.isElement?.(P)||(M=a.floating[S]||i.floating[b]);let A=M/2-E[b]/2-1,k=Math.min(y[T?"top":"left"],A),I=Math.min(y[T?"bottom":"right"],A),D=M-E[b]-I,j=M/2-E[b]/2+(C/2-O/2),F=l(k,o(j,D)),H=!f.arrow&&null!=m(r)&&j!==F&&i.reference[b]/2-(j<k?k:I)-E[b]/2<0,$=H?j<k?j-k:j-D:0;return{[w]:x[w]+$,data:{[w]:F,centerOffset:j-F-$,...H&&{alignmentOffset:$}},reset:H}}},options:[L,D]}),{name:"transformOrigin",fn(e){let{elements:t,middlewareData:n,placement:r,rects:i,y:o}=e,l=d(r),s=h(l),a=eQ.current,f=n.arrow?.x||0,c=n.arrow?.y||0,u=a?.clientWidth||0,m=a?.clientHeight||0,p=f+u/2,g=c+m/2,v=Math.abs(n.shift?.y||0),y=i.reference.height/2,x="function"==typeof Z?Z(ev(e,K,e$)):Z,w=v>x,b={top:`${p}px calc(100% + ${x}px)`,bottom:`${p}px ${-x}px`,left:`calc(100% + ${x}px) ${g}px`,right:`${-x}px ${g}px`}[l],E=`${p}px ${i.reference.y+y-o}px`;return t.floating.style.setProperty("--transform-origin",eY&&"y"===s&&w?E:b),{}}},ep,eS),(0,O.f)(()=>{!eb&&ew&&ew.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[eb,ew]);let e1=r.useMemo(()=>({elementResize:!eu&&"u">typeof ResizeObserver,layoutShift:!eu&&"u">typeof IntersectionObserver}),[eu]),{refs:e5,elements:e2,x:e6,y:e4,middlewareData:e7,update:e8,placement:e3,context:e9,isPositioned:te,floatingStyles:tt}=function(e={}){let{nodeId:t,externalTree:n}=e,i=function(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=(0,es.f)(),o=null!=(0,el.G)(),l=(0,ea.f)(()=>new ec.f({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new ef.f,floatingId:i,syncOnly:!1,nested:o})).current;return(0,O.f)(()=>{let e={open:t,floatingId:i};void 0!==r.reference&&(e.referenceElement=r.reference,e.domReferenceElement=(0,H.m)(r.reference)?r.reference:null),void 0!==r.floating&&(e.floatingElement=r.floating),l.update(e)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=o,l}(e),o=e.rootContext||i,l=o.useState("referenceElement"),s=o.useState("floatingElement"),a=o.useState("domReferenceElement"),f=o.useState("open"),c=o.useState("floatingId"),[u,d]=r.useState(null),[m,p]=r.useState(void 0),[g,h]=r.useState(void 0),v=r.useRef(null),y=(0,el.$)(n),x=r.useMemo(()=>({reference:l,floating:s,domReference:a}),[l,s,a]),w=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:s}={},transform:a=!0,whileElementsMounted:f,open:c}=e,[u,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=r.useState(i);en(m,i)||p(i);let[g,h]=r.useState(null),[v,y]=r.useState(null),x=r.useCallback(e=>{e!==R.current&&(R.current=e,h(e))},[]),w=r.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),b=l||g,E=s||v,R=r.useRef(null),T=r.useRef(null),S=r.useRef(u),C=null!=f,O=eo(f),P=eo(o),M=eo(c),A=r.useCallback(()=>{var e,r;let i,o,l;if(!R.current||!T.current)return;let s={placement:t,strategy:n,middleware:m};P.current&&(s.platform=P.current),(e=R.current,r=T.current,i=new Map,l={...(o={platform:G,...s}).platform,_c:i},I(e,r,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!1!==M.current};k.current&&!en(S.current,t)&&(S.current=t,ee.flushSync(()=>{d(t)}))})},[m,t,n,P,M]);et(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let k=r.useRef(!1);et(()=>(k.current=!0,()=>{k.current=!1}),[]),et(()=>{if(b&&(R.current=b),E&&(T.current=E),b&&E){if(O.current)return O.current(b,E,A);A()}},[b,E,A,O,C]);let L=r.useMemo(()=>({reference:R,floating:T,setReference:x,setFloating:w}),[x,w]),D=r.useMemo(()=>({reference:b,floating:E}),[b,E]),j=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=ei(D.floating,u.x),r=ei(D.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...er(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,D.floating,u.x,u.y]);return r.useMemo(()=>({...u,update:A,refs:L,elements:D,floatingStyles:j}),[u,A,L,D,j])}({...e,elements:{...x,...u&&{reference:u}}}),b=(0,H.m)(m)?m:null,E=void 0===g?o.state.floatingElement:g;o.useSyncedValue("referenceElement",m??null),o.useSyncedValue("domReferenceElement",void 0===m?a:b),o.useSyncedValue("floatingElement",E);let R=r.useCallback(e=>{let t=(0,H.m)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),w.refs.setReference(t)},[w.refs]),T=r.useCallback(e=>{((0,H.m)(e)||null===e)&&(v.current=e,p(e)),((0,H.m)(w.refs.reference.current)||null===w.refs.reference.current||null!==e&&!(0,H.m)(e))&&w.refs.setReference(e)},[w.refs,p]),S=r.useCallback(e=>{h(e),w.refs.setFloating(e)},[w.refs]),C=r.useMemo(()=>({...w.refs,setReference:T,setFloating:S,setPositionReference:R,domReference:v}),[w.refs,T,S,R]),P=r.useMemo(()=>({...w.elements,domReference:a}),[w.elements,a]),M=r.useMemo(()=>({...w,dataRef:o.context.dataRef,open:f,onOpenChange:o.setOpen,events:o.context.events,floatingId:c,refs:C,elements:P,nodeId:t,rootStore:o}),[w,C,P,t,o,f,c]);return(0,O.f)(()=>{a&&(v.current=a)},[a]),(0,O.f)(()=>{o.context.dataRef.current.floatingContext=M;let e=y?.nodesRef.current.find(e=>e.id===t);e&&(e.context=M)}),r.useMemo(()=>({...w,context:M,refs:C,elements:P,rootStore:o}),[w,C,P,M,o])}({rootContext:ew,open:ex?eb:void 0,placement:eB,middleware:ez,strategy:X,whileElementsMounted:ex?void 0:(...e)=>q(...e,e1),nodeId:eT,externalTree:eO}),{sideX:tn,sideY:tr}=e7.adaptiveOrigin||eg,ti=te?X:"fixed",to=r.useMemo(()=>{let e=eS?{position:ti,[tn]:e6,[tr]:e4}:{position:ti,...tt};return te||(e.opacity=0),e},[eS,ti,tn,e6,tr,e4,tt,te]),tl=r.useRef(null);(0,O.f)(()=>{if(!eb)return;let e=eF.current,t="function"==typeof e?e():e,n=(ey(t)?t.current:t)||null;n!==tl.current&&(e5.setPositionReference(n),tl.current=n)},[eb,e5,ej,eF]),r.useEffect(()=>{if(!eb)return;let e=eF.current;"function"!=typeof e&&ey(e)&&e.current!==tl.current&&(e5.setPositionReference(e.current),tl.current=e.current)},[eb,e5,ej,eF]),r.useEffect(()=>{if(ex&&eb&&e2.reference&&e2.floating)return q(e2.reference,e2.floating,e8,e1)},[ex,eb,e2,e8,e1]);let ts=d(e3),ta=eh(K,ts,e$),tf=m(e3)||"center",tc=!!e7.hide?.referenceHidden;(0,O.f)(()=>{eC&&eb&&te&&eM(ts)},[eC,eb,te,ts]);let tu=r.useMemo(()=>({position:"absolute",top:e7.arrow?.y,left:e7.arrow?.x}),[e7.arrow]),td=e7.arrow?.centerOffset!==0;return r.useMemo(()=>({positionerStyles:to,arrowStyles:tu,arrowRef:eQ,arrowUncentered:td,side:ta,align:tf,physicalSide:ts,anchorHidden:tc,refs:e5,context:e9,isPositioned:te,update:e8}),[to,tu,eQ,td,ta,tf,ts,tc,e5,e9,te,e8])}],29365)},89579,e=>{var t=e.i(5005),n=e.i(52245),r=e.i(15982);e.s(["f",0,function(e,i,{styles:o,transitionStatus:l,props:s,refs:a,hidden:f,inert:c=!1}){let u={...o};return c&&(u.pointerEvents="none"),(0,n.f)("div",e,{state:i,ref:a,props:[{role:"presentation",hidden:f,style:u},(0,r.f)(l),s],stateAttributesMapping:t.E})}])}])})();