blade-code 0.11.2 → 0.11.4
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/blade.js +2 -2
- package/dist/{chunk-g0xtk1yy.js → chunk-1g7c3f82.js} +1 -1
- package/dist/chunk-1hknjamx.js +1 -0
- package/dist/{chunk-tx9tb485.js → chunk-3gbteqvh.js} +1 -1
- package/dist/{chunk-q6sr4979.js → chunk-3v9epq9s.js} +1 -1
- package/dist/{chunk-pjeks4cz.js → chunk-4077g2fm.js} +1 -1
- package/dist/{chunk-re8p2y22.js → chunk-49jbxty9.js} +1 -1
- package/dist/{chunk-xnys4bgs.js → chunk-5ce8ydjq.js} +1 -1
- package/dist/{chunk-ebvzp8tn.js → chunk-5kmxe14c.js} +1 -1
- package/dist/{chunk-s7x4x6xw.js → chunk-6m81sxfz.js} +1 -1
- package/dist/chunk-6p0hkf4f.js +1 -0
- package/dist/{chunk-yeandcre.js → chunk-77n1drhv.js} +1 -1
- package/dist/{chunk-vemyfx92.js → chunk-7m07qp5c.js} +1 -1
- package/dist/{chunk-6v23hdt8.js → chunk-870szc6v.js} +1 -1
- package/dist/{chunk-v0eanse2.js → chunk-8d8wsqam.js} +1 -1
- package/dist/{chunk-t3pkk95s.js → chunk-a1vvg4yf.js} +1 -1
- package/dist/{chunk-px45q235.js → chunk-asgmmaec.js} +2 -2
- package/dist/{chunk-n30najxq.js → chunk-b5cz00mt.js} +1 -1
- package/dist/{chunk-0kxya4ye.js → chunk-bw3920qg.js} +1 -1
- package/dist/chunk-c33wff11.js +2 -0
- package/dist/chunk-d7frbjn7.js +1 -0
- package/dist/{chunk-jbpasjg9.js → chunk-e0ft3vwg.js} +1 -1
- package/dist/{chunk-8q6zsznc.js → chunk-e4q0rcmz.js} +1 -1
- package/dist/chunk-eb10zapp.js +1 -0
- package/dist/{chunk-a95jmx2j.js → chunk-ed2hdrwe.js} +1 -1
- package/dist/{chunk-g2295k8s.js → chunk-eexs73bz.js} +1 -1
- package/dist/{chunk-k2rgg45h.js → chunk-egqep8py.js} +2 -2
- package/dist/chunk-g2kqz1mm.js +1 -0
- package/dist/{chunk-sdapqhj0.js → chunk-gmpsfkgg.js} +1 -1
- package/dist/chunk-gwf872nm.js +1 -0
- package/dist/{chunk-p36k2e96.js → chunk-hb680ebj.js} +1 -1
- package/dist/{chunk-7rz5dt79.js → chunk-hbkpavbp.js} +2 -2
- package/dist/chunk-hfbw50pk.js +357 -0
- package/dist/{chunk-enmn892r.js → chunk-hfwn38rm.js} +1 -1
- package/dist/{chunk-qhcd0ww0.js → chunk-js7fre4w.js} +1 -1
- package/dist/chunk-kj20ad32.js +1 -0
- package/dist/chunk-m61cx42n.js +1 -0
- package/dist/{chunk-g7pjgspy.js → chunk-myznexy5.js} +1 -1
- package/dist/chunk-n62b30d1.js +164 -0
- package/dist/{chunk-wnzr9h84.js → chunk-nad5spvc.js} +1 -1
- package/dist/{chunk-04qhtx2w.js → chunk-nfdtrn3t.js} +1 -1
- package/dist/{chunk-zf72e5w8.js → chunk-p4j7gxjk.js} +1 -1
- package/dist/{chunk-3ee357pw.js → chunk-phch3t6v.js} +78 -78
- package/dist/{chunk-kaj8jaj5.js → chunk-q534f3j5.js} +1 -1
- package/dist/{chunk-2fdghgmf.js → chunk-qzsmbk13.js} +2 -2
- package/dist/chunk-r8rvkas8.js +1 -0
- package/dist/{chunk-h4b4fn3t.js → chunk-r9egmztq.js} +1 -1
- package/dist/{chunk-xrgeakpy.js → chunk-rswfbvay.js} +1 -1
- package/dist/{chunk-qa86anwd.js → chunk-rwm2e0r4.js} +1 -1
- package/dist/{chunk-wan9q99y.js → chunk-s14zayxp.js} +1 -1
- package/dist/{chunk-4e4qtpca.js → chunk-saz6mwpq.js} +1 -1
- package/dist/{chunk-a3dz41pd.js → chunk-ty3gwnwq.js} +1 -1
- package/dist/{chunk-290p3r7a.js → chunk-v5t3kcac.js} +1 -1
- package/dist/{chunk-qyfbeg5h.js → chunk-vmhcc7f9.js} +1 -1
- package/dist/{chunk-er6zghgg.js → chunk-vsmnzhhz.js} +1 -1
- package/dist/{chunk-f9qrjd2f.js → chunk-vv6r417h.js} +1 -1
- package/dist/{chunk-zwe1a7xe.js → chunk-w8dxjbm8.js} +1 -1
- package/dist/{chunk-6x5f6she.js → chunk-whxkwaz1.js} +1 -1
- package/dist/{chunk-5s2x98rx.js → chunk-xhwdac1j.js} +1 -1
- package/dist/chunk-ydtsh19k.js +1 -0
- package/dist/{chunk-0wxnrjes.js → chunk-yjdyzb5z.js} +1 -1
- package/dist/web/assets/ChatView-CvuKp3Yl.js +17 -0
- package/dist/web/assets/{CodeBlockHighlighter-OvLyFs9U.js → CodeBlockHighlighter-CYiAdOLs.js} +1 -1
- package/dist/web/assets/FilePreview-DGolvoH6.js +8 -0
- package/dist/web/assets/KanbanBoard-DdwrLpvb.js +1 -0
- package/dist/web/assets/{MarkdownRenderer-BTxnqChi.js → MarkdownRenderer-fJny7W8J.js} +3 -3
- package/dist/web/assets/{ScrollArea-BdOqyQ3g.js → ScrollArea-CSCl8r35.js} +1 -1
- package/dist/web/assets/{SessionHistorySurface-DaKE2oKU.js → SessionHistorySurface-dttyHhtN.js} +1 -1
- package/dist/web/assets/SettingsModal-Bn9m-F-v.js +5 -0
- package/dist/web/assets/Sidebar-JYvLuHTi.js +1 -0
- package/dist/web/assets/{TaskSwitcher-DKelLFZm.js → TaskSwitcher-InE9ArQH.js} +1 -1
- package/dist/web/assets/{TerminalPanel-D5Rieq62.js → TerminalPanel-BLRAlQoa.js} +1 -1
- package/dist/web/assets/{archive-CsFSEMp9.js → archive-D3alcPOa.js} +1 -1
- package/dist/web/assets/{arrow-left-gaino9Tb.js → arrow-left-CNfcSdE2.js} +1 -1
- package/dist/web/assets/{calendar-clock-DfHUrEw9.js → calendar-clock-BoRTfsxW.js} +1 -1
- package/dist/web/assets/chevron-right-B8JH5N50.js +1 -0
- package/dist/web/assets/{clock-3-dWIDc9IF.js → clock-3-BGymk4sE.js} +1 -1
- package/dist/web/assets/{copy-BPfhyh47.js → copy-CLG3LQ2v.js} +1 -1
- package/dist/web/assets/{dist-RGayDvc-.js → dist-BtGkS2rG.js} +1 -1
- package/dist/web/assets/{download-BR2L5Wme.js → download-DxK6pukC.js} +1 -1
- package/dist/web/assets/{folder-8dmZJ2a6.js → folder-B0xRimYH.js} +1 -1
- package/dist/web/assets/index-BJdxoBtv.css +1 -0
- package/dist/web/assets/{index-DSa8Dzp7.js → index-DkwePtIh.js} +4 -4
- package/dist/web/assets/{pause-DLZIDFMB.js → pause-CKNq9DgJ.js} +1 -1
- package/dist/web/assets/{pencil-DkC0bPYD.js → pencil-CMjIwtk5.js} +1 -1
- package/dist/web/assets/{play-BVeNn6fv.js → play-BOz9Sqzf.js} +1 -1
- package/dist/web/assets/plus-BJIEQjD7.js +1 -0
- package/dist/web/assets/preload-helper-HI3NtP3B.js +1 -0
- package/dist/web/assets/{session-events-BuMTbIwu.js → session-events-B-hnDC4L.js} +3 -3
- package/dist/web/assets/{settings-msYyNDKx.js → settings-CP6ArjQ7.js} +1 -1
- package/dist/web/assets/team-BHlihaeV.js +1 -0
- package/dist/web/assets/{teamService-Bus5RDi1.js → teamService-DDfifLYm.js} +1 -1
- package/dist/web/assets/{terminal-Cp5WYo8w.js → terminal-BYHhWXe-.js} +1 -1
- package/dist/web/assets/tooltip-DJBQZhJD.js +1 -0
- package/dist/web/assets/triangle-alert-BCJaJaVj.js +1 -0
- package/dist/web/assets/{vendor-radix-L0yJCKJX.js → vendor-radix-BCAvgfOW.js} +1 -1
- package/dist/web/assets/{vendor-react-CHEIQMI-.js → vendor-react-DQwAdeyS.js} +1 -1
- package/dist/web/index.html +5 -5
- package/package.json +2 -2
- package/dist/chunk-21qsfewd.js +0 -1
- package/dist/chunk-3d4wgfkr.js +0 -1
- package/dist/chunk-634ymwg5.js +0 -1
- package/dist/chunk-65v1vjvg.js +0 -1
- package/dist/chunk-7p8r4q6f.js +0 -1
- package/dist/chunk-d4xsrx3z.js +0 -357
- package/dist/chunk-eg0s155w.js +0 -1
- package/dist/chunk-fb2x1026.js +0 -171
- package/dist/chunk-gff7a5q0.js +0 -1
- package/dist/chunk-gymecxcc.js +0 -1
- package/dist/chunk-p665f6pn.js +0 -1
- package/dist/chunk-sqsfztrv.js +0 -1
- package/dist/chunk-yjcp8jk1.js +0 -2
- package/dist/web/assets/ChatView-DysPZPwF.js +0 -17
- package/dist/web/assets/FilePreview-CkSPwPdW.js +0 -8
- package/dist/web/assets/KanbanBoard-DH1wApt6.js +0 -1
- package/dist/web/assets/SettingsModal-CWlSSO_E.js +0 -5
- package/dist/web/assets/Sidebar-Dirk-XAQ.js +0 -1
- package/dist/web/assets/chevron-right-Bvu2j6hB.js +0 -1
- package/dist/web/assets/index-B7RyuO2x.css +0 -1
- package/dist/web/assets/message-square-plus-BgC981WF.js +0 -1
- package/dist/web/assets/plus-kzdwas-3.js +0 -1
- package/dist/web/assets/preload-helper-DvgLbiBV.js +0 -1
- package/dist/web/assets/team-D3XOVbxL.js +0 -1
- package/dist/web/assets/triangle-alert-cGqHxFsZ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./preload-helper-
|
|
1
|
+
import{l as e}from"./preload-helper-HI3NtP3B.js";var t={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={en:{title:`Agent team`,members:`members`,tasks:`tasks`,noTasks:`No tasks`,expand:`Expand team`,collapse:`Collapse team`,delete:`Delete team`,worktree:`Isolated worktree`,recipient:`Message recipient`,broadcast:`Everyone`,messagePlaceholder:`Message teammate...`,send:`Send team message`,actionFailed:`Team action failed`,settingsTitle:`Agent Teams`,settingsHint:`Enable shared task graphs, teammate worktrees, and peer messaging`},zh:{title:`智能体团队`,members:`成员`,tasks:`任务`,noTasks:`暂无任务`,expand:`展开团队`,collapse:`收起团队`,delete:`删除团队`,worktree:`隔离工作树`,recipient:`消息收件人`,broadcast:`所有成员`,messagePlaceholder:`发送团队消息…`,send:`发送团队消息`,actionFailed:`团队操作失败`,settingsTitle:`Agent Teams`,settingsHint:`启用共享任务图、成员 worktree 与点对点消息`}};function t(t,n){return e[t][n]}export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-hePW80VL.js";import{ct as t,lt as n,st as r,ut as i}from"./session-events-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-hePW80VL.js";import{ct as t,lt as n,st as r,ut as i}from"./session-events-B-hnDC4L.js";import{F as a}from"./index-DkwePtIh.js";var o=r(i.Object({id:i.String(),name:i.String(),subagentType:i.String(),description:i.String(),agentId:i.Optional(i.String()),status:t([`leader`,`running`,`completed`,`failed`,`cancelled`,`unknown`]),result:i.Optional(i.Unknown()),stats:i.Optional(i.Unknown()),worktreePath:i.Optional(i.String())})),s=r(i.Object({id:i.String(),subject:i.String(),description:i.String(),status:t([`pending`,`blocked`,`running`,`completed`]),owner:i.Optional(i.String()),priority:t([`high`,`medium`,`low`]),dependsOn:i.Array(i.String()),blocks:i.Array(i.String()),result:i.Optional(i.String()),createdAt:i.String(),startedAt:i.Optional(i.String()),completedAt:i.Optional(i.String())})),c=r(i.Object({name:i.String(),description:i.Optional(i.String()),status:t([`idle`,`running`,`completed`,`failed`,`deleted`]),leadAgentId:i.String(),leadSessionId:i.Optional(i.String()),workspaceRoot:i.Optional(i.String()),peerMessagingEnabled:i.Boolean(),createdAt:i.Number(),updatedAt:i.Number(),deletedAt:i.Optional(i.Number()),members:i.Array(o),tasks:i.Array(s)}));r(i.Object({sessionId:i.String({minLength:1}),projectPath:i.String({minLength:1}),name:i.String({minLength:1}),description:i.Optional(i.String()),leadAgentType:i.Optional(i.String()),peerMessagingEnabled:i.Optional(i.Boolean()),members:i.Array(i.Object({name:i.String({minLength:1}),subagentType:i.String({minLength:1}),description:i.Optional(i.String()),prompt:i.String({minLength:10,maxLength:32768})}),{maxItems:32}),tasks:i.Optional(i.Array(i.Object({subject:i.String({minLength:1}),description:i.String({minLength:1}),dependsOn:i.Optional(i.Array(i.String())),assignedTo:i.Optional(i.String()),priority:i.Optional(t([`high`,`medium`,`low`]))}),{maxItems:256}))})),r(i.Object({sessionId:i.String({minLength:1}),projectPath:i.String({minLength:1}),to:i.String({minLength:1}),message:i.String({minLength:1,maxLength:32768})})),r(i.Object({sessionId:i.String({minLength:1}),projectPath:i.String({minLength:1}),memberId:i.String({minLength:1})}));var l=e({teamService:()=>d}),u=i.Array(c),d={list:async e=>{let t=new URLSearchParams({sessionId:e.sessionId,projectPath:e.projectPath});return n(u,await a(`/teams?${t.toString()}`))},sendMessage:async(e,t,n,r)=>{await a(`/teams/${encodeURIComponent(t)}/messages`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({sessionId:e.sessionId,projectPath:e.projectPath,to:n,message:r})})},delete:async(e,t)=>{let n=new URLSearchParams({sessionId:e.sessionId,projectPath:e.projectPath});return c.parse(await a(`/teams/${encodeURIComponent(t)}?${n.toString()}`,{method:`DELETE`}))}};export{l as n,d as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./preload-helper-
|
|
1
|
+
import{l as e}from"./preload-helper-HI3NtP3B.js";var t={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{dt as t}from"./session-events-B-hnDC4L.js";import{C as n,i as r,n as i,r as a,t as o}from"./vendor-radix-BCAvgfOW.js";import{l as s}from"./preload-helper-HI3NtP3B.js";import{U as c}from"./index-DkwePtIh.js";var l={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};l.node;var u=s(l),d={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};d.node;var f=s(d),p={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};p.node;var m=s(p),h={name:`message-square-plus`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]};h.node;var g=s(h),_=e(t(),1),v=n(),y=i,b=a,x=r,S=_.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,v.jsx)(o,{ref:r,sideOffset:t,className:c(`z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=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 origin-[--radix-tooltip-content-transform-origin]`,e),...n}));S.displayName=o.displayName;export{g as a,u as c,x as i,S as n,m as o,y as r,f as s,b as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e}from"./preload-helper-HI3NtP3B.js";var t={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};t.node;var n=e(t),r={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};r.node;var i=e(r),a={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};a.node;var o=e(a);export{i as n,n as r,o as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{dt as n}from"./session-events-BuMTbIwu.js";var r=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return s(e,t,null,n)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.4`})),i=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=r()})),a=e(n(),1),o=Object.defineProperty,s=(e,t)=>o(e,`name`,{value:t,configurable:!0});function c(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}s(c,`setRef`);function l(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():c(e[t],null)}}}}s(l,`composeRefs`);function u(...e){return a.useCallback(l(...e),e)}s(u,`useComposedRefs`);var d=e(i(),1),f=Object.defineProperty,p=(e,t)=>f(e,`name`,{value:t,configurable:!0});function m(e){let t=a.forwardRef((t,n)=>{let{children:r,...i}=t,o=null,s=!1,c=[];C(r)&&typeof D==`function`&&(r=D(r._payload)),a.Children.forEach(r,e=>{if(x(e)){s=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;C(n)&&typeof D==`function`&&(n=D(n._payload)),o=v(t,n),c.push(o?.props?.children)}else c.push(e)}),o?o=a.cloneElement(o,void 0,c):!s&&a.Children.count(r)===1&&a.isValidElement(r)&&(o=r);let l=o?b(o):void 0,d=u(n,l);if(!o){if(r||r===0)throw Error(s?E(e):T(e));return r}let f=y(i,o.props??{});return o.type!==a.Fragment&&(f.ref=n?d:l),a.cloneElement(o,f)});return t.displayName=`${e}.Slot`,t}p(m,`createSlot`);var h=m(`Slot`),g=Symbol.for(`radix.slottable`);function _(e){let t=p(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=g,t}p(_,`createSlottable`);var v=p((e,t)=>{if(`child`in e.props){let t=e.props.child;return a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null}return a.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function y(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}p(y,`mergeProps`);function b(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}p(b,`getElementRef`);function x(e){return a.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===g}p(x,`isSlottable`);var S=Symbol.for(`react.lazy`);function C(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===S&&`_payload`in e&&w(e._payload)}p(C,`isLazyComponent`);function w(e){return typeof e==`object`&&!!e&&`then`in e}p(w,`isPromiseLike`);var T=p(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),E=p(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),D=a.use,O=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),ee=t(((e,t)=>{t.exports=O()})),k=Object.defineProperty,A=(e,t)=>k(e,`name`,{value:t,configurable:!0}),te=!!(typeof window<`u`&&window.document&&window.document.createElement);function j(e,t,{checkForDefaultPrevented:n=!0}={}){return A(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}A(j,`composeEventHandlers`);function M(e){if(!te)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}A(M,`getOwnerWindow`);function ne(e){if(!te)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}A(ne,`getOwnerDocument`);function re(e,t=!1){let{activeElement:n}=ne(e);if(!n?.nodeName)return null;if(ie(n)&&n.contentDocument)return re(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=ne(n).getElementById(e);if(t)return t}}return n}A(re,`getActiveElement`);function ie(e){return e.tagName===`IFRAME`}A(ie,`isFrame`);var N=ee(),ae=Object.defineProperty,P=(e,t)=>ae(e,`name`,{value:t,configurable:!0});function oe(e,t){let n=a.createContext(t);n.displayName=e+`Context`;let r=P(e=>{let{children:t,...r}=e,i=a.useMemo(()=>r,Object.values(r));return(0,N.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:o=!1}=i,s=a.useContext(n);if(s)return s;if(t!==void 0)return t;if(!o)throw Error(`\`${r}\` must be used within \`${e}\``)}return P(i,`useContext`),[r,i]}P(oe,`createContext`);function se(e,t=[]){let n=[];function r(t,r){let i=a.createContext(r);i.displayName=t+`Context`;let o=n.length;n=[...n,r];let s=P(t=>{let{scope:n,children:r,...s}=t,c=n?.[e]?.[o]||i,l=a.useMemo(()=>s,Object.values(s));return(0,N.jsx)(c.Provider,{value:l,children:r})},`Provider`);s.displayName=t+`Provider`;function c(n,s,c={}){let{optional:l=!1}=c,u=s?.[e]?.[o]||i,d=a.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return P(c,`useContext`),[s,c]}P(r,`createContext`);let i=P(()=>{let t=n.map(e=>a.createContext(e));return P(function(n){let r=n?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,ce(i,...t)]}P(se,`createContextScope`);function ce(...e){let t=e[0];if(e.length===1)return t;let n=P(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return P(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}P(ce,`composeContextScopes`);var F=globalThis?.document?a.useLayoutEffect:()=>{},le=Object.defineProperty,ue=(e,t)=>le(e,`name`,{value:t,configurable:!0}),de=a.useId||(()=>void 0),fe=0;function pe(e){let[t,n]=a.useState(de());return F(()=>{e||n(e=>e??String(fe++))},[e]),e||(t?`radix-${t}`:``)}ue(pe,`useId`);var me=Object.defineProperty,he=(e,t)=>me(e,`name`,{value:t,configurable:!0}),ge=a.useEffectEvent,_e=a.useInsertionEffect;function ve(e){if(typeof ge==`function`)return ge(e);let t=a.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof _e==`function`?_e(()=>{t.current=e}):F(()=>{t.current=e}),a.useMemo(()=>((...e)=>t.current?.(...e)),[])}he(ve,`useEffectEvent`);var ye=Object.defineProperty,be=(e,t)=>ye(e,`name`,{value:t,configurable:!0}),xe=a.useInsertionEffect||F;function Se({prop:e,defaultProp:t,onChange:n=be(()=>{},`onChange`),caller:r}){let[i,o,s]=Ce({defaultProp:t,onChange:n}),c=e!==void 0;return[c?e:i,a.useCallback(t=>{if(c){let n=we(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}be(Se,`useControllableState`);function Ce({defaultProp:e,onChange:t}){let[n,r]=a.useState(e),i=a.useRef(n),o=a.useRef(t);return xe(()=>{o.current=t},[t]),a.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}be(Ce,`useUncontrolledState`);function we(e){return typeof e==`function`}be(we,`isFunction`);var Te=Symbol(`RADIX:SYNC_STATE`);function Ee(e,t,n,r){let{prop:i,defaultProp:o,onChange:s,caller:c}=t,l=i!==void 0,u=ve(s),d=[{...n,state:o}];r&&d.push(r);let[f,p]=a.useReducer((t,n)=>{if(n.type===Te)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=a.useRef(m);a.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let g=a.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return a.useEffect(()=>{l&&!Object.is(i,f.state)&&p({type:Te,state:i})},[i,f.state,l]),[g,p]}be(Ee,`useControllableStateReducer`);var De=Object.defineProperty,Oe=(e,t)=>De(e,`name`,{value:t,configurable:!0}),I=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=m(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,N.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ke(e,t){e&&d.flushSync(()=>e.dispatchEvent(t))}Oe(ke,`dispatchDiscreteCustomEvent`);var Ae=Object.defineProperty,je=(e,t)=>Ae(e,`name`,{value:t,configurable:!0});function L(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>((...e)=>t.current?.(...e)),[])}je(L,`useCallbackRef`);var Me=Object.defineProperty,R=(e,t)=>Me(e,`name`,{value:t,configurable:!0}),Ne=`dismissableLayer.update`,Pe=`dismissableLayer.pointerDownOutside`,Fe=`dismissableLayer.focusOutside`,Ie,Le=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Re=a.forwardRef(R(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...d}=e,f=a.useContext(Le),[p,m]=a.useState(null),h=p?.ownerDocument??globalThis?.document,[,g]=a.useState({}),_=u(t,m),v=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=y?v.indexOf(y):-1,x=p?v.indexOf(p):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,w=a.useRef(!1),T=Ve(e=>{o?.(e),c?.(e),e.defaultPrevented||l?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:a.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return C&&!t},[f.branches,C])}),E=He(e=>{if(r&&w.current)return;let t=e.target;[...f.branches].some(e=>e.contains(t))||(s?.(e),c?.(e),e.defaultPrevented||l?.())},h),D=p?x===v.length-1:!1,O=L(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return a.useEffect(()=>{if(D)return h.addEventListener(`keydown`,O,{capture:!0}),()=>h.removeEventListener(`keydown`,O,{capture:!0})},[h,D,O]),a.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Ie=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),Ue(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),f.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Ie))}},[p,h,n,f]),a.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),Ue())},[p,f]),a.useEffect(()=>{let e=R(()=>g({}),`handleUpdate`);return document.addEventListener(Ne,e),()=>document.removeEventListener(Ne,e)},[]),(0,N.jsx)(I.div,{...d,ref:_,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:j(e.onFocusCapture,E.onFocusCapture),onBlurCapture:j(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`));function ze(){let e=a.useContext(Le),[t,n]=a.useState(null);return a.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}R(ze,`useDismissableLayerSurface`);var Be=R(()=>!0,`IS_TRUE`);function Ve(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:o,shouldHandlePointerDownOutside:s=Be}=t,c=L(e),l=a.useRef(!1),u=a.useRef(!1),d=a.useRef(new Map),f=a.useRef(()=>{});return a.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}R(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}R(t,`isOutsideInteractionIntercepted`);function a(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}R(a,`handleInteractionCapture`);function p(e){u.current&&d.current.set(e.type,!1)}R(p,`handleInteractionBubble`);let m=R(a=>{if(a.target&&!l.current){let o=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||We(Pe,c,p,{discrete:!0})};if(R(o,`handleAndDispatchPointerDownOutsideEvent`),!s(a.target)){n.removeEventListener(`click`,f.current),e(),l.current=!1;return}let p={originalEvent:a};u.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?o():(n.removeEventListener(`click`,f.current),f.current=o,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();l.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,a,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,f.current);for(let e of h)n.removeEventListener(e,a,!0),n.removeEventListener(e,p)}},[n,c,r,i,o,s]),{onPointerDownCapture:R(()=>l.current=!0,`onPointerDownCapture`)}}R(Ve,`usePointerDownOutside`);function He(e,t=globalThis?.document){let n=L(e),r=a.useRef(!1);return a.useEffect(()=>{let e=R(e=>{e.target&&!r.current&&We(Fe,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:R(()=>r.current=!0,`onFocusCapture`),onBlurCapture:R(()=>r.current=!1,`onBlurCapture`)}}R(He,`useFocusOutside`);function Ue(){let e=new CustomEvent(Ne);document.dispatchEvent(e)}R(Ue,`dispatchUpdate`);function We(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ke(i,a):i.dispatchEvent(a)}R(We,`handleAndDispatchCustomEvent`);var Ge=Object.defineProperty,z=(e,t)=>Ge(e,`name`,{value:t,configurable:!0}),Ke=`focusScope.autoFocusOnMount`,qe=`focusScope.autoFocusOnUnmount`,Je={bubbles:!1,cancelable:!0},Ye=a.forwardRef(z(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[c,l]=a.useState(null),d=L(i),f=L(o),p=a.useRef(null),m=u(t,l),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let e=function(e){if(h.paused||!c)return;let t=e.target;c.contains(t)?p.current=t:nt(p.current,{select:!0})},t=function(e){if(h.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||nt(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&nt(c)};z(e,`handleFocusIn`),z(t,`handleFocusOut`),z(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,h.paused]),a.useEffect(()=>{if(c){rt.add(h);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(Ke,Je);c.addEventListener(Ke,d),c.dispatchEvent(t),t.defaultPrevented||(Xe(ot(Qe(c)),{select:!0}),document.activeElement===e&&nt(c))}return()=>{c.removeEventListener(Ke,d),setTimeout(()=>{let t=new CustomEvent(qe,Je);c.addEventListener(qe,f),c.dispatchEvent(t),t.defaultPrevented||nt(e??document.body,{select:!0}),c.removeEventListener(qe,f),rt.remove(h)},0)}}},[c,d,f,h]);let g=a.useCallback(e=>{if(!n&&!r||h.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Ze(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&nt(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&nt(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,h.paused]);return(0,N.jsx)(I.div,{tabIndex:-1,...s,ref:m,onKeyDown:g})},`FocusScope`));function Xe(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(nt(r,{select:t}),document.activeElement!==n)return}z(Xe,`focusFirst`);function Ze(e){let t=Qe(e);return[$e(t,e),$e(t.reverse(),e)]}z(Ze,`getTabbableEdges`);function Qe(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:z(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}z(Qe,`getTabbableCandidates`);function $e(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):et(r,{upTo:t})))return r}z($e,`findVisible`);function et(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}z(et,`isHidden`);function tt(e){return e instanceof HTMLInputElement&&`select`in e}z(tt,`isSelectableInput`);function nt(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tt(e)&&t&&e.select()}}z(nt,`focus`);var rt=it();function it(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=at(e,t),e.unshift(t)},remove(t){e=at(e,t),e[0]?.resume()}}}z(it,`createFocusScopesStack`);function at(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}z(at,`arrayRemove`);function ot(e){return e.filter(e=>e.tagName!==`A`)}z(ot,`removeLinks`);var st=Object.defineProperty,ct=a.forwardRef(((e,t)=>st(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,o]=a.useState(!1);F(()=>o(!0),[]);let s=n||i&&globalThis?.document?.body;return s?d.createPortal((0,N.jsx)(I.div,{...r,ref:t}),s):null},`Portal`)),lt=Object.defineProperty,ut=(e,t)=>lt(e,`name`,{value:t,configurable:!0});function dt(e,t){return a.useReducer((e,n)=>t[e][n]??e,e)}ut(dt,`useStateMachine`);var B=ut(e=>{let{present:t,children:n}=e,r=ft(t),i=typeof n==`function`?n({present:r.isPresent}):a.Children.only(n),o=mt(r.ref,gt(i));return typeof n==`function`||r.isPresent?a.cloneElement(i,{ref:o}):null},`Presence`);function ft(e){let[t,n]=a.useState(),r=a.useRef(null),i=a.useRef(e),o=a.useRef(`none`),s=a.useRef(void 0),[c,l]=dt(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return a.useEffect(()=>{c===`mounted`?(o.current=s.current??ht(r.current),s.current=void 0):o.current=`none`},[c]),F(()=>{let t=r.current,n=i.current;if(n!==e){let r=o.current,a=ht(t);e?(s.current=a,l(`MOUNT`)):a===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==a?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),F(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,a=ut(a=>{let o=ht(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=ut(e=>{e.target===t&&(o.current=ht(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,a),t.addEventListener(`animationend`,a),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,a),t.removeEventListener(`animationend`,a)}}l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(c),ref:a.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,s.current=ht(t)}else r.current=null;n(e)},[])}}ut(ft,`usePresence`);function pt(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}ut(pt,`setRef`);function mt(...e){let t=a.useRef(e);return t.current=e,a.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=pt(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():pt(n[e],null)}}},[])}ut(mt,`useStableComposedRefs`);function ht(e){return e?.animationName||`none`}ut(ht,`getAnimationName`);function gt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}ut(gt,`getElementRef`);var _t=Object.defineProperty,vt=(e,t)=>_t(e,`name`,{value:t,configurable:!0}),yt=0,bt=null;function xt(e){return St(),e.children}vt(xt,`FocusGuards`);function St(){a.useEffect(()=>{bt||={start:Ct(),end:Ct()};let{start:e,end:t}=bt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),yt++,()=>{yt===1&&(bt?.start.remove(),bt?.end.remove(),bt=null),yt=Math.max(0,yt-1)}},[])}vt(St,`useFocusGuards`);function Ct(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}vt(Ct,`createFocusGuard`);var V=function(){return V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},V.apply(this,arguments)};function wt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Tt(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function Et(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Dt=`right-scroll-bar-position`,Ot=`width-before-scroll-bar`,kt=`with-scroll-bars-hidden`,At=`--removed-body-scroll-bar-size`;function jt(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Mt(e,t){var n=(0,a.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Nt=typeof window<`u`?a.useLayoutEffect:a.useEffect,Pt=new WeakMap;function Ft(e,t){var n=Mt(t||null,function(t){return e.forEach(function(e){return jt(e,t)})});return Nt(function(){var t=Pt.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||jt(e,null)}),i.forEach(function(e){r.has(e)||jt(e,a)})}Pt.set(n,e)},[e]),n}function It(e){return e}function Lt(e,t){t===void 0&&(t=It);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Rt(e){e===void 0&&(e={});var t=Lt(null);return t.options=V({async:!0,ssr:!1},e),t}var zt=function(e){var t=e.sideCar,n=wt(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return a.createElement(r,V({},n))};zt.isSideCarExport=!0;function Bt(e,t){return e.useMedium(t),zt}var Vt=Rt(),Ht=function(){},Ut=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Ht,onWheelCapture:Ht,onTouchMoveCapture:Ht}),i=r[0],o=r[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=wt(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=Ft([n,t]),w=V(V({},x),i);return a.createElement(a.Fragment,null,d&&a.createElement(S,{sideCar:Vt,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:o,allowPinchZoom:!!_,lockRef:n,gapMode:b}),s?a.cloneElement(a.Children.only(c),V(V({},w),{ref:C})):a.createElement(y,V({},w,{className:l,ref:C}),c))});Ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ut.classNames={fullWidth:Ot,zeroRight:Dt};var Wt=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Gt(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Wt();return t&&e.setAttribute(`nonce`,t),e}function Kt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qt(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Jt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gt())&&(Kt(t,n),qt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Yt=function(){var e=Jt();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xt=function(){var e=Yt();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Zt={left:0,top:0,right:0,gap:0},Qt=function(e){return parseInt(e||``,10)||0},$t=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Qt(n),Qt(r),Qt(i)]},en=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Zt;var t=$t(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tn=Xt(),nn=`data-scroll-locked`,rn=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
1
|
+
import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{dt as n}from"./session-events-B-hnDC4L.js";var r=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return s(e,t,null,n)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.4`})),i=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=r()})),a=e(n(),1),o=Object.defineProperty,s=(e,t)=>o(e,`name`,{value:t,configurable:!0});function c(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}s(c,`setRef`);function l(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():c(e[t],null)}}}}s(l,`composeRefs`);function u(...e){return a.useCallback(l(...e),e)}s(u,`useComposedRefs`);var d=e(i(),1),f=Object.defineProperty,p=(e,t)=>f(e,`name`,{value:t,configurable:!0});function m(e){let t=a.forwardRef((t,n)=>{let{children:r,...i}=t,o=null,s=!1,c=[];C(r)&&typeof D==`function`&&(r=D(r._payload)),a.Children.forEach(r,e=>{if(x(e)){s=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;C(n)&&typeof D==`function`&&(n=D(n._payload)),o=v(t,n),c.push(o?.props?.children)}else c.push(e)}),o?o=a.cloneElement(o,void 0,c):!s&&a.Children.count(r)===1&&a.isValidElement(r)&&(o=r);let l=o?b(o):void 0,d=u(n,l);if(!o){if(r||r===0)throw Error(s?E(e):T(e));return r}let f=y(i,o.props??{});return o.type!==a.Fragment&&(f.ref=n?d:l),a.cloneElement(o,f)});return t.displayName=`${e}.Slot`,t}p(m,`createSlot`);var h=m(`Slot`),g=Symbol.for(`radix.slottable`);function _(e){let t=p(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=g,t}p(_,`createSlottable`);var v=p((e,t)=>{if(`child`in e.props){let t=e.props.child;return a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null}return a.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function y(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}p(y,`mergeProps`);function b(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}p(b,`getElementRef`);function x(e){return a.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===g}p(x,`isSlottable`);var S=Symbol.for(`react.lazy`);function C(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===S&&`_payload`in e&&w(e._payload)}p(C,`isLazyComponent`);function w(e){return typeof e==`object`&&!!e&&`then`in e}p(w,`isPromiseLike`);var T=p(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),E=p(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),D=a.use,O=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),ee=t(((e,t)=>{t.exports=O()})),k=Object.defineProperty,A=(e,t)=>k(e,`name`,{value:t,configurable:!0}),te=!!(typeof window<`u`&&window.document&&window.document.createElement);function j(e,t,{checkForDefaultPrevented:n=!0}={}){return A(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}A(j,`composeEventHandlers`);function M(e){if(!te)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}A(M,`getOwnerWindow`);function ne(e){if(!te)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}A(ne,`getOwnerDocument`);function re(e,t=!1){let{activeElement:n}=ne(e);if(!n?.nodeName)return null;if(ie(n)&&n.contentDocument)return re(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=ne(n).getElementById(e);if(t)return t}}return n}A(re,`getActiveElement`);function ie(e){return e.tagName===`IFRAME`}A(ie,`isFrame`);var N=ee(),ae=Object.defineProperty,P=(e,t)=>ae(e,`name`,{value:t,configurable:!0});function oe(e,t){let n=a.createContext(t);n.displayName=e+`Context`;let r=P(e=>{let{children:t,...r}=e,i=a.useMemo(()=>r,Object.values(r));return(0,N.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:o=!1}=i,s=a.useContext(n);if(s)return s;if(t!==void 0)return t;if(!o)throw Error(`\`${r}\` must be used within \`${e}\``)}return P(i,`useContext`),[r,i]}P(oe,`createContext`);function se(e,t=[]){let n=[];function r(t,r){let i=a.createContext(r);i.displayName=t+`Context`;let o=n.length;n=[...n,r];let s=P(t=>{let{scope:n,children:r,...s}=t,c=n?.[e]?.[o]||i,l=a.useMemo(()=>s,Object.values(s));return(0,N.jsx)(c.Provider,{value:l,children:r})},`Provider`);s.displayName=t+`Provider`;function c(n,s,c={}){let{optional:l=!1}=c,u=s?.[e]?.[o]||i,d=a.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return P(c,`useContext`),[s,c]}P(r,`createContext`);let i=P(()=>{let t=n.map(e=>a.createContext(e));return P(function(n){let r=n?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,ce(i,...t)]}P(se,`createContextScope`);function ce(...e){let t=e[0];if(e.length===1)return t;let n=P(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return P(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}P(ce,`composeContextScopes`);var F=globalThis?.document?a.useLayoutEffect:()=>{},le=Object.defineProperty,ue=(e,t)=>le(e,`name`,{value:t,configurable:!0}),de=a.useId||(()=>void 0),fe=0;function pe(e){let[t,n]=a.useState(de());return F(()=>{e||n(e=>e??String(fe++))},[e]),e||(t?`radix-${t}`:``)}ue(pe,`useId`);var me=Object.defineProperty,he=(e,t)=>me(e,`name`,{value:t,configurable:!0}),ge=a.useEffectEvent,_e=a.useInsertionEffect;function ve(e){if(typeof ge==`function`)return ge(e);let t=a.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof _e==`function`?_e(()=>{t.current=e}):F(()=>{t.current=e}),a.useMemo(()=>((...e)=>t.current?.(...e)),[])}he(ve,`useEffectEvent`);var ye=Object.defineProperty,be=(e,t)=>ye(e,`name`,{value:t,configurable:!0}),xe=a.useInsertionEffect||F;function Se({prop:e,defaultProp:t,onChange:n=be(()=>{},`onChange`),caller:r}){let[i,o,s]=Ce({defaultProp:t,onChange:n}),c=e!==void 0;return[c?e:i,a.useCallback(t=>{if(c){let n=we(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}be(Se,`useControllableState`);function Ce({defaultProp:e,onChange:t}){let[n,r]=a.useState(e),i=a.useRef(n),o=a.useRef(t);return xe(()=>{o.current=t},[t]),a.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}be(Ce,`useUncontrolledState`);function we(e){return typeof e==`function`}be(we,`isFunction`);var Te=Symbol(`RADIX:SYNC_STATE`);function Ee(e,t,n,r){let{prop:i,defaultProp:o,onChange:s,caller:c}=t,l=i!==void 0,u=ve(s),d=[{...n,state:o}];r&&d.push(r);let[f,p]=a.useReducer((t,n)=>{if(n.type===Te)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=a.useRef(m);a.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let g=a.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return a.useEffect(()=>{l&&!Object.is(i,f.state)&&p({type:Te,state:i})},[i,f.state,l]),[g,p]}be(Ee,`useControllableStateReducer`);var De=Object.defineProperty,Oe=(e,t)=>De(e,`name`,{value:t,configurable:!0}),I=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=m(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,N.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ke(e,t){e&&d.flushSync(()=>e.dispatchEvent(t))}Oe(ke,`dispatchDiscreteCustomEvent`);var Ae=Object.defineProperty,je=(e,t)=>Ae(e,`name`,{value:t,configurable:!0});function L(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>((...e)=>t.current?.(...e)),[])}je(L,`useCallbackRef`);var Me=Object.defineProperty,R=(e,t)=>Me(e,`name`,{value:t,configurable:!0}),Ne=`dismissableLayer.update`,Pe=`dismissableLayer.pointerDownOutside`,Fe=`dismissableLayer.focusOutside`,Ie,Le=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Re=a.forwardRef(R(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...d}=e,f=a.useContext(Le),[p,m]=a.useState(null),h=p?.ownerDocument??globalThis?.document,[,g]=a.useState({}),_=u(t,m),v=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=y?v.indexOf(y):-1,x=p?v.indexOf(p):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,w=a.useRef(!1),T=Ve(e=>{o?.(e),c?.(e),e.defaultPrevented||l?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:a.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return C&&!t},[f.branches,C])}),E=He(e=>{if(r&&w.current)return;let t=e.target;[...f.branches].some(e=>e.contains(t))||(s?.(e),c?.(e),e.defaultPrevented||l?.())},h),D=p?x===v.length-1:!1,O=L(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return a.useEffect(()=>{if(D)return h.addEventListener(`keydown`,O,{capture:!0}),()=>h.removeEventListener(`keydown`,O,{capture:!0})},[h,D,O]),a.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Ie=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),Ue(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),f.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Ie))}},[p,h,n,f]),a.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),Ue())},[p,f]),a.useEffect(()=>{let e=R(()=>g({}),`handleUpdate`);return document.addEventListener(Ne,e),()=>document.removeEventListener(Ne,e)},[]),(0,N.jsx)(I.div,{...d,ref:_,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:j(e.onFocusCapture,E.onFocusCapture),onBlurCapture:j(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`));function ze(){let e=a.useContext(Le),[t,n]=a.useState(null);return a.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}R(ze,`useDismissableLayerSurface`);var Be=R(()=>!0,`IS_TRUE`);function Ve(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:o,shouldHandlePointerDownOutside:s=Be}=t,c=L(e),l=a.useRef(!1),u=a.useRef(!1),d=a.useRef(new Map),f=a.useRef(()=>{});return a.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}R(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}R(t,`isOutsideInteractionIntercepted`);function a(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}R(a,`handleInteractionCapture`);function p(e){u.current&&d.current.set(e.type,!1)}R(p,`handleInteractionBubble`);let m=R(a=>{if(a.target&&!l.current){let o=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||We(Pe,c,p,{discrete:!0})};if(R(o,`handleAndDispatchPointerDownOutsideEvent`),!s(a.target)){n.removeEventListener(`click`,f.current),e(),l.current=!1;return}let p={originalEvent:a};u.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?o():(n.removeEventListener(`click`,f.current),f.current=o,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();l.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,a,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,f.current);for(let e of h)n.removeEventListener(e,a,!0),n.removeEventListener(e,p)}},[n,c,r,i,o,s]),{onPointerDownCapture:R(()=>l.current=!0,`onPointerDownCapture`)}}R(Ve,`usePointerDownOutside`);function He(e,t=globalThis?.document){let n=L(e),r=a.useRef(!1);return a.useEffect(()=>{let e=R(e=>{e.target&&!r.current&&We(Fe,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:R(()=>r.current=!0,`onFocusCapture`),onBlurCapture:R(()=>r.current=!1,`onBlurCapture`)}}R(He,`useFocusOutside`);function Ue(){let e=new CustomEvent(Ne);document.dispatchEvent(e)}R(Ue,`dispatchUpdate`);function We(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ke(i,a):i.dispatchEvent(a)}R(We,`handleAndDispatchCustomEvent`);var Ge=Object.defineProperty,z=(e,t)=>Ge(e,`name`,{value:t,configurable:!0}),Ke=`focusScope.autoFocusOnMount`,qe=`focusScope.autoFocusOnUnmount`,Je={bubbles:!1,cancelable:!0},Ye=a.forwardRef(z(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[c,l]=a.useState(null),d=L(i),f=L(o),p=a.useRef(null),m=u(t,l),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let e=function(e){if(h.paused||!c)return;let t=e.target;c.contains(t)?p.current=t:nt(p.current,{select:!0})},t=function(e){if(h.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||nt(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&nt(c)};z(e,`handleFocusIn`),z(t,`handleFocusOut`),z(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,h.paused]),a.useEffect(()=>{if(c){rt.add(h);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(Ke,Je);c.addEventListener(Ke,d),c.dispatchEvent(t),t.defaultPrevented||(Xe(ot(Qe(c)),{select:!0}),document.activeElement===e&&nt(c))}return()=>{c.removeEventListener(Ke,d),setTimeout(()=>{let t=new CustomEvent(qe,Je);c.addEventListener(qe,f),c.dispatchEvent(t),t.defaultPrevented||nt(e??document.body,{select:!0}),c.removeEventListener(qe,f),rt.remove(h)},0)}}},[c,d,f,h]);let g=a.useCallback(e=>{if(!n&&!r||h.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Ze(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&nt(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&nt(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,h.paused]);return(0,N.jsx)(I.div,{tabIndex:-1,...s,ref:m,onKeyDown:g})},`FocusScope`));function Xe(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(nt(r,{select:t}),document.activeElement!==n)return}z(Xe,`focusFirst`);function Ze(e){let t=Qe(e);return[$e(t,e),$e(t.reverse(),e)]}z(Ze,`getTabbableEdges`);function Qe(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:z(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}z(Qe,`getTabbableCandidates`);function $e(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):et(r,{upTo:t})))return r}z($e,`findVisible`);function et(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}z(et,`isHidden`);function tt(e){return e instanceof HTMLInputElement&&`select`in e}z(tt,`isSelectableInput`);function nt(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tt(e)&&t&&e.select()}}z(nt,`focus`);var rt=it();function it(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=at(e,t),e.unshift(t)},remove(t){e=at(e,t),e[0]?.resume()}}}z(it,`createFocusScopesStack`);function at(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}z(at,`arrayRemove`);function ot(e){return e.filter(e=>e.tagName!==`A`)}z(ot,`removeLinks`);var st=Object.defineProperty,ct=a.forwardRef(((e,t)=>st(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,o]=a.useState(!1);F(()=>o(!0),[]);let s=n||i&&globalThis?.document?.body;return s?d.createPortal((0,N.jsx)(I.div,{...r,ref:t}),s):null},`Portal`)),lt=Object.defineProperty,ut=(e,t)=>lt(e,`name`,{value:t,configurable:!0});function dt(e,t){return a.useReducer((e,n)=>t[e][n]??e,e)}ut(dt,`useStateMachine`);var B=ut(e=>{let{present:t,children:n}=e,r=ft(t),i=typeof n==`function`?n({present:r.isPresent}):a.Children.only(n),o=mt(r.ref,gt(i));return typeof n==`function`||r.isPresent?a.cloneElement(i,{ref:o}):null},`Presence`);function ft(e){let[t,n]=a.useState(),r=a.useRef(null),i=a.useRef(e),o=a.useRef(`none`),s=a.useRef(void 0),[c,l]=dt(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return a.useEffect(()=>{c===`mounted`?(o.current=s.current??ht(r.current),s.current=void 0):o.current=`none`},[c]),F(()=>{let t=r.current,n=i.current;if(n!==e){let r=o.current,a=ht(t);e?(s.current=a,l(`MOUNT`)):a===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==a?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),F(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,a=ut(a=>{let o=ht(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=ut(e=>{e.target===t&&(o.current=ht(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,a),t.addEventListener(`animationend`,a),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,a),t.removeEventListener(`animationend`,a)}}l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(c),ref:a.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,s.current=ht(t)}else r.current=null;n(e)},[])}}ut(ft,`usePresence`);function pt(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}ut(pt,`setRef`);function mt(...e){let t=a.useRef(e);return t.current=e,a.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=pt(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():pt(n[e],null)}}},[])}ut(mt,`useStableComposedRefs`);function ht(e){return e?.animationName||`none`}ut(ht,`getAnimationName`);function gt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}ut(gt,`getElementRef`);var _t=Object.defineProperty,vt=(e,t)=>_t(e,`name`,{value:t,configurable:!0}),yt=0,bt=null;function xt(e){return St(),e.children}vt(xt,`FocusGuards`);function St(){a.useEffect(()=>{bt||={start:Ct(),end:Ct()};let{start:e,end:t}=bt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),yt++,()=>{yt===1&&(bt?.start.remove(),bt?.end.remove(),bt=null),yt=Math.max(0,yt-1)}},[])}vt(St,`useFocusGuards`);function Ct(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}vt(Ct,`createFocusGuard`);var V=function(){return V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},V.apply(this,arguments)};function wt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Tt(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function Et(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Dt=`right-scroll-bar-position`,Ot=`width-before-scroll-bar`,kt=`with-scroll-bars-hidden`,At=`--removed-body-scroll-bar-size`;function jt(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Mt(e,t){var n=(0,a.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Nt=typeof window<`u`?a.useLayoutEffect:a.useEffect,Pt=new WeakMap;function Ft(e,t){var n=Mt(t||null,function(t){return e.forEach(function(e){return jt(e,t)})});return Nt(function(){var t=Pt.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||jt(e,null)}),i.forEach(function(e){r.has(e)||jt(e,a)})}Pt.set(n,e)},[e]),n}function It(e){return e}function Lt(e,t){t===void 0&&(t=It);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Rt(e){e===void 0&&(e={});var t=Lt(null);return t.options=V({async:!0,ssr:!1},e),t}var zt=function(e){var t=e.sideCar,n=wt(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return a.createElement(r,V({},n))};zt.isSideCarExport=!0;function Bt(e,t){return e.useMedium(t),zt}var Vt=Rt(),Ht=function(){},Ut=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Ht,onWheelCapture:Ht,onTouchMoveCapture:Ht}),i=r[0],o=r[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=wt(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=Ft([n,t]),w=V(V({},x),i);return a.createElement(a.Fragment,null,d&&a.createElement(S,{sideCar:Vt,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:o,allowPinchZoom:!!_,lockRef:n,gapMode:b}),s?a.cloneElement(a.Children.only(c),V(V({},w),{ref:C})):a.createElement(y,V({},w,{className:l,ref:C}),c))});Ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ut.classNames={fullWidth:Ot,zeroRight:Dt};var Wt=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Gt(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Wt();return t&&e.setAttribute(`nonce`,t),e}function Kt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qt(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Jt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gt())&&(Kt(t,n),qt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Yt=function(){var e=Jt();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xt=function(){var e=Yt();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Zt={left:0,top:0,right:0,gap:0},Qt=function(e){return parseInt(e||``,10)||0},$t=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Qt(n),Qt(r),Qt(i)]},en=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Zt;var t=$t(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tn=Xt(),nn=`data-scroll-locked`,rn=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
2
2
|
.${kt} {
|
|
3
3
|
overflow: hidden ${r};
|
|
4
4
|
padding-right: ${s}px ${r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-hePW80VL.js";import{dt as t}from"./session-events-
|
|
1
|
+
import{t as e}from"./rolldown-runtime-hePW80VL.js";import{dt as t}from"./session-events-B-hnDC4L.js";import{T as n}from"./vendor-radix-BCAvgfOW.js";var r=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-re<ne)}function ae(){if(g=!1,ee){var t=e.unstable_now();re=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(te),te=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ne=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var r=i(),a=t(),o=n();function s(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(l(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(s(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,c=i.child;c;){if(c===n){o=!0,n=i,r=a;break}if(c===r){o=!0,r=i,n=a;break}c=c.sibling}if(!o){for(c=a.child;c;){if(c===n){o=!0,n=a,r=i;break}if(c===r){o=!0,r=a,n=i;break}c=c.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),ee=Symbol.for(`react.consumer`),te=Symbol.for(`react.context`),ne=Symbol.for(`react.forward_ref`),re=Symbol.for(`react.suspense`),ie=Symbol.for(`react.suspense_list`),ae=Symbol.for(`react.memo`),oe=Symbol.for(`react.lazy`),se=Symbol.for(`react.activity`),ce=Symbol.for(`react.memo_cache_sentinel`),le=Symbol.iterator;function ue(e){return typeof e!=`object`||!e?null:(e=le&&e[le]||e[`@@iterator`],typeof e==`function`?e:null)}var de=Symbol.for(`react.client.reference`);function fe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case re:return`Suspense`;case ie:return`SuspenseList`;case se:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case te:return e.displayName||`Context`;case ee:return(e._context.displayName||`Context`)+`.Consumer`;case ne:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ae:return t=e.displayName||null,t===null?fe(e.type)||`Memo`:t;case oe:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var pe=Array.isArray,S=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},he=[],ge=-1;function _e(e){return{current:e}}function w(e){0>ge||(e.current=he[ge],he[ge]=null,ge--)}function T(e,t){ge++,he[ge]=e.current,e.current=t}var ve=_e(null),ye=_e(null),be=_e(null),xe=_e(null);function Se(e,t){switch(T(be,t),T(ye,e),T(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(ve),T(ve,e)}function Ce(){w(ve),w(ye),w(be)}function we(e){e.memoizedState!==null&&T(xe,e);var t=ve.current,n=Hd(t,e.type);t!==n&&(T(ye,e),T(ve,n))}function Te(e){ye.current===e&&(w(ve),w(ye)),xe.current===e&&(w(xe),Qf._currentValue=me)}var Ee,De;function Oe(e){if(Ee===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ee=t&&t[1]||``,De=-1<e.stack.indexOf(`
|
|
2
2
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
3
|
`+Ee+e+De}var ke=!1;function Ae(e,t){if(!e||ke)return``;ke=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
4
|
`),l=s.split(`
|
package/dist/web/index.html
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>BladeCode</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DkwePtIh.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-radix-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-react-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/assets/preload-helper-
|
|
13
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-radix-BCAvgfOW.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-react-DQwAdeyS.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/preload-helper-HI3NtP3B.js">
|
|
13
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BJdxoBtv.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
16
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blade-code",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "🗡️ Blade Code - 智能代码助手命令行工具",
|
|
6
6
|
"type": "module",
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"type-check": "tsc --noEmit",
|
|
43
43
|
"format:check": "biome format src tests",
|
|
44
44
|
"ready": "node scripts/run-bun.js run scripts/qualify.ts production",
|
|
45
|
-
"detect-unused": "node scripts/run-bun.js run scripts/detect-unused.ts",
|
|
46
45
|
"prepack": "node scripts/run-bun.js run build",
|
|
47
46
|
"release": "node scripts/release.js",
|
|
48
47
|
"release:dry": "node scripts/release.js --dry-run",
|
|
@@ -119,6 +118,7 @@
|
|
|
119
118
|
"vscode-jsonrpc": "8.2.1",
|
|
120
119
|
"vscode-languageserver-protocol": "3.17.5",
|
|
121
120
|
"vscode-languageserver-types": "3.17.5",
|
|
121
|
+
"wrap-ansi": "^9.0.2",
|
|
122
122
|
"write-file-atomic": "^7.0.1",
|
|
123
123
|
"ws": "^8.21.2",
|
|
124
124
|
"yaml": "^2.9.0",
|
package/dist/chunk-21qsfewd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$f as h,Uf as a,Vf as b,Wf as c,Xf as d,Yf as e,Zf as f,_f as g,ag as i,bg as j,cg as k,dg as l,eg as m}from"./chunk-ebvzp8tn.js";import"./chunk-x6k5ye1z.js";import"./chunk-v508x7cg.js";import"./chunk-h4b4fn3t.js";import"./chunk-b22ab7yw.js";import"./chunk-amabfzc8.js";import"./chunk-m2x6pb4f.js";import"./chunk-4e4qtpca.js";import"./chunk-5s2x98rx.js";import"./chunk-0eajnhrj.js";import"./chunk-yjcp8jk1.js";import"./chunk-px45q235.js";import"./chunk-a95jmx2j.js";import"./chunk-sdapqhj0.js";export{a as vanillaStore,c as sessionActions,l as getThinkingModeEnabled,b as getState,j as getModelById,e as getMessages,k as getMcpServers,i as getCurrentModel,f as getConfig,h as getAllModels,g as ensureStoreInitialized,m as configActions,d as appActions};
|
package/dist/chunk-3d4wgfkr.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ug as a,vg as b,wg as c}from"./chunk-g2295k8s.js";import"./chunk-pm163dfm.js";import"./chunk-5s2x98rx.js";import"./chunk-0eajnhrj.js";import"./chunk-a95jmx2j.js";import"./chunk-sdapqhj0.js";export{b as resolveModelConfig,c as getModelDisplayName,a as getModelApiKeyEnvironmentVariable};
|
package/dist/chunk-634ymwg5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Af as b,Bf as c,zf as a}from"./chunk-g7pjgspy.js";import"./chunk-0wxnrjes.js";import"./chunk-ebvzp8tn.js";import"./chunk-x6k5ye1z.js";import"./chunk-v508x7cg.js";import"./chunk-7ajvrtb3.js";import"./chunk-h4b4fn3t.js";import"./chunk-b22ab7yw.js";import"./chunk-amabfzc8.js";import"./chunk-m2x6pb4f.js";import"./chunk-4e4qtpca.js";import"./chunk-5s2x98rx.js";import"./chunk-0eajnhrj.js";import"./chunk-yjcp8jk1.js";import"./chunk-px45q235.js";import"./chunk-a95jmx2j.js";import"./chunk-sdapqhj0.js";export{a as validatePermissions,c as validateOutput,b as loadConfiguration};
|
package/dist/chunk-65v1vjvg.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b as i,c as l,d as m}from"./chunk-vemyfx92.js";import"./chunk-xnys4bgs.js";import"./chunk-6v23hdt8.js";import"./chunk-qhcd0ww0.js";import"./chunk-re8p2y22.js";import"./chunk-f9qrjd2f.js";import"./chunk-3ee357pw.js";import"./chunk-wnzr9h84.js";import"./chunk-290p3r7a.js";import"./chunk-6x5f6she.js";import"./chunk-d4xsrx3z.js";import"./chunk-9qxch6sy.js";import"./chunk-7rz5dt79.js";import"./chunk-skktstg8.js";import"./chunk-wan9q99y.js";import"./chunk-n30najxq.js";import{Ef as n}from"./chunk-qa86anwd.js";import"./chunk-crv3sghv.js";import{_f as s}from"./chunk-ebvzp8tn.js";import"./chunk-x6k5ye1z.js";import"./chunk-v508x7cg.js";import"./chunk-g0xtk1yy.js";import"./chunk-q6sr4979.js";import"./chunk-g2295k8s.js";import"./chunk-pm163dfm.js";import"./chunk-zwe1a7xe.js";import"./chunk-8q6zsznc.js";import"./chunk-kehgewqh.js";import"./chunk-kkzznz4w.js";import"./chunk-1cy4ab77.js";import"./chunk-7ajvrtb3.js";import"./chunk-k2rgg45h.js";import"./chunk-ys8gysg8.js";import"./chunk-h4b4fn3t.js";import"./chunk-b22ab7yw.js";import"./chunk-amabfzc8.js";import"./chunk-m2x6pb4f.js";import"./chunk-4e4qtpca.js";import"./chunk-5s2x98rx.js";import"./chunk-0eajnhrj.js";import"./chunk-yjcp8jk1.js";import"./chunk-px45q235.js";import"./chunk-a95jmx2j.js";import"./chunk-sdapqhj0.js";import v from"chalk";var C={command:"serve",describe:"Start a headless Blade server (no browser)",builder:a,handler:async(p)=>{let r=i(p);if(await s(),!process.env.BLADE_SERVER_PASSWORD)console.log(v.yellow("Warning: BLADE_SERVER_PASSWORD is not set; server is unsecured."));let e=await m.listenAsync(r);if(console.log(`Blade server listening on http://${e.hostname}:${e.port}`),r.hostname==="0.0.0.0"){let o=l();for(let g of o)console.log(` Network: http://${g}:${e.port}`)}let t,c=new Promise((o)=>{t=o}),d=n(async()=>{await e.stop(),t()});try{await c}finally{d(),await e.stop()}}};export{C as serveCommand};
|
package/dist/chunk-7p8r4q6f.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{rg as a}from"./chunk-g0xtk1yy.js";import"./chunk-q6sr4979.js";import"./chunk-amabfzc8.js";import"./chunk-m2x6pb4f.js";import"./chunk-4e4qtpca.js";import"./chunk-5s2x98rx.js";import"./chunk-0eajnhrj.js";import"./chunk-a95jmx2j.js";import"./chunk-sdapqhj0.js";export{a as createChatServiceAsync};
|