@hienlh/ppm 0.19.3 → 0.19.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/CHANGELOG.md +5 -0
- package/assets/skills/ppm/SKILL.md +1 -1
- package/assets/skills/ppm/references/http-api.md +1 -1
- package/dist/web/assets/accounts-settings-section-CCFQV-RB.js +1 -0
- package/dist/web/assets/{ai-resource-editor-BqFT1EUB.js → ai-resource-editor-BTWds-aC.js} +1 -1
- package/dist/web/assets/{ai-settings-section-CY6spbEx.js → ai-settings-section-CmoBsSpY.js} +1 -1
- package/dist/web/assets/{ai-settings-section-Po3K8j-g.js → ai-settings-section-DjbYj4wK.js} +1 -1
- package/dist/web/assets/{appearance-settings-section-L9Z-nej_.js → appearance-settings-section-vLmakLtA.js} +1 -1
- package/dist/web/assets/chat-tab-CLRlS8Jc.js +15 -0
- package/dist/web/assets/code-editor-CCwVu5F5.js +7 -0
- package/dist/web/assets/{conflict-editor-BoRPwL3L.js → conflict-editor-CvWYcbwD.js} +1 -1
- package/dist/web/assets/{csv-preview-BpoJqZQi.js → csv-preview-DzuDuyE_.js} +1 -1
- package/dist/web/assets/{database-viewer-I-9cER1L.js → database-viewer-D4XGEDHm.js} +1 -1
- package/dist/web/assets/{diff-viewer-_xHZsxvr.js → diff-viewer-B5N1X61R.js} +1 -1
- package/dist/web/assets/explorer-body-BxLLjthF.js +2 -0
- package/dist/web/assets/{explorer-window-content-DD6Z15pm.js → explorer-window-content-CL1Cipj3.js} +1 -1
- package/dist/web/assets/{extension-manager-section-Cu9D9Udt.js → extension-manager-section-BpyGq15A.js} +1 -1
- package/dist/web/assets/{extension-webview-Diz2OzVq.js → extension-webview-BM8FXhuN.js} +1 -1
- package/dist/web/assets/{files-settings-section-B1e7BgKQ.js → files-settings-section-B0_aR1nL.js} +1 -1
- package/dist/web/assets/{general-settings-section-DWdHHRDy.js → general-settings-section-C1EJzjhU.js} +1 -1
- package/dist/web/assets/{git-log-panel-CMMsvU64.js → git-log-panel-D1yGTUE_.js} +1 -1
- package/dist/web/assets/{glide-data-grid-pKQuyYFj.js → glide-data-grid-Cu0STKML.js} +11 -11
- package/dist/web/assets/{group-chat-tab-U5u0Loii.js → group-chat-tab-BfcvkRX5.js} +1 -1
- package/dist/web/assets/{index--KWVW-Ga.js → index-B1bzKRjJ.js} +4 -4
- package/dist/web/assets/index-nP3uxXvR.css +2 -0
- package/dist/web/assets/{jira-watcher-section-uA5oyB8s.js → jira-watcher-section-DZh-Z2MK.js} +1 -1
- package/dist/web/assets/{keybindings-store-Ccf0etMJ.js → keybindings-store-CFwgcnpZ.js} +1 -1
- package/dist/web/assets/{keyboard-shortcuts-section-B7IxJHiI.js → keyboard-shortcuts-section-JBtcJGM3.js} +1 -1
- package/dist/web/assets/{markdown-renderer-DDcIGQEd.js → markdown-renderer-Bo8GgGXl.js} +1 -1
- package/dist/web/assets/{markdown-renderer-CY1epGRc.js → markdown-renderer-DY60UZNW.js} +1 -1
- package/dist/web/assets/{mobile-explorer-sheet-CqkwbCRl.js → mobile-explorer-sheet-C59rPw7Z.js} +1 -1
- package/dist/web/assets/{notification-store-BNSYk3E7.js → notification-store-Bd6L0K_Q.js} +1 -1
- package/dist/web/assets/{notifications-settings-section-v_628h4B.js → notifications-settings-section-ARQlF-6E.js} +1 -1
- package/dist/web/assets/{pdf-preview-CI3q1MnH.js → pdf-preview-CRShdbBS.js} +1 -1
- package/dist/web/assets/{postgres-viewer-jaR0FYJ_.js → postgres-viewer-BNT-4yYl.js} +2 -2
- package/dist/web/assets/{ppmbot-settings-section-BET4VmKb.js → ppmbot-settings-section-Bq4YAcFW.js} +1 -1
- package/dist/web/assets/{process-table-D1r-Gupi.js → process-table-CjiXW0rg.js} +1 -1
- package/dist/web/assets/{proxy-settings-section-0DvNh1B-.js → proxy-settings-section-wRbiyQiA.js} +1 -1
- package/dist/web/assets/{query-audit-section-BA5rT6Sh.js → query-audit-section-C5RmhRSu.js} +1 -1
- package/dist/web/assets/{remote-desktop-mobile-sheet-CPa3XElX.js → remote-desktop-mobile-sheet-BF-75_03.js} +2 -2
- package/dist/web/assets/{remote-desktop-mobile-view-De_a4skd.js → remote-desktop-mobile-view-C9KR9I9G.js} +1 -1
- package/dist/web/assets/{remote-desktop-readiness-gate-CPrDIv2d.js → remote-desktop-readiness-gate-BnKJicB2.js} +1 -1
- package/dist/web/assets/{remote-desktop-window-content-CG1StfCE.js → remote-desktop-window-content-awXsNw_R.js} +1 -1
- package/dist/web/assets/{schedules-settings-section-B2f7V7Xr.js → schedules-settings-section-BOecKJzl.js} +1 -1
- package/dist/web/assets/{settings-body-omv04jbb.js → settings-body-DGi5DXY6.js} +2 -2
- package/dist/web/assets/{settings-tab-NdnBTqyj.js → settings-tab-GM9zTRul.js} +1 -1
- package/dist/web/assets/{settings-window-content-Chou1JGa.js → settings-window-content-Dvhxo4_H.js} +1 -1
- package/dist/web/assets/{sql-query-editor-Dk9y3jqy.js → sql-query-editor-BmkGFzcL.js} +1 -1
- package/dist/web/assets/{sqlite-viewer-4xFhkLYy.js → sqlite-viewer-DbziVQXQ.js} +1 -1
- package/dist/web/assets/{system-monitor-body-B_1iMVOI.js → system-monitor-body-CbHW5aYm.js} +2 -2
- package/dist/web/assets/{system-monitor-tab-B2j9mWBW.js → system-monitor-tab-C7EZLMIo.js} +1 -1
- package/dist/web/assets/{system-monitor-window-content-BOjq53uU.js → system-monitor-window-content-C_w4w81e.js} +1 -1
- package/dist/web/assets/{tab-host-window-content-CW_dlYlW.js → tab-host-window-content-BSP1SEXS.js} +1 -1
- package/dist/web/assets/{team-member-sheet-CkR4qO7V.js → team-member-sheet-C9N0iA1-.js} +2 -2
- package/dist/web/assets/{team-member-window-content-CmF5ia3n.js → team-member-window-content-CM2QFv-s.js} +1 -1
- package/dist/web/assets/{terminal-tab-HXZkicIc.js → terminal-tab-jWYELm8y.js} +2 -2
- package/dist/web/assets/{tool-cards-jA1BTLZj.js → tool-cards-jefdOWVJ.js} +4 -4
- package/dist/web/assets/use-accounts-data-MhMl0Y4Z.js +1 -0
- package/dist/web/assets/{use-monaco-theme-BcQqKVbE.js → use-monaco-theme-BbAd7DXr.js} +1 -1
- package/dist/web/assets/{use-remote-desktop-display-choice-DY5BWRTo.js → use-remote-desktop-display-choice-DlfMIWq3.js} +1 -1
- package/dist/web/assets/{use-websocket-DetaY8OI.js → use-websocket-Bq8X_SUI.js} +1 -1
- package/dist/web/assets/{video-preview-C0uH2228.js → video-preview-BGh3B0Lu.js} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/src/services/proxy-agent-anthropic-bridge.ts +93 -0
- package/src/services/proxy-agent-bridge.ts +100 -0
- package/src/services/proxy-agent-turn.ts +161 -0
- package/src/services/proxy-anthropic-format.ts +157 -0
- package/src/services/proxy-openai-format.ts +148 -0
- package/src/web/components/chat/usage-badge.tsx +41 -4
- package/src/web/components/settings/accounts/account-card.tsx +27 -3
- package/src/web/components/settings/accounts/accounts-pane-header.tsx +22 -2
- package/src/web/components/settings/accounts/claude-accounts-section.tsx +4 -3
- package/src/web/components/settings/accounts/codex-accounts-section.tsx +11 -4
- package/dist/web/assets/accounts-settings-section-LtSVxNNp.js +0 -1
- package/dist/web/assets/chat-tab-BIO-VhWT.js +0 -15
- package/dist/web/assets/code-editor-B9lVjElM.js +0 -7
- package/dist/web/assets/explorer-body-DapwsOnp.js +0 -2
- package/dist/web/assets/index-CvGx7wBQ.css +0 -2
- package/dist/web/assets/use-accounts-data-BI_5qNvr.js +0 -1
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/markdown-renderer-CY1epGRc.js","assets/vendor-mermaid-BKWscKt0.js","assets/rolldown-runtime-FhOqtrmT.js","assets/vendor-ui-CaeeFO0B.js","assets/vendor-markdown-Ls5AcU91.js","assets/markdown-renderer-DDcIGQEd.js","assets/index--KWVW-Ga.js","assets/button-BZtEJcUv.js","assets/utils-C9OjCrou.js","assets/createLucideIcon-D8pyde1A.js","assets/arrow-left-CyFcsyzD.js","assets/bot-D6sx11y0.js","assets/check-DN75Ucvz.js","assets/chevron-down-Dp0rpHb8.js","assets/chevron-right-De-Wz5Lz.js","assets/chevron-up-8PbsNiJp.js","assets/circle-BCy0AUCo.js","assets/clock-C1CQUQPZ.js","assets/sparkles-Dh-_J2Rd.js","assets/copy-BewHj66E.js","assets/database-Y3ESDK4-.js","assets/download-DG3_9xXy.js","assets/use-coarse-long-press-BmI_GVW5.js","assets/eye-off-GjXVuAOn.js","assets/eye-gWwaF4Lg.js","assets/loader-circle-DPMrnLQ2.js","assets/monitor-C835ucWH.js","assets/x-YDu4m2Iq.js","assets/api-client-oY1tC3tM.js","assets/react-X4jUntEf.js","assets/window-store-DGKf9rPG.js","assets/window-pip-registry-BEN0QNSW.js","assets/panel-store-BRrnDO_i.js","assets/context-menu-C13b1uT3.js","assets/portal-container-context-a399Hd9F.js","assets/mobile-bottom-sheet-BD5b7KJF.js","assets/use-visual-viewport-rnvuooQZ.js","assets/use-is-mobile-CYW3FJFE.js","assets/project-store-BuY7rxn_.js","assets/ws-auth-Dawx17PM.js","assets/settings-store-Brjd0QnO.js","assets/tab-store-PZsP5ZwG.js","assets/apply-theme-DxTXOAcV.js","assets/resolve-theme-DQk_YcsT.js","assets/index-CvGx7wBQ.css","assets/image-gallery-Cj8nd4xW.js","assets/run-in-terminal-bKRwuO2z.js","assets/csv-preview-BpoJqZQi.js","assets/lib-xrSJ4EZX.js","assets/csv-parser-BPIDt6ni.js","assets/image-preview-DRbZ0FA2.js","assets/file-exclamation-point-JzhTU2TX.js","assets/use-blob-url-Gfi69PtP.js","assets/pdf-preview-CI3q1MnH.js","assets/video-preview-C0uH2228.js","assets/can-open-in-ppm-j3jh7fUo.js","assets/media-url-VzecHk9g.js","assets/audio-preview-CCd1jdje.js","assets/docx-preview-CWIDVNZn.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{S as t,x as n}from"./vendor-markdown-Ls5AcU91.js";import"./vendor-ui-CaeeFO0B.js";import{t as r}from"./createLucideIcon-D8pyde1A.js";import{t as i}from"./chevron-right-De-Wz5Lz.js";import{t as a}from"./code-DJgYrFzm.js";import{t as o}from"./database-Y3ESDK4-.js";import{t as s}from"./download-DG3_9xXy.js";import{t as c}from"./eye-gWwaF4Lg.js";import{t as l}from"./file-exclamation-point-JzhTU2TX.js";import{a as u,i as d,o as f,r as p,t as m}from"./glide-data-grid-pKQuyYFj.js";import{t as h}from"./loader-circle-DPMrnLQ2.js";import{t as ee}from"./shield-check-BsG3LV8i.js";import{t as te}from"./shield-off-7jKWpJBD.js";import{t as ne}from"./table-CRJsmfeg.js";import{t as re}from"./text-wrap-oiekm5SB.js";import{t as g}from"./x-YDu4m2Iq.js";import{i as _,n as v}from"./api-client-oY1tC3tM.js";import{q as y}from"./vendor-mermaid-BKWscKt0.js";import{t as ie}from"./settings-store-Brjd0QnO.js";import{t as b}from"./utils-C9OjCrou.js";import"./portal-container-context-a399Hd9F.js";import{t as ae}from"./panel-store-BRrnDO_i.js";import"./window-store-DGKf9rPG.js";import{i as x}from"./project-store-BuY7rxn_.js";import{t as S}from"./tab-store-PZsP5ZwG.js";import{t as C}from"./button-BZtEJcUv.js";import{$t as w,Cr as T,Ft as oe,G as se,Gt as E,It as D,Jt as ce,K as O,Kn as k,Kt as le,Lt as ue,Mn as A,Qt as de,Rt as j,Ut as M,Wt as N,Y as P,Yn as fe,Yt as pe,Zt as me,_r as F,br as he,gn as I,gr as ge,hr as _e,in as ve,nn as ye,o as be,pr as xe,ur as L,xr as R,yr as z}from"./index--KWVW-Ga.js";import"./data-grid-types-CdAg-4W1.js";import{t as Se}from"./use-monaco-theme-BcQqKVbE.js";import{i as Ce,n as we,r as Te,t as Ee}from"./can-open-in-ppm-j3jh7fUo.js";var De=r(`redo-2`,[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]),B=e(t(),1),V=n();function Oe(e){let t=e.startsWith(`/`),n=e.split(/[/\\]/).filter(Boolean),r=e=>{let r=(t?`/`:``)+n.slice(0,e+1).join(`/`);return/^[A-Za-z]:$/.test(r)?r+`/`:r},i=t?`/`:(n[0]??``)+`/`;return n.map((e,t)=>({name:e,absPath:r(t),parentDir:t>0?r(t-1):i}))}async function ke(e){return(await v.get(`/api/fs/browse?path=${encodeURIComponent(e)}`)).entries}function Ae({filePath:e,projectName:t,tabId:n,className:r}){let{updateTab:a,openTab:o}=S(oe(e=>({updateTab:e.updateTab,openTab:e.openTab}))),s=(0,B.useRef)(null),c=(0,B.useMemo)(()=>Oe(e),[e]);(0,B.useEffect)(()=>{s.current&&(s.current.scrollLeft=s.current.scrollWidth)},[c]);let l=(0,B.useCallback)((e,r)=>{let i=b(e),s={filePath:e,projectName:t};r.metaKey||r.ctrlKey?o({type:`editor`,title:i,metadata:s,projectId:t,closable:!0}):a(n,{title:i,metadata:s})},[t,n,o,a]);return(0,V.jsx)(`div`,{ref:s,className:r,children:c.map((e,t)=>(0,V.jsxs)(`div`,{className:`flex items-center shrink-0`,children:[t>0&&(0,V.jsx)(i,{className:`size-3 text-muted-foreground shrink-0 mx-0.5`}),(0,V.jsx)(je,{segment:e,isLast:t===c.length-1,onFileClick:l})]},e.absPath))})}function je({segment:e,isLast:t,onFileClick:n}){let[r,i]=(0,B.useState)(null),[a,o]=(0,B.useState)(null);function s(t){t&&r===null&&ke(e.parentDir).then(i).catch(e=>{o(e.message||`Failed to browse`),i([])})}return(0,V.jsxs)(D,{onOpenChange:s,children:[(0,V.jsx)(le,{asChild:!0,children:(0,V.jsx)(`button`,{type:`button`,className:`text-xs px-1 py-0.5 rounded hover:bg-muted transition-colors truncate max-w-[120px] ${t?`text-foreground font-medium`:`text-muted-foreground`}`,children:e.name})}),(0,V.jsx)(ue,{align:`start`,className:`max-h-[300px] overflow-y-auto p-1`,children:r===null?(0,V.jsx)(j,{disabled:!0,className:`text-xs text-muted-foreground`,children:`Loading…`}):a?(0,V.jsx)(j,{disabled:!0,className:`text-xs text-destructive`,children:a}):r.length===0?(0,V.jsx)(j,{disabled:!0,className:`text-xs text-muted-foreground`,children:`Empty`}):r.map(t=>(0,V.jsx)(Me,{entry:t,activePath:e.absPath,onFileClick:n},t.path))})]})}function Me({entry:e,activePath:t,onFileClick:n}){let r=H(e.name,e.type===`directory`),i=e.path===t,[a,o]=(0,B.useState)(null);if(e.type===`directory`){function s(t){t&&a===null&&ke(e.path).then(o).catch(()=>o([]))}return(0,V.jsxs)(M,{onOpenChange:s,children:[(0,V.jsxs)(E,{className:`text-xs gap-1.5 ${i?`bg-muted`:``}`,children:[(0,V.jsx)(r,{className:`size-3.5 shrink-0 text-muted-foreground`}),(0,V.jsx)(`span`,{className:`truncate`,children:e.name})]}),(0,V.jsx)(N,{className:`max-h-[300px] overflow-y-auto p-1`,children:a===null?(0,V.jsx)(j,{disabled:!0,className:`text-xs text-muted-foreground`,children:`Loading…`}):a.length===0?(0,V.jsx)(j,{disabled:!0,className:`text-xs text-muted-foreground`,children:`Empty`}):a.map(e=>(0,V.jsx)(Me,{entry:e,activePath:t,onFileClick:n},e.path))})]})}return(0,V.jsxs)(j,{className:`text-xs gap-1.5 cursor-pointer ${i?`bg-muted`:``}`,onClick:t=>n(e.path,t),children:[(0,V.jsx)(r,{className:`size-3.5 shrink-0 text-muted-foreground`}),(0,V.jsx)(`span`,{className:`truncate`,children:e.name})]})}var Ne={ts:z,tsx:z,js:z,jsx:z,py:z,rs:z,go:z,html:z,css:z,scss:z,json:he,md:F,txt:F,yaml:ge,yml:ge};function H(e,t){return t?xe:Ne[e.split(`.`).pop()?.toLowerCase()??``]??_e}function U(e,t){let n=[],r=e,i=``;for(let e=0;e<t.length;e++){let a=t[e],o=t.slice(0,e+1).join(`/`),s=r.find(e=>e.name===a);if(n.push({name:a,fullPath:o,node:s??null,siblings:r,parentPath:i}),s?.children)i=s.path,r=s.children;else{for(let r=e+1;r<t.length;r++)n.push({name:t[r],fullPath:t.slice(0,r+1).join(`/`),node:null,siblings:[],parentPath:t.slice(0,r).join(`/`)});break}}return n}function Pe(e){return[...e].sort((e,t)=>e.type===t.type?e.name.localeCompare(t.name):e.type===`directory`?-1:1)}function Fe({filePath:e,projectName:t,tabId:n,className:r}){let a=I(e=>e.tree),{updateTab:o,openTab:s}=S(oe(e=>({updateTab:e.updateTab,openTab:e.openTab}))),c=x(e=>e.projects.find(e=>e.name===t)?.path??``),l=(0,B.useRef)(null),{prefixParts:u,relativePath:d,isExternal:f}=(0,B.useMemo)(()=>{let t=e.startsWith(`/`)?e.slice(1):e,n=c.startsWith(`/`)?c.slice(1):c;if(n&&t.startsWith(n+`/`)){let e=t.slice(n.length+1);return{prefixParts:n.split(`/`),relativePath:e,isExternal:!1}}return{prefixParts:[],relativePath:t,isExternal:/^(\/|[A-Za-z]:[/\\])/.test(e)}},[e,c]),p=(0,B.useMemo)(()=>U(a,d.split(`/`).filter(Boolean)),[a,d]);(0,B.useEffect)(()=>{l.current&&(l.current.scrollLeft=l.current.scrollWidth)},[p]);function m(e,r){let i=b(e);r.metaKey||r.ctrlKey?s({type:`editor`,title:i,metadata:{filePath:e,projectName:t},projectId:t,closable:!0}):o(n,{title:i,metadata:{filePath:e,projectName:t}})}return f?(0,V.jsx)(Ae,{filePath:e,projectName:t,tabId:n,className:r}):(0,V.jsxs)(`div`,{ref:l,className:r,children:[u.map((e,t)=>(0,V.jsxs)(`div`,{className:`flex items-center shrink-0`,children:[t>0&&(0,V.jsx)(i,{className:`size-3 text-muted-foreground shrink-0 mx-0.5`}),(0,V.jsx)(`span`,{className:`text-xs text-muted-foreground px-1 py-0.5`,children:e})]},`prefix-${t}`)),p.map((e,n)=>(0,V.jsxs)(`div`,{className:`flex items-center shrink-0`,children:[(n>0||u.length>0)&&(0,V.jsx)(i,{className:`size-3 text-muted-foreground shrink-0 mx-0.5`}),(0,V.jsx)(W,{segment:e,isLast:n===p.length-1,projectName:t,onFileClick:m})]},e.fullPath))]})}function W({segment:e,isLast:t,projectName:n,onFileClick:r}){let i=I(e=>e.loadChildren),a=I(e=>e.loadedPaths),o=(0,B.useMemo)(()=>Pe(e.siblings),[e.siblings]),s=a.has(e.parentPath);function c(t){if(t&&!s){let t=e.parentPath.split(`/`).filter(Boolean);(async()=>{for(let e=0;e<=t.length;e++)await i(n,t.slice(0,e).join(`/`))})()}}return(0,V.jsxs)(D,{onOpenChange:c,children:[(0,V.jsx)(le,{asChild:!0,children:(0,V.jsx)(`button`,{type:`button`,className:`text-xs px-1 py-0.5 rounded hover:bg-muted transition-colors truncate max-w-[120px] ${t?`text-foreground font-medium`:`text-muted-foreground`}`,children:e.name})}),(0,V.jsx)(ue,{align:`start`,className:`max-h-[300px] p-1`,children:o.length===0?(0,V.jsx)(j,{disabled:!0,className:`text-xs text-muted-foreground`,children:`Loading…`}):o.map(t=>(0,V.jsx)(G,{node:t,projectName:n,activePath:e.fullPath,onFileClick:r},t.path))})]})}function G({node:e,projectName:t,activePath:n,onFileClick:r}){let i=H(e.name,e.type===`directory`),a=e.path===n,o=I(e=>e.loadChildren),s=I(e=>e.loadedPaths);if(e.type===`directory`){let c=e.children??[],l=s.has(e.path);function u(n){n&&!l&&o(t,e.path)}return(0,V.jsxs)(M,{onOpenChange:u,children:[(0,V.jsxs)(E,{className:`text-xs gap-1.5 ${a?`bg-muted`:``}`,children:[(0,V.jsx)(i,{className:`size-3.5 shrink-0 text-muted-foreground`}),(0,V.jsx)(`span`,{className:`truncate`,children:e.name})]}),(0,V.jsx)(N,{className:`max-h-[300px] overflow-y-auto p-1`,children:c.length===0?(0,V.jsx)(j,{disabled:!0,className:`text-xs text-muted-foreground`,children:`Loading…`}):Pe(c).map(e=>(0,V.jsx)(G,{node:e,projectName:t,activePath:n,onFileClick:r},e.path))})]})}return(0,V.jsxs)(j,{className:`text-xs gap-1.5 cursor-pointer ${a?`bg-muted`:``}`,onSelect:e=>{},onClick:t=>{r(e.path,t)},children:[(0,V.jsx)(i,{className:`size-3.5 shrink-0 text-muted-foreground`}),(0,V.jsx)(`span`,{className:`truncate`,children:e.name})]})}function K({active:e,onClick:t,icon:n,label:r}){return(0,V.jsxs)(`button`,{type:`button`,onClick:t,className:`flex items-center gap-1 px-2 py-1 rounded text-xs transition-colors ${e?`bg-muted text-foreground`:`text-muted-foreground hover:text-foreground`}`,children:[(0,V.jsx)(n,{className:`size-3`}),(0,V.jsx)(`span`,{className:`hidden sm:inline`,children:r})]})}function Ie({ext:e,mdMode:t,onMdModeChange:n,csvMode:r,onCsvModeChange:i,wordWrap:o,onToggleWordWrap:l,onRefresh:u,refreshing:d,filePath:f,projectName:p,className:m}){return(0,V.jsxs)(`div`,{className:m,children:[(e===`md`||e===`mdx`)&&n&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(K,{active:t===`edit`,onClick:()=>n(`edit`),icon:a,label:`Edit`}),(0,V.jsx)(K,{active:t===`preview`,onClick:()=>n(`preview`),icon:c,label:`Preview`})]}),e===`csv`&&i&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(K,{active:r===`table`,onClick:()=>i(`table`),icon:ne,label:`Table`}),(0,V.jsx)(K,{active:r===`raw`,onClick:()=>i(`raw`),icon:a,label:`Raw`})]}),(0,V.jsx)(K,{active:o,onClick:l,icon:re,label:`Wrap`}),u&&(0,V.jsxs)(`button`,{type:`button`,onClick:u,disabled:d,title:`Reload file from disk`,className:`flex items-center gap-1 px-2 py-1 rounded text-xs text-muted-foreground hover:text-foreground transition-colors disabled:opacity-50`,children:[(0,V.jsx)(k,{className:`size-3 ${d?`animate-spin`:``}`}),(0,V.jsx)(`span`,{className:`hidden sm:inline`,children:`Refresh`})]}),f&&p&&(0,V.jsx)(K,{active:!1,onClick:()=>ye(p,f),icon:s,label:`Download`})]})}var Le=[{id:`plaintext`,label:`Plain Text`},{id:`javascript`,label:`JavaScript`},{id:`typescript`,label:`TypeScript`},{id:`sql`,label:`SQL`},{id:`json`,label:`JSON`},{id:`xml`,label:`XML`},{id:`html`,label:`HTML`},{id:`css`,label:`CSS`},{id:`python`,label:`Python`},{id:`markdown`,label:`Markdown`},{id:`yaml`,label:`YAML`},{id:`shell`,label:`Shell`}];function Re({value:e,onChange:t}){return(0,V.jsxs)(`div`,{className:`shrink-0 flex items-center gap-1 px-2 border-l border-border`,children:[(0,V.jsx)(z,{className:`size-3 text-muted-foreground`}),(0,V.jsx)(`select`,{value:e,onChange:e=>t(e.target.value),className:`h-5 text-[10px] bg-transparent border border-border rounded px-1 text-foreground outline-none max-w-[120px]`,title:`Select editor language`,children:Le.map(e=>(0,V.jsx)(`option`,{value:e.id,children:e.label},e.id))})]})}function ze({open:e,defaultName:t,content:n,onSave:r,onCancel:i}){let[a,o]=(0,B.useState)(t),[s,c]=(0,B.useState)(!1),[l,u]=(0,B.useState)(``),d=x(e=>e.activeProject),f=(0,B.useCallback)(()=>{let e=a.trim();if(!e){u(`Filename cannot be empty`);return}if(/[/\\]/.test(e)){u(`Filename cannot contain / or \\`);return}u(``),c(!0)},[a]),p=(0,B.useCallback)(e=>{let t=e.includes(`\\`)?`\\`:`/`;r(e.endsWith(t)?`${e}${a.trim()}`:`${e}${t}${a.trim()}`,n)},[a,n,r]);return s?(0,V.jsx)(O,{open:!0,mode:`folder`,root:d?.path,title:`Save "${a.trim()}" to...`,onSelect:p,onCancel:()=>c(!1)}):(0,V.jsx)(ce,{open:e,onOpenChange:e=>{e||i()},children:(0,V.jsxs)(pe,{className:`sm:max-w-md`,children:[(0,V.jsx)(de,{children:(0,V.jsx)(w,{children:`Save As`})}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-2 py-2`,children:[(0,V.jsx)(`label`,{className:`text-sm text-muted-foreground`,children:`Filename`}),(0,V.jsx)(P,{value:a,onChange:e=>{o(e.target.value),u(``)},onKeyDown:e=>{e.key===`Enter`&&f()},placeholder:`e.g. my-file.ts`,autoFocus:!0}),l&&(0,V.jsx)(`p`,{className:`text-xs text-destructive`,children:l})]}),(0,V.jsxs)(me,{children:[(0,V.jsx)(C,{variant:`outline`,onClick:i,children:`Cancel`}),(0,V.jsx)(C,{onClick:f,children:`Choose Folder...`})]})]})})}var q=typeof window<`u`&&window.isSecureContext,Be=[`(`,`)`,`{`,`}`,`[`,`]`,`<`,`>`,`;`,`:`,`=`,`"`,`'`,"`",`/`,`\\`,`_`,`#`],Ve=`px-2 py-1.5 rounded text-xs min-w-[36px] min-h-[32px] bg-surface-elevated text-text-primary active:bg-primary active:text-primary-foreground transition-colors select-none`,He=`px-3 py-1.5 rounded text-xs font-mono min-w-[36px] min-h-[32px] bg-surface-elevated text-text-primary active:bg-primary active:text-primary-foreground transition-colors select-none`,Ue=`w-px h-5 bg-border mx-0.5 shrink-0`;function We({editorRef:e,readOnly:t}){let n=(0,B.useCallback)(()=>e.current,[e]),r=(0,B.useCallback)(e=>{let t=n();if(!t)return;t.focus();let r=t.getSelection();r&&t.executeEdits(`mobile-toolbar`,[{range:r,text:e}])},[n]),[i,a]=(0,B.useState)(!1),o=(0,B.useRef)(null),s=(0,B.useCallback)(async()=>{try{let e=await navigator.clipboard.readText();e&&r(e)}catch{}},[r]),c=(0,B.useCallback)(()=>{a(!0),requestAnimationFrame(()=>o.current?.focus())},[]),l=(0,B.useCallback)(e=>{e.preventDefault();let t=e.clipboardData.getData(`text/plain`);t&&(a(!1),r(t))},[r]),u=(0,B.useCallback)(()=>{let e=n();e&&(e.focus(),e.trigger(`mobile-toolbar`,`undo`,null))},[n]),d=(0,B.useCallback)(()=>{let e=n();e&&(e.focus(),e.trigger(`mobile-toolbar`,`redo`,null))},[n]),f=(0,B.useCallback)(()=>{let e=n();e&&(e.focus(),e.trigger(`mobile-toolbar`,`tab`,null))},[n]);return t?null:(0,V.jsxs)(`div`,{className:`shrink-0 border-t border-border bg-surface`,children:[!q&&i&&(0,V.jsxs)(`div`,{className:`flex items-center gap-2 px-2 py-1.5 border-b border-border bg-muted/50`,children:[(0,V.jsx)(`textarea`,{ref:o,onPaste:l,placeholder:`Long-press here → Paste`,className:`flex-1 h-8 rounded border border-border bg-background text-foreground text-xs px-2 py-1.5 resize-none focus:outline-none focus:ring-1 focus:ring-primary`}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>a(!1),className:`p-1.5 rounded text-muted-foreground active:bg-muted transition-colors`,children:(0,V.jsx)(g,{size:14})})]}),(0,V.jsxs)(`div`,{className:`flex items-center gap-1 px-2 py-1.5 overflow-x-auto`,children:[(0,V.jsx)(`button`,{type:`button`,onClick:q?s:c,className:Ve,title:`Paste`,children:(0,V.jsx)(T,{size:14})}),(0,V.jsx)(`button`,{type:`button`,onClick:u,className:Ve,title:`Undo`,children:(0,V.jsx)(A,{size:14})}),(0,V.jsx)(`button`,{type:`button`,onClick:d,className:Ve,title:`Redo`,children:(0,V.jsx)(De,{size:14})}),(0,V.jsx)(`div`,{className:Ue}),(0,V.jsx)(`button`,{type:`button`,onClick:f,className:He,children:`Tab`}),(0,V.jsx)(`div`,{className:Ue}),Be.map(e=>(0,V.jsx)(`button`,{type:`button`,onClick:()=>r(e),className:He,children:e},e))]})]})}var J=(0,B.lazy)(()=>y(()=>import(`./markdown-renderer-CY1epGRc.js`).then(e=>({default:e.MarkdownRenderer})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]))),Ge=(0,B.lazy)(()=>y(()=>import(`./csv-preview-BpoJqZQi.js`).then(e=>({default:e.CsvPreview})),__vite__mapDeps([47,2,6,1,3,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,48,49]))),Ke=(0,B.lazy)(()=>y(()=>import(`./image-preview-DRbZ0FA2.js`).then(e=>({default:e.ImagePreview})),__vite__mapDeps([50,3,2,4,51,9,25,28,52]))),qe=(0,B.lazy)(()=>y(()=>import(`./pdf-preview-CI3q1MnH.js`).then(e=>({default:e.PdfPreview})),__vite__mapDeps([53,2,6,1,3,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,51]))),Je=(0,B.lazy)(()=>y(()=>import(`./video-preview-C0uH2228.js`).then(e=>({default:e.VideoPreview})),__vite__mapDeps([54,2,6,1,3,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,51,55,56]))),Ye=(0,B.lazy)(()=>y(()=>import(`./audio-preview-CCd1jdje.js`).then(e=>({default:e.AudioPreview})),__vite__mapDeps([57,2,3,4,8,9,51,28,56]))),Xe=(0,B.lazy)(()=>y(()=>import(`./docx-preview-CWIDVNZn.js`).then(e=>({default:e.DocxPreview})),__vite__mapDeps([58,2,3,4,51,9,25,28])));function Ze(e){return e.split(`.`).pop()?.toLowerCase()??``}function Qe(e){return{js:`javascript`,jsx:`javascript`,ts:`typescript`,tsx:`typescript`,py:`python`,html:`html`,css:`css`,scss:`scss`,json:`json`,md:`markdown`,mdx:`markdown`,yaml:`yaml`,yml:`yaml`,sh:`shell`,bash:`shell`,sql:`sql`}[Ze(e)]??`plaintext`}var $e=(0,B.memo)(function({metadata:e,tabId:t}){let n=e?.filePath,r=e?.projectName,i=e?.inlineContent,a=e?.inlineLanguage,[s,c]=(0,B.useState)(i??null),[m,ne]=(0,B.useState)(`utf-8`),[re,g]=(0,B.useState)(!0),[y,x]=(0,B.useState)(null),[C,w]=(0,B.useState)(!1),T=(0,B.useRef)(null),E=(0,B.useRef)(``),D=(0,B.useRef)(null),{tabs:ce,updateTab:O}=S(oe(e=>({tabs:e.tabs,updateTab:e.updateTab}))),{wordWrap:k,toggleWordWrap:le}=ie(oe(e=>({wordWrap:e.wordWrap,toggleWordWrap:e.toggleWordWrap}))),ue=Se(),A=e?.isUntitled===!0,de=e?.unsavedContent,[j,M]=(0,B.useState)(!1),N=ce.find(e=>e.id===t),P=n?Ze(n):``,pe=we.has(P),me=P===`pdf`,F=P===`docx`,he=Ce.has(P),I=Ee.has(P),ge=Te.has(P),_e=P===`md`||P===`mdx`,ye=P===`csv`,xe=e?.language,L=a??xe??Qe(n??``),R=L===`sql`,[z,De]=(0,B.useState)(`preview`),[Oe,ke]=(0,B.useState)(`table`),{connections:Ae,cachedTables:je,refreshTables:Me,updateConnection:Ne}=se(),H=n?`ppm:sql-conn:${n}`:t?`ppm:sql-conn:tab:${t}`:null,[U,Pe]=(0,B.useState)(()=>{if(!H)return null;let e=localStorage.getItem(H);return e?Number(e):null}),W=(0,B.useRef)(null),G=(0,B.useRef)(null),K=(0,B.useMemo)(()=>Ae.find(e=>e.id===U)??null,[Ae,U]),Le=i!=null&&(a===`json`||a===`xml`),[q,Be]=(0,B.useState)(!1),Ve=(0,B.useCallback)(()=>{if(i)if(q)c(i),Be(!1);else{let e=i.trimStart();if(a===`json`)try{c(JSON.stringify(JSON.parse(e),null,2)),Be(!0)}catch{}else if(a===`xml`){let t=0;c(e.replace(/(>)(<)(\/*)/g,`$1
|
|
3
|
-
$2$3`).split(`
|
|
4
|
-
`).map(e=>{let n=e.trim();n.startsWith(`</`)&&(t=Math.max(0,t-1));let r=` `.repeat(t)+n;return n.startsWith(`<`)&&!n.startsWith(`</`)&&!n.endsWith(`/>`)&&!n.includes(`</`)&&t++,r}).join(`
|
|
5
|
-
`)),Be(!0)}}},[i,a,q]),He=(0,B.useCallback)(e=>{Pe(e),H&&localStorage.setItem(H,String(e)),Me(e).catch(()=>{})},[H,Me]),Ue=(0,B.useCallback)(n=>{t&&O(t,{metadata:{...e,language:n}})},[t,e,O]),J=(0,B.useMemo)(()=>{if(!R||!U)return;let e=(je.get(U)??[]).map(e=>({name:e.tableName,schema:e.schemaName}));if(e.length!==0)return{tables:e,getColumns:async(e,t)=>v.get(`/api/db/connections/${U}/schema?table=${encodeURIComponent(e)}${t?`&schema=${encodeURIComponent(t)}`:``}`)}},[R,U,je]);(0,B.useEffect)(()=>{if(!(!W.current||!J))return G.current?.dispose(),p(),G.current=W.current.languages.registerCompletionItemProvider(`sql`,d(W.current,J)),()=>{G.current?.dispose()}},[J]);let $e=S(e=>e.openTab),[Y,nt]=(0,B.useState)(null),[rt,it]=(0,B.useState)(null),[at,ot]=(0,B.useState)(!1),[st,ct]=(0,B.useState)(``),lt=(0,B.useCallback)(async e=>{if(K){ot(!0),it(null),ct(e);try{nt(await v.post(`/api/db/connections/${K.id}/query`,{sql:e}))}catch(e){it(e.message),nt(null)}finally{ot(!1)}}},[K]),ut=(0,B.useCallback)(()=>{!K||!st||$e({type:`database`,title:`${K.name} · Query`,projectId:null,closable:!0,metadata:{connectionId:K.id,connectionName:K.name,dbType:K.type,initialSql:st}})},[K,$e,st]),dt=(0,B.useCallback)(()=>{if(!D.current||!K)return;let e=D.current,t=e.getSelection();lt(t&&!t.isEmpty()?e.getModel()?.getValueInRange(t)??e.getValue():e.getValue())},[K,lt]),ft=typeof window<`u`&&`ontouchstart`in window,pt=(0,B.useRef)(null),[mt,ht]=(0,B.useState)(null);(0,B.useEffect)(()=>{if(!ft)return;let e=window.visualViewport;if(!e)return;let t=()=>{let t=pt.current;if(!t)return;let n=t.getBoundingClientRect().top;ht(e.height-Math.max(0,n))};return e.addEventListener(`resize`,t),e.addEventListener(`scroll`,t),()=>{e.removeEventListener(`resize`,t),e.removeEventListener(`scroll`,t)}},[ft]),(0,B.useEffect)(()=>ve(pt.current,()=>D.current?.layout()),[re,y]);let Z=(0,B.useRef)([]),gt=(0,B.useRef)(lt);gt.current=lt,(0,B.useEffect)(()=>()=>{Z.current.forEach(e=>e.dispose()),Z.current=[]},[]),(0,B.useEffect)(()=>{ge&&t&&O(t,{type:`sqlite`})},[ge,t,O]);let Q=n?/^(\/|[A-Za-z]:[/\\])/.test(n):!1;(0,B.useEffect)(()=>{if(i!=null){g(!1);return}if(A){c(de??``),E.current=de??``,g(!1),de&&w(!0);return}if(!n||!Q&&!r)return;if(pe||me||F||he||I){g(!1);return}g(!0),x(null);let e=Q?`/api/fs/read?path=${encodeURIComponent(n)}`:`${_(r)}/files/read?path=${encodeURIComponent(n)}`;return v.get(e).then(e=>{c(e.content),e.encoding&&ne(e.encoding),E.current=e.content,g(!1)}).catch(e=>{x(e instanceof Error?e.message:`Failed to load file`),g(!1)}),()=>{T.current&&clearTimeout(T.current)}},[n,r,pe,me,F,Q,A]);let[_t,vt]=(0,B.useState)(!1),yt=(0,B.useCallback)(()=>{if(!n||i!=null||A||!Q&&!r)return;let e=Q?`/api/fs/read?path=${encodeURIComponent(n)}`:`${_(r)}/files/read?path=${encodeURIComponent(n)}`;vt(!0),v.get(e).then(e=>{c(e.content),E.current=e.content,e.encoding&&ne(e.encoding),w(!1),x(null)}).catch(e=>x(e instanceof Error?e.message:`Failed to reload file`)).finally(()=>vt(!1))},[n,r,Q,i,A]),bt=(0,B.useRef)(C);bt.current=C,(0,B.useEffect)(()=>{if(!n||!r||i!=null||A)return;let e=e=>{let t=e.detail;if(t.projectName!==r||t.path!==n||bt.current)return;let i=Q?`/api/fs/read?path=${encodeURIComponent(n)}`:`${_(r)}/files/read?path=${encodeURIComponent(n)}`;v.get(i).then(e=>{e.content!==E.current&&(c(e.content),E.current=e.content,e.encoding&&ne(e.encoding))}).catch(()=>{})};return window.addEventListener(`file:changed`,e),()=>window.removeEventListener(`file:changed`,e)},[n,r,Q,i,A]),(0,B.useEffect)(()=>{if(!N||i!=null)return;let t=A?`Untitled-${e?.untitledNumber??1}`:n?b(n):`Untitled`,r=C?`${t} \u25CF`:t;N.title!==r&&O(N.id,{title:r})},[C]);let xt=(0,B.useCallback)(async e=>{if(n&&!(!Q&&!r))try{Q?await v.put(`/api/fs/write`,{path:n,content:e}):await v.put(`${_(r)}/files/write`,{path:n,content:e}),w(!1)}catch{}},[n,r,Q]);function St(n){let r=n??``;c(r),E.current=r,w(!0),T.current&&clearTimeout(T.current),A?T.current=setTimeout(()=>{t&&O(t,{metadata:{...e,unsavedContent:E.current}})},2e3):T.current=setTimeout(()=>xt(E.current),1e3)}let Ct=(0,B.useCallback)(async(e,n)=>{try{if(T.current&&clearTimeout(T.current),await v.put(`/api/fs/write`,{path:e,content:n}),t){let{closeTab:n,openTab:r}=ae.getState();n(t),r({type:`editor`,title:b(e),projectId:null,metadata:{filePath:e},closable:!0})}w(!1),M(!1)}catch{}},[t]),$=e?.lineNumber,wt=e?.endLine,Tt=e?.revealAt,Et=(0,B.useCallback)(()=>{let e=D.current;if(!(!e||!$||$<=0)){if(e.revealLineInCenter($),e.setPosition({lineNumber:$,column:1}),wt&&wt>=$){let t=e.getModel(),n=t?.getLineCount()??$,r=Math.min(wt,n),i=t?.getLineMaxColumn(r)??1;e.setSelection({startLineNumber:$,startColumn:1,endLineNumber:r,endColumn:i})}e.focus()}},[$,wt]);(0,B.useEffect)(()=>{Tt!=null&&Et()},[Tt,Et]);let Dt=(0,B.useCallback)((e,t)=>{if(D.current=e,W.current=t,$&&$>0&&setTimeout(()=>Et(),100),A&&e.addCommand(t.KeyMod.CtrlCmd|t.KeyCode.KeyS,()=>M(!0)),e.addCommand(t.KeyMod.Alt|t.KeyCode.KeyZ,()=>ie.getState().toggleWordWrap()),t.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0,noSuggestionDiagnostics:!0}),t.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0,noSuggestionDiagnostics:!0}),J&&(G.current?.dispose(),G.current=t.languages.registerCompletionItemProvider(`sql`,d(t,J))),R){e.addAction({id:`run-sql-at-cursor`,label:`Run Statement at Cursor`,keybindings:[t.KeyMod.CtrlCmd|t.KeyCode.Enter],run:e=>{let t=e.getPosition();if(!t)return;let n=u(e.getValue(),t.lineNumber);n&>.current(n)}}),Z.current.forEach(e=>e.dispose()),Z.current=[];let n=e.getModel(),r=e.addCommand(0,(e,t)=>{t&>.current(t)});if(r&&n){let e=t.languages.registerCodeLensProvider(`sql`,{provideCodeLenses:e=>{if(e!==n)return{lenses:[],dispose:()=>{}};let t=[],i=(e,n,i=`▷ Run`)=>{let a=n.trim();a&&t.push({range:{startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1},command:{id:r,title:i,arguments:[a]}})},a=/^(BEGIN|COMMIT|ROLLBACK|END)(;|\s|$)/i,o=-1,s=[];for(let{sql:t,startLine:n}of f(e.getValue())){let e=/^BEGIN(;|\s|$)/i.test(t),r=/^(COMMIT|ROLLBACK|END)(;|\s|$)/i.test(t);o===-1&&e?(o=n,s=[t]):o>-1?(s.push(t),!r&&!a.test(t)&&i(n,t),r&&(i(o,s.join(`
|
|
6
|
-
`),`▷ Run Transaction`),o=-1,s=[])):i(n,t)}return o>-1&&s.length>1&&i(o,s.join(`
|
|
7
|
-
`),`▷ Run Transaction`),{lenses:t,dispose:()=>{}}}});Z.current.push(e);let i=t.languages.registerFoldingRangeProvider(`sql`,{provideFoldingRanges:e=>{if(e!==n)return[];let r=[],i=e.getLineCount(),a=[];for(let n=1;n<=i;n++){let i=e.getLineContent(n).trim();if(/^BEGIN(;|\s|$)/i.test(i))a.push(n);else if(/^(COMMIT|ROLLBACK|END)(;|\s|$)/i.test(i)&&a.length>0){let e=a.pop();r.push({start:e,end:n,kind:t.languages.FoldingRangeKind.Region})}}return r}});Z.current.push(i)}}},[J,R]);if(!i&&!A&&(!n||!Q&&!r))return(0,V.jsx)(`div`,{className:`flex items-center justify-center h-full text-text-secondary text-sm`,children:`No file selected.`});if(re)return(0,V.jsxs)(`div`,{className:`flex items-center justify-center h-full gap-2 text-text-secondary`,children:[(0,V.jsx)(h,{className:`size-5 animate-spin`}),(0,V.jsx)(`span`,{className:`text-sm`,children:`Loading file...`})]});if(y)return(0,V.jsx)(`div`,{className:`flex items-center justify-center h-full text-error text-sm`,children:y});if(pe)return(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(X,{}),children:(0,V.jsx)(Ke,{filePath:n,projectName:r})});if(me)return(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(X,{}),children:(0,V.jsx)(qe,{filePath:n,projectName:r})});if(F)return(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(X,{}),children:(0,V.jsx)(Xe,{filePath:n,projectName:r})});if(he)return(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(X,{}),children:(0,V.jsx)(Je,{filePath:n,projectName:r})});if(I)return(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(X,{}),children:(0,V.jsx)(Ye,{filePath:n,projectName:r})});if(m===`base64`)return(0,V.jsxs)(`div`,{className:`flex flex-col items-center justify-center h-full gap-3 text-text-secondary`,children:[(0,V.jsx)(l,{className:`size-10 text-text-subtle`}),(0,V.jsx)(`p`,{className:`text-sm`,children:`This file is a binary format and cannot be displayed.`}),(0,V.jsx)(`p`,{className:`text-xs text-text-subtle`,children:n})]});let Ot=R?(0,V.jsxs)(`div`,{className:`shrink-0 flex items-center gap-1 px-2 border-l border-border`,children:[(0,V.jsx)(o,{className:`size-3 text-muted-foreground`}),(0,V.jsxs)(`select`,{value:U??``,onChange:e=>{let t=Number(e.target.value);t&&He(t)},className:`h-5 text-[10px] bg-transparent border border-border rounded px-1 text-foreground outline-none max-w-[140px]`,title:`Select connection for autocomplete`,children:[(0,V.jsx)(`option`,{value:``,children:`Connection…`}),Ae.map(e=>(0,V.jsx)(`option`,{value:e.id,children:e.name},e.id))]}),(0,V.jsx)(`button`,{type:`button`,onClick:dt,disabled:!K,className:`p-0.5 rounded text-muted-foreground hover:text-primary disabled:opacity-30 transition-colors`,title:`Run SQL`,children:(0,V.jsx)(fe,{className:`size-3.5`})}),K&&(0,V.jsx)(`button`,{type:`button`,onClick:()=>Ne(K.id,{readonly:K.readonly?0:1}),className:`flex items-center gap-0.5 px-1 py-0.5 rounded text-[10px] transition-colors ${K.readonly?`text-muted-foreground hover:text-foreground`:`bg-destructive/15 text-destructive`}`,title:K.readonly?`Readonly — click to allow writes`:`WRITE mode — click to enable readonly`,children:K.readonly?(0,V.jsx)(ee,{className:`size-3`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(te,{className:`size-3`}),(0,V.jsx)(`span`,{className:`font-medium`,children:`WRITE`})]})})]}):null;return(0,V.jsxs)(`div`,{ref:pt,className:`flex flex-col h-full w-full overflow-hidden`,style:mt?{height:`${mt}px`,maxHeight:`${mt}px`}:void 0,children:[i!=null&&Le&&(0,V.jsx)(`div`,{className:`flex items-center h-7 border-b border-border bg-background shrink-0 px-2 gap-2`,children:(0,V.jsx)(`button`,{type:`button`,onClick:Ve,className:`text-[10px] px-2 py-0.5 rounded border border-border hover:bg-muted transition-colors text-foreground`,children:q?`Raw`:`Beautify`})}),n&&r&&t&&(0,V.jsxs)(`div`,{className:`hidden md:flex items-center h-7 border-b border-border bg-background shrink-0`,children:[(0,V.jsx)(Fe,{filePath:n,projectName:r,tabId:t,className:`flex items-center flex-1 min-w-0 overflow-x-auto scrollbar-none px-2 gap-0.5`}),(0,V.jsx)(Re,{value:L,onChange:Ue}),Ot,(0,V.jsx)(Ie,{ext:P,mdMode:z,onMdModeChange:De,csvMode:Oe,onCsvModeChange:ke,wordWrap:k,onToggleWordWrap:le,onRefresh:yt,refreshing:_t,filePath:n,projectName:r,className:`shrink-0 flex items-center gap-1 px-2`})]}),i==null&&t&&(A||n&&!r)&&(0,V.jsxs)(`div`,{className:`hidden md:flex items-center h-7 border-b border-border bg-background shrink-0 px-2`,children:[(0,V.jsx)(`span`,{className:`text-xs text-muted-foreground truncate flex-1`,children:A?`Untitled-${e?.untitledNumber??1}`:n?b(n):`Untitled`}),(0,V.jsx)(Re,{value:L,onChange:Ue}),Ot]}),ye&&Oe===`table`?(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(`div`,{className:`flex items-center justify-center h-full`,children:(0,V.jsx)(h,{className:`size-5 animate-spin text-text-subtle`})}),children:(0,V.jsx)(Ge,{content:s??``,onContentChange:St,wordWrap:k})}):_e&&z===`preview`?(0,V.jsx)(tt,{content:s??``}):(0,V.jsx)(`div`,{className:`flex-1 overflow-hidden min-h-0`,children:(0,V.jsx)(be,{height:`100%`,language:L,value:s??``,onChange:i==null?St:void 0,onMount:Dt,theme:ue,options:{fontSize:13,fontFamily:`Menlo, Monaco, Consolas, monospace`,wordWrap:k?`on`:`off`,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbers:`on`,folding:!0,bracketPairColorization:{enabled:!0},readOnly:i!=null},loading:(0,V.jsx)(h,{className:`size-5 animate-spin text-text-subtle`})},L)}),R&&(Y||rt||at)&&(0,V.jsx)(et,{result:Y,error:rt,loading:at,connName:K?.name,onClose:()=>{nt(null),it(null),ot(!1)},onOpenInTab:ut}),ft&&(0,V.jsx)(We,{editorRef:D,readOnly:i!=null}),j&&(0,V.jsx)(ze,{open:j,defaultName:`Untitled-${e?.untitledNumber??1}`,content:E.current,onSave:Ct,onCancel:()=>M(!1)})]})}),Y=()=>{};function et({result:e,error:t,loading:n,connName:r,onClose:i,onOpenInTab:a}){let s=(0,B.useMemo)(()=>e?.changeType===`select`&&e.rows.length>0?{columns:e.columns,rows:e.rows,total:e.rows.length,limit:e.rows.length}:null,[e]),c=(0,B.useMemo)(()=>(e?.columns??[]).map(e=>({name:e,type:`text`,nullable:!0,pk:!1,defaultValue:null})),[e?.columns]),[l,u]=(0,B.useState)(250),d=(0,B.useCallback)(e=>{e.preventDefault();let t=e.clientY,n=l,r=e.currentTarget.ownerDocument,i=e=>u(Math.max(80,n+(t-e.clientY))),a=()=>{r.removeEventListener(`mousemove`,i),r.removeEventListener(`mouseup`,a)};r.addEventListener(`mousemove`,i),r.addEventListener(`mouseup`,a)},[l]);return(0,V.jsxs)(`div`,{className:`shrink-0 border-t border-border flex flex-col`,style:{height:l},children:[(0,V.jsx)(`div`,{onMouseDown:d,className:`shrink-0 h-1.5 cursor-row-resize bg-border/50 hover:bg-primary/30 flex items-center justify-center transition-colors`,children:(0,V.jsx)(L,{className:`size-3 text-muted-foreground/50`})}),(0,V.jsxs)(`div`,{className:`flex items-center gap-2 px-2 py-1 bg-muted/50 border-b border-border shrink-0`,children:[(0,V.jsx)(o,{className:`size-3 text-muted-foreground`}),(0,V.jsxs)(`span`,{className:`text-xs font-medium text-foreground truncate flex-1`,children:[r?`${r} · Results`:`Query Results`,e?.executionTimeMs!=null&&(0,V.jsxs)(`span`,{className:`text-muted-foreground ml-1.5 font-normal`,children:[e.executionTimeMs,`ms`]})]}),(0,V.jsxs)(`button`,{type:`button`,onClick:a,title:`Open in DB Viewer tab`,className:`flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] text-muted-foreground hover:text-foreground hover:bg-muted transition-colors`,children:[(0,V.jsx)(R,{className:`size-3`}),(0,V.jsx)(`span`,{className:`hidden sm:inline`,children:`Open in Tab`})]}),(0,V.jsx)(`button`,{type:`button`,onClick:i,title:`Close results`,className:`p-0.5 rounded text-muted-foreground hover:text-foreground transition-colors`,children:(0,V.jsx)(g,{className:`size-3`})})]}),(0,V.jsxs)(`div`,{className:`flex-1 overflow-hidden min-h-0`,children:[n&&(0,V.jsx)(`div`,{className:`flex items-center justify-center h-full`,children:(0,V.jsx)(h,{className:`size-4 animate-spin text-muted-foreground`})}),t&&(0,V.jsx)(`div`,{className:`px-3 py-2 text-xs text-destructive bg-destructive/5`,children:t}),e?.changeType===`modify`&&(0,V.jsxs)(`div`,{className:`px-3 py-2 text-xs text-success`,children:[e.rowsAffected,` row(s) affected`]}),s&&(0,V.jsx)(m,{columns:s.columns,rows:s.rows,total:s.total,limit:s.limit,schema:c,loading:!1,page:1,onPageChange:Y,onCellUpdate:Y,readOnly:!0,orderBy:null,orderDir:`ASC`,onToggleSort:Y,connectionName:r}),e?.changeType===`select`&&e.rows.length===0&&(0,V.jsx)(`div`,{className:`px-3 py-2 text-xs text-muted-foreground`,children:`No results`})]})]})}function X(){return(0,V.jsx)(`div`,{className:`flex items-center justify-center h-full`,children:(0,V.jsx)(h,{className:`size-5 animate-spin text-text-subtle`})})}function tt({content:e}){return(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(`div`,{className:`animate-pulse h-4 bg-muted rounded m-4`}),children:(0,V.jsx)(J,{content:e,className:`flex-1 overflow-auto p-4`})})}export{$e as CodeEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{S as t,x as n}from"./vendor-markdown-Ls5AcU91.js";import{t as r}from"./createLucideIcon-D8pyde1A.js";import{t as i}from"./arrow-left-CyFcsyzD.js";import{n as a,t as o}from"./circle-question-mark-CzR7YRc-.js";import{t as s}from"./check-DN75Ucvz.js";import{t as c}from"./chevron-down-Dp0rpHb8.js";import{t as l}from"./chevron-right-De-Wz5Lz.js";import{t as u}from"./chevron-up-8PbsNiJp.js";import{t as d}from"./copy-BewHj66E.js";import{t as f}from"./download-DG3_9xXy.js";import{n as p,r as m,t as h}from"./use-coarse-long-press-BmI_GVW5.js";import{t as g}from"./eye-off-GjXVuAOn.js";import{t as _}from"./eye-gWwaF4Lg.js";import{t as v}from"./folder-symlink-fQRoG_rV.js";import{t as y}from"./x-YDu4m2Iq.js";import{r as b,s as x}from"./api-client-oY1tC3tM.js";import{t as S}from"./react-X4jUntEf.js";import{n as C}from"./utils-C9OjCrou.js";import{t as w}from"./window-store-DGKf9rPG.js";import{t as ee}from"./tab-store-PZsP5ZwG.js";import{n as T}from"./use-is-mobile-CYW3FJFE.js";import{i as te,n as ne,o as re,r as E,t as ie}from"./mobile-bottom-sheet-BD5b7KJF.js";import{$ as ae,At as oe,Bt as se,Cr as ce,Dt as le,Et as D,Ht as ue,It as de,Jn as fe,Kn as pe,Kt as me,Lt as he,Mt as ge,Nn as _e,Nt as O,Ot as ve,Pn as ye,Pr as be,Pt as xe,Q as Se,Rt as Ce,St as k,Tt as we,Un as Te,Vt as Ee,X as A,Xn as j,Z as De,_t as Oe,at as M,bt as ke,cr as Ae,ct as je,dt as Me,et as Ne,ft as Pe,gn as Fe,gt as Ie,hr as Le,ht as Re,ir as ze,jn as Be,jt as Ve,kt as N,lt as He,m as Ue,mr as We,mt as Ge,nt as P,or as Ke,pt as qe,rn as Je,rt as Ye,st as Xe,tn as Ze,tt as Qe,ut as $e,vr as et,vt as tt,wt as F,xt as nt,yt as I,zt as rt}from"./index--KWVW-Ga.js";import{a as L,o as R,s as it}from"./can-open-in-ppm-j3jh7fUo.js";var at=r(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),ot=r(`columns-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),z=r(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),st=r(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),ct=r(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),lt=r(`pencil-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),ut=r(`scissors`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M8.12 8.12 12 12`,key:`1alkpv`}],[`path`,{d:`M20 4 8.12 15.88`,key:`xgtan2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M14.8 14.8 20 20`,key:`ptml3r`}]]),dt=r(`usb`,[[`circle`,{cx:`10`,cy:`7`,r:`1`,key:`dypaad`}],[`circle`,{cx:`4`,cy:`20`,r:`1`,key:`22iqad`}],[`path`,{d:`M4.7 19.3 19 5`,key:`1enqfc`}],[`path`,{d:`m21 3-3 1 2 2Z`,key:`d3ov82`}],[`path`,{d:`M9.26 7.68 5 12l2 5`,key:`1esawj`}],[`path`,{d:`m10 14 5 2 3.5-3.5`,key:`v8oal5`}],[`path`,{d:`m18 12 1-1 1 1-1 1Z`,key:`1bh22v`}]]),ft=`ppm-explorer-pins`,pt=50;function mt(){try{let e=localStorage.getItem(ft),t=e?JSON.parse(e):[];return Array.isArray(t)?t.filter(e=>!!e&&typeof e.path==`string`&&typeof e.name==`string`).slice(0,pt):[]}catch{return[]}}function ht(e){try{localStorage.setItem(ft,JSON.stringify(e))}catch{}}var B=S((e,t)=>({pins:mt(),isPinned:e=>t().pins.some(t=>t.path===e),pin:n=>{if(t().isPinned(n.path))return;let r=[...t().pins,n].slice(0,pt);ht(r),e({pins:r})},unpin:n=>{let r=t().pins.filter(e=>e.path!==n);ht(r),e({pins:r})}}));function gt(e){return L(e.name)?(ee.getState().openTab({type:it(e.name)===`sqlite`?`sqlite`:`editor`,title:e.name,projectId:null,metadata:{filePath:e.path},closable:!0}),!0):!1}function _t(e){return w.getState().open(`explorer`,{path:e})}async function vt(e){let t=e.filter(e=>e.type===`file`),n=e.length-t.length;n>0&&x.warning(n===1?`Folders cannot be downloaded`:`${n} folders skipped`);for(let e of t)try{Je(await I.downloadUrl(e.path),e.name)}catch(t){x.error(`Download failed: ${e.name}`,{description:t instanceof Error?t.message:void 0})}}async function yt(e,t){e.length!==0&&(await Ze(e.join(`
|
|
2
|
-
`)),x.success(e.length===1?`${t} copied`:`${e.length} ${t.toLowerCase()}s copied`))}var bt=/[<>:"|?*]/,xt=/[\u0000-\u001f]/,St=/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(\..*)?$/i;function Ct(e,t){if(!e)return`Name cannot be empty`;if(e===`.`||e===`..`)return`Reserved name`;if(e.includes(`/`)||e.includes(`\\`))return`Name cannot contain path separators`;if(xt.test(e))return`Invalid character in name`;if(t===`win32`){if(bt.test(e))return`Cannot contain < > : " | ? *`;if(St.test(e))return`"${e}" is a reserved Windows name`;if(e.endsWith(`.`)||e.endsWith(` `))return`Cannot end with a dot or space`}return null}async function wt(e,t,n,r){let i=Oe(e,t,r);try{return n===`folder`?await I.mkdir(i,!1):await I.touch(i),ke(e),!0}catch(e){return x.error(n===`folder`?`Could not create folder`:`Could not create file`,{description:qe(e)}),!1}}async function Tt(e,t,n){try{return await I.rename(e,t),ke(Pe(e,n)),!0}catch(e){return x.error(`Rename failed`,{description:qe(e)}),!1}}async function Et(e,t,n){let r={removed:0,needsPermanent:[]},i=new Set;for(let a of e){i.add(Pe(a,n));try{await I.remove(a,t),r.removed++}catch(e){if(e instanceof tt&&e.code===`NO_TRASH`){r.needsPermanent.push(a);continue}x.error(`Delete failed`,{description:qe(e)})}}if(ke(...i),r.removed>0){let e=`${r.removed} item${r.removed===1?``:`s`}`;x.success(t?`Deleted ${e}`:`Moved ${e} to Trash`)}return r}function Dt(e,t){let n=e?Array.from({length:e.length},(t,n)=>e.item(n)).filter(e=>e!=null):[];return t(),n}var V=e(t(),1),H=n();function Ot(e){let t=(0,V.useRef)(null),n=(0,V.useRef)(null),r=typeof document<`u`&&`webkitdirectory`in document.createElement(`input`),i=t=>{let n=Dt(t.target.files,()=>{t.target.value=``});n.length!==0&&e(n.map(e=>({file:e,relativePath:e.webkitRelativePath||e.name})))};return{supportsFolderPicker:r,openFilePicker:()=>t.current?.click(),openFolderPicker:()=>n.current?.click(),inputs:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`input`,{ref:t,type:`file`,multiple:!0,hidden:!0,onChange:i,"data-testid":`explorer-upload-file-input`}),r&&(0,H.jsx)(`input`,{ref:n,webkitdirectory:``,type:`file`,multiple:!0,hidden:!0,onChange:i,"data-testid":`explorer-upload-folder-input`})]})}}function kt(e,t){let n=(0,V.useCallback)((t,n)=>Qe(t,n,e.sep,e),[e]),r=Ot(e=>void n(e,t()));return{uploadInto:n,openUploadPicker:r.openFilePicker,openUploadFolderPicker:r.openFolderPicker,supportsFolderUpload:r.supportsFolderPicker,uploadInputs:r.inputs}}function At(e,t,n,r){let i=k(e=>e.patch),a=Ne(),o=ae(),[s,c]=(0,V.useState)(null),[l,u]=(0,V.useState)(null),[d,f]=(0,V.useState)(null),p=(0,V.useRef)(t);p.current=t;let m=(0,V.useRef)(a);m.current=a;let h=(0,V.useRef)(o);h.current=o;let g=(0,V.useMemo)(()=>({get sep(){return p.current?.sep??`/`},resolve:e=>m.current.resolve(e),startBatch:()=>m.current.startBatch(),endBatch:()=>m.current.endBatch(),confirmPermanentOverwrite:e=>h.current.confirm(e)}),[]),_=()=>p.current?.path??``,v=kt(g,_),y=(0,V.useMemo)(()=>({openEntry:e=>{e.type===`directory`?n.go(e.path):gt(e)},openInNewWindow:e=>{_t(e.type===`directory`?e.path:p.current?.path??e.path)},openInTerminal:e=>{Ye(e?.type===`directory`?e.path:_())},cut:e=>$e(e.map(e=>e.path),`cut`),copy:e=>$e(e.map(e=>e.path),`copy`),paste:e=>void He(e??_(),g),transferInto:async(e,t,n)=>{let r=await Me(e,t,n,g);if(r.succeeded>0){let e=n===`copy`?`Copied`:`Moved`;x.success(`${e} ${r.succeeded} item${r.succeeded===1?``:`s`}`)}},uploadInto:v.uploadInto,openUploadPicker:v.openUploadPicker,openUploadFolderPicker:v.openUploadFolderPicker,supportsFolderUpload:v.supportsFolderUpload,startRename:t=>{f(null),i(e,{inlineEdit:{kind:`rename`,path:t.path,initial:t.name}})},startCreate:t=>{f(null),i(e,{inlineEdit:{kind:t,initial:``}})},cancelInline:()=>{f(null),i(e,{inlineEdit:null})},commitInline:async t=>{let n=p.current,a=n?.inlineEdit;if(!n||!a)return;let o=t.trim();if(a.kind===`rename`&&o===a.initial){i(e,{inlineEdit:null});return}let s=Ct(o,r);if(s){f(s);return}f(null),(a.kind===`rename`?await Tt(a.path,o,n.sep):await wt(n.path,o,a.kind===`new-folder`?`folder`:`file`,n.sep))&&i(e,{inlineEdit:null})},trash:e=>{Et(e.map(e=>e.path),!1,p.current?.sep??`/`).then(e=>{e.needsPermanent.length>0&&c({paths:e.needsPermanent,names:e.needsPermanent.map(e=>e.split(/[/\\]/).pop()??e)})})},confirmPermanentDelete:e=>{e.length!==0&&c({paths:e.map(e=>e.path),names:e.map(e=>e.name)})},download:e=>void vt(e),copyPath:e=>void yt(e,`Path`),copyName:e=>void yt(e,`Name`),togglePin:(e,t)=>{let n=B.getState();n.isPinned(e)?n.unpin(e):n.pin({path:e,name:t})},showProperties:e=>u(e)}),[e,i,n,g,r,v]),b=(0,V.useCallback)(()=>{let e=s;c(null),e&&Et(e.paths,!0,p.current?.sep??`/`)},[s]);return{actions:y,dialogs:{collision:a.state,pendingDelete:s,permanentOverwrite:o.state,properties:l,inlineError:d,closeDelete:()=>c(null),runPermanentDelete:b,closeProperties:()=>u(null),uploadInputs:v.uploadInputs}}}var jt=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#EA580C`,fillRule:`evenodd`,d:`M5.522 13.915c-.268.895-.402 1.341-.37 1.766.032.374.154.733.356 1.045.229.351.602.611 1.35 1.13l3.3 2.297c.666.463 1 .696 1.36.786.318.08.65.08.97.003.36-.09.696-.32 1.365-.78l3.336-2.302c.755-.52 1.133-.78 1.365-1.135.204-.313.326-.675.355-1.052.033-.428-.105-.877-.379-1.777l-2.923-9.599c-.141-.466-.212-.699-.348-.872a1.119 1.119 0 00-.45-.343C14.613 3 14.379 3 13.91 3H10.1c-.47 0-.706 0-.905.084-.176.073-.33.192-.45.345-.136.174-.206.408-.345.876l-2.878 9.611zm8.536-8.878c.112.145.17.344.285.736l2.51 8.6a10.147 10.147 0 00-3.001-1.058l-1.633-5.762a.222.222 0 00-.078-.113.207.207 0 00-.253 0 .222.222 0 00-.077.113l-1.614 5.758c-1.05.19-2.067.549-3.014 1.062l2.523-8.601c.114-.394.172-.59.284-.736.1-.128.23-.228.376-.29.167-.07.364-.07.757-.07h1.801c.394 0 .592 0 .759.07a.943.943 0 01.375.291zm-1.945 10.367c.95 0 1.777-.25 2.19-.62a1.961 1.961 0 01-.133 1.467c-.265.511-.65.765-.995.994-.436.288-.81.537-.81 1.202 0 .22.049.43.136.615a1.622 1.622 0 01-.72-.617c-.176-.275-.27-.599-.27-.93v-.041c0-.46 0-1.026-.62-1.026a.634.634 0 00-.466.2.689.689 0 00-.193.486c-.698-.73-.637-1.779-.637-1.779 0-.214.02-.548.112-.84.26.51 1.238.888 2.406.888v.001z`,clipRule:`evenodd`})}),Mt=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`rect`,{width:`2`,height:`8`,x:`3`,y:`8`,fill:`#64748B`,rx:`1`}),(0,H.jsx)(`rect`,{width:`2`,height:`12`,x:`7`,y:`6`,fill:`#64748B`,rx:`1`}),(0,H.jsx)(`rect`,{width:`2`,height:`18`,x:`11`,y:`3`,fill:`#64748B`,rx:`1`}),(0,H.jsx)(`rect`,{width:`2`,height:`12`,x:`15`,y:`6`,fill:`#64748B`,rx:`1`}),(0,H.jsx)(`rect`,{width:`2`,height:`8`,x:`19`,y:`8`,fill:`#64748B`,rx:`1`})]}),Nt=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#F59E0B`,d:`M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z`})}),Pt=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 25 24`,...e,children:(0,H.jsx)(`path`,{fill:`#60A5FA`,d:`M17.763 9.938h-2.489a2.432 2.432 0 00-.278-.858c-.14-.254-.32-.47-.54-.648a2.375 2.375 0 00-.761-.41 2.912 2.912 0 00-.927-.141c-.602 0-1.126.15-1.573.449-.447.295-.794.727-1.04 1.295-.246.564-.37 1.25-.37 2.057 0 .83.124 1.526.37 2.09.25.565.598.991 1.045 1.28.447.287.964.431 1.551.431.33 0 .635-.044.915-.13.284-.088.536-.215.756-.381.22-.17.401-.377.545-.62.148-.242.25-.519.307-.83l2.489.012a4.643 4.643 0 01-1.511 2.87 4.84 4.84 0 01-1.535.92c-.59.223-1.26.335-2.005.335-1.038 0-1.966-.235-2.784-.704-.815-.47-1.459-1.15-1.932-2.04-.47-.89-.705-1.968-.705-3.233 0-1.27.239-2.349.716-3.239.477-.89 1.125-1.568 1.943-2.034.819-.47 1.739-.704 2.762-.704.674 0 1.299.094 1.875.284.58.189 1.093.466 1.54.83.446.359.81.8 1.09 1.323.284.523.466 1.121.546 1.796z`})}),Ft=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{stroke:`#2563EB`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M6.778 8.519L3 12.297l3.778 3.779M17.222 8.519L21 12.297l-3.778 3.779M9.271 18.595L14.73 6`})}),It=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{stroke:`#EA580C`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M6.778 8.519L3 12.297l3.778 3.779M17.222 8.519L21 12.297l-3.778 3.779M9.271 18.595L14.73 6`})}),Lt=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 25 24`,...e,children:[(0,H.jsx)(`g`,{fill:`#60A5FA`,clipPath:`url(#clip0_20556_569)`,children:(0,H.jsx)(`path`,{d:`M16.633 14.185v-4.37h1.105v4.37h-1.105zM15 12.552v-1.104h4.37v1.104H15zM21.599 14.185v-4.37h1.105v4.37h-1.105zm-1.633-1.633v-1.104h4.37v1.104h-4.37zM14.6 9.938h-2.49a2.436 2.436 0 00-.278-.858c-.14-.254-.32-.47-.54-.648a2.375 2.375 0 00-.761-.41 2.912 2.912 0 00-.926-.141c-.602 0-1.127.15-1.574.449-.447.295-.794.727-1.04 1.295-.246.564-.37 1.25-.37 2.057 0 .83.124 1.526.37 2.09.25.565.599.991 1.046 1.28.447.287.964.431 1.55.431.33 0 .635-.044.916-.13.284-.088.536-.215.755-.381.22-.17.402-.377.546-.62.147-.242.25-.519.307-.83l2.488.012a4.642 4.642 0 01-1.511 2.87 4.84 4.84 0 01-1.534.92c-.591.223-1.26.335-2.006.335-1.038 0-1.966-.235-2.784-.704-.814-.47-1.458-1.15-1.932-2.04-.47-.89-.704-1.968-.704-3.233 0-1.27.238-2.349.716-3.239.477-.89 1.125-1.568 1.943-2.034.818-.47 1.738-.704 2.761-.704.674 0 1.3.094 1.875.284.58.189 1.093.466 1.54.83.447.359.81.8 1.09 1.323.285.523.467 1.121.546 1.796z`})}),(0,H.jsx)(`defs`,{children:(0,H.jsx)(`clipPath`,{id:`clip0_20556_569`,children:(0,H.jsx)(`path`,{fill:`#fff`,d:`M0 0H24V24H0z`,transform:`translate(.336)`})})})]}),Rt=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#14B8A6`,d:`M15.263 9.938h-2.489a2.432 2.432 0 00-.278-.858c-.14-.254-.32-.47-.54-.648a2.375 2.375 0 00-.761-.41 2.912 2.912 0 00-.927-.141c-.602 0-1.126.15-1.573.449-.447.295-.794.727-1.04 1.295-.246.564-.37 1.25-.37 2.057 0 .83.124 1.526.37 2.09.25.565.598.991 1.045 1.28.447.287.964.431 1.551.431.33 0 .635-.044.915-.13.284-.088.536-.215.756-.381.22-.17.401-.377.545-.62.148-.242.25-.519.307-.83l2.489.012a4.643 4.643 0 01-1.511 2.87 4.84 4.84 0 01-1.535.92c-.59.223-1.26.335-2.005.335-1.038 0-1.966-.235-2.784-.704-.815-.47-1.459-1.15-1.932-2.04-.47-.89-.705-1.968-.705-3.233 0-1.27.239-2.349.716-3.239.477-.89 1.125-1.568 1.943-2.034.818-.47 1.739-.704 2.762-.704.674 0 1.299.094 1.875.284.58.189 1.093.466 1.54.83.446.359.81.8 1.09 1.323.284.523.466 1.121.546 1.796zM20.273 16.47l1.466-8.94h1.397l-1.467 8.94h-1.396zm-4.003-2.218l.232-1.397h6.983l-.231 1.397H16.27zm.86 2.217l1.467-8.938h1.396l-1.466 8.938H17.13zm-.349-5.325l.236-1.396H24l-.236 1.397h-6.983z`})}),zt=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsxs)(`mask`,{id:`a`,maskUnits:`userSpaceOnUse`,x:`3`,y:`3`,width:`18`,height:`18`,fill:`#000`,children:[(0,H.jsx)(`path`,{fill:`#fff`,d:`M3 3h18v18H3z`}),(0,H.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M15.8889 5H8.11111C6.39289 5 5 6.39289 5 8.11111v7.77779C5 17.6071 6.39289 19 8.11111 19h7.77779C17.6071 19 19 17.6071 19 15.8889V8.11111C19 6.39289 17.6071 5 15.8889 5Zm0 12.4444H8.1111c-.05369 0-.10674-.0027-.15904-.008.0523.0053.10536.008.15905.008h7.77779Zm1.5555-1.5555c0 .8054-.6121 1.4679-1.3965 1.5475.7844-.0797 1.3965-.7421 1.3965-1.5475V8.11111v7.77779Z`})]}),(0,H.jsx)(`path`,{d:`M15.8889 19.4444c1.1046 0 2-.8954 2-2 0-1.1045-.8954-2-2-2v4Zm-7.7778-2 .00001-2H8.1111v2Zm-.15904-.008.20206-1.9898c-1.09891-.1115-2.08022.6888-2.19182 1.7877-.1116 1.099.68877 2.0803 1.78768 2.1919l.20208-1.9898Zm8.09584 0-.2021-1.9897c-1.0989.1116-1.8992 1.0929-1.7876 2.1918.1116 1.0989 1.0929 1.8993 2.1918 1.7877l-.2021-1.9898Zm3.3965-9.32529c0-1.10457-.8954-2-2-2-1.1045 0-2 .89543-2 2h4ZM8.11111 7h7.77779V3H8.11111v4ZM7 8.11111C7 7.49746 7.49746 7 8.11111 7V3C5.28832 3 3 5.28832 3 8.11111h4Zm0 7.77779V8.11111H3v7.77779h4ZM8.11111 17C7.49746 17 7 16.5025 7 15.8889H3C3 18.7117 5.28832 21 8.11111 21v-4Zm7.77779 0H8.11111v4h7.77779v-4ZM17 15.8889C17 16.5025 16.5025 17 15.8889 17v4C18.7117 21 21 18.7117 21 15.8889h-4Zm0-7.77779v7.77779h4V8.11111h-4ZM15.8889 7C16.5025 7 17 7.49746 17 8.11111h4C21 5.28832 18.7117 3 15.8889 3v4Zm0 8.4444H8.11111l-.00001 4h7.7778v-4Zm-7.7778 0c.01378 0 .02816.0007.04302.0022l-.40411 3.9796c.11944.0121.23994.0182.36109.0182v-4Zm-.36112 3.9818c.11935.0121.23985.0182.36113.0182v-4c.01389 0 .02828.0008.04304.0022l-.40417 3.9796Zm.36113.0182h7.77779v-4H8.11111v4Zm8.13889-.0182c1.7951-.1823 3.1944-1.6951 3.1944-3.5373h-4c0-.2314.1752-.4193.4015-.4423l.4041 3.9796Zm-.8056-3.5373c0-.2314.1752-.4193.4014-.4422l.4042 3.9795c1.795-.1823 3.1944-1.6951 3.1944-3.5373h-4Zm0-7.77779v7.77779h4V8.11111h-4Zm4 0c0-.07155-.0038-.14596-.0124-.22267-.0086-.07678-.0218-.15478-.0403-.23343-.0184-.07869-.0416-.15651-.0697-.233-.0281-.07648-.0604-.15005-.0963-.22045-.036-.07036-.0749-.13629-.1158-.1978-.0408-.06145-.0832-.11775-.1258-.16912-.085-.10251-.1704-.18478-.2468-.2495-.0383-.03245-.0749-.061-.1089-.08594-.034-.02494-.0659-.04672-.0949-.06556-.029-.01883-.0558-.03518-.0797-.04914-.0239-.01396-.0456-.02598-.0644-.03606-.0188-.01008-.0355-.01864-.0493-.02558-.0139-.00694-.0257-.01268-.0348-.01701-.009-.00429-.0163-.00769-.0207-.00971-.0022-.00104-.004-.00187-.0051-.00238-.0006-.00025-.001-.00046-.0013-.00059-.0002-.00006-.0003-.00011-.0003-.00014-.0001-.00001-.0001-.00003-.0001-.00004v-.00001c-.0006-.00027.0028.00131.0068.00316.0044.00202.0117.00541.0207.00971.0091.00433.0209.01007.0348.01701.0138.00694.0305.0155.0493.02558.0188.01008.0405.0221.0644.03606.0239.01396.0507.03031.0797.04914.029.01883.0609.04062.0949.06556.0339.02494.0706.05349.1089.08594.0764.06472.1618.14698.2468.24949.0426.05138.085.10768.1258.16913.0409.06151.0798.12744.1157.19779.036.07041.0683.14397.0964.22046.028.07648.0513.15431.0697.23299.0185.07865.0317.15665.0403.23344.0086.07671.0124.15112.0124.22267h-4c0 .07154.0039.14595.0125.22267.0086.07678.0218.15478.0402.23343.0185.07868.0417.15651.0698.233.0281.07648.0604.15005.0963.22045.036.07036.0749.13629.1158.1978.0408.06144.0832.11775.1258.16912.0849.10251.1704.18478.2468.2495.0383.03244.0749.061.1089.08594.0339.02493.0658.04672.0949.06556.029.01883.0558.03517.0797.04914.0239.01396.0456.02598.0644.03606.0188.01007.0354.01864.0493.02558.0139.00693.0257.01268.0348.01701.009.00429.0163.00769.0207.00971.0022.00104.004.00187.0051.00237.0006.00026.001.00047.0013.00059.0001.00007.0003.00012.0003.00015.0001.00001.0001.00003.0001.00004v.00001c.0006.00026-.0028-.00131-.0068-.00316-.0044-.00202-.0117-.00542-.0207-.00971-.0091-.00433-.0209-.01008-.0348-.01701-.0139-.00694-.0305-.01551-.0493-.02558-.0188-.01008-.0405-.0221-.0644-.03606-.0239-.01396-.0507-.03031-.0797-.04914-.029-.01884-.061-.04062-.0949-.06556-.034-.02494-.0706-.0535-.1089-.08594-.0764-.06472-.1619-.14699-.2468-.2495-.0426-.05137-.085-.10767-.1258-.16912-.0409-.06151-.0798-.12744-.1158-.1978-.0359-.0704-.0682-.14397-.0963-.22045-.0281-.07649-.0513-.15431-.0698-.233-.0184-.07865-.0316-.15665-.0402-.23343-.0086-.07671-.0125-.15112-.0125-.22267h4Zm0 7.77779V8.11111h-4v7.77779h4Z`,fill:`#14B8A6`,mask:`url(#a)`}),(0,H.jsx)(`rect`,{x:`7`,y:`7`,width:`4`,height:`2`,rx:`1`,fill:`#14B8A6`}),(0,H.jsx)(`rect`,{x:`7`,y:`11`,width:`4`,height:`2`,rx:`1`,fill:`#14B8A6`}),(0,H.jsx)(`rect`,{x:`7`,y:`15`,width:`4`,height:`2`,rx:`1`,fill:`#14B8A6`}),(0,H.jsx)(`rect`,{x:`13`,y:`7`,width:`4`,height:`2`,rx:`1`,fill:`#14B8A6`}),(0,H.jsx)(`rect`,{x:`13`,y:`11`,width:`4`,height:`2`,rx:`1`,fill:`#14B8A6`}),(0,H.jsx)(`rect`,{x:`13`,y:`15`,width:`4`,height:`2`,rx:`1`,fill:`#14B8A6`})]}),Bt=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 25 24`,...e,children:[(0,H.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`m14.4683 3.59153 3.0794 3.0794L6.41714 6.0794l5.68376-2.84252C12.3589 3.08205 12.7586 3 13.1662 3c.4737 0 1.0335.32157 1.3021.59153ZM6.41583 15.6709c0 .9502.1191 1.1831.59153 1.6582l.47375.4737h.00001L10.6783 21h7.4609l.0001-3.1972h-.0001l-5.2099-5.9206-6.51347-5.80279v9.59149Z`,fill:`#38BDF8`}),(0,H.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.41583 6.07812h9.47377c.6524 0 1.1248.05823 1.6568.59154l3.79 3.79004v7.3418h-3.1971L6.41583 6.07812ZM3.92796 14.2497l3.0794 3.0794-.59153-11.24969L3.5733 12c-.10189.2144-.23687.5889-.23687.8284 0 .5174.22629 1.0468.59153 1.4213Z`,fill:`#075985`})]}),Vt=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{d:`M4.8 6.6c0-.62.28-1.16.7-1.6.4-.44.97-.8 1.61-1.08C8.4 3.34 10.13 3 12 3c1.87 0 3.6.34 4.89.92.64.28 1.2.64 1.61 1.08.42.44.7.98.7 1.6v10.8c0 .62-.28 1.16-.7 1.6-.4.44-.97.8-1.61 1.08-1.29.58-3.02.92-4.89.92-1.87 0-3.6-.34-4.89-.92A5.05 5.05 0 0 1 5.5 19c-.42-.44-.7-.98-.7-1.6V6.6Zm1.35 0c0 .19.08.41.33.68.25.26.64.53 1.18.77 1.08.48 2.61.8 4.34.8s3.26-.32 4.34-.8c.54-.24.93-.5 1.18-.77.25-.27.33-.5.33-.68 0-.19-.08-.41-.33-.68a3.73 3.73 0 0 0-1.18-.77c-1.08-.48-2.61-.8-4.34-.8s-3.26.32-4.34.8c-.54.24-.93.5-1.18.77-.25.27-.33.5-.33.68Zm11.7 2.15c-.29.2-.61.38-.96.53-1.29.58-3.02.92-4.89.92-1.87 0-3.6-.34-4.89-.92a6.12 6.12 0 0 1-.96-.53v8.65c0 .19.08.41.33.68.25.26.64.53 1.18.77 1.08.48 2.61.8 4.34.8s3.26-.32 4.34-.8c.54-.24.93-.5 1.18-.77.25-.27.33-.5.33-.68V8.75Z`,fill:`#F472B6`}),(0,H.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 3.69c1.33-.6 3.1-.94 5-.94s3.67.34 5 .94c.65.3 1.25.67 1.69 1.14.44.47.76 1.07.76 1.77v10.8c0 .7-.32 1.3-.76 1.77a5.3 5.3 0 0 1-1.7 1.14c-1.32.6-3.09.94-4.99.94-1.9 0-3.67-.34-5-.94a5.3 5.3 0 0 1-1.69-1.14 2.58 2.58 0 0 1-.76-1.77V6.6c0-.7.32-1.3.76-1.77a5.3 5.3 0 0 1 1.7-1.14ZM6.67 7.1c.22.24.59.5 1.1.72 1.04.47 2.54.78 4.24.78 1.7 0 3.2-.31 4.24-.78.51-.23.88-.48 1.1-.72.22-.23.26-.4.26-.5 0-.1-.04-.27-.26-.5a3.49 3.49 0 0 0-1.1-.72A10.72 10.72 0 0 0 12 4.6c-1.7 0-3.2.31-4.24.78-.51.23-.88.48-1.1.72-.22.23-.26.4-.26.5 0 .1.04.27.26.5Zm10.86-1.18c.25.27.33.5.33.68 0 .19-.08.41-.33.68-.25.26-.64.53-1.18.77-1.08.48-2.61.8-4.34.8s-3.26-.32-4.34-.8a3.73 3.73 0 0 1-1.18-.77c-.25-.27-.33-.5-.33-.68 0-.19.08-.41.33-.68.25-.26.64-.53 1.18-.77 1.08-.48 2.61-.8 4.34-.8s3.26.32 4.34.8c.54.24.93.5 1.18.77ZM7.11 20.08A5.05 5.05 0 0 1 5.5 19c-.42-.44-.7-.98-.7-1.6V6.6c0-.62.28-1.16.7-1.6.4-.44.97-.8 1.61-1.08C8.4 3.34 10.13 3 12 3c1.87 0 3.6.34 4.89.92.64.28 1.2.64 1.61 1.08.42.44.7.98.7 1.6v10.8c0 .62-.28 1.16-.7 1.6-.4.44-.97.8-1.61 1.08-1.29.58-3.02.92-4.89.92-1.87 0-3.6-.34-4.89-.92Zm-.45-2.18c.22.24.59.5 1.1.72 1.04.47 2.54.78 4.24.78 1.7 0 3.2-.31 4.24-.78.51-.23.88-.48 1.1-.72.22-.23.26-.4.26-.5V9.2c-.2.12-.4.22-.6.31-1.33.6-3.1.94-5 .94s-3.67-.34-5-.94l-.6-.3v8.19c0 .1.04.27.26.5Zm-.51-9.15a5.26 5.26 0 0 0 .96.53c1.29.58 3.02.92 4.89.92 1.87 0 3.6-.34 4.89-.92a6.5 6.5 0 0 0 .96-.53v8.65c0 .19-.08.41-.33.68-.25.26-.64.53-1.18.77-1.08.48-2.61.8-4.34.8s-3.26-.32-4.34-.8a3.73 3.73 0 0 1-1.18-.77c-.25-.27-.33-.5-.33-.68V8.75Z`,fill:`#F472B6`})]}),Ht=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{d:`M21.8028 10.5301c-.0543-.0439-.5607-.4342-1.6285-.4342-.282.0012-.5634.0259-.8414.0738-.2067-1.44602-1.3779-2.15104-1.4304-2.18267l-.2868-.16879-.1886.27779c-.2362.37317-.4086.78453-.5098 1.21661-.1912.82546-.0749 1.60076.3358 2.26356-.496.2822-1.2917.3516-1.4527.3578H2.62605c-.34411.0004-.62333.2843-.62521.6355-.01537 1.1781.18017 2.3492.57699 3.4556.45383 1.2148 1.129 2.1097 2.00741 2.6573.98432.6154 2.58353.967 4.39631.967.81893.0026 1.63635-.073 2.44145-.2259 1.1192-.2098 2.1962-.6091 3.1864-1.1815.8158-.4823 1.5501-1.0958 2.1744-1.817 1.0438-1.206 1.6656-2.5492 2.128-3.743h.1843c1.1428 0 1.8455-.4668 2.233-.8579.2576-.2495.4586-.5534.5891-.8905L22 10.6892l-.1972-.1591Z`,fill:`#60A5FA`}),(0,H.jsx)(`path`,{d:`M3.84723 11.5402h1.76541c.08514 0 .15414-.0705.15414-.1574V9.77764c.00048-.08691-.06816-.15774-.15327-.15822H3.84723c-.08515 0-.15415.07045-.15415.15733v1.60605c0 .0869.069.1574.15415.1574ZM6.28004 11.5402h1.76541c.08515 0 .15414-.0705.15414-.1574V9.77764c.00048-.08691-.06815-.15774-.1533-.15822H6.28001c-.08562 0-.15501.07082-.15501.15822v1.60516c.0005.087.06975.1574.15504.1574M8.74987 11.5402h1.76543c.0851 0 .1541-.0705.1541-.1574V9.77764c.0005-.08691-.0681-.15774-.1533-.15822H8.74984c-.08514 0-.15414.07045-.15414.15733v1.60605c.00003.0869.06905.1574.15417.1574ZM11.1905 11.5402h1.7654c.0853 0 .1545-.0703.155-.1574V9.77764c0-.0874-.0694-.15822-.155-.15822h-1.7654c-.0852 0-.1542.07045-.1542.15733v1.60605c0 .0869.069.1574.1542.1574ZM6.28001 9.23086h1.76541c.08526-.00049.15414-.0712.15414-.15823V7.46749c0-.08691-.06902-.15734-.15414-.15734H6.28001c-.08526 0-.15453.07028-.15501.15734v1.60514c.00048.0872.06958.15774.15501.15823ZM8.74987 9.23086h1.76543c.0852-.00049.1541-.0712.1541-.15823V7.46749c0-.08691-.069-.15734-.1541-.15734H8.74987c-.08514 0-.15414.07046-.15414.15734v1.60514c0 .08703.06889.15774.15414.15823ZM11.1905 9.23086h1.7654c.0854-.00049.1545-.07103.155-.15823V7.46749c-.0005-.08706-.0697-.15734-.155-.15734h-1.7654c-.0852 0-.1542.07046-.1542.15734v1.60514c0 .08703.0689.15774.1542.15823ZM11.1905 6.92074h1.7654c.0853 0 .1545-.07032.155-.15734V5.15734C13.1104 5.07028 13.0412 5 12.9559 5h-1.7654c-.0852 0-.1542.07043-.1542.15734v1.60603c0 .08691.069.15737.1542.15737ZM13.6526 11.5402h1.7654c.0853 0 .1545-.0703.155-.1574V9.77764c0-.0874-.0694-.15822-.155-.15822h-1.7654c-.0851 0-.1542.07045-.1542.15733v1.60605c0 .0869.0691.1574.1542.1574`,fill:`#60A5FA`})]}),Ut=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{stroke:`#64748B`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M6 3a1 1 0 00-1 1v16a1 1 0 001 1h12a1 1 0 001-1V8a1 1 0 00-.375-.78l-5-4A1 1 0 0013 3H6z`}),(0,H.jsx)(`path`,{stroke:`#64748B`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M12 4v5h6`})]}),Wt=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{fill:`#64748B`,d:`M8.97 9.56c.295 1.064-.32 2.17-1.356 2.437l-.55.14a5.797 5.797 0 00.006 1.764l.508.127c1.046.262 1.668 1.379 1.364 2.45l-.176.616c.413.377.884.682 1.396.9l.464-.507a1.835 1.835 0 012.728 0l.469.513a4.943 4.943 0 001.394-.89l-.186-.67c-.296-1.064.32-2.17 1.356-2.437l.549-.14a5.788 5.788 0 00-.006-1.764l-.507-.127c-1.047-.261-1.669-1.379-1.364-2.45l.175-.616a4.939 4.939 0 00-1.396-.9l-.464.507c-.742.809-1.986.809-2.727 0L10.177 8a4.939 4.939 0 00-1.394.89l.186.67zM12 14.464c-.753 0-1.364-.655-1.364-1.464 0-.808.61-1.464 1.364-1.464.753 0 1.364.656 1.364 1.464 0 .809-.61 1.464-1.364 1.464z`}),(0,H.jsx)(`path`,{fill:`#64748B`,fillRule:`evenodd`,d:`M4 20V6h16v14H4zM2 4a2 2 0 012-2h16a2 2 0 012 2v16a2 2 0 01-2 2H4a2 2 0 01-2-2V4z`,clipRule:`evenodd`})]}),U=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#64748B`,d:`M5.939 5.37a3.763 3.763 0 01-2.712 4.696l-1.099.272a10.777 10.777 0 00.012 3.4l1.015.244a3.763 3.763 0 012.728 4.723l-.35 1.187a9.936 9.936 0 002.792 1.734l.928-.976a3.763 3.763 0 015.454.001l.938.987a9.937 9.937 0 002.79-1.717l-.373-1.29a3.763 3.763 0 012.712-4.697l1.098-.271a10.774 10.774 0 00-.012-3.4l-1.014-.245a3.763 3.763 0 01-2.728-4.723l.35-1.186a9.929 9.929 0 00-2.792-1.735l-.928.976a3.762 3.762 0 01-5.454-.001l-.938-.987a9.932 9.932 0 00-2.79 1.717l.373 1.29zM12 14.822c-1.506 0-2.727-1.263-2.727-2.822 0-1.558 1.22-2.822 2.727-2.822 1.506 0 2.727 1.264 2.727 2.822 0 1.559-1.22 2.822-2.727 2.822z`})}),Gt=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#F87171`,d:`M20.661 11.198l-7.86-7.859a1.159 1.159 0 00-1.639 0L9.53 4.972l2.07 2.07a1.376 1.376 0 011.744 1.755l1.995 1.995a1.377 1.377 0 011.425 2.278 1.38 1.38 0 01-2.251-1.5l-1.86-1.861-.001 4.897a1.38 1.38 0 11-1.134-.04V9.623a1.379 1.379 0 01-.749-1.809l-2.04-2.04-5.39 5.388a1.16 1.16 0 000 1.64l7.86 7.858a1.16 1.16 0 001.64 0l7.822-7.821a1.16 1.16 0 000-1.64`})}),Kt=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 25 24`,...e,children:[(0,H.jsxs)(`g`,{fill:`#60A5FA`,clipPath:`url(#clip0_20558_611)`,children:[(0,H.jsx)(`path`,{fillRule:`evenodd`,d:`M1.878 9.794c-.046 0-.058-.023-.035-.058l.244-.313c.023-.035.081-.058.127-.058h4.14c.046 0 .058.035.034.07l-.197.301c-.023.035-.08.07-.116.07l-4.197-.012zM.128 10.86c-.047 0-.058-.022-.035-.057l.243-.313c.023-.035.081-.058.128-.058H5.75c.046 0 .07.035.058.07l-.093.278c-.012.046-.058.07-.104.07l-5.484.01zM2.933 11.928c-.046 0-.058-.035-.034-.07l.162-.29c.023-.035.07-.07.116-.07h2.319c.046 0 .07.035.07.082l-.024.278c0 .046-.046.081-.081.081l-2.528-.011zM14.968 9.585c-.73.186-1.229.325-1.948.51-.174.047-.185.059-.336-.115-.174-.197-.301-.325-.545-.44-.73-.36-1.438-.256-2.098.173-.789.51-1.195 1.264-1.183 2.203.012.928.65 1.693 1.565 1.82.789.105 1.45-.174 1.971-.765.104-.127.197-.267.313-.429H10.47c-.243 0-.3-.15-.22-.348.151-.36.43-.962.592-1.264a.313.313 0 01.29-.185h4.22c-.024.313-.024.626-.07.939-.127.835-.44 1.6-.95 2.273-.835 1.1-1.925 1.785-3.305 1.97-1.136.151-2.191-.07-3.119-.765-.858-.649-1.345-1.507-1.472-2.574-.151-1.263.22-2.4.985-3.397.823-1.078 1.913-1.762 3.247-2.006 1.09-.197 2.133-.07 3.072.569a3.634 3.634 0 011.345 1.634c.07.105.023.163-.116.197z`,clipRule:`evenodd`}),(0,H.jsx)(`path`,{d:`M18.806 15.997c-1.055-.023-2.018-.325-2.83-1.02a3.636 3.636 0 01-1.251-2.238c-.21-1.31.15-2.47.939-3.501.846-1.113 1.866-1.693 3.246-1.937 1.183-.208 2.296-.092 3.305.592.915.626 1.483 1.472 1.634 2.585.197 1.566-.255 2.84-1.333 3.93-.765.777-1.704 1.264-2.783 1.485-.313.058-.626.07-.927.104zm2.76-4.684c-.012-.15-.012-.267-.036-.383-.208-1.147-1.263-1.797-2.365-1.542-1.078.244-1.774.928-2.029 2.018-.209.904.232 1.82 1.067 2.191.638.278 1.275.244 1.89-.07.916-.475 1.414-1.217 1.472-2.214z`})]}),(0,H.jsx)(`defs`,{children:(0,H.jsx)(`clipPath`,{id:`clip0_20558_611`,children:(0,H.jsx)(`path`,{fill:`#fff`,d:`M0 0H24V24H0z`,transform:`translate(.336)`})})})]}),qt=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`rect`,{width:`16`,height:`16`,x:`4`,y:`4`,stroke:`#C084FC`,strokeLinejoin:`round`,strokeWidth:`2`,rx:`3`}),(0,H.jsx)(`circle`,{cx:`15`,cy:`9`,r:`2`,fill:`#C084FC`}),(0,H.jsx)(`path`,{stroke:`#C084FC`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M5 19l5.586-5.586a2 2 0 012.828 0L19 19`})]}),Jt=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 25 24`,...e,children:[(0,H.jsx)(`path`,{stroke:`#F87171`,strokeWidth:`2`,d:`M5.334 3.75c-.965 0-1.748.781-1.748 1.746v4.554a7.201 7.201 0 0014.322 1.078c.035-4.128.035-2.128.035-6.029a1.748 1.748 0 00-1.702-1.35H5.334z`}),(0,H.jsx)(`path`,{stroke:`#F87171`,strokeLinecap:`round`,strokeWidth:`2`,d:`M4.086 20.251L20.086 20.251`}),(0,H.jsx)(`mask`,{id:`mask0_20565_673`,style:{maskType:`alpha`},width:`4`,height:`7`,x:`20`,y:`4`,maskUnits:`userSpaceOnUse`,children:(0,H.jsx)(`path`,{fill:`#D9D9D9`,stroke:`#F87171`,d:`M21.086 4.5H23.086V10.5H21.086z`})}),(0,H.jsx)(`g`,{mask:`url(#mask0_20565_673)`,children:(0,H.jsx)(`circle`,{cx:`20.632`,cy:`8`,r:`2`,stroke:`#F87171`,strokeWidth:`2`})})]}),Yt=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#F59E0B`,d:`M8.383 7.318h2.127v7.1c0 .656-.147 1.226-.442 1.71a2.924 2.924 0 01-1.218 1.118c-.52.262-1.125.393-1.815.393-.613 0-1.17-.107-1.67-.323a2.67 2.67 0 01-1.183-.994c-.292-.448-.436-1.01-.433-1.686h2.143c.006.269.061.5.164.691.106.19.25.335.432.438.186.1.405.15.657.15.265 0 .488-.057.67-.17.186-.116.327-.285.423-.507.096-.222.145-.496.145-.82v-7.1zm9.43 2.928c-.04-.4-.21-.712-.511-.934-.302-.222-.711-.333-1.228-.333-.352 0-.648.05-.89.149-.242.096-.428.23-.557.403a.969.969 0 00-.19.586.838.838 0 00.115.477c.087.136.204.254.353.353.15.097.322.181.517.254.196.07.405.13.627.179l.915.219c.444.1.851.232 1.223.397.37.166.692.37.964.612s.482.527.631.855a2.7 2.7 0 01.234 1.129c-.003.623-.162 1.163-.477 1.62-.312.454-.763.807-1.353 1.06-.586.248-1.294.372-2.122.372-.822 0-1.538-.126-2.148-.378-.607-.252-1.08-.624-1.422-1.118-.338-.497-.515-1.112-.532-1.845h2.083c.023.342.121.627.293.855.176.226.41.397.702.513.295.112.628.168.999.168.364 0 .68-.053.95-.159.271-.106.482-.253.63-.442.15-.189.224-.406.224-.651a.846.846 0 00-.203-.577c-.133-.156-.329-.288-.587-.398a5.964 5.964 0 00-.94-.298l-1.108-.278c-.859-.21-1.537-.536-2.034-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.492-1.615.334-.461.793-.82 1.377-1.08.583-.258 1.246-.387 1.989-.387.755 0 1.415.13 1.978.388.567.258 1.008.618 1.323 1.079.314.46.477.994.487 1.6h-2.063z`})}),Xt=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 25 24`,...e,children:(0,H.jsx)(`path`,{stroke:`#A855F7`,strokeWidth:`2`,d:`M18.922 20H4.336V4h14.586l-7.293 7.293-.707.707.707.707L18.922 20z`})}),Zt=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{fill:`#64748B`,d:`M13.768 10.233l1.768-1.768a5 5 0 100 7.071l-1.768-1.768a2.5 2.5 0 110-3.535z`}),(0,H.jsx)(`path`,{fill:`#64748B`,d:`M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 17.5a7.5 7.5 0 110-15 7.5 7.5 0 110 15z`})]}),Qt=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{fill:`#2563EB`,fillRule:`evenodd`,d:`M10.85 5.3a7.854 7.854 0 017.851 7.85 7.854 7.854 0 01-7.85 7.851A7.854 7.854 0 013 13.151 7.854 7.854 0 0110.85 5.3zm3.254 2.299a2.3 2.3 0 010 4.597 2.3 2.3 0 010-4.598z`,clipRule:`evenodd`}),(0,H.jsx)(`path`,{fill:`#2563EB`,d:`M21 5.298a2.3 2.3 0 00-4.598 0 2.3 2.3 0 004.598 0z`})]}),$t=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#60A5FA`,d:`M3 15.714V8h2.323l2.322 2.836L9.968 8h2.322v7.714H9.968V11.29l-2.323 2.836-2.322-2.836v4.424H3zm14.516 0l-3.484-3.743h2.323V8h2.322v3.97H21l-3.484 3.744z`})}),en=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{stroke:`#60A5FA`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M19 4a1 1 0 00-1-1H8a3 3 0 00-3 3v12a3 3 0 003 3h10a1 1 0 001-1V4z`}),(0,H.jsx)(`rect`,{width:`14`,height:`2`,x:`5`,y:`16`,fill:`#60A5FA`,rx:`1`})]}),tn=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#A855F7`,d:`M11.99 4.089c-1.546.471-2.535 1.665-2.525 3.044.011.944.31 1.781 1.063 2.964.483.76 1.45 2.218 1.479 2.228.014.007.148-.056.292-.137 1.024-.57 1.675-1.472 1.816-2.506.021-.152.039-.602.039-.996 0-.792.014-.86.211-1 .229-.166.507-.113.69.127l.102.13.01.725c.008.422-.003.862-.027 1.049a4.386 4.386 0 01-.687 1.876c-.225.345-.799.912-1.197 1.183-.355.242-1.052.626-1.27.7a.488.488 0 01-.507-.116c-.092-.088-1.623-2.408-2.031-3.083-.437-.719-.771-1.521-.915-2.204-.11-.517-.123-1.278-.032-1.704.088-.394.243-.806.426-1.112.084-.144.148-.267.14-.274a1.983 1.983 0 00-.358.045C5.98 5.49 3.756 7.616 3.16 10.33c-.15.676-.176.979-.154 1.795.02.8.063 1.077.253 1.708.215.707.507 1.33.978 2.08.338.538.525.908.638 1.263.193.595.207.729.228 2.02.014.82.036 1.236.064 1.286a.97.97 0 00.151.176l.11.105h2.593l.095-.088c.197-.183.194-.165.194-1.672v-1.39h2.108l.021 2.886.134.13.13.134h2.598l.095-.088c.173-.162.19-.236.229-1.01.067-1.366.25-2.362.651-3.523.215-.627.36-.961.817-1.883.39-.789.401-.803.496-.785.053.01.285.052.517.091.564.092.74.148.997.313.267.176.5.479.612.803.07.215.08.303.08.855 0 .595-.003.62-.084.736-.109.151-.355.264-.513.236a.944.944 0 01-.268-.134c-.204-.148-.496-.18-.672-.07-.204.126-1.64 1.598-1.697 1.738-.109.26-.05.458.215.708.919.873 2.386 1.197 3.6.795.73-.24 1.465-.834 1.961-1.59.268-.402.405-.694.563-1.208l.099-.313v-3.608c0-3.32-.003-3.633-.063-3.897a5.1 5.1 0 00-2.725-3.509c-.668-.334-1.534-.514-2.474-.514h-.38l-.388-.243c-.788-.485-1.27-.637-2.1-.658-.532-.01-.582-.007-.88.085zm5.575 5.174c.239.176.295.447.151.686-.264.419-.922.225-.922-.274 0-.388.471-.637.77-.412z`})}),nn=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{fill:`#14B8A6`,fillRule:`evenodd`,d:`M14.622 21.322c-.6.11-1.284.174-1.999.178a12.52 12.52 0 01-2.179-.178c-1.136-.198-2.092-1.086-2.092-2.269v-4.156c0-1.217.93-2.217 2.092-2.217h4.178c1.418 0 2.613-1.271 2.613-2.712V7.974h1.438c1.216 0 1.926.92 2.223 2.213.401 1.735.384 2.773 0 4.435-.332 1.45-1.398 2.212-2.613 2.212H12.531v.555h4.183v1.664c0 1.26-.322 1.942-2.092 2.269zm-.176-2.837c-.532 0-.963.45-.963 1.005 0 .555.43 1.005.963 1.005.532 0 .963-.45.963-1.005 0-.555-.43-1.005-.963-1.005z`,clipRule:`evenodd`}),(0,H.jsx)(`path`,{fill:`#14B8A6`,fillRule:`evenodd`,d:`M9.378 2.678c.6-.11 1.284-.174 1.999-.178.715-.003 1.46.053 2.179.178 1.136.198 2.092 1.086 2.092 2.269v4.156c0 1.217-.93 2.217-2.092 2.217H9.378c-1.418 0-2.613 1.271-2.613 2.712v1.994H5.327c-1.216 0-1.926-.92-2.223-2.213-.401-1.735-.384-2.773 0-4.435.332-1.45 1.397-2.213 2.613-2.213H11.469v-.554H7.286V4.947c0-1.26.322-1.942 2.092-2.269zm.176 2.838c.532 0 .963-.45.963-1.005 0-.555-.43-1.006-.963-1.006-.532 0-.964.45-.964 1.006 0 .555.432 1.005.964 1.005z`,clipRule:`evenodd`})]}),rn=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{fill:`#38BDF8`,d:`M12 13.677a1.677 1.677 0 100-3.354 1.677 1.677 0 000 3.354z`}),(0,H.jsx)(`path`,{stroke:`#38BDF8`,d:`M12 15.436c4.97 0 9-1.538 9-3.436s-4.03-3.436-9-3.436S3 10.102 3 12s4.03 3.436 9 3.436z`}),(0,H.jsx)(`path`,{stroke:`#38BDF8`,d:`M9.024 13.718c2.485 4.305 5.832 7.025 7.476 6.076 1.644-.949.961-5.208-1.524-9.512C12.491 5.977 9.144 3.257 7.5 4.206c-1.644.949-.961 5.208 1.524 9.512z`}),(0,H.jsx)(`path`,{stroke:`#38BDF8`,d:`M9.024 10.282c-2.485 4.304-3.168 8.563-1.524 9.512 1.644.95 4.99-1.771 7.476-6.076 2.485-4.304 3.168-8.563 1.524-9.512-1.644-.95-4.99 1.771-7.476 6.076z`})]}),an=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{fill:`#0E8ADC`,d:`M12 13.677a1.677 1.677 0 100-3.354 1.677 1.677 0 000 3.354z`}),(0,H.jsx)(`path`,{stroke:`#0E8ADC`,d:`M12 15.436c4.97 0 9-1.538 9-3.436s-4.03-3.436-9-3.436S3 10.102 3 12s4.03 3.436 9 3.436z`}),(0,H.jsx)(`path`,{stroke:`#0E8ADC`,d:`M9.024 13.718c2.485 4.305 5.832 7.025 7.476 6.076 1.644-.949.961-5.208-1.524-9.512C12.491 5.977 9.144 3.257 7.5 4.206c-1.644.949-.961 5.208 1.524 9.512z`}),(0,H.jsx)(`path`,{stroke:`#0E8ADC`,d:`M9.024 10.282c-2.485 4.304-3.168 8.563-1.524 9.512 1.644.95 4.99-1.771 7.476-6.076 2.485-4.304 3.168-8.563 1.524-9.512-1.644-.95-4.99 1.771-7.476 6.076z`})]}),on=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 25 24`,...e,children:[(0,H.jsx)(`mask`,{id:`mask0_20571_807`,style:{maskType:`alpha`},width:`20`,height:`17`,x:`2`,y:`3`,maskUnits:`userSpaceOnUse`,children:(0,H.jsx)(`path`,{fill:`#D9D9D9`,d:`M17.992 3.14H6.78L2.84 9.377l9.578 9.877 9.02-9.877-3.445-6.237z`})}),(0,H.jsxs)(`g`,{stroke:`#F87171`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,mask:`url(#mask0_20571_807)`,children:[(0,H.jsx)(`path`,{d:`M12.653 2.162L8.336 9.35l4.323 11.255`}),(0,H.jsx)(`path`,{d:`M11.441 2.17l4.33 7.193-4.312 11.265`})]}),(0,H.jsx)(`path`,{stroke:`#F87171`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M4.107 9.35h16.125`}),(0,H.jsx)(`path`,{fill:`#F87171`,fillRule:`evenodd`,d:`M6.48 3.584a1 1 0 01.837-.453H17.32a1 1 0 01.87.505l2.976 5.231a1 1 0 01-.082 1.112l-7.857 10.024a1 1 0 01-1.549.031L3.142 10.01a1 1 0 01-.076-1.195l3.414-5.23zm1.379 1.547l-2.71 4.152 7.258 8.523 6.688-8.533-2.357-4.142h-8.88z`,clipRule:`evenodd`})]}),sn=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 25 24`,...e,children:(0,H.jsx)(`path`,{fill:`#EA580C`,fillRule:`evenodd`,d:`M12.58 2.136a.287.287 0 00-.488 0l-.526.85a8.974 8.974 0 00-.232.022l-.683-.73a.287.287 0 00-.478.096l-.35.935c-.075.021-.15.044-.224.067l-.812-.583a.287.287 0 00-.45.187l-.162.989a9.088 9.088 0 00-.204.11l-.913-.417a.287.287 0 00-.406.272l.036 1.005a9.099 9.099 0 00-.175.144l-.98-.231a.287.287 0 00-.345.345l.231.98a9.125 9.125 0 00-.144.175L4.27 6.316a.287.287 0 00-.271.406l.416.913a9.036 9.036 0 00-.11.203L3.317 8a.287.287 0 00-.187.45l.584.813a8.953 8.953 0 00-.068.223l-.935.35a.287.287 0 00-.095.479l.73.682a8.966 8.966 0 00-.023.233l-.85.526a.287.287 0 000 .488l.85.526c.007.078.014.156.023.233l-.73.682a.287.287 0 00.095.479l.935.35.068.223-.584.812a.287.287 0 00.187.451l.99.162c.035.068.072.135.109.203l-.416.913a.287.287 0 00.271.406l1.006-.036c.047.059.095.117.143.174l-.23.981a.287.287 0 00.344.345l.981-.23c.057.048.115.095.174.142l-.036 1.006a.287.287 0 00.406.272l.914-.417c.067.038.135.074.203.11l.161.99a.287.287 0 00.451.186l.813-.584c.074.024.148.046.223.068l.35.935a.287.287 0 00.478.095l.683-.73c.077.01.154.017.232.023l.526.85a.287.287 0 00.489 0l.526-.85c.078-.006.155-.014.232-.023l.682.73a.287.287 0 00.479-.095l.35-.935c.075-.022.15-.044.223-.068l.813.584a.287.287 0 00.45-.187l.162-.99a8.77 8.77 0 00.203-.109l.913.417a.287.287 0 00.406-.272l-.035-1.006c.058-.047.116-.094.174-.143l.98.231a.287.287 0 00.346-.345l-.231-.98.143-.175 1.006.036a.287.287 0 00.271-.406l-.416-.913a9.4 9.4 0 00.109-.203l.99-.162a.287.287 0 00.187-.45l-.584-.813a8.43 8.43 0 00.067-.223l.935-.35a.287.287 0 00.096-.479l-.73-.682c.009-.077.016-.155.023-.233l.85-.526a.287.287 0 000-.488l-.85-.526a8.844 8.844 0 00-.023-.233l.73-.682a.287.287 0 00-.096-.479l-.934-.35a9.246 9.246 0 00-.068-.223l.584-.812A.287.287 0 0021.357 8l-.99-.162a8.92 8.92 0 00-.11-.203l.417-.913a.287.287 0 00-.271-.406l-1.006.036a9.178 9.178 0 00-.143-.174l.23-.981a.287.287 0 00-.345-.345l-.98.23a9.43 9.43 0 00-.174-.142l.035-1.006a.287.287 0 00-.405-.272l-.914.417a9.11 9.11 0 00-.203-.11l-.162-.99a.287.287 0 00-.45-.186l-.813.584a9.088 9.088 0 00-.223-.068l-.35-.935a.287.287 0 00-.479-.095l-.682.73a9.062 9.062 0 00-.232-.023l-.526-.85zm-.257 1.62a.592.592 0 01.578.596.595.595 0 11-.578-.595zm1.363.98A7.324 7.324 0 0118.7 8.309l-.702 1.585a.547.547 0 00.275.717l1.352.6c.041.422.047.847.015 1.27h-.752c-.075 0-.106.05-.106.123v.344c0 .812-.457.99-.859 1.034-.383.044-.806-.161-.86-.394-.22-1.24-.583-1.526-1.152-1.975l-.041-.033c.736-.467 1.502-1.158 1.502-2.08 0-.998-.683-1.625-1.148-1.934-.655-.43-1.379-.516-1.574-.516H6.88a7.324 7.324 0 014.098-2.312l.916.96a.54.54 0 00.766.018l1.026-.978zm-8.46 4.407a.595.595 0 11-.034 1.19.595.595 0 01.034-1.19zm14.192.026a.595.595 0 11-.035 1.19.595.595 0 01.035-1.19zm-13.07.096h1.037v4.678H5.291a7.324 7.324 0 01-.237-2.797l1.282-.57a.542.542 0 00.276-.716l-.264-.595zm4.33.05h2.47c.128 0 .901.147.901.727 0 .48-.593.653-1.081.653h-2.293l.002-1.38zm0 3.36h1.892c.172 0 .924.05 1.164 1.011.026.104.064.291.107.503.078.389.174.861.247 1.06.113.345.57 1.034 1.058 1.034h3.089c-.207.277-.433.54-.677.785l-1.258-.27a.544.544 0 00-.645.417l-.298 1.394a7.323 7.323 0 01-6.108-.03l-.298-1.392a.542.542 0 00-.643-.418l-1.23.264a7.32 7.32 0 01-.636-.75h5.984c.067 0 .113-.011.113-.074v-2.117c0-.061-.046-.075-.113-.075h-1.75l.001-1.341zm-2.763 4.848a.595.595 0 11-.034 1.19.595.595 0 01.034-1.19zm8.814.027a.596.596 0 11-.035 1.19.596.596 0 01.035-1.19z`,clipRule:`evenodd`})}),cn=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#F472B6`,d:`M19.217 12.76c-.7.004-1.305.175-1.813.43-.187-.378-.375-.708-.406-.955-.035-.286-.078-.461-.035-.803s.238-.827.238-.866c-.004-.036-.043-.211-.445-.215-.403-.004-.75.08-.79.187-.038.107-.116.354-.167.608-.07.374-.805 1.697-1.223 2.393-.137-.27-.254-.509-.277-.7-.036-.286-.079-.46-.036-.803.043-.341.239-.826.239-.866-.004-.036-.043-.21-.446-.215-.402-.004-.75.08-.789.187-.039.107-.082.362-.168.608-.082.247-1.058 2.457-1.312 3.033a12.45 12.45 0 01-.325.688c-.082.16-.003.012-.011.028l-.11.21v.005c-.054.099-.113.194-.14.194-.02 0-.059-.266.007-.632.145-.767.497-1.963.493-2.007 0-.02.066-.23-.227-.338-.285-.107-.387.071-.41.071-.024 0-.043.064-.043.064s.316-1.348-.606-1.348c-.578 0-1.375.64-1.77 1.225l-1.343.747c-.215.12-.438.247-.649.362l-.043-.048c-1.117-1.212-3.183-2.07-3.098-3.7.032-.593.235-2.155 3.97-4.048 3.058-1.55 5.508-1.125 5.934-.179.605 1.352-1.309 3.864-4.489 4.226-1.211.14-1.848-.338-2.008-.517-.168-.186-.191-.194-.254-.159-.101.056-.039.223 0 .322.094.25.484.696 1.149.919.582.194 2.004.302 3.723-.374 1.926-.76 3.43-2.866 2.988-4.627-.45-1.793-3.371-2.381-6.133-1.384C6.747 5.08 4.966 6.01 3.684 7.23 2.161 8.677 1.92 9.941 2.02 10.466c.356 1.873 2.891 3.093 3.907 3.995l-.14.08c-.509.254-2.443 1.284-2.927 2.373-.547 1.232.086 2.119.508 2.238 1.305.37 2.64-.294 3.363-1.387.72-1.093.633-2.513.301-3.16l-.011-.024.398-.239c.258-.155.512-.298.734-.421-.125.346-.214.755-.261 1.351-.055.7.226 1.606.597 1.964.165.155.36.16.481.16.43 0 .625-.363.84-.796.265-.529.5-1.14.5-1.14s-.293 1.657.508 1.657c.293 0 .586-.386.719-.585v.004l.023-.04c.031-.047.047-.075.047-.075v-.008c.117-.207.379-.68.77-1.463.503-1.01.988-2.274.988-2.274s.047.31.191.82c.086.301.274.631.418.953-.117.167-.187.263-.187.263l.004.004c-.094.127-.2.262-.309.397-.398.485-.875 1.038-.938 1.197-.074.187-.058.326.086.437.106.08.293.096.493.08.36-.024.61-.116.734-.171.195-.072.418-.18.633-.338.39-.294.629-.712.605-1.268-.011-.306-.109-.609-.23-.895.035-.051.07-.103.105-.159.618-.918 1.094-1.928 1.094-1.928s.047.31.192.82c.074.258.222.54.355.818-.578.481-.941 1.038-1.066 1.403-.23.676-.051.982.289 1.054.152.032.371-.04.535-.112.203-.067.45-.182.676-.353.39-.295.766-.704.746-1.257a2.447 2.447 0 00-.168-.743c.492-.207 1.13-.326 1.938-.226 1.738.206 2.082 1.311 2.015 1.773-.066.46-.43.715-.55.795-.121.075-.16.103-.149.159.016.083.07.079.176.063.145-.024.914-.378.945-1.228.047-1.093-.972-2.286-2.781-2.274zM5.81 17.36c-.575.64-1.383.882-1.727.675-.371-.218-.227-1.16.48-1.84.43-.414.989-.796 1.356-1.03.082-.052.207-.127.355-.219.024-.016.04-.024.04-.024.027-.015.058-.035.09-.055.261.97.011 1.82-.594 2.492zm4.2-2.907c-.2.497-.622 1.773-.876 1.702-.219-.06-.352-1.026-.043-1.98.156-.48.488-1.053.684-1.276.316-.358.66-.477.746-.33.101.19-.387 1.574-.512 1.884zm3.464 1.686c-.086.044-.164.075-.199.052-.027-.016.035-.076.035-.076s.434-.473.606-.692c.097-.127.215-.274.34-.44v.047c0 .572-.54.954-.782 1.109zm2.672-.62c-.062-.048-.054-.195.157-.656.082-.183.27-.49.593-.78.04.12.063.235.059.343-.004.715-.504.981-.809 1.093z`})}),ln=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 25 24`,...e,children:(0,H.jsx)(`path`,{stroke:`#14B8A6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M4.336 17l6-6-6-6M12.336 19h8`})}),un=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 25 24`,...e,children:[(0,H.jsxs)(`mask`,{id:`path-1-outside-1_20571_794`,width:`17`,height:`20`,x:`4.141`,y:`2`,fill:`#000`,maskUnits:`userSpaceOnUse`,children:[(0,H.jsx)(`path`,{fill:`#fff`,d:`M4.141 2H21.141V22H4.141z`}),(0,H.jsx)(`path`,{d:`M10.915 19.877A3.832 3.832 0 016.8 18.352a3.547 3.547 0 01-.606-2.682c.028-.153.067-.303.116-.45l.09-.278.248.181c.57.42 1.208.739 1.887.944l.179.054-.017.18c-.021.254.048.508.195.716a1.154 1.154 0 001.24.46c.104-.028.204-.072.295-.13l4.825-3.075a1.004 1.004 0 00.453-.672 1.072 1.072 0 00-.182-.809 1.154 1.154 0 00-1.24-.46 1.063 1.063 0 00-.296.13l-1.84 1.174a3.526 3.526 0 01-.981.43 3.833 3.833 0 01-4.114-1.525 3.546 3.546 0 01-.606-2.682 3.328 3.328 0 011.505-2.229l4.826-3.075a3.52 3.52 0 01.98-.43 3.833 3.833 0 014.113 1.524 3.547 3.547 0 01.607 2.682 3.41 3.41 0 01-.116.45l-.09.278-.248-.181a6.218 6.218 0 00-1.887-.943l-.18-.055.018-.179a1.084 1.084 0 00-.195-.717 1.155 1.155 0 00-1.24-.46 1.063 1.063 0 00-.295.13L9.419 9.728a1.003 1.003 0 00-.453.672 1.071 1.071 0 00.182.809 1.155 1.155 0 001.24.46c.104-.028.204-.072.296-.13l1.84-1.173a3.51 3.51 0 01.98-.43 3.832 3.832 0 014.114 1.524 3.547 3.547 0 01.606 2.682 3.33 3.33 0 01-1.504 2.23l-4.825 3.074a3.516 3.516 0 01-.98.43`})]}),(0,H.jsx)(`path`,{fill:`#EA580C`,d:`M8.618 19.761l.695-1.875-.695 1.875zm-1.817-1.409l1.644-1.14a1.697 1.697 0 00-.016-.023L6.8 18.352zm-.606-2.682l-1.967-.36-.002.01 1.97.35zm.116-.45l1.898.628.002-.007-1.9-.622zm.09-.278l1.184-1.613a2 2 0 00-3.084.99l1.9.623zm.248.181l1.184-1.611-.001-.001-1.183 1.612zm1.887.944l.58-1.914h-.002l-.579 1.914zm.179.054l1.991.183a2 2 0 00-1.41-2.097l-.581 1.914zm-.017.18l-1.991-.184-.001.013 1.992.17zm.195.716l1.644-1.14-.012-.016-1.632 1.156zm1.24.46l.503 1.935.01-.002-.514-1.933zm.295-.13l1.071 1.69.004-.003-1.075-1.687zm4.825-3.075l-1.066-1.693-.01.006 1.076 1.687zm.453-.672l1.969.355v-.007l-1.969-.348zm-.182-.809l-1.644 1.14.015.022 1.629-1.162zm-1.24-.46l-.502-1.935-.012.003.514 1.933zm-.296.13l-1.07-1.69-.005.003 1.075 1.687zm-1.84 1.174l1.072 1.688.002-.002-1.075-1.686zm-.981.43L11.67 16l.013-.004-.516-1.932zM7.053 12.54l1.644-1.14a1.316 1.316 0 00-.016-.023L7.053 12.54zm-.606-2.682L4.48 9.504v.004l1.968.35zm1.505-2.229l1.064 1.694.011-.007-1.075-1.687zm4.826-3.075l-1.074-1.687h-.001l1.075 1.687zm.98-.43l-.503-1.936-.014.003.517 1.932zm4.113 1.524l-1.643 1.14.016.023 1.627-1.163zm.607 2.682l1.966.364.003-.014-1.97-.35zm-.116.45l-1.899-.627-.002.005 1.901.623zm-.09.278l-1.183 1.613a2 2 0 003.083-.99l-1.9-.623zm-.248-.181l-1.185 1.611.003.002 1.182-1.613zm-1.887-.943l-.58 1.914h.002l.578-1.914zm-.18-.055l-1.99-.185a2 2 0 001.41 2.1l.58-1.915zm.018-.179l1.991.185.001-.015-1.992-.17zm-.195-.717l-1.644 1.14.01.014 1.634-1.154zm-1.24-.46l-.503-1.935-.01.002.514 1.933zm-.295.13l-1.071-1.69-.004.003 1.075 1.687zM9.419 9.728l1.065 1.693.01-.006-1.075-1.687zm-.453.672l-1.969-.354v.004l1.969.35zm.182.809l1.644-1.14-.015-.021-1.629 1.16zm1.24.46l.502 1.935.013-.003-.516-1.933zm.296-.13l1.069 1.69.005-.003-1.074-1.687zm1.84-1.173L11.45 8.679l1.074 1.687zm.98-.43L13.003 8l-.013.003.516 1.932zm4.114 1.524l-1.643 1.14.016.023 1.627-1.163zm.606 2.682l1.969.354v-.004l-1.969-.35zm-1.504 2.23l-1.065-1.693-.01.006 1.075 1.687zm-4.825 3.074l1.074 1.687-1.074-1.687zm-1.483-1.505a1.833 1.833 0 01-1.099-.055l-1.39 3.75c1.12.415 2.34.477 3.495.176l-1.006-3.87zm-1.099-.055a1.832 1.832 0 01-.868-.674l-3.287 2.28c.68.98 1.646 1.73 2.765 2.144l1.39-3.75zm-.884-.697a1.547 1.547 0 01-.25-.558l-3.902.882c.163.72.468 1.4.897 2.001l3.255-2.325zm-.25-.558c-.046-.2-.05-.409-.014-.611l-3.939-.7a5.547 5.547 0 00.051 2.193l3.902-.882zm-.016-.6c.01-.063.026-.123.046-.183l-3.797-1.257c-.078.235-.14.475-.184.718l3.935.721zm.048-.19l.091-.277-3.801-1.244-.091.277 3.801 1.245zm-2.993.713l.248.182 2.366-3.225-.247-.182-2.367 3.225zm.246.18a8.222 8.222 0 002.493 1.247l1.157-3.829a4.22 4.22 0 01-1.28-.64l-2.37 3.223zm2.49 1.247l.18.054 1.161-3.828-.179-.054-1.161 3.828zm-1.23-2.043l-.017.18 3.983.365.016-.179-3.983-.366zm-.018.192a3.081 3.081 0 00.555 2.043l3.264-2.312a.918.918 0 01.166.61l-3.985-.341zm.543 2.026c.368.531.89.936 1.496 1.161l1.39-3.75c.163.06.303.168.402.31l-3.288 2.28zm1.496 1.161a3.154 3.154 0 001.89.095l-1.006-3.87a.846.846 0 01.507.025l-1.391 3.75zm1.901.093c.302-.08.59-.207.853-.374l-2.141-3.378a.935.935 0 01.26-.114l1.028 3.866zm.857-.376l4.825-3.076-2.15-3.373-4.825 3.076 2.15 3.373zm4.815-3.07c.354-.222.657-.516.89-.861l-3.315-2.238a.996.996 0 01.294-.286l2.131 3.385zm.89-.861c.234-.346.392-.737.467-1.148l-3.937-.71a.995.995 0 01.155-.38l3.315 2.238zm.468-1.155c.07-.402.061-.814-.029-1.212l-3.901.882a.929.929 0 01-.01-.366l3.94.696zm-.029-1.212a3.07 3.07 0 00-.495-1.106l-3.257 2.323a.928.928 0 01-.15-.335l3.902-.882zm-.48-1.084a3.155 3.155 0 00-1.495-1.16l-1.392 3.75a.844.844 0 01-.4-.311l3.287-2.279zm-1.495-1.16a3.154 3.154 0 00-1.89-.096l1.005 3.871a.845.845 0 01-.507-.025l1.392-3.75zm-1.902-.093c-.301.08-.589.206-.852.373l2.14 3.378a.934.934 0 01-.26.114L13.77 10.4zm-.857.376l-1.84 1.173 2.15 3.373 1.84-1.174-2.15-3.373zm-1.838 1.171a1.526 1.526 0 01-.425.187l1.033 3.864a5.524 5.524 0 001.537-.674l-2.145-3.377zm-.411.183a1.833 1.833 0 01-1.098-.055l-1.39 3.75c1.119.415 2.338.477 3.494.177l-1.006-3.872zm-1.098-.055a1.832 1.832 0 01-.87-.674L5.41 13.68a5.833 5.833 0 002.765 2.145l1.39-3.751zm-.885-.697a1.547 1.547 0 01-.25-.558l-3.902.882c.163.72.468 1.401.897 2.002l3.255-2.326zm-.25-.558c-.046-.2-.05-.408-.015-.611l-3.938-.7a5.546 5.546 0 00.051 2.193l3.902-.882zm-.015-.607c.032-.182.103-.355.206-.508L5.307 7.465a5.328 5.328 0 00-.828 2.039l3.937.708zm.206-.508c.104-.153.238-.283.394-.381L6.89 5.935a5.328 5.328 0 00-1.582 1.53l3.315 2.239zm.405-.388l4.825-3.075-2.15-3.374-4.824 3.075 2.15 3.374zm4.824-3.075a1.52 1.52 0 01.424-.186L13.24 2.191a5.522 5.522 0 00-1.537.676L13.85 6.24zm.41-.182a1.833 1.833 0 011.098.055l1.39-3.75a5.833 5.833 0 00-3.494-.176l1.006 3.871zm1.098.055c.352.13.655.366.87.674l3.286-2.28a5.832 5.832 0 00-2.765-2.144l-1.39 3.75zm.885.697c.12.167.205.357.25.558l3.902-.882a5.546 5.546 0 00-.897-2.002l-3.255 2.326zm.25.558c.046.2.05.409.014.611l3.939.7a5.547 5.547 0 00-.051-2.193l-3.902.882zm.017.598a1.41 1.41 0 01-.048.186l3.798 1.255a5.41 5.41 0 00.183-.714l-3.933-.727zm-.05.191l-.09.278 3.801 1.244.09-.277-3.8-1.245zm2.992-.713l-.247-.181-2.364 3.226.247.181 2.364-3.226zm-.244-.18a8.219 8.219 0 00-2.494-1.246l-1.156 3.83c.46.138.893.355 1.28.64l2.37-3.223zM16.718 6.02l-.18-.055-1.16 3.828.18.055 1.16-3.828zm1.231 2.044l.017-.179-3.983-.37-.017.18 3.983.37zm.018-.194a3.084 3.084 0 00-.553-2.04l-3.268 2.307a.917.917 0 01-.164-.607l3.985.34zm-.543-2.026a3.155 3.155 0 00-1.496-1.161l-1.39 3.75a.846.846 0 01-.402-.31l3.288-2.28zm-1.496-1.161a3.154 3.154 0 00-1.89-.095l1.006 3.87a.846.846 0 01-.507-.025l1.391-3.75zm-1.901-.093c-.302.08-.59.206-.853.373l2.141 3.379a.937.937 0 01-.26.114L14.027 4.59zm-.857.376L8.344 8.042l2.15 3.373 4.826-3.076-2.15-3.373zm-4.816 3.07a3.003 3.003 0 00-.89.862l3.315 2.237a.998.998 0 01-.295.286l-2.13-3.386zm-.89.862a3.003 3.003 0 00-.467 1.148l3.937.707a.997.997 0 01-.155.382L7.463 8.898zm-.467 1.152a3.07 3.07 0 00.028 1.212l3.902-.88c.027.12.03.246.008.367l-3.938-.699zm.028 1.212c.09.399.258.775.494 1.107l3.258-2.321c.072.1.122.214.15.335l-3.902.88zm.48 1.086c.367.53.89.936 1.495 1.16l1.392-3.75c.162.06.301.169.4.311l-3.287 2.279zM9 13.508a3.155 3.155 0 001.89.097L9.885 9.732a.845.845 0 01.507.025L9 13.508zm1.903.093c.3-.08.587-.206.85-.372l-2.14-3.38a.932.932 0 01.26-.113l1.03 3.865zm.855-.375l1.841-1.174-2.15-3.373-1.84 1.173 2.15 3.374zm1.84-1.173a1.51 1.51 0 01.422-.185l-1.03-3.865a5.51 5.51 0 00-1.54.676l2.149 3.374zm.41-.182a1.833 1.833 0 011.098.055l1.39-3.75A5.833 5.833 0 0013.002 8l1.006 3.87zm1.098.055c.352.13.655.366.869.674l3.286-2.28a5.833 5.833 0 00-2.765-2.144l-1.39 3.75zm.885.697c.12.167.204.357.25.558l3.901-.882a5.548 5.548 0 00-.897-2.002l-3.254 2.326zm.25.558c.045.2.05.409.014.611l3.938.7a5.545 5.545 0 00-.05-2.193l-3.902.882zm.015.608a1.331 1.331 0 01-.207.508l3.316 2.237a5.33 5.33 0 00.828-2.038l-3.937-.707zm-.207.508a1.33 1.33 0 01-.394.382l2.13 3.386a5.329 5.329 0 001.58-1.531l-3.316-2.237zm-.403.388L10.82 17.76l2.15 3.374 4.825-3.074-2.15-3.374zM10.82 17.76c-.13.083-.273.146-.423.186l1.033 3.864a5.52 5.52 0 001.538-.676l-2.148-3.374z`,mask:`url(#path-1-outside-1_20571_794)`})]}),dn=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{stroke:`#52525B`,strokeWidth:`1.5`,d:`M5 5H19V19H5z`}),(0,H.jsx)(`rect`,{width:`4`,height:`4`,x:`3`,y:`3`,fill:`#F472B6`,rx:`1`}),(0,H.jsx)(`rect`,{width:`4`,height:`4`,x:`17`,y:`3`,fill:`#F472B6`,rx:`1`}),(0,H.jsx)(`rect`,{width:`4`,height:`4`,x:`17`,y:`17`,fill:`#F472B6`,rx:`1`}),(0,H.jsx)(`rect`,{width:`4`,height:`4`,x:`3`,y:`17`,fill:`#F472B6`,rx:`1`})]}),fn=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 25 24`,...e,children:(0,H.jsx)(`path`,{stroke:`#EA580C`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M15.451 10.98c.328-2.058-.355-4.403-1.858-6.44a1 1 0 011.32-1.45c4.291 2.577 7.016 7.532 6.013 11.97.93 1.303 1.297 2.626 1.387 3.62.048.537.021 1.028-.073 1.394-.025.095-.06.204-.111.313-.043.091-.137.27-.32.422a1.05 1.05 0 01-1.082.162 1.112 1.112 0 01-.552-.523h0c-.376-.732-.835-.918-1.252-.952-.49-.04-1.035.132-1.45.343-.086.05-.17.097-.248.139l-.003.002c-.034.02-.068.038-.102.054-2.407 1.256-5.53 1.297-8.574-.012h0a13.486 13.486 0 01-6.057-5.194 1 1 0 011.441-1.335c.595.439 1.236.824 1.916 1.143 2.124.995 4.18 1.137 5.83.651-2.565-2.22-4.72-4.825-6.395-6.95A11.53 11.53 0 014.2 6.842 1 1 0 015.732 5.59c.318.292.662.593 1.022.898-.126-.18-.224-.325-.29-.426a3.786 3.786 0 01-.118-.191V5.87a1.07 1.07 0 01-.057-.124v-.002a1.01 1.01 0 01.057-.838c.072-.112.268-.313.393-.394.127-.06.375-.12.49-.125a1.001 1.001 0 01.707.298l7.515 6.295zm0 0a45.088 45.088 0 01-1.734-1.249 54.42 54.42 0 01-5.78-5.046l7.514 6.295zm1.768 9.002h0-.002.002zm3.083-.403v-.002.002zm1.652-.046h0v-.002.002zm-1.073-4.285s0 0 0 0l-.762-.19.762.19zm-.762-.19l.506-.394a.468.468 0 00-.012-.015l-.001-.002-.502.408-.02-.005.494-.436-.01-.01.004.004-.459.45zm-.029-.008l.02.005-.02-.005z`})}),pn=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`rect`,{width:`16`,height:`2`,x:`4`,y:`6`,fill:`#64748B`,rx:`1`}),(0,H.jsx)(`rect`,{width:`12`,height:`2`,x:`4`,y:`11`,fill:`#64748B`,rx:`1`}),(0,H.jsx)(`rect`,{width:`16`,height:`2`,x:`4`,y:`16`,fill:`#64748B`,rx:`1`})]}),mn=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#2563EB`,d:`M3.234 9.093V7.318h8.363v1.775H8.479V17.5H6.352V9.093H3.234zm15.263 1.153c-.04-.4-.21-.712-.512-.934-.301-.222-.71-.333-1.228-.333-.351 0-.648.05-.89.149-.242.096-.427.23-.557.403a.969.969 0 00-.189.586.838.838 0 00.115.477c.086.136.204.254.353.353.149.097.321.181.517.254.195.07.404.13.626.179l.915.219c.444.1.852.232 1.223.397.371.166.693.37.965.612.271.242.482.527.631.855.152.328.23.704.234 1.129-.004.623-.163 1.163-.478 1.62-.311.454-.762.807-1.352 1.06-.587.248-1.294.372-2.123.372-.822 0-1.538-.126-2.147-.378-.607-.252-1.081-.624-1.422-1.118-.338-.497-.516-1.112-.532-1.845h2.083c.023.342.12.627.293.855.176.226.41.397.701.513.295.112.628.168 1 .168.364 0 .68-.053.949-.159.272-.106.482-.253.631-.442.15-.189.224-.406.224-.651a.846.846 0 00-.204-.577c-.132-.156-.328-.288-.586-.398a5.964 5.964 0 00-.94-.298l-1.109-.278c-.858-.21-1.536-.536-2.033-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.491-1.615.335-.461.794-.82 1.377-1.08.584-.258 1.247-.387 1.99-.387.755 0 1.414.13 1.978.388.567.258 1.007.618 1.322 1.079.315.46.477.994.488 1.6h-2.064z`})}),hn=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#64748B`,fillRule:`evenodd`,d:`M4 6h16v12H4V6zM2 6a2 2 0 012-2h16a2 2 0 012 2v12a2 2 0 01-2 2H4a2 2 0 01-2-2V6zm7.5 8.616V9.385a.75.75 0 011.11-.659l4.786 2.616a.75.75 0 010 1.316l-4.786 2.616a.75.75 0 01-1.11-.658z`,clipRule:`evenodd`})}),gn=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{fill:`#14B8A6`,d:`M14.079 4.411L12 8.011l-2.078-3.6H3L12 20l9-15.589h-6.921z`}),(0,H.jsx)(`path`,{fill:`#334155`,d:`M14.079 4.411L12 8.011l-2.078-3.6H6.6l5.4 9.353 5.4-9.353h-3.321z`})]}),_n=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`circle`,{cx:`5`,cy:`19`,r:`2`,fill:`#EA580C`}),(0,H.jsx)(`mask`,{id:`mask0_20543_563`,style:{maskType:`alpha`},width:`20`,height:`22`,x:`4`,y:`0`,maskUnits:`userSpaceOnUse`,children:(0,H.jsx)(`path`,{fill:`#D9D9D9`,d:`M4 0H24V22H4z`})}),(0,H.jsx)(`g`,{mask:`url(#mask0_20543_563)`,children:(0,H.jsx)(`circle`,{cx:`5`,cy:`19`,r:`8`,stroke:`#EA580C`,strokeWidth:`2`})}),(0,H.jsx)(`mask`,{id:`mask1_20543_563`,style:{maskType:`alpha`},width:`19`,height:`20`,x:`5`,y:`0`,maskUnits:`userSpaceOnUse`,children:(0,H.jsx)(`path`,{fill:`#D9D9D9`,d:`M5 0H24V20H5z`})}),(0,H.jsx)(`g`,{mask:`url(#mask1_20543_563)`,children:(0,H.jsx)(`circle`,{cx:`5`,cy:`19`,r:`15`,stroke:`#EA580C`,strokeWidth:`2`})})]}),vn=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#A78BFA`,d:`M6.533 5.864h2.755l2.654 5.011h.113l2.654-5.011h2.756l-4.245 7.522V17.5h-2.443v-4.114L6.533 5.864z`})}),yn=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`g`,{fill:`#64748B`,clipPath:`url(#clip0_20631_561)`,children:(0,H.jsx)(`path`,{d:`M13.408 18.047a.45.45 0 01-.449.45H7.617a.45.45 0 01-.449-.45c0-.248.201-.447.449-.46.303-.015.537-.047.703-.097.241-.078.362-.257.362-.537 0-.195-.04-.394-.118-.596l-.373-.933a1 1 0 00-.929-.63H4.336a1 1 0 00-.937.65l-.079.21c-.182.482-.273.83-.273 1.045 0 .39.15.638.45.742.186.064.392.108.615.133.247.027.449.225.449.473a.45.45 0 01-.45.45H.45a.45.45 0 01-.449-.45c0-.248.203-.442.447-.489a1.66 1.66 0 00.48-.165c.255-.137.496-.394.723-.772.235-.384.485-.924.752-1.621l3.653-9.565a.677.677 0 011.262-.005l3.865 9.883c.293.729.508 1.223.644 1.484.137.254.326.452.567.596.15.085.34.144.567.176.246.035.448.23.448.478zm-7.29-4.21a1 1 0 00.93-1.367l-.333-.84c-.337-.852-1.544-.841-1.866.015l-.317.84a1 1 0 00.936 1.353h.65zM24.072 16.436c.2 0 .364.162.342.36a2.318 2.318 0 01-.283.91 1.912 1.912 0 01-.82.77 2.627 2.627 0 01-1.153.245c-.547 0-1.002-.127-1.367-.381-.431-.308-1.152-.533-1.614-.272-.77.435-1.544.653-2.322.653-.703 0-1.279-.17-1.728-.508a1.63 1.63 0 01-.674-1.358c0-.462.12-.878.362-1.25.24-.377.592-.712 1.054-1.005a8.135 8.135 0 011.67-.772c.52-.184 1.145-.374 1.874-.571a.725.725 0 00.538-.698c0-.463-.11-.824-.332-1.084-.215-.267-.615-.4-1.201-.4-.501 0-.863.103-1.084.312-.221.208-.368.524-.44.947-.052.3-.15.547-.292.742-.137.189-.427.283-.87.283-.273 0-.514-.078-.722-.234-.209-.156-.313-.387-.313-.693 0-.606.329-1.133.987-1.582.657-.45 1.666-.674 3.027-.674 1.432 0 2.415.24 2.95.722.54.482.81 1.127.81 1.934v3.086c0 .39.01.677.029.86.02.182.072.322.156.42.091.09.231.136.42.136.17 0 .316-.088.44-.264a.955.955 0 00.142-.278c.061-.19.215-.357.414-.357zm-4.501.366a.929.929 0 00.38-.766v-.58c0-.676-.662-1.166-1.28-.894-.52.23-.881.457-1.083.682-.332.371-.498.736-.498 1.094 0 .3.091.54.273.723.183.182.44.273.772.273.358 0 .674-.075.947-.225.157-.086.32-.188.489-.307z`})}),(0,H.jsx)(`defs`,{children:(0,H.jsx)(`clipPath`,{id:`clip0_20631_561`,children:(0,H.jsx)(`path`,{fill:`#fff`,d:`M0 0H24V24H0z`})})})]}),bn=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`rect`,{width:`16`,height:`16`,x:`4`,y:`4`,stroke:`#C084FC`,strokeLinejoin:`round`,strokeWidth:`2`,rx:`3`}),(0,H.jsx)(`path`,{fill:`#C084FC`,stroke:`#C084FC`,strokeWidth:`0.5`,d:`M12.115 9.528c.338 0 .618.28.618.618v3.708c0 .338-.28.618-.618.618a.622.622 0 01-.618-.618v-3.708c0-.338.28-.618.618-.618zm-1.854.618a.623.623 0 00-.618-.618H6.965a.826.826 0 00-.824.824v3.296c0 .412.33.824.824.824h2.472a.826.826 0 00.824-.824v-1.03A.623.623 0 009.643 12a.623.623 0 00-.618.618v.618H7.377v-2.472h2.266c.338 0 .618-.28.618-.618zm7.416 0a.622.622 0 00-.618-.618h-2.266a.826.826 0 00-.824.824v3.502c0 .338.28.618.618.618.338 0 .618-.28.618-.618v-1.03h1.03c.338 0 .618-.28.618-.618a.623.623 0 00-.618-.618h-1.03v-.824h1.854c.337 0 .618-.28.618-.618z`})]}),xn=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{fill:`#64748B`,fillRule:`evenodd`,d:`M7 10h10a3 3 0 013 3v5a3 3 0 01-3 3H7a3 3 0 01-3-3v-5a3 3 0 013-3zm0 2a1 1 0 00-1 1v5a1 1 0 001 1h10a1 1 0 001-1v-5a1 1 0 00-1-1H7z`,clipRule:`evenodd`}),(0,H.jsx)(`path`,{fill:`#64748B`,fillRule:`evenodd`,d:`M16.269 4.932c-.915-1.32-2.588-1.857-3.916-1.924-1.4-.071-3.2.336-4.368 1.833-.495.635-.703 1.407-.81 1.987a12.12 12.12 0 00-.173 1.987c-.01.713.02 1.462.07 2.185h2.005c-.147-1.99-.132-4.137.486-4.93 1.265-1.623 4.218-1.217 5.062 0 .422.61.422 2.847.316 4.93h2.002c.04-.8.064-1.627.055-2.39a15.629 15.629 0 00-.111-1.83c-.06-.447-.188-1.227-.618-1.848z`,clipRule:`evenodd`})]}),Sn=e=>(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:[(0,H.jsx)(`path`,{stroke:`#EF4444`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M6 3a1 1 0 00-1 1v16a1 1 0 001 1h12a1 1 0 001-1V8a1 1 0 00-.375-.78l-5-4A1 1 0 0013 3H6z`}),(0,H.jsx)(`path`,{stroke:`#EF4444`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M12 4v5h6`}),(0,H.jsx)(`path`,{fill:`#EF4444`,d:`M15.828 16.018c-.598-.64-2.23-.379-2.62-.332-.575-.568-.965-1.254-1.103-1.49a7.062 7.062 0 00.368-1.965c0-.592-.23-1.231-.874-1.231a.665.665 0 00-.551.331c-.276.497-.161 1.492.275 2.51-.252.733-.482 1.443-1.126 2.697-.666.284-2.068.947-2.183 1.657a.644.644 0 00.184.592c.16.142.368.213.574.213.85 0 1.678-1.207 2.253-2.225a14.933 14.933 0 012-.544c.896.804 1.677.923 2.09.923.552 0 .759-.237.828-.45.115-.237.046-.497-.115-.686zm-.574.402c-.024.166-.23.331-.598.237a3.119 3.119 0 01-1.172-.616c.299-.047.965-.118 1.448-.023.184.047.367.165.322.402zm-3.839-4.876c.046-.07.115-.118.184-.118.207 0 .253.26.253.473a5.342 5.342 0 01-.276 1.468c-.345-.947-.276-1.61-.16-1.823zm-.045 4.592c.183-.379.436-1.041.528-1.325.207.355.552.78.736.97 0 .024-.713.166-1.264.355zm-1.356.947c-.53.9-1.08 1.467-1.38 1.467-.045 0-.091-.023-.137-.047-.07-.047-.092-.118-.07-.213.07-.331.667-.781 1.587-1.207z`}),(0,H.jsx)(`path`,{fill:`#EF4444`,fillRule:`evenodd`,d:`M10.877 11.227a.864.864 0 01.722-.427.95.95 0 01.85.492c.163.275.224.622.224.939v.007a7.178 7.178 0 01-.35 1.933c.158.27.491.823.958 1.305.237-.031.69-.09 1.163-.081.275.004.564.031.829.101.263.07.517.188.701.385l.007.007c.195.23.297.569.148.89a.77.77 0 01-.308.398c-.17.113-.402.178-.705.178-.446 0-1.244-.126-2.15-.908-.677.133-1.347.339-1.805.494-.283.495-.628 1.037-1.01 1.463-.392.436-.862.797-1.379.797-.251 0-.506-.086-.707-.263l-.005-.005-.006-.006a.844.844 0 01-.237-.768c.04-.232.178-.44.348-.619.173-.182.394-.35.625-.5.433-.28.925-.51 1.262-.656.574-1.126.805-1.8 1.036-2.473l.022-.063c-.208-.499-.341-.995-.39-1.434-.051-.454-.015-.877.153-1.179l.004-.007zm.344.205c-.107.195-.15.517-.104.936.046.415.178.898.39 1.391l-.119-.324a4.138 4.138 0 01-.264-1.247c-.012-.325.033-.586.115-.739l.004-.007.005-.006a.432.432 0 01.351-.21c.098 0 .185.032.255.09a.48.48 0 01.135.191c.051.128.063.277.063.392v.01a5.544 5.544 0 01-.286 1.522l-.183.538-.048-.13-.022.066-.047.135c-.237.69-.48 1.4-1.09 2.59l-.034.064-.066.029c-.33.14-.835.372-1.269.652-.216.14-.409.289-.552.44-.145.152-.224.291-.244.412l-.001.01c-.03.139.01.283.126.405.12.104.277.158.436.158.334 0 .703-.243 1.081-.664.37-.413.712-.954.998-1.46l.037-.065.072-.025a15.112 15.112 0 012.027-.552l.097-.018.074.066c.856.768 1.588.872 1.958.872.247 0 .396-.053.484-.112a.37.37 0 00.153-.2l.004-.013.006-.012c.071-.146.037-.321-.084-.466-.115-.12-.288-.21-.509-.268a1.871 1.871 0 00-.056-.014.645.645 0 01.208.14c.107.11.163.263.129.444-.05.328-.416.508-.845.398l-.002-.001a3.316 3.316 0 01-1.247-.654l-.343-.283.12-.019-.067-.065c-.574-.569-.97-1.248-1.12-1.507l-.015-.026-.045-.077.028-.085a6.87 6.87 0 00.358-1.907c0-.273-.055-.54-.168-.732a.55.55 0 00-.506-.295.465.465 0 00-.378.232zm.367.215c-.033.066-.075.24-.065.526.005.124.02.266.048.423a5.18 5.18 0 00.081-.701.683.683 0 00-.034-.237.143.143 0 00-.015-.028.1.1 0 00-.015.017zm.258 2.676l.225.387c.197.339.532.752.706.932l.057.058v.081a.202.202 0 01-.087.166.24.24 0 01-.04.023 1.964 1.964 0 01-.143.044 17.15 17.15 0 01-.173.043l-.134.033a10.65 10.65 0 00-.823.235l-.454.157.21-.433c.178-.369.428-1.023.518-1.3l.137-.426zm.105.935a16.6 16.6 0 01-.22.558 15.69 15.69 0 01.54-.142 7.036 7.036 0 01-.32-.416zm2.084.924c.21.122.434.217.672.281.303.078.348-.07.348-.07l.002-.011a.125.125 0 000-.06.085.085 0 00-.022-.035.331.331 0 00-.148-.074 3.568 3.568 0 00-.852-.03zm-3.525.45l-.324.552c-.27.459-.548.84-.803 1.107a2.212 2.212 0 01-.371.323.709.709 0 01-.377.136c-.097 0-.183-.045-.222-.065l-.008-.004-.011-.006-.01-.007a.37.37 0 01-.147-.192.424.424 0 01-.004-.23.84.84 0 01.189-.353c.093-.11.215-.221.359-.33a6.385 6.385 0 011.148-.662l.581-.269zM8.728 18.15a.453.453 0 00-.105.18v.007l-.002.005a.22.22 0 00.017.007h.002a.38.38 0 00.152-.069c.085-.056.186-.143.3-.264.106-.11.218-.246.334-.402-.154.09-.29.18-.403.267a1.834 1.834 0 00-.295.269z`,clipRule:`evenodd`})]}),Cn=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#FBBF24`,fillRule:`evenodd`,d:`M5.912 5.879C5 6.757 5 8.172 5 11v3c0 2.828 0 4.243.912 5.121.91.879 2.377.879 5.31.879h1.556c2.933 0 4.4 0 5.31-.879C19 18.243 19 16.828 19 14v-3c0-2.828 0-4.243-.912-5.121C17.178 5 15.711 5 12.778 5H12v1.5h1.167c.366 0 .55 0 .664.11s.113.287.113.64 0 .53-.113.64c-.114.11-.299.11-.664.11H12v1.5h1.167c.366 0 .55 0 .664.11s.113.287.113.64 0 .53-.113.64c-.114.11-.299.11-.664.11h-.39c-.366 0-.55 0-.663-.11-.114-.11-.114-.288-.114-.64V9.5h-1.167c-.366 0-.55 0-.664-.11s-.113-.288-.113-.64 0-.53.113-.64c.114-.11.299-.11.664-.11H12V6.5h-1.167c-.366 0-.55 0-.664-.11s-.113-.287-.113-.64v-.748c-2.174.015-3.364.123-4.144.877m4.144 7.277v.094c0 .497.204.974.57 1.326.364.351.858.549 1.374.549s1.01-.197 1.375-.55c.365-.35.57-.828.57-1.325v-.094a.65.65 0 0 0-.2-.464.7.7 0 0 0-.481-.192h-2.528c-.18 0-.354.07-.481.192a.65.65 0 0 0-.2.464`,clipRule:`evenodd`})}),wn=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{stroke:`#64748B`,strokeWidth:`2`,d:`M7.784 5H5a2 2 0 00-2 2v10a2 2 0 002 2h14a2 2 0 002-2V9.875a2 2 0 00-2-2h-6.284a2 2 0 01-1.27-.455L9.054 5.455A2 2 0 007.783 5z`})}),Tn=e=>(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...e,children:(0,H.jsx)(`path`,{fill:`#64748B`,stroke:`#64748B`,strokeWidth:`2`,d:`M7.784 5H5a2 2 0 00-2 2v10a2 2 0 002 2h14a2 2 0 002-2V9.875a2 2 0 00-2-2h-6.284a2 2 0 01-1.27-.455L9.054 5.455A2 2 0 007.783 5z`})}),En=wn,Dn=Tn,On=[[mn,[`ts`,`mts`,`cts`]],[an,[`tsx`]],[Yt,[`js`,`mjs`,`cjs`]],[rn,[`jsx`]],[gn,[`vue`]],[un,[`svelte`]],[jt,[`astro`]],[Nt,[`json`,`jsonc`,`json5`]],[$t,[`md`,`mdx`]],[It,[`html`,`htm`]],[Ft,[`css`]],[cn,[`scss`,`sass`,`less`]],[vn,[`yaml`,`yml`]],[_n,[`xml`,`plist`]],[U,[`toml`,`ini`,`cfg`,`conf`,`env`,`properties`]],[nn,[`py`,`pyi`]],[on,[`rb`]],[Kt,[`go`]],[sn,[`rs`]],[Jt,[`java`,`jar`]],[Xt,[`kt`,`kts`]],[fn,[`swift`]],[Pt,[`c`,`h`]],[Lt,[`cpp`,`cc`,`cxx`,`hpp`]],[Rt,[`cs`]],[tn,[`php`]],[Qt,[`lua`]],[Bt,[`dart`]],[ln,[`sh`,`bash`,`zsh`,`fish`,`ps1`,`psm1`,`bat`,`cmd`]],[Vt,[`sql`,`db`,`sqlite`,`sqlite3`]],[zt,[`csv`,`tsv`]],[Sn,[`pdf`]],[Ut,[`doc`,`docx`,`rtf`,`odt`,`pages`]],[en,[`ipynb`]],[pn,[`txt`,`log`,`text`]],[qt,[`png`,`jpg`,`jpeg`,`webp`,`bmp`,`ico`,`tif`,`tiff`,`avif`]],[bn,[`gif`]],[dn,[`svg`]],[hn,[`mp4`,`webm`,`mov`,`avi`,`mkv`,`m4v`]],[Mt,[`mp3`,`wav`,`flac`,`aac`,`m4a`,`ogg`,`wma`]],[Cn,[`zip`,`rar`,`7z`,`tar`,`gz`,`tgz`,`bz2`,`xz`]],[Wt,[`exe`,`msi`,`dmg`,`appimage`,`deb`,`rpm`]],[yn,[`ttf`,`otf`,`woff`,`woff2`,`eot`]],[xn,[`lock`]]],kn=new Map;for(let[e,t]of On)for(let n of t)kn.set(n,e);var An=new Map([[`.gitignore`,Gt],[`.gitattributes`,Gt],[`.gitmodules`,Gt],[`dockerfile`,Ht],[`.dockerignore`,Ht],[`license`,Zt],[`licence`,Zt],[`makefile`,U],[`.editorconfig`,U],[`.npmrc`,U],[`.env`,U]]);function jn(e){let t=(e.split(/[/\\]/).pop()??e).toLowerCase(),n=An.get(t);if(n)return n;let r=t.lastIndexOf(`.`);return r<=0?null:kn.get(t.slice(r+1))??null}var Mn=(0,V.createContext)({closed:En,open:Dn}),Nn=Mn.Provider;function W({name:e,kind:t,open:n,className:r,...i}){let a=(0,V.useContext)(Mn),s=C(`shrink-0`,r);if(t===`directory`)return(0,H.jsx)(n?a.open:a.closed,{className:s,...i});if(t===`symlink`)return(0,H.jsx)(v,{className:C(s,`text-text-2`),...i});if(t===`unknown`)return(0,H.jsx)(o,{className:C(s,`text-text-subtle`),...i});let c=jn(e);return c?(0,H.jsx)(c,{className:s,...i}):(0,H.jsx)(Le,{className:C(s,`text-text-2`),...i})}function Pn({className:e}){return(0,H.jsx)(W,{name:``,kind:`directory`,className:C(`size-4 shrink-0`,e)})}var Fn={fixed:z,removable:dt,network:ct,unknown:z};function G({label:e,path:t,active:n,icon:r,onNavigate:i,onUnpin:a,run:o,uploadRun:s}){let c=p(),l=A({targetDir:t,run:o,onFiles:s});return(0,H.jsxs)(`div`,{className:`group/place relative flex items-center`,children:[(0,H.jsxs)(`button`,{type:`button`,title:t,onClick:()=>i(t),className:C(`flex w-full items-center gap-2 rounded px-2 py-1 text-left text-[13px]`,c?`min-h-[44px]`:`min-h-0`,`can-hover:hover:bg-surface-elevated`,n?`bg-accent-wash text-text`:`text-text-2`,l.isOver&&`ring-1 ring-dashed ring-primary bg-primary/10`),...l.handlers,children:[(0,H.jsx)(r,{className:`size-4 shrink-0 text-text-subtle`}),(0,H.jsx)(`span`,{className:`truncate`,children:e})]}),a&&(0,H.jsx)(`button`,{type:`button`,"aria-label":`Unpin ${e}`,title:`Unpin`,onClick:a,className:`absolute right-1 rounded p-1 text-text-subtle can-hover:opacity-0 can-hover:group-hover/place:opacity-100 can-hover:hover:text-text`,children:(0,H.jsx)(j,{className:`size-3.5`})})]})}function K({title:e,children:t}){return(0,H.jsxs)(`div`,{className:`pb-2`,children:[(0,H.jsx)(`p`,{className:`px-2 pb-0.5 pt-2 text-[10px] font-semibold uppercase tracking-wide text-text-subtle`,children:e}),t]})}var In={home:`Home`,pinned:`Quick access`,known:`Folders`,drives:`Drives`};function Ln({host:e,currentPath:t,onNavigate:n,vocab:r=In}){let i=B(e=>e.pins),a=B(e=>e.unpin),o=e=>e===t,{run:s,uploadRun:c,prompts:l}=De(e?.sep??`/`,e?.platform);return(0,H.jsxs)(`aside`,{"aria-label":`Places`,"data-testid":`explorer-sidebar`,className:`hidden w-44 shrink-0 overflow-y-auto border-r border-border bg-[var(--x-sidebar-bg,var(--panel-2))] px-1 py-1 sm:block`,children:[i.length>0&&(0,H.jsx)(K,{title:`Pinned`,children:i.map(e=>(0,H.jsx)(G,{label:e.name,path:e.path,icon:j,active:o(e.path),onNavigate:n,onUnpin:()=>a(e.path),run:s,uploadRun:c},e.path))}),e&&e.pinned.length>0&&(0,H.jsx)(K,{title:r.pinned,children:e.pinned.map(e=>(0,H.jsx)(G,{label:e.name,path:e.path,icon:Pn,active:o(e.path),onNavigate:n,run:s,uploadRun:c},e.path))}),e&&(0,H.jsxs)(K,{title:r.known,children:[(0,H.jsx)(G,{label:r.home,path:e.homedir,icon:Pn,active:o(e.homedir),onNavigate:n,run:s,uploadRun:c}),e.knownFolders.map(e=>(0,H.jsx)(G,{label:e.name,path:e.path,icon:Pn,active:o(e.path),onNavigate:n,run:s,uploadRun:c},e.path))]}),e&&e.drives.length>0&&(0,H.jsx)(K,{title:r.drives,children:e.drives.map(e=>(0,H.jsx)(G,{label:e.label?`${e.label} (${e.name})`:e.name,path:e.path,icon:Fn[e.kind],active:o(e.path),onNavigate:n,run:s,uploadRun:c},e.path))}),e?.warnings.map(e=>(0,H.jsxs)(`p`,{className:`flex gap-1.5 px-2 py-1 text-[11px] leading-snug text-text-subtle`,children:[(0,H.jsx)(_e,{className:`mt-0.5 size-3 shrink-0`}),(0,H.jsx)(`span`,{children:e})]},e)),l]})}var q=new Intl.Collator(void 0,{numeric:!0,sensitivity:`base`});function Rn(e,t,n){switch(e){case`size`:return(t.size??0)-(n.size??0);case`modified`:return new Date(t.modified).getTime()-new Date(n.modified).getTime();case`kind`:{let e=q.compare(R(t.name),R(n.name));return e===0?q.compare(t.name,n.name):e}case`name`:return q.compare(t.name,n.name)}}function zn(e,t,n){let r=t.trim().toLowerCase(),i=r?e.filter(e=>e.name.toLowerCase().includes(r)):e,a=n.dir===`asc`?1:-1;return[...i].sort((e,t)=>{let r=e.type===`directory`;if(r!==(t.type===`directory`))return r?-1:1;let i=Rn(n.key,e,t);return(i===0?q.compare(e.name,t.name):i)*a})}function Bn(e){return e.reduce((e,t)=>e+(t.type===`file`?t.size??0:0),0)}function Vn({entries:e,selection:t,truncated:n}){let r=e.filter(e=>t.has(e.path)),i=[`${e.length}${n?`+`:``} item${e.length===1?``:`s`}`];if(r.length>0){i.push(`${r.length} selected`);let e=Bn(r);e>0&&i.push(Ie(e))}return(0,H.jsxs)(`div`,{"data-testid":`explorer-status`,className:`flex shrink-0 items-center gap-2 border-t border-border bg-panel-2 px-2 py-1 text-[11px] text-text-subtle`,children:[i.join(` · `),n&&(0,H.jsx)(`span`,{className:`ml-auto`,children:`Listing capped — narrow the filter to see the rest.`})]})}var Hn=3;function Un({crumbs:e,onNavigate:t,className:n,sep:r}){let{run:i,prompts:a}=De(r);if(e.length===0)return(0,H.jsx)(`div`,{className:n});let o=e.length>Hn+2,s=o?e.slice(0,1):e,c=o?e.slice(1,e.length-Hn):[],u=o?e.slice(e.length-Hn):[];return(0,H.jsxs)(`nav`,{"aria-label":`Path`,className:C(`flex min-w-0 items-center gap-0.5 text-xs`,n),children:[s.map(n=>(0,H.jsxs)(`span`,{className:`flex shrink-0 items-center gap-0.5`,children:[(0,H.jsx)(Wn,{crumb:n,last:!o&&n===e[e.length-1],onNavigate:t,run:i}),(0,H.jsx)(l,{className:`size-3 shrink-0 text-text-subtle`})]},n.path)),o&&(0,H.jsxs)(de,{children:[(0,H.jsx)(me,{asChild:!0,children:(0,H.jsx)(`button`,{type:`button`,"aria-label":`Show hidden path segments`,className:`rounded px-1 py-0.5 text-text-2 can-hover:hover:bg-surface-elevated`,children:(0,H.jsx)(m,{className:`size-3.5`})})}),(0,H.jsx)(he,{align:`start`,className:`max-h-72 overflow-y-auto`,children:c.map(e=>(0,H.jsx)(Ce,{onClick:()=>t(e.path),children:e.name},e.path))})]}),o&&(0,H.jsx)(l,{className:`size-3 shrink-0 text-text-subtle`}),u.map((e,n)=>(0,H.jsxs)(`span`,{className:`flex min-w-0 items-center gap-0.5`,children:[(0,H.jsx)(Wn,{crumb:e,last:n===u.length-1,onNavigate:t,run:i}),n<u.length-1&&(0,H.jsx)(l,{className:`size-3 shrink-0 text-text-subtle`})]},e.path)),a]})}function Wn({crumb:e,last:t,onNavigate:n,run:r}){let i=A({targetDir:e.path,run:r});return(0,H.jsx)(`button`,{type:`button`,onClick:()=>n(e.path),className:C(`max-w-[12rem] truncate rounded px-1 py-0.5 can-hover:hover:bg-surface-elevated`,t?`font-medium text-text`:`text-text-2`,i.isOver&&`ring-1 ring-dashed ring-primary bg-primary/10`),...i.handlers,children:e.name})}var J=[{key:`name`,label:`Name`},{key:`size`,label:`Size`},{key:`modified`,label:`Modified`},{key:`kind`,label:`Kind`}],Gn=[{dir:`asc`,label:`Ascending`},{dir:`desc`,label:`Descending`}];function Kn(e){return J.find(t=>t.key===e)?.label??e}function qn(e){return Gn.find(t=>t.dir===e)?.label??e}function Y(e){return C(`relative flex size-7 shrink-0 items-center justify-center rounded text-text-subtle can-hover:hover:bg-surface-elevated can-hover:hover:text-text disabled:opacity-30`,e&&`before:absolute before:-inset-2 before:content-['']`)}function Jn({coarse:e}){let t=k(e=>e.sort),n=k(e=>e.setPrefs),r=`Sort`,i=`${r}: ${Kn(t.key)}, ${qn(t.dir)}`;return(0,H.jsxs)(de,{children:[(0,H.jsx)(me,{asChild:!0,children:(0,H.jsx)(`button`,{type:`button`,"aria-label":r,title:i,className:Y(e),children:(0,H.jsx)(at,{className:`size-4`})})}),(0,H.jsxs)(he,{align:`end`,children:[(0,H.jsx)(rt,{children:`Sort by`}),(0,H.jsx)(se,{value:t.key,onValueChange:e=>n({sort:{key:e,dir:t.dir}}),children:J.map(({key:e,label:t})=>(0,H.jsx)(Ee,{value:e,children:t},e))}),(0,H.jsx)(ue,{}),(0,H.jsx)(rt,{children:`Order`}),(0,H.jsx)(se,{value:t.dir,onValueChange:e=>n({sort:{key:t.key,dir:e}}),children:Gn.map(({dir:e,label:t})=>(0,H.jsx)(Ee,{value:e,children:t},e))})]})]})}function X({targets:e,currentDir:t,hasClipboard:n,isPinned:r,actions:i}){let a=T(),o=e.length===1?e[0]:null,s=e.length>0&&e.every(e=>e.type===`directory`),c=e.length,l=c>1?` ${c} items`:``,u=k(e=>e.sort),d=k(e=>e.setPrefs);return c===0?(0,H.jsxs)(we,{children:[(0,H.jsx)(D,{onClick:()=>i.startCreate(`new-file`),children:`New File`}),(0,H.jsx)(D,{onClick:()=>i.startCreate(`new-folder`),children:`New Folder`}),(0,H.jsx)(N,{}),(0,H.jsx)(D,{disabled:!n,onClick:()=>i.paste(),children:`Paste`}),(0,H.jsx)(N,{}),(0,H.jsx)(D,{onClick:()=>i.openUploadPicker(),children:`Upload Files…`}),i.supportsFolderUpload&&(0,H.jsx)(D,{onClick:()=>i.openUploadFolderPicker(),children:`Upload Folder…`}),(0,H.jsx)(N,{}),(0,H.jsx)(D,{onClick:()=>i.openInTerminal(),children:`Open in Terminal`}),(0,H.jsx)(N,{}),(0,H.jsxs)(oe,{children:[(0,H.jsx)(ge,{children:`Sort by`}),(0,H.jsxs)(Ve,{children:[(0,H.jsx)(le,{value:u.key,onValueChange:e=>d({sort:{key:e,dir:u.dir}}),children:J.map(({key:e,label:t})=>(0,H.jsx)(ve,{value:e,children:t},e))}),(0,H.jsx)(N,{}),(0,H.jsx)(le,{value:u.dir,onValueChange:e=>d({sort:{key:u.key,dir:e}}),children:Gn.map(({dir:e,label:t})=>(0,H.jsx)(ve,{value:e,children:t},e))})]})]}),(0,H.jsx)(N,{}),(0,H.jsx)(D,{onClick:()=>i.copyPath([t]),children:`Copy Path`})]}):(0,H.jsxs)(we,{children:[o&&(o.type===`directory`||L(o.name))&&(0,H.jsx)(D,{onClick:()=>i.openEntry(o),children:`Open`}),s&&o&&!a&&(0,H.jsx)(D,{onClick:()=>i.openInNewWindow(o),children:`Open in New Window`}),s&&o&&(0,H.jsx)(D,{onClick:()=>i.openInTerminal(o),children:`Open in Terminal`}),(0,H.jsx)(N,{}),(0,H.jsxs)(D,{onClick:()=>i.cut(e),children:[`Cut`,l]}),(0,H.jsxs)(D,{onClick:()=>i.copy(e),children:[`Copy`,l]}),s&&o&&(0,H.jsx)(D,{disabled:!n,onClick:()=>i.paste(o.path),children:`Paste`}),(0,H.jsx)(N,{}),o&&(0,H.jsx)(D,{onClick:()=>i.startRename(o),children:`Rename`}),(0,H.jsxs)(D,{onClick:()=>i.trash(e),children:[`Move to Trash`,l]}),(0,H.jsx)(D,{variant:`destructive`,onClick:()=>i.confirmPermanentDelete(e),children:`Delete permanently`}),(0,H.jsx)(N,{}),(0,H.jsx)(D,{onClick:()=>i.copyPath(e.map(e=>e.path)),children:`Copy Path`}),(0,H.jsx)(D,{onClick:()=>i.copyName(e.map(e=>e.name)),children:`Copy Name`}),e.some(e=>e.type===`file`)&&(0,H.jsx)(D,{onClick:()=>i.download(e),children:`Download`}),s&&o&&(0,H.jsx)(D,{onClick:()=>i.togglePin(o.path,o.name),children:r(o.path)?`Unpin from Sidebar`:`Pin to Sidebar`}),o&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(N,{}),(0,H.jsx)(D,{onClick:()=>i.showProperties(o),children:`Properties`})]})]})}function Yn(e){let{entry:t,dragPaths:n,run:r,springLoad:i,origin:a=`explorer`,projectName:o,extraData:s,onDragStarted:c,onFiles:l}=e,u=je({paths:n,origin:a,projectName:o,extraData:s,onDragStarted:c}),d=A({targetDir:t.type===`directory`?t.path:null,run:r,springLoad:t.type===`directory`?i:void 0,onFiles:l});return{props:(0,V.useMemo)(()=>({...u,...d.handlers}),[u,d.handlers]),isDropTarget:d.isOver}}function Xn(e){return e.type===`directory`||L(e.name)?`open`:`sheet`}function Zn(e){return e.startsWith(`on`)&&e.length>2&&e[2]===e[2]?.toUpperCase()}function Qn(e,t){return n=>{e?.(n),t?.(n)}}function $n(e,t){if(!e)return t;let n={...e};for(let[e,r]of Object.entries(t)){let t=n[e];if(Zn(e)&&typeof t==`function`&&typeof r==`function`){n[e]=Qn(t,r);continue}if(e===`style`&&t&&r){n[e]={...t,...r};continue}if(e===`className`){n[e]=C(t,r);continue}r!==void 0&&(n[e]=r)}return n}function er({entry:e,selected:t,currentDir:n,hasClipboard:r,isPinned:i,actions:a,rowHeight:o,onSelect:s,onOpen:c}){let l=Yn({entry:e,dragPaths:[e.path],run:a.transferInto,springLoad:s,onFiles:a.uploadInto});return(0,H.jsxs)(F,{children:[(0,H.jsx)(O,{asChild:!0,children:(0,H.jsx)(tr,{entry:e,selected:t,rowHeight:o,onSelect:s,onOpen:c,dnd:l.props,dropActive:l.isDropTarget})}),(0,H.jsx)(X,{targets:[e],currentDir:n,hasClipboard:r,isPinned:i,actions:a})]})}var tr=(0,V.forwardRef)(function({entry:e,selected:t,rowHeight:n,onSelect:r,onOpen:i,dnd:a,dropActive:o,...s},c){let l=h(r),u=T(),{setOpen:d}=(0,V.useContext)(ne),f=()=>{r(),!(!u||e.type===`directory`)&&(Xn(e)===`open`?i():d(!0))};return(0,H.jsxs)(`div`,{ref:c,...$n({...s,...l,...a},{role:`option`,"aria-selected":t,"data-testid":`explorer-column-row`,"data-path":e.path,title:e.name,style:{height:n},onContextMenu:e=>{r(),e.stopPropagation()},onClick:f,onDoubleClick:i,className:C(`flex w-full items-center gap-1.5 px-2 text-[13px] select-none`,`can-hover:hover:bg-surface-elevated`,t&&`bg-accent-wash text-text`,o&&`ring-1 ring-dashed ring-primary bg-primary/10`)}),children:[(0,H.jsx)(W,{name:e.name,kind:e.kind,className:`size-4 shrink-0`}),(0,H.jsx)(`span`,{className:C(`flex-1 truncate`,t?`text-text`:`text-text-2`),children:e.name}),e.type===`directory`&&(0,H.jsx)(`span`,{className:`text-text-subtle`,children:`›`})]})});function nr({path:e,entries:t,loading:n,error:r,selectedPath:i,isFocused:a,currentDir:o,hasClipboard:s,isPinned:c,actions:l,rowHeight:u,onSelect:d,onOpen:f,onFocus:p,fullWidth:m}){let h=(0,V.useRef)(null);P(h);let g=m?48:u,_=xe({count:t.length,getScrollElement:()=>h.current,estimateSize:()=>g,overscan:8}),v=A({targetDir:e,run:l.transferInto,onFiles:l.uploadInto,disabled:m});return(0,H.jsx)(`div`,{className:C(`flex h-full shrink-0 flex-col`,!m&&`border-r border-border`,a&&`bg-panel-2/40`),style:m?void 0:{width:220},children:(0,H.jsxs)(`div`,{ref:h,role:`listbox`,"aria-label":e,className:C(`flex-1 overflow-y-auto outline-none`,v.isOver&&`ring-1 ring-dashed ring-primary bg-primary/10`),...v.handlers,children:[n&&t.length===0&&(0,H.jsx)(`p`,{className:`p-2 text-xs text-text-subtle`,children:`Loading…`}),r&&(0,H.jsx)(`p`,{className:`p-2 text-xs text-error`,children:r}),!n&&!r&&t.length===0&&(0,H.jsx)(`p`,{className:`p-2 text-xs text-text-subtle`,children:`Empty`}),(0,H.jsx)(`div`,{className:`relative w-full`,style:{height:_.getTotalSize()},children:_.getVirtualItems().map(e=>{let n=t[e.index],r=n.path===i;return(0,H.jsx)(`div`,{className:`absolute left-0 top-0 w-full`,style:{transform:`translateY(${e.start}px)`},children:(0,H.jsx)(er,{entry:n,selected:r,currentDir:o,hasClipboard:s,isPinned:c,actions:l,rowHeight:g,onSelect:()=>{p(),d(n)},onOpen:()=>f(n)})},n.path)})})]})})}function rr({containerRef:e,onKeyDown:t,backgroundLongPress:n,columns:r,focusedIndex:a,setFocusedIndex:o,selectedPathFor:s,slice:c,hasClipboard:l,isPinned:u,actions:d,onSelect:f,onOpen:p}){let m=r[a];return(0,H.jsxs)(F,{children:[(0,H.jsx)(O,{asChild:!0,children:(0,H.jsxs)(`div`,{ref:e,tabIndex:0,"data-testid":`explorer-columns`,"aria-label":`Column view`,onKeyDown:t,className:`flex h-full min-h-0 w-full flex-col outline-none`,...n,children:[a>0&&(0,H.jsxs)(`button`,{type:`button`,onClick:()=>o(e=>e-1),"aria-label":`Back`,className:`flex h-11 shrink-0 items-center gap-1.5 border-b border-border px-3 text-sm text-text-2 active:bg-surface-elevated`,children:[(0,H.jsx)(i,{className:`size-4`}),` Back`]}),m&&(0,H.jsx)(`div`,{className:`min-h-0 flex-1 motion-safe:animate-in motion-safe:slide-in-from-right-4 motion-safe:duration-150`,children:(0,H.jsx)(nr,{path:m.path,entries:m.entries,loading:m.loading,error:m.error,selectedPath:s(a),isFocused:!0,fullWidth:!0,rowHeight:48,currentDir:c.path,hasClipboard:l,isPinned:u,actions:d,onSelect:e=>f(a,e),onOpen:p,onFocus:()=>{}})},m.path)]})}),(0,H.jsx)(X,{targets:[],currentDir:c.path,hasClipboard:l,isPinned:u,actions:d})]})}var ir=0,ar=[];function or(){return new Promise(e=>{let t=!1,n=()=>{ir++,e(()=>{if(t)return;t=!0,ir--;let e=ar.shift();e&&e()})};ir<24?n():ar.push(n)})}function sr({entry:e,size:t,className:n}){let[r,i]=(0,V.useState)(null),[a,o]=(0,V.useState)(!1),s=(0,V.useRef)(null),c=(0,V.useRef)(null);return(0,V.useEffect)(()=>{i(null),o(!1)},[e.path]),(0,V.useEffect)(()=>{let t=s.current;if(!t||r||a)return;let n=new AbortController,l=null,u=new IntersectionObserver(t=>{t[0]?.isIntersecting&&(u.disconnect(),(async()=>{if(l=await or(),n.signal.aborted){l();return}try{let t=b(),r=await fetch(`/api/fs/raw?path=${encodeURIComponent(e.path)}`,{headers:t?{Authorization:`Bearer ${t}`}:{},signal:n.signal});if(!r.ok)throw Error(String(r.status));let a=await r.blob();if(n.signal.aborted)return;let o=URL.createObjectURL(a);c.current=o,i(o)}catch{n.signal.aborted||o(!0)}finally{l?.()}})())},{rootMargin:`200px`});return u.observe(t),()=>{n.abort(),u.disconnect(),l?.()}},[e.path,r,a]),(0,V.useEffect)(()=>()=>{c.current&&URL.revokeObjectURL(c.current)},[]),a||!r?(0,H.jsx)(`div`,{ref:s,className:C(`flex items-center justify-center`,n),style:{width:t,height:t},children:(0,H.jsx)(W,{name:e.name,kind:e.kind,className:`size-1/2`})}):(0,H.jsx)(`div`,{ref:s,className:C(`flex items-center justify-center overflow-hidden`,n),style:{width:t,height:t},children:(0,H.jsx)(`img`,{src:r,alt:``,loading:`lazy`,className:`max-h-full max-w-full rounded object-contain`,onError:()=>o(!0)})})}function cr({entry:e,onOpen:t}){return e?(0,H.jsxs)(`div`,{className:`flex h-full min-w-0 flex-col items-center gap-3 overflow-y-auto p-4 text-center`,children:[(0,H.jsx)(`div`,{className:`flex h-24 w-24 shrink-0 items-center justify-center`,children:e.type!==`directory`&&it(e.name)===`image`?(0,H.jsx)(sr,{entry:e,size:96}):(0,H.jsx)(W,{name:e.name,kind:e.kind,className:`size-16`})}),(0,H.jsx)(`p`,{className:`w-full truncate text-sm font-medium text-text`,title:e.name,children:e.name}),(0,H.jsxs)(`dl`,{className:`w-full space-y-1 text-left text-xs text-text-2`,children:[(0,H.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,H.jsx)(`dt`,{className:`text-text-subtle`,children:`Kind`}),(0,H.jsx)(`dd`,{className:`truncate`,children:e.type===`directory`?`Folder`:R(e.name)||`File`})]}),e.type!==`directory`&&(0,H.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,H.jsx)(`dt`,{className:`text-text-subtle`,children:`Size`}),(0,H.jsx)(`dd`,{children:Ie(e.size)})]}),(0,H.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,H.jsx)(`dt`,{className:`text-text-subtle`,children:`Modified`}),(0,H.jsx)(`dd`,{className:`truncate`,children:Ge(e.modified)})]})]}),L(e.name)&&(0,H.jsx)(`button`,{type:`button`,onClick:()=>t(e),className:`mt-2 w-full rounded border border-border bg-panel-2 py-1.5 text-xs font-medium text-text can-hover:hover:bg-surface-elevated`,children:`Open`})]},e.path):(0,H.jsx)(`div`,{className:`flex h-full items-center justify-center p-4 text-center text-xs text-text-subtle`,children:`Select a file to preview`})}function lr(e,t){switch(t.type){case`sync`:{let{paths:n,lastEntries:r,lastLoading:i,makeAbort:a}=t,o=n.length-1,s=n.map((t,n)=>{let s=e.columns[n],c=n===o;return s&&s.path===t?c?{...s,entries:r,loading:i,error:null}:s:c?{path:t,entries:r,loading:i,error:null,abort:a()}:{path:t,entries:[],loading:!0,error:null,abort:a()}}),c=[];for(let t=0;t<e.columns.length;t++){let n=e.columns[t],r=s[t];(!r||r.path!==n.path)&&c.push(n.abort)}return{columns:s,staleControllers:c}}case`loaded`:return{columns:e.columns.map(e=>e.path===t.path?{...e,entries:t.entries,loading:!1,error:null}:e),staleControllers:[]};case`error`:return{columns:e.columns.map(e=>e.path===t.path?{...e,loading:!1,error:t.message}:e),staleControllers:[]}}}function ur(e,t,n){let[r,i]=(0,V.useReducer)(lr,{columns:[],staleControllers:[]}),a=(0,V.useRef)(new Set);(0,V.useEffect)(()=>{i({type:`sync`,paths:e,lastEntries:t,lastLoading:n,makeAbort:()=>new AbortController})},[e.join(`\0`),t,n]),(0,V.useEffect)(()=>{for(let e of r.staleControllers)e.abort()},[r.staleControllers]);let o=(0,V.useRef)(r.columns);return o.current=r.columns,(0,V.useEffect)(()=>()=>{for(let e of o.current)e.abort.abort()},[]),(0,V.useEffect)(()=>{let e=r.columns.length-1;r.columns.forEach((t,n)=>{n!==e&&(!t.loading||a.current.has(t.abort)||(a.current.add(t.abort),I.browse(t.path,{signal:t.abort.signal}).then(e=>{a.current.delete(t.abort),!t.abort.signal.aborted&&i({type:`loaded`,path:t.path,entries:e.entries})}).catch(e=>{a.current.delete(t.abort),!(t.abort.signal.aborted||e instanceof DOMException&&e.name===`AbortError`)&&i({type:`error`,path:t.path,message:e instanceof Error?e.message:`Failed to read directory`})})))})},[r.columns]),{columns:r.columns}}var dr=720;function fr({slice:e,entries:t,actions:n,selection:r,hasClipboard:i,isPinned:a,nav:o,backgroundLongPress:s,rowHeight:c}){let{columns:l}=ur((0,V.useMemo)(()=>e.breadcrumbs.length>0?e.breadcrumbs.map(e=>e.path):[e.path],[e.breadcrumbs,e.path]),t,e.loading),u=T(),d=(0,V.useRef)(null);P(d);let[f,p]=(0,V.useState)(l.length-1),[m,h]=(0,V.useState)(0),g=(0,V.useRef)(l.length);(0,V.useEffect)(()=>{let e=d.current;if(!e)return;let t=()=>h(e.clientWidth);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]),(0,V.useEffect)(()=>{if(l.length===g.current)return;g.current=l.length,p(l.length-1);let e=d.current;if(!e)return;let t=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches===!0;e.scrollTo({left:e.scrollWidth,behavior:t?`auto`:`smooth`})},[l.length]);let _=(0,V.useMemo)(()=>{if(!e.anchor)return null;for(let t of l){let n=t.entries.find(t=>t.path===e.anchor);if(n)return n}return null},[l,e.anchor]),v=t=>t===l.length-1?e.anchor:l[t+1]?.path??null,y=e=>{let t=l[e];if(!t)return null;let n=v(e);return t.entries.find(e=>e.path===n)??null},b=(e,t)=>{p(e),t.type===`directory`?o.go(t.path):r.selectOnly(t.path)},x=e=>n.openEntry(e),S=e=>{if(!(e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`ArrowRight`&&f<l.length-1){e.preventDefault(),e.stopPropagation(),p(f+1);return}if(e.key===`ArrowLeft`&&f>0){e.preventDefault(),e.stopPropagation(),p(f-1);return}if(e.key===`ArrowUp`||e.key===`ArrowDown`){let t=l[f];if(!t)return;e.preventDefault(),e.stopPropagation();let n=y(f),r=n?t.entries.findIndex(e=>e.path===n.path):-1,i=e.key===`ArrowDown`?1:-1,a=Math.min(t.entries.length-1,Math.max(0,r<0?0:r+i)),o=t.entries[a];o&&b(f,o);return}if(e.key===`Enter`){let t=y(f);t&&(e.preventDefault(),e.stopPropagation(),x(t))}}},C=m>=dr;return u?(0,H.jsx)(rr,{containerRef:d,onKeyDown:S,backgroundLongPress:s,columns:l,focusedIndex:f,setFocusedIndex:p,selectedPathFor:v,slice:e,hasClipboard:i,isPinned:a,actions:n,onSelect:b,onOpen:x}):(0,H.jsxs)(F,{children:[(0,H.jsx)(O,{asChild:!0,children:(0,H.jsxs)(`div`,{ref:d,tabIndex:0,"data-testid":`explorer-columns`,"aria-label":`Column view`,onKeyDown:S,className:`flex h-full min-h-0 w-full overflow-x-auto outline-none`,...s,children:[l.map((t,r)=>(0,H.jsx)(nr,{path:t.path,entries:t.entries,loading:t.loading,error:t.error,selectedPath:v(r),isFocused:r===f,currentDir:e.path,hasClipboard:i,isPinned:a,actions:n,rowHeight:c,onSelect:e=>b(r,e),onOpen:x,onFocus:()=>p(r)},t.path)),C&&(0,H.jsx)(`div`,{className:`min-w-[240px] flex-1 border-l border-border bg-panel-2/30`,children:(0,H.jsx)(cr,{entry:_,onOpen:x})})]})}),(0,H.jsx)(X,{targets:[],currentDir:e.path,hasClipboard:i,isPinned:a,actions:n})]})}function pr(e,t){if(e.selection.size>0)return t.filter(t=>e.selection.has(t.path));let n=t.find(t=>t.path===e.anchor);return n?[n]:[]}function mr({slice:e,entries:t,actions:n,selection:r,nav:i}){return(0,V.useCallback)(a=>{if(!e)return;let o=a.target;if(o.tagName===`INPUT`||o.tagName===`TEXTAREA`||o.isContentEditable)return;let s=a.ctrlKey||a.metaKey,c=pr(e,t);if(s)switch(a.key.toLowerCase()){case`a`:a.preventDefault(),r.selectAll();return;case`c`:a.preventDefault(),n.copy(c);return;case`x`:a.preventDefault(),n.cut(c);return;case`v`:a.preventDefault(),n.paste();return;default:return}switch(a.key){case`ArrowDown`:a.preventDefault(),r.moveTo(1,a.shiftKey);return;case`ArrowUp`:a.preventDefault(),r.moveTo(-1,a.shiftKey);return;case`Home`:a.preventDefault(),t[0]&&r.selectOnly(t[0].path);return;case`End`:a.preventDefault(),t.length>0&&r.selectOnly(t[t.length-1].path);return;case`ArrowLeft`:a.altKey&&(a.preventDefault(),i.back());return;case`ArrowRight`:a.altKey&&(a.preventDefault(),i.forward());return;case`Backspace`:a.preventDefault(),i.back();return;case`Enter`:a.preventDefault(),c.length===1&&n.openEntry(c[0]);return;case`F2`:a.preventDefault(),c.length===1&&n.startRename(c[0]);return;case`Delete`:if(a.preventDefault(),c.length===0)return;a.shiftKey?n.confirmPermanentDelete(c):n.trash(c);return;case`Escape`:r.clear();return}a.key.length===1&&!a.altKey&&(a.preventDefault(),r.typeAhead(a.key))},[e,t,n,r,i])}function hr(e,t){let n=T(),r=M(e=>e.selectMode),{setOpen:i}=(0,V.useContext)(ne);return{isMobile:n,selectMode:r,handleTap:(a,o)=>n?r?(t.onRowClick(a.path,{shiftKey:!1,ctrlKey:!0,metaKey:!1}),!0):(o||t.selectOnly(a.path),Xn(a)===`open`?e.openEntry(a):i(!0),!0):!1}}function gr({initial:e,error:t,onCommit:n,onCancel:r,className:i}){let[a,o]=(0,V.useState)(e),s=(0,V.useRef)(null);return(0,V.useEffect)(()=>{let t=s.current;if(!t)return;t.focus();let n=e.lastIndexOf(`.`);n>0?t.setSelectionRange(0,n):t.select()},[e]),(0,H.jsxs)(`div`,{className:`relative flex-1 min-w-0`,children:[(0,H.jsx)(`input`,{ref:s,value:a,"aria-label":`Name`,"aria-invalid":!!t,onChange:e=>o(e.target.value),onBlur:()=>n(a),onKeyDown:e=>{e.stopPropagation(),e.key===`Enter`?n(a):e.key===`Escape`&&r()},className:C(`w-full rounded-[var(--rad-sm)] border bg-panel px-1.5 py-0.5 text-[13px] text-text outline-none`,t?`border-error`:`border-primary`,i)}),t&&(0,H.jsx)(`span`,{className:`absolute left-0 top-full z-10 mt-0.5 rounded border border-border bg-panel-2 px-1.5 py-0.5 text-[11px] text-error shadow-sm`,children:t})]})}var _r=(0,V.memo)(function(e){let{entry:t,currentDir:n,hasClipboard:r,isPinned:i,actions:a,menuTargets:o}=e,s=Yn({entry:t,dragPaths:(0,V.useMemo)(()=>o.map(e=>e.path),[o]),run:a.transferInto,onFiles:a.uploadInto});return(0,H.jsxs)(F,{children:[(0,H.jsx)(O,{asChild:!0,children:(0,H.jsx)(vr,{...e,dnd:s.props,dropActive:s.isDropTarget})}),(0,H.jsx)(X,{targets:o,currentDir:n,hasClipboard:r,isPinned:i,actions:a})]})}),vr=(0,V.forwardRef)(function({entry:e,selected:t,focused:n,cut:r,renaming:i,tileWidth:a,actions:o,selection:c,inlineError:l,currentDir:u,hasClipboard:d,isPinned:f,menuTargets:p,dnd:m,dropActive:g,..._},v){let y=h(()=>{t||c.selectOnly(e.path)}),{isMobile:b,selectMode:x,handleTap:S}=hr(o,c),w=e.type!==`directory`&&it(e.name)===`image`;return(0,H.jsxs)(`div`,{ref:v,...$n({..._,...y,...m},{role:`gridcell`,"aria-selected":t,"data-testid":`explorer-tile`,"data-path":e.path,title:e.name,style:a?{width:a}:void 0,onContextMenu:n=>{t||c.selectOnly(e.path),n.stopPropagation()},onClick:n=>{S(e,t)||c.onRowClick(e.path,n)},onDoubleClick:()=>o.openEntry(e),className:C(`relative flex flex-col items-center gap-1 rounded p-2 text-center select-none`,!a&&`w-full`,`can-hover:hover:bg-surface-elevated`,n&&!t&&`bg-surface-elevated`,t&&`bg-accent-wash`,r&&`opacity-40`,g&&`ring-1 ring-dashed ring-primary bg-primary/10`)}),children:[b&&x&&(0,H.jsx)(`span`,{"aria-hidden":!0,className:C(`absolute left-1.5 top-1.5 flex size-5 items-center justify-center rounded border`,t?`border-primary bg-primary text-primary-foreground`:`border-border bg-panel`),children:t&&(0,H.jsx)(s,{className:`size-3.5`})}),(0,H.jsx)(`div`,{className:`flex h-12 w-12 shrink-0 items-center justify-center`,children:w?(0,H.jsx)(sr,{entry:e,size:48}):(0,H.jsx)(W,{name:e.name,kind:e.kind,className:`size-12`})}),i?(0,H.jsx)(gr,{initial:e.name,error:l,onCommit:e=>void o.commitInline(e),onCancel:o.cancelInline}):(0,H.jsx)(`span`,{className:C(`line-clamp-2 w-full break-words text-[12px] leading-tight`,t?`text-text`:`text-text-2`),children:e.name})]})}),yr=96,br=88,xr=4,Sr=16,Cr=3;function wr({slice:e,entries:t,actions:n,selection:r,inlineError:i,hasClipboard:a,isPinned:o,backgroundLongPress:s}){let c=Fe(e=>e.clipboard?.operation===`cut`?e.clipboard.paths:null),l=(0,V.useRef)(null);P(l);let u=T(),[d,f]=(0,V.useState)(u?Cr:1);(0,V.useEffect)(()=>{if(u){f(Cr);return}let e=l.current;if(!e)return;let t=()=>{let t=e.clientWidth-Sr+xr;f(Math.max(1,Math.floor(t/(yr+xr))))};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[u]);let p=xe({count:Math.ceil(t.length/d),getScrollElement:()=>l.current,estimateSize:()=>br,overscan:4}),m=e.anchor?t.findIndex(t=>t.path===e.anchor):-1,h=m>=0?Math.floor(m/d):-1;(0,V.useEffect)(()=>{h>=0&&p.scrollToIndex(h,{align:`auto`})},[h]);let g=(0,V.useMemo)(()=>pr(e,t),[e,t]),_=e.inlineEdit?.kind===`new-file`||e.inlineEdit?.kind===`new-folder`,v=A({targetDir:e.path,run:n.transferInto,onFiles:n.uploadInto}),y=e=>{if(!(e.altKey||e.ctrlKey||e.metaKey))switch(e.key){case`ArrowDown`:e.preventDefault(),e.stopPropagation(),r.moveTo(d,e.shiftKey);return;case`ArrowUp`:e.preventDefault(),e.stopPropagation(),r.moveTo(-d,e.shiftKey);return;case`ArrowLeft`:e.preventDefault(),e.stopPropagation(),r.moveTo(-1,e.shiftKey);return;case`ArrowRight`:e.preventDefault(),e.stopPropagation(),r.moveTo(1,e.shiftKey);return}};return(0,H.jsxs)(F,{children:[(0,H.jsx)(O,{asChild:!0,children:(0,H.jsxs)(`div`,{ref:l,role:`grid`,tabIndex:0,"data-testid":`explorer-icons`,"aria-label":`File icons`,onKeyDown:y,onMouseDown:e=>{e.target===e.currentTarget&&r.clear()},className:C(`h-full flex-1 overflow-auto p-2 outline-none`,v.isOver&&`ring-1 ring-dashed ring-primary bg-primary/10`),...s,...v.handlers,children:[_&&(0,H.jsx)(`div`,{className:`mb-2 flex flex-col items-center gap-1 p-2`,style:u?void 0:{width:yr},children:(0,H.jsx)(gr,{initial:``,error:i,onCommit:e=>void n.commitInline(e),onCancel:n.cancelInline})}),(0,H.jsx)(`div`,{className:`relative w-full`,style:{height:p.getTotalSize()},children:p.getVirtualItems().map(s=>{let l=s.index*d,f=t.slice(l,l+d);return(0,H.jsx)(`div`,{role:`row`,className:C(`absolute left-0 top-0 w-full gap-1`,u?`grid grid-cols-3`:`flex`),style:{transform:`translateY(${s.start}px)`},children:f.map(t=>(0,H.jsx)(_r,{entry:t,currentDir:e.path,selected:e.selection.has(t.path),focused:e.anchor===t.path,cut:c?.includes(t.path)===!0,renaming:e.inlineEdit?.kind===`rename`&&e.inlineEdit.path===t.path,tileWidth:u?void 0:yr,menuTargets:e.selection.has(t.path)?g:[t],actions:n,selection:r,hasClipboard:a,isPinned:o,inlineError:i},t.path))},s.index)})}),t.length===0&&!e.loading&&!_&&(0,H.jsx)(`p`,{className:`p-3 text-xs text-text-subtle`,children:e.filter?`No entries match the filter.`:`This folder is empty.`})]})}),(0,H.jsx)(X,{targets:[],currentDir:e.path,hasClipboard:a,isPinned:o,actions:n})]})}var Tr=(0,V.memo)(function(e){let{entry:t,currentDir:n,hasClipboard:r,isPinned:i,actions:a,menuTargets:o}=e,s=Yn({entry:t,dragPaths:(0,V.useMemo)(()=>o.map(e=>e.path),[o]),run:a.transferInto,onFiles:a.uploadInto});return(0,H.jsxs)(F,{children:[(0,H.jsx)(O,{asChild:!0,children:(0,H.jsx)(Er,{...e,dnd:s.props,dropActive:s.isDropTarget})}),(0,H.jsx)(X,{targets:o,currentDir:n,hasClipboard:r,isPinned:i,actions:a})]})}),Er=(0,V.forwardRef)(function({entry:e,selected:t,focused:n,cut:r,renaming:i,height:a,actions:o,selection:c,inlineError:l,currentDir:u,hasClipboard:d,isPinned:f,menuTargets:p,dnd:m,dropActive:g,..._},v){let y=h(()=>{t||c.selectOnly(e.path)}),{isMobile:b,selectMode:x,handleTap:S}=hr(o,c);return(0,H.jsxs)(`div`,{ref:v,...$n({..._,...y,...m},{role:`row`,"aria-selected":t,"data-testid":`explorer-row`,"data-path":e.path,title:e.name,style:{height:a},onContextMenu:n=>{t||c.selectOnly(e.path),n.stopPropagation()},onClick:n=>{S(e,t)||c.onRowClick(e.path,n)},onDoubleClick:()=>o.openEntry(e),className:C(`flex w-full items-center gap-2 px-2 text-[13px] select-none`,`can-hover:hover:bg-surface-elevated`,n&&!t&&`bg-surface-elevated`,t&&`bg-accent-wash`,r&&`opacity-40`,g&&`ring-1 ring-dashed ring-primary bg-primary/10`)}),children:[b&&x&&(0,H.jsx)(`span`,{"aria-hidden":!0,className:C(`flex size-5 shrink-0 items-center justify-center rounded border`,t?`border-primary bg-primary text-primary-foreground`:`border-border`),children:t&&(0,H.jsx)(s,{className:`size-3.5`})}),(0,H.jsx)(W,{name:e.name,kind:e.kind,className:`size-4`}),i?(0,H.jsx)(gr,{initial:e.name,error:l,onCommit:e=>void o.commitInline(e),onCancel:o.cancelInline}):(0,H.jsx)(`span`,{className:C(`flex-1 truncate`,t?`text-text`:`text-text-2`),children:e.name}),(0,H.jsx)(`span`,{className:`w-20 shrink-0 text-right tabular-nums text-text-subtle`,children:e.type===`directory`?``:Ie(e.size)}),(0,H.jsx)(`span`,{className:`hidden w-24 shrink-0 text-right text-text-subtle sm:inline`,children:Re(e.modified)}),(0,H.jsx)(`span`,{className:`hidden w-16 shrink-0 truncate text-right text-text-subtle md:inline`,children:e.type===`directory`?`Folder`:R(e.name)||`File`})]})}),Dr={name:`flex-1 text-left`,size:`w-20 text-right`,modified:`hidden w-24 text-right sm:block`,kind:`hidden w-16 text-right md:block`},Or=J.map(e=>({...e,className:Dr[e.key]}));function kr({slice:e,entries:t,actions:n,selection:r,inlineError:i,hasClipboard:a,isPinned:o,rowHeight:s,backgroundLongPress:l}){let d=k(e=>e.sort),f=k(e=>e.setPrefs),m=Fe(e=>e.clipboard?.operation===`cut`?e.clipboard.paths:null),h=(0,V.useRef)(null);P(h);let g=Ue(),_=p(),v=xe({count:t.length,getScrollElement:()=>h.current,estimateSize:()=>s,overscan:12}),y=e.anchor?t.findIndex(t=>t.path===e.anchor):-1;(0,V.useEffect)(()=>{y>=0&&v.scrollToIndex(y,{align:`auto`})},[y]);let b=(0,V.useMemo)(()=>pr(e,t),[e,t]),x=e.inlineEdit?.kind===`new-file`||e.inlineEdit?.kind===`new-folder`,S=A({targetDir:e.path,run:n.transferInto,onFiles:n.uploadInto}),w=e=>f({sort:{key:e,dir:d.key===e&&d.dir===`asc`?`desc`:`asc`}});return(0,H.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,H.jsx)(`div`,{role:`row`,className:C(`flex shrink-0 items-center gap-2 border-b border-border bg-[var(--x-toolbar-bg,var(--panel-2))] px-2 py-1 text-[11px] font-medium text-text-subtle`,g.id===`windows`&&`divide-x divide-border`),children:Or.map(e=>(0,H.jsxs)(`button`,{type:`button`,"aria-label":`Sort by ${e.label}`,onClick:()=>w(e.key),className:C(`relative flex items-center gap-0.5 can-hover:hover:text-text`,g.id===`windows`&&e.key!==`name`&&`pl-2`,e.className,e.key!==`name`&&`justify-end`,_&&`before:absolute before:-inset-x-2 before:-inset-y-3 before:content-['']`),children:[e.label,d.key===e.key&&(d.dir===`asc`?(0,H.jsx)(u,{className:`size-3`}):(0,H.jsx)(c,{className:`size-3`}))]},e.key))}),(0,H.jsxs)(F,{children:[(0,H.jsx)(O,{asChild:!0,children:(0,H.jsxs)(`div`,{ref:h,role:`grid`,tabIndex:0,"data-testid":`explorer-list`,"aria-label":`File list`,onMouseDown:e=>{e.target===e.currentTarget&&r.clear()},className:C(`flex-1 overflow-auto outline-none`,S.isOver&&`ring-1 ring-dashed ring-primary bg-primary/10`),...l,...S.handlers,children:[x&&(0,H.jsxs)(`div`,{className:`flex items-center gap-2 px-2`,style:{height:s},children:[(0,H.jsx)(`span`,{className:`size-4 shrink-0`}),(0,H.jsx)(gr,{initial:``,error:i,onCommit:e=>void n.commitInline(e),onCancel:n.cancelInline})]}),(0,H.jsx)(`div`,{className:`relative w-full`,style:{height:v.getTotalSize()},children:v.getVirtualItems().map(c=>{let l=t[c.index];return(0,H.jsx)(`div`,{className:C(`absolute left-0 top-0 w-full`,g.id===`macos`&&c.index%2==1&&`bg-panel-2/40`),style:{transform:`translateY(${c.start}px)`},children:(0,H.jsx)(Tr,{entry:l,currentDir:e.path,selected:e.selection.has(l.path),focused:e.anchor===l.path,cut:m?.includes(l.path)===!0,renaming:e.inlineEdit?.kind===`rename`&&e.inlineEdit.path===l.path,height:s,menuTargets:e.selection.has(l.path)?b:[l],actions:n,selection:r,hasClipboard:a,isPinned:o,inlineError:i})},l.path)})}),t.length===0&&!e.loading&&!x&&(0,H.jsx)(`p`,{className:`p-3 text-xs text-text-subtle`,children:e.filter?`No entries match the filter.`:`This folder is empty.`})]})}),(0,H.jsx)(X,{targets:[],currentDir:e.path,hasClipboard:a,isPinned:o,actions:n})]})]})}var Ar={list:kr,icons:wr,columns:fr},jr=Object.keys(Ar);function Mr(e){return Ar[e]??kr}var Nr={list:ze,icons:st,columns:ot},Pr={list:`List view`,icons:`Icons view`,columns:`Column view`};function Fr({windowId:e,slice:t,nav:n,actions:r}){let o=k(e=>e.patch),s=k(e=>e.showHidden),c=k(e=>e.viewMode),l=k(e=>e.setPrefs),[u,d]=(0,V.useState)(!1),[f,m]=(0,V.useState)(t.path);(0,V.useEffect)(()=>m(t.path),[t.path]);let h=p();return(0,H.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-1 border-b border-border bg-[var(--x-toolbar-bg,var(--panel-2))] px-1.5 py-1`,children:[(0,H.jsx)(`button`,{type:`button`,"aria-label":`Back`,title:`Back`,disabled:!n.canGoBack,onClick:n.back,className:Y(h),children:(0,H.jsx)(i,{className:`size-4`})}),(0,H.jsx)(`button`,{type:`button`,"aria-label":`Forward`,title:`Forward`,disabled:!n.canGoForward,onClick:n.forward,className:Y(h),children:(0,H.jsx)(a,{className:`size-4`})}),(0,H.jsx)(`button`,{type:`button`,"aria-label":`Up one level`,title:`Up`,disabled:!t.parent,onClick:n.up,className:Y(h),children:(0,H.jsx)(be,{className:`size-4`})}),(0,H.jsx)(`button`,{type:`button`,"aria-label":`Refresh`,title:`Refresh`,onClick:n.refresh,className:Y(h),children:(0,H.jsx)(pe,{className:C(`size-4`,t.loading&&`animate-spin`)})}),(0,H.jsxs)(`div`,{className:`flex min-w-[8rem] flex-1 items-center gap-1 rounded border border-border bg-panel px-1`,children:[u?(0,H.jsx)(`input`,{autoFocus:!0,"aria-label":`Path`,value:f,onChange:e=>m(e.target.value),onBlur:()=>d(!1),onKeyDown:e=>{e.stopPropagation(),e.key===`Enter`?(n.go(f.trim()),d(!1)):e.key===`Escape`&&(m(t.path),d(!1))},className:`min-w-0 flex-1 bg-transparent py-1 font-mono text-xs text-text outline-none`}):(0,H.jsx)(Un,{crumbs:t.breadcrumbs,onNavigate:n.go,sep:t.sep,className:`flex-1 overflow-hidden py-0.5`}),(0,H.jsx)(`button`,{type:`button`,"aria-label":u?`Show breadcrumb`:`Edit path`,title:u?`Show breadcrumb`:`Edit path`,onClick:()=>d(e=>!e),className:Y(h),children:(0,H.jsx)(lt,{className:`size-3.5`})})]}),(0,H.jsxs)(`div`,{className:`flex items-center gap-1 rounded border border-border bg-panel px-1`,children:[(0,H.jsx)(Te,{className:`size-3.5 shrink-0 text-text-subtle`}),(0,H.jsx)(`input`,{"aria-label":`Filter entries`,placeholder:`Filter`,value:t.filter,onChange:t=>o(e,{filter:t.target.value}),onKeyDown:t=>{t.stopPropagation(),t.key===`Escape`&&o(e,{filter:``})},className:`w-24 min-w-0 bg-transparent py-1 text-xs text-text outline-none placeholder:text-text-subtle`}),t.filter&&(0,H.jsx)(`button`,{type:`button`,"aria-label":`Clear filter`,onClick:()=>o(e,{filter:``}),className:Y(h),children:(0,H.jsx)(y,{className:`size-3.5`})})]}),jr.length>1&&jr.map(e=>{let t=Nr[e];return(0,H.jsx)(`button`,{type:`button`,"aria-label":Pr[e],title:Pr[e],"aria-pressed":c===e,onClick:()=>l({viewMode:e}),className:C(Y(h),c===e&&`bg-accent-wash text-primary`),children:(0,H.jsx)(t,{className:`size-4`})},e)}),(0,H.jsx)(Jn,{coarse:h}),r.supportsFolderUpload?(0,H.jsxs)(de,{children:[(0,H.jsx)(me,{asChild:!0,children:(0,H.jsx)(`button`,{type:`button`,"aria-label":`Upload`,title:`Upload`,className:Y(h),children:(0,H.jsx)(Be,{className:`size-4`})})}),(0,H.jsxs)(he,{align:`end`,children:[(0,H.jsx)(Ce,{onClick:()=>r.openUploadPicker(),children:`Upload Files…`}),(0,H.jsx)(Ce,{onClick:()=>r.openUploadFolderPicker(),children:`Upload Folder…`})]})]}):(0,H.jsx)(`button`,{type:`button`,"aria-label":`Upload`,title:`Upload`,onClick:()=>r.openUploadPicker(),className:Y(h),children:(0,H.jsx)(Be,{className:`size-4`})}),(0,H.jsx)(`button`,{type:`button`,"aria-label":s?`Hide hidden files`:`Show hidden files`,title:s?`Hide hidden files`:`Show hidden files`,"aria-pressed":s,onClick:()=>l({showHidden:!s}),className:C(Y(h),s&&`bg-accent-wash text-primary`),children:s?(0,H.jsx)(_,{className:`size-4`}):(0,H.jsx)(g,{className:`size-4`})})]})}var Ir={list:ze,icons:st,columns:ot},Lr={list:`List`,icons:`Icons`,columns:`Columns`};function Rr(e){return{name:e.breadcrumbs[e.breadcrumbs.length-1]?.name??e.path,path:e.path,type:`directory`,kind:`directory`,modified:``}}function zr({open:e,onClose:t,slice:n,actions:r,entries:i}){let a=k(e=>e.viewMode),o=k(e=>e.sort),s=k(e=>e.showHidden),c=k(e=>e.setPrefs),l=pr(n,i);return(0,H.jsxs)(ie,{open:e,onClose:t,className:`p-2`,children:[(0,H.jsx)(re,{children:`View`}),(0,H.jsx)(`div`,{className:`flex gap-1 px-2 pb-2`,children:jr.map(e=>{let n=Ir[e];return(0,H.jsxs)(`button`,{type:`button`,"aria-pressed":a===e,onClick:()=>{c({viewMode:e}),t()},className:C(`flex flex-1 flex-col items-center gap-1 rounded-lg py-2 text-xs active:bg-surface-elevated`,a===e?`bg-accent-wash text-primary`:`text-text-2`),children:[(0,H.jsx)(n,{className:`size-4`}),Lr[e]]},e)})}),(0,H.jsx)(te,{}),(0,H.jsx)(re,{children:`Sort by`}),(0,H.jsx)(`div`,{className:`flex flex-wrap gap-1 px-2 pb-2`,children:J.map(({key:e,label:n})=>(0,H.jsxs)(`button`,{type:`button`,"aria-pressed":o.key===e,onClick:()=>{c({sort:{key:e,dir:o.key===e&&o.dir===`asc`?`desc`:`asc`}}),t()},className:C(`inline-flex min-h-11 items-center justify-center rounded-full border px-3 py-1.5 text-xs active:bg-surface-elevated`,o.key===e?`border-primary bg-accent-wash text-text`:`border-border text-text-2`),children:[n,o.key===e?o.dir===`asc`?` ↑`:` ↓`:``]},e))}),(0,H.jsx)(te,{}),(0,H.jsxs)(E,{onClick:()=>c({showHidden:!s}),children:[s?(0,H.jsx)(_,{className:`size-4`}):(0,H.jsx)(g,{className:`size-4`}),s?`Hide hidden files`:`Show hidden files`]}),(0,H.jsx)(te,{}),(0,H.jsxs)(E,{variant:`destructive`,disabled:l.length===0,onClick:()=>r.confirmPermanentDelete(l),children:[(0,H.jsx)(ye,{className:`size-4`}),`Delete permanently`,l.length>1?` (${l.length})`:``]}),(0,H.jsxs)(E,{onClick:()=>r.showProperties(Rr(n)),children:[(0,H.jsx)(Ke,{className:`size-4`}),`Properties of this folder`]})]})}function Z({icon:e,label:t,onClick:n,disabled:r,destructive:i}){return(0,H.jsxs)(`button`,{type:`button`,"aria-label":t,title:t,disabled:r,onClick:n,className:`flex min-w-[44px] flex-1 flex-col items-center gap-0.5 rounded-lg py-1.5 text-[10px] active:bg-surface-elevated disabled:opacity-30 ${i?`text-error`:`text-text-2`}`,children:[(0,H.jsx)(e,{className:`size-5`}),(0,H.jsx)(`span`,{className:`truncate`,children:t})]})}function Br({slice:e,nav:t,actions:n,entries:r,hasClipboard:a}){let o=M(e=>e.selectMode),c=M(e=>e.setSelectMode),[l,u]=(0,V.useState)(!1),[p,h]=(0,V.useState)(!1),g=r.filter(t=>e.selection.has(t.path));return o?(0,H.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1 border-t border-border px-1 py-1`,children:[(0,H.jsx)(Z,{icon:y,label:`Cancel`,onClick:()=>{c(!1)}}),(0,H.jsxs)(`span`,{className:`px-1 text-xs text-text-subtle`,children:[g.length,` selected`]}),(0,H.jsx)(`div`,{className:`flex-1`}),(0,H.jsx)(Z,{icon:ut,label:`Cut`,disabled:g.length===0,onClick:()=>n.cut(g)}),(0,H.jsx)(Z,{icon:d,label:`Copy`,disabled:g.length===0,onClick:()=>n.copy(g)}),(0,H.jsx)(Z,{icon:ye,label:`Trash`,disabled:g.length===0,destructive:!0,onClick:()=>n.trash(g)}),(0,H.jsx)(Z,{icon:f,label:`Download`,disabled:!g.some(e=>e.type===`file`),onClick:()=>n.download(g)}),g.length===1&&(0,H.jsx)(Z,{icon:Ke,label:`Info`,onClick:()=>n.showProperties(g[0])})]}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1 border-t border-border px-1 py-1`,children:[(0,H.jsx)(Z,{icon:i,label:`Back`,disabled:!t.canGoBack,onClick:t.back}),(0,H.jsx)(Z,{icon:fe,label:`New`,onClick:()=>u(!0)}),(0,H.jsx)(Z,{icon:ce,label:`Paste`,disabled:!a,onClick:()=>n.paste()}),(0,H.jsx)(Z,{icon:s,label:`Select`,onClick:()=>c(!0)}),(0,H.jsx)(Z,{icon:m,label:`More`,onClick:()=>h(!0)})]}),(0,H.jsxs)(ie,{open:l,onClose:()=>u(!1),className:`p-2`,children:[(0,H.jsxs)(E,{onClick:()=>n.startCreate(`new-file`),children:[(0,H.jsx)(et,{className:`size-4`}),` New File`]}),(0,H.jsxs)(E,{onClick:()=>n.startCreate(`new-folder`),children:[(0,H.jsx)(We,{className:`size-4`}),` New Folder`]}),(0,H.jsxs)(E,{onClick:()=>{u(!1),n.openUploadPicker()},children:[(0,H.jsx)(Be,{className:`size-4`}),` Upload Files…`]})]}),(0,H.jsx)(zr,{open:p,onClose:()=>h(!1),slice:e,actions:n,entries:r})]})}function Vr(e){return e.breadcrumbs[e.breadcrumbs.length-1]?.name??e.path}function Hr({slice:e,onClose:t}){return(0,H.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-border px-3 py-2.5`,children:[(0,H.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[15px] font-semibold text-text`,children:Vr(e)}),(0,H.jsx)(`button`,{type:`button`,"aria-label":`Close file explorer`,title:`Close`,onClick:t,className:`flex size-11 shrink-0 items-center justify-center rounded-full text-text-2 active:bg-surface-elevated`,children:(0,H.jsx)(y,{className:`size-5`})})]})}var Ur=`size-4 shrink-0 text-text-subtle`,Wr={fixed:z,removable:dt,network:ct,unknown:z};function Gr(){return(0,H.jsx)(W,{name:``,kind:`directory`,className:Ur})}function Q({label:e,path:t,active:n,icon:r,onNavigate:i}){return(0,H.jsxs)(`button`,{type:`button`,title:t,onClick:()=>i(t),className:C(`flex min-h-[44px] w-full items-center gap-2.5 rounded-lg px-3 text-left text-sm active:bg-surface-elevated`,n?`bg-accent-wash text-text`:`text-text-2`),children:[r,(0,H.jsx)(`span`,{className:`truncate`,children:e})]})}function $({title:e,children:t}){return(0,H.jsxs)(`div`,{className:`pb-2`,children:[(0,H.jsx)(`p`,{className:`px-3 pb-1 pt-3 text-[11px] font-semibold uppercase tracking-wide text-text-subtle`,children:e}),t]})}function Kr({open:e,onClose:t,host:n,currentPath:r,vocab:i,onNavigate:a}){let o=B(e=>e.pins),s=e=>e===r;return(0,H.jsx)(ie,{open:e,onClose:t,zIndex:65,className:`p-1`,children:(0,H.jsxs)(`div`,{className:`max-h-[70vh] overflow-y-auto px-1 pb-2`,children:[o.length>0&&(0,H.jsx)($,{title:`Pinned`,children:o.map(e=>(0,H.jsx)(Q,{label:e.name,path:e.path,icon:(0,H.jsx)(j,{className:Ur}),active:s(e.path),onNavigate:a},e.path))}),n&&n.pinned.length>0&&(0,H.jsx)($,{title:i.pinned,children:n.pinned.map(e=>(0,H.jsx)(Q,{label:e.name,path:e.path,icon:Gr(),active:s(e.path),onNavigate:a},e.path))}),n&&(0,H.jsxs)($,{title:i.known,children:[(0,H.jsx)(Q,{label:i.home,path:n.homedir,icon:Gr(),active:s(n.homedir),onNavigate:a}),n.knownFolders.map(e=>(0,H.jsx)(Q,{label:e.name,path:e.path,icon:Gr(),active:s(e.path),onNavigate:a},e.path))]}),n&&n.drives.length>0&&(0,H.jsx)($,{title:i.drives,children:n.drives.map(e=>{let t=Wr[e.kind];return(0,H.jsx)(Q,{label:e.label?`${e.label} (${e.name})`:e.name,path:e.path,icon:(0,H.jsx)(t,{className:Ur}),active:s(e.path),onNavigate:a},e.path)})})]})})}function qr({className:e}){return(0,H.jsx)(W,{name:``,kind:`directory`,className:e})}var Jr={fixed:z,removable:dt,network:ct,unknown:z};function Yr({chip:e,active:t,onNavigate:n}){let r=e.icon;return(0,H.jsxs)(`button`,{type:`button`,onClick:()=>n(e.path),title:e.path,className:C(`flex h-11 shrink-0 items-center gap-1.5 rounded-full border px-3 text-[13px] active:bg-surface-elevated`,t?`border-primary bg-accent-wash text-text`:`border-border text-text-2`),children:[(0,H.jsx)(r,{className:`size-4 shrink-0 text-text-subtle`}),(0,H.jsx)(`span`,{className:`max-w-[9rem] truncate`,children:e.label})]})}function Xr({host:e,currentPath:t,onNavigate:n,vocab:r}){let i=B(e=>e.pins),[a,o]=(0,V.useState)(!1);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1.5 overflow-x-auto touch-pan-x border-b border-border px-2 py-1.5`,children:[[...i.map(e=>({key:`pin:${e.path}`,label:e.name,path:e.path,icon:j})),...e?[{key:`home`,label:r.home,path:e.homedir,icon:qr}]:[],...e?.pinned.map(e=>({key:`os:${e.path}`,label:e.name,path:e.path,icon:qr}))??[],...e?.drives.map(e=>({key:`drive:${e.path}`,label:e.label?`${e.label} (${e.name})`:e.name,path:e.path,icon:Jr[e.kind]}))??[]].map(e=>(0,H.jsx)(Yr,{chip:e,active:e.path===t,onNavigate:n},e.key)),(0,H.jsx)(`button`,{type:`button`,"aria-label":`All places`,title:`All places`,onClick:()=>o(!0),className:`flex h-11 shrink-0 items-center gap-1 rounded-full border border-border px-3 text-[13px] text-text-2 active:bg-surface-elevated`,children:(0,H.jsx)(m,{className:`size-4`})})]}),(0,H.jsx)(Kr,{open:a,onClose:()=>o(!1),host:e,currentPath:t,vocab:r,onNavigate:e=>{o(!1),n(e)}})]})}function Zr(e,t,n){let r=(0,V.useRef)(null),i=k(e=>e.patch),a=(0,V.useRef)(t?.path??``);a.current=t?.path??``;let o=(0,V.useRef)(n);o.current=n;let s=(0,V.useCallback)(async t=>{r.current?.abort();let n=new AbortController;r.current=n,i(e,{loading:!0,error:null});try{let r=await I.browse(t,{showHidden:o.current,signal:n.signal});if(n.signal.aborted)return;i(e,{entries:r.entries,breadcrumbs:r.breadcrumbs,parent:r.parent,sep:r.sep,truncated:r.truncated===!0,loading:!1,error:null})}catch(t){if(n.signal.aborted||t instanceof DOMException&&t.name===`AbortError`)return;i(e,{loading:!1,entries:[],error:t instanceof tt?{message:t.message,code:t.code,hint:t.hint}:{message:t instanceof Error?t.message:`Failed to read directory`,code:`EUNKNOWN`}})}},[e,i]),c=t?.path;(0,V.useEffect)(()=>{if(c)return s(c),()=>r.current?.abort()},[c,n,s]),(0,V.useEffect)(()=>nt(e=>{e===a.current&&s(e)}),[s]);let l=(0,V.useCallback)((t,n)=>{let r=k.getState().slices[e];if(!r||t===r.path)return;let a=n?.replace?[...r.history.slice(0,r.historyIndex),t]:[...r.history.slice(0,r.historyIndex+1),t];i(e,{path:t,history:a.slice(-100),historyIndex:Math.min(a.length,100)-1,selection:new Set,anchor:null,filter:``,inlineEdit:null}),w.getState().setPayload(e,{path:t})},[e,i]),u=(0,V.useCallback)(t=>{let n=k.getState().slices[e];if(!n)return;let r=n.historyIndex+t,a=n.history[r];a!=null&&(i(e,{path:a,historyIndex:r,selection:new Set,anchor:null,filter:``,inlineEdit:null}),w.getState().setPayload(e,{path:a}))},[e,i]),d=(0,V.useCallback)(()=>u(-1),[u]),f=(0,V.useCallback)(()=>u(1),[u]),p=(0,V.useCallback)(()=>{let t=k.getState().slices[e];t?.parent&&l(t.parent)},[e,l]),m=(0,V.useCallback)(()=>{a.current&&s(a.current)},[s]),h=(t?.historyIndex??0)>0,g=t?t.historyIndex<t.history.length-1:!1;return(0,V.useMemo)(()=>({go:l,back:d,forward:f,up:p,refresh:m,canGoBack:h,canGoForward:g}),[l,d,f,p,m,h,g])}function Qr(e,t,n){let r=t==null?-1:e.indexOf(t),i=e.indexOf(n);if(i<0)return[];if(r<0)return[n];let[a,o]=r<=i?[r,i]:[i,r];return e.slice(a,o+1)}function $r(e,t,n){switch(n.type){case`clear`:return{selection:new Set,anchor:null};case`select-all`:return{selection:new Set(t),anchor:e.anchor??t[0]??null};case`set`:return{selection:new Set(n.paths),anchor:n.anchor===void 0?n.paths[n.paths.length-1]??null:n.anchor};case`click`:if(n.ctrl){let t=new Set(e.selection);return t.has(n.path)?t.delete(n.path):t.add(n.path),{selection:t,anchor:n.path}}if(n.shift){let r=Qr(t,e.anchor,n.path);return{selection:new Set(r),anchor:e.anchor??n.path}}return{selection:new Set([n.path]),anchor:n.path}}}function ei(e,t,n){if(e.length===0)return null;let r=t==null?-1:e.indexOf(t);return r<0?n>0?e[0]:e[e.length-1]:e[Math.min(e.length-1,Math.max(0,r+n))]}function ti(e,t,n){if(!t)return-1;let r=t.toLowerCase(),i=n<0?0:n+1;for(let t=0;t<e.length;t++){let n=(i+t)%e.length;if(e[n].toLowerCase().startsWith(r))return n}return-1}function ni(e,t){let n=k(e=>e.patch),r=(0,V.useRef)(t);r.current=t;let i=(0,V.useRef)({text:``,at:0}),a=(0,V.useCallback)(t=>{let i=k.getState().slices[e];i&&n(e,$r(i,r.current,t))},[e,n]),o=(0,V.useCallback)((t,n)=>{let i=k.getState().slices[e];if(!i)return;let o=ei(r.current,i.anchor,t);o!=null&&a({type:`click`,path:o,shift:n})},[e,a]),s=(0,V.useCallback)(t=>{let n=k.getState().slices[e];if(!n)return null;let o=Date.now(),s=o-i.current.at>800?t:i.current.text+t;i.current={text:s,at:o};let c=r.current,l=ti(c.map(e=>e.split(/[/\\]/).pop()??e),s,s.length===1&&n.anchor?c.indexOf(n.anchor):-1);return l<0?null:(a({type:`click`,path:c[l]}),c[l])},[e,a]),c=(0,V.useCallback)((e,t)=>a({type:`click`,path:e,shift:t.shiftKey,ctrl:t.ctrlKey||t.metaKey}),[a]),l=(0,V.useCallback)(e=>a({type:`click`,path:e}),[a]),u=(0,V.useCallback)(()=>a({type:`select-all`}),[a]),d=(0,V.useCallback)(()=>a({type:`clear`}),[a]),f=(0,V.useCallback)((e,t)=>a({type:`set`,paths:e,anchor:t}),[a]);return(0,V.useMemo)(()=>({onRowClick:c,selectOnly:l,selectAll:u,clear:d,setSelection:f,moveTo:o,typeAhead:s}),[c,l,u,d,f,o,s])}var ri=28,ii=36,ai=48;function oi({windowId:e,initialPath:t,variant:n=`window`}){let r=k(e=>e.ensure);(0,V.useEffect)(()=>r(e,t),[r,e,t]);let i=k(t=>t.slices[e]),a=k(e=>e.showHidden),o=k(e=>e.viewMode),s=k(e=>e.sort),{host:c}=Xe(),l=Fe(e=>(e.clipboard?.paths.length??0)>0),u=B(e=>e.isPinned),d=p(),f=Ue(),m=Zr(e,i,a),{actions:g,dialogs:_}=At(e,i,m,c?.platform),v=(0,V.useMemo)(()=>i?zn(i.entries,i.filter,s):[],[i?.entries,i?.filter,s]),y=ni(e,(0,V.useMemo)(()=>v.map(e=>e.path),[v])),b=mr({slice:i,entries:v,actions:g,selection:y,nav:m}),x=h(),S=M(e=>e.close);if(!i)return null;let C=Mr(o),w=n===`sheet`,ee=w?ai:d?ii:ri;return(0,H.jsxs)(`div`,{"data-skin":f.id,style:{fontFamily:`var(--x-font)`},className:`flex h-full min-h-0 w-full flex-col bg-panel text-text`,children:[w?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Hr,{slice:i,onClose:S}),(0,H.jsx)(Xr,{host:c,currentPath:i.path,onNavigate:m.go,vocab:f.vocab})]}):(0,H.jsx)(Fr,{windowId:e,slice:i,nav:m,actions:g}),i.error&&(0,H.jsxs)(`div`,{className:`flex items-start gap-2 border-b border-border bg-error/10 px-2 py-1.5 text-xs text-error`,children:[(0,H.jsx)(_e,{className:`mt-0.5 size-3.5 shrink-0`}),(0,H.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,H.jsx)(`p`,{className:`break-words`,children:i.error.message}),i.error.hint&&(0,H.jsx)(`p`,{className:`mt-0.5 text-text-2`,children:i.error.hint})]}),c&&(0,H.jsxs)(`button`,{type:`button`,onClick:()=>m.go(c.homedir),className:`flex shrink-0 items-center gap-1 rounded border border-border px-1.5 py-0.5 text-text-2 can-hover:hover:bg-surface-elevated`,children:[(0,H.jsx)(Ae,{className:`size-3`}),` Go home`]})]}),(0,H.jsx)(Nn,{value:{closed:f.FolderIcon,open:f.FolderOpenIcon},children:(0,H.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[!w&&(0,H.jsx)(Ln,{host:c,currentPath:i.path,onNavigate:m.go,vocab:f.vocab}),(0,H.jsx)(`div`,{className:`min-w-0 flex-1`,onKeyDown:b,children:(0,H.jsx)(C,{windowId:e,slice:i,entries:v,actions:g,selection:y,inlineError:_.inlineError,hasClipboard:l,isPinned:u,rowHeight:ee,nav:m,backgroundLongPress:x})})]})}),w?(0,H.jsx)(Br,{slice:i,nav:m,actions:g,entries:v,hasClipboard:l}):(0,H.jsx)(Vn,{entries:v,selection:i.selection,truncated:i.truncated}),(0,H.jsx)(Se,{dialogs:_,platform:c?.platform,sep:i.sep})]})}export{oi as t};
|