purplemux 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +21 -21
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +1 -1
- package/.next/standalone/.next/routes-manifest.json +7 -7
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__045vzzi._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0auutl5._.js +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__11j9~6h._.js +1 -1
- package/.next/standalone/.next/server/chunks/{_05otee~._.js → _04dq3gt._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{_0uxocm.._.js → _09vws3v._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{_0d415er._.js → _0ap4fy.._.js} +1 -1
- package/.next/standalone/.next/server/chunks/_0e8e4zn._.js +1 -1
- package/.next/standalone/.next/server/chunks/_0isokfh._.js +1 -1
- package/.next/standalone/.next/server/chunks/{_0_1vqqb._.js → _0su2osz._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{_0xmsr59._.js → _0uo_gs5._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{_06vitke._.js → _134uyu_._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{src_lib_136edwc._.js → src_lib_0vs5asg._.js} +1 -1
- package/.next/standalone/.next/server/chunks/src_lib_session-parser_ts_0~rhicw._.js +3 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0glt298._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0au.ssp._.js → [root-of-the-server]__0nkl4wz._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_06yggfn._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0al4.z9._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0b~zgl1._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0f8k39w._.js +14 -0
- package/.next/standalone/.next/server/chunks/ssr/{_0_owbnq._.js → _0h4kenr._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{_0z61aq-._.js → _0ihbr8k._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_0js4l3t._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0nkeoiw._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0rxhzwm._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0y31tie._.js +14 -0
- package/.next/standalone/.next/server/chunks/ssr/messages_de_session_json_[json]_cjs_0b-1vpl._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_en_session_json_[json]_cjs_0jaymfk._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_es_session_json_[json]_cjs_0jy1144._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_fr_session_json_[json]_cjs_0rz0g.c._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_ja_session_json_[json]_cjs_0cos-uy._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_ko_session_json_[json]_cjs_0x4saic._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_pt-BR_session_json_[json]_cjs_0-x8ftl._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_ru_session_json_[json]_cjs_0~2-kve._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_tr_session_json_[json]_cjs_0zsvt_4._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_zh-CN_session_json_[json]_cjs_134xza~._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_zh-TW_session_json_[json]_cjs_0mv_~-8._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_components_features_mobile_mobile-terminal-page_tsx_02chzch._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_components_features_workspace_terminal-page_tsx_0wuq-jl._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +21 -21
- package/.next/standalone/.next/server/pages/_app/build-manifest.json +5 -5
- package/.next/standalone/.next/server/pages/_app/client-build-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/_app.js +2 -2
- package/.next/standalone/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/_error.js +2 -2
- package/.next/standalone/.next/server/pages/_error.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/[tabId].js +1 -1
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/[tabId].js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs.js +1 -1
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/status/hook.js +1 -1
- package/.next/standalone/.next/server/pages/api/status/hook.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/status/statusline.js +1 -1
- package/.next/standalone/.next/server/pages/api/status/statusline.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/tmux/recover-unknown.js +1 -1
- package/.next/standalone/.next/server/pages/api/tmux/recover-unknown.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/tmux/reset.js +1 -1
- package/.next/standalone/.next/server/pages/api/tmux/reset.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/workspace.js +1 -1
- package/.next/standalone/.next/server/pages/api/workspace.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/de/404.html +1 -1
- package/.next/standalone/.next/server/pages/de/500.html +1 -1
- package/.next/standalone/.next/server/pages/en/404.html +1 -1
- package/.next/standalone/.next/server/pages/en/500.html +1 -1
- package/.next/standalone/.next/server/pages/es/404.html +1 -1
- package/.next/standalone/.next/server/pages/es/500.html +1 -1
- package/.next/standalone/.next/server/pages/fr/404.html +1 -1
- package/.next/standalone/.next/server/pages/fr/500.html +1 -1
- package/.next/standalone/.next/server/pages/index/build-manifest.json +4 -4
- package/.next/standalone/.next/server/pages/index/client-build-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/index/react-loadable-manifest.json +8 -10
- package/.next/standalone/.next/server/pages/index.js +2 -2
- package/.next/standalone/.next/server/pages/index.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/ja/404.html +1 -1
- package/.next/standalone/.next/server/pages/ja/500.html +1 -1
- package/.next/standalone/.next/server/pages/ko/404.html +1 -1
- package/.next/standalone/.next/server/pages/ko/500.html +1 -1
- package/.next/standalone/.next/server/pages/login.js +2 -2
- package/.next/standalone/.next/server/pages/login.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/pt-BR/404.html +1 -1
- package/.next/standalone/.next/server/pages/pt-BR/500.html +1 -1
- package/.next/standalone/.next/server/pages/reports/build-manifest.json +3 -3
- package/.next/standalone/.next/server/pages/reports/client-build-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/reports.js +2 -2
- package/.next/standalone/.next/server/pages/reports.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/reset.js +2 -2
- package/.next/standalone/.next/server/pages/reset.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/ru/404.html +1 -1
- package/.next/standalone/.next/server/pages/ru/500.html +1 -1
- package/.next/standalone/.next/server/pages/stats/build-manifest.json +3 -3
- package/.next/standalone/.next/server/pages/stats/client-build-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/stats.js +2 -2
- package/.next/standalone/.next/server/pages/stats.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/tools-required.js +2 -2
- package/.next/standalone/.next/server/pages/tools-required.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/tr/404.html +1 -1
- package/.next/standalone/.next/server/pages/tr/500.html +1 -1
- package/.next/standalone/.next/server/pages/webview/build-manifest.json +3 -3
- package/.next/standalone/.next/server/pages/webview/client-build-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/webview.js +2 -2
- package/.next/standalone/.next/server/pages/webview.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/zh-CN/404.html +1 -1
- package/.next/standalone/.next/server/pages/zh-CN/500.html +1 -1
- package/.next/standalone/.next/server/pages/zh-TW/404.html +1 -1
- package/.next/standalone/.next/server/pages/zh-TW/500.html +1 -1
- package/.next/standalone/.next/static/{WXAyTQ0PHZnxXXCwEZpit → 5mb_D_gy6E3wsT_BhuXDS}/_buildManifest.js +4 -4
- package/.next/standalone/.next/static/chunks/0-ku865ak6iur.js +1 -0
- package/.next/standalone/.next/static/chunks/{17deooyefr~9o.js → 04.g49tb8txni.js} +1 -1
- package/.next/standalone/.next/static/chunks/05_e09pgcymkh.js +1 -0
- package/.next/standalone/.next/static/chunks/{0w9~wt6~_cxhf.js → 05o-f2v7xe3_~.js} +1 -1
- package/.next/standalone/.next/static/chunks/06zq-2isv5vn6.js +1 -0
- package/.next/standalone/.next/static/chunks/{11ess6mn2988z.js → 08zfbuugw_i52.js} +3 -3
- package/.next/standalone/.next/static/chunks/{0lz-p_awksh5e.js → 0biwudo-tl.dw.js} +1 -1
- package/.next/standalone/.next/static/chunks/0dh2cf_c4gz65.js +1 -0
- package/.next/standalone/.next/static/chunks/0fwnzw~qq_abm.js +1 -0
- package/.next/standalone/.next/static/chunks/{00ziyk306y55s.js → 0g2qc5wv7c9.a.js} +1 -1
- package/.next/standalone/.next/static/chunks/0gjtphww9wtey.js +12 -0
- package/.next/standalone/.next/static/chunks/0om8~g_7-c-x5.js +12 -0
- package/.next/standalone/.next/static/chunks/{17et6y09q052u.js → 0qc36tzow-sbz.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0if5fmp94~nc2.js → 0qr~rkd5sq-yp.js} +5 -5
- package/.next/standalone/.next/static/chunks/{0y3fmkya..f_6.js → 0qwvk-uq944-d.js} +3 -3
- package/.next/standalone/.next/static/chunks/{095e2xf3z6x3g.js → 0r_ynb..7ongv.js} +4 -4
- package/.next/standalone/.next/static/chunks/{010m3dplwy4n6.js → 0ryghnq7iy47v.js} +3 -3
- package/.next/standalone/.next/static/chunks/0se1ra8f1bor~.js +1 -0
- package/.next/standalone/.next/static/chunks/{0pw-284q1gfk3.js → 0szz-2.f~11pz.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0u-1zto-umjh9.js → 0t2val7bf4~s7.js} +1 -1
- package/.next/standalone/.next/static/chunks/{08xz_z9u4ex9t.js → 0tgkw7pjpp21_.js} +1 -1
- package/.next/standalone/.next/static/chunks/{04uzwc8c9u49~.js → 0u9dn7tzog.gz.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0jxk8j~j30thp.js → 0u9yrtrs1bktp.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0f81tdf_8utww.js → 0wdd71tayg8y1.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0h~_fdj60t_~l.js → 0~vm4d30sl9ii.js} +1 -1
- package/.next/standalone/.next/static/chunks/107edt81z_gzy.css +3 -0
- package/.next/standalone/.next/static/chunks/{0t0-4sn-nqqld.js → 128d.rbx4e4rt.js} +1 -1
- package/.next/standalone/.next/static/chunks/132lgf3mld2ax.js +1 -0
- package/.next/standalone/.next/static/chunks/{07v3udp2qhc02.js → 17jdo1q-xb24-.js} +1 -1
- package/.next/standalone/.next/static/chunks/184~yri~m3wao.css +1 -0
- package/.next/standalone/.next/static/chunks/{turbopack-0.28.d-q12n3p.js → turbopack-066o21-32lo7n.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-0-itu0o9y_vq8.js → turbopack-0abq2d._xmt7y.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-0h0~tr4tgq3aa.js → turbopack-0sisjg~-koq5w.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-0qmx66h203l93.js → turbopack-11tk4snp~dxd4.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-0g80nrinbfgtk.js → turbopack-17.piokhhz77b.js} +1 -1
- package/.next/standalone/messages/de/session.json +3 -1
- package/.next/standalone/messages/en/session.json +3 -1
- package/.next/standalone/messages/es/session.json +3 -1
- package/.next/standalone/messages/fr/session.json +3 -1
- package/.next/standalone/messages/ja/session.json +3 -1
- package/.next/standalone/messages/ko/session.json +3 -1
- package/.next/standalone/messages/pt-BR/session.json +3 -1
- package/.next/standalone/messages/ru/session.json +3 -1
- package/.next/standalone/messages/tr/session.json +3 -1
- package/.next/standalone/messages/zh-CN/session.json +3 -1
- package/.next/standalone/messages/zh-TW/session.json +3 -1
- package/.next/standalone/package.json +4 -3
- package/.next/standalone/server.js +1 -1
- package/dist/server.js +268 -6
- package/package.json +4 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__07i-oza._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0iy5a-w._.js +0 -7
- package/.next/standalone/.next/server/chunks/ssr/_0qbbxeq._.js +0 -7
- package/.next/standalone/.next/server/chunks/ssr/node_modules_0kc8lix._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_highlight_js_lib_core_0h1yngz.js +0 -3
- package/.next/standalone/.next/static/chunks/0-xrsiia9hc.c.js +0 -1
- package/.next/standalone/.next/static/chunks/04bbxzycy0y90.js +0 -1
- package/.next/standalone/.next/static/chunks/05oh32ya2uzfq.js +0 -1
- package/.next/standalone/.next/static/chunks/06e51nokt~dtt.js +0 -1
- package/.next/standalone/.next/static/chunks/06ypydsl._u~2.js +0 -5
- package/.next/standalone/.next/static/chunks/071neb1eikeoh.js +0 -1
- package/.next/standalone/.next/static/chunks/09tinkgkd8br_.js +0 -1
- package/.next/standalone/.next/static/chunks/0m_amua611xl0.js +0 -5
- package/.next/standalone/.next/static/chunks/0o6esya.vhm1..js +0 -1
- package/.next/standalone/.next/static/chunks/0z3gpm0o.mwwy.css +0 -3
- package/.next/standalone/.next/static/chunks/0~ei.a78nuwqe.js +0 -1
- package/.next/standalone/.next/static/chunks/10r8rypk5fanv.js +0 -1
- package/.next/standalone/.next/static/chunks/13zzmkwag6vsm.css +0 -1
- /package/.next/standalone/.next/static/{WXAyTQ0PHZnxXXCwEZpit → 5mb_D_gy6E3wsT_BhuXDS}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{WXAyTQ0PHZnxXXCwEZpit → 5mb_D_gy6E3wsT_BhuXDS}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,181474,e=>{"use strict";let t=(0,e.i(369547).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",0,t],181474)},734549,771573,127630,236597,587346,858013,e=>{"use strict";var t=e.i(191788),r=e.i(950323),a=e.i(679935),l=e.i(844044);let n=e=>fetch(e).then(e=>{if(!e.ok)throw Error("fetch failed");return e.json()}),s={builtins:[],custom:[],order:[]},i=(e,t)=>{if(0===t.length)return e;let r=new Map(e.map(e=>[e.id,e])),a=[];for(let e of t){let t=r.get(e);t&&(a.push(t),r.delete(e))}for(let e of r.values())a.push(e);return a};e.s(["default",0,()=>{let{data:e,isLoading:o,mutate:d}=(0,r.default)("/api/sidebar-items",n,{revalidateOnFocus:!1}),c=e??s,u=(0,t.useMemo)(()=>i([...c.builtins,...c.custom].filter(e=>e.enabled),c.order),[c]),h=(0,t.useMemo)(()=>i([...c.builtins,...c.custom],c.order),[c]),m=(0,t.useCallback)(async(e,t,r)=>{let a=e.filter(e=>!e.enabled).map(e=>e.id);if(!(await fetch("/api/sidebar-items",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({custom:t,disabledBuiltinIds:a,order:r})})).ok)throw Error("save failed")},[]),p=(0,t.useCallback)(async(e,t)=>{let r=r=>({...r,builtins:r.builtins.map(r=>r.id===e?{...r,enabled:t}:r)});await d(async e=>{let t=r(e??s);return await m(t.builtins,t.custom,t.order),t},{optimisticData:e=>r(e??s),rollbackOnError:!0,revalidate:!1}).catch(()=>a.toast.error((0,l.t)("settings","saveFailed")))},[d,m]),f=(0,t.useCallback)(async e=>{let t=t=>({...t,custom:e});await d(async e=>{let r=t(e??s);return await m(r.builtins,r.custom,r.order),r},{optimisticData:e=>t(e??s),rollbackOnError:!0,revalidate:!1}).catch(()=>a.toast.error((0,l.t)("settings","saveFailed")))},[d,m]),x=(0,t.useCallback)(async e=>{let t=t=>({...t,order:e});await d(async e=>{let r=t(e??s);return await m(r.builtins,r.custom,r.order),r},{optimisticData:e=>t(e??s),rollbackOnError:!0,revalidate:!1}).catch(()=>a.toast.error((0,l.t)("settings","saveFailed")))},[d,m]),g=(0,t.useCallback)(async e=>{let t=t=>({...t,custom:t.custom.filter(t=>t.id!==e),order:t.order.filter(t=>t!==e)});await d(async e=>{let r=t(e??s);return await m(r.builtins,r.custom,r.order),r},{optimisticData:e=>t(e??s),rollbackOnError:!0,revalidate:!1}).catch(()=>a.toast.error((0,l.t)("settings","saveFailed")))},[d,m]),y=(0,t.useCallback)(async()=>{let e=e=>({builtins:e.builtins.map(e=>({...e,enabled:!0})),custom:[],order:[]});await d(async t=>{let r=e(t??s);return await m(r.builtins,r.custom,r.order),r},{optimisticData:t=>e(t??s),rollbackOnError:!0,revalidate:!1}).catch(()=>a.toast.error((0,l.t)("settings","saveFailed")))},[d,m]);return{items:u,allOrderedItems:h,builtinItems:c.builtins,customItems:c.custom,order:c.order,isLoading:o,toggleBuiltin:p,saveCustom:f,saveOrder:x,deleteItem:g,resetAll:y}}],734549);var o=e.i(369547);let d=(0,o.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);e.s(["Link",0,d],771573);let c=(0,o.default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,c],127630);let u=(0,o.default)("bookmark",[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]);e.s(["Bookmark",0,u],236597);let h=(0,o.default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",0,h],587346);let m=(0,o.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);e.s(["Home",0,m],858013)},72538,e=>{"use strict";let t=(0,e.i(369547).default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);e.s(["BarChart3",0,t],72538)},953553,374433,657334,649249,298421,546456,726331,185849,582646,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);e.s(["PieChart",0,r],953553);let a=(0,t.default)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);e.s(["LineChart",0,a],374433);let l=(0,t.default)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);e.s(["Code",0,l],657334);let n=(0,t.default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);e.s(["Database",0,n],649249);let s=(0,t.default)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);e.s(["Server",0,s],298421);let i=(0,t.default)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);e.s(["Cloud",0,i],546456);let o=(0,t.default)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);e.s(["Key",0,o],726331);let d=(0,t.default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,d],185849);let c=(0,t.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,c],582646)},447903,e=>{"use strict";let t=(0,e.i(369547).default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);e.s(["Bell",0,t],447903)},151670,465420,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["Calendar",0,r],151670);let a=(0,t.default)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);e.s(["Camera",0,a],465420)},966954,e=>{"use strict";let t=(0,e.i(369547).default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["default",0,t])},405328,905585,90610,17119,503680,742152,783462,759279,990032,916989,944598,758418,e=>{"use strict";var t=e.i(966954);e.s(["Image",()=>t.default],405328);var r=e.i(369547);let a=(0,r.default)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);e.s(["Film",0,a],905585);let l=(0,r.default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);e.s(["Music",0,l],90610);let n=(0,r.default)("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);e.s(["Headphones",0,n],17119);let s=(0,r.default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);e.s(["Mic",0,s],503680);let i=(0,r.default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);e.s(["Folder",0,i],742152);let o=(0,r.default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);e.s(["File",0,o],783462);let d=(0,r.default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,d],759279);let c=(0,r.default)("git-pull-request",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);e.s(["GitPullRequest",0,c],990032);let u=(0,r.default)("git-fork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);e.s(["GitFork",0,u],916989);let h=(0,r.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);e.s(["Bug",0,h],944598);let m=(0,r.default)("sliders-vertical",[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]]);e.s(["Sliders",0,m],758418)},117690,e=>{"use strict";let t=(0,e.i(369547).default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);e.s(["Palette",0,t],117690)},706303,49025,697878,113826,875707,606299,533575,539913,93608,82030,310,515147,21498,294723,145089,946599,638279,363823,263213,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("brush",[["path",{d:"m11 10 3 3",key:"fzmg1i"}],["path",{d:"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z",key:"p4q2r7"}],["path",{d:"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031",key:"wy6l02"}]]);e.s(["Brush",0,r],706303);let a=(0,t.default)("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);e.s(["Map",0,a],49025);let l=(0,t.default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);e.s(["MapPin",0,l],697878);let n=(0,t.default)("navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);e.s(["Navigation",0,n],113826);let s=(0,t.default)("compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]);e.s(["Compass",0,s],875707);let i=(0,t.default)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);e.s(["Wifi",0,i],606299);let o=(0,t.default)("tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);e.s(["Tablet",0,o],533575);let d=(0,t.default)("laptop",[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]);e.s(["Laptop",0,d],539913);let c=(0,t.default)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);e.s(["Cpu",0,c],93608);let u=(0,t.default)("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"}]]);e.s(["HardDrive",0,u],82030);let h=(0,t.default)("memory-stick",[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]]);e.s(["MemoryStick",0,h],310);let m=(0,t.default)("circuit-board",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M11 9h4a2 2 0 0 0 2-2V3",key:"1ve2rv"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"M7 21v-4a2 2 0 0 1 2-2h4",key:"1fwkro"}],["circle",{cx:"15",cy:"15",r:"2",key:"3i40o0"}]]);e.s(["CircuitBoard",0,m],515147);let p=(0,t.default)("radio",[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);e.s(["Radio",0,p],21498);let f=(0,t.default)("bluetooth",[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}]]);e.s(["Bluetooth",0,f],294723);let x=(0,t.default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);e.s(["Heart",0,x],145089);let g=(0,t.default)("thumbs-up",[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]]);e.s(["ThumbsUp",0,g],946599);let y=(0,t.default)("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);e.s(["Smile",0,y],638279);let v=(0,t.default)("coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);e.s(["Coffee",0,v],363823);let b=(0,t.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);e.s(["Rocket",0,b],263213)},947710,e=>{"use strict";let t=(0,e.i(369547).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],947710)},186122,347735,540983,102966,594168,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);e.s(["Award",0,r],186122);let a=(0,t.default)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);e.s(["Target",0,a],347735);let l=(0,t.default)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]);e.s(["Flag",0,l],540983);let n=(0,t.default)("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);e.s(["Crosshair",0,n],102966);let s=(0,t.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);e.s(["Layers",0,s],594168)},438970,e=>{"use strict";let t=(0,e.i(369547).default)("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);e.s(["Layout",0,t],438970)},274489,e=>{"use strict";var t=e.i(191788),r=e.i(240614),a=e.i(771573),l=e.i(127630),n=e.i(236597),s=e.i(587346),i=e.i(858013),o=e.i(576255),d=e.i(72538),c=e.i(953553),u=e.i(374433),h=e.i(243638),m=e.i(602889),p=e.i(875284),f=e.i(657334),x=e.i(649249),g=e.i(298421),y=e.i(546456),v=e.i(66311),b=e.i(835707),k=e.i(726331),j=e.i(185849),w=e.i(295746),N=e.i(582646),C=e.i(235090),M=e.i(447903),D=e.i(151670),S=e.i(756043),T=e.i(533538),E=e.i(450095),A=e.i(465420),R=e.i(405328),P=e.i(905585),L=e.i(90610),z=e.i(17119),I=e.i(503680),B=e.i(742152),O=e.i(783462),F=e.i(8820),q=e.i(687072),H=e.i(759279),V=e.i(172738),K=e.i(452945),U=e.i(990032),G=e.i(916989),W=e.i(944598),_=e.i(722896),Y=e.i(181474),$=e.i(758418),X=e.i(117690),J=e.i(706303),Z=e.i(49025),Q=e.i(697878),ee=e.i(113826),et=e.i(875707),er=e.i(606299),ea=e.i(482192),el=e.i(650128),en=e.i(533575),es=e.i(539913),ei=e.i(93608),eo=e.i(82030),ed=e.i(310),ec=e.i(515147),eu=e.i(21498),eh=e.i(294723),em=e.i(145089),ep=e.i(946599),ef=e.i(638279),ex=e.i(363823),eg=e.i(263213),ey=e.i(136646),ev=e.i(639131),eb=e.i(283303),ek=e.i(947710),ej=e.i(186122),ew=e.i(403299),eN=e.i(347735),eC=e.i(540983),eM=e.i(102966),eD=e.i(594168),eS=e.i(438970),eT=e.i(369547);let eE=(0,eT.default)("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),eA=(0,eT.default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),eR=(0,eT.default)("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]),eP=(0,eT.default)("kanban",[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]]);var eL=e.i(970597);let ez=(0,eT.default)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]),eI=(0,eT.default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),eB=(0,eT.default)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]),eO=(0,eT.default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),eF={Globe:r.Globe,Link:a.Link,ExternalLink:l.ExternalLink,Bookmark:n.Bookmark,Star:s.Star,Home:i.Home,FileText:o.FileText,BarChart3:d.BarChart3,PieChart:c.PieChart,LineChart:u.LineChart,Activity:h.Activity,Zap:m.Zap,Terminal:p.Terminal,Code:f.Code,Database:x.Database,Server:g.Server,Cloud:y.Cloud,Shield:v.Shield,Lock:b.Lock,Key:k.Key,User:j.User,Users:w.Users,Mail:N.Mail,MessageSquare:C.MessageSquare,Bell:M.Bell,Calendar:D.Calendar,Clock:S.Clock,Search:T.Search,Eye:E.Eye,Camera:A.Camera,Image:R.Image,Film:P.Film,Music:L.Music,Headphones:z.Headphones,Mic:I.Mic,Folder:B.Folder,File:O.File,Archive:F.Archive,Download:q.Download,Upload:H.Upload,GitBranch:V.GitBranch,GitCommit:K.GitCommit,GitPullRequest:U.GitPullRequest,GitFork:G.GitFork,Bug:W.Bug,Wrench:_.Wrench,Settings:Y.Settings,Sliders:$.Sliders,Palette:X.Palette,Brush:J.Brush,Map:Z.Map,MapPin:Q.MapPin,Navigation:ee.Navigation,Compass:et.Compass,Wifi:er.Wifi,Monitor:ea.Monitor,Smartphone:el.Smartphone,Tablet:en.Tablet,Laptop:es.Laptop,Cpu:ei.Cpu,HardDrive:eo.HardDrive,MemoryStick:ed.MemoryStick,CircuitBoard:ec.CircuitBoard,Radio:eu.Radio,Bluetooth:eh.Bluetooth,Heart:em.Heart,ThumbsUp:ep.ThumbsUp,Smile:ef.Smile,Coffee:ex.Coffee,Rocket:eg.Rocket,Flame:ey.Flame,Sun:ev.Sun,Moon:eb.Moon,Sparkles:ek.Sparkles,Award:ej.Award,Trophy:ew.Trophy,Target:eN.Target,Flag:eC.Flag,Crosshair:eM.Crosshair,Layers:eD.Layers,Layout:eS.Layout,Grid:eE,List:eA,Table:eR,Kanban:eP,Bot:eL.Bot,Brain:ez,Lightbulb:eI,GraduationCap:eB,BookOpen:eO};e.s(["default",0,({name:e,className:r,style:a})=>{let l=eF[e];return l?(0,t.createElement)(l,{className:r,style:a}):null},"getIcon",0,e=>eF[e]],274489)},524845,(e,t,r)=>{t.exports={name:"purplemux",version:"0.2.0",description:"Manage multiple Claude Code sessions from your browser",license:"MIT",author:"subicura",repository:{type:"git",url:"https://github.com/subicura/purplemux.git"},homepage:"https://github.com/subicura/purplemux",bugs:{url:"https://github.com/subicura/purplemux/issues"},keywords:["claude","terminal","multiplexer","tmux","claude-code"],engines:{node:">=20.0.0"},packageManager:"pnpm@10.32.1",main:"dist-electron/main.js",bin:{purplemux:"./bin/purplemux.js",pmux:"./bin/purplemux.js"},files:["bin/","dist/",".next/standalone/","src/config/tmux.conf"],scripts:{dev:"tsx watch server.ts",build:"next build && node scripts/post-build.js && tsup","build:server":"tsup","build:electron:main":"tsup --config electron/tsup.config.ts","build:electron":"next build && node scripts/post-build.js --electron && tsup && pnpm build:electron:main","dev:electron":"ELECTRON_DEV_URL=http://localhost:8022 electron .","pack:electron":"pnpm build:electron && electron-builder --mac","pack:electron:dev":"pnpm build:electron && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac -c.mac.identity=null -c.mac.notarize=false",start:"NODE_ENV=production tsx server.ts",lint:"eslint",test:"vitest run","test:watch":"vitest",ralph:"node ralph-loop.js",prepublishOnly:"rm -rf .next dist dist-electron && pnpm build",postinstall:"chmod +x node_modules/.pnpm/node-pty@*/node_modules/node-pty/prebuilds/*/spawn-helper 2>/dev/null; exit 0"},dependencies:{"@base-ui/react":"^1.3.0","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@tailwindcss/typography":"^0.5.19","@xterm/addon-clipboard":"^0.2.0","@xterm/addon-fit":"^0.11.0","@xterm/addon-unicode11":"^0.9.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","class-variance-authority":"^0.7.1",clsx:"^2.1.1",cmdk:"^1.1.1",dayjs:"^1.11.20",diff:"^9.0.0",diff2html:"^3.4.56","electron-updater":"^6.8.3","highlight.js":"^11.11.1",jose:"^6.2.2","lucide-react":"^1.7.0",motion:"^12.38.0",nanoid:"^5.1.7",next:"16.2.4","next-intl":"^4.9.1","next-themes":"^0.4.6","node-pty":"1.2.0-beta.12",pino:"^10.3.1","pino-pretty":"^13.1.3","pino-roll":"^4.0.0",react:"19.2.5","react-dom":"19.2.5","react-hotkeys-hook":"^5.2.4","react-icons":"^5.6.0","react-markdown":"^10.1.0","react-resizable-panels":"^4.10.0",recharts:"^3.8.0","rehype-highlight":"^7.0.2","rehype-raw":"^7.0.0","remark-gfm":"^4.0.1",sonner:"^2.0.7",swr:"^2.4.1","tailwind-merge":"^3.5.0","tw-animate-css":"^1.4.0","update-notifier":"^7.3.1","use-stick-to-bottom":"^1.1.3",vaul:"^1.1.2","web-push":"^3.6.7",ws:"^8.20.0",zod:"^4.3.6",zustand:"^5.0.12"},devDependencies:{"@electron/rebuild":"^4.0.3","@tailwindcss/postcss":"^4","@types/node":"^24.12.0","@types/react":"^19","@types/react-dom":"^19","@types/web-push":"^3.6.4","@types/ws":"^8.18.1",chalk:"^5.6.2",electron:"^41.1.1","electron-builder":"^26.8.1",eslint:"^9","eslint-config-next":"16.2.3",shadcn:"^4.1.2",tailwindcss:"^4",tsup:"^8.5.1",tsx:"^4.21.0",typescript:"^5.9.3",vitest:"^4.1.4"},pnpm:{onlyBuiltDependencies:["electron","node-pty"],overrides:{hono:">=4.12.14","@hono/node-server":">=1.19.13",lodash:">=4.18.0","@xmldom/xmldom":"^0.8.12","picomatch@>=2.0.0 <3.0.0":">=2.3.2","picomatch@>=4.0.0 <5.0.0":">=4.0.4"}}}},618890,211308,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,r],618890);let a=(0,t.default)("dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]]);e.s(["Dices",0,a],211308)},978517,e=>{"use strict";var t=e.i(966954);e.s(["ImageIcon",()=>t.default])},909289,124726,227384,208501,621504,458325,636989,170004,146341,59295,706277,269356,436254,468528,e=>{"use strict";let t;var r,a,l,n,s,i,o,d,c,u,h,m,p,f,x,g,y,v,b,k,j=e.i(369547);let w=(0,j.default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,w],909289);var N=e.i(391398);e.s(["default",0,e=>(0,N.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,N.jsx)("path",{fillRule:"evenodd",d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.667-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})})],124726),e.i(977848);var C=e.i(950438),M=e.i(648684),D=e.i(353533);e.i(350461);var S=e.i(191788);let T=S.forwardRef(function(e,t){let{className:r,render:a,orientation:l="horizontal",style:n,...s}=e;return(0,C.useRenderElement)("div",e,{state:{orientation:l},ref:t,props:[{role:"separator","aria-orientation":l},s]})});e.s(["Separator",0,T],227384);let E=(0,M.cva)("flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"*:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0",vertical:"flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0"}},defaultVariants:{orientation:"horizontal"}});e.s(["ButtonGroup",0,function({className:e,orientation:t,...r}){return(0,N.jsx)("div",{role:"group","data-slot":"button-group","data-orientation":t,className:(0,D.cn)(E({orientation:t}),e),...r})}],208501);var A=e.i(91762);let R=(0,M.cva)("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});e.s(["Field",0,function({className:e,orientation:t="vertical",...r}){return(0,N.jsx)("div",{role:"group","data-slot":"field","data-orientation":t,className:(0,D.cn)(R({orientation:t}),e),...r})},"FieldDescription",0,function({className:e,...t}){return(0,N.jsx)("p",{"data-slot":"field-description",className:(0,D.cn)("text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})},"FieldLabel",0,function({className:e,...t}){return(0,N.jsx)(A.Label,{"data-slot":"field-label",className:(0,D.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...t})}],621504),e.s([],48543),e.i(48543);var P=e.i(978054),L=e.i(95349),z=e.i(25104),I=e.i(931497),B=e.i(967529),O=e.i(475048),F=e.i(562912),q=e.i(810377),H=e.i(963934);let V=((r={}).checked="data-checked",r.unchecked="data-unchecked",r.disabled="data-disabled",r.readonly="data-readonly",r.required="data-required",r.valid="data-valid",r.invalid="data-invalid",r.touched="data-touched",r.dirty="data-dirty",r.filled="data-filled",r.focused="data-focused",r),K={checked:e=>e?{[V.checked]:""}:{[V.unchecked]:""},...q.transitionStatusMapping,...H.fieldValidityMapping};var U=e.i(147652),G=e.i(768802),W=e.i(405979),_=e.i(874519);function Y(e){let{render:t,className:r,style:a,state:l=F.EMPTY_OBJECT,props:n=F.EMPTY_ARRAY,refs:s=F.EMPTY_ARRAY,metadata:i,stateAttributesMapping:o,tag:d="div",...c}=e,{compositeProps:u,compositeRef:h}=(0,_.useCompositeItem)({metadata:i});return(0,C.useRenderElement)(d,e,{state:l,ref:[...s,h],props:[u,...n,c],stateAttributesMapping:o})}e.s(["CompositeItem",0,Y],458325);var $=e.i(663735),X=e.i(699140),J=e.i(630260),Z=e.i(540574),Q=e.i(112572);let ee=S.createContext(void 0);var et=e.i(579907);let er=S.createContext(void 0),ea=S.forwardRef(function(e,t){let{render:r,className:a,disabled:l=!1,readOnly:n=!1,required:s=!1,"aria-labelledby":i,value:o,inputRef:d,nativeButton:c=!1,id:u,style:h,...m}=e,p=S.useContext(ee),{disabled:f,readOnly:x,required:g,form:y,checkedValue:v,touched:b=!1,validation:k,name:j}=p??{},w=p?.setCheckedValue??F.NOOP,M=p?.setTouched??F.NOOP,D=p?.registerControlRef??F.NOOP,T=p?.registerInputRef??F.NOOP,{setDirty:E,validityData:A,setTouched:R,setFilled:q,state:H,disabled:V}=(0,$.useFieldRootContext)(),_=(0,X.useFieldItemContext)(),{labelId:et,getDescriptionProps:ea}=(0,J.useLabelableContext)(),el=V||_.disabled||f||l,en=x||n,es=g||s,ei=p?v===o:""===o,eo=S.useMemo(()=>(function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}})(o),[o]),ed=S.useRef(null),ec=S.useRef(null),eu=(0,z.useStableCallback)(e=>{e&&D(e,el)}),eh=(0,P.useMergedRefs)(d,ec,T);(0,L.useIsoLayoutEffect)(()=>{ec.current?.checked&&q(!0)},[q]),(0,L.useIsoLayoutEffect)(()=>{if(ec.current){if(el&&ei)return void T(null);ed.current&&D(ed.current,el),T(ec.current)}},[ei,el,D,T]);let em=(0,U.useBaseUiId)(),ep=(0,Q.useLabelableId)({id:u,implicit:!1,controlRef:ed}),ef=c?void 0:ep,ex={role:"radio","aria-checked":ei,"aria-required":es||void 0,"aria-readonly":en||void 0,"aria-labelledby":(0,Z.useAriaLabelledBy)(i,et,ec,!c,ef),[W.ACTIVE_COMPOSITE_ITEM]:ei?"":void 0,id:c?ep:em,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){e.defaultPrevented||el||en||(e.preventDefault(),ec.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey})))},onFocus(e){e.defaultPrevented||el||en||!b||(ec.current?.click(),M(!1))}},{getButtonProps:eg,buttonRef:ey}=(0,G.useButton)({disabled:el,native:c}),ev={type:"radio",ref:eh,form:y,id:ef,name:j,tabIndex:-1,style:j?I.visuallyHiddenInput:I.visuallyHidden,"aria-hidden":!0,...void 0!==o?{value:eo}:F.EMPTY_OBJECT,disabled:el,checked:ei,required:es,readOnly:en,onChange(e){if(e.nativeEvent.defaultPrevented||el||en||void 0===o)return;let t=(0,B.createChangeEventDetails)(O.REASONS.none,e.nativeEvent);t.isCanceled||(R(!0),E(o!==A.initialValue),q(!0),w(o,t))},onFocus(){ed.current?.focus()}},eb=S.useMemo(()=>({...H,required:es,disabled:el,readOnly:en,checked:ei}),[H,el,en,ei,es]),ek=void 0!==p,ej=[t,ed,ey,eu],ew=[ex,ea,k?.getValidationProps??F.EMPTY_OBJECT,m,eg],eN=(0,C.useRenderElement)("span",e,{enabled:!ek,state:eb,ref:ej,props:ew,stateAttributesMapping:K});return(0,N.jsxs)(er.Provider,{value:eb,children:[ek?(0,N.jsx)(Y,{tag:"span",render:r,className:a,style:h,state:eb,refs:ej,props:ew,stateAttributesMapping:K}):eN,(0,N.jsx)("input",{...ev,suppressHydrationWarning:!0})]})});var el=e.i(118303),en=e.i(994142);let es=S.forwardRef(function(e,t){let{render:r,className:a,style:l,keepMounted:n=!1,...s}=e,i=function(){let e=S.useContext(er);if(void 0===e)throw Error((0,et.default)(52));return e}(),o=i.checked,{mounted:d,transitionStatus:c,setMounted:u}=(0,en.useTransitionStatus)(o),h={...i,transitionStatus:c},m=S.useRef(null),p=(0,C.useRenderElement)("span",e,{ref:[t,m],state:h,props:s,stateAttributesMapping:K});return((0,el.useOpenChangeComplete)({open:o,ref:m,onComplete(){o||u(!1)}}),n||d)?p:null});e.s(["Indicator",0,es,"Root",0,ea],648646);var ei=e.i(648646),ei=ei,eo=e.i(176955),ed=e.i(772610),ec=e.i(317575),eu=e.i(66149),eh=e.i(560023),em=e.i(935942),ep=e.i(508430),ef=e.i(138252);let ex=[ec.SHIFT],eg=S.forwardRef(function(e,t){let{render:r,className:a,disabled:l,readOnly:n,required:s,onValueChange:i,value:o,defaultValue:d,form:c,name:u,inputRef:h,id:m,style:p,...f}=e,{setTouched:x,setFocused:g,shouldValidateOnChange:y,validationMode:v,name:b,disabled:k,state:j,validation:w,setDirty:C,setFilled:M,validityData:D}=(0,$.useFieldRootContext)(),{labelId:T}=(0,J.useLabelableContext)(),{clearErrors:E}=(0,ep.useFormContext)(),A=(0,em.useFieldsetRootContext)(!0),R=k||l,P=b??u,L=(0,U.useBaseUiId)(m),[I,B]=(0,eo.useControlled)({controlled:o,default:d,name:"RadioGroup",state:"value"}),O=(0,z.useStableCallback)(i),F=(0,z.useStableCallback)((e,t)=>{O(e,t),t.isCanceled||B(e)}),q=S.useRef(null),V=S.useRef(null),K=S.useRef(null);function G(e){let t;return h&&("function"==typeof h?t=h(e):h.current=e),V.current=e,w.inputRef.current=e,t}let W=(0,z.useStableCallback)((e,t=!1)=>{if(e){if(t){q.current===e&&(q.current=null);return}null==q.current&&(q.current=e)}}),_=(0,z.useStableCallback)(e=>{if(!e||e.disabled)return;K.current||(K.current=e);let t=V.current;if(e.checked||null==t||t.disabled)return G(e)}),Y=(0,z.useStableCallback)(()=>I??null);(0,eh.useRegisterFieldControl)(q,{id:L,value:I,getValue:Y}),(0,ef.useValueChanged)(I,()=>{E(P),C(I!==D.initialValue),M(null!=I),y()?w.commit(I):w.commit(I,!0);let e=K.current;null==I&&e&&!e.disabled&&G(e)});let[X,Z]=S.useState(!1),Q=f["aria-labelledby"]??T??A?.legendId,et={...j,disabled:R??!1,required:s??!1,readOnly:n??!1},er=S.useMemo(()=>({...j,checkedValue:I,disabled:R,form:c,validation:w,name:P,onValueChange:O,readOnly:n,registerControlRef:W,registerInputRef:_,required:s,setCheckedValue:F,setTouched:Z,touched:X}),[I,R,c,w,j,P,O,n,W,_,s,F,Z,X]);return(0,N.jsx)(ee.Provider,{value:er,children:(0,N.jsx)(eu.CompositeRoot,{render:r,className:a,style:p,state:et,props:[{role:"radiogroup","aria-required":s||void 0,"aria-disabled":R||void 0,"aria-readonly":n||void 0,"aria-labelledby":Q,onFocus(){g(!0)},onBlur(e){(0,ed.contains)(e.currentTarget,e.relatedTarget)||(x(!0),g(!1),"onBlur"===v&&w.commit(I))},onKeyDownCapture(e){e.key.startsWith("Arrow")&&(x(!0),Z(!0),g(!0))}},w.getValidationProps,f],refs:[t],stateAttributesMapping:H.fieldValidityMapping,enableHomeAndEndKeys:!1,modifierKeys:ex})})});e.s(["RadioGroup",0,function({className:e,...t}){return(0,N.jsx)(eg,{"data-slot":"radio-group",className:(0,D.cn)("grid w-full gap-2",e),...t})},"RadioGroupItem",0,function({className:e,...t}){return(0,N.jsx)(ei.Root,{"data-slot":"radio-group-item",className:(0,D.cn)("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...t,children:(0,N.jsx)(ei.Indicator,{"data-slot":"radio-group-indicator",className:"flex size-4 items-center justify-center",children:(0,N.jsx)("span",{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground"})})})}],636989),e.s(["TOAST_POSITIONS",0,["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"]],170004);var ey=e.i(352819),ev=e.i(745725),eb=e.i(730943);function ek(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,S.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let ej="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ew(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function eN(e){return"nodeType"in e}function eC(e){var t,r;return e?ew(e)?e:eN(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function eM(e){let{Document:t}=eC(e);return e instanceof t}function eD(e){return!ew(e)&&e instanceof eC(e).HTMLElement}function eS(e){return e instanceof eC(e).SVGElement}function eT(e){return e?ew(e)?e.document:eN(e)?eM(e)?e:eD(e)||eS(e)?e.ownerDocument:document:document:document}let eE=ej?S.useLayoutEffect:S.useEffect;function eA(e){let t=(0,S.useRef)(e);return eE(()=>{t.current=e}),(0,S.useCallback)(function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return null==t.current?void 0:t.current(...r)},[])}function eR(){let e=(0,S.useRef)(null);return[(0,S.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,S.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function eP(e,t){void 0===t&&(t=[e]);let r=(0,S.useRef)(e);return eE(()=>{r.current!==e&&(r.current=e)},t),r}function eL(e,t){let r=(0,S.useRef)();return(0,S.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...t])}function ez(e){let t=eA(e),r=(0,S.useRef)(null),a=(0,S.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,a]}function eI(e){let t=(0,S.useRef)();return(0,S.useEffect)(()=>{t.current=e},[e]),t.current}let eB={};function eO(e,t){return(0,S.useMemo)(()=>{if(t)return t;let r=null==eB[e]?0:eB[e]+1;return eB[e]=r,e+"-"+r},[e,t])}function eF(e){return function(t){for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return a.reduce((t,r)=>{for(let[a,l]of Object.entries(r)){let r=t[a];null!=r&&(t[a]=r+e*l)}return t},{...t})}}let eq=eF(1),eH=eF(-1);function eV(e){if(!e)return!1;let{KeyboardEvent:t}=eC(e.target);return t&&e instanceof t}function eK(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=eC(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let eU=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[eU.Translate.toString(e),eU.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:a}=e;return t+" "+r+"ms "+a}}}),eG="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function eW(e){return e.matches(eG)?e:e.querySelector(eG)}e.s(["CSS",0,eU,"add",0,eq,"canUseDOM",0,ej,"findFirstFocusableNode",0,eW,"getEventCoordinates",0,eK,"getOwnerDocument",0,eT,"getWindow",0,eC,"isDocument",0,eM,"isHTMLElement",0,eD,"isKeyboardEvent",0,eV,"isNode",0,eN,"isSVGElement",0,eS,"isWindow",0,ew,"subtract",0,eH,"useCombinedRefs",0,ek,"useEvent",0,eA,"useInterval",0,eR,"useIsomorphicLayoutEffect",0,eE,"useLatestValue",0,eP,"useLazyMemo",0,eL,"useNodeRef",0,ez,"usePrevious",0,eI,"useUniqueId",0,eO],146341);let e_={display:"none"};function eY(e){let{id:t,value:r}=e;return S.default.createElement("div",{id:t,style:e_},r)}function e$(e){let{id:t,announcement:r,ariaLiveType:a="assertive"}=e;return S.default.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":a,"aria-atomic":!0},r)}let eX=(0,S.createContext)(null),eJ={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},eZ={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function eQ(e){var t;let r,{announcements:a=eZ,container:l,hiddenTextDescribedById:n,screenReaderInstructions:s=eJ}=e,{announce:i,announcement:o}=function(){let[e,t]=(0,S.useState)("");return{announce:(0,S.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),d=eO("DndLiveRegion"),[c,u]=(0,S.useState)(!1);if((0,S.useEffect)(()=>{u(!0)},[]),t=(0,S.useMemo)(()=>({onDragStart(e){let{active:t}=e;i(a.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;a.onDragMove&&i(a.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;i(a.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;i(a.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;i(a.onDragCancel({active:t,over:r}))}}),[i,a]),r=(0,S.useContext)(eX),(0,S.useEffect)(()=>{if(!r)throw Error("useDndMonitor must be used within a children of <DndContext>");return r(t)},[t,r]),!c)return null;let h=S.default.createElement(S.default.Fragment,null,S.default.createElement(eY,{id:n,value:s.draggable}),S.default.createElement(e$,{id:d,announcement:o}));return l?(0,eb.createPortal)(h,l):h}function e0(){}function e1(e,t){return(0,S.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function e2(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,S.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}(a=h||(h={})).DragStart="dragStart",a.DragMove="dragMove",a.DragEnd="dragEnd",a.DragCancel="dragCancel",a.DragOver="dragOver",a.RegisterDroppable="registerDroppable",a.SetDroppableDisabled="setDroppableDisabled",a.UnregisterDroppable="unregisterDroppable";let e3=Object.freeze({x:0,y:0});function e5(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function e4(e,t){let{data:{value:r}}=e,{data:{value:a}}=t;return r-a}function e6(e,t){let{data:{value:r}}=e,{data:{value:a}}=t;return a-r}function e8(e){let{left:t,top:r,height:a,width:l}=e;return[{x:t,y:r},{x:t+l,y:r},{x:t,y:r+a},{x:t+l,y:r+a}]}function e9(e,t){if(!e||0===e.length)return null;let[r]=e;return t?r[t]:r}function e7(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}let te=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:a}=e,l=e7(t,t.left,t.top),n=[];for(let e of a){let{id:t}=e,a=r.get(t);if(a){let r=e5(e7(a),l);n.push({id:t,data:{droppableContainer:e,value:r}})}}return n.sort(e4)},tt=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:a}=e,l=[];for(let e of a){let{id:a}=e,n=r.get(a);if(n){let r=function(e,t){let r=Math.max(t.top,e.top),a=Math.max(t.left,e.left),l=Math.min(t.left+t.width,e.left+e.width),n=Math.min(t.top+t.height,e.top+e.height);if(a<l&&r<n){let s=t.width*t.height,i=e.width*e.height,o=(l-a)*(n-r);return Number((o/(s+i-o)).toFixed(4))}return 0}(n,t);r>0&&l.push({id:a,data:{droppableContainer:e,value:r}})}}return l.sort(e6)};function tr(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:e3}let ta=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return r.reduce((e,t)=>({...e,top:e.top+ +t.y,bottom:e.bottom+ +t.y,left:e.left+ +t.x,right:e.right+ +t.x}),{...e})},tl={ignoreTransform:!1};function tn(e,t){void 0===t&&(t=tl);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:a}=eC(e).getComputedStyle(e);t&&(r=function(e,t,r){let a=function(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!a)return e;let{scaleX:l,scaleY:n,x:s,y:i}=a,o=e.left-s-(1-l)*parseFloat(r),d=e.top-i-(1-n)*parseFloat(r.slice(r.indexOf(" ")+1)),c=l?e.width/l:e.width,u=n?e.height/n:e.height;return{width:c,height:u,top:d,right:o+c,bottom:d+u,left:o}}(r,t,a))}let{top:a,left:l,width:n,height:s,bottom:i,right:o}=r;return{top:a,left:l,width:n,height:s,bottom:i,right:o}}function ts(e){return tn(e,{ignoreTransform:!0})}function ti(e,t){let r=[];return e?function a(l){var n,s;let i;if(null!=t&&r.length>=t||!l)return r;if(eM(l)&&null!=l.scrollingElement&&!r.includes(l.scrollingElement))return r.push(l.scrollingElement),r;if(!eD(l)||eS(l)||r.includes(l))return r;let o=eC(e).getComputedStyle(l);return(l!==e&&(void 0===(n=o)&&(n=eC(l).getComputedStyle(l)),i=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(e=>{let t=n[e];return"string"==typeof t&&i.test(t)}))&&r.push(l),void 0===(s=o)&&(s=eC(l).getComputedStyle(l)),"fixed"===s.position)?r:a(l.parentNode)}(e):r}function to(e){let[t]=ti(e,1);return null!=t?t:null}function td(e){return ej&&e?ew(e)?e:eN(e)?eM(e)||e===eT(e).scrollingElement?window:eD(e)?e:null:null:null}function tc(e){return ew(e)?e.scrollX:e.scrollLeft}function tu(e){return ew(e)?e.scrollY:e.scrollTop}function th(e){return{x:tc(e),y:tu(e)}}function tm(e){return!!ej&&!!e&&e===document.scrollingElement}function tp(e){let t={x:0,y:0},r=tm(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},a={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},l=e.scrollTop<=t.y,n=e.scrollLeft<=t.x;return{isTop:l,isLeft:n,isBottom:e.scrollTop>=a.y,isRight:e.scrollLeft>=a.x,maxScroll:a,minScroll:t}}(l=m||(m={}))[l.Forward=1]="Forward",l[l.Backward=-1]="Backward";let tf={x:.2,y:.2};function tx(e){return e.reduce((e,t)=>eq(e,th(t)),e3)}let tg=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+tc(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+tu(t),0)}]];class ty{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=ti(t),a=tx(r);for(const[t,l,n]of(this.rect={...e},this.width=e.width,this.height=e.height,tg))for(const e of l)Object.defineProperty(this,e,{get:()=>{let l=n(r),s=a[t]-l;return this.rect[e]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class tv{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,r){var a;null==(a=this.target)||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function tb(e,t){let r=Math.abs(e.x),a=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+a**2)>t:"x"in t&&"y"in t?r>t.x&&a>t.y:"x"in t?r>t.x:"y"in t&&a>t.y}function tk(e){e.preventDefault()}function tj(e){e.stopPropagation()}(n=p||(p={})).Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange",(s=f||(f={})).Space="Space",s.Down="ArrowDown",s.Right="ArrowRight",s.Left="ArrowLeft",s.Up="ArrowUp",s.Esc="Escape",s.Enter="Enter",s.Tab="Tab";let tw={start:[f.Space,f.Enter],cancel:[f.Esc],end:[f.Space,f.Enter,f.Tab]},tN=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case f.Right:return{...r,x:r.x+25};case f.Left:return{...r,x:r.x-25};case f.Down:return{...r,y:r.y+25};case f.Up:return{...r,y:r.y-25}}};class tC{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new tv(eT(t)),this.windowListeners=new tv(eC(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(p.Resize,this.handleCancel),this.windowListeners.add(p.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(p.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&function(e,t){if(void 0===t&&(t=tn),!e)return;let{top:r,left:a,bottom:l,right:n}=t(e);to(e)&&(l<=0||n<=0||r>=window.innerHeight||a>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(r),t(e3)}handleKeyDown(e){if(eV(e)){let{active:t,context:r,options:a}=this.props,{keyboardCodes:l=tw,coordinateGetter:n=tN,scrollBehavior:s="smooth"}=a,{code:i}=e;if(l.end.includes(i))return void this.handleEnd(e);if(l.cancel.includes(i))return void this.handleCancel(e);let{collisionRect:o}=r.current,d=o?{x:o.left,y:o.top}:e3;this.referenceCoordinates||(this.referenceCoordinates=d);let c=n(e,{active:t,context:r.current,currentCoordinates:d});if(c){let t=eH(c,d),a={x:0,y:0},{scrollableAncestors:l}=r.current;for(let r of l){let l=e.code,{isTop:n,isRight:i,isLeft:o,isBottom:d,maxScroll:u,minScroll:h}=tp(r),m=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:r,right:a,bottom:l}=e.getBoundingClientRect();return{top:t,left:r,right:a,bottom:l,width:e.clientWidth,height:e.clientHeight}}(r),p={x:Math.min(l===f.Right?m.right-m.width/2:m.right,Math.max(l===f.Right?m.left:m.left+m.width/2,c.x)),y:Math.min(l===f.Down?m.bottom-m.height/2:m.bottom,Math.max(l===f.Down?m.top:m.top+m.height/2,c.y))},x=l===f.Right&&!i||l===f.Left&&!o,g=l===f.Down&&!d||l===f.Up&&!n;if(x&&p.x!==c.x){let e=r.scrollLeft+t.x,n=l===f.Right&&e<=u.x||l===f.Left&&e>=h.x;if(n&&!t.y)return void r.scrollTo({left:e,behavior:s});n?a.x=r.scrollLeft-e:a.x=l===f.Right?r.scrollLeft-u.x:r.scrollLeft-h.x,a.x&&r.scrollBy({left:-a.x,behavior:s});break}if(g&&p.y!==c.y){let e=r.scrollTop+t.y,n=l===f.Down&&e<=u.y||l===f.Up&&e>=h.y;if(n&&!t.x)return void r.scrollTo({top:e,behavior:s});n?a.y=r.scrollTop-e:a.y=l===f.Down?r.scrollTop-u.y:r.scrollTop-h.y,a.y&&r.scrollBy({top:-a.y,behavior:s});break}}this.handleMove(e,eq(eH(c,this.referenceCoordinates),a))}}}handleMove(e,t){let{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function tM(e){return!!(e&&"distance"in e)}function tD(e){return!!(e&&"delay"in e)}tC.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:a=tw,onActivation:l}=t,{active:n}=r,{code:s}=e.nativeEvent;if(a.start.includes(s)){let t=n.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==l||l({event:e.nativeEvent}),!0)}return!1}}];class tS{constructor(e,t,r){var a;void 0===r&&(r=function(e){let{EventTarget:t}=eC(e);return e instanceof t?e:eT(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:l}=e,{target:n}=l;this.props=e,this.events=t,this.document=eT(n),this.documentListeners=new tv(this.document),this.listeners=new tv(r),this.windowListeners=new tv(eC(n)),this.initialCoordinates=null!=(a=eK(l))?a:e3,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(p.Resize,this.handleCancel),this.windowListeners.add(p.DragStart,tk),this.windowListeners.add(p.VisibilityChange,this.handleCancel),this.windowListeners.add(p.ContextMenu,tk),this.documentListeners.add(p.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(tD(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(tM(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:r,onPending:a}=this.props;a(r,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(p.Click,tj,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(p.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:r,initialCoordinates:a,props:l}=this,{onMove:n,options:{activationConstraint:s}}=l;if(!a)return;let i=null!=(t=eK(e))?t:e3,o=eH(a,i);if(!r&&s){if(tM(s)){if(null!=s.tolerance&&tb(o,s.tolerance))return this.handleCancel();if(tb(o,s.distance))return this.handleStart()}return tD(s)&&tb(o,s.tolerance)?this.handleCancel():void this.handlePending(s,o)}e.cancelable&&e.preventDefault(),n(i)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===f.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let tT={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class tE extends tS{constructor(e){const{event:t}=e;super(e,tT,eT(t.target))}}tE.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:a}=t;return!!r.isPrimary&&0===r.button&&(null==a||a({event:r}),!0)}}];(i=x||(x={}))[i.RightClick=2]="RightClick";(o=g||(g={}))[o.Pointer=0]="Pointer",o[o.DraggableRect=1]="DraggableRect",(d=y||(y={}))[d.TreeOrder=0]="TreeOrder",d[d.ReversedTreeOrder=1]="ReversedTreeOrder";let tA={x:{[m.Backward]:!1,[m.Forward]:!1},y:{[m.Backward]:!1,[m.Forward]:!1}};(c=v||(v={}))[c.Always=0]="Always",c[c.BeforeDragging=1]="BeforeDragging",c[c.WhileDragging=2]="WhileDragging",(b||(b={})).Optimized="optimized";let tR=new Map;function tP(e,t){return eL(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function tL(e){let{callback:t,disabled:r}=e,a=eA(t),l=(0,S.useMemo)(()=>{if(r||"u"<typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(a)},[r]);return(0,S.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}function tz(e){return new ty(tn(e),e)}function tI(e,t,r){void 0===t&&(t=tz);let[a,l]=(0,S.useState)(null);function n(){l(a=>{if(!e)return null;if(!1===e.isConnected){var l;return null!=(l=null!=a?a:r)?l:null}let n=t(e);return JSON.stringify(a)===JSON.stringify(n)?a:n})}let s=function(e){let{callback:t,disabled:r}=e,a=eA(t),l=(0,S.useMemo)(()=>{if(r||"u"<typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(a)},[a,r]);return(0,S.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}({callback(t){if(e)for(let r of t){let{type:t,target:a}=r;if("childList"===t&&a instanceof HTMLElement&&a.contains(e)){n();break}}}}),i=tL({callback:n});return eE(()=>{n(),e?(null==i||i.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==i||i.disconnect(),null==s||s.disconnect())},[e]),a}let tB=[];function tO(e,t){void 0===t&&(t=[]);let r=(0,S.useRef)(null);return(0,S.useEffect)(()=>{r.current=null},t),(0,S.useEffect)(()=>{let t=e!==e3;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?eH(e,r.current):e3}function tF(e){return(0,S.useMemo)(()=>{let t,r;return e?(t=e.innerWidth,{top:0,left:0,right:t,bottom:r=e.innerHeight,width:t,height:r}):null},[e])}let tq=[],tH=[{sensor:tE,options:{}},{sensor:tC,options:{}}],tV={current:{}},tK={draggable:{measure:ts},droppable:{measure:ts,strategy:v.WhileDragging,frequency:b.Optimized},dragOverlay:{measure:tn}};class tU extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}let tG={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new tU,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:e0},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:tK,measureDroppableContainers:e0,windowRect:null,measuringScheduled:!1},tW={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:e0,draggableNodes:new Map,over:null,measureDroppableContainers:e0},t_=(0,S.createContext)(tW),tY=(0,S.createContext)(tG);function t$(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new tU}}}function tX(e,t){switch(t.type){case h.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case h.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case h.DragEnd:case h.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case h.RegisterDroppable:{let{element:r}=t,{id:a}=r,l=new tU(e.droppable.containers);return l.set(a,r),{...e,droppable:{...e.droppable,containers:l}}}case h.SetDroppableDisabled:{let{id:r,key:a,disabled:l}=t,n=e.droppable.containers.get(r);if(!n||a!==n.key)return e;let s=new tU(e.droppable.containers);return s.set(r,{...n,disabled:l}),{...e,droppable:{...e.droppable,containers:s}}}case h.UnregisterDroppable:{let{id:r,key:a}=t,l=e.droppable.containers.get(r);if(!l||a!==l.key)return e;let n=new tU(e.droppable.containers);return n.delete(r),{...e,droppable:{...e.droppable,containers:n}}}default:return e}}function tJ(e){let{disabled:t}=e,{active:r,activatorEvent:a,draggableNodes:l}=(0,S.useContext)(t_),n=eI(a),s=eI(null==r?void 0:r.id);return(0,S.useEffect)(()=>{if(!t&&!a&&n&&null!=s){if(!eV(n)||document.activeElement===n.target)return;let e=l.get(s);if(!e)return;let{activatorNode:t,node:r}=e;(t.current||r.current)&&requestAnimationFrame(()=>{for(let e of[t.current,r.current]){if(!e)continue;let t=eW(e);if(t){t.focus();break}}})}},[a,t,l,s,n]),null}let tZ=(0,S.createContext)({...e3,scaleX:1,scaleY:1});(u=k||(k={}))[u.Uninitialized=0]="Uninitialized",u[u.Initializing=1]="Initializing",u[u.Initialized=2]="Initialized";let tQ=(0,S.memo)(function(e){var t,r,a,l,n,s,i,o;let d,c,u,p,f,x,b,j,{id:w,accessibility:N,autoScroll:C=!0,children:M,sensors:D=tH,collisionDetection:T=tt,measuring:E,modifiers:A,...R}=e,[P,L]=(0,S.useReducer)(tX,void 0,t$),[z,I]=function(){let[e]=(0,S.useState)(()=>new Set),t=(0,S.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,S.useCallback)(t=>{let{type:r,event:a}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,a)})},[e]),t]}(),[B,O]=(0,S.useState)(k.Uninitialized),F=B===k.Initialized,{draggable:{active:q,nodes:H,translate:V},droppable:{containers:K}}=P,U=null!=q?H.get(q):null,G=(0,S.useRef)({initial:null,translated:null}),W=(0,S.useMemo)(()=>{var e;return null!=q?{id:q,data:null!=(e=null==U?void 0:U.data)?e:tV,rect:G}:null},[q,U]),_=(0,S.useRef)(null),[Y,$]=(0,S.useState)(null),[X,J]=(0,S.useState)(null),Z=eP(R,Object.values(R)),Q=eO("DndDescribedBy",w),ee=(0,S.useMemo)(()=>K.getEnabled(),[K]),et=(0,S.useMemo)(()=>({draggable:{...tK.draggable,...null==E?void 0:E.draggable},droppable:{...tK.droppable,...null==E?void 0:E.droppable},dragOverlay:{...tK.dragOverlay,...null==E?void 0:E.dragOverlay}}),[null==E?void 0:E.draggable,null==E?void 0:E.droppable,null==E?void 0:E.dragOverlay]),{droppableRects:er,measureDroppableContainers:ea,measuringScheduled:el}=function(e,t){let{dragging:r,dependencies:a,config:l}=t,[n,s]=(0,S.useState)(null),{frequency:i,measure:o,strategy:d}=l,c=(0,S.useRef)(e),u=function(){switch(d){case v.Always:return!1;case v.BeforeDragging:return r;default:return!r}}(),h=eP(u),m=(0,S.useCallback)(function(e){void 0===e&&(e=[]),h.current||s(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),p=(0,S.useRef)(null),f=eL(t=>{if(u&&!r)return tR;if(!t||t===tR||c.current!==e||null!=n){let t=new Map;for(let r of e){if(!r)continue;if(n&&n.length>0&&!n.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}let e=r.node.current,a=e?new ty(o(e),e):null;r.rect.current=a,a&&t.set(r.id,a)}return t}return t},[e,n,r,u,o]);return(0,S.useEffect)(()=>{c.current=e},[e]),(0,S.useEffect)(()=>{u||m()},[r,u]),(0,S.useEffect)(()=>{n&&n.length>0&&s(null)},[JSON.stringify(n)]),(0,S.useEffect)(()=>{u||"number"!=typeof i||null!==p.current||(p.current=setTimeout(()=>{m(),p.current=null},i))},[i,u,m,...a]),{droppableRects:f,measureDroppableContainers:m,measuringScheduled:null!=n}}(ee,{dragging:F,dependencies:[V.x,V.y],config:et.droppable}),en=eL(e=>{var t;return null==q?null:null!=(t=null!=f?f:e)?t:null},[f=(p=null!=q?H.get(q):void 0)?p.node.current:null,q]),es=(0,S.useMemo)(()=>X?eK(X):null,[X]),ei=(d=(null==Y?void 0:Y.autoScrollEnabled)===!1,c="object"==typeof C?!1===C.enabled:!1===C,u=F&&!d&&!c,"object"==typeof C?{...C,enabled:u}:{enabled:u}),eo=tP(en,et.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:a,config:l=!0}=e,n=(0,S.useRef)(!1),{x:s,y:i}="boolean"==typeof l?{x:l,y:l}:l;eE(()=>{if(!s&&!i||!t){n.current=!1;return}if(n.current||!a)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let l=tr(r(e),a);if(s||(l.x=0),i||(l.y=0),n.current=!0,Math.abs(l.x)>0||Math.abs(l.y)>0){let t=to(e);t&&t.scrollBy({top:l.y,left:l.x})}},[t,s,i,a,r])}({activeNode:null!=q?H.get(q):null,config:ei.layoutShiftCompensation,initialRect:eo,measure:et.draggable.measure});let ed=tI(en,et.draggable.measure,eo),ec=tI(en?en.parentElement:null),eu=(0,S.useRef)({activatorEvent:null,active:null,activeNode:en,collisionRect:null,collisions:null,droppableRects:er,draggableNodes:H,draggingNode:null,draggingNodeRect:null,droppableContainers:K,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eh=K.getNodeFor(null==(t=eu.current.over)?void 0:t.id),em=function(e){let{measure:t}=e,[r,a]=(0,S.useState)(null),l=tL({callback:(0,S.useCallback)(e=>{for(let{target:r}of e)if(eD(r)){a(e=>{let a=t(r);return e?{...e,width:a.width,height:a.height}:a});break}},[t])}),[n,s]=ez((0,S.useCallback)(e=>{let r=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return eD(t)?t:e}(e);null==l||l.disconnect(),r&&(null==l||l.observe(r)),a(r?t(r):null)},[t,l]));return(0,S.useMemo)(()=>({nodeRef:n,rect:r,setRef:s}),[r,n,s])}({measure:et.dragOverlay.measure}),ep=null!=(r=em.nodeRef.current)?r:en,ef=F?null!=(a=em.rect)?a:ed:null,ex=!!(em.nodeRef.current&&em.rect),eg=(x=tP(n=ex?null:ed),tr(n,x)),ey=tF(ep?eC(ep):null),ev=(s=F?null!=eh?eh:en:null,b=(0,S.useRef)(s),j=eL(e=>s?e&&e!==tB&&s&&b.current&&s.parentNode===b.current.parentNode?e:ti(s):tB,[s]),(0,S.useEffect)(()=>{b.current=s},[s]),j),ek=function(e,t){void 0===t&&(t=tn);let[r]=e,a=tF(r?eC(r):null),[l,n]=(0,S.useState)(tq);function s(){n(()=>e.length?e.map(e=>tm(e)?a:new ty(t(e),e)):tq)}let i=tL({callback:s});return eE(()=>{null==i||i.disconnect(),s(),e.forEach(e=>null==i?void 0:i.observe(e))},[e]),l}(ev),ew=function(e,t){let{transform:r,...a}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...a}),r):r}(A,{transform:{x:V.x-eg.x,y:V.y-eg.y,scaleX:1,scaleY:1},activatorEvent:X,active:W,activeNodeRect:ed,containerNodeRect:ec,draggingNodeRect:ef,over:eu.current.over,overlayNodeRect:em.rect,scrollableAncestors:ev,scrollableAncestorRects:ek,windowRect:ey}),eN=es?eq(es,V):null,eM=function(e){let[t,r]=(0,S.useState)(null),a=(0,S.useRef)(e),l=(0,S.useCallback)(e=>{let t=td(e.target);t&&r(e=>e?(e.set(t,th(t)),new Map(e)):null)},[]);return(0,S.useEffect)(()=>{let t=a.current;if(e!==t){n(t);let s=e.map(e=>{let t=td(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,th(t)]):null}).filter(e=>null!=e);r(s.length?new Map(s):null),a.current=e}return()=>{n(e),n(t)};function n(e){e.forEach(e=>{let t=td(e);null==t||t.removeEventListener("scroll",l)})}},[l,e]),(0,S.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>eq(e,t),e3):tx(e):e3,[e,t])}(ev),eS=tO(eM),eT=tO(eM,[ed]),eA=eq(ew,eS),eB=ef?ta(ef,ew):null,eF=W&&eB?T({active:W,collisionRect:eB,droppableRects:er,droppableContainers:ee,pointerCoordinates:eN}):null,eH=e9(eF,"id"),[eV,eU]=(0,S.useState)(null),eG=(i=ex?ew:eq(ew,eT),o=null!=(l=null==eV?void 0:eV.rect)?l:null,{...i,scaleX:o&&ed?o.width/ed.width:1,scaleY:o&&ed?o.height/ed.height:1}),eW=(0,S.useRef)(null),e_=(0,S.useCallback)((e,t)=>{let{sensor:r,options:a}=t;if(null==_.current)return;let l=H.get(_.current);if(!l)return;let n=e.nativeEvent,s=new r({active:_.current,activeNode:l,event:n,options:a,context:eu,onAbort(e){if(!H.get(e))return;let{onDragAbort:t}=Z.current,r={id:e};null==t||t(r),z({type:"onDragAbort",event:r})},onPending(e,t,r,a){if(!H.get(e))return;let{onDragPending:l}=Z.current,n={id:e,constraint:t,initialCoordinates:r,offset:a};null==l||l(n),z({type:"onDragPending",event:n})},onStart(e){let t=_.current;if(null==t)return;let r=H.get(t);if(!r)return;let{onDragStart:a}=Z.current,l={activatorEvent:n,active:{id:t,data:r.data,rect:G}};(0,eb.unstable_batchedUpdates)(()=>{null==a||a(l),O(k.Initializing),L({type:h.DragStart,initialCoordinates:e,active:t}),z({type:"onDragStart",event:l}),$(eW.current),J(n)})},onMove(e){L({type:h.DragMove,coordinates:e})},onEnd:i(h.DragEnd),onCancel:i(h.DragCancel)});function i(e){return async function(){let{active:t,collisions:r,over:a,scrollAdjustedTranslate:l}=eu.current,s=null;if(t&&l){let{cancelDrop:i}=Z.current;s={activatorEvent:n,active:t,collisions:r,delta:l,over:a},e===h.DragEnd&&"function"==typeof i&&await Promise.resolve(i(s))&&(e=h.DragCancel)}_.current=null,(0,eb.unstable_batchedUpdates)(()=>{L({type:e}),O(k.Uninitialized),eU(null),$(null),J(null),eW.current=null;let t=e===h.DragEnd?"onDragEnd":"onDragCancel";if(s){let e=Z.current[t];null==e||e(s),z({type:t,event:s})}})}}eW.current=s},[H]),eY=(0,S.useCallback)((e,t)=>(r,a)=>{let l=r.nativeEvent,n=H.get(a);null!==_.current||!n||l.dndKit||l.defaultPrevented||!0===e(r,t.options,{active:n})&&(l.dndKit={capturedBy:t.sensor},_.current=a,e_(r,t))},[H,e_]),e$=(0,S.useMemo)(()=>D.reduce((e,t)=>{let{sensor:r}=t;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:eY(e.handler,t)}))]},[]),[D,eY]);(0,S.useEffect)(()=>{if(!ej)return;let e=D.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},D.map(e=>{let{sensor:t}=e;return t})),eE(()=>{ed&&B===k.Initializing&&O(k.Initialized)},[ed,B]),(0,S.useEffect)(()=>{let{onDragMove:e}=Z.current,{active:t,activatorEvent:r,collisions:a,over:l}=eu.current;if(!t||!r)return;let n={active:t,activatorEvent:r,collisions:a,delta:{x:eA.x,y:eA.y},over:l};(0,eb.unstable_batchedUpdates)(()=>{null==e||e(n),z({type:"onDragMove",event:n})})},[eA.x,eA.y]),(0,S.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:r,droppableContainers:a,scrollAdjustedTranslate:l}=eu.current;if(!e||null==_.current||!t||!l)return;let{onDragOver:n}=Z.current,s=a.get(eH),i=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,o={active:e,activatorEvent:t,collisions:r,delta:{x:l.x,y:l.y},over:i};(0,eb.unstable_batchedUpdates)(()=>{eU(i),null==n||n(o),z({type:"onDragOver",event:o})})},[eH]),eE(()=>{eu.current={activatorEvent:X,active:W,activeNode:en,collisionRect:eB,collisions:eF,droppableRects:er,draggableNodes:H,draggingNode:ep,draggingNodeRect:ef,droppableContainers:K,over:eV,scrollableAncestors:ev,scrollAdjustedTranslate:eA},G.current={initial:ef,translated:eB}},[W,en,eF,eB,H,ep,ef,er,K,eV,ev,eA]),function(e){let{acceleration:t,activator:r=g.Pointer,canScroll:a,draggingRect:l,enabled:n,interval:s=5,order:i=y.TreeOrder,pointerCoordinates:o,scrollableAncestors:d,scrollableAncestorRects:c,delta:u,threshold:h}=e,p=function(e){let{delta:t,disabled:r}=e,a=eI(t);return eL(e=>{if(r||!a||!e)return tA;let l={x:Math.sign(t.x-a.x),y:Math.sign(t.y-a.y)};return{x:{[m.Backward]:e.x[m.Backward]||-1===l.x,[m.Forward]:e.x[m.Forward]||1===l.x},y:{[m.Backward]:e.y[m.Backward]||-1===l.y,[m.Forward]:e.y[m.Forward]||1===l.y}}},[r,t,a])}({delta:u,disabled:!n}),[f,x]=eR(),v=(0,S.useRef)({x:0,y:0}),b=(0,S.useRef)({x:0,y:0}),k=(0,S.useMemo)(()=>{switch(r){case g.Pointer:return o?{top:o.y,bottom:o.y,left:o.x,right:o.x}:null;case g.DraggableRect:return l}},[r,l,o]),j=(0,S.useRef)(null),w=(0,S.useCallback)(()=>{let e=j.current;if(!e)return;let t=v.current.x*b.current.x,r=v.current.y*b.current.y;e.scrollBy(t,r)},[]),N=(0,S.useMemo)(()=>i===y.TreeOrder?[...d].reverse():d,[i,d]);(0,S.useEffect)(()=>{if(!n||!d.length||!k)return void x();for(let e of N){if((null==a?void 0:a(e))===!1)continue;let r=c[d.indexOf(e)];if(!r)continue;let{direction:l,speed:n}=function(e,t,r,a,l){let{top:n,left:s,right:i,bottom:o}=r;void 0===a&&(a=10),void 0===l&&(l=tf);let{isTop:d,isBottom:c,isLeft:u,isRight:h}=tp(e),p={x:0,y:0},f={x:0,y:0},x={height:t.height*l.y,width:t.width*l.x};return!d&&n<=t.top+x.height?(p.y=m.Backward,f.y=a*Math.abs((t.top+x.height-n)/x.height)):!c&&o>=t.bottom-x.height&&(p.y=m.Forward,f.y=a*Math.abs((t.bottom-x.height-o)/x.height)),!h&&i>=t.right-x.width?(p.x=m.Forward,f.x=a*Math.abs((t.right-x.width-i)/x.width)):!u&&s<=t.left+x.width&&(p.x=m.Backward,f.x=a*Math.abs((t.left+x.width-s)/x.width)),{direction:p,speed:f}}(e,r,k,t,h);for(let e of["x","y"])p[e][l[e]]||(n[e]=0,l[e]=0);if(n.x>0||n.y>0){x(),j.current=e,f(w,s),v.current=n,b.current=l;return}}v.current={x:0,y:0},b.current={x:0,y:0},x()},[t,w,a,x,n,s,JSON.stringify(k),JSON.stringify(p),f,d,N,c,JSON.stringify(h)])}({...ei,delta:V,draggingRect:eB,pointerCoordinates:eN,scrollableAncestors:ev,scrollableAncestorRects:ek});let eJ=(0,S.useMemo)(()=>({active:W,activeNode:en,activeNodeRect:ed,activatorEvent:X,collisions:eF,containerNodeRect:ec,dragOverlay:em,draggableNodes:H,droppableContainers:K,droppableRects:er,over:eV,measureDroppableContainers:ea,scrollableAncestors:ev,scrollableAncestorRects:ek,measuringConfiguration:et,measuringScheduled:el,windowRect:ey}),[W,en,ed,X,eF,ec,em,H,K,er,eV,ea,ev,ek,et,el,ey]),eZ=(0,S.useMemo)(()=>({activatorEvent:X,activators:e$,active:W,activeNodeRect:ed,ariaDescribedById:{draggable:Q},dispatch:L,draggableNodes:H,over:eV,measureDroppableContainers:ea}),[X,e$,W,ed,L,Q,H,eV,ea]);return S.default.createElement(eX.Provider,{value:I},S.default.createElement(t_.Provider,{value:eZ},S.default.createElement(tY.Provider,{value:eJ},S.default.createElement(tZ.Provider,{value:eG},M)),S.default.createElement(tJ,{disabled:(null==N?void 0:N.restoreFocus)===!1})),S.default.createElement(eQ,{...N,hiddenTextDescribedById:Q}))}),t0=(0,S.createContext)(null),t1="button";function t2(e){let{id:t,data:r,disabled:a=!1,attributes:l}=e,n=eO("Draggable"),{activators:s,activatorEvent:i,active:o,activeNodeRect:d,ariaDescribedById:c,draggableNodes:u,over:h}=(0,S.useContext)(t_),{role:m=t1,roleDescription:p="draggable",tabIndex:f=0}=null!=l?l:{},x=(null==o?void 0:o.id)===t,g=(0,S.useContext)(x?tZ:t0),[y,v]=ez(),[b,k]=ez(),j=(0,S.useMemo)(()=>s.reduce((e,r)=>{let{eventName:a,handler:l}=r;return e[a]=e=>{l(e,t)},e},{}),[s,t]),w=eP(r);return eE(()=>(u.set(t,{id:t,key:n,node:y,activatorNode:b,data:w}),()=>{let e=u.get(t);e&&e.key===n&&u.delete(t)}),[u,t]),{active:o,activatorEvent:i,activeNodeRect:d,attributes:(0,S.useMemo)(()=>({role:m,tabIndex:f,"aria-disabled":a,"aria-pressed":!!x&&m===t1||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[a,m,f,x,p,c.draggable]),isDragging:x,listeners:a?void 0:j,node:y,over:h,setNodeRef:v,setActivatorNodeRef:k,transform:g}}function t3(){return(0,S.useContext)(tY)}let t5={timeout:25};function t4(e){let{data:t,disabled:r=!1,id:a,resizeObserverConfig:l}=e,n=eO("Droppable"),{active:s,dispatch:i,over:o,measureDroppableContainers:d}=(0,S.useContext)(t_),c=(0,S.useRef)({disabled:r}),u=(0,S.useRef)(!1),m=(0,S.useRef)(null),p=(0,S.useRef)(null),{disabled:f,updateMeasurementsFor:x,timeout:g}={...t5,...l},y=eP(null!=x?x:a),v=tL({callback:(0,S.useCallback)(()=>{if(!u.current){u.current=!0;return}null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{d(Array.isArray(y.current)?y.current:[y.current]),p.current=null},g)},[g]),disabled:f||!s}),[b,k]=ez((0,S.useCallback)((e,t)=>{v&&(t&&(v.unobserve(t),u.current=!1),e&&v.observe(e))},[v])),j=eP(t);return(0,S.useEffect)(()=>{v&&b.current&&(v.disconnect(),u.current=!1,v.observe(b.current))},[b,v]),(0,S.useEffect)(()=>(i({type:h.RegisterDroppable,element:{id:a,key:n,disabled:r,node:b,rect:m,data:j}}),()=>i({type:h.UnregisterDroppable,key:n,id:a})),[a]),(0,S.useEffect)(()=>{r!==c.current.disabled&&(i({type:h.SetDroppableDisabled,id:a,key:n,disabled:r}),c.current.disabled=r)},[a,n,r,i]),{active:s,rect:m,isOver:(null==o?void 0:o.id)===a,node:b,over:o,setNodeRef:k}}let t6={position:"fixed",touchAction:"none"},t8=e=>eV(e)?"transform 250ms ease":void 0;function t9(e,t,r){let a=e.slice();return a.splice(r<0?a.length+r:r,0,a.splice(t,1)[0]),a}function t7(e){return null!==e&&e>=0}t={styles:{active:{opacity:"0"}}},e.s(["DndContext",0,tQ,"KeyboardCode",0,f,"PointerSensor",0,tE,"closestCenter",0,te,"closestCorners",0,e=>{let{collisionRect:t,droppableRects:r,droppableContainers:a}=e,l=e8(t),n=[];for(let e of a){let{id:t}=e,a=r.get(t);if(a){let r=e8(a),s=Number((l.reduce((e,t,a)=>e+e5(r[a],t),0)/4).toFixed(4));n.push({id:t,data:{droppableContainer:e,value:s}})}}return n.sort(e4)},"getClientRect",0,tn,"getFirstCollision",0,e9,"getScrollableAncestors",0,ti,"useDndContext",0,t3,"useDraggable",0,t2,"useDroppable",0,t4,"useSensor",0,e1,"useSensors",0,e2],59295);let re=e=>{let{rects:t,activeIndex:r,overIndex:a,index:l}=e,n=t9(t,a,r),s=t[l],i=n[l];return i&&s?{x:i.left-s.left,y:i.top-s.top,scaleX:i.width/s.width,scaleY:i.height/s.height}:null},rt={scaleX:1,scaleY:1},rr=e=>{var t,r,a,l;let n,s,i,{activeIndex:o,activeNodeRect:d,index:c,rects:u,overIndex:h}=e,m=null!=(t=u[o])?t:d;if(!m)return null;if(c===o){let e=u[h];return e?{x:0,y:o<h?e.top+e.height-(m.top+m.height):e.top-m.top,...rt}:null}let p=(r=u,a=c,l=o,n=r[a],s=r[a-1],i=r[a+1],n?l<a?s?n.top-(s.top+s.height):i?i.top-(n.top+n.height):0:i?i.top-(n.top+n.height):s?n.top-(s.top+s.height):0:0);return c>o&&c<=h?{x:0,y:-m.height-p,...rt}:c<o&&c>=h?{x:0,y:m.height+p,...rt}:{x:0,y:0,...rt}},ra="Sortable",rl=S.default.createContext({activeIndex:-1,containerId:ra,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:re,disabled:{draggable:!1,droppable:!1}});function rn(e){let{children:t,id:r,items:a,strategy:l=re,disabled:n=!1}=e,{active:s,dragOverlay:i,droppableRects:o,over:d,measureDroppableContainers:c}=t3(),u=eO(ra,r),h=null!==i.rect,m=(0,S.useMemo)(()=>a.map(e=>"object"==typeof e&&"id"in e?e.id:e),[a]),p=null!=s,f=s?m.indexOf(s.id):-1,x=d?m.indexOf(d.id):-1,g=(0,S.useRef)(m),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(m,g.current),v=-1!==x&&-1===f||y,b="boolean"==typeof n?{draggable:n,droppable:n}:n;eE(()=>{y&&p&&c(m)},[y,m,p,c]),(0,S.useEffect)(()=>{g.current=m},[m]);let k=(0,S.useMemo)(()=>({activeIndex:f,containerId:u,disabled:b,disableTransforms:v,items:m,overIndex:x,useDragOverlay:h,sortedRects:m.reduce((e,t,r)=>{let a=o.get(t);return a&&(e[r]=a),e},Array(m.length)),strategy:l}),[f,u,b.draggable,b.droppable,v,m,x,o,h,l]);return S.default.createElement(rl.Provider,{value:k},t)}let rs=e=>{let{id:t,items:r,activeIndex:a,overIndex:l}=e;return t9(r,a,l).indexOf(t)},ri=e=>{let{containerId:t,isSorting:r,wasDragging:a,index:l,items:n,newIndex:s,previousItems:i,previousContainerId:o,transition:d}=e;return!!d&&!!a&&(i===n||l!==s)&&(!!r||s!==l&&t===o)},ro={duration:200,easing:"ease"},rd="transform",rc=eU.Transition.toString({property:rd,duration:0,easing:"linear"}),ru={roleDescription:"sortable"};function rh(e){var t,r,a,l;let{animateLayoutChanges:n=ri,attributes:s,disabled:i,data:o,getNewIndex:d=rs,id:c,strategy:u,resizeObserverConfig:h,transition:m=ro}=e,{items:p,containerId:f,activeIndex:x,disabled:g,disableTransforms:y,sortedRects:v,overIndex:b,useDragOverlay:k,strategy:j}=(0,S.useContext)(rl),w=(t=i,r=g,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(a=null==t?void 0:t.draggable)?a:r.draggable,droppable:null!=(l=null==t?void 0:t.droppable)?l:r.droppable}),N=p.indexOf(c),C=(0,S.useMemo)(()=>({sortable:{containerId:f,index:N,items:p},...o}),[f,o,N,p]),M=(0,S.useMemo)(()=>p.slice(p.indexOf(c)),[p,c]),{rect:D,node:T,isOver:E,setNodeRef:A}=t4({id:c,data:C,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:M,...h}}),{active:R,activatorEvent:P,activeNodeRect:L,attributes:z,setNodeRef:I,listeners:B,isDragging:O,over:F,setActivatorNodeRef:q,transform:H}=t2({id:c,data:C,attributes:{...ru,...s},disabled:w.draggable}),V=ek(A,I),K=!!R,U=K&&!y&&t7(x)&&t7(b),G=!k&&O,W=G&&U?H:null,_=U?null!=W?W:(null!=u?u:j)({rects:v,activeNodeRect:L,activeIndex:x,overIndex:b,index:N}):null,Y=t7(x)&&t7(b)?d({id:c,items:p,activeIndex:x,overIndex:b}):N,$=null==R?void 0:R.id,X=(0,S.useRef)({activeId:$,items:p,newIndex:Y,containerId:f}),J=p!==X.current.items,Z=n({active:R,containerId:f,isDragging:O,isSorting:K,id:c,index:N,items:p,newIndex:X.current.newIndex,previousItems:X.current.items,previousContainerId:X.current.containerId,transition:m,wasDragging:null!=X.current.activeId}),Q=function(e){let{disabled:t,index:r,node:a,rect:l}=e,[n,s]=(0,S.useState)(null),i=(0,S.useRef)(r);return eE(()=>{if(!t&&r!==i.current&&a.current){let e=l.current;if(e){let t=tn(a.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&s(r)}}r!==i.current&&(i.current=r)},[t,r,a,l]),(0,S.useEffect)(()=>{n&&s(null)},[n]),n}({disabled:!Z,index:N,node:T,rect:D});return(0,S.useEffect)(()=>{K&&X.current.newIndex!==Y&&(X.current.newIndex=Y),f!==X.current.containerId&&(X.current.containerId=f),p!==X.current.items&&(X.current.items=p)},[K,Y,f,p]),(0,S.useEffect)(()=>{if($===X.current.activeId)return;if(null!=$&&null==X.current.activeId){X.current.activeId=$;return}let e=setTimeout(()=>{X.current.activeId=$},50);return()=>clearTimeout(e)},[$]),{active:R,activeIndex:x,attributes:z,data:C,rect:D,index:N,newIndex:Y,items:p,isOver:E,isSorting:K,isDragging:O,listeners:B,node:T,overIndex:b,over:F,setNodeRef:V,setActivatorNodeRef:q,setDroppableNodeRef:A,setDraggableNodeRef:I,transform:null!=Q?Q:_,transition:Q||J&&X.current.newIndex===N?rc:(!G||eV(P))&&m&&(K||Z)?eU.Transition.toString({...m,property:rd}):void 0}}f.Down,f.Right,f.Up,f.Left,e.s(["SortableContext",0,rn,"arrayMove",0,t9,"useSortable",0,rh,"verticalListSortingStrategy",0,rr],706277);let rm=(0,j.default)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);e.s(["GripVertical",0,rm],269356);let rp=(0,j.default)("pencil",[["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"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,rp],436254);var rf=e.i(972733),rx=e.i(871138),rg=e.i(939310),ry=e.i(45124),rv=e.i(130027),rb=e.i(443915),rk=e.i(212283),rj=e.i(639530);let rw=({transform:e})=>({...e,x:0}),rN=({prompt:e,onToggle:t})=>{let{attributes:r,listeners:a,setNodeRef:l,setActivatorNodeRef:n,transform:s,transition:i,isDragging:o}=rh({id:e.id}),d={transform:eU.Translate.toString(s),transition:i,zIndex:o?1:void 0,position:o?"relative":void 0};return(0,N.jsxs)("div",{ref:l,className:"flex items-center gap-1 bg-background py-2.5 pl-1 pr-3",style:d,children:[(0,N.jsx)("div",{ref:n,...r,...a,className:"flex shrink-0 cursor-grab items-center text-muted-foreground/50 active:cursor-grabbing",children:(0,N.jsx)(rm,{className:"h-4 w-4"})}),(0,N.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,N.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,N.jsx)("p",{className:"truncate font-mono text-xs text-muted-foreground",children:e.prompt})]}),(0,N.jsx)("div",{className:"flex shrink-0 items-center",children:(0,N.jsx)(rv.Switch,{checked:e.enabled,onCheckedChange:r=>t(e.id,r)})})]})},rC=({prompt:e,onEdit:t,onDelete:r,onToggle:a})=>{let{attributes:l,listeners:n,setNodeRef:s,setActivatorNodeRef:i,transform:o,transition:d,isDragging:c}=rh({id:e.id}),u={transform:eU.Translate.toString(o),transition:d,zIndex:c?1:void 0,position:c?"relative":void 0};return(0,N.jsxs)("div",{ref:s,className:"flex items-center gap-1 bg-background py-2.5 pl-1 pr-3",style:u,children:[(0,N.jsx)("div",{ref:i,...l,...n,className:"flex shrink-0 cursor-grab items-center text-muted-foreground/50 active:cursor-grabbing",children:(0,N.jsx)(rm,{className:"h-4 w-4"})}),(0,N.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,N.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,N.jsx)("p",{className:"truncate font-mono text-xs text-muted-foreground",children:e.prompt})]}),(0,N.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,N.jsx)(rg.Button,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>t(e),children:(0,N.jsx)(rp,{className:"h-3.5 w-3.5"})}),(0,N.jsx)(rg.Button,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-ui-red hover:text-ui-red/80",onClick:()=>r(e.id),children:(0,N.jsx)(w,{className:"h-3.5 w-3.5"})}),(0,N.jsx)(rv.Switch,{checked:e.enabled,onCheckedChange:t=>a(e.id,t)})]})]})};e.s(["default",0,()=>{let e=(0,ey.useTranslations)("settings.quickPrompts"),{allOrderedPrompts:t,customPrompts:r,toggleBuiltin:a,saveCustom:l,saveOrder:n,deletePrompt:s,resetAll:i}=(0,rj.default)(),[o,d]=(0,S.useState)(null),[c,u]=(0,S.useState)(!1),[h,m]=(0,S.useState)(null),p=e2(e1(tE,{activationConstraint:{distance:5}})),f=(0,S.useCallback)((e,t)=>{e.startsWith("builtin-")?a(e,t):l(r.map(r=>r.id===e?{...r,enabled:t}:r))},[r,a,l]),x=(0,S.useCallback)(e=>{m(e)},[]),g=(0,S.useCallback)(()=>{h&&(s(h),m(null))},[h,s]),y=(0,S.useCallback)(e=>{d({mode:"edit",id:e.id,name:e.name,prompt:e.prompt})},[]),v=(0,S.useCallback)(()=>{d({mode:"add",name:"",prompt:""})},[]),b=(0,S.useCallback)(()=>{o&&o.name.trim()&&o.prompt.trim()&&("edit"===o.mode&&o.id?l(r.map(e=>e.id===o.id?{...e,name:o.name.trim(),prompt:o.prompt}:e)):l([...r,{id:`custom-${(0,ev.nanoid)(8)}`,name:o.name.trim(),prompt:o.prompt,enabled:!0}]),d(null))},[o,r,l]),k=(0,S.useCallback)(()=>{i(),u(!1)},[i]),j=(0,S.useCallback)(e=>{let{active:r,over:a}=e;if(!a||r.id===a.id)return;let l=t.findIndex(e=>e.id===r.id),s=t.findIndex(e=>e.id===a.id);-1===l||-1===s||n(t9(t,l,s).map(e=>e.id))},[t,n]),w=!!o&&o.name.trim().length>0&&o.prompt.trim().length>0;return(0,N.jsxs)("div",{className:"space-y-6",children:[(0,N.jsxs)("div",{children:[(0,N.jsx)("p",{className:"text-sm font-medium",children:e("title")}),(0,N.jsx)("p",{className:"text-sm text-muted-foreground",children:e("description")})]}),(0,N.jsxs)("div",{className:"space-y-2",children:[(0,N.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:e("itemsSection")}),t.length>0&&(0,N.jsx)(tQ,{sensors:p,collisionDetection:te,modifiers:[rw],onDragEnd:j,children:(0,N.jsx)(rn,{items:t.map(e=>e.id),strategy:rr,children:(0,N.jsx)("div",{className:"overflow-hidden rounded-lg border",children:t.map(e=>e.id.startsWith("builtin-")?(0,N.jsx)(rN,{prompt:e,onToggle:f},e.id):(0,N.jsx)(rC,{prompt:e,onEdit:y,onDelete:x,onToggle:f},e.id))})})}),o&&(0,N.jsxs)("div",{className:"space-y-3 rounded-lg border p-3",children:[(0,N.jsx)("p",{className:"text-sm font-medium",children:e("add"===o.mode?"addPrompt":"editPrompt")}),(0,N.jsxs)("div",{className:"space-y-2",children:[(0,N.jsx)("label",{className:"text-xs text-muted-foreground",children:e("nameLabel")}),(0,N.jsx)(ry.Input,{value:o.name,onChange:e=>d({...o,name:e.target.value}),placeholder:e("namePlaceholder"),autoFocus:!0})]}),(0,N.jsxs)("div",{className:"space-y-2",children:[(0,N.jsx)("label",{className:"text-xs text-muted-foreground",children:e("promptLabel")}),(0,N.jsx)(rb.Textarea,{value:o.prompt,onChange:e=>d({...o,prompt:e.target.value}),placeholder:e("promptPlaceholder"),rows:3})]}),(0,N.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,N.jsx)(rg.Button,{variant:"outline",size:"sm",onClick:()=>d(null),children:e("cancel")}),(0,N.jsx)(rg.Button,{size:"sm",onClick:b,disabled:!w,children:e("save")})]})]}),!o&&(0,N.jsxs)(rg.Button,{variant:"outline",size:"sm",onClick:v,children:[(0,N.jsx)(rf.Plus,{className:"mr-1 h-3.5 w-3.5"}),e("addButton")]})]}),(0,N.jsxs)(rg.Button,{variant:"ghost",size:"sm",className:"text-muted-foreground",onClick:()=>u(!0),children:[(0,N.jsx)(rx.RotateCcw,{className:"mr-1 h-3.5 w-3.5"}),e("resetToDefault")]}),(0,N.jsx)(rk.AlertDialog,{open:!!h,onOpenChange:e=>!e&&m(null),children:(0,N.jsxs)(rk.AlertDialogContent,{children:[(0,N.jsxs)(rk.AlertDialogHeader,{children:[(0,N.jsx)(rk.AlertDialogTitle,{children:e("deleteTitle")}),(0,N.jsx)(rk.AlertDialogDescription,{children:e("deleteDescription")})]}),(0,N.jsxs)(rk.AlertDialogFooter,{children:[(0,N.jsx)(rk.AlertDialogCancel,{children:e("deleteCancel")}),(0,N.jsx)(rk.AlertDialogAction,{onClick:g,children:e("deleteConfirm")})]})]})}),(0,N.jsx)(rk.AlertDialog,{open:c,onOpenChange:u,children:(0,N.jsxs)(rk.AlertDialogContent,{children:[(0,N.jsxs)(rk.AlertDialogHeader,{children:[(0,N.jsx)(rk.AlertDialogTitle,{children:e("resetTitle")}),(0,N.jsx)(rk.AlertDialogDescription,{children:e("resetDescription")})]}),(0,N.jsxs)(rk.AlertDialogFooter,{children:[(0,N.jsx)(rk.AlertDialogCancel,{children:e("resetCancel")}),(0,N.jsx)(rk.AlertDialogAction,{onClick:k,children:e("resetConfirm")})]})]})})]})}],468528)},934048,e=>{"use strict";e.i(350461);var t=e.i(391398),r=e.i(191788),a=e.i(352819),l=e.i(679935),n=e.i(603331),s=e.i(524845),i=e.i(29803),o=e.i(447903),d=e.i(770084),c=e.i(918324),u=e.i(721614),h=e.i(618890),m=e.i(211308),p=e.i(660255),f=e.i(240614),x=e.i(978517),g=e.i(661371),y=e.i(438970),v=e.i(835707),b=e.i(482192),k=e.i(283303),j=e.i(17585),w=e.i(117690),N=e.i(871138),C=e.i(181474),M=e.i(639131),D=e.i(875284),S=e.i(909289),T=e.i(722896),E=e.i(868462),A=e.i(602889),R=e.i(124726),P=e.i(939310),L=e.i(208501),z=e.i(45124),I=e.i(130027),B=e.i(621504),O=e.i(91762),F=e.i(636989),q=e.i(550292),H=e.i(296202),V=e.i(212283),K=e.i(348370),U=e.i(353533),G=e.i(117369),W=e.i(31050),_=e.i(170004),Y=e.i(490034),$=e.i(998234),X=e.i(700599),J=e.i(468528),Z=e.i(745725),Q=e.i(59295),ee=e.i(706277),et=e.i(146341),er=e.i(269356),ea=e.i(436254),el=e.i(972733),en=e.i(734549),es=e.i(274489);let ei=["Globe","Link","ExternalLink","Bookmark","Star","Home","FileText","BarChart3","PieChart","LineChart","Activity","Zap","Terminal","Code","Database","Server","Cloud","Shield","Lock","Key","User","Users","Mail","MessageSquare","Bell","Calendar","Clock","Search","Eye","Camera","Image","Film","Music","Headphones","Mic","Folder","File","Archive","Download","Upload","GitBranch","GitCommit","GitPullRequest","GitFork","Bug","Wrench","Settings","Sliders","Palette","Brush","Map","MapPin","Navigation","Compass","Wifi","Monitor","Smartphone","Tablet","Laptop","Cpu","HardDrive","MemoryStick","CircuitBoard","Radio","Bluetooth","Heart","ThumbsUp","Smile","Coffee","Rocket","Flame","Sun","Moon","Sparkles","Award","Trophy","Target","Flag","Crosshair","Layers","Layout","Grid","List","Table","Kanban","Bot","Brain","Lightbulb","GraduationCap","BookOpen"],eo=({value:e,onChange:l,readonly:n,size:s=16})=>{let i=(0,a.useTranslations)("settings.sidebarItems"),[o,d]=(0,r.useState)(!1),[c,u]=(0,r.useState)(""),h=(0,r.useMemo)(()=>{if(!c.trim())return ei;let e=c.toLowerCase();return ei.filter(t=>t.toLowerCase().includes(e))},[c]);return n?(0,t.jsx)(es.default,{name:e,className:"shrink-0 text-muted-foreground",style:{width:s,height:s}}):(0,t.jsxs)(K.Popover,{open:o,onOpenChange:d,children:[(0,t.jsxs)(K.PopoverTrigger,{className:"inline-flex h-9 items-center justify-center gap-2 rounded-md border border-input bg-background px-3 text-sm font-medium shadow-xs transition-colors hover:bg-accent hover:text-accent-foreground",children:[(0,t.jsx)(es.default,{name:e,className:"h-4 w-4"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:e})]}),(0,t.jsxs)(K.PopoverContent,{className:"w-72 p-2",align:"start",children:[(0,t.jsx)(z.Input,{placeholder:i("iconSearch"),value:c,onChange:e=>u(e.target.value),className:"mb-2 h-8 text-xs",autoFocus:!0}),(0,t.jsx)("div",{className:"grid max-h-48 grid-cols-8 gap-0.5 overflow-y-auto p-1",children:h.map(r=>(0,es.getIcon)(r)?(0,t.jsx)("button",{type:"button",className:(0,U.cn)("flex h-8 w-8 items-center justify-center rounded transition-colors hover:bg-accent",e===r&&"bg-accent ring-1 ring-primary"),onClick:()=>{l?.(r),d(!1),u("")},title:r,children:(0,t.jsx)(es.default,{name:r,className:"h-4 w-4"})},r):null)}),0===h.length&&(0,t.jsx)("p",{className:"py-4 text-center text-xs text-muted-foreground",children:i("iconNotFound")})]})]})},ed=({transform:e})=>({...e,x:0}),ec=({item:e,onEdit:r,onDelete:a,onToggle:l})=>{let{attributes:n,listeners:s,setNodeRef:i,setActivatorNodeRef:o,transform:d,transition:c,isDragging:u}=(0,ee.useSortable)({id:e.id}),h={transform:et.CSS.Translate.toString(d),transition:c,zIndex:u?1:void 0,position:u?"relative":void 0};return(0,t.jsxs)("div",{ref:i,className:"flex items-center gap-1 bg-background py-2.5 pl-1 pr-3",style:h,children:[(0,t.jsx)("div",{ref:o,...n,...s,className:"flex shrink-0 cursor-grab items-center text-muted-foreground/50 active:cursor-grabbing",children:(0,t.jsx)(er.GripVertical,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(eo,{value:e.icon,readonly:!0,size:14}),(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name})]}),(0,t.jsx)("p",{className:"truncate font-mono text-xs text-muted-foreground",children:e.url})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)(P.Button,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>r(e),children:(0,t.jsx)(ea.Pencil,{className:"h-3.5 w-3.5"})}),(0,t.jsx)(P.Button,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-ui-red hover:text-ui-red/80",onClick:()=>a(e.id),children:(0,t.jsx)(S.Trash2,{className:"h-3.5 w-3.5"})}),(0,t.jsx)(I.Switch,{checked:e.enabled,onCheckedChange:t=>l(e.id,t)})]})]})},eu=({item:e,onToggle:r})=>{let{attributes:a,listeners:l,setNodeRef:n,setActivatorNodeRef:s,transform:i,transition:o,isDragging:d}=(0,ee.useSortable)({id:e.id}),c={transform:et.CSS.Translate.toString(i),transition:o,zIndex:d?1:void 0,position:d?"relative":void 0};return(0,t.jsxs)("div",{ref:n,className:"flex items-center gap-1 bg-background py-2.5 pl-1 pr-3",style:c,children:[(0,t.jsx)("div",{ref:s,...a,...l,className:"flex shrink-0 cursor-grab items-center text-muted-foreground/50 active:cursor-grabbing",children:(0,t.jsx)(er.GripVertical,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(eo,{value:e.icon,readonly:!0,size:14}),(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name})]}),(0,t.jsx)("p",{className:"truncate font-mono text-xs text-muted-foreground",children:e.url})]}),(0,t.jsx)("div",{className:"flex shrink-0 items-center",children:(0,t.jsx)(I.Switch,{checked:e.enabled,onCheckedChange:t=>r(e.id,t)})})]})},eh=()=>{let e=(0,a.useTranslations)("settings.sidebarItems"),{allOrderedItems:l,customItems:n,toggleBuiltin:s,saveCustom:i,saveOrder:o,deleteItem:d,resetAll:c}=(0,en.default)(),[u,h]=(0,r.useState)(null),[m,p]=(0,r.useState)(!1),[f,x]=(0,r.useState)(null),g=(0,Q.useSensors)((0,Q.useSensor)(Q.PointerSensor,{activationConstraint:{distance:5}})),y=(0,r.useCallback)((e,t)=>{e.startsWith("builtin-")?s(e,t):i(n.map(r=>r.id===e?{...r,enabled:t}:r))},[n,s,i]),v=(0,r.useCallback)(e=>{x(e)},[]),b=(0,r.useCallback)(()=>{f&&(d(f),x(null))},[f,d]),k=(0,r.useCallback)(e=>{h({mode:"edit",id:e.id,name:e.name,icon:e.icon,url:e.url})},[]),j=(0,r.useCallback)(()=>{h({mode:"add",name:"",icon:"Globe",url:""})},[]),w=(0,r.useCallback)(()=>{u&&u.name.trim()&&u.url.trim()&&("edit"===u.mode&&u.id?i(n.map(e=>e.id===u.id?{...e,name:u.name.trim(),icon:u.icon,url:u.url.trim()}:e)):i([...n,{id:`custom-${(0,Z.nanoid)(8)}`,name:u.name.trim(),icon:u.icon,url:u.url.trim(),enabled:!0}]),h(null))},[u,n,i]),C=(0,r.useCallback)(()=>{c(),p(!1)},[c]),M=(0,r.useCallback)(e=>{let{active:t,over:r}=e;if(!r||t.id===r.id)return;let a=l.findIndex(e=>e.id===t.id),n=l.findIndex(e=>e.id===r.id);-1===a||-1===n||o((0,ee.arrayMove)(l,a,n).map(e=>e.id))},[l,o]),D=!!u&&u.name.trim().length>0&&u.url.trim().length>0;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:e("itemsSection")}),l.length>0&&(0,t.jsx)(Q.DndContext,{sensors:g,collisionDetection:Q.closestCenter,modifiers:[ed],onDragEnd:M,children:(0,t.jsx)(ee.SortableContext,{items:l.map(e=>e.id),strategy:ee.verticalListSortingStrategy,children:(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border",children:l.map(e=>e.id.startsWith("builtin-")?(0,t.jsx)(eu,{item:e,onToggle:y},e.id):(0,t.jsx)(ec,{item:e,onEdit:k,onDelete:v,onToggle:y},e.id))})})}),u&&(0,t.jsxs)("div",{className:"space-y-3 rounded-lg border p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(eo,{value:u.icon,onChange:e=>h({...u,icon:e})}),(0,t.jsx)(z.Input,{value:u.name,onChange:e=>h({...u,name:e.target.value}),placeholder:e("namePlaceholder"),autoFocus:!0})]}),(0,t.jsx)(z.Input,{value:u.url,onChange:e=>h({...u,url:e.target.value}),placeholder:e("urlPlaceholder")}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)(P.Button,{variant:"outline",size:"sm",onClick:()=>h(null),children:e("cancel")}),(0,t.jsx)(P.Button,{size:"sm",onClick:w,disabled:!D,children:e("save")})]})]}),!u&&(0,t.jsxs)(P.Button,{variant:"outline",size:"sm",onClick:j,children:[(0,t.jsx)(el.Plus,{className:"mr-1 h-3.5 w-3.5"}),e("addButton")]})]}),(0,t.jsxs)(P.Button,{variant:"ghost",size:"sm",className:"text-muted-foreground",onClick:()=>p(!0),children:[(0,t.jsx)(N.RotateCcw,{className:"mr-1 h-3.5 w-3.5"}),e("resetToDefault")]}),(0,t.jsx)(V.AlertDialog,{open:!!f,onOpenChange:e=>!e&&x(null),children:(0,t.jsxs)(V.AlertDialogContent,{children:[(0,t.jsxs)(V.AlertDialogHeader,{children:[(0,t.jsx)(V.AlertDialogTitle,{children:e("deleteTitle")}),(0,t.jsx)(V.AlertDialogDescription,{children:e("deleteDescription")})]}),(0,t.jsxs)(V.AlertDialogFooter,{children:[(0,t.jsx)(V.AlertDialogCancel,{children:e("deleteCancel")}),(0,t.jsx)(V.AlertDialogAction,{onClick:b,children:e("deleteConfirm")})]})]})}),(0,t.jsx)(V.AlertDialog,{open:m,onOpenChange:p,children:(0,t.jsxs)(V.AlertDialogContent,{children:[(0,t.jsxs)(V.AlertDialogHeader,{children:[(0,t.jsx)(V.AlertDialogTitle,{children:e("resetTitle")}),(0,t.jsx)(V.AlertDialogDescription,{children:e("resetDescription")})]}),(0,t.jsxs)(V.AlertDialogFooter,{children:[(0,t.jsx)(V.AlertDialogCancel,{children:e("resetCancel")}),(0,t.jsx)(V.AlertDialogAction,{onClick:C,children:e("resetConfirm")})]})]})})]})};var em=e.i(876208),ep=e.i(127630),ef=e.i(600300),ex=e.i(398957),eg=e.i(432237),ey=e.i(199648);let ev=({text:e})=>{let[a,l]=(0,r.useState)(!1);return(0,t.jsx)(P.Button,{variant:"ghost",size:"icon",className:"h-6 w-6 shrink-0",onClick:()=>{navigator.clipboard.writeText(e),l(!0),setTimeout(()=>l(!1),1500)},children:a?(0,t.jsx)(d.Check,{className:"h-3 w-3 text-positive"}):(0,t.jsx)(em.Copy,{className:"h-3 w-3"})})},eb=()=>{let e=(0,a.useTranslations)("settings.tailscale");return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-md border border-ui-amber/30 bg-ui-amber/5 p-4",children:[(0,t.jsx)(eg.AlertTriangle,{className:"mt-0.5 h-5 w-5 shrink-0 text-ui-amber"}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("notInstalled")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("notInstalledDescription")})]})]}),(0,t.jsxs)("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed",children:[(0,t.jsx)("p",{className:"text-muted-foreground/60",children:e("commentMac")}),(0,t.jsx)("p",{children:"brew install tailscale"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentMacAppStore")}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentLinux")}),(0,t.jsx)("p",{children:"curl -fsSL https://tailscale.com/install.sh | sh"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentAfterInstall")}),(0,t.jsx)("p",{children:"tailscale up"})]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.rich("installGuide",{link:e=>(0,t.jsxs)("a",{href:"https://tailscale.com/download",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 underline hover:text-foreground",children:[e,(0,t.jsx)(ep.ExternalLink,{className:"h-3 w-3"})]})})})]})},ek=()=>{let e=(0,a.useTranslations)("settings.tailscale"),[n,s]=(0,r.useState)(null),[o,d]=(0,r.useState)(!0),[c,u]=(0,r.useState)(null),h=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/tailscale/status");if(!e.ok)throw Error();let t=await e.json();s(t)}catch{s(null)}finally{d(!1)}},[]);(0,r.useEffect)(()=>{h()},[h]);let m=async t=>{u(`remove-${t}`);try{let r=await fetch("/api/tailscale/serve",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({httpsPort:t})});if(!r.ok){let t=await r.json();throw Error(t.error||e("removeFailed"))}l.toast.success(e("removedToast",{httpsPort:t})),await h()}catch(t){l.toast.error(t instanceof Error?t.message:e("removeFailed"))}finally{u(null)}};if(o)return(0,t.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,t.jsx)(ey.default,{className:"h-4 w-4 text-muted-foreground"})});if(!n||!n.installed)return(0,t.jsx)(eb,{});if(!n.running)return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-md border border-ui-amber/30 bg-ui-amber/5 p-4",children:[(0,t.jsx)(eg.AlertTriangle,{className:"mt-0.5 h-5 w-5 shrink-0 text-ui-amber"}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("notRunning")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("notRunningDescription")})]})]}),(0,t.jsx)("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed",children:(0,t.jsx)("p",{children:"tailscale up"})})]});let p=n.serveEntries,f=n.serverPort,x=8022!==f;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("deviceInfo")}),(0,t.jsx)(P.Button,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>{d(!0),h()},children:(0,t.jsx)(ex.RefreshCw,{className:"h-3.5 w-3.5"})})]}),(0,t.jsx)("div",{className:"rounded-md border p-3 text-sm",children:(0,t.jsxs)("div",{className:"grid grid-cols-[auto_1fr] items-center gap-x-4 gap-y-1.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e("host")}),(0,t.jsx)("span",{className:"font-mono text-xs",children:n.hostname}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"DNS"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"font-mono text-xs",children:n.dnsName}),n.dnsName&&(0,t.jsx)(ev,{text:n.dnsName})]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"IP"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"font-mono text-xs",children:n.tailscaleIp}),n.tailscaleIp&&(0,t.jsx)(ev,{text:n.tailscaleIp})]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:e("version")}),(0,t.jsx)("span",{className:"font-mono text-xs",children:n.version})]})})]}),x&&(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-md border border-accent-color/30 bg-accent-color/5 p-4",children:[(0,t.jsx)(ef.Info,{className:"mt-0.5 h-5 w-5 shrink-0 text-accent-color"}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("nonDefaultPortTitle",{port:f})}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("nonDefaultPortDescription",{defaultPort:8022,currentPort:f,restartAction:i.default?e("appRestart"):e("serverRestart")})}),(0,t.jsxs)("div",{className:"rounded-md bg-muted p-2.5 font-mono text-xs leading-relaxed",children:[(0,t.jsx)("p",{className:"text-muted-foreground/60",children:e("commentFixedPort",{port:8022})}),(0,t.jsxs)("p",{children:["PORT=",8022," purplemux"]}),(0,t.jsx)("p",{className:"mt-1.5 text-muted-foreground/60",children:e("commentOrTerminate",{port:8022})})]})]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("serveStatus")}),0===p.length?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("noActiveServe")}):(0,t.jsx)("div",{className:"rounded-md border",children:(0,t.jsxs)("table",{className:"w-full text-sm",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b text-muted-foreground",children:[(0,t.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:e("httpsPort")}),(0,t.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:e("proxyTarget")}),(0,t.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:e("url")}),(0,t.jsx)("th",{className:"w-10 px-3 py-2"})]})}),(0,t.jsx)("tbody",{children:p.map(e=>{let r="443"===e.httpsPort?`https://${n.dnsName}`:`https://${n.dnsName}:${e.httpsPort}`;return(0,t.jsxs)("tr",{className:"border-b last:border-b-0",children:[(0,t.jsx)("td",{className:"px-3 py-2 font-mono text-xs",children:e.httpsPort}),(0,t.jsx)("td",{className:"px-3 py-2 font-mono text-xs",children:e.proxy}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-xs underline hover:text-foreground",children:r}),(0,t.jsx)(ev,{text:r})]})}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(P.Button,{variant:"ghost",size:"icon",className:"h-7 w-7 text-destructive hover:text-destructive",disabled:null!==c,onClick:()=>m(e.httpsPort),children:c===`remove-${e.httpsPort}`?(0,t.jsx)(ey.default,{className:"h-3 w-3"}):(0,t.jsx)(S.Trash2,{className:"h-3.5 w-3.5"})})})]},e.httpsPort)})})]})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("setupGuide")}),(0,t.jsxs)("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed",children:[(0,t.jsx)("p",{className:"text-muted-foreground/60",children:e("commentStep1Install")}),(0,t.jsx)("p",{children:"brew install tailscale"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentStep2Activate")}),(0,t.jsx)("p",{children:"tailscale up"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentStep3Add")}),(0,t.jsxs)("p",{children:["tailscale serve --bg --https=443 http://localhost:",f]})]})]})]})},ej=[{id:"general",labelKey:"general",icon:(0,t.jsx)(C.Settings,{className:"h-4 w-4"})},{id:"appearance",labelKey:"appearance",icon:(0,t.jsx)(w.Palette,{className:"h-4 w-4"})},{id:"terminal",labelKey:"terminal",icon:(0,t.jsx)(D.Terminal,{className:"h-4 w-4"})},{id:"notification",labelKey:"notification",icon:(0,t.jsx)(o.Bell,{className:"h-4 w-4"})},{id:"editor",labelKey:"editor",icon:(0,t.jsx)(p.FolderCode,{className:"h-4 w-4"})},{id:"claude",labelKey:"claude",icon:(0,t.jsx)(R.default,{className:"h-4 w-4"})},{id:"auth",labelKey:"auth",icon:(0,t.jsx)(v.Lock,{className:"h-4 w-4"})},{id:"tailscale",labelKey:"tailscale",icon:(0,t.jsx)(f.Globe,{className:"h-4 w-4"})},{id:"quick-prompts",labelKey:"quickPrompts",icon:(0,t.jsx)(A.Zap,{className:"h-4 w-4"})},{id:"sidebar-items",labelKey:"sidebarItems",icon:(0,t.jsx)(y.Layout,{className:"h-4 w-4"})},{id:"system",labelKey:"system",icon:(0,t.jsx)(T.Wrench,{className:"h-4 w-4"})}],ew=[{id:"en",label:"English"},{id:"ko",label:"한국어"},{id:"ja",label:"日本語"},{id:"zh-CN",label:"中文(简体)"},{id:"zh-TW",label:"中文(繁體)"},{id:"es",label:"Español"},{id:"fr",label:"Français"},{id:"de",label:"Deutsch"},{id:"pt-BR",label:"Português (BR)"},{id:"ru",label:"Русский"},{id:"tr",label:"Türkçe"}],eN=[{id:"normal",labelKey:"fontSizeNormal"},{id:"large",labelKey:"fontSizeLarge"},{id:"x-large",labelKey:"fontSizeXLarge"}],eC=()=>{let e=(0,a.useTranslations)("settings.general"),r=(0,a.useTranslations)("common"),{theme:l,setTheme:i}=(0,n.useTheme)(),o=(0,W.default)(e=>e.locale),c=(0,W.default)(e=>e.setLocale),m=(0,W.default)(e=>e.fontSize),p=(0,W.default)(e=>e.setFontSize),f=(0,Y.default)(e=>e.setSettingsDialogOpen),x=(0,Y.default)(e=>e.setCheatSheetOpen),y=e=>{i(e),fetch("/api/config",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({appTheme:e})}).catch(()=>{}),window.electronAPI&&window.electronAPI.setNativeTheme(e)};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("language")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("languageDescription")})]}),(0,t.jsxs)(K.Popover,{children:[(0,t.jsxs)(K.PopoverTrigger,{className:"inline-flex h-8 min-w-[180px] items-center justify-between gap-2 rounded-md border border-input bg-background px-3 text-sm hover:bg-accent hover:text-accent-foreground",children:[(0,t.jsx)("span",{children:ew.find(e=>e.id===o)?.label??"English"}),(0,t.jsx)(h.ChevronsUpDown,{className:"h-3.5 w-3.5 shrink-0 opacity-50"})]}),(0,t.jsx)(K.PopoverContent,{align:"end",className:"w-[180px] p-1",children:(0,t.jsx)("div",{className:"max-h-[280px] overflow-y-auto",children:ew.map(e=>(0,t.jsxs)("button",{className:(0,U.cn)("flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden hover:bg-accent hover:text-accent-foreground",o===e.id&&"bg-accent text-accent-foreground"),onClick:()=>c(e.id),children:[(0,t.jsx)(d.Check,{className:(0,U.cn)("h-3.5 w-3.5",o===e.id?"opacity-100":"opacity-0")}),e.label]},e.id))})})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("theme")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("themeDescription")})]}),(0,t.jsxs)(L.ButtonGroup,{children:[(0,t.jsxs)(P.Button,{variant:"light"===l?"default":"outline",size:"sm",onClick:()=>y("light"),children:[(0,t.jsx)(M.Sun,{className:"h-4 w-4"}),r("light")]}),(0,t.jsxs)(P.Button,{variant:"dark"===l?"default":"outline",size:"sm",onClick:()=>y("dark"),children:[(0,t.jsx)(k.Moon,{className:"h-4 w-4"}),r("dark")]}),(0,t.jsxs)(P.Button,{variant:"system"===l?"default":"outline",size:"sm",onClick:()=>y("system"),children:[(0,t.jsx)(b.Monitor,{className:"h-4 w-4"}),r("system")]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("fontSize")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("fontSizeDescription")})]}),(0,t.jsx)(L.ButtonGroup,{children:eN.map(r=>(0,t.jsx)(P.Button,{variant:m===r.id?"default":"outline",size:"sm",onClick:()=>p(r.id),children:e(r.labelKey)},r.id))})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("keyboardShortcuts")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("keyboardShortcutsDescription")})]}),(0,t.jsxs)(P.Button,{variant:"outline",size:"sm",onClick:()=>{f(!1),x(!0)},children:[(0,t.jsx)(g.Keyboard,{className:"h-4 w-4"}),e("openShortcuts"),(0,t.jsx)(u.ChevronRight,{className:"h-3.5 w-3.5"})]})]}),(0,t.jsxs)("a",{href:"https://github.com/subicura/purplemux/releases",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground/50 hover:text-muted-foreground hover:underline w-fit",children:[s.default.version,"(","121ea7e",")"]})]})},eM=[{label:"Surface",vars:["--background","--card","--popover","--muted","--secondary","--accent","--sidebar"]},{label:"Text",vars:["--foreground","--card-foreground","--popover-foreground","--muted-foreground","--secondary-foreground","--accent-foreground","--sidebar-foreground"]},{label:"Interactive",vars:["--primary","--primary-foreground","--destructive"]},{label:"Border",vars:["--border","--input","--ring"]},{label:"Palette",vars:["--ui-blue","--ui-teal","--ui-coral","--ui-amber","--ui-purple","--ui-pink","--ui-green","--ui-gray","--ui-red"]},{label:"Semantic",vars:["--positive","--negative","--accent-color","--brand","--focus-indicator","--claude-active"]}],eD=()=>{let e=(0,a.useTranslations)("settings.appearance"),n=(0,a.useTranslations)("common"),s=(0,W.default)(e=>e.customCSS),i=(0,W.default)(e=>e.setCustomCSS),[o,d]=(0,r.useState)(s),[u,h]=(0,r.useState)(!1);(0,r.useEffect)(()=>{d(s)},[s]);let m=o!==s;return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("customCSS")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("customCSSDescription")})]}),(0,t.jsx)("textarea",{className:"h-56 w-full resize-y rounded-md border border-input bg-muted/30 p-3 font-mono text-xs leading-relaxed text-foreground placeholder:text-muted-foreground/40 focus:border-ring focus:outline-none",placeholder:e("placeholder"),value:o,onChange:e=>d(e.target.value),spellCheck:!1}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(V.AlertDialog,{children:[(0,t.jsx)(V.AlertDialogTrigger,{render:(0,t.jsx)(P.Button,{variant:"outline",size:"sm",disabled:!s,children:e("reset")})}),(0,t.jsxs)(V.AlertDialogContent,{children:[(0,t.jsxs)(V.AlertDialogHeader,{children:[(0,t.jsx)(V.AlertDialogTitle,{children:e("reset")}),(0,t.jsx)(V.AlertDialogDescription,{children:e("resetConfirm")})]}),(0,t.jsxs)(V.AlertDialogFooter,{children:[(0,t.jsx)(V.AlertDialogCancel,{children:n("cancel")}),(0,t.jsx)(V.AlertDialogAction,{onClick:()=>{d(""),i("")},children:e("reset")})]})]})]}),(0,t.jsx)(P.Button,{size:"sm",disabled:!m,onClick:()=>{i(o),l.toast.success(e("applied"))},children:e("apply")})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{type:"button",className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground",onClick:()=>h(!u),children:[(0,t.jsx)(c.ChevronDown,{className:(0,U.cn)("h-3.5 w-3.5 transition-transform",u&&"rotate-180")}),e("availableVariables")]}),u&&(0,t.jsx)("div",{className:"mt-2 space-y-3",children:eM.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-1 text-[11px] font-medium text-muted-foreground",children:e.label}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:e.vars.map(e=>(0,t.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 text-[11px]",children:e},e))})]},e.label))})]})]})},eS=({list:e,selectedId:r,onSelect:a})=>(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2 md:grid-cols-3",children:e.map(e=>{let l;return(0,t.jsxs)("button",{type:"button",onClick:()=>a(e.id),className:(0,U.cn)("flex flex-col gap-2 rounded-lg border p-3 text-left transition-colors",r===e.id?"border-primary bg-accent":"border-border hover:border-muted-foreground/50"),children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:e.name}),(0,t.jsx)("div",{className:"flex h-5 items-center gap-1 rounded px-2",style:{backgroundColor:e.colors.background},children:[(l=e.colors).red,l.green,l.yellow,l.blue,l.magenta,l.cyan,l.white].map((e,r)=>(0,t.jsx)("div",{className:"h-2.5 w-2.5 rounded-full",style:{backgroundColor:e}},r))})]},e.id)})}),eT=()=>{let e=(0,a.useTranslations)("settings.terminal"),r=(0,a.useTranslations)("common"),{mode:l,themeIds:n,setTerminalTheme:s,themes:i}=(0,G.default)(),o=i.filter(e=>"dark"===e.variant),d=i.filter(e=>"light"===e.variant);return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("theme")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("themeDescription")})]}),(0,t.jsxs)(q.Tabs,{defaultValue:l,children:[(0,t.jsxs)(q.TabsList,{children:[(0,t.jsx)(q.TabsTrigger,{value:"dark",children:r("dark")}),(0,t.jsx)(q.TabsTrigger,{value:"light",children:r("light")})]}),(0,t.jsx)(q.TabsContent,{value:"dark",className:"mt-3",children:(0,t.jsx)(eS,{list:o,selectedId:n.dark,onSelect:e=>s("dark",e)})}),(0,t.jsx)(q.TabsContent,{value:"light",className:"mt-3",children:(0,t.jsx)(eS,{list:d,selectedId:n.light,onSelect:e=>s("light",e)})})]})]})},eE=()=>{let e=(0,a.useTranslations)("settings.editor"),n=(0,a.useTranslations)("common"),s=(0,W.default)(e=>e.editorUrl),i=(0,W.default)(e=>e.editorPreset),o=(0,W.default)(e=>e.setEditorUrl),d=(0,W.default)(e=>e.setEditorPreset),[c,u]=(0,r.useState)(s),[h,m]=(0,r.useState)(i),p="code-server"===h||"custom"===h,f=h!==i||p&&c.trim()!==s,x=(0,$.buildEditorUrl)(h,c,"/Users/me/project"),g=()=>{let t=p?c.trim():"";if("code-server"===h&&t)try{let r=new URL(t);if("http:"!==r.protocol&&"https:"!==r.protocol)return void l.toast.error(e("errorHttpRequired"))}catch{l.toast.error(e("errorHttpRequired"));return}"custom"!==h||!t||t.includes("{folder}")||t.includes("{folderEncoded}")?(u(t),o(t),d(h),l.toast.success(n("saved"))):l.toast.error(e("errorCustomTemplate"))};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("preset")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("presetDescription")})]}),(0,t.jsx)(F.RadioGroup,{value:h,onValueChange:e=>m(e),className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:$.EDITOR_PRESETS.map(r=>(0,t.jsxs)(O.Label,{htmlFor:`editor-preset-${r}`,className:(0,U.cn)("flex cursor-pointer items-center gap-2 rounded-md border border-border px-3 py-2 text-sm font-normal",h===r&&"border-foreground/30 bg-accent"),children:[(0,t.jsx)(F.RadioGroupItem,{id:`editor-preset-${r}`,value:r}),(0,t.jsx)(X.EditorIcon,{preset:r,className:"h-5 w-5 shrink-0"}),e(`presets.${r}`)]},r))})]}),p&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:"custom"===h?e("customTemplate"):e("url")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"custom"===h?e("customTemplateDescription"):e("urlDescription")}),(0,t.jsx)(z.Input,{placeholder:"custom"===h?"myeditor://open?path={folderEncoded}":"https://example.com:8080",value:c,onChange:e=>u(e.target.value),onKeyDown:e=>{"Enter"===e.key&&g()}}),"code-server"===h&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.rich("urlHelp",{link:e=>(0,t.jsx)("a",{href:"https://github.com/coder/code-server",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-foreground",children:e}),code:()=>(0,t.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 text-xs",children:"?folder="})})}),(0,t.jsxs)("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed",children:[(0,t.jsx)("p",{className:"text-muted-foreground/60",children:"# Install on macOS"}),(0,t.jsx)("p",{children:"brew install code-server"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:"# Run"}),(0,t.jsx)("p",{children:"code-server --port 8080"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:"# External access via Tailscale (optional)"}),(0,t.jsx)("p",{children:"tailscale serve --bg --https=8443 http://localhost:8080"})]})]}),"custom"===h&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.rich("customHelp",{folder:()=>(0,t.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 text-xs",children:"{folder}"}),folderEncoded:()=>(0,t.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 text-xs",children:"{folderEncoded}"})})})]}),!p&&"off"!==h&&(0,t.jsx)("p",{className:"rounded-md border border-border bg-muted/30 p-3 text-sm text-muted-foreground",children:e("localIdeHint")}),"off"===h&&(0,t.jsx)("p",{className:"rounded-md border border-border bg-muted/30 p-3 text-sm text-muted-foreground",children:e("offHint")}),x&&(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:e("preview")}),(0,t.jsx)("code",{className:"block break-all rounded-md bg-muted p-2 font-mono text-xs",children:x})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(P.Button,{disabled:!f,onClick:g,children:n("save")})})]})},eA=()=>{let e=(0,a.useTranslations)("settings.claude"),r=(0,W.default)(e=>e.dangerouslySkipPermissions),l=(0,W.default)(e=>e.setDangerouslySkipPermissions);return(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"skip-permissions",className:"text-sm font-medium",children:e("skipPermissions")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("skipPermissionsDescription")})]}),(0,t.jsx)(I.Switch,{id:"skip-permissions",checked:r,onCheckedChange:l})]})})},eR=({value:e,onChange:r,ariaLabel:l})=>{let n=(0,a.useTranslations)("settings.notification");return(0,t.jsxs)(K.Popover,{children:[(0,t.jsxs)(K.PopoverTrigger,{"aria-label":l,className:"inline-flex h-8 min-w-[140px] items-center justify-between gap-2 rounded-md border border-input bg-background px-3 text-sm hover:bg-accent hover:text-accent-foreground",children:[(0,t.jsx)("span",{children:n(`positions.${e}`)}),(0,t.jsx)(h.ChevronsUpDown,{className:"h-3.5 w-3.5 shrink-0 opacity-50"})]}),(0,t.jsx)(K.PopoverContent,{align:"end",className:"w-[160px] p-1",children:_.TOAST_POSITIONS.map(a=>(0,t.jsxs)("button",{type:"button",className:(0,U.cn)("flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden hover:bg-accent hover:text-accent-foreground",e===a&&"bg-accent text-accent-foreground"),onClick:()=>r(a),children:[(0,t.jsx)(d.Check,{className:(0,U.cn)("h-3.5 w-3.5",e===a?"opacity-100":"opacity-0")}),n(`positions.${a}`)]},a))})]})},eP=()=>{let e=(0,a.useTranslations)("settings.notification"),l=(0,W.default)(e=>e.notificationsEnabled),n=(0,W.default)(e=>e.setNotificationsEnabled),s=(0,W.default)(e=>e.toastOnCompleteEnabled),i=(0,W.default)(e=>e.setToastOnCompleteEnabled),o=(0,W.default)(e=>e.toastDuration),d=(0,W.default)(e=>e.setToastDuration),c=(0,W.default)(e=>e.toastPositionDesktop),u=(0,W.default)(e=>e.setToastPositionDesktop),h=(0,W.default)(e=>e.toastPositionMobile),m=(0,W.default)(e=>e.setToastPositionMobile),[p,f]=(0,r.useState)(null),x=p??String(Math.round(o/1e3)),g=!window.electronAPI&&!("PushManager"in window),y=!window.electronAPI&&"Notification"in window&&"denied"===Notification.permission;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"notifications-enabled",className:"text-sm font-medium",children:e("enable")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("enableDescription")})]}),(0,t.jsx)(I.Switch,{id:"notifications-enabled",checked:l,onCheckedChange:n,disabled:g||y})]}),y&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:e("permissionDenied")}),g&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("notSupported")})]}),(0,t.jsxs)("div",{className:"border-t pt-6 space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("toastSection")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastSectionDescription")})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"toast-enabled",className:"text-sm font-medium",children:e("toastEnable")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastEnableDescription")})]}),(0,t.jsx)(I.Switch,{id:"toast-enabled",checked:s,onCheckedChange:i})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("toastDuration")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastDurationDescription")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(z.Input,{type:"number",min:1,max:60,step:1,value:x,onChange:e=>f(e.target.value),onBlur:()=>{let e=Number(p);if(f(null),!Number.isFinite(e))return;let t=1e3*Math.min(60,Math.max(1,Math.round(e)));t!==o&&d(t)},onKeyDown:e=>{"Enter"===e.key&&e.target.blur()},disabled:!s,className:"h-8 w-20 text-sm"}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:e("toastDurationUnit")})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("toastPositionDesktop")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastPositionDesktopDescription")})]}),(0,t.jsx)(eR,{value:c,onChange:u,ariaLabel:e("toastPositionDesktop")})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("toastPositionMobile")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastPositionMobileDescription")})]}),(0,t.jsx)(eR,{value:h,onChange:m,ariaLabel:e("toastPositionMobile")})]})]})]})},eL=()=>{let e=(0,a.useTranslations)("settings.auth"),n=(0,a.useTranslations)("common"),s=(0,W.default)(e=>e.hasAuthPassword),o=(0,W.default)(e=>e.changePassword),[d,c]=(0,r.useState)(""),[u,h]=(0,r.useState)(!1),p=u&&d.trim().length>=4,f=e=>{c(e),h(!0)};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)(B.Field,{children:[(0,t.jsx)(B.FieldLabel,{htmlFor:"auth-password",children:e("changePassword")}),(0,t.jsx)(B.FieldDescription,{children:e("changePasswordDescription")}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(z.Input,{id:"auth-password",placeholder:s?e("newPasswordPlaceholder"):e("passwordPlaceholder"),value:d,onChange:e=>f(e.target.value)}),(0,t.jsx)(P.Button,{variant:"outline",size:"icon",className:"shrink-0",onClick:()=>{let e;return f((e=new Uint8Array(8),crypto.getRandomValues(e),Array.from(e,e=>e.toString(16).padStart(2,"0")).join("").slice(0,8)))},children:(0,t.jsx)(m.Dices,{className:"h-4 w-4"})})]})]}),(0,t.jsx)(B.FieldDescription,{children:e("resetHint",{action:i.default?e("restartApp"):e("restartServer")})}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(P.Button,{disabled:!p,onClick:()=>{o(d.trim()),c(""),h(!1),l.toast.success(e("savedRestart",{action:i.default?e("restartAppAction"):e("restartServerAction")}))},children:n("save")})})]})},ez=()=>{let e=(0,a.useTranslations)("settings.system"),n=(0,a.useTranslations)("common"),s=(0,W.default)(e=>e.systemResourcesEnabled),o=(0,W.default)(e=>e.setSystemResourcesEnabled),d=(0,W.default)(e=>e.networkAccess),c=(0,W.default)(e=>e.setNetworkAccess),u=(0,W.default)(e=>e.hostEnvLocked),h=(0,W.default)(e=>e.bindHostIsLocal),[m,p]=(0,r.useState)(!1),f=async()=>{p(!0);try{let t=await fetch("/api/uploads/cleanup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:"all"})});if(!t.ok)throw Error(`HTTP ${t.status}`);let r=await t.json();r.deleted>0?l.toast.success(e("attachedImagesCleaned",{count:r.deleted})):l.toast.info(e("attachedImagesNothing"))}catch{l.toast.error(n("error"))}finally{p(!1)}},[g,y]=(0,r.useState)(d);(0,r.useEffect)(()=>{y(d)},[d]);let v=g!==d,b=h&&"localhost"!==g;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(j.Network,{className:"mt-0.5 h-4 w-4 text-muted-foreground"}),(0,t.jsxs)("div",{className:"flex-1 space-y-0.5",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("networkAccess")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:u?e("networkAccessLocked"):e("networkAccessDescription")})]})]}),(0,t.jsx)(F.RadioGroup,{value:g,onValueChange:e=>y(e),disabled:u,className:"gap-2",children:["localhost","tailscale","all"].map(r=>(0,t.jsxs)("label",{htmlFor:`network-access-${r}`,className:"flex cursor-pointer items-start gap-3 rounded-md border bg-background px-3 py-2.5 aria-disabled:cursor-not-allowed aria-disabled:opacity-60","aria-disabled":u||void 0,children:[(0,t.jsx)(F.RadioGroupItem,{value:r,id:`network-access-${r}`,className:"mt-0.5"}),(0,t.jsxs)("div",{className:"flex-1 space-y-0.5",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e(`networkAccessOptions.${r}.label`)}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e(`networkAccessOptions.${r}.description`)})]})]},r))}),!u&&(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:b?e("restartRequired"):""}),(0,t.jsx)(P.Button,{size:"sm",onClick:()=>{c(g),l.toast.success(b?e("restartRequired"):n("saved"))},disabled:!v,children:n("save")})]})]}),i.default&&(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"system-resources",className:"text-sm font-medium",children:e("showResources")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("showResourcesDescription")})]}),(0,t.jsx)(I.Switch,{id:"system-resources",checked:s,onCheckedChange:o})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(x.ImageIcon,{className:"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("attachedImages")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("attachedImagesDescription")})]})]}),(0,t.jsxs)(P.Button,{variant:"outline",size:"sm",className:"gap-1.5 shrink-0",onClick:f,disabled:m,children:[(0,t.jsx)(S.Trash2,{className:"h-3.5 w-3.5"}),e("cleanAttachedImages")]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("tmuxReset")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("tmuxResetDescription",{action:i.default?e("restartApp"):e("restartServer")})})]}),(0,t.jsxs)(V.AlertDialog,{children:[(0,t.jsx)(V.AlertDialogTrigger,{render:(0,t.jsxs)(P.Button,{variant:"destructive",size:"sm",className:"gap-1.5 shrink-0",children:[(0,t.jsx)(N.RotateCcw,{className:"h-3.5 w-3.5"}),n("reset")]})}),(0,t.jsxs)(V.AlertDialogContent,{children:[(0,t.jsxs)(V.AlertDialogHeader,{children:[(0,t.jsx)(V.AlertDialogTitle,{children:e("tmuxReset")}),(0,t.jsx)(V.AlertDialogDescription,{children:e("tmuxResetConfirm")})]}),(0,t.jsxs)(V.AlertDialogFooter,{children:[(0,t.jsx)(V.AlertDialogCancel,{children:n("cancel")}),(0,t.jsx)(V.AlertDialogAction,{className:"bg-ui-red hover:bg-ui-red/80",onClick:()=>{window.location.href="/reset"},children:n("reset")})]})]})]})]})]})};e.s(["default",0,({open:e,onOpenChange:l})=>{let n=(0,a.useTranslations)("settings"),s=(0,a.useTranslations)("common"),[o,d]=(0,r.useState)("general"),c=ej.find(e=>e.id===o);return(0,t.jsx)(H.Dialog,{open:e,onOpenChange:l,children:(0,t.jsx)(H.DialogContent,{className:"inset-0 max-w-none sm:max-w-none translate-x-0 translate-y-0 gap-0 overflow-hidden rounded-none p-0 md:inset-auto md:top-1/2 md:left-1/2 md:h-auto md:w-[calc(100%-2rem)] md:min-w-3xl md:max-w-3xl md:-translate-x-1/2 md:-translate-y-1/2 md:rounded-xl",showCloseButton:!1,children:(0,t.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden md:h-[520px] md:flex-row",children:[(0,t.jsxs)("div",{className:"flex shrink-0 flex-col border-b bg-muted/30 px-3 pt-3 pb-0 md:p-3 md:w-48 md:border-b-0 md:border-r",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between px-2 md:mb-4",children:[(0,t.jsx)(H.DialogTitle,{className:"text-base font-semibold",children:n("title")}),(0,t.jsxs)(P.Button,{variant:"ghost",size:"icon",onClick:()=>l(!1),className:"h-6 w-6 opacity-70 hover:opacity-100",children:[(0,t.jsx)(E.X,{className:"h-[18px] w-[18px]"}),(0,t.jsx)("span",{className:"sr-only",children:s("close")})]})]}),(0,t.jsx)("nav",{className:"flex gap-1 overflow-x-auto px-1 pb-2 md:flex-col md:px-0 md:pb-0",children:ej.filter(e=>!e.electronOnly||i.default).map(e=>(0,t.jsxs)(P.Button,{variant:"ghost",onClick:()=>d(e.id),className:(0,U.cn)("shrink-0 justify-start gap-2 whitespace-nowrap px-3 py-2 text-sm font-medium md:gap-3",o===e.id?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground"),children:[e.icon,n(`tabs.${e.labelKey}`)]},e.id))})]}),(0,t.jsxs)("div",{className:"min-h-0 min-w-0 flex-1 overflow-x-hidden overflow-y-auto p-4 md:p-6",children:[(0,t.jsx)("h2",{className:"mb-6 text-lg font-semibold",children:c?n(`tabs.${c.labelKey}`):""}),"general"===o&&(0,t.jsx)(eC,{}),"appearance"===o&&(0,t.jsx)(eD,{}),"terminal"===o&&(0,t.jsx)(eT,{}),"notification"===o&&(0,t.jsx)(eP,{}),"editor"===o&&(0,t.jsx)(eE,{}),"claude"===o&&(0,t.jsx)(eA,{}),"auth"===o&&(0,t.jsx)(eL,{}),"tailscale"===o&&(0,t.jsx)(ek,{}),"quick-prompts"===o&&(0,t.jsx)(J.default,{}),"sidebar-items"===o&&(0,t.jsx)(eh,{}),"system"===o&&(0,t.jsx)(ez,{})]})]})})})}],934048)}]);
|