@ailog/cli 0.1.4 → 0.2.2
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.
- package/dist/bin/cli.js +4 -3
- package/dist/standalone/.next/BUILD_ID +1 -1
- package/dist/standalone/.next/build-manifest.json +2 -2
- package/dist/standalone/.next/prerender-manifest.json +3 -3
- package/dist/standalone/.next/server/app/_global-error.html +2 -2
- package/dist/standalone/.next/server/app/_global-error.rsc +1 -1
- package/dist/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/_not-found.html +1 -1
- package/dist/standalone/.next/server/app/_not-found.rsc +7 -7
- package/dist/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +7 -7
- package/dist/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
- package/dist/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/.next/server/app/api/[[...route]]/route.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/apps/[appId]/page.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/apps/[appId]/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/apps/[appId]/settings/page.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/apps/[appId]/settings/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/apps/[appId]/threads/[threadId]/page.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/apps/[appId]/threads/[threadId]/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/index.html +1 -1
- package/dist/standalone/.next/server/app/index.rsc +8 -8
- package/dist/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/dist/standalone/.next/server/app/index.segments/_full.segment.rsc +8 -8
- package/dist/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/index.segments/_index.segment.rsc +7 -7
- package/dist/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/.next/server/app/page.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__a0f47697._.js +2 -2
- package/dist/standalone/.next/server/chunks/ssr/{_d7dc3d79._.js → _289820d0._.js} +2 -2
- package/dist/standalone/.next/server/chunks/ssr/_70dfbe56._.js +3 -0
- package/dist/standalone/.next/server/chunks/ssr/_8c0bfb07._.js +3 -0
- package/dist/standalone/.next/server/chunks/ssr/{_ebd188d6._.js → _e5c457a7._.js} +2 -2
- package/dist/standalone/.next/server/chunks/ssr/_fce9eb14._.js +1 -1
- package/dist/standalone/.next/server/chunks/ssr/apps_web_app_apps_[appId]_threads_[threadId]_page_tsx_7dd7d764._.js +37 -1
- package/dist/standalone/.next/server/chunks/ssr/apps_web_app_page_tsx_66bf978b._.js +1 -1
- package/dist/standalone/.next/server/chunks/ssr/apps_web_components_ui_9822aec4._.js +3 -0
- package/dist/standalone/.next/server/chunks/ssr/{_877d9b8d._.js → apps_web_components_ui_alert-dialog_tsx_9188904e._.js} +2 -2
- package/dist/standalone/.next/server/chunks/ssr/apps_web_components_ui_cbe5b2b9._.js +3 -0
- package/dist/standalone/.next/server/chunks/ssr/{apps_web_components_ui_15d0ea42._.js → apps_web_components_ui_cc5b288d._.js} +2 -2
- package/dist/standalone/.next/server/chunks/ssr/node_modules__bun_2e4b1ed0._.js +3 -0
- package/dist/standalone/.next/server/chunks/ssr/node_modules__bun_4bd60410._.js +1 -1
- package/dist/standalone/.next/server/chunks/ssr/node_modules__bun_d2520564._.js +3 -0
- package/dist/standalone/.next/server/pages/404.html +1 -1
- package/dist/standalone/.next/server/pages/500.html +2 -2
- package/dist/standalone/.next/server/server-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/server-reference-manifest.json +1 -1
- package/dist/standalone/.next/static/chunks/5521918d58602ba4.css +4 -0
- package/dist/standalone/.next/static/chunks/61ce30fe62669a20.js +1 -0
- package/dist/standalone/.next/static/chunks/6ee1158d12a0c765.js +1 -0
- package/dist/standalone/.next/static/chunks/8bd29684c211a1e1.js +37 -0
- package/dist/standalone/.next/static/chunks/8ef339e3fd7a82de.js +1 -0
- package/dist/standalone/.next/static/chunks/{f9feac1b69b1185e.js → b337946fdc3c17b3.js} +1 -1
- package/dist/standalone/.next/static/chunks/{6b7a6f475b2cb221.js → b46c6c394477214a.js} +1 -1
- package/dist/standalone/.next/static/chunks/bbf59b867827b224.js +7 -0
- package/dist/standalone/.next/static/chunks/c416de6f3efbbe15.js +7 -0
- package/dist/standalone/.next/static/chunks/d70eda393c3966c3.js +1 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +3 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +238 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +224 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +283 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +274 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +24 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +3 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +238 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +224 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +283 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +274 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +24 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +3 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +238 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +224 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +283 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +274 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +24 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +3 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +238 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +224 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +283 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +274 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +24 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +3 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +238 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +224 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +283 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +274 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +24 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +66 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +34 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +65 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +34 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +65 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +34 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +65 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +34 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +65 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +34 -0
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +4 -4
- package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +4 -3
- package/dist/standalone/dist/standalone/dist/standalone/package.json +4 -3
- package/dist/standalone/dist/standalone/package.json +4 -3
- package/dist/standalone/package.json +4 -3
- package/package.json +4 -3
- package/dist/standalone/.next/server/chunks/ssr/_1b351fd8._.js +0 -3
- package/dist/standalone/.next/server/chunks/ssr/_82db472c._.js +0 -3
- package/dist/standalone/.next/server/chunks/ssr/_ba4460f0._.js +0 -3
- package/dist/standalone/.next/server/chunks/ssr/apps_web_components_ui_1626551a._.js +0 -3
- package/dist/standalone/.next/static/chunks/0a3222f50a8ba36d.js +0 -1
- package/dist/standalone/.next/static/chunks/0d93d2e4091cb1d5.js +0 -1
- package/dist/standalone/.next/static/chunks/15389c2c0efe0c58.js +0 -7
- package/dist/standalone/.next/static/chunks/46a444f4110b5209.js +0 -7
- package/dist/standalone/.next/static/chunks/540b3a38f32c78d0.js +0 -1
- package/dist/standalone/.next/static/chunks/5966736c7dbc65d2.js +0 -1
- package/dist/standalone/.next/static/chunks/b7ea835c5478b248.js +0 -1
- package/dist/standalone/.next/static/chunks/e4876b96721a69ca.css +0 -4
- /package/dist/standalone/.next/static/{HzNPAAEgDfSt2GDQklLOp → XXfaoTsbOv2IAuUUXz1R4}/_buildManifest.js +0 -0
- /package/dist/standalone/.next/static/{HzNPAAEgDfSt2GDQklLOp → XXfaoTsbOv2IAuUUXz1R4}/_clientMiddlewareManifest.json +0 -0
- /package/dist/standalone/.next/static/{HzNPAAEgDfSt2GDQklLOp → XXfaoTsbOv2IAuUUXz1R4}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7064,40864,4422,39717,e=>{"use strict";var t=e.i(21628),n=e.i(52236);function r({className:e,...r}){return(0,t.jsx)("table",{"data-slot":"table",className:(0,n.cn)("w-full caption-bottom text-xs",e),...r})}function o({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,n.cn)("[&_tr]:border-b",e),...r})}function i({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,n.cn)("[&_tr:last-child]:border-0",e),...r})}function l({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,n.cn)("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...r})}function a({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,n.cn)("bg-background text-foreground sticky top-0 z-10 h-10 border-b px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})}function s({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,n.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})}e.s(["Table",()=>r,"TableBody",()=>i,"TableCell",()=>s,"TableHead",()=>a,"TableHeader",()=>o,"TableRow",()=>l],7064);var c=e.i(38652),u=e.i(19836),f=e.i(52410),d=e.i(2890),p=e.i(95668),h=e.i(37928);let g=["top","right","bottom","left"],m=Math.min,x=Math.max,y=Math.round,w=Math.floor,v=e=>({x:e,y:e}),b={left:"right",right:"left",bottom:"top",top:"bottom"},T={start:"end",end:"start"};function R(e,t){return"function"==typeof e?e(t):e}function C(e){return e.split("-")[0]}function E(e){return e.split("-")[1]}function A(e){return"x"===e?"y":"x"}function P(e){return"y"===e?"height":"width"}let L=new Set(["top","bottom"]);function S(e){return L.has(C(e))?"y":"x"}function j(e){return e.replace(/start|end/g,e=>T[e])}let k=["left","right"],O=["right","left"],D=["top","bottom"],H=["bottom","top"];function N(e){return e.replace(/left|right|bottom|top/g,e=>b[e])}function M(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function z(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function F(e,t,n){let r,{reference:o,floating:i}=e,l=S(t),a=A(S(t)),s=P(a),c=C(t),u="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(E(t)){case"start":r[a]-=p*(n&&u?-1:1);break;case"end":r[a]+=p*(n&&u?-1:1)}return r}let B=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=F(c,r,s),d=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:i,fn:g}=a[n],{x:m,y:x,data:y,reset:w}=await g({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});u=null!=m?m:u,f=null!=x?x:f,p={...p,[i]:{...p[i],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:u,y:f}=F(c,d,s)),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}};async function _(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=R(t,e),h=M(p),g=a[d?"floating"===f?"reference":"floating":f],m=z(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),x="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},v=z(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:y,strategy:s}):x);return{top:(m.top-v.top+h.top)/w.y,bottom:(v.bottom-m.bottom+h.bottom)/w.y,left:(m.left-v.left+h.left)/w.x,right:(v.right-m.right+h.right)/w.x}}function W(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $(e){return g.some(t=>e[t]>=0)}let I=new Set(["left","top"]);async function V(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=C(n),a=E(n),s="y"===S(n),c=I.has(l)?-1:1,u=i&&s?-1:1,f=R(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}function Y(){return"undefined"!=typeof window}function X(e){return U(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function K(e){var t;return null==(t=(U(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function U(e){return!!Y()&&(e instanceof Node||e instanceof q(e).Node)}function G(e){return!!Y()&&(e instanceof Element||e instanceof q(e).Element)}function J(e){return!!Y()&&(e instanceof HTMLElement||e instanceof q(e).HTMLElement)}function Q(e){return!!Y()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof q(e).ShadowRoot)}let Z=new Set(["inline","contents"]);function ee(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ef(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Z.has(o)}let et=new Set(["table","td","th"]),en=[":popover-open",":modal"];function er(e){return en.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eo=["transform","translate","scale","rotate","perspective"],ei=["transform","translate","scale","rotate","perspective","filter"],el=["paint","layout","strict","content"];function ea(e){let t=es(),n=G(e)?ef(e):e;return eo.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ei.some(e=>(n.willChange||"").includes(e))||el.some(e=>(n.contain||"").includes(e))}function es(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let ec=new Set(["html","body","#document"]);function eu(e){return ec.has(X(e))}function ef(e){return q(e).getComputedStyle(e)}function ed(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ep(e){if("html"===X(e))return e;let t=e.assignedSlot||e.parentNode||Q(e)&&e.host||K(e);return Q(t)?t.host:t}function eh(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ep(t);return eu(n)?t.ownerDocument?t.ownerDocument.body:t.body:J(n)&&ee(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=q(o);if(i){let e=eg(l);return t.concat(l,l.visualViewport||[],ee(o)?o:[],e&&n?eh(e):[])}return t.concat(o,eh(o,[],n))}function eg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function em(e){let t=ef(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=J(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=y(n)!==i||y(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ex(e){return G(e)?e:e.contextElement}function ey(e){let t=ex(e);if(!J(t))return v(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=em(t),l=(i?y(n.width):n.width)/r,a=(i?y(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ew=v(0);function ev(e){let t=q(e);return es()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ew}function eb(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ex(e),a=v(1);t&&(r?G(r)&&(a=ey(r)):a=ey(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===q(l))&&o)?ev(l):v(0),c=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l){let e=q(l),t=r&&G(r)?q(r):r,n=e,o=eg(n);for(;o&&r&&t!==n;){let e=ey(o),t=o.getBoundingClientRect(),r=ef(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,f*=e.x,d*=e.y,c+=i,u+=l,o=eg(n=q(o))}}return z({width:f,height:d,x:c,y:u})}function eT(e,t){let n=ed(e).scrollLeft;return t?t.left+n:eb(K(e)).left+n}function eR(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eT(e,n),y:n.top+t.scrollTop}}let eC=new Set(["absolute","fixed"]);function eE(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=q(e),r=K(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=es();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}let c=eT(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t){let t,n,i,l,a,s,c;r=K(e),t=K(r),n=ed(r),i=r.ownerDocument.body,l=x(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=x(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+eT(r),c=-n.scrollTop,"rtl"===ef(i).direction&&(s+=x(t.clientWidth,i.clientWidth)-l),o={width:l,height:a,x:s,y:c}}else if(G(t)){let e,r,i,l,a,s;r=(e=eb(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=J(t)?ey(t):v(1),a=t.clientWidth*l.x,s=t.clientHeight*l.y,o={width:a,height:s,x:i*l.x,y:r*l.y}}else{let n=ev(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return z(o)}function eA(e){return"static"===ef(e).position}function eP(e,t){if(!J(e)||"fixed"===ef(e).position)return null;if(t)return t(e);let n=e.offsetParent;return K(e)===n&&(n=n.ownerDocument.body),n}function eL(e,t){var n;let r=q(e);if(er(e))return r;if(!J(e)){let t=ep(e);for(;t&&!eu(t);){if(G(t)&&!eA(t))return t;t=ep(t)}return r}let o=eP(e,t);for(;o&&(n=o,et.has(X(n)))&&eA(o);)o=eP(o,t);return o&&eu(o)&&eA(o)&&!ea(o)?r:o||function(e){let t=ep(e);for(;J(t)&&!eu(t);){if(ea(t))return t;if(er(t))break;t=ep(t)}return null}(e)||r}let eS=async function(e){let t=this.getOffsetParent||eL,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=J(t),o=K(t),i="fixed"===n,l=eb(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=v(0);if(r||!r&&!i)if(("body"!==X(t)||ee(o))&&(a=ed(t)),r){let e=eb(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=eT(o));i&&!r&&o&&(s.x=eT(o));let c=!o||r||i?v(0):eR(o,a);return{x:l.left+a.scrollLeft-s.x-c.x,y:l.top+a.scrollTop-s.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}}},ej={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=K(r),a=!!t&&er(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=v(1),u=v(0),f=J(r);if((f||!f&&!i)&&(("body"!==X(r)||ee(l))&&(s=ed(r)),J(r))){let e=eb(r);c=ey(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let d=!l||f||i?v(0):eR(l,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-s.scrollTop*c.y+u.y+d.y}},getDocumentElement:K,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?er(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eh(e,[],!1).filter(e=>G(e)&&"body"!==X(e)),o=null,i="fixed"===ef(e).position,l=i?ep(e):e;for(;G(l)&&!eu(l);){let t=ef(l),n=ea(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&eC.has(o.position)||ee(l)&&!n&&function e(t,n){let r=ep(t);return!(r===n||!G(r)||eu(r))&&("fixed"===ef(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=ep(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=eE(t,n,o);return e.top=x(r.top,e.top),e.right=m(r.right,e.right),e.bottom=m(r.bottom,e.bottom),e.left=x(r.left,e.left),e},eE(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eL,getElementRects:eS,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=em(e);return{width:t,height:n}},getScale:ey,isElement:G,isRTL:function(e){return"rtl"===ef(e).direction}};function ek(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eO=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=R(e,t)||{};if(null==c)return{};let f=M(u),d={x:n,y:r},p=A(S(o)),h=P(p),g=await l.getDimensions(c),y="y"===p,w=y?"clientHeight":"clientWidth",v=i.reference[h]+i.reference[p]-d[p]-i.floating[h],b=d[p]-i.reference[p],T=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),C=T?T[w]:0;C&&await (null==l.isElement?void 0:l.isElement(T))||(C=a.floating[w]||i.floating[h]);let L=C/2-g[h]/2-1,j=m(f[y?"top":"left"],L),k=m(f[y?"bottom":"right"],L),O=C-g[h]-k,D=C/2-g[h]/2+(v/2-b/2),H=x(j,m(D,O)),N=!s.arrow&&null!=E(o)&&D!==H&&i.reference[h]/2-(D<j?j:k)-g[h]/2<0,z=N?D<j?D-j:D-O:0;return{[p]:d[p]+z,data:{[p]:H,centerOffset:D-H-z,...N&&{alignmentOffset:z}},reset:N}}});var eD=e.i(23825),eH="undefined"!=typeof document?c.useLayoutEffect:function(){};function eN(e,t){let n,r,o;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=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eN(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eM(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ez(e,t){let n=eM(e);return Math.round(t*n)/n}function eF(e){let t=c.useRef(e);return eH(()=>{t.current=e}),t}var eB=e.i(27045),e_=c.forwardRef((e,n)=>{let{children:r,width:o=10,height:i=5,...l}=e;return(0,t.jsx)(eB.Primitive.svg,{...l,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,t.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e_.displayName="Arrow";var eW=e.i(49119),e$=e.i(35015);function eI(e){let[t,n]=c.useState(void 0);return(0,e$.useLayoutEffect)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}e.s(["useSize",()=>eI],40864);var eV="Popper",[eY,eX]=(0,d.createContextScope)(eV),[eq,eK]=eY(eV),eU=e=>{let{__scopePopper:n,children:r}=e,[o,i]=c.useState(null);return(0,t.jsx)(eq,{scope:n,anchor:o,onAnchorChange:i,children:r})};eU.displayName=eV;var eG="PopperAnchor",eJ=c.forwardRef((e,n)=>{let{__scopePopper:r,virtualRef:o,...i}=e,l=eK(eG,r),a=c.useRef(null),s=(0,f.useComposedRefs)(n,a),u=c.useRef(null);return c.useEffect(()=>{let e=u.current;u.current=o?.current||a.current,e!==u.current&&l.onAnchorChange(u.current)}),o?null:(0,t.jsx)(eB.Primitive.div,{...i,ref:s})});eJ.displayName=eG;var eQ="PopperContent",[eZ,e0]=eY(eQ),e1=c.forwardRef((e,n)=>{var r,o,i,l,a,s,u,d,p,h,g,y,v;let{__scopePopper:b,side:T="bottom",sideOffset:L=0,align:M="center",alignOffset:z=0,arrowPadding:F=0,avoidCollisions:Y=!0,collisionBoundary:X=[],collisionPadding:q=0,sticky:U="partial",hideWhenDetached:G=!1,updatePositionStrategy:J="optimized",onPlaced:Q,...Z}=e,ee=eK(eQ,b),[et,en]=c.useState(null),er=(0,f.useComposedRefs)(n,e=>en(e)),[eo,ei]=c.useState(null),el=eI(eo),ea=el?.width??0,es=el?.height??0,ec="number"==typeof q?q:{top:0,right:0,bottom:0,left:0,...q},eu=Array.isArray(X)?X:[X],ef=eu.length>0,ed={padding:ec,boundary:eu.filter(e9),altBoundary:ef},{refs:ep,floatingStyles:eg,placement:em,isPositioned:ey,middlewareData:ew}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:s,open:u}=e,[f,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=c.useState(r);eN(p,r)||h(r);let[g,m]=c.useState(null),[x,y]=c.useState(null),w=c.useCallback(e=>{e!==R.current&&(R.current=e,m(e))},[]),v=c.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),b=i||g,T=l||x,R=c.useRef(null),C=c.useRef(null),E=c.useRef(f),A=null!=s,P=eF(s),L=eF(o),S=eF(u),j=c.useCallback(()=>{var e,r;let o,i,l;if(!R.current||!C.current)return;let a={placement:t,strategy:n,middleware:p};L.current&&(a.platform=L.current),(e=R.current,r=C.current,o=new Map,l={...(i={platform:ej,...a}).platform,_c:o},B(e,r,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==S.current};k.current&&!eN(E.current,t)&&(E.current=t,eD.flushSync(()=>{d(t)}))})},[p,t,n,L,S]);eH(()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let k=c.useRef(!1);eH(()=>(k.current=!0,()=>{k.current=!1}),[]),eH(()=>{if(b&&(R.current=b),T&&(C.current=T),b&&T){if(P.current)return P.current(b,T,j);j()}},[b,T,j,P,A]);let O=c.useMemo(()=>({reference:R,floating:C,setReference:w,setFloating:v}),[w,v]),D=c.useMemo(()=>({reference:b,floating:T}),[b,T]),H=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=ez(D.floating,f.x),r=ez(D.floating,f.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...eM(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,D.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:j,refs:O,elements:D,floatingStyles:H}),[f,j,O,D,H])}({strategy:"fixed",placement:T+("center"!==M?"-"+M:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=ex(e),f=i||l?[...u?eh(u):[],...eh(t)]:[];f.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let d=u&&s?function(e,t){let n,r=null,o=K(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();let c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=c;if(a||t(),!d||!p)return;let h={rootMargin:-w(f)+"px "+-w(o.clientWidth-(u+d))+"px "+-w(o.clientHeight-(f+p))+"px "+-w(u)+"px",threshold:x(0,m(1,s))||1},g=!0;function y(t){let r=t[0].intersectionRatio;if(r!==s){if(!g)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||ek(c,e.getBoundingClientRect())||l(),g=!1}try{r=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,h)}r.observe(e)}(!0),i}(u,n):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let g=c?eb(e):null;return c&&function t(){let r=eb(e);g&&!ek(g,r)&&n(),g=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===J}),elements:{reference:ee.anchor},middleware:[{...{name:"offset",options:o=r={mainAxis:L+es,alignmentAxis:z},async fn(e){var t,n;let{x:r,y:i,placement:l,middlewareData:a}=e,s=await V(e,o);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:l}}}},options:[r,void 0]},Y&&{...{name:"shift",options:a=l={mainAxis:!0,crossAxis:!1,limiter:"partial"===U?{...(i=void 0,{options:i={},fn(e){let{x:t,y:n,placement:r,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=R(i,e),u={x:t,y:n},f=S(r),d=A(f),p=u[d],h=u[f],g=R(a,e),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+m.mainAxis,n=o.reference[d]+o.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var x,y;let e="y"===d?"width":"height",t=I.has(C(r)),n=o.reference[f]-o.floating[e]+(t&&(null==(x=l.offset)?void 0:x[f])||0)+(t?0:m.crossAxis),i=o.reference[f]+o.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[f])||0)-(t?m.crossAxis:0);h<n?h=n:h>i&&(h=i)}return{[d]:p,[f]:h}}}),options:[void 0,void 0]}:void 0,...ed},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=R(a,e),c={x:t,y:n},u=await _(e,s),f=S(C(r)),d=A(f),p=c[d],h=c[f];if(o){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+u[e],r=p-u[t];p=x(n,m(p,r))}if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+u[e],r=h-u[t];h=x(n,m(h,r))}let g=l.fn({...e,[d]:p,[f]:h});return{...g,data:{x:g.x-t,y:g.y-n,enabled:{[d]:o,[f]:i}}}}},options:[l,void 0]},Y&&{...{name:"flip",options:u=s={...ed},async fn(e){var t,n,r,o,i,l,a,s;let c,f,d,{placement:p,middlewareData:h,rects:g,initialPlacement:m,platform:x,elements:y}=e,{mainAxis:w=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:M=!0,...z}=R(u,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let F=C(p),B=S(m),W=C(m)===m,$=await (null==x.isRTL?void 0:x.isRTL(y.floating)),I=b||(W||!M?[N(m)]:(c=N(m),[j(m),c,j(c)])),V="none"!==L;!b&&V&&I.push(...(f=E(m),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?O:k;return t?k:O;case"left":case"right":return t?D:H;default:return[]}}(C(m),"start"===L,$),f&&(d=d.map(e=>e+"-"+f),M&&(d=d.concat(d.map(j)))),d));let Y=[m,...I],X=await _(e,z),q=[],K=(null==(n=h.flip)?void 0:n.overflows)||[];if(w&&q.push(X[F]),v){let e,t,n,r,o=(l=p,a=g,void 0===(s=$)&&(s=!1),e=E(l),n=P(t=A(S(l))),r="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=N(r)),[r,N(r)]);q.push(X[o[0]],X[o[1]])}if(K=[...K,{placement:p,overflows:q}],!q.every(e=>e<=0)){let e=((null==(r=h.flip)?void 0:r.index)||0)+1,t=Y[e];if(t&&("alignment"!==v||B===S(t)||K.every(e=>S(e.placement)!==B||e.overflows[0]>0)))return{data:{index:e,overflows:K},reset:{placement:t}};let n=null==(o=K.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(T){case"bestFit":{let e=null==(i=K.filter(e=>{if(V){let t=S(e.placement);return t===B||"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:i[0];e&&(n=e);break}case"initialPlacement":n=m}if(p!==n)return{reset:{placement:n}}}return{}}},options:[s,void 0]},{...{name:"size",options:p=d={...ed,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){var t,n;let r,o,{placement:i,rects:l,platform:a,elements:s}=e,{apply:c=()=>{},...u}=R(p,e),f=await _(e,u),d=C(i),h=E(i),g="y"===S(i),{width:y,height:w}=l.floating;"top"===d||"bottom"===d?(r=d,o=h===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(o=d,r="end"===h?"top":"bottom");let v=w-f.top-f.bottom,b=y-f.left-f.right,T=m(w-f[r],v),A=m(y-f[o],b),P=!e.middlewareData.shift,L=T,j=A;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(j=b),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(L=v),P&&!h){let e=x(f.left,0),t=x(f.right,0),n=x(f.top,0),r=x(f.bottom,0);g?j=y-2*(0!==e||0!==t?e+t:x(f.left,f.right)):L=w-2*(0!==n||0!==r?n+r:x(f.top,f.bottom))}await c({...e,availableWidth:j,availableHeight:L});let k=await a.getDimensions(s.floating);return y!==k.width||w!==k.height?{reset:{rects:!0}}:{}}},options:[d,void 0]},eo&&{...{name:"arrow",options:g=h={element:eo,padding:F},fn(e){let{element:t,padding:n}="function"==typeof g?g(e):g;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eO({element:t.current,padding:n}).fn(e):{}:t?eO({element:t,padding:n}).fn(e):{}}},options:[h,void 0]},e4({arrowWidth:ea,arrowHeight:es}),G&&{...{name:"hide",options:v=y={strategy:"referenceHidden",...ed},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=R(v,e);switch(n){case"referenceHidden":{let n=W(await _(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:$(n)}}}case"escaped":{let n=W(await _(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:$(n)}}}default:return{}}}},options:[y,void 0]}]}),[ev,eT]=e3(em),eR=(0,eW.useCallbackRef)(Q);(0,e$.useLayoutEffect)(()=>{ey&&eR?.()},[ey,eR]);let eC=ew.arrow?.x,eE=ew.arrow?.y,eA=ew.arrow?.centerOffset!==0,[eP,eL]=c.useState();return(0,e$.useLayoutEffect)(()=>{et&&eL(window.getComputedStyle(et).zIndex)},[et]),(0,t.jsx)("div",{ref:ep.setFloating,"data-radix-popper-content-wrapper":"",style:{...eg,transform:ey?eg.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eP,"--radix-popper-transform-origin":[ew.transformOrigin?.x,ew.transformOrigin?.y].join(" "),...ew.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,t.jsx)(eZ,{scope:b,placedSide:ev,onArrowChange:ei,arrowX:eC,arrowY:eE,shouldHideArrow:eA,children:(0,t.jsx)(eB.Primitive.div,{"data-side":ev,"data-align":eT,...Z,ref:er,style:{...Z.style,animation:ey?void 0:"none"}})})})});e1.displayName=eQ;var e2="PopperArrow",e5={top:"bottom",right:"left",bottom:"top",left:"right"},e6=c.forwardRef(function(e,n){let{__scopePopper:r,...o}=e,i=e0(e2,r),l=e5[i.placedSide];return(0,t.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,t.jsx)(e_,{...o,ref:n,style:{...o.style,display:"block"}})})});function e9(e){return null!==e}e6.displayName=e2;var e4=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,c]=e3(n),u={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2,p="",h="";return"bottom"===s?(p=i?u:`${f}px`,h=`${-a}px`):"top"===s?(p=i?u:`${f}px`,h=`${r.floating.height+a}px`):"right"===s?(p=`${-a}px`,h=i?u:`${d}px`):"left"===s&&(p=`${r.floating.width+a}px`,h=i?u:`${d}px`),{data:{x:p,y:h}}}});function e3(e){let[t,n="center"]=e.split("-");return[t,n]}e.s(["Anchor",()=>eJ,"Arrow",()=>e6,"Content",()=>e1,"Root",()=>eU,"createPopperScope",()=>eX],4422);var e8=e.i(27980),e7=e.i(57961),te=e.i(78603),tt=e.i(51606),tn=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tr=c.forwardRef((e,n)=>(0,t.jsx)(eB.Primitive.span,{...e,ref:n,style:{...tn,...e.style}}));tr.displayName="VisuallyHidden";var[to,ti]=(0,d.createContextScope)("Tooltip",[eX]),tl=eX(),ta="TooltipProvider",ts="tooltip.open",[tc,tu]=to(ta),tf=e=>{let{__scopeTooltip:n,delayDuration:r=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:l}=e,a=c.useRef(!0),s=c.useRef(!1),u=c.useRef(0);return c.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,t.jsx)(tc,{scope:n,isOpenDelayedRef:a,delayDuration:r,onOpen:c.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:s,onPointerInTransitChange:c.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:l})};tf.displayName=ta;var td="Tooltip",[tp,th]=to(td),tg=e=>{let{__scopeTooltip:n,children:r,open:o,defaultOpen:i,onOpenChange:l,disableHoverableContent:a,delayDuration:s}=e,u=tu(td,e.__scopeTooltip),f=tl(n),[d,p]=c.useState(null),g=(0,h.useId)(),m=c.useRef(0),x=a??u.disableHoverableContent,y=s??u.delayDuration,w=c.useRef(!1),[v,b]=(0,tt.useControllableState)({prop:o,defaultProp:i??!1,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(ts))):u.onClose(),l?.(e)},caller:td}),T=c.useMemo(()=>v?w.current?"delayed-open":"instant-open":"closed",[v]),R=c.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w.current=!1,b(!0)},[b]),C=c.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),E=c.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{w.current=!0,b(!0),m.current=0},y)},[y,b]);return c.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,t.jsx)(eU,{...f,children:(0,t.jsx)(tp,{scope:n,contentId:g,open:v,stateAttribute:T,trigger:d,onTriggerChange:p,onTriggerEnter:c.useCallback(()=>{u.isOpenDelayedRef.current?E():R()},[u.isOpenDelayedRef,E,R]),onTriggerLeave:c.useCallback(()=>{x?C():(window.clearTimeout(m.current),m.current=0)},[C,x]),onOpen:R,onClose:C,disableHoverableContent:x,children:r})})};tg.displayName=td;var tm="TooltipTrigger",tx=c.forwardRef((e,n)=>{let{__scopeTooltip:r,...o}=e,i=th(tm,r),l=tu(tm,r),a=tl(r),s=c.useRef(null),d=(0,f.useComposedRefs)(n,s,i.onTriggerChange),p=c.useRef(!1),h=c.useRef(!1),g=c.useCallback(()=>p.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,t.jsx)(eJ,{asChild:!0,...a,children:(0,t.jsx)(eB.Primitive.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:d,onPointerMove:(0,u.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(h.current||l.isPointerInTransitRef.current||(i.onTriggerEnter(),h.current=!0))}),onPointerLeave:(0,u.composeEventHandlers)(e.onPointerLeave,()=>{i.onTriggerLeave(),h.current=!1}),onPointerDown:(0,u.composeEventHandlers)(e.onPointerDown,()=>{i.open&&i.onClose(),p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,u.composeEventHandlers)(e.onFocus,()=>{p.current||i.onOpen()}),onBlur:(0,u.composeEventHandlers)(e.onBlur,i.onClose),onClick:(0,u.composeEventHandlers)(e.onClick,i.onClose)})})});tx.displayName=tm;var ty="TooltipPortal",[tw,tv]=to(ty,{forceMount:void 0}),tb=e=>{let{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,l=th(ty,n);return(0,t.jsx)(tw,{scope:n,forceMount:r,children:(0,t.jsx)(e7.Presence,{present:r||l.open,children:(0,t.jsx)(e8.Portal,{asChild:!0,container:i,children:o})})})};tb.displayName=ty;var tT="TooltipContent",tR=c.forwardRef((e,n)=>{let r=tv(tT,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...l}=e,a=th(tT,e.__scopeTooltip);return(0,t.jsx)(e7.Presence,{present:o||a.open,children:a.disableHoverableContent?(0,t.jsx)(tL,{side:i,...l,ref:n}):(0,t.jsx)(tC,{side:i,...l,ref:n})})}),tC=c.forwardRef((e,n)=>{let r=th(tT,e.__scopeTooltip),o=tu(tT,e.__scopeTooltip),i=c.useRef(null),l=(0,f.useComposedRefs)(n,i),[a,s]=c.useState(null),{trigger:u,onClose:d}=r,p=i.current,{onPointerInTransitChange:h}=o,g=c.useCallback(()=>{s(null),h(!1)},[h]),m=c.useCallback((e,t)=>{let n,r=e.currentTarget,o={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(o,r.getBoundingClientRect());s(((n=[...function(e,t,n=5){let r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(o,i),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(n))),h(!0)},[h]);return c.useEffect(()=>()=>g(),[g]),c.useEffect(()=>{if(u&&p){let e=e=>m(e,p),t=e=>m(e,u);return u.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[u,p,m,g]),c.useEffect(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=u?.contains(t)||p?.contains(t),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],s=l.x,c=l.y,u=a.x,f=a.y;c>r!=f>r&&n<(u-s)*(r-c)/(f-c)+s&&(o=!o)}return o}(n,a);r?g():o&&(g(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,p,a,d,g]),(0,t.jsx)(tL,{...e,ref:l})}),[tE,tA]=to(td,{isInside:!1}),tP=(0,te.createSlottable)("TooltipContent"),tL=c.forwardRef((e,n)=>{let{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:a,...s}=e,u=th(tT,r),f=tl(r),{onClose:d}=u;return c.useEffect(()=>(document.addEventListener(ts,d),()=>document.removeEventListener(ts,d)),[d]),c.useEffect(()=>{if(u.trigger){let e=e=>{let t=e.target;t?.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,d]),(0,t.jsx)(p.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,t.jsxs)(e1,{"data-state":u.stateAttribute,...f,...s,ref:n,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,t.jsx)(tP,{children:o}),(0,t.jsx)(tE,{scope:r,isInside:!0,children:(0,t.jsx)(tr,{id:u.contentId,role:"tooltip",children:i||o})})]})})});tR.displayName=tT;var tS="TooltipArrow",tj=c.forwardRef((e,n)=>{let{__scopeTooltip:r,...o}=e,i=tl(r);return tA(tS,r).isInside?null:(0,t.jsx)(e6,{...i,...o,ref:n})});tj.displayName=tS,e.s(["Arrow",()=>tj,"Content",()=>tR,"Portal",()=>tb,"Provider",()=>tf,"Root",()=>tg,"Tooltip",()=>tg,"TooltipArrow",()=>tj,"TooltipContent",()=>tR,"TooltipPortal",()=>tb,"TooltipProvider",()=>tf,"TooltipTrigger",()=>tx,"Trigger",()=>tx,"createTooltipScope",()=>ti],62893);var tk=e.i(62893),tk=tk;function tO({delayDuration:e=0,...n}){return(0,t.jsx)(tk.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...n})}function tD({...e}){return(0,t.jsx)(tO,{children:(0,t.jsx)(tk.Root,{"data-slot":"tooltip",...e})})}function tH({...e}){return(0,t.jsx)(tk.Trigger,{"data-slot":"tooltip-trigger",...e})}function tN({className:e,sideOffset:r=0,children:o,...i}){return(0,t.jsx)(tk.Portal,{children:(0,t.jsxs)(tk.Content,{"data-slot":"tooltip-content",sideOffset:r,className:(0,n.cn)("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-foreground text-background z-50 w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) rounded-none px-3 py-1.5 text-xs",e),...i,children:[o,(0,t.jsx)(tk.Arrow,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-none"})]})})}e.s(["Tooltip",()=>tD,"TooltipContent",()=>tN,"TooltipTrigger",()=>tH],39717)},24911,25466,e=>{"use strict";var t=e.i(21628),n=e.i(52236);function r({className:e,type:r,...o}){return(0,t.jsx)("input",{type:r,"data-slot":"input",className:(0,n.cn)("dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 file:text-foreground placeholder:text-muted-foreground h-8 w-full min-w-0 rounded-none border bg-transparent px-2.5 py-1 text-xs transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs file:font-medium focus-visible:ring-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-1 md:text-xs",e),...o})}e.s(["Input",()=>r],24911);var o=e.i(38652),i=e.i(27045),l=o.forwardRef((e,n)=>(0,t.jsx)(i.Primitive.label,{...e,ref:n,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label",e.s(["Label",()=>l,"Root",()=>l],96021);var a=e.i(96021),a=a;function s({className:e,...r}){return(0,t.jsx)(a.Root,{"data-slot":"label",className:(0,n.cn)("flex items-center gap-2 text-xs leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}e.s(["Label",()=>s],25466)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7064,40864,4422,39717,e=>{"use strict";var t=e.i(21628),n=e.i(52236);function r({className:e,...r}){return(0,t.jsx)("table",{"data-slot":"table",className:(0,n.cn)("w-full caption-bottom text-xs",e),...r})}function o({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,n.cn)("[&_tr]:border-b",e),...r})}function i({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,n.cn)("[&_tr:last-child]:border-0",e),...r})}function l({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,n.cn)("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...r})}function a({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,n.cn)("bg-background text-foreground sticky top-0 z-10 h-10 border-b px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})}function s({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,n.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})}e.s(["Table",()=>r,"TableBody",()=>i,"TableCell",()=>s,"TableHead",()=>a,"TableHeader",()=>o,"TableRow",()=>l],7064);var c=e.i(38652),u=e.i(19836),f=e.i(52410),d=e.i(2890),p=e.i(95668),h=e.i(37928);let m=["top","right","bottom","left"],g=Math.min,x=Math.max,y=Math.round,w=Math.floor,v=e=>({x:e,y:e}),b={left:"right",right:"left",bottom:"top",top:"bottom"},T={start:"end",end:"start"};function R(e,t){return"function"==typeof e?e(t):e}function C(e){return e.split("-")[0]}function E(e){return e.split("-")[1]}function A(e){return"x"===e?"y":"x"}function P(e){return"y"===e?"height":"width"}let L=new Set(["top","bottom"]);function S(e){return L.has(C(e))?"y":"x"}function j(e){return e.replace(/start|end/g,e=>T[e])}let k=["left","right"],O=["right","left"],D=["top","bottom"],H=["bottom","top"];function M(e){return e.replace(/left|right|bottom|top/g,e=>b[e])}function N(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function z(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function F(e,t,n){let r,{reference:o,floating:i}=e,l=S(t),a=A(S(t)),s=P(a),c=C(t),u="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(E(t)){case"start":r[a]-=p*(n&&u?-1:1);break;case"end":r[a]+=p*(n&&u?-1:1)}return r}let B=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=F(c,r,s),d=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:i,fn:m}=a[n],{x:g,y:x,data:y,reset:w}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});u=null!=g?g:u,f=null!=x?x:f,p={...p,[i]:{...p[i],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:u,y:f}=F(c,d,s)),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}};async function _(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=R(t,e),h=N(p),m=a[d?"floating"===f?"reference":"floating":f],g=z(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),x="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},v=z(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:y,strategy:s}):x);return{top:(g.top-v.top+h.top)/w.y,bottom:(v.bottom-g.bottom+h.bottom)/w.y,left:(g.left-v.left+h.left)/w.x,right:(v.right-g.right+h.right)/w.x}}function W(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $(e){return m.some(t=>e[t]>=0)}let I=new Set(["left","top"]);async function V(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=C(n),a=E(n),s="y"===S(n),c=I.has(l)?-1:1,u=i&&s?-1:1,f=R(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}function Y(){return"undefined"!=typeof window}function X(e){return U(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function K(e){var t;return null==(t=(U(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function U(e){return!!Y()&&(e instanceof Node||e instanceof q(e).Node)}function G(e){return!!Y()&&(e instanceof Element||e instanceof q(e).Element)}function J(e){return!!Y()&&(e instanceof HTMLElement||e instanceof q(e).HTMLElement)}function Q(e){return!!Y()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof q(e).ShadowRoot)}let Z=new Set(["inline","contents"]);function ee(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ef(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Z.has(o)}let et=new Set(["table","td","th"]),en=[":popover-open",":modal"];function er(e){return en.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eo=["transform","translate","scale","rotate","perspective"],ei=["transform","translate","scale","rotate","perspective","filter"],el=["paint","layout","strict","content"];function ea(e){let t=es(),n=G(e)?ef(e):e;return eo.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ei.some(e=>(n.willChange||"").includes(e))||el.some(e=>(n.contain||"").includes(e))}function es(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let ec=new Set(["html","body","#document"]);function eu(e){return ec.has(X(e))}function ef(e){return q(e).getComputedStyle(e)}function ed(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ep(e){if("html"===X(e))return e;let t=e.assignedSlot||e.parentNode||Q(e)&&e.host||K(e);return Q(t)?t.host:t}function eh(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ep(t);return eu(n)?t.ownerDocument?t.ownerDocument.body:t.body:J(n)&&ee(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=q(o);if(i){let e=em(l);return t.concat(l,l.visualViewport||[],ee(o)?o:[],e&&n?eh(e):[])}return t.concat(o,eh(o,[],n))}function em(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eg(e){let t=ef(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=J(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=y(n)!==i||y(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ex(e){return G(e)?e:e.contextElement}function ey(e){let t=ex(e);if(!J(t))return v(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eg(t),l=(i?y(n.width):n.width)/r,a=(i?y(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ew=v(0);function ev(e){let t=q(e);return es()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ew}function eb(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ex(e),a=v(1);t&&(r?G(r)&&(a=ey(r)):a=ey(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===q(l))&&o)?ev(l):v(0),c=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l){let e=q(l),t=r&&G(r)?q(r):r,n=e,o=em(n);for(;o&&r&&t!==n;){let e=ey(o),t=o.getBoundingClientRect(),r=ef(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,f*=e.x,d*=e.y,c+=i,u+=l,o=em(n=q(o))}}return z({width:f,height:d,x:c,y:u})}function eT(e,t){let n=ed(e).scrollLeft;return t?t.left+n:eb(K(e)).left+n}function eR(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eT(e,n),y:n.top+t.scrollTop}}let eC=new Set(["absolute","fixed"]);function eE(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=q(e),r=K(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=es();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}let c=eT(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t){let t,n,i,l,a,s,c;r=K(e),t=K(r),n=ed(r),i=r.ownerDocument.body,l=x(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=x(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+eT(r),c=-n.scrollTop,"rtl"===ef(i).direction&&(s+=x(t.clientWidth,i.clientWidth)-l),o={width:l,height:a,x:s,y:c}}else if(G(t)){let e,r,i,l,a,s;r=(e=eb(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=J(t)?ey(t):v(1),a=t.clientWidth*l.x,s=t.clientHeight*l.y,o={width:a,height:s,x:i*l.x,y:r*l.y}}else{let n=ev(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return z(o)}function eA(e){return"static"===ef(e).position}function eP(e,t){if(!J(e)||"fixed"===ef(e).position)return null;if(t)return t(e);let n=e.offsetParent;return K(e)===n&&(n=n.ownerDocument.body),n}function eL(e,t){var n;let r=q(e);if(er(e))return r;if(!J(e)){let t=ep(e);for(;t&&!eu(t);){if(G(t)&&!eA(t))return t;t=ep(t)}return r}let o=eP(e,t);for(;o&&(n=o,et.has(X(n)))&&eA(o);)o=eP(o,t);return o&&eu(o)&&eA(o)&&!ea(o)?r:o||function(e){let t=ep(e);for(;J(t)&&!eu(t);){if(ea(t))return t;if(er(t))break;t=ep(t)}return null}(e)||r}let eS=async function(e){let t=this.getOffsetParent||eL,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=J(t),o=K(t),i="fixed"===n,l=eb(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=v(0);if(r||!r&&!i)if(("body"!==X(t)||ee(o))&&(a=ed(t)),r){let e=eb(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=eT(o));i&&!r&&o&&(s.x=eT(o));let c=!o||r||i?v(0):eR(o,a);return{x:l.left+a.scrollLeft-s.x-c.x,y:l.top+a.scrollTop-s.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}}},ej={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=K(r),a=!!t&&er(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=v(1),u=v(0),f=J(r);if((f||!f&&!i)&&(("body"!==X(r)||ee(l))&&(s=ed(r)),J(r))){let e=eb(r);c=ey(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let d=!l||f||i?v(0):eR(l,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-s.scrollTop*c.y+u.y+d.y}},getDocumentElement:K,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?er(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eh(e,[],!1).filter(e=>G(e)&&"body"!==X(e)),o=null,i="fixed"===ef(e).position,l=i?ep(e):e;for(;G(l)&&!eu(l);){let t=ef(l),n=ea(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&eC.has(o.position)||ee(l)&&!n&&function e(t,n){let r=ep(t);return!(r===n||!G(r)||eu(r))&&("fixed"===ef(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=ep(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=eE(t,n,o);return e.top=x(r.top,e.top),e.right=g(r.right,e.right),e.bottom=g(r.bottom,e.bottom),e.left=x(r.left,e.left),e},eE(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eL,getElementRects:eS,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eg(e);return{width:t,height:n}},getScale:ey,isElement:G,isRTL:function(e){return"rtl"===ef(e).direction}};function ek(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eO=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=R(e,t)||{};if(null==c)return{};let f=N(u),d={x:n,y:r},p=A(S(o)),h=P(p),m=await l.getDimensions(c),y="y"===p,w=y?"clientHeight":"clientWidth",v=i.reference[h]+i.reference[p]-d[p]-i.floating[h],b=d[p]-i.reference[p],T=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),C=T?T[w]:0;C&&await (null==l.isElement?void 0:l.isElement(T))||(C=a.floating[w]||i.floating[h]);let L=C/2-m[h]/2-1,j=g(f[y?"top":"left"],L),k=g(f[y?"bottom":"right"],L),O=C-m[h]-k,D=C/2-m[h]/2+(v/2-b/2),H=x(j,g(D,O)),M=!s.arrow&&null!=E(o)&&D!==H&&i.reference[h]/2-(D<j?j:k)-m[h]/2<0,z=M?D<j?D-j:D-O:0;return{[p]:d[p]+z,data:{[p]:H,centerOffset:D-H-z,...M&&{alignmentOffset:z}},reset:M}}});var eD=e.i(23825),eH="undefined"!=typeof document?c.useLayoutEffect:function(){};function eM(e,t){let n,r,o;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(!eM(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eM(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eN(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ez(e,t){let n=eN(e);return Math.round(t*n)/n}function eF(e){let t=c.useRef(e);return eH(()=>{t.current=e}),t}var eB=e.i(27045),e_=c.forwardRef((e,n)=>{let{children:r,width:o=10,height:i=5,...l}=e;return(0,t.jsx)(eB.Primitive.svg,{...l,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,t.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e_.displayName="Arrow";var eW=e.i(49119),e$=e.i(35015);function eI(e){let[t,n]=c.useState(void 0);return(0,e$.useLayoutEffect)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}e.s(["useSize",()=>eI],40864);var eV="Popper",[eY,eX]=(0,d.createContextScope)(eV),[eq,eK]=eY(eV),eU=e=>{let{__scopePopper:n,children:r}=e,[o,i]=c.useState(null);return(0,t.jsx)(eq,{scope:n,anchor:o,onAnchorChange:i,children:r})};eU.displayName=eV;var eG="PopperAnchor",eJ=c.forwardRef((e,n)=>{let{__scopePopper:r,virtualRef:o,...i}=e,l=eK(eG,r),a=c.useRef(null),s=(0,f.useComposedRefs)(n,a),u=c.useRef(null);return c.useEffect(()=>{let e=u.current;u.current=o?.current||a.current,e!==u.current&&l.onAnchorChange(u.current)}),o?null:(0,t.jsx)(eB.Primitive.div,{...i,ref:s})});eJ.displayName=eG;var eQ="PopperContent",[eZ,e0]=eY(eQ),e1=c.forwardRef((e,n)=>{var r,o,i,l,a,s,u,d,p,h,m,y,v;let{__scopePopper:b,side:T="bottom",sideOffset:L=0,align:N="center",alignOffset:z=0,arrowPadding:F=0,avoidCollisions:Y=!0,collisionBoundary:X=[],collisionPadding:q=0,sticky:U="partial",hideWhenDetached:G=!1,updatePositionStrategy:J="optimized",onPlaced:Q,...Z}=e,ee=eK(eQ,b),[et,en]=c.useState(null),er=(0,f.useComposedRefs)(n,e=>en(e)),[eo,ei]=c.useState(null),el=eI(eo),ea=el?.width??0,es=el?.height??0,ec="number"==typeof q?q:{top:0,right:0,bottom:0,left:0,...q},eu=Array.isArray(X)?X:[X],ef=eu.length>0,ed={padding:ec,boundary:eu.filter(e9),altBoundary:ef},{refs:ep,floatingStyles:em,placement:eg,isPositioned:ey,middlewareData:ew}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:s,open:u}=e,[f,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=c.useState(r);eM(p,r)||h(r);let[m,g]=c.useState(null),[x,y]=c.useState(null),w=c.useCallback(e=>{e!==R.current&&(R.current=e,g(e))},[]),v=c.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),b=i||m,T=l||x,R=c.useRef(null),C=c.useRef(null),E=c.useRef(f),A=null!=s,P=eF(s),L=eF(o),S=eF(u),j=c.useCallback(()=>{var e,r;let o,i,l;if(!R.current||!C.current)return;let a={placement:t,strategy:n,middleware:p};L.current&&(a.platform=L.current),(e=R.current,r=C.current,o=new Map,l={...(i={platform:ej,...a}).platform,_c:o},B(e,r,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==S.current};k.current&&!eM(E.current,t)&&(E.current=t,eD.flushSync(()=>{d(t)}))})},[p,t,n,L,S]);eH(()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let k=c.useRef(!1);eH(()=>(k.current=!0,()=>{k.current=!1}),[]),eH(()=>{if(b&&(R.current=b),T&&(C.current=T),b&&T){if(P.current)return P.current(b,T,j);j()}},[b,T,j,P,A]);let O=c.useMemo(()=>({reference:R,floating:C,setReference:w,setFloating:v}),[w,v]),D=c.useMemo(()=>({reference:b,floating:T}),[b,T]),H=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=ez(D.floating,f.x),r=ez(D.floating,f.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...eN(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,D.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:j,refs:O,elements:D,floatingStyles:H}),[f,j,O,D,H])}({strategy:"fixed",placement:T+("center"!==N?"-"+N:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=ex(e),f=i||l?[...u?eh(u):[],...eh(t)]:[];f.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let d=u&&s?function(e,t){let n,r=null,o=K(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();let c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=c;if(a||t(),!d||!p)return;let h={rootMargin:-w(f)+"px "+-w(o.clientWidth-(u+d))+"px "+-w(o.clientHeight-(f+p))+"px "+-w(u)+"px",threshold:x(0,g(1,s))||1},m=!0;function y(t){let r=t[0].intersectionRatio;if(r!==s){if(!m)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||ek(c,e.getBoundingClientRect())||l(),m=!1}try{r=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,h)}r.observe(e)}(!0),i}(u,n):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let m=c?eb(e):null;return c&&function t(){let r=eb(e);m&&!ek(m,r)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===J}),elements:{reference:ee.anchor},middleware:[{...{name:"offset",options:o=r={mainAxis:L+es,alignmentAxis:z},async fn(e){var t,n;let{x:r,y:i,placement:l,middlewareData:a}=e,s=await V(e,o);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:l}}}},options:[r,void 0]},Y&&{...{name:"shift",options:a=l={mainAxis:!0,crossAxis:!1,limiter:"partial"===U?{...(i=void 0,{options:i={},fn(e){let{x:t,y:n,placement:r,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=R(i,e),u={x:t,y:n},f=S(r),d=A(f),p=u[d],h=u[f],m=R(a,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+g.mainAxis,n=o.reference[d]+o.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var x,y;let e="y"===d?"width":"height",t=I.has(C(r)),n=o.reference[f]-o.floating[e]+(t&&(null==(x=l.offset)?void 0:x[f])||0)+(t?0:g.crossAxis),i=o.reference[f]+o.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[f])||0)-(t?g.crossAxis:0);h<n?h=n:h>i&&(h=i)}return{[d]:p,[f]:h}}}),options:[void 0,void 0]}:void 0,...ed},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=R(a,e),c={x:t,y:n},u=await _(e,s),f=S(C(r)),d=A(f),p=c[d],h=c[f];if(o){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+u[e],r=p-u[t];p=x(n,g(p,r))}if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+u[e],r=h-u[t];h=x(n,g(h,r))}let m=l.fn({...e,[d]:p,[f]:h});return{...m,data:{x:m.x-t,y:m.y-n,enabled:{[d]:o,[f]:i}}}}},options:[l,void 0]},Y&&{...{name:"flip",options:u=s={...ed},async fn(e){var t,n,r,o,i,l,a,s;let c,f,d,{placement:p,middlewareData:h,rects:m,initialPlacement:g,platform:x,elements:y}=e,{mainAxis:w=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:N=!0,...z}=R(u,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let F=C(p),B=S(g),W=C(g)===g,$=await (null==x.isRTL?void 0:x.isRTL(y.floating)),I=b||(W||!N?[M(g)]:(c=M(g),[j(g),c,j(c)])),V="none"!==L;!b&&V&&I.push(...(f=E(g),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?O:k;return t?k:O;case"left":case"right":return t?D:H;default:return[]}}(C(g),"start"===L,$),f&&(d=d.map(e=>e+"-"+f),N&&(d=d.concat(d.map(j)))),d));let Y=[g,...I],X=await _(e,z),q=[],K=(null==(n=h.flip)?void 0:n.overflows)||[];if(w&&q.push(X[F]),v){let e,t,n,r,o=(l=p,a=m,void 0===(s=$)&&(s=!1),e=E(l),n=P(t=A(S(l))),r="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=M(r)),[r,M(r)]);q.push(X[o[0]],X[o[1]])}if(K=[...K,{placement:p,overflows:q}],!q.every(e=>e<=0)){let e=((null==(r=h.flip)?void 0:r.index)||0)+1,t=Y[e];if(t&&("alignment"!==v||B===S(t)||K.every(e=>S(e.placement)!==B||e.overflows[0]>0)))return{data:{index:e,overflows:K},reset:{placement:t}};let n=null==(o=K.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(T){case"bestFit":{let e=null==(i=K.filter(e=>{if(V){let t=S(e.placement);return t===B||"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:i[0];e&&(n=e);break}case"initialPlacement":n=g}if(p!==n)return{reset:{placement:n}}}return{}}},options:[s,void 0]},{...{name:"size",options:p=d={...ed,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){var t,n;let r,o,{placement:i,rects:l,platform:a,elements:s}=e,{apply:c=()=>{},...u}=R(p,e),f=await _(e,u),d=C(i),h=E(i),m="y"===S(i),{width:y,height:w}=l.floating;"top"===d||"bottom"===d?(r=d,o=h===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(o=d,r="end"===h?"top":"bottom");let v=w-f.top-f.bottom,b=y-f.left-f.right,T=g(w-f[r],v),A=g(y-f[o],b),P=!e.middlewareData.shift,L=T,j=A;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(j=b),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(L=v),P&&!h){let e=x(f.left,0),t=x(f.right,0),n=x(f.top,0),r=x(f.bottom,0);m?j=y-2*(0!==e||0!==t?e+t:x(f.left,f.right)):L=w-2*(0!==n||0!==r?n+r:x(f.top,f.bottom))}await c({...e,availableWidth:j,availableHeight:L});let k=await a.getDimensions(s.floating);return y!==k.width||w!==k.height?{reset:{rects:!0}}:{}}},options:[d,void 0]},eo&&{...{name:"arrow",options:m=h={element:eo,padding:F},fn(e){let{element:t,padding:n}="function"==typeof m?m(e):m;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eO({element:t.current,padding:n}).fn(e):{}:t?eO({element:t,padding:n}).fn(e):{}}},options:[h,void 0]},e3({arrowWidth:ea,arrowHeight:es}),G&&{...{name:"hide",options:v=y={strategy:"referenceHidden",...ed},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=R(v,e);switch(n){case"referenceHidden":{let n=W(await _(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:$(n)}}}case"escaped":{let n=W(await _(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:$(n)}}}default:return{}}}},options:[y,void 0]}]}),[ev,eT]=e4(eg),eR=(0,eW.useCallbackRef)(Q);(0,e$.useLayoutEffect)(()=>{ey&&eR?.()},[ey,eR]);let eC=ew.arrow?.x,eE=ew.arrow?.y,eA=ew.arrow?.centerOffset!==0,[eP,eL]=c.useState();return(0,e$.useLayoutEffect)(()=>{et&&eL(window.getComputedStyle(et).zIndex)},[et]),(0,t.jsx)("div",{ref:ep.setFloating,"data-radix-popper-content-wrapper":"",style:{...em,transform:ey?em.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eP,"--radix-popper-transform-origin":[ew.transformOrigin?.x,ew.transformOrigin?.y].join(" "),...ew.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,t.jsx)(eZ,{scope:b,placedSide:ev,onArrowChange:ei,arrowX:eC,arrowY:eE,shouldHideArrow:eA,children:(0,t.jsx)(eB.Primitive.div,{"data-side":ev,"data-align":eT,...Z,ref:er,style:{...Z.style,animation:ey?void 0:"none"}})})})});e1.displayName=eQ;var e2="PopperArrow",e5={top:"bottom",right:"left",bottom:"top",left:"right"},e6=c.forwardRef(function(e,n){let{__scopePopper:r,...o}=e,i=e0(e2,r),l=e5[i.placedSide];return(0,t.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,t.jsx)(e_,{...o,ref:n,style:{...o.style,display:"block"}})})});function e9(e){return null!==e}e6.displayName=e2;var e3=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,c]=e4(n),u={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2,p="",h="";return"bottom"===s?(p=i?u:`${f}px`,h=`${-a}px`):"top"===s?(p=i?u:`${f}px`,h=`${r.floating.height+a}px`):"right"===s?(p=`${-a}px`,h=i?u:`${d}px`):"left"===s&&(p=`${r.floating.width+a}px`,h=i?u:`${d}px`),{data:{x:p,y:h}}}});function e4(e){let[t,n="center"]=e.split("-");return[t,n]}e.s(["Anchor",()=>eJ,"Arrow",()=>e6,"Content",()=>e1,"Root",()=>eU,"createPopperScope",()=>eX],4422);var e8=e.i(27980),e7=e.i(57961),te=e.i(78603),tt=e.i(51606),tn=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tr=c.forwardRef((e,n)=>(0,t.jsx)(eB.Primitive.span,{...e,ref:n,style:{...tn,...e.style}}));tr.displayName="VisuallyHidden";var[to,ti]=(0,d.createContextScope)("Tooltip",[eX]),tl=eX(),ta="TooltipProvider",ts="tooltip.open",[tc,tu]=to(ta),tf=e=>{let{__scopeTooltip:n,delayDuration:r=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:l}=e,a=c.useRef(!0),s=c.useRef(!1),u=c.useRef(0);return c.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,t.jsx)(tc,{scope:n,isOpenDelayedRef:a,delayDuration:r,onOpen:c.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:s,onPointerInTransitChange:c.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:l})};tf.displayName=ta;var td="Tooltip",[tp,th]=to(td),tm=e=>{let{__scopeTooltip:n,children:r,open:o,defaultOpen:i,onOpenChange:l,disableHoverableContent:a,delayDuration:s}=e,u=tu(td,e.__scopeTooltip),f=tl(n),[d,p]=c.useState(null),m=(0,h.useId)(),g=c.useRef(0),x=a??u.disableHoverableContent,y=s??u.delayDuration,w=c.useRef(!1),[v,b]=(0,tt.useControllableState)({prop:o,defaultProp:i??!1,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(ts))):u.onClose(),l?.(e)},caller:td}),T=c.useMemo(()=>v?w.current?"delayed-open":"instant-open":"closed",[v]),R=c.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w.current=!1,b(!0)},[b]),C=c.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b(!1)},[b]),E=c.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,b(!0),g.current=0},y)},[y,b]);return c.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),(0,t.jsx)(eU,{...f,children:(0,t.jsx)(tp,{scope:n,contentId:m,open:v,stateAttribute:T,trigger:d,onTriggerChange:p,onTriggerEnter:c.useCallback(()=>{u.isOpenDelayedRef.current?E():R()},[u.isOpenDelayedRef,E,R]),onTriggerLeave:c.useCallback(()=>{x?C():(window.clearTimeout(g.current),g.current=0)},[C,x]),onOpen:R,onClose:C,disableHoverableContent:x,children:r})})};tm.displayName=td;var tg="TooltipTrigger",tx=c.forwardRef((e,n)=>{let{__scopeTooltip:r,...o}=e,i=th(tg,r),l=tu(tg,r),a=tl(r),s=c.useRef(null),d=(0,f.useComposedRefs)(n,s,i.onTriggerChange),p=c.useRef(!1),h=c.useRef(!1),m=c.useCallback(()=>p.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),(0,t.jsx)(eJ,{asChild:!0,...a,children:(0,t.jsx)(eB.Primitive.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:d,onPointerMove:(0,u.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(h.current||l.isPointerInTransitRef.current||(i.onTriggerEnter(),h.current=!0))}),onPointerLeave:(0,u.composeEventHandlers)(e.onPointerLeave,()=>{i.onTriggerLeave(),h.current=!1}),onPointerDown:(0,u.composeEventHandlers)(e.onPointerDown,()=>{i.open&&i.onClose(),p.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:(0,u.composeEventHandlers)(e.onFocus,()=>{p.current||i.onOpen()}),onBlur:(0,u.composeEventHandlers)(e.onBlur,i.onClose),onClick:(0,u.composeEventHandlers)(e.onClick,i.onClose)})})});tx.displayName=tg;var ty="TooltipPortal",[tw,tv]=to(ty,{forceMount:void 0}),tb=e=>{let{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,l=th(ty,n);return(0,t.jsx)(tw,{scope:n,forceMount:r,children:(0,t.jsx)(e7.Presence,{present:r||l.open,children:(0,t.jsx)(e8.Portal,{asChild:!0,container:i,children:o})})})};tb.displayName=ty;var tT="TooltipContent",tR=c.forwardRef((e,n)=>{let r=tv(tT,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...l}=e,a=th(tT,e.__scopeTooltip);return(0,t.jsx)(e7.Presence,{present:o||a.open,children:a.disableHoverableContent?(0,t.jsx)(tL,{side:i,...l,ref:n}):(0,t.jsx)(tC,{side:i,...l,ref:n})})}),tC=c.forwardRef((e,n)=>{let r=th(tT,e.__scopeTooltip),o=tu(tT,e.__scopeTooltip),i=c.useRef(null),l=(0,f.useComposedRefs)(n,i),[a,s]=c.useState(null),{trigger:u,onClose:d}=r,p=i.current,{onPointerInTransitChange:h}=o,m=c.useCallback(()=>{s(null),h(!1)},[h]),g=c.useCallback((e,t)=>{let n,r=e.currentTarget,o={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(o,r.getBoundingClientRect());s(((n=[...function(e,t,n=5){let r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(o,i),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(n))),h(!0)},[h]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(u&&p){let e=e=>g(e,p),t=e=>g(e,u);return u.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[u,p,g,m]),c.useEffect(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=u?.contains(t)||p?.contains(t),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],s=l.x,c=l.y,u=a.x,f=a.y;c>r!=f>r&&n<(u-s)*(r-c)/(f-c)+s&&(o=!o)}return o}(n,a);r?m():o&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,p,a,d,m]),(0,t.jsx)(tL,{...e,ref:l})}),[tE,tA]=to(td,{isInside:!1}),tP=(0,te.createSlottable)("TooltipContent"),tL=c.forwardRef((e,n)=>{let{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:a,...s}=e,u=th(tT,r),f=tl(r),{onClose:d}=u;return c.useEffect(()=>(document.addEventListener(ts,d),()=>document.removeEventListener(ts,d)),[d]),c.useEffect(()=>{if(u.trigger){let e=e=>{let t=e.target;t?.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,d]),(0,t.jsx)(p.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,t.jsxs)(e1,{"data-state":u.stateAttribute,...f,...s,ref:n,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,t.jsx)(tP,{children:o}),(0,t.jsx)(tE,{scope:r,isInside:!0,children:(0,t.jsx)(tr,{id:u.contentId,role:"tooltip",children:i||o})})]})})});tR.displayName=tT;var tS="TooltipArrow",tj=c.forwardRef((e,n)=>{let{__scopeTooltip:r,...o}=e,i=tl(r);return tA(tS,r).isInside?null:(0,t.jsx)(e6,{...i,...o,ref:n})});tj.displayName=tS,e.s(["Arrow",()=>tj,"Content",()=>tR,"Portal",()=>tb,"Provider",()=>tf,"Root",()=>tm,"Tooltip",()=>tm,"TooltipArrow",()=>tj,"TooltipContent",()=>tR,"TooltipPortal",()=>tb,"TooltipProvider",()=>tf,"TooltipTrigger",()=>tx,"Trigger",()=>tx,"createTooltipScope",()=>ti],62893);var tk=e.i(62893),tk=tk;function tO({delayDuration:e=0,...n}){return(0,t.jsx)(tk.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...n})}function tD({...e}){return(0,t.jsx)(tO,{children:(0,t.jsx)(tk.Root,{"data-slot":"tooltip",...e})})}function tH({...e}){return(0,t.jsx)(tk.Trigger,{"data-slot":"tooltip-trigger",...e})}function tM({className:e,sideOffset:r=0,children:o,...i}){return(0,t.jsx)(tk.Portal,{children:(0,t.jsxs)(tk.Content,{"data-slot":"tooltip-content",sideOffset:r,className:(0,n.cn)("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-foreground text-background z-50 w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) rounded-none px-3 py-1.5 text-xs",e),...i,children:[o,(0,t.jsx)(tk.Arrow,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-none"})]})})}e.s(["Tooltip",()=>tD,"TooltipContent",()=>tM,"TooltipTrigger",()=>tH],39717)},25466,e=>{"use strict";var t=e.i(21628),n=e.i(38652),r=e.i(27045),o=n.forwardRef((e,n)=>(0,t.jsx)(r.Primitive.label,{...e,ref:n,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label",e.s(["Label",()=>o,"Root",()=>o],96021);var i=e.i(96021),i=i,l=e.i(52236);function a({className:e,...n}){return(0,t.jsx)(i.Root,{"data-slot":"label",className:(0,l.cn)("flex items-center gap-2 text-xs leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}e.s(["Label",()=>a],25466)}]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78835,e=>{"use strict";var t=e.i(21628),r=e.i(38652),a=e.i(2890),n=e.i(52410),i=e.i(87226),s=e.i(19836),o=e.i(78603),l="AlertDialog",[d,c]=(0,a.createContextScope)(l,[i.createDialogScope]),u=(0,i.createDialogScope)(),m=e=>{let{__scopeAlertDialog:r,...a}=e,n=u(r);return(0,t.jsx)(i.Root,{...n,...a,modal:!0})};m.displayName=l;var p=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,s=u(a);return(0,t.jsx)(i.Trigger,{...s,...n,ref:r})});p.displayName="AlertDialogTrigger";var f=e=>{let{__scopeAlertDialog:r,...a}=e,n=u(r);return(0,t.jsx)(i.Portal,{...n,...a})};f.displayName="AlertDialogPortal";var x=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,s=u(a);return(0,t.jsx)(i.Overlay,{...s,...n,ref:r})});x.displayName="AlertDialogOverlay";var g="AlertDialogContent",[h,v]=d(g),b=(0,o.createSlottable)("AlertDialogContent"),y=r.forwardRef((e,a)=>{let{__scopeAlertDialog:o,children:l,...d}=e,c=u(o),m=r.useRef(null),p=(0,n.useComposedRefs)(a,m),f=r.useRef(null);return(0,t.jsx)(i.WarningProvider,{contentName:g,titleName:j,docsSlug:"alert-dialog",children:(0,t.jsx)(h,{scope:o,cancelRef:f,children:(0,t.jsxs)(i.Content,{role:"alertdialog",...c,...d,ref:p,onOpenAutoFocus:(0,s.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),f.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,t.jsx)(b,{children:l}),(0,t.jsx)(T,{contentRef:m})]})})})});y.displayName=g;var j="AlertDialogTitle",C=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,s=u(a);return(0,t.jsx)(i.Title,{...s,...n,ref:r})});C.displayName=j;var N="AlertDialogDescription",w=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,s=u(a);return(0,t.jsx)(i.Description,{...s,...n,ref:r})});w.displayName=N;var k=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,s=u(a);return(0,t.jsx)(i.Close,{...s,...n,ref:r})});k.displayName="AlertDialogAction";var D="AlertDialogCancel",A=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...s}=e,{cancelRef:o}=v(D,a),l=u(a),d=(0,n.useComposedRefs)(r,o);return(0,t.jsx)(i.Close,{...l,...s,ref:d})});A.displayName=D;var T=({contentRef:e})=>{let t=`\`${g}\` requires a description for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
You can add a description to the \`${g}\` by passing a \`${N}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
|
+
|
|
5
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${g}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
6
|
+
|
|
7
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return r.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null};e.s(["Action",()=>k,"AlertDialog",()=>m,"AlertDialogAction",()=>k,"AlertDialogCancel",()=>A,"AlertDialogContent",()=>y,"AlertDialogDescription",()=>w,"AlertDialogOverlay",()=>x,"AlertDialogPortal",()=>f,"AlertDialogTitle",()=>C,"AlertDialogTrigger",()=>p,"Cancel",()=>A,"Content",()=>y,"Description",()=>w,"Overlay",()=>x,"Portal",()=>f,"Root",()=>m,"Title",()=>C,"Trigger",()=>p,"createAlertDialogScope",()=>c],45950);var E=e.i(45950),E=E,S=e.i(52236),P=e.i(66691);function I({...e}){return(0,t.jsx)(E.Root,{"data-slot":"alert-dialog",...e})}function R({...e}){return(0,t.jsx)(E.Portal,{"data-slot":"alert-dialog-portal",...e})}function O({className:e,...r}){return(0,t.jsx)(E.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,S.cn)("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs",e),...r})}function L({className:e,size:r="default",...a}){return(0,t.jsxs)(R,{children:[(0,t.jsx)(O,{}),(0,t.jsx)(E.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,S.cn)("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/10 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-none p-4 ring-1 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm",e),...a})]})}function H({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,S.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})}function z({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,S.cn)("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})}function F({className:e,...r}){return(0,t.jsx)(E.Title,{"data-slot":"alert-dialog-title",className:(0,S.cn)("text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}function _({className:e,...r}){return(0,t.jsx)(E.Description,{"data-slot":"alert-dialog-description",className:(0,S.cn)("text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",e),...r})}function B({className:e,variant:r="default",size:a="default",...n}){return(0,t.jsx)(P.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(E.Action,{"data-slot":"alert-dialog-action",className:(0,S.cn)(e),...n})})}function M({className:e,variant:r="outline",size:a="default",...n}){return(0,t.jsx)(P.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(E.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,S.cn)(e),...n})})}e.s(["AlertDialog",()=>I,"AlertDialogAction",()=>B,"AlertDialogCancel",()=>M,"AlertDialogContent",()=>L,"AlertDialogDescription",()=>_,"AlertDialogFooter",()=>z,"AlertDialogHeader",()=>H,"AlertDialogTitle",()=>F],78835)},34792,e=>{"use strict";var t=e.i(21628),r=e.i(52236);function a({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,r.cn)("bg-muted animate-pulse rounded-none",e),...a})}e.s(["Skeleton",()=>a])},24911,e=>{"use strict";var t=e.i(21628),r=e.i(52236);function a({className:e,type:a,...n}){return(0,t.jsx)("input",{type:a,"data-slot":"input",className:(0,r.cn)("dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 file:text-foreground placeholder:text-muted-foreground h-8 w-full min-w-0 rounded-none border bg-transparent px-2.5 py-1 text-xs transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs file:font-medium focus-visible:ring-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-1 md:text-xs",e),...n})}e.s(["Input",()=>a])},2890,e=>{"use strict";var t=e.i(38652),r=e.i(21628);function a(e,a){let n=t.createContext(a),i=e=>{let{children:a,...i}=e,s=t.useMemo(()=>i,Object.values(i));return(0,r.jsx)(n.Provider,{value:s,children:a})};return i.displayName=e+"Provider",[i,function(r){let i=t.useContext(n);if(i)return i;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${e}\``)}]}function n(e,a=[]){let i=[],s=()=>{let r=i.map(e=>t.createContext(e));return function(a){let n=a?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...a,[e]:n}}),[a,n])}};return s.scopeName=e,[function(a,n){let s=t.createContext(n),o=i.length;i=[...i,n];let l=a=>{let{scope:n,children:i,...l}=a,d=n?.[e]?.[o]||s,c=t.useMemo(()=>l,Object.values(l));return(0,r.jsx)(d.Provider,{value:c,children:i})};return l.displayName=a+"Provider",[l,function(r,i){let l=i?.[e]?.[o]||s,d=t.useContext(l);if(d)return d;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${a}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let a=()=>{let a=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=a.reduce((t,{useScope:r,scopeName:a})=>{let n=r(e)[`__scope${a}`];return{...t,...n}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:n}),[n])}};return a.scopeName=r.scopeName,a}(s,...a)]}e.s(["createContext",()=>a,"createContextScope",()=>n])},19836,e=>{"use strict";function t(e,r,{checkForDefaultPrevented:a=!0}={}){return function(t){if(e?.(t),!1===a||!t.defaultPrevented)return r?.(t)}}"undefined"!=typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",()=>t])},35015,e=>{"use strict";var t=e.i(38652),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",()=>r])},37928,e=>{"use strict";var t=e.i(38652),r=e.i(35015),a=t[" useId ".trim().toString()]||(()=>void 0),n=0;function i(e){let[i,s]=t.useState(a());return(0,r.useLayoutEffect)(()=>{e||s(e=>e??String(n++))},[e]),e||(i?`radix-${i}`:"")}e.s(["useId",()=>i])},51606,e=>{"use strict";var t=e.i(38652),r=e.i(35015);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var a=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function n({prop:e,defaultProp:r,onChange:n=()=>{},caller:i}){let[s,o,l]=function({defaultProp:e,onChange:r}){let[n,i]=t.useState(e),s=t.useRef(n),o=t.useRef(r);return a(()=>{o.current=r},[r]),t.useEffect(()=>{s.current!==n&&(o.current?.(n),s.current=n)},[n,s]),[n,i,o]}({defaultProp:r,onChange:n}),d=void 0!==e,c=d?e:s;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==d){let t=d?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=d},[d,i])}return[c,t.useCallback(t=>{if(d){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else o(t)},[d,e,o,l])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",()=>n],51606)},49119,e=>{"use strict";var t=e.i(38652);function r(e){let r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}e.s(["useCallbackRef",()=>r])},95668,e=>{"use strict";var t,r=e.i(38652),a=e.i(19836),n=e.i(27045),i=e.i(52410),s=e.i(49119),o=e.i(21628),l="dismissableLayer.update",d=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),c=r.forwardRef((e,c)=>{let{disableOutsidePointerEvents:p=!1,onEscapeKeyDown:f,onPointerDownOutside:x,onFocusOutside:g,onInteractOutside:h,onDismiss:v,...b}=e,y=r.useContext(d),[j,C]=r.useState(null),N=j?.ownerDocument??globalThis?.document,[,w]=r.useState({}),k=(0,i.useComposedRefs)(c,e=>C(e)),D=Array.from(y.layers),[A]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),T=D.indexOf(A),E=j?D.indexOf(j):-1,S=y.layersWithOutsidePointerEventsDisabled.size>0,P=E>=T,I=function(e,t=globalThis?.document){let a=(0,s.useCallbackRef)(e),n=r.useRef(!1),i=r.useRef(()=>{});return r.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let r=function(){m("dismissableLayer.pointerDownOutside",a,n,{discrete:!0})},n={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);n.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,a]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...y.branches].some(e=>e.contains(t));P&&!r&&(x?.(e),h?.(e),e.defaultPrevented||v?.())},N),R=function(e,t=globalThis?.document){let a=(0,s.useCallbackRef)(e),n=r.useRef(!1);return r.useEffect(()=>{let e=e=>{e.target&&!n.current&&m("dismissableLayer.focusOutside",a,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,a]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...y.branches].some(e=>e.contains(t))&&(g?.(e),h?.(e),e.defaultPrevented||v?.())},N);return!function(e,t=globalThis?.document){let a=(0,s.useCallbackRef)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&a(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[a,t])}(e=>{E===y.layers.size-1&&(f?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},N),r.useEffect(()=>{if(j)return p&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(t=N.body.style.pointerEvents,N.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(j)),y.layers.add(j),u(),()=>{p&&1===y.layersWithOutsidePointerEventsDisabled.size&&(N.body.style.pointerEvents=t)}},[j,N,p,y]),r.useEffect(()=>()=>{j&&(y.layers.delete(j),y.layersWithOutsidePointerEventsDisabled.delete(j),u())},[j,y]),r.useEffect(()=>{let e=()=>w({});return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),(0,o.jsx)(n.Primitive.div,{...b,ref:k,style:{pointerEvents:S?P?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.composeEventHandlers)(e.onFocusCapture,R.onFocusCapture),onBlurCapture:(0,a.composeEventHandlers)(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:(0,a.composeEventHandlers)(e.onPointerDownCapture,I.onPointerDownCapture)})});function u(){let e=new CustomEvent(l);document.dispatchEvent(e)}function m(e,t,r,{discrete:a}){let i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),a?(0,n.dispatchDiscreteCustomEvent)(i,s):i.dispatchEvent(s)}c.displayName="DismissableLayer",r.forwardRef((e,t)=>{let a=r.useContext(d),s=r.useRef(null),l=(0,i.useComposedRefs)(t,s);return r.useEffect(()=>{let e=s.current;if(e)return a.branches.add(e),()=>{a.branches.delete(e)}},[a.branches]),(0,o.jsx)(n.Primitive.div,{...e,ref:l})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",()=>c],95668)},27980,e=>{"use strict";var t=e.i(38652),r=e.i(23825),a=e.i(27045),n=e.i(35015),i=e.i(21628),s=t.forwardRef((e,s)=>{let{container:o,...l}=e,[d,c]=t.useState(!1);(0,n.useLayoutEffect)(()=>c(!0),[]);let u=o||d&&globalThis?.document?.body;return u?r.default.createPortal((0,i.jsx)(a.Primitive.div,{...l,ref:s}),u):null});s.displayName="Portal",e.s(["Portal",()=>s])},57961,e=>{"use strict";var t=e.i(38652),r=e.i(52410),a=e.i(35015),n=e=>{var n;let s,o,{present:l,children:d}=e,c=function(e){var r,n;let[s,o]=t.useState(),l=t.useRef(null),d=t.useRef(e),c=t.useRef("none"),[u,m]=(r=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>n[e][t]??e,r));return t.useEffect(()=>{let e=i(l.current);c.current="mounted"===u?e:"none"},[u]),(0,a.useLayoutEffect)(()=>{let t=l.current,r=d.current;if(r!==e){let a=c.current,n=i(t);e?m("MOUNT"):"none"===n||t?.display==="none"?m("UNMOUNT"):r&&a!==n?m("ANIMATION_OUT"):m("UNMOUNT"),d.current=e}},[e,m]),(0,a.useLayoutEffect)(()=>{if(s){let e,t=s.ownerDocument.defaultView??window,r=r=>{let a=i(l.current).includes(CSS.escape(r.animationName));if(r.target===s&&a&&(m("ANIMATION_END"),!d.current)){let r=s.style.animationFillMode;s.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===s.style.animationFillMode&&(s.style.animationFillMode=r)})}},a=e=>{e.target===s&&(c.current=i(l.current))};return s.addEventListener("animationstart",a),s.addEventListener("animationcancel",r),s.addEventListener("animationend",r),()=>{t.clearTimeout(e),s.removeEventListener("animationstart",a),s.removeEventListener("animationcancel",r),s.removeEventListener("animationend",r)}}m("ANIMATION_END")},[s,m]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback(e=>{l.current=e?getComputedStyle(e):null,o(e)},[])}}(l),u="function"==typeof d?d({present:c.isPresent}):t.Children.only(d),m=(0,r.useComposedRefs)(c.ref,(n=u,(o=(s=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?n.ref:(o=(s=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?n.props.ref:n.props.ref||n.ref));return"function"==typeof d||c.isPresent?t.cloneElement(u,{ref:m}):null};function i(e){return e?.animationName||"none"}n.displayName="Presence",e.s(["Presence",()=>n])},70317,e=>{"use strict";var t=e.i(21628),r=e.i(52236);function a({className:e,size:a="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.cn)("ring-foreground/10 bg-card text-card-foreground group/card flex flex-col gap-4 overflow-hidden rounded-none py-4 text-xs/relaxed ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-2 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-none *:[img:last-child]:rounded-none",e),...n})}function n({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-none px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...a})}function i({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("text-sm font-medium group-data-[size=sm]/card:text-sm",e),...a})}function s({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-muted-foreground text-xs/relaxed",e),...a})}function o({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-4 group-data-[size=sm]/card:px-3",e),...a})}e.s(["Card",()=>a,"CardContent",()=>o,"CardDescription",()=>s,"CardHeader",()=>n,"CardTitle",()=>i])},23621,e=>{"use strict";var t=e.i(21628),r=e.i(7298),a=e.i(76930),n=e.i(52236);let i=(0,r.cva)("h-5 gap-1 rounded-none border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-colors overflow-hidden group/badge",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function s({className:e,variant:r="default",asChild:s=!1,...o}){let l=s?a.Slot.Root:"span";return(0,t.jsx)(l,{"data-slot":"badge","data-variant":r,className:(0,n.cn)(i({variant:r}),e),...o})}e.s(["Badge",()=>s])},78329,e=>{"use strict";var t=e.i(21628),r=e.i(38652),a=e.i(78432),n=e.i(70317),i=e.i(34792),s=e.i(66691),o=e.i(24911),l=e.i(25466),d=e.i(7064),c=e.i(78835),u=e.i(23621),m=e.i(39717),p=e.i(27841),f=e.i(64053),x=e.i(71367),g=e.i(37434);function h({keys:e,isLoading:a,appId:n,onRevoke:o}){let[l,h]=(0,r.useState)(!1),[v,b]=(0,r.useState)(null),[y,j]=(0,r.useState)(!1),C=async()=>{if(v){j(!0);try{if(!(await x.rpcClient.api.admin.apps[":appId"]["api-keys"][":keyId"].$delete({param:{appId:n,keyId:v.keyId}})).ok)throw Error("Failed to revoke key");g.toast.success("API key revoked successfully"),h(!1),b(null),o()}catch(e){g.toast.error("Failed to revoke API key"),console.error(e)}finally{j(!1)}}};return a?(0,t.jsx)("div",{className:"rounded-md border",children:(0,t.jsxs)(d.Table,{children:[(0,t.jsx)(d.TableHeader,{children:(0,t.jsxs)(d.TableRow,{children:[(0,t.jsx)(d.TableHead,{className:"w-[200px]",children:"Key Prefix"}),(0,t.jsx)(d.TableHead,{children:"Name"}),(0,t.jsx)(d.TableHead,{children:"Scopes"}),(0,t.jsx)(d.TableHead,{children:"Last Used"}),(0,t.jsx)(d.TableHead,{children:"Status"}),(0,t.jsx)(d.TableHead,{className:"w-[70px]"})]})}),(0,t.jsx)(d.TableBody,{children:[void 0,void 0,void 0].map((e,r)=>(0,t.jsxs)(d.TableRow,{children:[(0,t.jsx)(d.TableCell,{children:(0,t.jsx)(i.Skeleton,{className:"h-5 w-24"})}),(0,t.jsx)(d.TableCell,{children:(0,t.jsx)(i.Skeleton,{className:"h-5 w-32"})}),(0,t.jsx)(d.TableCell,{children:(0,t.jsx)(i.Skeleton,{className:"h-5 w-20"})}),(0,t.jsx)(d.TableCell,{children:(0,t.jsx)(i.Skeleton,{className:"h-5 w-28"})}),(0,t.jsx)(d.TableCell,{children:(0,t.jsx)(i.Skeleton,{className:"h-5 w-16"})}),(0,t.jsx)(d.TableCell,{children:(0,t.jsx)(i.Skeleton,{className:"h-8 w-8"})})]},r))})]})}):0===e.length?(0,t.jsx)("div",{className:"rounded-md border p-8 text-center",children:(0,t.jsx)("p",{className:"text-muted-foreground",children:"No API keys yet. Create your first API key to start logging."})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"rounded-md border",children:(0,t.jsxs)(d.Table,{children:[(0,t.jsx)(d.TableHeader,{children:(0,t.jsxs)(d.TableRow,{children:[(0,t.jsx)(d.TableHead,{className:"w-[200px]",children:"Key Prefix"}),(0,t.jsx)(d.TableHead,{children:"Name"}),(0,t.jsx)(d.TableHead,{children:"Scopes"}),(0,t.jsx)(d.TableHead,{children:"Last Used"}),(0,t.jsx)(d.TableHead,{children:"Status"}),(0,t.jsx)(d.TableHead,{className:"w-[70px]"})]})}),(0,t.jsx)(d.TableBody,{children:e.map(e=>{var r;return(0,t.jsxs)(d.TableRow,{children:[(0,t.jsx)(d.TableCell,{children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[e.keyPrefix.length>12?(0,t.jsxs)(m.Tooltip,{children:[(0,t.jsx)(m.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("code",{className:"cursor-default font-mono text-sm",children:function(e,t=12){return e.length>t?`${e.substring(0,t)}...`:e}(e.keyPrefix)})}),(0,t.jsx)(m.TooltipContent,{children:e.keyPrefix})]}):(0,t.jsx)("code",{className:"font-mono text-sm",children:e.keyPrefix}),(0,t.jsx)(s.Button,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>{var t;return t=e.keyPrefix,void(navigator.clipboard.writeText(t),g.toast.success("Copied to clipboard"))},children:(0,t.jsx)(p.HugeiconsIcon,{icon:f.Copy01Icon,className:"h-3 w-3"})})]})}),(0,t.jsx)(d.TableCell,{className:"font-medium",children:e.name}),(0,t.jsx)(d.TableCell,{children:(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:e.scopes.map(e=>(0,t.jsx)(u.Badge,{variant:"secondary",className:"text-xs",children:e},e))})}),(0,t.jsx)(d.TableCell,{className:"text-muted-foreground",children:(r=e.lastUsedAt)?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}),(0,t.jsx)(d.TableCell,{children:e.revokedAt?(0,t.jsx)(u.Badge,{variant:"destructive",children:"Revoked"}):(0,t.jsx)(u.Badge,{variant:"default",children:"Active"})}),(0,t.jsx)(d.TableCell,{children:!e.revokedAt&&(0,t.jsx)(s.Button,{variant:"ghost",size:"icon",className:"text-destructive hover:text-destructive h-8 w-8",onClick:()=>{b(e),h(!0)},children:(0,t.jsx)(p.HugeiconsIcon,{icon:f.Delete02Icon,className:"h-4 w-4"})})})]},e.keyId)})})]})}),(0,t.jsx)(c.AlertDialog,{open:l,onOpenChange:h,children:(0,t.jsxs)(c.AlertDialogContent,{children:[(0,t.jsxs)(c.AlertDialogHeader,{children:[(0,t.jsx)(c.AlertDialogTitle,{children:"Revoke API Key"}),(0,t.jsxs)(c.AlertDialogDescription,{children:['Are you sure you want to revoke "',v?.name,'"? This action cannot be undone and the key will immediately stop working.']})]}),(0,t.jsxs)(c.AlertDialogFooter,{children:[(0,t.jsx)(c.AlertDialogCancel,{children:"Cancel"}),(0,t.jsx)(c.AlertDialogAction,{onClick:C,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",disabled:y,children:y?"Revoking...":"Revoke"})]})]})})]})}var v=e.i(82879),b=e.i(52410),y=e.i(2890),j=e.i(19836),C=e.i(51606),N=e.i(40864),w=e.i(57961),k=e.i(27045),D="Checkbox",[A,T]=(0,y.createContextScope)(D),[E,S]=A(D);function P(e){let{__scopeCheckbox:a,checked:n,children:i,defaultChecked:s,disabled:o,form:l,name:d,onCheckedChange:c,required:u,value:m="on",internal_do_not_use_render:p}=e,[f,x]=(0,C.useControllableState)({prop:n,defaultProp:s??!1,onChange:c,caller:D}),[g,h]=r.useState(null),[v,b]=r.useState(null),y=r.useRef(!1),j=!g||!!l||!!g.closest("form"),N={checked:f,disabled:o,setChecked:x,control:g,setControl:h,name:d,form:l,value:m,hasConsumerStoppedPropagationRef:y,required:u,defaultChecked:!_(s)&&s,isFormControl:j,bubbleInput:v,setBubbleInput:b};return(0,t.jsx)(E,{scope:a,...N,children:"function"==typeof p?p(N):i})}var I="CheckboxTrigger",R=r.forwardRef(({__scopeCheckbox:e,onKeyDown:a,onClick:n,...i},s)=>{let{control:o,value:l,disabled:d,checked:c,required:u,setControl:m,setChecked:p,hasConsumerStoppedPropagationRef:f,isFormControl:x,bubbleInput:g}=S(I,e),h=(0,b.useComposedRefs)(s,m),v=r.useRef(c);return r.useEffect(()=>{let e=o?.form;if(e){let t=()=>p(v.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[o,p]),(0,t.jsx)(k.Primitive.button,{type:"button",role:"checkbox","aria-checked":_(c)?"mixed":c,"aria-required":u,"data-state":B(c),"data-disabled":d?"":void 0,disabled:d,value:l,...i,ref:h,onKeyDown:(0,j.composeEventHandlers)(a,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,j.composeEventHandlers)(n,e=>{p(e=>!!_(e)||!e),g&&x&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});R.displayName=I;var O=r.forwardRef((e,r)=>{let{__scopeCheckbox:a,name:n,checked:i,defaultChecked:s,required:o,disabled:l,value:d,onCheckedChange:c,form:u,...m}=e;return(0,t.jsx)(P,{__scopeCheckbox:a,checked:i,defaultChecked:s,disabled:l,required:o,onCheckedChange:c,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(R,{...m,ref:r,__scopeCheckbox:a}),e&&(0,t.jsx)(F,{__scopeCheckbox:a})]})})});O.displayName=D;var L="CheckboxIndicator",H=r.forwardRef((e,r)=>{let{__scopeCheckbox:a,forceMount:n,...i}=e,s=S(L,a);return(0,t.jsx)(w.Presence,{present:n||_(s.checked)||!0===s.checked,children:(0,t.jsx)(k.Primitive.span,{"data-state":B(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:r,style:{pointerEvents:"none",...e.style}})})});H.displayName=L;var z="CheckboxBubbleInput",F=r.forwardRef(({__scopeCheckbox:e,...a},n)=>{let i,{control:s,hasConsumerStoppedPropagationRef:o,checked:l,defaultChecked:d,required:c,disabled:u,name:m,value:p,form:f,bubbleInput:x,setBubbleInput:g}=S(z,e),h=(0,b.useComposedRefs)(n,g),v=(i=r.useRef({value:l,previous:l}),r.useMemo(()=>(i.current.value!==l&&(i.current.previous=i.current.value,i.current.value=l),i.current.previous),[l])),y=(0,N.useSize)(s);r.useEffect(()=>{if(!x)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!o.current;if(v!==l&&e){let r=new Event("click",{bubbles:t});x.indeterminate=_(l),e.call(x,!_(l)&&l),x.dispatchEvent(r)}},[x,v,l,o]);let j=r.useRef(!_(l)&&l);return(0,t.jsx)(k.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:d??j.current,required:c,disabled:u,name:m,value:p,form:f,...a,tabIndex:-1,ref:h,style:{...a.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function _(e){return"indeterminate"===e}function B(e){return _(e)?"indeterminate":e?"checked":"unchecked"}F.displayName=z,e.s(["Checkbox",()=>O,"CheckboxIndicator",()=>H,"Indicator",()=>H,"Root",()=>O,"createCheckboxScope",()=>T,"unstable_BubbleInput",()=>F,"unstable_CheckboxBubbleInput",()=>F,"unstable_CheckboxProvider",()=>P,"unstable_CheckboxTrigger",()=>R,"unstable_Provider",()=>P,"unstable_Trigger",()=>R],89398);var M=e.i(89398),M=M,$=e.i(52236);function U({className:e,...r}){return(0,t.jsx)(M.Root,{"data-slot":"checkbox",className:(0,$.cn)("border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 peer relative flex size-4 shrink-0 items-center justify-center rounded-none border transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-1",e),...r,children:(0,t.jsx)(M.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(p.HugeiconsIcon,{icon:f.Tick02Icon,strokeWidth:2})})})}let K=[{id:"log:write",label:"Log Write",description:"Write logs and generations"}];function W({appId:e,onKeyCreated:a,isFirstKey:i=!1}){let[d,c]=(0,r.useState)(!1),[u,m]=(0,r.useState)(i?"default":""),[h,b]=(0,r.useState)(["log:write"]),[y,j]=(0,r.useState)(!1),[C,N]=(0,r.useState)(null),w=async t=>{if(t.preventDefault(),u.trim()&&0!==h.length){j(!0);try{let t=await x.rpcClient.api.admin.apps[":appId"]["api-keys"].$post({param:{appId:e},json:{name:u.trim(),scopes:h}});if(!t.ok)throw Error("Failed to create API key");let r=await t.json();N(r.apiKey),a()}catch(e){g.toast.error("Failed to create API key"),console.error(e)}finally{j(!1)}}},k=()=>{c(!1),setTimeout(()=>{m(i?"default":""),b(["log:write"]),N(null)},200)};return(0,t.jsxs)(v.Dialog,{open:d,onOpenChange:e=>e?c(!0):k(),children:[(0,t.jsx)(v.DialogTrigger,{asChild:!0,children:(0,t.jsxs)(s.Button,{children:[(0,t.jsx)(p.HugeiconsIcon,{icon:f.PlusSignIcon,className:"mr-2 h-4 w-4"}),"Create API Key"]})}),(0,t.jsx)(v.DialogContent,{className:"sm:max-w-md",children:C?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(v.DialogHeader,{children:[(0,t.jsx)(v.DialogTitle,{children:"API Key Created"}),(0,t.jsx)(v.DialogDescription,{children:"Copy your API key now. You won't be able to see it again."})]}),(0,t.jsxs)("div",{className:"space-y-4 py-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-md bg-yellow-500/10 p-3 text-sm text-yellow-600",children:[(0,t.jsx)(p.HugeiconsIcon,{icon:f.Alert02Icon,className:"h-4 w-4 flex-shrink-0"}),(0,t.jsx)("span",{children:"Save this key securely. It will not be shown again."})]}),(0,t.jsx)(n.Card,{children:(0,t.jsx)(n.CardContent,{className:"p-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("code",{className:"flex-1 font-mono text-sm break-all",children:C}),(0,t.jsx)(s.Button,{variant:"outline",size:"icon",onClick:()=>{C&&(navigator.clipboard.writeText(C),g.toast.success("API key copied to clipboard"))},children:(0,t.jsx)(p.HugeiconsIcon,{icon:f.Copy01Icon,className:"h-4 w-4"})})]})})})]}),(0,t.jsx)(v.DialogFooter,{children:(0,t.jsx)(s.Button,{onClick:k,children:"Done"})})]}):(0,t.jsxs)("form",{onSubmit:w,children:[(0,t.jsxs)(v.DialogHeader,{children:[(0,t.jsx)(v.DialogTitle,{children:"Create New API Key"}),(0,t.jsx)(v.DialogDescription,{children:"Create an API key to authenticate log ingestion."})]}),(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(l.Label,{htmlFor:"keyName",children:"Key Name"}),(0,t.jsx)(o.Input,{id:"keyName",value:u,onChange:e=>m(e.target.value),placeholder:"API Key",autoFocus:!0})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(l.Label,{children:"Scopes"}),(0,t.jsx)("div",{className:"space-y-2",children:K.map(e=>(0,t.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,t.jsx)(U,{id:e.id,checked:h.includes(e.id),onCheckedChange:()=>{var t;return t=e.id,void b(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])}}),(0,t.jsxs)("div",{className:"grid gap-1.5 leading-none",children:[(0,t.jsx)("label",{htmlFor:e.id,className:"cursor-pointer text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:e.label}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.description})]})]},e.id))})]})]}),(0,t.jsxs)(v.DialogFooter,{children:[(0,t.jsx)(s.Button,{type:"button",variant:"outline",onClick:k,children:"Cancel"}),(0,t.jsx)(s.Button,{type:"submit",disabled:y||!u.trim()||0===h.length,children:y?"Creating...":"Create Key"})]})]})})]})}function q(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Y(){let e=(0,a.useParams)().appId,[d,c]=(0,r.useState)(null),[u,m]=(0,r.useState)(!0),[p,f]=(0,r.useState)(!1),[v,b]=(0,r.useState)(""),[y,j]=(0,r.useState)([]),[C,N]=(0,r.useState)(!0),w=(0,r.useCallback)(async()=>{try{let t=await x.rpcClient.api.admin.apps[":appId"]["api-keys"].$get({param:{appId:e}});if(t.ok){let e=await t.json();j(e.keys)}}catch(e){console.error("Failed to fetch API keys:",e)}finally{N(!1)}},[e]);(0,r.useEffect)(()=>{(async function(){try{let t=await x.rpcClient.api.admin.apps[":appId"].$get({param:{appId:e}});if(t.ok){let e=await t.json();c(e),b(e.name)}}catch(e){console.error("Failed to fetch data:",e)}finally{m(!1)}})(),w()},[e,w]);let k=async()=>{if(!v.trim())return void g.toast.error("Name is required");f(!0);try{let t=await x.rpcClient.api.admin.apps[":appId"].$put({param:{appId:e},json:{name:v.trim()}});if(t.ok){let e=await t.json();c(e),g.toast.success("App name updated successfully")}else g.toast.error("Failed to update app name")}catch(e){console.error("Failed to update app:",e),g.toast.error("Failed to update app name")}finally{f(!1)}},D=d&&v!==d.name;return u?(0,t.jsx)("div",{className:"space-y-6",children:(0,t.jsxs)(n.Card,{children:[(0,t.jsx)(n.CardHeader,{children:(0,t.jsx)(i.Skeleton,{className:"h-5 w-24"})}),(0,t.jsxs)(n.CardContent,{className:"space-y-4",children:[(0,t.jsx)(i.Skeleton,{className:"h-4 w-full"}),(0,t.jsx)(i.Skeleton,{className:"h-4 w-3/4"})]})]})}):(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)(n.Card,{children:[(0,t.jsxs)(n.CardHeader,{children:[(0,t.jsx)(n.CardTitle,{children:"General"}),(0,t.jsx)(n.CardDescription,{children:"Application settings and information"})]}),(0,t.jsxs)(n.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(l.Label,{htmlFor:"name",children:"App Name"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(o.Input,{id:"name",value:v,onChange:e=>b(e.target.value),placeholder:"Enter app name",className:"max-w-md"}),(0,t.jsx)(s.Button,{onClick:k,disabled:!D||p,children:p?"Saving...":"Save"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground text-sm font-medium",children:"App ID"}),(0,t.jsx)("p",{className:"font-mono text-sm",children:d?.appId})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground text-sm font-medium",children:"Created"}),(0,t.jsx)("p",{className:"text-sm",children:d?.createdAt?q(d.createdAt):"-"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground text-sm font-medium",children:"Last Updated"}),(0,t.jsx)("p",{className:"text-sm",children:d?.updatedAt?q(d.updatedAt):"-"})]})]}),d?.metadata&&Object.keys(d.metadata).length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground mb-2 text-sm font-medium",children:"Metadata"}),(0,t.jsx)("pre",{className:"bg-muted overflow-auto rounded-md p-2 text-xs",children:JSON.stringify(d.metadata,null,2)})]})]})]}),(0,t.jsxs)(n.Card,{children:[(0,t.jsx)(n.CardHeader,{children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.CardTitle,{children:"API Keys"}),(0,t.jsx)(n.CardDescription,{children:"Manage API keys for this application"})]}),(0,t.jsx)(W,{appId:e,onKeyCreated:w,isFirstKey:0===y.length&&!C})]})}),(0,t.jsx)(n.CardContent,{children:0!==y.length||C?(0,t.jsx)(h,{keys:y,isLoading:C,appId:e,onRevoke:w}):(0,t.jsx)("div",{className:"py-6 text-center",children:(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"No API keys yet. Create one to start using the API."})})})]})]})}e.s(["default",()=>Y],78329)}]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,19836,e=>{"use strict";function t(e,r,{checkForDefaultPrevented:n=!0}={}){return function(t){if(e?.(t),!1===n||!t.defaultPrevented)return r?.(t)}}"undefined"!=typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",()=>t])},2890,e=>{"use strict";var t=e.i(38652),r=e.i(21628);function n(e,n){let i=t.createContext(n),o=e=>{let{children:n,...o}=e,s=t.useMemo(()=>o,Object.values(o));return(0,r.jsx)(i.Provider,{value:s,children:n})};return o.displayName=e+"Provider",[o,function(r){let o=t.useContext(i);if(o)return o;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${e}\``)}]}function i(e,n=[]){let o=[],s=()=>{let r=o.map(e=>t.createContext(e));return function(n){let i=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return s.scopeName=e,[function(n,i){let s=t.createContext(i),a=o.length;o=[...o,i];let l=n=>{let{scope:i,children:o,...l}=n,u=i?.[e]?.[a]||s,c=t.useMemo(()=>l,Object.values(l));return(0,r.jsx)(u.Provider,{value:c,children:o})};return l.displayName=n+"Provider",[l,function(r,o){let l=o?.[e]?.[a]||s,u=t.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return n.scopeName=r.scopeName,n}(s,...n)]}e.s(["createContext",()=>n,"createContextScope",()=>i])},35015,e=>{"use strict";var t=e.i(38652),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",()=>r])},51606,e=>{"use strict";var t=e.i(38652),r=e.i(35015);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function i({prop:e,defaultProp:r,onChange:i=()=>{},caller:o}){let[s,a,l]=function({defaultProp:e,onChange:r}){let[i,o]=t.useState(e),s=t.useRef(i),a=t.useRef(r);return n(()=>{a.current=r},[r]),t.useEffect(()=>{s.current!==i&&(a.current?.(i),s.current=i)},[i,s]),[i,o,a]}({defaultProp:r,onChange:i}),u=void 0!==e,c=u?e:s;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=u},[u,o])}return[c,t.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else a(t)},[u,e,a,l])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",()=>i],51606)},49119,e=>{"use strict";var t=e.i(38652);function r(e){let r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}e.s(["useCallbackRef",()=>r])},95668,e=>{"use strict";var t,r=e.i(38652),n=e.i(19836),i=e.i(27045),o=e.i(52410),s=e.i(49119),a=e.i(21628),l="dismissableLayer.update",u=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),c=r.forwardRef((e,c)=>{let{disableOutsidePointerEvents:p=!1,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:h,onDismiss:y,...x}=e,b=r.useContext(u),[w,E]=r.useState(null),C=w?.ownerDocument??globalThis?.document,[,R]=r.useState({}),A=(0,o.useComposedRefs)(c,e=>E(e)),D=Array.from(b.layers),[N]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),k=D.indexOf(N),S=w?D.indexOf(w):-1,O=b.layersWithOutsidePointerEventsDisabled.size>0,T=S>=k,j=function(e,t=globalThis?.document){let n=(0,s.useCallbackRef)(e),i=r.useRef(!1),o=r.useRef(()=>{});return r.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let r=function(){f("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);i.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...b.branches].some(e=>e.contains(t));T&&!r&&(v?.(e),h?.(e),e.defaultPrevented||y?.())},C),P=function(e,t=globalThis?.document){let n=(0,s.useCallbackRef)(e),i=r.useRef(!1);return r.useEffect(()=>{let e=e=>{e.target&&!i.current&&f("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...b.branches].some(e=>e.contains(t))&&(g?.(e),h?.(e),e.defaultPrevented||y?.())},C);return!function(e,t=globalThis?.document){let n=(0,s.useCallbackRef)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{S===b.layers.size-1&&(m?.(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},C),r.useEffect(()=>{if(w)return p&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(t=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(w)),b.layers.add(w),d(),()=>{p&&1===b.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=t)}},[w,C,p,b]),r.useEffect(()=>()=>{w&&(b.layers.delete(w),b.layersWithOutsidePointerEventsDisabled.delete(w),d())},[w,b]),r.useEffect(()=>{let e=()=>R({});return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),(0,a.jsx)(i.Primitive.div,{...x,ref:A,style:{pointerEvents:O?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,n.composeEventHandlers)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,n.composeEventHandlers)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,n.composeEventHandlers)(e.onPointerDownCapture,j.onPointerDownCapture)})});function d(){let e=new CustomEvent(l);document.dispatchEvent(e)}function f(e,t,r,{discrete:n}){let o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?(0,i.dispatchDiscreteCustomEvent)(o,s):o.dispatchEvent(s)}c.displayName="DismissableLayer",r.forwardRef((e,t)=>{let n=r.useContext(u),s=r.useRef(null),l=(0,o.useComposedRefs)(t,s);return r.useEffect(()=>{let e=s.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,a.jsx)(i.Primitive.div,{...e,ref:l})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",()=>c],95668)},37928,e=>{"use strict";var t=e.i(38652),r=e.i(35015),n=t[" useId ".trim().toString()]||(()=>void 0),i=0;function o(e){let[o,s]=t.useState(n());return(0,r.useLayoutEffect)(()=>{e||s(e=>e??String(i++))},[e]),e||(o?`radix-${o}`:"")}e.s(["useId",()=>o])},27980,e=>{"use strict";var t=e.i(38652),r=e.i(23825),n=e.i(27045),i=e.i(35015),o=e.i(21628),s=t.forwardRef((e,s)=>{let{container:a,...l}=e,[u,c]=t.useState(!1);(0,i.useLayoutEffect)(()=>c(!0),[]);let d=a||u&&globalThis?.document?.body;return d?r.default.createPortal((0,o.jsx)(n.Primitive.div,{...l,ref:s}),d):null});s.displayName="Portal",e.s(["Portal",()=>s])},57961,e=>{"use strict";var t=e.i(38652),r=e.i(52410),n=e.i(35015),i=e=>{var i;let s,a,{present:l,children:u}=e,c=function(e){var r,i;let[s,a]=t.useState(),l=t.useRef(null),u=t.useRef(e),c=t.useRef("none"),[d,f]=(r=e?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>i[e][t]??e,r));return t.useEffect(()=>{let e=o(l.current);c.current="mounted"===d?e:"none"},[d]),(0,n.useLayoutEffect)(()=>{let t=l.current,r=u.current;if(r!==e){let n=c.current,i=o(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,n.useLayoutEffect)(()=>{if(s){let e,t=s.ownerDocument.defaultView??window,r=r=>{let n=o(l.current).includes(CSS.escape(r.animationName));if(r.target===s&&n&&(f("ANIMATION_END"),!u.current)){let r=s.style.animationFillMode;s.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===s.style.animationFillMode&&(s.style.animationFillMode=r)})}},n=e=>{e.target===s&&(c.current=o(l.current))};return s.addEventListener("animationstart",n),s.addEventListener("animationcancel",r),s.addEventListener("animationend",r),()=>{t.clearTimeout(e),s.removeEventListener("animationstart",n),s.removeEventListener("animationcancel",r),s.removeEventListener("animationend",r)}}f("ANIMATION_END")},[s,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(l),d="function"==typeof u?u({present:c.isPresent}):t.Children.only(u),f=(0,r.useComposedRefs)(c.ref,(i=d,(a=(s=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?i.ref:(a=(s=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?i.props.ref:i.props.ref||i.ref));return"function"==typeof u||c.isPresent?t.cloneElement(d,{ref:f}):null};function o(e){return e?.animationName||"none"}i.displayName="Presence",e.s(["Presence",()=>i])},34792,e=>{"use strict";var t=e.i(21628),r=e.i(52236);function n({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,r.cn)("bg-muted animate-pulse rounded-none",e),...n})}e.s(["Skeleton",()=>n])},24911,e=>{"use strict";var t=e.i(21628),r=e.i(52236);function n({className:e,type:n,...i}){return(0,t.jsx)("input",{type:n,"data-slot":"input",className:(0,r.cn)("dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 file:text-foreground placeholder:text-muted-foreground h-8 w-full min-w-0 rounded-none border bg-transparent px-2.5 py-1 text-xs transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs file:font-medium focus-visible:ring-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-1 md:text-xs",e),...i})}e.s(["Input",()=>n])},78835,e=>{"use strict";var t=e.i(21628),r=e.i(38652),n=e.i(2890),i=e.i(52410),o=e.i(87226),s=e.i(19836),a=e.i(78603),l="AlertDialog",[u,c]=(0,n.createContextScope)(l,[o.createDialogScope]),d=(0,o.createDialogScope)(),f=e=>{let{__scopeAlertDialog:r,...n}=e,i=d(r);return(0,t.jsx)(o.Root,{...i,...n,modal:!0})};f.displayName=l;var p=r.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...i}=e,s=d(n);return(0,t.jsx)(o.Trigger,{...s,...i,ref:r})});p.displayName="AlertDialogTrigger";var m=e=>{let{__scopeAlertDialog:r,...n}=e,i=d(r);return(0,t.jsx)(o.Portal,{...i,...n})};m.displayName="AlertDialogPortal";var v=r.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...i}=e,s=d(n);return(0,t.jsx)(o.Overlay,{...s,...i,ref:r})});v.displayName="AlertDialogOverlay";var g="AlertDialogContent",[h,y]=u(g),x=(0,a.createSlottable)("AlertDialogContent"),b=r.forwardRef((e,n)=>{let{__scopeAlertDialog:a,children:l,...u}=e,c=d(a),f=r.useRef(null),p=(0,i.useComposedRefs)(n,f),m=r.useRef(null);return(0,t.jsx)(o.WarningProvider,{contentName:g,titleName:w,docsSlug:"alert-dialog",children:(0,t.jsx)(h,{scope:a,cancelRef:m,children:(0,t.jsxs)(o.Content,{role:"alertdialog",...c,...u,ref:p,onOpenAutoFocus:(0,s.composeEventHandlers)(u.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,t.jsx)(x,{children:l}),(0,t.jsx)(k,{contentRef:f})]})})})});b.displayName=g;var w="AlertDialogTitle",E=r.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...i}=e,s=d(n);return(0,t.jsx)(o.Title,{...s,...i,ref:r})});E.displayName=w;var C="AlertDialogDescription",R=r.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...i}=e,s=d(n);return(0,t.jsx)(o.Description,{...s,...i,ref:r})});R.displayName=C;var A=r.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...i}=e,s=d(n);return(0,t.jsx)(o.Close,{...s,...i,ref:r})});A.displayName="AlertDialogAction";var D="AlertDialogCancel",N=r.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...s}=e,{cancelRef:a}=y(D,n),l=d(n),u=(0,i.useComposedRefs)(r,a);return(0,t.jsx)(o.Close,{...l,...s,ref:u})});N.displayName=D;var k=({contentRef:e})=>{let t=`\`${g}\` requires a description for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
You can add a description to the \`${g}\` by passing a \`${C}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
|
+
|
|
5
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${g}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
6
|
+
|
|
7
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return r.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null};e.s(["Action",()=>A,"AlertDialog",()=>f,"AlertDialogAction",()=>A,"AlertDialogCancel",()=>N,"AlertDialogContent",()=>b,"AlertDialogDescription",()=>R,"AlertDialogOverlay",()=>v,"AlertDialogPortal",()=>m,"AlertDialogTitle",()=>E,"AlertDialogTrigger",()=>p,"Cancel",()=>N,"Content",()=>b,"Description",()=>R,"Overlay",()=>v,"Portal",()=>m,"Root",()=>f,"Title",()=>E,"Trigger",()=>p,"createAlertDialogScope",()=>c],45950);var S=e.i(45950),S=S,O=e.i(52236),T=e.i(66691);function j({...e}){return(0,t.jsx)(S.Root,{"data-slot":"alert-dialog",...e})}function P({...e}){return(0,t.jsx)(S.Portal,{"data-slot":"alert-dialog-portal",...e})}function L({className:e,...r}){return(0,t.jsx)(S.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,O.cn)("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs",e),...r})}function I({className:e,size:r="default",...n}){return(0,t.jsxs)(P,{children:[(0,t.jsx)(L,{}),(0,t.jsx)(S.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,O.cn)("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/10 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-none p-4 ring-1 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm",e),...n})]})}function z({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,O.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})}function M({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,O.cn)("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})}function F({className:e,...r}){return(0,t.jsx)(S.Title,{"data-slot":"alert-dialog-title",className:(0,O.cn)("text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}function _({className:e,...r}){return(0,t.jsx)(S.Description,{"data-slot":"alert-dialog-description",className:(0,O.cn)("text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",e),...r})}function U({className:e,variant:r="default",size:n="default",...i}){return(0,t.jsx)(T.Button,{variant:r,size:n,asChild:!0,children:(0,t.jsx)(S.Action,{"data-slot":"alert-dialog-action",className:(0,O.cn)(e),...i})})}function $({className:e,variant:r="outline",size:n="default",...i}){return(0,t.jsx)(T.Button,{variant:r,size:n,asChild:!0,children:(0,t.jsx)(S.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,O.cn)(e),...i})})}e.s(["AlertDialog",()=>j,"AlertDialogAction",()=>U,"AlertDialogCancel",()=>$,"AlertDialogContent",()=>I,"AlertDialogDescription",()=>_,"AlertDialogFooter",()=>M,"AlertDialogHeader",()=>z,"AlertDialogTitle",()=>F],78835)},47714,e=>{"use strict";var t=e.i(38652),r=e.i(2890),n=e.i(52410),i=e.i(78603),o=e.i(21628);function s(e){let s=e+"CollectionProvider",[a,l]=(0,r.createContextScope)(s),[u,c]=a(s,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,i=t.default.useRef(null),s=t.default.useRef(new Map).current;return(0,o.jsx)(u,{scope:r,itemMap:s,collectionRef:i,children:n})};d.displayName=s;let f=e+"CollectionSlot",p=(0,i.createSlot)(f),m=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,s=c(f,r),a=(0,n.useComposedRefs)(t,s.collectionRef);return(0,o.jsx)(p,{ref:a,children:i})});m.displayName=f;let v=e+"CollectionItemSlot",g="data-radix-collection-item",h=(0,i.createSlot)(v),y=t.default.forwardRef((e,r)=>{let{scope:i,children:s,...a}=e,l=t.default.useRef(null),u=(0,n.useComposedRefs)(r,l),d=c(v,i);return t.default.useEffect(()=>(d.itemMap.set(l,{ref:l,...a}),()=>void d.itemMap.delete(l))),(0,o.jsx)(h,{...{[g]:""},ref:u,children:s})});return y.displayName=v,[{Provider:d,Slot:m,ItemSlot:y},function(r){let n=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},l]}var a=new WeakMap;function l(e,t){var r,n;let i,o,s;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=(r=e,n=t,i=r.length,(s=(o=u(n))>=0?o:i+o)<0||s>=i?-1:s);return -1===a?void 0:e[a]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],a.set(this,!0)}set(e,t){return a.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,s=u(e),a=s>=0?s:o+s,l=a<0||a>=o?-1:a;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,r),this;let c=this.size+ +!i;s<0&&a++;let d=[...this.#e],f=!1;for(let e=a;e<c;e++)if(a===e){let o=d[e];d[e]===t&&(o=d[e+1]),i&&this.delete(t),n=this.get(o),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=l(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=l(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return l(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>s])},45401,e=>{"use strict";var t=e.i(38652);e.i(21628);var r=t.createContext(void 0);function n(e){let n=t.useContext(r);return e||n||"ltr"}e.s(["useDirection",()=>n])},45356,e=>{"use strict";var t=e.i(38652),r=e.i(19836),n=e.i(47714),i=e.i(52410),o=e.i(2890),s=e.i(37928),a=e.i(27045),l=e.i(49119),u=e.i(51606),c=e.i(45401),d=e.i(21628),f="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[v,g,h]=(0,n.createCollection)(m),[y,x]=(0,o.createContextScope)(m,[h]),[b,w]=y(m),E=t.forwardRef((e,t)=>(0,d.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(C,{...e,ref:t})})}));E.displayName=m;var C=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:o,orientation:s,loop:v=!1,dir:h,currentTabStopId:y,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:w,onEntryFocus:E,preventScrollOnEntryFocus:C=!1,...R}=e,A=t.useRef(null),D=(0,i.useComposedRefs)(n,A),k=(0,c.useDirection)(h),[S,O]=(0,u.useControllableState)({prop:y,defaultProp:x??null,onChange:w,caller:m}),[T,j]=t.useState(!1),P=(0,l.useCallbackRef)(E),L=g(o),I=t.useRef(!1),[z,M]=t.useState(0);return t.useEffect(()=>{let e=A.current;if(e)return e.addEventListener(f,P),()=>e.removeEventListener(f,P)},[P]),(0,d.jsx)(b,{scope:o,orientation:s,dir:k,loop:v,currentTabStopId:S,onItemFocus:t.useCallback(e=>O(e),[O]),onItemShiftTab:t.useCallback(()=>j(!0),[]),onFocusableItemAdd:t.useCallback(()=>M(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>M(e=>e-1),[]),children:(0,d.jsx)(a.Primitive.div,{tabIndex:T||0===z?-1:0,"data-orientation":s,...R,ref:D,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{I.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!I.current;if(e.target===e.currentTarget&&t&&!T){let t=new CustomEvent(f,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=L().filter(e=>e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),C)}}I.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>j(!1))})})}),R="RovingFocusGroupItem",A=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:i,focusable:o=!0,active:l=!1,tabStopId:u,children:c,...f}=e,p=(0,s.useId)(),m=u||p,h=w(R,i),y=h.currentTabStopId===m,x=g(i),{onFocusableItemAdd:b,onFocusableItemRemove:E,currentTabStopId:C}=h;return t.useEffect(()=>{if(o)return b(),()=>E()},[o,b,E]),(0,d.jsx)(v.ItemSlot,{scope:i,id:m,focusable:o,active:l,children:(0,d.jsx)(a.Primitive.span,{tabIndex:y?0:-1,"data-orientation":h.orientation,...f,ref:n,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{o?h.onItemFocus(m):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(m)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return D[i]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=x().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=h.loop?(r=i,n=o+1,r.map((e,t)=>r[(n+t)%r.length])):i.slice(o+1)}setTimeout(()=>N(i))}}),children:"function"==typeof c?c({isCurrentTabStop:y,hasTabStop:null!=C}):c})})});A.displayName=R;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>A,"Root",()=>E,"createRovingFocusGroupScope",()=>x])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,45401,e=>{"use strict";var t=e.i(38652);e.i(21628);var r=t.createContext(void 0);function n(e){let n=t.useContext(r);return e||n||"ltr"}e.s(["useDirection",()=>n])},47714,e=>{"use strict";var t=e.i(38652),r=e.i(2890),n=e.i(52410),i=e.i(78603),s=e.i(21628);function o(e){let o=e+"CollectionProvider",[a,u]=(0,r.createContextScope)(o),[l,d]=a(o,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:r,children:n}=e,i=t.default.useRef(null),o=t.default.useRef(new Map).current;return(0,s.jsx)(l,{scope:r,itemMap:o,collectionRef:i,children:n})};c.displayName=o;let f=e+"CollectionSlot",p=(0,i.createSlot)(f),v=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,o=d(f,r),a=(0,n.useComposedRefs)(t,o.collectionRef);return(0,s.jsx)(p,{ref:a,children:i})});v.displayName=f;let m=e+"CollectionItemSlot",h="data-radix-collection-item",y=(0,i.createSlot)(m),g=t.default.forwardRef((e,r)=>{let{scope:i,children:o,...a}=e,u=t.default.useRef(null),l=(0,n.useComposedRefs)(r,u),c=d(m,i);return t.default.useEffect(()=>(c.itemMap.set(u,{ref:u,...a}),()=>void c.itemMap.delete(u))),(0,s.jsx)(y,{...{[h]:""},ref:l,children:o})});return g.displayName=m,[{Provider:c,Slot:v,ItemSlot:g},function(r){let n=d(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},u]}var a=new WeakMap;function u(e,t){var r,n;let i,s,o;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=(r=e,n=t,i=r.length,(o=(s=l(n))>=0?s:i+s)<0||o>=i?-1:o);return -1===a?void 0:e[a]}function l(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],a.set(this,!0)}set(e,t){return a.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),s=this.#e.length,o=l(e),a=o>=0?o:s+o,u=a<0||a>=s?-1:a;if(u===this.size||i&&u===this.size-1||-1===u)return this.set(t,r),this;let d=this.size+ +!i;o<0&&a++;let c=[...this.#e],f=!1;for(let e=a;e<d;e++)if(a===e){let s=c[e];c[e]===t&&(s=c[e+1]),i&&this.delete(t),n=this.get(s),this.set(t,r)}else{f||c[e-1]!==t||(f=!0);let r=c[f?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=u(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=u(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return u(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>o])},45356,e=>{"use strict";var t=e.i(38652),r=e.i(19836),n=e.i(47714),i=e.i(52410),s=e.i(2890),o=e.i(37928),a=e.i(27045),u=e.i(49119),l=e.i(51606),d=e.i(45401),c=e.i(21628),f="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[m,h,y]=(0,n.createCollection)(v),[g,b]=(0,s.createContextScope)(v,[y]),[x,w]=g(v),E=t.forwardRef((e,t)=>(0,c.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(C,{...e,ref:t})})}));E.displayName=v;var C=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:s,orientation:o,loop:m=!1,dir:y,currentTabStopId:g,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:E,preventScrollOnEntryFocus:C=!1,...R}=e,k=t.useRef(null),S=(0,i.useComposedRefs)(n,k),A=(0,d.useDirection)(y),[O,P]=(0,l.useControllableState)({prop:g,defaultProp:b??null,onChange:w,caller:v}),[T,D]=t.useState(!1),L=(0,u.useCallbackRef)(E),I=h(s),M=t.useRef(!1),[j,z]=t.useState(0);return t.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(f,L),()=>e.removeEventListener(f,L)},[L]),(0,c.jsx)(x,{scope:s,orientation:o,dir:A,loop:m,currentTabStopId:O,onItemFocus:t.useCallback(e=>P(e),[P]),onItemShiftTab:t.useCallback(()=>D(!0),[]),onFocusableItemAdd:t.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>z(e=>e-1),[]),children:(0,c.jsx)(a.Primitive.div,{tabIndex:T||0===j?-1:0,"data-orientation":o,...R,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!T){let t=new CustomEvent(f,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===O),...e].filter(Boolean).map(e=>e.ref.current),C)}}M.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>D(!1))})})}),R="RovingFocusGroupItem",k=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:i,focusable:s=!0,active:u=!1,tabStopId:l,children:d,...f}=e,p=(0,o.useId)(),v=l||p,y=w(R,i),g=y.currentTabStopId===v,b=h(i),{onFocusableItemAdd:x,onFocusableItemRemove:E,currentTabStopId:C}=y;return t.useEffect(()=>{if(s)return x(),()=>E()},[s,x,E]),(0,c.jsx)(m.ItemSlot,{scope:i,id:v,focusable:s,active:u,children:(0,c.jsx)(a.Primitive.span,{tabIndex:g?0:-1,"data-orientation":y.orientation,...f,ref:n,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{s?y.onItemFocus(v):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>y.onItemFocus(v)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void y.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return S[i]}(e,y.orientation,y.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&i.reverse();let s=i.indexOf(e.currentTarget);i=y.loop?(r=i,n=s+1,r.map((e,t)=>r[(n+t)%r.length])):i.slice(s+1)}setTimeout(()=>N(i))}}),children:"function"==typeof d?d({isCurrentTabStop:g,hasTabStop:null!=C}):d})})});k.displayName=R;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>k,"Root",()=>E,"createRovingFocusGroupScope",()=>b])},34792,e=>{"use strict";var t=e.i(21628),r=e.i(52236);function n({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,r.cn)("bg-muted animate-pulse rounded-none",e),...n})}e.s(["Skeleton",()=>n])},24911,e=>{"use strict";var t=e.i(21628),r=e.i(52236);function n({className:e,type:n,...i}){return(0,t.jsx)("input",{type:n,"data-slot":"input",className:(0,r.cn)("dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 file:text-foreground placeholder:text-muted-foreground h-8 w-full min-w-0 rounded-none border bg-transparent px-2.5 py-1 text-xs transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs file:font-medium focus-visible:ring-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-1 md:text-xs",e),...i})}e.s(["Input",()=>n])},35015,e=>{"use strict";var t=e.i(38652),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",()=>r])},57961,e=>{"use strict";var t=e.i(38652),r=e.i(52410),n=e.i(35015),i=e=>{var i;let o,a,{present:u,children:l}=e,d=function(e){var r,i;let[o,a]=t.useState(),u=t.useRef(null),l=t.useRef(e),d=t.useRef("none"),[c,f]=(r=e?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>i[e][t]??e,r));return t.useEffect(()=>{let e=s(u.current);d.current="mounted"===c?e:"none"},[c]),(0,n.useLayoutEffect)(()=>{let t=u.current,r=l.current;if(r!==e){let n=d.current,i=s(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),l.current=e}},[e,f]),(0,n.useLayoutEffect)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,r=r=>{let n=s(u.current).includes(CSS.escape(r.animationName));if(r.target===o&&n&&(f("ANIMATION_END"),!l.current)){let r=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=r)})}},n=e=>{e.target===o&&(d.current=s(u.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback(e=>{u.current=e?getComputedStyle(e):null,a(e)},[])}}(u),c="function"==typeof l?l({present:d.isPresent}):t.Children.only(l),f=(0,r.useComposedRefs)(d.ref,(i=c,(a=(o=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?i.ref:(a=(o=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?i.props.ref:i.props.ref||i.ref));return"function"==typeof l||d.isPresent?t.cloneElement(c,{ref:f}):null};function s(e){return e?.animationName||"none"}i.displayName="Presence",e.s(["Presence",()=>i])},2890,e=>{"use strict";var t=e.i(38652),r=e.i(21628);function n(e,n){let i=t.createContext(n),s=e=>{let{children:n,...s}=e,o=t.useMemo(()=>s,Object.values(s));return(0,r.jsx)(i.Provider,{value:o,children:n})};return s.displayName=e+"Provider",[s,function(r){let s=t.useContext(i);if(s)return s;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${e}\``)}]}function i(e,n=[]){let s=[],o=()=>{let r=s.map(e=>t.createContext(e));return function(n){let i=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(n,i){let o=t.createContext(i),a=s.length;s=[...s,i];let u=n=>{let{scope:i,children:s,...u}=n,l=i?.[e]?.[a]||o,d=t.useMemo(()=>u,Object.values(u));return(0,r.jsx)(l.Provider,{value:d,children:s})};return u.displayName=n+"Provider",[u,function(r,s){let u=s?.[e]?.[a]||o,l=t.useContext(u);if(l)return l;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return n.scopeName=r.scopeName,n}(o,...n)]}e.s(["createContext",()=>n,"createContextScope",()=>i])},49119,e=>{"use strict";var t=e.i(38652);function r(e){let r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}e.s(["useCallbackRef",()=>r])},19836,e=>{"use strict";function t(e,r,{checkForDefaultPrevented:n=!0}={}){return function(t){if(e?.(t),!1===n||!t.defaultPrevented)return r?.(t)}}"undefined"!=typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",()=>t])},51606,e=>{"use strict";var t=e.i(38652),r=e.i(35015);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function i({prop:e,defaultProp:r,onChange:i=()=>{},caller:s}){let[o,a,u]=function({defaultProp:e,onChange:r}){let[i,s]=t.useState(e),o=t.useRef(i),a=t.useRef(r);return n(()=>{a.current=r},[r]),t.useEffect(()=>{o.current!==i&&(a.current?.(i),o.current=i)},[i,o]),[i,s,a]}({defaultProp:r,onChange:i}),l=void 0!==e,d=l?e:o;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${s} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=l},[l,s])}return[d,t.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&u.current?.(r)}else a(t)},[l,e,a,u])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",()=>i],51606)},37928,e=>{"use strict";var t=e.i(38652),r=e.i(35015),n=t[" useId ".trim().toString()]||(()=>void 0),i=0;function s(e){let[s,o]=t.useState(n());return(0,r.useLayoutEffect)(()=>{e||o(e=>e??String(i++))},[e]),e||(s?`radix-${s}`:"")}e.s(["useId",()=>s])},95668,e=>{"use strict";var t,r=e.i(38652),n=e.i(19836),i=e.i(27045),s=e.i(52410),o=e.i(49119),a=e.i(21628),u="dismissableLayer.update",l=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d=r.forwardRef((e,d)=>{let{disableOutsidePointerEvents:p=!1,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:y,onDismiss:g,...b}=e,x=r.useContext(l),[w,E]=r.useState(null),C=w?.ownerDocument??globalThis?.document,[,R]=r.useState({}),k=(0,s.useComposedRefs)(d,e=>E(e)),S=Array.from(x.layers),[N]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),A=S.indexOf(N),O=w?S.indexOf(w):-1,P=x.layersWithOutsidePointerEventsDisabled.size>0,T=O>=A,D=function(e,t=globalThis?.document){let n=(0,o.useCallbackRef)(e),i=r.useRef(!1),s=r.useRef(()=>{});return r.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let r=function(){f("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",s.current),s.current=r,t.addEventListener("click",s.current,{once:!0})):r()}else t.removeEventListener("click",s.current);i.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));T&&!r&&(m?.(e),y?.(e),e.defaultPrevented||g?.())},C),L=function(e,t=globalThis?.document){let n=(0,o.useCallbackRef)(e),i=r.useRef(!1);return r.useEffect(()=>{let e=e=>{e.target&&!i.current&&f("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(h?.(e),y?.(e),e.defaultPrevented||g?.())},C);return!function(e,t=globalThis?.document){let n=(0,o.useCallbackRef)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{O===x.layers.size-1&&(v?.(e),!e.defaultPrevented&&g&&(e.preventDefault(),g()))},C),r.useEffect(()=>{if(w)return p&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(t=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(w)),x.layers.add(w),c(),()=>{p&&1===x.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=t)}},[w,C,p,x]),r.useEffect(()=>()=>{w&&(x.layers.delete(w),x.layersWithOutsidePointerEventsDisabled.delete(w),c())},[w,x]),r.useEffect(()=>{let e=()=>R({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)},[]),(0,a.jsx)(i.Primitive.div,{...b,ref:k,style:{pointerEvents:P?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,n.composeEventHandlers)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,n.composeEventHandlers)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,n.composeEventHandlers)(e.onPointerDownCapture,D.onPointerDownCapture)})});function c(){let e=new CustomEvent(u);document.dispatchEvent(e)}function f(e,t,r,{discrete:n}){let s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?(0,i.dispatchDiscreteCustomEvent)(s,o):s.dispatchEvent(o)}d.displayName="DismissableLayer",r.forwardRef((e,t)=>{let n=r.useContext(l),o=r.useRef(null),u=(0,s.useComposedRefs)(t,o);return r.useEffect(()=>{let e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,a.jsx)(i.Primitive.div,{...e,ref:u})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",()=>d],95668)},27980,e=>{"use strict";var t=e.i(38652),r=e.i(23825),n=e.i(27045),i=e.i(35015),s=e.i(21628),o=t.forwardRef((e,o)=>{let{container:a,...u}=e,[l,d]=t.useState(!1);(0,i.useLayoutEffect)(()=>d(!0),[]);let c=a||l&&globalThis?.document?.body;return c?r.default.createPortal((0,s.jsx)(n.Primitive.div,{...u,ref:o}),c):null});o.displayName="Portal",e.s(["Portal",()=>o])},70317,e=>{"use strict";var t=e.i(21628),r=e.i(52236);function n({className:e,size:n="default",...i}){return(0,t.jsx)("div",{"data-slot":"card","data-size":n,className:(0,r.cn)("ring-foreground/10 bg-card text-card-foreground group/card flex flex-col gap-4 overflow-hidden rounded-none py-4 text-xs/relaxed ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-2 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-none *:[img:last-child]:rounded-none",e),...i})}function i({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-none px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...n})}function s({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("text-sm font-medium group-data-[size=sm]/card:text-sm",e),...n})}function o({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-muted-foreground text-xs/relaxed",e),...n})}function a({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-4 group-data-[size=sm]/card:px-3",e),...n})}e.s(["Card",()=>n,"CardContent",()=>a,"CardDescription",()=>o,"CardHeader",()=>i,"CardTitle",()=>s])},23621,e=>{"use strict";var t=e.i(21628),r=e.i(7298),n=e.i(76930),i=e.i(52236);let s=(0,r.cva)("h-5 gap-1 rounded-none border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-colors overflow-hidden group/badge",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function o({className:e,variant:r="default",asChild:o=!1,...a}){let u=o?n.Slot.Root:"span";return(0,t.jsx)(u,{"data-slot":"badge","data-variant":r,className:(0,i.cn)(s({variant:r}),e),...a})}e.s(["Badge",()=>o])}]);
|