@inkeep/open-knowledge 0.72.0-beta.1 → 0.72.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD_PARTY_NOTICES.md +24 -4
- package/dist/cli.mjs +6 -6
- package/dist/constants-BWwITVsY.mjs +1 -0
- package/dist/index.d.mts +50 -1
- package/dist/index.mjs +1 -1
- package/dist/init-B-wniKG4.mjs +1 -0
- package/dist/{init-D3uWps6V.mjs → init-CWcaDlCV.mjs} +2 -2
- package/dist/{launch-json-removal-Cb5JVjUJ.mjs → launch-json-removal-D0gfkVnw.mjs} +1 -1
- package/dist/loader-ClY3YXAr.mjs +1 -0
- package/dist/{loader-BJkJu_Y4.mjs → loader-hAzEG8eI.mjs} +1 -1
- package/dist/preview-C605fqZX.mjs +1 -0
- package/dist/{preview-CQGCCvOv.mjs → preview-FVftoA1B.mjs} +1 -1
- package/dist/public/assets/{ActivityModeContent-D6Br5xYs.js → ActivityModeContent-CSx6poL6.js} +1 -1
- package/dist/public/assets/{AddPropertiesButton-D2QC5a0y.js → AddPropertiesButton-DXjzjICF.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-Bbm1t3vi.js → AgentDiffPane-D3ZqC-5y.js} +1 -1
- package/dist/public/assets/{AgentIconCluster-RWclNpfz.js → AgentIconCluster-mIIoSODi.js} +1 -1
- package/dist/public/assets/{AppMenubar-B76J1mnO.js → AppMenubar-CCjUhkgg.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-CaBn84Ep.js → CodeMirrorPropInput-Bo7jcqv0.js} +1 -1
- package/dist/public/assets/{ConfigSharingInfoTooltip-BT8NSNpC.js → ConfigSharingInfoTooltip-CK9XrP2K.js} +1 -1
- package/dist/public/assets/{ConsentDialogBody-CdTmAsAj.js → ConsentDialogBody-CpPyfOOm.js} +1 -1
- package/dist/public/assets/{DocumentContext-avYx9HfE.js → DocumentContext-DW2Sgfp0.js} +2 -2
- package/dist/public/assets/{EditorModeToggle-Bw00uYRx.js → EditorModeToggle-CRx6a4xr.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-AIzGmViP.js → EnableSyncConfirmDialog-BbglKynl.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-B3lMLUyK.js → ExcalidrawDocEditor-Cx-PkkWC.js} +1 -1
- package/dist/public/assets/FeedbackForm-gNbKRMDT.js +1 -0
- package/dist/public/assets/{GraphPanel-BslSE6Rs.js → GraphPanel-BERS2Xxc.js} +1 -1
- package/dist/public/assets/{ImageAttachments-B3v4V_wq.js → ImageAttachments-n3q9E21B.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-_-_27gp-.js → ImportSkillDialog-Buq_cGPy.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-b5hf0c12.js → LintConfigEditor-oCqNvP7d.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-C4m9IvIx.js → ManagedArtifactProperties-CPB8QDOa.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-DwP8yFwK.js +1 -0
- package/dist/public/assets/{McpConsentDialogBody-B0cKqNAZ.js → McpConsentDialogBody-DBFdcvuZ.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-Bw0spqld.js → MermaidDocEditor-DoSSJiAU.js} +1 -1
- package/dist/public/assets/{OpenInAgentMenuItem-BDg1hjU8.js → OpenInAgentMenuItem-B-A26xF4.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-CqAThkeg.js → PropertyDisplayRow-CqbjHwwA.js} +1 -1
- package/dist/public/assets/{ReportBugDialogBody-D5gnrY-R.js → ReportBugDialogBody-ByKRBwrn.js} +1 -1
- package/dist/public/assets/{ReportBugMenuTrigger-C3h3CSq-.js → ReportBugMenuTrigger-BT4k4UZV.js} +2 -2
- package/dist/public/assets/{RowDisclosure-7_AiotxM.js → RowDisclosure-D03pq8gd.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-D1R3Sh2v.js → SchemaConfigEditor-DLF8mr_B.js} +1 -1
- package/dist/public/assets/{SessionsHost-BZSJ7b41.js → SessionsHost-PvYlMZLt.js} +2 -2
- package/dist/public/assets/SettingsDialogBody-CGABSyyD.js +12 -0
- package/dist/public/assets/{ShareReceiveMissDialog-BLGRUEIB.js → ShareReceiveMissDialog-4JK4Afbo.js} +1 -1
- package/dist/public/assets/{SkillCostValue-n_G2nfYn.js → SkillCostValue-EajgoFy_.js} +1 -1
- package/dist/public/assets/{SkillInstallMenu-BuIpRm5q.js → SkillInstallMenu-vK6OSpiK.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-DkPpXgsk.js → SkillOriginInline-Dj_Ri0FX.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-o69NuC2o.js → SkillToolbarControls-C6eBVVk1.js} +1 -1
- package/dist/public/assets/{SlidesToolbarControls-DRYjoVIj.js → SlidesToolbarControls-DY6ttC2a.js} +1 -1
- package/dist/public/assets/{SourceEditor-j0Oy5-Ub.js → SourceEditor-BRi3EW6e.js} +1 -1
- package/dist/public/assets/{TerminalPanel-Dt20JtHr.js → TerminalPanel-lplfgXxO.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-BmX3dvBA.js → TerminalWindowApp-CzStYFjF.js} +1 -1
- package/dist/public/assets/{TextDocEditor-Dg49b5Fz.js → TextDocEditor-BVU_T1nc.js} +1 -1
- package/dist/public/assets/{ThreadView-DHQJWRJ8.js → ThreadView-B3rNh-vX.js} +1 -1
- package/dist/public/assets/{TimelineDiffPane-ihWm-KX_.js → TimelineDiffPane-Dz0cEdgE.js} +1 -1
- package/dist/public/assets/{agent-connection-status-DNcSO8Of.js → agent-connection-status-VLm1l6MH.js} +1 -1
- package/dist/public/assets/{auth-state-cache-BFwDxz1x.js → auth-state-cache-wQqrLqzV.js} +4 -4
- package/dist/public/assets/{comment-chips-MmWHfkrw.js → comment-chips-BTwi9aHu.js} +1 -1
- package/dist/public/assets/{config-provider-DDlH5XLd.js → config-provider-CkrfHldq.js} +3 -3
- package/dist/public/assets/{dist-BjJaywqn.js → dist-BX7qfUal.js} +1 -1
- package/dist/public/assets/{dist-DBMXz-r_.js → dist-CsrrNdnj.js} +1 -1
- package/dist/public/assets/dist-DYso7MCm.js +1 -0
- package/dist/public/assets/{dist-wcXwpuqG.js → dist-tLQ-ULW1.js} +1 -1
- package/dist/public/assets/{dist-GoOli512.js → dist-zcYT-cpc.js} +1 -1
- package/dist/public/assets/{doc-undo-manager-CNOE_leW.js → doc-undo-manager-CPWQABEA.js} +1 -1
- package/dist/public/assets/{dropdown-menu--ZF4igWe.js → dropdown-menu-SORDKiaq.js} +1 -1
- package/dist/public/assets/floating-ui.dom-CDtYEnEj.js +1 -0
- package/dist/public/assets/globals-Dphjn3Yt.css +1 -0
- package/dist/public/assets/i18n-Da7WHZe6.js +1 -0
- package/dist/public/assets/index-pdO5v09U.js +2205 -0
- package/dist/public/assets/{markdownlint-rule-browser-C70syIyl.js → markdownlint-rule-browser-BhjLeHcZ.js} +1 -1
- package/dist/public/assets/messages--JnqpgOb.js +1 -0
- package/dist/public/assets/messages--gUdia_5.js +1 -0
- package/dist/public/assets/messages-Bg6waVkx.js +1 -0
- package/dist/public/assets/messages-BjU_8px0.js +1 -0
- package/dist/public/assets/messages-CPorGTui.js +1 -0
- package/dist/public/assets/messages-D2kPydYD.js +1 -0
- package/dist/public/assets/messages-DK2UgHWp.js +1 -0
- package/dist/public/assets/messages-DMbO4A7Z.js +1 -0
- package/dist/public/assets/messages-IESTLOtJ.js +1 -0
- package/dist/public/assets/messages-JiwS-kMF.js +1 -0
- package/dist/public/assets/messages-bHA62mu3.js +1 -0
- package/dist/public/assets/messages-hiCq1tp-.js +1 -0
- package/dist/public/assets/{pending-receive-nav-store-JHjfq5my.js → pending-receive-nav-store-D5-DrypM.js} +1 -1
- package/dist/public/assets/{popover-BYD_0UMt.js → popover-CBJqdXoA.js} +1 -1
- package/dist/public/assets/{prod-CjhMsIt8.js → prod-DDPjOXpF.js} +1 -1
- package/dist/public/assets/{progress-DyuMaHpo.js → progress-DeFcA31j.js} +1 -1
- package/dist/public/assets/{project-paths-CTKMJD3w.js → project-paths-BHj1N2_J.js} +1 -1
- package/dist/public/assets/{select-BKzcW_PB.js → select-ByJwKu6h.js} +1 -1
- package/dist/public/assets/{selection-context-b6fqlX7H.js → selection-context-BIa29kJ8.js} +1 -1
- package/dist/public/assets/{src-YPYliXpo.js → src-ByO9uVZB.js} +1 -1
- package/dist/public/assets/{tag-pill-input-NZmlTNmF.js → tag-pill-input-By-KRpAS.js} +1 -1
- package/dist/public/assets/{terminal-cli-display-B4B1SuEp.js → terminal-cli-display-BNnRIpgq.js} +1 -1
- package/dist/public/assets/{tooltip-DttaCTqz.js → tooltip-BnyyQDRs.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-B8XZFG6h.js → typing-burst-detector-PnjW2-x3.js} +1 -1
- package/dist/public/assets/{uninstall-BxVvvQ3I.js → uninstall-Cfx0qbqa.js} +1 -1
- package/dist/public/assets/{use-activity-panel-BTpRB5o1.js → use-activity-panel-HmfzKdzs.js} +1 -1
- package/dist/public/assets/{use-open-skill-BRRyog-h.js → use-open-skill-DzszCWzx.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-D53OcVAl.js → use-terminal-enabled-Bre_0Sqg.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-BCOSn9yc.js → use-timeline-entry-diff-BexxkO9d.js} +1 -1
- package/dist/public/index.html +40 -40
- package/dist/public/uninstall.html +5 -5
- package/dist/{registry-probes-CTqRTiQ1.mjs → registry-probes-BK8Gw65W.mjs} +1 -1
- package/dist/{removal-file-path-rM4dCktp.mjs → removal-file-path-BhN_h0Rm.mjs} +1 -1
- package/dist/{repair-launch-json-DLTE7Wqq.mjs → repair-launch-json-QWDfpWfu.mjs} +1 -1
- package/dist/{repair-mcp-configs-DlzATFLc.mjs → repair-mcp-configs-CGM7N62T.mjs} +1 -1
- package/dist/src-2phljj3W.mjs +1 -0
- package/dist/{src-Bym5H5Rv.mjs → src-8U8NRuX2.mjs} +1 -1
- package/dist/{start-Gueh8pCQ.mjs → start-BcH8YieI.mjs} +2 -2
- package/dist/start-CWRlBbxO.mjs +1 -0
- package/package.json +4 -4
- package/dist/constants-BHyQgY7K.mjs +0 -1
- package/dist/init-sIZj5NtR.mjs +0 -1
- package/dist/loader-DsveScG9.mjs +0 -1
- package/dist/preview-C3mqQMyf.mjs +0 -1
- package/dist/public/assets/FeedbackForm-CQP7-Thy.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-BTZ9pf__.js +0 -1
- package/dist/public/assets/SettingsDialogBody-DJlVd3Lf.js +0 -12
- package/dist/public/assets/dist-CMrReMig.js +0 -1
- package/dist/public/assets/floating-ui.dom-BcZPrP06.js +0 -1
- package/dist/public/assets/globals-Ch23_3FO.css +0 -1
- package/dist/public/assets/i18n-C4053E1c.js +0 -1
- package/dist/public/assets/index-CMIN3mxx.js +0 -2205
- package/dist/public/assets/messages-3gjCM9Hp.js +0 -1
- package/dist/public/assets/messages-4g9WFtqZ.js +0 -1
- package/dist/public/assets/messages-82g1isaV.js +0 -1
- package/dist/public/assets/messages-A3t6jG7o.js +0 -1
- package/dist/public/assets/messages-BYVte33c.js +0 -1
- package/dist/public/assets/messages-CFy1VdRh.js +0 -1
- package/dist/public/assets/messages-CHMCyj_H.js +0 -1
- package/dist/public/assets/messages-CvZuXVc5.js +0 -1
- package/dist/public/assets/messages-DCzNz6_z.js +0 -1
- package/dist/public/assets/messages-DN76EHsp.js +0 -1
- package/dist/public/assets/messages-QY_0Lilx.js +0 -1
- package/dist/public/assets/messages-tLVODCA0.js +0 -1
- package/dist/src-eF5Y6xOI.mjs +0 -1
- package/dist/start-BPZlYLgl.mjs +0 -1
- /package/dist/public/assets/{globals-CQVYUd1p.js → globals-Cs3w5NCz.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ar-SA-PQUY64WN-DM_QaRYr.js","./chunk-SRAX5OIU-E5XcbDos.js","./chunk-CYidjpOJ.js","./az-AZ-OXJXL76K-_P5M5f3C.js","./bg-BG-W2GKIJDF-D53WBXMw.js","./bn-BD-TGL7M4PJ-CV1T_81r.js","./bn-IN-BKETKYEH-BJb2NhdV.js","./ca-ES-LD5SCRVV-tcmNCv9X.js","./cs-CZ-OFPU5DBV-iDH0Hg0Z.js","./da-DK-FRDJFYWF-B1Cya5Tb.js","./de-CH-ZG7H3QK3-CcXz9YEZ.js","./de-DE-SIJYH4IH-CDO_gPTP.js","./el-GR-IEE2CGI2-CFTYnD1d.js","./en-SJ2YIMFF-B1Abf6vd.js","./chunk-FLYJHZSQ-CUkq5pFS.js","./es-ES-TVVPWKV5-ib3oPRTG.js","./eu-ES-CGBMFQDT-ViK2y4W9.js","./fa-IR-IE6XAPR4-CGgNRfNg.js","./fi-FI-P7TKNHRM-BszXjxHP.js","./fr-FR-QI2XZNT7-CBLhflXo.js","./gl-ES-TLYCNOZZ-wFJs6i4_.js","./he-IL-ZX43XLGP-C_R5C_fe.js","./hi-IN-UTYRMTUF-DQZO1yHB.js","./hu-HU-AJOSEBW6-BUsT9HRh.js","./id-ID-ETLTVG6C-s5qbf2Ao.js","./it-IT-B4B6TP6L-De6zQkzI.js","./ja-JP-IYKVURR5-BQTKh_DM.js","./kaa-SE2BUIKX-D1K3PlL4.js","./kab-KAB-Y3GLKXLR-DBnwQdvF.js","./kk-KZ-ABWUFVOH-DHf8ZV-e.js","./km-KH-PCWDKPHP-Iu7zzLUx.js","./ko-KR-7JQDXKGM-Bu2NgGcQ.js","./ku-TR-NAH2Q5B7-DMhtdDTs.js","./lt-LT-VQFYRSNQ-DVatlecz.js","./lv-LV-T62VSYUM-CdSYe2hR.js","./mr-IN-V4FHLCJE-B7_Y77Sd.js","./my-MM-E3SQ6E54-7cjvFPfX.js","./nb-NO-MLNOFN5H-C9B1CUd8.js","./nl-NL-D5L3ZV4M-C0hHNvou.js","./nn-NO-NNHDGPKB-CfmfS2IJ.js","./oc-FR-DWCRF55G-BhFGEoNX.js","./pa-IN-3JSAY44M-CSqV-9XT.js","./percentages-ETZPVQEE-81JmhTlD.js","./chunk-7XWMRXBY-DwWPp0aI.js","./pl-PL-ACURYKP3-BB56Bqut.js","./pt-BR-LOX7MLGD-DoO9BJNO.js","./pt-PT-CZ2U2RFQ-DAvnxFdF.js","./ro-RO-2HECL2X6-1AJv1dSJ.js","./ru-RU-HAYNXO46-CW9RvsSL.js","./si-LK-W5KNS4H6-CypMzau_.js","./sk-SK-7K2CFGDV-BwLg7NlU.js","./sl-SI-OXV2QZWW-B6B9xccI.js","./sv-SE-JTOBZRGL-Dlkf7uU5.js","./ta-IN-KFAVKXGT-BQUf6zg7.js","./th-TH-VDMSCPDL-Bfq-aKaw.js","./tr-TR-CEZ6GX45-D_D7WdP-.js","./uk-UA-Q3H3OXQC-8cnXoH3E.js","./uz-UZ-NGCSWWPX-x-3Xjsag.js","./vi-VN-P3NDEVPS-B9Fd87wN.js","./zh-CN-SS3O57GA-Bi1o8_Yt.js","./zh-HK-LWJT3VCF-kQHHZuhX.js","./zh-TW-VJXC72RT-KGVgIdE7.js","./image-ZVKINSPA-CKjpAGxL.js","./chunk-RM4UPSZO-BxyNl4pZ.js","./preload-helper-Chd9yIcd.js","./chunk-A66AFZZU-BIdRzPTk.js","./CodeMirrorEditor-UCMRAMCV-CimHotRj.js","./dist-DqQhIbz6.js","./dist-AflZtDqw.js","./w3c-keyname-C7Rznu6R.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./dist-zkZDYJ1q.js","./dist-CFnVH4pe.js","./mermaid.core-BJRhq8df.js","./chunk-4I5QYGJK-BGVh2GK-.js","./src-DTnqSW2M.js","./src-DlFhp60C.js","./chunk-Y2CYZVJY-Bw2nvaMQ.js","./chunk-I66GZJ75-BHlRfhIF.js","./chunk-NSK5VX7P-BQFPuZJ9.js","./dist-CK4VZUF5.js","./chunk-WRU74C26-D98CU6Kk.js","./chunk-3NCLNEKW-4TP5cLpE.js","./chunk-7BUUIJ7U-DLqi5zCh.js","./chunk-7Z6QIM7H--SJTgfpb.js","./line-BYgnxoOR.js","./path-kpTbN09k.js","./array-Cf_JnmE6.js","./chunk-QR6OTTB3-BswuTnmj.js","./chunk-UBXNYLIW-Ca6299qt.js","./chunk-W5SLKNZC-BDi5pMAq.js","./rough.esm-xhKrnp4d.js","./chunk-J7OUQ5F2-DXEFqi4b.js","./chunk-ZIRB5QZD-28xU0-HU.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{o as e,r as t,t as n}from"./chunk-CYidjpOJ.js";import{t as r}from"./preload-helper-Chd9yIcd.js";import{t as i}from"./jsx-runtime-BUgB2tll.js";import{t as a}from"./react-f2sANaYj.js";import{t as o}from"./react-dom-DPxgxlDT.js";import{t as s}from"./with-selector-PRoyWQiu.js";import{c,i as l,n as u,p as d,s as f}from"./dist-DBMXz-r_.js";import{f as p,h as m,i as h,m as g,n as _,p as v,u as y}from"./dist-BjJaywqn.js";import{a as b,i as x,n as S,o as C,r as w,s as T}from"./dist-GoOli512.js";import{i as E,n as ee,r as te,t as ne}from"./dist-BY_vnlVW2.js";import{t as re}from"./chunk-A66AFZZU-BIdRzPTk.js";import{i as D,n as ie,r as ae}from"./chunk-SRAX5OIU-E5XcbDos.js";import{$ as oe,$a as se,$c as ce,$i as le,$n as ue,$o as de,$r as fe,$s as pe,$t as me,A as he,Aa as ge,Ac as _e,Ai as ve,An as ye,Ao as be,Ar as xe,As as Se,At as Ce,B as we,Ba as Te,Bc as Ee,Bi as De,Bn as Oe,Bo as ke,Br as Ae,Bs as je,Bt as Me,C as Ne,Ca as Pe,Cc as Fe,Ci as Ie,Cl as Le,Cn as Re,Co as ze,Cr as Be,Cs as Ve,Ct as He,D as Ue,Da as We,Dc as Ge,Di as Ke,Dl as qe,Dn as Je,Do as Ye,Dr as Xe,Ds as Ze,Dt as Qe,E as $e,Ea as et,Ec as tt,Ei as nt,El as O,En as rt,Eo as it,Er as at,Es as ot,Et as st,F as ct,Fa as lt,Fc as ut,Fi as dt,Fn as ft,Fo as pt,Fr as mt,Fs as ht,Ft as gt,G as _t,Ga as vt,Gc as k,Gi as yt,Gn as bt,Go as xt,Gr as St,Gs as Ct,Gt as wt,H as Tt,Ha as Et,Hc as Dt,Hi as Ot,Hn as kt,Ho as At,Hr as jt,Hs as Mt,Ht as Nt,I as Pt,Ia as Ft,Ic as It,Ii as Lt,In as Rt,Io as zt,Ir as Bt,Is as Vt,It as Ht,J as Ut,Ja as Wt,Jc as Gt,Ji as Kt,Jn as qt,Jo as Jt,Jr as Yt,Js as Xt,Jt as Zt,K as Qt,Ka as $t,Kc as en,Ki as tn,Kn as nn,Ko as rn,Kr as an,Ks as on,Kt as sn,L as cn,La as ln,Lc as un,Li as A,Ln as dn,Lo as fn,Lr as pn,Ls as mn,Lt as hn,M as gn,Ma as _n,Mc as vn,Mi as yn,Mn as bn,Mo as xn,Mr as Sn,Ms as Cn,Mt as wn,N as Tn,Na as j,Nc as En,Ni as Dn,Nn as On,No as kn,Nr as An,Ns as jn,Nt as Mn,O as Nn,Oa as Pn,Oc as Fn,Oi as In,On as Ln,Oo as Rn,Or as zn,Os as Bn,Ot as Vn,P as Hn,Pa as Un,Pc as Wn,Pi as Gn,Pn as Kn,Po as qn,Pr as Jn,Ps as Yn,Pt as Xn,Q as Zn,Qa as Qn,Qc as $n,Qi as er,Qn as tr,Qo as nr,Qr as rr,Qs as ir,Qt as ar,R as or,Ra as sr,Rc as cr,Ri as lr,Rn as ur,Ro as dr,Rr as fr,Rs as pr,Rt as mr,S as hr,Sa as gr,Sc as _r,Si as vr,Sl as yr,Sn as br,So as xr,Sr,Ss as Cr,St as wr,T as Tr,Ta as Er,Tc as Dr,Ti as Or,Tl as kr,Tn as Ar,To as jr,Tr as Mr,Ts as Nr,Tt as Pr,U as Fr,Ua as Ir,Uc as M,Ui as Lr,Un as Rr,Uo as zr,Ur as Br,Us as Vr,Ut as Hr,V as Ur,Va as Wr,Vc as Gr,Vi as Kr,Vn as qr,Vo as Jr,Vr as Yr,Vs as Xr,Vt as Zr,W as Qr,Wa as $r,Wc as ei,Wi as ti,Wn as ni,Wo as ri,Wr as ii,Ws as ai,Wt as oi,X as si,Xa as ci,Xc as li,Xi as ui,Xn as N,Xo as di,Xr as fi,Xs as pi,Xt as mi,Y as hi,Ya as gi,Yc as _i,Yi as vi,Yn as yi,Yo as bi,Yr as xi,Ys as Si,Yt as Ci,Z as wi,Za as Ti,Zc as Ei,Zi as Di,Zn as Oi,Zo as ki,Zr as Ai,Zs as ji,Zt as Mi,_ as Ni,_a as Pi,_c as Fi,_i as Ii,_l as Li,_n as Ri,_o as zi,_r as Bi,_s as Vi,_t as Hi,a as Ui,aa as Wi,ac as Gi,ai as Ki,al as qi,an as Ji,ao as Yi,ar as Xi,at as Zi,b as Qi,ba as $i,bc as P,bi as ea,bl as ta,bn as na,bo as ra,br as ia,bs as aa,bt as oa,c as sa,ca,cc as la,ci as ua,cl as da,cn as F,cr as fa,cs as pa,ct as ma,d as ha,da as ga,dc as _a,di as va,dl as ya,dn as ba,do as xa,dr as Sa,ds as Ca,dt as wa,ea as I,ec as Ta,ei as Ea,el as Da,en as Oa,eo as ka,er as Aa,es as ja,et as Ma,f as Na,fa as Pa,fc as Fa,fi as Ia,fl as La,fn as Ra,fo as za,fr as Ba,ft as Va,g as Ha,ga as Ua,gc as Wa,gi as Ga,gl as Ka,gn as qa,go as Ja,gr as Ya,gs as Xa,gt as Za,ha as Qa,hc as $a,hi as eo,hl as to,hn as no,ho as ro,hr as io,hs as ao,ht as oo,i as so,ia as co,ic as lo,ii as uo,il as fo,in as po,io as mo,ir as ho,is as go,it as _o,j as vo,ja as yo,jc as bo,ji as xo,jn as So,jo as Co,jr as wo,js as To,jt as Eo,k as Do,ka as Oo,kc as ko,ki as Ao,kn as jo,ko as Mo,kr as No,ks as Po,kt as Fo,l as Io,la as Lo,lc as Ro,li as zo,ll as Bo,ln as Vo,lo as Ho,lr as Uo,ls as Wo,lt as Go,m as Ko,ma as qo,mc as Jo,mi as Yo,ml as Xo,mn as Zo,mo as Qo,mr as $o,ms as es,mt as ts,n as ns,na as rs,nc as is,ni as as,nl as os,nn as ss,no as cs,nr as ls,ns as us,nt as ds,o as fs,oa as ps,oc as ms,oi as hs,ol as gs,on as _s,oo as vs,or as ys,os as bs,ot as xs,p as Ss,pa as Cs,pc as ws,pi as Ts,pl as Es,pn as Ds,po as Os,pr as ks,ps as As,pt as js,q as Ms,qa as Ns,qc as Ps,qi as Fs,qn as Is,qo as L,qr as Ls,qs as Rs,qt as zs,r as Bs,ra as Vs,rc as Hs,ri as Us,rl as Ws,rn as Gs,ro as Ks,rr as qs,rs as Js,s as Ys,sa as Xs,sc as Zs,si as Qs,sl as $s,sn as ec,so as tc,sr as nc,ss as rc,st as ic,t as ac,ta as oc,tc as sc,ti as cc,tl as lc,tn as uc,to as dc,tr as fc,ts as pc,tt as mc,u as hc,ua as gc,uc as _c,ui as vc,ul as yc,un as bc,uo as xc,ur as Sc,us as Cc,ut as wc,v as Tc,va as Ec,vc as R,vi as Dc,vl as Oc,vn as kc,vo as Ac,vr as jc,vs as Mc,vt as Nc,w as Pc,wa as Fc,wc as Ic,wi as Lc,wl as Rc,wn as zc,wo as z,wr as Bc,ws as Vc,wt as Hc,x as Uc,xa as Wc,xc as Gc,xi as Kc,xl as qc,xn as Jc,xo as Yc,xr as Xc,xs as Zc,xt as Qc,y as $c,ya as el,yc as tl,yi as nl,yl as rl,yn as B,yo as il,yr as al,ys as ol,yt as sl,z as cl,za as ll,zc as ul,zi as dl,zn as fl,zo as pl,zr as ml,zs as hl,zt as gl}from"./chunk-RM4UPSZO-BxyNl4pZ.js";import{_ as _l}from"./chunk-FLYJHZSQ-CUkq5pFS.js";import{r as vl}from"./chunk-7XWMRXBY-DwWPp0aI.js";import{t as yl}from"./dist-CFnVH4pe.js";var V=e(a(),1);function bl(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=bl(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t);return r}function H(){for(var e=0,t,n,r=``;e<arguments.length;)(t=arguments[e++])&&(n=bl(t))&&(r&&(r+=` `),r+=n);return r}var xl=n(((e,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype.toString,m=Math.max,h=Math.min,g=function(){return f.Date.now()};function _(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=S(t)||0,y(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?m(S(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function _(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function v(e){return u=e,c=setTimeout(C,t),d?_(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?h(i,o-r):i}function x(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=g();if(x(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?_(e):(i=a=void 0,s)}function T(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function E(){return c===void 0?s:w(g())}function ee(){var e=g(),n=x(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return v(l);if(f)return c=setTimeout(C,t),_(l)}return c===void 0&&(c=setTimeout(C,t)),s}return ee.cancel=T,ee.flush=E,ee}function v(e,t,r){var i=!0,a=!0;if(typeof e!=`function`)throw TypeError(n);return y(r)&&(i=`leading`in r?!!r.leading:i,a=`trailing`in r?!!r.trailing:a),_(e,t,{leading:i,maxWait:t,trailing:a})}function y(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function b(e){return!!e&&typeof e==`object`}function x(e){return typeof e==`symbol`||b(e)&&p.call(e)==i}function S(e){if(typeof e==`number`)return e;if(x(e))return r;if(y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=y(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=v})),U=i(),Sl=e(o(),1),Cl=e(xl(),1),wl=0;function Tl(e,t){let n=`atom${++wl}`,r={toString(){return n}};return typeof e==`function`?r.read=e:(r.init=e,r.read=El,r.write=Dl),t&&(r.write=t),r}function El(e){return e(this)}function Dl(e,t,n){return t(this,typeof n==`function`?n(e(this)):n)}var Ol=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,kl=e=>`init`in e,Al=e=>!!e.write,jl=new WeakMap,Ml=e=>Fl(e)&&!jl.get(e)?.[1],Nl=(e,t)=>{let n=jl.get(e);n&&(n[1]=!0,n[0].forEach(e=>e(t)))},Pl=e=>{if(jl.has(e))return;let t=[new Set,!1];jl.set(e,t);let n=()=>{t[1]=!0};e.then(n,n),e.onCancel=e=>{t[0].add(e)}},Fl=e=>typeof e?.then==`function`,Il=e=>`v`in e||`e`in e,Ll=e=>{if(`e`in e)throw e.e;return e.v},Rl=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},zl=(e,t,n,r,i)=>{var a;n.d.set(r,i.n),Ml(n.v)&&Rl(t,n.v,i),(a=i.m)==null||a.t.add(t),e&&Ul(e,r,t)},Bl=()=>({D:new Map,H:new Set,M:new Set,L:new Set}),Vl=(e,t,n)=>{e[t].add(n)},Hl=(e,t,n)=>{e.D.has(t)||(e.D.set(t,new Set),Vl(e,`M`,()=>{var t;(t=n.m)==null||t.l.forEach(t=>Vl(e,`M`,t))}))},Ul=(e,t,n)=>{let r=e.D.get(t);r&&r.add(n)},Wl=(e,t)=>e.D.get(t),Gl=e=>{let t,n=!1,r=e=>{try{e()}catch(e){n||=(t=e,!0)}};for(;e.H.size||e.M.size||e.L.size;)e.D.clear(),e.H.forEach(r),e.H.clear(),e.M.forEach(r),e.M.clear(),e.L.forEach(r),e.L.clear();if(n)throw t},Kl=(...[e,t,n,r])=>{let i=(t,n,r)=>{let i=`v`in n,a=n.v,o=Ml(n.v)?n.v:null;if(Fl(r)){Pl(r);for(let i of n.d.keys())Rl(t,r,e(i));n.v=r}else n.v=r;delete n.e,delete n.x,(!i||!Object.is(a,n.v))&&(++n.n,o&&Nl(o,r))},a=(n,r)=>{var o;let s=e(r);if(Il(s)&&(s.m&&!s.x||Array.from(s.d).every(([e,t])=>a(n,e).n===t)))return s;s.d.clear();let c=!0,l=t=>{if(Ol(r,t)){let n=e(t);if(!Il(n))if(kl(t))i(t,n,t.init);else throw Error(`no atom init`);return Ll(n)}let o=a(n,t);try{return Ll(o)}finally{if(c)zl(n,r,s,t,o);else{let e=Bl();zl(e,r,s,t,o),d(e,r,s),Gl(e)}}},f,p,m={get signal(){return f||=new AbortController,f.signal},get setSelf(){return!p&&Al(r)&&(p=(...e)=>{if(!c)return u(r,...e)}),p}};try{let e=t(r,l,m);if(i(r,s,e),Fl(e)){(o=e.onCancel)==null||o.call(e,()=>f?.abort());let t=()=>{if(s.m){let e=Bl();d(e,r,s),Gl(e)}};e.then(t,t)}return s}catch(e){return delete s.v,s.e=e,delete s.x,++s.n,s}finally{c=!1}},o=e=>Ll(a(void 0,e)),s=(t,n,r)=>{var i;let a=new Map;for(let t of r.m?.t||[]){let n=e(t);n.m&&a.set(t,n)}for(let t of r.p)a.set(t,e(t));return(i=Wl(t,n))==null||i.forEach(t=>{a.set(t,e(t))}),a},c=(e,t,n)=>{let r=[],i=new Set,o=new Set,c=[[t,n]];for(;c.length>0;){let[t,n]=c[c.length-1];if(o.has(t)){c.pop();continue}if(i.has(t)){r.push([t,n,n.n]),o.add(t),n.x=!0,c.pop();continue}i.add(t);for(let[r,a]of s(e,t,n))t!==r&&!i.has(r)&&c.push([r,a])}Vl(e,`H`,()=>{let n=new Set([t]);for(let t=r.length-1;t>=0;--t){let[i,o,s]=r[t],c=!1;for(let e of o.d.keys())if(e!==i&&n.has(e)){c=!0;break}c&&(a(e,i),d(e,i,o),s!==o.n&&(Hl(e,i,o),n.add(i))),delete o.x}})},l=(t,r,...o)=>{let s=!0,u=e=>Ll(a(t,e)),f=(n,...a)=>{let o=e(n);try{if(Ol(r,n)){if(!kl(n))throw Error(`atom not writable`);let e=o.n,r=a[0];i(n,o,r),d(t,n,o),e!==o.n&&(Hl(t,n,o),c(t,n,o));return}else return l(t,n,...a)}finally{s||Gl(t)}};try{return n(r,u,f,...o)}finally{s=!1}},u=(e,...t)=>{let n=Bl();try{return l(n,e,...t)}finally{Gl(n)}},d=(t,n,r)=>{if(r.m&&!Ml(r.v)){for(let i of r.d.keys())r.m.d.has(i)||(f(t,i,e(i)).t.add(n),r.m.d.add(i));for(let i of r.m.d||[])r.d.has(i)||(r.m.d.delete(i),p(t,i,e(i))?.t.delete(n))}},f=(t,n,i)=>{if(!i.m){a(t,n);for(let r of i.d.keys())f(t,r,e(r)).t.add(n);if(i.m={l:new Set,d:new Set(i.d.keys()),t:new Set},Al(n)){let e=i.m,a,o=(e,t)=>{let r=!0;a=(...t)=>{try{return l(e,n,...t)}finally{r||Gl(e)}};try{return t()}finally{r=!1}};Vl(t,`L`,()=>{let i=o(t,()=>r(n,(...e)=>a(...e)));i&&(e.u=e=>o(e,i))})}}return i.m},p=(t,n,r)=>{if(r.m&&!r.m.l.size&&!Array.from(r.m.t).some(t=>e(t).m?.d.has(n))){let i=r.m.u;i&&Vl(t,`L`,()=>i(t)),delete r.m;for(let i of r.d.keys())p(t,i,e(i))?.t.delete(n);return}return r.m};return{get:o,set:u,sub:(t,n)=>{let r=Bl(),i=e(t),a=f(r,t,i).l;return a.add(n),Gl(r),()=>{a.delete(n);let e=Bl();p(e,t,i),Gl(e)}},unstable_derive:i=>Kl(...i(e,t,n,r))}},ql=()=>{let e=new WeakMap;return Kl(t=>{let n=e.get(t);return n||(n={d:new Map,p:new Set,n:0},e.set(t,n)),n},(e,...t)=>e.read(...t),(e,...t)=>e.write(...t),(e,...t)=>e.onMount?.call(e,...t))},Jl,Yl=()=>(Jl||=ql(),Jl),Xl=(0,V.createContext)(void 0),Zl=e=>{let t=(0,V.useContext)(Xl);return e?.store||t||Yl()},Ql=e=>typeof e?.then==`function`,$l=e=>{e.status=`pending`,e.then(t=>{e.status=`fulfilled`,e.value=t},t=>{e.status=`rejected`,e.reason=t})},eu=V.use||(e=>{if(e.status===`pending`)throw e;if(e.status===`fulfilled`)return e.value;throw e.status===`rejected`?e.reason:($l(e),e)}),tu=new WeakMap,nu=e=>{let t=tu.get(e);return t||(t=new Promise((n,r)=>{let i=e,a=e=>t=>{i===e&&n(t)},o=e=>t=>{i===e&&r(t)},s=e=>{`onCancel`in e&&typeof e.onCancel==`function`&&e.onCancel(e=>{Ql(e)?(tu.set(e,t),i=e,e.then(a(e),o(e)),s(e)):n(e)})};e.then(a(e),o(e)),s(e)}),tu.set(e,t)),t};function ru(e,t){let n=Zl(t),[[r,i,a],o]=(0,V.useReducer)(t=>{let r=n.get(e);return Object.is(t[0],r)&&t[1]===n&&t[2]===e?t:[r,n,e]},void 0,()=>[n.get(e),n,e]),s=r;(i!==n||a!==e)&&(o(),s=n.get(e));let c=t?.delay;return(0,V.useEffect)(()=>{let t=n.sub(e,()=>{if(typeof c==`number`){let t=n.get(e);Ql(t)&&$l(nu(t)),setTimeout(o,c);return}o()});return o(),t},[n,e,c]),(0,V.useDebugValue)(s),Ql(s)?eu(nu(s)):s}function iu(e,t){let n=Zl(t);return(0,V.useCallback)((...t)=>n.set(e,...t),[n,e])}function au(e,t){return[ru(e,t),iu(e,t)]}var ou=new WeakMap;function su(e,t){let n=Zl(t),r=cu(n);for(let[i,a]of e)(!r.has(i)||t?.dangerouslyForceHydrate)&&(r.add(i),n.set(i,a))}var cu=e=>{let t=ou.get(e);return t||(t=new WeakSet,ou.set(e,t)),t};function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lu.apply(this,arguments)}function uu(){let e=(0,V.createContext)(null);function t({store:t,initialValues:n=[],children:r}){let i=(0,V.useRef)(t);return i.current||=ql(),su(n,{store:i.current}),(0,U.jsx)(e.Provider,{value:i.current,children:r})}let n=t=>{let n=(0,V.useContext)(e);if(!n)throw Error(`Missing Provider from createIsolation`);return Zl(lu({store:n},t))};return{Provider:t,useStore:n,useAtom:(e,t)=>{let r=n();return au(e,lu({store:r},t))},useAtomValue:(e,t)=>{let r=n();return ru(e,lu({store:r},t))},useSetAtom:(e,t)=>{let r=n();return iu(e,lu({store:r},t))}}}var{read:du,write:fu}=Tl(null);(0,V.createContext)({scope:void 0,baseStore:void 0});var pu=e(n(((e,t)=>{(function(){var n=this,r={};e===void 0?n.fuzzy=r:t.exports=r,r.simpleFilter=function(e,t){return t.filter(function(t){return r.test(e,t)})},r.test=function(e,t){return r.match(e,t)!==null},r.match=function(e,t,n){n||={};var r=0,i=[],a=t.length,o=0,s=0,c=n.pre||``,l=n.post||``,u=n.caseSensitive&&t||t.toLowerCase(),d;e=n.caseSensitive&&e||e.toLowerCase();for(var f=0;f<a;f++)d=t[f],u[f]===e[r]?(d=c+d+l,r+=1,s+=1+s):s=0,o+=s,i[i.length]=d;return r===e.length?(o=u===e?1/0:o,{rendered:i.join(``),score:o}):null},r.filter=function(e,t,n){return!t||t.length===0?[]:typeof e==`string`?(n||={},t.reduce(function(t,i,a,o){var s=i;n.extract&&(s=n.extract(i));var c=r.match(e,s,n);return c!=null&&(t[t.length]={string:c.rendered,score:c.score,index:a,original:i}),t},[]).sort(function(e,t){return t.score-e.score||e.index-t.index})):t}})()}))(),1);function mu(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2}function hu(e,t,n){let r=mu(t,n);if(r===0)return mu(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return i=Math.max(0,Math.min(1,i)),mu(e,gu(t,n,i))}function gu(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function _u(e,t){return vu(e,0,e.length,t)}function vu(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],c=0,l=1;for(let r=t+1;r<n-1;++r){let t=hu(e[r],o,s);t>c&&(c=t,l=r)}return Math.sqrt(c)>r?(vu(e,t,l+1,r,a),vu(e,l,n,r,a)):(a.length||a.push(o),a.push(s)),a}function yu(e,t,n,r=e=>e){return e*r(.5-t*(.5-n))}function bu(e){return[-e[0],-e[1]]}function xu(e,t){return[e[0]+t[0],e[1]+t[1]]}function Su(e,t){return[e[0]-t[0],e[1]-t[1]]}function Cu(e,t){return[e[0]*t,e[1]*t]}function wu(e,t){return[e[0]/t,e[1]/t]}function Tu(e){return[e[1],-e[0]]}function Eu(e,t){return e[0]*t[0]+e[1]*t[1]}function Du(e,t){return e[0]===t[0]&&e[1]===t[1]}function Ou(e){return Math.hypot(e[0],e[1])}function ku(e){return e[0]*e[0]+e[1]*e[1]}function Au(e,t){return ku(Su(e,t))}function ju(e){return wu(e,Ou(e))}function Mu(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function Nu(e,t,n){let r=Math.sin(n),i=Math.cos(n),a=e[0]-t[0],o=e[1]-t[1],s=a*i-o*r,c=a*r+o*i;return[s+t[0],c+t[1]]}function Pu(e,t,n){return xu(e,Cu(Su(t,e),n))}function Fu(e,t,n){return xu(e,Cu(t,n))}var{min:Iu,PI:Lu}=Math,Ru=.275,zu=Lu+1e-4;function Bu(e,t={}){let{size:n=16,smoothing:r=.5,thinning:i=.5,simulatePressure:a=!0,easing:o=e=>e,start:s={},end:c={},last:l=!1}=t,{cap:u=!0,easing:d=e=>e*(2-e)}=s,{cap:f=!0,easing:p=e=>--e*e*e+1}=c;if(e.length===0||n<=0)return[];let m=e[e.length-1].runningLength,h=s.taper===!1?0:s.taper===!0?Math.max(n,m):s.taper,g=c.taper===!1?0:c.taper===!0?Math.max(n,m):c.taper,_=(n*r)**2,v=[],y=[],b=e.slice(0,10).reduce((e,t)=>{let r=t.pressure;if(a){let i=Iu(1,t.distance/n);r=Iu(1,e+(Iu(1,1-i)-e)*(i*Ru))}return(e+r)/2},e[0].pressure),x=yu(n,i,e[e.length-1].pressure,o),S,C=e[0].vector,w=e[0].point,T=w,E=w,ee=T,te=!1;for(let t=0;t<e.length;t++){let{pressure:r}=e[t],{point:s,vector:c,distance:l,runningLength:u}=e[t];if(t<e.length-1&&m-u<3)continue;if(i){if(a){let e=Iu(1,l/n),t=Iu(1,1-e);r=Iu(1,b+(t-b)*(e*Ru))}x=yu(n,i,r,o)}else x=n/2;S===void 0&&(S=x);let f=u<h?d(u/h):1,ne=m-u<g?p((m-u)/g):1;x=Math.max(.01,x*Math.min(f,ne));let re=(t<e.length-1?e[t+1]:e[t]).vector,D=t<e.length-1?Eu(c,re):1,ie=Eu(c,C)<0&&!te,ae=D!==null&&D<0;if(ie||ae){let e=Cu(Tu(C),x);for(let t=0;t<=1;t+=.07692307692307693)E=Nu(Su(s,e),s,zu*t),v.push(E),ee=Nu(xu(s,e),s,zu*-t),y.push(ee);w=E,T=ee,ae&&(te=!0);continue}if(te=!1,t===e.length-1){let e=Cu(Tu(c),x);v.push(Su(s,e)),y.push(xu(s,e));continue}let oe=Cu(Tu(Pu(re,c,D)),x);E=Su(s,oe),(t<=1||Au(w,E)>_)&&(v.push(E),w=E),ee=xu(s,oe),(t<=1||Au(T,ee)>_)&&(y.push(ee),T=ee),b=r,C=c}let ne=e[0].point.slice(0,2),re=e.length>1?e[e.length-1].point.slice(0,2):xu(e[0].point,[1,1]),D=[],ie=[];if(e.length===1){if(!(h||g)||l){let e=Fu(ne,ju(Tu(Su(ne,re))),-(S||x)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(Nu(e,ne,zu*2*r));return t}}else{if(!(h||g&&e.length===1))if(u)for(let e=1/13,t=e;t<=1;t+=e){let e=Nu(y[0],ne,zu*t);D.push(e)}else{let e=Su(v[0],y[0]),t=Cu(e,.5),n=Cu(e,.51);D.push(Su(ne,t),Su(ne,n),xu(ne,n),xu(ne,t))}let t=Tu(bu(e[e.length-1].vector));if(g||h&&e.length===1)ie.push(re);else if(f){let e=Fu(re,t,x);for(let t=1/29,n=t;n<1;n+=t)ie.push(Nu(e,re,zu*3*n))}else ie.push(xu(re,Cu(t,x)),xu(re,Cu(t,x*.99)),Su(re,Cu(t,x*.99)),Su(re,Cu(t,x)))}return v.concat(ie,y.reverse(),D)}function Vu(e,t={}){let{streamline:n=.5,size:r=16,last:i=!1}=t;if(e.length===0)return[];let a=.15+(1-n)*.85,o=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(o.length===2){let e=o[1];o=o.slice(0,-1);for(let t=1;t<5;t++)o.push(Pu(o[0],e,t/4))}o.length===1&&(o=[...o,[...xu(o[0],[1,1]),...o[0].slice(2)]]);let s=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,l=0,u=s[0],d=o.length-1;for(let e=1;e<o.length;e++){let t=i&&e===d?o[e].slice(0,2):Pu(u.point,o[e],a);if(Du(u.point,t))continue;let n=Mu(t,u.point);if(l+=n,e<d&&!c){if(l<r)continue;c=!0}u={point:t,pressure:o[e][2]>=0?o[e][2]:.5,vector:ju(Su(u.point,t)),distance:n,runningLength:l},s.push(u)}return s[0].vector=s[1]?.vector||[0,0],s}function Hu(e,t={}){return Bu(Vu(e,t),t)}var Uu=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}},o=t=e(r,i,a);return a},Wu=e=>e?Uu(e):Uu,Gu=e(s(),1),{useDebugValue:Ku}=V.default,{useSyncExternalStoreWithSelector:qu}=Gu.default,Ju=e=>e;function Yu(e,t=Ju,n){let r=qu(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Ku(r),r}var Xu=e=>{let t=typeof e==`function`?Wu(e):e,n=(e,n)=>Yu(t,e,n);return Object.assign(n,t),n},Zu=e=>e?Xu(e):Xu,Qu,$u=typeof window<`u`&&((Qu=window.document)!=null&&Qu.createElement||window.navigator?.product===`ReactNative`)?V.useLayoutEffect:V.useEffect;function ed(){let e=Zu(e=>({current:[],version:0,set:e}));return{In:({children:t})=>{let n=e(e=>e.set),r=e(e=>e.version);return $u(()=>{n(e=>({version:e.version+1}))},[]),$u(()=>(n(({current:e})=>({current:[...e,t]})),()=>n(({current:e})=>({current:e.filter(e=>e!==t)}))),[t,r]),null},Out:()=>{let t=e(e=>e.current);return V.createElement(V.Fragment,null,t)}}}var td=n(((e,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype.toString,m=Math.max,h=Math.min,g=function(){return f.Date.now()};function _(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=x(t)||0,v(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?m(x(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function _(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function y(e){return u=e,c=setTimeout(C,t),d?_(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?h(i,o-r):i}function S(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=g();if(S(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?_(e):(i=a=void 0,s)}function T(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function E(){return c===void 0?s:w(g())}function ee(){var e=g(),n=S(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return y(l);if(f)return c=setTimeout(C,t),_(l)}return c===void 0&&(c=setTimeout(C,t)),s}return ee.cancel=T,ee.flush=E,ee}function v(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function y(e){return!!e&&typeof e==`object`}function b(e){return typeof e==`symbol`||y(e)&&p.call(e)==i}function x(e){if(typeof e==`number`)return e;if(b(e))return r;if(v(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=v(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=_})),nd=t({Button:()=>Mx,CaptureUpdateAction:()=>j,CommandPalette:()=>bS,DEFAULT_LASER_COLOR:()=>`red`,DEFAULT_OVERSCROLL:()=>150,DefaultSidebar:()=>JO,DiagramToCodePlugin:()=>lP,Ellipsify:()=>cg,Excalidraw:()=>dP,ExcalidrawAPIContext:()=>rN,ExcalidrawAPIProvider:()=>uP,FONT_FAMILY:()=>As,Fonts:()=>Zn,Footer:()=>PN,LiveCollaborationTrigger:()=>IN,MIME_TYPES:()=>R,MainMenu:()=>kO,ROUNDNESS:()=>Ta,Sidebar:()=>$D,Stats:()=>dj,THEME:()=>P,TTDDialog:()=>yA,TTDDialogTrigger:()=>aP,TTDStreamFetch:()=>cP,UserIdleState:()=>ri,WelcomeScreen:()=>eP,applyDarkModeFilter:()=>xr,bumpVersion:()=>$r,convertToExcalidrawElements:()=>$i,defaultLang:()=>pd,elementsOverlappingBBox:()=>kc,exportToBlob:()=>ub,exportToCanvas:()=>lb,exportToClipboard:()=>fb,exportToSvg:()=>db,getCommonBounds:()=>bc,getDataURL:()=>$e,getFormFactor:()=>tt,getLibraryItemsHash:()=>Nb,getNonDeletedElements:()=>A,getSceneVersion:()=>gl,getStrokeWidthByKey:()=>tl,getTextFromElements:()=>wc,getVisibleSceneBounds:()=>He,hashElementsVersion:()=>Ri,hashString:()=>Xs,isElementLink:()=>ps,isInvisiblySmallElement:()=>ys,isLinearElement:()=>Zo,isSpreadsheetValidForChartType:()=>rE,languages:()=>md,loadFromBlob:()=>hi,loadLibraryFromBlob:()=>Uc,loadSceneOrLibraryFromBlob:()=>hr,mergeLibraryItems:()=>Sb,mutateElement:()=>Hr,newElementWith:()=>B,normalizeLink:()=>ao,parseLibraryTokensFromUrl:()=>Db,reconcileElements:()=>iP,renderSpreadsheet:()=>PE,restoreAppState:()=>_o,restoreElement:()=>Qt,restoreElements:()=>_t,restoreLibraryItems:()=>Hn,sceneCoordsToViewportCoords:()=>Wn,serializeAsJSON:()=>Pc,serializeLibraryAsJSON:()=>he,setCustomTextMetricsProvider:()=>fc,throttleRAF:()=>lc,tryParseSpreadsheet:()=>ME,useEditorInterface:()=>sN,useExcalidrawAPI:()=>mN,useExcalidrawStateValue:()=>fP,useHandleLibrary:()=>Fb,useI18n:()=>Sd,useOnExcalidrawStateChange:()=>Qg,useStylesPanelMode:()=>cN,viewportCoordsToSceneCoords:()=>Ic,zoomToFitBounds:()=>Ui}),rd=e(td(),1),id=uu(),{useAtom:ad,useSetAtom:od,useAtomValue:sd,useStore:cd}=id,ld=id.Provider,ud=ql(),dd=ie({"./locales/ar-SA.json":()=>r(()=>import(`./ar-SA-PQUY64WN-DM_QaRYr.js`),__vite__mapDeps([0,1,2]),import.meta.url),"./locales/az-AZ.json":()=>r(()=>import(`./az-AZ-OXJXL76K-_P5M5f3C.js`),__vite__mapDeps([3,1,2]),import.meta.url),"./locales/bg-BG.json":()=>r(()=>import(`./bg-BG-W2GKIJDF-D53WBXMw.js`),__vite__mapDeps([4,1,2]),import.meta.url),"./locales/bn-BD.json":()=>r(()=>import(`./bn-BD-TGL7M4PJ-CV1T_81r.js`),__vite__mapDeps([5,1,2]),import.meta.url),"./locales/bn-IN.json":()=>r(()=>import(`./bn-IN-BKETKYEH-BJb2NhdV.js`),__vite__mapDeps([6,1,2]),import.meta.url),"./locales/ca-ES.json":()=>r(()=>import(`./ca-ES-LD5SCRVV-tcmNCv9X.js`),__vite__mapDeps([7,1,2]),import.meta.url),"./locales/cs-CZ.json":()=>r(()=>import(`./cs-CZ-OFPU5DBV-iDH0Hg0Z.js`),__vite__mapDeps([8,1,2]),import.meta.url),"./locales/da-DK.json":()=>r(()=>import(`./da-DK-FRDJFYWF-B1Cya5Tb.js`),__vite__mapDeps([9,1,2]),import.meta.url),"./locales/de-CH.json":()=>r(()=>import(`./de-CH-ZG7H3QK3-CcXz9YEZ.js`),__vite__mapDeps([10,1,2]),import.meta.url),"./locales/de-DE.json":()=>r(()=>import(`./de-DE-SIJYH4IH-CDO_gPTP.js`),__vite__mapDeps([11,1,2]),import.meta.url),"./locales/el-GR.json":()=>r(()=>import(`./el-GR-IEE2CGI2-CFTYnD1d.js`),__vite__mapDeps([12,1,2]),import.meta.url),"./locales/en.json":()=>r(()=>import(`./en-SJ2YIMFF-B1Abf6vd.js`),__vite__mapDeps([13,14,1,2]),import.meta.url),"./locales/es-ES.json":()=>r(()=>import(`./es-ES-TVVPWKV5-ib3oPRTG.js`),__vite__mapDeps([15,1,2]),import.meta.url),"./locales/eu-ES.json":()=>r(()=>import(`./eu-ES-CGBMFQDT-ViK2y4W9.js`),__vite__mapDeps([16,1,2]),import.meta.url),"./locales/fa-IR.json":()=>r(()=>import(`./fa-IR-IE6XAPR4-CGgNRfNg.js`),__vite__mapDeps([17,1,2]),import.meta.url),"./locales/fi-FI.json":()=>r(()=>import(`./fi-FI-P7TKNHRM-BszXjxHP.js`),__vite__mapDeps([18,1,2]),import.meta.url),"./locales/fr-FR.json":()=>r(()=>import(`./fr-FR-QI2XZNT7-CBLhflXo.js`),__vite__mapDeps([19,1,2]),import.meta.url),"./locales/gl-ES.json":()=>r(()=>import(`./gl-ES-TLYCNOZZ-wFJs6i4_.js`),__vite__mapDeps([20,1,2]),import.meta.url),"./locales/he-IL.json":()=>r(()=>import(`./he-IL-ZX43XLGP-C_R5C_fe.js`),__vite__mapDeps([21,1,2]),import.meta.url),"./locales/hi-IN.json":()=>r(()=>import(`./hi-IN-UTYRMTUF-DQZO1yHB.js`),__vite__mapDeps([22,1,2]),import.meta.url),"./locales/hu-HU.json":()=>r(()=>import(`./hu-HU-AJOSEBW6-BUsT9HRh.js`),__vite__mapDeps([23,1,2]),import.meta.url),"./locales/id-ID.json":()=>r(()=>import(`./id-ID-ETLTVG6C-s5qbf2Ao.js`),__vite__mapDeps([24,1,2]),import.meta.url),"./locales/it-IT.json":()=>r(()=>import(`./it-IT-B4B6TP6L-De6zQkzI.js`),__vite__mapDeps([25,1,2]),import.meta.url),"./locales/ja-JP.json":()=>r(()=>import(`./ja-JP-IYKVURR5-BQTKh_DM.js`),__vite__mapDeps([26,1,2]),import.meta.url),"./locales/kaa.json":()=>r(()=>import(`./kaa-SE2BUIKX-D1K3PlL4.js`),__vite__mapDeps([27,1,2]),import.meta.url),"./locales/kab-KAB.json":()=>r(()=>import(`./kab-KAB-Y3GLKXLR-DBnwQdvF.js`),__vite__mapDeps([28,1,2]),import.meta.url),"./locales/kk-KZ.json":()=>r(()=>import(`./kk-KZ-ABWUFVOH-DHf8ZV-e.js`),__vite__mapDeps([29,1,2]),import.meta.url),"./locales/km-KH.json":()=>r(()=>import(`./km-KH-PCWDKPHP-Iu7zzLUx.js`),__vite__mapDeps([30,1,2]),import.meta.url),"./locales/ko-KR.json":()=>r(()=>import(`./ko-KR-7JQDXKGM-Bu2NgGcQ.js`),__vite__mapDeps([31,1,2]),import.meta.url),"./locales/ku-TR.json":()=>r(()=>import(`./ku-TR-NAH2Q5B7-DMhtdDTs.js`),__vite__mapDeps([32,1,2]),import.meta.url),"./locales/lt-LT.json":()=>r(()=>import(`./lt-LT-VQFYRSNQ-DVatlecz.js`),__vite__mapDeps([33,1,2]),import.meta.url),"./locales/lv-LV.json":()=>r(()=>import(`./lv-LV-T62VSYUM-CdSYe2hR.js`),__vite__mapDeps([34,1,2]),import.meta.url),"./locales/mr-IN.json":()=>r(()=>import(`./mr-IN-V4FHLCJE-B7_Y77Sd.js`),__vite__mapDeps([35,1,2]),import.meta.url),"./locales/my-MM.json":()=>r(()=>import(`./my-MM-E3SQ6E54-7cjvFPfX.js`),__vite__mapDeps([36,1,2]),import.meta.url),"./locales/nb-NO.json":()=>r(()=>import(`./nb-NO-MLNOFN5H-C9B1CUd8.js`),__vite__mapDeps([37,1,2]),import.meta.url),"./locales/nl-NL.json":()=>r(()=>import(`./nl-NL-D5L3ZV4M-C0hHNvou.js`),__vite__mapDeps([38,1,2]),import.meta.url),"./locales/nn-NO.json":()=>r(()=>import(`./nn-NO-NNHDGPKB-CfmfS2IJ.js`),__vite__mapDeps([39,1,2]),import.meta.url),"./locales/oc-FR.json":()=>r(()=>import(`./oc-FR-DWCRF55G-BhFGEoNX.js`),__vite__mapDeps([40,1,2]),import.meta.url),"./locales/pa-IN.json":()=>r(()=>import(`./pa-IN-3JSAY44M-CSqV-9XT.js`),__vite__mapDeps([41,1,2]),import.meta.url),"./locales/percentages.json":()=>r(()=>import(`./percentages-ETZPVQEE-81JmhTlD.js`),__vite__mapDeps([42,43,1,2]),import.meta.url),"./locales/pl-PL.json":()=>r(()=>import(`./pl-PL-ACURYKP3-BB56Bqut.js`),__vite__mapDeps([44,1,2]),import.meta.url),"./locales/pt-BR.json":()=>r(()=>import(`./pt-BR-LOX7MLGD-DoO9BJNO.js`),__vite__mapDeps([45,1,2]),import.meta.url),"./locales/pt-PT.json":()=>r(()=>import(`./pt-PT-CZ2U2RFQ-DAvnxFdF.js`),__vite__mapDeps([46,1,2]),import.meta.url),"./locales/ro-RO.json":()=>r(()=>import(`./ro-RO-2HECL2X6-1AJv1dSJ.js`),__vite__mapDeps([47,1,2]),import.meta.url),"./locales/ru-RU.json":()=>r(()=>import(`./ru-RU-HAYNXO46-CW9RvsSL.js`),__vite__mapDeps([48,1,2]),import.meta.url),"./locales/si-LK.json":()=>r(()=>import(`./si-LK-W5KNS4H6-CypMzau_.js`),__vite__mapDeps([49,1,2]),import.meta.url),"./locales/sk-SK.json":()=>r(()=>import(`./sk-SK-7K2CFGDV-BwLg7NlU.js`),__vite__mapDeps([50,1,2]),import.meta.url),"./locales/sl-SI.json":()=>r(()=>import(`./sl-SI-OXV2QZWW-B6B9xccI.js`),__vite__mapDeps([51,1,2]),import.meta.url),"./locales/sv-SE.json":()=>r(()=>import(`./sv-SE-JTOBZRGL-Dlkf7uU5.js`),__vite__mapDeps([52,1,2]),import.meta.url),"./locales/ta-IN.json":()=>r(()=>import(`./ta-IN-KFAVKXGT-BQUf6zg7.js`),__vite__mapDeps([53,1,2]),import.meta.url),"./locales/th-TH.json":()=>r(()=>import(`./th-TH-VDMSCPDL-Bfq-aKaw.js`),__vite__mapDeps([54,1,2]),import.meta.url),"./locales/tr-TR.json":()=>r(()=>import(`./tr-TR-CEZ6GX45-D_D7WdP-.js`),__vite__mapDeps([55,1,2]),import.meta.url),"./locales/uk-UA.json":()=>r(()=>import(`./uk-UA-Q3H3OXQC-8cnXoH3E.js`),__vite__mapDeps([56,1,2]),import.meta.url),"./locales/uz-UZ.json":()=>r(()=>import(`./uz-UZ-NGCSWWPX-x-3Xjsag.js`),__vite__mapDeps([57,1,2]),import.meta.url),"./locales/vi-VN.json":()=>r(()=>import(`./vi-VN-P3NDEVPS-B9Fd87wN.js`),__vite__mapDeps([58,1,2]),import.meta.url),"./locales/zh-CN.json":()=>r(()=>import(`./zh-CN-SS3O57GA-Bi1o8_Yt.js`),__vite__mapDeps([59,1,2]),import.meta.url),"./locales/zh-HK.json":()=>r(()=>import(`./zh-HK-LWJT3VCF-kQHHZuhX.js`),__vite__mapDeps([60,1,2]),import.meta.url),"./locales/zh-TW.json":()=>r(()=>import(`./zh-TW-VJXC72RT-KGVgIdE7.js`),__vite__mapDeps([61,1,2]),import.meta.url)}),fd=85,pd={code:`en`,label:`English`},md=[pd,...[{code:`ar-SA`,label:`العربية`,rtl:!0},{code:`bg-BG`,label:`Български`},{code:`ca-ES`,label:`Català`},{code:`cs-CZ`,label:`Česky`},{code:`de-DE`,label:`Deutsch`},{code:`el-GR`,label:`Ελληνικά`},{code:`es-ES`,label:`Español`},{code:`eu-ES`,label:`Euskara`},{code:`fa-IR`,label:`فارسی`,rtl:!0},{code:`fi-FI`,label:`Suomi`},{code:`fr-FR`,label:`Français`},{code:`gl-ES`,label:`Galego`},{code:`he-IL`,label:`עברית`,rtl:!0},{code:`hi-IN`,label:`हिन्दी`},{code:`hu-HU`,label:`Magyar`},{code:`id-ID`,label:`Bahasa Indonesia`},{code:`it-IT`,label:`Italiano`},{code:`ja-JP`,label:`日本語`},{code:`kab-KAB`,label:`Taqbaylit`},{code:`kk-KZ`,label:`Қазақ тілі`},{code:`ko-KR`,label:`한국어`},{code:`ku-TR`,label:`Kurdî`},{code:`lt-LT`,label:`Lietuvių`},{code:`lv-LV`,label:`Latviešu`},{code:`my-MM`,label:`Burmese`},{code:`nb-NO`,label:`Norsk bokmål`},{code:`nl-NL`,label:`Nederlands`},{code:`nn-NO`,label:`Norsk nynorsk`},{code:`oc-FR`,label:`Occitan`},{code:`pa-IN`,label:`ਪੰਜਾਬੀ`},{code:`pl-PL`,label:`Polski`},{code:`pt-BR`,label:`Português Brasileiro`},{code:`pt-PT`,label:`Português`},{code:`ro-RO`,label:`Română`},{code:`ru-RU`,label:`Русский`},{code:`sk-SK`,label:`Slovenčina`},{code:`sv-SE`,label:`Svenska`},{code:`sl-SI`,label:`Slovenščina`},{code:`tr-TR`,label:`Türkçe`},{code:`uk-UA`,label:`Українська`},{code:`zh-CN`,label:`简体中文`},{code:`zh-TW`,label:`繁體中文`},{code:`vi-VN`,label:`Tiếng Việt`},{code:`mr-IN`,label:`मराठी`}].filter(e=>vl[e.code]>=fd).sort((e,t)=>e.label>t.label?1:-1)],hd=`__test__`;Jt()&&md.unshift({code:hd,label:`test language`},{code:`${hd}.rtl`,label:`test language (rtl)`,rtl:!0});var gd=pd,_d={},vd=async e=>{if(gd=e,document.documentElement.dir=gd.rtl?`rtl`:`ltr`,document.documentElement.lang=gd.code,e.code.startsWith(hd))_d={};else try{_d=await dd(`./locales/${gd.code}.json`)}catch(t){console.error(`Failed to load language ${e.code}:`,t.message),_d=_l}ud.set(xd,e.code)},yd=()=>gd,bd=(e,t)=>{for(let n=0;n<t.length;++n){let r=t[n];if(e[r]===void 0)return;e=e[r]}if(typeof e==`string`)return e},W=(e,t,n)=>{if(gd.code.startsWith(hd))return`\u202A[[${t?`${e}(${JSON.stringify(t).slice(1,-1)})`:e}]]\u202C`;let r=e.split(`.`),i=bd(_d,r)||bd(_l,r)||n;if(i===void 0){let t=`Can't find translation for ${e}`;if(re.PROD)return console.warn(t),``;throw Error(t)}if(t)for(let e in t)i=i.replace(`{{${e}}}`,String(t[e]));return i},xd=Tl(pd.code),Sd=()=>({t:W,langCode:sd(xd)}),Cd=e=>`var(--icon-fill-color)`,wd=e=>e===P.LIGHT?`#fff`:`#1e1e1e`,G=(e,t=512)=>{let{width:n=512,height:r=n,mirror:i,style:a,...o}=typeof t==`number`?{width:t}:t;return(0,U.jsx)(`svg`,{"aria-hidden":`true`,focusable:`false`,role:`img`,viewBox:`0 0 ${n} ${r}`,className:H({"rtl-mirror":i}),style:a,...o,children:typeof e==`string`?(0,U.jsx)(`path`,{fill:`currentColor`,d:e}):e})},K={width:24,height:24,fill:`none`,strokeWidth:2,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`},q={width:20,height:20,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`},Td={width:40,height:20};G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`rect`,{x:3,y:8,width:18,height:4,rx:1}),(0,U.jsx)(`line`,{x1:12,y1:8,x2:12,y2:21}),(0,U.jsx)(`path`,{d:`M19 12v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-7`}),(0,U.jsx)(`path`,{d:`M7.5 8a2.5 2.5 0 0 1 0 -5a4.8 8 0 0 1 4.5 5a4.8 8 0 0 1 4.5 -5a2.5 2.5 0 0 1 0 5`})]}),K);var Ed=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0`}),(0,U.jsx)(`path`,{d:`M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0`}),(0,U.jsx)(`line`,{x1:`3`,y1:`6`,x2:`3`,y2:`19`}),(0,U.jsx)(`line`,{x1:`12`,y1:`6`,x2:`12`,y2:`19`}),(0,U.jsx)(`line`,{x1:`21`,y1:`6`,x2:`21`,y2:`19`})]}),K),Dd=G((0,U.jsxs)(`svg`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),(0,U.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})]}),K),Od=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`19`,r:`1`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`5`,r:`1`})]}),K),kd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}),(0,U.jsx)(`path`,{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}),(0,U.jsx)(`path`,{d:`M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`})]}),K),Ad=G((0,U.jsxs)(`svg`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M9 4v6l-2 4v2h10v-2l-2 -4v-6`}),(0,U.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`21`}),(0,U.jsx)(`line`,{x1:`8`,y1:`4`,x2:`16`,y2:`4`})]}),K),jd=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M19 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M5 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M15 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M6.5 9.5l3.5 -3`}),(0,U.jsx)(`path`,{d:`M14 5.5l3 1.5`}),(0,U.jsx)(`path`,{d:`M18.5 10l-2.5 7`}),(0,U.jsx)(`path`,{d:`M13.5 17.5l-7 -5`})]}),K),Md=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{d:`M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,U.jsx)(`path`,{d:`M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,U.jsx)(`mask`,{id:`UnlockedIcon`,style:{maskType:`alpha`},maskUnits:`userSpaceOnUse`,x:6,y:1,width:9,height:9,children:(0,U.jsx)(`path`,{stroke:`none`,d:`M6.399 9.561V5.175c0-.93.401-1.823 1.116-2.48a3.981 3.981 0 0 1 2.693-1.028c1.01 0 1.98.37 2.694 1.027.715.658 1.116 1.55 1.116 2.481`,fill:`#fff`})}),(0,U.jsx)(`g`,{mask:`url(#UnlockedIcon)`,children:(0,U.jsx)(`path`,{stroke:`none`,d:`M5.149 9.561v1.25h2.5v-1.25h-2.5Zm5.06-7.894V.417v1.25Zm2.559 3.508v1.25h2.5v-1.25h-2.5ZM7.648 8.51V5.175h-2.5V8.51h2.5Zm0-3.334c0-.564.243-1.128.713-1.561L6.668 1.775c-.959.883-1.52 2.104-1.52 3.4h2.5Zm.713-1.561a2.732 2.732 0 0 1 1.847-.697v-2.5c-1.31 0-2.585.478-3.54 1.358L8.36 3.614Zm1.847-.697c.71 0 1.374.26 1.847.697l1.694-1.839a5.231 5.231 0 0 0-3.54-1.358v2.5Zm1.847.697c.47.433.713.997.713 1.561h2.5c0-1.296-.56-2.517-1.52-3.4l-1.693 1.839Z`,fill:`currentColor`})})]}),q),Nd=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z`}),(0,U.jsx)(`path`,{d:`M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z`}),(0,U.jsx)(`path`,{d:`M6.667 8.333V5.417C6.667 3.806 8.159 2.5 10 2.5c1.841 0 3.333 1.306 3.333 2.917v2.916`})]}),q),Pd=G((0,U.jsx)(`g`,{fill:`currentColor`,children:(0,U.jsx)(`path`,{d:`M12 2a5 5 0 0 1 5 5v3a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-6a3 3 0 0 1 3 -3v-3a5 5 0 0 1 5 -5m0 12a2 2 0 0 0 -1.995 1.85l-.005 .15a2 2 0 1 0 2 -2m0 -10a3 3 0 0 0 -3 3v3h6v-3a3 3 0 0 0 -3 -3`})}),{width:24,height:24}),Fd=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M38.5 83.5c-14-2-17.833-10.473-21-22.5C14.333 48.984 12 22 12 12.5`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`m12.005 10.478 7.905 14.423L6 25.75l6.005-15.273Z`,fill:`currentColor`}),(0,U.jsx)(`path`,{d:`M12.005 10.478c1.92 3.495 3.838 7 7.905 14.423m-7.905-14.423c3.11 5.683 6.23 11.368 7.905 14.423m0 0c-3.68.226-7.35.455-13.91.85m13.91-.85c-5.279.33-10.566.647-13.91.85m0 0c1.936-4.931 3.882-9.86 6.005-15.273M6 25.75c2.069-5.257 4.135-10.505 6.005-15.272`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`})]}),{width:41,height:94,fill:`none`}),Id=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M18.026 1.232c-5.268 13.125-5.548 33.555 3.285 42.311 8.823 8.75 33.31 12.304 42.422 13.523`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`m72.181 59.247-13.058-10-2.948 13.62 16.006-3.62Z`,fill:`currentColor`}),(0,U.jsx)(`path`,{d:`M72.181 59.247c-3.163-2.429-6.337-4.856-13.058-10m13.058 10c-5.145-3.936-10.292-7.882-13.058-10m0 0c-.78 3.603-1.563 7.196-2.948 13.62m2.948-13.62c-1.126 5.168-2.24 10.346-2.948 13.62m0 0c5.168-1.166 10.334-2.343 16.006-3.62m-16.006 3.62c5.51-1.248 11.01-2.495 16.006-3.62`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`})]}),{width:85,height:71,fill:`none`}),Ld=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M1 77c14-2 31.833-11.973 35-24 3.167-12.016-6-35-9.5-43.5`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`m24.165 1.093-2.132 16.309 13.27-4.258-11.138-12.05Z`,fill:`currentColor`}),(0,U.jsx)(`path`,{d:`M24.165 1.093c-.522 3.953-1.037 7.916-2.132 16.309m2.131-16.309c-.835 6.424-1.68 12.854-2.13 16.308m0 0c3.51-1.125 7.013-2.243 13.27-4.257m-13.27 4.257c5.038-1.608 10.08-3.232 13.27-4.257m0 0c-3.595-3.892-7.197-7.777-11.14-12.05m11.14 12.05c-3.837-4.148-7.667-8.287-11.14-12.05`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`})]}),{width:38,height:78,fill:`none`});G((0,U.jsx)(`g`,{fill:`currentColor`,children:(0,U.jsx)(`path`,{d:`M39.9 32.889a.326.326 0 0 0-.279-.056c-2.094-3.083-4.774-6-7.343-8.833l-.419-.472a.212.212 0 0 0-.056-.139.586.586 0 0 0-.167-.111l-.084-.083-.056-.056c-.084-.167-.28-.278-.475-.167-.782.39-1.507.973-2.206 1.528-.92.722-1.842 1.445-2.708 2.25a8.405 8.405 0 0 0-.977 1.028c-.14.194-.028.361.14.444-.615.611-1.23 1.223-1.843 1.861a.315.315 0 0 0-.084.223c0 .083.056.166.111.194l1.09.833v.028c1.535 1.528 4.244 3.611 7.12 5.861.418.334.865.667 1.284 1 .195.223.39.473.558.695.084.11.28.139.391.055.056.056.14.111.196.167a.398.398 0 0 0 .167.056.255.255 0 0 0 .224-.111.394.394 0 0 0 .055-.167c.029 0 .028.028.056.028a.318.318 0 0 0 .224-.084l5.082-5.528a.309.309 0 0 0 0-.444Zm-14.63-1.917a.485.485 0 0 0 .111.14c.586.5 1.2 1 1.843 1.555l-2.569-1.945-.251-.166c-.056-.028-.112-.084-.168-.111l-.195-.167.056-.056.055-.055.112-.111c.866-.861 2.346-2.306 3.1-3.028-.81.805-2.43 3.167-2.095 3.944Zm8.767 6.89-2.122-1.612a44.713 44.713 0 0 0-2.625-2.5c1.145.861 2.122 1.611 2.262 1.75 1.117.972 1.06.806 1.815 1.445l.921.666a1.06 1.06 0 0 1-.251.25Zm.558.416-.056-.028c.084-.055.168-.111.252-.194l-.196.222ZM1.089 5.75c.055.361.14.722.195 1.056.335 1.833.67 3.5 1.284 4.75l.252.944c.084.361.223.806.363.917 1.424 1.25 3.602 3.11 5.947 4.889a.295.295 0 0 0 .363 0s0 .027.028.027a.254.254 0 0 0 .196.084.318.318 0 0 0 .223-.084c2.988-3.305 5.221-6.027 6.813-8.305.112-.111.14-.278.14-.417.111-.111.195-.25.307-.333.111-.111.111-.306 0-.39l-.028-.027c0-.055-.028-.139-.084-.167-.698-.666-1.2-1.138-1.731-1.638-.922-.862-1.871-1.75-3.881-3.75l-.028-.028c-.028-.028-.056-.056-.112-.056-.558-.194-1.703-.389-3.127-.639C6.087 2.223 3.21 1.723.614.944c0 0-.168 0-.196.028l-.083.084c-.028.027-.056.055-.224.11h.056-.056c.028.167.028.278.084.473 0 .055.112.5.112.555l.782 3.556Zm15.496 3.278-.335-.334c.084.112.196.195.335.334Zm-3.546 4.666-.056.056c0-.028.028-.056.056-.056Zm-2.038-10c.168.167.866.834 1.033.973-.726-.334-2.54-1.167-3.379-1.445.838.167 1.983.334 2.346.472ZM1.424 2.306c.419.722.754 3.222 1.089 5.666-.196-.778-.335-1.555-.503-2.278-.251-1.277-.503-2.416-.838-3.416.056 0 .14 0 .252.028Zm-.168-.584c-.112 0-.223-.028-.307-.028 0-.027 0-.055-.028-.055.14 0 .223.028.335.083Zm-1.089.222c0-.027 0-.027 0 0ZM39.453 1.333c.028-.11-.558-.61-.363-.639.42-.027.42-.666 0-.666-.558.028-1.144.166-1.675.25-.977.194-1.982.389-2.96.61-2.205.473-4.383.973-6.561 1.557-.67.194-1.424.333-2.066.666-.224.111-.196.333-.084.472-.056.028-.084.028-.14.056-.195.028-.363.056-.558.083-.168.028-.252.167-.224.334 0 .027.028.083.028.11-1.173 1.556-2.485 3.195-3.909 4.945-1.396 1.611-2.876 3.306-4.356 5.056-4.719 5.5-10.052 11.75-15.943 17.25a.268.268 0 0 0 0 .389c.028.027.056.055.084.055-.084.084-.168.14-.252.222-.056.056-.084.111-.084.167a.605.605 0 0 0-.111.139c-.112.111-.112.305.028.389.111.11.307.11.39-.028.029-.028.029-.056.056-.056a.44.44 0 0 1 .615 0c.335.362.67.723.977 1.028l-.698-.583c-.112-.111-.307-.083-.39.028-.113.11-.085.305.027.389l7.427 6.194c.056.056.112.056.196.056s.14-.028.195-.084l.168-.166c.028.027.083.027.111.027.084 0 .14-.027.196-.083 10.052-10.055 18.15-17.639 27.42-24.417.083-.055.111-.166.111-.25.112 0 .196-.083.251-.194 1.704-5.194 2.039-9.806 2.15-12.083v-.028c0-.028.028-.056.028-.083.028-.056.028-.084.028-.084a1.626 1.626 0 0 0-.111-1.028ZM21.472 9.5c.446-.5.893-1.028 1.34-1.5-2.876 3.778-7.65 9.583-14.408 16.5 4.607-5.083 9.242-10.333 13.068-15ZM5.193 35.778h.084-.084Zm3.462 3.194c-.027-.028-.027-.028 0-.028v.028Zm4.16-3.583c.224-.25.448-.472.699-.722 0 0 0 .027.028.027-.252.223-.475.445-.726.695Zm1.146-1.111c.14-.14.279-.334.446-.5l.028-.028c1.648-1.694 3.351-3.389 5.082-5.111l.028-.028c.419-.333.921-.694 1.368-1.028a379.003 379.003 0 0 0-6.952 6.695ZM24.794 6.472c-.921 1.195-1.954 2.778-2.82 4.028-2.736 3.944-11.532 13.583-11.727 13.75a1976.983 1976.983 0 0 1-8.042 7.639l-.167.167c-.14-.167-.14-.417.028-.556C14.49 19.861 22.03 10.167 25.074 5.917c-.084.194-.14.36-.28.555Zm4.83 5.695c-1.116-.64-1.646-1.64-1.34-2.611l.084-.334c.028-.083.084-.194.14-.277.307-.5.754-.917 1.257-1.167.027 0 .055 0 .083-.028-.028-.056-.028-.139-.028-.222.028-.167.14-.278.335-.278.335 0 1.369.306 1.76.639.111.083.223.194.335.305.14.167.363.445.474.667.056.028.112.306.196.445.056.222.111.472.084.694-.028.028 0 .194-.028.194a2.668 2.668 0 0 1-.363 1.028c-.028.028-.028.056-.056.084l-.028.027c-.14.223-.335.417-.53.556-.643.444-1.369.583-2.095.389 0 0-.195-.084-.28-.111Zm8.154-.834a39.098 39.098 0 0 1-.893 3.167c0 .028-.028.083 0 .111-.056 0-.084.028-.14.056-2.206 1.61-4.356 3.305-6.506 5.028 1.843-1.64 3.686-3.306 5.613-4.945.558-.5.949-1.139 1.06-1.861l.28-1.667v-.055c.14-.334.67-.195.586.166Z`,fill:`currentColor`})}),{width:40,height:40,fill:`none`});var Rd=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 6l4.153 11.793a0.365 .365 0 0 0 .331 .207a0.366 .366 0 0 0 .332 -.207l2.184 -4.793l4.787 -1.994a0.355 .355 0 0 0 .213 -.323a0.355 .355 0 0 0 -.213 -.323l-11.787 -4.36z`}),(0,U.jsx)(`path`,{d:`M13.5 13.5l4.5 4.5`})]}),{fill:`none`,width:22,height:22,strokeWidth:1.25}),zd=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5,children:[(0,U.jsx)(`path`,{d:`M4.028 13.252c-.657 -.972 -1.028 -2.078 -1.028 -3.252c0 -3.866 4.03 -7 9 -7s9 3.134 9 7s-4.03 7 -9 7c-1.913 0 -3.686 -.464 -5.144 -1.255`}),(0,U.jsx)(`path`,{d:`M5 15m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M5 17c0 1.42 .316 2.805 1 4`})]}),{fill:`none`,width:22,height:22,strokeWidth:1.25}),Bd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`})]}),K),Vd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10.5 20.4l-6.9 -6.9c-.781 -.781 -.781 -2.219 0 -3l6.9 -6.9c.781 -.781 2.219 -.781 3 0l6.9 6.9c.781 .781 .781 2.219 0 3l-6.9 6.9c-.781 .781 -2.219 .781 -3 0z`})]}),K),Hd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`})]}),K),Ud=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}),(0,U.jsx)(`line`,{x1:`15`,y1:`16`,x2:`19`,y2:`12`}),(0,U.jsx)(`line`,{x1:`15`,y1:`8`,x2:`19`,y2:`12`})]}),K),Wd=G((0,U.jsx)(`path`,{d:`M4.167 10h11.666`,strokeWidth:`1.5`}),q),Gd=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z`}),(0,U.jsx)(`path`,{d:`M16 7h4`}),(0,U.jsx)(`path`,{d:`M18 19h-13a2 2 0 1 1 0 -4h4a2 2 0 1 0 0 -4h-3`})]}),K),Kd=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{clipRule:`evenodd`,d:`m7.643 15.69 7.774-7.773a2.357 2.357 0 1 0-3.334-3.334L4.31 12.357a3.333 3.333 0 0 0-.977 2.357v1.953h1.953c.884 0 1.732-.352 2.357-.977Z`}),(0,U.jsx)(`path`,{d:`m11.25 5.417 3.333 3.333`})]}),q),qd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`20`,x2:`7`,y2:`20`}),(0,U.jsx)(`line`,{x1:`14`,y1:`20`,x2:`21`,y2:`20`}),(0,U.jsx)(`line`,{x1:`6.9`,y1:`15`,x2:`13.8`,y2:`15`}),(0,U.jsx)(`line`,{x1:`10.2`,y1:`6.3`,x2:`16`,y2:`20`}),(0,U.jsx)(`polyline`,{points:`5 20 11 4 13 4 20 20`})]}),K),Jd=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 7v-2h13v2`}),(0,U.jsx)(`path`,{d:`M10 5v14`}),(0,U.jsx)(`path`,{d:`M12 19h-4`}),(0,U.jsx)(`path`,{d:`M15 13v-1h6v1`}),(0,U.jsx)(`path`,{d:`M18 12v7`}),(0,U.jsx)(`path`,{d:`M17 19h2`})]}),K),Yd=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M12.5 6.667h.01`}),(0,U.jsx)(`path`,{d:`M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z`}),(0,U.jsx)(`path`,{d:`m3.333 12.5 3.334-3.333c.773-.745 1.726-.745 2.5 0l4.166 4.166`}),(0,U.jsx)(`path`,{d:`m11.667 11.667.833-.834c.774-.744 1.726-.744 2.5 0l1.667 1.667`})]}),q),Xd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3`}),(0,U.jsx)(`path`,{d:`M18 13.3l-6.3 -6.3`})]}),K),Zd=G((0,U.jsx)(`path`,{strokeWidth:`1.25`,d:`M10 4.167v11.666M4.167 10h11.666`}),q),Qd=G((0,U.jsx)(`path`,{d:`M5 10h10`,strokeWidth:`1.25`}),q),$d=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M21 21l-6 -6`}),(0,U.jsx)(`path`,{d:`M3.268 12.043a7.017 7.017 0 0 0 6.634 4.957a7.012 7.012 0 0 0 7.043 -6.131a7 7 0 0 0 -5.314 -7.672a7.021 7.021 0 0 0 -8.241 4.403`}),(0,U.jsx)(`path`,{d:`M3 4v4h4`})]}),K),ef=G((0,U.jsx)(`path`,{strokeWidth:`1.25`,d:`M3.333 5.833h13.334M8.333 9.167v5M11.667 9.167v5M4.167 5.833l.833 10c0 .92.746 1.667 1.667 1.667h6.666c.92 0 1.667-.746 1.667-1.667l.833-10M7.5 5.833v-2.5c0-.46.373-.833.833-.833h3.334c.46 0 .833.373.833.833v2.5`}),q),tf=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`polyline`,{points:`12 16 18 10 12 4`}),(0,U.jsx)(`polyline`,{points:`8 4 2 10 8 16`})]}),q),nf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M14.375 6.458H8.958a2.5 2.5 0 0 0-2.5 2.5v5.417a2.5 2.5 0 0 0 2.5 2.5h5.417a2.5 2.5 0 0 0 2.5-2.5V8.958a2.5 2.5 0 0 0-2.5-2.5Z`}),(0,U.jsx)(`path`,{clipRule:`evenodd`,d:`M11.667 3.125c.517 0 .986.21 1.325.55.34.338.55.807.55 1.325v1.458H8.333c-.485 0-.927.185-1.26.487-.343.312-.57.75-.609 1.24l-.005 5.357H5a1.87 1.87 0 0 1-1.326-.55 1.87 1.87 0 0 1-.549-1.325V5c0-.518.21-.987.55-1.326.338-.34.807-.549 1.325-.549h6.667Z`})]}),q),rf=G((0,U.jsx)(`path`,{clipRule:`evenodd`,d:`M10 2.5h.328a6.25 6.25 0 0 0 6.6 10.372A7.5 7.5 0 1 1 10 2.493V2.5Z`,stroke:`currentColor`}),q),af=G((0,U.jsx)(`g`,{stroke:`currentColor`,strokeLinejoin:`round`,children:(0,U.jsx)(`path`,{d:`M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM10 4.167V2.5M14.167 5.833l1.166-1.166M15.833 10H17.5M14.167 14.167l1.166 1.166M10 15.833V17.5M5.833 14.167l-1.166 1.166M5 10H3.333M5.833 5.833 4.667 4.667`})}),{...q,strokeWidth:1.5}),of=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`6`,x2:`20`,y2:`6`}),(0,U.jsx)(`line`,{x1:`4`,y1:`12`,x2:`20`,y2:`12`}),(0,U.jsx)(`line`,{x1:`4`,y1:`18`,x2:`20`,y2:`18`})]}),K),sf=G((0,U.jsx)(`path`,{strokeWidth:`1.25`,d:`M3.333 14.167v1.666c0 .92.747 1.667 1.667 1.667h10c.92 0 1.667-.746 1.667-1.667v-1.666M5.833 9.167 10 13.333l4.167-4.166M10 3.333v10`}),q),cf=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,U.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12`,y2:`17.01`}),(0,U.jsx)(`path`,{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`})]}),K),lf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,U.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12`,y2:`17.01`}),(0,U.jsx)(`path`,{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`})]}),K),uf=G((0,U.jsx)(`path`,{strokeWidth:`1.25`,d:`M9.167 5.833H5.833c-1.254 0-2.5 1.282-2.5 2.5v5.834c0 1.283 1.252 2.5 2.5 2.5h5.834c1.251 0 2.5-1.25 2.5-2.5v-3.334M8.333 11.667l8.334-8.334M12.5 3.333h4.167V7.5`}),q),df=G((0,U.jsx)(`path`,{d:`M7.5 15.833c-3.583 1.167-3.583-2.083-5-2.5m10 4.167v-2.917c0-.833.083-1.166-.417-1.666 2.334-.25 4.584-1.167 4.584-5a3.833 3.833 0 0 0-1.084-2.667 3.5 3.5 0 0 0-.083-2.667s-.917-.25-2.917 1.084a10.25 10.25 0 0 0-5.166 0C5.417 2.333 4.5 2.583 4.5 2.583a3.5 3.5 0 0 0-.083 2.667 3.833 3.833 0 0 0-1.084 2.667c0 3.833 2.25 4.75 4.584 5-.5.5-.5 1-.417 1.666V17.5`,strokeWidth:`1.25`}),q),ff=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M7.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM12.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM6.25 6.25c2.917-.833 4.583-.833 7.5 0M5.833 13.75c2.917.833 5.417.833 8.334 0`}),(0,U.jsx)(`path`,{d:`M12.917 14.167c0 .833 1.25 2.5 1.666 2.5 1.25 0 2.361-1.39 2.917-2.5.556-1.39.417-4.861-1.25-9.584-1.214-.846-2.5-1.116-3.75-1.25l-.833 2.084M7.083 14.167c0 .833-1.13 2.5-1.526 2.5-1.191 0-2.249-1.39-2.778-2.5-.529-1.39-.397-4.861 1.19-9.584 1.157-.846 2.318-1.116 3.531-1.25l.833 2.084`})]}),q),pf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 4l11.733 16h4.267l-11.733 -16z`}),(0,U.jsx)(`path`,{d:`M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772`})]}),K),mf=G((0,U.jsx)(`polyline`,{fill:`none`,stroke:`currentColor`,points:`20 6 9 17 4 12`}),{width:24,height:24}),hf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M8.333 11.667a2.917 2.917 0 0 0 4.167 0l3.333-3.334a2.946 2.946 0 1 0-4.166-4.166l-.417.416`}),(0,U.jsx)(`path`,{d:`M11.667 8.333a2.917 2.917 0 0 0-4.167 0l-3.333 3.334a2.946 2.946 0 0 0 4.166 4.166l.417-.416`})]}),q),gf=G(`M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z`,{width:448,height:512}),_f=G(`M252 54L203 8a28 27 0 00-20-8H28C12 0 0 12 0 27v195c0 15 12 26 28 26h204c15 0 28-11 28-26V73a28 27 0 00-8-19zM130 213c-21 0-37-16-37-36 0-19 16-35 37-35 20 0 37 16 37 35 0 20-17 36-37 36zm56-169v56c0 4-4 6-7 6H44c-4 0-7-2-7-6V42c0-4 3-7 7-7h133l4 2 3 2a7 7 0 012 5z M296 201l87 95-188 205-78 9c-10 1-19-8-18-20l9-84zm141-14l-41-44a31 31 0 00-46 0l-38 41 87 95 38-42c13-14 13-36 0-50z`,{width:448,height:512}),vf=G((0,U.jsx)(`path`,{d:`m9.257 6.351.183.183H15.819c.34 0 .727.182 1.051.506.323.323.505.708.505 1.05v5.819c0 .316-.183.7-.52 1.035-.337.338-.723.522-1.037.522H4.182c-.352 0-.74-.181-1.058-.5-.318-.318-.499-.705-.499-1.057V5.182c0-.351.181-.736.5-1.054.32-.321.71-.503 1.057-.503H6.53l2.726 2.726Z`,strokeWidth:`1.25`}),q);G(`M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z`,{width:384,height:512}),G(`M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z`);var yf=[`M5 16l1.465 1.638a2 2 0 1 1 -3.015 .099l1.55 -1.737z`,`M13.737 9.737c2.299 -2.3 3.23 -5.095 2.081 -6.245c-1.15 -1.15 -3.945 -.217 -6.244 2.082c-2.3 2.299 -3.231 5.095 -2.082 6.244c1.15 1.15 3.946 .218 6.245 -2.081z`,`M7.492 11.818c.362 .362 .768 .676 1.208 .934l6.895 4.047c1.078 .557 2.255 -.075 3.692 -1.512c1.437 -1.437 2.07 -2.614 1.512 -3.692c-.372 -.718 -1.72 -3.017 -4.047 -6.895a6.015 6.015 0 0 0 -.934 -1.208`],bf=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),yf.map(e=>(0,U.jsx)(`path`,{d:e},e))]}),K),xf=G((0,U.jsx)(`g`,{strokeWidth:1.5,children:(0,U.jsx)(`path`,{d:`M6 18l12 -12`})}),K),Sf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15 8h.01`}),(0,U.jsx)(`path`,{d:`M12 20h-5a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v5`}),(0,U.jsx)(`path`,{d:`M4 15l4 -4c.928 -.893 2.072 -.893 3 0l4 4`}),(0,U.jsx)(`path`,{d:`M14 14l1 -1c.617 -.593 1.328 -.793 2.009 -.598`}),(0,U.jsx)(`path`,{d:`M19 16v6`}),(0,U.jsx)(`path`,{d:`M22 19l-3 3l-3 -3`})]}),K),Cf=G(`M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z`,{width:512,height:512});G(`M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z`,{width:448,height:512}),G(`M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z`,{width:448,height:512});var wf=G(`M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z`);G(`M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z`);var Tf=G((0,U.jsx)(`path`,{d:`M7.5 10.833 4.167 7.5 7.5 4.167M4.167 7.5h9.166a3.333 3.333 0 0 1 0 6.667H12.5`,strokeWidth:`1.25`}),q),Ef=G((0,U.jsx)(`path`,{d:`M12.5 10.833 15.833 7.5 12.5 4.167M15.833 7.5H6.667a3.333 3.333 0 1 0 0 6.667H7.5`,strokeWidth:`1.25`}),q),Df=G(`M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z`,{mirror:!0}),Of=G((0,U.jsx)(`path`,{d:`M5 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 7.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 17.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM7.25 8.917l5.5-2.834M7.25 11.083l5.5 2.834`,strokeWidth:`1.5`}),q);G(`M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z`),G(`M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-.9 2-2 2H6c-1.11 0-2-.9-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3c1.1 0 2 .89 2 2z`,{width:24,height:24}),G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 9h-1a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-8a2 2 0 0 0 -2 -2h-1`}),(0,U.jsx)(`path`,{d:`M12 14v-11`}),(0,U.jsx)(`path`,{d:`M9 6l3 -3l3 3`})]}),K),G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{fill:`currentColor`,d:`M40 5.6v6.1l-4.1.7c-8.9 1.4-16.5 6.9-20.6 15C13 32 10.9 43 12.4 43c.4 0 2.4-1.3 4.4-3 5-3.9 12.1-7 18.2-7.7l5-.6v12.8l11.2-11.3L62.5 22 51.2 10.8 40-.5v6.1zm10.2 22.6L44 34.5v-6.8l-6.9.6c-3.9.3-9.8 1.7-13.2 3.1-3.5 1.4-6.5 2.4-6.7 2.2-.9-1 3-7.5 6.4-10.8C28 18.6 34.4 16 40.1 16c3.7 0 3.9-.1 3.9-3.2V9.5l6.2 6.3 6.3 6.2-6.3 6.2z`}),(0,U.jsx)(`path`,{stroke:`currentColor`,fill:`currentColor`,d:`M0 36v20h48v-6.2c0-6 0-6.1-2-4.3-1.1 1-2 2.9-2 4.2V52H4V34c0-17.3-.1-18-2-18s-2 .7-2 20z`})]}),{width:64,height:64}),G((0,U.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`40`,fill:`currentColor`,d:`M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z`}),{width:1024});var kf=(0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 10l0 10`}),(0,U.jsx)(`path`,{d:`M12 10l4 4`}),(0,U.jsx)(`path`,{d:`M12 10l-4 4`}),(0,U.jsx)(`path`,{d:`M4 4l16 0`})]}),Af=(0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 5l0 14`}),(0,U.jsx)(`path`,{d:`M16 9l-4 -4`}),(0,U.jsx)(`path`,{d:`M8 9l4 -4`})]}),jf=G(Af,K),Mf=G(Af,{...K,style:{transform:`rotate(180deg)`}}),Nf=G(kf,K),Pf=G(kf,{...K,style:{transform:`rotate(180deg)`}}),Ff=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M3.333 3.333h13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v7.083c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V8.125c0-.92-.746-1.667-1.666-1.667ZM6.875 6.458h-.417c-.92 0-1.666.747-1.666 1.667v3.75c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667v-3.75c0-.92-.747-1.667-1.667-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),If=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M3.333 16.667h13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M6.875 3.125h-.417c-.92 0-1.666.746-1.666 1.667v7.083c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667V4.792c0-.92-.747-1.667-1.667-1.667ZM13.542 5.817h-.417c-.92 0-1.667.747-1.667 1.667v4.391c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V7.484c0-.92-.746-1.667-1.666-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Lf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M3.333 3.333v13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M15.208 4.792H8.125c-.92 0-1.667.746-1.667 1.666v.417c0 .92.747 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM12.516 11.458H8.125c-.92 0-1.667.746-1.667 1.667v.417c0 .92.747 1.666 1.667 1.666h4.391c.92 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.667-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Rf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M16.667 3.333v13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M11.875 4.792H4.792c-.92 0-1.667.746-1.667 1.666v.417c0 .92.746 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM11.683 11.458H7.292c-.92 0-1.667.746-1.667 1.667v.417c0 .92.746 1.666 1.667 1.666h4.39c.921 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.666-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),zf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M16.667 3.333v13.334M3.333 3.333v13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M14.375 10.208v-.416c0-.92-.746-1.667-1.667-1.667H7.292c-.92 0-1.667.746-1.667 1.667v.416c0 .92.746 1.667 1.667 1.667h5.416c.92 0 1.667-.746 1.667-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Bf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M3.333 3.333h13.334M3.333 16.667h13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10.208 5.625h-.416c-.92 0-1.667.746-1.667 1.667v5.416c0 .92.746 1.667 1.667 1.667h.416c.92 0 1.667-.746 1.667-1.667V7.292c0-.92-.746-1.667-1.667-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Vf=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M1.667 10h2.916`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M8.333 10h3.334`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M15.417 10h2.916`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M6.875 4.792h-.417c-.92 0-1.666.746-1.666 1.666v7.084c0 .92.746 1.666 1.666 1.666h.417c.92 0 1.667-.746 1.667-1.666V6.458c0-.92-.747-1.666-1.667-1.666ZM13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v3.75c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667v-3.75c0-.92-.746-1.667-1.666-1.667Z`})]}),q),Hf=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M10 18.333v-2.916`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10 11.667V8.333`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10 4.583V1.667`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M4.792 13.125v.417c0 .92.746 1.666 1.666 1.666h7.084c.92 0 1.666-.746 1.666-1.666v-.417c0-.92-.746-1.667-1.666-1.667H6.458c-.92 0-1.666.746-1.666 1.667ZM6.458 6.458v.417c0 .92.747 1.667 1.667 1.667h3.75c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666h-3.75c-.92 0-1.667.746-1.667 1.666Z`})]}),q),Uf=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`9`,cy:`7`,r:`4`}),(0,U.jsx)(`path`,{d:`M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`}),(0,U.jsx)(`path`,{d:`M16 3.13a4 4 0 0 1 0 7.75`}),(0,U.jsx)(`path`,{d:`M21 21v-2a4 4 0 0 0 -3 -3.85`})]}),K);G(`M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z`);var Wf=G(`M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z`),Gf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,U.jsx)(`path`,{d:`M15 5 5 15M5 5l10 10`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q);G(`M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z`,{mirror:!0}),G(`M11.553 22.894a.998.998 0 00.894 0s3.037-1.516 5.465-4.097C19.616 16.987 21 14.663 21 12V5a1 1 0 00-.649-.936l-8-3a.998.998 0 00-.702 0l-8 3A1 1 0 003 5v7c0 2.663 1.384 4.987 3.088 6.797 2.428 2.581 5.465 4.097 5.465 4.097zm-1.303-8.481l6.644-6.644a.856.856 0 111.212 1.212l-7.25 7.25a.856.856 0 01-1.212 0l-3.75-3.75a.856.856 0 111.212-1.212l3.144 3.144z`,{width:24}),G(`M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z`,{width:384,height:512});var Kf=V.memo(({theme:e})=>G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M25 26H111V111H25`,fill:Cd(e)}),(0,U.jsx)(`path`,{d:`M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z`,stroke:Cd(e),strokeWidth:`2`}),(0,U.jsx)(`path`,{d:`M100 100H160V160H100`,fill:Cd(e)}),(0,U.jsx)(`path`,{d:`M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z`,stroke:Cd(e),strokeWidth:`2`}),(0,U.jsxs)(`g`,{fill:wd(e),stroke:Cd(e),strokeWidth:`6`,children:[(0,U.jsx)(`rect`,{x:`2.5`,y:`2.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`2.5`,y:`149.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`147.5`,y:`149.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`147.5`,y:`2.5`,width:`30`,height:`30`})]})]}),{width:182,height:182,mirror:!0})),qf=V.memo(({theme:e})=>G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M25 26H111V111H25`,fill:Cd(e)}),(0,U.jsx)(`path`,{d:`M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z`,stroke:Cd(e),strokeWidth:`2`}),(0,U.jsx)(`path`,{d:`M100 100H160V160H100`,fill:Cd(e)}),(0,U.jsx)(`path`,{d:`M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z`,stroke:Cd(e),strokeWidth:`2`}),(0,U.jsxs)(`g`,{fill:wd(e),stroke:Cd(e),strokeWidth:`6`,children:[(0,U.jsx)(`rect`,{x:`2.5`,y:`2.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`78.5`,y:`149.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`147.5`,y:`149.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`147.5`,y:`78.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`105.5`,y:`2.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`2.5`,y:`102.5`,width:`30`,height:`30`})]})]}),{width:182,height:182,mirror:!0})),Jf=G((0,U.jsx)(`g`,{strokeWidth:1.25,children:(0,U.jsx)(`path`,{d:`M5.879 2.625h8.242a3.27 3.27 0 0 1 3.254 3.254v8.242a3.27 3.27 0 0 1-3.254 3.254H5.88a3.27 3.27 0 0 1-3.254-3.254V5.88A3.27 3.27 0 0 1 5.88 2.626l-.001-.001ZM4.518 16.118l7.608-12.83m.198 13.934 5.051-9.897M2.778 9.675l9.348-6.387m-7.608 12.83 12.857-8.793`})}),q),Yf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,U.jsx)(`mask`,{id:`FillHachureIcon`,style:{maskType:`alpha`},maskUnits:`userSpaceOnUse`,x:2,y:2,width:16,height:16,children:(0,U.jsx)(`path`,{d:`M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z`,fill:`currentColor`,stroke:`currentColor`,strokeWidth:`1.25`})}),(0,U.jsx)(`g`,{mask:`url(#FillHachureIcon)`,children:(0,U.jsx)(`path`,{d:`M2.258 15.156 15.156 2.258M7.324 20.222 20.222 7.325m-20.444 5.35L12.675-.222m-8.157 18.34L17.416 5.22`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})})]}),q),Xf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,children:[(0,U.jsx)(`path`,{d:`M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,U.jsx)(`mask`,{id:`FillCrossHatchIcon`,style:{maskType:`alpha`},maskUnits:`userSpaceOnUse`,x:-1,y:-1,width:22,height:22,children:(0,U.jsx)(`path`,{d:`M2.426 15.044 15.044 2.426M7.383 20 20 7.383M0 12.617 12.617 0m-7.98 17.941L17.256 5.324m-2.211 12.25L2.426 4.956M20 12.617 7.383 0m5.234 20L0 7.383m17.941 7.98L5.324 2.745`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,U.jsx)(`g`,{mask:`url(#FillCrossHatchIcon)`,children:(0,U.jsx)(`path`,{d:`M14.121 2H5.88A3.879 3.879 0 0 0 2 5.879v8.242A3.879 3.879 0 0 0 5.879 18h8.242A3.879 3.879 0 0 0 18 14.121V5.88A3.879 3.879 0 0 0 14.121 2Z`,fill:`currentColor`})})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Zf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,children:(0,U.jsx)(`path`,{d:`M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z`,stroke:`currentColor`,strokeWidth:`1.25`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),{...q,fill:`currentColor`}),Qf=G((0,U.jsx)(U.Fragment,{children:(0,U.jsx)(`path`,{d:`M4.167 10h11.666`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),q),$f=G((0,U.jsx)(`path`,{d:`M5 10h10`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),q),ep=G((0,U.jsx)(`path`,{d:`M5 10h10`,stroke:`currentColor`,strokeWidth:`3.75`,strokeLinecap:`round`,strokeLinejoin:`round`}),q);V.memo(({theme:e})=>G((0,U.jsx)(`path`,{d:`M6 10H34`,stroke:Cd(e),strokeWidth:2,fill:`none`,strokeLinecap:`round`}),{width:40,height:20}));var tp=G((0,U.jsxs)(`g`,{strokeWidth:`2`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 12h2`}),(0,U.jsx)(`path`,{d:`M17 12h2`}),(0,U.jsx)(`path`,{d:`M11 12h2`})]}),K),np=G((0,U.jsxs)(`g`,{strokeWidth:`2`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 12v.01`}),(0,U.jsx)(`path`,{d:`M8 12v.01`}),(0,U.jsx)(`path`,{d:`M12 12v.01`}),(0,U.jsx)(`path`,{d:`M16 12v.01`}),(0,U.jsx)(`path`,{d:`M20 12v.01`})]}),K),rp=G((0,U.jsx)(`path`,{d:`M2.5 12.038c1.655-.885 5.9-3.292 8.568-4.354 2.668-1.063.101 2.821 1.32 3.104 1.218.283 5.112-1.814 5.112-1.814`,strokeWidth:`1.25`}),q),ip=G((0,U.jsx)(`path`,{d:`M2.5 12.563c1.655-.886 5.9-3.293 8.568-4.355 2.668-1.062.101 2.822 1.32 3.105 1.218.283 5.112-1.814 5.112-1.814m-13.469 2.23c2.963-1.586 6.13-5.62 7.468-4.998 1.338.623-1.153 4.11-.132 5.595 1.02 1.487 6.133-1.43 6.133-1.43`,strokeWidth:`1.25`}),q),ap=G((0,U.jsx)(`path`,{d:`M2.5 11.936c1.737-.879 8.627-5.346 10.42-5.268 1.795.078-.418 5.138.345 5.736.763.598 3.53-1.789 4.235-2.147M2.929 9.788c1.164-.519 5.47-3.28 6.987-3.114 1.519.165 1 3.827 2.121 4.109 1.122.281 3.839-2.016 4.606-2.42`,strokeWidth:`1.25`}),q),op=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{d:`M4 12 C 5 8, 6 8, 8 12`,fill:`none`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M8 12 C 9 16, 10 16, 12 12`,fill:`none`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M12 12 C 14 8, 15 8, 16 12`,fill:`none`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M16 12 C 17 16, 18 16, 19 12`,fill:`none`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),K),sp=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{d:`M4 12 C 5 8, 6 8, 8 12`,fill:`none`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M8 12 C 9 16, 10 16, 12 12`,fill:`none`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M12 12 C 14 8, 15 8, 16 12`,fill:`none`,strokeWidth:`2.75`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M16 12 C 17 16, 18 16, 19 12`,fill:`none`,strokeWidth:`3.25`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),K),cp=G((0,U.jsxs)(`svg`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{d:`M3.33334 9.99998V6.66665C3.33334 6.04326 3.33403 4.9332 3.33539 3.33646C4.95233 3.33436 6.06276 3.33331 6.66668 3.33331H10`}),(0,U.jsx)(`path`,{d:`M13.3333 3.33331V3.34331`}),(0,U.jsx)(`path`,{d:`M16.6667 3.33331V3.34331`}),(0,U.jsx)(`path`,{d:`M16.6667 6.66669V6.67669`}),(0,U.jsx)(`path`,{d:`M16.6667 10V10.01`}),(0,U.jsx)(`path`,{d:`M3.33334 13.3333V13.3433`}),(0,U.jsx)(`path`,{d:`M16.6667 13.3333V13.3433`}),(0,U.jsx)(`path`,{d:`M3.33334 16.6667V16.6767`}),(0,U.jsx)(`path`,{d:`M6.66666 16.6667V16.6767`}),(0,U.jsx)(`path`,{d:`M10 16.6667V16.6767`}),(0,U.jsx)(`path`,{d:`M13.3333 16.6667V16.6767`}),(0,U.jsx)(`path`,{d:`M16.6667 16.6667V16.6767`})]}),q),lp=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 12v-4a4 4 0 0 1 4 -4h4`}),(0,U.jsx)(`line`,{x1:`16`,y1:`4`,x2:`16`,y2:`4.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`4`,x2:`20`,y2:`4.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`8`,x2:`20`,y2:`8.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`12`,x2:`20`,y2:`12.01`}),(0,U.jsx)(`line`,{x1:`4`,y1:`16`,x2:`4`,y2:`16.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`16`,x2:`20`,y2:`16.01`}),(0,U.jsx)(`line`,{x1:`4`,y1:`20`,x2:`4`,y2:`20.01`}),(0,U.jsx)(`line`,{x1:`8`,y1:`20`,x2:`8`,y2:`20.01`}),(0,U.jsx)(`line`,{x1:`12`,y1:`20`,x2:`12`,y2:`20.01`}),(0,U.jsx)(`line`,{x1:`16`,y1:`20`,x2:`16`,y2:`20.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`20`,x2:`20`,y2:`20.01`})]}),K),up=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{transform:e?`translate(40, 0) scale(-1, 1)`:``,stroke:`currentColor`,opacity:.3,strokeWidth:2,fill:`none`,strokeLinecap:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H19`}),(0,U.jsx)(`path`,{d:`M25,6 L33,16 M33,6 L25,16`})]}),Td)),dp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{transform:e?`translate(40, 0) scale(-1, 1)`:``,stroke:`currentColor`,strokeWidth:2,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,U.jsx)(`path`,{d:`M7,11 H33 M23,5 L33,11 L23,17`})}),Td)),fp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`currentColor`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H23`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{d:`M23,5 L35,11 L23,17 Z`})]}),Td)),pp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeWidth:2,strokeLinejoin:`round`,strokeLinecap:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H23`}),(0,U.jsx)(`path`,{d:`M23,5 L35,11 L23,17 Z`})]}),Td)),mp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`currentColor`,transform:e?`translate(40, 0) scale(-1, 1)`:``,children:[(0,U.jsx)(`path`,{d:`M7,11 H25`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`circle`,{cx:`29`,cy:`11`,r:`4`})]}),Td)),hp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeWidth:2,children:[(0,U.jsx)(`path`,{d:`M7,11 H25`,strokeLinecap:`round`}),(0,U.jsx)(`circle`,{cx:`29`,cy:`11`,r:`4`})]}),Td)),gp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`currentColor`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H21`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{d:`M21,11 L28,5 L35,11 L28,17 Z`})]}),Td)),_p=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeLinejoin:`round`,strokeWidth:2,strokeLinecap:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H21`}),(0,U.jsx)(`path`,{d:`M21,11 L28,5 L35,11 L28,17 Z`})]}),Td)),vp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{transform:e?`translate(40, 0) scale(-1, 1)`:``,stroke:`currentColor`,strokeWidth:2,fill:`none`,strokeLinecap:`round`,children:(0,U.jsx)(`path`,{d:`M11,11 H31 M31,5 V17`})}),Td)),yp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:(0,U.jsx)(`path`,{d:`M35,11 H7 M15,5 V17`})}),Td)),bp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:(0,U.jsx)(`path`,{d:`M35,11 H7 M15,11 L7,5 M15,11 L7,17`})}),Td)),xp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:(0,U.jsx)(`path`,{d:`M35,11 H7 M23,5 V17 M15,11 L7,5 M15,11 L7,17`})}),Td)),Sp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:(0,U.jsx)(`path`,{d:`M35,11 H7 M15,5 V17 M7,5 V17`})}),Td)),Cp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,U.jsx)(`path`,{d:`M35,11 H19 M11,11 H7 M7,5 V17`}),(0,U.jsx)(`circle`,{cx:`15`,cy:`11`,r:`4`})]}),Td)),wp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,U.jsx)(`path`,{d:`M35,11 H27 M19,11 H7 M15,11 L7,5 M15,11 L7,17`}),(0,U.jsx)(`circle`,{cx:`23`,cy:`11`,r:`4`})]}),Td)),Tp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,children:(0,U.jsx)(`path`,{d:`M14.167 6.667a3.333 3.333 0 0 0-3.334-3.334H9.167a3.333 3.333 0 0 0 0 6.667h1.666a3.333 3.333 0 0 1 0 6.667H9.167a3.333 3.333 0 0 1-3.334-3.334`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Ep=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,children:(0,U.jsx)(`path`,{d:`M5 16.667V3.333L10 15l5-11.667v13.334`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Dp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,children:(0,U.jsx)(`path`,{d:`M5.833 3.333v13.334h8.334`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Op=G((0,U.jsx)(U.Fragment,{children:(0,U.jsx)(`path`,{d:`m1.667 3.333 6.666 13.334M8.333 3.333 1.667 16.667M11.667 3.333v13.334h6.666`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),q),kp=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 7v-2h13v2`}),(0,U.jsx)(`path`,{d:`M10 5v14`}),(0,U.jsx)(`path`,{d:`M12 19h-4`}),(0,U.jsx)(`path`,{d:`M15 13v-1h6v1`}),(0,U.jsx)(`path`,{d:`M18 12v7`}),(0,U.jsx)(`path`,{d:`M17 19h2`})]}),K),Ap=G((0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M7 12h10`}),(0,U.jsx)(`path`,{d:`M7 5v14`}),(0,U.jsx)(`path`,{d:`M17 5v14`}),(0,U.jsx)(`path`,{d:`M15 19h4`}),(0,U.jsx)(`path`,{d:`M15 5h4`}),(0,U.jsx)(`path`,{d:`M5 19h4`}),(0,U.jsx)(`path`,{d:`M5 5h4`})]})}),K),jp=G((0,U.jsx)(U.Fragment,{children:(0,U.jsx)(`g`,{stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,U.jsx)(`path`,{d:`M5.833 16.667v-10a3.333 3.333 0 0 1 3.334-3.334h1.666a3.333 3.333 0 0 1 3.334 3.334v10M5.833 10.833h8.334`})})}),q),Mp=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M7 8l-4 4l4 4`}),(0,U.jsx)(`path`,{d:`M17 8l4 4l-4 4`}),(0,U.jsx)(`path`,{d:`M14 4l-4 16`})]}),K),Np=Mp,Pp=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`8`,x2:`20`,y2:`8`}),(0,U.jsx)(`line`,{x1:`4`,y1:`12`,x2:`12`,y2:`12`}),(0,U.jsx)(`line`,{x1:`4`,y1:`16`,x2:`16`,y2:`16`})]}),K),Fp=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`8`,x2:`20`,y2:`8`}),(0,U.jsx)(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`}),(0,U.jsx)(`line`,{x1:`6`,y1:`16`,x2:`18`,y2:`16`})]}),K),Ip=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`8`,x2:`20`,y2:`8`}),(0,U.jsx)(`line`,{x1:`10`,y1:`12`,x2:`20`,y2:`12`}),(0,U.jsx)(`line`,{x1:`8`,y1:`16`,x2:`20`,y2:`16`})]}),K),Lp=V.memo(({theme:e})=>G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`4`,x2:`20`,y2:`4`}),(0,U.jsx)(`rect`,{x:`9`,y:`8`,width:`6`,height:`12`,rx:`2`})]}),K)),Rp=V.memo(({theme:e})=>G((0,U.jsxs)(`g`,{strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`20`,x2:`20`,y2:`20`}),(0,U.jsx)(`rect`,{x:`9`,y:`4`,width:`6`,height:`12`,rx:`2`})]}),K)),zp=V.memo(({theme:e})=>G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`12`,x2:`9`,y2:`12`}),(0,U.jsx)(`line`,{x1:`15`,y1:`12`,x2:`20`,y2:`12`}),(0,U.jsx)(`rect`,{x:`9`,y:`6`,width:`6`,height:`12`,rx:`2`})]}),K)),Bp=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M21 19h-18l9 -15`}),(0,U.jsx)(`path`,{d:`M20.615 15.171h.015`}),(0,U.jsx)(`path`,{d:`M19.515 11.771h.015`}),(0,U.jsx)(`path`,{d:`M17.715 8.671h.015`}),(0,U.jsx)(`path`,{d:`M15.415 5.971h.015`})]}),K),Vp=G((0,U.jsx)(`path`,{d:`M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z`,fill:`currentColor`}),{width:640,height:512});G((0,U.jsx)(`path`,{d:`M480 416C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H150.6C133.7 480 117.4 473.3 105.4 461.3L25.37 381.3C.3786 356.3 .3786 315.7 25.37 290.7L258.7 57.37C283.7 32.38 324.3 32.38 349.3 57.37L486.6 194.7C511.6 219.7 511.6 260.3 486.6 285.3L355.9 416H480zM265.4 416L332.7 348.7L195.3 211.3L70.63 336L150.6 416L265.4 416z`}));var Hp=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5`}),(0,U.jsx)(`path`,{d:`M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5`}),(0,U.jsx)(`path`,{d:`M14 5.5a1.5 1.5 0 0 1 3 0v6.5`}),(0,U.jsx)(`path`,{d:`M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47`})]}),K),Up=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`}),(0,U.jsx)(`path`,{d:`M7 11l5 5l5 -5`}),(0,U.jsx)(`path`,{d:`M12 4l0 12`})]}),K),Wp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z`}),(0,U.jsx)(`path`,{d:`M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2`})]}),K),Gp=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M7 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`}),(0,U.jsx)(`path`,{d:`M17 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`}),(0,U.jsx)(`path`,{d:`M9.15 14.85l8.85 -10.85`}),(0,U.jsx)(`path`,{d:`M6 4l8.85 10.85`})]}),K),Kp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}),(0,U.jsx)(`path`,{d:`M12 17l0 .01`}),(0,U.jsx)(`path`,{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`})]}),K);G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M7 4v16l13 -8z`})]}),K),G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M17 4h-10a3 3 0 0 0 -3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3 -3v-10a3 3 0 0 0 -3 -3z`,strokeWidth:`0`,fill:`currentColor`})]}),K);var qp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 12l5 5l10 -10`})]}),K),Jp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z`}),(0,U.jsx)(`path`,{d:`M12 9v4`}),(0,U.jsx)(`path`,{d:`M12 17h.01`})]}),K),Yp=[`M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z`,`M11 7l6 6`],Xp=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),Yp.map(e=>(0,U.jsx)(`path`,{d:e},e))]}),K),Zp=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 7l16 0`}),(0,U.jsx)(`path`,{d:`M4 17l16 0`}),(0,U.jsx)(`path`,{d:`M7 4l0 16`}),(0,U.jsx)(`path`,{d:`M17 4l0 16`})]}),K),Qp=G((0,U.jsx)(`path`,{fill:`currentColor`,d:`M407.48,111.18C335.587,108.103 269.573,152.338 245.08,220C220.587,152.338 154.573,108.103 82.68,111.18C80.285,168.229 107.577,222.632 154.74,254.82C178.908,271.419 193.35,298.951 193.27,328.27L193.27,379.13L296.9,379.13L296.9,328.27C296.816,298.953 311.255,271.42 335.42,254.82C382.596,222.644 409.892,168.233 407.48,111.18Z`})),$p=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`}),(0,U.jsx)(`path`,{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`})]}),K),em=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 10l-2 1l8 4l8 -4l-2 -1`}),(0,U.jsx)(`path`,{d:`M4 15l8 4l8 -4`}),(0,U.jsx)(`path`,{d:`M12 4v7`}),(0,U.jsx)(`path`,{d:`M15 8l-3 3l-3 -3`})]}),K),tm=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M4.16602 10H15.8327`}),(0,U.jsx)(`path`,{d:`M12.5 13.3333L15.8333 10`}),(0,U.jsx)(`path`,{d:`M12.5 6.66666L15.8333 9.99999`})]}),q),nm=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 9.5a6.5 6.5 0 1 0 13 0a6.5 6.5 0 1 0 -13 0`}),(0,U.jsx)(`path`,{d:`M10 12a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2l0 -7`})]}),K),rm=G((0,U.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,transform:`rotate(90 10 10)`,children:[(0,U.jsx)(`path`,{clipRule:`evenodd`,d:`m9.644 13.69 7.774-7.773a2.357 2.357 0 0 0-3.334-3.334l-7.773 7.774L8 12l1.643 1.69Z`}),(0,U.jsx)(`path`,{d:`m13.25 3.417 3.333 3.333M10 10l2-2M5 15l3-3M2.156 17.894l1-1M5.453 19.029l-.144-1.407M2.377 11.887l.866 1.118M8.354 17.273l-1.194-.758M.953 14.652l1.408.13`})]}),20),im=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`}),(0,U.jsx)(`path`,{d:`M6 21l15 -15l-3 -3l-15 15l3 3`}),(0,U.jsx)(`path`,{d:`M15 6l3 3`}),(0,U.jsx)(`path`,{d:`M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`}),(0,U.jsx)(`path`,{d:`M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`})]}),K);G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`}),(0,U.jsx)(`path`,{d:`M6 21l15 -15l-3 -3l-15 15l3 3`}),(0,U.jsx)(`path`,{d:`M15 6l3 3`}),(0,U.jsx)(`path`,{d:`M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`}),(0,U.jsx)(`path`,{d:`M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`})]}),K),G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M11.217 19.384a3.501 3.501 0 0 0 6.783 -1.217v-5.167l-6 -3.35`}),(0,U.jsx)(`path`,{d:`M5.214 15.014a3.501 3.501 0 0 0 4.446 5.266l4.34 -2.534v-6.946`}),(0,U.jsx)(`path`,{d:`M6 7.63c-1.391 -.236 -2.787 .395 -3.534 1.689a3.474 3.474 0 0 0 1.271 4.745l4.263 2.514l6 -3.348`}),(0,U.jsx)(`path`,{d:`M12.783 4.616a3.501 3.501 0 0 0 -6.783 1.217v5.067l6 3.45`}),(0,U.jsx)(`path`,{d:`M18.786 8.986a3.501 3.501 0 0 0 -4.446 -5.266l-4.34 2.534v6.946`}),(0,U.jsx)(`path`,{d:`M18 16.302c1.391 .236 2.787 -.395 3.534 -1.689a3.474 3.474 0 0 0 -1.271 -4.745l-4.308 -2.514l-5.955 3.42`})]}),K);var am=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 8v-2a2 2 0 0 1 2 -2h2`}),(0,U.jsx)(`path`,{d:`M4 16v2a2 2 0 0 0 2 2h2`}),(0,U.jsx)(`path`,{d:`M16 4h2a2 2 0 0 1 2 2v2`}),(0,U.jsx)(`path`,{d:`M16 20h2a2 2 0 0 0 2 -2v-2`})]}),K),om=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`}),(0,U.jsx)(`path`,{d:`M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6`})]}),K),sm=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10.585 10.587a2 2 0 0 0 2.829 2.828`}),(0,U.jsx)(`path`,{d:`M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87`}),(0,U.jsx)(`path`,{d:`M3 3l18 18`})]}),K),cm=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15.5 13a3.5 3.5 0 0 0 -3.5 3.5v1a3.5 3.5 0 0 0 7 0v-1.8`}),(0,U.jsx)(`path`,{d:`M8.5 13a3.5 3.5 0 0 1 3.5 3.5v1a3.5 3.5 0 0 1 -7 0v-1.8`}),(0,U.jsx)(`path`,{d:`M17.5 16a3.5 3.5 0 0 0 0 -7h-.5`}),(0,U.jsx)(`path`,{d:`M19 9.3v-2.8a3.5 3.5 0 0 0 -7 0`}),(0,U.jsx)(`path`,{d:`M6.5 16a3.5 3.5 0 0 1 0 -7h.5`}),(0,U.jsx)(`path`,{d:`M5 9.3v-2.8a3.5 3.5 0 0 1 7 0v10`})]}),K),lm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15.5 13a3.5 3.5 0 0 0 -3.5 3.5v1a3.5 3.5 0 0 0 7 0v-1.8`}),(0,U.jsx)(`path`,{d:`M8.5 13a3.5 3.5 0 0 1 3.5 3.5v1a3.5 3.5 0 0 1 -7 0v-1.8`}),(0,U.jsx)(`path`,{d:`M17.5 16a3.5 3.5 0 0 0 0 -7h-.5`}),(0,U.jsx)(`path`,{d:`M19 9.3v-2.8a3.5 3.5 0 0 0 -7 0`}),(0,U.jsx)(`path`,{d:`M6.5 16a3.5 3.5 0 0 1 0 -7h.5`}),(0,U.jsx)(`path`,{d:`M5 9.3v-2.8a3.5 3.5 0 0 1 7 0v10`})]}),K),um=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`}),(0,U.jsx)(`path`,{d:`M21 21l-6 -6`})]}),K),dm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M20.984 12.53a9 9 0 1 0 -7.552 8.355`}),(0,U.jsx)(`path`,{d:`M12 7v5l3 3`}),(0,U.jsx)(`path`,{d:`M19 16l-2 3h4l-2 3`})]}),K),fm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 8l0 4l2 2`}),(0,U.jsx)(`path`,{d:`M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5`})]}),K),pm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M9 2m0 3a3 3 0 0 1 3 -3h0a3 3 0 0 1 3 3v5a3 3 0 0 1 -3 3h0a3 3 0 0 1 -3 -3z`}),(0,U.jsx)(`path`,{d:`M5 10a7 7 0 0 0 14 0`}),(0,U.jsx)(`path`,{d:`M8 21l8 0`}),(0,U.jsx)(`path`,{d:`M12 17l0 4`})]}),K),mm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 3l18 18`}),(0,U.jsx)(`path`,{d:`M9 5a3 3 0 0 1 6 0v5a3 3 0 0 1 -.13 .874m-2 2a3 3 0 0 1 -3.87 -2.872v-1`}),(0,U.jsx)(`path`,{d:`M5 10a7 7 0 0 0 10.846 5.85m2 -2a6.967 6.967 0 0 0 1.152 -3.85`}),(0,U.jsx)(`path`,{d:`M8 21l8 0`}),(0,U.jsx)(`path`,{d:`M12 17l0 4`})]}),K),hm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11`})]}),K),gm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 8m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z`}),(0,U.jsx)(`path`,{d:`M12 20v.01`}),(0,U.jsx)(`path`,{d:`M16 20v.01`}),(0,U.jsx)(`path`,{d:`M8 20v.01`}),(0,U.jsx)(`path`,{d:`M4 20v.01`}),(0,U.jsx)(`path`,{d:`M4 16v.01`}),(0,U.jsx)(`path`,{d:`M4 12v.01`}),(0,U.jsx)(`path`,{d:`M4 8v.01`}),(0,U.jsx)(`path`,{d:`M4 4v.01`}),(0,U.jsx)(`path`,{d:`M8 4v.01`}),(0,U.jsx)(`path`,{d:`M12 4v.01`}),(0,U.jsx)(`path`,{d:`M16 4v.01`}),(0,U.jsx)(`path`,{d:`M20 4v.01`}),(0,U.jsx)(`path`,{d:`M20 8v.01`}),(0,U.jsx)(`path`,{d:`M20 12v.01`}),(0,U.jsx)(`path`,{d:`M20 16v.01`}),(0,U.jsx)(`path`,{d:`M20 20v.01`})]}),K),_m=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 3v18`}),(0,U.jsx)(`path`,{d:`M19 21v-18`}),(0,U.jsx)(`path`,{d:`M5 7h14`}),(0,U.jsx)(`path`,{d:`M5 15h14`}),(0,U.jsx)(`path`,{d:`M8 13v4`}),(0,U.jsx)(`path`,{d:`M11 13v4`}),(0,U.jsx)(`path`,{d:`M16 13v4`}),(0,U.jsx)(`path`,{d:`M14 5v4`}),(0,U.jsx)(`path`,{d:`M11 5v4`}),(0,U.jsx)(`path`,{d:`M8 5v4`}),(0,U.jsx)(`path`,{d:`M3 21h18`})]}),K),vm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 12l18 0`}),(0,U.jsx)(`path`,{d:`M7 16l10 0l-10 5l0 -5`}),(0,U.jsx)(`path`,{d:`M7 8l10 0l-10 -5l0 5`})]}),K),ym=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 3l0 18`}),(0,U.jsx)(`path`,{d:`M16 7l0 10l5 0l-5 -10`}),(0,U.jsx)(`path`,{d:`M8 7l0 10l-5 0l5 -10`})]}),K),bm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z`}),(0,U.jsx)(`path`,{d:`M19 6h1a2 2 0 0 1 2 2a5 5 0 0 1 -5 5l-5 0v2`}),(0,U.jsx)(`path`,{d:`M10 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`})]}),K),xm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15 15m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0`}),(0,U.jsx)(`path`,{d:`M22 22l-3 -3`}),(0,U.jsx)(`path`,{d:`M6 18h-1a2 2 0 0 1 -2 -2v-1`}),(0,U.jsx)(`path`,{d:`M3 11v-1`}),(0,U.jsx)(`path`,{d:`M3 6v-1a2 2 0 0 1 2 -2h1`}),(0,U.jsx)(`path`,{d:`M10 3h1`}),(0,U.jsx)(`path`,{d:`M15 3h1a2 2 0 0 1 2 2v1`})]}),K),Sm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`}),(0,U.jsx)(`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`}),(0,U.jsx)(`path`,{d:`M4 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75`}),(0,U.jsx)(`path`,{d:`M10 15l2 6l2 -6`}),(0,U.jsx)(`path`,{d:`M20 15h-1a2 2 0 0 0 -2 2v2a2 2 0 0 0 2 2h1v-3`})]}),K),Cm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`}),(0,U.jsx)(`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`}),(0,U.jsx)(`path`,{d:`M20 15h-1a2 2 0 0 0 -2 2v2a2 2 0 0 0 2 2h1v-3`}),(0,U.jsx)(`path`,{d:`M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6`}),(0,U.jsx)(`path`,{d:`M11 21v-6l3 6v-6`})]}),K),wm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 13v-8a2 2 0 0 1 2 -2h1a2 2 0 0 1 2 2v8a2 2 0 0 0 6 0v-8a2 2 0 0 1 2 -2h1a2 2 0 0 1 2 2v8a8 8 0 0 1 -16 0`}),(0,U.jsx)(`path`,{d:`M4 8l5 0`}),(0,U.jsx)(`path`,{d:`M15 8l4 0`})]}),K),Tm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 14c.83 .642 2.077 1.017 3.5 1c1.423 .017 2.67 -.358 3.5 -1c.83 -.642 2.077 -1.017 3.5 -1c1.423 -.017 2.67 .358 3.5 1`}),(0,U.jsx)(`path`,{d:`M8 3a2.4 2.4 0 0 0 -1 2a2.4 2.4 0 0 0 1 2`}),(0,U.jsx)(`path`,{d:`M12 3a2.4 2.4 0 0 0 -1 2a2.4 2.4 0 0 0 1 2`}),(0,U.jsx)(`path`,{d:`M3 10h14v5a6 6 0 0 1 -6 6h-2a6 6 0 0 1 -6 -6v-5z`}),(0,U.jsx)(`path`,{d:`M16.746 16.726a3 3 0 1 0 .252 -5.555`})]}),K),Em=G((0,U.jsxs)(`g`,{stroke:`currentColor`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 5a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-16a1 1 0 0 1-1-1v-10zM7 20h10M9 16v4M15 16v4`})]}),{...K,strokeWidth:1.5});G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2`}),(0,U.jsx)(`path`,{d:`M21 12h-13l3 -3`}),(0,U.jsx)(`path`,{d:`M11 15l-3 -3`})]}),K);var Dm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8z`}),(0,U.jsx)(`path`,{d:`M10 9l5 3l-5 3z`})]}),K),Om=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 6h18`}),(0,U.jsx)(`path`,{d:`M3 12h18`}),(0,U.jsx)(`path`,{d:`M3 18h18`}),(0,U.jsx)(`path`,{d:`M6 3v18`}),(0,U.jsx)(`path`,{d:`M12 3v18`}),(0,U.jsx)(`path`,{d:`M18 3v18`})]}),K),km=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M17 3m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`}),(0,U.jsx)(`path`,{d:`M3 17m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`}),(0,U.jsx)(`path`,{d:`M17 5c-6.627 0 -12 5.373 -12 12`})]}),K),Am=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 18l12 -12`}),(0,U.jsx)(`path`,{d:`M18 10v-4h-4`})]}),K),jm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4,19L10,19C11.097,19 12,18.097 12,17L12,9C12,7.903 12.903,7 14,7L21,7`}),(0,U.jsx)(`path`,{d:`M18 4l3 3l-3 3`})]}),K),Mm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{d:`M16,12L20,9L16,6`}),(0,U.jsx)(`path`,{d:`M6 20c0 -6.075 4.925 -11 11 -11h3`})]}),K),Nm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 9l6 6l6 -6`})]}),K),Pm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 15l6 -6l6 6`})]}),K),Fm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 15l6 -6l6 6`})]}),K),Im=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 5v10a1 1 0 0 0 1 1h10`}),(0,U.jsx)(`path`,{d:`M5 8h10a1 1 0 0 1 1 1v10`})]}),K),Lm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M19 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M5 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M19 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M5 7l0 10`}),(0,U.jsx)(`path`,{d:`M7 5l10 0`}),(0,U.jsx)(`path`,{d:`M7 19l10 0`}),(0,U.jsx)(`path`,{d:`M19 7l0 10`})]}),K);G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 11v8a1 1 0 0 0 1 1h8m-9 -14v-1a1 1 0 0 1 1 -1h1m5 0h2m5 0h1a1 1 0 0 1 1 1v1m0 5v2m0 5v1a1 1 0 0 1 -1 1h-1`}),(0,U.jsx)(`path`,{d:`M4 12h7a1 1 0 0 1 1 1v7`})]}),K);var Rm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 6l8 0`}),(0,U.jsx)(`path`,{d:`M16 6l4 0`}),(0,U.jsx)(`path`,{d:`M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 12l2 0`}),(0,U.jsx)(`path`,{d:`M10 12l10 0`}),(0,U.jsx)(`path`,{d:`M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 18l11 0`}),(0,U.jsx)(`path`,{d:`M19 18l1 0`})]}),K),zm=G((0,U.jsxs)(`g`,{strokeWidth:1,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 10l4 -4 L6 14l8 -8 L6 18l12 -12 L10 18l8 -8 L14 18l4 -4`})]}),K),Bm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`}),(0,U.jsx)(`path`,{d:`M13.5 6.5l4 4`})]}),K);G((0,U.jsxs)(`g`,{strokeWidth:1,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M11 7l-5 5l5 5`}),(0,U.jsx)(`path`,{d:`M17 7l-5 5l5 5`})]}),K);var Vm=G((0,U.jsxs)(`g`,{strokeWidth:`1.75`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z`}),(0,U.jsx)(`path`,{d:`M15 4l0 16`})]}),K);G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1`})]}),K),G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 4l18 0`}),(0,U.jsx)(`path`,{d:`M4 4v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-10`}),(0,U.jsx)(`path`,{d:`M12 16l0 4`}),(0,U.jsx)(`path`,{d:`M9 20l6 0`}),(0,U.jsx)(`path`,{d:`M8 12l3 -3l2 2l3 -3`})]}),K);var Hm=(0,U.jsx)(`div`,{style:{width:`1rem`,height:`1rem`}}),Um=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`polyline`,{points:`6 9 12 15 18 9`})]}),K),Wm=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`polyline`,{points:`9 6 15 12 9 18`})]}),K),Gm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 6l8 0`}),(0,U.jsx)(`path`,{d:`M16 6l4 0`}),(0,U.jsx)(`path`,{d:`M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 12l2 0`}),(0,U.jsx)(`path`,{d:`M10 12l10 0`}),(0,U.jsx)(`path`,{d:`M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 18l11 0`}),(0,U.jsx)(`path`,{d:`M19 18l1 0`})]}),K),Km=({size:e=`1em`,circleWidth:t=8,synchronized:n=!1,className:r=``})=>{let i=-(V.useRef(Date.now()).current%1600);return(0,U.jsx)(`div`,{className:`Spinner ${r}`,children:(0,U.jsx)(`svg`,{viewBox:`0 0 100 100`,style:{width:e,height:e,"--spinner-delay":n?`${i}ms`:0},children:(0,U.jsx)(`circle`,{cx:`50`,cy:`50`,r:50-t/2,strokeWidth:t,fill:`none`,strokeMiterlimit:`10`})})})},J=V.forwardRef(({size:e=`medium`,visible:t=!0,className:n=``,...r},i)=>{let a=V.useRef(null);V.useImperativeHandle(i,()=>a.current);let o=`ToolIcon_size_${e}`,[s,c]=(0,V.useState)(!1),l=(0,V.useRef)(!0),u=async e=>{let t=`onClick`in r&&r.onClick?.(e);if(kn(t))try{c(!0),await t}catch(e){if(e instanceof Ys)console.warn(e);else throw e}finally{l.current&&c(!1)}};(0,V.useEffect)(()=>(l.current=!0,()=>{l.current=!1}),[]);let d=(0,V.useRef)(null);return r.type===`button`||r.type===`icon`?(0,U.jsxs)(`button`,{className:H(`ToolIcon_type_button`,o,n,t&&!r.hidden?`ToolIcon_type_button--show`:`ToolIcon_type_button--hide`,{ToolIcon:!r.hidden,"ToolIcon--plain":r.type===`icon`}),style:r.style,"data-testid":r[`data-testid`],hidden:r.hidden,title:r.title,"aria-label":r[`aria-label`],type:`button`,onClick:u,ref:a,disabled:s||r.isLoading||!!r.disabled,children:[(r.icon||r.label)&&(0,U.jsxs)(`div`,{className:`ToolIcon__icon`,"aria-hidden":`true`,"aria-disabled":!!r.disabled,children:[r.icon||r.label,r.keyBindingLabel&&(0,U.jsx)(`span`,{className:`ToolIcon__keybinding`,children:r.keyBindingLabel}),r.isLoading&&(0,U.jsx)(Km,{})]}),r.showAriaLabel&&(0,U.jsxs)(`div`,{className:`ToolIcon__label`,children:[r[`aria-label`],` `,s&&(0,U.jsx)(Km,{})]}),r.children]}):(0,U.jsx)(`button`,{className:H(`ToolIcon`,`ToolIcon_type_toggle`,o,n,{"ToolIcon--checked":r.checked}),type:`button`,style:r.style,title:r.title,"aria-label":r[`aria-label`],"aria-keyshortcuts":r[`aria-keyshortcuts`],"aria-pressed":r.checked,"data-testid":r[`data-testid`],disabled:!!r.disabled,"aria-disabled":!!r.disabled,onPointerDown:e=>{d.current=e.pointerType||null},onPointerUp:()=>{requestAnimationFrame(()=>{d.current=null})},onClick:()=>{r.onSelect?.({pointerType:d.current})},ref:a,children:(0,U.jsxs)(`div`,{className:`ToolIcon__icon`,children:[r.icon,r.keyBindingLabel&&(0,U.jsx)(`span`,{className:`ToolIcon__keybinding`,children:r.keyBindingLabel})]})})});J.displayName=`IconButton`;var qm=[],Y=e=>(qm=qm.concat(e),e),Jm=(e,t,n)=>{let r=new Set(Ls(e.filter(e=>F(e)),t).map(e=>e.id)),i={},a=n.scene.getNonDeletedElementsMap(),o=new Set;for(let t of r){let n=Pr(e,t);for(let e of n)if(!o.has(e.id)){if(Gs(e)){let t=$o(e,a);t&&(i[t.id]=!0)}else i[e.id]=!0;o.add(e.id)}}let s=!0,c=e.map(e=>{if(t.selectedElementIds[e.id]){let t=Gs(e)?$o(e,a):null;return e.frameId&&r.has(e.frameId)?(s=!1,i[e.id]=!0,e):t?.frameId&&r.has(t?.frameId)?e:(e.boundElements&&e.boundElements.forEach(t=>{let r=n.scene.getNonDeletedElementsMap().get(t.id);r&&Ke(r)&&n.scene.mutateElement(r,{startBinding:e.id===r.startBinding?.elementId?null:r.startBinding,endBinding:e.id===r.endBinding?.elementId?null:r.endBinding})}),B(e,{isDeleted:!0}))}return e.frameId&&r.has(e.frameId)?(s=!1,Gs(e)||(i[e.id]=!0),B(e,{frameId:null})):Gs(e)&&t.selectedElementIds[e.containerId]?B(e,{isDeleted:!0}):e}),l=t.editingGroupId;if(s&&t.editingGroupId){let e=nn(c,t.editingGroupId).filter(e=>!e.isDeleted);if(e.length>1)e[0]&&(i[e[0].id]=!0);else{l=null,e[0]&&(i[e[0].id]=!0);let n=e[0];if(n){let e=n.groupIds.findIndex(e=>e===t.editingGroupId),r=n.groupIds[e+1];if(r){let e=nn(c,r).filter(e=>!e.isDeleted);e.length>1&&(l=r,e.forEach(e=>{i[e.id]=!0}))}}}}return{elements:c,appState:{...t,...ks({selectedElementIds:i,editingGroupId:l},A(c),t,null)}}},Ym=(e,t)=>{if(e.editingGroupId){let n=nn(A(t),e.editingGroupId);if(n.length)return{...e,selectedElementIds:{[n[0].id]:!0}}}return e},Xm=Y({name:`deleteSelectedElements`,label:`labels.delete`,icon:ef,trackEvent:{category:`element`,action:`delete`},perform:(e,t,n,r)=>{if(t.selectedLinearElement?.isEditing){let{elementId:n,selectedPointsIndices:i}=t.selectedLinearElement,a=r.scene.getNonDeletedElementsMap(),o=N.getElement(n,a);if(!o||i==null)return!1;if(i.length>=o.points.length){let n=e.map(e=>e.id===o.id?B(e,{isDeleted:!0}):e);return{elements:n,appState:{...Ym(t,n),selectedLinearElement:null},captureUpdate:j.IMMEDIATELY}}return N.deletePoints(o,r,i),{elements:e,appState:{...t,selectedLinearElement:{...t.selectedLinearElement,selectedPointsIndices:i?.[0]>0?[i[0]-1]:[0]}},captureUpdate:j.IMMEDIATELY}}let{elements:i,appState:a}=Jm(e,t,r);return Qs(i,i.filter(e=>e.isDeleted)),a=Ym(a,i),{elements:i,appState:{...a,activeTool:ji(t,{type:r.state.preferredSelectionTool.type}),multiElement:null,newElement:null,activeEmbeddable:null,selectedLinearElement:null},captureUpdate:wa(A(e),t)?j.IMMEDIATELY:j.EVENTUALLY}},keyTest:(e,t,n)=>(e.key===L.BACKSPACE||e.key===L.DELETE)&&!e[L.CTRL_OR_CMD],PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let i=cN()===`mobile`;return(0,U.jsx)(J,{type:`button`,icon:ef,title:W(`labels.delete`),"aria-label":W(`labels.delete`),onClick:()=>n(null),disabled:!wa(A(e),t),style:{...i&&t.openPopup!==`compactOtherProperties`?pt:{}}})}}),X=e=>e.replace(/\b(Opt(?:ion)?|Alt)\b/i,W(Wo?`keys.option`:`keys.alt`)).replace(/\bShift\b/i,W(`keys.shift`)).replace(/\b(Enter|Return)\b/i,W(`keys.enter`)).replace(/\b(Ctrl|Cmd|Command|CtrlOrCmd)\b/gi,W(Wo?`keys.cmd`:`keys.ctrl`)).replace(/\b(Esc(?:ape)?)\b/i,W(`keys.escape`)).replace(/\b(Space(?:bar)?)\b/i,W(`keys.spacebar`)).replace(/\b(Del(?:ete)?)\b/i,W(`keys.delete`)),Zm=Y({name:`sendBackward`,label:`labels.sendBackward`,keywords:[`move down`,`zindex`,`layer`],icon:Mf,trackEvent:{category:`element`},perform:(e,t,n,r)=>({elements:Gn(e,t,r.scene),appState:t,captureUpdate:j.IMMEDIATELY}),keyPriority:40,keyTest:e=>e[L.CTRL_OR_CMD]&&!e.shiftKey&&e.code===M.BRACKET_LEFT,PanelComponent:({updateData:e,appState:t})=>(0,U.jsx)(`button`,{type:`button`,className:`zIndexButton`,onClick:()=>e(null),title:`${W(`labels.sendBackward`)} \u2014 ${X(`CtrlOrCmd+[`)}`,children:Mf})}),Qm=Y({name:`bringForward`,label:`labels.bringForward`,keywords:[`move up`,`zindex`,`layer`],icon:jf,trackEvent:{category:`element`},perform:(e,t,n,r)=>({elements:On(e,t,r.scene),appState:t,captureUpdate:j.IMMEDIATELY}),keyPriority:40,keyTest:e=>e[L.CTRL_OR_CMD]&&!e.shiftKey&&e.code===M.BRACKET_RIGHT,PanelComponent:({updateData:e,appState:t})=>(0,U.jsx)(`button`,{type:`button`,className:`zIndexButton`,onClick:()=>e(null),title:`${W(`labels.bringForward`)} \u2014 ${X(`CtrlOrCmd+]`)}`,children:jf})}),$m=Y({name:`sendToBack`,label:`labels.sendToBack`,keywords:[`move down`,`zindex`,`layer`],icon:Pf,trackEvent:{category:`element`},perform:(e,t)=>({elements:jo(e,t),appState:t,captureUpdate:j.IMMEDIATELY}),keyTest:e=>Wo?e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.BRACKET_LEFT:e[L.CTRL_OR_CMD]&&e.shiftKey&&e.code===M.BRACKET_LEFT,PanelComponent:({updateData:e,appState:t})=>(0,U.jsx)(`button`,{type:`button`,className:`zIndexButton`,onClick:()=>e(null),title:`${W(`labels.sendToBack`)} \u2014 ${X(Wo?`CtrlOrCmd+Alt+[`:`CtrlOrCmd+Shift+[`)}`,children:Pf})}),eh=Y({name:`bringToFront`,label:`labels.bringToFront`,keywords:[`move up`,`zindex`,`layer`],icon:Nf,trackEvent:{category:`element`},perform:(e,t)=>({elements:Nt(e,t),appState:t,captureUpdate:j.IMMEDIATELY}),keyTest:e=>Wo?e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.BRACKET_RIGHT:e[L.CTRL_OR_CMD]&&e.shiftKey&&e.code===M.BRACKET_RIGHT,PanelComponent:({updateData:e,appState:t})=>(0,U.jsx)(`button`,{type:`button`,className:`zIndexButton`,onClick:t=>e(null),title:`${W(`labels.bringToFront`)} \u2014 ${X(Wo?`CtrlOrCmd+Alt+]`:`CtrlOrCmd+Shift+]`)}`,children:Nf})}),th=Y({name:`selectAll`,label:`labels.selectAll`,icon:gm,trackEvent:{category:`canvas`},viewMode:!1,perform:(e,t,n,r)=>{if(t.selectedLinearElement?.isEditing)return!1;let i=e.filter(e=>!e.isDeleted&&!(I(e)&&e.containerId)&&!e.locked).reduce((e,t)=>(e[t.id]=!0,e),{});return{appState:{...t,...ks({editingGroupId:null,selectedElementIds:i},A(e),t,r),selectedLinearElement:Object.keys(i).length===1&&Zo(e[0])?new N(e[0],k(e)):null},captureUpdate:j.IMMEDIATELY}},keyTest:e=>e[L.CTRL_OR_CMD]&&e.key===L.A}),nh=Y({name:`duplicateSelection`,label:`labels.duplicateSelection`,icon:nf,trackEvent:{category:`element`},perform:(e,t,n,r)=>{if(t.selectedElementsAreBeingDragged)return!1;if(t.selectedLinearElement?.isEditing)try{return{elements:e,appState:N.duplicateSelectedPoints(t,r.scene),captureUpdate:j.IMMEDIATELY}}catch{return!1}let{duplicatedElements:i,elementsWithDuplicates:a}=ia({type:`in-place`,elements:e,idsOfElementsToDuplicate:k(Ls(e,t,{includeBoundTextElement:!0,includeElementsInFrames:!0})),appState:t,randomizeSeed:!0,overrides:({origElement:e,origIdToDuplicateId:t})=>{let n=e.frameId&&t.get(e.frameId);return{x:e.x+20/2,y:e.y+20/2,frameId:n??e.frameId}}});if(r.props.onDuplicate&&a){let t=r.props.onDuplicate(a,e);t&&(a=t)}return{elements:tn(a,k(i)),appState:{...t,...Yr(i,A(a),t)},captureUpdate:j.IMMEDIATELY}},keyTest:e=>e[L.CTRL_OR_CMD]&&e.key===L.D,PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let i=cN()===`mobile`;return(0,U.jsx)(J,{type:`button`,icon:nf,title:`${W(`labels.duplicateSelection`)} \u2014 ${X(`CtrlOrCmd+D`)}`,"aria-label":W(`labels.duplicateSelection`),onClick:()=>n(null),disabled:!wa(A(e),t),style:{...i&&t.openPopup!==`compactOtherProperties`?pt:{}}})}}),rh=new Set([`command_palette`,`export`]),ih=(e,t,n,r)=>{try{if(typeof window>`u`||re.VITE_WORKER_ID||re.VITE_APP_ENABLE_TRACKING!==`true`||!rh.has(e)||Jt())return;re.PROD||console.info(`trackEvent`,{category:e,action:t,label:n,value:r}),window.sa_event&&window.sa_event(t,{category:e,label:n,value:r})}catch(e){console.error(`error during analytics`,e)}},ah=(0,V.forwardRef)((e,t)=>{let{title:n,className:r,testId:i,active:a,icon:o,onClick:s}=e;return(0,U.jsx)(`button`,{type:`button`,ref:t,title:n,"data-testid":i,className:H(r,{active:a}),onClick:s,style:e.style,children:o},n)}),oh=e=>(0,U.jsx)(U.Fragment,{children:e.options.map(t=>e.type===`button`?(0,U.jsx)(ah,{icon:t.icon,title:t.text,testId:t.testId,active:t.active??e.value===t.value,onClick:n=>e.onClick(t.value,n)},t.text):(0,U.jsxs)(`label`,{className:H({active:e.value===t.value}),title:t.text,children:[(0,U.jsx)(`input`,{type:`radio`,name:e.group,onChange:()=>e.onChange(t.value),checked:e.value===t.value,"data-testid":t.testId}),t.icon]},t.text))}),sh=()=>(0,U.jsx)(`div`,{style:{width:1,height:`1rem`,backgroundColor:`var(--default-border-color)`,margin:`0 auto`}}),ch=V.createContext(null),lh=()=>V.useContext(ch),uh=e=>{let[t,n]=(0,V.useState)(null),r=sN(),{theme:i}=lh(),{container:a}=lN();return(0,V.useLayoutEffect)(()=>{t&&(t.className=``,t.classList.add(`excalidraw`,...e?.className?.split(/\s+/)||[]),t.classList.toggle(`excalidraw--mobile`,r.formFactor===`phone`),t.classList.toggle(`theme--dark`,i===P.DARK))},[t,i,r.formFactor,e?.className]),(0,V.useLayoutEffect)(()=>{let t=e?.parentSelector?a?.querySelector(e.parentSelector):document.body;if(!t)return;let r=document.createElement(`div`);return t.appendChild(r),n(r),()=>{t.removeChild(r)}},[a,e?.parentSelector]),t};function dh(e,t,n){(0,V.useEffect)(()=>{function r(r){let i=r;if(!e.current)return;let a=n?.(i,e.current);if(a!==!0){if(a===!1)return t(i);e.current.contains(i.target)||!document.documentElement.contains(i.target)||i.target.closest(`[data-radix-portal]`)||i.target===document.documentElement&&document.body.style.pointerEvents===`none`||i.target.closest(`[data-prevent-outside-click]`)||t(i)}}return document.addEventListener(z.POINTER_DOWN,r),document.addEventListener(z.TOUCH_START,r),()=>{document.removeEventListener(z.POINTER_DOWN,r),document.removeEventListener(z.TOUCH_START,r)}},[e,t,n])}var fh=e=>{let t=(0,V.useRef)(e);return Object.assign(t.current,e),t.current},ph=({cursorPosition:e,elementSize:t,containerSize:n,gap:r})=>$s(e+r+t>n?e-r-t:e+r,0,Math.max(0,n-t)),mh=({cursor:e,element:t,container:n,gap:r})=>({left:ph({cursorPosition:e.x-n.left,elementSize:t.width,containerSize:n.width,gap:r}),top:ph({cursorPosition:e.y-n.top,elementSize:t.height,containerSize:n.height,gap:r})}),hh=Yp.map((e,t)=>`<path fill="${t===0?`#fff`:``}" d="${e}" />`).join(``),gh=`url(data:${R.svg},${encodeURIComponent(`<svg viewBox="0 0 24 24" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke-linecap="round" stroke-linejoin="round"><g stroke="#fff" stroke-width="5">${hh}</g><g stroke="#1b1b1f" stroke-width="1.25">${hh}</g></svg>`)}) 2 21, auto`,_h=Tl(null),vh=({onCancel:e,onChange:t,onSelect:n,colorPickerType:r})=>{let i=uh({className:`excalidraw-eye-dropper-backdrop`,parentSelector:`.excalidraw-eye-dropper-container`}),a=lh(),o=uN(),s=aN(),c=fh({app:s,onCancel:e,onChange:t,onSelect:n,selectedElements:Ls(o,a)}),{container:l}=lN();(0,V.useLayoutEffect)(()=>{if(i)return i.style.cursor=gh,()=>{i.style.cursor=``}},[i]),(0,V.useEffect)(()=>{let e=u.current;if(!e||!s.canvas||!i)return;let t=!1,n=s.canvas.getContext(`2d`),o=({clientX:e,clientY:t})=>{let r=n.getImageData((e-a.offsetLeft)*window.devicePixelRatio,(t-a.offsetTop)*window.devicePixelRatio,1,1).data;return aa(r[0],r[1],r[2])},d=e=>a.theme===P.DARK?qn(e):e,f=({clientX:n,clientY:a,altKey:s})=>{let{top:l,left:u}=mh({cursor:{x:n,y:a},element:{width:e.offsetWidth,height:e.offsetHeight},container:i.getBoundingClientRect(),gap:7});e.style.top=`${l}px`,e.style.left=`${u}px`;let f=o({clientX:n,clientY:a});t&&c.onChange(r,d(f),c.selectedElements,{altKey:s}),e.style.background=f,e.style.setProperty(`--eye-dropper-preview-border-color`,ce(f)?`#fff`:`#222`)},p=()=>{c.onCancel()},m=(e,t)=>{c.onSelect(e,t)},h=e=>{t=!0,e.stopImmediatePropagation()},g=e=>{t=!1,l?.focus(),e.stopImmediatePropagation(),e.preventDefault(),m(d(o(e)),e)},_=e=>{e.key===L.ESCAPE&&(e.preventDefault(),e.stopImmediatePropagation(),p())};return i.tabIndex=-1,i.focus(),f({clientX:c.app.viewport.lastPosition.x,clientY:c.app.viewport.lastPosition.y,altKey:!1}),i.addEventListener(z.KEYDOWN,_),i.addEventListener(z.POINTER_DOWN,h),i.addEventListener(z.POINTER_UP,g),window.addEventListener(`pointermove`,f,{passive:!0}),window.addEventListener(z.BLUR,p),()=>{t=!1,i.removeEventListener(z.KEYDOWN,_),i.removeEventListener(z.POINTER_DOWN,h),i.removeEventListener(z.POINTER_UP,g),window.removeEventListener(`pointermove`,f),window.removeEventListener(z.BLUR,p)}},[c,s.canvas,i,r,l,a.offsetLeft,a.offsetTop,a.theme]);let u=(0,V.useRef)(null);return dh(u,()=>{e()},e=>!!e.target.closest(`.excalidraw-eye-dropper-trigger, .excalidraw-eye-dropper-backdrop`)),i?(0,Sl.createPortal)((0,U.jsx)(`div`,{ref:u,className:`excalidraw-eye-dropper-preview`}),i):null},yh=V.forwardRef(({children:e,padding:t,className:n,style:r,"data-viewport-ui":i,"data-viewport-ui-name":a},o)=>(0,U.jsx)(`div`,{className:H(`Island`,n),style:{"--padding":t,...r},"data-viewport-ui":i,"data-viewport-ui-name":a,ref:o,children:e})),bh=V.forwardRef(({className:e,container:t,children:n,style:r,onClose:i,onKeyDown:a,onFocusOutside:o,onPointerLeave:s,onPointerDownOutside:c,preventAutoFocusOnTouch:l=!1},u)=>{let d=sN(),f=d.formFactor===`phone`&&!d.isLandscape;return(0,U.jsx)(b,{container:t,children:(0,U.jsxs)(x,{ref:u,className:H(`focus-visible-none`,e),"data-prevent-outside-click":!0,side:f?`bottom`:`right`,align:f?`center`:`start`,alignOffset:-16,sideOffset:20,collisionBoundary:t??void 0,style:{zIndex:`var(--zIndex-ui-styles-popup)`,marginLeft:d.formFactor===`phone`?`0.5rem`:void 0},onPointerLeave:s,onKeyDown:a,onFocusOutside:o,onPointerDownOutside:c,onOpenAutoFocus:e=>{l&&d.isTouchScreen&&e.preventDefault()},onCloseAutoFocus:e=>{e.stopPropagation(),e.preventDefault(),t&&!zr(document.activeElement)&&t.focus(),i()},children:[(0,U.jsx)(yh,{padding:3,style:r,children:n}),(0,U.jsx)(S,{width:20,height:10,style:{fill:`var(--popup-bg-color)`,filter:`drop-shadow(rgba(0, 0, 0, 0.05) 0px 3px 2px)`}})]})})}),xh=()=>document.querySelector(`.excalidraw-wysiwyg`),Sh=()=>{let e=xh();return e?{start:e.selectionStart,end:e.selectionEnd}:null},Ch=e=>{setTimeout(()=>{let t=xh();t&&(t.focus(),e&&(t.selectionStart=e.start,t.selectionEnd=e.end))},0)},wh=(e,t,n,r)=>{t&&r&&r();let i=t&&n?Sh():null;e(),t&&n&&Ch(i)},Th=()=>{let[e,t]=(0,V.useState)(null);return{saveCaretPosition:(0,V.useCallback)(()=>{t(Sh())},[]),restoreCaretPosition:(0,V.useCallback)(()=>{setTimeout(()=>{let n=xh();n&&(n.focus(),e&&(n.selectionStart=e.start,n.selectionEnd=e.end,t(null)))},0)},[e]),clearSavedPosition:(0,V.useCallback)(()=>{t(null)},[]),hasSavedPosition:!!e}},Eh=(e=100)=>{let t=xh();if(t){let n=t.onblur;t.onblur=null,setTimeout(()=>{t.onblur=n},e)}},Dh=({palette:e,color:t})=>{if(!t)return null;for(let[n,r]of Object.entries(e))if(Array.isArray(r)){let e=r.indexOf(t);if(e>-1)return{colorName:n,shade:e}}else if(r===t)return{colorName:n,shade:null};return null},Oh=[[`q`,`w`,`e`,`r`,`t`],[`a`,`s`,`d`,`f`,`g`],[`z`,`x`,`c`,`v`,`b`]].flat(),kh=({color:e,palette:t})=>!Object.values(t).flat().includes(e),Ah=(e,t,n)=>{let r={elementBackground:`backgroundColor`,elementStroke:`strokeColor`},i=e.filter(e=>{if(e.isDeleted)return!1;let i=e[r[t]];return!lo(i)&&kh({color:i,palette:n})}),a=new Map;return i.forEach(e=>{let n=e[r[t]];a.has(n)?a.set(n,a.get(n)+1):a.set(n,1)}),[...a.entries()].sort((e,t)=>t[1]-e[1]).map(e=>e[0]).slice(0,5)},jh=Tl(null),Mh=({color:e,onChange:t,label:n,colorPickerType:r,placeholder:i})=>{let a=sN(),[o,s]=(0,V.useState)(e),[c,l]=(0,V.useState)(null),[u,d]=ad(jh);(0,V.useEffect)(()=>{s(e)},[e]);let f=(0,V.useCallback)(e=>{let n=e.toLowerCase().trim(),r=Bn(n);r?(t(r),l(null)):n.length===0?l(null):/^#?[0-9a-f]+$/.test(n)?l(W(`colorPicker.invalidHexLength`)):l(W(`colorPicker.invalidColor`)),s(n)},[t]),p=(0,V.useRef)(null),m=(0,V.useRef)(null);(0,V.useEffect)(()=>{p.current&&p.current.focus()},[u]);let[h,g]=ad(_h);return(0,V.useEffect)(()=>()=>{g(null)},[g]),(0,U.jsxs)(`div`,{className:`color-picker__input-label-container`,children:[(0,U.jsxs)(`div`,{className:H(`color-picker__input-label`,{"has-error":c}),children:[(0,U.jsx)(`div`,{className:`color-picker__input-hash`,children:`#`}),(0,U.jsx)(`input`,{ref:u===`hex`?p:void 0,style:{border:0,padding:0},spellCheck:!1,className:`color-picker-input`,"aria-label":n,"aria-invalid":!!c,onChange:e=>{f(e.target.value)},value:(o||``).replace(/^#/,``),onBlur:()=>{s(e),l(null)},tabIndex:-1,onFocus:()=>d(`hex`),onKeyDown:e=>{e.key!==L.TAB&&(e.key===L.ESCAPE&&m.current?.focus(),e.stopPropagation())},placeholder:i}),a.formFactor!==`phone`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{style:{width:`1px`,height:`1.25rem`,backgroundColor:`var(--default-border-color)`}}),(0,U.jsx)(`div`,{ref:m,className:H(`excalidraw-eye-dropper-trigger`,{selected:h}),onClick:()=>g(e=>e?null:{keepOpenOnAlt:!1,onSelect:e=>t(e),colorPickerType:r}),title:`${W(`labels.eyeDropper`)} \u2014 ${L.I.toLocaleUpperCase()} or ${X(`Alt`)} `,children:Xp})]})]}),c&&(0,U.jsx)(`div`,{className:`color-picker__error-message`,role:`alert`,children:c})]})},Nh=({color:e,keyLabel:t,isShade:n=!1})=>(0,U.jsxs)(`div`,{className:`color-picker__button__hotkey-label`,style:{color:ce(e)?`#fff`:`#000`},children:[n&&`⇧`,t]}),Ph=`excalidraw-color-dnd-ghost`,Fh=`excalidraw-color-dnd-active`,Ih=10,Lh=100,Rh=(e,t)=>{if(e.toLowerCase()===t.toLowerCase())return!0;let n=Cr(e);return n!==null&&n===Cr(t)},zh=(0,V.createContext)(null),Bh=()=>(0,V.useContext)(zh),Vh=({enabled:e,picks:t,onPicksChange:n})=>{let[r,i]=(0,V.useState)(null),a=(0,V.useRef)(null),o=(0,V.useRef)({enabled:e,picks:t,onPicksChange:n});o.current={enabled:e,picks:t,onPicksChange:n};let s=(0,V.useMemo)(()=>{let e=null,t=()=>{e?.activated?i({color:e.color,origin:e.origin,overIndex:e.overIndex,duplicateIndex:e.duplicateIndex,slotSpan:e.slotSpan}):i(null)},n=()=>{let t=a.current;if(!t||!e)return!1;let n=Array.from(t.querySelectorAll(`[data-top-pick-index]`)).sort((e,t)=>Number(e.dataset.topPickIndex)-Number(t.dataset.topPickIndex));if(!n.length)return!1;e.slotRects=n.map(e=>e.getBoundingClientRect());let[r,i]=e.slotRects;e.slotSpan=i?i.left-r.left:r.width+4;let o=t.getBoundingClientRect(),s=Math.max(Math.abs(e.slotSpan)/2,10);return e.hitRect={left:o.left-s,right:o.right+s,top:o.top-14,bottom:o.bottom+14},!0},r=(t,n)=>{e?.ghost&&(e.ghost.style.transform=`translate(${t-e.ghostW/2}px, ${n-e.ghostH/2}px)`)},s=(t,n,i,a)=>{e?.ghost&&(e.ghostW!==t||e.ghostH!==n)&&(e.ghostW=t,e.ghostH=n,e.ghost.style.width=`${t}px`,e.ghost.style.height=`${n}px`,r(i,a))},c=(n,i)=>{if(!e)return;let{sourceRect:a,sourceEl:o,color:s}=e,c=document.createElement(`div`);c.className=Ph;let l=document.createElement(`div`);if(l.className=`${Ph}__swatch`,lo(s))l.classList.add(`is-transparent`);else{let e=getComputedStyle(o).backgroundColor;l.style.backgroundColor=e&&e!==`rgba(0, 0, 0, 0)`?e:s}c.appendChild(l),document.body.appendChild(c),e.ghost=c,e.ghostW=a.width,e.ghostH=a.height,c.style.width=`${a.width}px`,c.style.height=`${a.height}px`,r(n,i),requestAnimationFrame(()=>{e?.ghost===c&&c.classList.add(`${Ph}--lifted`)}),document.body.classList.add(Fh),e.activated=!0,t()},l=(n,r)=>{if(!e?.hitRect)return;let{hitRect:i,slotRects:a}=e,c=null,l=null;if(n>=i.left&&n<=i.right&&r>=i.top&&r<=i.bottom){let t=0,r=1/0;if(a.forEach((e,i)=>{let a=Math.abs(n-(e.left+e.width/2));a<r&&(r=a,t=i)}),e.origin.kind===`swatch`){let n=o.current.picks.findIndex(t=>Rh(t,e.color));n===-1?c=t:l=n}else c=t}if(c!==e.overIndex||l!==e.duplicateIndex){e.overIndex=c,e.duplicateIndex=l;let{ghost:n}=e;n&&(n.classList.toggle(`${Ph}--over`,c!==null),n.classList.toggle(`${Ph}--blocked`,l!==null)),t()}if(c!==null){let t=e.slotRects[c];s(t.width,t.height,n,r)}else s(e.sourceRect.width,e.sourceRect.height,n,r)},u=t=>{if(!e?.ghost)return;let{ghost:n}=e;e.ghost=null,n.classList.add(`${Ph}--dropping`);let r=t.rect;r&&(n.style.width=`${r.width}px`,n.style.height=`${r.height}px`,n.style.transform=`translate(${r.left}px, ${r.top}px)`),window.setTimeout(()=>{n.classList.add(`${Ph}--fade`)},160),window.setTimeout(()=>{n.remove()},340)},d=()=>{let t=a.current;if(!t||!e?.activated)return;let n=Array.from(t.querySelectorAll(`[data-top-pick-index]`));for(let e of n)e.style.transition=`none`,e.style.transform=`none`;t.offsetWidth;for(let e of n)e.style.transition=``},f=()=>{let e=e=>{e.preventDefault(),e.stopPropagation()};window.addEventListener(`click`,e,{capture:!0,once:!0}),window.setTimeout(()=>{window.removeEventListener(`click`,e,{capture:!0})},100)},p=()=>{window.removeEventListener(`pointermove`,_,!0),window.removeEventListener(`pointerup`,v,!0),window.removeEventListener(`pointercancel`,y,!0),window.removeEventListener(`keydown`,b,!0)},m=()=>{p(),document.body.classList.remove(Fh),e?.activationTimer!=null&&window.clearTimeout(e.activationTimer),e=null,i(null)},h=t=>{e&&(d(),e.ghost&&(t?u({rect:e.sourceRect}):(e.ghost.remove(),e.ghost=null)),m())},g=(t,r)=>{if(!(!e||e.activated)){if(!n()){m();return}c(t,r),l(t,r)}},_=t=>{if(!(!e||t.pointerId!==e.pointerId)){if(e.lastX=t.clientX,e.lastY=t.clientY,!e.activated){if(Math.hypot(t.clientX-e.startX,t.clientY-e.startY)<Ih){e.activationTimer!==null&&(window.clearTimeout(e.activationTimer),e.activationTimer=null);return}let n=performance.now()-e.startTime;if(n<Lh){e.activationTimer===null&&(e.activationTimer=window.setTimeout(()=>{e&&(e.activationTimer=null,Math.hypot(e.lastX-e.startX,e.lastY-e.startY)>=Ih&&g(e.lastX,e.lastY))},Lh-n));return}if(g(t.clientX,t.clientY),!e?.activated)return}t.preventDefault(),r(t.clientX,t.clientY),l(t.clientX,t.clientY)}},v=t=>{if(!e||t.pointerId!==e.pointerId)return;if(!e.activated){m();return}t.preventDefault(),t.stopPropagation(),f();let{overIndex:n,origin:r,color:i,slotRects:a}=e,{picks:s,onPicksChange:c}=o.current;if(d(),n!==null){if(r.kind===`swatch`){if(!s.some(e=>Rh(e,i))){let e=[...s];e[n]=i,c(e)}}else if(r.index!==n){let e=[...s],[t]=e.splice(r.index,1);e.splice(n,0,t),c(e)}u({rect:a[n]})}else u({rect:e.sourceRect});m()},y=t=>{e&&t.pointerId===e.pointerId&&h(!0)},b=t=>{e?.activated&&t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),h(!0))};return{begin:(t,n,r)=>{!o.current.enabled||e||t.button!==0||!n||(e={pointerId:t.pointerId,startX:t.clientX,startY:t.clientY,startTime:performance.now(),lastX:t.clientX,lastY:t.clientY,activationTimer:null,color:n,origin:r,sourceEl:t.currentTarget,sourceRect:t.currentTarget.getBoundingClientRect(),activated:!1,ghost:null,ghostW:0,ghostH:0,slotRects:[],slotSpan:0,hitRect:null,overIndex:null,duplicateIndex:null},window.addEventListener(`pointermove`,_,!0),window.addEventListener(`pointerup`,v,!0),window.addEventListener(`pointercancel`,y,!0),window.addEventListener(`keydown`,b,!0))},destroy:()=>h(!1)}},[]);return(0,V.useEffect)(()=>()=>s.destroy(),[s]),(0,V.useMemo)(()=>({dragState:r,startSwatchDrag:(e,t)=>s.begin(e,t,{kind:`swatch`}),startPickDrag:(e,t,n)=>s.begin(e,n,{kind:`pick`,index:t}),setStripEl:e=>{a.current=e}}),[r,s])},Hh=({theme:e,colors:t,color:n,onChange:r,label:i})=>{let[a,o]=ad(jh),s=Bh(),c=(0,V.useRef)(null);return(0,V.useEffect)(()=>{c.current&&c.current.focus()},[n,a]),(0,U.jsx)(`div`,{className:`color-picker-content--default`,children:t.map((t,a)=>{let l=xr(t,e===P.DARK);return(0,U.jsxs)(`button`,{ref:n===t?c:void 0,tabIndex:-1,type:`button`,className:H(`color-picker__button color-picker__button--large has-outline`,{active:n===t,"is-transparent":t===`transparent`||!t}),onClick:()=>{r(t),o(`custom`)},onPointerDown:s?e=>s.startSwatchDrag(e,t):void 0,title:t,"aria-label":i,style:{"--swatch-color":l},children:[(0,U.jsx)(`div`,{className:`color-picker__button-outline`}),(0,U.jsx)(Nh,{color:l,keyLabel:a+1})]},a)})})},Uh=({theme:e,palette:t,color:n,onChange:r,activeShade:i,showHotKey:a=!0,excludedColors:o})=>{let s=Dh({color:n,palette:t}),[c,l]=ad(jh),u=Bh(),d=(0,V.useRef)(null);return(0,V.useEffect)(()=>{d.current&&c===`baseColors`&&d.current.focus()},[s?.colorName,c]),(0,U.jsx)(`div`,{className:`color-picker-content--default`,children:Object.entries(t).map(([t,n],c)=>{let f=(Array.isArray(n)?n[i]:n)||`transparent`;if(o?.includes(f))return(0,U.jsx)(`div`,{className:`color-picker__button color-picker__button--large`,style:{visibility:`hidden`},"aria-hidden":`true`},t);let p=Oh[c],m=xr(f,e===P.DARK),h=W(`colors.${t.replace(/\d+/,``)}`,null,``);return(0,U.jsxs)(`button`,{ref:s?.colorName===t?d:void 0,tabIndex:-1,type:`button`,className:H(`color-picker__button color-picker__button--large`,{"has-outline":!ce(f,255),active:s?.colorName===t,"is-transparent":f===`transparent`||!f}),onClick:()=>{r(f),l(`baseColors`)},onPointerDown:u?e=>u.startSwatchDrag(e,f):void 0,title:`${h}${f.startsWith(`#`)?` ${f}`:``} \u2014 ${p}`,"aria-label":`${h} \u2014 ${p}`,style:f?{"--swatch-color":m}:void 0,"data-testid":`color-${t}`,children:[(0,U.jsx)(`div`,{className:`color-picker__button-outline`}),a&&(0,U.jsx)(Nh,{color:m,keyLabel:p})]},t)})})},Wh=({children:e})=>(0,U.jsx)(`div`,{className:`color-picker__heading`,children:e}),Gh=({theme:e,color:t,onChange:n,palette:r,showHotKey:i})=>{let a=Dh({color:t||`transparent`,palette:r}),[o,s]=ad(jh),c=Bh(),l=(0,V.useRef)(null);if((0,V.useEffect)(()=>{l.current&&o===`shades`&&l.current.focus()},[a,o]),a){let{colorName:t,shade:u}=a,d=r[t];if(Array.isArray(d))return(0,U.jsx)(`div`,{className:`color-picker-content--default shades`,children:d.map((r,a)=>{let d=xr(r,e===P.DARK);return(0,U.jsxs)(`button`,{ref:a===u&&o===`shades`?l:void 0,tabIndex:-1,type:`button`,className:H(`color-picker__button color-picker__button--large`,{active:a===u}),"aria-label":`Shade`,title:`${t} - ${a+1}`,style:r?{"--swatch-color":d}:void 0,onClick:()=>{n(r),s(`shades`)},onPointerDown:c?e=>c.startSwatchDrag(e,r):void 0,children:[(0,U.jsx)(`div`,{className:`color-picker__button-outline`}),i&&(0,U.jsx)(Nh,{color:d,keyLabel:a+1,isShade:!0})]},a)})})}return(0,U.jsxs)(`div`,{className:`color-picker-content--default`,style:{position:`relative`},tabIndex:-1,children:[(0,U.jsx)(`button`,{type:`button`,tabIndex:-1,className:`color-picker__button color-picker__button--large color-picker__button--no-focus-visible`}),(0,U.jsx)(`div`,{tabIndex:-1,style:{position:`absolute`,top:0,left:0,right:0,bottom:0,display:`flex`,alignItems:`center`,justifyContent:`center`,textAlign:`center`,fontSize:`0.75rem`},children:W(`colorPicker.noShades`)})]})},Kh=(e,t,n)=>{let r=Math.ceil(n/5);switch(t??=-1,e){case`ArrowLeft`:{let e=t-1;return e<0?n-1:e}case`ArrowRight`:return(t+1)%n;case`ArrowDown`:{let e=t+5;return e>=n?t%5:e}case`ArrowUp`:{let e=t-5,i=e<0?5*r+e:e;return i>=n?void 0:i}}},qh=({e,colorObj:t,onChange:n,palette:r,customColors:i,setActiveColorPickerSection:a,activeShade:o,excludedColors:s})=>{if(t?.shade!=null&&[`Digit1`,`Digit2`,`Digit3`,`Digit4`,`Digit5`].includes(e.code)&&e.shiftKey){let i=Number(e.code.slice(-1))-1;return n(r[t.colorName][i]),a(`shades`),!0}if([`1`,`2`,`3`,`4`,`5`].includes(e.key)&&i[Number(e.key)-1])return n(i[Number(e.key)-1]),a(`custom`),!0;if(Oh.includes(e.key)){let t=Oh.indexOf(e.key),i=r[Object.keys(r)[t]],c=Array.isArray(i)?i[o]:i;return c==null||s?.includes(c)||(n(c),a(`baseColors`)),!0}return!1},Jh=({event:e,activeColorPickerSection:t,palette:n,color:r,onChange:i,customColors:a,setActiveColorPickerSection:o,updateData:s,activeShade:c,onEyeDropperToggle:l,onEscape:u,excludedColors:d})=>{if(e[L.CTRL_OR_CMD])return!1;if(e.key===L.ESCAPE)return u(e),!0;if(e.key===L.ALT)return l(!0),!0;if(e.key===L.I)return l(),!0;let f=Dh({color:r,palette:n});if(e.key===L.TAB){let s={custom:!!a.length,baseColors:!0,shades:f?.shade!=null,hex:!0},c=Object.entries(s).reduce((e,[t,n])=>(n&&e.push(t),e),[]),l=c.indexOf(t),u=e.shiftKey?-1:1,d=c[l+u>c.length-1?0:l+u<0?c.length-1:l+u];return d&&o(d),d===`custom`?i(a[0]):d===`baseColors`&&(Object.entries(n).find(([e,t])=>Array.isArray(t)?t.includes(r):t===r?e:null)||i(on.black)),e.preventDefault(),e.stopPropagation(),!0}if(qh({e,colorObj:f,onChange:i,palette:n,customColors:a,setActiveColorPickerSection:o,activeShade:c,excludedColors:d}))return!0;if(t===`shades`&&f){let{shade:t}=f,r=Kh(e.key,t,5);if(r!==void 0)return i(n[f.colorName][r]),!0}if(t===`baseColors`&&f){let{colorName:t}=f,r=Object.keys(n),a=r.indexOf(t),o=Kh(e.key,a,r.length),s=0;for(;o!==void 0&&s++<r.length;){let t=n[r[o]],i=Array.isArray(t)?t[c]:t;if(!d?.includes(i))break;o=Kh(e.key,o,r.length)}if(o!==void 0){let e=n[r[o]];return i(Array.isArray(e)?e[c]:e),!0}}if(t===`custom`){let t=r==null?0:a.indexOf(r),n=Kh(e.key,t,a.length);if(n!==void 0){let e=a[n];return i(e),!0}}return!1},Yh=V.forwardRef(({theme:e,color:t,onChange:n,type:r,elements:i,palette:a,updateData:o,children:s,showTitle:c,onEyeDropperToggle:l,onEscape:u,showHotKey:d=!0,excludedColors:f},p)=>{let m=c?r===`elementStroke`?W(`labels.stroke`):r===`elementBackground`?W(`labels.background`):null:null,[h]=V.useState(()=>r===`canvasBackground`?[]:Ah(i,r,a)),[g,_]=ad(jh),v=Bh(),y=Dh({color:t,palette:a});(0,V.useEffect)(()=>{if(!g){let e=!!t&&kh({color:t,palette:a});_(e&&!h.includes(t)?null:e?`custom`:y?.shade==null?`baseColors`:`shades`)}},[g,t,a,_,y,h]);let[b,x]=(0,V.useState)(y?.shade??(r===`elementBackground`?1:4));(0,V.useEffect)(()=>{y?.shade!=null&&x(y.shade);let e=e=>{e.key===L.ALT&&l(!1)};return document.addEventListener(z.KEYUP,e,{capture:!0}),()=>{document.removeEventListener(z.KEYUP,e,{capture:!0})}},[y,l]);let S=V.useRef(null);return(0,V.useImperativeHandle)(p,()=>S.current),(0,V.useEffect)(()=>{S?.current?.focus()},[]),(0,U.jsx)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":W(`labels.colorPicker`),children:(0,U.jsxs)(`div`,{ref:S,onKeyDown:e=>{Jh({event:e,activeColorPickerSection:g,palette:a,color:t,onChange:n,onEyeDropperToggle:l,customColors:h,setActiveColorPickerSection:_,updateData:o,activeShade:b,onEscape:u,excludedColors:f})&&(e.preventDefault(),e.stopPropagation())},className:`color-picker-content properties-content`,tabIndex:-1,children:[m&&(0,U.jsx)(`div`,{className:`color-picker__title`,children:m}),!!h.length&&(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Wh,{children:W(`colorPicker.mostUsedCustomColors`)}),(0,U.jsx)(Hh,{theme:e,colors:h,color:t,label:W(`colorPicker.mostUsedCustomColors`),onChange:n})]}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Wh,{children:W(`colorPicker.colors`)}),(0,U.jsx)(Uh,{theme:e,color:t,palette:a,onChange:n,activeShade:b,showHotKey:d,excludedColors:f})]}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Wh,{children:W(`colorPicker.shades`)}),(0,U.jsx)(Gh,{theme:e,color:t,onChange:n,palette:a,showHotKey:d})]}),s,v&&(0,U.jsx)(`div`,{className:`color-picker__tip`,children:W(`colorPicker.topPicksTip`)})]})})}),Xh=({theme:e,onChange:t,type:n,activeColor:r,topPicks:i,onReset:a,isCustomized:o})=>{let s=Bh(),p=s?.dragState??null,{container:m}=lN(),h;if(n===`elementStroke`&&(h=ol),n===`elementBackground`&&(h=de),n===`canvasBackground`&&(h=Ye),i&&(h=i),!h)return console.error(`Invalid type for TopPicks`),null;let g=e=>{if(!p||p.origin.kind!==`pick`||p.overIndex===null)return 0;let t=p.origin.index,n=p.overIndex;if(t===n)return 0;let r=e;return e===t?r=n:(e>t&&--r,r>=n&&(r+=1)),(r-e)*p.slotSpan},_=(0,U.jsxs)(`div`,{className:H(`color-picker__top-picks`,{"is-dnd-active":!!p}),ref:s?.setStripEl,children:[p&&(0,U.jsx)(`svg`,{className:`color-picker__top-picks__dnd-outline`,"aria-hidden":`true`,children:(0,U.jsx)(`rect`,{})}),h.map((n,i)=>{let a=g(i),o=xr(n,e===P.DARK);return(0,U.jsx)(`button`,{className:H(`color-picker__button`,{active:n===r,"is-transparent":n===`transparent`||!n,"has-outline":!ce(n,240),"is-dnd-source":p?.origin.kind===`pick`&&p.origin.index===i,"is-dnd-target":p?.origin.kind===`swatch`&&p.overIndex===i,"is-dnd-duplicate":p?.duplicateIndex===i}),style:{"--swatch-color":o,transform:a?`translateX(${a}px)`:void 0},type:`button`,title:n,onClick:()=>t(n),onPointerDown:s?e=>s.startPickDrag(e,i,n):void 0,"data-testid":`color-top-pick-${n}`,"data-top-pick-index":i,children:(0,U.jsx)(`div`,{className:`color-picker__button-outline`})},n)})]});return a?(0,U.jsxs)(c,{children:[(0,U.jsx)(d,{asChild:!0,children:_}),(0,U.jsx)(f,{container:m,children:(0,U.jsx)(u,{className:`color-picker__context-menu`,style:{zIndex:`var(--zIndex-ui-styles-popup)`},children:(0,U.jsx)(l,{className:`color-picker__context-menu-item`,disabled:!o,onSelect:a,children:W(`colorPicker.resetTopPicks`)})})})]}):_},Zh=({type:e,color:t,onChange:n,label:r,elements:i,palette:a=on,updateData:o,getOpenPopup:s,appState:c,excludedColors:l})=>{let{container:u}=lN(),d=cN(),f=d!==`full`,p=d===`mobile`,[,m]=ad(jh),[h,g]=ad(_h),_=(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Wh,{children:W(`colorPicker.hexCode`)}),(0,U.jsx)(Mh,{color:t||``,label:r,onChange:e=>{n(e)},colorPickerType:e,placeholder:W(`colorPicker.color`)})]}),v=(0,V.useRef)(null),y=()=>{v.current?.focus()};return(0,U.jsx)(bh,{container:u,style:{maxWidth:`13rem`},preventAutoFocusOnTouch:!!c.editingTextElement,onFocusOutside:e=>{if(e.target instanceof HTMLElement&&e.target.closest(`.color-picker__context-menu`)){e.preventDefault();return}ot(e.target)||(e.target instanceof HTMLElement&&e.target.matches(`:active`)?window.addEventListener(`pointerup`,y,{once:!0}):y()),e.preventDefault()},onPointerDownOutside:e=>{h&&e.preventDefault()},onClose:()=>{s()===e&&o({openPopup:null}),m(null),c.editingTextElement&&setTimeout(()=>{let e=document.querySelector(`.excalidraw-wysiwyg`);e&&e.focus()},0)},children:a?(0,U.jsx)(Yh,{ref:v,palette:a,excludedColors:l,color:t,theme:c.theme,onChange:e=>{let t=c.editingTextElement?Sh():null;n(e),c.editingTextElement&&t&&Ch(t)},onEyeDropperToggle:t=>{g(r=>t?(r||={keepOpenOnAlt:!0,onSelect:n,colorPickerType:e},r.keepOpenOnAlt=!0,r):t===!1||r?null:{keepOpenOnAlt:!1,onSelect:n,colorPickerType:e})},onEscape:e=>{h?g(null):o({openPopup:null})},type:e,elements:i,updateData:o,showTitle:f,showHotKey:!p,children:_}):_})},Qh=e=>e===`elementStroke`||e===`elementBackground`||e===`canvasBackground`,$h=({label:e,color:t,type:n,theme:r,mode:i=`background`,onToggle:a,editingTextElement:o})=>{let s=cN(),c=s!==`full`,l=s===`mobile`,u=Bh(),d=t?xr(t,r===P.DARK):null;return(0,U.jsxs)(T,{type:`button`,className:H(`color-picker__button active-color properties-trigger`,{"is-transparent":!t||t===`transparent`,"has-outline":!t||!ce(t,240),"compact-sizing":c,"mobile-border":l}),"aria-label":e,style:d?{"--swatch-color":d}:void 0,title:W(n===`elementStroke`?`labels.showStroke`:`labels.showBackground`),"data-openpopup":n,onClick:e=>{e.preventDefault(),e.stopPropagation(),o&&Eh(),a()},onPointerDown:u?e=>u.startSwatchDrag(e,t):void 0,children:[(0,U.jsx)(`div`,{className:`color-picker__button-outline`,children:!t&&xf}),c&&t&&i===`stroke`&&(0,U.jsx)(`div`,{className:`color-picker__button-background`,children:(0,U.jsx)(`span`,{style:{color:d&&ce(d,240)?`#fff`:`#111`},children:zm})})]})},eg=(0,V.memo)(({type:e,color:t,onChange:n,label:r,elements:i,palette:a=on,topPicks:o,updateData:s,appState:c,excludedColors:l,customizableTopPicks:u})=>{let d=(0,V.useRef)(c.openPopup);(0,V.useEffect)(()=>{d.current=c.openPopup},[c.openPopup]);let f=cN()!==`full`,p=!!u&&!f,m=p&&u?c.colorTopPicks?.[u]:null,h=Vh({enabled:p,picks:m?.length?m:o??(e===`elementStroke`?ol:de),onPicksChange:e=>{u&&s({colorTopPicks:{...c.colorTopPicks,[u]:e}})}});return(0,U.jsx)(zh.Provider,{value:p?h:null,children:(0,U.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,className:H(`color-picker-container`,{"color-picker-container--no-top-picks":f}),children:[!f&&(0,U.jsx)(Xh,{theme:c.theme,activeColor:t,onChange:t=>{n(t),Qh(c.openPopup)&&c.openPopup!==e&&setTimeout(()=>s({openPopup:e}),0)},type:e,topPicks:m?.length?m:o,isCustomized:!!m?.length,onReset:p&&u?()=>{s({colorTopPicks:{...c.colorTopPicks,[u]:null}})}:void 0}),!f&&(0,U.jsx)(sh,{}),(0,U.jsxs)(C,{open:c.openPopup===e,onOpenChange:t=>{t&&s({openPopup:e})},children:[(0,U.jsx)($h,{color:t,label:r,type:e,theme:c.theme,mode:e===`elementStroke`?`stroke`:`background`,editingTextElement:!!c.editingTextElement,onToggle:()=>{c.openPopup===e?s({openPopup:null}):(c.openPopup,s({openPopup:e}))}}),c.openPopup===e&&(0,U.jsx)(Zh,{type:e,color:t,onChange:n,label:r,elements:i,palette:a,excludedColors:l,updateData:s,getOpenPopup:()=>d.current,appState:c})]})]})})},(e,t)=>e.appState.openPopup===e.type||t.appState.openPopup===t.type?!1:e.type===t.type&&e.color===t.color&&e.label===t.label&&e.appState.openPopup===t.appState.openPopup&&e.palette===t.palette&&e.topPicks===t.topPicks&&e.excludedColors===t.excludedColors&&e.customizableTopPicks===t.customizableTopPicks&&e.appState.theme===t.appState.theme&&e.appState.colorTopPicks===t.appState.colorTopPicks&&!!e.appState.editingTextElement==!!t.appState.editingTextElement),tg=V.forwardRef(({className:e,placeholder:t,onChange:n},r)=>(0,U.jsxs)(`div`,{className:H(`QuickSearch__wrapper`,e),children:[um,(0,U.jsx)(`input`,{ref:r,className:`QuickSearch__input`,type:`text`,placeholder:t,onChange:e=>n(e.target.value.trim().toLowerCase())})]})),ng=({className:e,placeholder:t,children:n})=>{let r=!V.Children.count(n);return(0,U.jsx)(`div`,{className:H(`ScrollableList__wrapper`,e),role:`menu`,children:r?(0,U.jsx)(`div`,{className:`empty`,children:t}):n})},rg=({children:e,className:t=``,style:n,title:r})=>(0,U.jsxs)(`div`,{className:`dropdown-menu-group ${t}`,style:n,children:[r&&(0,U.jsx)(`p`,{className:`dropdown-menu-group-title`,children:r}),e]}),ig=rg;rg.displayName=`DropdownMenuGroup`;var ag=V.createContext({}),og=(e=``,t=!1,n=!1)=>`dropdown-menu-item dropdown-menu-item-base ${e} ${t?`dropdown-menu-item--selected`:``} ${n?`dropdown-menu-item--hovered`:``}`.trim(),sg=e=>{let t=(0,V.useContext)(ag);return us(e,e=>{t.onSelect?.(e)})},cg=({children:e,...t})=>(0,U.jsx)(`span`,{...t,style:{textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,...t.style},children:e}),lg=({textStyle:e,icon:t,shortcut:n,children:r,badge:i})=>{let a=sN();return(0,U.jsxs)(U.Fragment,{children:[t&&(0,U.jsx)(`div`,{className:`dropdown-menu-item__icon`,children:t}),(0,U.jsx)(`div`,{style:e,className:`dropdown-menu-item__text`,children:(0,U.jsx)(cg,{children:r})}),i&&(0,U.jsx)(`div`,{className:`dropdown-menu-item__badge`,children:i}),n&&a.formFactor!==`phone`&&(0,U.jsx)(`div`,{className:`dropdown-menu-item__shortcut`,children:n})]})},ug=({icon:e,badge:t,value:n,children:r,shortcut:i,className:a,selected:o,onSelect:s,...c})=>{let l=sg(s);return(0,U.jsx)(h,{className:`radix-menu-item`,onSelect:l,asChild:!0,children:(0,U.jsx)(`button`,{...c,value:n,className:og(a,o),title:c.title??c[`aria-label`],children:(0,U.jsx)(lg,{icon:e,shortcut:i,badge:t,children:r})})})};ug.displayName=`DropdownMenuItem`;var dg={GREEN:`green`,RED:`red`,BLUE:`blue`},fg=({type:e=dg.BLUE,children:t})=>{let{theme:n}=dN(),r={display:`inline-flex`,marginLeft:`auto`,padding:`2px 4px`,borderRadius:6,fontSize:9,fontFamily:`Cascadia, monospace`,border:n===P.LIGHT?`1.5px solid white`:`none`};switch(e){case dg.GREEN:Object.assign(r,{backgroundColor:`var(--background-color-badge)`,color:`var(--color-badge)`});break;case dg.RED:Object.assign(r,{backgroundColor:`pink`,color:`darkred`});break;case dg.BLUE:default:Object.assign(r,{background:`var(--color-promo)`,color:`var(--color-surface-lowest)`})}return(0,U.jsx)(`div`,{className:`DropDownMenuItemBadge`,style:r,children:t})};fg.displayName=`DropdownMenuItemBadge`,ug.Badge=fg;var pg=ug,mg=({event:e,inputRef:t,hoveredFont:n,filteredFonts:r,onClose:i,onSelect:a,onHover:o})=>{if(!e[L.CTRL_OR_CMD]&&e.shiftKey&&e.key.toLowerCase()===L.F)return t.current?.focus(),!0;if(e.key===L.ESCAPE)return i(),!0;if(e.key===L.ENTER)return n?.value&&a(n.value),!0;if(e.key===L.ARROW_DOWN)return n?.next?o(n.next.value):r[0]?.value&&o(r[0].value),!0;if(e.key===L.ARROW_UP)return n?.prev?o(n.prev.value):r[r.length-1]?.value&&o(r[r.length-1].value),!0},hg=e=>{switch(e){case As.Excalifont:case As.Virgil:return Kd;case As.Nunito:case As.Helvetica:return jp;case As[`Lilita One`]:return Ap;case As[`Comic Shanns`]:case As.Cascadia:return Np;default:return jp}},gg=(e,t)=>Object.entries(As).find(([,t])=>t===e)?.[0]??t[0]?.fontFace?.family??`Unknown`,_g=V.memo(({selectedFontFamily:e,hoveredFontFamily:t,onSelect:n,onHover:r,onLeave:i,onOpen:a,onClose:o})=>{let{container:s}=lN(),c=aN(),{fonts:l}=c,{showDeprecatedFonts:u}=oN(),d=cN(),[f,p]=(0,V.useState)(``),m=(0,V.useRef)(null),h=(0,V.useMemo)(()=>Array.from(Zn.registered.entries()).filter(([e,{metadata:t}])=>!t.private&&!t.fallback).map(([e,{metadata:t,fontFaces:n}])=>{let r={value:e,icon:hg(e),text:gg(e,n)};return t.deprecated&&Object.assign(r,{deprecated:t.deprecated,badge:{type:dg.RED,placeholder:W(`fontList.badge.old`)}}),r}).sort((e,t)=>e.text.toLowerCase()>t.text.toLowerCase()?1:-1),[]),g=(0,V.useMemo)(()=>new Set(l.getSceneFamilies()),[e]),_=(0,V.useMemo)(()=>h.filter(e=>g.has(e.value)),[h,g]),v=(0,V.useMemo)(()=>h.filter(e=>!g.has(e.value)&&(u||!e.deprecated)),[h,g,u]),y=(0,V.useMemo)(()=>Ee([..._,...v].filter(e=>e.text?.toLowerCase().includes(f))),[_,v,f]),b=(0,V.useMemo)(()=>{let n;return t?n=y.find(e=>e.value===t):e&&(n=y.find(t=>t.value===e)),!n&&f&&(y[0]?.value?r(y[0].value):i()),n},[t,e,f,y,r,i]),x=(0,V.useCallback)(e=>{let t=null;if(c.state.editingTextElement){let e=document.querySelector(`.excalidraw-wysiwyg`);e&&(t={start:e.selectionStart,end:e.selectionEnd})}n(e),c.state.editingTextElement&&t&&setTimeout(()=>{let e=document.querySelector(`.excalidraw-wysiwyg`);e&&t&&(e.focus(),e.selectionStart=t.start,e.selectionEnd=t.end)},0)},[n,c.state.editingTextElement]),S=(0,V.useCallback)(e=>{mg({event:e,inputRef:m,hoveredFont:b,filteredFonts:y,onSelect:x,onHover:r,onClose:o})&&(e.preventDefault(),e.stopPropagation())},[b,y,x,r,o]);(0,V.useEffect)(()=>(a(),()=>{o()}),[]);let C=(0,V.useMemo)(()=>y.filter(e=>g.has(e.value)),[y,g]),w=(0,V.useMemo)(()=>y.filter(e=>!g.has(e.value)),[y,g]),T=({font:t,order:n})=>{let i=(0,V.useRef)(null),a=t.value===b?.value,o=t.value===e;return(0,V.useEffect)(()=>{a&&(n===0?i.current?.scrollIntoView?.({block:`end`}):i.current?.scrollIntoView?.({block:`nearest`}))},[a,n]),(0,U.jsx)(`button`,{ref:i,type:`button`,value:t.value,className:og(``,o,a),title:t.text,tabIndex:o?0:-1,onClick:e=>{x(Number(e.currentTarget.value))},onMouseMove:()=>{b?.value!==t.value&&r(t.value)},children:(0,U.jsx)(lg,{icon:t.icon,badge:t.badge&&(0,U.jsx)(fg,{type:t.badge.type,children:t.badge.placeholder}),textStyle:{fontFamily:pa({fontFamily:t.value})},children:t.text})})},E=[];return C.length&&E.push((0,U.jsx)(ig,{title:W(`fontList.sceneFonts`),children:C.map((e,t)=>(0,U.jsx)(T,{font:e,order:t},e.value))},`group_1`)),w.length&&E.push((0,U.jsx)(ig,{title:W(`fontList.availableFonts`),children:w.map((e,t)=>(0,U.jsx)(T,{font:e,order:t+C.length},e.value))},`group_2`)),(0,U.jsxs)(bh,{className:`properties-content`,container:s,style:{width:`15rem`},onClose:()=>{o(),c.state.editingTextElement&&setTimeout(()=>{let e=document.querySelector(`.excalidraw-wysiwyg`);e&&e.focus()},0)},onPointerLeave:i,onKeyDown:S,preventAutoFocusOnTouch:!!c.state.editingTextElement,children:[d===`full`&&(0,U.jsx)(tg,{ref:m,placeholder:W(`quickSearch.placeholder`),onChange:tc(p,20)}),(0,U.jsx)(ng,{className:`dropdown-menu fonts manual-hover`,placeholder:W(`fontList.empty`),children:E.length?E:null})]})},(e,t)=>e.selectedFontFamily===t.selectedFontFamily&&e.hoveredFontFamily===t.hoveredFontFamily),vg=({selectedFontFamily:e,isOpened:t=!1,compactMode:n=!1})=>{let r=fN(),i=n?{...pt,width:`2rem`,height:`2rem`}:{};return(0,U.jsx)(T,{asChild:!0,children:(0,U.jsx)(`div`,{"data-openpopup":`fontFamily`,className:`properties-trigger`,children:(0,U.jsx)(J,{type:`toggle`,icon:qd,title:W(`labels.showFonts`),"aria-label":W(`labels.showFonts`),className:`standalone properties-trigger`,"data-testid":`font-family-show-fonts`,checked:t,onSelect:()=>{r(e=>({openPopup:e.openPopup===`fontFamily`?null:e.openPopup}))},style:{border:`none`,...i}})})})},yg=[{value:As.Excalifont,icon:Kd,text:W(`labels.handDrawn`),testId:`font-family-hand-drawn`},{value:As.Nunito,icon:jp,text:W(`labels.normal`),testId:`font-family-normal`},{value:As[`Comic Shanns`],icon:Np,text:W(`labels.code`),testId:`font-family-code`}];new Set(yg.map(e=>e.value));var bg=V.memo(({isOpened:e,selectedFontFamily:t,hoveredFontFamily:n,onSelect:r,onHover:i,onLeave:a,onPopupChange:o,compactMode:s=!1})=>{let c=(0,V.useMemo)(()=>yg,[]),l=(0,V.useCallback)(e=>{e&&r(e)},[r]);return(0,U.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,className:H(`FontPicker__container`,{"FontPicker__container--compact":s}),children:[!s&&(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{type:`button`,options:c,value:t,onClick:l})}),!s&&(0,U.jsx)(sh,{}),(0,U.jsxs)(C,{open:e,onOpenChange:o,children:[(0,U.jsx)(vg,{selectedFontFamily:t,isOpened:e,compactMode:s}),e&&(0,U.jsx)(_g,{selectedFontFamily:t,hoveredFontFamily:n,onSelect:l,onHover:i,onLeave:a,onOpen:()=>o(!0),onClose:()=>o(!1)})]})]})},(e,t)=>e.isOpened===t.isOpened&&e.selectedFontFamily===t.selectedFontFamily&&e.hoveredFontFamily===t.hoveredFontFamily),xg=({className:e,icon:t,size:n=`1em`})=>(0,U.jsx)(`span`,{className:e,style:{width:n,height:`100%`,margin:`0 0.5ex 0 0.5ex`,display:`inline-flex`,lineHeight:0,verticalAlign:`middle`,flex:`0 0 auto`},children:t}),Sg=({label:e,open:t,openTrigger:n,children:r,className:i,showCollapsedIcon:a=!0})=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{style:{cursor:`pointer`,display:`flex`,justifyContent:`space-between`,alignItems:`center`},className:i,onClick:n,children:[e,a&&(0,U.jsx)(xg,{icon:t?Pm:Nm})]}),t&&(0,U.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`},children:r})]}),Cg=Tl(!1),wg=4,Tg=`default`,Eg=e=>e.flatMap(e=>e.options),Dg=(e,t)=>{for(let n of e){let e=n.options.find(t);if(e)return e}return null},Og=(e,t)=>e.some(e=>e.options.some(t)),kg=e=>e.flatMap(e=>Array.from({length:Math.ceil(e.options.length/wg)},(t,n)=>e.options.slice(n*wg,n*wg+wg)));function Ag({visibleSections:e,hiddenSections:t=[],value:n,label:r,onChange:i,onClose:a}){let{container:o}=lN(),[s,c]=ad(Cg),l=Eg([...e,...t]),u=kg([...e,...s?t:[]]),d=e=>{let t=l.find(t=>t.keyBinding===e.key.toLowerCase());if(!(e.metaKey||e.altKey||e.ctrlKey)&&t)i(t.value),e.preventDefault();else if(e.key===L.TAB){let t=l.findIndex(e=>e.value===n);i(l[e.shiftKey?(l.length+t-1)%l.length:(t+1)%l.length].value)}else if(is(e.key)){let t=yd().rtl,r=l.findIndex(e=>e.value===n);if(r!==-1){let a=l.length,o=r;switch(e.key){case t?L.ARROW_LEFT:L.ARROW_RIGHT:o=(r+1)%a;break;case t?L.ARROW_RIGHT:L.ARROW_LEFT:o=(a+r-1)%a;break;case L.ARROW_DOWN:{let t=u.findIndex(e=>e.some(e=>e.value===n)),a=u[t];if(t!==-1&&a){let o=a.findIndex(e=>e.value===n),s=u[(t+1)%u.length];i((s[Math.min(o,s.length-1)]??l[r]).value),e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),e.stopPropagation();return}break}case L.ARROW_UP:{let t=u.findIndex(e=>e.some(e=>e.value===n)),a=u[t];if(t!==-1&&a){let o=a.findIndex(e=>e.value===n),s=u[(u.length+t-1)%u.length];i((s[Math.min(o,s.length-1)]??l[r]).value),e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),e.stopPropagation();return}break}}i(l[o].value)}e.preventDefault()}else (e.key===L.ESCAPE||e.key===L.ENTER)&&(e.preventDefault(),a());e.nativeEvent.stopImmediatePropagation(),e.stopPropagation()};(0,V.useEffect)(()=>{Og(t,e=>e.value===n)&&c(!0)},[n,t,c]);let f=e=>(0,U.jsx)(`div`,{className:`picker-content`,children:e.map(e=>(0,U.jsxs)(`button`,{type:`button`,className:H(`picker-option`,{active:n===e.value}),onClick:()=>{i(e.value)},title:e.keyBinding?`${e.text} \u2014 ${e.keyBinding.toUpperCase()}`:e.text,"aria-label":e.text||`none`,"aria-keyshortcuts":e.keyBinding||void 0,ref:t=>{n===e.value&&setTimeout(()=>{t?.focus()},0)},children:[e.icon,e.keyBinding&&(0,U.jsx)(`span`,{className:`picker-keybinding`,children:e.keyBinding})]},e.text))}),p=e=>e.map((e,t)=>e.name===Tg?(0,U.jsx)(V.Fragment,{children:f(e.options)},`${e.name}-${t}`):(0,U.jsxs)(`div`,{className:`picker-section`,children:[(0,U.jsx)(`div`,{className:`picker-section-label`,children:e.name}),f(e.options)]},`${e.name}-${t}`));return(0,U.jsx)(x,{className:`picker`,role:`dialog`,"aria-modal":`true`,"aria-label":r,side:`bottom`,align:`start`,sideOffset:12,alignOffset:12,style:{zIndex:`var(--zIndex-ui-styles-popup)`},onKeyDown:d,collisionBoundary:o??void 0,children:(0,U.jsxs)(`div`,{className:`picker-sections`,children:[p(e),t.length>0&&(0,U.jsx)(Sg,{label:W(`labels.more_options`),open:s,openTrigger:()=>{c(e=>!e)},className:`picker-collapsible`,children:(0,U.jsx)(`div`,{className:`picker-sections`,children:p(t)})})]})})}function jg({value:e,label:t,visibleSections:n,hiddenSections:r,onChange:i}){let[a,o]=V.useState(!1),s=(0,V.useMemo)(()=>Dg(n,t=>t.value===e)??Dg(r??[],t=>t.value===e),[n,r,e]);return(0,U.jsx)(`div`,{children:(0,U.jsxs)(C,{open:a,onOpenChange:e=>o(e),children:[(0,U.jsx)(T,{type:`button`,"aria-label":t,onClick:()=>o(!a),className:a?`active`:``,children:s?.icon}),a&&(0,U.jsx)(Ag,{visibleSections:n,hiddenSections:r,value:e,label:t,onChange:i,onClose:()=>{o(!1)}})]})})}var Mg=({label:e,value:t,onChange:n,min:r=0,max:i=100,step:a=10,minLabel:o=r,hasCommonValue:s=!0,testId:c})=>{let l=V.useRef(null),u=V.useRef(null);return(0,V.useEffect)(()=>{if(l.current&&u.current){let e=l.current,n=u.current,a=e.offsetWidth,o=parseFloat(getComputedStyle(e).getPropertyValue(`--slider-thumb-size`))||16,s=(t-r)/(i-r||1)*100,c=s/100*(a-o)+o/2;n.style.left=`${c}px`,e.style.background=`linear-gradient(to right, var(--color-slider-track) 0%, var(--color-slider-track) ${s}%, var(--button-bg) ${s}%, var(--button-bg) 100%)`}},[i,r,t]),(0,U.jsxs)(`label`,{className:`control-label`,children:[e,(0,U.jsxs)(`div`,{className:`range-wrapper`,children:[(0,U.jsx)(`input`,{style:{"--color-slider-track":s?void 0:`var(--button-bg)`},ref:l,type:`range`,min:r,max:i,step:a,onChange:e=>{n(+e.target.value)},value:t,className:`range-input`,"data-testid":c}),(0,U.jsx)(`div`,{className:`value-bubble`,ref:u,children:t===r?null:t}),(0,U.jsx)(`div`,{className:`zero-label`,children:o})]})]})},Ng=.1,Pg=e=>{let t=It(e.editorInterface);return{stylesPanelMode:t,isCompact:t!==`full`,isMobile:t===`mobile`}},Fg=(e,t,n,r=!1)=>{let i=k(Ls(e,t,{includeBoundTextElement:r}));return e.map(e=>i.get(e.id)||e.id===t.editingTextElement?.id?(Sr(e)||console.error(`[NONDELETED][INVARIANT] changeProperty(): skipping deleted selected/editing element`),n(e)):e)},Ig=function(e,t,n,r,i){let a=t.state.editingTextElement,o=A(e),s=null;if(a&&(s=n(a)),!s)if(wa(o,t.state)){let e=t.scene.getSelectedElements(t.state);s=Ze(r===!0?e:e.filter(e=>r(e)),n)??(typeof i==`function`?i(!0):i)}else s=typeof i==`function`?i(!1):i;return s},Lg=(e,t,n)=>Gs(t)||!t.autoResize?t:n.mutateElement(t,{x:e.textAlign===`left`?e.x:e.x+(e.width-t.width)/(e.textAlign===`center`?2:1),y:e.y+(e.height-t.height)/2}),Rg=(e,t,n,r,i)=>{let a=new Set,o=Fg(e,t,e=>{if(I(e)){let t=r(e);a.add(t);let i=B(e,{fontSize:t});return Ya(i,n.scene.getContainerElement(e),n.scene),i=Lg(e,i,n.scene),i}return e},!0);return Ls(e,t,{includeBoundTextElement:!0}).forEach(e=>{I(e)&&yn(e,n.scene)}),{elements:o,appState:{...t,currentItemFontSize:a.size===1?[...a][0]:i??t.currentItemFontSize},captureUpdate:j.IMMEDIATELY}};Y({name:`changeStrokeColor`,label:`labels.stroke`,trackEvent:!1,perform:(e,t,n)=>({...n?.currentItemStrokeColor&&{elements:Fg(e,t,e=>ti(e.type)?B(e,{strokeColor:n.currentItemStrokeColor}):e,!0)},appState:{...t,...n},captureUpdate:n?.currentItemStrokeColor?j.IMMEDIATELY:j.EVENTUALLY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let{stylesPanelMode:a}=Pg(r);return(0,U.jsxs)(U.Fragment,{children:[a===`full`&&(0,U.jsx)(`h3`,{"aria-hidden":`true`,children:W(`labels.stroke`)}),(0,U.jsx)(eg,{topPicks:ol,palette:xa,customizableTopPicks:`elementStroke`,type:`elementStroke`,label:W(`labels.stroke`),color:Ig(e,r,e=>e.strokeColor,!0,e=>e?null:t.currentItemStrokeColor),onChange:e=>n({currentItemStrokeColor:e}),elements:e,appState:t,updateData:n})]})}}),Y({name:`changeBackgroundColor`,label:`labels.changeBackground`,trackEvent:!1,perform:(e,t,n,r)=>{if(!n?.currentItemBackgroundColor)return{appState:{...t,...n},captureUpdate:j.EVENTUALLY};let i,a=r.scene.getSelectedElements(t);if(!lo(n.currentItemBackgroundColor)&&a.every(e=>ft(e)&&Hc(e.points))){let t=k(a);i=e.map(e=>t.has(e.id)&&ft(e)?B(e,{backgroundColor:n.currentItemBackgroundColor,...mi(e,!0)}):e)}else i=Fg(e,t,e=>B(e,{backgroundColor:n.currentItemBackgroundColor}));return{elements:i,appState:{...t,...n},captureUpdate:j.IMMEDIATELY}},PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let{stylesPanelMode:a}=Pg(r);return(0,U.jsxs)(U.Fragment,{children:[a===`full`&&(0,U.jsx)(`h3`,{"aria-hidden":`true`,children:W(`labels.background`)}),(0,U.jsx)(eg,{topPicks:de,palette:At,customizableTopPicks:`elementBackground`,type:`elementBackground`,label:W(`labels.background`),color:Ig(e,r,e=>e.backgroundColor,!0,e=>e?null:t.currentItemBackgroundColor),onChange:e=>n({currentItemBackgroundColor:e}),elements:e,appState:t,updateData:n})]})}});var zg=Y({name:`changeBucketFillBackgroundColor`,label:`labels.changeBackground`,trackEvent:!1,perform:(e,t,n)=>({appState:{...t,...n},captureUpdate:j.EVENTUALLY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let{stylesPanelMode:i}=Pg(r);return(0,U.jsxs)(U.Fragment,{children:[i===`full`&&(0,U.jsx)(`h3`,{"aria-hidden":`true`,children:W(`labels.background`)}),(0,U.jsx)(eg,{topPicks:Co,palette:At,excludedColors:[on.transparent],customizableTopPicks:`bucketFill`,type:`elementBackground`,label:W(`labels.background`),color:r.bucketFill.getBucketFillBackgroundColor(t.currentItemBackgroundColor),onChange:e=>n({currentItemBackgroundColor:e}),elements:e,appState:t,updateData:n})]})}});Y({name:`changeFillStyle`,label:`labels.fill`,trackEvent:!1,perform:(e,t,n,r)=>(ih(`element`,`changeFillStyle`,`${n} (${r.editorInterface.formFactor===`phone`?`mobile`:`desktop`})`),{elements:Fg(e,t,e=>B(e,{fillStyle:n})),appState:{...t,currentItemFillStyle:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let i=Ls(e,t),a=i.length>0&&i.every(e=>e.fillStyle===`zigzag`);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.fill`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{type:`button`,options:[{value:`hachure`,text:`${W(a?`labels.zigzag`:`labels.hachure`)} (${X(`Alt-Click`)})`,icon:a?Jf:Yf,active:a?!0:void 0,testId:`fill-hachure`},{value:`cross-hatch`,text:W(`labels.crossHatch`),icon:Xf,testId:`fill-cross-hatch`},{value:`solid`,text:W(`labels.solid`),icon:Zf,testId:`fill-solid`}],value:Ig(e,r,e=>e.fillStyle,e=>e.hasOwnProperty(`fillStyle`),e=>e?null:t.currentItemFillStyle),onClick:(e,t)=>{n(t.altKey&&e===`hachure`&&i.every(e=>e.fillStyle===`hachure`)?`zigzag`:e)}})})]})}});var Bg=e=>Gi.find(t=>tl(e.type,t)===e.strokeWidth)??null,Vg=(e,t)=>tl(e.type,t);Y({name:`changeStrokeWidth`,label:`labels.strokeWidth`,trackEvent:!1,perform:(e,t,n)=>(Jo(n,`actionChangeStrokeWidth: value must be defined`),{elements:Fg(e,t,e=>B(e,{strokeWidth:Vg(e,n)})),appState:{...t,currentItemStrokeWidthKey:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.strokeWidth`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`stroke-width`,options:[{value:`thin`,text:W(`labels.thin`),icon:Qf,testId:`strokeWidth-thin`},{value:`medium`,text:W(`labels.medium`),icon:$f,testId:`strokeWidth-medium`},{value:`bold`,text:W(`labels.bold`),icon:ep,testId:`strokeWidth-bold`}],value:Ig(e,r,Bg,e=>e.hasOwnProperty(`strokeWidth`),e=>e?null:t.currentItemStrokeWidthKey),onChange:e=>n(e)})})]})}),Y({name:`changeSloppiness`,label:`labels.sloppiness`,trackEvent:!1,perform:(e,t,n)=>({elements:Fg(e,t,e=>B(e,{seed:bo(),roughness:n})),appState:{...t,currentItemRoughness:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.sloppiness`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`sloppiness`,options:[{value:0,text:W(`labels.architect`),icon:rp},{value:1,text:W(`labels.artist`),icon:ip},{value:2,text:W(`labels.cartoonist`),icon:ap}],value:Ig(e,r,e=>e.roughness,e=>e.hasOwnProperty(`roughness`),e=>e?null:t.currentItemRoughness),onChange:e=>n(e)})})]})}),Y({name:`changeFreedrawMode`,label:`labels.pressure`,trackEvent:!1,perform:(e,t,n)=>{let r=n||`constant`;return{elements:Fg(e,t,e=>e.type===`freedraw`?B(e,{strokeOptions:{...e.strokeOptions,variability:r}}):e),appState:{...t,currentItemStrokeVariability:r},captureUpdate:j.IMMEDIATELY}},PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let a=Ig(e,r,e=>e.strokeOptions?.variability,e=>e.type===`freedraw`,e=>e?null:t.currentItemStrokeVariability)??t.currentItemStrokeVariability;if(i?.cycle){let e=a===`variable`;return(0,U.jsx)(J,{type:`button`,icon:e?sp:op,title:W(`labels.pressure`),"aria-label":W(`labels.pressure`),onClick:()=>n(e?`constant`:`variable`)})}return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.pressure`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`strokeOptions.variability`,options:[{value:`constant`,text:W(`labels.pressure_constant`),icon:op},{value:`variable`,text:W(`labels.pressure_variable`),icon:sp}],value:a,onChange:e=>n(e)})})]})}}),Y({name:`changeStrokeStyle`,label:`labels.strokeStyle`,trackEvent:!1,perform:(e,t,n)=>({elements:Fg(e,t,e=>B(e,{strokeStyle:n})),appState:{...t,currentItemStrokeStyle:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.strokeStyle`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`strokeStyle`,options:[{value:`solid`,text:W(`labels.strokeStyle_solid`),icon:Qf},{value:`dashed`,text:W(`labels.strokeStyle_dashed`),icon:tp},{value:`dotted`,text:W(`labels.strokeStyle_dotted`),icon:np}],value:Ig(e,r,e=>e.strokeStyle,e=>e.hasOwnProperty(`strokeStyle`),e=>e?null:t.currentItemStrokeStyle),onChange:e=>n(e)})})]})}),Y({name:`changeOpacity`,label:`labels.opacity`,trackEvent:!1,perform:(e,t,n)=>({elements:Fg(e,t,e=>B(e,{opacity:n}),!0),appState:{...t,currentItemOpacity:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,app:n,updateData:r})=>{let i=Ig(e,n,e=>e.opacity,!0,e=>e?null:t.currentItemOpacity);return(0,U.jsx)(Mg,{label:W(`labels.opacity`),value:i??t.currentItemOpacity,hasCommonValue:i!==null,onChange:r,min:0,max:100,step:10,testId:`opacity`})}}),Y({name:`changeFontSize`,label:`labels.fontSize`,trackEvent:!1,perform:(e,t,n,r)=>Rg(e,t,r,()=>(Jo(n,`actionChangeFontSize: Expected a font size value`),n),n),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let{isCompact:a}=Pg(r);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.fontSize`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`font-size`,options:[{value:ms.sm,text:W(`labels.small`),icon:Tp,testId:`fontSize-small`},{value:ms.md,text:W(`labels.medium`),icon:Ep,testId:`fontSize-medium`},{value:ms.lg,text:W(`labels.large`),icon:Dp,testId:`fontSize-large`},{value:ms.xl,text:W(`labels.veryLarge`),icon:Op,testId:`fontSize-veryLarge`}],value:Ig(e,r,e=>{if(I(e))return e.fontSize;let t=zo(e,r.scene.getNonDeletedElementsMap());return t?t.fontSize:null},e=>I(e)||zo(e,r.scene.getNonDeletedElementsMap())!==null,e=>e?null:t.currentItemFontSize||20),onChange:e=>{wh(()=>n(e),a,!!t.editingTextElement,i?.onPreventClose)}})})]})}});var Hg=Y({name:`decreaseFontSize`,label:`labels.decreaseFontSize`,icon:kp,trackEvent:!1,perform:(e,t,n,r)=>Rg(e,t,r,e=>Math.round(1/(1+Ng)*e.fontSize)),keyTest:e=>e[L.CTRL_OR_CMD]&&e.shiftKey&&(e.key===L.CHEVRON_LEFT||e.key===L.COMMA)}),Ug=Y({name:`increaseFontSize`,label:`labels.increaseFontSize`,icon:kp,trackEvent:!1,perform:(e,t,n,r)=>Rg(e,t,r,e=>Math.round(e.fontSize*(1+Ng))),keyTest:e=>e[L.CTRL_OR_CMD]&&e.shiftKey&&(e.key===L.CHEVRON_RIGHT||e.key===L.PERIOD)});Y({name:`changeFontFamily`,label:`labels.fontFamily`,trackEvent:!1,perform:(e,t,n,r)=>{let{cachedElements:i,resetAll:a,resetContainers:o,...s}=n;if(a)return{elements:Fg(e,t,e=>{let t=i?.get(e.id);return t?B(e,{...t}):e},!0),appState:{...t,...s},captureUpdate:j.NEVER};Jo(n,`actionChangeFontFamily: value must be defined`);let{currentItemFontFamily:c,currentHoveredFontFamily:l}=n,u=j.EVENTUALLY,d,f=!1;if(c)d=c,u=j.IMMEDIATELY;else if(l){d=l,u=j.EVENTUALLY;let n=Ls(e,t,{includeBoundTextElement:!0}).filter(e=>I(e));if(n.length>200)f=!0;else{let e=0,t=0;for(;e<n.length&&t<5e3;){let r=n[e];t+=r?.originalText.length||0,e++}t>5e3&&(f=!0)}}let p={appState:{...t,...s},captureUpdate:u};if(d&&!f){let n=new Map,a=new Set,s=!1,u=Array.from(Zn.loadedFontsCache.values()),f=Object.entries(As).find(([e,t])=>t===d)?.[0];l&&f&&u.some(e=>e.startsWith(f))&&(s=!0),Object.assign(p,{elements:Fg(e,t,e=>{if(I(e)&&(e.fontFamily!==d||c)){let t=B(e,{fontFamily:d,lineHeight:za(d)}),c=i?.get(e.containerId||``)||{},l=r.scene.getContainerElement(e);return o&&l&&c&&r.scene.mutateElement(l,{...c}),s||(a=new Set([...a,...Array.from(t.originalText)])),n.set(t,l),t}return e},!0)});let m=`10px ${pa({fontFamily:d})}`,h=Array.from(a.values()).join();if(s||window.document.fonts.check(m,h))for(let[e,t]of n)Ya(e,t,r.scene);else window.document.fonts.load(m,h).then(e=>{for(let[e,t]of n){let n=r.scene.getElement(e.id),i=t?r.scene.getElement(t.id):null;n&&Ya(n,i,r.scene)}r.fonts.onLoaded(e)})}return p},PanelComponent:({elements:e,appState:t,app:n,updateData:r})=>{let i=(0,V.useRef)(new Map),a=(0,V.useRef)(null),[o,s]=(0,V.useState)({}),c=(0,V.useRef)(!0),{stylesPanelMode:l,isCompact:u}=Pg(n),d=(0,V.useMemo)(()=>{let r=(e,r)=>Ig(e,n,e=>{if(I(e))return e.fontFamily;let t=zo(e,r);return t?t.fontFamily:null},e=>I(e)||zo(e,r)!==null,e=>e?null:t.currentItemFontFamily||mn);return o.openPopup===`fontFamily`&&t.openPopup===`fontFamily`?r(Array.from(i.current?.values()??[]),i.current):!o.openPopup&&t.openPopup!==`fontFamily`?r(e,n.scene.getNonDeletedElementsMap()):a.current},[o.openPopup,t,e,n]);return(0,V.useEffect)(()=>{a.current=d},[d]),(0,V.useEffect)(()=>{Object.keys(o).length&&(r(o),s({}))},[o]),(0,V.useEffect)(()=>(c.current=!1,()=>{c.current=!0}),[]),(0,U.jsxs)(U.Fragment,{children:[l===`full`&&(0,U.jsx)(`legend`,{children:W(`labels.fontFamily`)}),(0,U.jsx)(bg,{isOpened:t.openPopup===`fontFamily`,selectedFontFamily:d,hoveredFontFamily:t.currentHoveredFontFamily,compactMode:l!==`full`,onSelect:e=>{wh(()=>{s({openPopup:null,currentHoveredFontFamily:null,currentItemFontFamily:e}),i.current.clear()},u,!!t.editingTextElement)},onHover:e=>{s({currentHoveredFontFamily:e,cachedElements:new Map(i.current),resetContainers:!0})},onLeave:()=>{s({currentHoveredFontFamily:null,cachedElements:new Map(i.current),resetAll:!0})},onPopupChange:r=>{if(r){i.current.clear();let{editingTextElement:r}=t;if(r?.type===`text`){let e=n.scene.getElement(r.id);i.current.set(r.id,B(e||r,{},!0))}else{let n=Ls(e,t,{includeBoundTextElement:!0});for(let e of n)i.current.set(e.id,B(e,{},!0))}s({...o,openPopup:`fontFamily`})}else s({currentHoveredFontFamily:null,cachedElements:new Map(i.current),resetAll:!0}),i.current.clear(),u&&t.editingTextElement&&Ch(null)}})]})}}),Y({name:`changeTextAlign`,label:`Change text alignment`,trackEvent:!1,perform:(e,t,n,r)=>({elements:Fg(e,t,e=>{if(I(e)){let t=B(e,{textAlign:n});return Ya(t,r.scene.getContainerElement(e),r.scene),t}return e},!0),appState:{...t,currentItemTextAlign:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let a=r.scene.getNonDeletedElementsMap(),{isCompact:o}=Pg(r);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.textAlign`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`text-align`,options:[{value:`left`,text:W(`labels.left`),icon:Pp,testId:`align-left`},{value:`center`,text:W(`labels.center`),icon:Fp,testId:`align-horizontal-center`},{value:`right`,text:W(`labels.right`),icon:Ip,testId:`align-right`}],value:Ig(e,r,e=>{if(I(e))return e.textAlign;let t=zo(e,a);return t?t.textAlign:null},e=>I(e)||zo(e,a)!==null,e=>e?null:t.currentItemTextAlign),onChange:e=>{wh(()=>n(e),o,!!t.editingTextElement,i?.onPreventClose)}})})]})}}),Y({name:`changeVerticalAlign`,label:`Change vertical alignment`,trackEvent:{category:`element`},perform:(e,t,n,r)=>({elements:Fg(e,t,e=>{if(I(e)){let t=B(e,{verticalAlign:n});return Ya(t,r.scene.getContainerElement(e),r.scene),t}return e},!0),appState:{...t},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let{isCompact:a}=Pg(r);return(0,U.jsx)(`fieldset`,{children:(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`text-align`,options:[{value:je.TOP,text:W(`labels.alignTop`),icon:(0,U.jsx)(Lp,{theme:t.theme}),testId:`align-top`},{value:je.MIDDLE,text:W(`labels.centerVertically`),icon:(0,U.jsx)(zp,{theme:t.theme}),testId:`align-middle`},{value:je.BOTTOM,text:W(`labels.alignBottom`),icon:(0,U.jsx)(Rp,{theme:t.theme}),testId:`align-bottom`}],value:Ig(e,r,e=>{if(I(e)&&e.containerId)return e.verticalAlign;let t=zo(e,r.scene.getNonDeletedElementsMap());return t?t.verticalAlign:null},e=>I(e)||zo(e,r.scene.getNonDeletedElementsMap())!==null,e=>e?null:je.MIDDLE),onChange:e=>{wh(()=>n(e),a,!!t.editingTextElement,i?.onPreventClose)}})})})}}),Y({name:`changeRoundness`,label:`Change edge roundness`,trackEvent:!1,perform:(e,t,n)=>({elements:Fg(e,t,e=>Ke(e)?e:B(e,{roundness:n===`round`?{type:Rt(e.type)?Ta.ADAPTIVE_RADIUS:Ta.PROPORTIONAL_RADIUS}:null})),appState:{...t,currentItemRoundness:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,renderAction:i})=>{let a=jc(A(e),t).some(e=>e.roundness?.type===Ta.LEGACY);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.edges`)}),(0,U.jsxs)(`div`,{className:`buttonList`,children:[(0,U.jsx)(oh,{group:`edges`,options:[{value:`sharp`,text:W(`labels.sharp`),icon:cp},{value:`round`,text:W(`labels.round`),icon:lp}],value:Ig(e,r,e=>a?null:e.roundness?`round`:`sharp`,e=>!wo(e)&&e.hasOwnProperty(`roundness`),e=>e?null:t.currentItemRoundness),onChange:e=>n(e)}),i(`togglePolygon`)]})]})}});var Wg=e=>({visibleSections:[{name:`default`,options:[{value:null,text:W(`labels.arrowhead_none`),keyBinding:`q`,icon:(0,U.jsx)(up,{flip:e})},{value:`arrow`,text:W(`labels.arrowhead_arrow`),keyBinding:`w`,icon:(0,U.jsx)(dp,{flip:e})},{value:`triangle`,text:W(`labels.arrowhead_triangle`),icon:(0,U.jsx)(fp,{flip:e}),keyBinding:`e`},{value:`triangle_outline`,text:W(`labels.arrowhead_triangle_outline`),icon:(0,U.jsx)(pp,{flip:e}),keyBinding:`r`}]}],hiddenSections:[{name:`default`,options:[{value:`circle`,text:W(`labels.arrowhead_circle`),keyBinding:`a`,icon:(0,U.jsx)(mp,{flip:e})},{value:`circle_outline`,text:W(`labels.arrowhead_circle_outline`),keyBinding:`s`,icon:(0,U.jsx)(hp,{flip:e})},{value:`diamond`,text:W(`labels.arrowhead_diamond`),icon:(0,U.jsx)(gp,{flip:e}),keyBinding:`d`},{value:`diamond_outline`,text:W(`labels.arrowhead_diamond_outline`),icon:(0,U.jsx)(_p,{flip:e}),keyBinding:`f`},{value:`bar`,text:W(`labels.arrowhead_bar`),keyBinding:`z`,icon:(0,U.jsx)(vp,{flip:e})}]},{name:W(`labels.cardinality`),options:[{value:`cardinality_one`,text:W(`labels.arrowhead_cardinality_one`),icon:(0,U.jsx)(yp,{flip:e}),keyBinding:`x`},{value:`cardinality_many`,text:W(`labels.arrowhead_cardinality_many`),icon:(0,U.jsx)(bp,{flip:e}),keyBinding:`c`},{value:`cardinality_one_or_many`,text:W(`labels.arrowhead_cardinality_one_or_many`),icon:(0,U.jsx)(xp,{flip:e}),keyBinding:`v`},{value:`cardinality_exactly_one`,text:W(`labels.arrowhead_cardinality_exactly_one`),icon:(0,U.jsx)(Sp,{flip:e}),keyBinding:null},{value:`cardinality_zero_or_one`,text:W(`labels.arrowhead_cardinality_zero_or_one`),icon:(0,U.jsx)(Cp,{flip:e}),keyBinding:null},{value:`cardinality_zero_or_many`,text:W(`labels.arrowhead_cardinality_zero_or_many`),icon:(0,U.jsx)(wp,{flip:e}),keyBinding:null}]}]});Y({name:`changeArrowhead`,label:`Change arrowheads`,trackEvent:!1,perform:(e,t,n)=>(Jo(n,`actionChangeArrowhead: value must be defined`),{elements:Fg(e,t,e=>{if(Zo(e)){let{position:t,type:r}=n;if(t===`start`)return B(e,{startArrowhead:r});if(t===`end`)return B(e,{endArrowhead:r})}return e}),appState:{...t,[n.position===`start`?`currentItemStartArrowhead`:`currentItemEndArrowhead`]:n.type},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let i=yd().rtl,a=(0,V.useMemo)(()=>Wg(!i),[i]),o=(0,V.useMemo)(()=>Wg(!!i),[i]);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.arrowheads`)}),(0,U.jsxs)(`div`,{className:`iconSelectList buttonList`,children:[(0,U.jsx)(jg,{visibleSections:a.visibleSections,hiddenSections:a.hiddenSections,label:`arrowhead_start`,value:Ig(e,r,e=>Zo(e)&&Ea(e.type)?Wi(e.startArrowhead):t.currentItemStartArrowhead,!0,e=>e?null:t.currentItemStartArrowhead),onChange:e=>n({position:`start`,type:e})}),(0,U.jsx)(jg,{visibleSections:o.visibleSections,hiddenSections:o.hiddenSections,label:`arrowhead_end`,value:Ig(e,r,e=>Zo(e)&&Ea(e.type)?Wi(e.endArrowhead):t.currentItemEndArrowhead,!0,e=>e?null:t.currentItemEndArrowhead),onChange:e=>n({position:`end`,type:e})})]})]})}}),Y({name:`changeArrowProperties`,label:`Change arrow properties`,trackEvent:!1,perform:(e,t,n,r)=>!1,PanelComponent:({elements:e,appState:t,updateData:n,app:r,renderAction:i})=>(0,U.jsxs)(`div`,{className:`selected-shape-actions`,children:[i(`changeArrowhead`),i(`changeArrowType`)]})}),Y({name:`changeArrowType`,label:`Change arrow types`,trackEvent:!1,perform:(e,t,n,r)=>{let i=Fg(e,t,e=>{if(!wo(e))return e;let i=r.scene.getNonDeletedElementsMap(),a=N.getPointAtIndexGlobalCoordinates(e,0,i),o=N.getPointAtIndexGlobalCoordinates(e,-1,i),s=B(e,{x:n===Ca.elbow?a[0]:e.x,y:n===Ca.elbow?a[1]:e.y,roundness:n===Ca.round?{type:Ta.PROPORTIONAL_RADIUS}:null,elbowed:n===Ca.elbow,angle:n===Ca.elbow?0:e.angle,points:n===Ca.elbow||e.elbowed?[N.pointFromAbsoluteCoords({...e,x:a[0],y:a[1],angle:0},a,i),N.pointFromAbsoluteCoords({...e,x:a[0],y:a[1],angle:0},o,i)]:e.points});if(Ke(s)){s.fixedSegments=null;let e=r.scene.getNonDeletedElementsMap();r.dismissLinearEditor();let n=N.getPointAtIndexGlobalCoordinates(s,0,e),i=N.getPointAtIndexGlobalCoordinates(s,-1,e),a=s.startBinding&&e.get(s.startBinding.elementId),o=s.endBinding&&e.get(s.endBinding.elementId),c=a&&s.startBinding?{...s.startBinding,...No(s,a,`start`,e,t.isBindingEnabled)}:null,l=o&&s.endBinding?{...s.endBinding,...No(s,o,`end`,e,t.isBindingEnabled)}:null;s={...s,startBinding:c,endBinding:l,...vt(s,e,{points:[n,i].map(e=>O(e[0]-s.x,e[1]-s.y)),startBinding:c,endBinding:l,fixedSegments:null})}}else{let e=r.scene.getNonDeletedElementsMap();if(s.startBinding){let n=e.get(s.startBinding.elementId);n&&Mr(s,n,t.bindMode===`inside`?`inside`:`orbit`,`start`,r.scene)}if(s.endBinding){let n=e.get(s.endBinding.elementId);n&&Mr(s,n,t.bindMode===`inside`?`inside`:`orbit`,`end`,r.scene)}}return s}),a={...t,currentItemArrowType:n},o=t.selectedLinearElement?.elementId;if(o){let t=i.find(e=>e.id===o);t&&(a.selectedLinearElement=new N(t,k(e)))}return{elements:i,appState:a,captureUpdate:j.IMMEDIATELY}},PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.arrowtypes`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`arrowtypes`,options:[{value:Ca.sharp,text:W(`labels.arrowtype_sharp`),icon:Am,testId:`sharp-arrow`},{value:Ca.round,text:W(`labels.arrowtype_round`),icon:Mm,testId:`round-arrow`},{value:Ca.elbow,text:W(`labels.arrowtype_elbowed`),icon:jm,testId:`elbow-arrow`}],value:Ig(e,r,e=>wo(e)?e.elbowed?Ca.elbow:e.roundness?Ca.round:Ca.sharp:null,e=>wo(e),e=>e?null:t.currentItemArrowType),onChange:e=>n(e)})})]})});var Gg=()=>{let e=document.querySelector(`.excalidraw-tooltip`);if(e)return e;let t=document.createElement(`div`);return document.body.appendChild(t),t.classList.add(`excalidraw-tooltip`),t},Kg=(e,t,n=`bottom`)=>{let r=e.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight,o=t.left+t.width/2-r.width/2;o<0?o=5:o+r.width>=i&&(o=i-r.width-5);let s;n===`bottom`?(s=t.top+t.height+5,s+r.height>=a&&(s=t.top-r.height-5)):(s=t.top-r.height-5,s<0&&(s=t.top+t.height+5)),Object.assign(e.style,{top:`${s}px`,left:`${o}px`})},qg=(e,t,n,r)=>{t.classList.add(`excalidraw-tooltip--visible`),t.style.minWidth=r?`50ch`:`10ch`,t.style.maxWidth=r?`50ch`:`15ch`,t.textContent=n,Kg(t,e.getBoundingClientRect())},Jg=({children:e,label:t,long:n=!1,style:r,disabled:i})=>((0,V.useEffect)(()=>()=>Gg().classList.remove(`excalidraw-tooltip--visible`),[]),i?null:(0,U.jsx)(`div`,{className:`excalidraw-tooltip-wrapper`,onPointerEnter:e=>qg(e.currentTarget,Gg(),t,n),onPointerLeave:()=>Gg().classList.remove(`excalidraw-tooltip--visible`),style:r,children:e})),Yg=(e,t)=>typeof t==`function`?t(e):Array.isArray(t)?e:e[t],Xg=(e,t,n)=>{if(e?.isDestroyed)return;let r=e?.getAppState();if(!r){if(!n)return;console.warn(`useAppStateValue: excalidrawAPI not defined yet for internal component while it should always be defined. Are you sure you're rendering inside of <Excalidraw/> component tree?`),r=Object.assign({width:0,height:0,offsetLeft:0,offsetTop:0},si())}return Yg(r,t)};function Zg(e,t=!0){let n=mN(),[,r]=(0,V.useState)(0),i=(0,V.useRef)(null);return i.current||={selector:e,isInitialized:!!n,latestValue:Xg(n,e,t)},i.current.selector=e,!i.current.isInitialized&&n&&!n.isDestroyed&&(i.current.isInitialized=!0,i.current.latestValue=Xg(n,e,t)),(0,V.useEffect)(()=>{let e=i.current;if(!(!n||n.isDestroyed||!e))return n.onStateChange(e.selector,t=>{e.latestValue=t,r(e=>e+1)})},[n]),i.current.latestValue}function Qg(e,t){let n=mN(),r=(0,V.useRef)({selector:e,callback:t});r.current.selector=e,r.current.callback=t,(0,V.useEffect)(()=>{if(!(!n||n.isDestroyed))return r.current.callback(Xg(n,r.current.selector,!0),n.getAppState()),n.onStateChange(r.current.selector,(e,t)=>{r.current.callback(e,t)})},[n])}Y({name:`changeViewBackgroundColor`,label:`labels.canvasBackground`,trackEvent:!1,predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.changeViewBackgroundColor&&!t.viewModeEnabled,perform:(e,t,n)=>({appState:{...t,...n},captureUpdate:n?.viewBackgroundColor?j.IMMEDIATELY:j.EVENTUALLY}),PanelComponent:({elements:e,appState:t,updateData:n,appProps:r,data:i})=>(0,U.jsx)(eg,{palette:null,topPicks:Ye,label:W(`labels.canvasBackground`),type:`canvasBackground`,color:t.viewBackgroundColor,onChange:e=>n({viewBackgroundColor:e}),"data-testid":`canvas-background-picker`,elements:e,appState:t,updateData:n})});var $g=Y({name:`clearCanvas`,label:`labels.clearCanvas`,icon:ef,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.clearCanvas&&!t.viewModeEnabled&&t.openDialog?.name!==`elementLinkSelector`,perform:(e,t,n,r)=>(r.imageCache.clear(),{elements:e.map(e=>B(e,{isDeleted:!0})),appState:{...si(),files:{},theme:t.theme,penMode:t.penMode,penDetected:t.penDetected,exportBackground:t.exportBackground,exportEmbedScene:t.exportEmbedScene,gridSize:t.gridSize,gridStep:t.gridStep,gridModeEnabled:t.gridModeEnabled,stats:t.stats,colorTopPicks:t.colorTopPicks,activeTool:t.activeTool.type===`image`?{...t.activeTool,type:r.state.preferredSelectionTool.type}:t.activeTool},captureUpdate:j.IMMEDIATELY})}),e_=Y({name:`zoomIn`,label:`buttons.zoomIn`,viewMode:!0,navigation:!0,icon:Zd,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>(r.requestUnfollow(),{appState:{...t,...ha({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:Qi(t.zoom.value+Rn)},t)},captureUpdate:j.EVENTUALLY}),PanelComponent:({updateData:e})=>{let t=Zg(e=>e.zoom.value);return(0,U.jsx)(J,{type:`button`,className:`zoom-in-button zoom-button`,icon:Zd,title:`${W(`buttons.zoomIn`)} \u2014 ${X(`CtrlOrCmd++`)}`,"aria-label":W(`buttons.zoomIn`),disabled:t>=30,onClick:()=>{e(null)}})},keyTest:e=>(e.code===M.EQUAL||e.code===M.NUM_ADD)&&(e[L.CTRL_OR_CMD]||e.shiftKey)}),t_=Y({name:`zoomOut`,label:`buttons.zoomOut`,icon:Qd,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>(r.requestUnfollow(),{appState:{...t,...ha({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:Qi(t.zoom.value-Rn)},t)},captureUpdate:j.EVENTUALLY}),PanelComponent:({updateData:e})=>{let t=Zg(e=>e.zoom.value);return(0,U.jsx)(J,{type:`button`,className:`zoom-out-button zoom-button`,icon:Qd,title:`${W(`buttons.zoomOut`)} \u2014 ${X(`CtrlOrCmd+-`)}`,"aria-label":W(`buttons.zoomOut`),disabled:t<=Os,onClick:()=>{e(null)}})},keyTest:e=>(e.code===M.MINUS||e.code===M.NUM_SUBTRACT)&&(e[L.CTRL_OR_CMD]||e.shiftKey)}),n_=Y({name:`resetZoom`,label:`buttons.resetZoom`,icon:$d,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>{r.requestUnfollow();let i=t.scrollConstraints?.lockZoom?t.scrollConstraints.zoom:1;return{appState:{...t,...ha({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:Qi(i)},t)},captureUpdate:j.EVENTUALLY}},PanelComponent:({updateData:e})=>{let t=Zg(e=>e.zoom.value);return(0,U.jsx)(Jg,{label:W(`buttons.resetZoom`),style:{height:`100%`},children:(0,U.jsxs)(J,{type:`button`,className:`reset-zoom-button zoom-button`,title:W(`buttons.resetZoom`),"aria-label":W(`buttons.resetZoom`),onClick:()=>{e(null)},children:[(t*100).toFixed(0),`%`]})})},keyTest:e=>(e.code===M.ZERO||e.code===M.NUM_ZERO)&&(e[L.CTRL_OR_CMD]||e.shiftKey)}),r_=e=>[e.x,e.y,e.x+e.width,e.y+e.height];Y({name:`zoomToFitSelectionInViewport`,label:`labels.zoomToFitViewport`,icon:xm,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>{r.requestUnfollow();let i=r.scene.getSelectedElements(t),a=Ui({bounds:i.length?bc(A(i)):t.scrollConstraints?r_(t.scrollConstraints):bc(A(e)),appState:t,fit:`scale-down`,canvasOffsets:r.viewport.getOffsets()});return{...a,appState:{...a.appState,...$c(a.appState)}}},keyTest:e=>e.code===M.TWO&&e.shiftKey&&!e.altKey&&!e[L.CTRL_OR_CMD]}),Y({name:`zoomToFitSelection`,label:`helpDialog.zoomToSelection`,icon:xm,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>{r.requestUnfollow();let i=r.scene.getSelectedElements(t),a=Ui({bounds:i.length?bc(A(i)):t.scrollConstraints?r_(t.scrollConstraints):bc(A(e)),appState:t,fit:`contain`,canvasOffsets:r.viewport.getOffsets()});return{...a,appState:{...a.appState,...$c(a.appState)}}},keyTest:e=>e.code===M.THREE&&e.shiftKey&&!e.altKey&&!e[L.CTRL_OR_CMD]}),Y({name:`zoomToFit`,label:`helpDialog.zoomToFit`,icon:xm,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>{r.requestUnfollow();let i=Ui({bounds:t.scrollConstraints?r_(t.scrollConstraints):bc(A(e)),appState:t,fit:`scale-down`,canvasOffsets:r.viewport.getOffsets()});return{...i,appState:{...i.appState,...$c(i.appState)}}},keyTest:e=>e.code===M.ONE&&e.shiftKey&&!e.altKey&&!e[L.CTRL_OR_CMD]});var i_=Y({name:`toggleTheme`,label:(e,t)=>t.theme===P.DARK?`buttons.lightMode`:`buttons.darkMode`,keywords:[`toggle`,`dark`,`light`,`mode`,`theme`],icon:(e,t)=>e.theme===P.LIGHT?rf:af,viewMode:!0,trackEvent:{category:`canvas`},perform:(e,t,n,r)=>{let i=n||(t.theme===P.LIGHT?P.DARK:P.LIGHT);return r.props.onThemeChange?(r.props.onThemeChange(i),!1):{appState:{...t,theme:i},captureUpdate:j.EVENTUALLY}},keyTest:e=>!e[L.CTRL_OR_CMD]&&e.altKey&&e.shiftKey&&e.code===M.D,predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.toggleTheme}),a_=({app:e,options:t,activeTool:n,defaultOption:r,"data-testid":i,onToolChange:a,displayedOption:o})=>{let[s,c]=(0,V.useState)(!1),l=n.type,u=o.type===l,{container:d}=lN();return!t.some(e=>e.type===l)&&s&&c(!1),(0,V.useEffect)(()=>{let t=e.onPointerDownEmitter.on(()=>{c(!1)});return()=>t?.()},[e]),(0,U.jsxs)(C,{open:s,children:[(0,U.jsx)(T,{asChild:!0,children:(0,U.jsx)(J,{className:H({fillable:o.fillable}),type:`toggle`,icon:o.icon,checked:u,disabled:t.every(t=>d_(e,t.type)),title:Mo(o.title),"aria-label":Mo(o.title),"data-testid":i,onSelect:()=>{c(e=>!e),a(r)}})}),(0,U.jsx)(x,{className:`tool-popover-content`,sideOffset:16,collisionBoundary:d??void 0,children:t.map(({type:t,icon:n,title:r,fillable:i})=>(0,U.jsx)(J,{className:H({fillable:i}),type:`toggle`,icon:n,checked:l===t,disabled:d_(e,t),title:Mo(t),"aria-label":Mo(t),"data-testid":`toolbar-${t}`,onSelect:()=>{e.state.activeTool.type!==t&&(ih(`toolbar`,t,`ui`),e.setActiveTool({type:t}),a?.(t))}},t))})]})},o_=(e=>e)({hand:{icon:Hp,letterKey:L.H,toggle:!0},selection:{icon:Rd,letterKey:L.V,numericKey:L[1],fillable:!0},rectangle:{icon:Bd,letterKey:L.R,numericKey:L[2],fillable:!0},diamond:{icon:Vd,letterKey:L.D,numericKey:L[3],fillable:!0},ellipse:{icon:Hd,letterKey:L.O,numericKey:L[4],fillable:!0},arrow:{icon:Ud,letterKey:L.A,numericKey:L[5],fillable:!0},line:{icon:Wd,letterKey:L.L,numericKey:L[6],fillable:!0},freedraw:{icon:Kd,letterKey:[L.P,L.X],numericKey:L[7]},text:{icon:qd,letterKey:L.T,numericKey:L[8]},image:{icon:Yd,numericKey:L[9]},eraser:{icon:Xd,letterKey:L.E,numericKey:L[0],toggle:!0},frame:{icon:Zp,letterKey:L.F},autoshape:{icon:nm,letterKey:L.X,shiftKey:!0,fillable:!1},embeddable:{icon:tf},laser:{icon:rm,letterKey:L.K},bucketfill:{icon:bf,letterKey:L.B},lasso:{icon:zd,fillable:!1}}),s_=Object.keys(o_).filter(e=>o_[e].toggle),c_=e=>{let{letterKey:t,shiftKey:n}=o_[e];if(!t)return t;let r=Mo(typeof t==`string`?t:t[0]);return n?X(`Shift+${r}`):r},l_=e=>{let t=c_(e),{numericKey:n}=o_[e];return t&&n!=null?`${t} ${W(`helpDialog.or`)} ${n}`:`${t||n}`},u_=(e,t,n=!1)=>{let r=e.toLowerCase();for(let i of Object.keys(o_)){let{letterKey:a,numericKey:o,shiftKey:s}=o_[i];if(n===!!s&&(o!=null&&e===o||a&&(typeof a==`string`?a===r:a.includes(r))))return i===`selection`?t.state.preferredSelectionTool.type:i}return null},d_=(e,t)=>e.props.activeTool!=null&&e.props.activeTool.type!==t,f_=(e,t)=>{let n=o_[e],r=t?.shortcutType??e,i=({app:i,activeTool:a,hideKeyBinding:o,hideShortcut:s})=>{let c=Mo(W(`toolBar.${e}`)),l=s?null:l_(r);return(0,U.jsx)(J,{className:H({fillable:n.fillable}),type:`toggle`,icon:n.icon,checked:a.type===e,disabled:d_(i,e),title:l?`${c} \u2014 ${l}`:c,keyBindingLabel:o||s?void 0:o_[r].numericKey||c_(r),"aria-label":c,"aria-keyshortcuts":l??void 0,"data-testid":`toolbar-${e}`,onSelect:({pointerType:n})=>{if(!i.state.penDetected&&n===`pen`&&i.togglePenMode(!0),t?.onSelect){t.onSelect(i,{pointerType:n});return}i.state.activeTool.type!==e&&(ih(`toolbar`,e,`ui`),i.setActiveTool({type:e}))}})};return i.displayName=`${Mo(e)}IconButton`,i},p_=f_(`hand`),m_=f_(`rectangle`),h_=f_(`diamond`),g_=f_(`ellipse`),__=f_(`arrow`),v_=f_(`line`),y_=f_(`freedraw`),b_=f_(`text`),x_=f_(`image`),S_=f_(`eraser`),C_=f_(`frame`),w_=f_(`selection`,{onSelect:(e,{pointerType:t})=>{if(e.state.activeTool.type===`selection`&&t!==null){e.setActiveTool({type:`lasso`});return}e.state.activeTool.type!==`selection`&&(ih(`toolbar`,`selection`,`ui`),e.setActiveTool({type:`selection`}))}}),T_=f_(`lasso`,{shortcutType:`selection`}),E_=({app:e,activeTool:t,setAppState:n})=>{let r=[{type:`selection`,icon:o_.selection.icon,fillable:o_.selection.fillable,title:Mo(W(`toolBar.selection`))},{type:`lasso`,icon:o_.lasso.icon,fillable:o_.lasso.fillable,title:Mo(W(`toolBar.lasso`))}],i=r.find(t=>t.type===e.state.preferredSelectionTool.type)||r[0];return(0,U.jsx)(a_,{app:e,options:r,activeTool:t,defaultOption:e.state.preferredSelectionTool.type,"data-testid":`toolbar-selection`,onToolChange:t=>{(t===`selection`||t===`lasso`)&&(e.setActiveTool({type:t}),n({preferredSelectionTool:{type:t,initialized:!0}}))},displayedOption:i})},D_=({app:e,activeTool:t})=>{let n=[{type:`freedraw`,icon:o_.freedraw.icon,fillable:o_.freedraw.fillable,title:Mo(W(`toolBar.freedraw`))},{type:`autoshape`,icon:o_.autoshape.icon,fillable:o_.autoshape.fillable,title:Mo(W(`toolBar.autoshape`))}],[r,i]=(0,V.useState)(t.type===`autoshape`?`autoshape`:`freedraw`);return(0,V.useEffect)(()=>{(t.type===`freedraw`||t.type===`autoshape`)&&i(t.type)},[t.type]),(0,U.jsx)(a_,{app:e,options:n,activeTool:t,defaultOption:r,"data-testid":`toolbar-freedraw`,onToolChange:t=>{(t===`freedraw`||t===`autoshape`)&&(i(t),e.setActiveTool({type:t}))},displayedOption:n.find(e=>e.type===r)||n[0]})},O_=Y({name:`finalize`,label:``,trackEvent:!1,perform:(e,t,n,r)=>{let i=!0,a=e,{focusContainer:o,scene:s}=r,c=s.getNonDeletedElementsMap(),l=t.activeTool.type===`autoshape`;if(n&&t.selectedLinearElement){let{event:i,sceneCoords:o}=n,u=N.getElement(t.selectedLinearElement.elementId,c);Jo(u,`Arrow element should exist if selectedLinearElement is set`),Jo(o,`sceneCoords should be defined if actionFinalize is called with event`);let d=N.handlePointerUp(i,t.selectedLinearElement,t,r.scene);if(xi(u)&&!t.selectedLinearElement.segmentMidPointHoveredCoords){let e=!!t.newElement,n=e||!t.selectedLinearElement.selectedPointsIndices?[u.points.length-1]:t.selectedLinearElement.selectedPointsIndices,a=Yc(i),l=i[L.CTRL_OR_CMD]?null:r.getEffectiveGridSize();sn(u,n.reduce((e,t)=>(e.set(t,{point:a?u.points[t]:N.createPointAt(u,c,o.x-d.pointerOffset.x,o.y-d.pointerOffset.y,l)}),e),new Map)??new Map,o.x,o.y,s,t,{newArrow:e,altKey:i.altKey,angleLocked:a,gridSize:r.getEffectiveGridSize()})}else ft(u)&&t.selectedLinearElement?.isEditing&&!t.newElement&&!We(u.points)&&s.mutateElement(u,{polygon:!1});if(d!==t.selectedLinearElement){u&&ys(u)&&(a=a.map(e=>e.id===u.id?B(e,{isDeleted:!0}):e));let n=t.activeTool?.locked;return{elements:u.points.length<2||ys(u)?e.map(e=>e.id===u.id?B(e,{isDeleted:!0}):e):a,appState:{...t,cursorButton:`up`,selectedElementIds:l?{}:t.selectedElementIds,selectedLinearElement:n||l?null:{...d,selectedPointsIndices:null,isEditing:!1,initialState:{...d.initialState,lastClickedPoint:-1},pointerOffset:{x:0,y:0}},selectionElement:null,suggestedBinding:null,hoveredArrowTextAnchor:null,newElement:null,multiElement:null},captureUpdate:j.IMMEDIATELY}}}window.document.activeElement instanceof HTMLElement&&o();let u=r.drawShape.hasPendingGesture();(u||l)&&(r.drawShape.finalize(),u&&(a=r.scene.getElementsIncludingDeleted()));let d=null;if(t.multiElement)d=t.multiElement;else if(!l&&!u&&(t.newElement?.type===`freedraw`||xi(t.newElement)))d=t.newElement;else if(Object.keys(t.selectedElementIds).length===1){let e=c.get(Object.keys(t.selectedElementIds)[0]);e&&(d=e)}if(d){if(t.selectedLinearElement&&t.multiElement&&d.type!==`freedraw`&&t.lastPointerDownWith!==`touch`){let{points:e}=d,{lastCommittedPoint:n}=t.selectedLinearElement;if((!n||e[e.length-1]!==n)&&(i=!1,s.mutateElement(d,{points:d.points.slice(0,-1)}),xi(d)&&d.endBinding&&d.points.length>1)){let e=!!t.newElement,n=new Map([[d.points.length-1,{point:d.points[d.points.length-1],isDragging:!1}]]),r=N.getPointAtIndexGlobalCoordinates(d,-1,c);sn(d,n,r[0],r[1],s,t,{newArrow:e})}}if(d&&ys(d)&&(a=a.map(e=>e.id===d?.id?B(e,{isDeleted:!0}):e)),Zo(d)||uo(d)){if(Sc(d.points,t.zoom.value)&&(ft(d)||uo(d))){let e=d.points,t=e[0],n=e.map((n,r)=>r===e.length-1?O(t[0],t[1]):n);ft(d)?s.mutateElement(d,{points:n,polygon:!0}):s.mutateElement(d,{points:n})}ft(d)&&!We(d.points)&&s.mutateElement(d,{polygon:!1})}}let f;f=s_.includes(t.activeTool.type)?ji(t,{...t.activeTool.lastActiveTool||{type:r.state.preferredSelectionTool.type},lastActiveTool:null}):ji(t,{type:r.state.preferredSelectionTool.type});let p=r.isToolLocked(),m=t.activeTool.type===`autoshape`||(p||t.activeTool.type===`freedraw`)&&!!d;m||r.cursor.applyForTool(f);let h=d&&Zo(d)?new N(d,k(a)):t.selectedLinearElement;return h&&={...h,isEditing:t.newElement?!1:h.isEditing,initialState:{...h.initialState,lastClickedPoint:-1,origin:null}},{elements:a,appState:{...t,cursorButton:`up`,activeTool:m?t.activeTool:f,activeEmbeddable:null,newElement:null,selectionElement:null,multiElement:null,editingTextElement:null,suggestedBinding:null,hoveredArrowTextAnchor:null,frameToHighlight:null,selectedElementIds:l?{}:d&&!p&&t.activeTool.type!==`freedraw`?{...t.selectedElementIds,[d.id]:!0}:t.selectedElementIds,selectedLinearElement:l?null:h},captureUpdate:i?j.IMMEDIATELY:j.NEVER}},keyTest:(e,t)=>e.key===L.ESCAPE&&t.selectedLinearElement?.isEditing||(e.key===L.ESCAPE||e.key===L.ENTER)&&t.multiElement!==null,PanelComponent:({appState:e,updateData:t,data:n})=>(0,U.jsx)(J,{type:`button`,icon:wf,title:W(`buttons.done`),"aria-label":W(`buttons.done`),onClick:t,visible:e.multiElement!=null,size:n?.size||`medium`,style:{pointerEvents:`all`}})}),k_=(e,t)=>s_.includes(e.activeTool.type)?ji(e,{...e.activeTool.lastActiveTool||{type:t.state.preferredSelectionTool.type},lastActiveTool:null}):ji(e,{type:t.state.preferredSelectionTool.type}),A_=(e,t,n)=>{if(!e.editingGroupId)return null;let r=t.scene.getNonDeletedElements(),i=t.scene.getSelectedElements({selectedElementIds:n,elements:r}),a=i.length?i:nn(r,e.editingGroupId);for(let t of a){let n=t.groupIds.indexOf(e.editingGroupId);if(n!==-1&&t.groupIds[n+1])return t.groupIds[n+1]}return null};Y({name:`deselect`,label:``,trackEvent:!1,perform:(e,t,n,r)=>{let i=k_(t,r);if(r.cursor.applyForTool(i),t.editingGroupId){let e=r.scene.getNonDeletedElements(),n=Object.keys(t.selectedElementIds).length>0?t.selectedElementIds:nn(e,t.editingGroupId).reduce((e,t)=>(e[t.id]=!0,e),{});return{appState:{...t,...ks({editingGroupId:A_(t,r,n),selectedElementIds:n},e,t,r),activeEmbeddable:null,activeTool:i,selectedLinearElement:null,selectionElement:null,showHyperlinkPopup:!1,suggestedBinding:null,hoveredArrowTextAnchor:null,frameToHighlight:null},captureUpdate:j.IMMEDIATELY}}return{appState:{...t,activeEmbeddable:null,activeTool:i,editingGroupId:null,selectedElementIds:Bi({},t),selectedGroupIds:{},selectedLinearElement:null,selectionElement:null,showHyperlinkPopup:!1,suggestedBinding:null,hoveredArrowTextAnchor:null,frameToHighlight:null},captureUpdate:j.IMMEDIATELY}},keyTest:(e,t,n,r)=>e.key!==L.ESCAPE||ot(e.target)?!1:!t.newElement&&t.multiElement===null&&!t.selectedLinearElement?.isEditing&&(t.activeEmbeddable!==null||t.activeTool.type!==r.state.preferredSelectionTool.type||!!t.editingGroupId||!!t.selectedLinearElement||wa(r.scene.getNonDeletedElements(),t))});var j_=({children:e,checked:t,onChange:n,className:r})=>(0,U.jsxs)(`div`,{className:H(`Checkbox`,r,{"is-checked":t}),onClick:e=>{n(!t,e),e.currentTarget.querySelector(`.Checkbox-box`).focus()},children:[(0,U.jsx)(`button`,{type:`button`,className:`Checkbox-box`,role:`checkbox`,"aria-checked":t,children:mf}),(0,U.jsx)(`div`,{className:`Checkbox-label`,children:e})]}),M_=e=>{let t=e.title||(e.value===P.DARK?W(`buttons.lightMode`):W(`buttons.darkMode`));return(0,U.jsx)(J,{type:`icon`,icon:e.value===P.LIGHT?N_.MOON:N_.SUN,title:t,"aria-label":t,onClick:()=>e.onChange(e.value===P.DARK?P.LIGHT:P.DARK),"data-testid":`toggle-dark-mode`})},N_={SUN:(0,U.jsx)(`svg`,{width:`512`,height:`512`,className:`rtl-mirror`,viewBox:`0 0 512 512`,children:(0,U.jsx)(`path`,{fill:`currentColor`,d:`M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z`})}),MOON:(0,U.jsx)(`svg`,{width:`512`,height:`512`,className:`rtl-mirror`,viewBox:`0 0 512 512`,children:(0,U.jsx)(`path`,{fill:`currentColor`,d:`M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z`})})},P_=e=>{let{id:t}=lN(),[n,r]=(0,V.useState)(e.value);return(0,U.jsxs)(`div`,{className:`ProjectName`,children:[(0,U.jsx)(`label`,{className:`ProjectName-label`,htmlFor:`filename`,children:`${e.label}:`}),(0,U.jsx)(`input`,{type:`text`,className:`TextInput`,onBlur:t=>{e.ignoreFocus||es(t.target);let n=t.target.value;n!==e.value&&e.onChange(n)},onKeyDown:e=>{if(e.key===L.ENTER){if(e.preventDefault(),e.nativeEvent.isComposing||e.keyCode===229)return;e.currentTarget.blur()}},id:`${t}-filename`,value:n,onChange:e=>r(e.target.value)})]})},F_=5e3,I_=Object.assign(({message:e,onClose:t,closable:n=!1,duration:r=F_,style:i})=>{let a=(0,V.useRef)(0),o=r!==1/0,s=(0,V.useCallback)(()=>{o&&(a.current=window.setTimeout(()=>t(),r))},[t,r,o]);return(0,V.useEffect)(()=>{if(o)return s(),()=>clearTimeout(a.current)},[s,e,r,o]),(0,U.jsxs)(`div`,{className:`Toast`,role:`status`,onMouseEnter:o?()=>clearTimeout(a?.current):void 0,onMouseLeave:o?s:void 0,style:i,children:[(0,U.jsx)(`div`,{className:`Toast__message`,children:e}),n&&(0,U.jsx)(J,{icon:Gf,"aria-label":`close`,type:`icon`,onClick:t,className:`close`})]})},{ProgressBar:({progress:e})=>(0,U.jsx)(`div`,{className:`Toast__progress-bar`,children:(0,U.jsx)(`div`,{className:`Toast__progress-bar-fill`,style:{width:`${Math.min(5,Math.round(e*100))}%`}})})});`clipboard`in navigator&&`readText`in navigator.clipboard;var L_=`clipboard`in navigator&&`writeText`in navigator.clipboard,R_=`clipboard`in navigator&&`write`in navigator.clipboard&&`ClipboardItem`in window&&`toBlob`in HTMLCanvasElement.prototype,z_=e=>!!([zt.excalidraw,zt.excalidrawClipboard,zt.excalidrawClipboardWithAPI].includes(e?.type)&&Array.isArray(e.elements)),B_=({types:e,files:t})=>{!e&&!t&&console.warn(`createPasteEvent: no types or files provided`);let n=new ClipboardEvent(z.PASTE,{clipboardData:new DataTransfer});if(e)for(let[r,i]of Object.entries(e)){if(typeof i!=`string`){t||=[],t.push(i);continue}try{if(n.clipboardData?.items.add(i,r),n.clipboardData?.getData(r)!==i)throw Error(`Failed to set "${r}" as clipboardData item`)}catch(e){throw Error(e.message)}}if(t){let e=-1;for(let r of t){e++;try{if(n.clipboardData?.items.add(r),n.clipboardData?.files[e]!==r)throw Error(`Failed to set file "${r.name}" as clipboardData item`)}catch(e){throw Error(e.message)}}}return n},V_=({elements:e,files:t})=>{let n=k(e),r=new Set(e.filter(e=>F(e))),i=!1,a=e.reduce((e,n)=>(Bc(n)&&(i=!0,t&&t[n.fileId]&&(e[n.fileId]=t[n.fileId])),e),{});i&&!t&&console.warn("copyToClipboard: attempting to file element(s) without providing associated `files` object.");let o={type:zt.excalidrawClipboard,elements:e.map(e=>{if(wn(e,n)&&!r.has(wn(e,n))){let t=Ii(e);return Hr(t,n,{frameId:null}),t}return e}),files:t?a:void 0};return JSON.stringify(o)},H_=async(e,t,n)=>{let r=V_({elements:e,files:t});await ev({[R.excalidrawClipboard]:r,[R.text]:r},n)};function U_(e){let t=[];for(let n of e.childNodes)if(n.nodeType===3){let e=n.textContent?.trim();e&&t.push({type:`text`,value:e})}else if(n instanceof HTMLImageElement){let e=n.getAttribute(`src`);e&&e.startsWith(`http`)&&t.push({type:`imageUrl`,value:e})}else t=t.concat(U_(n));return t}var W_=e=>{let t=e.value;try{let e=U_(new DOMParser().parseFromString(t,R.html).body);if(e.length)return{type:`mixedContent`,value:e}}catch(e){console.error(`error in parseHTMLFromPaste: ${e.message}`)}return null},G_=async()=>{let e={},t;try{t=await navigator.clipboard?.read()}catch(t){try{if(navigator.clipboard?.readText){console.warn(`navigator.clipboard.readText() failed (${t.message}). Failling back to navigator.clipboard.read()`);let e=await navigator.clipboard?.readText();if(e)return{[R.text]:e}}}catch(t){if(navigator.clipboard?.read)console.warn(`navigator.clipboard.readText() failed (${t.message}). Failling back to navigator.clipboard.read()`);else{if(t.name===`DataError`)return console.warn(`navigator.clipboard.read() error, clipboard is probably empty: ${t.message}`),e;throw t}}throw t}for(let n of t)for(let t of n.types)if(ki(ei,t))try{if(t===R.text||t===R.html)e[t]=await(await n.getType(t)).text();else if(or(t))e[t]=Pt(await n.getType(t),t,void 0);else throw new ds(`Unsupported clipboard type: ${t}`)}catch(e){console.warn(e instanceof ds?e.message:`Cannot retrieve ${t} from clipboardItem: ${e.message}`)}return Object.keys(e).length===0&&console.warn(`No clipboard data found from clipboard.read().`),e},K_=async(e,t=!1)=>{try{let n=e.findByType(R.html),r=!t&&n&&W_(n);return r?r.value.every(e=>e.type===`text`)?{type:`text`,value:e.getData(R.text)??r.value.map(e=>e.value).join(`
|
|
2
|
+
import{o as e,r as t,t as n}from"./chunk-CYidjpOJ.js";import{t as r}from"./preload-helper-Chd9yIcd.js";import{t as i}from"./jsx-runtime-BUgB2tll.js";import{t as a}from"./react-f2sANaYj.js";import{t as o}from"./react-dom-DPxgxlDT.js";import{t as s}from"./with-selector-PRoyWQiu.js";import{c,i as l,n as u,p as d,s as f}from"./dist-CsrrNdnj.js";import{f as p,h as m,i as h,m as g,n as _,p as v,u as y}from"./dist-BX7qfUal.js";import{a as b,i as x,n as S,o as C,r as w,s as T}from"./dist-zcYT-cpc.js";import{i as E,n as ee,r as te,t as ne}from"./dist-BY_vnlVW2.js";import{t as re}from"./chunk-A66AFZZU-BIdRzPTk.js";import{i as D,n as ie,r as ae}from"./chunk-SRAX5OIU-E5XcbDos.js";import{$ as oe,$a as se,$c as ce,$i as le,$n as ue,$o as de,$r as fe,$s as pe,$t as me,A as he,Aa as ge,Ac as _e,Ai as ve,An as ye,Ao as be,Ar as xe,As as Se,At as Ce,B as we,Ba as Te,Bc as Ee,Bi as De,Bn as Oe,Bo as ke,Br as Ae,Bs as je,Bt as Me,C as Ne,Ca as Pe,Cc as Fe,Ci as Ie,Cl as Le,Cn as Re,Co as ze,Cr as Be,Cs as Ve,Ct as He,D as Ue,Da as We,Dc as Ge,Di as Ke,Dl as qe,Dn as Je,Do as Ye,Dr as Xe,Ds as Ze,Dt as Qe,E as $e,Ea as et,Ec as tt,Ei as nt,El as O,En as rt,Eo as it,Er as at,Es as ot,Et as st,F as ct,Fa as lt,Fc as ut,Fi as dt,Fn as ft,Fo as pt,Fr as mt,Fs as ht,Ft as gt,G as _t,Ga as vt,Gc as k,Gi as yt,Gn as bt,Go as xt,Gr as St,Gs as Ct,Gt as wt,H as Tt,Ha as Et,Hc as Dt,Hi as Ot,Hn as kt,Ho as At,Hr as jt,Hs as Mt,Ht as Nt,I as Pt,Ia as Ft,Ic as It,Ii as Lt,In as Rt,Io as zt,Ir as Bt,Is as Vt,It as Ht,J as Ut,Ja as Wt,Jc as Gt,Ji as Kt,Jn as qt,Jo as Jt,Jr as Yt,Js as Xt,Jt as Zt,K as Qt,Ka as $t,Kc as en,Ki as tn,Kn as nn,Ko as rn,Kr as an,Ks as on,Kt as sn,L as cn,La as ln,Lc as un,Li as A,Ln as dn,Lo as fn,Lr as pn,Ls as mn,Lt as hn,M as gn,Ma as _n,Mc as vn,Mi as yn,Mn as bn,Mo as xn,Mr as Sn,Ms as Cn,Mt as wn,N as Tn,Na as j,Nc as En,Ni as Dn,Nn as On,No as kn,Nr as An,Ns as jn,Nt as Mn,O as Nn,Oa as Pn,Oc as Fn,Oi as In,On as Ln,Oo as Rn,Or as zn,Os as Bn,Ot as Vn,P as Hn,Pa as Un,Pc as Wn,Pi as Gn,Pn as Kn,Po as qn,Pr as Jn,Ps as Yn,Pt as Xn,Q as Zn,Qa as Qn,Qc as $n,Qi as er,Qn as tr,Qo as nr,Qr as rr,Qs as ir,Qt as ar,R as or,Ra as sr,Rc as cr,Ri as lr,Rn as ur,Ro as dr,Rr as fr,Rs as pr,Rt as mr,S as hr,Sa as gr,Sc as _r,Si as vr,Sl as yr,Sn as br,So as xr,Sr,Ss as Cr,St as wr,T as Tr,Ta as Er,Tc as Dr,Ti as Or,Tl as kr,Tn as Ar,To as jr,Tr as Mr,Ts as Nr,Tt as Pr,U as Fr,Ua as Ir,Uc as M,Ui as Lr,Un as Rr,Uo as zr,Ur as Br,Us as Vr,Ut as Hr,V as Ur,Va as Wr,Vc as Gr,Vi as Kr,Vn as qr,Vo as Jr,Vr as Yr,Vs as Xr,Vt as Zr,W as Qr,Wa as $r,Wc as ei,Wi as ti,Wn as ni,Wo as ri,Wr as ii,Ws as ai,Wt as oi,X as si,Xa as ci,Xc as li,Xi as ui,Xn as N,Xo as di,Xr as fi,Xs as pi,Xt as mi,Y as hi,Ya as gi,Yc as _i,Yi as vi,Yn as yi,Yo as bi,Yr as xi,Ys as Si,Yt as Ci,Z as wi,Za as Ti,Zc as Ei,Zi as Di,Zn as Oi,Zo as ki,Zr as Ai,Zs as ji,Zt as Mi,_ as Ni,_a as Pi,_c as Fi,_i as Ii,_l as Li,_n as Ri,_o as zi,_r as Bi,_s as Vi,_t as Hi,a as Ui,aa as Wi,ac as Gi,ai as Ki,al as qi,an as Ji,ao as Yi,ar as Xi,at as Zi,b as Qi,ba as $i,bc as P,bi as ea,bl as ta,bn as na,bo as ra,br as ia,bs as aa,bt as oa,c as sa,ca,cc as la,ci as ua,cl as da,cn as F,cr as fa,cs as pa,ct as ma,d as ha,da as ga,dc as _a,di as va,dl as ya,dn as ba,do as xa,dr as Sa,ds as Ca,dt as wa,ea as I,ec as Ta,ei as Ea,el as Da,en as Oa,eo as ka,er as Aa,es as ja,et as Ma,f as Na,fa as Pa,fc as Fa,fi as Ia,fl as La,fn as Ra,fo as za,fr as Ba,ft as Va,g as Ha,ga as Ua,gc as Wa,gi as Ga,gl as Ka,gn as qa,go as Ja,gr as Ya,gs as Xa,gt as Za,ha as Qa,hc as $a,hi as eo,hl as to,hn as no,ho as ro,hr as io,hs as ao,ht as oo,i as so,ia as co,ic as lo,ii as uo,il as fo,in as po,io as mo,ir as ho,is as go,it as _o,j as vo,ja as yo,jc as bo,ji as xo,jn as So,jo as Co,jr as wo,js as To,jt as Eo,k as Do,ka as Oo,kc as ko,ki as Ao,kn as jo,ko as Mo,kr as No,ks as Po,kt as Fo,l as Io,la as Lo,lc as Ro,li as zo,ll as Bo,ln as Vo,lo as Ho,lr as Uo,ls as Wo,lt as Go,m as Ko,ma as qo,mc as Jo,mi as Yo,ml as Xo,mn as Zo,mo as Qo,mr as $o,ms as es,mt as ts,n as ns,na as rs,nc as is,ni as as,nl as os,nn as ss,no as cs,nr as ls,ns as us,nt as ds,o as fs,oa as ps,oc as ms,oi as hs,ol as gs,on as _s,oo as vs,or as ys,os as bs,ot as xs,p as Ss,pa as Cs,pc as ws,pi as Ts,pl as Es,pn as Ds,po as Os,pr as ks,ps as As,pt as js,q as Ms,qa as Ns,qc as Ps,qi as Fs,qn as Is,qo as L,qr as Ls,qs as Rs,qt as zs,r as Bs,ra as Vs,rc as Hs,ri as Us,rl as Ws,rn as Gs,ro as Ks,rr as qs,rs as Js,s as Ys,sa as Xs,sc as Zs,si as Qs,sl as $s,sn as ec,so as tc,sr as nc,ss as rc,st as ic,t as ac,ta as oc,tc as sc,ti as cc,tl as lc,tn as uc,to as dc,tr as fc,ts as pc,tt as mc,u as hc,ua as gc,uc as _c,ui as vc,ul as yc,un as bc,uo as xc,ur as Sc,us as Cc,ut as wc,v as Tc,va as Ec,vc as R,vi as Dc,vl as Oc,vn as kc,vo as Ac,vr as jc,vs as Mc,vt as Nc,w as Pc,wa as Fc,wc as Ic,wi as Lc,wl as Rc,wn as zc,wo as z,wr as Bc,ws as Vc,wt as Hc,x as Uc,xa as Wc,xc as Gc,xi as Kc,xl as qc,xn as Jc,xo as Yc,xr as Xc,xs as Zc,xt as Qc,y as $c,ya as el,yc as tl,yi as nl,yl as rl,yn as B,yo as il,yr as al,ys as ol,yt as sl,z as cl,za as ll,zc as ul,zi as dl,zn as fl,zo as pl,zr as ml,zs as hl,zt as gl}from"./chunk-RM4UPSZO-BxyNl4pZ.js";import{_ as _l}from"./chunk-FLYJHZSQ-CUkq5pFS.js";import{r as vl}from"./chunk-7XWMRXBY-DwWPp0aI.js";import{t as yl}from"./dist-CFnVH4pe.js";var V=e(a(),1);function bl(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=bl(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t);return r}function H(){for(var e=0,t,n,r=``;e<arguments.length;)(t=arguments[e++])&&(n=bl(t))&&(r&&(r+=` `),r+=n);return r}var xl=n(((e,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype.toString,m=Math.max,h=Math.min,g=function(){return f.Date.now()};function _(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=S(t)||0,y(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?m(S(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function _(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function v(e){return u=e,c=setTimeout(C,t),d?_(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?h(i,o-r):i}function x(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=g();if(x(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?_(e):(i=a=void 0,s)}function T(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function E(){return c===void 0?s:w(g())}function ee(){var e=g(),n=x(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return v(l);if(f)return c=setTimeout(C,t),_(l)}return c===void 0&&(c=setTimeout(C,t)),s}return ee.cancel=T,ee.flush=E,ee}function v(e,t,r){var i=!0,a=!0;if(typeof e!=`function`)throw TypeError(n);return y(r)&&(i=`leading`in r?!!r.leading:i,a=`trailing`in r?!!r.trailing:a),_(e,t,{leading:i,maxWait:t,trailing:a})}function y(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function b(e){return!!e&&typeof e==`object`}function x(e){return typeof e==`symbol`||b(e)&&p.call(e)==i}function S(e){if(typeof e==`number`)return e;if(x(e))return r;if(y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=y(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=v})),U=i(),Sl=e(o(),1),Cl=e(xl(),1),wl=0;function Tl(e,t){let n=`atom${++wl}`,r={toString(){return n}};return typeof e==`function`?r.read=e:(r.init=e,r.read=El,r.write=Dl),t&&(r.write=t),r}function El(e){return e(this)}function Dl(e,t,n){return t(this,typeof n==`function`?n(e(this)):n)}var Ol=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,kl=e=>`init`in e,Al=e=>!!e.write,jl=new WeakMap,Ml=e=>Fl(e)&&!jl.get(e)?.[1],Nl=(e,t)=>{let n=jl.get(e);n&&(n[1]=!0,n[0].forEach(e=>e(t)))},Pl=e=>{if(jl.has(e))return;let t=[new Set,!1];jl.set(e,t);let n=()=>{t[1]=!0};e.then(n,n),e.onCancel=e=>{t[0].add(e)}},Fl=e=>typeof e?.then==`function`,Il=e=>`v`in e||`e`in e,Ll=e=>{if(`e`in e)throw e.e;return e.v},Rl=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},zl=(e,t,n,r,i)=>{var a;n.d.set(r,i.n),Ml(n.v)&&Rl(t,n.v,i),(a=i.m)==null||a.t.add(t),e&&Ul(e,r,t)},Bl=()=>({D:new Map,H:new Set,M:new Set,L:new Set}),Vl=(e,t,n)=>{e[t].add(n)},Hl=(e,t,n)=>{e.D.has(t)||(e.D.set(t,new Set),Vl(e,`M`,()=>{var t;(t=n.m)==null||t.l.forEach(t=>Vl(e,`M`,t))}))},Ul=(e,t,n)=>{let r=e.D.get(t);r&&r.add(n)},Wl=(e,t)=>e.D.get(t),Gl=e=>{let t,n=!1,r=e=>{try{e()}catch(e){n||=(t=e,!0)}};for(;e.H.size||e.M.size||e.L.size;)e.D.clear(),e.H.forEach(r),e.H.clear(),e.M.forEach(r),e.M.clear(),e.L.forEach(r),e.L.clear();if(n)throw t},Kl=(...[e,t,n,r])=>{let i=(t,n,r)=>{let i=`v`in n,a=n.v,o=Ml(n.v)?n.v:null;if(Fl(r)){Pl(r);for(let i of n.d.keys())Rl(t,r,e(i));n.v=r}else n.v=r;delete n.e,delete n.x,(!i||!Object.is(a,n.v))&&(++n.n,o&&Nl(o,r))},a=(n,r)=>{var o;let s=e(r);if(Il(s)&&(s.m&&!s.x||Array.from(s.d).every(([e,t])=>a(n,e).n===t)))return s;s.d.clear();let c=!0,l=t=>{if(Ol(r,t)){let n=e(t);if(!Il(n))if(kl(t))i(t,n,t.init);else throw Error(`no atom init`);return Ll(n)}let o=a(n,t);try{return Ll(o)}finally{if(c)zl(n,r,s,t,o);else{let e=Bl();zl(e,r,s,t,o),d(e,r,s),Gl(e)}}},f,p,m={get signal(){return f||=new AbortController,f.signal},get setSelf(){return!p&&Al(r)&&(p=(...e)=>{if(!c)return u(r,...e)}),p}};try{let e=t(r,l,m);if(i(r,s,e),Fl(e)){(o=e.onCancel)==null||o.call(e,()=>f?.abort());let t=()=>{if(s.m){let e=Bl();d(e,r,s),Gl(e)}};e.then(t,t)}return s}catch(e){return delete s.v,s.e=e,delete s.x,++s.n,s}finally{c=!1}},o=e=>Ll(a(void 0,e)),s=(t,n,r)=>{var i;let a=new Map;for(let t of r.m?.t||[]){let n=e(t);n.m&&a.set(t,n)}for(let t of r.p)a.set(t,e(t));return(i=Wl(t,n))==null||i.forEach(t=>{a.set(t,e(t))}),a},c=(e,t,n)=>{let r=[],i=new Set,o=new Set,c=[[t,n]];for(;c.length>0;){let[t,n]=c[c.length-1];if(o.has(t)){c.pop();continue}if(i.has(t)){r.push([t,n,n.n]),o.add(t),n.x=!0,c.pop();continue}i.add(t);for(let[r,a]of s(e,t,n))t!==r&&!i.has(r)&&c.push([r,a])}Vl(e,`H`,()=>{let n=new Set([t]);for(let t=r.length-1;t>=0;--t){let[i,o,s]=r[t],c=!1;for(let e of o.d.keys())if(e!==i&&n.has(e)){c=!0;break}c&&(a(e,i),d(e,i,o),s!==o.n&&(Hl(e,i,o),n.add(i))),delete o.x}})},l=(t,r,...o)=>{let s=!0,u=e=>Ll(a(t,e)),f=(n,...a)=>{let o=e(n);try{if(Ol(r,n)){if(!kl(n))throw Error(`atom not writable`);let e=o.n,r=a[0];i(n,o,r),d(t,n,o),e!==o.n&&(Hl(t,n,o),c(t,n,o));return}else return l(t,n,...a)}finally{s||Gl(t)}};try{return n(r,u,f,...o)}finally{s=!1}},u=(e,...t)=>{let n=Bl();try{return l(n,e,...t)}finally{Gl(n)}},d=(t,n,r)=>{if(r.m&&!Ml(r.v)){for(let i of r.d.keys())r.m.d.has(i)||(f(t,i,e(i)).t.add(n),r.m.d.add(i));for(let i of r.m.d||[])r.d.has(i)||(r.m.d.delete(i),p(t,i,e(i))?.t.delete(n))}},f=(t,n,i)=>{if(!i.m){a(t,n);for(let r of i.d.keys())f(t,r,e(r)).t.add(n);if(i.m={l:new Set,d:new Set(i.d.keys()),t:new Set},Al(n)){let e=i.m,a,o=(e,t)=>{let r=!0;a=(...t)=>{try{return l(e,n,...t)}finally{r||Gl(e)}};try{return t()}finally{r=!1}};Vl(t,`L`,()=>{let i=o(t,()=>r(n,(...e)=>a(...e)));i&&(e.u=e=>o(e,i))})}}return i.m},p=(t,n,r)=>{if(r.m&&!r.m.l.size&&!Array.from(r.m.t).some(t=>e(t).m?.d.has(n))){let i=r.m.u;i&&Vl(t,`L`,()=>i(t)),delete r.m;for(let i of r.d.keys())p(t,i,e(i))?.t.delete(n);return}return r.m};return{get:o,set:u,sub:(t,n)=>{let r=Bl(),i=e(t),a=f(r,t,i).l;return a.add(n),Gl(r),()=>{a.delete(n);let e=Bl();p(e,t,i),Gl(e)}},unstable_derive:i=>Kl(...i(e,t,n,r))}},ql=()=>{let e=new WeakMap;return Kl(t=>{let n=e.get(t);return n||(n={d:new Map,p:new Set,n:0},e.set(t,n)),n},(e,...t)=>e.read(...t),(e,...t)=>e.write(...t),(e,...t)=>e.onMount?.call(e,...t))},Jl,Yl=()=>(Jl||=ql(),Jl),Xl=(0,V.createContext)(void 0),Zl=e=>{let t=(0,V.useContext)(Xl);return e?.store||t||Yl()},Ql=e=>typeof e?.then==`function`,$l=e=>{e.status=`pending`,e.then(t=>{e.status=`fulfilled`,e.value=t},t=>{e.status=`rejected`,e.reason=t})},eu=V.use||(e=>{if(e.status===`pending`)throw e;if(e.status===`fulfilled`)return e.value;throw e.status===`rejected`?e.reason:($l(e),e)}),tu=new WeakMap,nu=e=>{let t=tu.get(e);return t||(t=new Promise((n,r)=>{let i=e,a=e=>t=>{i===e&&n(t)},o=e=>t=>{i===e&&r(t)},s=e=>{`onCancel`in e&&typeof e.onCancel==`function`&&e.onCancel(e=>{Ql(e)?(tu.set(e,t),i=e,e.then(a(e),o(e)),s(e)):n(e)})};e.then(a(e),o(e)),s(e)}),tu.set(e,t)),t};function ru(e,t){let n=Zl(t),[[r,i,a],o]=(0,V.useReducer)(t=>{let r=n.get(e);return Object.is(t[0],r)&&t[1]===n&&t[2]===e?t:[r,n,e]},void 0,()=>[n.get(e),n,e]),s=r;(i!==n||a!==e)&&(o(),s=n.get(e));let c=t?.delay;return(0,V.useEffect)(()=>{let t=n.sub(e,()=>{if(typeof c==`number`){let t=n.get(e);Ql(t)&&$l(nu(t)),setTimeout(o,c);return}o()});return o(),t},[n,e,c]),(0,V.useDebugValue)(s),Ql(s)?eu(nu(s)):s}function iu(e,t){let n=Zl(t);return(0,V.useCallback)((...t)=>n.set(e,...t),[n,e])}function au(e,t){return[ru(e,t),iu(e,t)]}var ou=new WeakMap;function su(e,t){let n=Zl(t),r=cu(n);for(let[i,a]of e)(!r.has(i)||t?.dangerouslyForceHydrate)&&(r.add(i),n.set(i,a))}var cu=e=>{let t=ou.get(e);return t||(t=new WeakSet,ou.set(e,t)),t};function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lu.apply(this,arguments)}function uu(){let e=(0,V.createContext)(null);function t({store:t,initialValues:n=[],children:r}){let i=(0,V.useRef)(t);return i.current||=ql(),su(n,{store:i.current}),(0,U.jsx)(e.Provider,{value:i.current,children:r})}let n=t=>{let n=(0,V.useContext)(e);if(!n)throw Error(`Missing Provider from createIsolation`);return Zl(lu({store:n},t))};return{Provider:t,useStore:n,useAtom:(e,t)=>{let r=n();return au(e,lu({store:r},t))},useAtomValue:(e,t)=>{let r=n();return ru(e,lu({store:r},t))},useSetAtom:(e,t)=>{let r=n();return iu(e,lu({store:r},t))}}}var{read:du,write:fu}=Tl(null);(0,V.createContext)({scope:void 0,baseStore:void 0});var pu=e(n(((e,t)=>{(function(){var n=this,r={};e===void 0?n.fuzzy=r:t.exports=r,r.simpleFilter=function(e,t){return t.filter(function(t){return r.test(e,t)})},r.test=function(e,t){return r.match(e,t)!==null},r.match=function(e,t,n){n||={};var r=0,i=[],a=t.length,o=0,s=0,c=n.pre||``,l=n.post||``,u=n.caseSensitive&&t||t.toLowerCase(),d;e=n.caseSensitive&&e||e.toLowerCase();for(var f=0;f<a;f++)d=t[f],u[f]===e[r]?(d=c+d+l,r+=1,s+=1+s):s=0,o+=s,i[i.length]=d;return r===e.length?(o=u===e?1/0:o,{rendered:i.join(``),score:o}):null},r.filter=function(e,t,n){return!t||t.length===0?[]:typeof e==`string`?(n||={},t.reduce(function(t,i,a,o){var s=i;n.extract&&(s=n.extract(i));var c=r.match(e,s,n);return c!=null&&(t[t.length]={string:c.rendered,score:c.score,index:a,original:i}),t},[]).sort(function(e,t){return t.score-e.score||e.index-t.index})):t}})()}))(),1);function mu(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2}function hu(e,t,n){let r=mu(t,n);if(r===0)return mu(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return i=Math.max(0,Math.min(1,i)),mu(e,gu(t,n,i))}function gu(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function _u(e,t){return vu(e,0,e.length,t)}function vu(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],c=0,l=1;for(let r=t+1;r<n-1;++r){let t=hu(e[r],o,s);t>c&&(c=t,l=r)}return Math.sqrt(c)>r?(vu(e,t,l+1,r,a),vu(e,l,n,r,a)):(a.length||a.push(o),a.push(s)),a}function yu(e,t,n,r=e=>e){return e*r(.5-t*(.5-n))}function bu(e){return[-e[0],-e[1]]}function xu(e,t){return[e[0]+t[0],e[1]+t[1]]}function Su(e,t){return[e[0]-t[0],e[1]-t[1]]}function Cu(e,t){return[e[0]*t,e[1]*t]}function wu(e,t){return[e[0]/t,e[1]/t]}function Tu(e){return[e[1],-e[0]]}function Eu(e,t){return e[0]*t[0]+e[1]*t[1]}function Du(e,t){return e[0]===t[0]&&e[1]===t[1]}function Ou(e){return Math.hypot(e[0],e[1])}function ku(e){return e[0]*e[0]+e[1]*e[1]}function Au(e,t){return ku(Su(e,t))}function ju(e){return wu(e,Ou(e))}function Mu(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function Nu(e,t,n){let r=Math.sin(n),i=Math.cos(n),a=e[0]-t[0],o=e[1]-t[1],s=a*i-o*r,c=a*r+o*i;return[s+t[0],c+t[1]]}function Pu(e,t,n){return xu(e,Cu(Su(t,e),n))}function Fu(e,t,n){return xu(e,Cu(t,n))}var{min:Iu,PI:Lu}=Math,Ru=.275,zu=Lu+1e-4;function Bu(e,t={}){let{size:n=16,smoothing:r=.5,thinning:i=.5,simulatePressure:a=!0,easing:o=e=>e,start:s={},end:c={},last:l=!1}=t,{cap:u=!0,easing:d=e=>e*(2-e)}=s,{cap:f=!0,easing:p=e=>--e*e*e+1}=c;if(e.length===0||n<=0)return[];let m=e[e.length-1].runningLength,h=s.taper===!1?0:s.taper===!0?Math.max(n,m):s.taper,g=c.taper===!1?0:c.taper===!0?Math.max(n,m):c.taper,_=(n*r)**2,v=[],y=[],b=e.slice(0,10).reduce((e,t)=>{let r=t.pressure;if(a){let i=Iu(1,t.distance/n);r=Iu(1,e+(Iu(1,1-i)-e)*(i*Ru))}return(e+r)/2},e[0].pressure),x=yu(n,i,e[e.length-1].pressure,o),S,C=e[0].vector,w=e[0].point,T=w,E=w,ee=T,te=!1;for(let t=0;t<e.length;t++){let{pressure:r}=e[t],{point:s,vector:c,distance:l,runningLength:u}=e[t];if(t<e.length-1&&m-u<3)continue;if(i){if(a){let e=Iu(1,l/n),t=Iu(1,1-e);r=Iu(1,b+(t-b)*(e*Ru))}x=yu(n,i,r,o)}else x=n/2;S===void 0&&(S=x);let f=u<h?d(u/h):1,ne=m-u<g?p((m-u)/g):1;x=Math.max(.01,x*Math.min(f,ne));let re=(t<e.length-1?e[t+1]:e[t]).vector,D=t<e.length-1?Eu(c,re):1,ie=Eu(c,C)<0&&!te,ae=D!==null&&D<0;if(ie||ae){let e=Cu(Tu(C),x);for(let t=0;t<=1;t+=.07692307692307693)E=Nu(Su(s,e),s,zu*t),v.push(E),ee=Nu(xu(s,e),s,zu*-t),y.push(ee);w=E,T=ee,ae&&(te=!0);continue}if(te=!1,t===e.length-1){let e=Cu(Tu(c),x);v.push(Su(s,e)),y.push(xu(s,e));continue}let oe=Cu(Tu(Pu(re,c,D)),x);E=Su(s,oe),(t<=1||Au(w,E)>_)&&(v.push(E),w=E),ee=xu(s,oe),(t<=1||Au(T,ee)>_)&&(y.push(ee),T=ee),b=r,C=c}let ne=e[0].point.slice(0,2),re=e.length>1?e[e.length-1].point.slice(0,2):xu(e[0].point,[1,1]),D=[],ie=[];if(e.length===1){if(!(h||g)||l){let e=Fu(ne,ju(Tu(Su(ne,re))),-(S||x)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(Nu(e,ne,zu*2*r));return t}}else{if(!(h||g&&e.length===1))if(u)for(let e=1/13,t=e;t<=1;t+=e){let e=Nu(y[0],ne,zu*t);D.push(e)}else{let e=Su(v[0],y[0]),t=Cu(e,.5),n=Cu(e,.51);D.push(Su(ne,t),Su(ne,n),xu(ne,n),xu(ne,t))}let t=Tu(bu(e[e.length-1].vector));if(g||h&&e.length===1)ie.push(re);else if(f){let e=Fu(re,t,x);for(let t=1/29,n=t;n<1;n+=t)ie.push(Nu(e,re,zu*3*n))}else ie.push(xu(re,Cu(t,x)),xu(re,Cu(t,x*.99)),Su(re,Cu(t,x*.99)),Su(re,Cu(t,x)))}return v.concat(ie,y.reverse(),D)}function Vu(e,t={}){let{streamline:n=.5,size:r=16,last:i=!1}=t;if(e.length===0)return[];let a=.15+(1-n)*.85,o=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(o.length===2){let e=o[1];o=o.slice(0,-1);for(let t=1;t<5;t++)o.push(Pu(o[0],e,t/4))}o.length===1&&(o=[...o,[...xu(o[0],[1,1]),...o[0].slice(2)]]);let s=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,l=0,u=s[0],d=o.length-1;for(let e=1;e<o.length;e++){let t=i&&e===d?o[e].slice(0,2):Pu(u.point,o[e],a);if(Du(u.point,t))continue;let n=Mu(t,u.point);if(l+=n,e<d&&!c){if(l<r)continue;c=!0}u={point:t,pressure:o[e][2]>=0?o[e][2]:.5,vector:ju(Su(u.point,t)),distance:n,runningLength:l},s.push(u)}return s[0].vector=s[1]?.vector||[0,0],s}function Hu(e,t={}){return Bu(Vu(e,t),t)}var Uu=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}},o=t=e(r,i,a);return a},Wu=e=>e?Uu(e):Uu,Gu=e(s(),1),{useDebugValue:Ku}=V.default,{useSyncExternalStoreWithSelector:qu}=Gu.default,Ju=e=>e;function Yu(e,t=Ju,n){let r=qu(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Ku(r),r}var Xu=e=>{let t=typeof e==`function`?Wu(e):e,n=(e,n)=>Yu(t,e,n);return Object.assign(n,t),n},Zu=e=>e?Xu(e):Xu,Qu,$u=typeof window<`u`&&((Qu=window.document)!=null&&Qu.createElement||window.navigator?.product===`ReactNative`)?V.useLayoutEffect:V.useEffect;function ed(){let e=Zu(e=>({current:[],version:0,set:e}));return{In:({children:t})=>{let n=e(e=>e.set),r=e(e=>e.version);return $u(()=>{n(e=>({version:e.version+1}))},[]),$u(()=>(n(({current:e})=>({current:[...e,t]})),()=>n(({current:e})=>({current:e.filter(e=>e!==t)}))),[t,r]),null},Out:()=>{let t=e(e=>e.current);return V.createElement(V.Fragment,null,t)}}}var td=n(((e,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype.toString,m=Math.max,h=Math.min,g=function(){return f.Date.now()};function _(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=x(t)||0,v(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?m(x(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function _(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function y(e){return u=e,c=setTimeout(C,t),d?_(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?h(i,o-r):i}function S(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=g();if(S(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?_(e):(i=a=void 0,s)}function T(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function E(){return c===void 0?s:w(g())}function ee(){var e=g(),n=S(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return y(l);if(f)return c=setTimeout(C,t),_(l)}return c===void 0&&(c=setTimeout(C,t)),s}return ee.cancel=T,ee.flush=E,ee}function v(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function y(e){return!!e&&typeof e==`object`}function b(e){return typeof e==`symbol`||y(e)&&p.call(e)==i}function x(e){if(typeof e==`number`)return e;if(b(e))return r;if(v(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=v(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=_})),nd=t({Button:()=>Mx,CaptureUpdateAction:()=>j,CommandPalette:()=>bS,DEFAULT_LASER_COLOR:()=>`red`,DEFAULT_OVERSCROLL:()=>150,DefaultSidebar:()=>JO,DiagramToCodePlugin:()=>lP,Ellipsify:()=>cg,Excalidraw:()=>dP,ExcalidrawAPIContext:()=>rN,ExcalidrawAPIProvider:()=>uP,FONT_FAMILY:()=>As,Fonts:()=>Zn,Footer:()=>PN,LiveCollaborationTrigger:()=>IN,MIME_TYPES:()=>R,MainMenu:()=>kO,ROUNDNESS:()=>Ta,Sidebar:()=>$D,Stats:()=>dj,THEME:()=>P,TTDDialog:()=>yA,TTDDialogTrigger:()=>aP,TTDStreamFetch:()=>cP,UserIdleState:()=>ri,WelcomeScreen:()=>eP,applyDarkModeFilter:()=>xr,bumpVersion:()=>$r,convertToExcalidrawElements:()=>$i,defaultLang:()=>pd,elementsOverlappingBBox:()=>kc,exportToBlob:()=>ub,exportToCanvas:()=>lb,exportToClipboard:()=>fb,exportToSvg:()=>db,getCommonBounds:()=>bc,getDataURL:()=>$e,getFormFactor:()=>tt,getLibraryItemsHash:()=>Nb,getNonDeletedElements:()=>A,getSceneVersion:()=>gl,getStrokeWidthByKey:()=>tl,getTextFromElements:()=>wc,getVisibleSceneBounds:()=>He,hashElementsVersion:()=>Ri,hashString:()=>Xs,isElementLink:()=>ps,isInvisiblySmallElement:()=>ys,isLinearElement:()=>Zo,isSpreadsheetValidForChartType:()=>rE,languages:()=>md,loadFromBlob:()=>hi,loadLibraryFromBlob:()=>Uc,loadSceneOrLibraryFromBlob:()=>hr,mergeLibraryItems:()=>Sb,mutateElement:()=>Hr,newElementWith:()=>B,normalizeLink:()=>ao,parseLibraryTokensFromUrl:()=>Db,reconcileElements:()=>iP,renderSpreadsheet:()=>PE,restoreAppState:()=>_o,restoreElement:()=>Qt,restoreElements:()=>_t,restoreLibraryItems:()=>Hn,sceneCoordsToViewportCoords:()=>Wn,serializeAsJSON:()=>Pc,serializeLibraryAsJSON:()=>he,setCustomTextMetricsProvider:()=>fc,throttleRAF:()=>lc,tryParseSpreadsheet:()=>ME,useEditorInterface:()=>sN,useExcalidrawAPI:()=>mN,useExcalidrawStateValue:()=>fP,useHandleLibrary:()=>Fb,useI18n:()=>Sd,useOnExcalidrawStateChange:()=>Qg,useStylesPanelMode:()=>cN,viewportCoordsToSceneCoords:()=>Ic,zoomToFitBounds:()=>Ui}),rd=e(td(),1),id=uu(),{useAtom:ad,useSetAtom:od,useAtomValue:sd,useStore:cd}=id,ld=id.Provider,ud=ql(),dd=ie({"./locales/ar-SA.json":()=>r(()=>import(`./ar-SA-PQUY64WN-DM_QaRYr.js`),__vite__mapDeps([0,1,2]),import.meta.url),"./locales/az-AZ.json":()=>r(()=>import(`./az-AZ-OXJXL76K-_P5M5f3C.js`),__vite__mapDeps([3,1,2]),import.meta.url),"./locales/bg-BG.json":()=>r(()=>import(`./bg-BG-W2GKIJDF-D53WBXMw.js`),__vite__mapDeps([4,1,2]),import.meta.url),"./locales/bn-BD.json":()=>r(()=>import(`./bn-BD-TGL7M4PJ-CV1T_81r.js`),__vite__mapDeps([5,1,2]),import.meta.url),"./locales/bn-IN.json":()=>r(()=>import(`./bn-IN-BKETKYEH-BJb2NhdV.js`),__vite__mapDeps([6,1,2]),import.meta.url),"./locales/ca-ES.json":()=>r(()=>import(`./ca-ES-LD5SCRVV-tcmNCv9X.js`),__vite__mapDeps([7,1,2]),import.meta.url),"./locales/cs-CZ.json":()=>r(()=>import(`./cs-CZ-OFPU5DBV-iDH0Hg0Z.js`),__vite__mapDeps([8,1,2]),import.meta.url),"./locales/da-DK.json":()=>r(()=>import(`./da-DK-FRDJFYWF-B1Cya5Tb.js`),__vite__mapDeps([9,1,2]),import.meta.url),"./locales/de-CH.json":()=>r(()=>import(`./de-CH-ZG7H3QK3-CcXz9YEZ.js`),__vite__mapDeps([10,1,2]),import.meta.url),"./locales/de-DE.json":()=>r(()=>import(`./de-DE-SIJYH4IH-CDO_gPTP.js`),__vite__mapDeps([11,1,2]),import.meta.url),"./locales/el-GR.json":()=>r(()=>import(`./el-GR-IEE2CGI2-CFTYnD1d.js`),__vite__mapDeps([12,1,2]),import.meta.url),"./locales/en.json":()=>r(()=>import(`./en-SJ2YIMFF-B1Abf6vd.js`),__vite__mapDeps([13,14,1,2]),import.meta.url),"./locales/es-ES.json":()=>r(()=>import(`./es-ES-TVVPWKV5-ib3oPRTG.js`),__vite__mapDeps([15,1,2]),import.meta.url),"./locales/eu-ES.json":()=>r(()=>import(`./eu-ES-CGBMFQDT-ViK2y4W9.js`),__vite__mapDeps([16,1,2]),import.meta.url),"./locales/fa-IR.json":()=>r(()=>import(`./fa-IR-IE6XAPR4-CGgNRfNg.js`),__vite__mapDeps([17,1,2]),import.meta.url),"./locales/fi-FI.json":()=>r(()=>import(`./fi-FI-P7TKNHRM-BszXjxHP.js`),__vite__mapDeps([18,1,2]),import.meta.url),"./locales/fr-FR.json":()=>r(()=>import(`./fr-FR-QI2XZNT7-CBLhflXo.js`),__vite__mapDeps([19,1,2]),import.meta.url),"./locales/gl-ES.json":()=>r(()=>import(`./gl-ES-TLYCNOZZ-wFJs6i4_.js`),__vite__mapDeps([20,1,2]),import.meta.url),"./locales/he-IL.json":()=>r(()=>import(`./he-IL-ZX43XLGP-C_R5C_fe.js`),__vite__mapDeps([21,1,2]),import.meta.url),"./locales/hi-IN.json":()=>r(()=>import(`./hi-IN-UTYRMTUF-DQZO1yHB.js`),__vite__mapDeps([22,1,2]),import.meta.url),"./locales/hu-HU.json":()=>r(()=>import(`./hu-HU-AJOSEBW6-BUsT9HRh.js`),__vite__mapDeps([23,1,2]),import.meta.url),"./locales/id-ID.json":()=>r(()=>import(`./id-ID-ETLTVG6C-s5qbf2Ao.js`),__vite__mapDeps([24,1,2]),import.meta.url),"./locales/it-IT.json":()=>r(()=>import(`./it-IT-B4B6TP6L-De6zQkzI.js`),__vite__mapDeps([25,1,2]),import.meta.url),"./locales/ja-JP.json":()=>r(()=>import(`./ja-JP-IYKVURR5-BQTKh_DM.js`),__vite__mapDeps([26,1,2]),import.meta.url),"./locales/kaa.json":()=>r(()=>import(`./kaa-SE2BUIKX-D1K3PlL4.js`),__vite__mapDeps([27,1,2]),import.meta.url),"./locales/kab-KAB.json":()=>r(()=>import(`./kab-KAB-Y3GLKXLR-DBnwQdvF.js`),__vite__mapDeps([28,1,2]),import.meta.url),"./locales/kk-KZ.json":()=>r(()=>import(`./kk-KZ-ABWUFVOH-DHf8ZV-e.js`),__vite__mapDeps([29,1,2]),import.meta.url),"./locales/km-KH.json":()=>r(()=>import(`./km-KH-PCWDKPHP-Iu7zzLUx.js`),__vite__mapDeps([30,1,2]),import.meta.url),"./locales/ko-KR.json":()=>r(()=>import(`./ko-KR-7JQDXKGM-Bu2NgGcQ.js`),__vite__mapDeps([31,1,2]),import.meta.url),"./locales/ku-TR.json":()=>r(()=>import(`./ku-TR-NAH2Q5B7-DMhtdDTs.js`),__vite__mapDeps([32,1,2]),import.meta.url),"./locales/lt-LT.json":()=>r(()=>import(`./lt-LT-VQFYRSNQ-DVatlecz.js`),__vite__mapDeps([33,1,2]),import.meta.url),"./locales/lv-LV.json":()=>r(()=>import(`./lv-LV-T62VSYUM-CdSYe2hR.js`),__vite__mapDeps([34,1,2]),import.meta.url),"./locales/mr-IN.json":()=>r(()=>import(`./mr-IN-V4FHLCJE-B7_Y77Sd.js`),__vite__mapDeps([35,1,2]),import.meta.url),"./locales/my-MM.json":()=>r(()=>import(`./my-MM-E3SQ6E54-7cjvFPfX.js`),__vite__mapDeps([36,1,2]),import.meta.url),"./locales/nb-NO.json":()=>r(()=>import(`./nb-NO-MLNOFN5H-C9B1CUd8.js`),__vite__mapDeps([37,1,2]),import.meta.url),"./locales/nl-NL.json":()=>r(()=>import(`./nl-NL-D5L3ZV4M-C0hHNvou.js`),__vite__mapDeps([38,1,2]),import.meta.url),"./locales/nn-NO.json":()=>r(()=>import(`./nn-NO-NNHDGPKB-CfmfS2IJ.js`),__vite__mapDeps([39,1,2]),import.meta.url),"./locales/oc-FR.json":()=>r(()=>import(`./oc-FR-DWCRF55G-BhFGEoNX.js`),__vite__mapDeps([40,1,2]),import.meta.url),"./locales/pa-IN.json":()=>r(()=>import(`./pa-IN-3JSAY44M-CSqV-9XT.js`),__vite__mapDeps([41,1,2]),import.meta.url),"./locales/percentages.json":()=>r(()=>import(`./percentages-ETZPVQEE-81JmhTlD.js`),__vite__mapDeps([42,43,1,2]),import.meta.url),"./locales/pl-PL.json":()=>r(()=>import(`./pl-PL-ACURYKP3-BB56Bqut.js`),__vite__mapDeps([44,1,2]),import.meta.url),"./locales/pt-BR.json":()=>r(()=>import(`./pt-BR-LOX7MLGD-DoO9BJNO.js`),__vite__mapDeps([45,1,2]),import.meta.url),"./locales/pt-PT.json":()=>r(()=>import(`./pt-PT-CZ2U2RFQ-DAvnxFdF.js`),__vite__mapDeps([46,1,2]),import.meta.url),"./locales/ro-RO.json":()=>r(()=>import(`./ro-RO-2HECL2X6-1AJv1dSJ.js`),__vite__mapDeps([47,1,2]),import.meta.url),"./locales/ru-RU.json":()=>r(()=>import(`./ru-RU-HAYNXO46-CW9RvsSL.js`),__vite__mapDeps([48,1,2]),import.meta.url),"./locales/si-LK.json":()=>r(()=>import(`./si-LK-W5KNS4H6-CypMzau_.js`),__vite__mapDeps([49,1,2]),import.meta.url),"./locales/sk-SK.json":()=>r(()=>import(`./sk-SK-7K2CFGDV-BwLg7NlU.js`),__vite__mapDeps([50,1,2]),import.meta.url),"./locales/sl-SI.json":()=>r(()=>import(`./sl-SI-OXV2QZWW-B6B9xccI.js`),__vite__mapDeps([51,1,2]),import.meta.url),"./locales/sv-SE.json":()=>r(()=>import(`./sv-SE-JTOBZRGL-Dlkf7uU5.js`),__vite__mapDeps([52,1,2]),import.meta.url),"./locales/ta-IN.json":()=>r(()=>import(`./ta-IN-KFAVKXGT-BQUf6zg7.js`),__vite__mapDeps([53,1,2]),import.meta.url),"./locales/th-TH.json":()=>r(()=>import(`./th-TH-VDMSCPDL-Bfq-aKaw.js`),__vite__mapDeps([54,1,2]),import.meta.url),"./locales/tr-TR.json":()=>r(()=>import(`./tr-TR-CEZ6GX45-D_D7WdP-.js`),__vite__mapDeps([55,1,2]),import.meta.url),"./locales/uk-UA.json":()=>r(()=>import(`./uk-UA-Q3H3OXQC-8cnXoH3E.js`),__vite__mapDeps([56,1,2]),import.meta.url),"./locales/uz-UZ.json":()=>r(()=>import(`./uz-UZ-NGCSWWPX-x-3Xjsag.js`),__vite__mapDeps([57,1,2]),import.meta.url),"./locales/vi-VN.json":()=>r(()=>import(`./vi-VN-P3NDEVPS-B9Fd87wN.js`),__vite__mapDeps([58,1,2]),import.meta.url),"./locales/zh-CN.json":()=>r(()=>import(`./zh-CN-SS3O57GA-Bi1o8_Yt.js`),__vite__mapDeps([59,1,2]),import.meta.url),"./locales/zh-HK.json":()=>r(()=>import(`./zh-HK-LWJT3VCF-kQHHZuhX.js`),__vite__mapDeps([60,1,2]),import.meta.url),"./locales/zh-TW.json":()=>r(()=>import(`./zh-TW-VJXC72RT-KGVgIdE7.js`),__vite__mapDeps([61,1,2]),import.meta.url)}),fd=85,pd={code:`en`,label:`English`},md=[pd,...[{code:`ar-SA`,label:`العربية`,rtl:!0},{code:`bg-BG`,label:`Български`},{code:`ca-ES`,label:`Català`},{code:`cs-CZ`,label:`Česky`},{code:`de-DE`,label:`Deutsch`},{code:`el-GR`,label:`Ελληνικά`},{code:`es-ES`,label:`Español`},{code:`eu-ES`,label:`Euskara`},{code:`fa-IR`,label:`فارسی`,rtl:!0},{code:`fi-FI`,label:`Suomi`},{code:`fr-FR`,label:`Français`},{code:`gl-ES`,label:`Galego`},{code:`he-IL`,label:`עברית`,rtl:!0},{code:`hi-IN`,label:`हिन्दी`},{code:`hu-HU`,label:`Magyar`},{code:`id-ID`,label:`Bahasa Indonesia`},{code:`it-IT`,label:`Italiano`},{code:`ja-JP`,label:`日本語`},{code:`kab-KAB`,label:`Taqbaylit`},{code:`kk-KZ`,label:`Қазақ тілі`},{code:`ko-KR`,label:`한국어`},{code:`ku-TR`,label:`Kurdî`},{code:`lt-LT`,label:`Lietuvių`},{code:`lv-LV`,label:`Latviešu`},{code:`my-MM`,label:`Burmese`},{code:`nb-NO`,label:`Norsk bokmål`},{code:`nl-NL`,label:`Nederlands`},{code:`nn-NO`,label:`Norsk nynorsk`},{code:`oc-FR`,label:`Occitan`},{code:`pa-IN`,label:`ਪੰਜਾਬੀ`},{code:`pl-PL`,label:`Polski`},{code:`pt-BR`,label:`Português Brasileiro`},{code:`pt-PT`,label:`Português`},{code:`ro-RO`,label:`Română`},{code:`ru-RU`,label:`Русский`},{code:`sk-SK`,label:`Slovenčina`},{code:`sv-SE`,label:`Svenska`},{code:`sl-SI`,label:`Slovenščina`},{code:`tr-TR`,label:`Türkçe`},{code:`uk-UA`,label:`Українська`},{code:`zh-CN`,label:`简体中文`},{code:`zh-TW`,label:`繁體中文`},{code:`vi-VN`,label:`Tiếng Việt`},{code:`mr-IN`,label:`मराठी`}].filter(e=>vl[e.code]>=fd).sort((e,t)=>e.label>t.label?1:-1)],hd=`__test__`;Jt()&&md.unshift({code:hd,label:`test language`},{code:`${hd}.rtl`,label:`test language (rtl)`,rtl:!0});var gd=pd,_d={},vd=async e=>{if(gd=e,document.documentElement.dir=gd.rtl?`rtl`:`ltr`,document.documentElement.lang=gd.code,e.code.startsWith(hd))_d={};else try{_d=await dd(`./locales/${gd.code}.json`)}catch(t){console.error(`Failed to load language ${e.code}:`,t.message),_d=_l}ud.set(xd,e.code)},yd=()=>gd,bd=(e,t)=>{for(let n=0;n<t.length;++n){let r=t[n];if(e[r]===void 0)return;e=e[r]}if(typeof e==`string`)return e},W=(e,t,n)=>{if(gd.code.startsWith(hd))return`\u202A[[${t?`${e}(${JSON.stringify(t).slice(1,-1)})`:e}]]\u202C`;let r=e.split(`.`),i=bd(_d,r)||bd(_l,r)||n;if(i===void 0){let t=`Can't find translation for ${e}`;if(re.PROD)return console.warn(t),``;throw Error(t)}if(t)for(let e in t)i=i.replace(`{{${e}}}`,String(t[e]));return i},xd=Tl(pd.code),Sd=()=>({t:W,langCode:sd(xd)}),Cd=e=>`var(--icon-fill-color)`,wd=e=>e===P.LIGHT?`#fff`:`#1e1e1e`,G=(e,t=512)=>{let{width:n=512,height:r=n,mirror:i,style:a,...o}=typeof t==`number`?{width:t}:t;return(0,U.jsx)(`svg`,{"aria-hidden":`true`,focusable:`false`,role:`img`,viewBox:`0 0 ${n} ${r}`,className:H({"rtl-mirror":i}),style:a,...o,children:typeof e==`string`?(0,U.jsx)(`path`,{fill:`currentColor`,d:e}):e})},K={width:24,height:24,fill:`none`,strokeWidth:2,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`},q={width:20,height:20,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`},Td={width:40,height:20};G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`rect`,{x:3,y:8,width:18,height:4,rx:1}),(0,U.jsx)(`line`,{x1:12,y1:8,x2:12,y2:21}),(0,U.jsx)(`path`,{d:`M19 12v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-7`}),(0,U.jsx)(`path`,{d:`M7.5 8a2.5 2.5 0 0 1 0 -5a4.8 8 0 0 1 4.5 5a4.8 8 0 0 1 4.5 -5a2.5 2.5 0 0 1 0 5`})]}),K);var Ed=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0`}),(0,U.jsx)(`path`,{d:`M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0`}),(0,U.jsx)(`line`,{x1:`3`,y1:`6`,x2:`3`,y2:`19`}),(0,U.jsx)(`line`,{x1:`12`,y1:`6`,x2:`12`,y2:`19`}),(0,U.jsx)(`line`,{x1:`21`,y1:`6`,x2:`21`,y2:`19`})]}),K),Dd=G((0,U.jsxs)(`svg`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),(0,U.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})]}),K),Od=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`19`,r:`1`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`5`,r:`1`})]}),K),kd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}),(0,U.jsx)(`path`,{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}),(0,U.jsx)(`path`,{d:`M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`})]}),K),Ad=G((0,U.jsxs)(`svg`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M9 4v6l-2 4v2h10v-2l-2 -4v-6`}),(0,U.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`21`}),(0,U.jsx)(`line`,{x1:`8`,y1:`4`,x2:`16`,y2:`4`})]}),K),jd=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M19 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M5 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M15 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M6.5 9.5l3.5 -3`}),(0,U.jsx)(`path`,{d:`M14 5.5l3 1.5`}),(0,U.jsx)(`path`,{d:`M18.5 10l-2.5 7`}),(0,U.jsx)(`path`,{d:`M13.5 17.5l-7 -5`})]}),K),Md=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{d:`M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,U.jsx)(`path`,{d:`M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,U.jsx)(`mask`,{id:`UnlockedIcon`,style:{maskType:`alpha`},maskUnits:`userSpaceOnUse`,x:6,y:1,width:9,height:9,children:(0,U.jsx)(`path`,{stroke:`none`,d:`M6.399 9.561V5.175c0-.93.401-1.823 1.116-2.48a3.981 3.981 0 0 1 2.693-1.028c1.01 0 1.98.37 2.694 1.027.715.658 1.116 1.55 1.116 2.481`,fill:`#fff`})}),(0,U.jsx)(`g`,{mask:`url(#UnlockedIcon)`,children:(0,U.jsx)(`path`,{stroke:`none`,d:`M5.149 9.561v1.25h2.5v-1.25h-2.5Zm5.06-7.894V.417v1.25Zm2.559 3.508v1.25h2.5v-1.25h-2.5ZM7.648 8.51V5.175h-2.5V8.51h2.5Zm0-3.334c0-.564.243-1.128.713-1.561L6.668 1.775c-.959.883-1.52 2.104-1.52 3.4h2.5Zm.713-1.561a2.732 2.732 0 0 1 1.847-.697v-2.5c-1.31 0-2.585.478-3.54 1.358L8.36 3.614Zm1.847-.697c.71 0 1.374.26 1.847.697l1.694-1.839a5.231 5.231 0 0 0-3.54-1.358v2.5Zm1.847.697c.47.433.713.997.713 1.561h2.5c0-1.296-.56-2.517-1.52-3.4l-1.693 1.839Z`,fill:`currentColor`})})]}),q),Nd=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z`}),(0,U.jsx)(`path`,{d:`M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z`}),(0,U.jsx)(`path`,{d:`M6.667 8.333V5.417C6.667 3.806 8.159 2.5 10 2.5c1.841 0 3.333 1.306 3.333 2.917v2.916`})]}),q),Pd=G((0,U.jsx)(`g`,{fill:`currentColor`,children:(0,U.jsx)(`path`,{d:`M12 2a5 5 0 0 1 5 5v3a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-6a3 3 0 0 1 3 -3v-3a5 5 0 0 1 5 -5m0 12a2 2 0 0 0 -1.995 1.85l-.005 .15a2 2 0 1 0 2 -2m0 -10a3 3 0 0 0 -3 3v3h6v-3a3 3 0 0 0 -3 -3`})}),{width:24,height:24}),Fd=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M38.5 83.5c-14-2-17.833-10.473-21-22.5C14.333 48.984 12 22 12 12.5`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`m12.005 10.478 7.905 14.423L6 25.75l6.005-15.273Z`,fill:`currentColor`}),(0,U.jsx)(`path`,{d:`M12.005 10.478c1.92 3.495 3.838 7 7.905 14.423m-7.905-14.423c3.11 5.683 6.23 11.368 7.905 14.423m0 0c-3.68.226-7.35.455-13.91.85m13.91-.85c-5.279.33-10.566.647-13.91.85m0 0c1.936-4.931 3.882-9.86 6.005-15.273M6 25.75c2.069-5.257 4.135-10.505 6.005-15.272`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`})]}),{width:41,height:94,fill:`none`}),Id=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M18.026 1.232c-5.268 13.125-5.548 33.555 3.285 42.311 8.823 8.75 33.31 12.304 42.422 13.523`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`m72.181 59.247-13.058-10-2.948 13.62 16.006-3.62Z`,fill:`currentColor`}),(0,U.jsx)(`path`,{d:`M72.181 59.247c-3.163-2.429-6.337-4.856-13.058-10m13.058 10c-5.145-3.936-10.292-7.882-13.058-10m0 0c-.78 3.603-1.563 7.196-2.948 13.62m2.948-13.62c-1.126 5.168-2.24 10.346-2.948 13.62m0 0c5.168-1.166 10.334-2.343 16.006-3.62m-16.006 3.62c5.51-1.248 11.01-2.495 16.006-3.62`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`})]}),{width:85,height:71,fill:`none`}),Ld=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M1 77c14-2 31.833-11.973 35-24 3.167-12.016-6-35-9.5-43.5`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`m24.165 1.093-2.132 16.309 13.27-4.258-11.138-12.05Z`,fill:`currentColor`}),(0,U.jsx)(`path`,{d:`M24.165 1.093c-.522 3.953-1.037 7.916-2.132 16.309m2.131-16.309c-.835 6.424-1.68 12.854-2.13 16.308m0 0c3.51-1.125 7.013-2.243 13.27-4.257m-13.27 4.257c5.038-1.608 10.08-3.232 13.27-4.257m0 0c-3.595-3.892-7.197-7.777-11.14-12.05m11.14 12.05c-3.837-4.148-7.667-8.287-11.14-12.05`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`})]}),{width:38,height:78,fill:`none`});G((0,U.jsx)(`g`,{fill:`currentColor`,children:(0,U.jsx)(`path`,{d:`M39.9 32.889a.326.326 0 0 0-.279-.056c-2.094-3.083-4.774-6-7.343-8.833l-.419-.472a.212.212 0 0 0-.056-.139.586.586 0 0 0-.167-.111l-.084-.083-.056-.056c-.084-.167-.28-.278-.475-.167-.782.39-1.507.973-2.206 1.528-.92.722-1.842 1.445-2.708 2.25a8.405 8.405 0 0 0-.977 1.028c-.14.194-.028.361.14.444-.615.611-1.23 1.223-1.843 1.861a.315.315 0 0 0-.084.223c0 .083.056.166.111.194l1.09.833v.028c1.535 1.528 4.244 3.611 7.12 5.861.418.334.865.667 1.284 1 .195.223.39.473.558.695.084.11.28.139.391.055.056.056.14.111.196.167a.398.398 0 0 0 .167.056.255.255 0 0 0 .224-.111.394.394 0 0 0 .055-.167c.029 0 .028.028.056.028a.318.318 0 0 0 .224-.084l5.082-5.528a.309.309 0 0 0 0-.444Zm-14.63-1.917a.485.485 0 0 0 .111.14c.586.5 1.2 1 1.843 1.555l-2.569-1.945-.251-.166c-.056-.028-.112-.084-.168-.111l-.195-.167.056-.056.055-.055.112-.111c.866-.861 2.346-2.306 3.1-3.028-.81.805-2.43 3.167-2.095 3.944Zm8.767 6.89-2.122-1.612a44.713 44.713 0 0 0-2.625-2.5c1.145.861 2.122 1.611 2.262 1.75 1.117.972 1.06.806 1.815 1.445l.921.666a1.06 1.06 0 0 1-.251.25Zm.558.416-.056-.028c.084-.055.168-.111.252-.194l-.196.222ZM1.089 5.75c.055.361.14.722.195 1.056.335 1.833.67 3.5 1.284 4.75l.252.944c.084.361.223.806.363.917 1.424 1.25 3.602 3.11 5.947 4.889a.295.295 0 0 0 .363 0s0 .027.028.027a.254.254 0 0 0 .196.084.318.318 0 0 0 .223-.084c2.988-3.305 5.221-6.027 6.813-8.305.112-.111.14-.278.14-.417.111-.111.195-.25.307-.333.111-.111.111-.306 0-.39l-.028-.027c0-.055-.028-.139-.084-.167-.698-.666-1.2-1.138-1.731-1.638-.922-.862-1.871-1.75-3.881-3.75l-.028-.028c-.028-.028-.056-.056-.112-.056-.558-.194-1.703-.389-3.127-.639C6.087 2.223 3.21 1.723.614.944c0 0-.168 0-.196.028l-.083.084c-.028.027-.056.055-.224.11h.056-.056c.028.167.028.278.084.473 0 .055.112.5.112.555l.782 3.556Zm15.496 3.278-.335-.334c.084.112.196.195.335.334Zm-3.546 4.666-.056.056c0-.028.028-.056.056-.056Zm-2.038-10c.168.167.866.834 1.033.973-.726-.334-2.54-1.167-3.379-1.445.838.167 1.983.334 2.346.472ZM1.424 2.306c.419.722.754 3.222 1.089 5.666-.196-.778-.335-1.555-.503-2.278-.251-1.277-.503-2.416-.838-3.416.056 0 .14 0 .252.028Zm-.168-.584c-.112 0-.223-.028-.307-.028 0-.027 0-.055-.028-.055.14 0 .223.028.335.083Zm-1.089.222c0-.027 0-.027 0 0ZM39.453 1.333c.028-.11-.558-.61-.363-.639.42-.027.42-.666 0-.666-.558.028-1.144.166-1.675.25-.977.194-1.982.389-2.96.61-2.205.473-4.383.973-6.561 1.557-.67.194-1.424.333-2.066.666-.224.111-.196.333-.084.472-.056.028-.084.028-.14.056-.195.028-.363.056-.558.083-.168.028-.252.167-.224.334 0 .027.028.083.028.11-1.173 1.556-2.485 3.195-3.909 4.945-1.396 1.611-2.876 3.306-4.356 5.056-4.719 5.5-10.052 11.75-15.943 17.25a.268.268 0 0 0 0 .389c.028.027.056.055.084.055-.084.084-.168.14-.252.222-.056.056-.084.111-.084.167a.605.605 0 0 0-.111.139c-.112.111-.112.305.028.389.111.11.307.11.39-.028.029-.028.029-.056.056-.056a.44.44 0 0 1 .615 0c.335.362.67.723.977 1.028l-.698-.583c-.112-.111-.307-.083-.39.028-.113.11-.085.305.027.389l7.427 6.194c.056.056.112.056.196.056s.14-.028.195-.084l.168-.166c.028.027.083.027.111.027.084 0 .14-.027.196-.083 10.052-10.055 18.15-17.639 27.42-24.417.083-.055.111-.166.111-.25.112 0 .196-.083.251-.194 1.704-5.194 2.039-9.806 2.15-12.083v-.028c0-.028.028-.056.028-.083.028-.056.028-.084.028-.084a1.626 1.626 0 0 0-.111-1.028ZM21.472 9.5c.446-.5.893-1.028 1.34-1.5-2.876 3.778-7.65 9.583-14.408 16.5 4.607-5.083 9.242-10.333 13.068-15ZM5.193 35.778h.084-.084Zm3.462 3.194c-.027-.028-.027-.028 0-.028v.028Zm4.16-3.583c.224-.25.448-.472.699-.722 0 0 0 .027.028.027-.252.223-.475.445-.726.695Zm1.146-1.111c.14-.14.279-.334.446-.5l.028-.028c1.648-1.694 3.351-3.389 5.082-5.111l.028-.028c.419-.333.921-.694 1.368-1.028a379.003 379.003 0 0 0-6.952 6.695ZM24.794 6.472c-.921 1.195-1.954 2.778-2.82 4.028-2.736 3.944-11.532 13.583-11.727 13.75a1976.983 1976.983 0 0 1-8.042 7.639l-.167.167c-.14-.167-.14-.417.028-.556C14.49 19.861 22.03 10.167 25.074 5.917c-.084.194-.14.36-.28.555Zm4.83 5.695c-1.116-.64-1.646-1.64-1.34-2.611l.084-.334c.028-.083.084-.194.14-.277.307-.5.754-.917 1.257-1.167.027 0 .055 0 .083-.028-.028-.056-.028-.139-.028-.222.028-.167.14-.278.335-.278.335 0 1.369.306 1.76.639.111.083.223.194.335.305.14.167.363.445.474.667.056.028.112.306.196.445.056.222.111.472.084.694-.028.028 0 .194-.028.194a2.668 2.668 0 0 1-.363 1.028c-.028.028-.028.056-.056.084l-.028.027c-.14.223-.335.417-.53.556-.643.444-1.369.583-2.095.389 0 0-.195-.084-.28-.111Zm8.154-.834a39.098 39.098 0 0 1-.893 3.167c0 .028-.028.083 0 .111-.056 0-.084.028-.14.056-2.206 1.61-4.356 3.305-6.506 5.028 1.843-1.64 3.686-3.306 5.613-4.945.558-.5.949-1.139 1.06-1.861l.28-1.667v-.055c.14-.334.67-.195.586.166Z`,fill:`currentColor`})}),{width:40,height:40,fill:`none`});var Rd=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 6l4.153 11.793a0.365 .365 0 0 0 .331 .207a0.366 .366 0 0 0 .332 -.207l2.184 -4.793l4.787 -1.994a0.355 .355 0 0 0 .213 -.323a0.355 .355 0 0 0 -.213 -.323l-11.787 -4.36z`}),(0,U.jsx)(`path`,{d:`M13.5 13.5l4.5 4.5`})]}),{fill:`none`,width:22,height:22,strokeWidth:1.25}),zd=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5,children:[(0,U.jsx)(`path`,{d:`M4.028 13.252c-.657 -.972 -1.028 -2.078 -1.028 -3.252c0 -3.866 4.03 -7 9 -7s9 3.134 9 7s-4.03 7 -9 7c-1.913 0 -3.686 -.464 -5.144 -1.255`}),(0,U.jsx)(`path`,{d:`M5 15m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M5 17c0 1.42 .316 2.805 1 4`})]}),{fill:`none`,width:22,height:22,strokeWidth:1.25}),Bd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`})]}),K),Vd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10.5 20.4l-6.9 -6.9c-.781 -.781 -.781 -2.219 0 -3l6.9 -6.9c.781 -.781 2.219 -.781 3 0l6.9 6.9c.781 .781 .781 2.219 0 3l-6.9 6.9c-.781 .781 -2.219 .781 -3 0z`})]}),K),Hd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`})]}),K),Ud=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}),(0,U.jsx)(`line`,{x1:`15`,y1:`16`,x2:`19`,y2:`12`}),(0,U.jsx)(`line`,{x1:`15`,y1:`8`,x2:`19`,y2:`12`})]}),K),Wd=G((0,U.jsx)(`path`,{d:`M4.167 10h11.666`,strokeWidth:`1.5`}),q),Gd=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z`}),(0,U.jsx)(`path`,{d:`M16 7h4`}),(0,U.jsx)(`path`,{d:`M18 19h-13a2 2 0 1 1 0 -4h4a2 2 0 1 0 0 -4h-3`})]}),K),Kd=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{clipRule:`evenodd`,d:`m7.643 15.69 7.774-7.773a2.357 2.357 0 1 0-3.334-3.334L4.31 12.357a3.333 3.333 0 0 0-.977 2.357v1.953h1.953c.884 0 1.732-.352 2.357-.977Z`}),(0,U.jsx)(`path`,{d:`m11.25 5.417 3.333 3.333`})]}),q),qd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`20`,x2:`7`,y2:`20`}),(0,U.jsx)(`line`,{x1:`14`,y1:`20`,x2:`21`,y2:`20`}),(0,U.jsx)(`line`,{x1:`6.9`,y1:`15`,x2:`13.8`,y2:`15`}),(0,U.jsx)(`line`,{x1:`10.2`,y1:`6.3`,x2:`16`,y2:`20`}),(0,U.jsx)(`polyline`,{points:`5 20 11 4 13 4 20 20`})]}),K),Jd=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 7v-2h13v2`}),(0,U.jsx)(`path`,{d:`M10 5v14`}),(0,U.jsx)(`path`,{d:`M12 19h-4`}),(0,U.jsx)(`path`,{d:`M15 13v-1h6v1`}),(0,U.jsx)(`path`,{d:`M18 12v7`}),(0,U.jsx)(`path`,{d:`M17 19h2`})]}),K),Yd=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M12.5 6.667h.01`}),(0,U.jsx)(`path`,{d:`M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z`}),(0,U.jsx)(`path`,{d:`m3.333 12.5 3.334-3.333c.773-.745 1.726-.745 2.5 0l4.166 4.166`}),(0,U.jsx)(`path`,{d:`m11.667 11.667.833-.834c.774-.744 1.726-.744 2.5 0l1.667 1.667`})]}),q),Xd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3`}),(0,U.jsx)(`path`,{d:`M18 13.3l-6.3 -6.3`})]}),K),Zd=G((0,U.jsx)(`path`,{strokeWidth:`1.25`,d:`M10 4.167v11.666M4.167 10h11.666`}),q),Qd=G((0,U.jsx)(`path`,{d:`M5 10h10`,strokeWidth:`1.25`}),q),$d=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M21 21l-6 -6`}),(0,U.jsx)(`path`,{d:`M3.268 12.043a7.017 7.017 0 0 0 6.634 4.957a7.012 7.012 0 0 0 7.043 -6.131a7 7 0 0 0 -5.314 -7.672a7.021 7.021 0 0 0 -8.241 4.403`}),(0,U.jsx)(`path`,{d:`M3 4v4h4`})]}),K),ef=G((0,U.jsx)(`path`,{strokeWidth:`1.25`,d:`M3.333 5.833h13.334M8.333 9.167v5M11.667 9.167v5M4.167 5.833l.833 10c0 .92.746 1.667 1.667 1.667h6.666c.92 0 1.667-.746 1.667-1.667l.833-10M7.5 5.833v-2.5c0-.46.373-.833.833-.833h3.334c.46 0 .833.373.833.833v2.5`}),q),tf=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`polyline`,{points:`12 16 18 10 12 4`}),(0,U.jsx)(`polyline`,{points:`8 4 2 10 8 16`})]}),q),nf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M14.375 6.458H8.958a2.5 2.5 0 0 0-2.5 2.5v5.417a2.5 2.5 0 0 0 2.5 2.5h5.417a2.5 2.5 0 0 0 2.5-2.5V8.958a2.5 2.5 0 0 0-2.5-2.5Z`}),(0,U.jsx)(`path`,{clipRule:`evenodd`,d:`M11.667 3.125c.517 0 .986.21 1.325.55.34.338.55.807.55 1.325v1.458H8.333c-.485 0-.927.185-1.26.487-.343.312-.57.75-.609 1.24l-.005 5.357H5a1.87 1.87 0 0 1-1.326-.55 1.87 1.87 0 0 1-.549-1.325V5c0-.518.21-.987.55-1.326.338-.34.807-.549 1.325-.549h6.667Z`})]}),q),rf=G((0,U.jsx)(`path`,{clipRule:`evenodd`,d:`M10 2.5h.328a6.25 6.25 0 0 0 6.6 10.372A7.5 7.5 0 1 1 10 2.493V2.5Z`,stroke:`currentColor`}),q),af=G((0,U.jsx)(`g`,{stroke:`currentColor`,strokeLinejoin:`round`,children:(0,U.jsx)(`path`,{d:`M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM10 4.167V2.5M14.167 5.833l1.166-1.166M15.833 10H17.5M14.167 14.167l1.166 1.166M10 15.833V17.5M5.833 14.167l-1.166 1.166M5 10H3.333M5.833 5.833 4.667 4.667`})}),{...q,strokeWidth:1.5}),of=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`6`,x2:`20`,y2:`6`}),(0,U.jsx)(`line`,{x1:`4`,y1:`12`,x2:`20`,y2:`12`}),(0,U.jsx)(`line`,{x1:`4`,y1:`18`,x2:`20`,y2:`18`})]}),K),sf=G((0,U.jsx)(`path`,{strokeWidth:`1.25`,d:`M3.333 14.167v1.666c0 .92.747 1.667 1.667 1.667h10c.92 0 1.667-.746 1.667-1.667v-1.666M5.833 9.167 10 13.333l4.167-4.166M10 3.333v10`}),q),cf=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,U.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12`,y2:`17.01`}),(0,U.jsx)(`path`,{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`})]}),K),lf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,U.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12`,y2:`17.01`}),(0,U.jsx)(`path`,{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`})]}),K),uf=G((0,U.jsx)(`path`,{strokeWidth:`1.25`,d:`M9.167 5.833H5.833c-1.254 0-2.5 1.282-2.5 2.5v5.834c0 1.283 1.252 2.5 2.5 2.5h5.834c1.251 0 2.5-1.25 2.5-2.5v-3.334M8.333 11.667l8.334-8.334M12.5 3.333h4.167V7.5`}),q),df=G((0,U.jsx)(`path`,{d:`M7.5 15.833c-3.583 1.167-3.583-2.083-5-2.5m10 4.167v-2.917c0-.833.083-1.166-.417-1.666 2.334-.25 4.584-1.167 4.584-5a3.833 3.833 0 0 0-1.084-2.667 3.5 3.5 0 0 0-.083-2.667s-.917-.25-2.917 1.084a10.25 10.25 0 0 0-5.166 0C5.417 2.333 4.5 2.583 4.5 2.583a3.5 3.5 0 0 0-.083 2.667 3.833 3.833 0 0 0-1.084 2.667c0 3.833 2.25 4.75 4.584 5-.5.5-.5 1-.417 1.666V17.5`,strokeWidth:`1.25`}),q),ff=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M7.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM12.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM6.25 6.25c2.917-.833 4.583-.833 7.5 0M5.833 13.75c2.917.833 5.417.833 8.334 0`}),(0,U.jsx)(`path`,{d:`M12.917 14.167c0 .833 1.25 2.5 1.666 2.5 1.25 0 2.361-1.39 2.917-2.5.556-1.39.417-4.861-1.25-9.584-1.214-.846-2.5-1.116-3.75-1.25l-.833 2.084M7.083 14.167c0 .833-1.13 2.5-1.526 2.5-1.191 0-2.249-1.39-2.778-2.5-.529-1.39-.397-4.861 1.19-9.584 1.157-.846 2.318-1.116 3.531-1.25l.833 2.084`})]}),q),pf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 4l11.733 16h4.267l-11.733 -16z`}),(0,U.jsx)(`path`,{d:`M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772`})]}),K),mf=G((0,U.jsx)(`polyline`,{fill:`none`,stroke:`currentColor`,points:`20 6 9 17 4 12`}),{width:24,height:24}),hf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M8.333 11.667a2.917 2.917 0 0 0 4.167 0l3.333-3.334a2.946 2.946 0 1 0-4.166-4.166l-.417.416`}),(0,U.jsx)(`path`,{d:`M11.667 8.333a2.917 2.917 0 0 0-4.167 0l-3.333 3.334a2.946 2.946 0 0 0 4.166 4.166l.417-.416`})]}),q),gf=G(`M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z`,{width:448,height:512}),_f=G(`M252 54L203 8a28 27 0 00-20-8H28C12 0 0 12 0 27v195c0 15 12 26 28 26h204c15 0 28-11 28-26V73a28 27 0 00-8-19zM130 213c-21 0-37-16-37-36 0-19 16-35 37-35 20 0 37 16 37 35 0 20-17 36-37 36zm56-169v56c0 4-4 6-7 6H44c-4 0-7-2-7-6V42c0-4 3-7 7-7h133l4 2 3 2a7 7 0 012 5z M296 201l87 95-188 205-78 9c-10 1-19-8-18-20l9-84zm141-14l-41-44a31 31 0 00-46 0l-38 41 87 95 38-42c13-14 13-36 0-50z`,{width:448,height:512}),vf=G((0,U.jsx)(`path`,{d:`m9.257 6.351.183.183H15.819c.34 0 .727.182 1.051.506.323.323.505.708.505 1.05v5.819c0 .316-.183.7-.52 1.035-.337.338-.723.522-1.037.522H4.182c-.352 0-.74-.181-1.058-.5-.318-.318-.499-.705-.499-1.057V5.182c0-.351.181-.736.5-1.054.32-.321.71-.503 1.057-.503H6.53l2.726 2.726Z`,strokeWidth:`1.25`}),q);G(`M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z`,{width:384,height:512}),G(`M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z`);var yf=[`M5 16l1.465 1.638a2 2 0 1 1 -3.015 .099l1.55 -1.737z`,`M13.737 9.737c2.299 -2.3 3.23 -5.095 2.081 -6.245c-1.15 -1.15 -3.945 -.217 -6.244 2.082c-2.3 2.299 -3.231 5.095 -2.082 6.244c1.15 1.15 3.946 .218 6.245 -2.081z`,`M7.492 11.818c.362 .362 .768 .676 1.208 .934l6.895 4.047c1.078 .557 2.255 -.075 3.692 -1.512c1.437 -1.437 2.07 -2.614 1.512 -3.692c-.372 -.718 -1.72 -3.017 -4.047 -6.895a6.015 6.015 0 0 0 -.934 -1.208`],bf=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),yf.map(e=>(0,U.jsx)(`path`,{d:e},e))]}),K),xf=G((0,U.jsx)(`g`,{strokeWidth:1.5,children:(0,U.jsx)(`path`,{d:`M6 18l12 -12`})}),K),Sf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15 8h.01`}),(0,U.jsx)(`path`,{d:`M12 20h-5a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v5`}),(0,U.jsx)(`path`,{d:`M4 15l4 -4c.928 -.893 2.072 -.893 3 0l4 4`}),(0,U.jsx)(`path`,{d:`M14 14l1 -1c.617 -.593 1.328 -.793 2.009 -.598`}),(0,U.jsx)(`path`,{d:`M19 16v6`}),(0,U.jsx)(`path`,{d:`M22 19l-3 3l-3 -3`})]}),K),Cf=G(`M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z`,{width:512,height:512});G(`M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z`,{width:448,height:512}),G(`M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z`,{width:448,height:512});var wf=G(`M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z`);G(`M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z`);var Tf=G((0,U.jsx)(`path`,{d:`M7.5 10.833 4.167 7.5 7.5 4.167M4.167 7.5h9.166a3.333 3.333 0 0 1 0 6.667H12.5`,strokeWidth:`1.25`}),q),Ef=G((0,U.jsx)(`path`,{d:`M12.5 10.833 15.833 7.5 12.5 4.167M15.833 7.5H6.667a3.333 3.333 0 1 0 0 6.667H7.5`,strokeWidth:`1.25`}),q),Df=G(`M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z`,{mirror:!0}),Of=G((0,U.jsx)(`path`,{d:`M5 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 7.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 17.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM7.25 8.917l5.5-2.834M7.25 11.083l5.5 2.834`,strokeWidth:`1.5`}),q);G(`M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z`),G(`M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-.9 2-2 2H6c-1.11 0-2-.9-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3c1.1 0 2 .89 2 2z`,{width:24,height:24}),G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 9h-1a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-8a2 2 0 0 0 -2 -2h-1`}),(0,U.jsx)(`path`,{d:`M12 14v-11`}),(0,U.jsx)(`path`,{d:`M9 6l3 -3l3 3`})]}),K),G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{fill:`currentColor`,d:`M40 5.6v6.1l-4.1.7c-8.9 1.4-16.5 6.9-20.6 15C13 32 10.9 43 12.4 43c.4 0 2.4-1.3 4.4-3 5-3.9 12.1-7 18.2-7.7l5-.6v12.8l11.2-11.3L62.5 22 51.2 10.8 40-.5v6.1zm10.2 22.6L44 34.5v-6.8l-6.9.6c-3.9.3-9.8 1.7-13.2 3.1-3.5 1.4-6.5 2.4-6.7 2.2-.9-1 3-7.5 6.4-10.8C28 18.6 34.4 16 40.1 16c3.7 0 3.9-.1 3.9-3.2V9.5l6.2 6.3 6.3 6.2-6.3 6.2z`}),(0,U.jsx)(`path`,{stroke:`currentColor`,fill:`currentColor`,d:`M0 36v20h48v-6.2c0-6 0-6.1-2-4.3-1.1 1-2 2.9-2 4.2V52H4V34c0-17.3-.1-18-2-18s-2 .7-2 20z`})]}),{width:64,height:64}),G((0,U.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`40`,fill:`currentColor`,d:`M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z`}),{width:1024});var kf=(0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 10l0 10`}),(0,U.jsx)(`path`,{d:`M12 10l4 4`}),(0,U.jsx)(`path`,{d:`M12 10l-4 4`}),(0,U.jsx)(`path`,{d:`M4 4l16 0`})]}),Af=(0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 5l0 14`}),(0,U.jsx)(`path`,{d:`M16 9l-4 -4`}),(0,U.jsx)(`path`,{d:`M8 9l4 -4`})]}),jf=G(Af,K),Mf=G(Af,{...K,style:{transform:`rotate(180deg)`}}),Nf=G(kf,K),Pf=G(kf,{...K,style:{transform:`rotate(180deg)`}}),Ff=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M3.333 3.333h13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v7.083c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V8.125c0-.92-.746-1.667-1.666-1.667ZM6.875 6.458h-.417c-.92 0-1.666.747-1.666 1.667v3.75c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667v-3.75c0-.92-.747-1.667-1.667-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),If=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M3.333 16.667h13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M6.875 3.125h-.417c-.92 0-1.666.746-1.666 1.667v7.083c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667V4.792c0-.92-.747-1.667-1.667-1.667ZM13.542 5.817h-.417c-.92 0-1.667.747-1.667 1.667v4.391c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V7.484c0-.92-.746-1.667-1.666-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Lf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M3.333 3.333v13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M15.208 4.792H8.125c-.92 0-1.667.746-1.667 1.666v.417c0 .92.747 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM12.516 11.458H8.125c-.92 0-1.667.746-1.667 1.667v.417c0 .92.747 1.666 1.667 1.666h4.391c.92 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.667-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Rf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M16.667 3.333v13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M11.875 4.792H4.792c-.92 0-1.667.746-1.667 1.666v.417c0 .92.746 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM11.683 11.458H7.292c-.92 0-1.667.746-1.667 1.667v.417c0 .92.746 1.666 1.667 1.666h4.39c.921 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.666-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),zf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M16.667 3.333v13.334M3.333 3.333v13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M14.375 10.208v-.416c0-.92-.746-1.667-1.667-1.667H7.292c-.92 0-1.667.746-1.667 1.667v.416c0 .92.746 1.667 1.667 1.667h5.416c.92 0 1.667-.746 1.667-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Bf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M3.333 3.333h13.334M3.333 16.667h13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10.208 5.625h-.416c-.92 0-1.667.746-1.667 1.667v5.416c0 .92.746 1.667 1.667 1.667h.416c.92 0 1.667-.746 1.667-1.667V7.292c0-.92-.746-1.667-1.667-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Vf=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M1.667 10h2.916`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M8.333 10h3.334`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M15.417 10h2.916`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M6.875 4.792h-.417c-.92 0-1.666.746-1.666 1.666v7.084c0 .92.746 1.666 1.666 1.666h.417c.92 0 1.667-.746 1.667-1.666V6.458c0-.92-.747-1.666-1.667-1.666ZM13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v3.75c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667v-3.75c0-.92-.746-1.667-1.666-1.667Z`})]}),q),Hf=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M10 18.333v-2.916`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10 11.667V8.333`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10 4.583V1.667`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M4.792 13.125v.417c0 .92.746 1.666 1.666 1.666h7.084c.92 0 1.666-.746 1.666-1.666v-.417c0-.92-.746-1.667-1.666-1.667H6.458c-.92 0-1.666.746-1.666 1.667ZM6.458 6.458v.417c0 .92.747 1.667 1.667 1.667h3.75c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666h-3.75c-.92 0-1.667.746-1.667 1.666Z`})]}),q),Uf=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`9`,cy:`7`,r:`4`}),(0,U.jsx)(`path`,{d:`M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`}),(0,U.jsx)(`path`,{d:`M16 3.13a4 4 0 0 1 0 7.75`}),(0,U.jsx)(`path`,{d:`M21 21v-2a4 4 0 0 0 -3 -3.85`})]}),K);G(`M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z`);var Wf=G(`M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z`),Gf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,U.jsx)(`path`,{d:`M15 5 5 15M5 5l10 10`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q);G(`M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z`,{mirror:!0}),G(`M11.553 22.894a.998.998 0 00.894 0s3.037-1.516 5.465-4.097C19.616 16.987 21 14.663 21 12V5a1 1 0 00-.649-.936l-8-3a.998.998 0 00-.702 0l-8 3A1 1 0 003 5v7c0 2.663 1.384 4.987 3.088 6.797 2.428 2.581 5.465 4.097 5.465 4.097zm-1.303-8.481l6.644-6.644a.856.856 0 111.212 1.212l-7.25 7.25a.856.856 0 01-1.212 0l-3.75-3.75a.856.856 0 111.212-1.212l3.144 3.144z`,{width:24}),G(`M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z`,{width:384,height:512});var Kf=V.memo(({theme:e})=>G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M25 26H111V111H25`,fill:Cd(e)}),(0,U.jsx)(`path`,{d:`M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z`,stroke:Cd(e),strokeWidth:`2`}),(0,U.jsx)(`path`,{d:`M100 100H160V160H100`,fill:Cd(e)}),(0,U.jsx)(`path`,{d:`M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z`,stroke:Cd(e),strokeWidth:`2`}),(0,U.jsxs)(`g`,{fill:wd(e),stroke:Cd(e),strokeWidth:`6`,children:[(0,U.jsx)(`rect`,{x:`2.5`,y:`2.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`2.5`,y:`149.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`147.5`,y:`149.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`147.5`,y:`2.5`,width:`30`,height:`30`})]})]}),{width:182,height:182,mirror:!0})),qf=V.memo(({theme:e})=>G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M25 26H111V111H25`,fill:Cd(e)}),(0,U.jsx)(`path`,{d:`M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z`,stroke:Cd(e),strokeWidth:`2`}),(0,U.jsx)(`path`,{d:`M100 100H160V160H100`,fill:Cd(e)}),(0,U.jsx)(`path`,{d:`M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z`,stroke:Cd(e),strokeWidth:`2`}),(0,U.jsxs)(`g`,{fill:wd(e),stroke:Cd(e),strokeWidth:`6`,children:[(0,U.jsx)(`rect`,{x:`2.5`,y:`2.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`78.5`,y:`149.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`147.5`,y:`149.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`147.5`,y:`78.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`105.5`,y:`2.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`2.5`,y:`102.5`,width:`30`,height:`30`})]})]}),{width:182,height:182,mirror:!0})),Jf=G((0,U.jsx)(`g`,{strokeWidth:1.25,children:(0,U.jsx)(`path`,{d:`M5.879 2.625h8.242a3.27 3.27 0 0 1 3.254 3.254v8.242a3.27 3.27 0 0 1-3.254 3.254H5.88a3.27 3.27 0 0 1-3.254-3.254V5.88A3.27 3.27 0 0 1 5.88 2.626l-.001-.001ZM4.518 16.118l7.608-12.83m.198 13.934 5.051-9.897M2.778 9.675l9.348-6.387m-7.608 12.83 12.857-8.793`})}),q),Yf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,U.jsx)(`mask`,{id:`FillHachureIcon`,style:{maskType:`alpha`},maskUnits:`userSpaceOnUse`,x:2,y:2,width:16,height:16,children:(0,U.jsx)(`path`,{d:`M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z`,fill:`currentColor`,stroke:`currentColor`,strokeWidth:`1.25`})}),(0,U.jsx)(`g`,{mask:`url(#FillHachureIcon)`,children:(0,U.jsx)(`path`,{d:`M2.258 15.156 15.156 2.258M7.324 20.222 20.222 7.325m-20.444 5.35L12.675-.222m-8.157 18.34L17.416 5.22`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})})]}),q),Xf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,children:[(0,U.jsx)(`path`,{d:`M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,U.jsx)(`mask`,{id:`FillCrossHatchIcon`,style:{maskType:`alpha`},maskUnits:`userSpaceOnUse`,x:-1,y:-1,width:22,height:22,children:(0,U.jsx)(`path`,{d:`M2.426 15.044 15.044 2.426M7.383 20 20 7.383M0 12.617 12.617 0m-7.98 17.941L17.256 5.324m-2.211 12.25L2.426 4.956M20 12.617 7.383 0m5.234 20L0 7.383m17.941 7.98L5.324 2.745`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,U.jsx)(`g`,{mask:`url(#FillCrossHatchIcon)`,children:(0,U.jsx)(`path`,{d:`M14.121 2H5.88A3.879 3.879 0 0 0 2 5.879v8.242A3.879 3.879 0 0 0 5.879 18h8.242A3.879 3.879 0 0 0 18 14.121V5.88A3.879 3.879 0 0 0 14.121 2Z`,fill:`currentColor`})})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Zf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,children:(0,U.jsx)(`path`,{d:`M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z`,stroke:`currentColor`,strokeWidth:`1.25`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),{...q,fill:`currentColor`}),Qf=G((0,U.jsx)(U.Fragment,{children:(0,U.jsx)(`path`,{d:`M4.167 10h11.666`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),q),$f=G((0,U.jsx)(`path`,{d:`M5 10h10`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),q),ep=G((0,U.jsx)(`path`,{d:`M5 10h10`,stroke:`currentColor`,strokeWidth:`3.75`,strokeLinecap:`round`,strokeLinejoin:`round`}),q);V.memo(({theme:e})=>G((0,U.jsx)(`path`,{d:`M6 10H34`,stroke:Cd(e),strokeWidth:2,fill:`none`,strokeLinecap:`round`}),{width:40,height:20}));var tp=G((0,U.jsxs)(`g`,{strokeWidth:`2`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 12h2`}),(0,U.jsx)(`path`,{d:`M17 12h2`}),(0,U.jsx)(`path`,{d:`M11 12h2`})]}),K),np=G((0,U.jsxs)(`g`,{strokeWidth:`2`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 12v.01`}),(0,U.jsx)(`path`,{d:`M8 12v.01`}),(0,U.jsx)(`path`,{d:`M12 12v.01`}),(0,U.jsx)(`path`,{d:`M16 12v.01`}),(0,U.jsx)(`path`,{d:`M20 12v.01`})]}),K),rp=G((0,U.jsx)(`path`,{d:`M2.5 12.038c1.655-.885 5.9-3.292 8.568-4.354 2.668-1.063.101 2.821 1.32 3.104 1.218.283 5.112-1.814 5.112-1.814`,strokeWidth:`1.25`}),q),ip=G((0,U.jsx)(`path`,{d:`M2.5 12.563c1.655-.886 5.9-3.293 8.568-4.355 2.668-1.062.101 2.822 1.32 3.105 1.218.283 5.112-1.814 5.112-1.814m-13.469 2.23c2.963-1.586 6.13-5.62 7.468-4.998 1.338.623-1.153 4.11-.132 5.595 1.02 1.487 6.133-1.43 6.133-1.43`,strokeWidth:`1.25`}),q),ap=G((0,U.jsx)(`path`,{d:`M2.5 11.936c1.737-.879 8.627-5.346 10.42-5.268 1.795.078-.418 5.138.345 5.736.763.598 3.53-1.789 4.235-2.147M2.929 9.788c1.164-.519 5.47-3.28 6.987-3.114 1.519.165 1 3.827 2.121 4.109 1.122.281 3.839-2.016 4.606-2.42`,strokeWidth:`1.25`}),q),op=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{d:`M4 12 C 5 8, 6 8, 8 12`,fill:`none`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M8 12 C 9 16, 10 16, 12 12`,fill:`none`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M12 12 C 14 8, 15 8, 16 12`,fill:`none`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M16 12 C 17 16, 18 16, 19 12`,fill:`none`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),K),sp=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{d:`M4 12 C 5 8, 6 8, 8 12`,fill:`none`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M8 12 C 9 16, 10 16, 12 12`,fill:`none`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M12 12 C 14 8, 15 8, 16 12`,fill:`none`,strokeWidth:`2.75`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M16 12 C 17 16, 18 16, 19 12`,fill:`none`,strokeWidth:`3.25`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),K),cp=G((0,U.jsxs)(`svg`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{d:`M3.33334 9.99998V6.66665C3.33334 6.04326 3.33403 4.9332 3.33539 3.33646C4.95233 3.33436 6.06276 3.33331 6.66668 3.33331H10`}),(0,U.jsx)(`path`,{d:`M13.3333 3.33331V3.34331`}),(0,U.jsx)(`path`,{d:`M16.6667 3.33331V3.34331`}),(0,U.jsx)(`path`,{d:`M16.6667 6.66669V6.67669`}),(0,U.jsx)(`path`,{d:`M16.6667 10V10.01`}),(0,U.jsx)(`path`,{d:`M3.33334 13.3333V13.3433`}),(0,U.jsx)(`path`,{d:`M16.6667 13.3333V13.3433`}),(0,U.jsx)(`path`,{d:`M3.33334 16.6667V16.6767`}),(0,U.jsx)(`path`,{d:`M6.66666 16.6667V16.6767`}),(0,U.jsx)(`path`,{d:`M10 16.6667V16.6767`}),(0,U.jsx)(`path`,{d:`M13.3333 16.6667V16.6767`}),(0,U.jsx)(`path`,{d:`M16.6667 16.6667V16.6767`})]}),q),lp=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 12v-4a4 4 0 0 1 4 -4h4`}),(0,U.jsx)(`line`,{x1:`16`,y1:`4`,x2:`16`,y2:`4.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`4`,x2:`20`,y2:`4.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`8`,x2:`20`,y2:`8.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`12`,x2:`20`,y2:`12.01`}),(0,U.jsx)(`line`,{x1:`4`,y1:`16`,x2:`4`,y2:`16.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`16`,x2:`20`,y2:`16.01`}),(0,U.jsx)(`line`,{x1:`4`,y1:`20`,x2:`4`,y2:`20.01`}),(0,U.jsx)(`line`,{x1:`8`,y1:`20`,x2:`8`,y2:`20.01`}),(0,U.jsx)(`line`,{x1:`12`,y1:`20`,x2:`12`,y2:`20.01`}),(0,U.jsx)(`line`,{x1:`16`,y1:`20`,x2:`16`,y2:`20.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`20`,x2:`20`,y2:`20.01`})]}),K),up=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{transform:e?`translate(40, 0) scale(-1, 1)`:``,stroke:`currentColor`,opacity:.3,strokeWidth:2,fill:`none`,strokeLinecap:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H19`}),(0,U.jsx)(`path`,{d:`M25,6 L33,16 M33,6 L25,16`})]}),Td)),dp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{transform:e?`translate(40, 0) scale(-1, 1)`:``,stroke:`currentColor`,strokeWidth:2,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,U.jsx)(`path`,{d:`M7,11 H33 M23,5 L33,11 L23,17`})}),Td)),fp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`currentColor`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H23`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{d:`M23,5 L35,11 L23,17 Z`})]}),Td)),pp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeWidth:2,strokeLinejoin:`round`,strokeLinecap:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H23`}),(0,U.jsx)(`path`,{d:`M23,5 L35,11 L23,17 Z`})]}),Td)),mp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`currentColor`,transform:e?`translate(40, 0) scale(-1, 1)`:``,children:[(0,U.jsx)(`path`,{d:`M7,11 H25`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`circle`,{cx:`29`,cy:`11`,r:`4`})]}),Td)),hp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeWidth:2,children:[(0,U.jsx)(`path`,{d:`M7,11 H25`,strokeLinecap:`round`}),(0,U.jsx)(`circle`,{cx:`29`,cy:`11`,r:`4`})]}),Td)),gp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`currentColor`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H21`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{d:`M21,11 L28,5 L35,11 L28,17 Z`})]}),Td)),_p=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeLinejoin:`round`,strokeWidth:2,strokeLinecap:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H21`}),(0,U.jsx)(`path`,{d:`M21,11 L28,5 L35,11 L28,17 Z`})]}),Td)),vp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{transform:e?`translate(40, 0) scale(-1, 1)`:``,stroke:`currentColor`,strokeWidth:2,fill:`none`,strokeLinecap:`round`,children:(0,U.jsx)(`path`,{d:`M11,11 H31 M31,5 V17`})}),Td)),yp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:(0,U.jsx)(`path`,{d:`M35,11 H7 M15,5 V17`})}),Td)),bp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:(0,U.jsx)(`path`,{d:`M35,11 H7 M15,11 L7,5 M15,11 L7,17`})}),Td)),xp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:(0,U.jsx)(`path`,{d:`M35,11 H7 M23,5 V17 M15,11 L7,5 M15,11 L7,17`})}),Td)),Sp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:(0,U.jsx)(`path`,{d:`M35,11 H7 M15,5 V17 M7,5 V17`})}),Td)),Cp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,U.jsx)(`path`,{d:`M35,11 H19 M11,11 H7 M7,5 V17`}),(0,U.jsx)(`circle`,{cx:`15`,cy:`11`,r:`4`})]}),Td)),wp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,U.jsx)(`path`,{d:`M35,11 H27 M19,11 H7 M15,11 L7,5 M15,11 L7,17`}),(0,U.jsx)(`circle`,{cx:`23`,cy:`11`,r:`4`})]}),Td)),Tp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,children:(0,U.jsx)(`path`,{d:`M14.167 6.667a3.333 3.333 0 0 0-3.334-3.334H9.167a3.333 3.333 0 0 0 0 6.667h1.666a3.333 3.333 0 0 1 0 6.667H9.167a3.333 3.333 0 0 1-3.334-3.334`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Ep=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,children:(0,U.jsx)(`path`,{d:`M5 16.667V3.333L10 15l5-11.667v13.334`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Dp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,children:(0,U.jsx)(`path`,{d:`M5.833 3.333v13.334h8.334`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Op=G((0,U.jsx)(U.Fragment,{children:(0,U.jsx)(`path`,{d:`m1.667 3.333 6.666 13.334M8.333 3.333 1.667 16.667M11.667 3.333v13.334h6.666`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),q),kp=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 7v-2h13v2`}),(0,U.jsx)(`path`,{d:`M10 5v14`}),(0,U.jsx)(`path`,{d:`M12 19h-4`}),(0,U.jsx)(`path`,{d:`M15 13v-1h6v1`}),(0,U.jsx)(`path`,{d:`M18 12v7`}),(0,U.jsx)(`path`,{d:`M17 19h2`})]}),K),Ap=G((0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M7 12h10`}),(0,U.jsx)(`path`,{d:`M7 5v14`}),(0,U.jsx)(`path`,{d:`M17 5v14`}),(0,U.jsx)(`path`,{d:`M15 19h4`}),(0,U.jsx)(`path`,{d:`M15 5h4`}),(0,U.jsx)(`path`,{d:`M5 19h4`}),(0,U.jsx)(`path`,{d:`M5 5h4`})]})}),K),jp=G((0,U.jsx)(U.Fragment,{children:(0,U.jsx)(`g`,{stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,U.jsx)(`path`,{d:`M5.833 16.667v-10a3.333 3.333 0 0 1 3.334-3.334h1.666a3.333 3.333 0 0 1 3.334 3.334v10M5.833 10.833h8.334`})})}),q),Mp=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M7 8l-4 4l4 4`}),(0,U.jsx)(`path`,{d:`M17 8l4 4l-4 4`}),(0,U.jsx)(`path`,{d:`M14 4l-4 16`})]}),K),Np=Mp,Pp=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`8`,x2:`20`,y2:`8`}),(0,U.jsx)(`line`,{x1:`4`,y1:`12`,x2:`12`,y2:`12`}),(0,U.jsx)(`line`,{x1:`4`,y1:`16`,x2:`16`,y2:`16`})]}),K),Fp=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`8`,x2:`20`,y2:`8`}),(0,U.jsx)(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`}),(0,U.jsx)(`line`,{x1:`6`,y1:`16`,x2:`18`,y2:`16`})]}),K),Ip=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`8`,x2:`20`,y2:`8`}),(0,U.jsx)(`line`,{x1:`10`,y1:`12`,x2:`20`,y2:`12`}),(0,U.jsx)(`line`,{x1:`8`,y1:`16`,x2:`20`,y2:`16`})]}),K),Lp=V.memo(({theme:e})=>G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`4`,x2:`20`,y2:`4`}),(0,U.jsx)(`rect`,{x:`9`,y:`8`,width:`6`,height:`12`,rx:`2`})]}),K)),Rp=V.memo(({theme:e})=>G((0,U.jsxs)(`g`,{strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`20`,x2:`20`,y2:`20`}),(0,U.jsx)(`rect`,{x:`9`,y:`4`,width:`6`,height:`12`,rx:`2`})]}),K)),zp=V.memo(({theme:e})=>G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`12`,x2:`9`,y2:`12`}),(0,U.jsx)(`line`,{x1:`15`,y1:`12`,x2:`20`,y2:`12`}),(0,U.jsx)(`rect`,{x:`9`,y:`6`,width:`6`,height:`12`,rx:`2`})]}),K)),Bp=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M21 19h-18l9 -15`}),(0,U.jsx)(`path`,{d:`M20.615 15.171h.015`}),(0,U.jsx)(`path`,{d:`M19.515 11.771h.015`}),(0,U.jsx)(`path`,{d:`M17.715 8.671h.015`}),(0,U.jsx)(`path`,{d:`M15.415 5.971h.015`})]}),K),Vp=G((0,U.jsx)(`path`,{d:`M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z`,fill:`currentColor`}),{width:640,height:512});G((0,U.jsx)(`path`,{d:`M480 416C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H150.6C133.7 480 117.4 473.3 105.4 461.3L25.37 381.3C.3786 356.3 .3786 315.7 25.37 290.7L258.7 57.37C283.7 32.38 324.3 32.38 349.3 57.37L486.6 194.7C511.6 219.7 511.6 260.3 486.6 285.3L355.9 416H480zM265.4 416L332.7 348.7L195.3 211.3L70.63 336L150.6 416L265.4 416z`}));var Hp=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5`}),(0,U.jsx)(`path`,{d:`M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5`}),(0,U.jsx)(`path`,{d:`M14 5.5a1.5 1.5 0 0 1 3 0v6.5`}),(0,U.jsx)(`path`,{d:`M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47`})]}),K),Up=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`}),(0,U.jsx)(`path`,{d:`M7 11l5 5l5 -5`}),(0,U.jsx)(`path`,{d:`M12 4l0 12`})]}),K),Wp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z`}),(0,U.jsx)(`path`,{d:`M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2`})]}),K),Gp=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M7 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`}),(0,U.jsx)(`path`,{d:`M17 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`}),(0,U.jsx)(`path`,{d:`M9.15 14.85l8.85 -10.85`}),(0,U.jsx)(`path`,{d:`M6 4l8.85 10.85`})]}),K),Kp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}),(0,U.jsx)(`path`,{d:`M12 17l0 .01`}),(0,U.jsx)(`path`,{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`})]}),K);G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M7 4v16l13 -8z`})]}),K),G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M17 4h-10a3 3 0 0 0 -3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3 -3v-10a3 3 0 0 0 -3 -3z`,strokeWidth:`0`,fill:`currentColor`})]}),K);var qp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 12l5 5l10 -10`})]}),K),Jp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z`}),(0,U.jsx)(`path`,{d:`M12 9v4`}),(0,U.jsx)(`path`,{d:`M12 17h.01`})]}),K),Yp=[`M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z`,`M11 7l6 6`],Xp=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),Yp.map(e=>(0,U.jsx)(`path`,{d:e},e))]}),K),Zp=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 7l16 0`}),(0,U.jsx)(`path`,{d:`M4 17l16 0`}),(0,U.jsx)(`path`,{d:`M7 4l0 16`}),(0,U.jsx)(`path`,{d:`M17 4l0 16`})]}),K),Qp=G((0,U.jsx)(`path`,{fill:`currentColor`,d:`M407.48,111.18C335.587,108.103 269.573,152.338 245.08,220C220.587,152.338 154.573,108.103 82.68,111.18C80.285,168.229 107.577,222.632 154.74,254.82C178.908,271.419 193.35,298.951 193.27,328.27L193.27,379.13L296.9,379.13L296.9,328.27C296.816,298.953 311.255,271.42 335.42,254.82C382.596,222.644 409.892,168.233 407.48,111.18Z`})),$p=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`}),(0,U.jsx)(`path`,{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`})]}),K),em=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 10l-2 1l8 4l8 -4l-2 -1`}),(0,U.jsx)(`path`,{d:`M4 15l8 4l8 -4`}),(0,U.jsx)(`path`,{d:`M12 4v7`}),(0,U.jsx)(`path`,{d:`M15 8l-3 3l-3 -3`})]}),K),tm=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M4.16602 10H15.8327`}),(0,U.jsx)(`path`,{d:`M12.5 13.3333L15.8333 10`}),(0,U.jsx)(`path`,{d:`M12.5 6.66666L15.8333 9.99999`})]}),q),nm=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 9.5a6.5 6.5 0 1 0 13 0a6.5 6.5 0 1 0 -13 0`}),(0,U.jsx)(`path`,{d:`M10 12a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2l0 -7`})]}),K),rm=G((0,U.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,transform:`rotate(90 10 10)`,children:[(0,U.jsx)(`path`,{clipRule:`evenodd`,d:`m9.644 13.69 7.774-7.773a2.357 2.357 0 0 0-3.334-3.334l-7.773 7.774L8 12l1.643 1.69Z`}),(0,U.jsx)(`path`,{d:`m13.25 3.417 3.333 3.333M10 10l2-2M5 15l3-3M2.156 17.894l1-1M5.453 19.029l-.144-1.407M2.377 11.887l.866 1.118M8.354 17.273l-1.194-.758M.953 14.652l1.408.13`})]}),20),im=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`}),(0,U.jsx)(`path`,{d:`M6 21l15 -15l-3 -3l-15 15l3 3`}),(0,U.jsx)(`path`,{d:`M15 6l3 3`}),(0,U.jsx)(`path`,{d:`M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`}),(0,U.jsx)(`path`,{d:`M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`})]}),K);G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`}),(0,U.jsx)(`path`,{d:`M6 21l15 -15l-3 -3l-15 15l3 3`}),(0,U.jsx)(`path`,{d:`M15 6l3 3`}),(0,U.jsx)(`path`,{d:`M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`}),(0,U.jsx)(`path`,{d:`M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`})]}),K),G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M11.217 19.384a3.501 3.501 0 0 0 6.783 -1.217v-5.167l-6 -3.35`}),(0,U.jsx)(`path`,{d:`M5.214 15.014a3.501 3.501 0 0 0 4.446 5.266l4.34 -2.534v-6.946`}),(0,U.jsx)(`path`,{d:`M6 7.63c-1.391 -.236 -2.787 .395 -3.534 1.689a3.474 3.474 0 0 0 1.271 4.745l4.263 2.514l6 -3.348`}),(0,U.jsx)(`path`,{d:`M12.783 4.616a3.501 3.501 0 0 0 -6.783 1.217v5.067l6 3.45`}),(0,U.jsx)(`path`,{d:`M18.786 8.986a3.501 3.501 0 0 0 -4.446 -5.266l-4.34 2.534v6.946`}),(0,U.jsx)(`path`,{d:`M18 16.302c1.391 .236 2.787 -.395 3.534 -1.689a3.474 3.474 0 0 0 -1.271 -4.745l-4.308 -2.514l-5.955 3.42`})]}),K);var am=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 8v-2a2 2 0 0 1 2 -2h2`}),(0,U.jsx)(`path`,{d:`M4 16v2a2 2 0 0 0 2 2h2`}),(0,U.jsx)(`path`,{d:`M16 4h2a2 2 0 0 1 2 2v2`}),(0,U.jsx)(`path`,{d:`M16 20h2a2 2 0 0 0 2 -2v-2`})]}),K),om=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`}),(0,U.jsx)(`path`,{d:`M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6`})]}),K),sm=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10.585 10.587a2 2 0 0 0 2.829 2.828`}),(0,U.jsx)(`path`,{d:`M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87`}),(0,U.jsx)(`path`,{d:`M3 3l18 18`})]}),K),cm=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15.5 13a3.5 3.5 0 0 0 -3.5 3.5v1a3.5 3.5 0 0 0 7 0v-1.8`}),(0,U.jsx)(`path`,{d:`M8.5 13a3.5 3.5 0 0 1 3.5 3.5v1a3.5 3.5 0 0 1 -7 0v-1.8`}),(0,U.jsx)(`path`,{d:`M17.5 16a3.5 3.5 0 0 0 0 -7h-.5`}),(0,U.jsx)(`path`,{d:`M19 9.3v-2.8a3.5 3.5 0 0 0 -7 0`}),(0,U.jsx)(`path`,{d:`M6.5 16a3.5 3.5 0 0 1 0 -7h.5`}),(0,U.jsx)(`path`,{d:`M5 9.3v-2.8a3.5 3.5 0 0 1 7 0v10`})]}),K),lm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15.5 13a3.5 3.5 0 0 0 -3.5 3.5v1a3.5 3.5 0 0 0 7 0v-1.8`}),(0,U.jsx)(`path`,{d:`M8.5 13a3.5 3.5 0 0 1 3.5 3.5v1a3.5 3.5 0 0 1 -7 0v-1.8`}),(0,U.jsx)(`path`,{d:`M17.5 16a3.5 3.5 0 0 0 0 -7h-.5`}),(0,U.jsx)(`path`,{d:`M19 9.3v-2.8a3.5 3.5 0 0 0 -7 0`}),(0,U.jsx)(`path`,{d:`M6.5 16a3.5 3.5 0 0 1 0 -7h.5`}),(0,U.jsx)(`path`,{d:`M5 9.3v-2.8a3.5 3.5 0 0 1 7 0v10`})]}),K),um=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`}),(0,U.jsx)(`path`,{d:`M21 21l-6 -6`})]}),K),dm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M20.984 12.53a9 9 0 1 0 -7.552 8.355`}),(0,U.jsx)(`path`,{d:`M12 7v5l3 3`}),(0,U.jsx)(`path`,{d:`M19 16l-2 3h4l-2 3`})]}),K),fm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 8l0 4l2 2`}),(0,U.jsx)(`path`,{d:`M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5`})]}),K),pm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M9 2m0 3a3 3 0 0 1 3 -3h0a3 3 0 0 1 3 3v5a3 3 0 0 1 -3 3h0a3 3 0 0 1 -3 -3z`}),(0,U.jsx)(`path`,{d:`M5 10a7 7 0 0 0 14 0`}),(0,U.jsx)(`path`,{d:`M8 21l8 0`}),(0,U.jsx)(`path`,{d:`M12 17l0 4`})]}),K),mm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 3l18 18`}),(0,U.jsx)(`path`,{d:`M9 5a3 3 0 0 1 6 0v5a3 3 0 0 1 -.13 .874m-2 2a3 3 0 0 1 -3.87 -2.872v-1`}),(0,U.jsx)(`path`,{d:`M5 10a7 7 0 0 0 10.846 5.85m2 -2a6.967 6.967 0 0 0 1.152 -3.85`}),(0,U.jsx)(`path`,{d:`M8 21l8 0`}),(0,U.jsx)(`path`,{d:`M12 17l0 4`})]}),K),hm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11`})]}),K),gm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 8m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z`}),(0,U.jsx)(`path`,{d:`M12 20v.01`}),(0,U.jsx)(`path`,{d:`M16 20v.01`}),(0,U.jsx)(`path`,{d:`M8 20v.01`}),(0,U.jsx)(`path`,{d:`M4 20v.01`}),(0,U.jsx)(`path`,{d:`M4 16v.01`}),(0,U.jsx)(`path`,{d:`M4 12v.01`}),(0,U.jsx)(`path`,{d:`M4 8v.01`}),(0,U.jsx)(`path`,{d:`M4 4v.01`}),(0,U.jsx)(`path`,{d:`M8 4v.01`}),(0,U.jsx)(`path`,{d:`M12 4v.01`}),(0,U.jsx)(`path`,{d:`M16 4v.01`}),(0,U.jsx)(`path`,{d:`M20 4v.01`}),(0,U.jsx)(`path`,{d:`M20 8v.01`}),(0,U.jsx)(`path`,{d:`M20 12v.01`}),(0,U.jsx)(`path`,{d:`M20 16v.01`}),(0,U.jsx)(`path`,{d:`M20 20v.01`})]}),K),_m=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 3v18`}),(0,U.jsx)(`path`,{d:`M19 21v-18`}),(0,U.jsx)(`path`,{d:`M5 7h14`}),(0,U.jsx)(`path`,{d:`M5 15h14`}),(0,U.jsx)(`path`,{d:`M8 13v4`}),(0,U.jsx)(`path`,{d:`M11 13v4`}),(0,U.jsx)(`path`,{d:`M16 13v4`}),(0,U.jsx)(`path`,{d:`M14 5v4`}),(0,U.jsx)(`path`,{d:`M11 5v4`}),(0,U.jsx)(`path`,{d:`M8 5v4`}),(0,U.jsx)(`path`,{d:`M3 21h18`})]}),K),vm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 12l18 0`}),(0,U.jsx)(`path`,{d:`M7 16l10 0l-10 5l0 -5`}),(0,U.jsx)(`path`,{d:`M7 8l10 0l-10 -5l0 5`})]}),K),ym=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 3l0 18`}),(0,U.jsx)(`path`,{d:`M16 7l0 10l5 0l-5 -10`}),(0,U.jsx)(`path`,{d:`M8 7l0 10l-5 0l5 -10`})]}),K),bm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z`}),(0,U.jsx)(`path`,{d:`M19 6h1a2 2 0 0 1 2 2a5 5 0 0 1 -5 5l-5 0v2`}),(0,U.jsx)(`path`,{d:`M10 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`})]}),K),xm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15 15m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0`}),(0,U.jsx)(`path`,{d:`M22 22l-3 -3`}),(0,U.jsx)(`path`,{d:`M6 18h-1a2 2 0 0 1 -2 -2v-1`}),(0,U.jsx)(`path`,{d:`M3 11v-1`}),(0,U.jsx)(`path`,{d:`M3 6v-1a2 2 0 0 1 2 -2h1`}),(0,U.jsx)(`path`,{d:`M10 3h1`}),(0,U.jsx)(`path`,{d:`M15 3h1a2 2 0 0 1 2 2v1`})]}),K),Sm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`}),(0,U.jsx)(`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`}),(0,U.jsx)(`path`,{d:`M4 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75`}),(0,U.jsx)(`path`,{d:`M10 15l2 6l2 -6`}),(0,U.jsx)(`path`,{d:`M20 15h-1a2 2 0 0 0 -2 2v2a2 2 0 0 0 2 2h1v-3`})]}),K),Cm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`}),(0,U.jsx)(`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`}),(0,U.jsx)(`path`,{d:`M20 15h-1a2 2 0 0 0 -2 2v2a2 2 0 0 0 2 2h1v-3`}),(0,U.jsx)(`path`,{d:`M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6`}),(0,U.jsx)(`path`,{d:`M11 21v-6l3 6v-6`})]}),K),wm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 13v-8a2 2 0 0 1 2 -2h1a2 2 0 0 1 2 2v8a2 2 0 0 0 6 0v-8a2 2 0 0 1 2 -2h1a2 2 0 0 1 2 2v8a8 8 0 0 1 -16 0`}),(0,U.jsx)(`path`,{d:`M4 8l5 0`}),(0,U.jsx)(`path`,{d:`M15 8l4 0`})]}),K),Tm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 14c.83 .642 2.077 1.017 3.5 1c1.423 .017 2.67 -.358 3.5 -1c.83 -.642 2.077 -1.017 3.5 -1c1.423 -.017 2.67 .358 3.5 1`}),(0,U.jsx)(`path`,{d:`M8 3a2.4 2.4 0 0 0 -1 2a2.4 2.4 0 0 0 1 2`}),(0,U.jsx)(`path`,{d:`M12 3a2.4 2.4 0 0 0 -1 2a2.4 2.4 0 0 0 1 2`}),(0,U.jsx)(`path`,{d:`M3 10h14v5a6 6 0 0 1 -6 6h-2a6 6 0 0 1 -6 -6v-5z`}),(0,U.jsx)(`path`,{d:`M16.746 16.726a3 3 0 1 0 .252 -5.555`})]}),K),Em=G((0,U.jsxs)(`g`,{stroke:`currentColor`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 5a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-16a1 1 0 0 1-1-1v-10zM7 20h10M9 16v4M15 16v4`})]}),{...K,strokeWidth:1.5});G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2`}),(0,U.jsx)(`path`,{d:`M21 12h-13l3 -3`}),(0,U.jsx)(`path`,{d:`M11 15l-3 -3`})]}),K);var Dm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8z`}),(0,U.jsx)(`path`,{d:`M10 9l5 3l-5 3z`})]}),K),Om=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 6h18`}),(0,U.jsx)(`path`,{d:`M3 12h18`}),(0,U.jsx)(`path`,{d:`M3 18h18`}),(0,U.jsx)(`path`,{d:`M6 3v18`}),(0,U.jsx)(`path`,{d:`M12 3v18`}),(0,U.jsx)(`path`,{d:`M18 3v18`})]}),K),km=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M17 3m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`}),(0,U.jsx)(`path`,{d:`M3 17m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`}),(0,U.jsx)(`path`,{d:`M17 5c-6.627 0 -12 5.373 -12 12`})]}),K),Am=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 18l12 -12`}),(0,U.jsx)(`path`,{d:`M18 10v-4h-4`})]}),K),jm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4,19L10,19C11.097,19 12,18.097 12,17L12,9C12,7.903 12.903,7 14,7L21,7`}),(0,U.jsx)(`path`,{d:`M18 4l3 3l-3 3`})]}),K),Mm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{d:`M16,12L20,9L16,6`}),(0,U.jsx)(`path`,{d:`M6 20c0 -6.075 4.925 -11 11 -11h3`})]}),K),Nm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 9l6 6l6 -6`})]}),K),Pm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 15l6 -6l6 6`})]}),K),Fm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 15l6 -6l6 6`})]}),K),Im=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 5v10a1 1 0 0 0 1 1h10`}),(0,U.jsx)(`path`,{d:`M5 8h10a1 1 0 0 1 1 1v10`})]}),K),Lm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M19 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M5 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M19 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M5 7l0 10`}),(0,U.jsx)(`path`,{d:`M7 5l10 0`}),(0,U.jsx)(`path`,{d:`M7 19l10 0`}),(0,U.jsx)(`path`,{d:`M19 7l0 10`})]}),K);G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 11v8a1 1 0 0 0 1 1h8m-9 -14v-1a1 1 0 0 1 1 -1h1m5 0h2m5 0h1a1 1 0 0 1 1 1v1m0 5v2m0 5v1a1 1 0 0 1 -1 1h-1`}),(0,U.jsx)(`path`,{d:`M4 12h7a1 1 0 0 1 1 1v7`})]}),K);var Rm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 6l8 0`}),(0,U.jsx)(`path`,{d:`M16 6l4 0`}),(0,U.jsx)(`path`,{d:`M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 12l2 0`}),(0,U.jsx)(`path`,{d:`M10 12l10 0`}),(0,U.jsx)(`path`,{d:`M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 18l11 0`}),(0,U.jsx)(`path`,{d:`M19 18l1 0`})]}),K),zm=G((0,U.jsxs)(`g`,{strokeWidth:1,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 10l4 -4 L6 14l8 -8 L6 18l12 -12 L10 18l8 -8 L14 18l4 -4`})]}),K),Bm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`}),(0,U.jsx)(`path`,{d:`M13.5 6.5l4 4`})]}),K);G((0,U.jsxs)(`g`,{strokeWidth:1,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M11 7l-5 5l5 5`}),(0,U.jsx)(`path`,{d:`M17 7l-5 5l5 5`})]}),K);var Vm=G((0,U.jsxs)(`g`,{strokeWidth:`1.75`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z`}),(0,U.jsx)(`path`,{d:`M15 4l0 16`})]}),K);G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1`})]}),K),G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 4l18 0`}),(0,U.jsx)(`path`,{d:`M4 4v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-10`}),(0,U.jsx)(`path`,{d:`M12 16l0 4`}),(0,U.jsx)(`path`,{d:`M9 20l6 0`}),(0,U.jsx)(`path`,{d:`M8 12l3 -3l2 2l3 -3`})]}),K);var Hm=(0,U.jsx)(`div`,{style:{width:`1rem`,height:`1rem`}}),Um=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`polyline`,{points:`6 9 12 15 18 9`})]}),K),Wm=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`polyline`,{points:`9 6 15 12 9 18`})]}),K),Gm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 6l8 0`}),(0,U.jsx)(`path`,{d:`M16 6l4 0`}),(0,U.jsx)(`path`,{d:`M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 12l2 0`}),(0,U.jsx)(`path`,{d:`M10 12l10 0`}),(0,U.jsx)(`path`,{d:`M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 18l11 0`}),(0,U.jsx)(`path`,{d:`M19 18l1 0`})]}),K),Km=({size:e=`1em`,circleWidth:t=8,synchronized:n=!1,className:r=``})=>{let i=-(V.useRef(Date.now()).current%1600);return(0,U.jsx)(`div`,{className:`Spinner ${r}`,children:(0,U.jsx)(`svg`,{viewBox:`0 0 100 100`,style:{width:e,height:e,"--spinner-delay":n?`${i}ms`:0},children:(0,U.jsx)(`circle`,{cx:`50`,cy:`50`,r:50-t/2,strokeWidth:t,fill:`none`,strokeMiterlimit:`10`})})})},J=V.forwardRef(({size:e=`medium`,visible:t=!0,className:n=``,...r},i)=>{let a=V.useRef(null);V.useImperativeHandle(i,()=>a.current);let o=`ToolIcon_size_${e}`,[s,c]=(0,V.useState)(!1),l=(0,V.useRef)(!0),u=async e=>{let t=`onClick`in r&&r.onClick?.(e);if(kn(t))try{c(!0),await t}catch(e){if(e instanceof Ys)console.warn(e);else throw e}finally{l.current&&c(!1)}};(0,V.useEffect)(()=>(l.current=!0,()=>{l.current=!1}),[]);let d=(0,V.useRef)(null);return r.type===`button`||r.type===`icon`?(0,U.jsxs)(`button`,{className:H(`ToolIcon_type_button`,o,n,t&&!r.hidden?`ToolIcon_type_button--show`:`ToolIcon_type_button--hide`,{ToolIcon:!r.hidden,"ToolIcon--plain":r.type===`icon`}),style:r.style,"data-testid":r[`data-testid`],hidden:r.hidden,title:r.title,"aria-label":r[`aria-label`],type:`button`,onClick:u,ref:a,disabled:s||r.isLoading||!!r.disabled,children:[(r.icon||r.label)&&(0,U.jsxs)(`div`,{className:`ToolIcon__icon`,"aria-hidden":`true`,"aria-disabled":!!r.disabled,children:[r.icon||r.label,r.keyBindingLabel&&(0,U.jsx)(`span`,{className:`ToolIcon__keybinding`,children:r.keyBindingLabel}),r.isLoading&&(0,U.jsx)(Km,{})]}),r.showAriaLabel&&(0,U.jsxs)(`div`,{className:`ToolIcon__label`,children:[r[`aria-label`],` `,s&&(0,U.jsx)(Km,{})]}),r.children]}):(0,U.jsx)(`button`,{className:H(`ToolIcon`,`ToolIcon_type_toggle`,o,n,{"ToolIcon--checked":r.checked}),type:`button`,style:r.style,title:r.title,"aria-label":r[`aria-label`],"aria-keyshortcuts":r[`aria-keyshortcuts`],"aria-pressed":r.checked,"data-testid":r[`data-testid`],disabled:!!r.disabled,"aria-disabled":!!r.disabled,onPointerDown:e=>{d.current=e.pointerType||null},onPointerUp:()=>{requestAnimationFrame(()=>{d.current=null})},onClick:()=>{r.onSelect?.({pointerType:d.current})},ref:a,children:(0,U.jsxs)(`div`,{className:`ToolIcon__icon`,children:[r.icon,r.keyBindingLabel&&(0,U.jsx)(`span`,{className:`ToolIcon__keybinding`,children:r.keyBindingLabel})]})})});J.displayName=`IconButton`;var qm=[],Y=e=>(qm=qm.concat(e),e),Jm=(e,t,n)=>{let r=new Set(Ls(e.filter(e=>F(e)),t).map(e=>e.id)),i={},a=n.scene.getNonDeletedElementsMap(),o=new Set;for(let t of r){let n=Pr(e,t);for(let e of n)if(!o.has(e.id)){if(Gs(e)){let t=$o(e,a);t&&(i[t.id]=!0)}else i[e.id]=!0;o.add(e.id)}}let s=!0,c=e.map(e=>{if(t.selectedElementIds[e.id]){let t=Gs(e)?$o(e,a):null;return e.frameId&&r.has(e.frameId)?(s=!1,i[e.id]=!0,e):t?.frameId&&r.has(t?.frameId)?e:(e.boundElements&&e.boundElements.forEach(t=>{let r=n.scene.getNonDeletedElementsMap().get(t.id);r&&Ke(r)&&n.scene.mutateElement(r,{startBinding:e.id===r.startBinding?.elementId?null:r.startBinding,endBinding:e.id===r.endBinding?.elementId?null:r.endBinding})}),B(e,{isDeleted:!0}))}return e.frameId&&r.has(e.frameId)?(s=!1,Gs(e)||(i[e.id]=!0),B(e,{frameId:null})):Gs(e)&&t.selectedElementIds[e.containerId]?B(e,{isDeleted:!0}):e}),l=t.editingGroupId;if(s&&t.editingGroupId){let e=nn(c,t.editingGroupId).filter(e=>!e.isDeleted);if(e.length>1)e[0]&&(i[e[0].id]=!0);else{l=null,e[0]&&(i[e[0].id]=!0);let n=e[0];if(n){let e=n.groupIds.findIndex(e=>e===t.editingGroupId),r=n.groupIds[e+1];if(r){let e=nn(c,r).filter(e=>!e.isDeleted);e.length>1&&(l=r,e.forEach(e=>{i[e.id]=!0}))}}}}return{elements:c,appState:{...t,...ks({selectedElementIds:i,editingGroupId:l},A(c),t,null)}}},Ym=(e,t)=>{if(e.editingGroupId){let n=nn(A(t),e.editingGroupId);if(n.length)return{...e,selectedElementIds:{[n[0].id]:!0}}}return e},Xm=Y({name:`deleteSelectedElements`,label:`labels.delete`,icon:ef,trackEvent:{category:`element`,action:`delete`},perform:(e,t,n,r)=>{if(t.selectedLinearElement?.isEditing){let{elementId:n,selectedPointsIndices:i}=t.selectedLinearElement,a=r.scene.getNonDeletedElementsMap(),o=N.getElement(n,a);if(!o||i==null)return!1;if(i.length>=o.points.length){let n=e.map(e=>e.id===o.id?B(e,{isDeleted:!0}):e);return{elements:n,appState:{...Ym(t,n),selectedLinearElement:null},captureUpdate:j.IMMEDIATELY}}return N.deletePoints(o,r,i),{elements:e,appState:{...t,selectedLinearElement:{...t.selectedLinearElement,selectedPointsIndices:i?.[0]>0?[i[0]-1]:[0]}},captureUpdate:j.IMMEDIATELY}}let{elements:i,appState:a}=Jm(e,t,r);return Qs(i,i.filter(e=>e.isDeleted)),a=Ym(a,i),{elements:i,appState:{...a,activeTool:ji(t,{type:r.state.preferredSelectionTool.type}),multiElement:null,newElement:null,activeEmbeddable:null,selectedLinearElement:null},captureUpdate:wa(A(e),t)?j.IMMEDIATELY:j.EVENTUALLY}},keyTest:(e,t,n)=>(e.key===L.BACKSPACE||e.key===L.DELETE)&&!e[L.CTRL_OR_CMD],PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let i=cN()===`mobile`;return(0,U.jsx)(J,{type:`button`,icon:ef,title:W(`labels.delete`),"aria-label":W(`labels.delete`),onClick:()=>n(null),disabled:!wa(A(e),t),style:{...i&&t.openPopup!==`compactOtherProperties`?pt:{}}})}}),X=e=>e.replace(/\b(Opt(?:ion)?|Alt)\b/i,W(Wo?`keys.option`:`keys.alt`)).replace(/\bShift\b/i,W(`keys.shift`)).replace(/\b(Enter|Return)\b/i,W(`keys.enter`)).replace(/\b(Ctrl|Cmd|Command|CtrlOrCmd)\b/gi,W(Wo?`keys.cmd`:`keys.ctrl`)).replace(/\b(Esc(?:ape)?)\b/i,W(`keys.escape`)).replace(/\b(Space(?:bar)?)\b/i,W(`keys.spacebar`)).replace(/\b(Del(?:ete)?)\b/i,W(`keys.delete`)),Zm=Y({name:`sendBackward`,label:`labels.sendBackward`,keywords:[`move down`,`zindex`,`layer`],icon:Mf,trackEvent:{category:`element`},perform:(e,t,n,r)=>({elements:Gn(e,t,r.scene),appState:t,captureUpdate:j.IMMEDIATELY}),keyPriority:40,keyTest:e=>e[L.CTRL_OR_CMD]&&!e.shiftKey&&e.code===M.BRACKET_LEFT,PanelComponent:({updateData:e,appState:t})=>(0,U.jsx)(`button`,{type:`button`,className:`zIndexButton`,onClick:()=>e(null),title:`${W(`labels.sendBackward`)} \u2014 ${X(`CtrlOrCmd+[`)}`,children:Mf})}),Qm=Y({name:`bringForward`,label:`labels.bringForward`,keywords:[`move up`,`zindex`,`layer`],icon:jf,trackEvent:{category:`element`},perform:(e,t,n,r)=>({elements:On(e,t,r.scene),appState:t,captureUpdate:j.IMMEDIATELY}),keyPriority:40,keyTest:e=>e[L.CTRL_OR_CMD]&&!e.shiftKey&&e.code===M.BRACKET_RIGHT,PanelComponent:({updateData:e,appState:t})=>(0,U.jsx)(`button`,{type:`button`,className:`zIndexButton`,onClick:()=>e(null),title:`${W(`labels.bringForward`)} \u2014 ${X(`CtrlOrCmd+]`)}`,children:jf})}),$m=Y({name:`sendToBack`,label:`labels.sendToBack`,keywords:[`move down`,`zindex`,`layer`],icon:Pf,trackEvent:{category:`element`},perform:(e,t)=>({elements:jo(e,t),appState:t,captureUpdate:j.IMMEDIATELY}),keyTest:e=>Wo?e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.BRACKET_LEFT:e[L.CTRL_OR_CMD]&&e.shiftKey&&e.code===M.BRACKET_LEFT,PanelComponent:({updateData:e,appState:t})=>(0,U.jsx)(`button`,{type:`button`,className:`zIndexButton`,onClick:()=>e(null),title:`${W(`labels.sendToBack`)} \u2014 ${X(Wo?`CtrlOrCmd+Alt+[`:`CtrlOrCmd+Shift+[`)}`,children:Pf})}),eh=Y({name:`bringToFront`,label:`labels.bringToFront`,keywords:[`move up`,`zindex`,`layer`],icon:Nf,trackEvent:{category:`element`},perform:(e,t)=>({elements:Nt(e,t),appState:t,captureUpdate:j.IMMEDIATELY}),keyTest:e=>Wo?e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.BRACKET_RIGHT:e[L.CTRL_OR_CMD]&&e.shiftKey&&e.code===M.BRACKET_RIGHT,PanelComponent:({updateData:e,appState:t})=>(0,U.jsx)(`button`,{type:`button`,className:`zIndexButton`,onClick:t=>e(null),title:`${W(`labels.bringToFront`)} \u2014 ${X(Wo?`CtrlOrCmd+Alt+]`:`CtrlOrCmd+Shift+]`)}`,children:Nf})}),th=Y({name:`selectAll`,label:`labels.selectAll`,icon:gm,trackEvent:{category:`canvas`},viewMode:!1,perform:(e,t,n,r)=>{if(t.selectedLinearElement?.isEditing)return!1;let i=e.filter(e=>!e.isDeleted&&!(I(e)&&e.containerId)&&!e.locked).reduce((e,t)=>(e[t.id]=!0,e),{});return{appState:{...t,...ks({editingGroupId:null,selectedElementIds:i},A(e),t,r),selectedLinearElement:Object.keys(i).length===1&&Zo(e[0])?new N(e[0],k(e)):null},captureUpdate:j.IMMEDIATELY}},keyTest:e=>e[L.CTRL_OR_CMD]&&e.key===L.A}),nh=Y({name:`duplicateSelection`,label:`labels.duplicateSelection`,icon:nf,trackEvent:{category:`element`},perform:(e,t,n,r)=>{if(t.selectedElementsAreBeingDragged)return!1;if(t.selectedLinearElement?.isEditing)try{return{elements:e,appState:N.duplicateSelectedPoints(t,r.scene),captureUpdate:j.IMMEDIATELY}}catch{return!1}let{duplicatedElements:i,elementsWithDuplicates:a}=ia({type:`in-place`,elements:e,idsOfElementsToDuplicate:k(Ls(e,t,{includeBoundTextElement:!0,includeElementsInFrames:!0})),appState:t,randomizeSeed:!0,overrides:({origElement:e,origIdToDuplicateId:t})=>{let n=e.frameId&&t.get(e.frameId);return{x:e.x+20/2,y:e.y+20/2,frameId:n??e.frameId}}});if(r.props.onDuplicate&&a){let t=r.props.onDuplicate(a,e);t&&(a=t)}return{elements:tn(a,k(i)),appState:{...t,...Yr(i,A(a),t)},captureUpdate:j.IMMEDIATELY}},keyTest:e=>e[L.CTRL_OR_CMD]&&e.key===L.D,PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let i=cN()===`mobile`;return(0,U.jsx)(J,{type:`button`,icon:nf,title:`${W(`labels.duplicateSelection`)} \u2014 ${X(`CtrlOrCmd+D`)}`,"aria-label":W(`labels.duplicateSelection`),onClick:()=>n(null),disabled:!wa(A(e),t),style:{...i&&t.openPopup!==`compactOtherProperties`?pt:{}}})}}),rh=new Set([`command_palette`,`export`]),ih=(e,t,n,r)=>{try{if(typeof window>`u`||re.VITE_WORKER_ID||re.VITE_APP_ENABLE_TRACKING!==`true`||!rh.has(e)||Jt())return;re.PROD||console.info(`trackEvent`,{category:e,action:t,label:n,value:r}),window.sa_event&&window.sa_event(t,{category:e,label:n,value:r})}catch(e){console.error(`error during analytics`,e)}},ah=(0,V.forwardRef)((e,t)=>{let{title:n,className:r,testId:i,active:a,icon:o,onClick:s}=e;return(0,U.jsx)(`button`,{type:`button`,ref:t,title:n,"data-testid":i,className:H(r,{active:a}),onClick:s,style:e.style,children:o},n)}),oh=e=>(0,U.jsx)(U.Fragment,{children:e.options.map(t=>e.type===`button`?(0,U.jsx)(ah,{icon:t.icon,title:t.text,testId:t.testId,active:t.active??e.value===t.value,onClick:n=>e.onClick(t.value,n)},t.text):(0,U.jsxs)(`label`,{className:H({active:e.value===t.value}),title:t.text,children:[(0,U.jsx)(`input`,{type:`radio`,name:e.group,onChange:()=>e.onChange(t.value),checked:e.value===t.value,"data-testid":t.testId}),t.icon]},t.text))}),sh=()=>(0,U.jsx)(`div`,{style:{width:1,height:`1rem`,backgroundColor:`var(--default-border-color)`,margin:`0 auto`}}),ch=V.createContext(null),lh=()=>V.useContext(ch),uh=e=>{let[t,n]=(0,V.useState)(null),r=sN(),{theme:i}=lh(),{container:a}=lN();return(0,V.useLayoutEffect)(()=>{t&&(t.className=``,t.classList.add(`excalidraw`,...e?.className?.split(/\s+/)||[]),t.classList.toggle(`excalidraw--mobile`,r.formFactor===`phone`),t.classList.toggle(`theme--dark`,i===P.DARK))},[t,i,r.formFactor,e?.className]),(0,V.useLayoutEffect)(()=>{let t=e?.parentSelector?a?.querySelector(e.parentSelector):document.body;if(!t)return;let r=document.createElement(`div`);return t.appendChild(r),n(r),()=>{t.removeChild(r)}},[a,e?.parentSelector]),t};function dh(e,t,n){(0,V.useEffect)(()=>{function r(r){let i=r;if(!e.current)return;let a=n?.(i,e.current);if(a!==!0){if(a===!1)return t(i);e.current.contains(i.target)||!document.documentElement.contains(i.target)||i.target.closest(`[data-radix-portal]`)||i.target===document.documentElement&&document.body.style.pointerEvents===`none`||i.target.closest(`[data-prevent-outside-click]`)||t(i)}}return document.addEventListener(z.POINTER_DOWN,r),document.addEventListener(z.TOUCH_START,r),()=>{document.removeEventListener(z.POINTER_DOWN,r),document.removeEventListener(z.TOUCH_START,r)}},[e,t,n])}var fh=e=>{let t=(0,V.useRef)(e);return Object.assign(t.current,e),t.current},ph=({cursorPosition:e,elementSize:t,containerSize:n,gap:r})=>$s(e+r+t>n?e-r-t:e+r,0,Math.max(0,n-t)),mh=({cursor:e,element:t,container:n,gap:r})=>({left:ph({cursorPosition:e.x-n.left,elementSize:t.width,containerSize:n.width,gap:r}),top:ph({cursorPosition:e.y-n.top,elementSize:t.height,containerSize:n.height,gap:r})}),hh=Yp.map((e,t)=>`<path fill="${t===0?`#fff`:``}" d="${e}" />`).join(``),gh=`url(data:${R.svg},${encodeURIComponent(`<svg viewBox="0 0 24 24" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke-linecap="round" stroke-linejoin="round"><g stroke="#fff" stroke-width="5">${hh}</g><g stroke="#1b1b1f" stroke-width="1.25">${hh}</g></svg>`)}) 2 21, auto`,_h=Tl(null),vh=({onCancel:e,onChange:t,onSelect:n,colorPickerType:r})=>{let i=uh({className:`excalidraw-eye-dropper-backdrop`,parentSelector:`.excalidraw-eye-dropper-container`}),a=lh(),o=uN(),s=aN(),c=fh({app:s,onCancel:e,onChange:t,onSelect:n,selectedElements:Ls(o,a)}),{container:l}=lN();(0,V.useLayoutEffect)(()=>{if(i)return i.style.cursor=gh,()=>{i.style.cursor=``}},[i]),(0,V.useEffect)(()=>{let e=u.current;if(!e||!s.canvas||!i)return;let t=!1,n=s.canvas.getContext(`2d`),o=({clientX:e,clientY:t})=>{let r=n.getImageData((e-a.offsetLeft)*window.devicePixelRatio,(t-a.offsetTop)*window.devicePixelRatio,1,1).data;return aa(r[0],r[1],r[2])},d=e=>a.theme===P.DARK?qn(e):e,f=({clientX:n,clientY:a,altKey:s})=>{let{top:l,left:u}=mh({cursor:{x:n,y:a},element:{width:e.offsetWidth,height:e.offsetHeight},container:i.getBoundingClientRect(),gap:7});e.style.top=`${l}px`,e.style.left=`${u}px`;let f=o({clientX:n,clientY:a});t&&c.onChange(r,d(f),c.selectedElements,{altKey:s}),e.style.background=f,e.style.setProperty(`--eye-dropper-preview-border-color`,ce(f)?`#fff`:`#222`)},p=()=>{c.onCancel()},m=(e,t)=>{c.onSelect(e,t)},h=e=>{t=!0,e.stopImmediatePropagation()},g=e=>{t=!1,l?.focus(),e.stopImmediatePropagation(),e.preventDefault(),m(d(o(e)),e)},_=e=>{e.key===L.ESCAPE&&(e.preventDefault(),e.stopImmediatePropagation(),p())};return i.tabIndex=-1,i.focus(),f({clientX:c.app.viewport.lastPosition.x,clientY:c.app.viewport.lastPosition.y,altKey:!1}),i.addEventListener(z.KEYDOWN,_),i.addEventListener(z.POINTER_DOWN,h),i.addEventListener(z.POINTER_UP,g),window.addEventListener(`pointermove`,f,{passive:!0}),window.addEventListener(z.BLUR,p),()=>{t=!1,i.removeEventListener(z.KEYDOWN,_),i.removeEventListener(z.POINTER_DOWN,h),i.removeEventListener(z.POINTER_UP,g),window.removeEventListener(`pointermove`,f),window.removeEventListener(z.BLUR,p)}},[c,s.canvas,i,r,l,a.offsetLeft,a.offsetTop,a.theme]);let u=(0,V.useRef)(null);return dh(u,()=>{e()},e=>!!e.target.closest(`.excalidraw-eye-dropper-trigger, .excalidraw-eye-dropper-backdrop`)),i?(0,Sl.createPortal)((0,U.jsx)(`div`,{ref:u,className:`excalidraw-eye-dropper-preview`}),i):null},yh=V.forwardRef(({children:e,padding:t,className:n,style:r,"data-viewport-ui":i,"data-viewport-ui-name":a},o)=>(0,U.jsx)(`div`,{className:H(`Island`,n),style:{"--padding":t,...r},"data-viewport-ui":i,"data-viewport-ui-name":a,ref:o,children:e})),bh=V.forwardRef(({className:e,container:t,children:n,style:r,onClose:i,onKeyDown:a,onFocusOutside:o,onPointerLeave:s,onPointerDownOutside:c,preventAutoFocusOnTouch:l=!1},u)=>{let d=sN(),f=d.formFactor===`phone`&&!d.isLandscape;return(0,U.jsx)(b,{container:t,children:(0,U.jsxs)(x,{ref:u,className:H(`focus-visible-none`,e),"data-prevent-outside-click":!0,side:f?`bottom`:`right`,align:f?`center`:`start`,alignOffset:-16,sideOffset:20,collisionBoundary:t??void 0,style:{zIndex:`var(--zIndex-ui-styles-popup)`,marginLeft:d.formFactor===`phone`?`0.5rem`:void 0},onPointerLeave:s,onKeyDown:a,onFocusOutside:o,onPointerDownOutside:c,onOpenAutoFocus:e=>{l&&d.isTouchScreen&&e.preventDefault()},onCloseAutoFocus:e=>{e.stopPropagation(),e.preventDefault(),t&&!zr(document.activeElement)&&t.focus(),i()},children:[(0,U.jsx)(yh,{padding:3,style:r,children:n}),(0,U.jsx)(S,{width:20,height:10,style:{fill:`var(--popup-bg-color)`,filter:`drop-shadow(rgba(0, 0, 0, 0.05) 0px 3px 2px)`}})]})})}),xh=()=>document.querySelector(`.excalidraw-wysiwyg`),Sh=()=>{let e=xh();return e?{start:e.selectionStart,end:e.selectionEnd}:null},Ch=e=>{setTimeout(()=>{let t=xh();t&&(t.focus(),e&&(t.selectionStart=e.start,t.selectionEnd=e.end))},0)},wh=(e,t,n,r)=>{t&&r&&r();let i=t&&n?Sh():null;e(),t&&n&&Ch(i)},Th=()=>{let[e,t]=(0,V.useState)(null);return{saveCaretPosition:(0,V.useCallback)(()=>{t(Sh())},[]),restoreCaretPosition:(0,V.useCallback)(()=>{setTimeout(()=>{let n=xh();n&&(n.focus(),e&&(n.selectionStart=e.start,n.selectionEnd=e.end,t(null)))},0)},[e]),clearSavedPosition:(0,V.useCallback)(()=>{t(null)},[]),hasSavedPosition:!!e}},Eh=(e=100)=>{let t=xh();if(t){let n=t.onblur;t.onblur=null,setTimeout(()=>{t.onblur=n},e)}},Dh=({palette:e,color:t})=>{if(!t)return null;for(let[n,r]of Object.entries(e))if(Array.isArray(r)){let e=r.indexOf(t);if(e>-1)return{colorName:n,shade:e}}else if(r===t)return{colorName:n,shade:null};return null},Oh=[[`q`,`w`,`e`,`r`,`t`],[`a`,`s`,`d`,`f`,`g`],[`z`,`x`,`c`,`v`,`b`]].flat(),kh=({color:e,palette:t})=>!Object.values(t).flat().includes(e),Ah=(e,t,n)=>{let r={elementBackground:`backgroundColor`,elementStroke:`strokeColor`},i=e.filter(e=>{if(e.isDeleted)return!1;let i=e[r[t]];return!lo(i)&&kh({color:i,palette:n})}),a=new Map;return i.forEach(e=>{let n=e[r[t]];a.has(n)?a.set(n,a.get(n)+1):a.set(n,1)}),[...a.entries()].sort((e,t)=>t[1]-e[1]).map(e=>e[0]).slice(0,5)},jh=Tl(null),Mh=({color:e,onChange:t,label:n,colorPickerType:r,placeholder:i})=>{let a=sN(),[o,s]=(0,V.useState)(e),[c,l]=(0,V.useState)(null),[u,d]=ad(jh);(0,V.useEffect)(()=>{s(e)},[e]);let f=(0,V.useCallback)(e=>{let n=e.toLowerCase().trim(),r=Bn(n);r?(t(r),l(null)):n.length===0?l(null):/^#?[0-9a-f]+$/.test(n)?l(W(`colorPicker.invalidHexLength`)):l(W(`colorPicker.invalidColor`)),s(n)},[t]),p=(0,V.useRef)(null),m=(0,V.useRef)(null);(0,V.useEffect)(()=>{p.current&&p.current.focus()},[u]);let[h,g]=ad(_h);return(0,V.useEffect)(()=>()=>{g(null)},[g]),(0,U.jsxs)(`div`,{className:`color-picker__input-label-container`,children:[(0,U.jsxs)(`div`,{className:H(`color-picker__input-label`,{"has-error":c}),children:[(0,U.jsx)(`div`,{className:`color-picker__input-hash`,children:`#`}),(0,U.jsx)(`input`,{ref:u===`hex`?p:void 0,style:{border:0,padding:0},spellCheck:!1,className:`color-picker-input`,"aria-label":n,"aria-invalid":!!c,onChange:e=>{f(e.target.value)},value:(o||``).replace(/^#/,``),onBlur:()=>{s(e),l(null)},tabIndex:-1,onFocus:()=>d(`hex`),onKeyDown:e=>{e.key!==L.TAB&&(e.key===L.ESCAPE&&m.current?.focus(),e.stopPropagation())},placeholder:i}),a.formFactor!==`phone`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{style:{width:`1px`,height:`1.25rem`,backgroundColor:`var(--default-border-color)`}}),(0,U.jsx)(`div`,{ref:m,className:H(`excalidraw-eye-dropper-trigger`,{selected:h}),onClick:()=>g(e=>e?null:{keepOpenOnAlt:!1,onSelect:e=>t(e),colorPickerType:r}),title:`${W(`labels.eyeDropper`)} \u2014 ${L.I.toLocaleUpperCase()} or ${X(`Alt`)} `,children:Xp})]})]}),c&&(0,U.jsx)(`div`,{className:`color-picker__error-message`,role:`alert`,children:c})]})},Nh=({color:e,keyLabel:t,isShade:n=!1})=>(0,U.jsxs)(`div`,{className:`color-picker__button__hotkey-label`,style:{color:ce(e)?`#fff`:`#000`},children:[n&&`⇧`,t]}),Ph=`excalidraw-color-dnd-ghost`,Fh=`excalidraw-color-dnd-active`,Ih=10,Lh=100,Rh=(e,t)=>{if(e.toLowerCase()===t.toLowerCase())return!0;let n=Cr(e);return n!==null&&n===Cr(t)},zh=(0,V.createContext)(null),Bh=()=>(0,V.useContext)(zh),Vh=({enabled:e,picks:t,onPicksChange:n})=>{let[r,i]=(0,V.useState)(null),a=(0,V.useRef)(null),o=(0,V.useRef)({enabled:e,picks:t,onPicksChange:n});o.current={enabled:e,picks:t,onPicksChange:n};let s=(0,V.useMemo)(()=>{let e=null,t=()=>{e?.activated?i({color:e.color,origin:e.origin,overIndex:e.overIndex,duplicateIndex:e.duplicateIndex,slotSpan:e.slotSpan}):i(null)},n=()=>{let t=a.current;if(!t||!e)return!1;let n=Array.from(t.querySelectorAll(`[data-top-pick-index]`)).sort((e,t)=>Number(e.dataset.topPickIndex)-Number(t.dataset.topPickIndex));if(!n.length)return!1;e.slotRects=n.map(e=>e.getBoundingClientRect());let[r,i]=e.slotRects;e.slotSpan=i?i.left-r.left:r.width+4;let o=t.getBoundingClientRect(),s=Math.max(Math.abs(e.slotSpan)/2,10);return e.hitRect={left:o.left-s,right:o.right+s,top:o.top-14,bottom:o.bottom+14},!0},r=(t,n)=>{e?.ghost&&(e.ghost.style.transform=`translate(${t-e.ghostW/2}px, ${n-e.ghostH/2}px)`)},s=(t,n,i,a)=>{e?.ghost&&(e.ghostW!==t||e.ghostH!==n)&&(e.ghostW=t,e.ghostH=n,e.ghost.style.width=`${t}px`,e.ghost.style.height=`${n}px`,r(i,a))},c=(n,i)=>{if(!e)return;let{sourceRect:a,sourceEl:o,color:s}=e,c=document.createElement(`div`);c.className=Ph;let l=document.createElement(`div`);if(l.className=`${Ph}__swatch`,lo(s))l.classList.add(`is-transparent`);else{let e=getComputedStyle(o).backgroundColor;l.style.backgroundColor=e&&e!==`rgba(0, 0, 0, 0)`?e:s}c.appendChild(l),document.body.appendChild(c),e.ghost=c,e.ghostW=a.width,e.ghostH=a.height,c.style.width=`${a.width}px`,c.style.height=`${a.height}px`,r(n,i),requestAnimationFrame(()=>{e?.ghost===c&&c.classList.add(`${Ph}--lifted`)}),document.body.classList.add(Fh),e.activated=!0,t()},l=(n,r)=>{if(!e?.hitRect)return;let{hitRect:i,slotRects:a}=e,c=null,l=null;if(n>=i.left&&n<=i.right&&r>=i.top&&r<=i.bottom){let t=0,r=1/0;if(a.forEach((e,i)=>{let a=Math.abs(n-(e.left+e.width/2));a<r&&(r=a,t=i)}),e.origin.kind===`swatch`){let n=o.current.picks.findIndex(t=>Rh(t,e.color));n===-1?c=t:l=n}else c=t}if(c!==e.overIndex||l!==e.duplicateIndex){e.overIndex=c,e.duplicateIndex=l;let{ghost:n}=e;n&&(n.classList.toggle(`${Ph}--over`,c!==null),n.classList.toggle(`${Ph}--blocked`,l!==null)),t()}if(c!==null){let t=e.slotRects[c];s(t.width,t.height,n,r)}else s(e.sourceRect.width,e.sourceRect.height,n,r)},u=t=>{if(!e?.ghost)return;let{ghost:n}=e;e.ghost=null,n.classList.add(`${Ph}--dropping`);let r=t.rect;r&&(n.style.width=`${r.width}px`,n.style.height=`${r.height}px`,n.style.transform=`translate(${r.left}px, ${r.top}px)`),window.setTimeout(()=>{n.classList.add(`${Ph}--fade`)},160),window.setTimeout(()=>{n.remove()},340)},d=()=>{let t=a.current;if(!t||!e?.activated)return;let n=Array.from(t.querySelectorAll(`[data-top-pick-index]`));for(let e of n)e.style.transition=`none`,e.style.transform=`none`;t.offsetWidth;for(let e of n)e.style.transition=``},f=()=>{let e=e=>{e.preventDefault(),e.stopPropagation()};window.addEventListener(`click`,e,{capture:!0,once:!0}),window.setTimeout(()=>{window.removeEventListener(`click`,e,{capture:!0})},100)},p=()=>{window.removeEventListener(`pointermove`,_,!0),window.removeEventListener(`pointerup`,v,!0),window.removeEventListener(`pointercancel`,y,!0),window.removeEventListener(`keydown`,b,!0)},m=()=>{p(),document.body.classList.remove(Fh),e?.activationTimer!=null&&window.clearTimeout(e.activationTimer),e=null,i(null)},h=t=>{e&&(d(),e.ghost&&(t?u({rect:e.sourceRect}):(e.ghost.remove(),e.ghost=null)),m())},g=(t,r)=>{if(!(!e||e.activated)){if(!n()){m();return}c(t,r),l(t,r)}},_=t=>{if(!(!e||t.pointerId!==e.pointerId)){if(e.lastX=t.clientX,e.lastY=t.clientY,!e.activated){if(Math.hypot(t.clientX-e.startX,t.clientY-e.startY)<Ih){e.activationTimer!==null&&(window.clearTimeout(e.activationTimer),e.activationTimer=null);return}let n=performance.now()-e.startTime;if(n<Lh){e.activationTimer===null&&(e.activationTimer=window.setTimeout(()=>{e&&(e.activationTimer=null,Math.hypot(e.lastX-e.startX,e.lastY-e.startY)>=Ih&&g(e.lastX,e.lastY))},Lh-n));return}if(g(t.clientX,t.clientY),!e?.activated)return}t.preventDefault(),r(t.clientX,t.clientY),l(t.clientX,t.clientY)}},v=t=>{if(!e||t.pointerId!==e.pointerId)return;if(!e.activated){m();return}t.preventDefault(),t.stopPropagation(),f();let{overIndex:n,origin:r,color:i,slotRects:a}=e,{picks:s,onPicksChange:c}=o.current;if(d(),n!==null){if(r.kind===`swatch`){if(!s.some(e=>Rh(e,i))){let e=[...s];e[n]=i,c(e)}}else if(r.index!==n){let e=[...s],[t]=e.splice(r.index,1);e.splice(n,0,t),c(e)}u({rect:a[n]})}else u({rect:e.sourceRect});m()},y=t=>{e&&t.pointerId===e.pointerId&&h(!0)},b=t=>{e?.activated&&t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),h(!0))};return{begin:(t,n,r)=>{!o.current.enabled||e||t.button!==0||!n||(e={pointerId:t.pointerId,startX:t.clientX,startY:t.clientY,startTime:performance.now(),lastX:t.clientX,lastY:t.clientY,activationTimer:null,color:n,origin:r,sourceEl:t.currentTarget,sourceRect:t.currentTarget.getBoundingClientRect(),activated:!1,ghost:null,ghostW:0,ghostH:0,slotRects:[],slotSpan:0,hitRect:null,overIndex:null,duplicateIndex:null},window.addEventListener(`pointermove`,_,!0),window.addEventListener(`pointerup`,v,!0),window.addEventListener(`pointercancel`,y,!0),window.addEventListener(`keydown`,b,!0))},destroy:()=>h(!1)}},[]);return(0,V.useEffect)(()=>()=>s.destroy(),[s]),(0,V.useMemo)(()=>({dragState:r,startSwatchDrag:(e,t)=>s.begin(e,t,{kind:`swatch`}),startPickDrag:(e,t,n)=>s.begin(e,n,{kind:`pick`,index:t}),setStripEl:e=>{a.current=e}}),[r,s])},Hh=({theme:e,colors:t,color:n,onChange:r,label:i})=>{let[a,o]=ad(jh),s=Bh(),c=(0,V.useRef)(null);return(0,V.useEffect)(()=>{c.current&&c.current.focus()},[n,a]),(0,U.jsx)(`div`,{className:`color-picker-content--default`,children:t.map((t,a)=>{let l=xr(t,e===P.DARK);return(0,U.jsxs)(`button`,{ref:n===t?c:void 0,tabIndex:-1,type:`button`,className:H(`color-picker__button color-picker__button--large has-outline`,{active:n===t,"is-transparent":t===`transparent`||!t}),onClick:()=>{r(t),o(`custom`)},onPointerDown:s?e=>s.startSwatchDrag(e,t):void 0,title:t,"aria-label":i,style:{"--swatch-color":l},children:[(0,U.jsx)(`div`,{className:`color-picker__button-outline`}),(0,U.jsx)(Nh,{color:l,keyLabel:a+1})]},a)})})},Uh=({theme:e,palette:t,color:n,onChange:r,activeShade:i,showHotKey:a=!0,excludedColors:o})=>{let s=Dh({color:n,palette:t}),[c,l]=ad(jh),u=Bh(),d=(0,V.useRef)(null);return(0,V.useEffect)(()=>{d.current&&c===`baseColors`&&d.current.focus()},[s?.colorName,c]),(0,U.jsx)(`div`,{className:`color-picker-content--default`,children:Object.entries(t).map(([t,n],c)=>{let f=(Array.isArray(n)?n[i]:n)||`transparent`;if(o?.includes(f))return(0,U.jsx)(`div`,{className:`color-picker__button color-picker__button--large`,style:{visibility:`hidden`},"aria-hidden":`true`},t);let p=Oh[c],m=xr(f,e===P.DARK),h=W(`colors.${t.replace(/\d+/,``)}`,null,``);return(0,U.jsxs)(`button`,{ref:s?.colorName===t?d:void 0,tabIndex:-1,type:`button`,className:H(`color-picker__button color-picker__button--large`,{"has-outline":!ce(f,255),active:s?.colorName===t,"is-transparent":f===`transparent`||!f}),onClick:()=>{r(f),l(`baseColors`)},onPointerDown:u?e=>u.startSwatchDrag(e,f):void 0,title:`${h}${f.startsWith(`#`)?` ${f}`:``} \u2014 ${p}`,"aria-label":`${h} \u2014 ${p}`,style:f?{"--swatch-color":m}:void 0,"data-testid":`color-${t}`,children:[(0,U.jsx)(`div`,{className:`color-picker__button-outline`}),a&&(0,U.jsx)(Nh,{color:m,keyLabel:p})]},t)})})},Wh=({children:e})=>(0,U.jsx)(`div`,{className:`color-picker__heading`,children:e}),Gh=({theme:e,color:t,onChange:n,palette:r,showHotKey:i})=>{let a=Dh({color:t||`transparent`,palette:r}),[o,s]=ad(jh),c=Bh(),l=(0,V.useRef)(null);if((0,V.useEffect)(()=>{l.current&&o===`shades`&&l.current.focus()},[a,o]),a){let{colorName:t,shade:u}=a,d=r[t];if(Array.isArray(d))return(0,U.jsx)(`div`,{className:`color-picker-content--default shades`,children:d.map((r,a)=>{let d=xr(r,e===P.DARK);return(0,U.jsxs)(`button`,{ref:a===u&&o===`shades`?l:void 0,tabIndex:-1,type:`button`,className:H(`color-picker__button color-picker__button--large`,{active:a===u}),"aria-label":`Shade`,title:`${t} - ${a+1}`,style:r?{"--swatch-color":d}:void 0,onClick:()=>{n(r),s(`shades`)},onPointerDown:c?e=>c.startSwatchDrag(e,r):void 0,children:[(0,U.jsx)(`div`,{className:`color-picker__button-outline`}),i&&(0,U.jsx)(Nh,{color:d,keyLabel:a+1,isShade:!0})]},a)})})}return(0,U.jsxs)(`div`,{className:`color-picker-content--default`,style:{position:`relative`},tabIndex:-1,children:[(0,U.jsx)(`button`,{type:`button`,tabIndex:-1,className:`color-picker__button color-picker__button--large color-picker__button--no-focus-visible`}),(0,U.jsx)(`div`,{tabIndex:-1,style:{position:`absolute`,top:0,left:0,right:0,bottom:0,display:`flex`,alignItems:`center`,justifyContent:`center`,textAlign:`center`,fontSize:`0.75rem`},children:W(`colorPicker.noShades`)})]})},Kh=(e,t,n)=>{let r=Math.ceil(n/5);switch(t??=-1,e){case`ArrowLeft`:{let e=t-1;return e<0?n-1:e}case`ArrowRight`:return(t+1)%n;case`ArrowDown`:{let e=t+5;return e>=n?t%5:e}case`ArrowUp`:{let e=t-5,i=e<0?5*r+e:e;return i>=n?void 0:i}}},qh=({e,colorObj:t,onChange:n,palette:r,customColors:i,setActiveColorPickerSection:a,activeShade:o,excludedColors:s})=>{if(t?.shade!=null&&[`Digit1`,`Digit2`,`Digit3`,`Digit4`,`Digit5`].includes(e.code)&&e.shiftKey){let i=Number(e.code.slice(-1))-1;return n(r[t.colorName][i]),a(`shades`),!0}if([`1`,`2`,`3`,`4`,`5`].includes(e.key)&&i[Number(e.key)-1])return n(i[Number(e.key)-1]),a(`custom`),!0;if(Oh.includes(e.key)){let t=Oh.indexOf(e.key),i=r[Object.keys(r)[t]],c=Array.isArray(i)?i[o]:i;return c==null||s?.includes(c)||(n(c),a(`baseColors`)),!0}return!1},Jh=({event:e,activeColorPickerSection:t,palette:n,color:r,onChange:i,customColors:a,setActiveColorPickerSection:o,updateData:s,activeShade:c,onEyeDropperToggle:l,onEscape:u,excludedColors:d})=>{if(e[L.CTRL_OR_CMD])return!1;if(e.key===L.ESCAPE)return u(e),!0;if(e.key===L.ALT)return l(!0),!0;if(e.key===L.I)return l(),!0;let f=Dh({color:r,palette:n});if(e.key===L.TAB){let s={custom:!!a.length,baseColors:!0,shades:f?.shade!=null,hex:!0},c=Object.entries(s).reduce((e,[t,n])=>(n&&e.push(t),e),[]),l=c.indexOf(t),u=e.shiftKey?-1:1,d=c[l+u>c.length-1?0:l+u<0?c.length-1:l+u];return d&&o(d),d===`custom`?i(a[0]):d===`baseColors`&&(Object.entries(n).find(([e,t])=>Array.isArray(t)?t.includes(r):t===r?e:null)||i(on.black)),e.preventDefault(),e.stopPropagation(),!0}if(qh({e,colorObj:f,onChange:i,palette:n,customColors:a,setActiveColorPickerSection:o,activeShade:c,excludedColors:d}))return!0;if(t===`shades`&&f){let{shade:t}=f,r=Kh(e.key,t,5);if(r!==void 0)return i(n[f.colorName][r]),!0}if(t===`baseColors`&&f){let{colorName:t}=f,r=Object.keys(n),a=r.indexOf(t),o=Kh(e.key,a,r.length),s=0;for(;o!==void 0&&s++<r.length;){let t=n[r[o]],i=Array.isArray(t)?t[c]:t;if(!d?.includes(i))break;o=Kh(e.key,o,r.length)}if(o!==void 0){let e=n[r[o]];return i(Array.isArray(e)?e[c]:e),!0}}if(t===`custom`){let t=r==null?0:a.indexOf(r),n=Kh(e.key,t,a.length);if(n!==void 0){let e=a[n];return i(e),!0}}return!1},Yh=V.forwardRef(({theme:e,color:t,onChange:n,type:r,elements:i,palette:a,updateData:o,children:s,showTitle:c,onEyeDropperToggle:l,onEscape:u,showHotKey:d=!0,excludedColors:f},p)=>{let m=c?r===`elementStroke`?W(`labels.stroke`):r===`elementBackground`?W(`labels.background`):null:null,[h]=V.useState(()=>r===`canvasBackground`?[]:Ah(i,r,a)),[g,_]=ad(jh),v=Bh(),y=Dh({color:t,palette:a});(0,V.useEffect)(()=>{if(!g){let e=!!t&&kh({color:t,palette:a});_(e&&!h.includes(t)?null:e?`custom`:y?.shade==null?`baseColors`:`shades`)}},[g,t,a,_,y,h]);let[b,x]=(0,V.useState)(y?.shade??(r===`elementBackground`?1:4));(0,V.useEffect)(()=>{y?.shade!=null&&x(y.shade);let e=e=>{e.key===L.ALT&&l(!1)};return document.addEventListener(z.KEYUP,e,{capture:!0}),()=>{document.removeEventListener(z.KEYUP,e,{capture:!0})}},[y,l]);let S=V.useRef(null);return(0,V.useImperativeHandle)(p,()=>S.current),(0,V.useEffect)(()=>{S?.current?.focus()},[]),(0,U.jsx)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":W(`labels.colorPicker`),children:(0,U.jsxs)(`div`,{ref:S,onKeyDown:e=>{Jh({event:e,activeColorPickerSection:g,palette:a,color:t,onChange:n,onEyeDropperToggle:l,customColors:h,setActiveColorPickerSection:_,updateData:o,activeShade:b,onEscape:u,excludedColors:f})&&(e.preventDefault(),e.stopPropagation())},className:`color-picker-content properties-content`,tabIndex:-1,children:[m&&(0,U.jsx)(`div`,{className:`color-picker__title`,children:m}),!!h.length&&(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Wh,{children:W(`colorPicker.mostUsedCustomColors`)}),(0,U.jsx)(Hh,{theme:e,colors:h,color:t,label:W(`colorPicker.mostUsedCustomColors`),onChange:n})]}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Wh,{children:W(`colorPicker.colors`)}),(0,U.jsx)(Uh,{theme:e,color:t,palette:a,onChange:n,activeShade:b,showHotKey:d,excludedColors:f})]}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Wh,{children:W(`colorPicker.shades`)}),(0,U.jsx)(Gh,{theme:e,color:t,onChange:n,palette:a,showHotKey:d})]}),s,v&&(0,U.jsx)(`div`,{className:`color-picker__tip`,children:W(`colorPicker.topPicksTip`)})]})})}),Xh=({theme:e,onChange:t,type:n,activeColor:r,topPicks:i,onReset:a,isCustomized:o})=>{let s=Bh(),p=s?.dragState??null,{container:m}=lN(),h;if(n===`elementStroke`&&(h=ol),n===`elementBackground`&&(h=de),n===`canvasBackground`&&(h=Ye),i&&(h=i),!h)return console.error(`Invalid type for TopPicks`),null;let g=e=>{if(!p||p.origin.kind!==`pick`||p.overIndex===null)return 0;let t=p.origin.index,n=p.overIndex;if(t===n)return 0;let r=e;return e===t?r=n:(e>t&&--r,r>=n&&(r+=1)),(r-e)*p.slotSpan},_=(0,U.jsxs)(`div`,{className:H(`color-picker__top-picks`,{"is-dnd-active":!!p}),ref:s?.setStripEl,children:[p&&(0,U.jsx)(`svg`,{className:`color-picker__top-picks__dnd-outline`,"aria-hidden":`true`,children:(0,U.jsx)(`rect`,{})}),h.map((n,i)=>{let a=g(i),o=xr(n,e===P.DARK);return(0,U.jsx)(`button`,{className:H(`color-picker__button`,{active:n===r,"is-transparent":n===`transparent`||!n,"has-outline":!ce(n,240),"is-dnd-source":p?.origin.kind===`pick`&&p.origin.index===i,"is-dnd-target":p?.origin.kind===`swatch`&&p.overIndex===i,"is-dnd-duplicate":p?.duplicateIndex===i}),style:{"--swatch-color":o,transform:a?`translateX(${a}px)`:void 0},type:`button`,title:n,onClick:()=>t(n),onPointerDown:s?e=>s.startPickDrag(e,i,n):void 0,"data-testid":`color-top-pick-${n}`,"data-top-pick-index":i,children:(0,U.jsx)(`div`,{className:`color-picker__button-outline`})},n)})]});return a?(0,U.jsxs)(c,{children:[(0,U.jsx)(d,{asChild:!0,children:_}),(0,U.jsx)(f,{container:m,children:(0,U.jsx)(u,{className:`color-picker__context-menu`,style:{zIndex:`var(--zIndex-ui-styles-popup)`},children:(0,U.jsx)(l,{className:`color-picker__context-menu-item`,disabled:!o,onSelect:a,children:W(`colorPicker.resetTopPicks`)})})})]}):_},Zh=({type:e,color:t,onChange:n,label:r,elements:i,palette:a=on,updateData:o,getOpenPopup:s,appState:c,excludedColors:l})=>{let{container:u}=lN(),d=cN(),f=d!==`full`,p=d===`mobile`,[,m]=ad(jh),[h,g]=ad(_h),_=(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Wh,{children:W(`colorPicker.hexCode`)}),(0,U.jsx)(Mh,{color:t||``,label:r,onChange:e=>{n(e)},colorPickerType:e,placeholder:W(`colorPicker.color`)})]}),v=(0,V.useRef)(null),y=()=>{v.current?.focus()};return(0,U.jsx)(bh,{container:u,style:{maxWidth:`13rem`},preventAutoFocusOnTouch:!!c.editingTextElement,onFocusOutside:e=>{if(e.target instanceof HTMLElement&&e.target.closest(`.color-picker__context-menu`)){e.preventDefault();return}ot(e.target)||(e.target instanceof HTMLElement&&e.target.matches(`:active`)?window.addEventListener(`pointerup`,y,{once:!0}):y()),e.preventDefault()},onPointerDownOutside:e=>{h&&e.preventDefault()},onClose:()=>{s()===e&&o({openPopup:null}),m(null),c.editingTextElement&&setTimeout(()=>{let e=document.querySelector(`.excalidraw-wysiwyg`);e&&e.focus()},0)},children:a?(0,U.jsx)(Yh,{ref:v,palette:a,excludedColors:l,color:t,theme:c.theme,onChange:e=>{let t=c.editingTextElement?Sh():null;n(e),c.editingTextElement&&t&&Ch(t)},onEyeDropperToggle:t=>{g(r=>t?(r||={keepOpenOnAlt:!0,onSelect:n,colorPickerType:e},r.keepOpenOnAlt=!0,r):t===!1||r?null:{keepOpenOnAlt:!1,onSelect:n,colorPickerType:e})},onEscape:e=>{h?g(null):o({openPopup:null})},type:e,elements:i,updateData:o,showTitle:f,showHotKey:!p,children:_}):_})},Qh=e=>e===`elementStroke`||e===`elementBackground`||e===`canvasBackground`,$h=({label:e,color:t,type:n,theme:r,mode:i=`background`,onToggle:a,editingTextElement:o})=>{let s=cN(),c=s!==`full`,l=s===`mobile`,u=Bh(),d=t?xr(t,r===P.DARK):null;return(0,U.jsxs)(T,{type:`button`,className:H(`color-picker__button active-color properties-trigger`,{"is-transparent":!t||t===`transparent`,"has-outline":!t||!ce(t,240),"compact-sizing":c,"mobile-border":l}),"aria-label":e,style:d?{"--swatch-color":d}:void 0,title:W(n===`elementStroke`?`labels.showStroke`:`labels.showBackground`),"data-openpopup":n,onClick:e=>{e.preventDefault(),e.stopPropagation(),o&&Eh(),a()},onPointerDown:u?e=>u.startSwatchDrag(e,t):void 0,children:[(0,U.jsx)(`div`,{className:`color-picker__button-outline`,children:!t&&xf}),c&&t&&i===`stroke`&&(0,U.jsx)(`div`,{className:`color-picker__button-background`,children:(0,U.jsx)(`span`,{style:{color:d&&ce(d,240)?`#fff`:`#111`},children:zm})})]})},eg=(0,V.memo)(({type:e,color:t,onChange:n,label:r,elements:i,palette:a=on,topPicks:o,updateData:s,appState:c,excludedColors:l,customizableTopPicks:u})=>{let d=(0,V.useRef)(c.openPopup);(0,V.useEffect)(()=>{d.current=c.openPopup},[c.openPopup]);let f=cN()!==`full`,p=!!u&&!f,m=p&&u?c.colorTopPicks?.[u]:null,h=Vh({enabled:p,picks:m?.length?m:o??(e===`elementStroke`?ol:de),onPicksChange:e=>{u&&s({colorTopPicks:{...c.colorTopPicks,[u]:e}})}});return(0,U.jsx)(zh.Provider,{value:p?h:null,children:(0,U.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,className:H(`color-picker-container`,{"color-picker-container--no-top-picks":f}),children:[!f&&(0,U.jsx)(Xh,{theme:c.theme,activeColor:t,onChange:t=>{n(t),Qh(c.openPopup)&&c.openPopup!==e&&setTimeout(()=>s({openPopup:e}),0)},type:e,topPicks:m?.length?m:o,isCustomized:!!m?.length,onReset:p&&u?()=>{s({colorTopPicks:{...c.colorTopPicks,[u]:null}})}:void 0}),!f&&(0,U.jsx)(sh,{}),(0,U.jsxs)(C,{open:c.openPopup===e,onOpenChange:t=>{t&&s({openPopup:e})},children:[(0,U.jsx)($h,{color:t,label:r,type:e,theme:c.theme,mode:e===`elementStroke`?`stroke`:`background`,editingTextElement:!!c.editingTextElement,onToggle:()=>{c.openPopup===e?s({openPopup:null}):(c.openPopup,s({openPopup:e}))}}),c.openPopup===e&&(0,U.jsx)(Zh,{type:e,color:t,onChange:n,label:r,elements:i,palette:a,excludedColors:l,updateData:s,getOpenPopup:()=>d.current,appState:c})]})]})})},(e,t)=>e.appState.openPopup===e.type||t.appState.openPopup===t.type?!1:e.type===t.type&&e.color===t.color&&e.label===t.label&&e.appState.openPopup===t.appState.openPopup&&e.palette===t.palette&&e.topPicks===t.topPicks&&e.excludedColors===t.excludedColors&&e.customizableTopPicks===t.customizableTopPicks&&e.appState.theme===t.appState.theme&&e.appState.colorTopPicks===t.appState.colorTopPicks&&!!e.appState.editingTextElement==!!t.appState.editingTextElement),tg=V.forwardRef(({className:e,placeholder:t,onChange:n},r)=>(0,U.jsxs)(`div`,{className:H(`QuickSearch__wrapper`,e),children:[um,(0,U.jsx)(`input`,{ref:r,className:`QuickSearch__input`,type:`text`,placeholder:t,onChange:e=>n(e.target.value.trim().toLowerCase())})]})),ng=({className:e,placeholder:t,children:n})=>{let r=!V.Children.count(n);return(0,U.jsx)(`div`,{className:H(`ScrollableList__wrapper`,e),role:`menu`,children:r?(0,U.jsx)(`div`,{className:`empty`,children:t}):n})},rg=({children:e,className:t=``,style:n,title:r})=>(0,U.jsxs)(`div`,{className:`dropdown-menu-group ${t}`,style:n,children:[r&&(0,U.jsx)(`p`,{className:`dropdown-menu-group-title`,children:r}),e]}),ig=rg;rg.displayName=`DropdownMenuGroup`;var ag=V.createContext({}),og=(e=``,t=!1,n=!1)=>`dropdown-menu-item dropdown-menu-item-base ${e} ${t?`dropdown-menu-item--selected`:``} ${n?`dropdown-menu-item--hovered`:``}`.trim(),sg=e=>{let t=(0,V.useContext)(ag);return us(e,e=>{t.onSelect?.(e)})},cg=({children:e,...t})=>(0,U.jsx)(`span`,{...t,style:{textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,...t.style},children:e}),lg=({textStyle:e,icon:t,shortcut:n,children:r,badge:i})=>{let a=sN();return(0,U.jsxs)(U.Fragment,{children:[t&&(0,U.jsx)(`div`,{className:`dropdown-menu-item__icon`,children:t}),(0,U.jsx)(`div`,{style:e,className:`dropdown-menu-item__text`,children:(0,U.jsx)(cg,{children:r})}),i&&(0,U.jsx)(`div`,{className:`dropdown-menu-item__badge`,children:i}),n&&a.formFactor!==`phone`&&(0,U.jsx)(`div`,{className:`dropdown-menu-item__shortcut`,children:n})]})},ug=({icon:e,badge:t,value:n,children:r,shortcut:i,className:a,selected:o,onSelect:s,...c})=>{let l=sg(s);return(0,U.jsx)(h,{className:`radix-menu-item`,onSelect:l,asChild:!0,children:(0,U.jsx)(`button`,{...c,value:n,className:og(a,o),title:c.title??c[`aria-label`],children:(0,U.jsx)(lg,{icon:e,shortcut:i,badge:t,children:r})})})};ug.displayName=`DropdownMenuItem`;var dg={GREEN:`green`,RED:`red`,BLUE:`blue`},fg=({type:e=dg.BLUE,children:t})=>{let{theme:n}=dN(),r={display:`inline-flex`,marginLeft:`auto`,padding:`2px 4px`,borderRadius:6,fontSize:9,fontFamily:`Cascadia, monospace`,border:n===P.LIGHT?`1.5px solid white`:`none`};switch(e){case dg.GREEN:Object.assign(r,{backgroundColor:`var(--background-color-badge)`,color:`var(--color-badge)`});break;case dg.RED:Object.assign(r,{backgroundColor:`pink`,color:`darkred`});break;case dg.BLUE:default:Object.assign(r,{background:`var(--color-promo)`,color:`var(--color-surface-lowest)`})}return(0,U.jsx)(`div`,{className:`DropDownMenuItemBadge`,style:r,children:t})};fg.displayName=`DropdownMenuItemBadge`,ug.Badge=fg;var pg=ug,mg=({event:e,inputRef:t,hoveredFont:n,filteredFonts:r,onClose:i,onSelect:a,onHover:o})=>{if(!e[L.CTRL_OR_CMD]&&e.shiftKey&&e.key.toLowerCase()===L.F)return t.current?.focus(),!0;if(e.key===L.ESCAPE)return i(),!0;if(e.key===L.ENTER)return n?.value&&a(n.value),!0;if(e.key===L.ARROW_DOWN)return n?.next?o(n.next.value):r[0]?.value&&o(r[0].value),!0;if(e.key===L.ARROW_UP)return n?.prev?o(n.prev.value):r[r.length-1]?.value&&o(r[r.length-1].value),!0},hg=e=>{switch(e){case As.Excalifont:case As.Virgil:return Kd;case As.Nunito:case As.Helvetica:return jp;case As[`Lilita One`]:return Ap;case As[`Comic Shanns`]:case As.Cascadia:return Np;default:return jp}},gg=(e,t)=>Object.entries(As).find(([,t])=>t===e)?.[0]??t[0]?.fontFace?.family??`Unknown`,_g=V.memo(({selectedFontFamily:e,hoveredFontFamily:t,onSelect:n,onHover:r,onLeave:i,onOpen:a,onClose:o})=>{let{container:s}=lN(),c=aN(),{fonts:l}=c,{showDeprecatedFonts:u}=oN(),d=cN(),[f,p]=(0,V.useState)(``),m=(0,V.useRef)(null),h=(0,V.useMemo)(()=>Array.from(Zn.registered.entries()).filter(([e,{metadata:t}])=>!t.private&&!t.fallback).map(([e,{metadata:t,fontFaces:n}])=>{let r={value:e,icon:hg(e),text:gg(e,n)};return t.deprecated&&Object.assign(r,{deprecated:t.deprecated,badge:{type:dg.RED,placeholder:W(`fontList.badge.old`)}}),r}).sort((e,t)=>e.text.toLowerCase()>t.text.toLowerCase()?1:-1),[]),g=(0,V.useMemo)(()=>new Set(l.getSceneFamilies()),[e]),_=(0,V.useMemo)(()=>h.filter(e=>g.has(e.value)),[h,g]),v=(0,V.useMemo)(()=>h.filter(e=>!g.has(e.value)&&(u||!e.deprecated)),[h,g,u]),y=(0,V.useMemo)(()=>Ee([..._,...v].filter(e=>e.text?.toLowerCase().includes(f))),[_,v,f]),b=(0,V.useMemo)(()=>{let n;return t?n=y.find(e=>e.value===t):e&&(n=y.find(t=>t.value===e)),!n&&f&&(y[0]?.value?r(y[0].value):i()),n},[t,e,f,y,r,i]),x=(0,V.useCallback)(e=>{let t=null;if(c.state.editingTextElement){let e=document.querySelector(`.excalidraw-wysiwyg`);e&&(t={start:e.selectionStart,end:e.selectionEnd})}n(e),c.state.editingTextElement&&t&&setTimeout(()=>{let e=document.querySelector(`.excalidraw-wysiwyg`);e&&t&&(e.focus(),e.selectionStart=t.start,e.selectionEnd=t.end)},0)},[n,c.state.editingTextElement]),S=(0,V.useCallback)(e=>{mg({event:e,inputRef:m,hoveredFont:b,filteredFonts:y,onSelect:x,onHover:r,onClose:o})&&(e.preventDefault(),e.stopPropagation())},[b,y,x,r,o]);(0,V.useEffect)(()=>(a(),()=>{o()}),[]);let C=(0,V.useMemo)(()=>y.filter(e=>g.has(e.value)),[y,g]),w=(0,V.useMemo)(()=>y.filter(e=>!g.has(e.value)),[y,g]),T=({font:t,order:n})=>{let i=(0,V.useRef)(null),a=t.value===b?.value,o=t.value===e;return(0,V.useEffect)(()=>{a&&(n===0?i.current?.scrollIntoView?.({block:`end`}):i.current?.scrollIntoView?.({block:`nearest`}))},[a,n]),(0,U.jsx)(`button`,{ref:i,type:`button`,value:t.value,className:og(``,o,a),title:t.text,tabIndex:o?0:-1,onClick:e=>{x(Number(e.currentTarget.value))},onMouseMove:()=>{b?.value!==t.value&&r(t.value)},children:(0,U.jsx)(lg,{icon:t.icon,badge:t.badge&&(0,U.jsx)(fg,{type:t.badge.type,children:t.badge.placeholder}),textStyle:{fontFamily:pa({fontFamily:t.value})},children:t.text})})},E=[];return C.length&&E.push((0,U.jsx)(ig,{title:W(`fontList.sceneFonts`),children:C.map((e,t)=>(0,U.jsx)(T,{font:e,order:t},e.value))},`group_1`)),w.length&&E.push((0,U.jsx)(ig,{title:W(`fontList.availableFonts`),children:w.map((e,t)=>(0,U.jsx)(T,{font:e,order:t+C.length},e.value))},`group_2`)),(0,U.jsxs)(bh,{className:`properties-content`,container:s,style:{width:`15rem`},onClose:()=>{o(),c.state.editingTextElement&&setTimeout(()=>{let e=document.querySelector(`.excalidraw-wysiwyg`);e&&e.focus()},0)},onPointerLeave:i,onKeyDown:S,preventAutoFocusOnTouch:!!c.state.editingTextElement,children:[d===`full`&&(0,U.jsx)(tg,{ref:m,placeholder:W(`quickSearch.placeholder`),onChange:tc(p,20)}),(0,U.jsx)(ng,{className:`dropdown-menu fonts manual-hover`,placeholder:W(`fontList.empty`),children:E.length?E:null})]})},(e,t)=>e.selectedFontFamily===t.selectedFontFamily&&e.hoveredFontFamily===t.hoveredFontFamily),vg=({selectedFontFamily:e,isOpened:t=!1,compactMode:n=!1})=>{let r=fN(),i=n?{...pt,width:`2rem`,height:`2rem`}:{};return(0,U.jsx)(T,{asChild:!0,children:(0,U.jsx)(`div`,{"data-openpopup":`fontFamily`,className:`properties-trigger`,children:(0,U.jsx)(J,{type:`toggle`,icon:qd,title:W(`labels.showFonts`),"aria-label":W(`labels.showFonts`),className:`standalone properties-trigger`,"data-testid":`font-family-show-fonts`,checked:t,onSelect:()=>{r(e=>({openPopup:e.openPopup===`fontFamily`?null:e.openPopup}))},style:{border:`none`,...i}})})})},yg=[{value:As.Excalifont,icon:Kd,text:W(`labels.handDrawn`),testId:`font-family-hand-drawn`},{value:As.Nunito,icon:jp,text:W(`labels.normal`),testId:`font-family-normal`},{value:As[`Comic Shanns`],icon:Np,text:W(`labels.code`),testId:`font-family-code`}];new Set(yg.map(e=>e.value));var bg=V.memo(({isOpened:e,selectedFontFamily:t,hoveredFontFamily:n,onSelect:r,onHover:i,onLeave:a,onPopupChange:o,compactMode:s=!1})=>{let c=(0,V.useMemo)(()=>yg,[]),l=(0,V.useCallback)(e=>{e&&r(e)},[r]);return(0,U.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,className:H(`FontPicker__container`,{"FontPicker__container--compact":s}),children:[!s&&(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{type:`button`,options:c,value:t,onClick:l})}),!s&&(0,U.jsx)(sh,{}),(0,U.jsxs)(C,{open:e,onOpenChange:o,children:[(0,U.jsx)(vg,{selectedFontFamily:t,isOpened:e,compactMode:s}),e&&(0,U.jsx)(_g,{selectedFontFamily:t,hoveredFontFamily:n,onSelect:l,onHover:i,onLeave:a,onOpen:()=>o(!0),onClose:()=>o(!1)})]})]})},(e,t)=>e.isOpened===t.isOpened&&e.selectedFontFamily===t.selectedFontFamily&&e.hoveredFontFamily===t.hoveredFontFamily),xg=({className:e,icon:t,size:n=`1em`})=>(0,U.jsx)(`span`,{className:e,style:{width:n,height:`100%`,margin:`0 0.5ex 0 0.5ex`,display:`inline-flex`,lineHeight:0,verticalAlign:`middle`,flex:`0 0 auto`},children:t}),Sg=({label:e,open:t,openTrigger:n,children:r,className:i,showCollapsedIcon:a=!0})=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{style:{cursor:`pointer`,display:`flex`,justifyContent:`space-between`,alignItems:`center`},className:i,onClick:n,children:[e,a&&(0,U.jsx)(xg,{icon:t?Pm:Nm})]}),t&&(0,U.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`},children:r})]}),Cg=Tl(!1),wg=4,Tg=`default`,Eg=e=>e.flatMap(e=>e.options),Dg=(e,t)=>{for(let n of e){let e=n.options.find(t);if(e)return e}return null},Og=(e,t)=>e.some(e=>e.options.some(t)),kg=e=>e.flatMap(e=>Array.from({length:Math.ceil(e.options.length/wg)},(t,n)=>e.options.slice(n*wg,n*wg+wg)));function Ag({visibleSections:e,hiddenSections:t=[],value:n,label:r,onChange:i,onClose:a}){let{container:o}=lN(),[s,c]=ad(Cg),l=Eg([...e,...t]),u=kg([...e,...s?t:[]]),d=e=>{let t=l.find(t=>t.keyBinding===e.key.toLowerCase());if(!(e.metaKey||e.altKey||e.ctrlKey)&&t)i(t.value),e.preventDefault();else if(e.key===L.TAB){let t=l.findIndex(e=>e.value===n);i(l[e.shiftKey?(l.length+t-1)%l.length:(t+1)%l.length].value)}else if(is(e.key)){let t=yd().rtl,r=l.findIndex(e=>e.value===n);if(r!==-1){let a=l.length,o=r;switch(e.key){case t?L.ARROW_LEFT:L.ARROW_RIGHT:o=(r+1)%a;break;case t?L.ARROW_RIGHT:L.ARROW_LEFT:o=(a+r-1)%a;break;case L.ARROW_DOWN:{let t=u.findIndex(e=>e.some(e=>e.value===n)),a=u[t];if(t!==-1&&a){let o=a.findIndex(e=>e.value===n),s=u[(t+1)%u.length];i((s[Math.min(o,s.length-1)]??l[r]).value),e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),e.stopPropagation();return}break}case L.ARROW_UP:{let t=u.findIndex(e=>e.some(e=>e.value===n)),a=u[t];if(t!==-1&&a){let o=a.findIndex(e=>e.value===n),s=u[(u.length+t-1)%u.length];i((s[Math.min(o,s.length-1)]??l[r]).value),e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),e.stopPropagation();return}break}}i(l[o].value)}e.preventDefault()}else (e.key===L.ESCAPE||e.key===L.ENTER)&&(e.preventDefault(),a());e.nativeEvent.stopImmediatePropagation(),e.stopPropagation()};(0,V.useEffect)(()=>{Og(t,e=>e.value===n)&&c(!0)},[n,t,c]);let f=e=>(0,U.jsx)(`div`,{className:`picker-content`,children:e.map(e=>(0,U.jsxs)(`button`,{type:`button`,className:H(`picker-option`,{active:n===e.value}),onClick:()=>{i(e.value)},title:e.keyBinding?`${e.text} \u2014 ${e.keyBinding.toUpperCase()}`:e.text,"aria-label":e.text||`none`,"aria-keyshortcuts":e.keyBinding||void 0,ref:t=>{n===e.value&&setTimeout(()=>{t?.focus()},0)},children:[e.icon,e.keyBinding&&(0,U.jsx)(`span`,{className:`picker-keybinding`,children:e.keyBinding})]},e.text))}),p=e=>e.map((e,t)=>e.name===Tg?(0,U.jsx)(V.Fragment,{children:f(e.options)},`${e.name}-${t}`):(0,U.jsxs)(`div`,{className:`picker-section`,children:[(0,U.jsx)(`div`,{className:`picker-section-label`,children:e.name}),f(e.options)]},`${e.name}-${t}`));return(0,U.jsx)(x,{className:`picker`,role:`dialog`,"aria-modal":`true`,"aria-label":r,side:`bottom`,align:`start`,sideOffset:12,alignOffset:12,style:{zIndex:`var(--zIndex-ui-styles-popup)`},onKeyDown:d,collisionBoundary:o??void 0,children:(0,U.jsxs)(`div`,{className:`picker-sections`,children:[p(e),t.length>0&&(0,U.jsx)(Sg,{label:W(`labels.more_options`),open:s,openTrigger:()=>{c(e=>!e)},className:`picker-collapsible`,children:(0,U.jsx)(`div`,{className:`picker-sections`,children:p(t)})})]})})}function jg({value:e,label:t,visibleSections:n,hiddenSections:r,onChange:i}){let[a,o]=V.useState(!1),s=(0,V.useMemo)(()=>Dg(n,t=>t.value===e)??Dg(r??[],t=>t.value===e),[n,r,e]);return(0,U.jsx)(`div`,{children:(0,U.jsxs)(C,{open:a,onOpenChange:e=>o(e),children:[(0,U.jsx)(T,{type:`button`,"aria-label":t,onClick:()=>o(!a),className:a?`active`:``,children:s?.icon}),a&&(0,U.jsx)(Ag,{visibleSections:n,hiddenSections:r,value:e,label:t,onChange:i,onClose:()=>{o(!1)}})]})})}var Mg=({label:e,value:t,onChange:n,min:r=0,max:i=100,step:a=10,minLabel:o=r,hasCommonValue:s=!0,testId:c})=>{let l=V.useRef(null),u=V.useRef(null);return(0,V.useEffect)(()=>{if(l.current&&u.current){let e=l.current,n=u.current,a=e.offsetWidth,o=parseFloat(getComputedStyle(e).getPropertyValue(`--slider-thumb-size`))||16,s=(t-r)/(i-r||1)*100,c=s/100*(a-o)+o/2;n.style.left=`${c}px`,e.style.background=`linear-gradient(to right, var(--color-slider-track) 0%, var(--color-slider-track) ${s}%, var(--button-bg) ${s}%, var(--button-bg) 100%)`}},[i,r,t]),(0,U.jsxs)(`label`,{className:`control-label`,children:[e,(0,U.jsxs)(`div`,{className:`range-wrapper`,children:[(0,U.jsx)(`input`,{style:{"--color-slider-track":s?void 0:`var(--button-bg)`},ref:l,type:`range`,min:r,max:i,step:a,onChange:e=>{n(+e.target.value)},value:t,className:`range-input`,"data-testid":c}),(0,U.jsx)(`div`,{className:`value-bubble`,ref:u,children:t===r?null:t}),(0,U.jsx)(`div`,{className:`zero-label`,children:o})]})]})},Ng=.1,Pg=e=>{let t=It(e.editorInterface);return{stylesPanelMode:t,isCompact:t!==`full`,isMobile:t===`mobile`}},Fg=(e,t,n,r=!1)=>{let i=k(Ls(e,t,{includeBoundTextElement:r}));return e.map(e=>i.get(e.id)||e.id===t.editingTextElement?.id?(Sr(e)||console.error(`[NONDELETED][INVARIANT] changeProperty(): skipping deleted selected/editing element`),n(e)):e)},Ig=function(e,t,n,r,i){let a=t.state.editingTextElement,o=A(e),s=null;if(a&&(s=n(a)),!s)if(wa(o,t.state)){let e=t.scene.getSelectedElements(t.state);s=Ze(r===!0?e:e.filter(e=>r(e)),n)??(typeof i==`function`?i(!0):i)}else s=typeof i==`function`?i(!1):i;return s},Lg=(e,t,n)=>Gs(t)||!t.autoResize?t:n.mutateElement(t,{x:e.textAlign===`left`?e.x:e.x+(e.width-t.width)/(e.textAlign===`center`?2:1),y:e.y+(e.height-t.height)/2}),Rg=(e,t,n,r,i)=>{let a=new Set,o=Fg(e,t,e=>{if(I(e)){let t=r(e);a.add(t);let i=B(e,{fontSize:t});return Ya(i,n.scene.getContainerElement(e),n.scene),i=Lg(e,i,n.scene),i}return e},!0);return Ls(e,t,{includeBoundTextElement:!0}).forEach(e=>{I(e)&&yn(e,n.scene)}),{elements:o,appState:{...t,currentItemFontSize:a.size===1?[...a][0]:i??t.currentItemFontSize},captureUpdate:j.IMMEDIATELY}};Y({name:`changeStrokeColor`,label:`labels.stroke`,trackEvent:!1,perform:(e,t,n)=>({...n?.currentItemStrokeColor&&{elements:Fg(e,t,e=>ti(e.type)?B(e,{strokeColor:n.currentItemStrokeColor}):e,!0)},appState:{...t,...n},captureUpdate:n?.currentItemStrokeColor?j.IMMEDIATELY:j.EVENTUALLY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let{stylesPanelMode:a}=Pg(r);return(0,U.jsxs)(U.Fragment,{children:[a===`full`&&(0,U.jsx)(`h3`,{"aria-hidden":`true`,children:W(`labels.stroke`)}),(0,U.jsx)(eg,{topPicks:ol,palette:xa,customizableTopPicks:`elementStroke`,type:`elementStroke`,label:W(`labels.stroke`),color:Ig(e,r,e=>e.strokeColor,!0,e=>e?null:t.currentItemStrokeColor),onChange:e=>n({currentItemStrokeColor:e}),elements:e,appState:t,updateData:n})]})}}),Y({name:`changeBackgroundColor`,label:`labels.changeBackground`,trackEvent:!1,perform:(e,t,n,r)=>{if(!n?.currentItemBackgroundColor)return{appState:{...t,...n},captureUpdate:j.EVENTUALLY};let i,a=r.scene.getSelectedElements(t);if(!lo(n.currentItemBackgroundColor)&&a.every(e=>ft(e)&&Hc(e.points))){let t=k(a);i=e.map(e=>t.has(e.id)&&ft(e)?B(e,{backgroundColor:n.currentItemBackgroundColor,...mi(e,!0)}):e)}else i=Fg(e,t,e=>B(e,{backgroundColor:n.currentItemBackgroundColor}));return{elements:i,appState:{...t,...n},captureUpdate:j.IMMEDIATELY}},PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let{stylesPanelMode:a}=Pg(r);return(0,U.jsxs)(U.Fragment,{children:[a===`full`&&(0,U.jsx)(`h3`,{"aria-hidden":`true`,children:W(`labels.background`)}),(0,U.jsx)(eg,{topPicks:de,palette:At,customizableTopPicks:`elementBackground`,type:`elementBackground`,label:W(`labels.background`),color:Ig(e,r,e=>e.backgroundColor,!0,e=>e?null:t.currentItemBackgroundColor),onChange:e=>n({currentItemBackgroundColor:e}),elements:e,appState:t,updateData:n})]})}});var zg=Y({name:`changeBucketFillBackgroundColor`,label:`labels.changeBackground`,trackEvent:!1,perform:(e,t,n)=>({appState:{...t,...n},captureUpdate:j.EVENTUALLY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let{stylesPanelMode:i}=Pg(r);return(0,U.jsxs)(U.Fragment,{children:[i===`full`&&(0,U.jsx)(`h3`,{"aria-hidden":`true`,children:W(`labels.background`)}),(0,U.jsx)(eg,{topPicks:Co,palette:At,excludedColors:[on.transparent],customizableTopPicks:`bucketFill`,type:`elementBackground`,label:W(`labels.background`),color:r.bucketFill.getBucketFillBackgroundColor(t.currentItemBackgroundColor),onChange:e=>n({currentItemBackgroundColor:e}),elements:e,appState:t,updateData:n})]})}});Y({name:`changeFillStyle`,label:`labels.fill`,trackEvent:!1,perform:(e,t,n,r)=>(ih(`element`,`changeFillStyle`,`${n} (${r.editorInterface.formFactor===`phone`?`mobile`:`desktop`})`),{elements:Fg(e,t,e=>B(e,{fillStyle:n})),appState:{...t,currentItemFillStyle:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let i=Ls(e,t),a=i.length>0&&i.every(e=>e.fillStyle===`zigzag`);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.fill`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{type:`button`,options:[{value:`hachure`,text:`${W(a?`labels.zigzag`:`labels.hachure`)} (${X(`Alt-Click`)})`,icon:a?Jf:Yf,active:a?!0:void 0,testId:`fill-hachure`},{value:`cross-hatch`,text:W(`labels.crossHatch`),icon:Xf,testId:`fill-cross-hatch`},{value:`solid`,text:W(`labels.solid`),icon:Zf,testId:`fill-solid`}],value:Ig(e,r,e=>e.fillStyle,e=>e.hasOwnProperty(`fillStyle`),e=>e?null:t.currentItemFillStyle),onClick:(e,t)=>{n(t.altKey&&e===`hachure`&&i.every(e=>e.fillStyle===`hachure`)?`zigzag`:e)}})})]})}});var Bg=e=>Gi.find(t=>tl(e.type,t)===e.strokeWidth)??null,Vg=(e,t)=>tl(e.type,t);Y({name:`changeStrokeWidth`,label:`labels.strokeWidth`,trackEvent:!1,perform:(e,t,n)=>(Jo(n,`actionChangeStrokeWidth: value must be defined`),{elements:Fg(e,t,e=>B(e,{strokeWidth:Vg(e,n)})),appState:{...t,currentItemStrokeWidthKey:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.strokeWidth`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`stroke-width`,options:[{value:`thin`,text:W(`labels.thin`),icon:Qf,testId:`strokeWidth-thin`},{value:`medium`,text:W(`labels.medium`),icon:$f,testId:`strokeWidth-medium`},{value:`bold`,text:W(`labels.bold`),icon:ep,testId:`strokeWidth-bold`}],value:Ig(e,r,Bg,e=>e.hasOwnProperty(`strokeWidth`),e=>e?null:t.currentItemStrokeWidthKey),onChange:e=>n(e)})})]})}),Y({name:`changeSloppiness`,label:`labels.sloppiness`,trackEvent:!1,perform:(e,t,n)=>({elements:Fg(e,t,e=>B(e,{seed:bo(),roughness:n})),appState:{...t,currentItemRoughness:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.sloppiness`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`sloppiness`,options:[{value:0,text:W(`labels.architect`),icon:rp},{value:1,text:W(`labels.artist`),icon:ip},{value:2,text:W(`labels.cartoonist`),icon:ap}],value:Ig(e,r,e=>e.roughness,e=>e.hasOwnProperty(`roughness`),e=>e?null:t.currentItemRoughness),onChange:e=>n(e)})})]})}),Y({name:`changeFreedrawMode`,label:`labels.pressure`,trackEvent:!1,perform:(e,t,n)=>{let r=n||`constant`;return{elements:Fg(e,t,e=>e.type===`freedraw`?B(e,{strokeOptions:{...e.strokeOptions,variability:r}}):e),appState:{...t,currentItemStrokeVariability:r},captureUpdate:j.IMMEDIATELY}},PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let a=Ig(e,r,e=>e.strokeOptions?.variability,e=>e.type===`freedraw`,e=>e?null:t.currentItemStrokeVariability)??t.currentItemStrokeVariability;if(i?.cycle){let e=a===`variable`;return(0,U.jsx)(J,{type:`button`,icon:e?sp:op,title:W(`labels.pressure`),"aria-label":W(`labels.pressure`),onClick:()=>n(e?`constant`:`variable`)})}return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.pressure`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`strokeOptions.variability`,options:[{value:`constant`,text:W(`labels.pressure_constant`),icon:op},{value:`variable`,text:W(`labels.pressure_variable`),icon:sp}],value:a,onChange:e=>n(e)})})]})}}),Y({name:`changeStrokeStyle`,label:`labels.strokeStyle`,trackEvent:!1,perform:(e,t,n)=>({elements:Fg(e,t,e=>B(e,{strokeStyle:n})),appState:{...t,currentItemStrokeStyle:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.strokeStyle`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`strokeStyle`,options:[{value:`solid`,text:W(`labels.strokeStyle_solid`),icon:Qf},{value:`dashed`,text:W(`labels.strokeStyle_dashed`),icon:tp},{value:`dotted`,text:W(`labels.strokeStyle_dotted`),icon:np}],value:Ig(e,r,e=>e.strokeStyle,e=>e.hasOwnProperty(`strokeStyle`),e=>e?null:t.currentItemStrokeStyle),onChange:e=>n(e)})})]})}),Y({name:`changeOpacity`,label:`labels.opacity`,trackEvent:!1,perform:(e,t,n)=>({elements:Fg(e,t,e=>B(e,{opacity:n}),!0),appState:{...t,currentItemOpacity:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,app:n,updateData:r})=>{let i=Ig(e,n,e=>e.opacity,!0,e=>e?null:t.currentItemOpacity);return(0,U.jsx)(Mg,{label:W(`labels.opacity`),value:i??t.currentItemOpacity,hasCommonValue:i!==null,onChange:r,min:0,max:100,step:10,testId:`opacity`})}}),Y({name:`changeFontSize`,label:`labels.fontSize`,trackEvent:!1,perform:(e,t,n,r)=>Rg(e,t,r,()=>(Jo(n,`actionChangeFontSize: Expected a font size value`),n),n),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let{isCompact:a}=Pg(r);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.fontSize`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`font-size`,options:[{value:ms.sm,text:W(`labels.small`),icon:Tp,testId:`fontSize-small`},{value:ms.md,text:W(`labels.medium`),icon:Ep,testId:`fontSize-medium`},{value:ms.lg,text:W(`labels.large`),icon:Dp,testId:`fontSize-large`},{value:ms.xl,text:W(`labels.veryLarge`),icon:Op,testId:`fontSize-veryLarge`}],value:Ig(e,r,e=>{if(I(e))return e.fontSize;let t=zo(e,r.scene.getNonDeletedElementsMap());return t?t.fontSize:null},e=>I(e)||zo(e,r.scene.getNonDeletedElementsMap())!==null,e=>e?null:t.currentItemFontSize||20),onChange:e=>{wh(()=>n(e),a,!!t.editingTextElement,i?.onPreventClose)}})})]})}});var Hg=Y({name:`decreaseFontSize`,label:`labels.decreaseFontSize`,icon:kp,trackEvent:!1,perform:(e,t,n,r)=>Rg(e,t,r,e=>Math.round(1/(1+Ng)*e.fontSize)),keyTest:e=>e[L.CTRL_OR_CMD]&&e.shiftKey&&(e.key===L.CHEVRON_LEFT||e.key===L.COMMA)}),Ug=Y({name:`increaseFontSize`,label:`labels.increaseFontSize`,icon:kp,trackEvent:!1,perform:(e,t,n,r)=>Rg(e,t,r,e=>Math.round(e.fontSize*(1+Ng))),keyTest:e=>e[L.CTRL_OR_CMD]&&e.shiftKey&&(e.key===L.CHEVRON_RIGHT||e.key===L.PERIOD)});Y({name:`changeFontFamily`,label:`labels.fontFamily`,trackEvent:!1,perform:(e,t,n,r)=>{let{cachedElements:i,resetAll:a,resetContainers:o,...s}=n;if(a)return{elements:Fg(e,t,e=>{let t=i?.get(e.id);return t?B(e,{...t}):e},!0),appState:{...t,...s},captureUpdate:j.NEVER};Jo(n,`actionChangeFontFamily: value must be defined`);let{currentItemFontFamily:c,currentHoveredFontFamily:l}=n,u=j.EVENTUALLY,d,f=!1;if(c)d=c,u=j.IMMEDIATELY;else if(l){d=l,u=j.EVENTUALLY;let n=Ls(e,t,{includeBoundTextElement:!0}).filter(e=>I(e));if(n.length>200)f=!0;else{let e=0,t=0;for(;e<n.length&&t<5e3;){let r=n[e];t+=r?.originalText.length||0,e++}t>5e3&&(f=!0)}}let p={appState:{...t,...s},captureUpdate:u};if(d&&!f){let n=new Map,a=new Set,s=!1,u=Array.from(Zn.loadedFontsCache.values()),f=Object.entries(As).find(([e,t])=>t===d)?.[0];l&&f&&u.some(e=>e.startsWith(f))&&(s=!0),Object.assign(p,{elements:Fg(e,t,e=>{if(I(e)&&(e.fontFamily!==d||c)){let t=B(e,{fontFamily:d,lineHeight:za(d)}),c=i?.get(e.containerId||``)||{},l=r.scene.getContainerElement(e);return o&&l&&c&&r.scene.mutateElement(l,{...c}),s||(a=new Set([...a,...Array.from(t.originalText)])),n.set(t,l),t}return e},!0)});let m=`10px ${pa({fontFamily:d})}`,h=Array.from(a.values()).join();if(s||window.document.fonts.check(m,h))for(let[e,t]of n)Ya(e,t,r.scene);else window.document.fonts.load(m,h).then(e=>{for(let[e,t]of n){let n=r.scene.getElement(e.id),i=t?r.scene.getElement(t.id):null;n&&Ya(n,i,r.scene)}r.fonts.onLoaded(e)})}return p},PanelComponent:({elements:e,appState:t,app:n,updateData:r})=>{let i=(0,V.useRef)(new Map),a=(0,V.useRef)(null),[o,s]=(0,V.useState)({}),c=(0,V.useRef)(!0),{stylesPanelMode:l,isCompact:u}=Pg(n),d=(0,V.useMemo)(()=>{let r=(e,r)=>Ig(e,n,e=>{if(I(e))return e.fontFamily;let t=zo(e,r);return t?t.fontFamily:null},e=>I(e)||zo(e,r)!==null,e=>e?null:t.currentItemFontFamily||mn);return o.openPopup===`fontFamily`&&t.openPopup===`fontFamily`?r(Array.from(i.current?.values()??[]),i.current):!o.openPopup&&t.openPopup!==`fontFamily`?r(e,n.scene.getNonDeletedElementsMap()):a.current},[o.openPopup,t,e,n]);return(0,V.useEffect)(()=>{a.current=d},[d]),(0,V.useEffect)(()=>{Object.keys(o).length&&(r(o),s({}))},[o]),(0,V.useEffect)(()=>(c.current=!1,()=>{c.current=!0}),[]),(0,U.jsxs)(U.Fragment,{children:[l===`full`&&(0,U.jsx)(`legend`,{children:W(`labels.fontFamily`)}),(0,U.jsx)(bg,{isOpened:t.openPopup===`fontFamily`,selectedFontFamily:d,hoveredFontFamily:t.currentHoveredFontFamily,compactMode:l!==`full`,onSelect:e=>{wh(()=>{s({openPopup:null,currentHoveredFontFamily:null,currentItemFontFamily:e}),i.current.clear()},u,!!t.editingTextElement)},onHover:e=>{s({currentHoveredFontFamily:e,cachedElements:new Map(i.current),resetContainers:!0})},onLeave:()=>{s({currentHoveredFontFamily:null,cachedElements:new Map(i.current),resetAll:!0})},onPopupChange:r=>{if(r){i.current.clear();let{editingTextElement:r}=t;if(r?.type===`text`){let e=n.scene.getElement(r.id);i.current.set(r.id,B(e||r,{},!0))}else{let n=Ls(e,t,{includeBoundTextElement:!0});for(let e of n)i.current.set(e.id,B(e,{},!0))}s({...o,openPopup:`fontFamily`})}else s({currentHoveredFontFamily:null,cachedElements:new Map(i.current),resetAll:!0}),i.current.clear(),u&&t.editingTextElement&&Ch(null)}})]})}}),Y({name:`changeTextAlign`,label:`Change text alignment`,trackEvent:!1,perform:(e,t,n,r)=>({elements:Fg(e,t,e=>{if(I(e)){let t=B(e,{textAlign:n});return Ya(t,r.scene.getContainerElement(e),r.scene),t}return e},!0),appState:{...t,currentItemTextAlign:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let a=r.scene.getNonDeletedElementsMap(),{isCompact:o}=Pg(r);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.textAlign`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`text-align`,options:[{value:`left`,text:W(`labels.left`),icon:Pp,testId:`align-left`},{value:`center`,text:W(`labels.center`),icon:Fp,testId:`align-horizontal-center`},{value:`right`,text:W(`labels.right`),icon:Ip,testId:`align-right`}],value:Ig(e,r,e=>{if(I(e))return e.textAlign;let t=zo(e,a);return t?t.textAlign:null},e=>I(e)||zo(e,a)!==null,e=>e?null:t.currentItemTextAlign),onChange:e=>{wh(()=>n(e),o,!!t.editingTextElement,i?.onPreventClose)}})})]})}}),Y({name:`changeVerticalAlign`,label:`Change vertical alignment`,trackEvent:{category:`element`},perform:(e,t,n,r)=>({elements:Fg(e,t,e=>{if(I(e)){let t=B(e,{verticalAlign:n});return Ya(t,r.scene.getContainerElement(e),r.scene),t}return e},!0),appState:{...t},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let{isCompact:a}=Pg(r);return(0,U.jsx)(`fieldset`,{children:(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`text-align`,options:[{value:je.TOP,text:W(`labels.alignTop`),icon:(0,U.jsx)(Lp,{theme:t.theme}),testId:`align-top`},{value:je.MIDDLE,text:W(`labels.centerVertically`),icon:(0,U.jsx)(zp,{theme:t.theme}),testId:`align-middle`},{value:je.BOTTOM,text:W(`labels.alignBottom`),icon:(0,U.jsx)(Rp,{theme:t.theme}),testId:`align-bottom`}],value:Ig(e,r,e=>{if(I(e)&&e.containerId)return e.verticalAlign;let t=zo(e,r.scene.getNonDeletedElementsMap());return t?t.verticalAlign:null},e=>I(e)||zo(e,r.scene.getNonDeletedElementsMap())!==null,e=>e?null:je.MIDDLE),onChange:e=>{wh(()=>n(e),a,!!t.editingTextElement,i?.onPreventClose)}})})})}}),Y({name:`changeRoundness`,label:`Change edge roundness`,trackEvent:!1,perform:(e,t,n)=>({elements:Fg(e,t,e=>Ke(e)?e:B(e,{roundness:n===`round`?{type:Rt(e.type)?Ta.ADAPTIVE_RADIUS:Ta.PROPORTIONAL_RADIUS}:null})),appState:{...t,currentItemRoundness:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,renderAction:i})=>{let a=jc(A(e),t).some(e=>e.roundness?.type===Ta.LEGACY);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.edges`)}),(0,U.jsxs)(`div`,{className:`buttonList`,children:[(0,U.jsx)(oh,{group:`edges`,options:[{value:`sharp`,text:W(`labels.sharp`),icon:cp},{value:`round`,text:W(`labels.round`),icon:lp}],value:Ig(e,r,e=>a?null:e.roundness?`round`:`sharp`,e=>!wo(e)&&e.hasOwnProperty(`roundness`),e=>e?null:t.currentItemRoundness),onChange:e=>n(e)}),i(`togglePolygon`)]})]})}});var Wg=e=>({visibleSections:[{name:`default`,options:[{value:null,text:W(`labels.arrowhead_none`),keyBinding:`q`,icon:(0,U.jsx)(up,{flip:e})},{value:`arrow`,text:W(`labels.arrowhead_arrow`),keyBinding:`w`,icon:(0,U.jsx)(dp,{flip:e})},{value:`triangle`,text:W(`labels.arrowhead_triangle`),icon:(0,U.jsx)(fp,{flip:e}),keyBinding:`e`},{value:`triangle_outline`,text:W(`labels.arrowhead_triangle_outline`),icon:(0,U.jsx)(pp,{flip:e}),keyBinding:`r`}]}],hiddenSections:[{name:`default`,options:[{value:`circle`,text:W(`labels.arrowhead_circle`),keyBinding:`a`,icon:(0,U.jsx)(mp,{flip:e})},{value:`circle_outline`,text:W(`labels.arrowhead_circle_outline`),keyBinding:`s`,icon:(0,U.jsx)(hp,{flip:e})},{value:`diamond`,text:W(`labels.arrowhead_diamond`),icon:(0,U.jsx)(gp,{flip:e}),keyBinding:`d`},{value:`diamond_outline`,text:W(`labels.arrowhead_diamond_outline`),icon:(0,U.jsx)(_p,{flip:e}),keyBinding:`f`},{value:`bar`,text:W(`labels.arrowhead_bar`),keyBinding:`z`,icon:(0,U.jsx)(vp,{flip:e})}]},{name:W(`labels.cardinality`),options:[{value:`cardinality_one`,text:W(`labels.arrowhead_cardinality_one`),icon:(0,U.jsx)(yp,{flip:e}),keyBinding:`x`},{value:`cardinality_many`,text:W(`labels.arrowhead_cardinality_many`),icon:(0,U.jsx)(bp,{flip:e}),keyBinding:`c`},{value:`cardinality_one_or_many`,text:W(`labels.arrowhead_cardinality_one_or_many`),icon:(0,U.jsx)(xp,{flip:e}),keyBinding:`v`},{value:`cardinality_exactly_one`,text:W(`labels.arrowhead_cardinality_exactly_one`),icon:(0,U.jsx)(Sp,{flip:e}),keyBinding:null},{value:`cardinality_zero_or_one`,text:W(`labels.arrowhead_cardinality_zero_or_one`),icon:(0,U.jsx)(Cp,{flip:e}),keyBinding:null},{value:`cardinality_zero_or_many`,text:W(`labels.arrowhead_cardinality_zero_or_many`),icon:(0,U.jsx)(wp,{flip:e}),keyBinding:null}]}]});Y({name:`changeArrowhead`,label:`Change arrowheads`,trackEvent:!1,perform:(e,t,n)=>(Jo(n,`actionChangeArrowhead: value must be defined`),{elements:Fg(e,t,e=>{if(Zo(e)){let{position:t,type:r}=n;if(t===`start`)return B(e,{startArrowhead:r});if(t===`end`)return B(e,{endArrowhead:r})}return e}),appState:{...t,[n.position===`start`?`currentItemStartArrowhead`:`currentItemEndArrowhead`]:n.type},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let i=yd().rtl,a=(0,V.useMemo)(()=>Wg(!i),[i]),o=(0,V.useMemo)(()=>Wg(!!i),[i]);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.arrowheads`)}),(0,U.jsxs)(`div`,{className:`iconSelectList buttonList`,children:[(0,U.jsx)(jg,{visibleSections:a.visibleSections,hiddenSections:a.hiddenSections,label:`arrowhead_start`,value:Ig(e,r,e=>Zo(e)&&Ea(e.type)?Wi(e.startArrowhead):t.currentItemStartArrowhead,!0,e=>e?null:t.currentItemStartArrowhead),onChange:e=>n({position:`start`,type:e})}),(0,U.jsx)(jg,{visibleSections:o.visibleSections,hiddenSections:o.hiddenSections,label:`arrowhead_end`,value:Ig(e,r,e=>Zo(e)&&Ea(e.type)?Wi(e.endArrowhead):t.currentItemEndArrowhead,!0,e=>e?null:t.currentItemEndArrowhead),onChange:e=>n({position:`end`,type:e})})]})]})}}),Y({name:`changeArrowProperties`,label:`Change arrow properties`,trackEvent:!1,perform:(e,t,n,r)=>!1,PanelComponent:({elements:e,appState:t,updateData:n,app:r,renderAction:i})=>(0,U.jsxs)(`div`,{className:`selected-shape-actions`,children:[i(`changeArrowhead`),i(`changeArrowType`)]})}),Y({name:`changeArrowType`,label:`Change arrow types`,trackEvent:!1,perform:(e,t,n,r)=>{let i=Fg(e,t,e=>{if(!wo(e))return e;let i=r.scene.getNonDeletedElementsMap(),a=N.getPointAtIndexGlobalCoordinates(e,0,i),o=N.getPointAtIndexGlobalCoordinates(e,-1,i),s=B(e,{x:n===Ca.elbow?a[0]:e.x,y:n===Ca.elbow?a[1]:e.y,roundness:n===Ca.round?{type:Ta.PROPORTIONAL_RADIUS}:null,elbowed:n===Ca.elbow,angle:n===Ca.elbow?0:e.angle,points:n===Ca.elbow||e.elbowed?[N.pointFromAbsoluteCoords({...e,x:a[0],y:a[1],angle:0},a,i),N.pointFromAbsoluteCoords({...e,x:a[0],y:a[1],angle:0},o,i)]:e.points});if(Ke(s)){s.fixedSegments=null;let e=r.scene.getNonDeletedElementsMap();r.dismissLinearEditor();let n=N.getPointAtIndexGlobalCoordinates(s,0,e),i=N.getPointAtIndexGlobalCoordinates(s,-1,e),a=s.startBinding&&e.get(s.startBinding.elementId),o=s.endBinding&&e.get(s.endBinding.elementId),c=a&&s.startBinding?{...s.startBinding,...No(s,a,`start`,e,t.isBindingEnabled)}:null,l=o&&s.endBinding?{...s.endBinding,...No(s,o,`end`,e,t.isBindingEnabled)}:null;s={...s,startBinding:c,endBinding:l,...vt(s,e,{points:[n,i].map(e=>O(e[0]-s.x,e[1]-s.y)),startBinding:c,endBinding:l,fixedSegments:null})}}else{let e=r.scene.getNonDeletedElementsMap();if(s.startBinding){let n=e.get(s.startBinding.elementId);n&&Mr(s,n,t.bindMode===`inside`?`inside`:`orbit`,`start`,r.scene)}if(s.endBinding){let n=e.get(s.endBinding.elementId);n&&Mr(s,n,t.bindMode===`inside`?`inside`:`orbit`,`end`,r.scene)}}return s}),a={...t,currentItemArrowType:n},o=t.selectedLinearElement?.elementId;if(o){let t=i.find(e=>e.id===o);t&&(a.selectedLinearElement=new N(t,k(e)))}return{elements:i,appState:a,captureUpdate:j.IMMEDIATELY}},PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.arrowtypes`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`arrowtypes`,options:[{value:Ca.sharp,text:W(`labels.arrowtype_sharp`),icon:Am,testId:`sharp-arrow`},{value:Ca.round,text:W(`labels.arrowtype_round`),icon:Mm,testId:`round-arrow`},{value:Ca.elbow,text:W(`labels.arrowtype_elbowed`),icon:jm,testId:`elbow-arrow`}],value:Ig(e,r,e=>wo(e)?e.elbowed?Ca.elbow:e.roundness?Ca.round:Ca.sharp:null,e=>wo(e),e=>e?null:t.currentItemArrowType),onChange:e=>n(e)})})]})});var Gg=()=>{let e=document.querySelector(`.excalidraw-tooltip`);if(e)return e;let t=document.createElement(`div`);return document.body.appendChild(t),t.classList.add(`excalidraw-tooltip`),t},Kg=(e,t,n=`bottom`)=>{let r=e.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight,o=t.left+t.width/2-r.width/2;o<0?o=5:o+r.width>=i&&(o=i-r.width-5);let s;n===`bottom`?(s=t.top+t.height+5,s+r.height>=a&&(s=t.top-r.height-5)):(s=t.top-r.height-5,s<0&&(s=t.top+t.height+5)),Object.assign(e.style,{top:`${s}px`,left:`${o}px`})},qg=(e,t,n,r)=>{t.classList.add(`excalidraw-tooltip--visible`),t.style.minWidth=r?`50ch`:`10ch`,t.style.maxWidth=r?`50ch`:`15ch`,t.textContent=n,Kg(t,e.getBoundingClientRect())},Jg=({children:e,label:t,long:n=!1,style:r,disabled:i})=>((0,V.useEffect)(()=>()=>Gg().classList.remove(`excalidraw-tooltip--visible`),[]),i?null:(0,U.jsx)(`div`,{className:`excalidraw-tooltip-wrapper`,onPointerEnter:e=>qg(e.currentTarget,Gg(),t,n),onPointerLeave:()=>Gg().classList.remove(`excalidraw-tooltip--visible`),style:r,children:e})),Yg=(e,t)=>typeof t==`function`?t(e):Array.isArray(t)?e:e[t],Xg=(e,t,n)=>{if(e?.isDestroyed)return;let r=e?.getAppState();if(!r){if(!n)return;console.warn(`useAppStateValue: excalidrawAPI not defined yet for internal component while it should always be defined. Are you sure you're rendering inside of <Excalidraw/> component tree?`),r=Object.assign({width:0,height:0,offsetLeft:0,offsetTop:0},si())}return Yg(r,t)};function Zg(e,t=!0){let n=mN(),[,r]=(0,V.useState)(0),i=(0,V.useRef)(null);return i.current||={selector:e,isInitialized:!!n,latestValue:Xg(n,e,t)},i.current.selector=e,!i.current.isInitialized&&n&&!n.isDestroyed&&(i.current.isInitialized=!0,i.current.latestValue=Xg(n,e,t)),(0,V.useEffect)(()=>{let e=i.current;if(!(!n||n.isDestroyed||!e))return n.onStateChange(e.selector,t=>{e.latestValue=t,r(e=>e+1)})},[n]),i.current.latestValue}function Qg(e,t){let n=mN(),r=(0,V.useRef)({selector:e,callback:t});r.current.selector=e,r.current.callback=t,(0,V.useEffect)(()=>{if(!(!n||n.isDestroyed))return r.current.callback(Xg(n,r.current.selector,!0),n.getAppState()),n.onStateChange(r.current.selector,(e,t)=>{r.current.callback(e,t)})},[n])}Y({name:`changeViewBackgroundColor`,label:`labels.canvasBackground`,trackEvent:!1,predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.changeViewBackgroundColor&&!t.viewModeEnabled,perform:(e,t,n)=>({appState:{...t,...n},captureUpdate:n?.viewBackgroundColor?j.IMMEDIATELY:j.EVENTUALLY}),PanelComponent:({elements:e,appState:t,updateData:n,appProps:r,data:i})=>(0,U.jsx)(eg,{palette:null,topPicks:Ye,label:W(`labels.canvasBackground`),type:`canvasBackground`,color:t.viewBackgroundColor,onChange:e=>n({viewBackgroundColor:e}),"data-testid":`canvas-background-picker`,elements:e,appState:t,updateData:n})});var $g=Y({name:`clearCanvas`,label:`labels.clearCanvas`,icon:ef,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.clearCanvas&&!t.viewModeEnabled&&t.openDialog?.name!==`elementLinkSelector`,perform:(e,t,n,r)=>(r.imageCache.clear(),{elements:e.map(e=>B(e,{isDeleted:!0})),appState:{...si(),files:{},theme:t.theme,penMode:t.penMode,penDetected:t.penDetected,exportBackground:t.exportBackground,exportEmbedScene:t.exportEmbedScene,gridSize:t.gridSize,gridStep:t.gridStep,gridModeEnabled:t.gridModeEnabled,stats:t.stats,colorTopPicks:t.colorTopPicks,activeTool:t.activeTool.type===`image`?{...t.activeTool,type:r.state.preferredSelectionTool.type}:t.activeTool},captureUpdate:j.IMMEDIATELY})}),e_=Y({name:`zoomIn`,label:`buttons.zoomIn`,viewMode:!0,navigation:!0,icon:Zd,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>(r.requestUnfollow(),{appState:{...t,...ha({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:Qi(t.zoom.value+Rn)},t)},captureUpdate:j.EVENTUALLY}),PanelComponent:({updateData:e})=>{let t=Zg(e=>e.zoom.value);return(0,U.jsx)(J,{type:`button`,className:`zoom-in-button zoom-button`,icon:Zd,title:`${W(`buttons.zoomIn`)} \u2014 ${X(`CtrlOrCmd++`)}`,"aria-label":W(`buttons.zoomIn`),disabled:t>=30,onClick:()=>{e(null)}})},keyTest:e=>(e.code===M.EQUAL||e.code===M.NUM_ADD)&&(e[L.CTRL_OR_CMD]||e.shiftKey)}),t_=Y({name:`zoomOut`,label:`buttons.zoomOut`,icon:Qd,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>(r.requestUnfollow(),{appState:{...t,...ha({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:Qi(t.zoom.value-Rn)},t)},captureUpdate:j.EVENTUALLY}),PanelComponent:({updateData:e})=>{let t=Zg(e=>e.zoom.value);return(0,U.jsx)(J,{type:`button`,className:`zoom-out-button zoom-button`,icon:Qd,title:`${W(`buttons.zoomOut`)} \u2014 ${X(`CtrlOrCmd+-`)}`,"aria-label":W(`buttons.zoomOut`),disabled:t<=Os,onClick:()=>{e(null)}})},keyTest:e=>(e.code===M.MINUS||e.code===M.NUM_SUBTRACT)&&(e[L.CTRL_OR_CMD]||e.shiftKey)}),n_=Y({name:`resetZoom`,label:`buttons.resetZoom`,icon:$d,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>{r.requestUnfollow();let i=t.scrollConstraints?.lockZoom?t.scrollConstraints.zoom:1;return{appState:{...t,...ha({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:Qi(i)},t)},captureUpdate:j.EVENTUALLY}},PanelComponent:({updateData:e})=>{let t=Zg(e=>e.zoom.value);return(0,U.jsx)(Jg,{label:W(`buttons.resetZoom`),style:{height:`100%`},children:(0,U.jsxs)(J,{type:`button`,className:`reset-zoom-button zoom-button`,title:W(`buttons.resetZoom`),"aria-label":W(`buttons.resetZoom`),onClick:()=>{e(null)},children:[(t*100).toFixed(0),`%`]})})},keyTest:e=>(e.code===M.ZERO||e.code===M.NUM_ZERO)&&(e[L.CTRL_OR_CMD]||e.shiftKey)}),r_=e=>[e.x,e.y,e.x+e.width,e.y+e.height];Y({name:`zoomToFitSelectionInViewport`,label:`labels.zoomToFitViewport`,icon:xm,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>{r.requestUnfollow();let i=r.scene.getSelectedElements(t),a=Ui({bounds:i.length?bc(A(i)):t.scrollConstraints?r_(t.scrollConstraints):bc(A(e)),appState:t,fit:`scale-down`,canvasOffsets:r.viewport.getOffsets()});return{...a,appState:{...a.appState,...$c(a.appState)}}},keyTest:e=>e.code===M.TWO&&e.shiftKey&&!e.altKey&&!e[L.CTRL_OR_CMD]}),Y({name:`zoomToFitSelection`,label:`helpDialog.zoomToSelection`,icon:xm,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>{r.requestUnfollow();let i=r.scene.getSelectedElements(t),a=Ui({bounds:i.length?bc(A(i)):t.scrollConstraints?r_(t.scrollConstraints):bc(A(e)),appState:t,fit:`contain`,canvasOffsets:r.viewport.getOffsets()});return{...a,appState:{...a.appState,...$c(a.appState)}}},keyTest:e=>e.code===M.THREE&&e.shiftKey&&!e.altKey&&!e[L.CTRL_OR_CMD]}),Y({name:`zoomToFit`,label:`helpDialog.zoomToFit`,icon:xm,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>{r.requestUnfollow();let i=Ui({bounds:t.scrollConstraints?r_(t.scrollConstraints):bc(A(e)),appState:t,fit:`scale-down`,canvasOffsets:r.viewport.getOffsets()});return{...i,appState:{...i.appState,...$c(i.appState)}}},keyTest:e=>e.code===M.ONE&&e.shiftKey&&!e.altKey&&!e[L.CTRL_OR_CMD]});var i_=Y({name:`toggleTheme`,label:(e,t)=>t.theme===P.DARK?`buttons.lightMode`:`buttons.darkMode`,keywords:[`toggle`,`dark`,`light`,`mode`,`theme`],icon:(e,t)=>e.theme===P.LIGHT?rf:af,viewMode:!0,trackEvent:{category:`canvas`},perform:(e,t,n,r)=>{let i=n||(t.theme===P.LIGHT?P.DARK:P.LIGHT);return r.props.onThemeChange?(r.props.onThemeChange(i),!1):{appState:{...t,theme:i},captureUpdate:j.EVENTUALLY}},keyTest:e=>!e[L.CTRL_OR_CMD]&&e.altKey&&e.shiftKey&&e.code===M.D,predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.toggleTheme}),a_=({app:e,options:t,activeTool:n,defaultOption:r,"data-testid":i,onToolChange:a,displayedOption:o})=>{let[s,c]=(0,V.useState)(!1),l=n.type,u=o.type===l,{container:d}=lN();return!t.some(e=>e.type===l)&&s&&c(!1),(0,V.useEffect)(()=>{let t=e.onPointerDownEmitter.on(()=>{c(!1)});return()=>t?.()},[e]),(0,U.jsxs)(C,{open:s,children:[(0,U.jsx)(T,{asChild:!0,children:(0,U.jsx)(J,{className:H({fillable:o.fillable}),type:`toggle`,icon:o.icon,checked:u,disabled:t.every(t=>d_(e,t.type)),title:Mo(o.title),"aria-label":Mo(o.title),"data-testid":i,onSelect:()=>{c(e=>!e),a(r)}})}),(0,U.jsx)(x,{className:`tool-popover-content`,sideOffset:16,collisionBoundary:d??void 0,children:t.map(({type:t,icon:n,title:r,fillable:i})=>(0,U.jsx)(J,{className:H({fillable:i}),type:`toggle`,icon:n,checked:l===t,disabled:d_(e,t),title:Mo(t),"aria-label":Mo(t),"data-testid":`toolbar-${t}`,onSelect:()=>{e.state.activeTool.type!==t&&(ih(`toolbar`,t,`ui`),e.setActiveTool({type:t}),a?.(t))}},t))})]})},o_=(e=>e)({hand:{icon:Hp,letterKey:L.H,toggle:!0},selection:{icon:Rd,letterKey:L.V,numericKey:L[1],fillable:!0},rectangle:{icon:Bd,letterKey:L.R,numericKey:L[2],fillable:!0},diamond:{icon:Vd,letterKey:L.D,numericKey:L[3],fillable:!0},ellipse:{icon:Hd,letterKey:L.O,numericKey:L[4],fillable:!0},arrow:{icon:Ud,letterKey:L.A,numericKey:L[5],fillable:!0},line:{icon:Wd,letterKey:L.L,numericKey:L[6],fillable:!0},freedraw:{icon:Kd,letterKey:[L.P,L.X],numericKey:L[7]},text:{icon:qd,letterKey:L.T,numericKey:L[8]},image:{icon:Yd,numericKey:L[9]},eraser:{icon:Xd,letterKey:L.E,numericKey:L[0],toggle:!0},frame:{icon:Zp,letterKey:L.F},autoshape:{icon:nm,letterKey:L.X,shiftKey:!0,fillable:!1},embeddable:{icon:tf},laser:{icon:rm,letterKey:L.K},bucketfill:{icon:bf,letterKey:L.B},lasso:{icon:zd,fillable:!1}}),s_=Object.keys(o_).filter(e=>o_[e].toggle),c_=e=>{let{letterKey:t,shiftKey:n}=o_[e];if(!t)return t;let r=Mo(typeof t==`string`?t:t[0]);return n?X(`Shift+${r}`):r},l_=e=>{let t=c_(e),{numericKey:n}=o_[e];return t&&n!=null?`${t} ${W(`helpDialog.or`)} ${n}`:`${t||n}`},u_=(e,t,n=!1)=>{let r=e.toLowerCase();for(let i of Object.keys(o_)){let{letterKey:a,numericKey:o,shiftKey:s}=o_[i];if(n===!!s&&(o!=null&&e===o||a&&(typeof a==`string`?a===r:a.includes(r))))return i===`selection`?t.state.preferredSelectionTool.type:i}return null},d_=(e,t)=>e.props.activeTool!=null&&e.props.activeTool.type!==t,f_=(e,t)=>{let n=o_[e],r=t?.shortcutType??e,i=({app:i,activeTool:a,hideKeyBinding:o,hideShortcut:s})=>{let c=Mo(W(`toolBar.${e}`)),l=s?null:l_(r);return(0,U.jsx)(J,{className:H({fillable:n.fillable}),type:`toggle`,icon:n.icon,checked:a.type===e,disabled:d_(i,e),title:l?`${c} \u2014 ${l}`:c,keyBindingLabel:o||s?void 0:o_[r].numericKey||c_(r),"aria-label":c,"aria-keyshortcuts":l??void 0,"data-testid":`toolbar-${e}`,onSelect:({pointerType:n})=>{if(!i.state.penDetected&&n===`pen`&&i.togglePenMode(!0),t?.onSelect){t.onSelect(i,{pointerType:n});return}i.state.activeTool.type!==e&&(ih(`toolbar`,e,`ui`),i.setActiveTool({type:e}))}})};return i.displayName=`${Mo(e)}IconButton`,i},p_=f_(`hand`),m_=f_(`rectangle`),h_=f_(`diamond`),g_=f_(`ellipse`),__=f_(`arrow`),v_=f_(`line`),y_=f_(`freedraw`),b_=f_(`text`),x_=f_(`image`),S_=f_(`eraser`),C_=f_(`frame`),w_=f_(`selection`,{onSelect:(e,{pointerType:t})=>{if(e.state.activeTool.type===`selection`&&t!==null){e.setActiveTool({type:`lasso`});return}e.state.activeTool.type!==`selection`&&(ih(`toolbar`,`selection`,`ui`),e.setActiveTool({type:`selection`}))}}),T_=f_(`lasso`,{shortcutType:`selection`}),E_=({app:e,activeTool:t,setAppState:n})=>{let r=[{type:`selection`,icon:o_.selection.icon,fillable:o_.selection.fillable,title:Mo(W(`toolBar.selection`))},{type:`lasso`,icon:o_.lasso.icon,fillable:o_.lasso.fillable,title:Mo(W(`toolBar.lasso`))}],i=r.find(t=>t.type===e.state.preferredSelectionTool.type)||r[0];return(0,U.jsx)(a_,{app:e,options:r,activeTool:t,defaultOption:e.state.preferredSelectionTool.type,"data-testid":`toolbar-selection`,onToolChange:t=>{(t===`selection`||t===`lasso`)&&(e.setActiveTool({type:t}),n({preferredSelectionTool:{type:t,initialized:!0}}))},displayedOption:i})},D_=({app:e,activeTool:t})=>{let n=[{type:`freedraw`,icon:o_.freedraw.icon,fillable:o_.freedraw.fillable,title:Mo(W(`toolBar.freedraw`))},{type:`autoshape`,icon:o_.autoshape.icon,fillable:o_.autoshape.fillable,title:Mo(W(`toolBar.autoshape`))}],[r,i]=(0,V.useState)(t.type===`autoshape`?`autoshape`:`freedraw`);return(0,V.useEffect)(()=>{(t.type===`freedraw`||t.type===`autoshape`)&&i(t.type)},[t.type]),(0,U.jsx)(a_,{app:e,options:n,activeTool:t,defaultOption:r,"data-testid":`toolbar-freedraw`,onToolChange:t=>{(t===`freedraw`||t===`autoshape`)&&(i(t),e.setActiveTool({type:t}))},displayedOption:n.find(e=>e.type===r)||n[0]})},O_=Y({name:`finalize`,label:``,trackEvent:!1,perform:(e,t,n,r)=>{let i=!0,a=e,{focusContainer:o,scene:s}=r,c=s.getNonDeletedElementsMap(),l=t.activeTool.type===`autoshape`;if(n&&t.selectedLinearElement){let{event:i,sceneCoords:o}=n,u=N.getElement(t.selectedLinearElement.elementId,c);Jo(u,`Arrow element should exist if selectedLinearElement is set`),Jo(o,`sceneCoords should be defined if actionFinalize is called with event`);let d=N.handlePointerUp(i,t.selectedLinearElement,t,r.scene);if(xi(u)&&!t.selectedLinearElement.segmentMidPointHoveredCoords){let e=!!t.newElement,n=e||!t.selectedLinearElement.selectedPointsIndices?[u.points.length-1]:t.selectedLinearElement.selectedPointsIndices,a=Yc(i),l=i[L.CTRL_OR_CMD]?null:r.getEffectiveGridSize();sn(u,n.reduce((e,t)=>(e.set(t,{point:a?u.points[t]:N.createPointAt(u,c,o.x-d.pointerOffset.x,o.y-d.pointerOffset.y,l)}),e),new Map)??new Map,o.x,o.y,s,t,{newArrow:e,altKey:i.altKey,angleLocked:a,gridSize:r.getEffectiveGridSize()})}else ft(u)&&t.selectedLinearElement?.isEditing&&!t.newElement&&!We(u.points)&&s.mutateElement(u,{polygon:!1});if(d!==t.selectedLinearElement){u&&ys(u)&&(a=a.map(e=>e.id===u.id?B(e,{isDeleted:!0}):e));let n=t.activeTool?.locked;return{elements:u.points.length<2||ys(u)?e.map(e=>e.id===u.id?B(e,{isDeleted:!0}):e):a,appState:{...t,cursorButton:`up`,selectedElementIds:l?{}:t.selectedElementIds,selectedLinearElement:n||l?null:{...d,selectedPointsIndices:null,isEditing:!1,initialState:{...d.initialState,lastClickedPoint:-1},pointerOffset:{x:0,y:0}},selectionElement:null,suggestedBinding:null,hoveredArrowTextAnchor:null,newElement:null,multiElement:null},captureUpdate:j.IMMEDIATELY}}}window.document.activeElement instanceof HTMLElement&&o();let u=r.drawShape.hasPendingGesture();(u||l)&&(r.drawShape.finalize(),u&&(a=r.scene.getElementsIncludingDeleted()));let d=null;if(t.multiElement)d=t.multiElement;else if(!l&&!u&&(t.newElement?.type===`freedraw`||xi(t.newElement)))d=t.newElement;else if(Object.keys(t.selectedElementIds).length===1){let e=c.get(Object.keys(t.selectedElementIds)[0]);e&&(d=e)}if(d){if(t.selectedLinearElement&&t.multiElement&&d.type!==`freedraw`&&t.lastPointerDownWith!==`touch`){let{points:e}=d,{lastCommittedPoint:n}=t.selectedLinearElement;if((!n||e[e.length-1]!==n)&&(i=!1,s.mutateElement(d,{points:d.points.slice(0,-1)}),xi(d)&&d.endBinding&&d.points.length>1)){let e=!!t.newElement,n=new Map([[d.points.length-1,{point:d.points[d.points.length-1],isDragging:!1}]]),r=N.getPointAtIndexGlobalCoordinates(d,-1,c);sn(d,n,r[0],r[1],s,t,{newArrow:e})}}if(d&&ys(d)&&(a=a.map(e=>e.id===d?.id?B(e,{isDeleted:!0}):e)),Zo(d)||uo(d)){if(Sc(d.points,t.zoom.value)&&(ft(d)||uo(d))){let e=d.points,t=e[0],n=e.map((n,r)=>r===e.length-1?O(t[0],t[1]):n);ft(d)?s.mutateElement(d,{points:n,polygon:!0}):s.mutateElement(d,{points:n})}ft(d)&&!We(d.points)&&s.mutateElement(d,{polygon:!1})}}let f;f=s_.includes(t.activeTool.type)?ji(t,{...t.activeTool.lastActiveTool||{type:r.state.preferredSelectionTool.type},lastActiveTool:null}):ji(t,{type:r.state.preferredSelectionTool.type});let p=r.isToolLocked(),m=t.activeTool.type===`autoshape`||(p||t.activeTool.type===`freedraw`)&&!!d;m||r.cursor.applyForTool(f);let h=d&&Zo(d)?new N(d,k(a)):t.selectedLinearElement;return h&&={...h,isEditing:t.newElement?!1:h.isEditing,initialState:{...h.initialState,lastClickedPoint:-1,origin:null}},{elements:a,appState:{...t,cursorButton:`up`,activeTool:m?t.activeTool:f,activeEmbeddable:null,newElement:null,selectionElement:null,multiElement:null,editingTextElement:null,suggestedBinding:null,hoveredArrowTextAnchor:null,frameToHighlight:null,selectedElementIds:l?{}:d&&!p&&t.activeTool.type!==`freedraw`?{...t.selectedElementIds,[d.id]:!0}:t.selectedElementIds,selectedLinearElement:l?null:h},captureUpdate:i?j.IMMEDIATELY:j.NEVER}},keyTest:(e,t)=>e.key===L.ESCAPE&&t.selectedLinearElement?.isEditing||(e.key===L.ESCAPE||e.key===L.ENTER)&&t.multiElement!==null,PanelComponent:({appState:e,updateData:t,data:n})=>(0,U.jsx)(J,{type:`button`,icon:wf,title:W(`buttons.done`),"aria-label":W(`buttons.done`),onClick:t,visible:e.multiElement!=null,size:n?.size||`medium`,style:{pointerEvents:`all`}})}),k_=(e,t)=>s_.includes(e.activeTool.type)?ji(e,{...e.activeTool.lastActiveTool||{type:t.state.preferredSelectionTool.type},lastActiveTool:null}):ji(e,{type:t.state.preferredSelectionTool.type}),A_=(e,t,n)=>{if(!e.editingGroupId)return null;let r=t.scene.getNonDeletedElements(),i=t.scene.getSelectedElements({selectedElementIds:n,elements:r}),a=i.length?i:nn(r,e.editingGroupId);for(let t of a){let n=t.groupIds.indexOf(e.editingGroupId);if(n!==-1&&t.groupIds[n+1])return t.groupIds[n+1]}return null};Y({name:`deselect`,label:``,trackEvent:!1,perform:(e,t,n,r)=>{let i=k_(t,r);if(r.cursor.applyForTool(i),t.editingGroupId){let e=r.scene.getNonDeletedElements(),n=Object.keys(t.selectedElementIds).length>0?t.selectedElementIds:nn(e,t.editingGroupId).reduce((e,t)=>(e[t.id]=!0,e),{});return{appState:{...t,...ks({editingGroupId:A_(t,r,n),selectedElementIds:n},e,t,r),activeEmbeddable:null,activeTool:i,selectedLinearElement:null,selectionElement:null,showHyperlinkPopup:!1,suggestedBinding:null,hoveredArrowTextAnchor:null,frameToHighlight:null},captureUpdate:j.IMMEDIATELY}}return{appState:{...t,activeEmbeddable:null,activeTool:i,editingGroupId:null,selectedElementIds:Bi({},t),selectedGroupIds:{},selectedLinearElement:null,selectionElement:null,showHyperlinkPopup:!1,suggestedBinding:null,hoveredArrowTextAnchor:null,frameToHighlight:null},captureUpdate:j.IMMEDIATELY}},keyTest:(e,t,n,r)=>e.key!==L.ESCAPE||ot(e.target)?!1:!t.newElement&&t.multiElement===null&&!t.selectedLinearElement?.isEditing&&(t.activeEmbeddable!==null||t.activeTool.type!==r.state.preferredSelectionTool.type||!!t.editingGroupId||!!t.selectedLinearElement||wa(r.scene.getNonDeletedElements(),t))});var j_=({children:e,checked:t,onChange:n,className:r})=>(0,U.jsxs)(`div`,{className:H(`Checkbox`,r,{"is-checked":t}),onClick:e=>{n(!t,e),e.currentTarget.querySelector(`.Checkbox-box`).focus()},children:[(0,U.jsx)(`button`,{type:`button`,className:`Checkbox-box`,role:`checkbox`,"aria-checked":t,children:mf}),(0,U.jsx)(`div`,{className:`Checkbox-label`,children:e})]}),M_=e=>{let t=e.title||(e.value===P.DARK?W(`buttons.lightMode`):W(`buttons.darkMode`));return(0,U.jsx)(J,{type:`icon`,icon:e.value===P.LIGHT?N_.MOON:N_.SUN,title:t,"aria-label":t,onClick:()=>e.onChange(e.value===P.DARK?P.LIGHT:P.DARK),"data-testid":`toggle-dark-mode`})},N_={SUN:(0,U.jsx)(`svg`,{width:`512`,height:`512`,className:`rtl-mirror`,viewBox:`0 0 512 512`,children:(0,U.jsx)(`path`,{fill:`currentColor`,d:`M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z`})}),MOON:(0,U.jsx)(`svg`,{width:`512`,height:`512`,className:`rtl-mirror`,viewBox:`0 0 512 512`,children:(0,U.jsx)(`path`,{fill:`currentColor`,d:`M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z`})})},P_=e=>{let{id:t}=lN(),[n,r]=(0,V.useState)(e.value);return(0,U.jsxs)(`div`,{className:`ProjectName`,children:[(0,U.jsx)(`label`,{className:`ProjectName-label`,htmlFor:`filename`,children:`${e.label}:`}),(0,U.jsx)(`input`,{type:`text`,className:`TextInput`,onBlur:t=>{e.ignoreFocus||es(t.target);let n=t.target.value;n!==e.value&&e.onChange(n)},onKeyDown:e=>{if(e.key===L.ENTER){if(e.preventDefault(),e.nativeEvent.isComposing||e.keyCode===229)return;e.currentTarget.blur()}},id:`${t}-filename`,value:n,onChange:e=>r(e.target.value)})]})},F_=5e3,I_=Object.assign(({message:e,onClose:t,closable:n=!1,duration:r=F_,style:i})=>{let a=(0,V.useRef)(0),o=r!==1/0,s=(0,V.useCallback)(()=>{o&&(a.current=window.setTimeout(()=>t(),r))},[t,r,o]);return(0,V.useEffect)(()=>{if(o)return s(),()=>clearTimeout(a.current)},[s,e,r,o]),(0,U.jsxs)(`div`,{className:`Toast`,role:`status`,onMouseEnter:o?()=>clearTimeout(a?.current):void 0,onMouseLeave:o?s:void 0,style:i,children:[(0,U.jsx)(`div`,{className:`Toast__message`,children:e}),n&&(0,U.jsx)(J,{icon:Gf,"aria-label":`close`,type:`icon`,onClick:t,className:`close`})]})},{ProgressBar:({progress:e})=>(0,U.jsx)(`div`,{className:`Toast__progress-bar`,children:(0,U.jsx)(`div`,{className:`Toast__progress-bar-fill`,style:{width:`${Math.min(5,Math.round(e*100))}%`}})})});`clipboard`in navigator&&`readText`in navigator.clipboard;var L_=`clipboard`in navigator&&`writeText`in navigator.clipboard,R_=`clipboard`in navigator&&`write`in navigator.clipboard&&`ClipboardItem`in window&&`toBlob`in HTMLCanvasElement.prototype,z_=e=>!!([zt.excalidraw,zt.excalidrawClipboard,zt.excalidrawClipboardWithAPI].includes(e?.type)&&Array.isArray(e.elements)),B_=({types:e,files:t})=>{!e&&!t&&console.warn(`createPasteEvent: no types or files provided`);let n=new ClipboardEvent(z.PASTE,{clipboardData:new DataTransfer});if(e)for(let[r,i]of Object.entries(e)){if(typeof i!=`string`){t||=[],t.push(i);continue}try{if(n.clipboardData?.items.add(i,r),n.clipboardData?.getData(r)!==i)throw Error(`Failed to set "${r}" as clipboardData item`)}catch(e){throw Error(e.message)}}if(t){let e=-1;for(let r of t){e++;try{if(n.clipboardData?.items.add(r),n.clipboardData?.files[e]!==r)throw Error(`Failed to set file "${r.name}" as clipboardData item`)}catch(e){throw Error(e.message)}}}return n},V_=({elements:e,files:t})=>{let n=k(e),r=new Set(e.filter(e=>F(e))),i=!1,a=e.reduce((e,n)=>(Bc(n)&&(i=!0,t&&t[n.fileId]&&(e[n.fileId]=t[n.fileId])),e),{});i&&!t&&console.warn("copyToClipboard: attempting to file element(s) without providing associated `files` object.");let o={type:zt.excalidrawClipboard,elements:e.map(e=>{if(wn(e,n)&&!r.has(wn(e,n))){let t=Ii(e);return Hr(t,n,{frameId:null}),t}return e}),files:t?a:void 0};return JSON.stringify(o)},H_=async(e,t,n)=>{let r=V_({elements:e,files:t});await ev({[R.excalidrawClipboard]:r,[R.text]:r},n)};function U_(e){let t=[];for(let n of e.childNodes)if(n.nodeType===3){let e=n.textContent?.trim();e&&t.push({type:`text`,value:e})}else if(n instanceof HTMLImageElement){let e=n.getAttribute(`src`);e&&e.startsWith(`http`)&&t.push({type:`imageUrl`,value:e})}else t=t.concat(U_(n));return t}var W_=e=>{let t=e.value;try{let e=U_(new DOMParser().parseFromString(t,R.html).body);if(e.length)return{type:`mixedContent`,value:e}}catch(e){console.error(`error in parseHTMLFromPaste: ${e.message}`)}return null},G_=async()=>{let e={},t;try{t=await navigator.clipboard?.read()}catch(t){try{if(navigator.clipboard?.readText){console.warn(`navigator.clipboard.readText() failed (${t.message}). Failling back to navigator.clipboard.read()`);let e=await navigator.clipboard?.readText();if(e)return{[R.text]:e}}}catch(t){if(navigator.clipboard?.read)console.warn(`navigator.clipboard.readText() failed (${t.message}). Failling back to navigator.clipboard.read()`);else{if(t.name===`DataError`)return console.warn(`navigator.clipboard.read() error, clipboard is probably empty: ${t.message}`),e;throw t}}throw t}for(let n of t)for(let t of n.types)if(ki(ei,t))try{if(t===R.text||t===R.html)e[t]=await(await n.getType(t)).text();else if(or(t))e[t]=Pt(await n.getType(t),t,void 0);else throw new ds(`Unsupported clipboard type: ${t}`)}catch(e){console.warn(e instanceof ds?e.message:`Cannot retrieve ${t} from clipboardItem: ${e.message}`)}return Object.keys(e).length===0&&console.warn(`No clipboard data found from clipboard.read().`),e},K_=async(e,t=!1)=>{try{let n=e.findByType(R.html),r=!t&&n&&W_(n);return r?r.value.every(e=>e.type===`text`)?{type:`text`,value:e.getData(R.text)??r.value.map(e=>e.value).join(`
|
|
3
3
|
`).trim()}:r:{type:`text`,value:(e.getData(R.text)||``).trim()}}catch{return{type:`text`,value:``}}},q_=function(e){return this.find(t=>t.type===e)||null},J_=function(e){return this.find(t=>t.type===e)?.value??null},Y_=function(){return this.filter(e=>e.kind===`file`)},X_=e=>{let t;t=nv(e)?e.clipboardData?.items:e.dataTransfer?.items;let n=new Set;for(let e of Array.from(t||[]))n.has(e.type)||n.add(e.type);return n},Z_=async e=>{let t;t=nv(e)?e.clipboardData?.items:e.dataTransfer?.items;let n=(await Promise.all(Array.from(t||[]).map(async t=>{if(t.kind===`file`){let e=t.getAsFile();if(e){let n=await oe(t);return e=await Ha(e),{type:e.type,kind:`file`,file:e,fileHandle:n}}}else if(t.kind===`string`){let{type:n}=t,r;return r=`clipboardData`in e&&e.clipboardData?e.clipboardData?.getData(n):await new Promise(e=>{t.getAsString(t=>e(t))}),{type:n,kind:`string`,value:r}}return null}))).filter(e=>e!=null);return Object.assign(n,{findByType:q_,getData:J_,getFiles:Y_})},Q_=async(e,t=!1)=>{let n=await K_(e,t);if(n.type===`mixedContent`)return{mixedContent:n.value};try{let e=JSON.parse(n.value),r=e.type===zt.excalidrawClipboardWithAPI;if(z_(e))return{elements:e.elements,files:e.files,text:t?JSON.stringify(e.elements,null,2):void 0,programmaticAPI:r}}catch{}return{text:n.value}},$_=async e=>{try{await navigator.clipboard.write([new ClipboardItem({[R.png]:e})])}catch(t){if(kn(e))await navigator.clipboard.write([new ClipboardItem({[R.png]:await e})]);else throw t}},ev=async(e,t)=>{e||=``;let n=Object.entries(typeof e==`string`?{[R.text]:e}:e);try{if(t){for(let[e,r]of n)if(t.clipboardData?.setData(e,r),t.clipboardData?.getData(e)!==r)throw Error(`Failed to setData on clipboardEvent`);return}}catch(e){console.error(e)}let r=n.find(([e])=>e===R.text);if(L_&&r)try{await navigator.clipboard.writeText(r[1]);return}catch(e){console.error(e)}if(r&&!tv(r[1]))throw Error(`Error copying to clipboard.`)},tv=e=>{e||=` `;let t=document.documentElement.getAttribute(`dir`)===`rtl`,n=document.createElement(`textarea`);n.style.border=`0`,n.style.padding=`0`,n.style.margin=`0`,n.style.position=`absolute`,n.style[t?`right`:`left`]=`-9999px`;let r=window.pageYOffset||document.documentElement.scrollTop;n.style.top=`${r}px`,n.style.fontSize=`12pt`,n.setAttribute(`readonly`,``),n.value=e,document.body.appendChild(n);let i=!1;try{n.select(),n.setSelectionRange(0,n.value.length),i=document.execCommand(`copy`)}catch(e){console.error(e)}return n.remove(),i},nv=e=>e.type===z.PASTE||e.type===z.COPY||e.type===z.CUT,rv=(e,{selectedElementIds:t},n)=>{let r=A(e),i=k(r),a=n&&wa(r,{selectedElementIds:t}),o=null,s=a?Ls(r,{selectedElementIds:t},{includeBoundTextElement:!0}):r;if(a){let e=s[0];s.length===1&&F(e)?(o=e,s=wr(r,e,i)):s.length>1&&(s=Ls(r,{selectedElementIds:t},{includeBoundTextElement:!0,includeElementsInFrames:!0}))}return{exportingFrame:o,exportedElements:be(s)}},iv=async(e,t,n,i,{exportBackground:a,exportPadding:o=10,viewBackgroundColor:s,name:c=n.name||`Untitled`,fileHandle:l=null,exportingFrame:u=null})=>{if(t.length===0)throw Error(W(`alerts.cannotExportEmptyCanvas`));if(e===`svg`||e===`clipboard-svg`){let r=Ne(t,{exportBackground:a,exportWithDarkMode:n.exportWithDarkMode,viewBackgroundColor:s,exportPadding:o,exportScale:n.exportScale,exportEmbedScene:n.exportEmbedScene&&e===`svg`},i,{exportingFrame:u});if(e===`svg`)return mc(r.then(e=>new Blob([ir+e.outerHTML],{type:R.svg})),{description:`Export to SVG`,name:c,extension:n.exportEmbedScene?`excalidraw.svg`:`svg`,mimeTypes:[en.svg],fileHandle:l});if(e===`clipboard-svg`){let e=await r.then(e=>e.outerHTML);try{await ev(e)}catch{throw Error(W(`errors.copyToSystemClipboardFailed`))}return}}let d=cl(t,n,i,{exportBackground:a,viewBackgroundColor:s,exportPadding:o,exportingFrame:u});if(e===`png`){let e=Tt(d);return n.exportEmbedScene&&(e=e.then(e=>r(async()=>{let{encodePngMetadata:e}=await import(`./image-ZVKINSPA-CKjpAGxL.js`);return{encodePngMetadata:e}},__vite__mapDeps([62,63,2,64,65,1]),import.meta.url).then(({encodePngMetadata:r})=>r({blob:e,metadata:Pc(t,n,i,`local`)})))),mc(e,{description:`Export to PNG`,name:c,extension:n.exportEmbedScene?`excalidraw.png`:`png`,mimeTypes:[en.png],fileHandle:l})}else if(e===`clipboard`)try{await $_(Tt(d))}catch(e){throw console.warn(e),e.name===`CANVAS_POSSIBLY_TOO_BIG`?Error(W(`canvasError.canvasTooBig`)):un&&e.name===`TypeError`?Error(`${W(`alerts.couldNotCopyToClipboard`)}
|
|
4
4
|
|
|
5
5
|
${W(`hints.firefox_clipboard_write`)}`):Error(W(`alerts.couldNotCopyToClipboard`))}else throw Error(`Unsupported export type`)},av=async(e,t,n)=>{let r=Ma(t);if(!Fr(r))throw Error(`fileHandle should exist and should be of type svg or png when resaving`);let{elements:i,appState:a,files:o}=await e,{exportBackground:s,viewBackgroundColor:c}=a;a={...a,exportEmbedScene:!0};let{exportedElements:l,exportingFrame:u}=rv(i,a,!1);return await iv(r,l,a,o,{exportBackground:s,viewBackgroundColor:c,name:n,fileHandle:t,exportingFrame:u}),{fileHandle:t}},ov=Y({name:`changeProjectName`,label:`labels.fileTitle`,trackEvent:!1,perform:(e,t,n)=>({appState:{...t,name:n},captureUpdate:j.EVENTUALLY}),PanelComponent:({appState:e,updateData:t,appProps:n,data:r,app:i})=>(0,U.jsx)(P_,{label:W(`labels.fileTitle`),value:i.getName(),onChange:e=>t(e),ignoreFocus:r?.ignoreFocus??!1})}),sv=Y({name:`changeExportScale`,label:`imageExportDialog.scale`,trackEvent:{category:`export`,action:`scale`},perform:(e,t,n)=>({appState:{...t,exportScale:n},captureUpdate:j.EVENTUALLY})}),cv=Y({name:`changeExportBackground`,label:`imageExportDialog.label.withBackground`,trackEvent:{category:`export`,action:`toggleBackground`},perform:(e,t,n)=>({appState:{...t,exportBackground:n},captureUpdate:j.EVENTUALLY}),PanelComponent:({appState:e,updateData:t})=>(0,U.jsx)(j_,{checked:e.exportBackground,onChange:e=>t(e),children:W(`imageExportDialog.label.withBackground`)})}),lv=Y({name:`changeExportEmbedScene`,label:`imageExportDialog.tooltip.embedScene`,trackEvent:{category:`export`,action:`embedScene`},perform:(e,t,n)=>({appState:{...t,exportEmbedScene:n},captureUpdate:j.EVENTUALLY}),PanelComponent:({appState:e,updateData:t})=>(0,U.jsxs)(j_,{checked:e.exportEmbedScene,onChange:e=>t(e),children:[W(`imageExportDialog.label.embedScene`),(0,U.jsx)(Jg,{label:W(`imageExportDialog.tooltip.embedScene`),long:!0,children:(0,U.jsx)(`div`,{className:`excalidraw-tooltip-icon`,children:Df})})]})}),uv=!1,dv=(e,t)=>{let n=t.message??W(`progressDialog.defaultMessage`);e.setAppState({toast:{message:t.progress==null?n:(0,U.jsxs)(U.Fragment,{children:[n,(0,U.jsx)(I_.ProgressBar,{progress:t.progress})]}),duration:1/0}})};async function fv(e,t){if(t.app.state.isLoading&&(dv(t.app,{progress:null}),await t.app.onStateChange({predicate:e=>!e.isLoading})),typeof e==`object`&&e&&Symbol.asyncIterator in e){for await(let n of e){if(t.signal.aborted){e.return();return}if(n.type===`progress`)dv(t.app,{message:n.message,progress:n.progress??null});else if(n.type===`done`)return}return}e instanceof Promise&&(dv(t.app,{progress:null}),await e)}function pv(e,t,n,r){let i=new AbortController,a=i.signal;return{abortController:i,data:new Promise(async i=>{try{r.props.onExport&&await fv(r.props.onExport(`json`,{elements:e,appState:t,files:n},{signal:a}),{app:r,signal:a})}catch(e){e?.name===`AbortError`?console.warn(`onExport() aborted by host app (signal aborted: ${a.aborted})`):console.error(`Error during props.onExport() handling`,e)}i({elements:e,appState:t,files:r.files})})}}var mv=Y({name:`saveToActiveFile`,label:`buttons.save`,icon:sf,trackEvent:{category:`export`},predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.saveToActiveFile&&!!t.fileHandle&&!t.viewModeEnabled,perform:async(e,t,n,r)=>{if(uv)return!1;uv=!0;let i=t.fileHandle,a=r.getName(),{abortController:o,data:s}=pv(e,t,r.files,r);try{let{fileHandle:e}=hc(i)?await av(s,i,a):await Io({data:s,filename:a,fileHandle:i});return{captureUpdate:j.NEVER,appState:{fileHandle:e,toast:{message:i&&e?.name?W(`toast.fileSavedToFilename`).replace(`{filename}`,`"${e.name}"`):W(`toast.fileSaved`),duration:1500}}}}catch(e){return o.abort(),e?.name===`AbortError`?console.warn(e):console.error(e),{captureUpdate:j.NEVER,appState:{toast:null}}}finally{uv=!1}},keyTest:e=>e.key===L.S&&e[L.CTRL_OR_CMD]&&!e.shiftKey}),hv=Y({name:`saveFileToDisk`,label:`exportDialog.disk_title`,icon:sf,viewMode:!0,trackEvent:{category:`export`},perform:async(e,t,n,r)=>{if(uv)return!1;uv=!0;let{abortController:i,data:a}=pv(e,t,r.files,r);try{let{fileHandle:e}=await Io({data:a,filename:r.getName(),fileHandle:null});return{captureUpdate:j.NEVER,appState:{openDialog:null,fileHandle:e,toast:{message:W(`toast.fileSaved`),duration:3e3}}}}catch(e){return i.abort(),e?.name===`AbortError`?console.warn(e):console.error(e),{captureUpdate:j.NEVER,appState:{toast:null}}}finally{uv=!1}},keyTest:e=>e.key.toLowerCase()===L.S&&e.shiftKey&&e[L.CTRL_OR_CMD],PanelComponent:({updateData:e})=>(0,U.jsx)(J,{type:`button`,icon:_f,title:W(`buttons.saveAs`),"aria-label":W(`buttons.saveAs`),showAriaLabel:sN().formFactor===`phone`,hidden:!ic,onClick:()=>e(null),"data-testid":`save-as-button`})}),gv=Y({name:`loadScene`,label:`buttons.load`,trackEvent:{category:`export`},predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.loadScene&&!t.viewModeEnabled,perform:async(e,t,n,r)=>{try{let{elements:n,appState:r,files:i}=await Ut(t,e);return{elements:n,appState:r,files:i,captureUpdate:j.IMMEDIATELY}}catch(n){return n?.name===`AbortError`?(console.warn(n),!1):{elements:e,appState:{...t,errorMessage:n.message},files:r.files,captureUpdate:j.EVENTUALLY}}},keyTest:e=>e[L.CTRL_OR_CMD]&&e.key===L.O}),_v=Y({name:`exportWithDarkMode`,label:`imageExportDialog.label.darkMode`,trackEvent:{category:`export`,action:`toggleTheme`},perform:(e,t,n,r)=>(r.sessionExportThemeOverride=n?P.DARK:P.LIGHT,{appState:{...t,exportWithDarkMode:n},captureUpdate:j.EVENTUALLY}),PanelComponent:({appState:e,updateData:t})=>(0,U.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,marginTop:`-45px`,marginBottom:`10px`},children:(0,U.jsx)(M_,{value:e.exportWithDarkMode?P.DARK:P.LIGHT,onChange:e=>{t(e===P.DARK)},title:W(`imageExportDialog.label.darkMode`)})})}),vv=`{}`,yv=Y({name:`copyStyles`,label:`labels.copyStyles`,icon:bm,trackEvent:{category:`element`},perform:(e,t,n,r)=>{let i=[],a=e.find(e=>t.selectedElementIds[e.id]);if(i.push(a),a&&Ai(a)){let e=zo(a,r.scene.getNonDeletedElementsMap());i.push(e)}return a&&(vv=JSON.stringify(i)),{appState:{...t,toast:{message:W(`toast.copyStyles`)}},captureUpdate:j.EVENTUALLY}},keyTest:e=>e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.C}),bv=Y({name:`pasteStyles`,label:`labels.pasteStyles`,icon:bm,trackEvent:{category:`element`},perform:(e,t,n,r)=>{let i=JSON.parse(vv),a=i[0],o=i[1];if(!fa(a))return{elements:e,captureUpdate:j.EVENTUALLY};let s=Ls(e,t,{includeBoundTextElement:!0}),c=s.map(e=>e.id);return{elements:e.map(e=>{if(c.includes(e.id)){let t=a;if(I(e)&&e.containerId&&(t=o),!t)return e;let n=B(e,{backgroundColor:t?.backgroundColor,strokeWidth:t?.strokeWidth,strokeColor:t?.strokeColor,strokeStyle:t?.strokeStyle,fillStyle:t?.fillStyle,opacity:t?.opacity,roughness:t?.roughness,roundness:t.roundness?Er(t.roundness.type,e)?t.roundness:Kr(e):null});if(I(n)){let e=t.fontSize||20,i=t.fontFamily||mn,a=B(n,{fontSize:e,fontFamily:i,textAlign:t.textAlign||`left`,lineHeight:t.lineHeight||za(i)});n=a;let o=null;a.containerId&&(o=s.find(e=>e.id===a.containerId)||null),Ya(a,o,r.scene)}return n.type===`arrow`&&wo(t)&&(n=B(n,{startArrowhead:t.startArrowhead,endArrowhead:t.endArrowhead})),F(e)&&(n=B(n,{roundness:null,backgroundColor:`transparent`})),n}return e}),captureUpdate:j.IMMEDIATELY}},keyTest:e=>e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.V}),xv=Y({name:`toggleShortcuts`,label:`welcomeScreen.defaults.helpHint`,icon:lf,viewMode:!0,trackEvent:{category:`menu`,action:`toggleHelpDialog`},perform:(e,t,n,{focusContainer:r})=>(t.openDialog?.name===`help`&&r(),{appState:{...t,openDialog:t.openDialog?.name===`help`?null:{name:`help`},openMenu:null,openPopup:null},captureUpdate:j.EVENTUALLY}),keyTest:e=>e.key===L.QUESTION_MARK}),Sv=(e,t)=>{if(e.length>=2){let n=t?e[0].groupIds.indexOf(t):-1,r=n>-1?e[0].groupIds.slice(0,n):e[0].groupIds;for(let t of r)if(e.every(e=>Ec(e,t)))return!0}return!1},Cv=(e,t)=>{let n=t.scene.getSelectedElements({selectedElementIds:e.selectedElementIds,includeBoundTextElement:!1});return n.length>=2&&!Sv(n,e.editingGroupId)&&!br(n)},wv=Y({name:`group`,label:`labels.group`,icon:e=>(0,U.jsx)(Kf,{theme:e.theme}),trackEvent:{category:`element`},perform:(e,t,n,r)=>{if(!Cv(t,r))return!1;let i=fl(r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!0}));if(i.length<2)return{appState:t,elements:e,captureUpdate:j.EVENTUALLY};let a=oc(t);if(a.length===1){let n=a[0],r=new Set(nn(e,n).map(e=>e.id)),o=new Set(i.map(e=>e.id));if(new Set([...Array.from(r),...Array.from(o)]).size===r.size)return{appState:t,elements:e,captureUpdate:j.EVENTUALLY}}let o=[...e];new Set(i.map(e=>e.frameId)).size>1&&Ns(i).forEach((e,t)=>{le(e,r.scene.getNonDeletedElementsMap())});let s=ut(),c=k(i);o=o.map(e=>c.get(e.id)?B(e,{groupIds:oi(e.groupIds,s,t.editingGroupId)}):e);let l=nn(o,s),u=l[l.length-1],d=o.lastIndexOf(u),f=o.slice(d+1),p=tn([...o.slice(0,d).filter(e=>!Ec(e,s)),...l,...f],k(l));return{appState:{...t,...yt(s,{...t,selectedGroupIds:{}},A(o))},elements:p,captureUpdate:j.IMMEDIATELY}},predicate:(e,t,n,r)=>Cv(t,r),keyTest:e=>!e.shiftKey&&e[L.CTRL_OR_CMD]&&e.key===L.G,PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>(0,U.jsx)(J,{hidden:!Cv(t,r),type:`button`,icon:(0,U.jsx)(Kf,{theme:t.theme}),onClick:()=>n(null),title:`${W(`labels.group`)} \u2014 ${X(`CtrlOrCmd+G`)}`,"aria-label":W(`labels.group`),visible:wa(A(e),t)})}),Tv=Y({name:`ungroup`,label:`labels.ungroup`,icon:e=>(0,U.jsx)(qf,{theme:e.theme}),trackEvent:{category:`element`},perform:(e,t,n,r)=>{let i=oc(t),a=k(e);if(i.length===0)return{appState:t,elements:e,captureUpdate:j.EVENTUALLY};let o=[...e],s=[];o=o.map(e=>{Gs(e)&&s.push(e.id);let n=Dn(e.groupIds,t.selectedGroupIds);return n.length===e.groupIds.length?e:B(e,{groupIds:n})});let c=ks(t,A(o),t,null),l=r.scene.getSelectedElements(t),u=new Set(l.filter(e=>e.frameId).map(e=>e.frameId));return Pa(e).filter(e=>u.has(e.id)).forEach(e=>{e&&(o=oa(o,uc(o,e,t,a),e))}),c.selectedElementIds=Object.entries(c.selectedElementIds).reduce((e,[t,n])=>(n&&!s.includes(t)&&(e[t]=!0),e),{}),{appState:{...t,...c},elements:o,captureUpdate:j.IMMEDIATELY}},keyTest:e=>e.shiftKey&&e[L.CTRL_OR_CMD]&&e.key===L.G.toUpperCase(),predicate:(e,t)=>oc(t).length>0,PanelComponent:({elements:e,appState:t,updateData:n})=>(0,U.jsx)(J,{type:`button`,hidden:oc(t).length===0,icon:(0,U.jsx)(qf,{theme:t.theme}),onClick:()=>n(null),title:`${W(`labels.ungroup`)} \u2014 ${X(`CtrlOrCmd+Shift+G`)}`,"aria-label":W(`labels.ungroup`),visible:wa(A(e),t)})}),Ev=(e,t,n,r,i,a,o)=>{e.beginPath(),e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.quadraticCurveTo(t+r,n,t+r,n+a),e.lineTo(t+r,n+i-a),e.quadraticCurveTo(t+r,n+i,t+r-a,n+i),e.lineTo(t+a,n+i),e.quadraticCurveTo(t,n+i,t,n+i-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath(),e.fill(),o&&(e.strokeStyle=o),e.stroke()};function Dv(e){let t=0;if(e.length===0)return t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r}return t}var Ov=(e,t)=>`hsl(${Math.abs(Dv(t?.id||e))%37*10}, 100%, 83%)`,kv=e=>{let t=e?.trim()?.codePointAt(0);return(t?String.fromCodePoint(t):`?`).toUpperCase()},Av=({context:e,renderConfig:t,appState:n,normalizedWidth:r,normalizedHeight:i})=>{for(let[a,o]of t.remotePointerViewportCoords){let{x:s,y:c}=o,l=n.collaborators.get(a);s-=n.offsetLeft,c-=n.offsetTop;let u=s<0||s>r-11||c<0||c>i-14;s=Math.max(s,0),s=Math.min(s,r-11),c=Math.max(c,0),c=Math.min(c,i-14);let d=Ov(a,l);e.save(),e.strokeStyle=d,e.fillStyle=d;let f=t.remotePointerUserStates.get(a),p=u||f===ri.IDLE||f===ri.AWAY;p&&(e.globalAlpha=.3),t.remotePointerButton.get(a)===`down`&&(e.beginPath(),e.arc(s,c,15,0,2*Math.PI,!1),e.lineWidth=3,e.strokeStyle=`#ffffff88`,e.stroke(),e.closePath(),e.beginPath(),e.arc(s,c,15,0,2*Math.PI,!1),e.lineWidth=1,e.strokeStyle=d,e.stroke(),e.closePath());let m=n.theme===P.DARK?`#2f6330`:di,h=l?.isSpeaking;h&&(e.fillStyle=m,e.strokeStyle=m,e.lineWidth=10,e.lineJoin=`round`,e.beginPath(),e.moveTo(s,c),e.lineTo(s+0,c+14),e.lineTo(s+4,c+9),e.lineTo(s+11,c+8),e.closePath(),e.stroke(),e.fill()),e.fillStyle=Dt,e.strokeStyle=Dt,e.lineWidth=6,e.lineJoin=`round`,e.beginPath(),e.moveTo(s,c),e.lineTo(s+0,c+14),e.lineTo(s+4,c+9),e.lineTo(s+11,c+8),e.closePath(),e.stroke(),e.fill(),e.fillStyle=d,e.strokeStyle=d,e.lineWidth=2,e.lineJoin=`round`,e.beginPath(),p?(e.moveTo(s-1,c-1),e.lineTo(s-1,c+15),e.lineTo(s+5,c+10),e.lineTo(s+12,c+9),e.closePath(),e.fill()):(e.moveTo(s,c),e.lineTo(s+0,c+14),e.lineTo(s+4,c+9),e.lineTo(s+11,c+8),e.closePath(),e.fill(),e.stroke());let g=t.remotePointerUsernames.get(a)||``;if(!u&&g){e.font=`600 12px sans-serif`;let t=(h?s+0:s)+11/2,n=(h?c+0:c)+14+2,r=e.measureText(g),i=r.actualBoundingBoxDescent+r.actualBoundingBoxAscent,a=Math.max(i,12),o=t-1,l=n-1,u=r.width+2+10+2,f=a+2+6+2;e.roundRect?(e.beginPath(),e.roundRect(o,l,u,f,8),e.fillStyle=d,e.fill(),e.strokeStyle=`#ffffff`,e.stroke(),h&&(e.beginPath(),e.roundRect(o-2,l-2,u+4,f+4,8),e.strokeStyle=m,e.stroke())):Ev(e,o,l,u,f,8,`#ffffff`),e.fillStyle=`#1e1e1e`,e.fillText(g,t+5+1,n+3+r.actualBoundingBoxAscent+Math.floor((a-i)/2)+2),h&&(e.fillStyle=m,e.fillRect(o+u+8,l+(f/2-8/2),2,8),e.fillRect(o+u+8+5,l+(f/2-16/2),2,16),e.fillRect(o+u+8+10,l+(f/2-8/2),2,8))}e.restore(),e.closePath()}},jv=({color:e,onClick:t,name:n,src:r,className:i})=>{let a=kv(n),[o,s]=(0,V.useState)(!1),c=!o&&r,l=c?void 0:{background:e};return(0,U.jsx)(`div`,{className:H(`Avatar`,i),style:l,onClick:t,children:c?(0,U.jsx)(`img`,{className:`Avatar-img`,src:r,alt:a,referrerPolicy:`no-referrer`,onError:()=>s(!0)}):a})};Y({name:`goToCollaborator`,label:`Go to a collaborator`,viewMode:!0,trackEvent:{category:`collab`},perform:(e,t,n,r)=>(Jo(n,`actionGoToCollaborator: collaborator should be defined when actionGoToCollaborator is called`),!n.socketId||r.props.userToFollow?.socketId===n.socketId||n.isCurrentUser?(r.requestUnfollow(),{appState:t,captureUpdate:j.EVENTUALLY}):(r.emitUserFollowIntent({userToFollow:{socketId:n.socketId,username:n.username||``},action:`FOLLOW`}),{appState:{...t,openMenu:t.openMenu===`canvas`?null:t.openMenu},captureUpdate:j.EVENTUALLY})),PanelComponent:({updateData:e,data:t,appState:n})=>{let{socketId:r,collaborator:i,withName:a,isBeingFollowed:o}=t,s=Ov(r,i),c=H({"is-followed":o,"is-current-user":i.isCurrentUser===!0,"is-speaking":i.isSpeaking,"is-in-call":i.isInCall,"is-muted":i.isMuted}),l=i.isInCall?i.isSpeaking?(0,U.jsxs)(`div`,{className:`UserList__collaborator-status-icon-speaking-indicator`,title:W(`userList.hint.isSpeaking`),children:[(0,U.jsx)(`div`,{}),(0,U.jsx)(`div`,{}),(0,U.jsx)(`div`,{})]}):i.isMuted?(0,U.jsx)(`div`,{className:`UserList__collaborator-status-icon-microphone-muted`,title:W(`userList.hint.micMuted`),children:mm}):(0,U.jsx)(`div`,{title:W(`userList.hint.inCall`),children:pm}):null;return a?(0,U.jsxs)(`div`,{className:`dropdown-menu-item dropdown-menu-item-base UserList__collaborator ${c}`,style:{"--avatar-size":`1.5rem`},onClick:i.isCurrentUser?void 0:()=>e(i),children:[(0,U.jsx)(jv,{color:s,onClick:()=>{},name:i.username||``,src:i.avatarUrl,className:c}),(0,U.jsx)(`div`,{className:`UserList__collaborator-name`,children:i.username}),(0,U.jsxs)(`div`,{className:`UserList__collaborator-status-icons`,"aria-hidden":!0,children:[o&&(0,U.jsx)(`div`,{className:`UserList__collaborator-status-icon-is-followed`,title:W(`userList.hint.followStatus`),children:om}),i.isCurrentUser&&` (${W(`labels.you`)})`,l]})]}):(0,U.jsxs)(`div`,{className:`UserList__collaborator UserList__collaborator--avatar-only ${c}`,children:[(0,U.jsx)(jv,{color:s,onClick:()=>{e(i)},name:i.username||``,src:i.avatarUrl,className:c}),l&&(0,U.jsx)(`div`,{className:`UserList__collaborator-status-icon`,children:l})]})}});var Mv=Y({name:`addToLibrary`,trackEvent:{category:`element`},perform:(e,t,n,r)=>{let i=r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0});for(let e of Hs)if(i.some(t=>t.type===e))return{captureUpdate:j.EVENTUALLY,appState:{...t,errorMessage:W(`errors.libraryElementTypeError.${e}`)}};return r.library.getLatestLibrary().then(e=>r.library.setLibrary([{id:ut(),status:`unpublished`,elements:i.map(Ii),created:Date.now()},...e])).then(()=>({captureUpdate:j.EVENTUALLY,appState:{...t,toast:{message:W(`toast.addedToLibrary`)}}})).catch(e=>({captureUpdate:j.EVENTUALLY,appState:{...t,errorMessage:e.message}}))},label:`labels.addToLibrary`}),Nv=(e,t)=>{let n=t.scene.getSelectedElements(e);return as(n,t.scene.getNonDeletedElementsMap(),e).length>1&&!n.some(e=>F(e))},Pv=(e,t,n,r)=>{let i=k(ve(n.scene.getSelectedElements(t),r,n.scene,t));return Xi(e.map(e=>i.get(e.id)||e),t,n)};Y({name:`alignTop`,label:`labels.alignTop`,icon:Ff,trackEvent:{category:`element`},predicate:(e,t,n,r)=>Nv(t,r),perform:(e,t,n,r)=>({appState:t,elements:Pv(e,t,r,{position:`start`,axis:`y`}),captureUpdate:j.IMMEDIATELY}),keyTest:e=>e[L.CTRL_OR_CMD]&&e.shiftKey&&e.key===L.ARROW_UP,PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>(0,U.jsx)(J,{hidden:!Nv(t,r),type:`button`,icon:Ff,onClick:()=>n(null),title:`${W(`labels.alignTop`)} \u2014 ${X(`CtrlOrCmd+Shift+Up`)}`,"aria-label":W(`labels.alignTop`),visible:wa(A(e),t)})}),Y({name:`alignBottom`,label:`labels.alignBottom`,icon:If,trackEvent:{category:`element`},predicate:(e,t,n,r)=>Nv(t,r),perform:(e,t,n,r)=>({appState:t,elements:Pv(e,t,r,{position:`end`,axis:`y`}),captureUpdate:j.IMMEDIATELY}),keyTest:e=>e[L.CTRL_OR_CMD]&&e.shiftKey&&e.key===L.ARROW_DOWN,PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>(0,U.jsx)(J,{hidden:!Nv(t,r),type:`button`,icon:If,onClick:()=>n(null),title:`${W(`labels.alignBottom`)} \u2014 ${X(`CtrlOrCmd+Shift+Down`)}`,"aria-label":W(`labels.alignBottom`),visible:wa(A(e),t)})}),Y({name:`alignLeft`,label:`labels.alignLeft`,icon:Lf,trackEvent:{category:`element`},predicate:(e,t,n,r)=>Nv(t,r),perform:(e,t,n,r)=>({appState:t,elements:Pv(e,t,r,{position:`start`,axis:`x`}),captureUpdate:j.IMMEDIATELY}),keyTest:e=>e[L.CTRL_OR_CMD]&&e.shiftKey&&e.key===L.ARROW_LEFT,PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>(0,U.jsx)(J,{hidden:!Nv(t,r),type:`button`,icon:Lf,onClick:()=>n(null),title:`${W(`labels.alignLeft`)} \u2014 ${X(`CtrlOrCmd+Shift+Left`)}`,"aria-label":W(`labels.alignLeft`),visible:wa(A(e),t)})}),Y({name:`alignRight`,label:`labels.alignRight`,icon:Rf,trackEvent:{category:`element`},predicate:(e,t,n,r)=>Nv(t,r),perform:(e,t,n,r)=>({appState:t,elements:Pv(e,t,r,{position:`end`,axis:`x`}),captureUpdate:j.IMMEDIATELY}),keyTest:e=>e[L.CTRL_OR_CMD]&&e.shiftKey&&e.key===L.ARROW_RIGHT,PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>(0,U.jsx)(J,{hidden:!Nv(t,r),type:`button`,icon:Rf,onClick:()=>n(null),title:`${W(`labels.alignRight`)} \u2014 ${X(`CtrlOrCmd+Shift+Right`)}`,"aria-label":W(`labels.alignRight`),visible:wa(A(e),t)})}),Y({name:`alignVerticallyCentered`,label:`labels.centerVertically`,icon:Vf,trackEvent:{category:`element`},predicate:(e,t,n,r)=>Nv(t,r),perform:(e,t,n,r)=>({appState:t,elements:Pv(e,t,r,{position:`center`,axis:`y`}),captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>(0,U.jsx)(J,{hidden:!Nv(t,r),type:`button`,icon:Vf,onClick:()=>n(null),title:W(`labels.centerVertically`),"aria-label":W(`labels.centerVertically`),visible:wa(A(e),t)})}),Y({name:`alignHorizontallyCentered`,label:`labels.centerHorizontally`,icon:Hf,trackEvent:{category:`element`},predicate:(e,t,n,r)=>Nv(t,r),perform:(e,t,n,r)=>({appState:t,elements:Pv(e,t,r,{position:`center`,axis:`x`}),captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>(0,U.jsx)(J,{hidden:!Nv(t,r),type:`button`,icon:Hf,onClick:()=>n(null),title:W(`labels.centerHorizontally`),"aria-label":W(`labels.centerHorizontally`),visible:wa(A(e),t)})});var Fv=(e,t)=>{let n=t.scene.getSelectedElements(e);return as(n,t.scene.getNonDeletedElementsMap(),e).length>2&&!n.some(e=>F(e))},Iv=(e,t,n,r)=>{let i=k(Vn(n.scene.getSelectedElements(t),n.scene.getNonDeletedElementsMap(),r,t,n.scene));return Xi(e.map(e=>i.get(e.id)||e),t,n)};Y({name:`distributeHorizontally`,label:`labels.distributeHorizontally`,trackEvent:{category:`element`},perform:(e,t,n,r)=>({appState:t,elements:Iv(e,t,r,{space:`between`,axis:`x`}),captureUpdate:j.IMMEDIATELY}),keyTest:e=>!e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.H,PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>(0,U.jsx)(J,{hidden:!Fv(t,r),type:`button`,icon:zf,onClick:()=>n(null),title:`${W(`labels.distributeHorizontally`)} \u2014 ${X(`Alt+H`)}`,"aria-label":W(`labels.distributeHorizontally`),visible:wa(A(e),t)})}),Y({name:`distributeVertically`,label:`labels.distributeVertically`,trackEvent:{category:`element`},perform:(e,t,n,r)=>({appState:t,elements:Iv(e,t,r,{space:`between`,axis:`y`}),captureUpdate:j.IMMEDIATELY}),keyTest:e=>!e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.V,PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>(0,U.jsx)(J,{hidden:!Fv(t,r),type:`button`,icon:Bf,onClick:()=>n(null),title:`${W(`labels.distributeVertically`)} \u2014 ${X(`Alt+V`)}`,"aria-label":W(`labels.distributeVertically`),visible:wa(A(e),t)})});var Lv=Y({name:`flipHorizontal`,label:`labels.flipHorizontal`,icon:ym,trackEvent:{category:`element`},perform:(e,t,n,r)=>({elements:Xi(zv(e,r.scene.getNonDeletedElementsMap(),t,`horizontal`,r),t,r),appState:t,captureUpdate:j.IMMEDIATELY}),keyTest:e=>e.shiftKey&&e.code===M.H}),Rv=Y({name:`flipVertical`,label:`labels.flipVertical`,icon:vm,trackEvent:{category:`element`},perform:(e,t,n,r)=>({elements:Xi(zv(e,r.scene.getNonDeletedElementsMap(),t,`vertical`,r),t,r),appState:t,captureUpdate:j.IMMEDIATELY}),keyTest:e=>e.shiftKey&&e.code===M.V&&!e[L.CTRL_OR_CMD]}),zv=(e,t,n,r,i)=>{let a=k(Bv(Ls(A(e),n,{includeBoundTextElement:!0,includeElementsInFrames:!0}),t,r,i));return e.map(e=>a.get(e.id)||e)},Bv=(e,t,n,r)=>{if(e.every(e=>wo(e)&&(e.startBinding||e.endBinding)))return e.map(e=>{let t=e;return B(t,{startArrowhead:t.endArrowhead,endArrowhead:t.startArrowhead})});let{midX:i,midY:a}=_n(e);Oa(e,t,`nw`,r.scene,new Map(Array.from(t.values()).map(e=>[e.id,Ii(e)])),{flipByX:n===`horizontal`,flipByY:n===`vertical`,shouldResizeFromCenter:!0,shouldMaintainAspectRatio:!0}),rr(e.filter(wo),r.scene,r.state);let{elbowArrows:o,otherElements:s}=e.reduce((e,t)=>Ke(t)?{...e,elbowArrows:e.elbowArrows.concat(t)}:{...e,otherElements:e.otherElements.concat(t)},{elbowArrows:[],otherElements:[]}),{midX:c,midY:l}=_n(e),[u,d]=[i-c,a-l];return s.forEach(e=>r.scene.mutateElement(e,{x:e.x+u,y:e.y+d})),o.forEach(e=>r.scene.mutateElement(e,{x:e.x+u,y:e.y+d})),e},Vv=Y({name:`copy`,label:`labels.copy`,icon:nf,trackEvent:{category:`element`},perform:async(e,t,n,r)=>{let i=r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0});try{await H_(i,r.files,n)}catch(e){return{captureUpdate:j.EVENTUALLY,appState:{...t,errorMessage:e.message}}}return{captureUpdate:j.EVENTUALLY}},keyTest:void 0}),Hv=Y({name:`paste`,label:`labels.paste`,trackEvent:{category:`element`},perform:async(e,t,n,r)=>{let i;try{i=await G_()}catch(e){return e.name===`AbortError`||e.name===`NotAllowedError`?!1:(console.error(`actionPaste ${e.name}: ${e.message}`),un?{captureUpdate:j.EVENTUALLY,appState:{...t,errorMessage:W(`hints.firefox_clipboard_write`)}}:{captureUpdate:j.EVENTUALLY,appState:{...t,errorMessage:W(`errors.asyncPasteFailedOnRead`)}})}try{r.pasteFromClipboard(B_({types:i}))}catch(e){return console.error(e),{captureUpdate:j.EVENTUALLY,appState:{...t,errorMessage:W(`errors.asyncPasteFailedOnParse`)}}}return{captureUpdate:j.EVENTUALLY}},keyTest:void 0}),Uv=Y({name:`cut`,label:`labels.cut`,icon:Gp,trackEvent:{category:`element`},perform:(e,t,n,r)=>(Vv.perform(e,t,n,r),Xm.perform(e,t,null,r)),keyTest:e=>e[L.CTRL_OR_CMD]&&e.key===L.X}),Wv=Y({name:`copyAsSvg`,label:`labels.copyAsSvg`,icon:Sm,trackEvent:{category:`element`},perform:async(e,t,n,r)=>{if(!r.canvas)return{captureUpdate:j.EVENTUALLY};let{exportedElements:i,exportingFrame:a}=rv(e,t,!0);try{return await iv(`clipboard-svg`,i,t,r.files,{...t,exportingFrame:a,name:r.getName()}),{appState:{toast:{message:W(`toast.copyToClipboardAsSvg`,{exportSelection:r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0}).length?W(`toast.selection`):W(`toast.canvas`),exportColorScheme:t.exportWithDarkMode?W(`buttons.darkMode`):W(`buttons.lightMode`)})}},captureUpdate:j.EVENTUALLY}}catch(e){return console.error(e),{appState:{errorMessage:e.message},captureUpdate:j.EVENTUALLY}}},predicate:e=>L_&&e.length>0,keywords:[`svg`,`clipboard`,`copy`]}),Gv=Y({name:`copyAsPng`,label:`labels.copyAsPng`,icon:Cm,trackEvent:{category:`element`},perform:async(e,t,n,r)=>{if(!r.canvas)return{captureUpdate:j.EVENTUALLY};let i=r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0}),{exportedElements:a,exportingFrame:o}=rv(e,t,!0);try{return await iv(`clipboard`,a,t,r.files,{...t,exportingFrame:o,name:r.getName()}),{appState:{...t,toast:{message:W(`toast.copyToClipboardAsPng`,{exportSelection:i.length?W(`toast.selection`):W(`toast.canvas`),exportColorScheme:t.exportWithDarkMode?W(`buttons.darkMode`):W(`buttons.lightMode`)})}},captureUpdate:j.EVENTUALLY}}catch(e){return console.error(e),{appState:{...t,errorMessage:e.message},captureUpdate:j.EVENTUALLY}}},predicate:e=>R_&&e.length>0,keyTest:e=>e.code===M.C&&e.altKey&&e.shiftKey,keywords:[`png`,`clipboard`,`copy`]}),Kv=Y({name:`copyText`,label:`labels.copyText`,trackEvent:{category:`element`},perform:(e,t,n,r)=>{let i=r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!0});try{ev(wc(i))}catch{throw Error(W(`errors.copyToSystemClipboardFailed`))}return{captureUpdate:j.EVENTUALLY}},predicate:(e,t,n,r)=>L_&&r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!0}).some(I),keywords:[`text`,`clipboard`,`copy`]}),qv=Y({name:`gridMode`,icon:Om,keywords:[`snap`],label:`labels.toggleGrid`,viewMode:!0,trackEvent:{category:`canvas`,predicate:e=>e.gridModeEnabled},perform(e,t){return{appState:{...t,gridModeEnabled:!this.checked(t),objectsSnapModeEnabled:!1},captureUpdate:j.EVENTUALLY}},checked:e=>e.gridModeEnabled,predicate:(e,t,n)=>n.gridModeEnabled===void 0,keyTest:e=>e[L.CTRL_OR_CMD]&&e.code===M.QUOTE}),Jv=Y({name:`zenMode`,label:`buttons.zenMode`,icon:Tm,viewMode:!0,trackEvent:{category:`canvas`,predicate:e=>!e.zenModeEnabled},perform(e,t){return{appState:{...t,zenModeEnabled:!this.checked(t)},captureUpdate:j.EVENTUALLY}},checked:e=>e.zenModeEnabled,predicate:(e,t,n,r)=>r.editorInterface.formFactor!==`phone`&&typeof n.zenModeEnabled>`u`,keyTest:e=>!e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.Z}),Yv=Y({name:`objectsSnapMode`,label:`buttons.objectsSnapMode`,icon:wm,viewMode:!1,trackEvent:{category:`canvas`,predicate:e=>!e.objectsSnapModeEnabled},perform(e,t){return{appState:{...t,objectsSnapModeEnabled:!this.checked(t),gridModeEnabled:!1},captureUpdate:j.EVENTUALLY}},checked:e=>e.objectsSnapModeEnabled,predicate:(e,t,n)=>typeof n.objectsSnapModeEnabled>`u`,keyTest:e=>!e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.S}),Xv=Y({name:`arrowBinding`,label:`labels.arrowBinding`,viewMode:!1,trackEvent:{category:`canvas`,predicate:e=>e.bindingPreference===`disabled`},perform(e,t){let n=t.bindingPreference===`enabled`?`disabled`:`enabled`;return{appState:{...t,bindingPreference:n,isBindingEnabled:n===`enabled`},captureUpdate:j.NEVER}},checked:e=>e.bindingPreference===`enabled`}),Zv=Y({name:`midpointSnapping`,label:`labels.midpointSnapping`,viewMode:!1,trackEvent:{category:`canvas`,predicate:e=>!e.isMidpointSnappingEnabled},perform(e,t){return{appState:{...t,isMidpointSnappingEnabled:!this.checked(t)},captureUpdate:j.NEVER}},checked:e=>e.isMidpointSnappingEnabled}),Qv=Y({name:`stats`,label:`stats.fullTitle`,icon:_m,viewMode:!0,trackEvent:{category:`menu`},keywords:[`edit`,`attributes`,`customize`],perform(e,t){return{appState:{...t,stats:{...t.stats,open:!this.checked(t)}},captureUpdate:j.EVENTUALLY}},checked:e=>e.stats.open,keyTest:e=>!e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.SLASH}),$v=Y({name:`unbindText`,label:`labels.unbindText`,trackEvent:{category:`element`},predicate:(e,t,n,r)=>r.scene.getSelectedElements(t).some(e=>Ai(e)),perform:(e,t,n,r)=>{let i=r.scene.getSelectedElements(t),a=r.scene.getNonDeletedElementsMap();return i.forEach(e=>{let t=zo(e,a);if(t){let{width:n,height:i}=eo(t.originalText,Ve(t),t.lineHeight),o=Wr(e.id);dc(e.id);let{x:s,y:c}=na(e,t,a);r.scene.mutateElement(t,{containerId:null,width:n,height:i,text:t.originalText,x:s,y:c}),r.scene.mutateElement(e,{boundElements:e.boundElements?.filter(e=>e.id!==t.id),height:o||e.height})}}),{elements:e,appState:t,captureUpdate:j.IMMEDIATELY}}}),ey=Y({name:`bindText`,label:`labels.bindText`,trackEvent:{category:`element`},predicate:(e,t,n,r)=>{let i=r.scene.getSelectedElements(t);if(i.length===2){let e=I(i[0])||I(i[1]),t;if(ba(i[0])?t=i[0]:ba(i[1])&&(t=i[1]),e&&t&&zo(t,r.scene.getNonDeletedElementsMap())===null)return!0}return!1},perform:(e,t,n,r)=>{let i=r.scene.getSelectedElements(t),a,o;I(i[0])&&ba(i[1])?(a=i[0],o=i[1]):(a=i[1],o=i[0]),r.scene.mutateElement(a,{containerId:o.id,verticalAlign:je.MIDDLE,textAlign:Ro.CENTER,autoResize:!0,angle:wo(o)?0:o?.angle??0}),r.scene.mutateElement(o,{boundElements:(o.boundElements||[]).concat({type:`text`,id:a.id})});let s=o.height;return Ya(a,o,r.scene),ue(o.id,s),{elements:ty(e,o,a),appState:{...t,selectedElementIds:{[o.id]:!0}},captureUpdate:j.IMMEDIATELY}}}),ty=(e,t,n)=>{let r=e.slice(),i=r.findIndex(e=>e.id===n.id);r.splice(i,1);let a=r.findIndex(e=>e.id===t.id);return r.splice(a+1,0,n),tn(r,k([t,n])),r},ny=(e,t,n)=>{let r=e.slice(),i=r.findIndex(e=>e.id===t.id);r.splice(i,1);let a=r.findIndex(e=>e.id===n.id);return r.splice(a,0,t),tn(r,k([t,n])),r},ry=Y({name:`wrapTextInContainer`,label:`labels.createContainerFromText`,trackEvent:{category:`element`},predicate:(e,t,n,r)=>{let i=r.scene.getSelectedElements(t),a=i.some(e=>I(e)&&!Gs(e));return i.length>0&&a},perform:(e,t,n,r)=>{let i=r.scene.getSelectedElements(t),a=e.slice(),o={};for(let e of i)if(I(e)&&!Gs(e)){let n=Qc({type:`rectangle`,backgroundColor:t.currentItemBackgroundColor,boundElements:[...e.boundElements||[],{id:e.id,type:`text`}],angle:e.angle,fillStyle:t.currentItemFillStyle,strokeColor:t.currentItemStrokeColor,roughness:t.currentItemRoughness,strokeWidth:tl(`rectangle`,t.currentItemStrokeWidthKey),strokeStyle:t.currentItemStrokeStyle,roundness:t.currentItemRoundness===`round`?{type:Rt(`rectangle`)?Ta.ADAPTIVE_RADIUS:Ta.PROPORTIONAL_RADIUS}:null,opacity:100,locked:!1,x:e.x-5,y:e.y-5,width:co(e.width,`rectangle`),height:co(e.height,`rectangle`),groupIds:e.groupIds,frameId:e.frameId});if(e.boundElements?.length){let t=e.boundElements.filter(e=>e.type===`arrow`).map(e=>e.id);a.filter(e=>t.includes(e.id)).forEach(t=>{let i=t.startBinding,a=t.endBinding;i?.elementId===e.id&&(i={...i,elementId:n.id}),a?.elementId===e.id&&(a={...a,elementId:n.id}),(i||a)&&r.scene.mutateElement(t,{startBinding:i,endBinding:a})})}r.scene.mutateElement(e,{containerId:n.id,verticalAlign:je.MIDDLE,boundElements:null,textAlign:Ro.CENTER,autoResize:!0}),Ya(e,n,r.scene),a=ny([...a,n],n,e),o[n.id]=!0}return{elements:a,appState:{...t,selectedElementIds:o},captureUpdate:j.IMMEDIATELY}}}),iy=380,ay=42,oy=5,sy=85,cy=500,ly=!1,uy=new Map,dy=({element:e,scene:t,setAppState:n,onLinkOpen:r,setToast:i,updateEmbedValidationStatus:a})=>{let o=t.getNonDeletedElementsMap(),s=dN(),c=oN(),l=sN(),u=e.link||``,[d,f]=(0,V.useState)(u),p=(0,V.useRef)(null),m=s.showHyperlinkPopup===`editor`,h=(0,V.useCallback)(()=>{if(!p.current)return;let r=ao(p.current.value)||null;if(!e.link&&r&&ih(`hyperlink`,`create`),ho(e)){if(s.activeEmbeddable?.element===e&&n({activeEmbeddable:null}),!r){t.mutateElement(e,{link:null}),a(e,!1);return}if(!dl(r,c.validateEmbeddable))r&&i({message:W(`toast.unableToEmbed`),closable:!0}),e.link&&uy.set(e.id,e.link),t.mutateElement(e,{link:r}),a(e,!1);else{let{width:n,height:o}=e,s=Qa(r);s?.error instanceof URIError&&i({message:W(`toast.unrecognizedLinkFormat`),closable:!0});let c=s?s.intrinsicSize.w/s.intrinsicSize.h:1,l=uy.get(e.id)!==e.link;t.mutateElement(e,{...l?{width:s?.type===`video`?n>o?n:o*c:n,height:s?.type===`video`&&n>o?n/c:o}:{},link:r}),a(e,!0),uy.has(e.id)&&uy.delete(e.id)}}else t.mutateElement(e,{link:r})},[e,t,i,c.validateEmbeddable,s.activeEmbeddable,n,a]);(0,V.useLayoutEffect)(()=>()=>{h()},[h]),(0,V.useEffect)(()=>{m&&p?.current&&!(l.formFactor===`phone`||l.isTouchScreen)&&p.current.select()},[m,l.formFactor,l.isTouchScreen]),(0,V.useEffect)(()=>{let t=null,r=r=>{m||(t&&clearTimeout(t),vy(e,o,s,O(r.clientX,r.clientY))&&(t=window.setTimeout(()=>{n({showHyperlinkPopup:!1})},cy)))};return window.addEventListener(z.POINTER_MOVE,r,!1),()=>{window.removeEventListener(z.POINTER_MOVE,r,!1),t&&clearTimeout(t)}},[s,e,m,n,o]);let g=(0,V.useCallback)(()=>{ih(`hyperlink`,`delete`),t.mutateElement(e,{link:null}),n({showHyperlinkPopup:!1})},[n,e,t]),_=()=>{ih(`hyperlink`,`edit`,`popup-ui`),n({showHyperlinkPopup:`editor`})},{x:v,y}=fy(e,s,o);return s.contextMenu||s.selectedElementsAreBeingDragged||s.resizingElement||s.isRotating||s.openMenu||s.viewModeEnabled?null:(0,U.jsxs)(`div`,{className:`excalidraw-hyperlinkContainer`,style:{top:`${y}px`,left:`${v}px`,width:iy,padding:oy},children:[m?(0,U.jsx)(`input`,{className:H(`excalidraw-hyperlinkContainer-input`),placeholder:W(`labels.link.hint`),ref:p,value:d,onChange:e=>f(e.target.value),autoFocus:!0,onKeyDown:e=>{e.stopPropagation(),e[L.CTRL_OR_CMD]&&e.key===L.K&&e.preventDefault(),(e.key===L.ENTER||e.key===L.ESCAPE)&&(h(),n({showHyperlinkPopup:`info`}))}}):e.link?(0,U.jsx)(`a`,{href:ao(e.link||``),className:`excalidraw-hyperlinkContainer-link`,target:Fn(e.link)?`_self`:`_blank`,onClick:t=>{if(e.link&&r){let n=pc(z.EXCALIDRAW_LINK,t.nativeEvent);r({...e,link:ao(e.link)},n),n.defaultPrevented&&t.preventDefault()}},rel:`noopener noreferrer`,children:e.link}):(0,U.jsx)(`div`,{className:`excalidraw-hyperlinkContainer-link`,children:W(`labels.link.empty`)}),(0,U.jsxs)(`div`,{className:`excalidraw-hyperlinkContainer__buttons`,children:[!m&&(0,U.jsx)(J,{type:`button`,title:W(`buttons.edit`),"aria-label":W(`buttons.edit`),label:W(`buttons.edit`),onClick:_,className:`excalidraw-hyperlinkContainer--edit`,icon:Kd}),(0,U.jsx)(J,{type:`button`,title:W(`labels.linkToElement`),"aria-label":W(`labels.linkToElement`),label:W(`labels.linkToElement`),onClick:()=>{n({openDialog:{name:`elementLinkSelector`,sourceElementId:e.id}})},icon:Lm}),u&&!ho(e)&&(0,U.jsx)(J,{type:`button`,title:W(`buttons.remove`),"aria-label":W(`buttons.remove`),label:W(`buttons.remove`),onClick:g,className:`excalidraw-hyperlinkContainer--remove`,icon:ef})]})]})},fy=(e,t,n)=>{let[r,i]=Ae(e,n),{x:a,y:o}=Wn({sceneX:r+e.width/2,sceneY:i},t);return{x:a-t.offsetLeft-iy/2,y:o-t.offsetTop-sy}},py=(e,t)=>{let n=Ls(e,t);return ho(n[0])?`labels.link.editEmbed`:n[0]?.link?`labels.link.edit`:`labels.link.create`},my=null,hy=(e,t,n)=>{my&&clearTimeout(my),my=window.setTimeout(()=>gy(e,t,n),300)},gy=(e,t,n)=>{if(!e.link)return;let r=Gg();r.classList.add(`excalidraw-tooltip--visible`),r.style.maxWidth=`20rem`,r.textContent=ps(e.link)?W(`labels.link.goToElement`):e.link;let[i,a,o,s]=Ae(e,n),[c,l,u,d]=Zi([i,a,o,s],e.angle,t),f=Wn({sceneX:c,sceneY:l},t);Kg(r,{left:f.x,top:f.y,width:u,height:d},`top`),ih(`hyperlink`,`tooltip`,`link-icon`),ly=!0},_y=()=>{my&&clearTimeout(my),ly&&(ly=!1,Gg().classList.remove(`excalidraw-tooltip--visible`))},vy=(e,t,n,[r,i])=>{let{x:a,y:o}=Ic({clientX:r,clientY:i},n),s=15/n.zoom.value;if(qt(O(a,o),e,t))return!1;let[c,l,u]=Ae(e,t);if(a>=c&&a<=u&&o>=l-sy&&o<=l)return!1;let{x:d,y:f}=fy(e,n,t);return!(r>=d-s&&r<=d+iy+oy*2+s&&i>=f-s&&i<=f+s+oy*2+ay)},yy=Y({name:`hyperlink`,label:(e,t)=>py(A(e),t),icon:hf,perform:(e,t)=>t.showHyperlinkPopup===`editor`?!1:{elements:e,appState:{...t,showHyperlinkPopup:`editor`,openMenu:null},captureUpdate:j.IMMEDIATELY},trackEvent:{category:`hyperlink`,action:`click`},keyTest:e=>e[L.CTRL_OR_CMD]&&e.key===L.K,predicate:(e,t)=>Ls(e,t).length===1,PanelComponent:({elements:e,appState:t,updateData:n})=>{let r=Ls(e,t);return(0,U.jsx)(J,{type:`toggle`,icon:hf,"aria-label":W(py(A(e),t)),title:`${ho(e[0])?W(`labels.link.labelEmbed`):W(`labels.link.label`)} - ${X(`CtrlOrCmd+K`)}`,onSelect:()=>n(null),checked:r.length===1&&!!r[0].link})}}),by=e=>e.every(e=>!e.locked),xy=Y({name:`toggleElementLock`,label:(e,t,n)=>by(n.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!1}))?`labels.elementLock.lock`:`labels.elementLock.unlock`,icon:(e,t)=>by(Ls(t,e))?Nd:Md,trackEvent:{category:`element`},predicate:(e,t,n,r)=>{let i=r.scene.getSelectedElements(t);return i.length>0&&!i.some(e=>e.locked&&e.frameId)},perform:(e,t,n,r)=>{let i=r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0});if(!i.length)return!1;let a=by(i),o=k(i),s=i.length>1&&xo(i),c=i.length===1||s?null:ut(),l={...t.lockedMultiSelections};if(a)l={...t.lockedMultiSelections,...c?{[c]:!0}:{}};else if(s){let e=i[0].groupIds.at(-1);delete l[e]}let u=e.map(e=>{if(!o.has(e.id))return e;let n=e.groupIds;return a?c&&(n=[...n,c]):n=n.filter(e=>!t.lockedMultiSelections[e]),B(e,{locked:a,groupIds:n.length===e.groupIds.length?e.groupIds:n})}),d=k(u),f=a?{}:Object.fromEntries(i.map(e=>[e.id,!0])),p=i.map(e=>d.get(e.id)||e),m=a?{}:pn(A(p),t),h=a?c||(s?i[0].groupIds.at(-1):i[0].id):null;return{elements:u,appState:{...t,selectedElementIds:f,selectedGroupIds:m,selectedLinearElement:a?null:t.selectedLinearElement,lockedMultiSelections:l,activeLockedId:h},captureUpdate:j.IMMEDIATELY}},keyTest:(e,t,n,r)=>e.key.toLocaleLowerCase()===L.L&&e[L.CTRL_OR_CMD]&&e.shiftKey&&r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!1}).length>0}),Sy=Y({name:`unlockAllElements`,trackEvent:{category:`canvas`},viewMode:!1,icon:Md,predicate:(e,t)=>Ls(e,t).length===0&&e.some(e=>e.locked),perform:(e,t)=>{let n=e.filter(e=>e.locked),r=e.map(e=>{if(e.locked){let n=e.groupIds.filter(e=>!t.lockedMultiSelections[e]);return B(e,{locked:!1,groupIds:e.groupIds.length===n.length?e.groupIds:n})}return e}),i=k(r),a=A(n.map(e=>i.get(e.id)||e));return{elements:r,appState:{...t,selectedElementIds:Object.fromEntries(a.map(e=>[e.id,!0])),selectedGroupIds:pn(a,t),lockedMultiSelections:{},activeLockedId:null},captureUpdate:j.IMMEDIATELY}},label:`labels.elementLock.unlockAll`}),Cy=8,wy=10,Ty=[`rectangle`,`diamond`,`ellipse`],Ey=[`line`,`sharpArrow`,`curvedArrow`,`elbowArrow`],Dy=new Set(Ty),Oy=new Set(Ey),ky=e=>Dy.has(e),Ay=e=>e===`arrow`||Oy.has(e),jy=Tl(null),My=new Map,Ny=new Map,Py=({app:e})=>{let t=e.scene.getSelectedElements(e.state),n=(0,V.useRef)(null);return(0,V.useEffect)(()=>{if(t.length===0){e.updateEditorAtom(jy,null);return}let r=Ry(t);r&&!n.current?n.current=r:(n.current&&!r||n.current&&r!==n.current)&&(e.updateEditorAtom(jy,null),n.current=null)},[t,e]),(0,V.useEffect)(()=>()=>{My.clear(),Ny.clear()},[]),(0,U.jsx)(Fy,{app:e,elements:t})},Fy=({app:e,elements:t})=>{let n=Ry(t),r=(0,V.useMemo)(()=>n===`generic`?Vy(t):[],[n,t]),i=(0,V.useMemo)(()=>n===`linear`?Hy(t):[],[n,t]),a=n===`generic`?r.every(e=>e.type===r[0].type):n===`linear`?i.every(e=>vr(e)===vr(i[0])):!1,[o,s]=(0,V.useState)({x:0,y:0}),c=(0,V.useRef)(``),l=(0,V.useRef)(null);(0,V.useEffect)(()=>{let t=[...r,...i].sort((e,t)=>e.id.localeCompare(t.id)),n=`
|