@layers-app/editor 0.7.84 → 0.7.85
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/index.cjs +2 -2
- package/dist/index.d.ts +5 -65
- package/dist/index.js +12 -14
- package/dist/layers.2IgKBBB8.js +300 -0
- package/dist/{layers.DM3A2BTi.js → layers.2N6AxMul.js} +1 -1
- package/dist/{layers.CCzpc2XM.js → layers.2TrRXLJC.js} +1 -1
- package/dist/{layers.D4pFUyQc.js → layers.3EmPliFh.js} +1 -1
- package/dist/{layers.D_kAA9qL.js → layers.3iZsN3md.js} +1 -1
- package/dist/{layers.Dn-ec9WG.js → layers.49frD6oa.js} +2 -2
- package/dist/{layers.BAHbyKTI.js → layers.4L1DCzfE.js} +1 -1
- package/dist/{layers.DFfPm1gw.js → layers.4YTqmETA.js} +1 -1
- package/dist/{layers.CtfTA9wm.js → layers.4nazA9W4.js} +1 -1
- package/dist/{layers.BzYL8dLV.js → layers.5MLY8Zd-.js} +1 -1
- package/dist/{layers.BehL29a3.js → layers.5Qm3OBNV.js} +1 -1
- package/dist/layers.7pPAivIC.js +213 -0
- package/dist/{layers.DNass_AW.js → layers.9tMqHF-C.js} +1 -1
- package/dist/layers.AFI9A_Q3.js +1 -0
- package/dist/{layers.Dz1zakYM.js → layers.AsLVxD04.js} +1 -1
- package/dist/{layers.DrtWEMM0.js → layers.B1TQbgNH.js} +1 -1
- package/dist/{layers.DGL60Zxc.js → layers.B3Bf_LIh.js} +1 -1
- package/dist/{layers.yGEqadiJ.js → layers.B5bYWetp.js} +1 -1
- package/dist/{layers.C7skWr7U.js → layers.B6cQxTrv.js} +1 -1
- package/dist/{layers.DmoaeDiV.js → layers.B6qaOIp8.js} +1 -1
- package/dist/{layers.Dyuut1Do.js → layers.B8C0dfGz.js} +1 -1
- package/dist/{layers.Bt1x-jBU.js → layers.B99hxZ6r.js} +1 -1
- package/dist/{layers.BKzyedUO.js → layers.BCwimRlE.js} +1 -1
- package/dist/{layers.D3yp6byg.js → layers.BEvqepgi.js} +1 -1
- package/dist/{layers.AQBGf1qx.js → layers.BGjxd2QR.js} +1 -1
- package/dist/{layers.DTqXVHF2.js → layers.BInVhNNT.js} +1 -1
- package/dist/{layers.sf_C9kmK.js → layers.BL62LG6S.js} +1 -1
- package/dist/{layers.sHa6eov4.js → layers.BLSnaiHK.js} +1 -1
- package/dist/{layers.CiXrup6j.js → layers.BMIKi37m.js} +3 -3
- package/dist/{layers.Cp8gOVZg.js → layers.BNoUigC4.js} +1 -1
- package/dist/layers.BPg-OG2D.js +1 -0
- package/dist/{layers.DiemxYQH.js → layers.BQPiJWRE.js} +1 -1
- package/dist/{layers.cCqJlBzb.js → layers.BRNfUEQk.js} +1 -1
- package/dist/{layers.Dn052lpP.js → layers.BU4rGWaZ.js} +1 -1
- package/dist/{layers.DU0SSrWN.js → layers.BUc-2cVO.js} +4 -4
- package/dist/{layers.DyIJmOpf.js → layers.BWNK1qM4.js} +1 -1
- package/dist/{layers.BI2tTCES.js → layers.BWn7WMKv.js} +6 -6
- package/dist/layers.BY6eH9SI.js +1 -0
- package/dist/{layers.DSOSQ0TI.js → layers.B_TkR31f.js} +1 -1
- package/dist/{layers.BiS82Ah3.js → layers.BaR2HUlM.js} +1 -1
- package/dist/{layers.CkMA93G9.js → layers.BaX2i9Sx.js} +1 -1
- package/dist/{layers.UfoPB0x7.js → layers.Bc0dSE6w.js} +1 -1
- package/dist/{layers.EFS2GS7s.js → layers.BdEBWYu6.js} +1 -1
- package/dist/{layers.DeR26nCU.js → layers.BdYoW3Ua.js} +3 -3
- package/dist/{layers.DnCk3akf.js → layers.Bf3mSB24.js} +1 -1
- package/dist/{layers.IbqwJCl8.js → layers.BgVy016j.js} +1 -1
- package/dist/{layers.BRwBQRBw.js → layers.BhlHAbhf.js} +4 -4
- package/dist/{layers.HDhWea9s.js → layers.BjsxKGMd.js} +3 -3
- package/dist/{layers.BtD7rnnP.js → layers.Bk3U4Je3.js} +2 -2
- package/dist/{layers.CWUd5ICZ.js → layers.BkOe8d4L.js} +1 -1
- package/dist/{layers.BfaNu6cT.js → layers.BkcicfSj.js} +1 -1
- package/dist/{layers.hbVvyWfL.js → layers.Bl4Et59h.js} +1 -1
- package/dist/{layers.BoaxPkiF.js → layers.BlrpAB4K.js} +1 -1
- package/dist/{layers.t9aRFd0p.js → layers.BmVj5j7I.js} +1 -1
- package/dist/{layers.5h0jfjke.js → layers.BmbrYKZd.js} +1 -1
- package/dist/{layers.CnM_VO8d.js → layers.BmtxRj5o.js} +1 -1
- package/dist/layers.BnMWIF6K.js +304 -0
- package/dist/{layers.DuRnRhDt.js → layers.BngfwklX.js} +1 -1
- package/dist/{layers.BoWHcEDI.js → layers.BoDuYYvt.js} +1 -1
- package/dist/{layers.mhtpxqIl.js → layers.BqlvwWif.js} +1 -1
- package/dist/{layers.BSi7fJpQ.js → layers.Bqt4ZrVA.js} +1 -1
- package/dist/layers.Br4Omc3G.js +1 -0
- package/dist/{layers.DV8uFYnA.js → layers.BsVII-kY.js} +1 -1
- package/dist/{layers.B9IorBEM.js → layers.BtZSgyTw.js} +1 -1
- package/dist/{layers.C2LIQiyR.js → layers.BvflWy3K.js} +1 -1
- package/dist/{layers.BrfmPh4h.js → layers.By_Ve9Y0.js} +1 -1
- package/dist/{layers.Bo2uUdWq.js → layers.C5n-NupN.js} +1 -1
- package/dist/{layers.BmxK4cMQ.js → layers.C8tDmDzi.js} +1 -1
- package/dist/{layers.BxVC0q0O.js → layers.CBbGUf_a.js} +4 -4
- package/dist/{layers.BXdFvlYk.js → layers.CFGSpHX7.js} +1 -1
- package/dist/{layers.DMaOlxg4.js → layers.CFTfYbO7.js} +2 -2
- package/dist/{layers.CUUNO7NC.js → layers.CG__Jd6A.js} +1 -1
- package/dist/{layers.v2gHHIgZ.js → layers.CGbze-UJ.js} +1 -1
- package/dist/{layers.BgiDHAu5.js → layers.CGrbxplv.js} +1 -1
- package/dist/{layers.CNtZ5750.js → layers.CIgcTVFj.js} +1 -1
- package/dist/{layers.DvtA-_wr.js → layers.CJI_c2qo.js} +2 -2
- package/dist/{layers.CzPfLUnL.js → layers.CJTE4PY9.js} +3 -3
- package/dist/{layers.BXzbZ2bt.js → layers.CJZ1fO3K.js} +1 -1
- package/dist/{layers.BsWULi2R.js → layers.COmLY2Am.js} +4 -4
- package/dist/{layers.Dj16AL7s.js → layers.CQ0N7RMJ.js} +8 -8
- package/dist/{layers.DyUWvbyL.js → layers.CSOaFtb5.js} +1 -1
- package/dist/{layers.CfYin5Er.js → layers.CScaqKEG.js} +1 -1
- package/dist/{layers.BPZk8O3B.js → layers.CT92mIZw.js} +1 -1
- package/dist/layers.CTKkKbnk.js +1 -0
- package/dist/{layers.Ckgrr88o.js → layers.CTXHlovM.js} +4 -4
- package/dist/{layers.B0q3XgJU.js → layers.CUwqAwi2.js} +1 -1
- package/dist/{layers.l1aB4_0i.js → layers.CV-x-_sl.js} +1 -1
- package/dist/{layers.CBClDrA9.js → layers.CVMppG9B.js} +1 -1
- package/dist/{layers.TV0bbpfe.js → layers.CXYpWq7L.js} +2 -2
- package/dist/{layers.yxW2eOfP.js → layers.CXx9fumf.js} +1 -1
- package/dist/{layers.Cn7-tvQd.js → layers.CYs5lMtI.js} +1 -1
- package/dist/{layers.PEWT33VM.js → layers.CZsyGiVE.js} +1 -1
- package/dist/{layers.660VGPLH.js → layers.C_u7E9-V.js} +1 -1
- package/dist/{layers.CAojvkOK.js → layers.Cb4f1o0-.js} +1 -1
- package/dist/{layers.CGde-__V.js → layers.CbGuAIkW.js} +1 -1
- package/dist/{layers.BEQKVl6A.js → layers.CcXpI9Yu.js} +1 -1
- package/dist/{layers.DWPHA9B8.js → layers.Cch71xec.js} +1 -1
- package/dist/{layers.Dfg7mZZ_.js → layers.CeAPZcEh.js} +1 -1
- package/dist/{layers.q78-JEaW.js → layers.CenAT1zj.js} +1 -1
- package/dist/{layers.BgxBysUn.js → layers.CgHDcCc1.js} +1 -1
- package/dist/layers.Ch-ZrQl-.js +6 -0
- package/dist/layers.Ci9jAhr3.js +295 -0
- package/dist/{layers.b4inQuE7.js → layers.ClkFKKq-.js} +3 -3
- package/dist/{layers.B9MvfZB3.js → layers.CmzMhING.js} +1 -1
- package/dist/{layers.Cqvn4Ghk.js → layers.Cp-cSBsl.js} +1 -1
- package/dist/{layers.B8H90AZL.js → layers.CpVstIjL.js} +1 -1
- package/dist/{layers.qP2AeOfJ.js → layers.CpzEm4x3.js} +1 -1
- package/dist/{layers.C980d8Nd.js → layers.Cs5xT-hS.js} +1 -1
- package/dist/{layers.BcLH4bTX.js → layers.CsSzdOJy.js} +1 -1
- package/dist/{layers.yvWi9NIC.js → layers.CtNf1X4m.js} +3 -3
- package/dist/{layers.BzF_UPBp.js → layers.CtxJ2Tf-.js} +1 -1
- package/dist/{layers.CwfsdXiF.js → layers.Cu3JO4cy.js} +1 -1
- package/dist/{layers.pDyyva3v.js → layers.CvspkpQF.js} +1 -1
- package/dist/layers.CwrG8roy.js +8 -0
- package/dist/{layers.DeJEPXus.js → layers.CwuiDxOl.js} +1 -1
- package/dist/{layers.C2SMpGCy.js → layers.CykIHeCY.js} +1 -1
- package/dist/{layers.BaRbHFQv.js → layers.Czus1jgD.js} +1 -1
- package/dist/{layers.Coe5BZQB.js → layers.D0aF-q2N.js} +1 -1
- package/dist/{layers.VD4Vzi4s.js → layers.D8ZPyWaD.js} +1 -1
- package/dist/layers.D95-DvSB.js +276 -0
- package/dist/{layers.DKYNs_CU.js → layers.D9bsmOWM.js} +1 -1
- package/dist/layers.DAE-CRdR.js +1 -0
- package/dist/{layers.BciYyxTd.js → layers.DBzH712a.js} +1 -1
- package/dist/{layers.CjD6r90E.js → layers.DE1_0gux.js} +3 -3
- package/dist/{layers.FDWSIAON.js → layers.DE9DqRSr.js} +1 -1
- package/dist/{layers.BReXyMP1.js → layers.DF6a9EUZ.js} +3 -3
- package/dist/{layers.DQf6vZpw.js → layers.DFIXifK-.js} +1 -1
- package/dist/{layers.DGanGoJD.js → layers.DHgk-SKH.js} +1 -1
- package/dist/{layers.KQZtpBN5.js → layers.DIRbGezs.js} +1 -1
- package/dist/{layers.BJZxeErp.js → layers.DKJC6GsN.js} +24 -24
- package/dist/{layers.CPc7V8vV.js → layers.DPQQ7HFy.js} +1 -1
- package/dist/{layers.CWM9jAVS.js → layers.DUQLkeAh.js} +1 -1
- package/dist/{layers.Dn7N_XxE.js → layers.DUTElsa0.js} +4 -4
- package/dist/{layers.DmaKWX_o.js → layers.DUcBUdWT.js} +1 -1
- package/dist/{layers.raDKf7HQ.js → layers.DUdfaKqm.js} +1 -1
- package/dist/layers.DVVmZlQ5.js +271 -0
- package/dist/{layers.WjBkkibY.js → layers.DW5Bhqr_.js} +1 -1
- package/dist/{layers.Ho3d8f_s.js → layers.DXtEhby-.js} +1 -1
- package/dist/{layers.CjAzvfUi.js → layers.DZFs-y-1.js} +1 -1
- package/dist/{layers.BRgep5CM.js → layers.D_9lVzGl.js} +1 -1
- package/dist/{layers.C2s6EBCQ.js → layers.D_bhRl-x.js} +1 -1
- package/dist/{layers.oKND5jmb.js → layers.DaAw-Rc5.js} +4 -4
- package/dist/{layers.Db3F9Xht.js → layers.DfR-R568.js} +1 -1
- package/dist/{layers.BWFrDCw_.js → layers.DfiBcClw.js} +1 -1
- package/dist/{layers.CTLImrV_.js → layers.Dfy0TPEt.js} +4 -4
- package/dist/{layers.CuKB5PQH.js → layers.Dgn3fOfn.js} +1 -1
- package/dist/{layers.Da2wn6Zc.js → layers.DhiJgCJD.js} +1 -1
- package/dist/{layers.V_0nAu-4.js → layers.DhsMtgFP.js} +3 -3
- package/dist/layers.Di8zzQAk.js +31973 -0
- package/dist/{layers.BPLJO6yY.js → layers.Dk3uHzaS.js} +1 -1
- package/dist/{layers.yUHpRCIx.js → layers.DmJ5W7yM.js} +1 -1
- package/dist/{layers.CRny5Vhs.js → layers.DnK7u2lX.js} +1 -1
- package/dist/{layers.DKTUA9Qn.js → layers.DnwQBOHh.js} +1 -1
- package/dist/{layers.D1O867q2.js → layers.Doyw9I4B.js} +1 -1
- package/dist/{layers.CPQnDAfI.js → layers.Dp5PIWnn.js} +1 -1
- package/dist/{layers.DMo2CuQp.js → layers.DpcRHzt7.js} +1 -1
- package/dist/{layers.CM6p48QZ.js → layers.DpdSjQmI.js} +7 -7
- package/dist/layers.DqIM077W.js +1 -0
- package/dist/{layers.DaLQ3FRc.js → layers.DsgZik_6.js} +1 -1
- package/dist/{layers.BqHl1vOL.js → layers.DtGucj2v.js} +1 -1
- package/dist/{layers.3ttD_EZK.js → layers.Dtm1woen.js} +1 -1
- package/dist/{layers.DgUQgDzS.js → layers.DtyCGDiz.js} +1 -1
- package/dist/{layers.DzAF3_nF.js → layers.F8UThUfG.js} +3 -3
- package/dist/{layers.Dq9FVA37.js → layers.FV81mpoV.js} +1 -1
- package/dist/{layers.BPPyJ7T3.js → layers.GZZDLvH6.js} +1 -1
- package/dist/{layers.B0_pZ8Wl.js → layers.GhNJlFv5.js} +1 -1
- package/dist/{layers.CLXiEuBY.js → layers.H0LObacQ.js} +1 -1
- package/dist/{layers.Zq2iwsGh.js → layers.HjsOc0yy.js} +1 -1
- package/dist/{layers.zo-yg3U2.js → layers.HumAnx6T.js} +1 -1
- package/dist/{layers.Dc1g7Tdd.js → layers.J02DZ98u.js} +1 -1
- package/dist/{layers.DJGxoM0s.js → layers.Jdn_GiJM.js} +1 -1
- package/dist/{layers.BWBcNeNm.js → layers.K8BLkrc-.js} +1 -1
- package/dist/{layers.B-dcjV1g.js → layers.MKVgpOno.js} +1 -1
- package/dist/{layers.CxPmSslY.js → layers.NlAiJyit.js} +1 -1
- package/dist/{layers.kY76W3YH.js → layers.Ol_RuxUq.js} +1 -1
- package/dist/{layers.DDApHZ03.js → layers.RNi2Lhm1.js} +1 -1
- package/dist/{layers.DpFNEoh4.js → layers.S-g8ri4Z.js} +1 -1
- package/dist/{layers.CMByv_JC.js → layers.SaVr7Lfn.js} +1 -1
- package/dist/{layers.zCqvHYlG.js → layers.Uh2EVogA.js} +1 -1
- package/dist/{layers.CAiKaIpy.js → layers.VLm_qn_u.js} +1 -1
- package/dist/{layers.Di3SZpUk.js → layers.Vqj770-m.js} +1 -1
- package/dist/{layers.BtgFk9_J.js → layers.XRmVMEQD.js} +1 -1
- package/dist/{layers.CbSE8pbT.js → layers.YFwkFxUI.js} +5 -5
- package/dist/layers.YNOgjMyi.js +1 -0
- package/dist/{layers.5LDY8hF9.js → layers.Z9vRdeZV.js} +1 -1
- package/dist/{layers.CVkPVOoO.js → layers.ZGwz6fvv.js} +1 -1
- package/dist/{layers.BuVfRGSL.js → layers.aGEtgw1t.js} +1 -1
- package/dist/{layers.BgV2y1LX.js → layers.aOtZ0mRR.js} +1 -1
- package/dist/{layers.CkibkU4E.js → layers.aR_k9qSY.js} +1 -1
- package/dist/{layers.CFeg1ljH.js → layers.bZV6BmsD.js} +1 -1
- package/dist/{layers.7usfK_-Q.js → layers.eNzvtUB9.js} +5 -5
- package/dist/{layers.DyxXL2dv.js → layers.fAU3IBfx.js} +1 -1
- package/dist/{layers.D71ftE9n.js → layers.jWA8H50k.js} +1 -1
- package/dist/{layers.IEu0gpU1.js → layers.kj-o8WBI.js} +1 -1
- package/dist/{layers.CnlomgVK.js → layers.kvNm0I7u.js} +1 -1
- package/dist/{layers.rW3ZkMNN.js → layers.lteWWQIN.js} +1 -1
- package/dist/{layers.DjWqQYKP.js → layers.oJ6jB7Q_.js} +1 -1
- package/dist/{layers.C06l9Zne.js → layers.p2n46QNA.js} +1 -1
- package/dist/{layers.BR1ZeHtq.js → layers.ptcAreVv.js} +3 -3
- package/dist/{layers.BBb11shn.js → layers.rNpfn2BC.js} +1 -1
- package/dist/{layers.DXNUBu80.js → layers.rVgnYqm8.js} +1 -1
- package/dist/{layers.Fu_2GtJz.js → layers.sqLwKwO8.js} +1 -1
- package/dist/layers.upspAWi1.js +76 -0
- package/dist/{layers.DwDWuERK.js → layers.w1E0KT6l.js} +1 -1
- package/dist/{layers.cRR6U8W0.js → layers.yP4-1D6d.js} +4 -4
- package/dist/{layers.DvW94-D9.js → layers.ywe8eLDV.js} +1 -1
- package/package.json +166 -192
- package/dist/layers.7GMTASen.js +0 -1
- package/dist/layers.BhReR8mV.js +0 -45335
- package/dist/layers.BoEvkl8V.js +0 -304
- package/dist/layers.CiAB6Wqk.js +0 -6
- package/dist/layers.CmmYt3Ou.js +0 -1
- package/dist/layers.D90g-j4O.js +0 -346
- package/dist/layers.DSHp4o8G.js +0 -17
- package/dist/layers.De7xHLnX.js +0 -1
- package/dist/layers.Dg9ASVJB.js +0 -454
- package/dist/layers.DilA0qnM.js +0 -54
- package/dist/layers.DkNxNBfM.js +0 -1
- package/dist/layers.DlgVWdcp.js +0 -1
- package/dist/layers.DnJsFEqv.js +0 -1
- package/dist/layers.DpLIZ7AU.js +0 -8
- package/dist/layers.GsZzw8KK.js +0 -1
- package/dist/layers.MCk79lJa.js +0 -296
package/dist/layers.BoEvkl8V.js
DELETED
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
"use strict";var K9=Object.defineProperty;var U9=(e,n,t)=>n in e?K9(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Me=(e,n,t)=>U9(e,typeof n!="symbol"?n+"":n,t);const yg=require("@mantine/dropzone"),p=require("lexical"),i=require("react/jsx-runtime"),m=require("react"),Ze=require("react-i18next"),H9=require("@lexical/react/LexicalCollaborationContext"),Y9=require("@lexical/react/LexicalCollaborationPlugin"),Z9=require("@lexical/react/LexicalComposer"),Rh=require("@lexical/react/LexicalHistoryPlugin"),v=require("@mantine/core"),pC=require("yjs"),G9=require("i18next"),Mt=require("@layers-app/shared"),it=require("@lexical/react/LexicalComposerContext"),be=require("@lexical/utils"),qr=require("@lexical/react/LexicalDecoratorBlockNode"),Sn=require("@mantine/hooks"),Ut=require("@lexical/code"),an=require("@lexical/selection"),Qo=require("@lexical/react/LexicalBlockWithAlignableContents"),Dr=require("react-dom"),ye=require("@tabler/icons-react"),V9=require("@lexical/hashtag"),on=require("@lexical/link"),pi=require("@lexical/mark"),mC=require("@lexical/overflow"),js=require("@lexical/react/LexicalHorizontalRuleNode"),ln=require("@lexical/rich-text"),q9=require("react-dom/server"),Q9=require("@lexical/react/useLexicalNodeSelection"),J9=require("@lexical/react/LexicalClearEditorPlugin"),X9=require("@lexical/react/LexicalClickableLinkPlugin"),$9=require("@lexical/react/LexicalErrorBoundary"),ew=require("@lexical/react/LexicalHashtagPlugin"),tw=require("@lexical/react/LexicalHorizontalRulePlugin"),nw=require("@lexical/react/LexicalOnChangePlugin"),rw=require("@lexical/react/LexicalRichTextPlugin"),ow=require("@lexical/react/LexicalLinkPlugin"),sw=require("@lexical/react/LexicalMarkdownShortcutPlugin"),no=require("@lexical/markdown"),Nn=require("@lexical/table"),Ea=require("@lexical/html"),iw=require("@mantine/notifications"),aw=require("shaka-player-react"),tf=require("@mantine/carousel"),Ma=require("@lexical/clipboard"),du=require("lodash-es"),lw=require("@lexical/react/useLexicalEditable"),cw=require("@lexical/react/LexicalTableOfContentsPlugin"),Ql=require("@lexical/file"),uw=require("@lexical/yjs"),Ta=require("@lexical/react/LexicalTypeaheadMenuPlugin"),dw=require("@lexical/react/LexicalTreeView"),fw=require("@lexical/react/LexicalContentEditable");function gC(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const hw=gC(m),Ih=gC(pC),mi=()=>new Map,CC=(e,n,t)=>{let r=e.get(n);return r===void 0&&e.set(n,r=t()),r},AC=()=>new Set,pw=Array.from,mw=String.fromCharCode,gw=e=>e.toLowerCase(),Cw=/^\s*/g,Aw=e=>e.replace(Cw,""),bw=/([A-Z])/g,xg=(e,n)=>Aw(e.replace(bw,t=>`${n}${gw(t)}`)),yw=e=>{const n=unescape(encodeURIComponent(e)),t=n.length,r=new Uint8Array(t);for(let o=0;o<t;o++)r[o]=n.codePointAt(o);return r},La=typeof TextEncoder<"u"?new TextEncoder:null,xw=e=>La.encode(e),vw=La?xw:yw;let pa=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});pa&&pa.decode(new Uint8Array).length===1&&(pa=null);const vg=e=>e===void 0?null:e;class ww{constructor(){this.map=new Map}setItem(n,t){this.map.set(n,t)}getItem(n){return this.map.get(n)}}let bC=new ww,Dh=!0;try{typeof localStorage<"u"&&localStorage&&(bC=localStorage,Dh=!1)}catch{}const yC=bC,kw=e=>Dh||addEventListener("storage",e),Sw=e=>Dh||removeEventListener("storage",e),wg=Symbol("Equality"),Ew=Object.keys,Mw=(e,n)=>{const t=[];for(const r in e)t.push(n(e[r],r));return t},kg=e=>Ew(e).length,Tw=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),ma=(e,n)=>{if(e===n)return!0;if(e==null||n==null||e.constructor!==n.constructor&&(e.constructor||Object)!==(n.constructor||Object))return!1;if(e[wg]!=null)return e[wg](n);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),n=new Uint8Array(n);case Uint8Array:{if(e.byteLength!==n.byteLength)return!1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;break}case Set:{if(e.size!==n.size)return!1;for(const t of e)if(!n.has(t))return!1;break}case Map:{if(e.size!==n.size)return!1;for(const t of e.keys())if(!n.has(t)||!ma(e.get(t),n.get(t)))return!1;break}case void 0:case Object:if(kg(e)!==kg(n))return!1;for(const t in e)if(!Tw(e,t)||!ma(e[t],n[t]))return!1;break;case Array:if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(!ma(e[t],n[t]))return!1;break;default:return!1}return!0},Lw=(e,n)=>n.includes(e),ns=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",xC=typeof window<"u"&&typeof document<"u"&&!ns;let eo;const Nw=()=>{if(eo===void 0)if(ns){eo=mi();const e=process.argv;let n=null;for(let t=0;t<e.length;t++){const r=e[t];r[0]==="-"?(n!==null&&eo.set(n,""),n=r):n!==null&&(eo.set(n,r),n=null)}n!==null&&eo.set(n,"")}else typeof location=="object"?(eo=mi(),(location.search||"?").slice(1).split("&").forEach(e=>{if(e.length!==0){const[n,t]=e.split("=");eo.set(`--${xg(n,"-")}`,t),eo.set(`-${xg(n,"-")}`,t)}})):eo=mi();return eo},Df=e=>Nw().has(e),Of=e=>vg(ns?process.env[e.toUpperCase().replaceAll("-","_")]:yC.getItem(e)),vC=e=>Df("--"+e)||Of(e)!==null;vC("production");const jw=ns&&Lw(process.env.FORCE_COLOR,["true","1","2"]);jw||!Df("--no-colors")&&!vC("no-color")&&(!ns||process.stdout.isTTY)&&(!ns||Df("--color")||Of("COLORTERM")!==null||(Of("TERM")||"").includes("color"));const wC=Math.floor,kC=(e,n)=>e<n?e:n,Rw=(e,n)=>e>n?e:n,Iw=Math.pow,SC=128,kc=127,Dw=Number.MAX_SAFE_INTEGER;class Ow{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const Er=()=>new Ow,Oh=e=>{let n=e.cpos;for(let t=0;t<e.bufs.length;t++)n+=e.bufs[t].length;return n},ur=e=>{const n=new Uint8Array(Oh(e));let t=0;for(let r=0;r<e.bufs.length;r++){const o=e.bufs[r];n.set(o,t),t+=o.length}return n.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),t),n},Bc=(e,n)=>{const t=e.cbuf.length;e.cpos===t&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(t*2),e.cpos=0),e.cbuf[e.cpos++]=n},pn=(e,n)=>{for(;n>kc;)Bc(e,SC|kc&n),n=wC(n/128);Bc(e,kc&n)},Pf=new Uint8Array(3e4),Pw=Pf.length/3,Bw=(e,n)=>{if(n.length<Pw){const t=La.encodeInto(n,Pf).written||0;pn(e,t);for(let r=0;r<t;r++)Bc(e,Pf[r])}else Mo(e,vw(n))},_w=(e,n)=>{const t=unescape(encodeURIComponent(n)),r=t.length;pn(e,r);for(let o=0;o<r;o++)Bc(e,t.codePointAt(o))},Fw=La&&La.encodeInto?Bw:_w,Ww=(e,n)=>{const t=e.cbuf.length,r=e.cpos,o=kC(t-r,n.length),s=n.length-o;e.cbuf.set(n.subarray(0,o),r),e.cpos+=o,s>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(Rw(t*2,s)),e.cbuf.set(n.subarray(o)),e.cpos=s)},Mo=(e,n)=>{pn(e,n.byteLength),Ww(e,n)},EC=e=>new Error(e),zw=EC("Unexpected end of array"),Kw=EC("Integer out of Range");class Uw{constructor(n){this.arr=n,this.pos=0}}const MC=e=>new Uw(e),Hw=(e,n)=>{const t=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,n);return e.pos+=n,t},fu=e=>Hw(e,$o(e)),Sg=e=>e.arr[e.pos++],$o=e=>{let n=0,t=1;const r=e.arr.length;for(;e.pos<r;){const o=e.arr[e.pos++];if(n=n+(o&kc)*t,t*=128,o<SC)return n;if(n>Dw)throw Kw}throw zw},Yw=e=>{let n=$o(e);if(n===0)return"";{let t=String.fromCodePoint(Sg(e));if(--n<100)for(;n--;)t+=String.fromCodePoint(Sg(e));else for(;n>0;){const r=n<1e4?n:1e4,o=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,t+=String.fromCodePoint.apply(null,o),n-=r}return decodeURIComponent(escape(t))}},Zw=e=>pa.decode(fu(e)),TC=pa?Zw:Yw,Gw=e=>new Uint8Array(e),Vw=(e,n,t)=>new Uint8Array(e,n,t),qw=e=>new Uint8Array(e),Qw=e=>{let n="";for(let t=0;t<e.byteLength;t++)n+=mw(e[t]);return btoa(n)},Jw=e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("base64"),Xw=e=>{const n=atob(e),t=Gw(n.length);for(let r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},$w=e=>{const n=Buffer.from(e,"base64");return Vw(n.buffer,n.byteOffset,n.byteLength)},e8=xC?Qw:Jw,t8=xC?Xw:$w,LC=new Map;class n8{constructor(n){this.room=n,this.onmessage=null,this._onChange=t=>t.key===n&&this.onmessage!==null&&this.onmessage({data:t8(t.newValue||"")}),kw(this._onChange)}postMessage(n){yC.setItem(this.room,e8(qw(n)))}close(){Sw(this._onChange)}}const r8=typeof BroadcastChannel>"u"?n8:BroadcastChannel,Ph=e=>CC(LC,e,()=>{const n=AC(),t=new r8(e);return t.onmessage=r=>n.forEach(o=>o(r.data,"broadcastchannel")),{bc:t,subs:n}}),o8=(e,n)=>(Ph(e).subs.add(n),n),s8=(e,n)=>{const t=Ph(e),r=t.subs.delete(n);return r&&t.subs.size===0&&(t.bc.close(),LC.delete(e)),r},li=(e,n,t=null)=>{const r=Ph(e);r.bc.postMessage(n),r.subs.forEach(o=>o(n,t))},Is=Date.now,NC=0,Bh=1,jC=2,Bf=(e,n)=>{pn(e,NC);const t=Ih.encodeStateVector(n);Mo(e,t)},RC=(e,n,t)=>{pn(e,Bh),Mo(e,Ih.encodeStateAsUpdate(n,t))},i8=(e,n,t)=>RC(n,t,fu(e)),IC=(e,n,t,r)=>{try{Ih.applyUpdate(n,fu(e),t)}catch(o){r!=null&&r(o),console.error("Caught error while handling a Yjs update",o)}},a8=(e,n)=>{pn(e,jC),Mo(e,n)},l8=IC,c8=(e,n,t,r,o)=>{const s=$o(e);switch(s){case NC:i8(e,n,t);break;case Bh:IC(e,t,r,o);break;case jC:l8(e,t,r,o);break;default:throw new Error("Unknown message type")}return s},u8=0,d8=(e,n,t)=>{switch($o(e)){case u8:t(n,TC(e))}};class DC{constructor(){this._observers=mi()}on(n,t){CC(this._observers,n,AC).add(t)}once(n,t){const r=(...o)=>{this.off(n,r),t(...o)};this.on(n,r)}off(n,t){const r=this._observers.get(n);r!==void 0&&(r.delete(t),r.size===0&&this._observers.delete(n))}emit(n,t){return pw((this._observers.get(n)||mi()).values()).forEach(r=>r(...t))}destroy(){this._observers=mi()}}const nf=3e4;class f8 extends DC{constructor(n){super(),this.doc=n,this.clientID=n.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const t=Is();this.getLocalState()!==null&&nf/2<=t-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const r=[];this.meta.forEach((o,s)=>{s!==this.clientID&&nf<=t-o.lastUpdated&&this.states.has(s)&&r.push(s)}),r.length>0&&_h(this,r,"timeout")},wC(nf/10)),n.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(n){const t=this.clientID,r=this.meta.get(t),o=r===void 0?0:r.clock+1,s=this.states.get(t);n===null?this.states.delete(t):this.states.set(t,n),this.meta.set(t,{clock:o,lastUpdated:Is()});const l=[],c=[],d=[],f=[];n===null?f.push(t):s==null?n!=null&&l.push(t):(c.push(t),ma(s,n)||d.push(t)),(l.length>0||d.length>0||f.length>0)&&this.emit("change",[{added:l,updated:d,removed:f},"local"]),this.emit("update",[{added:l,updated:c,removed:f},"local"])}setLocalStateField(n,t){const r=this.getLocalState();r!==null&&this.setLocalState({...r,[n]:t})}getStates(){return this.states}}const _h=(e,n,t)=>{const r=[];for(let o=0;o<n.length;o++){const s=n[o];if(e.states.has(s)){if(e.states.delete(s),s===e.clientID){const l=e.meta.get(s);e.meta.set(s,{clock:l.clock+1,lastUpdated:Is()})}r.push(s)}}r.length>0&&(e.emit("change",[{added:[],updated:[],removed:r},t]),e.emit("update",[{added:[],updated:[],removed:r},t]))},ga=(e,n,t=e.states)=>{const r=n.length,o=Er();pn(o,r);for(let s=0;s<r;s++){const l=n[s],c=t.get(l)||null,d=e.meta.get(l).clock;pn(o,l),pn(o,d),Fw(o,JSON.stringify(c))}return ur(o)},h8=(e,n,t)=>{const r=MC(n),o=Is(),s=[],l=[],c=[],d=[],f=$o(r);for(let h=0;h<f;h++){const g=$o(r);let C=$o(r);const y=JSON.parse(TC(r)),b=e.meta.get(g),x=e.states.get(g),w=b===void 0?0:b.clock;(w<C||w===C&&y===null&&e.states.has(g))&&(y===null?g===e.clientID&&e.getLocalState()!=null?C++:e.states.delete(g):e.states.set(g,y),e.meta.set(g,{clock:C,lastUpdated:o}),b===void 0&&y!==null?s.push(g):b!==void 0&&y===null?d.push(g):y!==null&&(ma(y,x)||c.push(g),l.push(g)))}(s.length>0||c.length>0||d.length>0)&&e.emit("change",[{added:s,updated:c,removed:d},t]),(s.length>0||l.length>0||d.length>0)&&e.emit("update",[{added:s,updated:l,removed:d},t])},p8=e=>Mw(e,(n,t)=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&"),Ls=0,OC=3,gi=1,m8=2,Ya=[];Ya[Ls]=(e,n,t,r,o)=>{pn(e,Ls);const s=c8(n,e,t.doc,t);r&&s===Bh&&!t.synced&&(t.synced=!0)};Ya[OC]=(e,n,t,r,o)=>{pn(e,gi),Mo(e,ga(t.awareness,Array.from(t.awareness.getStates().keys())))};Ya[gi]=(e,n,t,r,o)=>{h8(t.awareness,fu(n),t)};Ya[m8]=(e,n,t,r,o)=>{d8(n,t.doc,(s,l)=>g8(t,l))};const Eg=3e4,g8=(e,n)=>console.warn(`Permission denied to access ${e.url}.
|
|
2
|
-
${n}`),PC=(e,n,t)=>{const r=MC(n),o=Er(),s=$o(r),l=e.messageHandlers[s];return l?l(o,r,e,t,s):console.error("Unable to compute message"),o},BC=e=>{if(e.shouldConnect&&e.ws===null){const n=new e._WS(e.url);n.binaryType="arraybuffer",e.ws=n,e.wsconnecting=!0,e.wsconnected=!1,e.synced=!1,n.onmessage=t=>{e.wsLastMessageReceived=Is();const r=PC(e,new Uint8Array(t.data),!0);Oh(r)>1&&n.send(ur(r))},n.onerror=t=>{e.emit("connection-error",[t,e])},n.onclose=t=>{e.emit("connection-close",[t,e]),e.ws=null,e.wsconnecting=!1,e.wsconnected?(e.wsconnected=!1,e.synced=!1,_h(e.awareness,Array.from(e.awareness.getStates().keys()).filter(r=>r!==e.doc.clientID),e),e.emit("status",[{status:"disconnected"}])):e.wsUnsuccessfulReconnects++,setTimeout(BC,kC(Iw(2,e.wsUnsuccessfulReconnects)*100,e.maxBackoffTime),e)},n.onopen=()=>{e.wsLastMessageReceived=Is(),e.wsconnecting=!1,e.wsconnected=!0,e.wsUnsuccessfulReconnects=0,e.emit("status",[{status:"connected"}]);const t=Er();if(pn(t,Ls),Bf(t,e.doc),n.send(ur(t)),e.awareness.getLocalState()!==null){const r=Er();pn(r,gi),Mo(r,ga(e.awareness,[e.doc.clientID])),n.send(ur(r))}},e.emit("status",[{status:"connecting"}])}},rf=(e,n)=>{const t=e.ws;e.wsconnected&&t&&t.readyState===t.OPEN&&t.send(n),e.bcconnected&&li(e.bcChannel,n,e)};class _C extends DC{constructor(n,t,r,{connect:o=!0,awareness:s=new f8(r),params:l={},WebSocketPolyfill:c=WebSocket,resyncInterval:d=-1,maxBackoffTime:f=2500,disableBc:h=!1}={}){for(super();n[n.length-1]==="/";)n=n.slice(0,n.length-1);const g=p8(l);this.maxBackoffTime=f,this.bcChannel=n+"/"+t,this.url=n+"/"+t+(g.length===0?"":"?"+g),this.roomname=t,this.doc=r,this._WS=c,this.awareness=s,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=h,this.wsUnsuccessfulReconnects=0,this.messageHandlers=Ya.slice(),this._synced=!1,this.ws=null,this.wsLastMessageReceived=0,this.shouldConnect=o,this._resyncInterval=0,d>0&&(this._resyncInterval=setInterval(()=>{if(this.ws&&this.ws.readyState===WebSocket.OPEN){const C=Er();pn(C,Ls),Bf(C,r),this.ws.send(ur(C))}},d)),this._bcSubscriber=(C,y)=>{if(y!==this){const b=PC(this,new Uint8Array(C),!1);Oh(b)>1&&li(this.bcChannel,ur(b),this)}},this._updateHandler=(C,y)=>{if(y!==this){const b=Er();pn(b,Ls),a8(b,C),rf(this,ur(b))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:C,updated:y,removed:b},x)=>{const w=C.concat(y).concat(b),k=Er();pn(k,gi),Mo(k,ga(s,w)),rf(this,ur(k))},this._exitHandler=()=>{_h(this.awareness,[r.clientID],"app closed")},ns&&typeof process<"u"&&process.on("exit",this._exitHandler),s.on("update",this._awarenessUpdateHandler),this._checkInterval=setInterval(()=>{this.wsconnected&&Eg<Is()-this.wsLastMessageReceived&&this.ws.close()},Eg/10),o&&this.connect()}get synced(){return this._synced}set synced(n){this._synced!==n&&(this._synced=n,this.emit("synced",[n]),this.emit("sync",[n]))}destroy(){this._resyncInterval!==0&&clearInterval(this._resyncInterval),clearInterval(this._checkInterval),this.disconnect(),ns&&typeof process<"u"&&process.off("exit",this._exitHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.doc.off("update",this._updateHandler),super.destroy()}connectBc(){if(this.disableBc)return;this.bcconnected||(o8(this.bcChannel,this._bcSubscriber),this.bcconnected=!0);const n=Er();pn(n,Ls),Bf(n,this.doc),li(this.bcChannel,ur(n),this);const t=Er();pn(t,Ls),RC(t,this.doc),li(this.bcChannel,ur(t),this);const r=Er();pn(r,OC),li(this.bcChannel,ur(r),this);const o=Er();pn(o,gi),Mo(o,ga(this.awareness,[this.doc.clientID])),li(this.bcChannel,ur(o),this)}disconnectBc(){const n=Er();pn(n,gi),Mo(n,ga(this.awareness,[this.doc.clientID],new Map)),rf(this,ur(n)),this.bcconnected&&(s8(this.bcChannel,this._bcSubscriber),this.bcconnected=!1)}disconnect(){this.shouldConnect=!1,this.disconnectBc(),this.ws!==null&&this.ws.close()}connect(){this.shouldConnect=!0,!this.wsconnected&&this.ws===null&&(BC(this),this.connectBc())}}const C8="0.7.84",A8={version:C8},b8=JSON.parse(`{"placeholder":"Write something, or press '/' for commands...","placeholders":{"list":"List","todo":"To-do","quote":"Quote","toggle":"Toggle","collapsibleContent":"Empty. Click or drop blocks inside","layoutAddContent":"Add content"},"heading":{"h1":"Heading 1","h2":"Heading 2","h3":"Heading 3","name":"Heading"},"close":"Close","upload":"Upload","unsavedChanges":{"title":"Unsaved changes","message":"Are you sure you want to close the page? All unsaved data will be lost.","cancel":"Cancel","closeWithoutSaving":"Close without saving"},"menu":{"text":{"title":"Text"},"advanced":{"title":"Advanced blocks"},"inline":{"title":"Inline"},"heading":{"title":"Headings","hintShowCase":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","h1":{"subtitle":"Large Heading","hintDescription":"H1 is used to create the main heading of a page or section, which sets the overall theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header1":"header1","headerOne":"headerone","h1":"h1"}},"h2":{"subtitle":"Medium Heading","hintDescription":"H2 is used to create a secondary heading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header2":"header2","headerTwo":"headertwo","h2":"h2"}},"h3":{"subtitle":"Small Heading","hintDescription":"H3 is used to create a subheading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header3":"header3","headerThree":"headerthree","h3":"h3"}}},"lists":{"title":"Lists","numberList":{"name":"Numbered List","subtitle":"A simple numbered list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically numbered when new rows are added."}},"bulletList":{"name":"Bulleted List","subtitle":"Automatically marked list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically marked with bullets when new rows are added."}},"checkList":{"name":"Check List","subtitle":"Easy task management","hint":{"indeterminate":"Indeterminate","unchecked":"Unchecked","checked":"Checked","description":"Creates a task list with the ability to mark completed items and sub-items."}}},"main":{"title":"Basics","paragraph":{"name":"Paragraph","subtitle":"Simply start typing regular text","hint":{"text":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A few lines of text, left-aligned, imitating a text block."}},"quote":{"name":"Quote","subtitle":"Write down a quote","hint":{"text":"/quote Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster. Stay focused, stay aligned, and achieve more with Layers.","description":"Used to insert quotes or highlight important text blocks. It is visually separated from the main text."}},"collapse":{"name":"Toggle list","subtitle":"Hide block content","hint":{"firstItemEmpty":"First item is empty","secondItem":"Second item","firstSubItemEmpty":"First sub-item is empty","secondSubItem":"Second sub-item","firstSubSubItemEmpty":"First sub-sub-item is empty","secondSubSubItem":"Second sub-sub-item","description":"Used to create blocks with content that can be hidden or shown when clicked. Almost any other block can be placed inside such a list."}},"horizontal-rule":{"name":"Divider","subtitle":"Visualizes block dividers","hint":{"topText":"Pressed the slash. Then entered something...","bottomText":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","description":"Used to visually separate sections or blocks of text on a page."}},"table":{"name":"Table","subtitle":"Add a simple table to your page","hint":{"firstRow":"First cell filled with text","secondRow":"And another cell with text","description":"A tool for creating tables with multiple rows and columns to organize data."}},"grid":{"name":"Grid","subtitle":"Up to 4 columns of blocks","hint":{"firstColumn":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","secondColumn":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A tool for dividing a document into multiple columns, into which any blocks can be placed."}},"code":{"name":"Code","subtitle":"Write a code snippet","copy":"Copy code","exitCommandText":"Shift + Enter to exit code block","languageSearchPlaceholder":"Search for a language...","mobileActions":"Actions","languageDrawerTitle":"Language","languageDrawerDone":"Done","languageSearchNoResults":"Nothing found","drawer":{"collapse":"Collapse","expand":"Expand"},"collapsible":{"hidden":"Collapse code","expand":"Expand code"},"hint":{"description":"A tool for inserting code snippets with syntax highlighting."}},"callout":{"name":"Callout","subtitle":"Make writing stand out","hint":{"description":"-."}}},"callout":{"title":"Callout","default":{"name":"Default","hint":{"description":"A few lines of text aligned to the left, simulating a text block.","body":"/callout Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster."},"keywords":{"callout":"callout","type":"default"},"subtitle":"Default callout"},"success":{"name":"Success","subtitle":"Successful notification","keywords":{"callout":"callout","type":"success"}},"warning":{"name":"Warning","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"warning"},"subtitle":"Important notification"},"alert":{"name":"Alert","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"alert"},"subtitle":"Critical notification"}},"media":{"title":"Media","photo":{"name":"Image","hint":{"description":"A tool for adding an image to a page."},"subtitle":"Upload and place via link"},"form":{"name":"Form","subtitle":"Add a form"},"video":{"name":"Video","hint":{"description":"A tool for embedding video on a page."},"subtitle":"Add a video"},"file":{"name":"File","hint":{"description":"Upload any files up to 500 MB in size, and they will be available for download to anyone you share the link to this page with."},"subtitle":"Add a file"},"audio":{"name":"Audio","hint":{"description":"Upload any audio files up to 5 MB in size, and they will be available for download and listening to anyone you share the link to this page with."},"subtitle":"Add a audio"},"excalidraw":{"name":"Paint","hint":{"description":"Draw any scheme or kind landscape. Free creativity where everything is in your hands."},"keywords":{"video":"draw"},"subtitle":"Work with vector graphics","tools":{"frameTool":"Frame tool","webEmbed":"Web Embed","generate":"Generate"}}},"other":{"title":"Other","documents":{"empty":"You have no nested documents","loading":"Loading documents...","name":"Nested Documents","subtitle":"Displays a list of nested documents"},"pageLink":{"name":"Link to page","subtitle":"Insert a link to another page","modalTitle":"Choose a page","selectPage":"Select a page","searchPlaceholder":"Search for a page...","empty":"No pages available","placeholder":"Link page"},"inlinePageLink":{"name":"Inline page link","subtitle":"Insert a page link inside text"},"emoji":{"name":"Emoji","subtitle":"Add emoji"},"equation":{"name":"Equation","subtitle":"Add a block equation","copy":"Copy equation","overlayTitle":"TeX equation","mobileTitle":"Add a TeX equation","mobileActions":"Actions","keywords":{"equation":"equation","formula":"formula","math":"math","latex":"latex","block":"block","expression":"expression","tex":"tex"}},"embed":{"name":"Embed","subtitle":"Embed anything (PDFs, Google Docs, Google Maps...)"},"inlineEquation":{"name":"Inline Equation","subtitle":"Add an inline equation","keywords":{"equation":"equation","formula":"formula","math":"math","latex":"latex","inline":"inline","expression":"expression","tex":"tex"}}},"equation":{"placeholder":{"block":"Add a TeX equation","inline":"New equation"}},"integrations":{"title":"Embeds"},"formatting":{"title":"Formatting","inlineCode":"Inline code"}},"toolbar":{"turnInto":"Turn into","bold":"Bold","italic":"Italic","underline":"Underline","strike":"Strikethrough","superscript":"Superscript","subscript":"Subscript","align":"Alignment","left":"Align Left","center":"Align Center","right":"Align Right","justify":"Align Justified","indent":"Indent","outdent":"Outdent","color":"Color","code":"Code","link":"Add Link","clear":"Clear Formatting","comment":"Comment","more":"More","colorPicker":{"recentlyUsed":"Recently used","textColors":"Text colors","textHighlights":"Text highlights","background":"Background","tooltipText":"{{name}} text","tooltipHighlight":"{{name}} highlight","names":{"default":"Default","violet":"Violet","indigo":"Indigo","blue":"Blue","teal":"Teal","green":"Green","yellow":"Yellow","orange":"Orange","red":"Red","brown":"Brown","gray":"Gray"}}},"link":{"linkName":"Link name","link":"Link","name":"Name","message":"Message","enterMessage":"Enter message","save":"Save","remove":"Remove","edit":"Edit","copy":"Copy","copied":"Link copied to clipboard","addLink":"Add link","editLink":"Edit link","type":{"web":"Web link","phone":"Phone number","email":"Email address","sms":"SMS message"}},"contextMenu":{"copy":"Copy","cut":"Cut","paste":"Paste","delete":"Delete","add":"Add","selectAll":"Select All","duplicate":"Duplicate","appearance":"Appearance"},"colors":{"lastTimeUsed":"Last Used","color":"Color","background":"Background","theme":"Theme","violet":"Violet color","indigo":"Indigo color","blue":"Blue color","teal":"Teal color","green":"Green color","yellow":"Yellow color","orange":"Orange color","red":"Red highlights","brown":"Brown color","gray":"Gray color","colors":{"standard":"Standard","gray":"Gray","brown":"Brown","orange":"Orange","yellow":"Yellow","green":"Green","blue":"Blue","purple":"Purple","pink":"Pink","red":"Red"},"callout":{"success":"Success","alert":"Alert","warning":"Warning"}},"video":{"insert":"Embed","apply":"Apply","worksWith":"Works with","add_video":"Add Video","source":{"embedLink":"Embed link","uploadVideo":"Upload video"},"link":{"placeholder":"Paste the video link...","save":"Save","invalid":"Enter a valid video link."},"upload":{"title":"Upload video","processed":"Video uploaded. {{percent}}% processed.","dragDrop":"Drag & drop a video or","chooseFile":"choose a file","toUpload":"to upload","maxSize":"Maximum file size: {{size}}. Supported formats: MP4, WebM, OGG.","otherFormats":"(Other formats will be converted automatically)","uploading":"Uploading File","remaining":"Remaining:","progress":"Uploading:"},"actions":{"pause":"Pause","resume":"Resume","cancel":"Cancel","retry":"Retry","selectAnotherFile":"Select another file"},"errors":{"uploadFailed":"Upload failed","sizeLimit":"Your file surpasses the size limit of {{size}}","format":"This video format isn't supported and can't be converted.","formatHint":"Please upload a video in MP4, WebM, or OGG format.","interrupted":"Upload interrupted. Check your connection.","offsetMismatch":"Upload synchronization error. The upload will be retried automatically.","stall":"Upload appears to be stalled. Please check your connection and try again.","unknown":"An error occurred during upload."},"transcoding":{"title":"Transcoding video","analysis":"Analysis","conversion":"Conversion"},"player":{"play":"Play","pause":"Pause","mute":"Mute","unmute":"Unmute","volume":"Volume","settings":"Settings","pictureInPicture":"Picture in picture","enterFullscreen":"Enter fullscreen","exitFullscreen":"Exit fullscreen","playbackError":"Playback error: code {{code}}. Try refreshing the page."},"settings":{"title":"Settings","subtitlesCc":"Subtitles/CC","speed":"Speed","quality":"Quality","normal":"Normal","auto":"Auto","off":"Off"},"settingsModal":{"title":"Video settings","cover":"Cover","uploadFile":"Upload file","cropCoverImage":"Crop cover image","subtitles":"Subtitles","enableAutoSubtitles":"Enable auto-generated subtitles","hideAutoSubtitles":"Hide automatically generated subtitles","uploadSubtitlesManually":"Upload subtitles manually","subtitlesFormatHint":"Upload subtitles in .SRT or .VTT format.","successfullyLoaded":"Successfully loaded","autoGenerated":"Auto-generated","addSubtitleTrack":"Add a subtitle track","selectLanguage":"Select language","defaultLabel":"Default","setDefaultSubtitle":"Set as default","downloadVtt":"Download VTT","deleteSubtitle":"Delete track","uploadError":"Upload failed","chapters":"Transcript","chaptersCustom":"Custom transcript","chaptersDontShow":"Don't show transcript","chaptersPlaceholder":"00:00 Intro\\n01:23 Demo\\n05:10 Summary","chaptersTimePlaceholder":"00:00","chaptersEndTimePlaceholder":"01:23","chaptersTitlePlaceholder":"Chapter name","chaptersInvalidTimeRange":"Invalid chapter time range","addChapter":"Add a transcript","deleteChapter":"Delete transcript","saveChapters":"Save chapters","suggestChapters":"Suggest auto","refreshChapters":"Refresh","emptyChapters":"No chapters yet","chaptersError":"Failed to load chapters","transcript":"Transcript","enableAutoTranscript":"Enable auto-generated transcript","uploadTranscriptManually":"Upload transcript manually","addTranscriptManually":"Add a transcript manually","setCover":"Set as cover","emptyCovers":"No cover previews yet","loadError":"Failed to load cover previews","retry":"Retry","cancel":"Cancel","save":"Save"},"delete":"Delete","mobile":{"actions":"Actions"}},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Add Swagger"},"image":{"add_photo":"Add Image","preview":"Preview"},"file":{"add_file":"Add File"},"audio":{"add_audio":"Add Audio","player":{"waveformSeek":"Seek along the track","playbackSpeed":"Playback speed","volume":"Volume","openVolume":"Open volume control"}},"mention":{"mark":"Mark someone"},"validation":{"link":"Invalid Link","shouldNotExceed":"File size should not exceed {{maxSize}} MB.","doNotUploadMoreThanSingleFile":"Please upload no more than one file.","swaggerUnavailable":"Swagger documentation is unavailable. Please make sure the URL is correct and the server is responding."},"table":{"background_one":"Cell Background Color","background_other":"Cells background color","settings":"Settings","menu":{"addColAfter":"Add Column Right","addColBefore":"Add Column Left","addRowAbove":"Add Row Above","addRowBelow":"Add Row Below","deleteCol":"Delete Column","deleteRow":"Delete Row","mergeCells":"Merge Cells","disconnectCells":"Disconnect Cells","splitCell":"Split Cell","deleteTable":"Delete Table","insertRow_one":"Insert row","insertRow_other":"Insert {{count}} rows","deleteRow_one":"Delete row","deleteRow_other":"Delete {{count}} rows","insertCol_one":"Insert column","insertCol_other":"Insert {{count}} columns","deleteCol_one":"Delete column","deleteCol_other":"Delete {{count}} columns","headTable_col":"{{value}} row column","headTable_row":"{{value}} row header","below":"Below","above":"Above","left":"Left","right":"Right","row":"Row","rows":"Rows","column":"Column","columns":"Columns","color":"Color","headerColumn":"Header column","headerRow":"Header row","insertAbove":"Insert above","insertBelow":"Insert below","insertLeft":"Insert left","insertRight":"Insert right","duplicate":"Duplicate","clearContent":"Clear content","delete":"Delete","increaseIndent":"Increase indent","decreaseIndent":"Decrease indent","addRowAndCol":"Add row and column"},"colorPicker":{"cellBackground":"Cell background"},"mobile":{"rowActions":"Row actions","columnActions":"Column actions"}},"column":{"name":"Insert Grid","insert":"Insert","columns":"Columns","addRight":"Add a column to the right","addRightMaxReached":"Maximum of 4 columns — remove a column to add another","addLeft":"Add a column to the left","moveLeft":"Move a column to the left","changeColor":"Color","moveRight":"Move a column to the right","duplicate":"Duplicate","clearContent":"Clear content","deleteColumn":"Delete a column","mobile":{"columnActions":"Actions"}},"hoverOptions":{"addNewBlockBelow":"Add block below","addNewBlockAbove":"Add block above","drag":"Drag","click":"Click","clickAction":"To open the menu","dragAction":"To move"},"embed":{"placeholder":"Type or paste URL","insert":"Embed","addEmbed":"Add a embed anything (PDFs, Google Docs, Google maps...)","addPrefix":"Add a","save":"Save","hidePreview":"Hide preview","showPreview":"Show preview","viewOriginal":"View original","copyLink":"Copy link","delete":"Delete","openPreview":"Open preview","alignment":"Alignment","moreAction":"More action","linkCopied":"Link copied to clipboard","linkCopyFailed":"Failed to copy link"},"content":"Content","emoji":{"emojis":"Emoji","icons":"Icons","search":"Search","searchResults":"Search result","searchNoResults":"Emoji not found","remove":"Remove","emojiCategory":{"frequent":"Frequently used","people":"Emotions and people","nature":"Animals and nature","foods":"Food and drinks","activity":"Activities","places":"Travel and Places","objects":"Items","symbols":"Symbols","flags":"Flags"}},"form":{"url":"Enter a valid URL."},"noTitle":"No title","gallery":{"download":"Download","close":"Close","errorFile":"Failed to download file"},"emptyPageOptions":{"heading":"A Heading that will automatically generate an interactive table of contents","grid":"The grid will help structure the page horizontally","template":"Create from Template","list":"Numbered list, for easy outlining of the meeting","code":"Code block with syntax support","callout":"Callout for highlighting","table":"Table, to find dependencies in the data","integrations":"Many integrations from third-party services"},"composer":{"discardCommentTitle":"Close without saving?","discardCommentDescription":"Your entered content will be lost.","discardConfirm":"Close","cancel":"Continue","replaceComment":{"title":"Comment already exists","description":"You have selected text that already contains a comment.\\nThe previous comment will be removed.","confirm":"Replace","cancel":"Cancel"},"uploadErrors":{"fileTooLarge":"The file is too large — the maximum size is 5 MB.","tooManyFiles":"You cannot upload more than 10 files."},"placeholder":"Add comment"},"ai":{"placeholder":"Custom prompt","copied":"copied","copy":"copy","back":"Back","menu":{"style":{"professional":"Professional","straightforward":"Straightforward","passiveAggressive":"Passive-aggressive","friendly":"Friendly","poetic":"Poetic","passive_aggressive":"Passive aggressive","pirate":"Pirate"},"main":{"modifySelection":"Modify selection","improveWriting":"Improve writing","fixMistakes":"Fix mistakes","simplify":"Simplify","addMoreDetail":"Add more detail","generate":"Generate","summarise":"Summarise","translate":"Translate into...","changeStyle":"Change style to...","explain":"Explain"},"answer":{"replaceSelection":"Replace selection","addTextInline":"Add text inline","addBelowParagraph":"Add below paragraph","modifyFurther":"Modify further","continueWriting":"Continue writing","regenerate":"Regenerate","otherOptions":"Other options","discard":"Discard"},"languages":{"arabic":"Arabic","bengali":"Bengali","chinese":"Chinese","dutch":"Dutch","english":"English","french":"French","german":"German","hindi":"Hindi","japanese":"Japanese","korean":"Korean","nepali":"Nepali","portuguese":"Portuguese","spanish":"Spanish"}}},"actions":{"delete":"Delete","align":"Alignment"},"cancel":"Cancel","smartPaste":{"aiButton":"Improve writing","rulesButton":"Split via Rules (Safe)","plainButton":"Paste","dontShowAgain":"Don't show again","processing":"Processing...","fallback":"Processing failed, pasting as-is","textTooLong":"The text is too long for AI to process (max {{max}}). Please remove {{excess}} characters to continue.","accept":"Accept","discard":"Discard","freeLimitReached":"Free Smart Paste limit reached. Upgrade your plan for unlimited use.","feedbackTitle":"How satisfied are you with AI text editing?"}}`),y8={editor:b8},x8=JSON.parse(`{"placeholder":"Escribe algo o pulsa '/' para comandos...","placeholders":{"list":"Lista","todo":"Tarea","quote":"Cita","toggle":"Desplegable","collapsibleContent":"Vacío. Haz clic o suelta bloques aquí","layoutAddContent":"Añadir contenido"},"heading":{"h1":"Encabezado 1","h2":"Encabezado 2","h3":"Encabezado 3","name":"Encabezado"},"close":"Cerrar","upload":"Subir","unsavedChanges":{"title":"Cambios no guardados","message":"¿Está seguro de que desea cerrar la página? Todos los datos no guardados se perderán.","cancel":"Cancelar","closeWithoutSaving":"Cerrar sin guardar"},"menu":{"text":{"title":"Texto"},"advanced":{"title":"Bloques avanzados"},"inline":{"title":"En línea"},"heading":{"title":"Encabezados","hintShowCase":"Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}: un espacio de trabajo conectado donde el trabajo mejora y se acelera.","h1":{"subtitle":"Encabezado grande","hintDescription":"H1 se utiliza para crear el encabezado principal de una página o sección, estableciendo el tema general. También se utiliza para generar automáticamente el índice de contenidos del documento.","keywords":{"header1":"encabezado1","headerOne":"encabezadouno","h1":"h1"}},"h2":{"subtitle":"Encabezado mediano","hintDescription":"H2 se utiliza para crear un encabezado secundario de una página o sección, estableciendo un tema general. También se utiliza para generar automáticamente el índice de contenidos.","keywords":{"header2":"encabezado2","headerTwo":"encabezadodos","h2":"h2"}},"h3":{"subtitle":"Encabezado pequeño","hintDescription":"H3 se utiliza para crear un subencabezado de una página o sección. También genera automáticamente el índice de contenidos.","keywords":{"header3":"encabezado3","headerThree":"encabezadotres","h3":"h3"}}},"lists":{"title":"Listas","numberList":{"name":"Lista numerada","subtitle":"Una lista numerada simple","hint":{"firstItem":"Primer elemento","secondItem":"Segundo elemento","firstSubItem":"Primer subelemento","secondSubItem":"Segundo subelemento","firstSubSubItem":"Primer sub-subelemento","secondSubSubItem":"Segundo sub-subelemento","description":"Esta herramienta crea una lista con elementos que se numeran automáticamente al agregar nuevas filas."}},"bulletList":{"name":"Lista con viñetas","subtitle":"Lista con marcadores automáticos","hint":{"firstItem":"Primer elemento","secondItem":"Segundo elemento","firstSubItem":"Primer subelemento","secondSubItem":"Segundo subelemento","firstSubSubItem":"Primer sub-subelemento","secondSubSubItem":"Segundo sub-subelemento","description":"Crea una lista cuyos elementos están marcados automáticamente con viñetas."}},"checkList":{"name":"Lista de tareas","subtitle":"Gestión de tareas fácil","hint":{"indeterminate":"Indeterminado","unchecked":"No marcado","checked":"Marcado","description":"Crea una lista de tareas con opción de marcar como completadas."}}},"main":{"title":"Elementos básicos","paragraph":{"name":"Párrafo","subtitle":"Comienza a escribir texto normal","hint":{"text":"Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}: un espacio de trabajo conectado donde el trabajo mejora y se acelera.","description":"Un bloque de texto alineado a la izquierda."}},"quote":{"name":"Cita","subtitle":"Escribe una cita","hint":{"text":"/quote Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}: un espacio de trabajo conectado donde el trabajo mejora y se acelera.","description":"Inserta citas o destaca bloques de texto importantes."}},"collapse":{"name":"Lista expandible","subtitle":"Oculta contenido del bloque","hint":{"firstItemEmpty":"Primer elemento vacío","secondItem":"Segundo elemento","firstSubItemEmpty":"Primer subelemento vacío","secondSubItem":"Segundo subelemento","firstSubSubItemEmpty":"Primer sub-subelemento vacío","secondSubSubItem":"Segundo sub-subelemento","description":"Crea bloques cuyo contenido se puede ocultar o mostrar al hacer clic."}},"horizontal-rule":{"name":"Divisor","subtitle":"Visualiza divisores de bloques","hint":{"topText":"Presionó la barra diagonal. Luego ingresó algo...","bottomText":"Al día siguiente, todo quedó más claro. Lo que ayer era desconocido, hoy es familiar. Por ejemplo...","description":"Separa visualmente secciones o bloques de texto."}},"table":{"name":"Tabla","subtitle":"Agrega una tabla simple a la página","hint":{"firstRow":"Primera celda con texto","secondRow":"Otra celda con texto","description":"Crea tablas con múltiples filas y columnas para organizar datos."}},"grid":{"name":"Cuadrícula","subtitle":"Hasta 4 columnas de bloques","hint":{"firstColumn":"Al día siguiente todo fue más claro...","secondColumn":"Tus ideas, documentos y planes. Unidos...","description":"Divide el documento en múltiples columnas que pueden contener bloques."}},"code":{"name":"Código","subtitle":"Escribe un fragmento de código","copy":"Copiar código","exitCommandText":"Shift + Enter para salir del bloque","languageSearchPlaceholder":"Buscar un idioma...","mobileActions":"Acciones","languageDrawerTitle":"Idioma","languageDrawerDone":"Listo","languageSearchNoResults":"Sin resultados","drawer":{"collapse":"Colapsar","expand":"Expandir"},"collapsible":{"hidden":"Colapsar código","expand":"Expandir código"},"hint":{"description":"Inserta fragmentos de código con resaltado de sintaxis."}},"callout":{"name":"Llamado","subtitle":"Destaca un bloque de texto","hint":{"description":"-."}}},"callout":{"title":"Llamado","default":{"name":"Por defecto","hint":{"description":"Bloque de texto alineado a la izquierda.","body":"/callout Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}..."},"keywords":{"callout":"llamado","type":"default"},"subtitle":"Llamado por defecto"},"success":{"name":"Éxito","subtitle":"Notificación de éxito","keywords":{"callout":"llamado","type":"success"}},"warning":{"name":"Advertencia","hint":{"description":"Bloque de texto alineado a la izquierda."},"keywords":{"callout":"llamado","type":"warning"},"subtitle":"Notificación importante"},"alert":{"name":"Alerta","hint":{"description":"Bloque de texto alineado a la izquierda."},"keywords":{"callout":"llamado","type":"alert"},"subtitle":"Notificación crítica"}},"media":{"title":"Multimedia","photo":{"name":"Imagen","hint":{"description":"Agrega una imagen a la página."},"subtitle":"Sube o enlaza una imagen"},"form":{"name":"Formulario","subtitle":"Agrega un formulario"},"video":{"name":"Video","hint":{"description":"Incrusta un video en la página."},"subtitle":"Agrega un video"},"file":{"name":"Archivo","hint":{"description":"Sube archivos de hasta 500 MB para que puedan ser descargados por quienes tengan el enlace."},"subtitle":"Agrega un archivo"},"audio":{"name":"Audio","hint":{"description":"Sube archivos de audio de hasta 5 MB para compartir y escuchar."},"subtitle":"Agrega un audio"},"excalidraw":{"name":"Dibujo","hint":{"description":"Dibuja cualquier esquema o paisaje. Creatividad sin límites."},"keywords":{"video":"dibujo"},"subtitle":"Trabaja con gráficos vectoriales","tools":{"frameTool":"Herramienta de marco","webEmbed":"Incrustación web","generate":"Generar"}}},"other":{"title":"Otros","documents":{"empty":"No tienes documentos anidados","loading":"Cargando documentos...","name":"Documentos Anidados","subtitle":"Muestra una lista de documentos anidados"},"pageLink":{"name":"Enlace a página","subtitle":"Insertar enlace a otra página","modalTitle":"Elige una página","selectPage":"Selecciona una página","searchPlaceholder":"Buscar página...","empty":"No hay páginas disponibles","placeholder":"Enlazar página"},"inlinePageLink":{"name":"Enlace de página en línea","subtitle":"Insertar un enlace a página dentro del texto"},"emoji":{"name":"Emoji","subtitle":"Agrega emoji"},"equation":{"name":"Ecuacion","subtitle":"Agrega una ecuacion en bloque","copy":"Copiar ecuación","overlayTitle":"Ecuación TeX","mobileTitle":"Agregar ecuación TeX","mobileActions":"Acciones","keywords":{"equation":"ecuacion","formula":"formula","math":"matematica","latex":"latex","block":"bloque","expression":"expresion","tex":"tex"}},"embed":{"name":"Embed","subtitle":"Incrustar cualquier cosa (PDF, Google Docs, Google Maps...)"},"inlineEquation":{"name":"Ecuacion en linea","subtitle":"Agrega una ecuacion en linea","keywords":{"equation":"ecuacion","formula":"formula","math":"matematica","latex":"latex","inline":"linea","expression":"expresion","tex":"tex"}}},"equation":{"placeholder":{"block":"Agrega una ecuación TeX","inline":"Nueva ecuación"}},"integrations":{"title":"Incrustaciones"},"formatting":{"title":"Formato","inlineCode":"Código en línea"}},"toolbar":{"turnInto":"Convertir en","bold":"Negrita","italic":"Cursiva","underline":"Subrayado","strike":"Tachado","superscript":"Superíndice","subscript":"Subíndice","align":"Alineación","left":"Alinear a la izquierda","center":"Alinear al centro","right":"Alinear a la derecha","justify":"Alinear justificado","indent":"Aumentar sangría","outdent":"Disminuir sangría","color":"Color","code":"Código","link":"Agregar enlace","clear":"Quitar formato","comment":"Comentario","more":"Más","colorPicker":{"recentlyUsed":"Usados recientemente","textColors":"Colores de texto","textHighlights":"Resaltados de texto","background":"Fondo","tooltipText":"{{name}} — texto","tooltipHighlight":"{{name}} — resaltado","names":{"default":"Predeterminado","violet":"Violeta","indigo":"Índigo","blue":"Azul","teal":"Verde azulado","green":"Verde","yellow":"Amarillo","orange":"Naranja","red":"Rojo","brown":"Marrón","gray":"Gris"}}},"link":{"linkName":"Nombre del enlace","link":"Enlace","name":"Nombre","message":"Mensaje","enterMessage":"Escribe un mensaje","save":"Guardar","remove":"Eliminar","edit":"Editar","copy":"Copiar","copied":"Enlace copiado al portapapeles","addLink":"Añadir enlace","editLink":"Editar enlace","type":{"web":"Enlace web","phone":"Número de teléfono","email":"Dirección de correo electrónico","sms":"Mensaje SMS"}},"contextMenu":{"copy":"Copiar","cut":"Cortar","paste":"Pegar","delete":"Eliminar","add":"Agregar","selectAll":"Seleccionar todo","duplicate":"Duplicar","appearance":"Apariencia"},"colors":{"lastTimeUsed":"Último uso","color":"Color","background":"Fondo","theme":"Tema","violet":"Color violeta","indigo":"Color índigo","blue":"Color azul","teal":"Color turquesa","green":"Color verde","yellow":"Color amarillo","orange":"Color naranja","red":"Resaltado rojo","brown":"Color marrón","gray":"Color gris","colors":{"standard":"Estándar","gray":"Gris","brown":"Marrón","orange":"Naranja","yellow":"Amarillo","green":"Verde","blue":"Azul","purple":"Púrpura","pink":"Rosa","red":"Rojo"},"callout":{"success":"Éxito","alert":"Alerta","warning":"Advertencia"}},"video":{"insert":"Insertar","apply":"Aplicar","worksWith":"Funciona con","add_video":"Agregar video","source":{"embedLink":"Insertar enlace","uploadVideo":"Subir video"},"link":{"placeholder":"Pega el enlace del video...","save":"Guardar","invalid":"Introduce un enlace de video válido."},"upload":{"title":"Subir video","processed":"Video subido. {{percent}}% procesado.","dragDrop":"Arrastra un video o","chooseFile":"elige un archivo","toUpload":"para subir","maxSize":"Tamaño máximo: {{size}}. Formatos: MP4, WebM, OGG.","otherFormats":"(Otros formatos se convertirán automáticamente)","uploading":"Subiendo archivo","remaining":"Restante:","progress":"Subiendo:"},"actions":{"pause":"Pausar","resume":"Reanudar","cancel":"Cancelar","retry":"Reintentar","selectAnotherFile":"Seleccionar otro archivo"},"errors":{"uploadFailed":"Error al subir","sizeLimit":"El archivo supera el límite de {{size}}","format":"Este formato de video no es compatible y no se puede convertir.","formatHint":"Sube un video en formato MP4, WebM u OGG.","interrupted":"Subida interrumpida. Comprueba tu conexión.","offsetMismatch":"Error de sincronización. Se reintentará automáticamente.","stall":"La subida se ha detenido. Comprueba tu conexión e inténtalo de nuevo.","unknown":"Ocurrió un error durante la subida."},"transcoding":{"title":"Transcodificando video","analysis":"Análisis","conversion":"Conversión"},"player":{"play":"Reproducir","pause":"Pausar","mute":"Silenciar","unmute":"Activar sonido","volume":"Volumen","settings":"Ajustes","pictureInPicture":"Picture in picture","enterFullscreen":"Pantalla completa","exitFullscreen":"Salir de pantalla completa","playbackError":"Error de reproducción: código {{code}}. Intenta actualizar la página."},"settings":{"title":"Ajustes","subtitlesCc":"Subtítulos/CC","speed":"Velocidad","quality":"Calidad","normal":"Normal","auto":"Auto","off":"Apagado"},"settingsModal":{"title":"Configuración del video","cover":"Portada","uploadFile":"Subir archivo","cropCoverImage":"Recortar portada","subtitles":"Subtítulos","enableAutoSubtitles":"Activar subtítulos generados automáticamente","hideAutoSubtitles":"Ocultar subtítulos generados automáticamente","uploadSubtitlesManually":"Subir subtítulos manualmente","subtitlesFormatHint":"Sube subtítulos en formato .SRT o .VTT.","successfullyLoaded":"Cargado correctamente","autoGenerated":"Automático","addSubtitleTrack":"Añadir pista de subtítulos","selectLanguage":"Seleccionar idioma","defaultLabel":"Predeterminado","setDefaultSubtitle":"Establecer como predeterminado","downloadVtt":"Descargar VTT","deleteSubtitle":"Eliminar pista","uploadError":"Error al subir","chapters":"Transcripción","chaptersCustom":"Transcripción personalizada","chaptersDontShow":"No mostrar transcripción","chaptersPlaceholder":"00:00 Introducción\\n01:23 Demo\\n05:10 Resumen","chaptersTimePlaceholder":"00:00","chaptersEndTimePlaceholder":"01:23","chaptersTitlePlaceholder":"Nombre del capítulo","chaptersInvalidTimeRange":"Rango de tiempo de capítulo inválido","addChapter":"Añadir transcripción","deleteChapter":"Eliminar transcripción","saveChapters":"Guardar capítulos","suggestChapters":"Sugerir auto","refreshChapters":"Actualizar","emptyChapters":"Aún no hay capítulos","chaptersError":"Error al cargar capítulos","transcript":"Transcripción","enableAutoTranscript":"Activar transcripción generada automáticamente","uploadTranscriptManually":"Subir transcripción manualmente","addTranscriptManually":"Añadir una transcripción manualmente","setCover":"Establecer como portada","emptyCovers":"Aún no hay vistas previas de portada","loadError":"Error al cargar vistas previas de portada","retry":"Reintentar","cancel":"Cancelar","save":"Guardar"},"delete":"Eliminar","mobile":{"actions":"Acciones"}},"swagger":{"insert":"Swagger","worksWith":"Funciona con","add":"Agregar Swagger"},"image":{"add_photo":"Agregar imagen","preview":"Vista previa"},"file":{"add_file":"Agregar archivo"},"audio":{"add_audio":"Agregar audio","player":{"waveformSeek":"Buscar en la pista","playbackSpeed":"Velocidad de reproducción","volume":"Volumen","openVolume":"Abrir control de volumen"}},"mention":{"mark":"Mencionar a alguien"},"validation":{"link":"Enlace inválido","shouldNotExceed":"El tamaño del archivo no debe exceder {{maxSize}} MB.","doNotUploadMoreThanSingleFile":"Por favor, no subas más de un archivo.","swaggerUnavailable":"La documentación de Swagger no está disponible. Asegúrese de que la URL sea correcta y que el servidor esté respondiendo."},"table":{"background_one":"Color de fondo de celda","background_other":"Color de fondo de las celdas","settings":"Configuraciones","menu":{"addColAfter":"Agregar columna a la derecha","addColBefore":"Agregar columna a la izquierda","addRowAbove":"Agregar fila arriba","addRowBelow":"Agregar fila abajo","deleteCol":"Eliminar columna","deleteRow":"Eliminar fila","mergeCells":"Combinar celdas","disconnectCells":"Desconectar celdas","splitCell":"Dividir celda","deleteTable":"Eliminar tabla","insertRow_one":"Insertar fila","insertRow_other":"Insertar {{count}} filas","deleteRow_one":"Eliminar fila","deleteRow_other":"Eliminar {{count}} filas","insertCol_one":"Insertar columna","insertCol_other":"Insertar {{count}} columnas","deleteCol_one":"Eliminar columna","deleteCol_other":"Eliminar {{count}} columnas","headTable_col":"Columna de fila {{value}}","headTable_row":"Encabezado de fila {{value}}","below":"Debajo","above":"Arriba","left":"Izquierda","right":"Derecha","row":"Fila","rows":"Filas","column":"Columna","columns":"Columnas","color":"Color","headerColumn":"Columna de encabezado","headerRow":"Fila de encabezado","insertAbove":"Insertar arriba","insertBelow":"Insertar abajo","insertLeft":"Insertar a la izquierda","insertRight":"Insertar a la derecha","duplicate":"Duplicar","clearContent":"Limpiar contenido","delete":"Eliminar","increaseIndent":"Aumentar sangría","decreaseIndent":"Disminuir sangría","addRowAndCol":"Agregar fila y columna"},"colorPicker":{"cellBackground":"Fondo de celda"},"mobile":{"rowActions":"Acciones de fila","columnActions":"Acciones de columna"}},"column":{"name":"Insertar cuadrícula","insert":"Insertar","columns":"Columnas","addRight":"Agregar columna a la derecha","addRightMaxReached":"Máximo 4 columnas — elimina una para añadir otra","addLeft":"Agregar columna a la izquierda","moveLeft":"Mover columna a la izquierda","changeColor":"Color","moveRight":"Mover columna a la derecha","duplicate":"Duplicar","clearContent":"Limpiar contenido","deleteColumn":"Eliminar columna","mobile":{"columnActions":"Acciones"}},"hoverOptions":{"addNewBlockBelow":"Agregar bloque debajo","addNewBlockAbove":"Agregar bloque arriba","drag":"Arrastrar","click":"Clic","clickAction":"Para abrir el menú","dragAction":"Para mover"},"embed":{"placeholder":"Escribe o pega una URL","insert":"Insertar","addEmbed":"Incrustar cualquier cosa (PDFs, Google Docs, Google Maps...)","addPrefix":"Agregar","save":"Guardar","hidePreview":"Ocultar vista previa","showPreview":"Mostrar vista previa","viewOriginal":"Ver original","copyLink":"Copiar enlace","delete":"Eliminar","openPreview":"Abrir vista previa","alignment":"Alineación","moreAction":"Más acciones","linkCopied":"Enlace copiado al portapapeles","linkCopyFailed":"Error al copiar el enlace"},"content":"Contenido","emoji":{"emojis":"Emoji","icons":"Íconos","search":"Buscar","searchResults":"Resultado de búsqueda","searchNoResults":"Emoji no encontrado","remove":"Eliminar","emojiCategory":{"frequent":"Usados frecuentemente","people":"Emociones y personas","nature":"Animales y naturaleza","foods":"Comida y bebidas","activity":"Actividades","places":"Viajes y lugares","objects":"Objetos","symbols":"Símbolos","flags":"Banderas"}},"form":{"url":"Introduce una URL válida."},"noTitle":"Sin título","gallery":{"download":"Descargar","close":"Cerrar","errorFile":"No se pudo descargar el archivo"},"emptyPageOptions":{"heading":"Un encabezado que generará automáticamente un índice interactivo","grid":"La cuadrícula ayuda a estructurar horizontalmente la página","list":"Lista numerada para estructurar fácilmente reuniones","template":"Crear desde plantilla","code":"Bloque de código con resaltado de sintaxis","callout":"Llamado para resaltar información","table":"Tabla para encontrar dependencias en los datos","integrations":"Muchas integraciones de servicios externos"},"composer":{"discardCommentTitle":"¿Cerrar sin guardar?","discardCommentDescription":"Tu contenido ingresado se perderá.","discardConfirm":"Cerrar","cancel":"Continuar","replaceComment":{"title":"El comentario ya existe","description":"Has seleccionado un texto que ya contiene un comentario.\\nEl comentario anterior será eliminado.","confirm":"Reemplazar","cancel":"Cancelar"},"uploadErrors":{"fileTooLarge":"El archivo es demasiado grande — el tamaño máximo es de 5 MB.","tooManyFiles":"No puedes subir más de 10 archivos."},"placeholder":"Agregar comentario"},"ai":{"placeholder":"Prompt personalizado","copied":"copiado","copy":"copiar","back":"Atrás","menu":{"style":{"professional":"Profesional","straightforward":"Directo","passiveAggressive":"Pasivo-agresivo","friendly":"Amistoso","poetic":"Poético","passive_aggressive":"Pasivo agresivo","pirate":"Pirata"},"main":{"modifySelection":"Modificar selección","improveWriting":"Mejorar redacción","fixMistakes":"Corregir errores","simplify":"Simplificar","addMoreDetail":"Agregar más detalle","generate":"Generar","summarise":"Resumir","translate":"Traducir a...","changeStyle":"Cambiar estilo a...","explain":"Explicar"},"answer":{"replaceSelection":"Reemplazar selección","addTextInline":"Agregar texto en línea","addBelowParagraph":"Agregar debajo del párrafo","modifyFurther":"Modificar más","continueWriting":"Seguir escribiendo","regenerate":"Regenerar","otherOptions":"Otras opciones","discard":"Descartar"},"languages":{"arabic":"Árabe","bengali":"Bengalí","chinese":"Chino","dutch":"Holandés","english":"Inglés","french":"Francés","german":"Alemán","hindi":"Hindi","japanese":"Japonés","korean":"Coreano","nepali":"Nepalí","portuguese":"Portugués","spanish":"Español"}}},"actions":{"delete":"Eliminar","align":"Alineación"},"cancel":"Cancelar","smartPaste":{"aiButton":"Mejorar texto","rulesButton":"Dividir con Rules (Safe)","plainButton":"Pegar","dontShowAgain":"No volver a mostrar","processing":"Procesando...","fallback":"Error al procesar, pegando tal cual","textTooLong":"El texto es demasiado largo para procesarlo con IA (máx. {{max}}). Elimine {{excess}} caracteres para continuar.","accept":"Aceptar","discard":"Descartar","freeLimitReached":"Límite gratuito de Smart Paste alcanzado. Mejora tu plan para uso ilimitado.","feedbackTitle":"¿Qué tan satisfecho estás con la edición de texto con IA?"}}`),v8={editor:x8},w8=JSON.parse(`{"placeholder":"Напишите что-нибудь, или нажмите '/' для команд...","placeholders":{"list":"Список","todo":"Задача","quote":"Цитата","toggle":"Переключатель","collapsibleContent":"Пусто. Нажмите или перетащите блоки сюда","layoutAddContent":"Добавьте контент"},"upload":"Загрузить","heading":{"h1":"Заголовок 1","h2":"Заголовок 2","h3":"Заголовок 3","name":"Заголовок"},"close":"Закрыть","unsavedChanges":{"title":"Несохранённые изменения","message":"Вы действительно хотите закрыть страницу? Все несохранённые данные будут потеряны.","cancel":"Отмена","closeWithoutSaving":"Закрыть без сохранения"},"menu":{"text":{"title":"Текст"},"advanced":{"title":"Расширенные блоки"},"inline":{"title":"Инлайн"},"heading":{"title":"Заголовоки","hintShowCase":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","h1":{"subtitle":"Большой заголовок","hintDescription":"H1 используется для создания основного заголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header1":"заголовок1","headerOne":"заголовокодин","h1":"з1"}},"h2":{"subtitle":"средний заголовок","hintDescription":"H2 используется для создания дополнительного заголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header2":"заголовок2","headerTwo":"заголовокдва","h2":"з2"}},"h3":{"subtitle":"Маленький заголовок","hintDescription":"H3 используется для создания подзаголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header3":"заголовок3","headerThree":"заголовоктри","h3":"з3"}}},"lists":{"title":"Списки","numberList":{"name":"Нумерованный Список","subtitle":"Простой нумерованный список","hint":{"firstItem":"Первый пункт","secondItem":"Второй пункт","firstSubItem":"Первый подпункт","secondSubItem":"Второй подпункт","firstSubSubItem":"Первый подподпункт","secondSubSubItem":"Второй подподпункт","description":"Этот инструмент создает список с элементами, которые автоматически нумеруются при добавлении новых строк."},"keywords":{"headingList":"нумерованныйсписок","heading":"нумерация","markers":"цифры"}},"bulletList":{"name":"Маркированный список","subtitle":"Автоматически маркированный список","hint":{"firstItem":"Первый пункт","secondItem":"Второй пункт","firstSubItem":"Первый подпункт","secondSubItem":"Второй подпункт","firstSubSubItem":"Первый подподпункт","secondSubSubItem":"Второй подподпункт","description":"Этот инструмент создает список с элементами, которые маркируются автоматически при добавлении новых строк."},"keywords":{"headingList":"маркированныйсписок","heading":"маркеры","markers":"точки","bulletsAlt1":"буллеты","bulletsAlt2":"булеты"}},"checkList":{"name":"Чек-лист","subtitle":"Простое управление задачами","hint":{"indeterminate":"Неопределен","unchecked":"Неотмечен","checked":"Отмечен","description":"Создает список задач с возможностью отметки выполненных пунктов и подпунктов"},"keywords":{"headingList":"списокзадач","heading":"чеклист","markers":"флажки","shoppingList":"списокпокупок"}}},"main":{"title":"Базовые","paragraph":{"name":"Парараграф","subtitle":"Просто начнийте писать обычным текстом","hint":{"text":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок"},"keywords":{"paragraph":"параграф","text":"текст"}},"quote":{"name":"Цитата","subtitle":"Запишите цитату","hint":{"text":"/quote Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Оставайтесь сосредоточенными, действуйте слаженно и добивайтесь большего с Layers.","description":"Используется для вставки цитат или выделения важных блоков текста. Визуально выносится отдельно от основного текста"},"keywords":{"quote":"цитата","mark":"кавычки","citation":"цитирование"}},"collapse":{"name":"Список с переключателем","subtitle":"Прячет содержимое блока","hint":{"firstItemEmpty":"Первый пункт пустой","secondItem":"Второй пункт","firstSubItemEmpty":"Первый подпункт пустой","secondSubItem":"Второй подпункт","firstSubSubItemEmpty":"Первый подподпункт пустой ","secondSubSubItem":"Второй подподпункт","description":"Используется для создания блоков с содержимым, которое можно скрыть или показать при нажатии. Внутри такого списка может быть почти любой другой блок"},"keywords":{"collapsibleList":"сворачиваемыйсписок","expandList":"раскрыть","hideList":"скрыть","turnList":"свернуть"}},"horizontal-rule":{"name":"Разделитель","subtitle":"Визуализирует разделитель блоков","hint":{"topText":"нажал на слэш. Потом что-то ввёл...","bottomText":"На следующий день всё стало яснее и понятнее. Будто то, что ещё вчера было чем-то неизведанным сегодня стало совершенно знакомым и обыденным. Вот взять, к примеру","description":"Используется для визуального разделения разделов или блоков текста на странице"},"keywords":{"divider":"разделитель","horizontalLine":"линия","border":"граница"}},"table":{"name":"Таблица","subtitle":"Добавьте на свою страницу простую таблицу","hint":{"firstRow":"Первая ячейка заполненная текстом","secondRow":"И ещё одна с текстом ячейка","description":"Инструмент для создания таблиц с несколькими строками и столбцами для организации данных"},"keywords":{"table":"таблица"}},"grid":{"name":"Сетка","subtitle":"До 4-х колонок из блоков","hint":{"firstColumn":"На следующий день всё стало яснее и понятнее. Будто то, что ещё вчера было чем-то неизведанным сегодня стало совершенно знакомым и обыденным. Вот взять, к примеру","secondColumn":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","description":"Инструмент для разделения докуента на несколько столбцов, в которые можно помещать любые блоки"},"keywords":{"net":"сетка","grid":"грид","columns":"столбцы"}},"code":{"name":"Код","subtitle":"Запишите фрагмент кода","copy":"Копировать код","exitCommandText":"Shift + Enter чтобы выйти из блока кода","languageSearchPlaceholder":"Найти язык...","mobileActions":"Действия","languageDrawerTitle":"Язык","languageDrawerDone":"Готово","languageSearchNoResults":"Ничего не найдено","drawer":{"collapse":"Свернуть","expand":"Развернуть"},"collapsible":{"hidden":"Свернуть код","expand":"Развернуть код"},"hint":{"description":"Инструмент для вставки фрагментов программного кода с подсветкой синтаксиса"},"keywords":{"code":"код","snippet":"сниппет"}}},"media":{"title":"Медиа","photo":{"name":"Картинка","hint":{"description":"Инструмент для добавления изображения на страницу"},"keywords":{"picture":"картинка","display":"изображение","meme":"мем","drawing":"иллюстрация","memePic":"пикча"},"subtitle":"Загрузите и разместите с помощью ссылки"},"form":{"name":"Форма","subtitle":"Добавьте форму"},"video":{"name":"Видео","hint":{"description":"Инструмент для вставки видео на страницу"},"keywords":{"video":"видео"},"subtitle":"Добавьте видео"},"file":{"name":"Файл","hint":{"description":"Загружайте любые файлы объёмом до 500 Мб и они будут доступны для скачивания всем, с кем вы поделитесь ссылкой на эту страницу."},"keywords":{"video":"файл"},"subtitle":"Добавьте файл"},"audio":{"name":"Аудио","hint":{"description":"Загружайте любые аудиофайлы объёмом до 5 Мб и они будут доступны для скачивания и прослушивания всем, с кем вы поделитесь ссылкой на эту страницу."},"keywords":{"video":"аудио"},"subtitle":"Добавьте аудио"},"excalidraw":{"name":"Доска для рисования","hint":{"description":"Нарисуй любую схему или концепт. Полная свобода творчества — всё в твоих руках."},"keywords":{"draw":"рисовать","drawing":"рисовалка"},"subtitle":"Работайте с векторной графикой","tools":{"frameTool":"Инструмент рамки","webEmbed":"Веб-встраивание","generate":"Генерировать"}}},"callout":{"title":"Тип","default":{"name":"По умолчанию","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок.","body":"/callout Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Ваши Идеи и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа"},"keywords":{"callout":"оповещение","type":"поумолчанию"},"subtitle":"Уведомление по умолчанию"},"success":{"name":"Успех","subtitle":"Успешное уведомления","keywords":{"callout":"оповещение","type":"успех"}},"warning":{"name":"Предупреждение","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок."},"keywords":{"callout":"оповещение","type":"предупреждение"},"subtitle":"Важное уведомления"},"alert":{"name":"Внимание","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок."},"keywords":{"callout":"оповещение","type":"внимание"},"subtitle":"Критическое уведомление"}},"other":{"title":"Прочее","documents":{"empty":"У вас нет вложенных документов","loading":"Загрузка документов...","name":"Вложенные документы","subtitle":"Отображает список вложенных документов"},"pageLink":{"name":"Ссылка на страницу","subtitle":"Вставить ссылку на другую страницу","modalTitle":"Выберите страницу","selectPage":"Выберите страницу","searchPlaceholder":"Поиск страницы...","empty":"Нет доступных страниц","placeholder":"Ссылка на страницу"},"inlinePageLink":{"name":"Ссылка на страницу в тексте","subtitle":"Вставить ссылку на страницу прямо в текст"},"emoji":{"name":"Эмодзи","subtitle":"Добавьте эмодзи"},"equation":{"name":"Формула","subtitle":"Добавьте блочную формулу","copy":"Копировать формулу","overlayTitle":"Формула TeX","mobileTitle":"Добавить формулу TeX","mobileActions":"Действия","keywords":{"equation":"уравнение","formula":"формула","math":"математика","latex":"латех","block":"блок","expression":"выражение","tex":"тех"}},"embed":{"name":"Embed","subtitle":"Встроить что угодно (PDF, Google Docs, Google Maps...)"},"inlineEquation":{"name":"Формула в тексте","subtitle":"Добавьте формулу внутри строки текста","keywords":{"equation":"уравнение","formula":"формула","math":"математика","latex":"латех","inline":"встроенная","expression":"выражение","tex":"тех"}}},"equation":{"placeholder":{"block":"Добавьте формулу TeX","inline":"Новая формула"}},"integrations":{"title":"Встраивания"},"formatting":{"title":"Форматирование","inlineCode":"Код в строке"}},"toolbar":{"turnInto":"Превратить в","bold":"Жирный","italic":"Курсив","underline":"Подчеркнутый","strike":"Зачеркнутый","superscript":"Надстрочный","subscript":"Подстрочный","align":"Выравнивание","left":"По левому краю","center":"По центру","right":"По правому краю","justify":"По ширине","indent":"Отступ","outdent":"Отступ","color":"Цвет","code":"Код","link":"Добавить ссылку","clear":"Очистить формат","comment":"Комментарий","more":"Ещё","colorPicker":{"recentlyUsed":"Недавние","textColors":"Цвета текста","textHighlights":"Подсветка текста","background":"Подложка","tooltipText":"{{name}} — текст","tooltipHighlight":"{{name}} — подсветка","names":{"default":"По умолчанию","violet":"Фиолетовый","indigo":"Индиго","blue":"Синий","teal":"Бирюзовый","green":"Зелёный","yellow":"Жёлтый","orange":"Оранжевый","red":"Красный","brown":"Коричневый","gray":"Серый"}}},"link":{"linkName":"Название ссылки","link":"Ссылка","name":"Название","message":"Сообщение","enterMessage":"Введите сообщение","save":"Сохранить","remove":"Удалить","edit":"Редактировать","copy":"Копировать","copied":"Ссылка скопирована в буфер обмена","addLink":"Добавить ссылку","editLink":"Редактировать ссылку","type":{"web":"Веб-ссылка","phone":"Номер телефона","email":"Адрес почты","sms":"SMS сообщение"}},"contextMenu":{"copy":"Копировать","cut":"Вырезать","paste":"Вставить","delete":"Удалить","add":"Добавить","selectAll":"Выбрать все","duplicate":"Дублировать","appearance":"Внешний вид"},"colors":{"lastTimeUsed":"Последнее раз использовался","color":"Цвет","background":"Фон","theme":"Темы","violet":"Фиолетовый","indigo":"Индиго","blue":"Синий","teal":"Бирюзовый","green":"Зелёный","yellow":"Жёлтый","orange":"Оранжевый","red":"Красный","brown":"Коричневый","gray":"Серый","colors":{"standard":"Стандартный","gray":"Серый","brown":"Коричневый","orange":"Оранжевый","yellow":"Желтый","green":"Зеленый","blue":"Синий","purple":"Фиолетовый","pink":"Розовый","red":"Красный"},"callout":{"success":"Успех","alert":"Внимание","warning":"Предупреждение"}},"video":{"insert":"Встроить","apply":"Применить","worksWith":"Работает с","add_video":"Добавить видео","source":{"embedLink":"Вставить ссылку","uploadVideo":"Загрузить видео"},"link":{"placeholder":"Вставьте ссылку на видео...","save":"Сохранить","invalid":"Введите корректную ссылку на видео."},"upload":{"title":"Загрузить видео","processed":"Видео загружено. Обработано {{percent}}%.","dragDrop":"Перетащите видео или","chooseFile":"выберите файл","toUpload":"для загрузки","maxSize":"Максимальный размер файла: {{size}}. Форматы: MP4, WebM, OGG.","otherFormats":"(Другие форматы будут конвертированы автоматически)","uploading":"Загрузка файла","remaining":"Осталось:","progress":"Загружено:"},"actions":{"pause":"Пауза","resume":"Продолжить","cancel":"Отмена","retry":"Повторить","selectAnotherFile":"Выбрать другой файл"},"errors":{"uploadFailed":"Ошибка загрузки","sizeLimit":"Размер файла превышает лимит {{size}}","format":"Этот формат видео не поддерживается и не может быть конвертирован.","formatHint":"Загрузите видео в формате MP4, WebM или OGG.","interrupted":"Загрузка прервана. Проверьте соединение.","offsetMismatch":"Ошибка синхронизации загрузки. Будет выполнена повторная попытка.","stall":"Загрузка остановилась. Проверьте соединение и попробуйте снова.","unknown":"Произошла ошибка при загрузке."},"transcoding":{"title":"Конвертация видео","analysis":"Анализ","conversion":"Конвертация"},"player":{"play":"Воспроизвести","pause":"Пауза","mute":"Выключить звук","unmute":"Включить звук","volume":"Громкость","settings":"Настройки","pictureInPicture":"Картинка в картинке","enterFullscreen":"Полный экран","exitFullscreen":"Выйти из полноэкранного режима","playbackError":"Ошибка воспроизведения: код {{code}}. Попробуйте обновить страницу."},"settings":{"title":"Настройки","subtitlesCc":"Субтитры/CC","speed":"Скорость","quality":"Качество","normal":"Нормальная","auto":"Авто","off":"Выкл"},"settingsModal":{"title":"Настройки видео","cover":"Обложка","uploadFile":"Загрузить файл","cropCoverImage":"Обрезать обложку","subtitles":"Субтитры","enableAutoSubtitles":"Включить автогенерацию субтитров","hideAutoSubtitles":"Скрыть автоматически сгенерированные субтитры","uploadSubtitlesManually":"Загрузить субтитры вручную","subtitlesFormatHint":"Загрузите субтитры в формате .SRT или .VTT.","successfullyLoaded":"Успешно загружено","autoGenerated":"Автоматические","addSubtitleTrack":"Добавить дорожку субтитров","selectLanguage":"Выбрать язык","defaultLabel":"По умолчанию","setDefaultSubtitle":"Сделать по умолчанию","downloadVtt":"Скачать VTT","deleteSubtitle":"Удалить трек","uploadError":"Не удалось загрузить","chapters":"Транскрипт","chaptersCustom":"Свой транскрипт","chaptersDontShow":"Не показывать транскрипт","chaptersPlaceholder":"00:00 Вступление\\n01:23 Демонстрация\\n05:10 Итоги","chaptersTimePlaceholder":"00:00","chaptersEndTimePlaceholder":"01:23","chaptersTitlePlaceholder":"Название главы","chaptersInvalidTimeRange":"Некорректный диапазон времени главы","addChapter":"Добавить транскрипт","deleteChapter":"Удалить транскрипт","saveChapters":"Сохранить главы","suggestChapters":"Автопредложение","refreshChapters":"Обновить","emptyChapters":"Главы пока не заданы","chaptersError":"Не удалось загрузить главы","transcript":"Транскрипт","enableAutoTranscript":"Включить автогенерацию транскрипта","uploadTranscriptManually":"Загрузить транскрипт вручную","addTranscriptManually":"Добавить транскрипт вручную","setCover":"Установить обложку","emptyCovers":"Превью для обложки пока нет","loadError":"Не удалось загрузить превью обложки","retry":"Повторить","cancel":"Отмена","save":"Сохранить"},"delete":"Удалить","mobile":{"actions":"Действия"}},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Добавить Swagger"},"image":{"add_photo":"Добавить картинку","preview":"Превью"},"file":{"add_file":"Добавить файл"},"audio":{"add_audio":"Добавить аудио","player":{"waveformSeek":"Перейти к моменту трека","playbackSpeed":"Скорость воспроизведения","volume":"Громкость","openVolume":"Открыть настройку громкости"}},"mention":{"mark":"Отменить кого-то"},"validation":{"link":"Неверная ссылка","shouldNotExceed":"Размер файла не должен превышать {{maxSize}} МБ.","doNotUploadMoreThanSingleFile":"Пожалуйста, загружайте не более одного файла.","swaggerUnavailable":"Swagger-документация недоступна. Убедитесь, что адрес указан правильно и сервер отвечает."},"table":{"background_one":"Цвет фона ячейки","background_few":"Цвет фона ячеек","background_other":"Цвет фона ячеек","settings":"Настройки","menu":{"addColAfter":"Добавить столбец справа","addColBefore":"Добавить столбец слева","addRowAbove":"Добавить строку выше","addRowBelow":"Добавить строку ниже","deleteCol":"Удалить столбец","deleteRow":"Удалить строку","mergeCells":"Объединить ячейки","disconnectCells":"Разъединить ячейки","splitCell":"Разделить ячейку","deleteTable":"Удалить таблицу","insertRow_one":"Вставить строку","insertRow_few":"Вставить {{count}} строки","insertRow_many":"Вставить {{count}} строк","deleteRow_one":"Удалить строку","deleteRow_few":"Удалить {{count}} строки","deleteRow_many":"Удалить {{count}} строк","insertCol_one":"Вставить столбец","insertCol_few":"Вставить {{count}} столбца","insertCol_many":"Вставить {{count}} столбец","deleteCol_one":"Удалить столбец","deleteCol_few":"Удалить {{count}} столбца","deleteCol_many":"Удалить {{count}} столбец","headTable_col":"{{value}} заголовок столбца","headTable_row":"{{value}} заголовок строки","below":"ниже","above":"выше","left":"слева","right":"справа","row":"cтроку","rows":"cтроки","column":"cтолбец","columns":"cтолбца","color":"Цвет","headerColumn":"Заголовок столбца","headerRow":"Заголовок строки","insertAbove":"Вставить выше","insertBelow":"Вставить ниже","insertLeft":"Вставить слева","insertRight":"Вставить справа","duplicate":"Дублировать","clearContent":"Очистить содержимое","delete":"Удалить","increaseIndent":"Увеличить отступ","decreaseIndent":"Уменьшить отступ","addRowAndCol":"Добавить строку и столбец"},"colorPicker":{"cellBackground":"Фон ячейки"},"mobile":{"rowActions":"Действия со строкой","columnActions":"Действия со столбцом"}},"column":{"name":"Вставить сетку","insert":"Вставить","columns":"Колонки","addRight":"Добавить колонку справа","addRightMaxReached":"Не больше 4 колонок — удалите колонку, чтобы добавить ещё","addLeft":"Добавить колонку слева","moveLeft":"Переместить колонку влево","moveRight":"Переместить колонку вправо","duplicate":"Дублировать","clearContent":"Очистить содержимое","deleteColumn":"Удалить колонку","changeColor":"Цвет","mobile":{"columnActions":"Действия"}},"hoverOptions":{"addNewBlockAbove":"Добавить блок выше","addNewBlockBelow":"Добавить блок ниже","drag":"Перетащите","click":"Нажмите","clickAction":"Чтобы открыть меню","dragAction":"Чтобы переместить"},"embed":{"placeholder":"Введите или вставьте URL","insert":"Встроить","addEmbed":"Встроить что угодно (PDF, Google Docs, Google Maps...)","addPrefix":"Добавить","save":"Сохранить","hidePreview":"Скрыть предпросмотр","showPreview":"Показать предпросмотр","viewOriginal":"Открыть оригинал","copyLink":"Копировать ссылку","delete":"Удалить","openPreview":"Открыть предпросмотр","alignment":"Выравнивание","moreAction":"Ещё","linkCopied":"Ссылка скопирована","linkCopyFailed":"Не удалось скопировать ссылку"},"content":"Содержание","emoji":{"emojis":"Эмодзи","icons":"Иконки","search":"Поиск","searchResults":"Результат поиска","searchNoResults":"Эмодзи не найдено","remove":"Удалить","emojiCategory":{"frequent":"Часто используемые","people":"Эмоции и люди","nature":"Животные и природа","foods":"Еда и напитки","activity":"Активности","places":"Путешествия и места","objects":"Предметы","symbols":"Символы","flags":"Флаги"}},"form":{"url":"Укажите правильный URL."},"noTitle":"Без названия","gallery":{"download":"Загрузить","close":"Закрыть","errorFile":"Не удалось загрузить файл"},"emptyPageOptions":{"heading":"Заголовок, который автоматически создаст интерактивное оглавление","template":"Создать из шаблона","grid":"Сетка поможет структурировать страницу по горизонтали","list":"Нумерованный список для удобного планирования встречи","code":"Блок кода с поддержкой синтаксиса","callout":"Выделенный блок для акцента","table":"Таблица для поиска зависимостей в данных","integrations":"Множество интеграций от сторонних сервисов"},"composer":{"discardCommentTitle":"Закрыть без сохранения?","discardCommentDescription":"Ваш введённый контент будет утерян.","discardConfirm":"Закрыть","cancel":"Продолжить","replaceComment":{"title":"Комментарий уже существует","description":"Вы выделили текст, который уже содержит комментарий.\\nПредыдущий комментарий будет удалён.","confirm":"Заменить","cancel":"Отмена"},"uploadErrors":{"fileTooLarge":"Файл слишком большой — максимальный размер 5 МБ.","tooManyFiles":"Нельзя загружать больше 10 файлов."},"placeholder":"Добавить комментарий"},"actions":{"delete":"Удалить","align":"Выравнивание"},"ai":{"placeholder":"Пользовательский запрос","copied":"скопировано","copy":"копировать","back":"Назад","menu":{"style":{"professional":"Профессиональный","straightforward":"Простой и понятный","friendly":"Дружелюбный","poetic":"Поэтический","passiveAggressive":"Пассивно-агрессивный","pirate":"Пиратский"},"main":{"modifySelection":"Изменить выделение","improveWriting":"Улучшить текст","fixMistakes":"Исправить ошибки","simplify":"Упростить","addMoreDetail":"Добавить подробности","generate":"Сгенерировать","summarise":"Резюме","translate":"Перевести на...","changeStyle":"Изменить стиль на...","explain":"Объяснить"},"answer":{"replaceSelection":"Заменить выделение","addTextInline":"Добавить текст в строку","addBelowParagraph":"Добавить под абзацем","modifyFurther":"Дополнительно изменить","continueWriting":"Продолжить написание","regenerate":"Сгенерировать заново","otherOptions":"Другие варианты","discard":"Удалить"},"languages":{"arabic":"Арабский","bengali":"Бенгальский","chinese":"Китайский","dutch":"Голландский","english":"Английский","french":"Французский","german":"Немецкий","hindi":"Хинди","japanese":"Японский","korean":"Корейский","nepali":"Непальский","portuguese":"Португальский","spanish":"Испанский"}}},"cancel":"Отменить","smartPaste":{"aiButton":"Улучшить текст","rulesButton":"Разделить через Rules (Safe)","plainButton":"Вставить","dontShowAgain":"Больше не показывать","processing":"Обработка...","fallback":"Не удалось обработать, вставляем как есть","textTooLong":"Текст слишком длинный для обработки ИИ (макс. {{max}}). Удалите {{excess}} символов, чтобы продолжить.","accept":"Принять","discard":"Отменить","freeLimitReached":"Лимит бесплатного Smart Paste исчерпан. Обновите план для безлимитного использования.","feedbackTitle":"Насколько вы довольны ИИ-редактированием текста?"}}`),k8={editor:w8},_f=G9.createInstance();_f.use(Ze.initReactI18next).init({resources:{en:{translation:y8,ui:Mt.enUI},ru:{translation:k8,ui:Mt.ruUI},es:{translation:v8,ui:Mt.esUI}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}}).then(()=>{}).catch(e=>{});const Lr={blockCursor:"dsd__theme__blockCursor",characterLimit:"dsd__theme__characterLimit",code:"dsd__theme__code",codeCollapsed:"dsd__theme__code_сollapsed",codeWrapper:"dsd__theme__overlay-wrapper",codeHeader:"dsd__theme__overlay-header",codeHighlight:{atrule:"dsd__theme__tokenAttr",attr:"dsd__theme__tokenAttr",boolean:"dsd__theme__tokenProperty",builtin:"dsd__theme__tokenSelector",cdata:"dsd__theme__tokenComment",char:"dsd__theme__tokenSelector",class:"dsd__theme__tokenFunction","class-name":"dsd__theme__tokenFunction",comment:"dsd__theme__tokenComment",constant:"dsd__theme__tokenProperty",deleted:"dsd__theme__tokenProperty",doctype:"dsd__theme__tokenComment",entity:"dsd__theme__tokenOperator",function:"dsd__theme__tokenFunction",important:"dsd__theme__tokenVariable",inserted:"dsd__theme__tokenSelector",keyword:"dsd__theme__tokenAttr",namespace:"dsd__theme__tokenVariable",number:"dsd__theme__tokenProperty",operator:"dsd__theme__tokenOperator",prolog:"dsd__theme__tokenComment",property:"dsd__theme__tokenProperty",punctuation:"dsd__theme__tokenPunctuation",regex:"dsd__theme__tokenVariable",selector:"dsd__theme__tokenSelector",string:"dsd__theme__tokenSelector",symbol:"dsd__theme__tokenProperty",tag:"dsd__theme__tokenProperty",url:"dsd__theme__tokenOperator",variable:"dsd__theme__tokenVariable"},embedBlock:{base:"dsd__theme__embedBlock",focus:"dsd__theme__embedBlockFocus"},hashtag:"dsd__theme__hashtag",heading:{h1:"dsd__theme__h1",h2:"dsd__theme__h2",h3:"dsd__theme__h3",h4:"dsd__theme__h4",h5:"dsd__theme__h5",h6:"dsd__theme__h6"},excalidraw:"editor-excalidraw",image:"editor-image",indent:"dsd__theme__indent",inlineImage:"inline-editor-image",layoutContainer:"dsd__theme__layoutContainer",layoutItem:"dsd__theme__layoutItem",layoutDivider:"dsd__theme__layoutDivider",calloutIcon:"dsd__theme__callout-icon",callout:"dsd__theme__callout-container",calloutWrapper:"dsd__theme__callout-wrapper",calloutContainer:"dsd__theme__callout-main-container",link:"dsd__theme__link",list:{checklist:"dsd__theme__checklist",listitem:"dsd__theme__listItem",listitemChecked:"dsd__theme__listItemChecked",listitemUnchecked:"dsd__theme__listItemUnchecked",nested:{listitem:"dsd__theme__nestedListItem"},olDepth:["dsd__theme__ol1","dsd__theme__ol2","dsd__theme__ol3","dsd__theme__ol4","dsd__theme__ol5"],ul:"dsd__theme__ul"},listitemIndeterminate:"dsd__theme__listIndeterminate",mark:"dsd__theme__mark",markOverlap:"dsd__theme__markOverlap",paragraph:"dsd__theme__paragraph",quote:"dsd__theme__quote",rtl:"dsd__theme__rtl",table:"dsd__theme__table",tableAddColumns:"dsd__theme__tableAddColumns",tableAddRows:"dsd__theme__tableAddRows",tableCell:"dsd__theme__tableCell",tableCellActionButton:"dsd__theme__tableCellActionButton",tableCellActionButtonContainer:"dsd__theme__tableCellActionButtonContainer",tableCellEditing:"dsd__theme__tableCellEditing",tableCellHeader:"dsd__theme__tableCellHeader",tableCellPrimarySelected:"dsd__theme__tableCellPrimarySelected",tableCellResizer:"dsd__theme__tableCellResizer",tableCellSelected:"dsd__theme__tableCellSelected",tableCellSortedIndicator:"dsd__theme__tableCellSortedIndicator",tableResizeRuler:"dsd__theme__tableCellResizeRuler",tableSelected:"dsd__theme__tableSelected",tableSelection:"dsd__theme__tableSelection",tableScrollableWrapper:"dsd__theme__table-scrollable-wrapper",text:{bold:"dsd__theme__textBold",capitalize:"dsd__theme__textCapitalize",code:"dsd__theme__textCode",highlight:"dsd__theme__textHighlight",italic:"dsd__theme__textItalic",lowercase:"dsd__theme__textLowercase",strikethrough:"dsd__theme__textStrikethrough",subscript:"dsd__theme__textSubscript",superscript:"dsd__theme__textSuperscript",underline:"dsd__theme__textUnderline",underlineStrikethrough:"dsd__theme__textUnderlineStrikethrough",uppercase:"dsd__theme__textUppercase"}},S8=e=>{const n={...Lr,text:{...Lr.text}};return e==="comment"&&n.text&&(delete n.text.strikethrough,delete n.text.underlineStrikethrough),n},E8=hw.lazy(()=>Promise.resolve().then(()=>require("./layers.7GMTASen.js")));function Mg(e){const n=e.getAttribute("data-lexical-equation"),t=e.getAttribute("data-lexical-inline")==="true",r=e.getAttribute("data-lexical-equation-preview");let o="";if(n!=null)try{o=decodeURIComponent(escape(atob(n)))}catch{o=""}else if(r!=null)try{o=decodeURIComponent(r)}catch{o=""}return{node:Na(o,t)}}class Ii extends p.DecoratorNode{constructor(t,r,o){super(o);Me(this,"__equation");Me(this,"__inline");this.__equation=t,this.__inline=r??!1}static getType(){return"equation"}static clone(t){return new Ii(t.__equation,t.__inline,t.__key)}static importJSON(t){return Na(t.equation,t.inline).updateFromJSON(t)}exportJSON(){return{...super.exportJSON(),equation:this.getEquation(),inline:this.__inline}}createDOM(t){const r=document.createElement(this.__inline?"span":"div");return r.className=this.__inline?"editor-equation editor-equation-inline":"editor-equation",r}exportDOM(){const t=document.createElement(this.__inline?"span":"div");t.className=this.__inline?"editor-equation editor-equation-inline":"editor-equation";let r="";try{r=btoa(unescape(encodeURIComponent(this.__equation)))}catch{r=""}return t.setAttribute("data-lexical-equation",r),t.setAttribute("data-lexical-inline",`${this.__inline}`),t.setAttribute("data-lexical-equation-preview",encodeURIComponent(this.__equation)),{element:t}}static importDOM(){return{div:t=>t.hasAttribute("data-lexical-equation")?{conversion:Mg,priority:2}:null,span:t=>t.hasAttribute("data-lexical-equation")?{conversion:Mg,priority:1}:null}}updateDOM(t){return this.__inline!==t.__inline}getTextContent(){return this.__equation}getEquation(){return this.__equation}isInline(){return this.__inline}setEquation(t){const r=this.getWritable();r.__equation=t}decorate(){return i.jsx(E8,{equation:this.__equation,inline:this.__inline,nodeKey:this.__key})}}function Na(e="",n=!1){const t=new Ii(e,n);return p.$applyNodeReplacement(t)}function Do(e){return e instanceof Ii}const M8=[["path",{d:"M12.001 5.00003V19.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.002 12.002L4.99998 12.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],T8=[["path",{d:"M14 12.6483L16.3708 10.2775C16.6636 9.98469 16.81 9.83827 16.8883 9.68032C17.0372 9.3798 17.0372 9.02696 16.8883 8.72644C16.81 8.56849 16.6636 8.42207 16.3708 8.12923C16.0779 7.83638 15.9315 7.68996 15.7736 7.61169C15.473 7.46277 15.1202 7.46277 14.8197 7.61169C14.6617 7.68996 14.5153 7.83638 14.2225 8.12923L11.8517 10.5M14 12.6483L5.77754 20.8708C5.4847 21.1636 5.33827 21.31 5.18032 21.3883C4.8798 21.5372 4.52696 21.5372 4.22644 21.3883C4.06849 21.31 3.92207 21.1636 3.62923 20.8708C3.33639 20.5779 3.18996 20.4315 3.11169 20.2736C2.96277 19.973 2.96277 19.6202 3.11169 19.3197C3.18996 19.1617 3.33639 19.0153 3.62923 18.7225L11.8517 10.5M14 12.6483L11.8517 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.5 2.5L19.3895 2.79873C19.2445 3.19044 19.172 3.38629 19.0292 3.52917C18.8863 3.67204 18.6904 3.74452 18.2987 3.88946L18 4L18.2987 4.11054C18.6904 4.25548 18.8863 4.32796 19.0292 4.47083C19.172 4.61371 19.2445 4.80956 19.3895 5.20127L19.5 5.5L19.6105 5.20127C19.7555 4.80956 19.828 4.61371 19.9708 4.47083C20.1137 4.32796 20.3096 4.25548 20.7013 4.11054L21 4L20.7013 3.88946C20.3096 3.74452 20.1137 3.67204 19.9708 3.52917C19.828 3.38629 19.7555 3.19044 19.6105 2.79873L19.5 2.5Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M19.5 12.5L19.3895 12.7987C19.2445 13.1904 19.172 13.3863 19.0292 13.5292C18.8863 13.672 18.6904 13.7445 18.2987 13.8895L18 14L18.2987 14.1105C18.6904 14.2555 18.8863 14.328 19.0292 14.4708C19.172 14.6137 19.2445 14.8096 19.3895 15.2013L19.5 15.5L19.6105 15.2013C19.7555 14.8096 19.828 14.6137 19.9708 14.4708C20.1137 14.328 20.3096 14.2555 20.7013 14.1105L21 14L20.7013 13.8895C20.3096 13.7445 20.1137 13.672 19.9708 13.5292C19.828 13.3863 19.7555 13.1904 19.6105 12.7987L19.5 12.5Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M10.5 2.5L10.3895 2.79873C10.2445 3.19044 10.172 3.38629 10.0292 3.52917C9.88629 3.67204 9.69044 3.74452 9.29873 3.88946L9 4L9.29873 4.11054C9.69044 4.25548 9.88629 4.32796 10.0292 4.47083C10.172 4.61371 10.2445 4.80956 10.3895 5.20127L10.5 5.5L10.6105 5.20127C10.7555 4.80956 10.828 4.61371 10.9708 4.47083C11.1137 4.32796 11.3096 4.25548 11.7013 4.11054L12 4L11.7013 3.88946C11.3096 3.74452 11.1137 3.67204 10.9708 3.52917C10.828 3.38629 10.7555 3.19044 10.6105 2.79873L10.5 2.5Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],L8=[["path",{d:"M17 11C17 13.7614 14.7614 16 12 16C9.23858 16 7 13.7614 7 11V7C7 4.23858 9.23858 2 12 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20 11C20 15.4183 16.4183 19 12 19M12 19C7.58172 19 4 15.4183 4 11M12 19V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.3327 4.64612C15.5394 4.49594 16.4959 3.53944 16.6461 2.33267C16.6689 2.14999 16.8159 2 17 2C17.1841 2 17.3311 2.14999 17.3539 2.33267C17.5041 3.53944 18.4606 4.49594 19.6673 4.64612C19.85 4.66885 20 4.81591 20 5C20 5.1841 19.85 5.33115 19.6673 5.35388C18.4606 5.50406 17.5041 6.46056 17.3539 7.66733C17.3311 7.85001 17.1841 8 17 8C16.8159 8 16.6689 7.85001 16.6461 7.66733C16.4959 6.46056 15.5394 5.50406 14.3327 5.35388C14.15 5.33115 14 5.1841 14 5C14 4.81591 14.15 4.66885 14.3327 4.64612Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],N8=[["path",{d:"M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Fh=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],j8=[["path",{d:"M3 11C3 7.25027 3 5.3754 3.95491 4.06107C4.26331 3.6366 4.6366 3.26331 5.06107 2.95491C6.3754 2 8.25027 2 12 2C15.7497 2 17.6246 2 18.9389 2.95491C19.3634 3.26331 19.7367 3.6366 20.0451 4.06107C21 5.3754 21 7.25027 21 11V13C21 16.7497 21 18.6246 20.0451 19.9389C19.7367 20.3634 19.3634 20.7367 18.9389 21.0451C17.6246 22 15.7497 22 12 22C8.25027 22 6.3754 22 5.06107 21.0451C4.6366 20.7367 4.26331 20.3634 3.95491 19.9389C3 18.6246 3 16.7497 3 13V11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 9.5L8 9.5M13.5 14.5H10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],_c=[["path",{d:"M12 19L12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 10L12 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 2L12 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.00036 7.5C8.00036 6.65611 7.91699 5.68211 8.75036 5.20096C9.09844 5 9.56575 5 10.5004 5H13.5004C14.435 5 14.9023 5 15.2504 5.20096C16.0837 5.68211 16.0004 6.65611 16.0004 7.5C16.0004 8.34389 16.0837 9.31789 15.2504 9.79904C14.9023 10 14.435 10 13.5004 10H10.5004C9.56575 10 9.09844 10 8.75036 9.79904C7.91699 9.31789 8.00036 8.34389 8.00036 7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M4.00036 16.5C4.00036 15.6561 3.91699 14.6821 4.75036 14.201C5.09844 14 5.56575 14 6.50036 14H17.5004C18.435 14 18.9023 14 19.2504 14.201C20.0837 14.6821 20.0004 15.6561 20.0004 16.5C20.0004 17.3439 20.0837 18.3179 19.2504 18.799C18.9023 19 18.435 19 17.5004 19H6.50036C5.56575 19 5.09844 19 4.75036 18.799C3.91699 18.3179 4.00036 17.3439 4.00036 16.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],FC=[["path",{d:"M8.00232 7.5C8.00232 6.65611 7.91895 5.68211 8.75232 5.20096C9.10039 5 9.5677 5 10.5023 5H11.5023C12.4369 5 12.9042 5 13.2523 5.20096C14.0857 5.68211 14.0023 6.65611 14.0023 7.5C14.0023 8.34389 14.0857 9.31789 13.2523 9.79904C12.9042 10 12.4369 10 11.5023 10H10.5023C9.5677 10 9.10039 10 8.75232 9.79904C7.91895 9.31789 8.00232 8.34389 8.00232 7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00232 16.5C8.00232 15.6561 7.91895 14.6821 8.75232 14.201C9.10039 14 9.5677 14 10.5023 14H17.5023C18.4369 14 18.9042 14 19.2523 14.201C20.0857 14.6821 20.0023 15.6561 20.0023 16.5C20.0023 17.3439 20.0857 18.3179 19.2523 18.799C18.9042 19 18.4369 19 17.5023 19H10.5023C9.5677 19 9.10039 19 8.75232 18.799C7.91895 18.3179 8.00232 17.3439 8.00232 16.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 2V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],WC=[["path",{d:"M10.0004 7.5C10.0004 6.65611 9.91699 5.68211 10.7504 5.20096C11.0984 5 11.5657 5 12.5004 5H13.5004C14.435 5 14.9023 5 15.2504 5.20096C16.0837 5.68211 16.0004 6.65611 16.0004 7.5C16.0004 8.34389 16.0837 9.31789 15.2504 9.79904C14.9023 10 14.435 10 13.5004 10H12.5004C11.5657 10 11.0984 10 10.7504 9.79904C9.91699 9.31789 10.0004 8.34389 10.0004 7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4.00036 16.5C4.00036 15.6561 3.91699 14.6821 4.75036 14.201C5.09844 14 5.56575 14 6.50036 14H13.5004C14.435 14 14.9023 14 15.2504 14.201C16.0837 14.6821 16.0004 15.6561 16.0004 16.5C16.0004 17.3439 16.0837 18.3179 15.2504 18.799C14.9023 19 14.435 19 13.5004 19H6.50036C5.56575 19 5.09844 19 4.75036 18.799C3.91699 18.3179 4.00036 17.3439 4.00036 16.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 2V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],R8=[["path",{d:"M8 3C7.28543 3.05475 6.78159 3.18135 6.34921 3.47408C5.58736 3.98988 5.22202 4.90323 4.49134 6.72994L2.42914 11.9271C2.21522 12.4619 2.10826 12.7293 2.05413 13.0104C2 13.2915 2 13.5795 2 14.1555V15C2 17.8284 2 19.2426 2.87868 20.1213C3.75736 21 5.17157 21 8 21H16C18.8284 21 20.2426 21 21.1213 20.1213C22 19.2426 22 17.8284 22 15V14.1555C22 13.5795 22 13.2915 21.9459 13.0104C21.8917 12.7293 21.7848 12.4619 21.5709 11.9271L19.5087 6.72994C18.778 4.90323 18.4126 3.98988 17.6508 3.47408C17.2184 3.18135 16.7146 3.05475 16 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 13H5.58579C6.16263 13 6.45105 13 6.71982 13.0766C6.86747 13.1187 7.00978 13.1776 7.14394 13.2523C7.38816 13.3882 7.59211 13.5921 8 14C8.40789 14.4079 8.61184 14.6118 8.85606 14.7477C8.99022 14.8224 9.13253 14.8813 9.28018 14.9234C9.54895 15 9.83737 15 10.4142 15H13.5858C14.1626 15 14.4511 15 14.7198 14.9234C14.8675 14.8813 15.0098 14.8224 15.1439 14.7477C15.3882 14.6118 15.5921 14.4079 16 14C16.4079 13.5921 16.6118 13.3882 16.8561 13.2523C16.9902 13.1776 17.1325 13.1187 17.2802 13.0766C17.5489 13 17.8374 13 18.4142 13H21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 7.00002C15 7.00002 12.7905 9.99999 12 10C11.2094 10 9 7 9 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 3V9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],I8=[["path",{d:"M8 3C7.28543 3.05475 6.78159 3.18135 6.34921 3.47408C5.58736 3.98988 5.22202 4.90323 4.49134 6.72994L2.42914 11.9271C2.21522 12.4619 2.10826 12.7293 2.05413 13.0104C2 13.2915 2 13.5795 2 14.1555V15C2 17.8284 2 19.2426 2.87868 20.1213C3.75736 21 5.17157 21 8 21H16C18.8284 21 20.2426 21 21.1213 20.1213C22 19.2426 22 17.8284 22 15V14.1555C22 13.5795 22 13.2915 21.9459 13.0104C21.8917 12.7293 21.7848 12.4619 21.5709 11.9271L19.5087 6.72994C18.778 4.90323 18.4126 3.98988 17.6508 3.47408C17.2184 3.18135 16.7146 3.05475 16 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 13H5.58579C6.16263 13 6.45105 13 6.71982 13.0766C6.86747 13.1187 7.00978 13.1776 7.14394 13.2523C7.38816 13.3882 7.59211 13.5921 8 14C8.40789 14.4079 8.61184 14.6118 8.85606 14.7477C8.99022 14.8224 9.13253 14.8813 9.28018 14.9234C9.54895 15 9.83737 15 10.4142 15H13.5858C14.1626 15 14.4511 15 14.7198 14.9234C14.8675 14.8813 15.0098 14.8224 15.1439 14.7477C15.3882 14.6118 15.5921 14.4079 16 14C16.4079 13.5921 16.6118 13.3882 16.8561 13.2523C16.9902 13.1776 17.1325 13.1187 17.2802 13.0766C17.5489 13 17.8374 13 18.4142 13H21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 5.99998C15 5.99998 12.7905 3.00001 12 3C11.2094 2.99999 9 6 9 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 10V3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Ds=[["path",{d:"M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],D8=[["path",{d:"M16.4999 3.26621C17.3443 3.25421 20.1408 2.67328 20.7337 3.26621C21.3266 3.85913 20.7457 6.65559 20.7337 7.5M20.5059 3.49097L13.5021 10.4961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.26636 16.5001C3.25436 17.3445 2.67343 20.141 3.26636 20.7339C3.85928 21.3268 6.65574 20.7459 7.50015 20.7339M10.502 13.4976L3.49824 20.5027",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],O8=[["path",{d:"M8.00001 3.09779C8.00001 3.09779 4.03375 2.74194 3.38784 3.38785C2.74192 4.03375 3.09784 8 3.09784 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00001 20.9022C8.00001 20.9022 4.03375 21.2581 3.38784 20.6122C2.74192 19.9662 3.09784 16 3.09784 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 3.09779C16 3.09779 19.9663 2.74194 20.6122 3.38785C21.2581 4.03375 20.9022 8 20.9022 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M16 20.9022C16 20.9022 19.9663 21.2581 20.6122 20.6122C21.2581 19.9662 20.9022 16 20.9022 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14.0107 9.99847L20.0625 3.94678",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M9.99696 14.0024L3.63966 20.3807",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M9.99732 10.0024L3.84571 3.85889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M13.9795 14.0024L20.5279 20.4983",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"7"}]],zC=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Wh=[["path",{d:"M5.5 12.002H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.9999 18.002C10.9999 18.002 4.99998 13.583 4.99997 12.0019C4.99996 10.4208 11 6.00195 11 6.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],P8=[["path",{d:"M20.5 5.5H9.5C5.78672 5.5 3 8.18503 3 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.5 18.5H14.5C18.2133 18.5 21 15.815 21 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18.5 3C18.5 3 21 4.84122 21 5.50002C21 6.15882 18.5 8 18.5 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M5.49998 16C5.49998 16 3.00001 17.8412 3 18.5C2.99999 19.1588 5.5 21 5.5 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],lo=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],zh=[["path",{d:"M18.5 12L4.99997 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 18C13 18 19 13.5811 19 12C19 10.4188 13 6 13 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],B8=[["path",{d:"M9 6.65032C9 6.65032 15.9383 6.10759 16.9154 7.08463C17.8924 8.06167 17.3496 15 17.3496 15M16.5 7.5L6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],_8=[["path",{d:"M7.5 8.5H16.5M7.5 12.5H13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 10.5C2 9.72921 2.01346 8.97679 2.03909 8.2503C2.12282 5.87683 2.16469 4.69009 3.13007 3.71745C4.09545 2.74481 5.3157 2.6926 7.7562 2.58819C9.09517 2.5309 10.5209 2.5 12 2.5C13.4791 2.5 14.9048 2.5309 16.2438 2.58819C18.6843 2.6926 19.9046 2.74481 20.8699 3.71745C21.8353 4.69009 21.8772 5.87683 21.9609 8.2503C21.9865 8.97679 22 9.72921 22 10.5C22 11.2708 21.9865 12.0232 21.9609 12.7497C21.8772 15.1232 21.8353 16.3099 20.8699 17.2826C19.9046 18.2552 18.6843 18.3074 16.2437 18.4118C15.5098 18.4432 14.7498 18.4667 13.9693 18.4815C13.2282 18.4955 12.8576 18.5026 12.532 18.6266C12.2064 18.7506 11.9325 18.9855 11.3845 19.4553L9.20503 21.3242C9.07273 21.4376 8.90419 21.5 8.72991 21.5C8.32679 21.5 8 21.1732 8 20.7701V18.4219C7.91842 18.4186 7.83715 18.4153 7.75619 18.4118C5.31569 18.3074 4.09545 18.2552 3.13007 17.2825C2.16469 16.3099 2.12282 15.1232 2.03909 12.7497C2.01346 12.0232 2 11.2708 2 10.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Kh=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],F8=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L10.5 15L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],W8=[["path",{d:"M5 15C5 11.134 8.13401 8 12 8C15.866 8 19 11.134 19 15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.5 9.5V6.5C16.5 4.01472 14.4853 2 12 2C9.51472 2 7.5 4.01472 7.5 6.5V9.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15H12M12.25 15C12.25 15.1381 12.1381 15.25 12 15.25C11.8619 15.25 11.75 15.1381 11.75 15C11.75 14.8619 11.8619 14.75 12 14.75C12.1381 14.75 12.25 14.8619 12.25 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],z8=[["path",{d:"M5 15C5 11.134 8.13401 8 12 8C15.866 8 19 11.134 19 15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 9.5V6.5C7.5 4.01472 9.51472 2 12 2C13.5602 2 14.935 2.79401 15.7422 4",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15H12M12.25 15C12.25 15.1381 12.1381 15.25 12 15.25C11.8619 15.25 11.75 15.1381 11.75 15C11.75 14.8619 11.8619 14.75 12 14.75C12.1381 14.75 12.25 14.8619 12.25 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],K8=[["path",{d:"M17.5798 9.71016C17.0765 9.57314 16.5468 9.5 16 9.5C13.4668 9.5 11.3002 11.0699 10.4202 13.2898M17.5798 9.71016C20.1271 10.4036 22 12.7331 22 15.5C22 18.8137 19.3137 21.5 16 21.5C14.4633 21.5 13.0615 20.9223 12 19.9722M17.5798 9.71016C17.851 9.02618 18 8.2805 18 7.5C18 4.18629 15.3137 1.5 12 1.5C8.68629 1.5 6 4.18629 6 7.5C6 8.2805 6.14903 9.02618 6.42018 9.71016M10.4202 13.2898C10.149 13.9738 10 14.7195 10 15.5C10 17.277 10.7725 18.8736 12 19.9722M10.4202 13.2898C8.59146 12.792 7.11029 11.451 6.42018 9.71016M6.42018 9.71016C3.87294 10.4036 2 12.7331 2 15.5C2 18.8137 4.68629 21.5 8 21.5C9.53671 21.5 10.9385 20.9223 12 19.9722",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]],U8=[["path",{d:"M8 13.5H16M8 8.5H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.09881 19C4.7987 18.8721 3.82475 18.4816 3.17157 17.8284C2 16.6569 2 14.7712 2 11V10.5C2 6.72876 2 4.84315 3.17157 3.67157C4.34315 2.5 6.22876 2.5 10 2.5H14C17.7712 2.5 19.6569 2.5 20.8284 3.67157C22 4.84315 22 6.72876 22 10.5V11C22 14.7712 22 16.6569 20.8284 17.8284C19.6569 19 17.7712 19 14 19C13.4395 19.0125 12.9931 19.0551 12.5546 19.155C11.3562 19.4309 10.2465 20.0441 9.14987 20.5789C7.58729 21.3408 6.806 21.7218 6.31569 21.3651C5.37769 20.6665 6.29454 18.5019 6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],uo=[["path",{d:"M9 15C9 12.1716 9 10.7574 9.87868 9.87868C10.7574 9 12.1716 9 15 9L16 9C18.8284 9 20.2426 9 21.1213 9.87868C22 10.7574 22 12.1716 22 15V16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15C12.1716 22 10.7574 22 9.87868 21.1213C9 20.2426 9 18.8284 9 16L9 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.9999 9C16.9975 6.04291 16.9528 4.51121 16.092 3.46243C15.9258 3.25989 15.7401 3.07418 15.5376 2.90796C14.4312 2 12.7875 2 9.5 2C6.21252 2 4.56878 2 3.46243 2.90796C3.25989 3.07417 3.07418 3.25989 2.90796 3.46243C2 4.56878 2 6.21252 2 9.5C2 12.7875 2 14.4312 2.90796 15.5376C3.07417 15.7401 3.25989 15.9258 3.46243 16.092C4.51121 16.9528 6.04291 16.9975 9 16.9999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],hu=[["path",{d:"M16.9637 8.98209C16.9613 6.03194 16.9167 4.50384 16.0578 3.45753C15.892 3.25546 15.7067 3.07019 15.5047 2.90436C14.4008 1.99854 12.7609 1.99854 9.48087 1.99854C6.20089 1.99854 4.5609 1.99854 3.45708 2.90436C3.255 3.07018 3.06971 3.25546 2.90387 3.45753C1.99799 4.56128 1.99799 6.20116 1.99799 9.48091C1.99799 12.7607 1.99799 14.4005 2.90387 15.5043C3.0697 15.7063 3.255 15.8916 3.45708 16.0574C4.50346 16.9162 6.03167 16.9608 8.98201 16.9632",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.0283 9.02455L16.994 8.98193M14.0143 22.0013L16.9799 21.9586M21.9716 14.0221L21.9436 16.9818M9.01033 14.0357L8.98236 16.9953M11.4873 9.02455C10.6545 9.17371 9.31781 9.32713 9.01033 11.0488M19.4946 21.9586C20.3296 21.8223 21.6685 21.6894 22.0025 19.9726M19.4946 9.02455C20.3274 9.17371 21.6641 9.32713 21.9716 11.0488M11.5 21.9573C10.6672 21.8086 9.33039 21.6559 9.02197 19.9344",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],H8=[["path",{d:"M14.5563 13.2183C13.514 14.2606 11.8241 14.2606 10.7817 13.2183C9.73942 12.1759 9.73942 10.486 10.7817 9.44364L13.1409 7.0845C14.1357 6.08961 15.7206 6.04433 16.7692 6.94866M16.4437 3.78175C17.486 2.73942 19.1759 2.73942 20.2183 3.78175C21.2606 4.82408 21.2606 6.51403 20.2183 7.55636L17.8591 9.9155C16.8643 10.9104 15.2794 10.9557 14.2308 10.0513",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.4999 3C7.21257 3 5.56889 3 4.46256 3.9079C4.25998 4.07414 4.07423 4.25989 3.90798 4.46247C3.00007 5.56879 3.00006 7.21247 3.00002 10.4998L3 12.9999C2.99996 16.7712 2.99995 18.6568 4.17152 19.8284C5.3431 21 7.22873 21 11 21H13.4999C16.7874 21 18.4311 21 19.5375 20.092C19.74 19.9258 19.9257 19.7401 20.092 19.5376C20.9999 18.4312 20.9999 16.7875 20.9999 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Y8=[["circle",{cx:"12",cy:"18",r:"3",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 15V10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 13C22 7.47715 17.5228 3 12 3C6.47715 3 2 7.47715 2 13",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]],jn=[["path",{d:"M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 11.7349H15",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10.5 15.6543H13.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 5.5H21M16.0555 5.5L15.3729 4.09173C14.9194 3.15626 14.6926 2.68852 14.3015 2.39681C14.2148 2.3321 14.1229 2.27454 14.0268 2.2247C13.5937 2 13.0739 2 12.0343 2C10.9686 2 10.4358 2 9.99549 2.23412C9.89791 2.28601 9.80479 2.3459 9.7171 2.41317C9.32145 2.7167 9.10044 3.20155 8.65842 4.17126L8.05273 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],Z8=[["path",{d:"M3 12H21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 5.5C14.5 6.88071 13.3807 8 12 8C10.6193 8 9.5 6.88071 9.5 5.5C9.5 4.11929 10.6193 3 12 3C13.3807 3 14.5 4.11929 14.5 5.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 18.5C14.5 19.8807 13.3807 21 12 21C10.6193 21 9.5 19.8807 9.5 18.5C9.5 17.1193 10.6193 16 12 16C13.3807 16 14.5 17.1193 14.5 18.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],Uh=[["path",{d:"M2.99969 17.0002C2.99969 17.9302 2.99969 18.3952 3.10192 18.7767C3.37932 19.8119 4.18796 20.6206 5.22324 20.898C5.60474 21.0002 6.06972 21.0002 6.99969 21.0002L16.9997 21.0002C17.9297 21.0002 18.3947 21.0002 18.7762 20.898C19.8114 20.6206 20.6201 19.8119 20.8975 18.7767C20.9997 18.3952 20.9997 17.9302 20.9997 17.0002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.4998 11.5002C16.4998 11.5002 13.1856 16.0002 11.9997 16.0002C10.8139 16.0002 7.49976 11.5002 7.49976 11.5002M11.9997 15.0002V3.00016",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],KC=[["path",{d:"M8.17151 19.8284L19.8284 8.17157C20.3736 7.62632 20.6462 7.3537 20.792 7.0596C21.0693 6.50005 21.0693 5.8431 20.792 5.28354C20.6462 4.98945 20.3736 4.71682 19.8284 4.17157C19.2831 3.62632 19.0105 3.3537 18.7164 3.20796C18.1568 2.93068 17.4999 2.93068 16.9403 3.20796C16.6462 3.3537 16.3736 3.62632 15.8284 4.17157L4.17151 15.8284C3.59345 16.4064 3.30442 16.6955 3.15218 17.063C2.99994 17.4305 2.99994 17.8393 2.99994 18.6568V20.9999H5.34308C6.16059 20.9999 6.56934 20.9999 6.93688 20.8477C7.30442 20.6955 7.59345 20.4064 8.17151 19.8284Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 5.5L18.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],G8=[["path",{d:"M16.9767 19.5C19.4017 17.8876 21 15.1305 21 12C21 7.02944 16.9706 3 12 3C11.3126 3 10.6432 3.07706 10 3.22302M16.9767 19.5V16M16.9767 19.5H20.5M7 4.51555C4.58803 6.13007 3 8.87958 3 12C3 16.9706 7.02944 21 12 21C12.6874 21 13.3568 20.9229 14 20.777M7 4.51555V8M7 4.51555H3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Tg=[["path",{d:"M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],V8=[["path",{d:"M17 3C17.4644 3 17.6966 3 17.8919 3.02201C19.5145 3.20484 20.7952 4.48545 20.978 6.10812C21 6.30344 21 6.53563 21 7M17 21C17.4644 21 17.6966 21 17.8919 20.978C19.5145 20.7952 20.7952 19.5145 20.978 17.8919C21 17.6966 21 17.4644 21 17M7 3C6.53563 3 6.30344 3 6.10812 3.02201C4.48545 3.20484 3.20484 4.48545 3.02201 6.10812C3 6.30344 3 6.53563 3 7M7 21C6.53563 21 6.30344 21 6.10812 20.978C4.48545 20.7952 3.20484 19.5145 3.02201 17.8919C3 17.6966 3 17.4644 3 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],of=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12C8 18 12 22 12 22C12 22 16 18 16 12C16 6 12 2 12 2C12 2 8 6 8 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 15H3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M21 9H3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Hh=[["path",{d:"M4 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17 19H18.5M20 19H18.5M18.5 19V11L17 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M4 12L14 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Yh=[["path",{d:"M3.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.5 19H16.5V18.6907C16.5 18.2521 16.5 18.0327 16.5865 17.8385C16.673 17.6443 16.836 17.4976 17.1621 17.2041L19.7671 14.8596C20.2336 14.4397 20.5 13.8416 20.5 13.214V13C20.5 11.8954 19.6046 11 18.5 11C17.3954 11 16.5 11.8954 16.5 13V13.4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3.5 12L13.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Zh=[["path",{d:"M3.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5 17C16.5 18.1046 17.3954 19 18.5 19C19.6046 19 20.5 18.1046 20.5 17C20.5 15.8954 19.6046 15 18.5 15C19.6046 15 20.5 14.1046 20.5 13C20.5 11.8954 19.6046 11 18.5 11C17.3954 11 16.5 11.8954 16.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3.5 12L13.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Ca=[["path",{d:"M3.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5 11V15H20.5M20.5 15V19M20.5 15V11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3.5 12L13.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],q8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],UC=[["path",{d:"M3 16L7.46967 11.5303C7.80923 11.1908 8.26978 11 8.75 11C9.23022 11 9.69077 11.1908 10.0303 11.5303L14 15.5M15.5 17L14 15.5M21 16L18.5303 13.5303C18.1908 13.1908 17.7302 13 17.25 13C16.7698 13 16.3092 13.1908 15.9697 13.5303L14 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 8C15.7761 8 16 7.77614 16 7.5C16 7.22386 15.7761 7 15.5 7M15.5 8C15.2239 8 15 7.77614 15 7.5C15 7.22386 15.2239 7 15.5 7M15.5 8V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3.69797 19.7472C2.5 18.3446 2.5 16.2297 2.5 12C2.5 7.77027 2.5 5.6554 3.69797 4.25276C3.86808 4.05358 4.05358 3.86808 4.25276 3.69797C5.6554 2.5 7.77027 2.5 12 2.5C16.2297 2.5 18.3446 2.5 19.7472 3.69797C19.9464 3.86808 20.1319 4.05358 20.302 4.25276C21.5 5.6554 21.5 7.77027 21.5 12C21.5 16.2297 21.5 18.3446 20.302 19.7472C20.1319 19.9464 19.9464 20.1319 19.7472 20.302C18.3446 21.5 16.2297 21.5 12 21.5C7.77027 21.5 5.6554 21.5 4.25276 20.302C4.05358 20.1319 3.86808 19.9464 3.69797 19.7472Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],HC=[["path",{d:"M2.8125 18C3.01415 18.8888 3.34564 19.5638 3.89059 20.1088C5.28184 21.5 7.52101 21.5 11.9994 21.5C16.4777 21.5 18.7169 21.5 20.1081 20.1088C21.4993 18.7175 21.4993 16.4783 21.4993 12C21.4993 7.52166 21.4993 5.28249 20.1081 3.89124C18.7169 2.5 16.4777 2.5 11.9994 2.5C7.52101 2.5 5.28184 2.5 3.89059 3.89124C3.34564 4.4362 3.01415 5.11125 2.8125 6.00001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.5 9L2.5 12L5.5 15M3.5 12L10.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 2.49805L15 21.498",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M21.5 8.49805H15M21.5 15.498H15",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],YC=[["path",{d:"M21.1868 18C20.9852 18.8888 20.6537 19.5638 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C20.6537 4.4362 20.9852 5.11125 21.1868 6.00001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18.5 9L21.5 12L18.5 15M20.5 12L13.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M9 2.49805V21.498",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M2.49805 8.49805H8.99805M2.49805 15.498H8.99805",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],ZC=[["path",{d:"M18 21.1868C18.8888 20.9852 19.5638 20.6537 20.1088 20.1088C21.5 18.7175 21.5 16.4783 21.5 12C21.5 7.52166 21.5 5.28249 20.1088 3.89124C18.7175 2.5 16.4783 2.5 12 2.5C7.52166 2.5 5.28249 2.5 3.89124 3.89124C2.5 5.28249 2.5 7.52166 2.5 12C2.5 16.4783 2.5 18.7175 3.89124 20.1088C4.4362 20.6537 5.11125 20.9852 6.00001 21.1868",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 13.5V20.5M9 18.5L12 21.5L15 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.5 9L21.5 9",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.5 2.5L8.5 9M15.5 2.5L15.5 9",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],GC=[["path",{d:"M18 2.8125C18.8888 3.01415 19.5638 3.34564 20.1088 3.89059C21.5 5.28184 21.5 7.52101 21.5 11.9994C21.5 16.4777 21.5 18.7169 20.1088 20.1081C18.7175 21.4993 16.4783 21.4993 12 21.4993C7.52166 21.4993 5.28249 21.4993 3.89124 20.1081C2.5 18.7169 2.5 16.4777 2.5 11.9993C2.5 7.52101 2.5 5.28184 3.89124 3.89059C4.4362 3.34564 5.11125 3.01415 6.00001 2.8125",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 5.5L12 2.5L15 5.5M12 3.5V10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.5 15H21.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.5 21.5L8.5 15M15.5 21.5L15.5 15",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],Q8=[["path",{d:"M14.5 7H9.5C6.21252 7 4.56878 7 3.46243 7.90796C3.25989 8.07418 3.07418 8.25989 2.90796 8.46243C2 9.56878 2 11.2125 2 14.5C2 17.7875 2 19.4312 2.90796 20.5376C3.07418 20.7401 3.25989 20.9258 3.46243 21.092C4.56878 22 6.21252 22 9.5 22H14.5C17.7875 22 19.4312 22 20.5376 21.092C20.7401 20.9258 20.9258 20.7401 21.092 20.5376C22 19.4312 22 17.7875 22 14.5C22 11.2125 22 9.56878 21.092 8.46243C20.9258 8.25989 20.7401 8.07418 20.5376 7.90796C19.4312 7 17.7875 7 14.5 7Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 7V5C12 4.44772 12.4477 4 13 4C13.5523 4 14 3.55228 14 3V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7 12L8 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.5 12L12.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M16 12L17 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M7 17L17 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],J8=[["path",{d:"M20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.5 2.5V21.5",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.5 2.5V21.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],Fc=[["path",{d:"M20.1069 20.1088C18.7156 21.5001 16.4765 21.5001 11.9981 21.5001C7.51976 21.5001 5.28059 21.5001 3.88935 20.1088C2.49811 18.7176 2.49811 16.4784 2.49811 12.0001C2.49811 7.52172 2.49811 5.28255 3.88935 3.89131C5.28059 2.50006 7.51976 2.50006 11.9981 2.50006C16.4764 2.50006 18.7156 2.50006 20.1069 3.8913C21.4981 5.28255 21.4981 7.52172 21.4981 12.0001C21.4981 16.4784 21.4981 18.7176 20.1069 20.1088Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.99811 21.5001L8.99811 2.50006",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M21.4981 8.00006L2.49811 8.00006",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M21.4981 16.0001H2.49811",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],Wc=[["path",{d:"M8 5.5L20 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L20 12.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 19.5L20 19.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M4.375 5.5H4.25M4.5 5.5C4.5 5.63807 4.38807 5.75 4.25 5.75C4.11193 5.75 4 5.63807 4 5.5C4 5.36193 4.11193 5.25 4.25 5.25C4.38807 5.25 4.5 5.36193 4.5 5.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M4.375 12.5H4.25M4.5 12.5C4.5 12.6381 4.38807 12.75 4.25 12.75C4.11193 12.75 4 12.6381 4 12.5C4 12.3619 4.11193 12.25 4.25 12.25C4.38807 12.25 4.5 12.3619 4.5 12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M4.375 19.5H4.25M4.5 19.5C4.5 19.6381 4.38807 19.75 4.25 19.75C4.11193 19.75 4 19.6381 4 19.5C4 19.3619 4.11193 19.25 4.25 19.25C4.38807 19.25 4.5 19.3619 4.5 19.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],Gh=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 15H4.5C4.77879 15 4.91819 15 5.03411 15.0231C5.51014 15.1177 5.88225 15.4899 5.97694 15.9659C6 16.0818 6 16.2212 6 16.5C6 16.7788 6 16.9182 5.97694 17.0341C5.88225 17.5101 5.51014 17.8823 5.03411 17.9769C4.91819 18 4.77879 18 4.5 18C4.22121 18 4.08181 18 3.96589 18.0231C3.48986 18.1177 3.11775 18.4899 3.02306 18.9659C3 19.0818 3 19.2212 3 19.5V20.4C3 20.6828 3 20.8243 3.08787 20.9121C3.17574 21 3.31716 21 3.6 21H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 3H4.2C4.36569 3 4.5 3.13431 4.5 3.3V9M4.5 9H3M4.5 9H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],X8=[["path",{d:"M11 5.5L21 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.4 16.8926C6.46667 17.607 7 17.9642 7 18.5C7 19.0358 6.46667 19.393 5.4 20.1074C4.33333 20.8218 3.8 21.1789 3.4 20.9111C3 20.6432 3 19.9288 3 18.5C3 17.0712 3 16.3568 3.4 16.0889C3.8 15.8211 4.33333 16.1782 5.4 16.8926Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5.4 3.89263C6.46667 4.60702 7 4.96421 7 5.5C7 6.03579 6.46667 6.39298 5.4 7.10737C4.33333 7.82176 3.8 8.17895 3.4 7.91105C3 7.64316 3 6.92877 3 5.5C3 4.07123 3 3.35684 3.4 3.08895C3.8 2.82105 4.33333 3.17824 5.4 3.89263Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11 18.5L21 18.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}]],Vh=[["path",{d:"M9.14339 10.691L9.35031 10.4841C11.329 8.50532 14.5372 8.50532 16.5159 10.4841C18.4947 12.4628 18.4947 15.671 16.5159 17.6497L13.6497 20.5159C11.671 22.4947 8.46279 22.4947 6.48405 20.5159C4.50532 18.5372 4.50532 15.329 6.48405 13.3503L6.9484 12.886",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.0516 11.114L17.5159 10.6497C19.4947 8.67095 19.4947 5.46279 17.5159 3.48405C15.5372 1.50532 12.329 1.50532 10.3503 3.48405L7.48405 6.35031C5.50532 8.32904 5.50532 11.5372 7.48405 13.5159C9.46279 15.4947 12.671 15.4947 14.6497 13.5159L14.8566 13.309",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],ja=[["path",{d:"M9.5 14.5L14.5 9.49995",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.8463 14.6095L19.4558 12C21.5147 9.94108 21.5147 6.60298 19.4558 4.54411C17.397 2.48524 14.0589 2.48524 12 4.54411L9.39045 7.15366M14.6095 16.8463L12 19.4558C9.94113 21.5147 6.60303 21.5147 4.54416 19.4558C2.48528 17.3969 2.48528 14.0588 4.54416 12L7.1537 9.39041",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],VC=[["path",{d:"M11.0991 3.00012C7.45013 3.00669 5.53932 3.09629 4.31817 4.31764C3.00034 5.63568 3.00034 7.75704 3.00034 11.9997C3.00034 16.2424 3.00034 18.3638 4.31817 19.6818C5.63599 20.9999 7.75701 20.9999 11.9991 20.9999C16.241 20.9999 18.3621 20.9999 19.6799 19.6818C20.901 18.4605 20.9906 16.5493 20.9972 12.8998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.556 3.49612L11.0487 13.0586M20.556 3.49612C20.062 3.00151 16.7343 3.04761 16.0308 3.05762M20.556 3.49612C21.05 3.99074 21.0039 7.32273 20.9939 8.02714",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],$8=[["path",{d:"M2 6L8.91302 9.91697C11.4616 11.361 12.5384 11.361 15.087 9.91697L22 6",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],ek=[["path",{d:"M8.5 14.5H15.5M8.5 9.5H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.1706 20.8905C18.3536 20.6125 21.6856 17.2332 21.9598 12.9909C22.0134 12.1607 22.0134 11.3009 21.9598 10.4707C21.6856 6.22838 18.3536 2.84913 14.1706 2.57107C12.7435 2.47621 11.2536 2.47641 9.8294 2.57107C5.64639 2.84913 2.31441 6.22838 2.04024 10.4707C1.98659 11.3009 1.98659 12.1607 2.04024 12.9909C2.1401 14.536 2.82343 15.9666 3.62791 17.1746C4.09501 18.0203 3.78674 19.0758 3.30021 19.9978C2.94941 20.6626 2.77401 20.995 2.91484 21.2351C3.05568 21.4752 3.37026 21.4829 3.99943 21.4982C5.24367 21.5285 6.08268 21.1757 6.74868 20.6846C7.1264 20.4061 7.31527 20.2668 7.44544 20.2508C7.5756 20.2348 7.83177 20.3403 8.34401 20.5513C8.8044 20.7409 9.33896 20.8579 9.8294 20.8905C11.2536 20.9852 12.7435 20.9854 14.1706 20.8905Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],qC=[["path",{d:"M21 12C21 11.1716 20.3284 10.5 19.5 10.5C18.6716 10.5 18 11.1716 18 12C18 12.8284 18.6716 13.5 19.5 13.5C20.3284 13.5 21 12.8284 21 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 12C6 11.1716 5.32843 10.5 4.5 10.5C3.67157 10.5 3 11.1716 3 12C3 12.8284 3.67157 13.5 4.5 13.5C5.32843 13.5 6 12.8284 6 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],Mr=[["path",{d:"M6.00449 12.5V12M18.0045 12.5V12M12.0045 12.5V12M7.00449 12.5C7.00449 11.9477 6.55677 11.5 6.00449 11.5C5.4522 11.5 5.00449 11.9477 5.00449 12.5C5.00449 13.0523 5.4522 13.5 6.00449 13.5C6.55677 13.5 7.00449 13.0523 7.00449 12.5ZM19.0045 12.5C19.0045 11.9477 18.5568 11.5 18.0045 11.5C17.4522 11.5 17.0045 11.9477 17.0045 12.5C17.0045 13.0523 17.4522 13.5 18.0045 13.5C18.5568 13.5 19.0045 13.0523 19.0045 12.5ZM13.0045 12.5C13.0045 11.9477 12.5568 11.5 12.0045 11.5C11.4522 11.5 11.0045 11.9477 11.0045 12.5C11.0045 13.0523 11.4522 13.5 12.0045 13.5C12.5568 13.5 13.0045 13.0523 13.0045 12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Sc=[["path",{d:"M11.9967 12.5V12M11.9967 6.5V6M11.9967 18.5V18M12.9967 12.5C12.9967 11.9477 12.549 11.5 11.9967 11.5C11.4444 11.5 10.9967 11.9477 10.9967 12.5C10.9967 13.0523 11.4444 13.5 11.9967 13.5C12.549 13.5 12.9967 13.0523 12.9967 12.5ZM12.9967 6.5C12.9967 5.94772 12.549 5.5 11.9967 5.5C11.4444 5.5 10.9967 5.94772 10.9967 6.5C10.9967 7.05228 11.4444 7.5 11.9967 7.5C12.549 7.5 12.9967 7.05228 12.9967 6.5ZM12.9967 18.5C12.9967 17.9477 12.549 17.5 11.9967 17.5C11.4444 17.5 10.9967 17.9477 10.9967 18.5C10.9967 19.0523 11.4444 19.5 11.9967 19.5C12.549 19.5 12.9967 19.0523 12.9967 18.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],qh=[["path",{d:"M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],tk=[["circle",{cx:"6.5",cy:"18.5",r:"3.5",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["circle",{cx:"18",cy:"16",r:"3",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 18.5L10 7C10 6.07655 10 5.61483 10.2635 5.32794C10.5269 5.04106 11.0175 4.9992 11.9986 4.91549C16.022 4.57222 18.909 3.26005 20.3553 2.40978C20.6508 2.236 20.7986 2.14912 20.8993 2.20672C21 2.26432 21 2.4315 21 2.76587V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M10 10C15.8667 10 19.7778 7.66667 21 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],nk=[["path",{d:"M12.8809 7.01656L17.6538 8.28825M11.8578 10.8134L14.2442 11.4492M11.9765 17.9664L12.9311 18.2208C15.631 18.9401 16.981 19.2998 18.0445 18.6893C19.108 18.0787 19.4698 16.7363 20.1932 14.0516L21.2163 10.2548C21.9398 7.57005 22.3015 6.22768 21.6875 5.17016C21.0735 4.11264 19.7235 3.75295 17.0235 3.03358L16.0689 2.77924C13.369 2.05986 12.019 1.70018 10.9555 2.31074C9.89196 2.9213 9.53023 4.26367 8.80678 6.94841L7.78366 10.7452C7.0602 13.4299 6.69848 14.7723 7.3125 15.8298C7.92652 16.8874 9.27651 17.2471 11.9765 17.9664Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 20.9462L11.0477 21.2055C8.35403 21.939 7.00722 22.3057 5.94619 21.6832C4.88517 21.0607 4.52429 19.692 3.80253 16.9546L2.78182 13.0833C2.06006 10.3459 1.69918 8.97718 2.31177 7.89892C2.84167 6.96619 4 7.00015 5.5 7.00003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],rk=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C12.8417 22 14 22.1163 14 21C14 20.391 13.6832 19.9212 13.3686 19.4544C12.9082 18.7715 12.4523 18.0953 13 17C13.6667 15.6667 14.7778 15.6667 16.4815 15.6667C17.3334 15.6667 18.3334 15.6667 19.5 15.5C21.601 15.1999 22 13.9084 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["circle",{cx:"9.5",cy:"8.5",r:"1.5",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["circle",{cx:"16.5",cy:"9.5",r:"1.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.125 15H7M7.25 15C7.25 15.1381 7.13807 15.25 7 15.25C6.86193 15.25 6.75 15.1381 6.75 15C6.75 14.8619 6.86193 14.75 7 14.75C7.13807 14.75 7.25 14.8619 7.25 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],rs=[["path",{d:"M10 4C10 2.89543 10.8954 2 12 2H13C14.1046 2 15 2.89543 15 4V6.55337C15 7.86603 15.8534 9.02626 17.1065 9.41722L17.8935 9.66278C19.1466 10.0537 20 11.214 20 12.5266V14C20 14.5523 19.5523 15 19 15H6C5.44772 15 5 14.5523 5 14V12.5266C5 11.214 5.85339 10.0537 7.10648 9.66278L7.89352 9.41722C9.14661 9.02626 10 7.86603 10 6.55337V4Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.00217 15C6.15797 16.3082 5.4957 19.5132 4 21.8679C4 21.8679 14.2924 23.0594 15.6851 17.9434V19.8712C15.6851 20.8125 15.6851 21.2831 15.9783 21.5755C16.5421 22.1377 19.1891 22.1531 19.7538 21.5521C20.0504 21.2363 20.0207 20.7819 19.9611 19.8731C19.8629 18.3746 19.5932 16.4558 18.8523 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],QC=[["path",{d:"M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],ok=[["path",{d:"M11.5 20H10C6.22876 20 4.34315 20 3.17157 18.8284C2 17.6569 2 15.7712 2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C21.947 6.29018 21.9976 8.05974 21.9999 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.5 14H15.5C14.6716 14 14 14.6716 14 15.5V18.5C14 19.3284 14.6716 20 15.5 20H20.5C21.3284 20 22 19.3284 22 18.5V15.5C22 14.6716 21.3284 14 20.5 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 9.5V12C11.0475 12.5744 10.6034 13.0238 10 13H7.5M6 8L10 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],JC=[["path",{d:"M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Lg=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V16M16 12H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ec=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Qh=[["path",{d:"M10 8C10 9.88562 10 10.8284 9.41421 11.4142C8.82843 12 7.88562 12 6 12C4.11438 12 3.17157 12 2.58579 11.4142C2 10.8284 2 9.88562 2 8C2 6.11438 2 5.17157 2.58579 4.58579C3.17157 4 4.11438 4 6 4C7.88562 4 8.82843 4 9.41421 4.58579C10 5.17157 10 6.11438 10 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 7L10 11.4821C10 15.4547 7.48429 18.8237 4 20",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 8C22 9.88562 22 10.8284 21.4142 11.4142C20.8284 12 19.8856 12 18 12C16.1144 12 15.1716 12 14.5858 11.4142C14 10.8284 14 9.88562 14 8C14 6.11438 14 5.17157 14.5858 4.58579C15.1716 4 16.1144 4 18 4C19.8856 4 20.8284 4 21.4142 4.58579C22 5.17157 22 6.11438 22 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 7L22 11.4821C22 15.4547 19.4843 18.8237 16 20",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],sk=[["path",{d:"M12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C15.3313 3 18.2398 4.80989 19.796 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.9991 3V4.27816C20.9991 6.47004 20.9991 7.56599 20.2918 8.16512C19.5846 8.76425 18.5036 8.58408 16.3415 8.22373L14.9991 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ra=[["path",{d:"M22 5H13.6138C12.3798 5 11.965 5.1398 11.659 6.36394L9.33913 15.6416C8.78948 17.8398 8.51466 18.9389 7.78481 18.9976C7.05496 19.0564 6.55032 18.02 5.54104 15.9472L4.97014 14.7748C4.53541 13.882 4.31804 13.4356 3.87855 13.3147C3.21709 13.1327 2.5084 13.6703 2 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.4004 11.004C15.1804 10.92 16.1337 11.0385 16.4404 11.64C17.0523 12.84 18.0604 15.36 18.4204 16.14C18.6004 16.44 18.7804 16.8 19.5004 16.98C19.9804 17.04 20.6039 16.9955 20.6039 16.9955",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21.0005 10.998C19.5005 10.998 18.5405 12.66 17.7005 13.68C16.6205 15.24 15.4205 17.1 13.9805 16.98",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]],ik=[["path",{d:"M21 6C21 7.65685 19.6569 9 18 9C16.3431 9 15 7.65685 15 6C15 4.34315 16.3431 3 18 3C19.6569 3 21 4.34315 21 6Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18C15 16.3431 16.3431 15 18 15C19.6569 15 21 16.3431 21 18Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 8L3 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15.0003 16L11 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 5.00011L8.5 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],Jh=[["path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],ak=[["path",{d:"M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],Ng=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.5 10C7.67157 10 7 9.32843 7 8.5C7 7.67157 7.67157 7 8.5 7C9.32843 7 10 7.67157 10 8.5C10 9.32843 9.32843 10 8.5 10Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.5 17C16.3284 17 17 16.3284 17 15.5C17 14.6716 16.3284 14 15.5 14C14.6716 14 14 14.6716 14 15.5C14 16.3284 14.6716 17 15.5 17Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M10 8.5L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14 15.5L7 15.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}]],lk=[["path",{d:"M21 6.5C21 8.15685 19.6569 9.5 18 9.5C16.3431 9.5 15 8.15685 15 6.5C15 4.84315 16.3431 3.5 18 3.5C19.6569 3.5 21 4.84315 21 6.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 12C9 13.6569 7.65685 15 6 15C4.34315 15 3 13.6569 3 12C3 10.3431 4.34315 9 6 9C7.65685 9 9 10.3431 9 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 17.5C21 19.1569 19.6569 20.5 18 20.5C16.3431 20.5 15 19.1569 15 17.5C15 15.8431 16.3431 14.5 18 14.5C19.6569 14.5 21 15.8431 21 17.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.72852 10.7495L15.2285 7.75M8.72852 13.25L15.2285 16.2495",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],ck=[["path",{d:"M3.99963 5.00055L9.99963 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.9996 5.00031L19.9996 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.9996 9.00031L15.9996 15.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M9.99963 2.00031L9.99963 8.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.9996 16.0003L11.9996 22.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M15.9996 12.0001L19.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M3.99963 12.0005L12.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M11.9996 19.0003L19.9996 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}],["path",{d:"M3.99963 19.0005L8.99963 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"8"}]],uk=[["path",{d:"M13.5 2H10.5C8.14298 2 6.96447 2 6.23223 2.73223C5.5 3.46447 5.5 4.64298 5.5 7V17C5.5 19.357 5.5 20.5355 6.23223 21.2678C6.96447 22 8.14298 22 10.5 22H13.5C15.857 22 17.0355 22 17.7678 21.2678C18.5 20.5355 18.5 19.357 18.5 17V7C18.5 4.64298 18.5 3.46447 17.7678 2.73223C17.0355 2 15.857 2 13.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.125 19H12M12.25 19C12.25 19.1381 12.1381 19.25 12 19.25C11.8619 19.25 11.75 19.1381 11.75 19C11.75 18.8619 11.8619 18.75 12 18.75C12.1381 18.75 12.25 18.8619 12.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],dk=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 15C8.91212 16.2144 10.3643 17 12 17C13.6357 17 15.0879 16.2144 16 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.625 8.387V8.91649M8.375 8.387V8.91649M8.75 8.75C8.75 8.33579 8.58211 8 8.375 8C8.16789 8 8 8.33579 8 8.75C8 9.16421 8.16789 9.5 8.375 9.5C8.58211 9.5 8.75 9.16421 8.75 8.75ZM16 8.75C16 8.33579 15.8321 8 15.625 8C15.4179 8 15.25 8.33579 15.25 8.75C15.25 9.16421 15.4179 9.5 15.625 9.5C15.8321 9.5 16 9.16421 16 8.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Ia=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],fk=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 18H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 14H15M12 14H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],XC=[["path",{d:"M3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 9L21.5 9",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.5 13L21.5 13",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M2.5 17L21.5 17",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M12 21.5L12 9",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}]],$C=[["path",{d:"M3 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 9H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 15H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 21H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],eA=[["path",{d:"M3 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 15H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Mc=[["path",{d:"M3 3H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 15H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],tA=[["path",{d:"M13 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 9H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 15H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],nA=[["path",{d:"M5 6C5 4.58579 5 3.87868 5.43934 3.43934C5.87868 3 6.58579 3 8 3H12.5789C15.0206 3 17 5.01472 17 7.5C17 9.98528 15.0206 12 12.5789 12H5V6Z",stroke:"currentColor",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.4286 12H13.6667C16.0599 12 18 14.0147 18 16.5C18 18.9853 16.0599 21 13.6667 21H8C6.58579 21 5.87868 21 5.43934 20.5607C5 20.1213 5 19.4142 5 18V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],hk=[["path",{d:"M11 20.001H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 4L8 20.0008M12 4C13.3874 4 15.1695 4.03054 16.5884 4.17648C17.1885 4.23819 17.4886 4.26905 17.7541 4.37789C18.3066 4.60428 18.7518 5.10062 18.9194 5.6768C19 5.95381 19 6.26991 19 6.90214M12 4C10.6126 4 8.83047 4.03054 7.41161 4.17648C6.8115 4.23819 6.51144 4.26905 6.24586 4.37789C5.69344 4.60428 5.24816 5.10062 5.08057 5.6768C5 5.95381 5 6.26991 5 6.90214",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14 15L19 20M14 20L19 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],pk=[["path",{d:"M4 4.5H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 9.5H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 14.5H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6 19.5H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M13 3V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M20 8.5L18.4578 9.74227C17.1526 10.7937 16.5 11.3193 16.5 12C16.5 12.6807 17.1526 13.2063 18.4578 14.2577L20 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],mk=[["path",{d:"M15 4.5H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 9.5H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 14.5H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15 19.5H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11 3V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M4 8.5L5.54218 9.74227C6.84739 10.7937 7.5 11.3193 7.5 12C7.5 12.6807 6.84739 13.2063 5.54218 14.2577L4 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],rA=[["path",{d:"M12 4H19",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 20L16 4",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5 20H12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]],Ff=[["path",{d:"M6.99892 9.5C6.75828 7.50503 7.91475 7.09687 11.9989 7M11.9989 7C16.1223 7.10058 17.3402 7.59829 16.9989 9.5M11.9989 7V17M9.99892 17H13.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.89124 3.89124C2.5 5.28249 2.5 7.52166 2.5 12C2.5 16.4783 2.5 18.7175 3.89124 20.1088C5.28249 21.5 7.52166 21.5 12 21.5C16.4783 21.5 18.7175 21.5 20.1088 20.1088C21.5 18.7175 21.5 16.4783 21.5 12C21.5 7.52166 21.5 5.28249 20.1088 3.89124C18.7175 2.5 16.4783 2.5 12 2.5C7.52166 2.5 5.28249 2.5 3.89124 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],oA=[["path",{d:"M4 12H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.5 7.66667C17.5 5.08934 15.0376 3 12 3C8.96243 3 6.5 5.08934 6.5 7.66667C6.5 8.15279 6.55336 8.59783 6.6668 9M6 16.3333C6 18.9107 8.68629 21 12 21C15.3137 21 18 19.6667 18 16.3333C18 13.9404 16.9693 12.5782 14.9079 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],pu=[["path",{d:"M15 21.001H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 3.00001V21.0008M12 3.00001C13.3874 3.00001 15.1695 3.03055 16.5884 3.17649C17.1885 3.2382 17.4886 3.26906 17.7541 3.37791C18.3066 3.60429 18.7518 4.10063 18.9194 4.67681C19 4.95382 19 5.26992 19 5.90215M12 3.00001C10.6126 3.00001 8.83047 3.03055 7.41161 3.17649C6.8115 3.2382 6.51144 3.26906 6.24586 3.37791C5.69344 3.60429 5.24816 4.10063 5.08057 4.67681C5 4.95382 5 5.26992 5 5.90215",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],sA=[["path",{d:"M5.5 3V11.5C5.5 15.0899 8.41015 18 12 18C15.5899 18 18.5 15.0899 18.5 11.5V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 21H21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],tr=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Xh=[["path",{d:"M5.25 5L19.25 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22.25 12C22.25 6.47715 17.7728 2 12.25 2C6.72715 2 2.25 6.47715 2.25 12C2.25 17.5228 6.72715 22 12.25 22C17.7728 22 22.25 17.5228 22.25 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],gk=[["path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C8.66873 3 5.76018 4.80989 4.20404 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 3V4.27816C3 6.47004 3 7.56599 3.70725 8.16512C4.4145 8.76425 5.49553 8.58408 7.6576 8.22373L9 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Wf=[["path",{d:"M18 19C18 19 13.5811 14 12 14C10.4188 14 6 19 6 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 5.00004C18 5.00004 13.5811 9.99999 12 10C10.4188 10 6 5 6 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],zf=[["path",{d:"M10.3483 10H13.6517C15.6822 10 16.6974 10 16.9501 9.39139C17.2028 8.78277 16.4849 8.06648 15.0491 6.63391L13.3974 4.9859L13.3974 4.9859C12.7387 4.32863 12.4093 4 12 4C11.5907 4 11.2613 4.32864 10.6026 4.9859L8.95091 6.63391L8.95091 6.63391C7.51513 8.06649 6.79724 8.78277 7.0499 9.39139C7.30256 10 8.31781 10 10.3483 10Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.3483 14H13.6517C15.6822 14 16.6974 14 16.9501 14.6086C17.2028 15.2172 16.4849 15.9335 15.0491 17.3661L13.3974 19.0141C12.7387 19.6714 12.4093 20 12 20C11.5907 20 11.2613 19.6714 10.6026 19.0141L8.95091 17.3661C7.51513 15.9335 6.79724 15.2172 7.0499 14.6086C7.30256 14 8.31781 14 10.3483 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ck=[["path",{d:"M2 11C2 7.70017 2 6.05025 3.02513 5.02513C4.05025 4 5.70017 4 9 4H10C13.2998 4 14.9497 4 15.9749 5.02513C17 6.05025 17 7.70017 17 11V13C17 16.2998 17 17.9497 15.9749 18.9749C14.9497 20 13.2998 20 10 20H9C5.70017 20 4.05025 20 3.02513 18.9749C2 17.9497 2 16.2998 2 13V11Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 8.90585L17.1259 8.80196C19.2417 7.05623 20.2996 6.18336 21.1498 6.60482C22 7.02628 22 8.42355 22 11.2181V12.7819C22 15.5765 22 16.9737 21.1498 17.3952C20.2996 17.8166 19.2417 16.9438 17.1259 15.198L17 15.0941",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"11.5",cy:"9.5",r:"1.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],$h=[["path",{d:"M19.439 15.439C20.3636 14.5212 21.0775 13.6091 21.544 12.955C21.848 12.5287 22 12.3155 22 12C22 11.6845 21.848 11.4713 21.544 11.045C20.1779 9.12944 16.6892 5 12 5C11.0922 5 10.2294 5.15476 9.41827 5.41827M6.74742 6.74742C4.73118 8.1072 3.24215 9.94266 2.45604 11.045C2.15201 11.4713 2 11.6845 2 12C2 12.3155 2.15201 12.5287 2.45604 12.955C3.8221 14.8706 7.31078 19 12 19C13.9908 19 15.7651 18.2557 17.2526 17.2526",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.85786 10C9.32783 10.53 9 11.2623 9 12.0711C9 13.6887 10.3113 15 11.9289 15C12.7377 15 13.47 14.6722 14 14.1421",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],iA=[["path",{d:"M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],aA=[["path",{d:"M14 14.8135V9.18646C14 6.04126 14 4.46866 13.0747 4.0773C12.1494 3.68593 11.0603 4.79793 8.88232 7.02192C7.75439 8.17365 7.11085 8.42869 5.50604 8.42869C4.10257 8.42869 3.40084 8.42869 2.89675 8.77262C1.85035 9.48655 2.00852 10.882 2.00852 12C2.00852 13.118 1.85035 14.5134 2.89675 15.2274C3.40084 15.5713 4.10257 15.5713 5.50604 15.5713C7.11085 15.5713 7.75439 15.8264 8.88232 16.9781C11.0603 19.2021 12.1494 20.3141 13.0747 19.9227C14 19.5313 14 17.9587 14 14.8135Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 9C17.6254 9.81968 18 10.8634 18 12C18 13.1366 17.6254 14.1803 17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 7C21.2508 8.36613 22 10.1057 22 12C22 13.8943 21.2508 15.6339 20 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Ak=[["path",{d:"M19 9C19.6254 9.81968 20 10.8634 20 12C20 13.1366 19.6254 14.1803 19 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 14.8135V9.18646C16 6.04126 16 4.46866 15.0747 4.0773C14.1494 3.68593 13.0604 4.79793 10.8823 7.02192C9.7544 8.17365 9.11086 8.42869 7.50605 8.42869C6.10259 8.42869 5.40086 8.42869 4.89677 8.77262C3.85036 9.48655 4.00854 10.882 4.00854 12C4.00854 13.118 3.85036 14.5134 4.89677 15.2274C5.40086 15.5713 6.10259 15.5713 7.50605 15.5713C9.11086 15.5713 9.7544 15.8264 10.8823 16.9781C13.0604 19.2021 14.1494 20.3141 15.0747 19.9227C16 19.5313 16 17.9587 16 14.8135Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],lA=[["path",{d:"M22 22L2 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 10C17.6296 10.7667 18 11.7054 18 12.7195C18 13.1635 17.929 13.593 17.7963 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 8C21.2508 9.22951 22 10.7952 22 12.5C22 13.9164 21.4829 15.2367 20.5906 16.348",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14 14C14 17.1452 14 19.5313 13.074 19.9227C12.1481 20.3141 11.0583 19.2021 8.8787 16.9781C7.7499 15.8264 7.106 15.5713 5.5 15.5713C4.3879 15.5713 3.02749 15.7187 2.33706 14.6643C2 14.1496 2 13.4331 2 12C2 10.5669 2 9.85038 2.33706 9.33566C3.02749 8.28131 4.3879 8.42869 5.5 8.42869C6.60725 8.42869 7.3569 8.43869 7.96 7.96M14 9.5C14 6.3548 14.026 4.46866 13.1 4.0773C12.3292 3.75147 11.5323 4.46765 10 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],bk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},te=m.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t,absoluteStrokeWidth:r=!1,className:o="",altIcon:s,showAlt:l=!1,icon:c,primaryColor:d,secondaryColor:f,disableSecondaryOpacity:h=!1,...g},C)=>{const y=t!==void 0?r?Number(t)*24/Number(n):t:void 0,b=y!==void 0?{strokeWidth:y,stroke:"currentColor"}:{},x={ref:C,...bk,width:n,height:n,color:d||e,className:o,...b,...g},k=[...l&&s?s:c].sort(([,T],[,D])=>{const N=T.opacity!==void 0;return D.opacity!==void 0?1:N?-1:0}).map(([T,D])=>{const N=D.opacity!==void 0,L=N&&!h?D.opacity:void 0,E=f?{...D.stroke!==void 0?{stroke:N?f:d||e}:{fill:N?f:d||e}}:{};return m.createElement(T,{...D,...b,...E,opacity:L,key:D.key})});return m.createElement("svg",x,k)});te.displayName="HugeiconsIcon";const Di=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yk=Di&&"documentMode"in document?document.documentMode:null;var hC;const xk=(hC=navigator.userAgentData)==null?void 0:hC.platform,Os=Di&&/macOS|iPod|iPhone|iPad/.test(xk);Di&&"InputEvent"in window&&!yk&&"getTargetRanges"in new window.InputEvent("input");const vk=Di&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Nt=Di&&!!navigator.maxTouchPoints,wk="1px solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4))",Cn=m.forwardRef(function({label:n,icon:t,iconColor:r,tooltipDisabled:o,flexBorder:s,className:l,...c},d){const f=["action-icon",l].filter(Boolean).join(" ");return i.jsx(v.Tooltip,{label:n,disabled:o,children:i.jsx(v.Flex,{component:"div",w:32,h:32,gap:0,justify:"center",align:"center",bg:"light-dark(var(--mantine-color-white), var(--mantine-color-body))",bdrs:"8px",bd:s?wk:void 0,children:i.jsx(v.ActionIcon,{ref:d,size:28,variant:"transparent",bd:"none",className:f,...c,children:i.jsx(te,{icon:t,size:16,color:r})})})})});function fs({label:e,ariaLabel:n,onClick:t}){return i.jsx(Cn,{className:"header-menu__action-icon","aria-label":n,radius:"md",variant:"default",bg:"light-dark(var(--mantine-color-white), var(--mantine-color-body))",size:28,label:e,onClick:t,icon:jn,iconColor:"var(--mantine-color-red-5)"})}function mu({label:e,ariaLabel:n,onClick:t}){return i.jsx(Cn,{className:"header-menu__action-icon","aria-label":n,radius:"md",bg:"light-dark(var(--mantine-color-white), var(--mantine-color-body))",variant:"default",size:28,label:e,onClick:t,icon:uo,iconColor:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-gray-4))"})}const e1=m.forwardRef(function({isEmpty:n,copyToClipboard:t,onDuplicate:r,tooltipCopy:o,tooltipDuplicate:s},l){const[c,d]=m.useState(!1),f=n?s:o;function h(){if(n){r();return}t().then(C=>{C&&(d(!0),setTimeout(()=>{d(!1)},1e3))})}const g=n?uo:c?tr:hu;return i.jsx(Cn,{ref:l,className:!n&&c?"header-menu__action-icon header-menu__copy-icon header-menu__copy-icon--success":"header-menu__action-icon header-menu__copy-icon","aria-label":f,label:f,onClick:h,icon:g,iconColor:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-gray-4))"})});function cA(e,n){const[t,r]=m.useState(()=>{let o=!1;return e.getEditorState().read(()=>{var s;o=!!((s=n())!=null&&s.getTextContent().trim())}),o});return m.useEffect(()=>e.registerUpdateListener(({editorState:o})=>{o.read(()=>{var l;const s=!!((l=n())!=null&&l.getTextContent().trim());r(c=>c===s?c:s)})}),[e,n]),t}const kk=80,Sk=.5,En=({title:e,children:n,classNames:t,onClose:r,...o})=>{const s=["mobile-drawer",t==null?void 0:t.content].filter(Boolean).join(" ").trim(),l=m.useRef(null),c=m.useRef(null),d=()=>{var C;return(C=l.current)==null?void 0:C.closest(".mobile-drawer")},f=C=>{const y=d();y&&(c.current={startY:C.touches[0].clientY,startTime:Date.now(),active:!0},y.style.transition="none")},h=C=>{const y=c.current,b=d();if(!(y!=null&&y.active)||!b)return;const x=C.touches[0].clientY-y.startY;x>0&&(b.style.transform=`translateY(${x}px)`)},g=C=>{const y=c.current,b=d();if(!(y!=null&&y.active)||!b)return;const x=C.changedTouches[0].clientY-y.startY,w=Date.now()-y.startTime,k=w>0?x/w:0;b.style.transition="",b.style.transform="",(x>kk||k>Sk)&&(r==null||r()),c.current=null};return i.jsxs(v.Drawer,{position:"bottom",size:"auto",withCloseButton:!1,padding:0,zIndex:1001,lockScroll:!0,onClose:r,classNames:{...t,content:s||void 0},...o,children:[i.jsx(v.Box,{ref:l,className:"mobile-drawer__handle-rail",onTouchStart:f,onTouchMove:h,onTouchEnd:g,children:i.jsx(v.Box,{className:"mobile-drawer__handle"})}),i.jsxs(v.Box,{className:"mobile-drawer__body",children:[e?i.jsx(v.Text,{component:"p",className:"mobile-drawer__title",children:e}):null,i.jsx(v.Box,{className:"mobile-drawer__main",children:n})]})]})};class No extends p.TextNode{constructor(n,t){super(n,t)}static getType(){return"extended-text"}static clone(n){return new No(n.__text,n.__key)}static importDOM(){const n=p.TextNode.importDOM(),t=document.body.getAttribute("mode")?{code:()=>({conversion:Yo(n==null?void 0:n.span),priority:1}),s:()=>({conversion:Yo(n==null?void 0:n.span),priority:1})}:{code:()=>({conversion:Yo(n==null?void 0:n.code),priority:1})};return{...n,...t,em:()=>({conversion:Yo(n==null?void 0:n.em),priority:1}),span:()=>({conversion:Yo(n==null?void 0:n.span),priority:1}),strong:()=>({conversion:Yo(n==null?void 0:n.strong),priority:1}),sub:()=>({conversion:Yo(n==null?void 0:n.sub),priority:1}),sup:()=>({conversion:Yo(n==null?void 0:n.sup),priority:1})}}static importJSON(n){return p.TextNode.importJSON(n)}isSimpleText(){return(this.__type==="text"||this.__type==="extended-text")&&this.__mode===0}exportDOM(n){let{element:t}=super.exportDOM(n);return t instanceof HTMLElement&&t.setAttribute("lexical-element","true"),{element:t}}exportJSON(){return{...super.exportJSON(),type:"extended-text",version:1}}}function os(e=""){return p.$applyNodeReplacement(new No(e))}function _n(e){return e instanceof No}function Yo(e){return n=>{const t=e==null?void 0:e(n);if(!t)return null;const r=t.conversion(n);if(!r)return r;const o=n.getAttribute("lexical-element")&&!document.body.getAttribute("mode"),s=o?n.style.backgroundColor:"",l=o?n.style.color:"",c=n.style.textDecoration;return{...r,forChild:(d,f)=>{const g=((r==null?void 0:r.forChild)??(C=>C))(d,f);if(_n(g)){const C=[s?`background-color: ${s}`:null,l?`color: ${l}`:null,c?`text-decoration: ${c}`:null].filter(y=>y!=null).join("; ");if(C.length)return g.setStyle(C)}return g}}}}const Kf={...Lr};function Ek(){return{node:Za()}}class zs extends p.ElementNode{static getType(){return"callout"}static clone(n){return new zs(n.__key)}constructor(n){super(n)}createDOM(n){const t=document.createElement("div");return typeof n.theme.callout=="string"&&be.addClassNamesToElement(t,Kf.callout),t}updateDOM(){return!1}isShadowRoot(){return!0}static importDOM(){return{div:n=>n.className!==Kf.callout?null:{conversion:Ek,priority:2}}}static importJSON(){return Za()}exportJSON(){return{...super.exportJSON(),type:"callout",version:1}}}function Za(){return new zs}function hs(e){return e instanceof zs}const Mk=new Set(["success","warning","alert"]),Tk=new Set(["#f3f3f4","rgba(219, 242, 233, 1)","rgba(255, 224, 223, 1)","rgba(254, 247, 230, 1)","rgba(254, 247, 230)"]);function jg(e,n){return!(Mk.has(n)||!e||Tk.has(e))}function Lk(e){const n=e.getAttribute("data-type"),t=e.style.backgroundColor;return{node:Ga(t,n||"default")}}class jo extends p.ElementNode{constructor(t,r,o){super(o);Me(this,"__backgroundColor");Me(this,"__calloutType");this.__backgroundColor=t===void 0?"":t,this.__calloutType=r===void 0?"😊":r}static getType(){return"callout-wrapper"}static clone(t){return new jo(t.__backgroundColor,t.__calloutType,t.__key)}createDOM(t){const r=document.createElement("div");return typeof t.theme.callout=="string"&&be.addClassNamesToElement(r,t.theme.calloutWrapper),r.setAttribute("data-type",this.__calloutType),jg(this.__backgroundColor,this.__calloutType)?r.style.backgroundColor=this.__backgroundColor:r.style.backgroundColor="",r}updateDOM(t,r){return t&&(r.setAttribute("data-type",this.__calloutType),jg(this.__backgroundColor,this.__calloutType)?r.style.backgroundColor=this.__backgroundColor:r.style.backgroundColor=""),!1}static importDOM(){return{div:t=>t.className!==Kf.calloutWrapper?null:{conversion:Lk,priority:2}}}static importJSON(t){return Ga(t.backgroundColor,t.calloutType)}setBackgroundColor(t){const r=this.getWritable();r.__backgroundColor=t}setType(t="default"){const r=this.getWritable();r.__calloutType=t}exportJSON(){return{...super.exportJSON(),type:"callout-wrapper",backgroundColor:this.__backgroundColor,calloutType:this.__calloutType,version:1}}}function Ga(e="",n="default"){return new jo(e,n)}function ao(e){return e instanceof jo}function uA({label:e,checked:n,onSelect:t}){return i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1,width:"100%",minWidth:0}},bg:n?"light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5))":void 0,onClick:t,children:i.jsxs(v.Group,{justify:"space-between",wrap:"nowrap",w:"100%",align:"center",children:[i.jsx(v.Text,{size:"sm",children:e}),n?i.jsx(te,{icon:tr,size:16,color:"var(--mantine-primary-color-filled)"}):null]})})}function Va({size:e="sm",w:n=150,comboboxProps:t,rightSection:r,renderOption:o,searchable:s,data:l,value:c,defaultValue:d,placeholder:f,onChange:h,inputClassName:g,...C}){var ae;const{t:y}=Ze.useTranslation(),{onClick:b,type:x,onCopy:w,onCut:k,onPaste:T,classNames:D,allowDeselect:N,...L}=C,M=[typeof D=="object"&&D&&"input"in D?D.input:void 0,g].filter(Boolean).join(" ")||void 0,O=M?{...typeof D=="object"&&D?D:{},input:M}:D,[I,F]=m.useState(""),_=v.useCombobox({onDropdownClose:()=>{_.resetSelectedOption(),_.focusTarget(),F("")},onDropdownOpen:()=>{_.focusSearchInput()}}),R=m.useMemo(()=>(Array.isArray(l)?l:[]).map(pe=>typeof pe=="string"?{value:pe,label:pe}:pe),[l]),j=c??d??null,K=!s||!I?R:R.filter(pe=>pe.label.toLowerCase().includes(I.toLowerCase().trim())),W=((ae=R.find(pe=>pe.value===j))==null?void 0:ae.label)??"",B=(pe,Le,Se)=>o?o({option:{value:pe,label:Le},checked:Se}):i.jsxs(v.Group,{justify:"space-between",wrap:"nowrap",w:"100%",align:"center",children:[i.jsx(v.Text,{size:"sm",children:Le}),Se?i.jsx(te,{icon:tr,size:16,color:"var(--mantine-primary-color-filled)"}):null]}),{width:H,...Q}=t||{},ee=H??250;return i.jsxs(v.Combobox,{store:_,withinPortal:!0,onOptionSubmit:pe=>{const Le=R.find(Se=>Se.value===pe)??{value:pe,label:pe};h==null||h(pe,Le),_.closeDropdown()},width:ee,...Q,children:[i.jsx(v.Combobox.Target,{children:i.jsx(v.InputBase,{component:"button",size:e,w:n,classNames:O,pointer:!0,rightSection:r??i.jsx("span",{className:"editor-select__chevron",children:i.jsx(te,{icon:Ds,size:16})}),rightSectionPointerEvents:"none",onClick:pe=>{b==null||b(pe),_.toggleDropdown()},...L,children:W})}),i.jsxs(v.Combobox.Dropdown,{children:[s&&i.jsx(v.Combobox.Search,{value:I,onChange:pe=>F(pe.currentTarget.value),placeholder:f,size:e,leftSectionWidth:40,leftSection:i.jsx(te,{icon:Jh,size:16,color:"var(--mantine-color-gray-6)"}),leftSectionPointerEvents:"none",classNames:{input:"editor-select__search-input"}}),i.jsx(v.Combobox.Options,{className:["editor-select__combobox-options",s?"editor-select__combobox-options--after-search":""].filter(Boolean).join(" "),style:{maxHeight:200,overflowY:"auto"},children:K.length>0?K.map(pe=>{const Le=pe.value===j;return i.jsx(v.Combobox.Option,{value:pe.value,className:Le?"editor-select__combobox-option--selected":void 0,children:B(pe.value,pe.label,Le)},pe.value)}):i.jsx(v.Combobox.Empty,{children:y("editor.menu.main.code.languageSearchNoResults")})})]})]})}function Nk({onCollapsibleCode:e,copyToClipboard:n,onDuplicateCodeBlock:t,hasCodeContent:r,onRemoveCodeBlock:o,showExpandButton:s,isCollapsed:l}){const{t:c}=Ze.useTranslation();return i.jsx("div",{className:"code-block-header-menu__burger",children:i.jsxs(v.Menu,{shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},children:[i.jsx(v.Menu.Target,{children:i.jsx(v.Button,{radius:"sm",h:25,px:5,size:"xs",variant:"default",children:i.jsx(ye.IconMenu2,{size:18})})}),i.jsxs(v.Menu.Dropdown,{children:[i.jsx(v.Menu.Item,{rightSection:i.jsx(te,{size:16,color:"var(--mantine-color-gray-6)",icon:r?hu:uo}),onClick:()=>{r?n():t()},children:i.jsx(v.Text,{size:"12px",children:c(r?"editor.contextMenu.copy":"editor.contextMenu.duplicate")})}),s&&i.jsx(v.Menu.Item,{onClick:e,rightSection:l?i.jsx(te,{size:16,color:"var(--mantine-color-gray-6)",icon:zf}):i.jsx(te,{size:16,color:"var(--mantine-color-gray-6)",icon:Wf}),children:i.jsx(v.Text,{size:"12px",children:c(l?"editor.menu.main.code.collapsible.expand":"editor.menu.main.code.collapsible.hidden")})}),i.jsx(v.Menu.Item,{rightSection:i.jsx(te,{size:16,color:"var(--mantine-color-red-outline)",icon:jn}),onClick:o,children:i.jsx(v.Text,{size:"12px",children:c("editor.actions.delete")})})]})]})})}const Ci={json:"JSON",...Ut.CODE_LANGUAGE_FRIENDLY_NAME_MAP};function jk({editor:e,headerKey:n}){const{t}=Ze.useTranslation(),{disable:r}=m.useContext(ut),[o,{open:s,close:l}]=Sn.useDisclosure(!1),[c,{open:d,close:f}]=Sn.useDisclosure(!1),[h,g]=m.useState(!1),[C,y]=m.useState(""),[b,x]=m.useState(!1),[w,k]=m.useState(""),T=m.useMemo(()=>Object.entries(Ci).map(([W,B])=>({value:W,label:B})),[]),D=m.useMemo(()=>{const W=w.toLowerCase().trim();return W?T.filter(B=>B.label.toLowerCase().includes(W)):T},[T,w]),N=()=>{const W=p.$getNodeByKey(n);if(!W)return null;const B=W.getNextSibling();return gn(B)?B:null},L=m.useCallback(()=>{const W=p.$getNodeByKey(n);if(!W)return null;const B=W.getNextSibling();return gn(B)?B:null},[n]),E=cA(e,L);m.useEffect(()=>{e.getEditorState().read(()=>{const W=N();if(!W)return;const B=W.getLanguage()||"plain",H=Ut.CODE_LANGUAGE_MAP[B]||B;y(H),g(W.__isCollapsed)})},[e,n]),m.useEffect(()=>{const W=()=>{let H=null;if(e.getEditorState().read(()=>{const ee=N();ee&&(H=ee.getKey())}),h){x(!0);return}if(!H){x(!1);return}const Q=e.getElementByKey(H);if(!Q){x(!1);return}x(Q.offsetHeight>300)};W();const B=e.registerUpdateListener(()=>{W()});return window.addEventListener("resize",W),()=>{B(),window.removeEventListener("resize",W)}},[e,n,h]);const M=W=>{W&&e.update(()=>{const B=N();if(!B)return;B.setLanguage(W),B.selectStart();const H=B.getLanguage()||"plain",Q=Ut.CODE_LANGUAGE_MAP[H]||H;y(Q)})},O=()=>{e.update(()=>{const W=N();W&&(W.toggleCodeState(),g(B=>!B))})},I=()=>{l(),O()},F=()=>{e.update(()=>{const W=p.$getNodeByKey(n),B=W==null?void 0:W.getParent();as(B)&&B.remove()})},_=()=>{l(),F()},R=async()=>{let W="";if(e.getEditorState().read(()=>{const B=N();B&&(W=B.getTextContent())}),!W.trim())return!1;try{return await navigator.clipboard.writeText(W),!0}catch(B){return console.error("Failed to copy code block:",B),!1}},j=()=>{e.update(()=>{const W=p.$getNodeByKey(n),B=W==null?void 0:W.getParent();as(B)&&B.insertAfter(Nr(B))})},K=()=>{l(),j()};return Nt?i.jsxs(i.Fragment,{children:[i.jsxs(v.Group,{className:"code-block-header-mobile__row",wrap:"nowrap",justify:"space-between",align:"center",gap:"xs",flex:1,miw:0,children:[i.jsx(v.Box,{className:"code-block-header-mobile__select-host",children:i.jsx(v.InputBase,{component:"button",type:"button",size:"sm",w:120,classNames:{input:"editor-select__input--codeblock"},rightSection:i.jsx(te,{icon:Ds,size:16}),rightSectionPointerEvents:"none",onClick:()=>{l(),d()},children:Ci[C]??C})}),!r&&i.jsx(Cn,{label:t("editor.toolbar.more"),icon:qC,iconColor:"var(--mantine-color-gray-text)","aria-label":t("editor.toolbar.more"),onClick:()=>{f(),s()}})]}),i.jsx(En,{opened:!r&&c,onClose:()=>{f(),k("")},title:t("editor.menu.main.code.languageDrawerTitle"),children:i.jsxs(v.Stack,{gap:"sm",p:0,children:[i.jsx(v.TextInput,{value:w,onChange:W=>k(W.currentTarget.value),placeholder:t("editor.menu.main.code.languageSearchPlaceholder"),size:"sm",classNames:{input:"code-block-language-drawer__search-input editor-select__search-input"}}),i.jsx(v.Stack,{gap:4,children:D.length===0?i.jsx(v.Text,{size:"sm",c:"dimmed",py:"xs",children:t("editor.menu.main.code.languageSearchNoResults")}):D.map(W=>{const B=W.value===C;return i.jsx(uA,{label:W.label,checked:B,onSelect:()=>{M(W.value),f(),k("")}},W.value)})})]})}),i.jsx(En,{opened:!r&&o,onClose:l,title:t("editor.menu.main.code.mobileActions"),children:i.jsxs(v.Stack,{gap:4,p:0,children:[b&&i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:I,leftSection:i.jsx(te,{icon:h?zf:Wf,size:16,color:"var(--mantine-color-dimmed)"}),children:t(h?"editor.menu.main.code.drawer.expand":"editor.menu.main.code.drawer.collapse")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:K,leftSection:i.jsx(te,{icon:uo,size:16,color:"var(--mantine-color-dimmed)"}),children:t("editor.contextMenu.duplicate")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:_,leftSection:i.jsx(te,{icon:jn,size:16,color:"var(--mantine-color-red-6)"}),children:t("editor.actions.delete")})]})})]}):i.jsxs(i.Fragment,{children:[i.jsx(Va,{data:T,value:C,size:"sm",rightSectionWidth:32,searchable:!0,w:120,placeholder:t("editor.menu.main.code.languageSearchPlaceholder"),onChange:M,disabled:r,classNames:{wrapper:"editor-select__wrapper--codeblock"},inputClassName:"editor-select__input--codeblock"}),!r&&i.jsxs("div",{className:"code-block-header-menu__main",children:[i.jsxs("div",{className:"code-block-header-menu__actions",children:[i.jsx(v.Tooltip,{label:t("editor.menu.main.code.exitCommandText"),children:i.jsx(v.Text,{size:"xs",c:"dimmed",children:"(Shift+Enter)"})}),b&&i.jsx(Cn,{className:"header-menu__action-icon","aria-label":t(h?"editor.menu.main.code.drawer.expand":"editor.menu.main.code.drawer.collapse"),label:t(h?"editor.menu.main.code.drawer.expand":"editor.menu.main.code.drawer.collapse"),onClick:O,icon:h?zf:Wf,iconColor:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-gray-4))"}),i.jsx(e1,{isEmpty:!E,copyToClipboard:R,onDuplicate:j,tooltipCopy:t("editor.contextMenu.copy"),tooltipDuplicate:t("editor.contextMenu.duplicate")}),i.jsx(fs,{label:t("editor.actions.delete"),ariaLabel:"remove-code-block",onClick:F})]}),i.jsx(Nk,{onCollapsibleCode:O,copyToClipboard:R,onDuplicateCodeBlock:j,hasCodeContent:E,onRemoveCodeBlock:F,showExpandButton:b,isCollapsed:h})]})]})}const sf=new Map;class qn extends Ut.CodeNode{constructor(t=!1,r="plain",o){super(r,o);Me(this,"__isCollapsed");this.__isCollapsed=t}static getType(){return"extend-code"}static clone(t){return new qn(t.__isCollapsed,t.getLanguage(),t.__key)}static importJSON(t){const{isCollapsed:r=!0,language:o=null}=t,s=new qn(r,o,t.key);return s.setLanguage(t.language||""),s}createDOM(t,r){const o=document.createElement("code");o.classList.add("dsd__theme__code"),o.setAttribute("spellcheck","false"),o.setAttribute("data-language",String(this.__language)),o.setAttribute("data-highlight-language",String(this.__language)),this.__isCollapsed?(o.classList.add(t.theme.codeCollapsed),o.setAttribute("data-collapsed",String(this.__isCollapsed))):o.setAttribute("data-collapsed","false");const s=Ci[this.__language||"plain"]||this.__language;return o.setAttribute("data-name-language",String(s)),setTimeout(()=>{sf.set(this.__key,o.getAttribute("data-gutter")||"")},0),o}updateDOM(t,r,o){if(this.__isCollapsed!==t.__isCollapsed)return this.__isCollapsed?(r.classList.add(Lr.codeCollapsed),r.setAttribute("data-collapsed","true")):(r.classList.remove(Lr.codeCollapsed),r.setAttribute("data-collapsed","false")),!1;if(this.__language!==t.__language){const s=Ci[this.__language||"plain"]||this.__language;r.setAttribute("data-name-language",String(s))}return setTimeout(()=>{sf.set(this.__key,r.getAttribute("data-gutter")||"")},0),super.updateDOM(t,r,o)}exportDOM(t){var l;const r=document.createElement("pre");be.addClassNamesToElement(r,t._config.theme.code,(l=t._config.theme.ltr)==null?void 0:l[0]),r.setAttribute("spellcheck","false"),r.setAttribute("data-language",String(this.__language)||"plain"),r.setAttribute("data-highlight-language",String(this.__language)||"plain");const o=Ci[this.__language||"plain"]||this.__language;r.setAttribute("data-name-language",String(o)),r.setAttribute("data-collapsed",String(this.__isCollapsed)),this.__isCollapsed&&r.classList.add(t._config.theme.codeCollapsed);const s=sf.get(this.__key);return r.setAttribute("data-gutter",s||"1"),{element:r}}static importDOM(){return{...super.importDOM(),pre:r=>{const o=r.getAttribute("data-collapsed")==="true",s=r.getAttribute("data-language")||"";return r.hasAttribute("data-collapsed")?{conversion:()=>({node:new qn(o,s)}),priority:1}:null}}}exportJSON(){return{...super.exportJSON(),isCollapsed:this.__isCollapsed,language:this.getLanguage(),type:"extend-code",version:1}}toggleCodeState(){const t=this.getWritable();return t.__isCollapsed=!this.__isCollapsed}insertNewAfter(t,r=!0){const{anchor:o,focus:s}=t,c=(o.isBefore(s)?o:s).getNode();if(p.$isTextNode(c)){let d=Rk(c);const f=[];for(;;)if(p.$isTabNode(d))f.push(p.$createTabNode()),d=d.getNextSibling();else if(Ut.$isCodeHighlightNode(d)){let w=0;const k=d.getTextContent(),T=d.getTextContentSize();for(;w<T&&k[w]===" ";)w++;if(w!==0&&f.push(p.$applyNodeReplacement(new Ut.CodeHighlightNode(" ".repeat(w)))),w!==T)break;d=d.getNextSibling()}else break;const h=c.splitText(o.offset)[0],g=o.offset===0?0:1,C=h.getIndexWithinParent()+g,y=c.getParentOrThrow(),b=[p.$createLineBreakNode(),...f];y.splice(C,0,b);const x=f[f.length-1];x?x.select():o.offset===0?h.selectPrevious():h.getNextSibling().selectNext(0,0)}if(gn(c)){const{offset:d}=t.anchor;c.splice(d,0,[p.$createLineBreakNode()]),c.select(d+1,d+1)}return null}}function Uf(e=!1){return p.$applyNodeReplacement(new qn(e))}function gn(e){return e instanceof qn}function Rk(e){let n=e,t=e;for(;Ut.$isCodeHighlightNode(t)||p.$isTabNode(t);)n=t,t=t.getPreviousSibling();return n}function Qt(e){const n=p.$getSelection();if(p.$isRangeSelection(n)){const r=n.anchor.getNode();if(r!==null){const o=r.getParent();return e?o:r}}return null}function Ik(e){e.update(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)){const t=n.getNodes();let r=null,o=null;if(t.forEach((s,l)=>{l===0&&(r=s.getParent()),l===t.length-1&&(o=s.getParent())}),r&&o){const s=p.$getSelection();p.$isRangeSelection(s)&&(r.isAttached()&&o.isAttached()?_n(r)&&_n(o)?s.setTextNodeRange(r,0,o,o.getTextContentSize()):(s.anchor.set(r.getKey(),0,"element"),s.focus.set(o.getKey(),o.getChildrenSize(),"element")):console.error("Error: One of the nodes is not attached."))}}})}const gu=(e,n)=>{e.update(()=>{if(typeof n=="string"){const t=p.$getNodeByKey(n);t&&t.remove();return}n&&n.remove()})};function Dk(e,n){n.update(()=>{let t=p.$createRangeSelection();e.getParent()&&(t.anchor.set(e.getKey(),0,"element"),t.focus.set(e.getKey(),0,"element"),p.$setSelection(t))})}function Ok(){const e=p.$getSelection();if(p.$isRangeSelection(e)){const n=e.anchor,t=e.focus,r=t.getNode(),o=gn(r)?r.__size:r.getTextContentSize(),s=n.offset===0,l=t.offset===o;if(s&&l)return!0}return!1}function Nr(e,n){const t=p.$copyNode(e),r=[[e,t]];let o;for(;(o=r.length)>0;)for(let s=0;s<o;s++){const l=r.shift();if(l!==void 0){const[c,d]=l;if(p.$isElementNode(c)&&p.$isElementNode(d)){const f=c.getChildren();for(const h of f){if(n&&h.is(n))continue;const g=p.$copyNode(h);_n(h)&&_n(g)&&(g.setFormat(h.__format),g.setStyle(h.__style)),d.append(g),r.push([h,g])}}}}return t}function Pk(e,n,t=3){if(!e)return null;let r=e,o=0;for(;r&&o<t;){if(n(r))return r;if(r.__type==="root")break;r=r.getParent(),o++}return null}function vi(e,n,t){var o;const r=t||{root:!0};if(e){let s=e.getParent();if(r[s==null?void 0:s.__type]){const l=n.getElementByKey(e.__key),c=Pk(s,hs);if(c&&(c.getFirstChild()===e.getTopLevelElement()||c.getFirstChild()===((o=e.getTopLevelElement())==null?void 0:o.getParent()))){const f=c.getParent(),h=f?n.getElementByKey(f.__key):null;if(h)return{htmlElement:h,lexicalNode:p.$getNearestNodeFromDOMNode(h)}}return{htmlElement:l,lexicalNode:e}}return vi(s,n,r)}return{htmlElement:null,lexicalNode:null}}function Rg(e,n,t,r){var o;if(e)if((e==null?void 0:e.__type)==="root"||(e==null?void 0:e.__type)==="layout-item"||(e==null?void 0:e.__type)==="callout-wrapper"||(e==null?void 0:e.__type)==="collapsible-content"){const s=(r==null?void 0:r.clientY)||0,{left:l}=((o=n.getElementByKey(e.__key))==null?void 0:o.getBoundingClientRect())||{left:0},{paddingLeft:c}=window.getComputedStyle(r==null?void 0:r.target),d=document.elementFromPoint(l+parseFloat(c)+10,s),f=p.$getNearestNodeFromDOMNode(d||document.body);return f?vi(f,n,t):{htmlElement:null,lexicalNode:null}}else return vi(e,n,t);return{htmlElement:null,lexicalNode:null}}const ss=e=>{e.update(()=>{p.$getSelection()!==null&&p.$setSelection(null)})},Hf=()=>{const e=p.$getRoot(),n=e==null?void 0:e.getFirstChild();return e.getChildren().length>1?!1:n&&p.$isElementNode(n)&&n.isEmpty()&&!gn(n)},dA=e=>{e.update(()=>{const n=p.$getRoot(),t=p.$createParagraphNode(),r=p.$getSelection();p.$isRangeSelection(r)&&(r.format=0,r.setStyle("")),n.append(t).selectEnd()})},es=p.createCommand(),Yf=p.createCommand(),Cu=p.createCommand(),Zf=p.createCommand(),Au=p.createCommand(),fA=p.createCommand(),hA=p.createCommand(),pA=p.createCommand(),Da=p.createCommand(),zc=p.createCommand(),mA=p.createCommand();function Tc(e){for(;e;){if(wu(e))return e;const n=e.getParent();if(!n)break;e=n}return null}const Bk=e=>{e.update(()=>{let n=p.$getSelection();if(!n)return;if(p.$isNodeSelection(n)&&(n=n.clone(),n.dirty=!0),!p.$isRangeSelection(n)||n.isCollapsed()){an.$setBlocksType(n,()=>Pa(()=>{const r=Na("",!1);return setTimeout(()=>{e.dispatchCommand(zc,r.getKey())},0),r})());return}const t=Pa(()=>{const r=Na("",!1);return setTimeout(()=>{e.dispatchCommand(zc,r.getKey())},0),r})();n.insertNodes([t,p.$createParagraphNode()])})};function _k({editor:e,headerKey:n}){const{t}=Ze.useTranslation(),{disable:r}=m.useContext(ut),[o,{open:s,close:l}]=Sn.useDisclosure(!1),c=m.useCallback(()=>{const x=p.$getNodeByKey(n);if(!x)return null;const w=Tc(x);return w?w.getChildren().find(Do)??null:null},[n]),d=m.useCallback(()=>c(),[c]),f=cA(e,d),h=async()=>{let x="";e.getEditorState().read(()=>{const k=c();k&&(x=k.getEquation())});const w=x.trim();if(!w)return!1;try{return await navigator.clipboard.writeText(w),!0}catch{return!1}},g=m.useCallback(()=>{e.update(()=>{const x=p.$getNodeByKey(n);if(!x)return;const w=Tc(x);if(!w||!wu(w))return;const k=p.$createParagraphNode();w.insertAfter(k),w.remove(),k.selectStart()})},[e,n]),C=m.useCallback(()=>{e.update(()=>{const x=p.$getNodeByKey(n);if(!x)return;const w=Tc(x);w&&w.insertAfter(Nr(w))})},[e,n]),y=m.useCallback(()=>{l(),C()},[l,C]),b=m.useCallback(()=>{l(),g()},[l,g]);return Nt?i.jsxs(i.Fragment,{children:[i.jsx(v.Text,{size:"sm",fw:500,ml:10,children:t("editor.menu.other.equation.overlayTitle")}),!r&&i.jsx(Cn,{label:t("editor.toolbar.more"),icon:qC,iconColor:"var(--mantine-color-gray-text)","aria-label":t("editor.toolbar.more"),onClick:s}),i.jsx(En,{opened:o,onClose:l,title:t("editor.menu.other.equation.mobileActions"),children:i.jsxs(v.Stack,{gap:4,p:0,children:[i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:y,leftSection:i.jsx(te,{icon:uo,size:16,color:"var(--mantine-color-dimmed)"}),children:t("editor.contextMenu.duplicate")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:b,leftSection:i.jsx(te,{icon:jn,size:16,color:"var(--mantine-color-red-6)"}),children:t("editor.actions.delete")})]})})]}):i.jsxs(i.Fragment,{children:[i.jsx(v.Text,{size:"sm",fw:500,ml:10,children:t("editor.menu.other.equation.overlayTitle")}),!r&&i.jsxs(v.Group,{gap:4,children:[i.jsx(e1,{isEmpty:!f,copyToClipboard:h,onDuplicate:C,tooltipCopy:t("editor.contextMenu.copy"),tooltipDuplicate:t("editor.contextMenu.duplicate")}),i.jsx(fs,{label:t("editor.actions.delete"),ariaLabel:"remove-equation-block",onClick:g})]})]})}function Fk(){const[e,n]=m.useState(!1),t=()=>n(!0),r=()=>n(!1);return m.useEffect(()=>{const o=s=>{e&&(s.preventDefault(),s.returnValue="")};return e&&window.addEventListener("beforeunload",o),()=>{e&&window.removeEventListener("beforeunload",o)}},[e]),{startLoading:t,stopLoading:r}}function Wk({size:e=20,color:n="currentColor"}){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",focusable:"false",children:[i.jsx("path",{d:"M13.5 8C13.5 7.79302 13.4883 7.58864 13.4661 7.38802C13.436 7.11376 13.634 6.86706 13.9082 6.83659C14.1827 6.80624 14.4299 7.00418 14.4603 7.27865C14.4865 7.51568 14.5 7.7564 14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C5.95787 14.5 4.13548 13.5575 2.94466 12.0859C2.77102 11.8713 2.80424 11.5565 3.01888 11.3828C3.23354 11.2092 3.54832 11.2424 3.72201 11.457C4.73113 12.7041 6.27244 13.5 8 13.5C11.0376 13.5 13.5 11.0376 13.5 8ZM1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C10.0422 1.5 11.8645 2.44246 13.0553 3.91406C13.229 4.12872 13.1958 4.4435 12.9811 4.61719C12.7665 4.79083 12.4517 4.75761 12.278 4.54297C11.2688 3.2959 9.72758 2.5 8 2.5C4.96244 2.5 2.5 4.96244 2.5 8C2.5 8.20695 2.51167 8.41133 2.53385 8.61198C2.56402 8.88625 2.36604 9.13295 2.0918 9.16341C1.81733 9.19376 1.57006 8.99582 1.53971 8.72135C1.51352 8.48435 1.5 8.24363 1.5 8Z",fill:n}),i.jsx("path",{d:"M12.8337 2.66667V2C12.8337 1.72386 13.0575 1.5 13.3337 1.5C13.6098 1.5 13.8337 1.72386 13.8337 2V2.66667C13.8337 3.12394 13.8348 3.51736 13.7926 3.83073C13.7486 4.15842 13.649 4.47242 13.3942 4.72721C13.1394 4.98198 12.8254 5.08157 12.4977 5.12565C12.1843 5.16778 11.7909 5.16667 11.3337 5.16667H10.667C10.3908 5.16667 10.167 4.94281 10.167 4.66667C10.167 4.39052 10.3908 4.16667 10.667 4.16667H11.3337C11.8191 4.16667 12.133 4.16585 12.3643 4.13477C12.5811 4.10562 12.6491 4.05826 12.6872 4.02018C12.7252 3.98212 12.7726 3.91414 12.8018 3.69727C12.8328 3.46602 12.8337 3.15214 12.8337 2.66667Z",fill:n}),i.jsx("path",{d:"M2.167 14V13.3334C2.167 12.8761 2.16588 12.4827 2.20801 12.1693C2.25209 11.8416 2.35168 11.5276 2.60645 11.2728C2.86124 11.0181 3.17524 10.9185 3.50293 10.8744C3.8163 10.8323 4.20973 10.8334 4.667 10.8334H5.33366C5.6098 10.8334 5.83366 11.0572 5.83366 11.3334C5.83366 11.6095 5.6098 11.8334 5.33366 11.8334H4.667C4.18152 11.8334 3.86764 11.8342 3.6364 11.8653C3.41952 11.8944 3.35154 11.9418 3.31348 11.9799C3.2754 12.018 3.22804 12.086 3.1989 12.3028C3.16781 12.534 3.167 12.8479 3.167 13.3334V14C3.167 14.2762 2.94314 14.5 2.667 14.5C2.39085 14.5 2.167 14.2762 2.167 14Z",fill:n})]})}function qa({onPause:e,onResume:n,onCancel:t,onRetry:r,isPaused:o=!1,showRetry:s=!1}){const{t:l}=Ze.useTranslation();return i.jsxs("div",{className:"upload-actions",children:[(e||n)&&i.jsx(v.Tooltip,{label:l(o?"editor.video.actions.resume":"editor.video.actions.pause"),children:i.jsx(v.ActionIcon,{variant:"light",color:o?"blue":"gray",size:28,radius:"md",onClick:o?n:e,children:o?i.jsx(te,{icon:JC,size:16,color:"currentColor"}):i.jsx(te,{icon:QC,size:16,color:"currentColor"})})}),s&&r&&i.jsx(v.Tooltip,{label:l("editor.video.actions.retry"),children:i.jsx(v.ActionIcon,{variant:"light",color:"gray",size:28,radius:"md",onClick:r,children:i.jsx(Wk,{size:16,color:"currentColor"})})}),t&&i.jsx(v.Tooltip,{label:l("editor.video.actions.cancel"),children:i.jsx(v.ActionIcon,{variant:"light",color:"red",size:28,radius:"md",onClick:t,children:i.jsx(te,{icon:qh,size:16,color:"currentColor"})})})]})}function bu({progress:e,showSpeed:n=!0,showRemaining:t=!1,showInfo:r=!0,isPaused:o=!1}){const{t:s}=Ze.useTranslation(),l=h=>{const g=Math.max(0,h);return g===0?"0 MB":`${(g/(1024*1024)).toFixed(2)} MB`},c=h=>{const g=Math.max(0,h);return g===0?"0.00 MB/s":`${(g/(1024*1024)).toFixed(2)} MB/s`},d=h=>{if(h<=0)return"0s";if(h<60)return`${h}s`;const g=Math.floor(h/60),C=h%60;return`${g}m ${C}s`},f=Math.min(100,Math.max(0,Math.round(e.percent)));return i.jsxs("div",{className:"upload-progress-container",children:[i.jsxs("div",{className:"upload-progress-header",children:[i.jsxs(v.Text,{size:"sm",fw:400,c:"var(--mantine-color-bright)",children:[f,"%"]}),o?i.jsx(v.Text,{size:"sm",c:"var(--mantine-color-text)",children:s("editor.video.actions.pause")}):t&&e.remaining>0&&i.jsxs(v.Text,{size:"sm",c:"var(--mantine-color-dimmed)",children:[s("editor.video.upload.remaining"),i.jsxs(v.Text,{component:"span",c:"var(--mantine-color-text)",children:[" ",d(e.remaining)]})]})]}),i.jsx(v.Progress,{value:f,size:6,radius:"md"}),r&&i.jsxs("div",{className:"upload-progress-info",children:[i.jsxs(v.Text,{size:"xs",c:"dimmed",children:[s("editor.video.upload.progress"),i.jsxs(v.Text,{component:"span",size:"xs",c:"var(--mantine-color-text)",inherit:!0,children:[" ",l(e.uploaded)," / ",l(e.total)]})]}),n&&!o&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"upload-progress-dot"}),i.jsx(v.Text,{size:"xs",c:"var(--mantine-color-text)",children:c(e.speed||0)})]})]})]})}function Kc({isPaused:e=!1}){const{t:n}=Ze.useTranslation();return i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center"},children:[i.jsxs("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e?void 0:"video-upload-spinner",children:[i.jsx("circle",{cx:16,cy:16,r:14,stroke:"var(--mantine-color-gray-light)",strokeWidth:2.5}),!e&&i.jsx("circle",{cx:16,cy:16,r:14,stroke:"var(--mantine-color-bright)",strokeWidth:2.5,strokeLinecap:"round",strokeDasharray:"66 22"})]}),i.jsx(v.Text,{size:"md",fw:500,c:"var(--mantine-color-bright)",children:n("editor.video.upload.uploading")})]})}function zk({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){return e==null?i.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:i.jsx(v.Stack,{align:"center",children:i.jsx(Kc,{isPaused:o})})}):i.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:i.jsxs(v.Stack,{gap:"lg",align:"center",children:[i.jsx(Kc,{isPaused:o}),i.jsx(v.Box,{w:"100%",children:i.jsx(bu,{progress:e,showSpeed:!0,showRemaining:!0,isPaused:o})}),i.jsx(qa,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})})}const Kk=8*1024*1024,Uk=3e4,Ig=3,Hk=3,Yk=15,Zk=3e3,Gk=20,Dg=.15;function af(e,n){return new Promise(t=>{if(n!=null&&n.aborted){t();return}const r=setTimeout(t,e);n==null||n.addEventListener("abort",()=>{clearTimeout(r),t()},{once:!0})})}function gA({api:e,parentId:n,parentType:t="PAGE",onComplete:r,onError:o}){const[s,l]=m.useState({percent:0,uploaded:0,total:0,speed:0,remaining:0}),[c,d]=m.useState(!1),[f,h]=m.useState(!1),[g,C]=m.useState(null),y=m.useRef({uploadId:null,currentOffset:0,file:null,signal:null,controller:null,lastUploadAckAt:0,uploadStallReported:!1,lastTime:0,lastBytes:0,startedAt:0,isPaused:!1,isPausing:!1,currentXhr:null,chunkAbortController:null,uploadSession:0,cancelled:!1}),b=m.useRef(null),x=m.useRef([]),w=m.useRef(0),k=m.useRef(0),T=m.useRef(null),D=m.useRef(r);D.current=r;const N=m.useRef(o);N.current=o;const L=m.useRef(e);L.current=e;const E=m.useCallback((j,K,W)=>{const B=y.current;if(B.lastTime===0)return B.lastTime=W,B.lastBytes=j,x.current=[],T.current=null,w.current=0,{speed:0,remaining:0};const H=(W-B.lastTime)/1e3,Q=j-B.lastBytes;if(Q<0)return B.lastBytes=j,B.lastTime=W,{speed:T.current??0,remaining:w.current};if(H>0&&!B.isPaused){const ee=Math.max(0,Q/H);x.current.push(ee),x.current.length>Gk&&x.current.shift(),T.current===null?T.current=ee:T.current=Dg*ee+(1-Dg)*T.current;const ae=T.current;B.lastTime=W,B.lastBytes=j;const pe=K>j&&ae>0?Math.ceil((K-j)/ae):0,Le=w.current;let Se;return Le===0||pe<=Le?Se=pe:Se=Math.min(pe,Le+1),w.current=Se,{speed:ae,remaining:Se}}if(B.isPaused&&x.current.length>0){const ee=x.current[x.current.length-1],ae=K>j&&ee>0?Math.ceil((K-j)/ee):0;return{speed:ee,remaining:ae}}return{speed:0,remaining:0}},[]),M=m.useCallback((j,K)=>{const W=Date.now(),{speed:B,remaining:H}=E(j,K,W),Q=K>0?Math.floor(j*100/K):0,ee=Math.max(Q,k.current);k.current=ee,l({percent:ee,uploaded:Math.max(j,K*ee/100),total:K,speed:B,remaining:H})},[E]),O=m.useCallback(async(j,K,W=0)=>{var Se,we,de,ne,Z,ce,le;const B=y.current,H=j.size;let Q=Math.max(0,W);B.lastUploadAckAt=Date.now(),B.uploadStallReported=!1,B.startedAt=Date.now(),B.lastTime=0,B.lastBytes=Q,B.currentOffset=Q,x.current=[],b.current&&clearInterval(b.current),b.current=setInterval(()=>{var se;B.isPaused||B.isPausing||!((se=B.signal)!=null&&se.aborted)&&B.currentOffset<H&&M(B.currentOffset,H)},1e3);let ee=0,ae=0,pe=0,Le=!1;for(M(Q>0?Q:0,H);Q<H;){if(B.cancelled||(Se=B.signal)!=null&&Se.aborted)throw new Error("Upload cancelled");if(B.isPaused)break;if(B.isPausing){B.isPausing=!1,B.isPaused=!0,h(!0);break}const se=Date.now();!B.uploadStallReported&&se-B.lastUploadAckAt>Uk&&(B.uploadStallReported=!0);const Y=Math.min(H-1,Q+Kk-1),oe=Q,$=new AbortController;B.chunkAbortController=$;const J=()=>$.abort();(we=B.signal)!=null&&we.aborted||B.cancelled?$.abort():B.signal&&B.signal.addEventListener("abort",J,{once:!0});try{const q=await L.current.uploadChunk(K,j,Q,Y,H,$.signal,re=>{if(B.isPaused||B.isPausing)return;const he=oe+re;he<=Y+1&&(B.currentOffset=he)},re=>{B.currentXhr=re});if(B.chunkAbortController=null,B.currentXhr=null,(de=B.signal)==null||de.removeEventListener("abort",J),q.expectedOffset!=null){if(ee++,ee>=Ig)throw{status:409,statusText:"Conflict",data:{message:"Too many consecutive offset conflicts"}};Q=q.expectedOffset;continue}if(ee=0,ae=0,Le=!0,Q=q.nextOffset!=null?q.nextOffset:Y+1,Q<H&&await af(500,B.signal??void 0),B.currentOffset=Q,B.chunkAbortController=null,B.lastUploadAckAt=Date.now(),B.uploadStallReported=!1,!B.isPaused&&!B.isPausing&&M(Q,H),B.isPausing){B.isPausing=!1,B.isPaused=!0,h(!0);break}}catch(q){if(B.currentXhr=null,B.chunkAbortController=null,(ne=B.signal)==null||ne.removeEventListener("abort",J),B.isPaused||B.isPausing){B.isPausing=!1,B.isPaused=!0;break}if((q==null?void 0:q.name)==="AbortError"||(Z=B.signal)!=null&&Z.aborted||B.cancelled)throw new Error("Upload cancelled");if((q==null?void 0:q.status)===409&&((ce=q==null?void 0:q.data)==null?void 0:ce.expectedOffset)!=null){if(ee++,ee>=Ig)throw q;Q=q.data.expectedOffset;continue}if((!(q!=null&&q.status)||(q==null?void 0:q.status)===0||(q==null?void 0:q.status)===409)&&ae<Hk&&pe<Yk){ae++,pe++;const he=Zk*ae;if(await af(he,B.signal??void 0),B.cancelled||(le=B.signal)!=null&&le.aborted||B.isPaused||B.isPausing)break;try{const ke=await L.current.fetchOffset(K);if(ke.nextOffset!=null){const De=ke.nextOffset;if(De===Q&&ae>=2){await af(5e3,B.signal??void 0);const Ee=await L.current.fetchOffset(K);if(Ee.nextOffset!=null&&Ee.nextOffset>Q){Q=Ee.nextOffset,B.currentOffset=Q,ae=0;continue}}Q=De,B.currentOffset=De}}catch{}continue}throw q}}if(b.current&&(clearInterval(b.current),b.current=null),Q>=H&&!Le&&ee>0&&!B.isPaused&&!B.isPausing)throw{status:409,statusText:"Conflict",data:{message:"Upload completed via offset corrections without any successful chunk transfer"}};Q>=H?!B.isPaused&&!B.isPausing&&M(H,H):B.isPaused||B.isPausing?M(B.currentOffset,H):M(H,H)},[M]),I=m.useCallback(async j=>{var H,Q,ee;const K=y.current;(K.isPaused||K.isPausing)&&(K.isPaused=!1,K.isPausing=!1,K.cancelled=!0,K.uploadId=null),d(!0),h(!1);const W=y.current;W.uploadSession++;const B=W.uploadSession;W.isPaused=!1,W.isPausing=!1,W.cancelled=!1,W.file=j,W.currentOffset=0,W.lastTime=0,W.lastBytes=0,W.uploadStallReported=!1,k.current=0,(H=W.controller)==null||H.abort(),W.controller=new AbortController,W.signal=W.controller.signal;try{if(!n)throw new Error("Upload requires parentId");let ae=W.uploadId,pe=0;if(ae){try{const Le=await L.current.fetchOffset(ae);Le.nextOffset!=null?pe=Le.nextOffset:(ae=null,W.uploadId=null,C(null))}catch{ae=null,W.uploadId=null,C(null)}ae||(ae=(await L.current.init(j,n,t)).id,W.uploadId=ae,C(ae))}else{const Le=await L.current.init(j,n,t);ae=Le.id,W.uploadId=ae,C(ae);try{const Se=await L.current.fetchOffset(ae);Se.nextOffset!=null&&Se.nextOffset>0?pe=Se.nextOffset:Le.startOffset!=null&&(pe=Le.startOffset)}catch{Le.startOffset!=null&&(pe=Le.startOffset)}}if(!ae)throw new Error("Upload ID is missing after initialization");if(W.currentOffset=pe,W.file=j,await O(j,ae,pe),W.uploadSession!==B||W.isPaused)return;if(!ae)throw new Error("Upload ID became null after upload");d(!1),(Q=D.current)==null||Q.call(D,ae,j)}catch(ae){if(W.uploadSession!==B||W.isPaused||W.isPausing||(ae==null?void 0:ae.message)==="Upload cancelled")return;(ee=N.current)==null||ee.call(N,ae),d(!1)}},[n,t,O]),F=m.useCallback(()=>{const j=y.current;j.isPaused||j.isPausing||j.file&&j.currentOffset>=j.file.size||(j.isPausing=!0,h(!0),b.current&&(clearInterval(b.current),b.current=null),j.chunkAbortController?j.chunkAbortController.abort():(j.isPaused=!0,j.isPausing=!1))},[]),_=m.useCallback(async()=>{var K,W,B;const j=y.current;if(j.file&&j.uploadId&&j.currentOffset<(j.file.size||0)){j.uploadSession++;const H=j.uploadSession;d(!0);try{let Q=j.currentOffset;try{const ee=await L.current.fetchOffset(j.uploadId);ee.nextOffset!=null&&(Q=ee.nextOffset,j.currentOffset=Q)}catch{j.uploadSession===H&&d(!1);return}if(x.current=[],j.lastTime=0,j.lastBytes=Q,(!j.signal||j.signal.aborted)&&(j.controller=new AbortController,j.signal=j.controller.signal),h(!1),j.isPaused=!1,j.isPausing=!1,j.cancelled=!1,await O(j.file,j.uploadId,Q),j.uploadSession!==H)return;!j.isPaused&&!j.isPausing&&j.uploadId&&(d(!1),(K=D.current)==null||K.call(D,j.uploadId,j.file))}catch(Q){if(j.uploadSession!==H||j.isPaused||j.isPausing||(Q==null?void 0:Q.message)==="Upload cancelled")return;if(((Q==null?void 0:Q.status)===0||(Q==null?void 0:Q.status)===409)&&j.file&&!j.cancelled){j.uploadId=null,C(null),I(j.file);return}(W=N.current)==null||W.call(N,Q),d(!1)}}j.file&&j.uploadId&&j.currentOffset>=(j.file.size||0)&&(d(!1),(B=D.current)==null||B.call(D,j.uploadId,j.file))},[O,I]),R=m.useCallback(()=>{const j=y.current;if(j.chunkAbortController)try{j.chunkAbortController.abort()}catch{}if(j.cancelled=!0,j.controller)try{j.controller.abort()}catch{}b.current&&(clearInterval(b.current),b.current=null),d(!1),h(!1),C(null),l({percent:0,uploaded:0,total:0,speed:0,remaining:0}),j.uploadId=null,j.currentOffset=0,j.file=null,j.lastTime=0,j.lastBytes=0,j.uploadStallReported=!1,j.isPaused=!1,j.isPausing=!1,j.currentXhr=null,j.chunkAbortController=null,x.current=[],k.current=0},[]);return{uploadProgress:s,isUploading:c,isPaused:f,uploadId:g,handleUpload:I,handlePause:F,handleResume:_,handleCancel:R}}function Vk({parentId:e,parentType:n="PAGE",fileChunkUploadApi:t,onComplete:r,onError:o}){const s=m.useMemo(()=>({init:async(l,c,d)=>{var h;if(!t)throw new Error("File chunk upload API is missing from Context");const f=await t.initAttachment(l,c,d);return{id:f.attachmentId,startOffset:(h=f.status)==null?void 0:h.nextOffset}},uploadChunk:(l,c,d,f,h,g,C,y)=>t.uploadChunkWithProgress(l,c,d,f,h,g,C,y),fetchOffset:l=>t.fetchContentStatus(l)}),[t]);return gA({api:s,parentId:e,parentType:n,onComplete:r,onError:o})}function CA(e,n){const t=document.createElement("a");t.href=e,t.download=n,t.target="_blank",t.rel="noopener noreferrer",document.body.appendChild(t),t.click(),t.remove()}function qk(e,n=2){if(e===0)return"0 B";const t=1024,r=["B","KB","MB","GB","TB","PB"];if(e<t)return`${e} B`;if(e<=0)return"0 B";const o=Math.floor(Math.log(e)/Math.log(t)),s=(e/Math.pow(t,o)).toFixed(1);return`${parseFloat(s).toString()}${r[o]}`}const Qa=["link","upload"],AA={link:{labelKey:"editor.image.embed_link",fallback:"Embed link"},upload:{labelKey:"editor.image.upload",fallback:"Upload"}};function Uc(e){return e&&Qa.includes(e)?e:"upload"}function yu(e,n){const{link:t,download:r}=e,o=t===void 0?!0:t,s=r===void 0?!0:r,l=new Set;o&&l.add("link"),s&&l.add("upload");const c=Qa.filter(f=>l.has(f)),d=c.filter(f=>f==="upload"?n.hasOnUpload:!0);return{showTabKeys:c,visibleInFilePicker:d}}function Hc(e,n){return n.length?e&&n.includes(e)?e:n[0]:Qa[0]}const Qk=({children:e,inline:n=!1,nodeKey:t,popoverProps:r,defaultTabValue:o,onWriteTabToNode:s,...l})=>{const{imagePickerSettings:c,maxFileSize:d}=m.useContext(ut),{maxUploadFiles:f}=c,h=n&&!!t,{showTabKeys:g,visibleInFilePicker:C}=m.useMemo(()=>yu(c,{hasOnUpload:!!l.onUpload}),[c,l.onUpload]),y=m.useMemo(()=>Hc(o,C),[o,C]);m.useLayoutEffect(()=>{if(!h||!s)return;const x=Hc(o,C);x!==o&&s(x)},[h,o,s,C]);const b={type:"file",showTabs:g,dropZoneProps:{multiple:!1,maxFiles:f||1,maxSize:d*1024*1024,accept:{}},inline:n,tab:y,popoverProps:n?{...r,opened:!0}:r,children:n?null:e,...l};return i.jsx(Mt.FilePicker,{...b})};function Jk({src:e,editor:n,nodeKey:t,filePickerTab:r}){const{t:o}=Ze.useTranslation(),{disable:s,pageId:l,fileChunkUploadApi:c}=m.useContext(ut),d=m.useRef(null),{startLoading:f,stopLoading:h}=Fk(),g=m.useCallback(W=>{n.update(()=>{const B=p.$getNodeByKey(t);if(!B)return;Ro(B)&&B.setSrc(W);const H=B.getNextSibling();H&&p.$setSelection(H.selectNext())})},[n,t]),{uploadProgress:C,isUploading:y,isPaused:b,handleUpload:x,handlePause:w,handleResume:k,handleCancel:T}=Vk({parentId:l,parentType:"PAGE",fileChunkUploadApi:c,onComplete:(W,B)=>{h();const H=`/v1/attachments/${W}/content`,Q=new URLSearchParams({contentType:B.type||"application/octet-stream",fileSize:String(B.size),originalFileName:B.name}),ee=`${H}?${Q.toString()}`;g(ee)},onError:W=>{h(),W&&Mt.showErrorNotification({message:o("editor.gallery.errorFile")})}});m.useEffect(()=>{n.update(()=>{var H,Q;const W=p.$getNodeByKey(t),B=((Q=(H=d.current)==null?void 0:H.firstChild)==null?void 0:Q.outerHTML)||"";W instanceof is&&e&&W.setRef(B)})},[e,n,t]);const{fileSize:D,fileName:N,contentType:L}=m.useMemo(()=>{const W=new URL(window.location.href+e),B=W.searchParams.get("contentType"),H=W.searchParams.get("fileSize"),Q=W.searchParams.get("originalFileName");return{contentType:B,fileName:Q||e,fileSize:H}},[e]),E=m.useMemo(()=>Mt.getFileType(L||"application/octet-stream"),[L]),M=m.useMemo(()=>Mt.getFileIcons(E,!1,40),[E]),O=m.useMemo(()=>{var B,H;const W=(H=(B=N.split("/").pop())==null?void 0:B.split("?")[0])==null?void 0:H.trim();return W&&W.length>0?W:"file"},[N]),I=m.useCallback(()=>{T(),h()},[T,h]),F=m.useCallback(W=>{W.length&&(f(),x(W[0]))},[x,f]);m.useEffect(()=>n.registerCommand(mb,W=>e!=="upload"||y?!1:(F(W),!0),p.COMMAND_PRIORITY_LOW),[e,n,F,y]);const _=m.useCallback(W=>bA(n,t,W),[n,t]),R=W=>{W.stopPropagation(),W.preventDefault(),n.update(()=>{const B=p.$getNodeByKey(t);B&&B.remove()})},j=m.useCallback(W=>{W.stopPropagation(),W.preventDefault(),CA(e,O)},[e,O]);if(!e||e==="upload")return i.jsx(v.Box,{"data-editor-file-picker-drop-root":!0,w:"100%",children:y?i.jsx(zk,{progress:C,onPause:w,onResume:k,onCancel:I,isPaused:b}):i.jsx(Qk,{inline:!0,nodeKey:t,defaultTabValue:r,onWriteTabToNode:_,uploading:!1,onUpload:F,popoverProps:{opened:!0,position:"bottom"},onChange:W=>{let B=!1;try{const H=new URL(W);B=H.protocol==="http:"||H.protocol==="https:"}catch{B=!1}B&&g(W)}})});const K=qk(Number(D)||0,2);return i.jsx(v.Flex,{ref:d,className:s?"editor-file-attached":"editor-file-attached editor-file-attached--has-actions",align:"center",w:"100%",miw:0,children:i.jsxs(v.Flex,{className:"editor-file-attached__body",align:"stretch",gap:0,flex:1,miw:0,children:[i.jsx(v.Anchor,{className:"editor-file-attached__icon-link",href:e,target:"_blank",rel:"noopener noreferrer",underline:"never",children:i.jsx(v.Box,{className:"editor-file-attached__icon-slot",children:M})}),i.jsxs(v.Box,{className:"editor-file-attached__meta",children:[i.jsx(v.Anchor,{className:"editor-file-attached__meta-link",href:e,target:"_blank",rel:"noopener noreferrer",underline:"never",children:i.jsxs(v.Box,{className:"editor-file-attached__row",children:[i.jsx(v.Text,{component:"span",className:"editor-file-attached__name",size:"sm",fw:500,truncate:!0,c:"var(--mantine-color-bright)",children:N}),i.jsx(v.Box,{component:"span",className:"editor-file-attached__dot","aria-hidden":!0}),i.jsx(v.Text,{component:"span",className:"editor-file-attached__size",size:"xs",c:"var(--mantine-color-gray-text)",children:K})]})}),s?null:i.jsxs(v.Box,{className:"editor-file-attached__actions",children:[i.jsx(Cn,{label:o("editor.gallery.download"),icon:Uh,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.gallery.download"),onClick:j}),i.jsx(Cn,{label:o("editor.actions.delete"),icon:jn,iconColor:"var(--mantine-color-red-6)","aria-label":o("editor.actions.delete"),onClick:R})]})]})]})})}function Xk({className:e,format:n,src:t,editor:r,nodeKey:o,create:s,filePickerTab:l}){const{disable:c}=m.useContext(ut);return c&&(!t||t==="upload")?null:i.jsx(Jk,{className:e,format:n,src:t,editor:r,nodeKey:o,create:s,filePickerTab:l})}const Og=new Map,Ai="upload";function $k(e){const n=e.getAttribute("data-src"),t=parseFloat(e.getAttribute("width")??"100%"),r=parseFloat(e.getAttribute("height")??"100%"),o=e.style.justifyContent||"left",s=e.getAttribute("data-file-picker-tab");return{node:t1(n||"",t,r,o,void 0,s||void 0)}}class is extends qr.DecoratorBlockNode{constructor(t,r,o,s,l,c="left",d,f){super(r,l);Me(this,"__src");Me(this,"__create");Me(this,"__width");Me(this,"__height");Me(this,"__alignment");Me(this,"__filePickerTab");this.__src=t,this.__create=d||!1,this.__width=o||560,this.__height=s||315,this.__alignment=c||"left",this.__filePickerTab=f||Ai}static getType(){return"file"}static clone(t){return new is(t.__src,t.__format,t.__width,t.__height,t.__key,t.__alignment,t.__create,t.__filePickerTab)}static importJSON(t){const r=t1(t.src,t.width,t.height,void 0,void 0,t.filePickerTab||Ai);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"file",version:1,src:this.__src,width:this.__width,height:this.__height,...this.__filePickerTab!=null&&this.__filePickerTab!==""?{filePickerTab:this.__filePickerTab}:{}}}static importDOM(){return{span:t=>t.className==="file-container"?{conversion:$k,priority:1}:null}}createDOM(){const t=document.createElement("div");return t.className="file-container",t.style.justifyContent=this.__alignment||"left",t}updateDOM(t,r){return this.__alignment!==t.__alignment&&(r.style.justifyContent=this.__alignment||"left"),!1}exportDOM(){const t=this.__src==="upload"?"":this.__src,r=document.createElement("div"),o=document.createElement("span"),s=Og.get(this.__key)||"";return r.innerHTML=s,o.className="file-container",o.setAttribute("data-src",t),o.setAttribute("data-file-picker-tab",this.__filePickerTab),o.appendChild(r),{element:o}}decorate(t,r){const s={base:(r.theme.embedBlock||{}).base||"",focus:""};return i.jsx(Xk,{editor:t,nodeKey:this.getKey(),format:this.__format,className:s,src:this.__src,create:this.__create,filePickerTab:this.__filePickerTab})}setRef(t){Og.set(this.__key,t)}setSrc(t){const r=this.getWritable();r.__src=t}setCreated(t){const r=this.getWritable();r.__create=t}setAlignment(t){const r=this.getWritable();r.__alignment=t}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}getSrc(){return this.__src}getFilePickerTab(){return this.__filePickerTab}setFilePickerTab(t){const r=this.getWritable();r.__filePickerTab=t||Ai}}function t1(e,n,t,r,o,s){return new is(e,void 0,n,t,void 0,r,o,s)}function Pg(e,n){let t;return e.getEditorState().read(()=>{const r=p.$getNodeByKey(n);Ro(r)&&(t=r.getFilePickerTab())}),t}function bA(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Ro(r)&&r.setFilePickerTab(t)})}function Ro(e){return e instanceof is}function e7({editor:e,headerKey:n,fileNodeKey:t,filePickerTab:r}){const{t:o}=Ze.useTranslation(),{disable:s,imagePickerSettings:l,fetchUploadMedia:c}=m.useContext(ut),{visibleInFilePicker:d}=m.useMemo(()=>yu(l,{hasOnUpload:!!c}),[c,l]),f=m.useMemo(()=>Qa.filter(b=>d.includes(b)).map(b=>{const x=AA[b];return{value:b,label:o(x.labelKey,x.fallback)}}),[o,d]),[h,g]=m.useState(()=>Uc(Pg(e,t)??r));m.useEffect(()=>e.registerUpdateListener(()=>{const b=Pg(e,t),x=Uc(b??r);g(w=>w===x?w:x)}),[e,t,r]);const C=m.useCallback(()=>{e.update(()=>{const b=p.$getNodeByKey(n),x=b==null?void 0:b.getParent();Yg(x)&&x.remove()})},[e,n]),y=m.useCallback(()=>{e.update(()=>{const b=p.$getNodeByKey(n);if(!b)return;const x=b.getParent();Yg(x)&&x.insertAfter(Nr(x))})},[e,n]);return s?null:i.jsxs(v.Flex,{className:"image-header",align:"center",justify:"space-between",w:"100%",children:[i.jsx(Va,{data:f,value:h,onChange:b=>{if(!b)return;bA(e,t,b)},size:"sm",rightSectionWidth:32,w:140,classNames:{wrapper:"image-header__select-wrapper"},inputClassName:"image-header__select-input"}),i.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[i.jsx(mu,{label:o("editor.contextMenu.duplicate"),ariaLabel:"duplicate-file-block",onClick:y}),i.jsx(fs,{label:o("editor.actions.delete"),ariaLabel:"remove-file-block",onClick:C})]})]})}const t7=m.lazy(()=>Promise.resolve().then(()=>require("./layers.DnJsFEqv.js"))),Lc="upload",Bg="95%";function n7(e){const n=e;if(n.src.startsWith("file:///"))return null;const{alt:t,src:r,width:o,height:s}=n,l=n.getAttribute("data-id"),c=n.getAttribute("height")??"inherit",d=n.getAttribute("width")??"inherit",f=n.getAttribute("data-image-picker-tab"),h=r===window.location.href?"":r,g=n.style.justifyContent||"left";return{node:Oa({altText:t,height:c!=null&&c.includes("%")?c:s,src:h,width:d!=null&&d.includes("%")?d:o,id:String(l),alignment:g,imagePickerTab:f||Lc})}}class fr extends p.DecoratorNode{constructor(t,r,o,s,l,c,d,f,h,g,C,y,b){super(h);Me(this,"__src");Me(this,"__altText");Me(this,"__width");Me(this,"__height");Me(this,"__maxWidth");Me(this,"__showCaption");Me(this,"__caption");Me(this,"__captionsEnabled");Me(this,"__id");Me(this,"__create");Me(this,"__alignment");Me(this,"__imagePickerTab");this.__src=t,this.__altText=r,this.__maxWidth=Number(o),this.__width=s!==void 0&&s!==""?s||"inherit":Bg,this.__height=l!==void 0&&l!==""?l||"inherit":Bg,this.__showCaption=c||!1,this.__caption=d||p.createEditor(),this.__captionsEnabled=f||f===void 0,this.__id=g||"0",this.__create=C||!1,this.__alignment=y||"left",this.__imagePickerTab=b||Lc}static getType(){return"image"}static clone(t){return new fr(t.__src,t.__altText,t.__maxWidth,t.__width,t.__height,t.__showCaption,t.__caption,t.__captionsEnabled,t.__key,t.__id,t.__create,t.__alignment,t.__imagePickerTab)}static importJSON(t){const{altText:r,height:o,width:s,maxWidth:l,caption:c,src:d,showCaption:f,alignment:h,imagePickerTab:g}=t,C=Oa({altText:r,height:o,maxWidth:l,showCaption:f,src:d,width:s,create:!1,alignment:h,imagePickerTab:g||Lc}),y=C.__caption,b=y.parseEditorState(c.editorState);return b.isEmpty()||y.setEditorState(b),C}exportDOM(){const t=document.createElement("img");t.setAttribute("src",this.__src),t.setAttribute("alt",""),t.setAttribute("data-id",this.__id),(this.__width==="auto"||typeof this.__width=="number"&&this.__width%1!==0)&&t.setAttribute("data-type","icon/image"),typeof this.__width=="number"?(t.setAttribute("width","inherit"),t.setAttribute("height","inherit")):(t.setAttribute("width",this.__width.toString()),t.setAttribute("height",this.__height.toString())),t.setAttribute("data-id",this.__id),t.style.justifyContent=this.__alignment||"left",t.setAttribute("data-image-picker-tab",this.__imagePickerTab);const r=document.createElement("span");return r.className="editor-image",r.style.justifyContent=this.__alignment||"left",r.appendChild(t),{element:r}}static importDOM(){return{img:()=>({conversion:n7,priority:0})}}exportJSON(){return{altText:this.getAltText(),caption:this.__caption.toJSON(),height:this.__height==="inherit"?0:this.__height,maxWidth:this.__maxWidth,showCaption:this.__showCaption,src:this.getSrc(),type:"image",version:1,width:this.__width==="inherit"?0:this.__width,alignment:this.__alignment,...this.__imagePickerTab!=null&&this.__imagePickerTab!==""?{imagePickerTab:this.__imagePickerTab}:{}}}setId(t){const r=this.getWritable();r.__id=t}setSrc(t){if(this.getSrc()!==""&&t.trim()==="")return;const o=this.getWritable();o.__src=t}setAlt(t){const r=this.getWritable();r.__altText=t}setAlignment(t){const r=this.getWritable();r.__alignment=t}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}setShowCaption(t){const r=this.getWritable();r.__showCaption=t}getImagePickerTab(){return this.__imagePickerTab}setImagePickerTab(t){const r=this.getWritable();r.__imagePickerTab=t||Lc}createDOM(t){const r=document.createElement("span"),s=t.theme.image;return r.style.justifyContent=this.__alignment||"left",s!==void 0&&(r.className=s),fr.isPlaceholderSrc(this.__src)&&r.setAttribute("data-image-placeholder",""),r}updateDOM(t,r){const o=fr.isPlaceholderSrc(this.__src),s=fr.isPlaceholderSrc(t.__src);return o!==s&&(o?r.setAttribute("data-image-placeholder",""):r.removeAttribute("data-image-placeholder")),this.__alignment!==t.__alignment&&(r.style.display="flex",r.style.justifyContent=this.__alignment||"left"),!1}getSrc(){return this.__src}replaceBase64(t,r){const o=this.getWritable();o.__src=t,r&&(o.__id=r)}getAltText(){return this.__altText}isInline(){return!1}isKeyboardSelectable(){return!0}static isPlaceholderSrc(t){const r=t.trim();return r===""||r==="upload"}setCreated(t){const r=this.getWritable();r.__create=t}decorate(){return i.jsx(t7,{src:this.__src,altText:this.__altText,width:this.__width,height:this.__height,maxWidth:this.__maxWidth,nodeKey:this.getKey(),showCaption:this.__showCaption,caption:this.__caption,id:this.__id,alignment:this.__alignment||"left",create:this.__create,imagePickerTab:this.__imagePickerTab})}}function Oa({altText:e,height:n,maxWidth:t,captionsEnabled:r,src:o,width:s,showCaption:l,caption:c,key:d,id:f,create:h,alignment:g,imagePickerTab:C}){return p.$applyNodeReplacement(new fr(o,e,t,s,n,l,c,r,d,f,h,g,C))}function Ir(e){return e instanceof fr}function _g(e,n){let t;return e.getEditorState().read(()=>{const r=p.$getNodeByKey(n);Ir(r)&&(t=r.getImagePickerTab())}),t}function yA(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Ir(r)&&r.setImagePickerTab(t)})}const wi=["gallery","upload","link","unsplash","giphy"],r7={gallery:{labelKey:"editor.image.gallery",fallback:"Gallery"},upload:{labelKey:"editor.image.upload",fallback:"Upload"},link:{labelKey:"editor.image.embed_link",fallback:"Embed link"},unsplash:{labelKey:"editor.image.search_images",fallback:"Search images"},giphy:{labelKey:"editor.image.gifs",fallback:"GIFs"}};function Fg(e){return e&&wi.includes(e)?e:wi[0]}function o7(e,n){const{link:t,download:r,unsplashClientId:o,giphyToken:s}=e,l=t===void 0?!0:t,c=r===void 0?!0:r,d=new Set;d.add("gallery"),c&&d.add("upload"),l&&d.add("link"),d.add("unsplash"),d.add("giphy");const f=wi.filter(g=>d.has(g)),h=wi.filter(g=>{if(!f.includes(g))return!1;switch(g){case"gallery":return n.hasGalleryInPicker;case"upload":return n.hasOnUpload;case"link":case"unsplash":case"giphy":return!0;default:return!1}});return{showTabKeys:f,visibleInFilePicker:h}}function Wg(e,n){return n.length?e&&n.includes(e)?e:n[0]:wi[0]}function s7({editor:e,headerKey:n,imageNodeKey:t,imagePickerTab:r}){const{t:o}=Ze.useTranslation(),{disable:s}=m.useContext(ut),[l,c]=m.useState(()=>Fg(_g(e,t)??r));m.useEffect(()=>e.registerUpdateListener(()=>{const g=_g(e,t),C=Fg(g??r);c(y=>y===C?y:C)}),[e,t,r]);const d=m.useMemo(()=>wi.map(g=>{const C=r7[g];return{value:g,label:o(C.labelKey,C.fallback)}}),[o]),f=m.useCallback(()=>{e.update(()=>{const g=p.$getNodeByKey(n),C=g==null?void 0:g.getParent();Hg(C)&&C.remove()})},[e,n]),h=m.useCallback(()=>{e.update(()=>{const g=p.$getNodeByKey(n);if(!g)return;const C=g.getParent();Hg(C)&&C.insertAfter(Nr(C))})},[e,n]);return s?null:i.jsxs(v.Flex,{className:"image-header",align:"center",justify:"space-between",w:"100%",children:[i.jsx(Va,{data:d,value:l,onChange:g=>{if(!g)return;yA(e,t,g)},size:"sm",rightSectionWidth:32,w:140,classNames:{wrapper:"image-header__select-wrapper"},inputClassName:"image-header__select-input"}),i.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[i.jsx(mu,{label:o("editor.contextMenu.duplicate"),ariaLabel:"duplicate-image-block",onClick:h}),i.jsx(fs,{label:o("editor.actions.delete"),ariaLabel:"remove-image-block",onClick:f})]})]})}function xA(){const e=m.useRef(null),n=m.useCallback(()=>{var r;return(r=e.current)==null||r.abort(),e.current=new AbortController,e.current.signal},[]),t=m.useCallback(()=>{var r;(r=e.current)==null||r.abort(),e.current=null},[]);return{start:n,cancel:t}}function vA({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){return console.log(e),e==null?i.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:i.jsx(v.Stack,{align:"center",children:i.jsx(Kc,{isPaused:o})})}):i.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:i.jsxs(v.Stack,{gap:"lg",align:"center",w:"100%",children:[i.jsx(Kc,{isPaused:o}),i.jsx(v.Box,{w:"100%",children:i.jsx(bu,{progress:e,showSpeed:!0,showRemaining:!0,isPaused:o})}),i.jsx(qa,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})})}const Nc=p.createCommand("INSERT_MUSIC_COMMAND"),wA=p.createCommand("UPLOAD_MUSIC_COMMAND");function i7(e){const n=e.getSrc();return!n||!n.trim()}function a7(e,n){m.useEffect(()=>{if(!n)return;const t=e.hasNodes([In,Qr]),r=e.registerNodeTransform(Ks,s=>{if(!t)return;const l=s.getParent(),c=i7(s);if(c&&l&&!pr(l)){const d=s.getNextSibling(),f=Ja(s);d?d.insertBefore(f):l.append(f);return}if(!c&&l&&pr(l)){const d=l;d.insertBefore(s),d.remove()}}),o=t?e.registerNodeTransform(In,s=>{const l=s.getChildren(),c=l.find(Gr);if(!c||l.some(Oi))return;const f=Oo();c.insertBefore(f)}):()=>{};return be.mergeRegister(r,o)},[e,n])}const l7=({children:e,inline:n=!1,nodeKey:t,popoverProps:r,defaultTabValue:o,onWriteTabToNode:s,...l})=>{const{imagePickerSettings:c,maxFileSize:d}=m.useContext(ut),{maxUploadFiles:f}=c,h=n&&!!t,{showTabKeys:g,visibleInFilePicker:C}=m.useMemo(()=>yu(c,{hasOnUpload:!!l.onUpload}),[c,l.onUpload]),y=m.useMemo(()=>Hc(o,C),[o,C]);m.useLayoutEffect(()=>{if(!h||!s)return;const x=Hc(o,C);x!==o&&s(x)},[h,o,s,C]);const b={type:"audio",showTabs:g,dropZoneProps:{multiple:!1,maxFiles:f||1,maxSize:d*1024*1024,accept:{"audio/*":[]}},inline:n,tab:y,popoverProps:n?{...r,opened:!0}:r,children:n?null:e,...l};return i.jsx(Mt.FilePicker,{...b})};function c7({children:e}){return Dr.createPortal(i.jsx("div",{className:"FlashMessage__overlay",role:"dialog",children:i.jsx("p",{className:"FlashMessage__alert",role:"alert",children:e})}),document.body)}const kA=m.createContext(void 0),lf={},u7=1e3,d7=({children:e})=>{const[n,t]=m.useState(lf),r=m.useCallback((o,s)=>t(o?{duration:s,message:o}:lf),[]);return m.useEffect(()=>{if(n.message){const o=setTimeout(()=>t(lf),n.duration??u7);return()=>clearTimeout(o)}},[n]),i.jsxs(kA.Provider,{value:r,children:[e,n.message&&i.jsx(c7,{children:n.message})]})},f7=()=>{const e=m.useContext(kA);if(!e)throw new Error("Missing FlashMessageContext");return e};function xu(){return f7()}function h7(e){const n=e.trim();if(!n)return n;try{return n.startsWith("http://")||n.startsWith("https://")?n:new URL(n,window.location.href).href}catch{return n}}function SA(e){const n=e.trim();if(!n)return!1;let t;try{t=n.startsWith("http://")||n.startsWith("https://")?new URL(n):new URL(n,window.location.href)}catch{return!1}if((t.searchParams.get("contentType")||"").toLowerCase().startsWith("audio/"))return!0;const o=(t.searchParams.get("originalFileName")||"").toLowerCase();if(/\.(mp3|m4a|aac|wav|ogg|oga|flac|webm)(\?|#|$)/.test(o))return!0;const s=t.pathname.toLowerCase();return!!/\.(mp3|m4a|aac|wav|ogg|oga|flac|webm)$/.test(s)}const Wr=(e,n,t)=>Math.min(t,Math.max(n,e)),ui=e=>{if(!Number.isFinite(e))return"0:00";const n=Math.max(0,Math.floor(e)),t=Math.floor(n/3600),r=Math.floor(n%3600/60),o=n%60;return t>0?`${t}:${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`:`${r}:${String(o).padStart(2,"0")}`},zg=e=>{if(!e||!Number.isFinite(e.duration)||e.duration<=0)return[];const n=[],t=e.buffered;for(let r=0;r<t.length;r+=1){const o=Wr(t.start(r)/e.duration,0,1),s=Wr(t.end(r)/e.duration,0,1);n.push({start:o,end:s})}return n},p7=[.5,.7,1,1.2,1.5,1.7,2],m7=3,EA=3,g7=m7+EA;function cf(e,n=6,t=28){return Math.round(Math.abs(Math.sin(e*2.3+1.7)*Math.cos(e*.9))*(t-n)+n)}function C7(e,n){return n!=null&&n.length?n.length===e?n:Array.from({length:e},(t,r)=>{const o=n.length>1?r/Math.max(e-1,1)*(n.length-1):0,s=Math.floor(o),l=Math.min(s+1,n.length-1),c=o-s;return Math.round((n[s]??cf(s))*(1-c)+(n[l]??cf(l))*c)}):Array.from({length:e},(t,r)=>cf(r))}function Kg(e,n){const[t,r]=m.useState(!1),o=m.useRef(null),s=m.useRef(null),l=()=>{o.current&&clearTimeout(o.current),s.current&&clearTimeout(s.current)};m.useEffect(()=>()=>l(),[]);const c=m.useCallback(()=>{l(),o.current=setTimeout(()=>r(!0),e)},[e]),d=m.useCallback(()=>{l(),s.current=setTimeout(()=>r(!1),n)},[n]),f=m.useCallback(()=>{s.current&&clearTimeout(s.current)},[]);return{opened:t,setOpened:r,open:c,close:d,cancelClose:f}}function A7(e,n){return n||e===0?lA:e<=.5?Ak:aA}const b7={dropdown:"music-player-bar-speed-dropdown"},y7={dropdown:"music-player-bar-ghost-dropdown"};function x7({src:e,duration:n,playbackRates:t=p7,initialVolume:r=1,waveformHeights:o,editor:s,nodeKey:l}){const{disable:c}=m.useContext(ut),{t:d}=Ze.useTranslation(),f=xu(),h=m.useRef(null),g=m.useRef(null),C=m.useRef(null),[y,b]=m.useState(!1),[x,w]=m.useState(0),[k,T]=m.useState(()=>n??0),[D,N]=m.useState(()=>{const q=t.indexOf(1);return q>=0?q:0}),[L,E]=m.useState(r),[M,O]=m.useState(!1),[I,F]=m.useState(40),[_,R]=m.useState(!1),j=Kg(120,220),K=Kg(120,480);m.useEffect(()=>{const q=g.current;if(!q)return;const re=new ResizeObserver(([he])=>{const ke=he.contentRect.width;F(Math.max(4,Math.min(200,Math.floor((ke+EA)/g7))))});return re.observe(q),()=>re.disconnect()},[]);const W=m.useMemo(()=>C7(I,o),[I,o]);m.useEffect(()=>{n!=null&&Number.isFinite(n)&&n>0&&T(n)},[n]);const{start:B,stop:H}=Sn.useInterval(()=>{h.current&&w(h.current.currentTime)},200);m.useEffect(()=>(y?B():H(),()=>H()),[y,B,H]),m.useEffect(()=>{const q=h.current;q&&(y?q.play().catch(()=>b(!1)):q.pause())},[y]),m.useEffect(()=>{h.current&&(h.current.playbackRate=t[D]??1)},[D,t]),m.useEffect(()=>{h.current&&(h.current.muted=M,h.current.volume=M?0:L)},[M,L]),m.useEffect(()=>()=>{C.current!==null&&clearTimeout(C.current)},[]);const Q=m.useCallback(()=>{var re;const q=(re=h.current)==null?void 0:re.duration;Number.isFinite(q)&&(q??0)>0&&T(q??0)},[]),ee=m.useCallback(()=>b(!1),[]),ae=m.useCallback(()=>b(q=>!q),[]),pe=m.useCallback(()=>O(q=>!q),[]),Le=m.useCallback(q=>{N(q),j.setOpened(!1)},[j]),Se=m.useCallback(q=>{if(!h.current||!k)return;const re=q.currentTarget.getBoundingClientRect(),he=Math.max(0,Math.min((q.clientX-re.left)/re.width,1))*k;h.current.currentTime=he,w(he)},[k]),we=m.useCallback(q=>{E(q),q>0&&O(!1)},[]),de=m.useMemo(()=>{var q,re,he,ke;try{const Pe=(re=(q=((e.startsWith("http://")||e.startsWith("https://")?new URL(e):new URL(e,window.location.href)).searchParams.get("originalFileName")||e).split("/").pop())==null?void 0:q.split("?")[0])==null?void 0:re.trim();return Pe&&Pe.length>0?Pe:"file"}catch{const De=(ke=(he=e.split("/").pop())==null?void 0:he.split("?")[0])==null?void 0:ke.trim();return De&&De.length>0?De:"file"}},[e]),ne=m.useCallback(q=>{q.stopPropagation(),q.preventDefault();const re=h7(e);re&&navigator.clipboard.writeText(re).then(()=>{C.current!==null&&clearTimeout(C.current),R(!0),C.current=setTimeout(()=>{R(!1),C.current=null},1e3)},()=>f(d("editor.embed.linkCopyFailed")))},[f,e,d]),Z=m.useCallback(q=>{q.stopPropagation(),q.preventDefault(),CA(e,de)},[e,de]),ce=m.useCallback(()=>{!s||!l||s.update(()=>{const q=p.$getNodeByKey(l);if(!Gr(q))return;const re=q.getParent();Gf(re)?re.remove():q.remove()})},[s,l]),le=k>0?x/k:0,se=Math.round(le*I),Y=t[D]??1,oe=M?0:L,$=Number.isFinite(k)&&k>0?Math.round(k):0,J=A7(L,M);return i.jsxs(i.Fragment,{children:[i.jsx("audio",{ref:h,src:e,title:"",onLoadedMetadata:Q,onTimeUpdate:()=>{var q;return w(((q=h.current)==null?void 0:q.currentTime)??0)},onEnded:ee,preload:"metadata",style:{position:"absolute",width:0,height:0,opacity:0,pointerEvents:"none"}}),i.jsxs("div",{"data-testid":"music-player-bar",className:"music-player-bar","data-popovers-open":j.opened||K.opened||void 0,"data-volume-open":K.opened||void 0,"data-hover-actions-reduced":c||void 0,children:[i.jsx(v.ActionIcon,{size:28,radius:8,onClick:ae,className:"music-player-bar__play-btn","aria-label":d(y?"editor.video.player.pause":"editor.video.player.play"),children:i.jsx(te,{icon:y?QC:JC,size:16,color:"var(--mantine-color-white)"})}),i.jsxs(v.Text,{component:"time",fz:14,lh:"20px",c:"var(--mantine-color-text)",className:"music-player-bar__timer","aria-label":d("editor.audio.player.timeDisplay"),children:[ui(x)," / ",ui(k)]}),i.jsx("div",{ref:g,className:"music-player-bar__waveform-clip",children:i.jsx("div",{"data-testid":"music-waveform",className:"music-player-bar__waveform",onClick:Se,role:"slider","aria-label":d("editor.audio.player.waveformSeek"),"aria-valuenow":Math.round(x),"aria-valuemin":0,"aria-valuemax":$,children:W.map((q,re)=>i.jsx("div",{className:`music-player-bar__stem music-player-bar__stem--${re<se?"active":"inactive"}`,style:{height:q}},re))})}),i.jsxs("div",{className:"music-player-bar__tail-rail",children:[i.jsxs("div",{className:"music-player-bar__tail",children:[i.jsxs(v.Popover,{opened:j.opened,position:"top-end",offset:6,withinPortal:!0,trapFocus:!1,returnFocus:!1,classNames:b7,children:[i.jsx(v.Popover.Target,{children:i.jsxs(v.UnstyledButton,{onMouseEnter:j.open,onMouseLeave:j.close,className:"music-player-bar__speed-trigger","aria-label":d("editor.audio.player.playbackSpeed"),"aria-haspopup":"listbox","aria-expanded":j.opened,children:[Y,"x"]})}),i.jsx(v.Popover.Dropdown,{children:i.jsxs(v.Stack,{gap:6,onMouseEnter:j.cancelClose,onMouseLeave:j.close,children:[i.jsx(v.Text,{className:"music-player-bar__speed-label",children:d("editor.audio.player.playbackSpeedLabel")}),i.jsx(v.Box,{role:"listbox","aria-label":d("editor.audio.player.playbackSpeedLabel"),style:{display:"flex",alignItems:"center",gap:2},children:t.map((q,re)=>{const he=re===D;return i.jsx(v.UnstyledButton,{role:"option","aria-selected":he,onClick:()=>Le(re),className:`music-player-bar__speed-chip${he?" music-player-bar__speed-chip--active":""}`,children:i.jsxs(v.Text,{fz:14,fw:he?600:400,c:he?"var(--mantine-primary-color-filled)":"var(--mantine-color-text)",children:[q,"x"]})},q)})})]})})]}),i.jsxs(v.Popover,{opened:K.opened,position:"right",offset:4,withinPortal:!0,trapFocus:!1,returnFocus:!1,classNames:y7,children:[i.jsx(v.Popover.Target,{children:i.jsx(v.ActionIcon,{variant:"subtle",color:"gray",size:28,"aria-label":d(M||L===0?"editor.video.player.unmute":"editor.video.player.mute"),onMouseEnter:K.open,onMouseLeave:K.close,onClick:pe,children:i.jsx(te,{icon:J,size:20,color:"var(--mantine-color-dimmed)"})})}),i.jsx(v.Popover.Dropdown,{children:i.jsx("div",{className:"music-player-bar__volume-dropdown",onMouseEnter:K.cancelClose,onMouseLeave:K.close,children:K.opened&&i.jsx(v.Slider,{min:0,max:1,step:.01,value:oe,onChange:we,label:null,w:57,size:2,"data-testid":"music-volume-slider",className:"music-player-bar__volume-slider","aria-label":d("editor.audio.player.volume")})})})]})]}),i.jsx("div",{className:"music-player-bar__tail-spacer","aria-hidden":!0})]}),s&&l&&i.jsxs("div",{className:"music-player-bar__hover-actions",onPointerDown:q=>q.stopPropagation(),children:[i.jsx(Cn,{label:d("editor.gallery.download"),icon:Uh,iconColor:"var(--mantine-color-gray-text)",onClick:Z}),i.jsx(Cn,{label:d("editor.embed.copyLink"),icon:_?tr:ja,iconColor:"var(--mantine-color-gray-text)",className:_?"header-menu__copy-icon header-menu__copy-icon--success":"header-menu__copy-icon",onClick:ne}),!c&&i.jsx(fs,{label:d("editor.actions.delete"),ariaLabel:"remove-music-block",onClick:ce})]})]})]})}function v7({className:e,format:n,src:t,editor:r,nodeKey:o,filePickerTab:s,create:l}){const[c,d]=m.useState(!1),{start:f}=xA(),{fetchUploadMedia:h,disable:g}=m.useContext(ut),C=m.useCallback(w=>MA(r,o,w),[r,o]),y=m.useCallback(w=>{r.update(()=>{const k=p.$getNodeByKey(o);if(!k)return;Gr(k)&&k.setSrc(w);const T=k.getNextSibling();T&&p.$setSelection(T.selectNext())})},[r,o]),b=m.useCallback(w=>{if(!w[0]||!h)return;d(!0);const k=f();h(w[0],(T,D,N)=>{const{originalFileName:L}=N,E=new URLSearchParams({originalFileName:L}),M=`${T}?${E.toString()}`;y(M),d(!1)},()=>{d(!1)},k)},[y,h,f]),x=c;return m.useEffect(()=>r.registerCommand(wA,w=>!w.length||x||t.trim()||!h?!1:(b(w),!0),p.COMMAND_PRIORITY_LOW),[r,h,b,x,t]),g&&!t.trim()?null:t.trim()?i.jsx(Qo.BlockWithAlignableContents,{className:e,format:n,nodeKey:o,children:i.jsx(v.Box,{w:"100%",children:i.jsx(x7,{src:t,editor:r,nodeKey:o})})}):i.jsx(Qo.BlockWithAlignableContents,{className:e,format:n,nodeKey:o,children:i.jsx(v.Box,{"data-editor-music-picker-drop-root":!0,w:"100%",style:{pointerEvents:x?"none":void 0},children:x?i.jsx(vA,{}):i.jsx(l7,{inline:!0,nodeKey:o,defaultTabValue:s,onWriteTabToNode:C,uploading:c,onUpload:w=>{!w.length||!h||b(w)},popoverProps:{opened:!0,position:"bottom"},onChange:w=>{y(w)}})})})}function w7(e){const n=e.getAttribute("data-src"),t=e.getAttribute("data-file-picker-tab");return{node:n1(n||"",void 0,t||void 0)}}class Ks extends qr.DecoratorBlockNode{constructor(t,r,o,s,l){super(r,o);Me(this,"__src");Me(this,"__create");Me(this,"__filePickerTab");this.__src=t,this.__create=s||!1,this.__filePickerTab=l||Ai}static getType(){return"music"}static clone(t){return new Ks(t.__src,t.__format,t.__key,t.__create,t.__filePickerTab)}static importJSON(t){const r=n1(t.src,t.create,t.filePickerTab||Ai);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"music",version:1,src:this.__src,...this.__create?{create:this.__create}:{},...this.__filePickerTab!=null&&this.__filePickerTab!==""?{filePickerTab:this.__filePickerTab}:{}}}static importDOM(){return{span:t=>t.classList.contains("audio-container")?{conversion:w7,priority:1}:null}}createDOM(){const t=document.createElement("div");return t.className="audio-container",t}updateDOM(t,r){return!1}exportDOM(){const t=document.createElement("span"),r=document.createElement("audio");return t.className="audio-container",r.setAttribute("controls","true"),r.setAttribute("src",this.__src),t.setAttribute("data-src",this.__src),t.setAttribute("data-file-picker-tab",this.__filePickerTab),t.appendChild(r),{element:t}}decorate(t,r){const s={base:(r.theme.embedBlock||{}).base||"",focus:""};return i.jsx(v7,{editor:t,nodeKey:this.getKey(),format:this.__format,className:s,src:this.__src,create:this.__create,filePickerTab:this.__filePickerTab})}getSrc(){return this.__src}setSrc(t){const r=this.getWritable();r.__src=t}setCreated(t){const r=this.getWritable();r.__create=t}getFilePickerTab(){return this.__filePickerTab}setFilePickerTab(t){const r=this.getWritable();r.__filePickerTab=t||Ai}}function n1(e,n,t){return new Ks(e,void 0,void 0,n,t)}function Gr(e){return e instanceof Ks}function Ug(e,n){let t;return e.getEditorState().read(()=>{const r=p.$getNodeByKey(n);Gr(r)&&(t=r.getFilePickerTab())}),t}function MA(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Gr(r)&&r.setFilePickerTab(t)})}function k7({editor:e,headerKey:n,musicNodeKey:t,filePickerTab:r}){const{t:o}=Ze.useTranslation(),{disable:s,imagePickerSettings:l,fetchUploadMedia:c}=m.useContext(ut),{visibleInFilePicker:d}=m.useMemo(()=>yu(l,{hasOnUpload:!!c}),[c,l]),f=m.useMemo(()=>Qa.filter(b=>d.includes(b)).map(b=>{const x=AA[b];return{value:b,label:o(x.labelKey,x.fallback)}}),[o,d]),[h,g]=m.useState(()=>Uc(Ug(e,t)??r));m.useEffect(()=>e.registerUpdateListener(()=>{const b=Ug(e,t),x=Uc(b??r);g(w=>w===x?w:x)}),[e,t,r]);const C=m.useCallback(()=>{e.update(()=>{const b=p.$getNodeByKey(n),x=b==null?void 0:b.getParent();Gf(x)&&x.remove()})},[e,n]),y=m.useCallback(()=>{e.update(()=>{const b=p.$getNodeByKey(n);if(!b)return;const x=b.getParent();Gf(x)&&x.insertAfter(Nr(x))})},[e,n]);return s?null:i.jsxs(v.Flex,{className:"image-header",align:"center",justify:"space-between",w:"100%",children:[i.jsx(Va,{data:f,value:h,onChange:b=>{if(!b)return;MA(e,t,b)},size:"sm",rightSectionWidth:32,w:140,classNames:{wrapper:"image-header__select-wrapper"},inputClassName:"image-header__select-input"}),i.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[i.jsx(mu,{label:o("editor.contextMenu.duplicate"),ariaLabel:"duplicate-music-block",onClick:y}),i.jsx(fs,{label:o("editor.actions.delete"),ariaLabel:"remove-music-block",onClick:C})]})]})}function S7(){return{node:Oo()}}class Qr extends qr.DecoratorBlockNode{static getType(){return"overlay-header"}static clone(n){return new Qr(n.__format,n.__key)}constructor(n,t){super(n,t)}static importJSON(){return Oo()}exportJSON(){return{...super.exportJSON(),type:"overlay-header",version:1}}static importDOM(){return{div:n=>{const t=n.classList.contains("equation-header")||n.classList.contains("extend-code-header"),r=n.classList.contains("overlay-header");return!t&&!r?null:{conversion:S7,priority:2}}}}createDOM(){const n=document.createElement("div");return be.addClassNamesToElement(n,Lr.codeHeader,"overlay-header"),n}updateDOM(){return!1}decorate(n,t){const r=this.getNextSibling();return gn(r)?i.jsx(jk,{editor:n,headerKey:this.__key}):Do(r)?i.jsx(_k,{editor:n,headerKey:this.__key}):Ir(r)?i.jsx(s7,{editor:n,headerKey:this.__key,imageNodeKey:r.getKey(),imagePickerTab:r.getImagePickerTab()}):Ro(r)?i.jsx(e7,{editor:n,headerKey:this.__key,fileNodeKey:r.getKey(),filePickerTab:r.getFilePickerTab()}):Gr(r)?i.jsx(k7,{editor:n,headerKey:this.__key,musicNodeKey:r.getKey(),filePickerTab:r.getFilePickerTab()}):i.jsx(i.Fragment,{})}}function Oo(){return new Qr}function Oi(e){return e instanceof Qr}function E7(){return{node:vu()}}class In extends p.ElementNode{static getType(){return"overlay-wrapper"}static clone(n){return new In(n.__key)}constructor(n){super(n)}createDOM(n){const t=document.createElement("div"),r=n.theme.codeWrapper||Lr.codeWrapper;return be.addClassNamesToElement(t,r),t.setAttribute("dir","auto"),t.setAttribute("data-lexical-overlay-wrapper","true"),t}updateDOM(){return!1}exportDOM(n){const t=document.createElement("div"),r=Lr.codeWrapper;be.addClassNamesToElement(t,r),t.setAttribute("dir","auto"),t.setAttribute("data-lexical-overlay-wrapper","true");const o=this.getChildren().find(gn);if(o){const l=Ci[o.getLanguage()||"plain"]||o.getLanguage();t.setAttribute("data-name-language",String(l))}const s=this.getChildren().find(Do);if(s){const l=s.getEquation();let c="";try{c=btoa(unescape(encodeURIComponent(l)))}catch{c=""}t.setAttribute("data-lexical-equation-wrapper","true"),t.setAttribute("data-lexical-equation",c)}return{element:t}}static importDOM(){const n=Lr.codeWrapper,t=o=>o.classList.contains(n),r=o=>o.classList.contains("dsd__theme__code-wrapper");return{div:o=>{if(!t(o)&&!r(o))return null;const s=o.hasAttribute("data-lexical-equation-wrapper"),l=o.hasAttribute("data-lexical-overlay-wrapper"),c=o.hasAttribute("data-name-language");return!s&&!l&&!c?null:{conversion:E7,priority:2}}}}static importJSON(n){return vu()}exportJSON(){return{...super.exportJSON(),type:"overlay-wrapper",version:1}}}function vu(){return new In}function pr(e){return e instanceof In}function as(e){return pr(e)?e.getChildren().some(gn):!1}function wu(e){return pr(e)?e.getChildren().some(Do):!1}function Pa(e){return()=>{const n=vu(),t=Oo(),r=e();return n.append(t,r),n}}function Ja(e){const n=vu(),t=Oo();return n.append(t,e),n}function Hg(e){return pr(e)?e.getChildren().some(Ir):!1}function Yg(e){return pr(e)?e.getChildren().some(Ro):!1}function Gf(e){return pr(e)?e.getChildren().some(Gr):!1}function M7(e){m.useEffect(()=>{if(!e.hasNodes([In]))return;const n=e.registerMutationListener(In,t=>{e.getEditorState().read(()=>{for(const[r,o]of t)o==="updated"&&e.update(()=>{const s=p.$getNodeByKey(r);if(!s||!pr(s))return;const l=s.getChildren(),c=l.some(gn),d=l.some(Do),f=l.some(Ir),h=l.some(Ro),g=l.some(Gr);if(!(c||d||f||h||g)){for(const C of l)Oi(C)?C.remove():s.insertBefore(C);s.remove()}},{tag:p.HISTORY_MERGE_TAG})})});return be.mergeRegister(n)},[e])}function T7(){const[e]=it.useLexicalComposerContext();return M7(e),null}function ot(e,n,...t){if(!e)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+n)}function Yc(...e){const n=[];for(const t of e)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))n.push(r);return n}function Vf(e){let n=1,t=e.getParent();for(;t!=null;){if(It(t)){const r=t.getParent();if(pt(r)){n++,t=r.getParent();continue}ot(!1,"A ListItemNode must have a ListNode for a parent.")}return n}return n}function qf(e){let n=e.getParent();pt(n)||ot(!1,"A ListItemNode must have a ListNode for a parent.");let t=n;for(;t!==null;)t=t.getParent(),pt(t)&&(n=t);return n}function TA(e){let n=[];const t=e.getChildren().filter(It);for(let r=0;r<t.length;r++){const o=t[r],s=o.getFirstChild();pt(s)?n=n.concat(TA(s)):n.push(o)}return n}function so(e){return It(e)&&pt(e.getFirstChild())}function L7(e){let n=e;for(;n.getNextSibling()==null&&n.getPreviousSibling()==null;){const t=n.getParent();if(t==null||!(It(n)||pt(n)))break;n=t}n.remove()}function Zg(e){return Fn().append(e)}let LA=!1;function di(e){LA=e}function NA(e,n){return It(e)&&(n.length===0||n.length===1&&e.is(n[0])&&e.getChildrenSize()===0)}function Qf(e,n){e.update(()=>{const t=p.$getSelection();if(t!==null){const r=t.getNodes();if(p.$isRangeSelection(t)){const s=t.getStartEndPoints();ot(s!==null,"insertList: anchor should be defined");const[l]=s,c=l.getNode(),d=c.getParent();if(NA(c,r)){const f=cn(n);if(p.$isRootOrShadowRoot(d)){c.replace(f);const h=Fn();p.$isElementNode(c)&&(h.setFormat(c.getFormatType()),h.setIndent(c.getIndent())),f.append(h)}else if(It(c)){const h=c.getParentOrThrow();Ps(f,h.getChildren()),h.replace(f)}return}}const o=new Set;for(let s=0;s<r.length;s++){const l=r[s];if(p.$isElementNode(l)&&l.isEmpty()&&!It(l)&&!o.has(l.getKey())){Gg(l,n);continue}if(p.$isLeafNode(l)){let c=l.getParent();for(;c!=null;){const d=c.getKey();if(pt(c)){if(!o.has(d)){const f=cn(n);Ps(f,c.getChildren()),c.replace(f),o.add(d)}break}else{const f=c.getParent();if(p.$isRootOrShadowRoot(f)&&!o.has(d)){o.add(d),Gg(c,n);break}c=f}}}}}})}function Ps(e,n){e.splice(e.getChildrenSize(),0,n)}function N7(e,n){const t=e.getChildren().find(l=>gn(l));if(!t){const l=cn(n),c=Fn();return c.append(p.$createParagraphNode()),l.append(c),e.replace(l),l}const o=t.getTextContent().split(/\r?\n/),s=cn(n);for(const l of o){const c=Fn(),d=p.$createParagraphNode();d.append(p.$createTextNode(l)),c.append(d),s.append(c)}return e.replace(s),s}function Gg(e,n){if(pt(e))return e;if(as(e))return N7(e,n);const t=e.getPreviousSibling(),r=e.getNextSibling(),o=Fn();if(o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),Ps(o,e.getChildren()),pt(t)&&n===t.getListType())return t.append(o),e.remove(),pt(r)&&n===r.getListType()&&(Ps(t,r.getChildren()),r.remove()),t;if(pt(r)&&n===r.getListType())return r.getFirstChildOrThrow().insertBefore(o),e.remove(),r;{const s=cn(n);return s.append(o),e.replace(s),s}}function r1(e,n){const t=e.getLastChild(),r=n.getFirstChild();t&&r&&so(t)&&so(r)&&(r1(t.getFirstChild(),r.getFirstChild()),r.remove());const o=n.getChildren();o.length>0&&e.append(...o),n.remove()}function j7(e){e.update(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)){const t=new Set,r=n.getNodes(),o=n.anchor.getNode();if(NA(o,r))t.add(qf(o));else for(let s=0;s<r.length;s++){const l=r[s];if(p.$isLeafNode(l)){const c=be.$getNearestNodeOfType(l,Dn);c!=null&&t.add(qf(c))}}for(const s of t){let l=s;const c=TA(s);for(const d of c){const f=p.$createParagraphNode();Ps(f,d.getChildren()),l.insertAfter(f),l=f,d.__key===n.anchor.key&&n.anchor.set(f.getKey(),0,"element"),d.__key===n.focus.key&&n.focus.set(f.getKey(),0,"element"),d.remove()}s.remove()}}})}function R7(e){const n=e.getListType()!=="check";let t=e.getStart();for(const r of e.getChildren())It(r)&&(r.getValue()!==t&&r.setValue(t),n&&r.getLatest().__checked!=null&&r.setChecked(void 0),pt(r.getFirstChild())||t++)}function I7(e){if(LA)return;const n=e.getNextSibling();pt(n)&&e.getListType()===n.getListType()&&r1(e,n)}function D7(e){const n=new Set;if(so(e)||n.has(e.getKey()))return;const t=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(so(r)&&so(o)){const s=o.getFirstChild();if(pt(s)){s.append(e);const l=r.getFirstChild();if(pt(l)){const c=l.getChildren();Ps(s,c),r.remove(),n.add(r.getKey())}}}else if(so(r)){const s=r.getFirstChild();if(pt(s)){const l=s.getFirstChild();l!==null&&l.insertBefore(e)}}else if(so(o)){const s=o.getFirstChild();pt(s)&&s.append(e)}else if(pt(t)){const s=Fn(),l=cn(t.getListType());s.append(l),l.append(e),o?o.insertAfter(s):r?r.insertBefore(s):t.append(s)}}function O7(e){if(so(e))return;const n=e.getParent(),t=n?n.getParent():void 0,r=t?t.getParent():void 0;if(pt(r)&&It(t)&&pt(n)){const o=n?n.getFirstChild():void 0,s=n?n.getLastChild():void 0;if(e.is(o))t.insertBefore(e),n.isEmpty()&&t.remove();else if(e.is(s))t.insertAfter(e),n.isEmpty()&&t.remove();else{const l=n.getListType(),c=Fn(),d=cn(l);c.append(d),e.getPreviousSiblings().forEach(g=>d.append(g));const f=Fn(),h=cn(l);f.append(h),Ps(h,e.getNextSiblings()),t.insertBefore(c),t.insertAfter(f),t.replace(e)}}}function P7(){const e=p.$getSelection();if(!p.$isRangeSelection(e)||!e.isCollapsed())return!1;const n=e.anchor.getNode();if(!It(n)||n.getChildrenSize()!==0)return!1;const t=qf(n),r=n.getParent();ot(pt(r),"A ListItemNode must have a ListNode for a parent.");const o=r.getParent();let s;if(p.$isRootOrShadowRoot(o))s=p.$createParagraphNode(),t.insertAfter(s);else if(It(o))s=Fn(),o.insertAfter(s);else return!1;s.select();const l=n.getNextSiblings();if(l.length>0){const c=cn(r.getListType());if(p.$isParagraphNode(s))s.insertAfter(c);else{const d=Fn();d.append(c),s.insertAfter(d)}l.forEach(d=>{d.remove(),c.append(d)})}return L7(n),!0}class Dn extends p.ElementNode{constructor(t,r,o,s,l){super(l);Me(this,"__value");Me(this,"__checked");Me(this,"__opened");Me(this,"__isIndeterminate");this.__value=t===void 0?1:t,this.__checked=r,this.__opened=o,this.__isIndeterminate=s}static getType(){return"listitem"}static clone(t){return new Dn(t.__value,t.__checked,t.__opened,t.__isIndeterminate,t.__key)}createDOM(t){const r=document.createElement("li"),o=this.getParent();return pt(o)&&o.getListType()==="check"&&qg(r,this,null),r.value=this.__value,Vg(r,t.theme,this),r}updateDOM(t,r,o){const s=this.getParent();return pt(s)&&s.getListType()==="check"&&qg(r,this,t),r.value=this.__value,Vg(r,o.theme,this),!1}static transform(){return t=>{if(ot(It(t),"node is not a ListItemNode"),t.__checked==null)return;const r=t.getParent();pt(r)&&r.getListType()!=="check"&&t.getChecked()!=null&&t.setChecked(void 0)}}static importDOM(){return{li:()=>({conversion:B7,priority:0})}}static importJSON(t){const r=Fn(t.checked,t.opened,t.isIndeterminate);return r.setValue(t.value),r.setFormat(t.format),r.setDirection(t.direction),r}exportDOM(t){const r=this.createDOM(t._config);return r.style.textAlign=this.getFormatType(),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),opened:this.getOpened(),isIndeterminate:this.__isIndeterminate,version:1}}append(...t){for(let r=0;r<t.length;r++){const o=t[r];if(p.$isElementNode(o)&&this.canMergeWith(o)){const s=o.getChildren();this.append(...s),o.remove()}else super.append(o)}return this}replace(t,r){if(It(t))return super.replace(t);this.setIndent(0);const o=this.getParentOrThrow();if(!pt(o))return t;if(o.__first===this.getKey())o.insertBefore(t);else if(o.__last===this.getKey())o.insertAfter(t);else{const s=cn(o.getListType());let l=this.getNextSibling();for(;l;){const c=l;l=l.getNextSibling(),s.append(c)}o.insertAfter(t),t.insertAfter(s)}return r&&(ot(p.$isElementNode(t),"includeChildren should only be true for ElementNodes"),this.getChildren().forEach(s=>{t.append(s)})),this.remove(),o.getChildrenSize()===0&&o.remove(),t}insertAfter(t,r=!0){const o=this.getParentOrThrow();if(pt(o)||ot(!1,"insertAfter: list node is not parent of list item node"),It(t))return super.insertAfter(t,r);const s=this.getNextSiblings();if(o.insertAfter(t,r),s.length!==0){const l=cn(o.getListType());s.forEach(c=>l.append(c)),t.insertAfter(l,r)}return t}remove(t){const r=this.getPreviousSibling(),o=this.getNextSibling();super.remove(t),r&&o&&so(r)&&so(o)&&(r1(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(t,r=!0){const o=Fn(this.__checked==null?void 0:!1);return this.insertAfter(o,r),o}collapseAtStart(t){const r=p.$createParagraphNode();this.getChildren().forEach(d=>r.append(d));const s=this.getParentOrThrow(),l=s.getParentOrThrow(),c=It(l);if(s.getChildrenSize()===1)if(c)s.remove(),l.select();else{s.insertBefore(r),s.remove();const d=t.anchor,f=t.focus,h=r.getKey();d.type==="element"&&d.getNode().is(this)&&d.set(h,d.offset,"element"),f.type==="element"&&f.getNode().is(this)&&f.set(h,f.offset,"element")}else s.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(t){const r=this.getWritable();r.__value=t}getChecked(){const t=this.getLatest();let r;const o=this.getParent();return pt(o)&&(r=o.getListType()),r==="check"?!!t.__checked:void 0}getOpened(){const t=this.getLatest();let r;const o=this.getParent();return pt(o)&&(r=o.getListType()),r==="check"?!!t.__opened:void 0}setChecked(t){const r=this.getWritable();r.__checked=t}setOpened(t){const r=this.getWritable();r.__opened=t}setIndeterminate(t){const r=this.getWritable();r.__isIndeterminate=t}toggleChecked(){this.setChecked(!this.__checked)}toggleOpen(){const t=!(this.__opened===!0||this.__opened===void 0);this.setOpened(t)}getIndent(){const t=this.getParent();if(t===null)return this.getLatest().__indent;let r=t.getParentOrThrow(),o=0;for(;It(r);)r=r.getParentOrThrow().getParentOrThrow(),o++;return o}setIndent(t){ot(typeof t=="number","Invalid indent value."),t=Math.floor(t),ot(t>=0,"Indent value must be non-negative.");let r=this.getIndent();for(;r!==t;)r<t?(D7(this),r++):(O7(this),r--);return this}canInsertAfter(t){return It(t)}canReplaceWith(t){return It(t)}canMergeWith(t){return p.$isParagraphNode(t)||It(t)}extractWithChild(t,r){if(!p.$isRangeSelection(r))return!1;const o=r.anchor.getNode(),s=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(s)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return cn("bullet")}canMergeWhenEmpty(){return!0}}function Vg(e,n,t){let r=[],o=[];const s=n.list,l=s?s.listitem:void 0;let c;if(s&&s.nested&&(c=s.nested.listitem),l!==void 0&&r.push(...Yc(l)),s){const d=t.getParent(),f=pt(d)&&d.getListType()==="check",h=t.getChecked();(!f||h)&&o.push(s.listitemUnchecked),(!f||!h)&&o.push(s.listitemChecked),f&&r.push(h?s.listitemChecked:s.listitemUnchecked)}if(c!==void 0){const d=Yc(c);t.getChildren().some(f=>pt(f))?r.push(...d):o.push(...d)}t.__isIndeterminate?r=[...r,Lr.listitemIndeterminate]:o=[...o,Lr.listitemIndeterminate],o.length>0&&be.removeClassNamesFromElement(e,...o),r.length>0&&be.addClassNamesToElement(e,...r)}function qg(e,n,t,r){pt(n.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),(!t||n.__checked!==t.__checked)&&e.setAttribute("aria-checked",n.getChecked()?"true":"false"),n.__opened===!1?e.setAttribute("data-list","closed"):e.setAttribute("data-list","opened"))}function B7(e){if(e.classList.contains("task-list-item")){for(const c of e.children)if(c.tagName==="INPUT")return _7(c)}const t=e.getAttribute("aria-checked"),r=e.getAttribute("data-list"),o=t==="true"?!0:t==="false"?!1:void 0,s=!r||r==="opened",l=e.className.includes(Lr.listitemIndeterminate);return{node:Fn(o,s,l)}}function _7(e){if(!(e.getAttribute("type")==="checkbox"))return{node:null};const t=e.hasAttribute("checked");return{node:Fn(t,!1,!0)}}function Fn(e,n,t){return p.$applyNodeReplacement(new Dn(void 0,e,n,t))}function It(e){return e instanceof Dn}class mr extends p.ElementNode{constructor(t,r,o){super(o);Me(this,"__tag");Me(this,"__start");Me(this,"__listType");const s=Xg[t]||t;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=r}static getType(){return"list"}static clone(t){const r=t.__listType||Xg[t.__tag];return new mr(r,t.__start,t.__key)}getTag(){return this.__tag}setListType(t){const r=this.getWritable();r.__listType=t,r.__tag=t==="number"?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(t,r){const o=this.__tag,s=document.createElement(o);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Qg(s,t.theme,this),s}updateDOM(t,r,o){return t.__tag!==this.__tag?!0:(Qg(r,o.theme,this),!1)}static transform(){return t=>{ot(pt(t),"node is not a ListNode"),I7(t),R7(t)}}static importDOM(){return{ol:()=>({conversion:Jg,priority:0}),ul:()=>({conversion:Jg,priority:0})}}static importJSON(t){const r=cn(t.listType,t.start);return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportDOM(t){const{element:r}=super.exportDOM(t);return r&&be.isHTMLElement(r)&&(this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check")),{element:r}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...t){for(let r=0;r<t.length;r++){const o=t[r];if(It(o))super.append(o);else{const s=Fn();if(pt(o))s.append(o);else if(p.$isElementNode(o)){const l=os(o.getTextContent());s.append(l)}else s.append(o);super.append(s)}}return this}extractWithChild(t){return It(t)}}function Qg(e,n,t){const r=[],o=[],s=n.list;if(s!==void 0){const l=s[`${t.__tag}Depth`]||[],c=Vf(t)-1,d=c%l.length,f=l[d],h=s[t.__tag];let g;const C=s.nested,y=s.checklist;if(C!==void 0&&C.list&&(g=C.list),h!==void 0&&r.push(h),y!==void 0&&t.__listType==="check"&&r.push(y),f!==void 0){r.push(...Yc(f));for(let b=0;b<l.length;b++)b!==d&&o.push(t.__tag+b)}if(g!==void 0){const b=Yc(g);c>1?r.push(...b):o.push(...b)}}o.length>0&&be.removeClassNamesFromElement(e,...o),r.length>0&&be.addClassNamesToElement(e,...r)}function F7(e){const n=[];for(let t=0;t<e.length;t++){const r=e[t];if(It(r)){n.push(r);const o=r.getChildren();o.length>1&&o.forEach(s=>{pt(s)&&n.push(Zg(s))})}else n.push(Zg(r))}return n}function W7(e){if(e.getAttribute("__lexicallisttype")==="check"||e.classList.contains("contains-task-list"))return!0;for(const n of e.childNodes)if(be.isHTMLElement(n)&&n.hasAttribute("aria-checked"))return!0;return!1}function Jg(e){const n=e.nodeName.toLowerCase();let t=null;if(n==="ol"){const r=e.start;t=cn("number",r)}else n==="ul"&&(W7(e)?t=cn("check"):t=cn("bullet"));return{after:F7,node:t}}const Xg={ol:"number",ul:"bullet"};function cn(e,n=1){return p.$applyNodeReplacement(new mr(e,n))}function pt(e){return e instanceof mr}const o1=p.createCommand("INSERT_UNORDERED_LIST_COMMAND"),ku=p.createCommand("INSERT_ORDERED_LIST_COMMAND"),s1=p.createCommand("INSERT_CHECK_LIST_COMMAND"),z7=p.createCommand("REMOVE_LIST_COMMAND");function K7(e){return be.mergeRegister(e.registerCommand(ku,()=>(Qf(e,"number"),!0),p.COMMAND_PRIORITY_LOW),e.registerCommand(o1,()=>(Qf(e,"bullet"),!0),p.COMMAND_PRIORITY_LOW),e.registerCommand(z7,()=>(j7(e),!0),p.COMMAND_PRIORITY_LOW),e.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>!!P7(),p.COMMAND_PRIORITY_LOW))}const Zc=/^(\d+(?:\.\d+)?)px$/,kt={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class Ur extends p.ElementNode{constructor(t=kt.NO_STATUS,r=1,o,s){super(s);Me(this,"__colSpan");Me(this,"__rowSpan");Me(this,"__headerState");Me(this,"__width");Me(this,"__backgroundColor");this.__colSpan=r,this.__rowSpan=1,this.__headerState=t,this.__width=o,this.__backgroundColor=null}static getType(){return"tablecell"}static clone(t){return new Ur(t.__headerState,t.__colSpan,t.__width,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__rowSpan=t.__rowSpan,this.__backgroundColor=t.__backgroundColor}static importDOM(){return{td:t=>({conversion:$g,priority:0}),th:t=>({conversion:$g,priority:0})}}static importJSON(t){const r=t.colSpan||1,o=t.rowSpan||1;return Hr(t.headerState,r,t.width||void 0).setRowSpan(o).setBackgroundColor(t.backgroundColor||null)}createDOM(t){const r=document.createElement(this.getTag());return this.__width&&(r.style.maxWidth=`${this.__width}px`,r.style.minWidth=`${this.__width}px`),this.__colSpan>1&&(r.colSpan=this.__colSpan),this.__rowSpan>1&&(r.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(r.style.backgroundColor=this.__backgroundColor),be.addClassNamesToElement(r,t.theme.tableCell,this.hasHeader()&&t.theme.tableCellHeader),r}exportDOM(t){const{element:r}=super.exportDOM(t);if(r){const o=r;this.__colSpan>1&&(o.colSpan=this.__colSpan),this.__rowSpan>1&&(o.rowSpan=this.__rowSpan),this.getWidth()&&(o.style.maxWidth=`${this.getWidth()}px`,o.style.minWidth=`${this.getWidth()}px`),o.style.verticalAlign="top",o.style.textAlign="start";const s=this.getBackgroundColor();s!==null&&(o.style.backgroundColor=s)}return{element:r}}exportJSON(){return{...super.exportJSON(),backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,type:"tablecell",width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(t){const r=this.getWritable();return r.__colSpan=t,r}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(t){const r=this.getWritable();return r.__rowSpan=t,r}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(t,r=kt.BOTH){const o=this.getWritable();return o.__headerState=t&r|o.__headerState&~r,o}getHeaderStyles(){return this.getLatest().__headerState}setWidth(t){const r=this.getWritable();return r.__width=t,r}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(t){const r=this.getWritable();return r.__backgroundColor=t,r}toggleHeaderStyle(t){const r=this.getWritable();return(r.__headerState&t)===t?r.__headerState-=t:r.__headerState+=t,r}hasHeaderState(t){return(this.getHeaderStyles()&t)===t}hasHeader(){return this.getLatest().__headerState!==kt.NO_STATUS}updateDOM(t){return t.__headerState!==this.__headerState||t.__width!==this.__width||t.__colSpan!==this.__colSpan||t.__rowSpan!==this.__rowSpan||t.__backgroundColor!==this.__backgroundColor}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function $g(e){const n=e,t=e.nodeName.toLowerCase();let r;(Zc.test(n.style.minWidth)||Zc.test(n.style.maxWidth))&&(r=parseFloat(n.style.minWidth));const o=Hr(t==="th"?kt.ROW:kt.NO_STATUS,n.colSpan,r);o.__rowSpan=n.rowSpan;const s=n.style.backgroundColor;s!==""&&(o.__backgroundColor=s);const l=n.style,c=(l&&l.textDecoration||"").split(" "),d=l.fontWeight==="700"||l.fontWeight==="bold",f=c.includes("line-through"),h=l.fontStyle==="italic",g=c.includes("underline");return{after:C=>(C.length===0&&C.push(p.$createParagraphNode()),C),forChild:(C,y)=>{if(Oe(y)&&!p.$isElementNode(C)){const b=p.$createParagraphNode();return p.$isLineBreakNode(C)&&C.getTextContent()===`
|
|
3
|
-
`?null:(_n(C)&&(d&&C.toggleFormat("bold"),f&&C.toggleFormat("strikethrough"),h&&C.toggleFormat("italic"),g&&C.toggleFormat("underline")),b.append(C),b)}return C},node:o}}function Hr(e,n=1,t){return p.$applyNodeReplacement(new Ur(e,n,t))}function Oe(e){return e instanceof Ur}const Su=p.createCommand("INSERT_TABLE_COMMAND");function jA(e,n){if(n.add(e.getKey()),p.$isElementNode(e))for(const t of e.getChildren())jA(t,n)}function Eu(e){const n=e.getNodes();if(n.length===0)return!1;const t=n[0],r=n[n.length-1];if(p.$isDecoratorNode(t)||p.$isDecoratorNode(r))return!1;const o=p.$createRangeSelection(),s=p.$isElementNode(t)?"element":"text",l=p.$isElementNode(r)?"element":"text";o.anchor.set(t.getKey(),0,s),o.focus.set(r.getKey(),p.$isElementNode(r)?r.getChildrenSize():r.getTextContentSize(),l),p.$setSelection(o)}const Mu=[".ContentEditable__root > *:not(ol):not(ul):not(.dsd__theme__table-scrollable-wrapper):not(.editor-image:not(:has(button))):not(div.video-container):not(div.editor-iframe)",".dsd__theme__table-scrollable-wrapper > table",".editor-image > div.resizable-container > div.resizable-container__inner",".video-container > div.resizable-container > div.resizable-container__inner",".editor-iframe > div.resizable-container > div.resizable-container__inner",".editor-iframe"],Jf=[...Mu,"ul.dsd__theme__ul > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol1 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol2 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol3 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol4 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol5 > li:not(.dsd__theme__nestedListItem)"],U7=[...Mu,"ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li:not(.dsd__theme__nestedListItem)","ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li.dsd__theme__nestedListItem","ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li.dsd__theme__nestedListItem"],H7=[...Mu,"ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li:not(.dsd__theme__nestedListItem)","ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li.dsd__theme__nestedListItem"],Y7=[...Mu,"ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li.dsd__theme__nestedListItem"],Z7=e=>{const n=document.querySelectorAll(".selected-block");if(n.length===0)return;setTimeout(()=>{e.update(()=>{const r=p.$createNodeSelection();n.forEach(o=>{const s=p.$getNearestNodeFromDOMNode(o);s&&jA(s,r)}),p.$setSelection(r)})},100);const t=r=>{const o=!!document.querySelector(".draggable-menu");if(r.button===2||o){r.preventDefault();return}const s=r.target;s.closest(".draggable-block-menu")||s.closest(".draggable-menu")||(n.forEach(l=>{ps(l)}),document.body.removeEventListener("mousedown",t))};setTimeout(()=>{document.body.addEventListener("mousedown",t)}),e.update(()=>{const r=document.querySelector(".ContentEditable__root");r==null||r.focus({preventScroll:!0})})},G7=(e,n,t)=>{var l;const r=n.code==="ArrowUp"||n.code==="ArrowLeft",o=n.code==="ArrowDown"||n.code==="ArrowRight";if(!r&&!o)return!1;const s=t[0];return s?(n.preventDefault(),(l=e.getRootElement())==null||l.focus({preventScroll:!0}),e.update(()=>{var g,C,y,b;const c=p.$getNearestNodeFromDOMNode(s);if(!c)return;const d=r?(g=c.getPreviousSibling)==null?void 0:g.call(c):(C=c.getNextSibling)==null?void 0:C.call(c);if(!d)return;let f=d;for(;p.$isElementNode(f)&&f.getChildrenSize()>0&&(f=r?((y=f.getLastChild)==null?void 0:y.call(f))??f:((b=f.getFirstChild)==null?void 0:b.call(f))??f,f!==d););const h=(r?f==null?void 0:f.selectEnd:f==null?void 0:f.selectStart)||(f==null?void 0:f.select)||(d==null?void 0:d.select);h&&h.call(f||d)}),t.forEach(c=>ps(c)),!0):!1},V7=(e,n,t)=>{var o;const r=t[0];return r?(n.preventDefault(),(o=e.getRootElement())==null||o.focus({preventScroll:!0}),e.update(()=>{const s=p.$getNearestNodeFromDOMNode(r);if(!s||typeof s.insertAfter!="function")return;const l=p.$createParagraphNode();s.insertAfter(l),l.selectStart()}),t.forEach(s=>ps(s)),!0):!1},q7=(e,n,t)=>{const{hasSelectedBlock:r}=Jo(),o=(t==null?void 0:t.getSelectedTargets())||[];return!r||!o.length?!1:n.key==="Backspace"||n.key==="Delete"?(o.forEach(c=>ps(c)),t==null||t.setSelectedTargets([]),!1):n.code==="Enter"&&V7(e,n,o)?(t==null||t.setSelectedTargets([]),!0):G7(e,n,o)?(t==null||t.setSelectedTargets([]),!0):!1},Q7={container:document.body,getScrollPosition:()=>[document.documentElement.scrollLeft,document.documentElement.scrollTop],throttleTime:30,threshold:0},e0=(e,n,t)=>function r(o){if(o instanceof KeyboardEvent&&o.key!=="Backspace"&&o.key!=="Delete"&&o.key!=="Escape")return!1;const s=o.target;s.closest(".draggable-block-menu")||s.closest(".toolbar")||s.closest(".draggable-menu")||(e==null||e.classList.remove(n),t.update(()=>{s.closest(".ContentEditable__root")||p.$setSelection(null),o instanceof KeyboardEvent&&n==="selected-all-document"&&o.key!=="Escape"&&t.update(()=>{var c;(c=p.$getRoot().getFirstChild())==null||c.selectStart()}),o instanceof KeyboardEvent&&n==="selected-all-document"&&o.key==="Escape"&&t.blur()}),setTimeout(()=>{document.body.removeEventListener("mousedown",r),document.removeEventListener("keydown",r)}))},i1=(e,n)=>{var t,r;if(n&&n.block){const{block:o,isCreateEventListener:s}=n,l="selected-block";if(o.classList.add(l),o.classList.remove("selected-block-hidden"),s){const c=e0(o,l,e);document.body.addEventListener("mousedown",c),document.addEventListener("keydown",c)}}else{const o="selected-all-document",s=e0(e._rootElement,o,e);document.body.addEventListener("mousedown",s),document.addEventListener("keydown",s),(t=e._rootElement)==null||t.classList.add(o),(r=e._rootElement)==null||r.classList.remove("selected-block-hidden")}},ps=e=>{e.classList.remove("selected-block"),e.classList.add("selected-block-hidden")},Jl=e=>{e.querySelectorAll(".selected-block").forEach(t=>{ps(t)})},J7=(e,n,t,r,o)=>{var s;if(((s=e.selected[0])==null?void 0:s.tagName)==="LI"){let l=e.added[0];if(!e.added.length&&e.beforeSelected.length>=2){const g=e.beforeSelected[0],C=e.beforeSelected[1],y=g.getBoundingClientRect().top;C.getBoundingClientRect().top<y?l=RA(e.selected[0]):l=e.selected[0]}let d=(l==null?void 0:l.classList.contains("dsd__theme__nestedListItem"))&&e.added.length===0?1:0,f=l,h=null;for(;f;){const g=f.tagName.toUpperCase();if(g==="UL"||g==="OL")h||(h=g.toLowerCase()),d++;else if(g!=="LI")break;f=f.parentElement}if(d!==0&&t.depth!==d){if(!h)return;r({depth:d,targets:X7(d,h)}),setTimeout(()=>{o==null||o.findSelectableTargets(),o==null||o.setSelectedTargets(e.selected)})}}else!t.depth&&e.added.length&&(r({depth:999,targets:U7}),setTimeout(()=>{o==null||o.findSelectableTargets(),o==null||o.setSelectedTargets(e.selected)}));e.added.forEach(l=>{i1(n,{block:l,isCreateEventListener:!1})}),e.removed.forEach(l=>{ps(l)})},Jo=()=>{const e=document.querySelector("div.ContentEditable__root"),n=(e==null?void 0:e.querySelector(".selected-block"))!==null,t=e==null?void 0:e.classList.contains("selected-all-document");return{hasSelectedBlock:n,selectedAllDocument:t}},t0=(e,n,t,r)=>{if(e==="ol"){const o=Array.from({length:n},(d,f)=>`ol.dsd__theme__ol${f+1}`).join(" ");let s="";n===1&&(s=":not(.dsd__theme__nestedListItem ol)");const l=`${o}${s} >`;return t?`${l} li.dsd__theme__nestedListItem`:`${l} li:not(.dsd__theme__nestedListItem)`}else{const o=" ul".repeat(n-1).trim(),s=" ul".repeat(n).trim(),c=`ul.dsd__theme__ul${o?` ${o}`:""}:not(.dsd__theme__nestedListItem ${s}) >`;let d=`${c} li:not(.dsd__theme__nestedListItem)`;return t?`${c} li.dsd__theme__nestedListItem`:d}};function X7(e,n){if(e<1)throw new Error("Depth must be >= 1");const t=[];if(t.push(t0(n,e,!1)),t.push(t0(n,e,!0)),n==="ol"){if(e>1)for(let r=1;r<e;r++)t.push(`ol.dsd__theme__ol${r} > li:not(.dsd__theme__nestedListItem)`);return[...H7,...t]}else if(n==="ul"){if(e>1)for(let r=1;r<e;r++)t.push(`ul.dsd__theme__ul${" ul".repeat(r-1)}:not(.dsd__theme__nestedListItem ${"ul ".repeat(r).trim()}) > li:not(.dsd__theme__nestedListItem):not(:has(ul))`);return[...Y7,...t]}return[...Jf,...t]}function RA(e){const n=e.querySelector("ul, ol");let t=n==null?void 0:n.lastElementChild;for(;t&&t.tagName!=="LI";)t=t.previousElementSibling;return t!=null&&t.classList.contains("dsd__theme__nestedListItem")?RA(t)??t:t}function ko(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}class Pi extends p.ElementNode{constructor(t,r){super(r);Me(this,"__height");this.__height=t}static getType(){return"tablerow"}static clone(t){return new Pi(t.__height,t.__key)}static importDOM(){return{tr:t=>({conversion:$7,priority:0})}}static importJSON(t){return Ba(t.height)}exportJSON(){return{...super.exportJSON(),...this.getHeight()&&{height:this.getHeight()},type:"tablerow",version:1}}createDOM(t){const r=document.createElement("tr");return this.__height&&(r.style.height=`${this.__height}px`),be.addClassNamesToElement(r,t.theme.tableRow),r}isShadowRoot(){return!0}setHeight(t){const r=this.getWritable();return r.__height=t,this.__height}getHeight(){return this.getLatest().__height}updateDOM(t){return t.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function $7(e){const n=e;let t;return Zc.test(n.style.height)&&(t=parseFloat(n.style.height)),{node:Ba(t)}}function Ba(e){return p.$applyNodeReplacement(new Pi(e))}function Ot(e){return e instanceof Pi}function eS(e,n,t=!0){const r=d1();for(let o=0;o<e;o++){const s=Ba();for(let l=0;l<n;l++){let c=kt.NO_STATUS;typeof t=="object"?(o===0&&t.rows&&(c|=kt.ROW),l===0&&t.columns&&(c|=kt.COLUMN)):t&&(o===0&&(c|=kt.ROW),l===0&&(c|=kt.COLUMN));const d=Hr(c),f=p.$createParagraphNode();f.append(os()),d.append(f),s.append(d)}r.append(s)}return r}function IA(e){const n=be.$findMatchingParent(e,t=>Ot(t));if(Ot(n))return n;throw new Error("Expected table cell to be inside of table row.")}function Yn(e){const n=be.$findMatchingParent(e,t=>vt(t));if(vt(n))return n;throw new Error("Expected table cell to be inside of table.")}function Vo(e){const n=IA(e);return Yn(n).getChildren().findIndex(r=>r.is(n))}function qo(e){return IA(e).getChildren().findIndex(t=>t.is(e))}const tS=(e,n)=>e===kt.BOTH||e===n?n:kt.NO_STATUS;function _a(e=!0){const n=p.$getSelection();ot(p.$isRangeSelection(n)||Ct(n),"Expected a RangeSelection or TableSelection");const t=n.focus.getNode(),[r,,o]=kn(t),[s,l]=jr(o,r,r),c=s[0].length,{startRow:d}=l;let f=null;if(e){const h=d+r.__rowSpan-1,g=s[h],C=Ba();for(let b=0;b<c;b++){const{cell:x,startRow:w}=g[b];if(w+x.__rowSpan-1<=h){const T=g[b].cell.__headerState;C.append(Hr(T).append(p.$createParagraphNode()))}else x.setRowSpan(x.__rowSpan+1)}const y=o.getChildAtIndex(h);ot(Ot(y),"focusEndRow is not a TableRowNode"),y.insertAfter(C),f=C}else{const h=s[d],g=Ba();for(let y=0;y<c;y++){const{cell:b,startRow:x}=h[y];if(x===d){const k=h[y].cell.__headerState;g.append(Hr(k).append(p.$createParagraphNode()))}else b.setRowSpan(b.__rowSpan+1)}const C=o.getChildAtIndex(d);ot(Ot(C),"focusEndRow is not a TableRowNode"),C.insertBefore(g),f=g}return f}function Gc(e=!0){const n=p.$getSelection();ot(p.$isRangeSelection(n)||Ct(n),"Expected a RangeSelection or TableSelection");const t=n.anchor.getNode(),r=n.focus.getNode(),[o]=kn(t),[s,,l]=kn(r),[c,d,f]=jr(l,s,o),h=c.length,g=e?Math.max(d.startColumn,f.startColumn):Math.min(d.startColumn,f.startColumn),C=e?g+s.__colSpan-1:g-1,y=l.getFirstChild();ot(Ot(y),"Expected firstTable child to be a row");let b=null;function x(T=kt.NO_STATUS){const D=Hr(T).append(p.$createParagraphNode());return b===null&&(b=D),D}let w=y;e:for(let T=0;T<h;T++){if(T!==0){const I=w.getNextSibling();ot(Ot(I),"Expected row nextSibling to be a row"),w=I}const D=c[T],N=D[C<0?0:C].cell.__headerState,L=tS(N,kt.ROW);if(C<0){a1(w,x(L));continue}const{cell:E,startColumn:M,startRow:O}=D[C];if(M+E.__colSpan-1<=C){let I=E,F=O,_=C;for(;F!==T&&I.__rowSpan>1;)if(_-=E.__colSpan,_>=0){const{cell:j,startRow:K}=D[_];I=j,F=K}else{w.append(x(L));continue e}const R=T?0:L;I.insertAfter(x(R))}else E.setColSpan(E.__colSpan+1)}b!==null&&Fa(b);const k=l.getColWidths();if(k){const T=[...k],D=C<0?0:C,N=T[D];T.splice(D,0,N),l.setColWidths(T)}return b}function DA(){const e=p.$getSelection();ot(p.$isRangeSelection(e)||Ct(e),"Expected a RangeSelection or TableSelection");const[n,t]=e.isBackward()?[e.focus.getNode(),e.anchor.getNode()]:[e.anchor.getNode(),e.focus.getNode()],[r,,o]=kn(n),[s]=kn(t),[l,c,d]=jr(o,r,s),{startRow:f}=c,{startRow:h}=d,g=h+s.__rowSpan-1;if(l.length===g-f+1){o.remove();return}const C=l[0].length,y=l[g+1],b=o.getChildAtIndex(g+1);for(let x=g;x>=f;x--){for(let k=C-1;k>=0;k--){const{cell:T,startRow:D,startColumn:N}=l[x][k];if(N===k&&(x===f&&D<f&&T.setRowSpan(T.__rowSpan-(D-f)),D>=f&&D+T.__rowSpan-1>g))if(T.setRowSpan(T.__rowSpan-(g-D+1)),ot(b!==null,"Expected nextRowNode not to be null"),k===0)a1(b,T);else{const{cell:L}=y[k-1];L.insertAfter(T)}}const w=o.getChildAtIndex(x);ot(Ot(w),"Expected TableNode childAtIndex(%s) to be RowNode",String(x)),w.remove()}if(y!==void 0){const{cell:x}=y[0];Fa(x)}else{const x=l[f-1],{cell:w}=x[0];Fa(w)}}function OA(){const e=p.$getSelection();ot(p.$isRangeSelection(e)||Ct(e),"Expected a RangeSelection or TableSelection");const n=e.anchor.getNode(),t=e.focus.getNode(),[r,,o]=kn(n),[s]=kn(t),[l,c,d]=jr(o,r,s),{startColumn:f}=c,{startRow:h,startColumn:g}=d,C=Math.min(f,g),y=Math.max(f+r.__colSpan-1,g+s.__colSpan-1),b=y-C+1;if(l[0].length===y-C+1){o.selectPrevious(),o.remove();return}const w=l.length;for(let N=0;N<w;N++)for(let L=C;L<=y;L++){const{cell:E,startColumn:M}=l[N][L];if(M<C){if(L===C){const O=C-M;E.setColSpan(E.__colSpan-Math.min(b,E.__colSpan-O))}}else if(M+E.__colSpan-1>y){if(L===y){const O=y-M+1;E.setColSpan(E.__colSpan-O)}}else E.remove()}const k=l[h],T=f>g?k[f+r.__colSpan]:k[g+s.__colSpan];if(T!==void 0){const{cell:N}=T;Fa(N)}else{const N=g<f?k[g-1]:k[f-1],{cell:L}=N;Fa(L)}const D=o.getColWidths();if(D){const N=[...D];N.splice(C,b),o.setColWidths(N)}}function Fa(e){const n=e.getFirstDescendant();n==null?e.selectStart():n.getParentOrThrow().selectStart()}function a1(e,n){const t=e.getFirstChild();t!==null?t.insertBefore(n):e.append(n)}function n0(){const e=p.$getSelection();ot(p.$isRangeSelection(e)||Ct(e),"Expected a RangeSelection or TableSelection");const n=e.anchor.getNode(),[t,r,o]=kn(n),s=t.__colSpan,l=t.__rowSpan;if(s===1&&l===1)return;const[c,d]=jr(o,t,t),{startColumn:f,startRow:h}=d,g=t.__headerState&kt.COLUMN,C=Array.from({length:s},(x,w)=>{let k=g;for(let T=0;k!==0&&T<c.length;T++)k&=c[T][w+f].cell.__headerState;return k}),y=t.__headerState&kt.ROW,b=Array.from({length:l},(x,w)=>{let k=y;for(let T=0;k!==0&&T<c[0].length;T++)k&=c[w+h][T].cell.__headerState;return k});if(s>1){for(let x=1;x<s;x++)t.insertAfter(Hr(C[x]|b[0]).append(p.$createParagraphNode()));t.setColSpan(1)}if(l>1){let x;for(let w=1;w<l;w++){const k=h+w,T=c[k];x=(x||r).getNextSibling(),ot(Ot(x),"Expected row next sibling to be a row");let D=null;for(let N=0;N<f;N++){const L=T[N],E=L.cell;L.startRow===k&&(D=E),E.__colSpan>1&&(N+=E.__colSpan-1)}if(D===null)for(let N=s-1;N>=0;N--)a1(x,Hr(C[N]|b[w]).append(p.$createParagraphNode()));else for(let N=s-1;N>=0;N--)D.insertAfter(Hr(C[N]|b[w]).append(p.$createParagraphNode()))}t.setRowSpan(1)}}function jr(e,n,t){const[r,o,s]=PA(e,n,t);return ot(o!==null,"Anchor not found in Table"),ot(s!==null,"Focus not found in Table"),[r,o,s]}function PA(e,n,t){const r=[];let o=null,s=null;function l(d){let f=r[d];return f===void 0&&(r[d]=f=[]),f}const c=e.getChildren();for(let d=0;d<c.length;d++){const f=c[d];ot(Ot(f),"Expected TableNode children to be TableRowNode");for(let h=f.getFirstChild(),g=0;h!=null;h=h.getNextSibling()){ot(Oe(h),"Expected TableRowNode children to be TableCellNode");const C=l(d);for(;C[g]!==void 0;)g++;const y={cell:h,startColumn:g,startRow:d},{__rowSpan:b,__colSpan:x}=h;for(let w=0;w<b&&!(d+w>=c.length);w++){const k=l(d+w);for(let T=0;T<x;T++)k[g+T]=y}n!==null&&o===null&&n.is(h)&&(o=y),t!==null&&s===null&&t.is(h)&&(s=y)}}return[r,o,s]}function kn(e){let n;if(e instanceof Ur)n=e;else if("__type"in e){const o=be.$findMatchingParent(e,Oe);ot(Oe(o),"Expected to find a parent TableCellNode"),n=o}else{const o=be.$findMatchingParent(e.getNode(),Oe);ot(Oe(o),"Expected to find a parent TableCellNode"),n=o}const t=n.getParent();ot(Ot(t),"Expected TableCellNode to have a parent TableRowNode");const r=t.getParent();return ot(vt(r),"Expected TableRowNode to have a parent TableNode"),[n,t,r]}function r0(e){const[n,,t]=kn(e),r=t.getChildren(),o=r.length,s=r[0].getChildren().length,l=new Array(o);for(let c=0;c<o;c++)l[c]=new Array(s);for(let c=0;c<o;c++){const f=r[c].getChildren();let h=0;for(let g=0;g<f.length;g++){for(;l[c][h];)h++;const C=f[g],y=C.__rowSpan||1,b=C.__colSpan||1;for(let x=0;x<y;x++)for(let w=0;w<b;w++)l[c+x][h+w]=C;if(n===C)return{colSpan:b,columnIndex:h,rowIndex:c,rowSpan:y};h+=b}}return null}class Tu{constructor(n,t,r){Me(this,"tableKey");Me(this,"anchor");Me(this,"focus");Me(this,"_cachedNodes");Me(this,"dirty");this.anchor=t,this.focus=r,t._selection=this,r._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=n}getStartEndPoints(){return[this.anchor,this.focus]}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(n){this._cachedNodes=n}is(n){return Ct(n)?this.tableKey===n.tableKey&&this.anchor.is(n.anchor)&&this.focus.is(n.focus):!1}set(n,t,r){this.dirty=!0,this.tableKey=n,this.anchor.key=t,this.focus.key=r,this._cachedNodes=null}clone(){return new Tu(this.tableKey,this.anchor,this.focus)}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(n){}insertText(){}hasFormat(n){let t=0;this.getNodes().filter(Oe).forEach(s=>{const l=s.getFirstChild();p.$isParagraphNode(l)&&(t|=l.getTextFormat())});const o=p.TEXT_TYPE_TO_FORMAT[n];return(t&o)!==0}insertNodes(n){const t=this.focus.getNode();ot(p.$isElementNode(t),"Expected TableSelection focus to be an ElementNode"),p.$normalizeSelection__EXPERIMENTAL(t.select(0,t.getChildrenSize())).insertNodes(n)}getShape(){const n=p.$getNodeByKey(this.anchor.key);ot(Oe(n),"Expected TableSelection anchor to be (or a child of) TableCellNode");const t=r0(n);ot(t!==null,"getCellRect: expected to find AnchorNode");const r=p.$getNodeByKey(this.focus.key);ot(Oe(r),"Expected TableSelection focus to be (or a child of) TableCellNode");const o=r0(r);ot(o!==null,"getCellRect: expected to find focusCellNode");const s=Math.min(t.columnIndex,o.columnIndex),l=Math.max(t.columnIndex+t.colSpan-1,o.columnIndex+o.colSpan-1),c=Math.min(t.rowIndex,o.rowIndex),d=Math.max(t.rowIndex+t.rowSpan-1,o.rowIndex+o.rowSpan-1);return{fromX:Math.min(s,l),fromY:Math.min(c,d),toX:Math.max(s,l),toY:Math.max(c,d)}}getNodes(){const n=this._cachedNodes;if(n!==null)return n;const t=this.anchor.getNode(),r=this.focus.getNode(),o=be.$findMatchingParent(t,Oe),s=be.$findMatchingParent(r,Oe);ot(Oe(o),"Expected TableSelection anchor to be (or a child of) TableCellNode"),ot(Oe(s),"Expected TableSelection focus to be (or a child of) TableCellNode");const l=o.getParent();ot(Ot(l),"Expected anchorCell to have a parent TableRowNode");const c=l.getParent();ot(vt(c),"Expected tableNode to have a parent TableNode");const d=s.getParents()[1];if(d!==c){if(c.isParentOf(s)){const O=d.getParent();ot(O!=null,"Expected focusCellParent to have a parent"),this.set(this.tableKey,s.getKey(),O.getKey())}else{const O=c.getParent();ot(O!=null,"Expected gridParent to have a parent"),this.set(this.tableKey,O.getKey(),s.getKey())}return this.getNodes()}const[f,h,g]=jr(c,o,s);let C=Math.min(h.startColumn,g.startColumn),y=Math.min(h.startRow,g.startRow),b=Math.max(h.startColumn+h.cell.__colSpan-1,g.startColumn+g.cell.__colSpan-1),x=Math.max(h.startRow+h.cell.__rowSpan-1,g.startRow+g.cell.__rowSpan-1),w=C,k=y,T=C,D=y;function N(O){const{cell:I,startColumn:F,startRow:_}=O;C=Math.min(C,F),y=Math.min(y,_),b=Math.max(b,F+I.__colSpan-1),x=Math.max(x,_+I.__rowSpan-1)}for(;C<w||y<k||b>T||x>D;){if(C<w){const O=D-k,I=w-1;for(let F=0;F<=O;F++)N(f[k+F][I]);w=I}if(y<k){const O=T-w,I=k-1;for(let F=0;F<=O;F++)N(f[I][w+F]);k=I}if(b>T){const O=D-k,I=T+1;for(let F=0;F<=O;F++)N(f[k+F][I]);T=I}if(x>D){const O=T-w,I=D+1;for(let F=0;F<=O;F++)N(f[I][w+F]);D=I}}const L=new Map([[c.getKey(),c]]);let E=null;for(let O=y;O<=x;O++)for(let I=C;I<=b;I++){const{cell:F}=f[O][I],_=F.getParent();ot(Ot(_),"Expected TableCellNode parent to be a TableRowNode"),_!==E&&L.set(_.getKey(),_),L.set(F.getKey(),F);for(const R of nS(F))L.set(R.getKey(),R);E=_}const M=Array.from(L.values());return p.isCurrentlyReadOnlyMode()||(this._cachedNodes=M),M}getTextContent(){const n=this.getNodes().filter(r=>Oe(r));let t="";for(let r=0;r<n.length;r++){const o=n[r],s=o.__parent,l=(n[r+1]||{}).__parent;t+=o.getTextContent()+(l!==s?`
|
|
4
|
-
`:" ")}return t}}function Ct(e){return e instanceof Tu}function o0(){const e=p.$createPoint("root",0,"element"),n=p.$createPoint("root",0,"element");return new Tu("root",e,n)}function nS(e){const n=[],t=[e];for(;t.length>0;){const r=t.pop();ot(r!==void 0,"Stack.length > 0; can't be undefined"),p.$isElementNode(r)&&t.unshift(...r.getChildren()),r!==e&&n.push(r)}return n}function BA(e,n=p.$getEditor()){const t=p.$getNodeByKey(e);ot(vt(t),"TableObserver: Expected tableNodeKey %s to be a TableNode",e);const r=Bs(t,n.getElementByKey(e));return ot(r!==null,"TableObserver: Expected to find TableElement in DOM for key %s",e),{tableElement:r,tableNode:t}}class rS{constructor(n,t){Me(this,"focusX");Me(this,"focusY");Me(this,"listenersToRemove");Me(this,"table");Me(this,"isHighlightingCells");Me(this,"anchorX");Me(this,"anchorY");Me(this,"tableNodeKey");Me(this,"anchorCell");Me(this,"focusCell");Me(this,"anchorCellNodeKey");Me(this,"focusCellNodeKey");Me(this,"editor");Me(this,"tableSelection");Me(this,"hasHijackedSelectionStyles");Me(this,"isSelecting");Me(this,"shouldCheckSelection");Me(this,"abortController");Me(this,"listenerOptions");this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=t,this.editor=n,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(n=>n()),this.listenersToRemove.clear()}$lookup(){return BA(this.tableNodeKey,this.editor)}trackTable(){const n=new MutationObserver(t=>{this.editor.getEditorState().read(()=>{let r=!1;for(let o=0;o<t.length;o++){const c=t[o].target.nodeName;if(c==="TABLE"||c==="TBODY"||c==="THEAD"||c==="TR"){r=!0;break}}if(r)try{const{tableNode:o,tableElement:s}=this.$lookup();this.table=Aa(o,s)}catch{}},{editor:this.editor})});this.editor.getEditorState().read(()=>{const{tableNode:t,tableElement:r}=this.$lookup();this.table=Aa(t,r),n.observe(r,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}clearHighlight(){const n=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.enableHighlightStyle(),n.update(()=>{const{tableNode:t,tableElement:r}=this.$lookup(),o=Aa(t,r);Xl(n,o,null),p.$setSelection(null),n.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0)})}enableHighlightStyle(){const n=this.editor;n.getEditorState().read(()=>{const{tableElement:t}=this.$lookup();be.removeClassNamesFromElement(t,n._config.theme.tableSelection),t.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1},{editor:n})}disableHighlightStyle(){const n=this.editor;n.getEditorState().read(()=>{const{tableElement:t}=this.$lookup();be.addClassNamesToElement(t,n._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0},{editor:n})}updateTableTableSelection(n){if(n!==null&&n.tableKey===this.tableNodeKey){const t=this.editor;this.tableSelection=n,this.isHighlightingCells=!0,this.disableHighlightStyle(),Xl(t,this.table,this.tableSelection)}else n==null?this.clearHighlight():(this.tableNodeKey=n.tableKey,this.updateTableTableSelection(n))}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return this.shouldCheckSelection?(this.shouldCheckSelection=!1,!0):!1}setFocusCellForSelection(n,t=!1){const r=this.editor;r.update(()=>{const{tableNode:o}=this.$lookup(),s=n.x,l=n.y;if(this.focusCell=n,this.anchorCell!==null){const c=_A(r._window);c&&c.setBaseAndExtent(this.anchorCell.elem,0,this.focusCell.elem,0)}if(!this.isHighlightingCells&&(this.anchorX!==s||this.anchorY!==l||t))this.isHighlightingCells=!0,this.disableHighlightStyle();else if(s===this.focusX&&l===this.focusY)return;if(this.focusX=s,this.focusY=l,this.isHighlightingCells){const c=p.$getNearestNodeFromDOMNode(n.elem);if(this.tableSelection!=null&&this.anchorCellNodeKey!=null&&Oe(c)&&o.is(fi(c))){const d=c.getKey();this.tableSelection=this.tableSelection.clone()||o0(),this.focusCellNodeKey=d,this.tableSelection.set(this.tableNodeKey,this.anchorCellNodeKey,this.focusCellNodeKey),p.$setSelection(this.tableSelection),r.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0),Xl(r,this.table,this.tableSelection)}}})}setAnchorCellForSelection(n){this.isHighlightingCells=!1,this.anchorCell=n,this.anchorX=n.x,this.anchorY=n.y,this.editor.update(()=>{const t=p.$getNearestNodeFromDOMNode(n.elem);if(Oe(t)){const r=t.getKey();this.tableSelection=this.tableSelection!=null?this.tableSelection.clone():o0(),this.anchorCellNodeKey=r}})}formatCells(n){this.editor.update(()=>{const t=p.$getSelection();Ct(t)||ot(!1,"Expected grid selection");const r=p.$createRangeSelection(),o=r.anchor,s=r.focus,l=t.getNodes().filter(Oe),c=l[0].getFirstChild(),d=p.$isParagraphNode(c)?c.getFormatFlags(n,null):null;l.forEach(f=>{o.set(f.getKey(),0,"element"),s.set(f.getKey(),f.getChildrenSize(),"element"),r.formatText(n,d)}),p.$setSelection(t),this.editor.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0)})}clearText(){const n=this.editor;n.update(()=>{const t=p.$getNodeByKey(this.tableNodeKey);if(!vt(t))throw new Error("Expected TableNode.");const r=p.$getSelection();Ct(r)||ot(!1,"Expected grid selection");const o=r.getNodes().filter(Oe);if(o.length===this.table.columns*this.table.rows){t.selectPrevious(),t.remove(),p.$getRoot().selectStart();return}o.forEach(s=>{if(p.$isElementNode(s)){const l=p.$createParagraphNode(),c=os();l.append(c),s.append(l),s.getChildren().forEach(d=>{d!==l&&d.remove()})}}),Xl(n,this.table,null),p.$setSelection(null),n.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0)})}}const l1="__lexicalTableSelection",_A=e=>Di?(e||window).getSelection():null,oS=e=>(e.buttons&1)===1;function Bs(e,n){if(!n)return n;const t=n.nodeName==="TABLE"?n:e.getDOMSlot(n).element;return ot(t.nodeName==="TABLE","getTableElement: Expecting table in as DOM node for TableNode, not %s",n.nodeName),t}function sS(e,n,t,r){const o=t.getRootElement();if(o===null)throw new Error("No root element.");const s=new rS(t,e.getKey()),l=t._window||window,c=Bs(e,n);aS(c,s),s.listenersToRemove.add(()=>iS(c,s));const d=()=>{const b=()=>{s.isSelecting=!1,l.removeEventListener("mouseup",b),l.removeEventListener("mousemove",x)},x=du.debounce(w=>{setTimeout(()=>{if(!oS(w)&&s.isSelecting){s.isSelecting=!1,l.removeEventListener("mouseup",b),l.removeEventListener("mousemove",x);return}const k=Vc(w.target);k!==null&&(s.anchorX!==k.x||s.anchorY!==k.y)&&(w.preventDefault(),s.setFocusCellForSelection(k))},0)},20);return{onMouseMove:x,onMouseUp:b}},f=b=>{setTimeout(()=>{if(b.button!==0||!l)return;const x=Vc(b.target);x!==null&&(ko(b),s.setAnchorCellForSelection(x));const{onMouseUp:w,onMouseMove:k}=d();s.isSelecting=!0,l.addEventListener("mouseup",w,s.listenerOptions),l.addEventListener("mousemove",k,s.listenerOptions)},0)};c.addEventListener("mousedown",f,s.listenerOptions);const h=b=>{b.button===0&&t.update(()=>{const x=p.$getSelection(),w=b.target;Ct(x)&&x.tableKey===s.tableNodeKey&&o.contains(w)&&s.clearHighlight()})};l.addEventListener("mousedown",h,s.listenerOptions),s.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_DOWN_COMMAND,b=>ia(t,b,"down",e,s),p.COMMAND_PRIORITY_HIGH)),s.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_UP_COMMAND,b=>ia(t,b,"up",e,s),p.COMMAND_PRIORITY_HIGH)),s.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_LEFT_COMMAND,b=>ia(t,b,"backward",e,s),p.COMMAND_PRIORITY_HIGH)),s.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_RIGHT_COMMAND,b=>ia(t,b,"forward",e,s),p.COMMAND_PRIORITY_HIGH));const g=b=>()=>{const x=p.$getSelection();if(!Ms(x,e))return!1;if(Ct(x))return s.clearText(),!0;if(p.$isRangeSelection(x)){const w=be.$findMatchingParent(x.anchor.getNode(),O=>Oe(O));if(!Oe(w))return!1;const k=x.anchor.getNode(),T=x.focus.getNode(),D=e.isParentOf(k),N=e.isParentOf(T);if(D&&!N||N&&!D)return s.clearText(),!0;const E=be.$findMatchingParent(x.anchor.getNode(),O=>p.$isElementNode(O)),M=E&&be.$findMatchingParent(E,O=>p.$isElementNode(O)&&Oe(O.getParent()));if(!p.$isElementNode(M)||!p.$isElementNode(E))return!1;if(b===p.DELETE_LINE_COMMAND&&M.getPreviousSibling()===null)return!0}return!1};[p.DELETE_WORD_COMMAND,p.DELETE_LINE_COMMAND,p.DELETE_CHARACTER_COMMAND].forEach(b=>{s.listenersToRemove.add(t.registerCommand(b,g(b),p.COMMAND_PRIORITY_CRITICAL))});const C=b=>{const x=p.$getSelection();if(!(Ct(x)||p.$isRangeSelection(x)))return!1;const w=e.isParentOf(x.anchor.getNode()),k=e.isParentOf(x.focus.getNode());if(w!==k){const T=w?"anchor":"focus",D=w?"focus":"anchor",{key:N,offset:L,type:E}=x[D];return e[x[T].isBefore(x[D])?"selectPrevious":"selectNext"]()[D].set(N,L,E),!1}return Ct(x)?(b&&(b.preventDefault(),b.stopPropagation()),s.clearText(),!0):!1};s.listenersToRemove.add(t.registerCommand(p.KEY_BACKSPACE_COMMAND,C,p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.KEY_DELETE_COMMAND,C,p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.CUT_COMMAND,b=>{const x=p.$getSelection();if(x){if(!(Ct(x)||p.$isRangeSelection(x)))return!1;Ma.copyToClipboard(t,be.objectKlassEquals(b,ClipboardEvent)?b:null,Ma.$getClipboardDataFromSelection(x));const w=C(b);return p.$isRangeSelection(x)?(x.removeText(),!0):w}return!1},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.FORMAT_TEXT_COMMAND,b=>{const x=p.$getSelection();if(!Ms(x,e))return!1;if(Ct(x))return s.formatCells(b),!0;if(p.$isRangeSelection(x)){const w=be.$findMatchingParent(x.anchor.getNode(),k=>Oe(k));if(!Oe(w))return!1}return!1},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.FORMAT_ELEMENT_COMMAND,b=>{const x=p.$getSelection();if(!Ct(x)||!Ms(x,e))return!1;const w=x.anchor.getNode(),k=x.focus.getNode();if(!Oe(w)||!Oe(k))return!1;const[T,D,N]=jr(e,w,k),L=Math.max(D.startRow,N.startRow),E=Math.max(D.startColumn,N.startColumn),M=Math.min(D.startRow,N.startRow),O=Math.min(D.startColumn,N.startColumn);for(let I=M;I<=L;I++)for(let F=O;F<=E;F++){const _=T[I][F].cell;_.setFormat(b);const R=_.getChildren();for(let j=0;j<R.length;j++){const K=R[j];p.$isElementNode(K)&&!K.isInline()&&K.setFormat(b)}}return!0},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.CONTROLLED_TEXT_INSERTION_COMMAND,b=>{const x=p.$getSelection(),w=x==null?void 0:x.getNodes(),k=Oe(w[1]),T=p.$getRoot(),D=t._keyToDOMMap.size-1===(x==null?void 0:x.getNodes().length);if(k&&t.update(()=>{const N=p.$createParagraphNode(),L=os(b);N.append(L),w.forEach(E=>{if(!vt(E))return;const M=E.getPreviousSibling(),O=E.getNextSibling();M?M.insertAfter(N,!0):O&&O.insertBefore(N).selectEnd(),E.remove()}),D&&(T.clear(),x.insertText(b))}),!Ms(x,e))return!1;if(Ct(x))return s.clearHighlight(),!1;if(p.$isRangeSelection(x)){const N=be.$findMatchingParent(x.anchor.getNode(),L=>Oe(L));if(!Oe(N))return!1;if(typeof b=="string"){const L=a0(t,x,e);if(L)return i0(L,e,[os(b)]),!0}}return!1},p.COMMAND_PRIORITY_CRITICAL)),r&&s.listenersToRemove.add(t.registerCommand(p.KEY_TAB_COMMAND,b=>{const x=p.$getSelection();if(!p.$isRangeSelection(x)||!x.isCollapsed()||!Ms(x,e))return!1;const w=ec(x.anchor.getNode());if(w===null)return!1;ko(b);const k=e.getCordsFromCellNode(w,s.table);return FA(s,e,k.x,k.y,b.shiftKey?"backward":"forward"),!0},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.FOCUS_COMMAND,b=>e.isSelected(),p.COMMAND_PRIORITY_HIGH));function y(b){const x=e.getCordsFromCellNode(b,s.table);return e.getDOMCellFromCordsOrThrow(x.x,x.y,s.table)}return s.listenersToRemove.add(t.registerCommand(p.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,b=>{const{nodes:x,selection:w}=b,k=w.focus.getNode().getParent();if(Oe(k)&&x.length>0){const T=x[0];if(vt(T)){const D=T.getFirstChild();return D&&D.getChildrenSize(),!0}}return!1},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.SELECTION_CHANGE_COMMAND,()=>{const b=p.$getSelection(),x=p.$getPreviousSelection();if(s.getAndClearShouldCheckSelection()&&p.$isRangeSelection(x)&&p.$isRangeSelection(b)&&b.isCollapsed()){const T=b.anchor.getNode(),D=e.getFirstChild(),N=ec(T);if(N!==null&&Ot(D)){const L=D.getFirstChild();if(Oe(L)&&!be.$findMatchingParent(N,E=>E.is(L)))return L.selectStart(),!0}}const{hasSelectedBlock:w,selectedAllDocument:k}=Jo();if(p.$isRangeSelection(b)){const{anchor:T,focus:D}=b,N=T.getNode(),L=D.getNode(),E=ec(N),M=ec(L),O=!!(E&&e.is(fi(E))),I=!!(M&&e.is(fi(M))),F=O!==I,_=O&&I,R=b.isBackward();if(F){const j=b.clone();if(I){const[K]=jr(e,M,M),W=K[0][0].cell,B=K[K.length-1].at(-1).cell;j.focus.set(R?W.getKey():B.getKey(),R?W.getChildrenSize():B.getChildrenSize(),"element")}else if(O){const[K]=jr(e,E,E),W=K[0][0].cell,B=K[K.length-1].at(-1).cell;j.anchor.set(R?B.getKey():W.getKey(),R?B.getChildrenSize():0,"element")}p.$setSelection(j),!w&&!k&&s0(t,s)}else _&&(E.is(M)||(s.setAnchorCellForSelection(y(E)),s.setFocusCellForSelection(y(M),!0),s.isSelecting||setTimeout(()=>{const{onMouseUp:j,onMouseMove:K}=d();s.isSelecting=!0,l.addEventListener("mouseup",j),l.addEventListener("mousemove",K)},0)))}else if(b&&Ct(b)&&b.is(x)&&b.tableKey===e.getKey()){const T=_A(t._window);if(T&&T.anchorNode&&T.focusNode){const D=p.$getNearestNodeFromDOMNode(T.focusNode),N=D&&!e.is(fi(D)),L=p.$getNearestNodeFromDOMNode(T.anchorNode),E=L&&e.is(fi(L));if(N&&E&&T.rangeCount>0){const M=p.$createRangeSelectionFromDom(T,t);M&&(M.anchor.set(e.getKey(),b.isBackward()?e.getChildrenSize():0,"element"),T.removeAllRanges(),p.$setSelection(M))}}}return b&&!b.is(x)&&(Ct(b)||Ct(x))&&s.tableSelection&&!s.tableSelection.is(x)?(Ct(b)&&b.tableKey===s.tableNodeKey?s.updateTableTableSelection(b):!Ct(b)&&Ct(x)&&x.tableKey===s.tableNodeKey&&s.updateTableTableSelection(null),!1):(s.hasHijackedSelectionStyles&&!e.isSelected()?lS(t,s):!s.hasHijackedSelectionStyles&&e.isSelected()&&!w&&!k&&s0(t,s),!1)},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>{const b=p.$getSelection();if(!p.$isRangeSelection(b)||!b.isCollapsed()||!Ms(b,e))return!1;const x=a0(t,b,e);return x?(i0(x,e),!0):!1},p.COMMAND_PRIORITY_CRITICAL)),s}function iS(e,n){c1(e)===n&&delete e[l1]}function aS(e,n){ot(c1(e)===null,"tableElement already has an attached TableObserver"),e[l1]=n}function c1(e){return e[l1]||null}function Vc(e){let n=e;for(;n!=null;){const t=n.nodeName;if(t==="TD"||t==="TH"){const r=n._cell;return r===void 0?null:r}n=n.parentNode}return null}function Aa(e,n){const t=Bs(e,n),r=[],o={columns:0,domRows:r,rows:0};let s=t.querySelector("tr"),l=0,c=0;for(r.length=0;s!=null;){const d=s.nodeName;if(d==="TD"||d==="TH"){const g=s,C={elem:g,hasBackgroundColor:g.style.backgroundColor!=="",highlighted:!1,x:l,y:c};s._cell=C;let y=r[c];y===void 0&&(y=r[c]=[]),y[l]=C}else{const g=s.firstChild;if(g!=null){s=g;continue}}const f=s.nextSibling;if(f!=null){l++,s=f;continue}const h=s.parentNode;if(h!=null){const g=h.nextSibling;if(g==null)break;c++,l=0,s=g}}return o.columns=l+1,o.rows=c+1,o}function Xl(e,n,t){const r=new Set(t?t.getNodes():[]);u1(n,(o,s)=>{const l=o.elem;r.has(s)?(o.highlighted=!0,zA(e,o)):(o.highlighted=!1,KA(e,o),l.getAttribute("style")||l.removeAttribute("style"))})}function u1(e,n){const{domRows:t}=e;for(let r=0;r<t.length;r++){const o=t[r];if(o)for(let s=0;s<o.length;s++){const l=o[s];if(!l)continue;const c=p.$getNearestNodeFromDOMNode(l.elem);c!==null&&n(l,c,{x:s,y:r})}}}function s0(e,n){n.disableHighlightStyle(),u1(n.table,t=>{t.highlighted=!0,zA(e,t)})}function lS(e,n){n.enableHighlightStyle(),u1(n.table,t=>{const r=t.elem;t.highlighted=!1,KA(e,t),r.getAttribute("style")||r.removeAttribute("style")})}const FA=(e,n,t,r,o)=>{const s=o==="forward";switch(o){case"backward":case"forward":return t!==(s?e.table.columns-1:0)?$l(n.getCellNodeFromCordsOrThrow(t+(s?1:-1),r,e.table),s):r!==(s?e.table.rows-1:0)?$l(n.getCellNodeFromCordsOrThrow(s?0:e.table.columns-1,r+(s?1:-1),e.table),s):s?n.selectNext():n.selectPrevious(),!0;case"up":return r!==0?$l(n.getCellNodeFromCordsOrThrow(t,r-1,e.table),!1):n.selectPrevious(),!0;case"down":return r!==e.table.rows-1?$l(n.getCellNodeFromCordsOrThrow(t,r+1,e.table),!0):n.selectNext(),!0;default:return!1}},cS=(e,n,t,r,o)=>{const s=o==="forward";switch(o){case"backward":case"forward":return t!==(s?e.table.columns-1:0)&&e.setFocusCellForSelection(n.getDOMCellFromCordsOrThrow(t+(s?1:-1),r,e.table)),!0;case"up":return r!==0?(e.setFocusCellForSelection(n.getDOMCellFromCordsOrThrow(t,r-1,e.table)),!0):!1;case"down":return r!==e.table.rows-1?(e.setFocusCellForSelection(n.getDOMCellFromCordsOrThrow(t,r+1,e.table)),!0):!1;default:return!1}};function Ms(e,n){if(p.$isRangeSelection(e)||Ct(e)){const t=n.isParentOf(e.anchor.getNode()),r=n.isParentOf(e.focus.getNode());return t&&r}return!1}function $l(e,n){n?e.selectStart():e.selectEnd()}const uf="172,206,247";let WA=!1;function ra(e){WA=e}function zA(e,n){const t=n.elem,r=p.$getNearestNodeFromDOMNode(t);if(ot(Oe(r),"Expected to find LexicalNode from Table Cell DOMNode"),WA){t.style.setProperty("caret-color","transparent");return}r.getBackgroundColor()===null?t.style.setProperty("background-color",`rgb(${uf})`):t.style.setProperty("background-image",`linear-gradient(to right, rgba(${uf},0.85), rgba(${uf},0.85))`),t.style.setProperty("caret-color","transparent")}function KA(e,n){const t=n.elem,r=p.$getNearestNodeFromDOMNode(t);ot(Oe(r),"Expected to find LexicalNode from Table Cell DOMNode"),r.getBackgroundColor()===null&&t.style.removeProperty("background-color"),t.style.removeProperty("background-image"),t.style.removeProperty("caret-color")}function ec(e){const n=be.$findMatchingParent(e,Oe);return Oe(n)?n:null}function fi(e){const n=be.$findMatchingParent(e,vt);return vt(n)?n:null}function ia(e,n,t,r,o){if((t==="up"||t==="down")&&uS(e))return!1;const s=p.$getSelection();if(!Ms(s,r)){if(p.$isRangeSelection(s)){if(s.isCollapsed()&&t==="backward"){const l=s.anchor.type,c=s.anchor.offset;if(l!=="element"&&!(l==="text"&&c===0))return!1;const d=s.anchor.getNode();if(!d)return!1;const f=be.$findMatchingParent(d,g=>p.$isElementNode(g)&&!g.isInline());if(!f)return!1;const h=f.getPreviousSibling();return!h||!vt(h)?!1:(ko(n),h.selectEnd(),!0)}else if(n.shiftKey&&(t==="up"||t==="down")){const l=s.focus.getNode();if(!s.isCollapsed()&&(t==="up"&&!s.isBackward()||t==="down"&&s.isBackward())){let d=be.$findMatchingParent(l,y=>vt(y));if(Oe(d)&&(d=be.$findMatchingParent(d,vt)),d!==r||!d)return!1;const f=t==="down"?d.getNextSibling():d.getPreviousSibling();if(!f)return!1;let h=0;t==="up"&&p.$isElementNode(f)&&(h=f.getChildrenSize());let g=f;if(t==="up"&&p.$isElementNode(f)){const y=f.getLastChild();g=y||f,h=_n(g)?g.getTextContentSize():0}const C=s.clone();return C.focus.set(g.getKey(),h,_n(g)?"text":"element"),p.$setSelection(C),ko(n),!0}else if(p.$isRootOrShadowRoot(l)){const d=t==="up"?s.getNodes()[s.getNodes().length-1]:s.getNodes()[0];if(d){const f=be.$findMatchingParent(d,Oe);if(f&&r.isParentOf(f)){const h=r.getFirstDescendant(),g=r.getLastDescendant();if(!h||!g)return!1;const[C]=kn(h),[y]=kn(g),b=r.getCordsFromCellNode(C,o.table),x=r.getCordsFromCellNode(y,o.table),w=r.getDOMCellFromCordsOrThrow(b.x,b.y,o.table),k=r.getDOMCellFromCordsOrThrow(x.x,x.y,o.table);return o.setAnchorCellForSelection(w),o.setFocusCellForSelection(k,!0),!0}}return!1}else{let d=be.$findMatchingParent(l,h=>p.$isElementNode(h)&&!h.isInline());if(Oe(d)&&(d=be.$findMatchingParent(d,vt)),!d)return!1;const f=t==="down"?d.getNextSibling():d.getPreviousSibling();if(vt(f)&&o.tableNodeKey===f.getKey()){const h=f.getFirstDescendant(),g=f.getLastDescendant();if(!h||!g)return!1;const[C]=kn(h),[y]=kn(g),b=s.clone();return b.focus.set((t==="up"?C:y).getKey(),t==="up"?0:y.getChildrenSize(),"element"),ko(n),p.$setSelection(b),!0}}}}return t==="down"&&UA(e)&&o.setShouldCheckSelection(),!1}if(p.$isRangeSelection(s)&&s.isCollapsed()){const{anchor:l,focus:c}=s,d=be.$findMatchingParent(l.getNode(),Oe),f=be.$findMatchingParent(c.getNode(),Oe);if(!Oe(d)||!d.is(f))return!1;const h=fi(d);if(h!==r&&h!=null){const T=Bs(h,e.getElementByKey(h.getKey()));if(T!=null)return o.table=Aa(h,T),ia(e,n,t,h,o)}if(t==="backward"||t==="forward"){const T=l.type,D=l.offset,N=l.getNode();if(!N)return!1;const L=s.getNodes();return L.length===1&&p.$isDecoratorNode(L[0])?!1:dS(T,D,N,t)?pS(n,N,r,t):!1}const g=e.getElementByKey(d.__key),C=e.getElementByKey(l.key);if(C==null||g==null)return!1;let y;if(l.type==="element")y=C.getBoundingClientRect();else{const T=window.getSelection();if(T===null||T.rangeCount===0)return!1;y=T.getRangeAt(0).getBoundingClientRect()}const b=t==="up"?d.getFirstChild():d.getLastChild();if(b==null)return!1;const x=e.getElementByKey(b.__key);if(x==null)return!1;const w=x.getBoundingClientRect();if(t==="up"?w.top>y.top-y.height:y.bottom+y.height>w.bottom){ko(n);const T=r.getCordsFromCellNode(d,o.table);if(n.shiftKey){const D=r.getDOMCellFromCordsOrThrow(T.x,T.y,o.table);o.setAnchorCellForSelection(D),o.setFocusCellForSelection(D,!0)}else return FA(o,r,T.x,T.y,t);return!0}}else if(Ct(s)){const{anchor:l,focus:c}=s,d=be.$findMatchingParent(l.getNode(),Oe),f=be.$findMatchingParent(c.getNode(),Oe),[h]=s.getNodes();ot(vt(h),"$handleArrowKey: TableSelection.getNodes()[0] expected to be TableNode");const g=Bs(h,e.getElementByKey(h.getKey()));if(!Oe(d)||!Oe(f)||!vt(h)||g==null)return!1;o.updateTableTableSelection(s);const C=Aa(h,g),y=r.getCordsFromCellNode(d,C),b=r.getDOMCellFromCordsOrThrow(y.x,y.y,C);if(o.setAnchorCellForSelection(b),ko(n),n.shiftKey){const x=r.getCordsFromCellNode(f,C);return cS(o,h,x.x,x.y,t)}else f.selectEnd();return!0}return!1}function uS(e){const n=e.getRootElement();return n?n.hasAttribute("aria-controls")&&n.getAttribute("aria-controls")==="typeahead-menu":!1}function dS(e,n,t,r){return fS(e,t,r)||hS(e,n,t,r)}function fS(e,n,t){return e==="element"&&(t==="backward"?n.getPreviousSibling()===null:n.getNextSibling()===null)}function hS(e,n,t,r){const o=be.$findMatchingParent(t,l=>p.$isElementNode(l)&&!l.isInline());if(!o)return!1;const s=r==="backward"?n===0:n===t.getTextContentSize();return e==="text"&&s&&(r==="backward"?o.getPreviousSibling()===null:o.getNextSibling()===null)}function pS(e,n,t,r){const o=be.$findMatchingParent(n,Oe);if(!Oe(o))return!1;const[s,l]=jr(t,o,o);if(!mS(s,l,r))return!1;const c=gS(n,r,t);return!c||vt(c)?!1:(ko(e),r==="backward"?c.selectEnd():c.selectStart(),!0)}function mS(e,n,t){const r=e[0][0],o=e[e.length-1][e[0].length-1],{startColumn:s,startRow:l}=n;return t==="backward"?s===r.startColumn&&l===r.startRow:s===o.startColumn&&l===o.startRow}function gS(e,n,t){const r=be.$findMatchingParent(e,s=>p.$isElementNode(s)&&!s.isInline());if(!r)return;const o=n==="backward"?r.getPreviousSibling():r.getNextSibling();return o&&vt(o)?o:n==="backward"?t.getPreviousSibling():t.getNextSibling()}function i0(e,n,t){const r=p.$createParagraphNode();e==="first"?n.insertBefore(r):n.insertAfter(r),r.append(...t||[]),r.selectEnd()}function a0(e,n,t){const r=t.getParent();if(!r)return;const o=window.getSelection();if(!o)return;const s=o.anchorNode,l=e.getElementByKey(r.getKey()),c=Bs(t,e.getElementByKey(t.getKey()));if(!s||!l||!c||!l.contains(s)||c.contains(s))return;const d=be.$findMatchingParent(n.anchor.getNode(),T=>Oe(T));if(!d)return;const f=be.$findMatchingParent(d,T=>vt(T));if(!vt(f)||!f.is(t))return;const[h,g]=jr(t,d,d),C=h[0][0],y=h[h.length-1][h[0].length-1],{startRow:b,startColumn:x}=g,w=b===C.startRow&&x===C.startColumn,k=b===y.startRow&&x===y.startColumn;return w?"first":k?"last":void 0}function l0(e,n,t,r){const o=e.querySelector("colgroup");if(!o)return;const s=[];for(let l=0;l<t;l++){const c=document.createElement("col"),d=r&&r[l];d&&(c.style.width=`${d}px`),s.push(c)}o.replaceChildren(...s)}function c0(e,n,t){t?(be.addClassNamesToElement(e,n.theme.tableRowStriping),e.setAttribute("data-lexical-row-striping","true")):(be.removeClassNamesFromElement(e,n.theme.tableRowStriping),e.removeAttribute("data-lexical-row-striping"))}const Xf=new WeakSet;function UA(e=p.$getEditor()){return Xf.has(e)}function CS(e,n){n?(e._config.theme.tableScrollableWrapper||console.warn("TableNode: hasHorizontalScroll is active but theme.tableScrollableWrapper is not defined."),Xf.add(e)):Xf.delete(e)}class Yr extends p.ElementNode{constructor(t){super(t);Me(this,"__rowStriping");Me(this,"__colWidths");this.__rowStriping=!1}static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(t){const r=this.getWritable();return r.__colWidths=t,r}static clone(t){return new Yr(t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__colWidths=t.__colWidths,this.__rowStriping=t.__rowStriping}static importDOM(){return{table:t=>({conversion:AS,priority:1})}}static importJSON(t){const r=d1();return r.__rowStriping=t.rowStriping||!1,r.__colWidths=t.colWidths,r}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),rowStriping:this.__rowStriping?this.__rowStriping:void 0,type:"table",version:1}}getDOMSlot(t){const r=t.nodeName!=="TABLE"&&t.querySelector("table")||t;return ot(r.nodeName==="TABLE","TableNode.getDOMSlot: createDOM() did not return a table"),super.getDOMSlot(r).withAfter(r.querySelector("colgroup"))}createDOM(t,r){const o=document.createElement("table"),s=document.createElement("colgroup");if(o.appendChild(s),l0(o,t,this.getColumnCount(),this.getColWidths()),p.setDOMUnmanaged(s),be.addClassNamesToElement(o,t.theme.table),this.__rowStriping&&c0(o,t,!0),UA(r)){const l=document.createElement("div"),c=t.theme.tableScrollableWrapper;return c?be.addClassNamesToElement(l,c):l.style.cssText="overflow-x: auto;",l.appendChild(o),l}return o}updateDOM(t,r,o){const l=this.getDOMSlot(r).element;return t.__rowStriping!==this.__rowStriping&&c0(r,o,this.__rowStriping),l0(l,o,this.getColumnCount(),this.getColWidths()),t!==this}exportDOM(t){return{...super.exportDOM(t),after:r=>{if(!r||!be.isHTMLElement(r))return null;const o=r.firstChild;if(!(o instanceof HTMLTableElement))return null;const s=r.querySelectorAll(":scope > tr");if(s.length>0){const l=document.createElement("tbody");l.append(...s),o.append(l),r.append(o)}return r}}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(t,r){const{rows:o,domRows:s}=r;for(let l=0;l<o;l++){const c=s[l];if(c==null)continue;const d=c.findIndex(f=>{if(!f)return;const{elem:h}=f;return p.$getNearestNodeFromDOMNode(h)===t});if(d!==-1)return{x:d,y:l}}throw new Error("Cell not found in table.")}getDOMCellFromCords(t,r,o){const{domRows:s}=o,l=s[r];if(l==null)return null;const c=t<l.length?t:l.length-1,d=l[c];return d??null}getDOMCellFromCordsOrThrow(t,r,o){const s=this.getDOMCellFromCords(t,r,o);if(!s)throw new Error("Cell not found at cords.");return s}getCellNodeFromCords(t,r,o){const s=this.getDOMCellFromCords(t,r,o);if(s==null)return null;const l=p.$getNearestNodeFromDOMNode(s.elem);return Oe(l)?l:null}getCellNodeFromCordsOrThrow(t,r,o){const s=this.getCellNodeFromCords(t,r,o);if(!s)throw new Error("Node at cords not TableCellNode.");return s}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(t){this.getWritable().__rowStriping=t}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){const t=this.getFirstChild();if(!t)return 0;let r=0;return t.getChildren().forEach(o=>{Oe(o)&&(r+=o.getColSpan())}),r}}function AS(e){const n=d1();e.hasAttribute("data-lexical-row-striping")&&n.setRowStriping(!0);const t=e.querySelector(":scope > colgroup");if(t){let r=[];for(const o of t.querySelectorAll(":scope > col")){const s=o.style.width;if(!s||!Zc.test(s)){r=void 0;break}r.push(parseFloat(s))}r&&n.setColWidths(r)}return{node:n}}function d1(){return p.$applyNodeReplacement(new Yr)}function vt(e){return e instanceof Yr}const HA=m.createContext([e=>()=>{},e=>{}]),bS=({children:e})=>{const n=m.useMemo(()=>{let t=null;const r=new Set;return[o=>(o(t),r.add(o),()=>{r.delete(o)}),o=>{t=o;for(const s of r)s(o)}]},[]);return i.jsx(HA.Provider,{value:n,children:e})},yS=()=>{const[e,n]=m.useContext(HA),[t,r]=m.useState(null);return m.useEffect(()=>e(o=>{r(o)}),[e]),[t,n]},xS=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);class Lu extends p.DecoratorNode{constructor(t,r){super(r);Me(this,"__uuid");this.__uuid=t}static clone(t){return new Lu(t.__uuid,t.__key)}static getType(){return"autocomplete"}static importJSON(t){return vS(t.uuid)}exportJSON(){return{...super.exportJSON(),type:"autocomplete",uuid:this.__uuid,version:1}}updateDOM(){return!1}createDOM(){return document.createElement("span")}decorate(){return this.__uuid!==xS?null:i.jsx(wS,{})}}function vS(e){return new Lu(e)}function wS(){const[e]=yS(),n=window.navigator.userAgentData,t=n!==void 0?n.mobile:window.innerWidth<=800&&window.innerHeight<=600;return i.jsxs("span",{style:{color:"#ccc"},spellCheck:"false",children:[e," ",t?"(SWIPE ⮕)":"(TAB)"]})}class Zr extends pi.MarkNode{constructor(t,r=null,o){super(t,o);Me(this,"__resolve");this.__resolve=r}static getType(){return"extend-mark"}static clone(t){return new Zr(t.getIDs(),t.__resolve,t.__key)}static importJSON(t){return new Zr(t.ids||[])}static importDOM(){return{mark:r=>({conversion:()=>{const o=r.getAttribute("data-key"),s=o?o.split(" "):[],l=r.getAttribute("resolve"),c=document.createDocumentFragment();return Array.from(r.childNodes).forEach(d=>c.appendChild(d.cloneNode(!0))),{node:YA(s,l)}},priority:1})}}resolveThreat(t){const r=this.getWritable();r.__resolve=t}createDOM(t){const r=document.createElement("mark");be.addClassNamesToElement(r,t.theme.mark),be.addClassNamesToElement(r,t.theme.markOverlap),r.style.background="transparent",r.style.border="none";const o=this.getIDs();if(o.length>0){const s=o.join(" ");r.setAttribute("data-key",s),r.setAttribute("data-comment-count",String(o.length))}else r.removeAttribute("data-key"),r.removeAttribute("data-comment-count");return this.__resolve&&r.setAttribute("resolve",this.__resolve),r}exportDOM(t){const{element:r}=super.exportDOM(t);return this.__resolve&&r.setAttribute("resolve",this.__resolve),{element:r}}updateDOM(t,r,o){const s=this.getIDs();return s.length>0?(r.setAttribute("data-key",s.join(" ")),r.setAttribute("data-comment-count",String(s.length))):(r.removeAttribute("data-key"),r.removeAttribute("data-comment-count")),this.__resolve?r.setAttribute("resolve",this.__resolve):r.removeAttribute("resolve"),super.updateDOM(t,r,o)}exportJSON(){return{...super.exportJSON(),type:"extend-mark",ids:this.getIDs()}}excludeFromCopy(t){return!1}updateExtendId(t,r){const o=this.getWritable();o.hasID(t)&&(o.deleteID(t),o.addID(r))}}function YA(e,n=null){return p.$applyNodeReplacement(new Zr(e,n))}function Zo(e){return e instanceof Zr}const ZA=[{replace:p.TextNode,with:e=>new No(e.getTextContent()),withKlass:No},{replace:Ut.CodeNode,with:e=>new qn(!1),withKlass:qn},{replace:pi.MarkNode,with:e=>new Zr(e.__ids),withKlass:Zr}],Wn={transition:"fade",duration:400};function kS(e,n){for(let t=0;t<n.length;t++){const r=n[t];if(It(r)){const o=r.getParent(),s=pt(o)?o.getListType():"bullet",l=cn(s);for(;t<n.length&&It(n[t]);)l.append(n[t]),t++;e.append(l),t--}else e.append(r)}}function SS(e,n){const t=e.getChildren();if(t.length===0){e.remove();return}const r=t.findIndex(c=>c.getKey()===n.getKey());if(r===-1)return;const o=t.slice(r+1),s=e.getParent(),l=e.getNextSibling();if(n.remove(),e.getChildrenSize()===0){if(s&&It(s)){const c=s.getParent();if(c&&pt(c)){const d=c.getChildren().findIndex(f=>f.getKey()===s.getKey());if(d!==-1){s.remove();const f=c.getChildren(),h=c.getListType(),g=cn(h),C=cn(h);for(let y=0;y<d;y++)g.append(f[y]);for(let y=d;y<f.length;y++)C.append(f[y]);c.insertBefore(g),g.insertAfter(n),n.insertAfter(C),c.isAttached()&&c.remove();return}}}s&&p.$isElementNode(s)&&(l?l.insertBefore(n):s.append(n)),e.isAttached()&&e.remove();return}if(r===0)e.insertBefore(n);else if(r===t.length-1)e.insertAfter(n);else{const c=e.getListType(),d=cn(c);for(const f of o)d.append(f);e.insertAfter(n),n.insertAfter(d)}}function ES(e){var t;const n=dr();return(t=e.parentElement)!=null&&t.classList.contains("dsd__theme__layoutItem")?{node:n}:null}class Vr extends p.ElementNode{static getType(){return"layout-divider"}static clone(n){return new Vr(n.__key)}createDOM(n){const t=document.createElement("div");return typeof n.theme.layoutDivider=="string"&&be.addClassNamesToElement(t,n.theme.layoutDivider),t.setAttribute("contenteditable","false"),t}updateDOM(){return!1}static importDOM(){return{div:n=>n.className!=="dsd__theme__layoutDivider"?null:{conversion:ES,priority:2}}}static importJSON(){return dr()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"layout-divider",version:1}}}function dr(){return new Vr}function MS(e){return e instanceof Vr}const Nu=(e,n,t)=>{var o,s,l,c,d;const r=p.$getSelection();if(p.$isRangeSelection(r)&&r.isCollapsed()){const f=r.anchor.getNode(),h=f.getKey(),g=f.getParent()===t,C=t instanceof p.ElementNode&&(t.__type==="layout-item"?(s=(o=t.getLastChild())==null?void 0:o.getPreviousSibling())==null?void 0:s.getKey():(l=t.getLastChild())==null?void 0:l.getKey())===h,y=t instanceof p.ElementNode&&((c=t.getFirstChild())==null?void 0:c.getKey())===h;if(t&&f instanceof p.ParagraphNode&&!f.getTextContent()&&g&&!((d=f.getPreviousSibling())!=null&&d.getTextContent())&&C&&!y){const x=e.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>(x(),!0),p.COMMAND_PRIORITY_NORMAL);return e.update(()=>{var k;if(t){let T=t.getChildren();const D=t.getLastChild();MS(D)&&(T=T.slice(0,-1)),T.length===2?T.slice(-1).forEach(N=>N.remove()):T.slice(-2).forEach(N=>N.remove())}const w=n==null?void 0:n.getNextSibling();if(p.$isParagraphNode(w)&&w.getTextContent()==="")(k=n==null?void 0:n.getNextSibling())==null||k.selectEnd();else{const T=n==null?void 0:n.insertAfter(p.$createParagraphNode());T==null||T.selectStart()}}),!0}}return!1},io=e=>{for(;e;){if(ao(e))return e;const n=e.getParent();if(!n)break;e=n}return null},ju=e=>{switch(e){case"warning":return{emoji:"e=%E2%9A%A0%EF%B8%8F",backgroundColor:"",calloutType:"warning"};case"alert":return{emoji:"e=%E2%9D%97",backgroundColor:"",calloutType:"alert"};case"success":return{emoji:"e=%E2%9C%85",backgroundColor:"",calloutType:"success"};default:return{emoji:"e=%F0%9F%92%AB",backgroundColor:"",calloutType:"😊"}}},u0=e=>e.replace(/\s+/g," ").trim(),TS=e=>{const n=Qt();if(n){const t=be.$findMatchingParent(n,hs);if((t==null?void 0:t.__type)==="callout"){const r=p.$getSelection();if(p.$isRangeSelection(r)&&r.isCollapsed()){const o=r.anchor.getNode(),s=be.$findMatchingParent(o,ao);return Nu(e,s,t)}}}return!0};function df(e,n){let t=e;for(;t;){if(p.$isElementNode(t)){const r=t.getParent();if(It(t)||(r==null?void 0:r.getKey())===n.getKey())return t}t=t.getParent()}return null}function LS(e){const n=[];function t(r){if(pt(r))for(const o of r.getChildren())t(o);else if(It(r)){n.push(r);for(const o of r.getChildren())t(o)}else p.$isElementNode(r)&&n.push(r)}for(const r of e.getChildren())t(r);return n}function GA(e){const n=p.$getRoot(),t=e.anchor.getNode(),r=e.focus.getNode(),o=df(t,n),s=df(r,n);if(!o||!s)return[];const l=new Set([o.getKey(),s.getKey()]);for(const h of e.getNodes()){const g=df(h,n);g&&l.add(g.getKey())}const d=LS(n).filter(h=>l.has(h.getKey())),f=new Set(d.map(h=>h.getKey()));return d.filter(h=>{let g=h.getParent();for(;g;){if(f.has(g.getKey()))return!1;g=g.getParent()}return!0})}const NS=(e,n,t)=>()=>{const r=Ga(n,t),o=Xa(e),s=p.$createParagraphNode(),l=Za().append(s);return r.append(o),r.append(l),r};function jS(e,n,t){const r=Ga(n,t),o=Xa(e),s=Za();return r.append(o),r.append(s),r}function RS(e,n,t,r){const o=GA(e);if(o.length===0)return!1;const s=o[0],l=s.getParent(),c=jS(n,t,r),d=c.getChildren().find(hs);return!d||!p.$isElementNode(d)?!1:(s.insertBefore(c),kS(d,o),l&&pt(l)&&SS(l,c),!0)}const IS=(e,n)=>{const r=n.getChildren().find(hs);if(!r)return;const o=r.getFirstChild();if(!o||!p.$isElementNode(o))return;const s=e.getChildren();for(const l of s)o.append(l)},VA=[{key:"default",i18n:"editor.menu.callout.default.name"},{key:"success",i18n:"editor.menu.callout.success.name"},{key:"warning",i18n:"editor.menu.callout.warning.name"},{key:"alert",i18n:"editor.menu.callout.alert.name"}],f1={default:"",violet:"var(--mantine-color-violet-light)",indigo:"var(--mantine-color-indigo-light)",blue:"var(--mantine-color-blue-light)",teal:"var(--mantine-color-teal-light)",green:"var(--mantine-color-green-light)",yellow:"var(--mantine-color-yellow-light)",orange:"var(--mantine-color-orange-light)",red:"var(--mantine-color-red-light)",brown:"var(--mantine-color-dark-light)",gray:"var(--mantine-color-gray-light)"},qA=e=>{const n=Object.entries(f1).find(([,t])=>t===e);return n?n[0]:"default"},QA=[{name:"violet",outline:"var(--mantine-color-violet-outline, #9775fa)",bg:"rgba(121, 80, 242, 0.25)"},{name:"indigo",outline:"var(--mantine-color-indigo-outline, #748ffc)",bg:"rgba(76, 110, 245, 0.25)"},{name:"blue",outline:"var(--mantine-color-blue-outline, #4dabf7)",bg:"rgba(34, 139, 230, 0.25)"},{name:"teal",outline:"var(--mantine-color-teal-2, #96f2d7)",bg:"rgba(56, 217, 169, 0.25)"},{name:"green",outline:"var(--mantine-color-green-outline, #69db7c)",bg:"rgba(64, 192, 87, 0.25)"},{name:"yellow",outline:"var(--mantine-color-yellow-outline, #ffd43b)",bg:"rgba(250, 176, 5, 0.25)"},{name:"orange",outline:"var(--mantine-color-orange-outline, #ffa94d)",bg:"rgba(253, 126, 20, 0.25)"},{name:"red",outline:"var(--mantine-color-red-outline, #ff8787)",bg:"rgba(250, 82, 82, 0.25)"},{name:"brown",outline:"#9F765A",bg:"rgba(159, 118, 90, 0.25)"},{name:"gray",outline:"var(--mantine-color-gray-outline, #ced4da)",bg:"rgba(134, 142, 150, 0.25)"}],ff="light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))";function DS({editor:e,keyNode:n,currentType:t,currentBg:r,onClose:o}){const{t:s}=Ze.useTranslation(),l=m.useCallback(g=>{e.update(()=>{const C=p.$getNodeByKey(n);if(!C)return;const y=io(C);if(!y)return;const{emoji:b,backgroundColor:x,calloutType:w}=ju(g);y.setType(w),y.setBackgroundColor(x),C instanceof co&&C.setEmoji(b)}),o()},[e,n,o]),c=m.useCallback(g=>{e.update(()=>{const C=p.$getNodeByKey(n);if(!C)return;const y=io(C);y&&y.setBackgroundColor(g)})},[e,n]),d=t==="😊"||t==="default"?"default":t,f=d==="default",h=qA(r);return i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,paddingTop:8,paddingBottom:8,overflow:"hidden"},children:[i.jsx("div",{style:{paddingLeft:8,paddingRight:8,paddingBottom:6},children:i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[i.jsx(v.Text,{size:"xs",fw:500,c:"dimmed",px:4,lh:1.4,children:s("editor.menu.callout.type","Type")}),i.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:VA.map(({key:g,i18n:C})=>{const y=d===g;return i.jsx("button",{type:"button",onClick:()=>l(g),style:{flex:"1 1 calc(50% - 2px)",minWidth:0,height:36,padding:4,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--mantine-radius-md)",border:"none",cursor:"pointer",backgroundColor:y?"var(--mantine-primary-color-light)":"var(--mantine-color-gray-light)",color:y?"light-dark(var(--mantine-primary-color-light-color), var(--mantine-primary-color-4))":"var(--mantine-color-bright)",fontSize:"var(--mantine-font-size-sm)",fontWeight:400,lineHeight:1.45,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:"inherit"},children:s(C)},g)})})]})}),f&&i.jsxs(i.Fragment,{children:[i.jsx("div",{style:{paddingTop:4,paddingBottom:4},children:i.jsx("div",{style:{height:1,backgroundColor:"light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-5))"}})}),i.jsxs("div",{style:{paddingLeft:8,paddingRight:8,display:"flex",flexDirection:"column",gap:4},children:[i.jsx(v.Text,{size:"xs",fw:500,c:"dimmed",px:4,lh:1.4,children:s("editor.colors.color","Color")}),i.jsx(Mt.ColorPicker,{colors:QA.map(({name:g,outline:C,bg:y})=>({value:g,border:C,bg:y})),value:h,onChange:g=>c(f1[g]||""),swatchSize:28,swatchVariant:"outline",gap:5})]})]})]})}function OS({editor:e,keyNode:n}){const{t}=Ze.useTranslation(),[r,o]=m.useState("default"),[s,l]=m.useState(""),[c,d]=m.useState(!1);m.useEffect(()=>{const h=()=>{const g=p.$getNodeByKey(n);if(!g)return;const C=io(g);C&&(o(C.__calloutType),l(C.__backgroundColor))};return e.getEditorState().read(h),e.registerUpdateListener(({editorState:g})=>{g.read(h)})},[e,n]);const f=m.useCallback(()=>{e.update(()=>{const h=p.$getNodeByKey(n);if(!h)return;const g=io(h);if(g){for(const C of g.getChildren())if(hs(C))for(const y of C.getChildren())g.insertBefore(y);g.remove()}})},[e,n]);return i.jsxs("div",{className:"callout-hover-actions",children:[i.jsxs(v.Menu,{opened:c,onChange:d,position:"bottom-end",shadow:"md",withinPortal:!0,transitionProps:Wn,styles:{dropdown:{borderRadius:"var(--mantine-spacing-sm)",padding:0,overflow:"hidden",width:306}},children:[i.jsx(v.Menu.Target,{children:i.jsx(Cn,{label:t("editor.contextMenu.appearance"),"aria-label":t("editor.contextMenu.appearance"),icon:rs,iconColor:"var(--mantine-color-gray-text)"})}),i.jsx(v.Menu.Dropdown,{children:i.jsx(DS,{editor:e,keyNode:n,currentType:r,currentBg:s,onClose:()=>d(!1)})})]}),i.jsx(fs,{label:t("editor.actions.delete"),ariaLabel:"remove-callout-block",onClick:f})]})}function PS({editor:e,keyNode:n}){const{t}=Ze.useTranslation(),[r,o]=m.useState("default"),[s,l]=m.useState(""),[c,{open:d,close:f}]=Sn.useDisclosure(!1),[h,{open:g,close:C}]=Sn.useDisclosure(!1),[y,{open:b,close:x}]=Sn.useDisclosure(!1);m.useEffect(()=>{const N=()=>{const L=p.$getNodeByKey(n);if(!L)return;const E=io(L);E&&(o(E.__calloutType),l(E.__backgroundColor))};return e.getEditorState().read(N),e.registerUpdateListener(({editorState:L})=>{L.read(N)})},[e,n]);const w=m.useCallback(N=>{e.update(()=>{const L=p.$getNodeByKey(n);if(!L)return;const E=io(L);if(!E)return;const{emoji:M,backgroundColor:O,calloutType:I}=ju(N);E.setType(I),E.setBackgroundColor(O),L instanceof co&&L.setEmoji(M)}),C()},[e,n,C]),k=m.useCallback(N=>{e.update(()=>{const L=p.$getNodeByKey(n);if(!L)return;const E=io(L);E&&E.setBackgroundColor(N)}),x()},[e,n,x]),T=m.useCallback(()=>{f(),e.update(()=>{const N=p.$getNodeByKey(n);if(!N)return;const L=io(N);if(L){for(const E of L.getChildren())if(hs(E))for(const M of E.getChildren())L.insertBefore(M);L.remove()}})},[e,n,f]),D=r==="😊"||r==="default"?"default":r;return i.jsxs(i.Fragment,{children:[i.jsx(v.ActionIcon,{className:"callout-mobile-actions-btn",size:32,variant:"subtle",color:"gray",radius:"md",bg:"var(--mantine-color-body)",onClick:d,children:i.jsx(te,{icon:Mr,size:16})}),i.jsx(En,{opened:c,onClose:f,title:t("editor.menu.main.code.mobileActions"),children:i.jsxs(v.Stack,{gap:2,p:0,children:[i.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:ff,leftSection:i.jsx(te,{icon:rs,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:i.jsx(te,{icon:lo,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{f(),g()},children:t("editor.menu.callout.type","Type")}),i.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:ff,leftSection:i.jsx(te,{icon:K8,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:i.jsx(te,{icon:lo,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{f(),b()},children:t("editor.colors.color","Color")}),i.jsx(v.Button,{variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:ff,leftSection:i.jsx(te,{icon:jn,size:16,color:"var(--mantine-color-red-6)"}),onClick:T,children:t("editor.actions.delete")})]})}),i.jsx(En,{opened:h,onClose:C,title:t("editor.menu.callout.type","Type"),children:i.jsx(v.Stack,{gap:2,p:0,children:VA.map(({key:N,i18n:L})=>i.jsx(uA,{label:t(L),checked:D===N,onSelect:()=>w(N)},N))})}),i.jsx(En,{opened:y,onClose:x,title:t("editor.colors.color","Color"),children:i.jsx(Mt.ColorPicker.List,{sections:[{key:"color",label:"",type:"highlight",colors:QA.map(({name:N,outline:L,bg:E})=>({value:N,label:t(`editor.colors.${N}`,N),border:L,bg:E})),value:qA(s)}],onChange:N=>{k(f1[N]||"")}})})]})}const BS=({editor:e,keyNode:n,emoji:t})=>{const{t:r}=Ze.useTranslation(),{disable:o}=m.useContext(ut),s=m.useRef(null);return m.useEffect(()=>{e.update(()=>{var d,f;const l=p.$getNodeByKey(n),c=((f=(d=s.current)==null?void 0:d.firstChild)==null?void 0:f.outerHTML)||"";l instanceof co&&l.setRef(c)})},[t]),o?i.jsx("div",{ref:s,children:i.jsx(v.ActionIcon,{size:28,variant:"subtle",radius:6,style:{pointerEvents:"none"},children:i.jsx(Mt.ProjectIcon,{size:24,fz:24,icon:t,fallback:i.jsx(ye.IconFile,{size:"1em"})})})}):i.jsxs("div",{ref:s,children:[i.jsx(Mt.EmojiPicker,{value:t,showRemoveButton:!1,onChange:l=>{e.update(()=>{var d;const c=p.$getNodeByKey(n);c instanceof co&&((d=c.getNextSibling())==null||d.selectStart(),c.setEmoji(l))})},locales:{emojis:r("editor.emoji.emojis"),icons:r("editor.emoji.icons"),search:r("editor.emoji.search"),searchResults:r("editor.emoji.searchResults"),searchNoResults:r("editor.emoji.searchNoResults"),remove:r("editor.emoji.remove"),emojiCategory:{frequent:r("editor.emoji.emojiCategory.frequent"),people:r("editor.emoji.emojiCategory.people"),nature:r("editor.emoji.emojiCategory.nature"),foods:r("editor.emoji.emojiCategory.foods"),activity:r("editor.emoji.emojiCategory.activity"),places:r("editor.emoji.emojiCategory.places"),objects:r("editor.emoji.emojiCategory.objects"),symbols:r("editor.emoji.emojiCategory.symbols"),flags:r("editor.emoji.emojiCategory.flags")}},popoverProps:{classNames:{dropdown:"emoji-picker-callout"},withinPortal:!0,transitionProps:Wn},children:i.jsx(v.ActionIcon,{size:28,variant:"subtle",radius:6,children:i.jsx(Mt.ProjectIcon,{size:24,fz:24,icon:t,fallback:i.jsx(ye.IconFile,{size:"1em"})})})}),Nt?i.jsx(PS,{editor:e,keyNode:n}):i.jsx(OS,{editor:e,keyNode:n})]})};function _S(e){const n=e.getAttribute("data-emoji");return{node:Xa(n||"","")}}const d0=new Map;class co extends qr.DecoratorBlockNode{constructor(t,r,o,s){super(o,s);Me(this,"__emojiCode");Me(this,"__refElem");this.__emojiCode=t||"",this.__refElem=r||""}static getType(){return"callout-image"}static clone(t){return new co(t.__emojiCode,t.__refElem,t.__format,t.__key)}static importJSON(t){return Xa(t.emojiCode)}exportJSON(){return{...super.exportJSON(),type:"callout-image",version:1,emojiCode:this.__emojiCode,refElem:""}}static importDOM(){return{div:t=>t.classList.contains("callout-image")?{conversion:_S,priority:2}:null}}createDOM(){const t=document.createElement("div");return t.className="callout-image",t}updateDOM(){return!1}exportDOM(){const t=document.createElement("div"),r=d0.get(this.__key)||"";return t.innerHTML=r,t.classList.add("callout-image"),t.setAttribute("data-emoji",this.__emojiCode),{element:t}}setEmoji(t){const r=this.getWritable();r.__emojiCode=t}setRef(t){d0.set(this.__key,t)}decorate(t,r){return i.jsx(BS,{emoji:this.__emojiCode,editor:t,keyNode:this.__key})}}function Xa(e,n){return new co(e||"",n||"")}const f0={bullet:ye.IconList,check:ye.IconListCheck,"check-mark":ye.IconCheck,code:ye.IconCode,h1:ye.IconH1,h2:ye.IconH2,h3:ye.IconH3,number:ye.IconListNumbers,paragraph:ye.IconIndentIncrease,quote:ye.IconQuote,fontFamily:ye.IconLetterT,undo:ye.IconArrowBackUp,redo:ye.IconArrowForwardUp,bold:ye.IconBold,italic:ye.IconItalic,underline:ye.IconUnderline,link:ye.IconLink,"color-picker":ye.IconColorPicker,background:ye.IconBucketDroplet,photo:ye.IconPhoto,"photo-check":ye.IconPhotoCheck,"align-left":ye.IconAlignLeft,"align-end":ye.IconAlignLeft,"align-start":ye.IconAlignLeft,"align-right":ye.IconAlignRight,"align-center":ye.IconAlignCenter,"align-justify":ye.IconAlignJustified,"horizontal-rule":ye.IconFlipHorizontal,strikethrough:ye.IconStrikethrough,subscript:ye.IconSubscript,superscript:ye.IconSuperscript,minus:ye.IconMinus,plus:ye.IconPlus,"chevron-down":ye.IconChevronDown,"chevron-right":ye.IconChevronRight,grip:ye.IconGripVertical,"circle-check":ye.IconCircleCheck,"circle-x":ye.IconCircleX,pencil:ye.IconPencil,trash:ye.IconTrash,table:ye.IconTable,"caret-right":ye.IconCaretRight,grid:ye.IconColumns3,"dots-vertical":ye.IconDotsVertical,copy:ye.IconCopy,clipboard:ye.IconClipboard,cut:ye.IconCut,"arrow-bar-to-up":ye.IconArrowBarToUp,"arrow-bar-to-down":ye.IconArrowBarToDown,"arrow-bar-to-left":ye.IconArrowBarToLeft,"arrow-bar-to-right":ye.IconArrowBarToRight,"column-insert-left":ye.IconColumnInsertLeft,"column-insert-right":ye.IconColumnInsertRight,"row-insert-top":ye.IconRowInsertTop,"row-insert-bottom":ye.IconRowInsertBottom,"container-off":ye.IconContainerOff,"table-off":ye.IconTableOff,"layers-union":ye.IconLayersUnion,"layers-substract":ye.IconLayersSubtract,"сlear-format":ye.IconDropletOff,form:ye.IconCheckupList,youtube:ye.IconBrandYoutube,emoji:ye.IconMoodSmile,file:ye.IconFile,success:ye.IconCheck,warning:ye.IconAlertTriangle,alert:ye.IconExclamationCircle,defaultOff:ye.IconBaseline,embed:ye.IconCodeCircle,at:ye.IconAt,paperclip:ye.IconPaperclip,close:ye.IconX,api:ye.IconApi,music:ye.IconMusic,message:ye.IconMessage,reply:ye.IconArrowBackUp,filter:ye.IconFilter,messages:ye.IconMessages,"shield-check":ye.IconShieldCheckFilled,reOpen:ye.IconReload,send:ye.IconSend,expandSidebar:ye.IconLayoutSidebarLeftExpand,palette:ye.IconPalette},mn=({name:e,iconStyle:n,...t})=>{const r=f0[e]||f0.bullet;return i.jsx(v.Flex,{gap:0,justify:"center",align:"center",...t,children:i.jsx(r,{size:18,stroke:2,style:n,...t})})},FS=({icon:e,title:n,pointerEvents:t="auto",isLoading:r,progress:o,nodeKey:s,onAfterCancel:l,...c})=>{const[d]=it.useLexicalComposerContext(),{t:f}=Ze.useTranslation(),{fetchUploadMedia:h,disable:g}=m.useContext(ut),C=o?((h==null?void 0:h.length)??0)>=5:!1,y=()=>{d.update(()=>{const x=p.$getNodeByKey(s);x&&x.remove()})},b=x=>{x.stopPropagation(),l==null||l()};return g?null:i.jsxs(v.UnstyledButton,{className:"image-node-picker-button",styles:{root:{width:"100%",display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)",flexDirection:"column",padding:"var(--mantine-spacing-md)",background:"var(--mantine-primary-color-light)",color:"var(--mantine-color-text)",borderRadius:"var(--mantine-radius-default)",opacity:.75,pointerEvents:r?"none":t,boxSizing:"border-box"}},...c,children:[i.jsxs("div",{className:"empty-node-button__content",children:[r&&!C&&i.jsx(v.Loader,{size:"xs",mb:2,mr:4,color:"gray"}),!r&&i.jsx(mn,{name:e}),n,r&&l&&i.jsx(v.Text,{component:"span",onClick:b,variant:"link",style:{marginLeft:"auto",cursor:"pointer",pointerEvents:"auto"},children:f("editor.cancel")}),s&&!r&&i.jsx(mn,{style:{pointerEvents:"auto"},className:"delete-icon",name:"close",size:22,onClick:y})]}),r&&typeof o=="number"&&C&&i.jsx(v.Progress,{w:"100%",value:o,animated:!0,transitionDuration:200})]})},WS="_title_1ozo8_1",zS="_icon_1ozo8_21",KS="_link_1ozo8_39",tc={title:WS,icon:zS,link:KS},US=({page:e,titleClassName:n,withTooltip:t=!0,withHover:r=!0})=>{const{t:o}=Ze.useTranslation(),s=i.jsx(v.Text,{truncate:!0,className:`${tc.title} ${n||""}`.trim(),"data-empty":!e.title,children:e.title||o("editor.noTitle")});return i.jsxs("div",{className:`${tc.link} ${r?"":tc.linkNoHover}`.trim(),onClick:e.onClick,children:[i.jsx("div",{className:tc.icon,children:e.icon?i.jsx(Mt.ProjectIcon,{size:16,fz:16,icon:e.icon,fallback:i.jsx(ye.IconFile,{size:"1em"})}):i.jsx(Mt.EntityIcon,{item:{...e,type:"PAGE"}})}),t?i.jsx(v.Tooltip,{label:e.title,disabled:!e.title,openDelay:400,children:s}):s]})},HS=m.memo,qc=HS(US),YS=({page:e})=>i.jsx("div",{className:"docs-item",children:i.jsx(qc,{page:e})});function ZS({nodeKey:e}){const{pages:n,childPagesLoading:t}=m.useContext(ut),{t:r}=Ze.useTranslation();return n.length===0?i.jsx("p",{style:{margin:0},children:i.jsx(FS,{title:r(t?"editor.menu.other.documents.loading":"editor.menu.other.documents.empty"),icon:"file",pointerEvents:"none",nodeKey:e,isLoading:t})}):i.jsx("div",{className:"docs-container",children:n.map(o=>i.jsx(YS,{page:o},o.id))})}function GS(e){return e.getAttribute("data-child-docs")?{node:JA()}:null}class ki extends qr.DecoratorBlockNode{static getType(){return"childDocs"}static clone(n){return new ki(n.__format,n.__key)}constructor(n,t){super(n,t)}createDOM(){const n=document.createElement("div");return n.className="editor-child-docs",n}updateDOM(){return!1}decorate(n,t){return i.jsx(ZS,{nodeKey:this.__key})}static importJSON(n){const{format:t,key:r}=n;return new ki(t,r)}exportJSON(){return{type:"childDocs",format:this.__format,key:this.__key}}exportDOM(){const n=document.createElement("div");return n.setAttribute("data-child-docs","true"),{element:n}}static importDOM(){return{div:n=>n.getAttribute("data-child-docs")?{conversion:GS,priority:2}:null}}}function JA(){return new ki(void 0)}function VS(e){const n=JA(),t=Qt();t==null||t.replace(n)}const XA=p.createCommand("INSERT_CHILD_DOCUMENTS_COMMAND");function qS(e){m.useEffect(()=>{if(!e.hasNodes([ki]))throw new Error("ChildDocsPlugin: ChildDocsNode not registered on editor");return e.registerCommand(XA,()=>(VS(),!0),p.COMMAND_PRIORITY_EDITOR)},[e])}function QS(){const[e]=it.useLexicalComposerContext();return qS(e),null}function JS(e){var o;const n=e.getAttribute("open");return((o=e.firstElementChild)==null?void 0:o.tagName)==="SPAN"?{node:null}:{node:h1(n!==null)}}class _s extends p.ElementNode{constructor(t,r){super(r);Me(this,"__open");this.__open=t}static getType(){return"collapsible-container"}static clone(t){return new _s(t.__open,t.__key)}createDOM(t,r){const o=document.createElement("details");return o.open=this.__open,o.addEventListener("toggle",()=>{r.getEditorState().read(()=>this.getOpen())!==o.open&&r.update(()=>this.toggleOpen())}),o.classList.add("Collapsible__container"),o}updateDOM(t,r){const o=this.__open;return t.__open!==o&&(r.open=this.__open),!1}static importDOM(){return{details:t=>({conversion:JS,priority:1})}}static importJSON(t){return h1(t.open)}exportDOM(){const t=document.createElement("details");return t.classList.add("Collapsible__container"),this.__open&&t.setAttribute("open",""),{element:t}}exportJSON(){return{...super.exportJSON(),open:this.__open,type:"collapsible-container",version:1}}setOpen(t){const r=this.getWritable();r.__open=t}getOpen(){return this.getLatest().__open}toggleOpen(){this.setOpen(!this.getOpen())}}function h1(e){return new _s(e)}function hr(e){return e instanceof _s}function XS(e){return{node:p1()}}class Io extends p.ElementNode{static getType(){return"collapsible-content"}static clone(n){return new Io(n.__key)}createDOM(n,t){const r=document.createElement("div");return r.classList.add("Collapsible__content"),r}updateDOM(n,t){return!1}static importDOM(){return{div:n=>n.hasAttribute("data-lexical-collapsible-content")?{conversion:XS,priority:2}:null}}exportDOM(){const n=document.createElement("div");return n.classList.add("Collapsible__content"),n.setAttribute("data-lexical-collapsible-content","true"),{element:n}}static importJSON(n){return p1()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"collapsible-content",version:1}}}function p1(){return new Io}function ls(e){return e instanceof Io}function $S(e){return{node:m1()}}class cs extends p.ElementNode{static getType(){return"collapsible-title"}static clone(n){return new cs(n.__key)}createDOM(n,t){const r=document.createElement("summary");return r.classList.add("Collapsible__title"),vk&&(r.style.cursor="pointer"),r}updateDOM(n,t){return!1}static importDOM(){return{summary:n=>({conversion:$S,priority:1})}}static importJSON(n){return m1()}exportJSON(){return{...super.exportJSON(),type:"collapsible-title",version:1}}collapseAtStart(n){return this.getParentOrThrow().insertBefore(this),!0}insertNewAfter(n,t=!0){const r=this.getParentOrThrow();if(!hr(r))throw new Error("CollapsibleTitleNode expects to be child of CollapsibleContainerNode");if(r.getOpen()){const o=this.getNextSibling();if(!ls(o))throw new Error("CollapsibleTitleNode expects to have CollapsibleContentNode sibling");const s=o.getFirstChild();if(p.$isElementNode(s))return s;{const l=p.$createParagraphNode();return o.append(l),l}}else{const o=p.$createParagraphNode();return r.insertAfter(o,t),o}}}function m1(){return new cs}function To(e){return e instanceof cs}const $A=p.createCommand("INSERT_COLLAPSIBLE_COMMAND");p.createCommand("TOGGLE_COLLAPSIBLE_COMMAND");function eE(e){m.useEffect(()=>{if(!e.hasNodes([_s,cs,Io]))throw new Error("CollapsiblePlugin: CollapsibleContainerNode, CollapsibleTitleNode, or CollapsibleContentNode not registered on editor");return be.mergeRegister(e.registerNodeTransform(Io,n=>{const t=n.getParent();if(!hr(t)){const r=n.getChildren();for(const o of r)n.insertBefore(o);n.remove()}}),e.registerNodeTransform(cs,n=>{const t=n.getParent();if(!hr(t)){const r=n.getChildren();for(const o of r)n.insertBefore(o);n.remove();return}}),e.registerNodeTransform(_s,n=>{const t=n.getChildren();if(t.length!==2||!To(t[0])||!ls(t[1])){for(const r of t)n.insertBefore(r);n.remove()}}),e.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>{var t;const n=e.getEditorState().read(()=>p.$getSelection());if(p.$isRangeSelection(n)){const r=be.$findMatchingParent(n.anchor.getNode(),o=>To(o));if(r&&To(r)){const o=r.getParent();if(o&&hr(o))return o.getOpen()||o.toggleOpen(),(t=r.getNextSibling())==null||t.selectEnd(),!0}}return!1},p.COMMAND_PRIORITY_LOW),e.registerCommand($A,()=>(e.update(()=>{const n=m1(),t=p.$createParagraphNode(),r=Qt(),o=h1(!1).append(n.append(t),p1().append(p.$createParagraphNode()));r==null||r.replace(o),t.select()}),!0),p.COMMAND_PRIORITY_LOW))},[e])}function tE(){const[e]=it.useLexicalComposerContext();return eE(e),null}function nE(e){const n=e.style.gridTemplateColumns;return n?{node:Ru(n)}:null}class Rr extends p.ElementNode{constructor(t,r){super(r);Me(this,"__templateColumns");this.__templateColumns=t}static getType(){return"layout-container"}static clone(t){return new Rr(t.__templateColumns,t.__key)}createDOM(t){const r=document.createElement("div");return r.style.gridTemplateColumns=this.__templateColumns,typeof t.theme.layoutContainer=="string"&&be.addClassNamesToElement(r,t.theme.layoutContainer),r}exportDOM(){const t=document.createElement("div");return t.style.gridTemplateColumns=this.__templateColumns,t.setAttribute("data-lexical-layout-container","true"),t.classList.add("dsd__theme__layoutContainer"),{element:t}}updateDOM(t,r){return t.__templateColumns!==this.__templateColumns&&(r.style.gridTemplateColumns=this.__templateColumns),!1}static importDOM(){return{div:t=>t.hasAttribute("data-lexical-layout-container")?{conversion:nE,priority:2}:null}}static importJSON(t){return Ru(t.templateColumns)}isShadowRoot(){return!0}canBeEmpty(){return!1}exportJSON(){return{...super.exportJSON(),templateColumns:this.__templateColumns,type:"layout-container",version:1}}getTemplateColumns(){return this.getLatest().__templateColumns}setTemplateColumns(t){this.getWritable().__templateColumns=t}}function Ru(e){return new Rr(e)}function Qc(e){return e instanceof Rr}function rE(e){const n=e.style.backgroundColor||"transparent";return{node:ro(n)}}class Mn extends p.ElementNode{constructor(t,r){super(r);Me(this,"__backgroundColor");this.__backgroundColor=t}static getType(){return"layout-item"}static clone(t){return new Mn(t.__backgroundColor,t.__key)}createDOM(t){const r=document.createElement("div");return r.style.backgroundColor=this.__backgroundColor,typeof t.theme.layoutItem=="string"&&be.addClassNamesToElement(r,t.theme.layoutItem),r}exportDOM(){const t=document.createElement("div");return t.style.backgroundColor=this.__backgroundColor,t.classList.add("dsd__theme__layoutItem"),{element:t}}updateDOM(t,r){return t.__backgroundColor!==this.__backgroundColor&&(r.style.backgroundColor=this.__backgroundColor),!1}static importDOM(){return{div:t=>t.className!=="dsd__theme__layoutItem"?null:{conversion:rE,priority:2}}}static importJSON(){return ro()}isShadowRoot(){return!1}setLayoutBackground(t){this.getWritable().__backgroundColor=t}exportJSON(){return{...super.exportJSON(),type:"layout-item",backgroundColor:this.__backgroundColor,version:1}}}function ro(e="transparent"){return new Mn(e)}function Tr(e){return e instanceof Mn}const g1="calc(50% - 25px) calc(50% - 25px)",oE=4,sE=2,iE="draggable-block-menu",aE=16,h0="application/x-lexical-drag-block",p0=32,C1=e=>e?e.match(/(\d*\.?\d+)%/g):[],eb=e=>e<0?0:e>100?100:e,tb=(e,n,t)=>{let r=0,o=[];e.update(()=>{if(e&&n){const d=e.getElementByKey(n.getKey());if(d){const f=d.style;o=C1(f.getPropertyValue("grid-template-columns")).map(h=>h.slice(0,-1)),r=o?o.length:0}}const s=100/(r+1),l=[...o];l.splice(t,0,`${s}%`);let c=s/r;for(let d=0;d<l.length;d++)if(t!==d){const f=Number(l[d])-c;l[d]=`minmax(100px,${eb(f)}%)`}else l[d]=`minmax(100px,${l[d]})`;n.setTemplateColumns(l.join(" "))})},$f=(e,n,t,r)=>{e.update(()=>{const o=e.getElementByKey(n.getKey());if(!o)return;let s=r;t<r&&(s=r-1);const c=o.style.getPropertyValue("grid-template-columns").match(/minmax\([^)]*\)|\S+/g)||[],d=c.splice(t,1)[0];c.splice(s,0,d),n.setTemplateColumns(c.join(" "))})},Wa=(e,n)=>(e!=null&&e.children?Array.from(e.children):[]).indexOf(n);function lE(e,n,t,r){var d;let o=e.getAttribute("data-direction")==="left",s=e.getAttribute("data-direction")==="right",l=e.getAttribute("data-index"),c=e.getAttribute("data-index-start");if(o||s||l){let f=(d=t.getParent())==null?void 0:d.getParent();if(t instanceof Rr&&(f=t),t instanceof Vr||t instanceof Rr){const h=f==null?void 0:f.getChildren();let g=r instanceof Vr;if((h==null?void 0:h.length)>=4&&!g)return!0;n.update(()=>{var b;let C=0;o?C=0:s?C=((b=f==null?void 0:f.getChildren())==null?void 0:b.length)-1:C=Number(l),g?$f(n,f,Number(c),C):tb(n,f,C);let y=null;C!==void 0&&n.update(()=>{if(y=f.getChildren()[C],g)t instanceof Rr?y.insertAfter(r.getParent()):y.insertBefore(r.getParent());else if(s)y.insertAfter(ro().append(r).append(dr()));else{const x=r.getParent(),w=x==null?void 0:x.getParent();Tr(x)&&(x==null?void 0:x.getChildrenSize())===2&&Tr(x)&&Qc(w)&&Ei(n,x,w),y.insertBefore(ro().append(r).append(dr()))}})})}else n.update(()=>{const h=Ru(g1);let g;if(ao(t)||hr(t)){const C=r.getParent(),y=C==null?void 0:C.getParent();if(Tr(C)&&(C==null?void 0:C.getChildrenSize())===2&&Qc(y)){const x=y.getParent(),w=x==null?void 0:x.getParent(),k=y.getChildren(),D=k.findIndex(L=>L===C)===0?1:0,N=k[D];if(Tr(N)){const L=N.getChildren()[0];ao(w)&&(w.append(L),y.remove(),g=Nr(w))}}else g=Nr(t,r)}else g=Nr(t);g&&(o?(h.append(ro().append(r).append(dr())),h.append(ro().append(g).append(dr()))):(h.append(ro().append(g).append(dr())),h.append(ro().append(r).append(dr()))),t.insertAfter(h),t.remove(),g.selectStart())});return!0}return!1}function cE(e,n,t="right",r=!1){e.update(()=>{const o=p.$getNearestNodeFromDOMNode(n),s=o==null?void 0:o.getParent();if(s){if(C1(s.__templateColumns).length===4)return;let c=Wa(n.parentElement,n);t==="right"&&(c=c+1),tb(e,s,c)}const l=ro().append(p.$createParagraphNode()).append(dr());o&&(t==="right"?r?(o.insertBefore(Nr(o)),o.selectStart()):(o.insertAfter(l),l==null||l.selectStart()):(o.insertBefore(l),l.selectStart()))})}const nb=(e,n)=>{const t=n==null?void 0:n.getParent();let r=C1(t==null?void 0:t.getTemplateColumns());const o=t==null?void 0:t.getChildren();let s=0;if(o&&n){for(let h=0;h<o.length;h++)if(o[h].__key===n.__key){s=h;break}}r.splice(s,1);const l=r.map(h=>parseFloat(h)),c=l.reduce((h,g)=>h+g,0),f=l.map(h=>h/c*100).map(h=>`minmax(50px,${h.toFixed(2)}%)`);t==null||t.setTemplateColumns(f.join(" "))},uE=e=>e.className.includes("editor-image")||e.className.includes("video-container")?e:e.className.includes("editor-excalidraw")?e.firstChild:null,rb=(e,n)=>n!=null&&n.__key&&e!==n.__key?rb(e,n==null?void 0:n.getParent()):e===(n==null?void 0:n.__key),Si=(e,n,t)=>{if(n==null)return;const r=typeof n=="string"?n:n.getKey();e.update(()=>{var d,f,h;const o=p.$getNodeByKey(r);if(!o)return;const s=(d=o.getParent())==null?void 0:d.getParent(),l=o.getParent(),c=t==="right"?(f=o.getParent())==null?void 0:f.getNextSibling():(h=o.getParent())==null?void 0:h.getPreviousSibling();if(l&&c&&s instanceof Rr){const g=e.getElementByKey(l.getKey()),C=e.getElementByKey(s.getKey()),y=Wa(C,g);l&&s&&c&&(t==="right"&&($f(e,s,y+1,y),c.insertAfter(l)),t==="left"&&($f(e,s,y,y+1),c.insertBefore(l)))}})};function dE(e){e&&(e.style.display="none")}function m0({blockElement:e,editor:n,isTop:t,isClickedBlockRef:r,setDraggableBlockElem:o}){e&&(r.current=!0,n.update(()=>{const s=p.$getNearestNodeFromDOMNode(e);if(s){const l=p.$createParagraphNode();t?(s.insertBefore(l),setTimeout(()=>{o(n.getElementByKey(l.__key)),n.update(()=>{l.selectStart()})})):(s.insertAfter(l),setTimeout(()=>{o(n.getElementByKey(l.__key)),n.update(()=>{l.selectEnd()})}))}}))}function fE(e){const n=(d,f)=>d?parseFloat(window.getComputedStyle(d)[f]):0,{marginTop:t,marginBottom:r}=window.getComputedStyle(e),o=n(e.previousElementSibling,"marginBottom"),s=n(e.nextElementSibling,"marginTop"),l=Math.max(parseFloat(t),o);return{marginBottom:Math.max(parseFloat(r),s),marginTop:l}}function hE(e){return!!e.closest(`.${iE}`)}function g0(e,n,t,r){if(!e){n.style.opacity="0";return}n.style.display="block";let o=null;const s=uE(e);s&&s.style.justifyContent!=="left"&&s.firstChild instanceof HTMLElement?o=s.firstChild.getBoundingClientRect():o=e.getBoundingClientRect();let l=null,c=0,d=!0,f=0;if(o){let k=e.firstChild instanceof HTMLElement&&(e.firstChild.hasAttribute("data-lexical-text")||e.firstChild.tagName==="LI"||e.firstChild.tagName==="A")?e.firstChild:null;if(k&&!k.className.includes("editor-image")&&e.tagName!=="CODE"){const T=window.getComputedStyle(k),D=parseFloat(T.lineHeight),N=parseFloat(T.fontSize);f=Math.ceil(N+(D-N)/2),l=k.getBoundingClientRect()}else if(e.firstChild instanceof HTMLElement&&e.firstChild.tagName==="BR"&&e.tagName!=="CODE"){const T=window.getComputedStyle(e,"::before");f=parseFloat(T.height)||30}else e&&(e.tagName==="HR"||e.matches(":has(audio)")||e.classList.contains("file-container"))?f=e.clientHeight:e.firstChild instanceof HTMLElement&&e.firstChild.tagName==="SUMMARY"?f=e.firstChild.clientHeight:(l=o,d=!1)}const h=t.getBoundingClientRect(),g=(l==null?void 0:l.top)||o.top,C=f||c,y=n.clientHeight,b=C-y;let x=!d||!C?o.top+7-h.top:g+b/2-h.top,w=o.left-h.left-y*2-5;e.tagName==="LI"&&e.getAttribute("role")!=="checkbox"&&(w=w-26,x=x-1),s&&(x=g-h.top+7,(s.style.justifyContent==="center"||s.style.justifyContent==="right")&&(w=w+10)),e.matches(":has(.resizable-container__handle)")&&!e.matches(":has(.hide-padding)")&&e.tagName!=="DETAILS"&&(x=g-h.top+27),o.top<0&&(x=x+-o.top),e.className==="dsd__theme__layoutDivider"&&(n.style.display="none",o.top-n.clientHeight<0?e.style.setProperty("--height-column",`${e.clientHeight+o.top-n.clientHeight-7}px`):e.style.setProperty("--height-column",`${e.clientHeight}px`)),n.style.opacity="1",!r&&w>-40&&(n.style.transform=`translate(${w}px, ${x}px)`)}function C0(e,n){const{transform:t}=n.style;n.style.transform="translateZ(0)",e.setDragImage(n,0,0),setTimeout(()=>{n.style.transform=t})}function pE(e,n){const t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",n.forEach(r=>{const o=r.cloneNode(!0);o.style.position="relative",t.appendChild(o)}),document.body.appendChild(t),e.setDragImage(t,0,0),setTimeout(()=>document.body.removeChild(t),0)}function mE(e,n,t,r,o,s,l){var _;const{top:c,height:d,width:f,left:h}=n.getBoundingClientRect(),{top:g,left:C,width:y}=o==null?void 0:o.getBoundingClientRect(),{marginTop:b,marginBottom:x}=fE(n);let w=c;t>=c?(l.current.isBottom=!0,w+=d+x/2):(l.current.isBottom=!1,w-=b/2);const k=w-g-sE,T=aE-oE,N=s.target.closest(".dsd__theme__layoutDivider");e.setAttribute("data-index",""),e.style.background="deepskyblue";const L=h-C-T,E=y-L,M=r-C,O=h+f,I=M>=E,F=r>=O-p0&&r<=O+p0;if(r<=h&&!N){if(n.closest(".dsd__theme__layoutItem"))return;e.style.transform=`translate(${L}px, ${c-g}px)`,e.style.width="4px",e.style.height=`${d}px`,e.style.opacity=".4",e.setAttribute("data-direction","left")}else if((I||F)&&!N&&!n.closest(".dsd__theme__layoutItem"))n.classList.contains("dsd__theme__layoutContainer")&&!e.getAttribute("data-index-start")&&n&&n.children.length>=4&&(e.style.background="red"),e.style.transform=`translate(${y-L}px, ${c-g}px)`,e.style.width="4px",e.style.height=`${d}px`,e.style.opacity=".4",e.setAttribute("data-direction","right");else if(N){s.preventDefault();const R=(_=N.parentNode)==null?void 0:_.parentNode;(R==null?void 0:R.children.length)===4&&(e.style.background="red");const j=N.parentNode,K=Wa(R,j),W=K?N.getBoundingClientRect().left-C:L+30;e.style.transform=`translate(${W}px, ${c-g}px)`,e.style.width="4px",e.style.height=`${d}px`,e.style.opacity=".4",e.setAttribute("data-index",`${K}`)}else e.style.transform=`translate(${L}px, ${k}px)`,e.style.width=`${f+T}px`,e.style.opacity=".4",e.style.height="4px",e.setAttribute("data-direction","")}function A0(e){e&&(e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)")}const Ei=(e,n,t)=>{var s,l,c;const r=(t==null?void 0:t.getChildren())||[];if((r==null?void 0:r.length)===2){for(const d of r)d.__key!==(n==null?void 0:n.__key)&&(t==null||t.insertBefore(d),(s=d.getFirstChild())==null||s.selectEnd());t.remove()}else for(const d of r)if(d.__key===(n==null?void 0:n.__key)){nb(e,d),gu(e,d);const f=d.getPreviousSibling()??d.getNextSibling();(c=(l=f==null?void 0:f.getFirstChild)==null?void 0:l.call(f))==null||c.selectEnd()}const o=e.registerCommand(p.DELETE_CHARACTER_COMMAND,()=>(o(),!0),p.COMMAND_PRIORITY_NORMAL);return!0},gE=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.anchor.getNode(),r=be.$findMatchingParent(t,ls),o=be.$findMatchingParent(t,hr);return Nu(e,o,r)&&ls(r)}return!0},CE=()=>{const e=p.$getSelection();if(!p.$isRangeSelection(e)||!e.isCollapsed()||e.anchor.offset!==0)return!1;const t=e.anchor.getNode().getTopLevelElement();if(t===null)return!1;const r=t.getPreviousSibling();return!hr(r)||r.getOpen()?!1:(r.setOpen(!0),!0)},AE=()=>{var n;const e=p.$getSelection();if(p.$isRangeSelection(e)&&e.isCollapsed()&&e.anchor.offset===0){const t=be.$findMatchingParent(e.anchor.getNode(),hr);if(hr(t)){const r=t.getParent();r!==null&&r.getFirstChild()===t&&e.anchor.key===((n=t.getFirstDescendant())==null?void 0:n.getKey())&&t.insertBefore(p.$createParagraphNode())}}return!1},bE=()=>{const e=p.$getSelection();if(p.$isRangeSelection(e)&&e.isCollapsed()){const n=be.$findMatchingParent(e.anchor.getNode(),hr);if(hr(n)){const t=n.getParent();if(t!==null&&t.getLastChild()===n){const r=n.getFirstDescendant(),o=n.getLastDescendant();(o!==null&&e.anchor.key===o.getKey()&&e.anchor.offset===o.getTextContentSize()||r!==null&&e.anchor.key===r.getKey()&&e.anchor.offset===r.getTextContentSize())&&n.insertAfter(p.$createParagraphNode())}}}return!1},yE=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.focus.getNode().getParent(),r=t==null?void 0:t.getParent();return Ei(e,t,r)}return!1},b0=[{value:"left",icon:FC,labelKey:"editor.toolbar.left"},{value:"center",icon:_c,labelKey:"editor.toolbar.center"},{value:"right",icon:WC,labelKey:"editor.toolbar.right"}],ob=({currentAlignment:e,onAlign:n,className:t,targetLabel:r})=>{var c;const{t:o}=Ze.useTranslation(),s=((c=b0.find(d=>d.value===e))==null?void 0:c.icon)??_c,l=i.jsx("span",{style:{color:"var(--mantine-primary-color-filled)",display:"flex",alignItems:"center"},children:i.jsx(te,{icon:tr,size:16})});return i.jsxs(v.Menu,{shadow:"md",position:"bottom-end",transitionProps:Wn,children:[i.jsx(v.Menu.Target,{children:i.jsx(Cn,{className:t,label:r??o("editor.toolbar.align"),icon:s,iconColor:"var(--mantine-color-gray-text)"})}),i.jsx(v.Menu.Dropdown,{p:4,children:b0.map(d=>i.jsx(v.Menu.Item,{onClick:()=>n(d.value),leftSection:i.jsx("span",{style:{color:"var(--mantine-color-gray-text)",display:"flex",alignItems:"center"},children:i.jsx(te,{icon:d.icon,size:16})}),rightSection:e===d.value?l:void 0,children:o(d.labelKey)},d.value))})]})},xE=e=>{if(e==="left")return["n-resize","s-resize","e-resize","se-resize","ne-resize"];if(e==="center")return["sw-resize","nw-resize","w-resize","n-resize","s-resize","e-resize","se-resize","ne-resize"];if(e==="right")return["sw-resize","nw-resize","w-resize","n-resize","s-resize"]},eh=(()=>{var n;const e=(n=window.navigator)==null?void 0:n.userAgentData;return e!==void 0?e.mobile:window.innerWidth<=800&&window.innerHeight<=600})(),vE={center:-8,right:2,left:-18},wE=(e,n,t,r)=>{const s=e.width/2,l=e.height/2,c=r==null?void 0:r.classList[1],d=vE[c];switch(n){case"nw-resize":return{x:0,y:0};case"ne-resize":return{x:e.width-16,y:0};case"sw-resize":return{x:0,y:e.height-16};case"se-resize":return{x:e.width-16,y:e.height-16};case"n-resize":return{x:s+d,y:0};case"s-resize":return{x:s+d,y:e.height-16};case"w-resize":return{x:0,y:l-8};case"e-resize":return{x:e.width-16,y:l-(t?17:8)}}},kE=(e,n,t,r=["nw-resize","ne-resize","sw-resize","se-resize","n-resize","s-resize","w-resize","e-resize"])=>{const s=t<=32,l=t>=e.height-32,c=n<=32,d=n>=e.width-32;return s&&c?r.includes("nw-resize")?"nw-resize":"default":s&&d?r.includes("ne-resize")?"ne-resize":"default":l&&c?r.includes("sw-resize")?"sw-resize":"default":l&&d?r.includes("se-resize")?"se-resize":"default":s?r.includes("n-resize")?"n-resize":"default":l?r.includes("s-resize")?"s-resize":"default":c?r.includes("w-resize")?"w-resize":"default":d&&r.includes("e-resize")?"e-resize":"default"},nc=32,rc=(e,n)=>e&&typeof e=="number"?Math.min(e/n*100,95.5):95.5;function SE(e){const t=100-4e3/e;return{minResizePercent:Math.max(5,9792/e),maxWidthPercent:t}}const A1=({editor:e,width:n,height:t,initialHeight:r,initialWidth:o,children:s,onResizeStart:l,isIcon:c,onResizeEnd:d,alignment:f,isEmbed:h,type:g,disableInteractions:C=!1})=>{const[y,b]=m.useState({x:-1e3,y:-1e3}),[x,w]=m.useState(30),[k,T]=m.useState("default"),[D,N]=m.useState(!1),{imperativeHandleRef:L,disable:E}=m.useContext(ut),M=C||!!E,[O,I]=m.useState(null),F=m.useMemo(()=>xE(f)||["e-resize"],[f]),_=F.length===1&&F[0]==="e-resize",R=m.useRef(null),j=m.useRef(null),K=m.useRef(null),W=m.useRef({rootHeight:0,rootWidth:0,ratio:1,currentWidth:0,currentWidthPercent:0,currentHeight:0,currentHeightPercent:0,startWidth:0,startWidthPercent:0,startHeight:0,startHeightPercent:0,startX:0,startY:0,direction:"x",isResizing:!1,isTop:!1,isBottom:!1,isLeft:!1,isRight:!1}),B=(ne,Z=95.5)=>{var le;const ce=(le=e._window)==null?void 0:le.innerWidth;if(ce){let se=100;h&&(se=250);const Y=se/ce*100;return ne<Y?Y:ne>Z?Z:ne}else return ne<20?20:ne>100?100:ne},H=(ne,Z)=>{const ce=Math.min(ne,Z);return 15+(Math.max(200,Math.min(800,ce))-100)/500*15},Q=(ne,Z,ce)=>{if(T("default"),!D)return;let le=k;le=kE(ne,Z,ce,F),W.current.isResizing&&(le=k),T(le),w(x),b(se=>wE(ne,le,h||!1,R.current)||se)},ee=ne=>{var se;if(eh)return;ne.preventDefault();const Z=(se=R.current)==null?void 0:se.getBoundingClientRect();if(!Z)return;const ce=ne.clientX-Z.left,le=ne.clientY-Z.top;W.current.isResizing||Q(Z,ce,le)},ae=(ne,Z=12,ce=95.5,le=W.current.rootWidth)=>{const se=R.current,Y=W.current;if(!se||ne.button===2||!(Y!=null&&Y.isResizing))return;const oe=se.getBoundingClientRect(),$=ne.clientX-oe.left,J=ne.clientY-oe.top;Q(oe,$,J);const q=.17,re=f==="right",he=f==="center",ke=Y.isLeft,De=Y.isTop,Ee=Y.isBottom,Pe=Y.direction==="y",Fe=Y.isRight,ze=Math.floor(re?oe.right-ne.clientX-(oe.right-Y.startX):ne.clientX-Y.startX),bt=Math.floor(ne.clientY-Y.startY);let mt=0;ke||Fe?mt=ze/le*100:(De||Ee||he)&&(mt=bt*q),(ke||De)&&(!re||Pe&&!ke)&&(!Ee||he)&&(mt=-mt),(De&&Fe||Ee&&Fe)&&(mt=ze/le*100),mt=Math.max(-100,Math.min(100,mt));const Ht=Y.startWidthPercent+mt,Pt=Y.startHeightPercent+mt;Y.currentWidthPercent=B(Math.max(Z,Ht),ce),Y.currentHeightPercent=B(Math.max(Z,Pt),ce),se.style.width=`${Y.currentWidthPercent}%`,se.style.height=`${Y.currentHeightPercent}%`},pe=()=>{const ne=K.current;ne&&(document.removeEventListener("mousedown",ne,!0),document.removeEventListener("pointerdown",ne,!0),document.removeEventListener("click",ne,!0),K.current=null)},Le=ne=>{var se,Y;const Z=W.current;if(Z.isResizing=!1,pe(),(se=R.current)==null||se.classList.remove("is-resizing"),(Y=R.current)==null||Y.releasePointerCapture(ne.pointerId),d(Z.currentWidthPercent+"%",Z.currentHeightPercent+"%"),document.removeEventListener("pointermove",ae),!R.current)return;const ce=R.current.getBoundingClientRect(),le=H(ce.width,ce.height);w(le)},Se=ne=>{var ge,me;const Z=ne.target;if(Z!=null&&Z.closest(".video-player-controls")||Z!=null&&Z.closest(".video-player-menu-dropdown")||Z!=null&&Z.closest(".mantine-Menu-dropdown"))return;if(ne.button===2||!D){ne.preventDefault(),ne.stopPropagation();return}if(!R.current)return;R.current.classList.add("is-resizing");const ce=e.getRootElement();if(!ce)return;const le=ce.getBoundingClientRect();if(!e.isEditable()||k==="default")return;const se=j.current;if(se===null)return;const Y=(ge=R.current)==null?void 0:ge.getBoundingClientRect();if(!se.getBoundingClientRect()||!Y)return;if(ne.preventDefault(),ne.stopPropagation(),!K.current){const Ce=Be=>{W.current.isResizing&&(Be.preventDefault(),Be.stopPropagation())};K.current=Ce,document.addEventListener("mousedown",Ce,!0),document.addEventListener("pointerdown",Ce,!0),document.addEventListener("click",Ce,!0)}const{width:$,height:J,top:q,left:re}=Y,he=ne.clientX-re,ke=ne.clientY-q,De=ke<=nc,Ee=ke>=J-nc,Pe=he<=nc,Fe=he>=$-nc,ze=W.current,bt=window.getComputedStyle(ce),mt=parseFloat(bt.paddingTop),Ht=parseFloat(bt.paddingBottom),Pt=parseFloat(bt.paddingLeft),V=parseFloat(bt.paddingRight);ze.rootHeight=le.height-mt-Ht||0,ze.rootWidth=le.width-Pt-V||0,ze.ratio=$/J,ze.currentWidth=ze.currentWidth||$,ze.currentWidthPercent=+R.current.style.width.replace("%",""),ze.currentHeight=ze.currentHeight||J,ze.currentHeightPercent=+R.current.style.height.replace("%",""),ze.startX=ne.clientX,ze.startY=ne.clientY,ze.startWidth=ze.currentWidth||$,ze.startWidthPercent=ze.currentWidthPercent,ze.startHeight=ze.currentHeight||J,ze.startHeightPercent=ze.currentHeightPercent,ze.isResizing=!0,ze.isTop=De,ze.isBottom=Ee,ze.isLeft=Pe,ze.isRight=Fe,ze.direction=Ee||De?"y":"x",l&&l(),R.current.setPointerCapture(ne.pointerId);const fe=((me=R.current.parentElement)==null?void 0:me.offsetWidth)??ze.rootWidth,{maxWidthPercent:Re,minResizePercent:Ke}=SE(fe);document.addEventListener("pointermove",Ce=>{var Be,Ye;return ae(Ce,g==="video"?40:Ke,Re,(Ye=(Be=R.current)==null?void 0:Be.parentElement)==null?void 0:Ye.offsetWidth)}),document.addEventListener("pointerup",Le,{capture:!0,once:!0})};m.useEffect(()=>{var se;const ne=R.current;if(!ne)return;if(typeof n=="number"&&typeof t=="number"){ne.style.width=`${B(n)}%`,ne.style.height=`${B(t)}%`;return}const Z=(se=ne.parentElement)==null?void 0:se.getBoundingClientRect();if(!Z)return;const ce=rc(r,Z.height),le=rc(o,Z.width);ne.style.width=`${le}%`,ne.style.height=`${ce}%`},[n,t,o,r]),m.useEffect(()=>{var le;if(!R.current)return;const ne=R.current.getBoundingClientRect(),Z=(le=R.current.parentElement)==null?void 0:le.getBoundingClientRect(),ce=H(ne.width,ne.height);if(w(ce),typeof n=="number"&&typeof t=="number")R.current.style.width=`${B(n)}%`,R.current.style.height=`${B(t)}%`,W.current.currentWidthPercent=n,W.current.currentHeightPercent=t;else if(Z){const se=rc(r,Z.height),Y=rc(o,Z.width);requestAnimationFrame(()=>{R.current&&(R.current.style.height=`${se}%`,R.current.style.width=`${Y}%`)}),W.current.currentWidthPercent=Y,W.current.currentHeightPercent=se}else R.current.style.height="100%",R.current.style.width="100%",W.current.currentWidthPercent=100,W.current.currentHeightPercent=100},[R.current,c,r,o]);const we=ne=>{const ce=ne.target.closest("[data-lexical-decorator]");return ce?e.update(()=>{const le=p.$getNearestNodeFromDOMNode(ce);le&&le instanceof p.DecoratorNode&&(typeof le.select=="function"&&le.select(),I(le))}):I(null),!1},de=()=>(O&&setTimeout(()=>{e.update(()=>(O.insertAfter(p.$createParagraphNode()).selectStart(),I(null),!0))}),!1);return L!=null&&L.current&&(L.current.decoratorEnterAction=de),m.useEffect(()=>{const ne=e.registerCommand(p.CLICK_COMMAND,we,p.COMMAND_PRIORITY_NORMAL);return()=>{ne()}},[O]),eh?s:i.jsxs("div",{ref:R,className:`resizable-container ${f||""} ${_?"hide-padding":""} ${g?`resizable-container--${g}`:""}`,style:{cursor:k,pointerEvents:M?"none":"auto"},onMouseMove:M?void 0:ee,onMouseEnter:M?void 0:()=>N(!0),onMouseLeave:M?void 0:()=>{N(!1),T("default")},onMouseUp:M?void 0:()=>{e.dispatchCommand(es,"show_menu")},onPointerDown:M?void 0:Se,children:[i.jsx("svg",{className:`resizable-container__handle ${D?"hovered":""}`,style:{"--clip-x1":`${y.x-x}px`,"--clip-y1":`${y.y-x}px`,"--clip-x2":`${y.x+x}px`,"--clip-y2":`${y.y-x}px`,"--clip-x3":`${y.x+x}px`,"--clip-y3":`${y.y+x}px`,"--clip-x4":`${y.x-x}px`,"--clip-y4":`${y.y+x}px`,clipPath:`polygon(
|
|
5
|
-
var(--clip-x1) var(--clip-y1),
|
|
6
|
-
var(--clip-x2) var(--clip-y2),
|
|
7
|
-
var(--clip-x3) var(--clip-y3),
|
|
8
|
-
var(--clip-x4) var(--clip-y4)
|
|
9
|
-
)`,opacity:D?1:0,transition:`${W.current.isResizing?"none":` opacity 0.3s ease-in-out, clip-path ${(F==null?void 0:F.length)<4?"0.2s":"0.3s"} cubic-bezier(0.825, 0.225, 0.280, 0.770)`}`},children:i.jsx("rect",{x:0,y:0,width:"100%",height:"100%",stroke:"#D9D9D9",strokeWidth:8,rx:15,ry:15,fill:"none"})}),i.jsx("div",{ref:j,className:"resizable-container__inner",style:{height:"100%",width:"100%",pointerEvents:W.current.isResizing?"none":"auto"},children:s})]})},jc=400;function Mi(e){let n=0;e instanceof WheelEvent?n=e.deltaY:typeof TouchEvent<"u"&&e instanceof TouchEvent&&(n=1);let t=e.target;for(;t&&t!==document.body&&t!==document.documentElement;){const r=window.getComputedStyle(t),o=r.overflowY||r.overflow;if(/(auto|scroll|overlay)/.test(o)&&t.scrollHeight>t.clientHeight){const l=n<0&&t.scrollTop>0,c=n>0&&t.scrollTop+t.clientHeight<t.scrollHeight;if(l||c)return}t=t.parentElement}e.preventDefault()}const EE=299,y0={passive:!1,capture:!1},Jc={passive:!1,capture:!0};function ME(){const e=document.createElement("div");return Object.assign(e.style,{position:"fixed",inset:"0",zIndex:String(EE),pointerEvents:"auto",background:"transparent",touchAction:"none"}),e.setAttribute("aria-hidden","true"),e.addEventListener("wheel",Mi,y0),e.addEventListener("touchmove",Mi,y0),document.body.appendChild(e),e}let sb=0,aa=null;function $a(){sb++>0||(document.addEventListener("wheel",Mi,Jc),document.addEventListener("touchmove",Mi,Jc),aa=ME())}function el(){--sb>0||(document.removeEventListener("wheel",Mi,Jc),document.removeEventListener("touchmove",Mi,Jc),aa==null||aa.remove(),aa=null)}const ib=e=>typeof e=="string"&&e.includes("%")?parseFloat(e):e;function TE(e,n){if(e.match(/\n/))return!1;try{const t=new URL(e);return["javascript:","file:","vbscript:","data:"].includes(t.protocol)?!1:t.hostname?!0:t.protocol!==""&&(t.pathname.startsWith("//")||t.pathname.startsWith("http"))&&!(n!=null&&n.requireHostname)}catch{return!1}}function ab(e){var n;try{if(e.includes("maps/embed"))return e;const t=new URL(e),r=t.href.match(/@([0-9.]+),([0-9.]+),([0-9]+)m/),o=t.href.match(/1s([^!]+)/),s=t.href.match(/!3d([0-9.]+)!4d([0-9.]+)/);if(!r&&!s)throw new Error("Invalid Google Maps URL format");const l=s?s[1]:r?r[1]:"0",c=s?s[2]:r?r[2]:"0",d=r?Math.round(Math.log2(40075016686e-3/(parseFloat(r[3])*2))):14,f=o?o[1]:"",h=((n=navigator==null?void 0:navigator.language)==null?void 0:n.split("-")[0])||"en";return`https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d14774!2d${c}!3d${l}!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f${d}!3m3!1m2!1s${f}!2z!5e1!3m2!1s${h}!2s!4v${Date.now()}!5m2!1s${h}!2s`}catch(t){return console.error("Error link:",t),""}}function LE(e){const n=/https:\/\/lookerstudio\.google\.com\/u\/\d+\/reporting\/([^\/]+)\/page\/([^\/]+)(\/edit)?/;return e.replace(n,"https://lookerstudio.google.com/embed/reporting/$1/page/$2")}function lb(e){if(e)return e.includes("lookerstudio")?LE(e):e.includes("maps")?ab(e):!TE(e,{requireHostname:!1})&&!e.startsWith("/")&&!e.startsWith("#")&&!e.startsWith("mailto:")&&!e.startsWith("sms:")&&!e.startsWith("fax:")&&!e.startsWith("tel:")?`https://${e}`:e}const NE=28,Fs=m.forwardRef(({src:e,title:n,icon:t,canonicalUrl:r,isSelected:o,width:s="100%",height:l,saveUrl:c,editor:d,updateMinHeight:f,disableOutline:h},g)=>{var w;const C=m.useRef(null),[y,b]=m.useState(!1),x=m.useMemo(()=>{var T;return(l?parseFloat(String(l)):((T=C.current)==null?void 0:T.scrollHeight)||0)+NE},[l,(w=C.current)==null?void 0:w.scrollHeight]);return m.useEffect(()=>{const k=setTimeout(()=>{b(!0),e&&(d==null||d.update(()=>{c(e)}))},0);return()=>clearTimeout(k)},[e]),m.useEffect(()=>{x&&f(x)},[x]),i.jsx(v.Box,{className:`frame-container ${o?"selected":""}`,style:{overflow:"hidden",width:"inherit",height:"100%",padding:"0px"},children:y&&i.jsx("iframe",{ref:g||C,style:h?{outline:"none"}:{outline:"1px"},className:"editor-video",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-downloads allow-storage-access-by-user-activation",width:"100%",height:l,frameBorder:"0",title:n||"embed",loading:"lazy",src:lb(e),allowFullScreen:!0})})}),jE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAACglBMVEUAAAAktvjtMET/wAAmtfkhsfkltPjsL0nxVAD/vwAltfj/wgD/wAD/vwD/wAD/wAD/wQD/wgAArvYltvj/wAD/wAD/uwD/vQAQr/8ltvnqKUPHJ0LuMUrKKEL/wAAlt/n/wQDeADn/wQD/vwAbsf3/wQDJKEIltvn/wAD/wQD/wAD/wAD/wQD/wgD/wAD/wAD/wAAjtPYis/oZsPn/sQD0JC4mtfjIJ0Iltvn/wAD/wAD/wAAltvj/wQAltvn/wADvMEn/wQD/wAD/wQD/wAD/wAAjtvjVK0P/wwDjKkD/wADIJ0Iltvn/wQD/wQDvMEoltvnPKUP/wADvMUkktfjRKUP/wAAktvsjufoitfgitfggtPn/wQD/xADjKEX/uQAlt/r/wQDwMEoltfjKKEImuPvNKUPKKEIltvn/wQDKKEL/wQAlt/slt/omt/r/wQD/wQAltfjQKUMktvn/wADQKUP/wAD/wAAitfn/vwDXKUMjtfn/wAD/vgD/wADnK0UftvjuMEruMEnvMEomtfjOKUPvMUn/wADOKUPNKUPRKUT/wQAlt/rRKUMlt/r/wQD/wAD/wQAltvkkt/nNKEIltvoltvjuL0nSKEP/wADVKUTSKEH/vwAjt/ntLkj/vQDiK0TmJ0TRJUPhHj3MKUPPKUMmtvkltfj/wQDuMErMKELwMErvMEkltvjvMUrVKkPUKUP/vgDdK0bwL0jV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sWyAFUQlqb6Ypw9vglR0K3ik6siwUWW2h1LL7K8j0renllj3Y2o5EI9gwvYFguEj1Gwr8Xxfio5cK97n2mxdv3ALzf8HUgkyJELKNlcAAAAASUVORK5CYII=",zE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsSAAALEgHS3X78AAABx0lEQVR42u3asS5DURzH8T6XweAJTBJPQCR2EvEAJoN4BYNEYsKi12CqqTaupFcqTW6R3Cc48h9MlDMYnPYzfNcO55O297S/3sbSRdL81nMIgAVYgAVYgAVYgAELsAALsAALsAADFmABFmABFmABFmDAAizAAizAAizAgAVYgAVYgFU08NbyZTo5HKZBv0nj0TSNHtvUP6vTzuo1nNKB99dv0sNwkrqu+9Jk/JYONm+zX+u71/iPLQxwvHNn4X72/NSm7ZUrwCUCx8dyzoGcHt0DLhE4vnNzDuSuagCXCBwPVDkH8tJMAZcIHE/LOQfS1C3gEoHjKpRzINV5DbhE4LjnxlXop8N4bd/T3lrlLlvqPTjuuXEVmoV7vDsAVPovWXHPjatQPC3HA1V858bHsneu36IFWIABC7AAC7AsOrSwiw5ZdPizwaIDsEUHYIsOwBYdFh0WHRYdgC06ZNEBWIAFWIAFWIAFGLAAm+wANtkx2fm7yY5MdvybZLID2GQHsMkOYJMdkx2THZMdwCY78ls0YAEWYAEWYAEWYMACLMACLMACLMCABViABViABViABRiwAAuwAAuwAAswYAEWYAEWYAHW730AUk9aQB23W5QAAAAASUVORK5CYII=",KE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAACxKAAAsSgF3enRNAAAKwUlEQVR42u2de5BbVR3HQRChvCxKxycW5KGFAUZ5WNrqJtm2gFSsdLG2zWYXpSIzCrai1lHMdG+Sba0USjdJwVqngANLd9uyjDjO8IbCbrKLy2NE69Aipfbhlt3ce+7Ng+31d7LZbjbJTc5JcnNPkt8f30m7uTl793zuOed3fr/f+e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8jGDs1QqIA1DuWA50Bfs8RO2Qp0b3ar4GQC7i3rEYAlZMxL82ap+ublXsDoLaNDFZh8CzOQzTi30A1/fPLnSze2ex6wBViTdx5bLBdha+iEzDjEzdLJcgrTCzmoBFnfrNwaKsm/3AbX4iJ+APv6ZlNt4cw5Cm6evOXj1VAJDXEUJU8Ay81UBrQ1V205OTVPbUJ2ujjlYEIGXEw/tq49v9lcW8j/j0bQwdGTdxybhVrUqn/NRwfwLGwJOuPmImTjYgTg4ipSzsXdFaYWMCFrB/PPAvFP9cGxABvq+vbg2lc2m3tD1zycVUtD2ljbwf7F8RF4FuKoqgENqBqyBl0BOZeqpy2xNdK0BAxJuA/t+a4OaqjTX2K1TajjP25eCls4kJeHA/o0enbh4O4BcPS+I/SQziN4wr9jTKBrYFugnek6eVmxBRxvyhaidjGcy0hh/RtAEiaWLbdAXwh1t6aF+ppxcfl/GD6NurIGm8AAAAAASUVORK5CYII=",VE="data:image/svg+xml,%3csvg%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'%20width='256'%20height='256'%20preserveAspectRatio='xMidYMid'%3e%3cpath%20fill='%23625DF5'%20d='M256%20113.765h-74.858l64.83-37.43-14.237-24.667-64.83%2037.43%2037.421-64.825-24.667-14.246-37.421%2064.826V0h-28.476v74.86L76.326%2010.027%2051.667%2024.266%2089.096%2089.09%2024.265%2051.668l-14.238%2024.66%2064.83%2037.43H0v28.477h74.85l-64.823%2037.43%2014.238%2024.667%2064.824-37.423-37.43%2064.825%2024.667%2014.239%2037.429-64.832V256h28.476v-74.853l37.422%2064.826%2024.665-14.239-37.428-64.832%2064.83%2037.43%2014.24-24.667-64.825-37.423h74.85v-28.477H256ZM128%20166.73c-21.472%200-38.876-17.403-38.876-38.876%200-21.472%2017.404-38.876%2038.876-38.876%2021.472%200%2038.875%2017.404%2038.875%2038.876%200%2021.473-17.403%2038.876-38.875%2038.876Z'/%3e%3c/svg%3e",qE="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FmiOR9QYqh6bLzqCYKmkBk3FR7nR3XhwIVt8ipae+RtsuL8MgVsRH+45TCViVp5ALHF3cB77SabCdmjSmOsboVx5OgHybBHBSIvaLGtJ9qeIMzXsK01Q1DTO8JQlL1jfrOWDMN7Nx3AvTGVi7hVMyNeBINznzsa9jawzwqF8XpozeawmVRPXnkAoLhKjW2x1qRm7NO/YYGwSQ+p40OJVgZDdIkkXqxF0UTBErngjZQljHGhyUyCknLFVjWVSXFDh8WS1rK7ShCDYt6Pc+kBYWXRf8uV5P3M7QvKFvFJBnNy5OJfafD4SmBZDc1YP9K6Jze5KZ18CAbZz5n5AJL8HaQ4Lvq12P01+q6qEJPnUQJPbSWJYrBapJoq2Aw/5KYnFntMCbd635LcTrNuLSIvcJdosVfcdDl1OM7x2b5MsWQpr65H11eWuFewL4epnVvbSzPg5ND2eZnc3PGvxOy8ilrhITRPvolcPImOnYu8uNoZ3I+H+C9Yd6ZxyF9La9sw2mOzbFNara8bNu9S8BideF27sprMr0oKOj9Ec8TsNKfq7hOnG3iUcKSB+j1PTuo3Gtnc+Yz473e7h7vw+X2mGJV+P4/siVuy8Ae9ff0wouNpoXU2Is2lSXI+tmpoXdBLu0wbiPdqaFa8rXS/O7mdO6xVIsmMZscMiCWMoNfmvQDOWZuYJb89/DMu2kyTbBHHschDuXZEmfhrSNgQCyyH1iVgkKo0JED/+HEz4IvDCcezrp36UJ1X5ThGlikSGDfBO4vDxOo5rzwfKoqtfOPYGuTUjMj4BNv860O6n0nzXSGruiknflX4vxaH9ODLxIlmrZtUMH1zolZ6udiEVMrHjpTjcGSsxWpKNxRkUONUcvPMHQDB/BA/9FdC+FSC0BtTC9FI/rwDhvUod9gci2UPYhkmlqMH3QFqlyAZ+onrvIp+e+v9+1d2Lv4munAAAAABJRU5ErkJggg==",$E="data:image/svg+xml,%3csvg%20height='256'%20preserveAspectRatio='xMidYMid'%20viewBox='0%200%20256%20256'%20width='256'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m127.059657%20255.996921c-68.2090026-.470449-127.51673062-57.078479-127.05700194-128.998618.44199434-69.2024402%2057.94900474-127.46727058%20129.10736494-126.99545745%2069.157108.45954053%20127.503089%2057.86392555%20126.885116%20128.19135345.572955%2069.689254-58.060868%20128.29499-128.935479%20127.802722zm0%200c-68.2090026-.470449-127.51673062-57.078479-127.05700194-128.998618.44199434-69.2024402%2057.94900474-127.46727058%20129.10736494-126.99545745%2069.157108.45954053%20127.503089%2057.86392555%20126.885116%20128.19135345.572955%2069.689254-58.060868%20128.29499-128.935479%20127.802722z'%20fill='%23fff'/%3e%3cpath%20d='m127.184644%20238.997327c-59.1522675-.408056-110.5810349-49.498583-110.1823412-111.865899.3837257-60.0128327%2050.2530972-110.5397174%20111.9608142-110.1289408%2059.971427.3985349%20110.568788%2050.1800369%20110.032661%20111.1667638.496666%2060.43313-50.348348%20111.255175-111.811134%20110.828076zm0%200c-59.1522675-.408056-110.5810349-49.498583-110.1823412-111.865899.3837257-60.0128327%2050.2530972-110.5397174%20111.9608142-110.1289408%2059.971427.3985349%20110.568788%2050.1800369%20110.032661%20111.1667638.496666%2060.43313-50.348348%20111.255175-111.811134%20110.828076z'%20fill='%2349a32b'/%3e%3cpath%20d='m169.327319%20127.956161c-.284596%205.290212-4.906213%209.683063-9.461106%208.916425-.021787%200-.044936%200-.068085%200-5.045107.006809-9.139745-4.078298-9.145192-9.123404.171575-5.058724%204.366979-9.045787%209.427064-8.96%205.045106.02451%209.51966%204.288%209.247319%209.166979zm-81.1261275%2051.264c1.9022979.055829%203.8059574.014978%205.9996596.014978v13.785873c-13.6347234%202.305361-24.8660426-1.565958-27.6221277-13.091405-.9436596-4.237617-1.5237447-8.548766-1.7361702-12.885787-.292766-4.591659.2137872-9.235064-.1361702-13.818553-.9695319-12.612085-2.6035745-16.917787-14.706383-17.514213v-15.69634c.8674043-.202894%201.7470638-.352681%202.6321702-.452085%206.6355745-.326809%209.4325107-2.361192%2010.916766-8.897362.6754042-3.672511%201.0757447-7.389958%201.1942127-11.1223831.5256171-7.2170212.3390639-14.5511489%201.5414468-21.6510638%201.737532-10.267234%208.1116596-15.2551489%2018.6403405-15.8134468%202.9957447-.1606808%206.0010212-.0245106%209.3957447-.0245106v14.0908936c-1.3971064.0994042-2.6771064.3022979-3.9489362.2641702-8.5800851-.2628085-9.024%202.6594043-9.650383%209.7620426-.3908085%204.4541276.1484255%208.9845106-.155234%2013.453617-.3172766%204.4473189-.9123405%208.8714889-1.7811064%2013.2452769-1.2377873%206.338723-5.1349787%2011.052936-10.5354894%2015.053617%2010.4837447%206.822127%2011.6765958%2017.422978%2012.3574468%2028.187234.3662979%205.78451.1988085%2011.609872.7857022%2017.365787.4575319%204.467745%202.1950638%205.607489%206.8085106%205.74366zm8.8360851-60.430979h.1620425c5.0124259.083064%209.0103829%204.213106%208.9273189%209.226893%200%20.164766-.005447.328171-.014978.491575-.281873%204.899404-4.481362%208.641362-9.3807664%208.359489-.1974468.004085-.3935319%200-.5909787-.009532-4.9892766-.247829-8.8333617-4.493617-8.5855319-9.482893.2478298-4.989277%204.493617-8.833362%209.4828936-8.585532zm31.2360854%200c5.482212-.042213%209.123404%203.510468%209.152%208.930042.029957%205.565277-3.421958%209.126128-8.868766%209.149277-5.539405.024511-9.186043-3.479149-9.216-8.866043-.016341-.275063-.020426-.550127-.012256-.825191.153873-4.786383%204.158639-8.541958%208.945022-8.388085zm65.399829-6.865702c1.458383%205.446808%204.297532%207.361361%2010.03166%207.622808.939575.043575%201.875064.202894%203.163234.345873v15.692255c-.697191.228766-1.412085.40034-2.137872.512-7.684085.477957-11.186383%203.630298-11.962553%2011.334808-.49566%204.918468-.454809%209.891405-.795234%2014.827575-.142979%205.419574-.635915%2010.82417-1.476086%2016.179745-1.960851%209.703489-8.019063%2014.54434-18.028936%2015.135319-3.221787.190638-6.466723.029957-9.940425.029957v-14.025532c1.869617-.115744%203.52-.275064%205.174468-.314553%205.980596-.142979%208.095319-2.071149%208.388085-8.010894.324085-6.525276.465702-13.058723.757106-19.585361.42349-9.433873%203.006639-17.861447%2011.795064-23.745362-5.028766-3.585362-9.066213-7.92783-10.112-13.783149-1.265021-7.097191-1.673532-14.3509787-2.354383-21.5475744-.33634-3.597617-.32-7.2265532-.671319-10.8214468-.378553-3.8808511-3.044766-5.2234894-6.577021-5.3106383-2.02349-.0490213-4.055149-.0095319-6.642383-.0095319v-13.696c16.509276-2.7411064%2027.913532%202.752%2028.972936%2018.5477446.443915%206.6328511.378553%2013.2970213.803404%2019.9298728.186553%203.60851.725787%207.189787%201.612255%2010.692085z'%20fill='%23fff'/%3e%3c/svg%3e",eM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG5ElEQVR42u2dX4jUVRTH787Mzm5l/yiIwictVgS3ohcfQiVyE/9kQRFmDyZUkNhDURTqQ+FbZGhqICmpvSz9QQtTMgkW/PtSEvWQBfrSPzAr13Vnd2fsXPYe9nj39/M3OzMx957f98KX329mZ4ad+5lz7v3dc879GTO5FbzH80mbSCdIf5FqpCtQW2T7/gLppGOyIIPdpFYU54tIp9Cpwes4qS+F4VWtJF6wTXzAKKnijrDeMKxYMuHntwkLLqZZbhfpkHuD/YBhdGjwsoxG3PlhUtmHLP32PvfCi6QqOi8qq77kzg/4Y3KHe7DevWDQeyM6MB5ddseNjilbs5ntjbnorHgtmc975Rj8oXtyCJYbvcbcsZ/hThdgMe7qsWI7j5phAa8Ws2Z0kC43vcYC3gnA6gAz5L0W8FFMrtSJh9pjFvDP3uAM6XHTlq05iwmWWsDnAFg34LMADMAQAEMADAEwBMAQACev6lRcrHTIHYeVL+zkAvCYA1rNCJBXADjezAbWv6SfSKdJP5D+SHh9DYDjg/spaSVpDukO0s2k20j3kBaTtpD+ca8dUeS2VQKuiSzQ70kPmfra3aTPvJRUAA7wC/FY+iXpJi8luDNBJQ/02wlpLwAcUG6wPQ6QukVGYVFkjZqUMp2yeLxVdFAVgMMQW+6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e0CMpzmbjsrsFrxkaJCmdCcCNibioF/CirEOa3oUiiDWkdQJexGsFSUyP80hBWh/CywoPaUxx2VQ1SnhdEOFqNYfXWTGuFZuwA3FiuI49wC5qHVfREg67KK64hlKrsI/UWRW3DWEn6o2tiOuksJtcvsksGq8In2wys30B+xnuTDKuV6uwI94qKMXNM9hV5aEM/RHCvtJeKu7Jgp2JRqLW2hh3P5X79sFBC3uGC9oMdrH217TOhLdI52vNagFv0jCcplUc3sXQZ+ZkwuF9pu4hTHMMDm+UXSfGc2fBeyUulW7kq/Bu9ZfIin0yOLydyO0/qtz4JnyC6jvaGPba+iF8iDByx2U/ahxfkhA+SDWK+vKo/SRV4dOEaarHv+APh8PhcDj8ezj8Hd8AxYE9wZItsP4AAAAASUVORK5CYII=";function sM({matches:e,...n}){const t=e[0],r=new URL(t).searchParams,o="Draw.io",s=r.get("title")?`${o} (${r.get("title")})`:o;return i.jsx(Fs,{...n,src:n.attrs.href,icon:i.jsx(v.Image,{src:cb,alt:"Diagrams.net",width:16,height:16}),canonicalUrl:n.attrs.href,title:s})}function iM(e){return e.endsWith(".pibb")?e:`${e}.pibb`}function aM(e){const n=iM(e.attrs.href);return i.jsx(Fs,{...e,src:n,canonicalUrl:n,width:"100%",title:"GitHub Gist"})}function lM({matches:e,...n}){let t="";try{t=new URL(e[0]).pathname}catch{t=""}const r=t.replace(/^\/embed/,"/");let o;return r.includes("episode")||r.includes("show")?o=232:r.includes("track")?o=80:o=380,i.jsx(Fs,{...n,disableOutline:!0,width:"100%",height:`${o}px`,src:`https://open.spotify.com/embed${r}`,title:"Spotify Embed",allow:"encrypted-media"})}function cM({matches:e,...n}){const t=e[2];return e[1]==="c"?i.jsx(Fs,{...n,width:"316px",height:"141px",src:`https://trello.com/embed/card?id=${t}`,title:`Trello Card (${t})`}):i.jsx(Fs,{...n,width:"248px",height:"185px",src:`https://trello.com/embed/board?id=${t}`,title:`Trello Board (${t})`})}function uM({matches:e,...n}){const t=e[4],r=e[5],o=`https://player.vimeo.com/video/${t}?byline=0${r?`&h=${r}`:""}`;return i.jsx(Fs,{...n,src:o,canonicalUrl:o,title:`Vimeo Embed (${t})`,height:"412px",referrerPolicy:"origin"})}const dM={github:"GitHub Gist",figma:"Figma",vimeo:"Vimeo Embed"},Bi=[{parentKey:"integrations",platform:"spotify",keywords:["spotify"],key:"spotify",hide:!1,regexMatches:[/(?:https?:\/\/)?(?:open\.)?spotify\.com\/(?:embed\/)?(track|album|playlist|show|episode)\/([a-zA-Z0-9]+)/],icon:i.jsx(Kt,{className:"integration-icon",src:XE}),name:"Spotify",placeholder:"https://open.spotify.com/...",component:lM},{parentKey:"integrations",platform:"figma",keywords:["figma","design"],key:"figma",hide:!1,regexMatches:[new RegExp("^https://([w.-]+\\.)?figma\\.com/(file|proto|board|design)/([0-9a-zA-Z]{22,128})(?:/.*)?$"),new RegExp("^https://([w.-]+\\.)?figma\\.com/embed(.*)$")],transformMatch:e=>e[0].includes("/embed")?e[0]:`https://www.figma.com/embed?embed_host=outline&url=${encodeURIComponent(e[0])}`,icon:i.jsx(Kt,{className:"integration-icon",src:OE}),name:"Figma",placeholder:"https://www.figma.com/...",getIframeUrl:e=>`https://www.figma.com/embed?embed_host=share&url=${e}`},{parentKey:"integrations",platform:"airtable",keywords:["spreadsheet"],key:"airtable",hide:!1,regexMatches:[new RegExp("^https://airtable.com/(?:embed/)?(app.*/)?(shr.*)$"),new RegExp("^https://airtable.com/(app.*/)?(pag.*)/form$")],icon:i.jsx(Kt,{className:"integration-icon",src:jE}),name:"Airtable",placeholder:"https://airtable.com/...",transformMatch:e=>`https://airtable.com/embed/${e[1]??""}${e[2]}`,getIframeUrl:e=>`https://airtable.com/embed/${e}`},{parentKey:"integrations",platform:"codepen",keywords:["code","editor"],key:"codepen",hide:!1,regexMatches:[/^https:\/\/codepen\.io\/(.*?)\/(pen|embed)\/(.*)$/],icon:i.jsx(Kt,{className:"integration-icon",src:RE}),name:"Codepen",placeholder:"https://codepen.io/...",transformMatch:e=>`https://codepen.io/${e[1]}/embed/${e[3]}`,getIframeUrl:e=>`https://codepen.io/${e}/embed/`},{parentKey:"integrations",platform:"dbdiagram",keywords:["diagrams","database"],key:"dbdiagram",hide:!1,regexMatches:[/^https:\/\/dbdiagram\.io\/(embed|e|d)\/(\w+)(\/.*)?$/],icon:i.jsx(Kt,{className:"integration-icon",src:IE}),name:"DBDiagram",placeholder:"https://dbdiagram.io/...",transformMatch:e=>`https://dbdiagram.io/embed/${e[2]}`,getIframeUrl:e=>`https://dbdiagram.io/embed/${e}`},{parentKey:"integrations",platform:"diagrams",keywords:["diagrams","drawio"],key:"diagrams",hide:!1,regexMatches:[/^https:\/\/viewer\.diagrams\.net\/(?!proxy).*(title=\\w+)?/],icon:i.jsx(Kt,{className:"integration-icon",src:cb}),name:"Diagrams.net",placeholder:"https://viewer.diagrams.net/...",component:sM},{parentKey:"integrations",platform:"descript",keywords:["audio"],key:"descript",hide:!1,regexMatches:[/^https?:\/\/share\.descript\.com\/view\/(\w+)$/],icon:i.jsx(Kt,{className:"integration-icon",src:DE}),name:"Descript",placeholder:"https://share.descript.com/...",transformMatch:e=>`https://share.descript.com/embed/${e[1]}`,getIframeUrl:e=>`https://share.descript.com/embed/${e}`},{parentKey:"integrations",platform:"github",keywords:["code"],key:"gist",hide:!1,regexMatches:[/^https:\/\/gist\.github\.com\/([a-zA-Z\d](?:[a-zA-Z\d]|-(?=[a-zA-Z\d])){0,38})\/(.*)$/],icon:i.jsx(Kt,{className:"integration-icon",src:PE}),name:"GitHub Gist",placeholder:"https://gist.github.com/...",component:aM},{parentKey:"integrations",platform:"google-maps",keywords:["maps"],key:"google-maps",hide:!1,regexMatches:[/https?:\/\/(?!maps\.app\.goo\.gl\/2SrY88FwWBpKDkk88)(?:maps\.app\.goo\.gl\/[\w-]+|www\.google\.com\/maps\/[\S]+)/],icon:i.jsx(Kt,{className:"integration-icon",src:UE}),name:"Google Maps",placeholder:"https://www.google.com/maps/...",transformMatch:e=>e[0]},{parentKey:"integrations",platform:"google-drawings",keywords:["drawings"],key:"google-drawings",hide:!1,regexMatches:[/^https:\/\/docs\.google\.com\/drawings\/d\/(.*)\/(edit|preview)(.*)$/],icon:i.jsx(Kt,{className:"integration-icon",src:FE}),name:"Google Drawings",placeholder:"https://docs.google.com/drawings/...",transformMatch:e=>e[0].replace("/edit","/preview")},{parentKey:"integrations",platform:"google-drive",keywords:["drive"],key:"google-drive",hide:!1,regexMatches:[/^https?:\/\/drive\.google\.com\/file\/d\/(.*)$/],icon:i.jsx(Kt,{className:"integration-icon",src:WE}),name:"Google Drive",placeholder:"https://drive.google.com/...",transformMatch:e=>e[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-docs",keywords:["documents","word"],key:"google-docs",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/document\/(.*)$/],icon:i.jsx(Kt,{className:"integration-icon",src:_E}),name:"Google Docs",placeholder:"https://docs.google.com/document/...",transformMatch:e=>e[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-sheets",keywords:["excel","spreadsheet"],key:"google-sheets",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/spreadsheets\/d\/(.*)$/],icon:i.jsx(Kt,{className:"integration-icon",src:HE}),name:"Google Sheets",placeholder:"https://docs.google.com/spreadsheets/...",transformMatch:e=>e[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-slides",keywords:["presentation","slideshow"],key:"slides",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/presentation\/d\/(.*)$/],transformMatch:e=>e[0].replace("/edit","/preview").replace("/pub","/embed"),icon:i.jsx(Kt,{className:"integration-icon",src:YE,alt:"Google Slides"}),name:"Google Slides",placeholder:"https://docs.google.com/presentation/..."},{parentKey:"integrations",platform:"google-calendar",keywords:["calendar"],key:"calendar",hide:!1,regexMatches:[/^https:\/\/calendar\.google\.com\/calendar\/embed\?src=(.*)$/],transformMatch:e=>e[0],icon:i.jsx(Kt,{className:"integration-icon",src:BE,alt:"Google Calendar"}),name:"Google Calendar",placeholder:"https://calendar.google.com/..."},{parentKey:"integrations",platform:"google-forms",keywords:["form","survey"],key:"forms",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/forms\/d\/(.+)$/],transformMatch:e=>e[0].replace(/\/(edit|viewform)(\?.+)?$/,"/viewform?embedded=true"),icon:i.jsx(Kt,{className:"integration-icon",src:zE,alt:"Google Forms"}),name:"Google Forms",placeholder:"https://docs.google.com/forms/..."},{parentKey:"integrations",platform:"google-business",keywords:["bi","business intelligence"],key:"lookerstudio",hide:!1,regexMatches:[/^https?:\/\/(lookerstudio|datastudio)\.google\.com\/(embed|u\/0)\/reporting\/(.*)\/page\/(.*)(\/edit)?$/],transformMatch:e=>e[0].replace("u/0","embed").replace("/edit",""),icon:i.jsx(Kt,{className:"integration-icon",src:KE,alt:"Google Looker Studio"}),name:"Google Looker Studio",placeholder:"https://lookerstudio.google.com/..."},{parentKey:"integrations",platform:"grist",keywords:["spreadsheet"],key:"grist",hide:!1,regexMatches:[/^https?:\/\/([a-z.-]+\.)?getgrist\.com\/(.+)$/],transformMatch:e=>{const n=e.input??e[0];return n.includes("style=singlePage")?n:n.replace(/(\?embed=true)?$/,"?embed=true")},icon:i.jsx(Kt,{className:"integration-icon",src:ZE,alt:"Grist"}),name:"Grist",placeholder:"https://docs.getgrist.com/..."},{parentKey:"integrations",platform:"instagram",keywords:["post"],key:"instagram",hide:!1,regexMatches:[/^https?:\/\/www\.instagram\.com\/(p|reel)\/([\w-]+)(\/?utm_source=\w+)?/],transformMatch:e=>`${e[0]}/embed`,icon:i.jsx(Kt,{className:"integration-icon",src:GE,alt:"Instagram"}),name:"Instagram",placeholder:"https://www.instagram.com/..."},{parentKey:"integrations",platform:"loom",keywords:["video","screencast"],key:"loom",hide:!1,regexMatches:[/^https:\/\/(www\.)?(use)?loom\.com\/(embed|share)\/(.*)$/],transformMatch:e=>e[0].replace("share","embed"),icon:i.jsx(Kt,{className:"integration-icon",src:VE,alt:"Loom"}),name:"Loom",placeholder:"https://www.loom.com/..."},{parentKey:"integrations",platform:"lucidchart",keywords:["chart"],key:"lucidchart",hide:!1,regexMatches:[/^https?:\/\/(www\.|app\.)?(lucidchart\.com|lucid\.app)\/documents\/(embeddedchart|view|edit)\/(?<chartId>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})(?:.*)?$/,/^https?:\/\/(www\.|app\.)?(lucid\.app|lucidchart\.com)\/lucidchart\/(?<chartId>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\/(embeddedchart|view|edit)(?:.*)?$/],transformMatch:e=>{var n;return`https://lucidchart.com/documents/embeddedchart/${(n=e.groups)==null?void 0:n.chartId}`},icon:i.jsx(Kt,{className:"integration-icon",src:qE,alt:"Lucidchart"}),name:"Lucidchart",placeholder:"https://lucid.app/lucidchart/..."},{parentKey:"integrations",platform:"miro",keywords:["whiteboard"],key:"miro",hide:!1,regexMatches:[/^https:\/\/(realtimeboard|miro)\.com\/app\/board\/(.*)$/],transformMatch:e=>`https://${e[1]}.com/app/embed/${e[2]}`,icon:i.jsx(Kt,{className:"integration-icon",src:QE,alt:"Miro"}),name:"Miro",placeholder:"https://miro.com/app/board/..."},{parentKey:"integrations",platform:"scribe",keywords:["screencast"],key:"scribe",hide:!1,regexMatches:[/^https?:\/\/scribehow\.com\/shared\/(.*)$/],transformMatch:e=>`https://scribehow.com/embed/${e[1]}`,icon:i.jsx(Kt,{className:"integration-icon",src:JE,alt:"Scribe"}),name:"Scribe",placeholder:"https://scribehow.com/..."},{parentKey:"integrations",platform:"swagger",keywords:["swagger","api"],key:"swagger",hide:!0,regexMatches:[/^https?:\/\/([a-z.-]+\.)?getgrist\.com\/(.+)$/],transformMatch:e=>e.input??e[0],icon:i.jsx(Kt,{className:"integration-icon",src:$E,alt:"Swagger"}),name:"Swagger"},{parentKey:"integrations",platform:"tldraw",keywords:["draw","schematics","diagrams"],key:"tldraw",hide:!1,regexMatches:[/^https?:\/\/(beta|www|old)\.tldraw\.com\/[rsvo]+\/(.*)$/],transformMatch:e=>e[0],icon:i.jsx(Kt,{className:"integration-icon",src:eM,alt:"Tldraw"}),name:"Tldraw",placeholder:"https://www.tldraw.com/..."},{parentKey:"integrations",platform:"trello",keywords:["kanban"],key:"trello",hide:!1,regexMatches:[/^https:\/\/trello\.com\/(c|b)\/([^/]*)(.*)?$/],icon:i.jsx(Kt,{className:"integration-icon",src:tM,alt:"Trello"}),component:cM,name:"Trello",placeholder:"https://trello.com/..."},{parentKey:"integrations",platform:"typeform",keywords:["form","survey"],key:"typeform",hide:!1,regexMatches:[/^https:\/\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)\.typeform\.com\/to\/(.*)$/],transformMatch:e=>e[0],icon:i.jsx(Kt,{className:"integration-icon typeform",src:nM,alt:"Typeform"}),name:"Typeform",placeholder:"https://typeform.com/..."},{parentKey:"integrations",platform:"valtown",keywords:["code"],key:"valtown",hide:!1,regexMatches:[/^https?:\/\/(?:www.)?val\.town\/(?:v|embed)\/(.*)$/],transformMatch:e=>`https://www.val.town/embed/${e[1]}`,icon:i.jsx(Kt,{className:"integration-icon",src:rM,alt:"Valtown"}),name:"Valtown",placeholder:"https://www.val.town/..."},{parentKey:"integrations",platform:"vimeo",keywords:["video"],key:"vimeo",hide:!1,regexMatches:[/(http|https)?:\/\/(www\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|)(\d+)(?:\/|\?)?([\d\w]+)?/],icon:i.jsx(Kt,{className:"integration-icon",src:oM,alt:"Vimeo"}),name:"Vimeo",placeholder:"https://vimeo.com/...",component:uM}];function Kt({w:e=16,h:n=16,...t}){return i.jsx(v.Image,{w:e,h:n,...t})}const th=(e,n=[])=>{const t=n??[];for(const r of t){const o=e.match(r);if(o)return o}return!1};function fM(e){for(const n of Bi){const t=th(e,n.regexMatches);if(t)return{embed:n,matches:t}}}function ub(e){var r;let n=null;const t=Bi.find(o=>o.regexMatches.some(s=>{var l;return n=e.match(s),n?{platform:o.platform,id:((l=o==null?void 0:o.transformMatch)==null?void 0:l.call(o,n))||"valid"}:{platform:"unknown",id:null}}));return t?{platform:t.platform,id:n?((r=t.transformMatch)==null?void 0:r.call(t,n))||"valid":null}:{platform:"unknown",id:null}}function hM(e,n){var r;const t=Bi.find(o=>o.platform===e);return t?((r=t==null?void 0:t.getIframeUrl)==null?void 0:r.call(t,n))||"valid":""}const pM=({height:e,width:n,id:t,platform:r,src:o})=>{const s=dM[r]||r,c=`${parseInt(e,10)-24}px`;return i.jsxs("span",{className:"frame-container",style:{width:n,height:e},children:[i.jsx("iframe",{"data-lexical-embedid":t,"data-lexical-platform":r,src:o,style:{margin:0},width:"100%","data-exportheight":e,"data-exportwidth":n,height:c,allowFullScreen:!0,frameBorder:"0"}),i.jsx("span",{className:"frame-bar","data-title":s,children:i.jsx("a",{className:"frame-open-link",href:o,target:"_blank",rel:"noopener noreferrer"})})]})},oa="light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))";function x0({icon:e,title:n,actions:t}){return i.jsxs("div",{className:"embed-header",children:[i.jsxs("div",{className:"embed-header__title",children:[i.jsx("div",{className:"embed-header__icon",children:e}),i.jsx(v.Text,{size:"sm",fw:500,c:"bright",truncate:!0,children:n})]}),i.jsx("div",{className:"embed-header__actions",children:t})]})}function hf({showPreview:e,onTogglePreview:n,onViewOriginal:t,onCopyLink:r,onDelete:o}){const{t:s}=Ze.useTranslation();return i.jsxs(v.Menu,{shadow:"md",position:"bottom-end",withinPortal:!0,children:[i.jsx(v.Menu.Target,{children:i.jsx(Cn,{className:"embed-action-btn",label:s("editor.embed.moreAction"),icon:Mr,iconColor:"var(--mantine-color-gray-text)"})}),i.jsxs(v.Menu.Dropdown,{miw:232,children:[i.jsx(v.Menu.Item,{leftSection:i.jsx(te,{icon:e?$h:iA,size:16,color:"currentColor"}),onClick:n,children:s(e?"editor.embed.hidePreview":"editor.embed.showPreview")}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{leftSection:i.jsx(te,{icon:VC,size:16,color:"currentColor"}),onClick:t,children:s("editor.embed.viewOriginal")}),i.jsx(v.Menu.Item,{leftSection:i.jsx(te,{icon:Vh,size:16,color:"currentColor"}),onClick:r,children:s("editor.embed.copyLink")}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{color:"red",leftSection:i.jsx(te,{icon:jn,size:16,color:"currentColor"}),onClick:o,children:s("editor.embed.delete")})]})]})}function oc({opened:e,onClose:n,hasPreview:t,showPreview:r,onTogglePreview:o,onViewOriginal:s,onCopyLink:l,onDuplicate:c,onDelete:d}){const{t:f}=Ze.useTranslation(),h=g=>{n(),g()};return i.jsx(En,{opened:e,onClose:n,title:f("editor.menu.main.code.mobileActions"),children:i.jsxs(v.Stack,{gap:16,p:0,children:[t&&i.jsx(v.Stack,{gap:2,p:0,children:i.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:oa,leftSection:i.jsx(te,{icon:r?$h:iA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(o),children:f(r?"editor.embed.hidePreview":"editor.embed.showPreview")})}),i.jsxs(v.Stack,{gap:2,p:0,children:[t&&i.jsxs(i.Fragment,{children:[i.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:oa,leftSection:i.jsx(te,{icon:VC,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(s),children:f("editor.embed.viewOriginal")}),i.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:oa,leftSection:i.jsx(te,{icon:Vh,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(l),children:f("editor.embed.copyLink")})]}),c&&!t&&i.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:oa,leftSection:i.jsx(te,{icon:uo,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(c),children:f("editor.contextMenu.duplicate")})]}),i.jsx(v.Stack,{gap:2,p:0,children:i.jsx(v.Button,{variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:oa,leftSection:i.jsx(te,{icon:jn,size:16,color:"var(--mantine-color-red-6)"}),onClick:()=>h(d),children:f("editor.embed.delete")})})]})})}function mM({opened:e,onClose:n,title:t,url:r,onUrlChange:o,onSubmit:s,onCancel:l,inputPlaceholder:c,invalidUrl:d,errorMessage:f}){const{t:h}=Ze.useTranslation();return i.jsx(En,{opened:e,onClose:n,title:t,children:i.jsxs(v.Stack,{gap:16,p:0,children:[i.jsx(v.TextInput,{placeholder:c,type:"url",size:"sm",variant:"default","data-autofocus":!0,value:r,onChange:g=>o(g.currentTarget.value),error:d?f:void 0}),i.jsxs(v.Stack,{gap:8,p:0,children:[i.jsx(v.Button,{h:36,fullWidth:!0,onClick:s,disabled:!r,children:h("editor.embed.save")}),i.jsx(v.Button,{h:36,fullWidth:!0,variant:"subtle",color:"gray",onClick:l,children:h("editor.cancel")})]})]})})}function gM({className:e,format:n,platform:t,embedId:r,embedSrc:o="",width:s,editor:l,nodeKey:c,create:d,showPreview:f}){const[h,g]=m.useState(r||""),[C,y]=m.useState(!1),[b,x]=m.useState(d||!1),[w,k]=m.useState(f!==!1),{t:T}=Ze.useTranslation(),{disable:D,onTrack:N}=m.useContext(ut),[L,{open:E,close:M}]=Sn.useDisclosure(!1),[O,{open:I,close:F}]=Sn.useDisclosure(!1),_=xu(),R=m.useMemo(()=>Bi.find($=>$.platform===t),[t]);m.useEffect(()=>{if(b)return Nt||$a(),()=>{Nt||el()}},[b]);const j=m.useMemo(()=>fM(h),[h]);m.useEffect(()=>{g(r||"")},[r]);const K=m.useMemo(()=>j!=null&&j.embed.transformMatch?j.embed.transformMatch(j.matches):o||r||"",[j,o,r]),W=m.useMemo(()=>lb(K),[K]),B=R!=null&&R.icon?R.icon:i.jsx(te,{icon:of,size:20,color:"var(--mantine-color-gray-text)"}),H=(R==null?void 0:R.name)||T("editor.embed.insert"),Q=$=>{l.update(()=>{const J=p.$getNodeByKey(c);return sa(J)&&J.setMinHeight($),!0})},ee=$=>{const J=p.$getNodeByKey(c),q=th(h,(j==null?void 0:j.embed.regexMatches)||[]);if(sa(J)&&q){const re=h.includes("maps");if($&&!re){J.setSrc($);return}J.setPlatform(j==null?void 0:j.embed.platform),J.setId(h),re?J.setSrc(ab(h)):j!=null&&j.embed.transformMatch?J.setSrc(j==null?void 0:j.embed.transformMatch(j==null?void 0:j.matches)):J.setSrc(h)}},ae=($,J)=>{l.update(()=>{p.$setSelection(null);const q=p.$getNodeByKey(c);return sa(q)&&q.setWidthAndHeight($,J),!0})},pe=()=>{if(!th(h,(j==null?void 0:j.embed.regexMatches)||[])&&!(j!=null&&j.embed.platform)){y(!0);return}l.update(()=>{const J=p.$getNodeByKey(c);if(!J)return;ee();const q=J.getNextSibling();q&&p.$setSelection(q.selectNext())}),x(!1),y(!1)},Le=$=>{$.preventDefault(),pe()},Se=()=>{x(!1),g(""),y(!1)},we=()=>{N==null||N("block_deleted"),l.update(()=>{const $=p.$getNodeByKey(c);$&&$.remove()})},de=()=>{N==null||N("block_duplicated"),l.update(()=>{const $=p.$getNodeByKey(c);$&&$.insertAfter(Nr($))})},ne=()=>{r&&navigator.clipboard.writeText(r).then(()=>_(T("editor.embed.linkCopied")),()=>_(T("editor.embed.linkCopyFailed")))},Z=()=>{r&&window.open(r,"_blank","noopener,noreferrer")},ce=()=>{const $=!w;k($),l.update(()=>{const J=p.$getNodeByKey(c);sa(J)&&J.setShowPreview($)})},le=()=>{E()},se=()=>{if(j!=null&&j.embed.transformMatch){const $=j==null?void 0:j.embed.transformMatch(j==null?void 0:j.matches);return i.jsx(Fs,{src:$,width:"100%",height:"400px",canonicalUrl:h,title:R==null?void 0:R.name,allow:"encrypted-media",saveUrl:ee,editor:l,updateMinHeight:Q})}return R!=null&&R.component?R.component({saveUrl:ee,attrs:{href:h},matches:j==null?void 0:j.matches,isSelected:!1,isEditable:!1,embed:R,editor:l,updateMinHeight:Q}):i.jsx("div",{})};m.useEffect(()=>{d&&x(!0)},[d]);const Y=(R==null?void 0:R.placeholder)||T("editor.embed.placeholder"),oe=R!=null&&R.name?`${T("editor.embed.addPrefix")} ${R.name}`:T("editor.embed.addEmbed");return r?w?j?i.jsx(Qo.BlockWithAlignableContents,{className:e,format:n,nodeKey:c,children:i.jsxs(A1,{editor:l,width:ib(s),isIcon:!1,isEmbed:!0,height:400,onResizeEnd:ae,children:[i.jsx(v.Modal,{opened:L,onClose:M,fullScreen:!0,title:H,zIndex:1e4,children:i.jsx(v.Box,{style:{height:"calc(100dvh - 2 * var(--mantine-spacing-xl))",minHeight:"60vh"},children:W?i.jsx("iframe",{sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-downloads allow-storage-access-by-user-activation",width:"100%",height:"100%",style:{border:0,minHeight:"calc(100dvh - 2 * var(--mantine-spacing-xl))"},title:H,src:W,allowFullScreen:!0}):R!=null&&R.component?i.jsx(v.Box,{style:{height:"100%",minHeight:"60vh"},children:R.component({saveUrl:ee,attrs:{href:h},matches:j==null?void 0:j.matches,isSelected:!1,isEditable:!1,embed:R,editor:l,updateMinHeight:Q})}):null})}),i.jsx("div",{className:"embed-block embed-block--preview",children:i.jsxs("div",{className:"embed-block__box",children:[i.jsx(x0,{icon:B,title:H,actions:D?null:Nt?i.jsxs(i.Fragment,{children:[i.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:I,children:i.jsx(te,{icon:Mr,size:16,color:"currentColor"})}),i.jsx(oc,{opened:O,onClose:F,hasPreview:!0,showPreview:w,onTogglePreview:ce,onViewOriginal:Z,onCopyLink:ne,onDelete:we})]}):i.jsxs(v.Flex,{gap:4,align:"center",children:[i.jsx(Cn,{className:"embed-action-btn",label:T("editor.embed.openPreview"),icon:D8,iconColor:"var(--mantine-color-gray-text)",onClick:le}),i.jsx(ob,{currentAlignment:n||"left",onAlign:$=>{l.update(()=>{const J=p.$getNodeByKey(c);sa(J)&&J.setFormat($)})},className:"embed-action-btn",targetLabel:T("editor.embed.alignment")}),i.jsx(hf,{showPreview:w,onTogglePreview:ce,onViewOriginal:Z,onCopyLink:ne,onDelete:we})]})}),i.jsx("div",{className:"embed-block__preview-content",children:se()})]})})]})}):i.jsx(Qo.BlockWithAlignableContents,{className:e,format:n,nodeKey:c,children:i.jsx("div",{className:"embed-block embed-block--inline",children:i.jsxs("div",{className:"embed-inline",children:[i.jsxs("div",{className:"embed-inline__info",children:[i.jsx(te,{icon:of,size:20,color:"currentColor"}),i.jsx(v.Text,{size:"md",c:"bright",truncate:!0,children:r})]}),D?null:Nt?i.jsxs(i.Fragment,{children:[i.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:I,children:i.jsx(te,{icon:Mr,size:16,color:"currentColor"})}),i.jsx(oc,{opened:O,onClose:F,hasPreview:!1,showPreview:!1,onTogglePreview:ce,onViewOriginal:Z,onCopyLink:ne,onDelete:we})]}):i.jsx(hf,{showPreview:!1,onTogglePreview:ce,onViewOriginal:Z,onCopyLink:ne,onDelete:we})]})})}):i.jsx(Qo.BlockWithAlignableContents,{className:e,format:n,nodeKey:c,children:i.jsx("div",{className:"embed-block embed-block--inline",children:i.jsxs("div",{className:"embed-inline",children:[i.jsxs("div",{className:"embed-inline__info",children:[i.jsx(te,{icon:of,size:20,color:"currentColor"}),i.jsx(v.Text,{size:"md",c:"bright",truncate:!0,children:H})]}),D?null:Nt?i.jsxs(i.Fragment,{children:[i.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:I,children:i.jsx(te,{icon:Mr,size:16,color:"currentColor"})}),i.jsx(oc,{opened:O,onClose:F,hasPreview:!0,showPreview:w,onTogglePreview:ce,onViewOriginal:Z,onCopyLink:ne,onDelete:we})]}):i.jsx(hf,{showPreview:w,onTogglePreview:ce,onViewOriginal:Z,onCopyLink:ne,onDelete:we})]})})}):i.jsx(Qo.BlockWithAlignableContents,{className:e,format:n,nodeKey:c,children:i.jsx("div",{className:"embed-block embed-block--empty",children:i.jsxs("div",{className:"embed-block__box",children:[i.jsx(x0,{icon:B,title:H,actions:D?null:Nt?i.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:I,children:i.jsx(te,{icon:Mr,size:16,color:"currentColor"})}):i.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[i.jsx(mu,{label:T("editor.contextMenu.duplicate"),ariaLabel:"duplicate-embed-block",onClick:de}),i.jsx(fs,{label:T("editor.actions.delete"),ariaLabel:"remove-embed-block",onClick:we})]})}),Nt?i.jsxs(i.Fragment,{children:[i.jsx(v.UnstyledButton,{className:"embed-block__placeholder",onClick:()=>x(!0),children:i.jsx(v.Text,{size:"md",c:"var(--mantine-color-placeholder)",truncate:!0,children:oe})}),i.jsx(mM,{opened:b,onClose:Se,title:oe,url:h,onUrlChange:g,onSubmit:pe,onCancel:Se,inputPlaceholder:Y,invalidUrl:C,errorMessage:T("editor.validation.link")}),i.jsx(oc,{opened:!D&&O,onClose:F,hasPreview:!1,showPreview:!1,onTogglePreview:ce,onViewOriginal:Z,onCopyLink:ne,onDuplicate:de,onDelete:we})]}):i.jsxs(v.Popover,{width:400,position:"bottom-start",shadow:"md",opened:b,trapFocus:!0,onChange:$=>{x($),$||(g(""),y(!1))},withinPortal:!0,zIndex:jc,children:[i.jsx(v.Popover.Target,{children:i.jsx(v.UnstyledButton,{className:"embed-block__placeholder",onClick:()=>x($=>!$),children:i.jsx(v.Text,{size:"md",c:"var(--mantine-color-placeholder)",truncate:!0,children:oe})})}),i.jsx(v.Popover.Dropdown,{className:"embed-url-input",children:i.jsxs("form",{onSubmit:Le,children:[i.jsx(v.TextInput,{placeholder:Y,type:"url",size:"sm",variant:"default","data-autofocus":!0,value:h,onChange:$=>g($.currentTarget.value),error:C?T("editor.validation.link"):void 0}),i.jsxs(v.Flex,{justify:"flex-end",mt:"xs",gap:8,children:[i.jsx(v.Button,{variant:"subtle",size:"xs",color:"gray",onClick:Se,children:T("editor.cancel")}),i.jsx(v.Button,{type:"submit",size:"xs",disabled:!h,children:T("editor.embed.save")})]})]})})]})]})})})}function CM(e){const n=e.getAttribute("data-lexical-platform"),t=e.getAttribute("src"),r=e.getAttribute("data-lexical-embedid")||"",o=parseFloat(e.getAttribute("data-exportwidth")??"100%"),s=parseFloat(e.getAttribute("height")??"100%"),l=e.getAttribute("data-exportheight");if(n&&typeof t=="string"){const c=b1(t,o,s,r,!1,n);return c.setMinHeight(parseFloat(l)),{node:c}}return{node:null}}class _i extends qr.DecoratorBlockNode{constructor(t,r,o,s,l,c,d,f,h,g){super(o,c);Me(this,"__platform");Me(this,"__id");Me(this,"__create");Me(this,"__width");Me(this,"__height");Me(this,"__src");Me(this,"__minHeight");Me(this,"__showPreview");this.__platform=t,this.__id=r,this.__create=d||!1,this.__width=s||560,this.__height=l||315,this.__src=f,this.__minHeight=h||400,this.__showPreview=g!==!1}static getType(){return"embed"}static clone(t){return new _i(t.__platform,t.__id,t.__format,t.__width,t.__height,t.__key,t.__create,t.__src,t.__minHeight,t.__showPreview)}static importJSON(t){const r=b1(t.src,t.width,t.height,t.embedId,t.create,t.platform,t.showPreview);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"embed",version:1,platform:this.__platform,embedId:this.__id,width:this.__width,height:this.__height,src:this.__src,showPreview:this.__showPreview}}createDOM(){const t=document.createElement("div");return t.className="editor-iframe",t}static importDOM(){return{iframe:t=>{const r=t.getAttribute("data-lexical-platform"),o=t.getAttribute("data-lexical-embedid");return r&&typeof o=="string"?{conversion:CM,priority:1}:null}}}updateDOM(){return!1}exportDOM(){const t=typeof this.__width=="string"&&this.__width.includes("%")?this.__width:`${this.__width}%`,r=this.__src||"",o=q9.renderToString(i.jsx(pM,{platform:this.__platform,id:this.__id,src:r,height:(typeof this.__height=="number"?this.__height:this.__minHeight).toString()+"px",width:t})),s=document.createElement("div");return s.innerHTML=o,{element:s.firstChild}}decorate(t,r){const s={base:(r.theme.embedBlock||{}).base||"",focus:""};return i.jsx(gM,{editor:t,nodeKey:this.getKey(),format:this.__format,className:s,platform:this.__platform,embedId:this.__id,embedSrc:this.__src??"",width:this.__width,height:this.__height,create:this.__create,showPreview:this.__showPreview})}setMinHeight(t){const r=this.getWritable();r.__minHeight=t}setPlatform(t){const r=this.getWritable();r.__platform=t}setId(t){const r=this.getWritable();r.__id=t}setSrc(t){const r=this.getWritable();r.__src=t}getId(){return this.__id}setCreated(t){const r=this.getWritable();r.__create=t}setShowPreview(t){const r=this.getWritable();r.__showPreview=t}getShowPreview(){return this.__showPreview}getTextContent(){return hM(this.__platform,this.__id)}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}}function b1(e,n,t,r,o,s,l){let c=s||"unknown";if(!s){const{platform:d}=ub(e||"");c=d||"unknown"}return new _i(c,r,void 0,n,t,void 0,o,e,void 0,l)}function sa(e){return e instanceof _i}const v0=m.lazy(()=>Promise.resolve().then(()=>require("./layers.DkNxNBfM.js")));function AM(e){const n=e.getAttribute("data-lexical-excalidraw-json"),t=e.firstChild.style.height||"0",r=e.firstChild.style.width||"0",o=e.style.justifyContent||"left",s=t==="inherit"?"inherit":parseInt(t,10),l=r==="inherit"?"inherit":parseInt(r,10);return n?{node:y1(n,l,s,o)}:null}class us extends p.DecoratorNode{constructor(t="[]",r="inherit",o="inherit",s="left",l){super(l);Me(this,"__data");Me(this,"__width");Me(this,"__height");Me(this,"__alignment");this.__data=t,this.__width=r,this.__height=o,this.__alignment=s}static getType(){return"excalidraw"}static clone(t){return new us(t.__data,t.__width,t.__height,t.__alignment,t.__key)}static importJSON(t){return new us(t.data,t.width??"inherit",t.height??"inherit",t.alignment??"left")}exportJSON(){return{data:this.__data,height:this.__height==="inherit"?void 0:this.__height,type:"excalidraw",version:1,width:this.__width==="inherit"?void 0:this.__width,alignment:this.__alignment||"left"}}createDOM(t){const r=document.createElement("span"),s=t.theme.excalidraw;return s!==void 0&&(r.className=s),r}updateDOM(){return!1}static importDOM(){return{span:t=>t.className==="editor-excalidraw"?{conversion:AM,priority:2}:null}}exportDOM(t){const r=document.createElement("span"),o=document.createElement("span");r.style.display="inline-block",r.style.width="100%";const s=t.getElementByKey(this.getKey());if(s!==null){const l=s.querySelector(".excalidraw-svg");l!==null&&(o.innerHTML=l.outerHTML)}return o.style.width=this.__width==="inherit"?"inherit":`${parseInt(String(this.__width))}%`,o.style.height=this.__height==="inherit"?"inherit":`${parseInt(String(this.__height))}%`,r.setAttribute("data-lexical-excalidraw-json",this.__data),r.className="editor-excalidraw",r.style.justifyContent=this.__alignment,r.style.display="flex",r.appendChild(o),{element:r}}setData(t){const r=this.getWritable();r.__data=t}getWidth(){return this.getLatest().__width}setWidth(t){const r=this.getWritable();r.__width=t}getHeight(){return this.getLatest().__height}setHeight(t){const r=this.getWritable();r.__height=t}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}setAlignment(t){const r=this.getWritable();r.__alignment=t}isInline(){return!1}decorate(){return v0?i.jsx(m.Suspense,{fallback:null,children:i.jsx(v0,{nodeKey:this.getKey(),data:this.__data,width:this.__width,height:this.__height,alignment:this.__alignment})}):i.jsx("div",{})}}function y1(e="[]",n="inherit",t="inherit",r="left"){return new us(e,n,t,r)}function bM(e){return e instanceof us}const db=p.createCommand("INSERT_EXCALIDRAW_COMMAND");function yM(e){m.useEffect(()=>{if(!e.hasNodes([us]))throw new Error("ExcalidrawPlugin: ExcalidrawNode not registered on editor");return e.registerCommand(db,()=>(e.update(()=>{const n=y1(),t=Qt();t&&t.getParent()&&t.replace(n)}),!0),p.COMMAND_PRIORITY_EDITOR)},[e])}function xM({className:e,format:n,editor:t,nodeKey:r,formID:o}){const s={base:"dsd__theme__embedBlock dsd__theme__embedBlock__form",focus:"dsd__theme__embedBlockFocus"};return i.jsxs(Qo.BlockWithAlignableContents,{className:s,format:n,nodeKey:r,children:[i.jsx(v.Tooltip,{label:"Удалить",children:i.jsx(v.ActionIcon,{color:"gray","aria-label":"Settings",className:"image-delete-icon",variant:"default",onClick:l=>{l.stopPropagation(),t.update(()=>{if(p.$getSelection()){const c=p.$getNodeByKey(r);c&&c.remove()}return!1})},children:i.jsx(mn,{name:"trash"})})}),i.jsx("iframe",{width:"100%",height:"500",src:`https://dudoc.io/f/${o}`,title:"Form",style:{border:"none"}})]})}function vM(e){const n=e.getAttribute("data-form");return n?{node:x1(n)}:null}class tl extends qr.DecoratorBlockNode{constructor(t,r,o){super(r,o);Me(this,"__id");this.__id=t}static getType(){return"form"}static clone(t){return new tl(t.__id,t.__format,t.__key)}static importJSON(t){const r=x1(t.formID);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"form",version:1,formID:this.__id}}exportDOM(){const t=document.createElement("iframe");return t.setAttribute("data-form",this.__id),t.setAttribute("width","100%"),t.setAttribute("height","500"),t.setAttribute("src",`https://dudoc.io/f/${this.__id}`),t.setAttribute("title","Form"),{element:t}}static importDOM(){return{iframe:t=>t.hasAttribute("data-form")?{conversion:vM,priority:1}:null}}updateDOM(){return!1}getId(){return this.__id}getTextContent(){return`https://dudoc.io/f/${this.__id}`}decorate(t,r){const o=r.theme.embedBlock||{},s={base:o.base||"",focus:o.focus||""};return i.jsx(xM,{className:s,format:this.__format,nodeKey:this.getKey(),formID:this.__id,editor:t})}}function x1(e){return new tl(e)}class Iu extends p.TextNode{static getType(){return"keyword"}static clone(n){return new Iu(n.__text,n.__key)}static importJSON(n){const t=wM(n.text);return t.setFormat(n.format),t.setDetail(n.detail),t.setMode(n.mode),t.setStyle(n.style),t}exportJSON(){return{...super.exportJSON(),type:"keyword",version:1}}createDOM(n){const t=super.createDOM(n);return t.style.cursor="default",t.className="keyword",t}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}isTextEntity(){return!0}}function wM(e){return new Iu(e)}function kM({nodeKey:e}){const[n]=it.useLexicalComposerContext(),[t,r,o]=Q9.useLexicalNodeSelection(e),s=m.useCallback(l=>{if(l.preventDefault(),t&&p.$isNodeSelection(p.$getSelection())){const c=p.$getNodeByKey(e);if(EM(c))return c.remove(),!0}return!1},[t,e]);return m.useEffect(()=>be.mergeRegister(n.registerCommand(p.CLICK_COMMAND,l=>{const c=n.getElementByKey(e);return l.target===c?(l.shiftKey||o(),r(!t),!0):!1},p.COMMAND_PRIORITY_LOW),n.registerCommand(p.KEY_DELETE_COMMAND,s,p.COMMAND_PRIORITY_LOW),n.registerCommand(p.KEY_BACKSPACE_COMMAND,s,p.COMMAND_PRIORITY_LOW)),[o,n,t,e,s,r]),m.useEffect(()=>{const l=n.getElementByKey(e);l!==null&&(l.className=t?"selected":"")},[n,t,e]),null}class nl extends p.DecoratorNode{static getType(){return"page-break"}static clone(n){return new nl(n.__key)}static importJSON(){return fb()}static importDOM(){return{figure:n=>n.getAttribute("type")!==this.getType()?null:{conversion:SM,priority:p.COMMAND_PRIORITY_HIGH}}}exportJSON(){return{type:this.getType(),version:1}}createDOM(){const n=document.createElement("figure");return n.style.pageBreakAfter="always",n.setAttribute("type",this.getType()),n}getTextContent(){return`
|
|
10
|
-
`}isInline(){return!1}updateDOM(){return!1}decorate(){return i.jsx(kM,{nodeKey:this.__key})}}function SM(){return{node:fb()}}function fb(){return new nl}function EM(e){return e instanceof nl}const MM="_inlineElement_12e9h_1",TM="_placeholderInline_12e9h_29",LM="_placeholderInlineIcon_12e9h_67",NM="_placeholderInlineText_12e9h_79",jM="_placeholderInlineDisabled_12e9h_87",RM="_main_12e9h_97",IM="_mainIcon_12e9h_105",ks={inlineElement:MM,placeholderInline:TM,placeholderInlineIcon:LM,placeholderInlineText:NM,placeholderInlineDisabled:jM,main:RM,mainIcon:IM};function DM({page:e,inlineElement:n,placeholder:t}){const{t:r}=Ze.useTranslation(),{disable:o}=m.useContext(ut);if(t)return null;if(n&&!e.id)return i.jsxs(v.Box,{component:"span",className:`${ks.placeholderInline} ${o?ks.placeholderInlineDisabled:""}`,"data-page-link-anchor":"true",children:[i.jsx("span",{className:ks.placeholderInlineIcon,children:i.jsx(te,{icon:ja,size:16})}),i.jsx(v.Text,{component:"span",className:ks.placeholderInlineText,children:r("editor.menu.other.pageLink.placeholder")})]});if(n)return i.jsx(v.Box,{component:"span",className:ks.inlineElement,"data-page-link-anchor":"true",children:i.jsx(qc,{page:e,withTooltip:!1,withHover:!0})});const s=l=>{e.onClick&&e.onClick(l)};return i.jsxs(v.Box,{component:"div",className:ks.main,onClick:s,children:[i.jsx(qc,{page:{...e,onClick:void 0},withTooltip:!1}),i.jsx("span",{className:ks.mainIcon,children:i.jsx(te,{icon:B8,size:20})})]})}function OM(e){const{pageId:n,title:t,icon:r,inlineElement:o,placeholder:s}=e,{linkablePages:l,pages:c}=m.useContext(ut),f=(l??c).find(g=>g.id===n),h={id:n,title:t||((f==null?void 0:f.title)??""),icon:r??(f==null?void 0:f.icon)??null,order:(f==null?void 0:f.order)??0,onClick:f==null?void 0:f.onClick};return i.jsx(DM,{page:h,inlineElement:o,placeholder:s})}function w0(e){const n=e.getAttribute("data-page-link-id");if(!n)return null;const t=e.getAttribute("data-page-link-title")??"",r=e.getAttribute("data-page-link-icon"),o=e.getAttribute("data-page-link-inline")==="true",s=n==="__placeholder__",l=e.getAttribute("data-page-link-placeholder")==="true";return{node:ci({id:s?"":n,title:t,icon:r??null,inlineElement:o,placeholder:l})}}class Lo extends p.DecoratorNode{constructor(t,r,o,s,l=!1,c=!1,d){super(d);Me(this,"__pageId");Me(this,"__title");Me(this,"__icon");Me(this,"__order");Me(this,"__inlineElement");Me(this,"__placeholder");this.__pageId=t,this.__title=r,this.__icon=o,this.__order=s,this.__inlineElement=l,this.__placeholder=c}static getType(){return"pageLink"}static clone(t){return new Lo(t.__pageId,t.__title,t.__icon,t.__order,t.__inlineElement,t.__placeholder,t.__key)}getPageId(){return this.__pageId}getMeta(){return{title:this.__title,icon:this.__icon}}setMeta(t,r){const o=this.getWritable();o.__title=t,o.__icon=r}static importJSON(t){const{pageId:r,title:o,icon:s,order:l,inlineElement:c,placeholder:d,format:f}=t;return new Lo(r??"",o??"",s??null,l,c??!1,d??!1,f).updateFromJSON(t)}exportJSON(){return{...super.exportJSON(),type:"pageLink",pageId:this.__pageId,title:this.__title,icon:this.__icon,order:this.__order,inlineElement:this.__inlineElement,placeholder:this.__placeholder}}createDOM(t){if(this.__inlineElement){const o=document.createElement("span");return o.className="editor-page-link-inline",o}const r=document.createElement("div");return r.className="editor-page-link-wrap",r}updateDOM(t){return this.__inlineElement!==t.__inlineElement}getTextContent(){return this.__title}isInline(){return this.__inlineElement}decorate(t,r){return i.jsx(OM,{nodeKey:this.__key,pageId:this.__pageId,title:this.__title,icon:this.__icon,inlineElement:this.__inlineElement,placeholder:this.__placeholder})}exportDOM(){const t=document.createElement("a");return t.setAttribute("data-page-link","true"),t.setAttribute("data-page-link-id",this.__pageId||"__placeholder__"),t.setAttribute("data-page-link-title",this.__title),this.__icon&&t.setAttribute("data-page-link-icon",this.__icon),t.setAttribute("data-page-link-inline",this.__inlineElement?"true":"false"),t.setAttribute("data-page-link-placeholder",this.__placeholder?"true":"false"),t.setAttribute("href","#"),t.className="editor-page-link",t.textContent=this.__title||"",{element:t}}getInlineElement(){return this.__inlineElement}static importDOM(){return{div:t=>t.getAttribute("data-page-link")!=="true"?null:{conversion:w0,priority:2},a:t=>t.getAttribute("data-page-link")!=="true"?null:{conversion:w0,priority:2}}}}function ci(e){return new Lo(e.id,e.title,e.icon,e.order,e.inlineElement??!1,e.placeholder??!1,void 0)}function k0(e){return e instanceof Lo}function PM(e){const n=e.getAttribute("data-src"),t=e.getAttribute("data-json");return{node:v1(n||"",t||"",!1)}}class rl extends qr.DecoratorBlockNode{constructor(t,r,o,s,l){super(s,l);Me(this,"__src");Me(this,"__json");Me(this,"__create");this.__src=t,this.__json=r,this.__create=o}static getType(){return"swagger"}static clone(t){return new rl(t.__src,t.__json,!1,t.__format,t.__key)}static importJSON(t){const r=v1(t.src,t.json);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),src:this.__src,json:this.__json,create:this.__create,type:"swagger",version:1}}createDOM(){const t=document.createElement("span");return t.className="editor-swagger",t}setSrc(t){const r=this.getWritable();r.__src=t}setJSON(t){const r=this.getWritable();r.__json=t}updateDOM(){return!1}getSrc(){return this.__src}getJSON(){return this.__json}exportDOM(){const t=document.createElement("span");return t.classList.add("editor-swagger"),t.setAttribute("data-src",this.getSrc()),t.setAttribute("data-json",this.getJSON()),{element:t}}static importDOM(){return{span:t=>t.classList.contains("editor-swagger")?{conversion:PM,priority:1}:null}}decorate(t,r){return(r.theme.embedBlock||{}).base,i.jsx("div",{})}}function v1(e,n,t){return new rl(e,n,t)}function BM(e){const n=e.textContent;return n!==null?{node:hb(n)}:null}const _M="background-color: rgba(24, 119, 232, 0.2)";class Du extends p.TextNode{constructor(t,r,o){super(r??t,o);Me(this,"__mention");this.__mention=t}static getType(){return"mention"}static clone(t){return new Du(t.__mention,t.__text,t.__key)}static importJSON(t){const r=hb(t.mentionName);return r.setTextContent(t.text),r.setFormat(t.format),r.setDetail(t.detail),r.setMode(t.mode),r.setStyle(t.style),r}exportJSON(){return{...super.exportJSON(),mentionName:this.__mention,type:"mention",version:1}}createDOM(t){const r=super.createDOM(t);return r.style.cssText=_M,r.className="mention",r}exportDOM(){const t=document.createElement("span");return t.setAttribute("data-lexical-mention","true"),t.textContent=this.__text,{element:t}}static importDOM(){return{span:t=>t.hasAttribute("data-lexical-mention")?{conversion:BM,priority:1}:null}}isTextEntity(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function hb(e){const n=new Du(e);return n.setMode("segmented").toggleDirectionless(),p.$applyNodeReplacement(n)}const FM=[ln.HeadingNode,mr,Dn,ln.QuoteNode,Yr,Ur,Pi,V9.HashtagNode,on.AutoLinkNode,on.LinkNode,mC.OverflowNode,fr,No,Du,Lu,Iu,js.HorizontalRuleNode,_i,tl,pi.MarkNode,_s,Io,cs,nl,Rr,Mn,Vr,ki,Lo,jo,zs,Zr,co,qn,Qr,In,Ut.CodeHighlightNode,rl,Ks,is,us,Ii,...ZA.map(e=>e)],WM=(e,n)=>{const t=e==="comment"?[mr,Dn,on.AutoLinkNode,on.LinkNode,mC.OverflowNode,fr,No,qn,Ut.CodeHighlightNode,...ZA.map(o=>o)]:FM,r=(n==null?void 0:n.map(o=>o.node).filter(Boolean))||[];return[...t,...r]};function zM(e){const n=e.getSrc();return!n||n==="upload"||!n.trim()}function KM(e){m.useEffect(()=>{const n=e.hasNodes([In,Qr]),t=e.registerNodeTransform(fr,o=>{if(!n)return;const s=o.getParent(),l=zM(o);if(l&&s&&!pr(s)){const c=o.getNextSibling(),d=Ja(o);c?c.insertBefore(d):s.append(d);return}if(!l&&s&&pr(s)){const c=s;c.insertBefore(o),c.remove()}}),r=n?e.registerNodeTransform(In,o=>{const s=o.getChildren(),l=s.find(Ir);if(!l||s.some(Oi))return;const d=Oo();l.insertBefore(d)}):()=>{};return be.mergeRegister(t,r)},[e])}const w1=p.createCommand("INSERT_IMAGE_COMMAND"),pb=p.createCommand("UPLOAD_IMAGE_COMMAND");function UM(){const[e]=it.useLexicalComposerContext(),{t:n}=Ze.useTranslation(),{imperativeHandleRef:t,maxFileSize:r,disable:o}=m.useContext(ut);return o||KM(e),m.useEffect(()=>{if(!e.hasNodes([fr]))throw new Error("ImageOlugin: FileNode not registered on editor");const s=l=>{if(l.length>1){Mt.showMessageNotification({message:n("editor.validation.doNotUploadMoreThanSingleFile")});return}if(l[0].size>r*1024*1024){Mt.showErrorNotification({message:n("editor.validation.shouldNotExceed",{maxSize:r})});return}let c="";e.update(()=>{const d=Oa({src:"upload",create:!1,altText:""});Ti(d),c=d.getKey()}),setTimeout(()=>{e.dispatchCommand(pb,{files:l,targetNodeKey:c})},100)};return t!=null&&t.current&&(t.current.insertImages=s),e.registerCommand(w1,l=>{const c=Oa(l);return Ti(c),!1},p.COMMAND_PRIORITY_LOW)},[e]),null}const Ti=e=>{var l;const n=Qt();if(p.$isRootNode(n))return n.append(e),!0;let t=n==null?void 0:n.getParent();const r=t instanceof p.ParagraphNode||t instanceof Dn||t instanceof mr,o=n instanceof No&&!!n.__text,s=p.$isElementNode(n)&&(n==null?void 0:n.getChildrenSize())>0;if(s&&(t=n),r&&o||r||s)return t.insertAfter(e),!0;if(n&&t)return n instanceof Vr?((l=n.getPreviousSibling())==null||l.replace(e),!0):(n==null||n.replace(e),!0);if(!n)return p.$getRoot().append(e),!0},nh=p.createCommand("INSERT_FILE_COMMAND"),mb=p.createCommand("UPLOAD_FILE_COMMAND");function HM(e){const n=e.getSrc();return!n||n==="upload"||!n.trim()}function YM(){const[e]=it.useLexicalComposerContext(),{imperativeHandleRef:n}=m.useContext(ut);m.useEffect(()=>{if(!e.hasNodes([is]))throw new Error("FilePlugin: FileNode not registered on editor");const t=e.hasNodes([In,Qr]),r=o=>{if(o.length>1){Mt.showMessageNotification({message:"editor.validation.doNotUploadMoreThanSingleFile"});return}e.dispatchCommand(nh,"upload"),setTimeout(()=>{e.dispatchCommand(mb,o)})};return n!=null&&n.current&&(n.current.insertFiles=r),be.mergeRegister(e.registerNodeTransform(is,o=>{if(!t)return;const s=o.getParent(),l=HM(o);if(l&&s&&!pr(s)){const c=o.getNextSibling(),d=Ja(o);c?c.insertBefore(d):s.append(d);return}if(!l&&s&&pr(s)){const c=s;c.insertBefore(o),c.remove()}}),...t?[e.registerNodeTransform(In,o=>{const s=o.getChildren(),l=s.find(Ro);if(!l||s.some(Oi))return;const d=Oo();l.insertBefore(d)})]:[],e.registerCommand(nh,o=>{const s=t1(o,"100%","100%","left",o!=="upload");return Ti(s),!1},p.COMMAND_PRIORITY_LOW))},[e,n])}function ZM(){return YM(),null}function rh(e){return e!==null&&typeof e=="object"&&typeof e.getType=="function"&&e.getType()==="video"&&"setId"in e&&typeof e.setId=="function"}function sc(e){if(e&&e.includes("unsplash"))return null;const n=/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i,t=e==null?void 0:e.match(n);return t&&(e.startsWith("/v1/attachments/")||e.includes(window.location.origin))?t[0]:null}function S0(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Ir(r)||Gr(r)?r.setSrc(t):rh(r)&&t.trim()&&r.setId(t)},{tag:"historic"})}const Sr=new Map;function GM({editor:e}){const{fetchDeleteMedia:n,fetchRestoreMedia:t,pageId:r}=m.useContext(ut);return m.useEffect(()=>()=>{Sr.clear()},[r]),m.useEffect(()=>{if(e)return e.getEditorState().read(()=>{var l;const o=((l=e.getDecorators)==null?void 0:l.call(e))||e._decorators,s=new Map;for(const[c,d]of Object.entries(o)){const f=d.props,h=d._self,C=Ir(h)||rh(h)||Ro(h)||Gr(h);if(!f&&C)continue;const y=(f==null?void 0:f.src)||(f==null?void 0:f.videoID);if(y!=null&&y.trim()&&!(y!=null&&y.includes("unsplash"))&&sc(y)){const b=s.get(y)||[],x=b.includes(c)?b:[...b,c];s.set(y,x)}}for(const[c,d]of s.entries())Sr.set(c,{mediaNodeKeys:d})}),e.registerDecoratorListener(o=>{var c;const s=new Map;let l=!1;for(const[d,f]of Object.entries(o)){const h=f==null?void 0:f.props,g=f==null?void 0:f._self,C=rh(g)||Ir(g)||Ro(g)||Gr(g);if(C&&((c=h==null?void 0:h.src)!=null&&c.includes("unsplash"))||!h&&C)continue;const y=h.src||h.videoID;if(!y)continue;if(y.trim()==="")return;const b=s.get(y)||[];!b.includes(d)&&sc(h==null?void 0:h.src)&&s.set(y,[...b,d])}for(const[d,f]of Sr.entries()){const h=s.get(d);if(Array.isArray(f.mediaNodeKeys)&&f.mediaNodeKeys.length>0&&(!h||h.length===0)){const g=sc(d);if(g&&n){const C=e.registerCommand(p.UNDO_COMMAND,()=>!0,p.COMMAND_PRIORITY_NORMAL);n(g,()=>{C()}),Sr.set(d,{mediaNodeKeys:[]})}}}for(const[d]of Sr.entries())s.has(d)||Sr.set(d,{mediaNodeKeys:[]});if(Sr.size>0)for(const[d,f]of s.entries()){const h=Sr.get(d);if(h&&Array.isArray(h.mediaNodeKeys)&&h.mediaNodeKeys.length===0&&f.length>0){S0(e,f[0]," "),l=!0;const g=sc(d);if(Sr.set(d,{mediaNodeKeys:f}),g&&t){const C=e.registerCommand(p.REDO_COMMAND,()=>!0,p.COMMAND_PRIORITY_NORMAL);t(g,()=>{C(),S0(e,f[0],d)})}}}if(!l)for(const[d,f]of s.entries())Sr.set(d,{mediaNodeKeys:f})})},[e,t,n]),Sr}const E0=window.location.hostname,VM=E0!=="playground.lexical.dev"&&E0!=="lexical-playground.vercel.app",qM=new URLSearchParams(window.location.search),M0=e=>qM.get(e)==="true",{isShowTreeView:QM,isMaxLength:JM}={isShowTreeView:M0("showTreeView"),isMaxLength:M0("isMaxLength")},za={disableBeforeInput:!1,emptyEditor:VM,isAutocomplete:!1,isCharLimit:!1,isCharLimitUtf8:!1,isCollab:!1,isMaxLength:JM,isRichText:!0,shouldUseLexicalContextMenu:!1,showNestedEditorTreeView:!1,showTableOfContents:!1,showTreeView:QM,tableCellBackgroundColor:!0,tableCellMerge:!0},T0={...za},gb=m.createContext({setOption:(e,n)=>{},settings:za});function XM(){const e={},n=new URLSearchParams(window.location.search);for(const t of Object.keys(za)){const r=n.get(t);r!==null&&(e[t]=r==="true")}return e}const $M=({children:e})=>{const[n,t]=m.useState(()=>({...za,...XM()})),r=m.useCallback((s,l)=>{t(c=>({...c,[s]:l})),za[s]===l?L0(s,null):L0(s,l)},[]),o=m.useMemo(()=>({setOption:r,settings:n}),[r,n]);return i.jsx(gb.Provider,{value:o,children:e})},k1=()=>m.useContext(gb);function L0(e,n){const t=new URL(window.location.href),r=new URLSearchParams(t.search);n!==null?r.has(e)?r.set(e,String(n)):r.append(e,String(n)):r.has(e)&&r.delete(e),t.search=r.toString(),window.history.pushState(null,"",t.toString())}const Cb=m.createContext({}),eT=({children:e})=>{const n=m.useMemo(()=>({historyState:Rh.createEmptyHistoryState()}),[]);return i.jsx(Cb.Provider,{value:n,children:e})},S1=()=>m.useContext(Cb),tT=[".toolbar",'[role="menu"]',".mantine-Popover-dropdown",".floating-text-format-popup","[data-comment-submit-button]","[data-modal-content]"],nT=({onBlur:e})=>{const[n]=it.useLexicalComposerContext();return m.useEffect(()=>{const t=n.getRootElement();if(!t)return;const r=(s,l,c)=>s>=c.left&&s<=c.right&&l>=c.top&&l<=c.bottom,o=s=>{const l=t.getBoundingClientRect(),c=s.target,d=c instanceof Element&&tT.some(b=>c.closest(b)),{clientX:f,clientY:h}=s,g=r(f,h,l),C=document.activeElement;!t.contains(C)&&!g&&!d&&n.update(()=>{var b;p.$setSelection(null),n.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0),(b=n._rootElement)==null||b.classList.remove("focused"),e&&(e==null||e(n.getEditorState(),n))})};return document.addEventListener("pointerdown",o,!0),()=>{document.removeEventListener("pointerdown",o,!0)}},[n,e]),null};function rT(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>Ut.registerCodeHighlighting(e),[e]),null}function oT({isLoading:e}){const[n]=it.useLexicalComposerContext(),{disable:t}=m.useContext(ut);return m.useEffect(()=>{t||n.update(()=>{p.$getRoot().getFirstChild()&&setTimeout(()=>{var s;(s=n._rootElement)==null||s.setAttribute("contenteditable","true")},0)})},[n,e,t]),null}function E1(e){const n=e.getParent();if(!Tr(n)||!p.$isParagraphNode(e))return!1;let t=0;for(const r of n.getChildren())p.$isParagraphNode(r)&&t++;return t===1}function Ab(e,n,t){const r=e.getParent();if(!ls(r)||!p.$isParagraphNode(e))return t||n("editor.placeholder");const o=r.getChildren();return o.length===1&&o[0].getKey()===e.getKey()?n("editor.placeholders.collapsibleContent"):t||n("editor.placeholder")}const sT=(e,n,t)=>{if(be.$findMatchingParent(e,vt)||be.$findMatchingParent(e,To)||To(e))return;const s=p.$isParagraphNode(e)?e:p.$isParagraphNode(e.getParent())?e.getParent():null;if(s){const l=s.getParent();return ls(l)?Ab(s,n,t):E1(s)?n("editor.placeholders.layoutAddContent"):t||n("editor.placeholder")}},pf="node-placeholder",N0=new WeakMap,iT=({selection:e,editor:n,t,customPlaceholder:r})=>{var f,h;const o=e.anchor,s=N0.get(n);if(s&&s!==o.key){const g=n.getElementByKey(s);(f=g==null?void 0:g.classList)==null||f.remove(pf),g==null||g.removeAttribute("data-placeholder")}const l=sT(o.getNode(),t,r),c=o.getNode().getTextContentSize(),d=n.getElementByKey(o.key);l&&c===0?(d==null||d.classList.add(pf),d==null||d.setAttribute("data-placeholder",l)):d&&((h=d==null?void 0:d.classList)==null||h.remove(pf),d==null||d.removeAttribute("data-placeholder")),N0.set(n,o.key)},aT=(e,n,t)=>{e.getEditorState().read(()=>{const r=p.$getSelection();p.$isRangeSelection(r)&&iT({selection:r,editor:e,t:n,customPlaceholder:t})})},ic="node-placeholder";function lT(e,n){if(ln.$isHeadingNode(e)){const t=e.getTag();let r=n("editor.heading.name");switch(t){case"h1":r+=" 1";break;case"h2":r+=" 2";break;case"h3":r+=" 3";break;case"h4":r+=" 4";break;case"h5":r+=" 5";break;case"h6":r+=" 6";break}return r}if(ln.$isQuoteNode(e))return n("editor.placeholders.quote");if(It(e)){const t=e.getParent();if(pt(t))return t.getListType()==="check"?n("editor.placeholders.todo"):n("editor.placeholders.list")}if(p.$isParagraphNode(e)){const t=e.getParent();if(To(t))return n("editor.placeholders.toggle");if(ls(t))return Ab(e,n);if(E1(e))return n("editor.placeholders.layoutAddContent")}}function j0(e,n){e.getEditorState().read(()=>{const t=r=>{const o=lT(r,n),s=n("editor.placeholders.layoutAddContent");if(p.$isParagraphNode(r)){const l=r.getParent();if(Tr(l)&&!E1(r)&&r.getTextContentSize()===0){const c=e.getElementByKey(r.getKey());c&&c.classList.contains(ic)&&c.getAttribute("data-placeholder")===s&&(c.classList.remove(ic),c.removeAttribute("data-placeholder"))}}if(o){const l=e.getElementByKey(r.getKey());if(!l)return;r.getTextContentSize()===0?(l.classList.add(ic),l.setAttribute("data-placeholder",o)):(l.classList.remove(ic),l.removeAttribute("data-placeholder"))}if(p.$isElementNode(r))for(const l of r.getChildren())t(l)};for(const r of p.$getRoot().getChildren())t(r)})}const cT=()=>{const[e]=it.useLexicalComposerContext(),{t:n}=Ze.useTranslation(),{placeholder:t,disable:r}=m.useContext(ut);return m.useEffect(()=>{const o=setTimeout(()=>{j0(e,n)}),s=e.registerUpdateListener(()=>{r||aT(e,n,t),j0(e,n)});return()=>{clearTimeout(o),s()}},[e,t,r,n]),null},uT=({onFocus:e})=>{const[n]=it.useLexicalComposerContext();return m.useEffect(()=>{n.registerCommand(p.FOCUS_COMMAND,t=>{var r;return(r=n._rootElement)==null||r.classList.add("focused"),!t.relatedTarget&&e&&e(),!1},p.COMMAND_PRIORITY_LOW)},[]),null};function dT(e){m.useEffect(()=>{if(e)return e.registerCommand(p.KEY_DOWN_COMMAND,n=>{if(!(n.ctrlKey||n.metaKey))return!1;switch(n.code){case"KeyC":return n.preventDefault(),e.dispatchCommand(p.COPY_COMMAND,n),!0;case"KeyX":return n.preventDefault(),e.dispatchCommand(p.CUT_COMMAND,n),!0;case"KeyZ":return n.preventDefault(),n.shiftKey?e.dispatchCommand(p.REDO_COMMAND,void 0):e.dispatchCommand(p.UNDO_COMMAND,void 0),!0;case"KeyY":return n.preventDefault(),e.dispatchCommand(p.REDO_COMMAND,void 0),!0;default:return!1}},p.COMMAND_PRIORITY_CRITICAL)},[e])}const fT=()=>{const[e]=it.useLexicalComposerContext();return dT(e),null};function hT(){return i.jsx(ow.LinkPlugin,{attributes:{target:null,rel:"noreferrer"}})}function pT(e){m.useEffect(()=>K7(e),[e])}function mT(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>{if(!e.hasNodes([mr,Dn]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[e]),pT(e),null}const gT=" ";function CT(e){const n=e.getNodes();return n.length===0?new Set([e.anchor.getNode().getParentOrThrow(),e.focus.getNode().getParentOrThrow()]):new Set(n.map(t=>p.$isElementNode(t)?t:t.getParentOrThrow()))}function AT(e){const n=p.$getSelection();if(!p.$isRangeSelection(n))return!1;const t=n.focus.getNode();if(!(pt(t)||It(t)||It(t.getParent())))return n.insertText(gT),!1;const o=CT(n);let s=0;for(const l of o)if(pt(l))s=Math.max(Vf(l)+1,s);else if(It(l)){const c=l.getParent();if(!pt(c))throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");s=Math.max(Vf(c)+1,s)}return s<=e}function bT({maxDepth:e}){const[n]=it.useLexicalComposerContext();return m.useEffect(()=>be.mergeRegister(n.registerCommand(p.INDENT_CONTENT_COMMAND,()=>!AT(e??7),p.COMMAND_PRIORITY_CRITICAL)),[n,e]),null}const bb=4,yT={dependencies:[js.HorizontalRuleNode],export:e=>js.$isHorizontalRuleNode(e)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,n,t,r)=>{const o=js.$createHorizontalRuleNode();r||e.getNextSibling()!=null?e.replace(o):e.insertBefore(o),o.selectNext()},type:"element"},xT={dependencies:[fr],export:e=>Ir(e)?`})`:null,importRegExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))/,regExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))$/,replace:(e,n)=>{const[,t,r]=n,o=Oa({altText:t,maxWidth:800,src:r});e.replace(o)},trigger:")",type:"text-match"};function vT(e){const n=e.match(/\t/g),t=e.match(/ /g);let r=0;return n&&(r+=n.length),t&&(r+=Math.floor(t.length/bb)),r}const yb=e=>(n,t,r)=>{const o=n.getPreviousSibling(),s=n.getNextSibling(),l=Fn(e==="check"?r[3]==="x":void 0);if(pt(s)&&s.getListType()===e){const d=s.getFirstChild();d!==null?d.insertBefore(l):s.append(l),n.remove()}else if(pt(o)&&o.getListType()===e)o.append(l),n.remove();else{const d=cn(e,e==="number"?Number(r[2]):void 0);d.append(l),n.replace(d)}l.append(...t),l.select(0,0);const c=vT(r[1]);c&&l.setIndent(c)},M1=(e,n,t)=>{const r=[],o=e.getChildren();let s=0;for(const l of o)if(It(l)){if(l.getChildrenSize()===1){const h=l.getFirstChild();if(pt(h)){r.push(M1(h,n,t+1));continue}}const c=" ".repeat(t*bb),d=e.getListType(),f=d==="number"?`${e.getStart()+s}. `:d==="check"?`- [${l.getChecked()?"x":" "}] `:"- ";r.push(c+f+n(l)),s++}return r.join(`
|
|
11
|
-
`)},wT=/^(\s*)(\d{1,})\.\s/,kT=/^(\s*)[-*+]\s/,ST={dependencies:[mr,Dn],export:(e,n)=>pt(e)?M1(e,n,0):null,regExp:wT,replace:yb("number"),type:"element"},ET={dependencies:[mr,Dn],export:(e,n)=>pt(e)?M1(e,n,0):null,regExp:kT,replace:yb("bullet"),type:"element"},xb=/^(?:\|)(.+)(?:\|)\s?$/,MT=/^(\| ?:?-*:? ?)+\|\s?$/,TT={dependencies:[Nn.TableNode,Nn.TableRowNode,Nn.TableCellNode],export:e=>{if(!Nn.$isTableNode(e))return null;const n=[];for(const t of e.getChildren()){const r=[];if(!Nn.$isTableRowNode(t))continue;let o=!1;for(const s of t.getChildren())Nn.$isTableCellNode(s)&&(r.push(no.$convertToMarkdownString(Ka,s).replace(/\n/g,"\\n")),s.__headerState===Nn.TableCellHeaderStates.ROW&&(o=!0));n.push(`| ${r.join(" | ")} |`),o&&n.push(`| ${r.map(s=>"---").join(" | ")} |`)}return n.join(`
|
|
12
|
-
`)},regExp:xb,replace:(e,n,t)=>{if(MT.test(t[0])){const f=e.getPreviousSibling();if(!f||!Nn.$isTableNode(f))return;const h=f.getChildren(),g=h[h.length-1];if(!g||!Nn.$isTableRowNode(g))return;g.getChildren().forEach(C=>{Nn.$isTableCellNode(C)&&C.setHeaderStyles(Nn.TableCellHeaderStates.ROW,Nn.TableCellHeaderStates.ROW)}),e.remove();return}const r=R0(t[0]);if(r==null)return;const o=[r];let s=e.getPreviousSibling(),l=r.length;for(;s&&!(!p.$isParagraphNode(s)||s.getChildrenSize()!==1);){const f=s.getFirstChild();if(!_n(f))break;const h=R0(f.getTextContent());if(h==null)break;l=Math.max(l,h.length),o.unshift(h);const g=s.getPreviousSibling();s.remove(),s=g}const c=Nn.$createTableNode();for(const f of o){const h=Nn.$createTableRowNode();c.append(h);for(let g=0;g<l;g++)h.append(g<f.length?f[g]:vb(""))}const d=e.getPreviousSibling();Nn.$isTableNode(d)&<(d)===l?(d.append(...c.getChildren()),e.remove()):e.replace(c),c.selectEnd()},type:"element"};function LT(e){const n=e.getFirstChild();return Nn.$isTableRowNode(n)?n.getChildrenSize():0}const vb=e=>{e=e.replace(/\\n/g,`
|
|
13
|
-
`);const n=Nn.$createTableCellNode(Nn.TableCellHeaderStates.NO_STATUS);return no.$convertFromMarkdownString(e,Ka,n),n},R0=e=>{const n=e.match(xb);return!n||!n[1]?null:n[1].split("|").map(t=>vb(t))},Ka=[TT,yT,xT,no.CHECK_LIST,no.HEADING,no.QUOTE,ET,ST,...no.MULTILINE_ELEMENT_TRANSFORMERS,...no.TEXT_FORMAT_TRANSFORMERS,...no.TEXT_MATCH_TRANSFORMERS];function NT(){return i.jsx(sw.MarkdownShortcutPlugin,{transformers:Ka})}function jT({maxLength:e}){const[n]=it.useLexicalComposerContext();return m.useEffect(()=>{let t=null;return n.registerNodeTransform(p.RootNode,r=>{const o=p.$getSelection();if(!p.$isRangeSelection(o)||!o.isCollapsed())return;const s=n.getEditorState(),l=s.read(()=>r.getTextContentSize()),c=r.getTextContentSize();if(l!==c){const d=c-e,f=o.anchor;d>0&&(l===e&&t!==s?(t=s,be.$restoreEditorState(n,s)):an.trimTextContentFromAnchor(n,f,d))}})},[n,e]),null}const mf=8,gf=72,oh=15,RT={bgColor:"#fff",blockType:"paragraph",canRedo:!1,canUndo:!1,codeLanguage:"",codeTheme:"",elementFormat:"left",fontColor:"#000",fontFamily:"Arial",fontSize:`${oh}px`,fontSizeInputValue:`${oh}`,isBold:!1,isCode:!1,isHighlight:!1,isImageCaption:!1,isItalic:!1,isLink:!1,isRTL:!1,isStrikethrough:!1,isSubscript:!1,isSuperscript:!1,isUnderline:!1,isLowercase:!0,isUppercase:!0,isCapitalize:!0,rootType:"root",listStartNumber:null},wb=m.createContext(void 0),IT=({children:e})=>{const[n,t]=m.useState(RT),r=n.fontSize,o=m.useCallback((l,c)=>{t(d=>({...d,[l]:c}))},[]);m.useEffect(()=>{o("fontSizeInputValue",r.slice(0,-2))},[r,o]);const s=m.useMemo(()=>({toolbarState:n,updateToolbarState:o}),[n,o]);return i.jsx(wb.Provider,{value:s,children:e})},DT=()=>{const e=m.useContext(wb);if(e===void 0)throw new Error("useToolbarState must be used within a ToolbarProvider");return e};function si(e,n){if(e=e.trim(),e.startsWith("rgb"))return e.replace("rgb","rgba").replace(")",`, ${n})`);const t=e.replace("#",""),r=parseInt(t,16),o=r>>16&255,s=r>>8&255,l=r&255;return`rgba(${o}, ${s}, ${l}, ${n})`}const Ou=p.createCommand("INSERT_INLINE_COMMAND");function OT(){var N;const[e]=it.useLexicalComposerContext(),[n,t]=m.useState([]),[r,o]=m.useState(!1),s=m.useRef(new Map),l=(N=m.useContext(ut))==null?void 0:N.commentController,{onHighlight:c,activeCommentId:d,actions:f,editorComments:h}=l??{onHighlight:void 0,activeCommentId:{ids:[],source:null},actions:{add:async()=>{},delete:()=>{},restore:()=>{}},editorComments:new Map};m.useEffect(()=>{const L=document.documentElement,E=getComputedStyle(L).getPropertyValue("--mantine-primary-color-filled").trim()||"#4c6ef5";L.style.setProperty("--comment-selection-color-level1",si(E,.12)),L.style.setProperty("--comment-selection-color-level2",si(E,.24)),L.style.setProperty("--comment-selection-color-level3",si(E,.4)),L.style.setProperty("--comment-selection-color-selected1",si(E,.28)),L.style.setProperty("--comment-selection-color-selected2",si(E,.36)),L.style.setProperty("--comment-selection-color-selected3",si(E,.48))},[]),m.useEffect(()=>{const E=((d==null?void 0:d.ids)??[])[0];!E||d.source==="editor"||e.update(()=>{const M=g.get(E);if(!M)return;const O=Array.from(M).filter(F=>!!p.$getNodeByKey(F)),I=p.$getNodeByKey(O[0]);I&&Zo(I)&&I.selectStart()})},[d==null?void 0:d.ids,d==null?void 0:d.source]);const g=m.useMemo(()=>new Map,[]),C=m.useRef(h),y=m.useRef(null);m.useEffect(()=>{C.current=h},[h]);function b(L,E){e.update(()=>{const M=g.get(L);if(M)for(const O of M){const I=p.$getNodeByKey(O);Zo(I)&&I.resolveThreat(E)}})}function x(L){const E=g.get(L);!E||E.size===0||(e.update(()=>{for(const M of E){const O=p.$getNodeByKey(M);Zo(O)&&(O.deleteID(L),O.getIDs().length===0&&pi.$unwrapMarkNode(O))}}),g.delete(L))}function w(L,E){E&&x(L)}m.useEffect(()=>{if(h){for(const[L,E]of h.entries()){const M=s.current.get(L);M&&(M.resolution!==E.resolution&&b(L,E.resolution),M.deleted!==E.deleted&&w(L,E.deleted))}s.current=new Map(h)}},[h]),m.useEffect(()=>{const L=[];if(n.length!==0){for(let E=0;E<n.length;E++){const M=n[E],O=g.get(M);if(O!==void 0)for(const I of O){const F=e.getElementByKey(I);F!==null&&(F.classList.add("selected"),L.push(F))}}return()=>{for(let E=0;E<L.length;E++)L[E].classList.remove("selected")}}},[n,e,g]),m.useEffect(()=>{const L=new Map;return be.mergeRegister(be.registerNestedElementResolver(e,Zr,E=>YA(E.getIDs()),(E,M)=>{E.getIDs().forEach(I=>{M.addID(I)})}),e.registerMutationListener(Zr,E=>{e.getEditorState().read(()=>{for(const[M,O]of E){const I=p.$getNodeByKey(M);let F=[];O==="created"&&Zo(I)&&I.getIDs().forEach(R=>{var K;const j=(K=C.current)==null?void 0:K.get(R);j!=null&&j.deleted&&(f==null||f.restore(R))}),O==="destroyed"?F=L.get(M)||[]:Zo(I)&&(F=I.getIDs());for(let _=0;_<F.length;_++){const R=F[_];let j=g.get(R);if(L.set(M,F),O==="destroyed"){let K=!1;for(const[W,B]of E)if(B==="created"){const H=p.$getNodeByKey(W);Zo(H)&&H.getIDs().some(Q=>F.includes(Q))&&(K=!0)}K||j!==void 0&&(j.delete(M),j.size===0&&(g.delete(R),f==null||f.delete(R)))}else j===void 0&&(j=new Set,g.set(R,j)),j.has(M)||j.add(M)}}})},{skipInitialization:!1}),e.registerUpdateListener(({editorState:E})=>{E.read(()=>{const M=p.$getSelection();let O=!1;if(p.$isRangeSelection(M)){const I=M.anchor.getNode();if(_n(I)){const F=pi.$getMarkIDs(I,M.anchor.offset);F!==null&&(c==null||c(F,"editor"),t(()=>F),O=!0)}}O||(c==null||c(null,"editor"),t(I=>I.length===0?I:[]))})}),e.registerCommand(Ou,()=>{e.update(()=>{const M=p.$getSelection();p.$isRangeSelection(M)&&(y.current=M.clone())});const E=window.getSelection();return E!==null&&E.removeAllRanges(),o(!0),!0},p.COMMAND_PRIORITY_EDITOR),e.registerCommand(p.COPY_COMMAND,E=>{if(!(E!=null&&E.clipboardData))return!1;E.preventDefault();const M=p.$getSelection();if(!M||!M.getNodes().some(_=>Zo(_)||Zo(_.getParent())))return!1;const F=M.getTextContent();return E.clipboardData.setData("text/plain",F),!0},p.COMMAND_PRIORITY_LOW))},[e,g]);const k=m.useCallback((L,E,M)=>{e.getEditorState().read(()=>{const O=y.current??p.$getSelection();if(p.$isRangeSelection(O)){E.current=O.clone();const I=O.anchor,F=O.focus,_=an.createDOMRange(e,I.getNode(),I.offset,F.getNode(),F.offset);if(_!==null&&L!==null){const{left:R,bottom:j,top:K,width:W}=_.getBoundingClientRect(),B=an.createRectsFromDOMRange(e,_),H=L.offsetHeight||200,Q=window.pageYOffset||document.documentElement.scrollTop,ee=window.innerHeight-j>H+20;let ae=B.length===1?R+W/2-125:R-125;ae<10&&(ae=10),L.style.left=`${ae}px`,L.style.top=ee?`${j+10+Q}px`:`${K-H-55+Q}px`;const pe=B.length,{container:Le,elements:Se}=M,we=Se.length;for(let de=0;de<pe;de++){const ne=B[de];let Z=Se[de];Z===void 0&&(Z=document.createElement("span"),Se[de]=Z,Le.appendChild(Z));const le=document.body.scrollHeight>window.innerHeight?0:8;Z.style.cssText=`
|
|
14
|
-
position:absolute;
|
|
15
|
-
top:${ne.top+Q}px;
|
|
16
|
-
left:${ne.left+le}px;
|
|
17
|
-
height:${ne.height}px;
|
|
18
|
-
width:${ne.width}px;
|
|
19
|
-
background-color: var(--comment-selection-color, rgba(76, 110, 245, 0.35));
|
|
20
|
-
pointer-events:none;
|
|
21
|
-
z-index:5;
|
|
22
|
-
`}for(let de=we-1;de>=pe;de--){const ne=Se[de];Le.removeChild(ne),Se.pop()}}}})},[e]);function T(L){e.update(()=>{const E=y.current??p.$getSelection();if(!p.$isRangeSelection(E))return;const M=E.isBackward();pi.$wrapSelectionInMarkNode(E,M,L,O=>new Zr(O,null)),y.current=null})}function D(L){return async E=>{if(E.mode!=="create")return;let M="";e.getEditorState().read(()=>{const I=y.current??p.$getSelection();p.$isRangeSelection(I)&&(M=I.getTextContent())}),await(async()=>{const I=await(f==null?void 0:f.add({text:E.data.text,files:E.data.files},M));I&&(L(I),o(!1))})()}}return i.jsx(i.Fragment,{children:r&&Dr.createPortal(i.jsx(Mt.CommentComposer,{updateLocation:k,onSubmit:D(T),onBlur:()=>o(!1),ns:"",children:L=>{const{handleBlur:E,setCommentDraft:M,editorRef:O}=L;return i.jsx(v5,{initialContent:"",outputFormat:"html",debounce:1,editorRef:O,mode:"comment",placeholder:" ",shiftEnterInsertNewLine:!0,onBlur:E,onChange:I=>M(F=>({...F,text:I}))})}}),document.body)})}const bn={ctrlKey:!be.IS_APPLE,metaKey:be.IS_APPLE};function PT(e){const{code:n}=e;return(n==="Numpad0"||n==="Digit0")&&p.isModifierMatch(e,{...bn,altKey:!0})}function BT(e){const{code:n}=e;if(!n)return!1;const t=n[n.length-1];return["1","2","3"].includes(t)&&p.isModifierMatch(e,{...bn,altKey:!0})}function _T(e){const{code:n}=e;return(n==="Numpad7"||n==="Digit7")&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function FT(e){const{code:n}=e;return(n==="Numpad8"||n==="Digit8")&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function WT(e){const{code:n}=e;return(n==="Numpad9"||n==="Digit9")&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function zT(e){const{code:n}=e;return n==="KeyC"&&p.isModifierMatch(e,{...bn,altKey:!0})}function KT(e){const{code:n}=e;return n==="KeyQ"&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function UT(e){const{code:n}=e;return(n==="Numpad1"||n==="Digit1")&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function HT(e){const{code:n}=e;return(n==="Numpad2"||n==="Digit2")&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function YT(e){const{code:n}=e;return(n==="Numpad3"||n==="Digit3")&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function ZT(e){const{code:n}=e;return n==="KeyX"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function GT(e){const{code:n}=e;return n==="BracketRight"&&p.isModifierMatch(e,bn)}function VT(e){const{code:n}=e;return n==="BracketLeft"&&p.isModifierMatch(e,bn)}function qT(e){const{code:n}=e;return n==="KeyE"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function QT(e){const{code:n}=e;return n==="KeyL"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function JT(e){const{code:n}=e;return n==="KeyR"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function XT(e){const{code:n}=e;return n==="KeyJ"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function $T(e){const{code:n}=e;return n==="Comma"&&p.isModifierMatch(e,bn)}function eL(e){const{code:n}=e;return n==="Period"&&p.isModifierMatch(e,bn)}function tL(e){const{code:n}=e;return n==="KeyC"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function nL(e){const{code:n}=e;return n==="Period"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function rL(e){const{code:n}=e;return n==="Comma"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function oL(e){const{code:n}=e;return n==="Backslash"&&p.isModifierMatch(e,bn)}function sL(e){const{code:n}=e;return n==="KeyK"&&p.isModifierMatch(e,bn)}function iL(e){const{code:n}=e;return n==="KeyM"&&p.isModifierMatch(e,{...bn,altKey:!0})}var sh=(e=>(e[e.increment=1]="increment",e[e.decrement=2]="decrement",e))(sh||{});const kb=(e,n)=>{if(!n)return e;let t=e;switch(n){case 2:switch(!0){case e>gf:t=gf;break;case e>=48:t-=12;break;case e>=24:t-=4;break;case e>=14:t-=2;break;case e>=9:t-=1;break;default:t=mf;break}break;case 1:switch(!0){case e<mf:t=mf;break;case e<12:t+=1;break;case e<20:t+=2;break;case e<36:t+=4;break;case e<=60:t+=12;break;default:t=gf;break}break}return t},I0=(e,n,t)=>{const r=o=>(o||(o=`${oh}px`),o=o.slice(0,-2),`${kb(Number(o),t)}px`);e.update(()=>{if(e.isEditable()){const o=p.$getSelection();o!==null&&an.$patchStyleText(o,{"font-size":n||r})}})},D0=(e,n,t)=>{if(t!==""){const r=kb(Number(t),n);I0(e,String(r)+"px",null)}else I0(e,null,n)},Pu=e=>{e.update(()=>{const n=p.$getSelection();an.$setBlocksType(n,()=>p.$createParagraphNode())})},aL=(e,n,t)=>{n!==t&&e.update(()=>{const r=p.$getSelection();an.$setBlocksType(r,()=>ln.$createHeadingNode(t))})},lL=(e,n)=>{n!=="bullet"?e.dispatchCommand(o1,void 0):Pu(e)},cL=(e,n)=>{n!=="check"?e.dispatchCommand(s1,void 0):Pu(e)},uL=(e,n)=>{n!=="number"?e.dispatchCommand(ku,void 0):Pu(e)},dL=(e,n)=>{n!=="quote"&&e.update(()=>{const t=p.$getSelection();an.$setBlocksType(t,()=>ln.$createQuoteNode())})},fL=(e,n)=>{n!=="code"&&e.update(()=>{let t=p.$getSelection();if(t)if(!p.$isRangeSelection(t)||t.isCollapsed())an.$setBlocksType(t,()=>Ut.$createCodeNode());else{const r=t.getTextContent(),o=Ut.$createCodeNode();t.insertNodes([o]),t=p.$getSelection(),p.$isRangeSelection(t)&&t.insertRawText(r)}})},hL=e=>{e.update(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)||Nn.$isTableSelection(n)){const t=n.anchor,r=n.focus,o=n.getNodes(),s=n.extract();if(t.key===r.key&&t.offset===r.offset)return;o.forEach((l,c)=>{if(p.$isTextNode(l)){let d=l;c===0&&t.offset!==0&&(d=d.splitText(t.offset)[1]||d),c===o.length-1&&(d=d.splitText(r.offset)[0]||d);const f=s[0];o.length===1&&p.$isTextNode(f)&&(d=f),d.__style!==""&&d.setStyle(""),d.__format!==0&&d.setFormat(0);const h=be.$getNearestBlockElementAncestorOrThrow(d);h.__format!==0&&h.setFormat(""),h.__indent!==0&&h.setIndent(0),l=d}else ln.$isHeadingNode(l)||ln.$isQuoteNode(l)?l.replace(p.$createParagraphNode(),!0):qr.$isDecoratorBlockNode(l)&&l.setFormat("")})}})};function pL({editor:e,setIsLinkEditMode:n}){const{toolbarState:t}=DT();return m.useEffect(()=>{const r=o=>{if(p.isModifierMatch(o,{}))return!1;if(PT(o))Pu(e);else if(BT(o)){const{code:s}=o,l=`h${s[s.length-1]}`;aL(e,t.blockType,l)}else if(FT(o))lL(e,t.blockType);else if(_T(o))uL(e,t.blockType);else if(WT(o))cL(e,t.blockType);else if(zT(o))fL(e,t.blockType);else if(KT(o))dL(e,t.blockType);else if(ZT(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"strikethrough");else if(UT(o))console.log("isLowercase"),e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"lowercase");else if(HT(o))console.log("isUppercase"),e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"uppercase");else if(YT(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"capitalize");else if(GT(o))e.dispatchCommand(p.INDENT_CONTENT_COMMAND,void 0);else if(VT(o))e.dispatchCommand(p.OUTDENT_CONTENT_COMMAND,void 0);else if(qT(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"center");else if(QT(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"left");else if(JT(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"right");else if(XT(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"justify");else if($T(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"subscript");else if(eL(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"superscript");else if(tL(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"code");else if(nL(o))D0(e,sh.increment,t.fontSizeInputValue);else if(rL(o))D0(e,sh.decrement,t.fontSizeInputValue);else if(oL(o))hL(e);else if(sL(o))e.dispatchCommand(Au,"create");else if(iL(o))e.dispatchCommand(Ou,void 0);else return!1;return o.preventDefault(),!0};return e.registerCommand(p.KEY_DOWN_COMMAND,r,p.COMMAND_PRIORITY_NORMAL)},[e,t.isLink,t.blockType,t.fontSizeInputValue,n]),null}const Xc="/v1/me/features";let ba=null,Ts=null;function mL(){return ba?Promise.resolve(ba):Ts||(Ts=fetch(Xc,{credentials:"include"}).then(e=>{if(!e.ok)throw new Error(`GET ${Xc} ${e.status}`);return e.json()}).then(e=>(ba=e,Ts=null,e)).catch(e=>{throw Ts=null,e}),Ts)}function gL(e){return fetch(Xc,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(n=>{if(!n.ok)throw new Error(`PATCH ${Xc} ${n.status}`);return n.json()}).then(n=>(ba=n,n))}function CL(){ba=null,Ts=null}const O0="smart-paste-preference",P0="smart_paste",ih=15e3,Li=1e4,Sb=400,AL=7,bL=new Set(["paragraph","heading","bullet-list","number-list","quote","code","callout","horizontal-rule"]);function yL(e,n,t){const r=()=>{var C;let o=p.$getSelection();if(p.$isRangeSelection(o)||(p.$getRoot().selectEnd(),o=p.$getSelection()),!p.$isRangeSelection(o)){const y=p.$getRoot(),b=p.$createParagraphNode(),x=p.$createTextNode(n);return b.append(x),y.append(b),b.selectEnd(),{start:{key:x.getKey(),offset:0,type:"text"},end:{key:x.getKey(),offset:n.length,type:"text"},anchorTopKey:b.getKey(),tracking:"fallback"}}const s=o.isBackward()?o.focus:o.anchor,l={key:s.key,offset:s.offset,type:s.type},c=((C=s.getNode().getTopLevelElement())==null?void 0:C.getKey())??null,d=(t==null?void 0:t.trim())||"";if(d)try{const b=new DOMParser().parseFromString(d,"text/html"),x=Ea.$generateNodesFromDOM(e,b);if(x.length>0){o.removeText(),p.$insertNodes(x);const w=x[0].getTopLevelElement()??x[0],k=x[x.length-1].getTopLevelElement()??x[x.length-1],T=Array.from(new Set(x.map(L=>(L.getTopLevelElement()??L).getKey()))),D=p.$isTextNode(w)?{key:w.getKey(),offset:0,type:"text"}:{key:w.getKey(),offset:0,type:"element"},N=p.$isTextNode(k)?{key:k.getKey(),offset:k.getTextContentSize(),type:"text"}:{key:k.getKey(),offset:p.$isElementNode(k)?k.getChildrenSize():0,type:"element"};return{start:D,end:N,anchorTopKey:w.getKey(),tracking:"exact",insertedTopLevelKeys:T}}o.insertRawText(n)}catch{o.insertRawText(n)}else o.insertRawText(n);const f=p.$getSelection();if(p.$isRangeSelection(f)){const y=f.anchor;return{start:l,end:{key:y.key,offset:y.offset,type:y.type},anchorTopKey:c,tracking:"exact"}}let h={...l};const g=p.$getNodeByKey(l.key);return p.$isTextNode(g)&&(h={key:l.key,type:"text",offset:Math.min(g.getTextContentSize(),l.offset+n.length)}),{start:l,end:h,anchorTopKey:c,tracking:"fallback"}};try{return r()}catch{let o=null;return e.update(()=>{o=r()},{discrete:!0}),o}}function Gt(e){return e.replace(/\s+/g," ").trim()}function ol(e){return e?Gt(e).slice(0,180):""}function Eb(e,n,t){if(t==="fallback")return!0;const r=Gt(e);if(!r)return!0;const o=ol(n);if(o.length<=20)return!1;const s=o.slice(0,Math.min(o.length,80));return r.includes(s)}function T1(e){try{const n=p.$createRangeSelection();return n.anchor.set(e.start.key,e.start.offset,e.start.type),n.focus.set(e.end.key,e.end.offset,e.end.type),p.$setSelection(n),!0}catch{return!1}}function Mb(e,n){let t=null;const r=ol(n),o=Gt(n);return r.length<=20||!o?null:(e.read(()=>{const l=p.$getRoot().getChildren();if(l.length===0)return;const c=w=>p.$isTextNode(w)?{key:w.getKey(),offset:0,type:"text"}:{key:w.getKey(),offset:0,type:"element"},d=w=>p.$isTextNode(w)?{key:w.getKey(),offset:w.getTextContentSize(),type:"text"}:{key:w.getKey(),offset:p.$isElementNode(w)?w.getChildrenSize():0,type:"element"},f=w=>{var N;const k=w.filter(L=>L.isAttached());if(k.length===0)return null;const T=k[0],D=k[k.length-1];return{start:c(T),end:d(D),anchorTopKey:((N=T.getTopLevelElement())==null?void 0:N.getKey())??T.getKey(),tracking:"fallback",insertedTopLevelKeys:k.map(L=>L.getKey())}},h=p.$getSelection(),g=p.$isRangeSelection(h)?(h.anchor.getNode().getTopLevelElement()??h.anchor.getNode()).getKey():null;let C=g!==null?l.findIndex(w=>w.getKey()===g):-1;C>=0?!Gt(l[C].getTextContent())&&C>0&&(C-=1):C=l.length-1;const y=[];let b="";for(let w=C;w>=0;w--){const k=l[w],T=Gt(k.getTextContent());if(!T){if(y.length>0)break;continue}const D=Gt(`${T} ${b}`);if(o.endsWith(D)||o.includes(D)){if(y.unshift(k),b=D,b.length>=Math.min(o.length,220))break;continue}if(y.length>0)break}if(y.length>0&&b.length>=Math.min(o.length,40)&&(t=f(y),t))return;const x=l.find(w=>{const k=Gt(w.getTextContent());return k?k.includes(r)||r.includes(k):!1})??null;x&&(t=f([x]))}),t)}function L1(e){const n=e.exportJSON();return p.$isElementNode(e)&&(n.children=e.getChildren().map(L1)),n}function xL(e,n){let t=0;for(const r of e)if(r.kind==="paragraph"){const o=r.combinedText.split(/\s+/);if(o.length<3)continue;const s=o.slice(0,3).join(" "),l=o.slice(-3).join(" "),c=n.indexOf(s,t);if(c!==-1){const d=n.indexOf(l,c);d!==-1&&(r.combinedText=n.slice(c,d+l.length).trim(),t=d+l.length)}}else{const s=r.serializedNodes.map(l=>Ni(l).trim()).join(" ").split(/\s+/);if(s.length>=3){const l=s.slice(-3).join(" "),c=n.indexOf(l,t);c!==-1&&(t=c+l.length)}}}const N1=new Set(["table","image","inline-image","video","embed","heading","list","extend-code","code","callout-wrapper","quote","horizontalrule","excalidraw","collapsible-container","layout-container","page-break","music","file","swagger"]),vL=new Set(["paragraph","element","linebreak"]);function Ni(e){return"text"in e&&typeof e.text=="string"?e.text:"children"in e&&Array.isArray(e.children)?e.children.map(Ni).join(""):""}function Tb(e){const n=[];for(const t of e){const r=t.type;if(r==="paragraph"||N1.has(r))n.push(t);else if("children"in t&&Array.isArray(t.children)){const o=t.children;o.length>0&&n.push(...Tb(o))}else Ni(t).trim()&&n.push({...t,type:"paragraph"})}return n}const wL=[/\n\s*\n/,/^[-*+]\s/m,/^\d+\.\s/m,/^```/m,/^#{1,6}\s/m,/^>\s/m,/\|.*\|.*\|/,/^(ВНИМАНИЕ|WARNING|ВАЖНО|NOTE|TIP):/im,/^[⚠️❗🔥💡ℹ️]/m];function kL(e){for(const n of wL)if(n.test(e))return!0;return!1}function B0(e){const n=Tb(e),t=[];let r=null,o=[],s=[],l=[];function c(){o.length>0&&(t.push({kind:"stable",nodes:o}),o=[])}function d(){s.length>0&&(t.push({kind:"paragraph",texts:s,combinedText:s.join(`
|
|
23
|
-
`),originalNodes:l}),s=[],l=[])}for(const x of n){const w=x.type;if(w==="paragraph"||vL.has(w)){const k=Ni(x).trim();if(!k)continue;r!=="paragraph"&&(c(),r="paragraph"),s.push(k),l.push(x)}else if(N1.has(w))r!=="stable"&&(d(),r="stable"),o.push(x);else{const k=Ni(x).trim();k?(r!=="paragraph"&&(c(),r="paragraph"),s.push(k),l.push(x)):(r!=="stable"&&(d(),r="stable"),o.push(x))}}c(),d();let f=0,h="";for(const x of t)x.kind==="paragraph"&&(f+=x.combinedText.length,h+=(h?`
|
|
24
|
-
`:"")+x.combinedText);const g=t.some(x=>x.kind==="paragraph"),C=t.some(x=>x.kind==="stable"),y=g&&(C||f>=Sb),b=h?kL(h):!1;return{runs:t,hasParagraphRuns:y,totalParagraphChars:f,hasStructuralSignals:b}}const An={text:{detail:0,format:0,mode:"normal",style:"",text:"{{TEXT}}",type:"extended-text",version:1},paragraph:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"paragraph",version:1,textFormat:0,textStyle:""},heading:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"heading",version:1,tag:"h1|h2|h3"},bulletList:{children:["{{LISTITEMS}}"],direction:null,format:"",indent:0,type:"list",version:1,listType:"bullet",start:1,tag:"ul"},numberList:{children:["{{LISTITEMS}}"],direction:null,format:"",indent:0,type:"list",version:1,listType:"number",start:1,tag:"ol"},checkList:{children:["{{CHECK_LISTITEMS}}"],direction:null,format:"",indent:0,type:"list",version:1,listType:"check",start:1,tag:"ul"},listitem:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"listitem",version:1,value:1},checkListitem:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"listitem",version:1,checked:!1,value:1,opened:!0},quote:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"quote",version:1},code:{children:["{{CODE_HIGHLIGHT + LINEBREAK nodes}}"],direction:null,format:"",indent:0,type:"extend-code",version:1,language:"plain",isCollapsed:!1},codeHighlight:{detail:0,format:0,mode:"normal",style:"",text:"{{LINE}}",type:"code-highlight",version:1},linebreak:{type:"linebreak",version:1},calloutWrapper:{children:["{{CALLOUT_IMAGE}}","{{CALLOUT_CONTENT}}"],direction:null,format:"",indent:0,type:"callout-wrapper",version:1,backgroundColor:"",calloutType:""},calloutImage:{type:"callout-image",version:1,format:"",emojiCode:"e=%F0%9F%99%82",refElem:""},calloutContent:{children:["{{PARAGRAPH}}"],direction:null,format:"",indent:0,type:"callout",version:1},horizontalRule:{type:"horizontalrule",version:1},table:{children:["{{TABLEROWS}}"],direction:null,format:"",indent:0,type:"table",version:1},tableRow:{children:["{{TABLECELLS}}"],direction:null,format:"",indent:0,type:"tablerow",version:1},tableCell:{children:["{{PARAGRAPH}}"],direction:null,format:"",indent:0,type:"tablecell",version:1,backgroundColor:null,colSpan:1,headerState:0,rowSpan:1}},_0={default:{emoji:"e=%F0%9F%99%82",bg:""},success:{emoji:"e=%E2%9C%85",bg:"rgba(219, 242, 233, 1)"},warning:{emoji:"e=%E2%9A%A0%EF%B8%8F",bg:"rgba(254, 247, 230, 1)"},alert:{emoji:"e=%E2%9D%97",bg:"rgba(255, 224, 223, 1)"}};function la(e){return{...An.text,text:e}}const F0=/[\s([{]$/,W0=/^[\s)\]}.,:;!?]/;function ac(e){const n=[],t=/(\*\*(.+?)\*\*|`([^`]+)`)/g;let r=0,o;for(;(o=t.exec(e))!==null;){if(o.index>r){let s=e.slice(r,o.index);n.length>0&&s.length>0&&!W0.test(s)&&(s=" "+s),s.length>0&&!F0.test(s)&&(s+=" "),n.push(la(s))}else if(n.length>0){const s=n[n.length-1];s.text&&!F0.test(s.text)&&n.push(la(" "))}o[2]?n.push({...An.text,text:o[2],format:1}):o[3]&&n.push({...An.text,text:o[3],format:16}),r=o.index+o[0].length}if(r<e.length){let s=e.slice(r);n.length>0&&s.length>0&&!W0.test(s)&&(s=" "+s),n.push(la(s))}return n.length>0?n:[la(e)]}function SL(e,n){return{type:"link",version:1,url:e,rel:"noreferrer",target:null,title:null,direction:null,format:"",indent:0,children:[la(n)]}}function sl(e,n){if(!n.length)return ac(e);const t=[];let r=e;for(;r.length>0;){let o=1/0,s=null;for(const l of n){const c=r.indexOf(l.text);c!==-1&&c<o&&(o=c,s=l)}s!==null&&o<1/0?(o>0&&t.push(...ac(r.slice(0,o))),t.push(SL(s.url,s.text)),r=r.slice(o+s.text.length)):(t.push(...ac(r)),r="")}return t.length>0?t:ac(e)}function ya(e,n=[]){return{...An.paragraph,children:sl(e,n)}}function EL(e,n,t=[]){return{...An.heading,tag:e,children:sl(n,t)}}function ML(e,n,t=[]){return{...e==="bullet"?An.bulletList:An.numberList,children:n.map((o,s)=>({...An.listitem,value:s+1,children:sl(o,t)}))}}function TL(e,n=[]){return{...An.checkList,children:e.map((t,r)=>({...An.checkListitem,value:r+1,checked:t.checked,children:sl(t.text,n)}))}}function LL(e,n=[]){return{...An.quote,children:sl(e,n)}}function NL(e,n,t=[]){const r=_0[e]??_0.default;return{...An.calloutWrapper,backgroundColor:r.bg,calloutType:e,children:[{...An.calloutImage,emojiCode:r.emoji},{...An.calloutContent,children:[ya(n,t)]}]}}const jL=new Set(["c","clike","cpp","css","html","java","js","json","markdown","objc","plain","powershell","py","rust","sql","swift","typescript","xml"]),z0={javascript:"js",python:"py","c++":"cpp","objective-c":"objc",ts:"typescript",tsx:"typescript",jsx:"js"};function RL(e){if(!e)return"plain";const n=e.toLowerCase();return jL.has(n)?n:z0[n]?z0[n]:"plain"}function IL(e,n){const t=n.split(`
|
|
25
|
-
`),r=[];return t.forEach((o,s)=>{r.push({...An.codeHighlight,text:o}),s<t.length-1&&r.push({...An.linebreak})}),{...An.code,language:RL(e),children:r}}function DL(e,n,t,r){return{type:"video",version:1,format:"",platform:e,videoID:n,width:t||"inherit",height:r||"inherit"}}function OL(e,n,t,r,o){return{type:"embed",version:1,format:"",platform:n,embedId:t,src:e,width:r?parseInt(r,10)||r:560,height:o?parseInt(o,10)||o:315}}function xa(e){switch(e.kind){case"image":return PL(e.src,e.altText,e.width,e.height);case"video":return DL(e.platform,e.mediaId,e.width,e.height);case"embed":return OL(e.src,e.platform,e.mediaId,e.width,e.height)}}function PL(e,n,t,r){return{type:"image",version:1,src:e,altText:n||"",maxWidth:t||"inherit",width:t||"inherit",height:r||"inherit",showCaption:!1,caption:{editorState:{root:{children:[],direction:null,format:"",indent:0,type:"root",version:1}}}}}function Lb(e,n){if(!n)return!1;const t=n.slice(0,60).toLowerCase().replace(/\s+/g," ").trim(),r=e.toLowerCase().replace(/\s+/g," ").trim();return t.length>5&&(r.includes(t)||t.includes(r))}function BL(e,n=[]){return{...An.table,children:e.map((t,r)=>({...An.tableRow,children:t.map(o=>({...An.tableCell,headerState:r===0?1:0,children:[ya(o,n)]}))}))}}function K0(e,n){switch(e.type){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.some(r=>r.text===e.text.trim())?ya(e.text,n):EL(e.type,e.text,n);case"p":return ya(e.text,n);case"bullet":case"number":return ML(e.type,e.items,n);case"check":return TL(e.items,n);case"quote":return LL(e.text,n);case"callout":return NL(e.style,e.text||"",n);case"code":return IL(e.lang,e.text||"");case"table":return BL(e.rows,n);case"hr":return An.horizontalRule;default:return ya(e.text??"",n)}}function _L(e){return"text"in e?e.text??"":"items"in e?e.items.map(t=>typeof t=="string"?t:t.text).join(" "):""}function Nb(e,n=[],t=[]){if(!t.length)return e.map(s=>K0(s,n));const r=[],o=new Set;for(const s of e){r.push(K0(s,n));const l=_L(s);for(let c=0;c<t.length;c++)o.has(c)||Lb(l,t[c].anchorText)&&(r.push(xa(t[c])),o.add(c))}for(let s=0;s<t.length;s++)o.has(s)||r.push(xa(t[s]));return r}const FL=[[/^>\s*\[!WARNING\]\s*/im,"warning"],[/^>\s*\[!CAUTION\]\s*/im,"warning"],[/^>\s*\[!NOTE\]\s*/im,"default"],[/^>\s*\[!TIP\]\s*/im,"default"],[/^>\s*\[!IMPORTANT\]\s*/im,"alert"],[/^>\s*\[!ERROR\]\s*/im,"alert"],[/^>\s*\[!SUCCESS\]\s*/im,"success"],[/^ВАЖНОЕ ПРИМЕЧАНИЕ:\s*/im,"alert"],[/^ВАЖНО:\s*/im,"alert"],[/^IMPORTANT:\s*/im,"alert"],[/^ALERT:\s*/im,"alert"],[/^ВНИМАНИЕ:\s*/im,"alert"],[/^WARNING:\s*/im,"warning"],[/^CAUTION:\s*/im,"warning"],[/^NOTE:\s*/im,"default"],[/^TIP:\s*/im,"default"],[/^ПРИМЕЧАНИЕ:\s*/im,"default"],[/^SUCCESS:\s*/im,"success"]];function jb(e){return e.split(`
|
|
26
|
-
`).map(n=>{for(const[t,r]of FL){const o=n.match(t);if(o)return`[CALLOUT:${r}] ${n.slice(o[0].length)}`}return n}).join(`
|
|
27
|
-
`)}function Rb(e){return e.map(n=>{if("text"in n&&n.text&&n.type!=="callout"){const t=n.text.match(/^\[CALLOUT:(\w+)\]\s*(.*)/);if(t)return{type:"callout",style:t[1],text:t[2]}}if(n.type==="callout"&&"text"in n&&n.text){const t=n.text.match(/^\[CALLOUT:(\w+)\]\s*(.*)/);if(t)return{...n,style:t[1],text:t[2]}}return n})}function WL(e,n,t){const r=e.trim();if(!r)return null;const o=h=>t.some(g=>h>=g.start&&h<g.end),s=[...new Set(r.match(/\b\w{5,}\b/g)||[])],l=h=>s.length<=2?!0:s.filter(C=>h.includes(C)).length/s.length>=.4;let c=-1,d=0,f=null;{let h=0;for(;;){const g=n.indexOf(r,h);if(g===-1)break;if(!o(g)){f={code:r,start:g,end:g+r.length},c=g;break}h=g+1}}if(c===-1){const h=r.match(/\b\w{4,}\b/g);if(!(h!=null&&h.length))return null;const g=[...new Set(h)],C=g.sort((w,k)=>k.length-w.length),y=C[0],b=[];let x=0;for(;;){const w=n.indexOf(y,x);if(w===-1)break;o(w)||b.push(w),x=w+1}if(b.length===0)for(const w of C.slice(1)){for(x=0;;){const k=n.indexOf(w,x);if(k===-1)break;if(!o(k)){c=k;break}x=k+1}if(c!==-1)break}else if(b.length===1)c=b[0];else{const w=r.length+200,k=g.slice(0,20);let T=-1;for(const D of b){const N=Math.max(0,D-100),L=Math.min(n.length,D+w),E=n.slice(N,L);let M=0;for(const O of k)E.includes(O)&&(M+=O.length);M>T&&(T=M,c=D)}}c!==-1&&(d=r.indexOf(y))}if(c===-1)return null;{const h=Math.max(0,c-300),g=Math.min(n.length,c+r.length+300),C=n.slice(h,g),y=/```\w*\s*\n?([\s\S]*?)```/g;let b;for(;(b=y.exec(C))!==null;){const x=h+b.index+b[0].indexOf(b[1]),w=x+b[1].length;if(c>=h+b.index&&c<h+b.index+b[0].length){const k=b[1].trim();if(k.length>0)return{code:k,start:x,end:w}}}}if(f)return f;{const h=Math.max(0,c-2e3);let g=0,C=-1;for(let E=c-1;E>=h;E--)if(n[E]==="}"&&g++,n[E]==="{")if(g>0)g--;else{C=E;break}const y=C!==-1?C:c,b=n.slice(Math.max(0,y-500),y),x=b.match(/(?:void|int|float|double|char|bool|def|function|class|struct|fn|func|async|module|pub|export|const|let|var)\s+\w+[^.!?]*$/i);let w;if((x==null?void 0:x.index)!==void 0)w=Math.max(0,y-500)+x.index;else if(C!==-1){const E=b.match(/\b(\w+)\s*\([^)]*\)\s*(?:=>)?\s*$/);(E==null?void 0:E.index)!==void 0?w=Math.max(0,y-500)+E.index:w=C}else w=c;let k=0,T=w,D=!1,N=-1;for(let E=w;E<n.length&&E<w+3e3;E++)if(n[E]==="{"&&(D||(N=E),k++,D=!0),n[E]==="}"&&(k--,k<=0&&D)){T=E+1;break}const L=Math.max(r.length,300);if(D&&T>w&&N-w<=L){const E=n.slice(w,T).trim(),M=E.replace(/\s/g,"").length,O=r.replace(/\s/g,"").length;if(M>=O*.7&&l(E))return{code:E,start:w,end:T}}}{const h=n.slice(Math.max(0,c-500),c),g=h.lastIndexOf(`
|
|
28
|
-
|
|
29
|
-
`),C=h.search(/(?:^|\n)\s*(?:def |class |import |from |#include|package |pub |async |module |export |const |let |var |function )[^\n]*$/m),y=h.search(/(?:cpp|c\+\+|python|java|javascript|typescript|html|css|sql|ruby|go|bash|sh|swift|kotlin|rust|php|perl|scala)\s+(?:void|int|float|double|char|bool|def|function|class|struct|import|from|const|let|var|#include|package|pub|async|module|export|return)\b/i);let b;g!==-1?b=Math.max(0,c-500)+g+2:C!==-1?b=Math.max(0,c-500)+C+1:y!==-1?b=Math.max(0,c-500)+y:b=Math.max(0,c-d-20);const x=b+r.length+40,w=n.slice(c),k=w.search(/\n\s*\n/),T=r.length-d;let D=-1;if(k!==-1)D=k;else{const O=w.search(/[.!?]\s+[A-ZА-ЯЁ]|>\s*\[!/);O!==-1&&O>=T&&c+O<=x&&(D=O)}let N=D!==-1?c+D+1:Math.min(x,n.length);if(D===-1&&s.length>0){const O=n.slice(b,N);let I=0;for(const F of s){const _=O.lastIndexOf(F);_!==-1&&(I=Math.max(I,_+F.length))}I>0&&(N=b+I)}const L=n.slice(b,N).trim(),E=L.replace(/\s/g,"").length,M=r.replace(/\s/g,"").length;if(E>=M*.7&&l(L))return{code:L,start:b,end:N}}return f||null}const zL=new Set(["c","cpp","c++","h","hpp","java","javascript","js","jsx","typescript","ts","tsx","go","rust","rs","swift","kotlin","kt","php","scala","dart","csharp","cs","c#","css","scss","less","arduino","ino","plain"]);function KL(e){if(e.includes(`
|
|
30
|
-
`))return e;let n=e.trim();n=n.replace(/\s+(def |class |import |from )/g,`
|
|
31
|
-
$1`),n=n.replace(/([)'"a-zA-Z0-9_])\s+(while |for |with |try:|elif |else:|except|finally:|return |break\b|continue\b|pass\b|raise )/g,`$1
|
|
32
|
-
$2`),n=n.replace(/:\s+([a-zA-Z_"'(])/g,`:
|
|
33
|
-
$1`);const t=n.split(`
|
|
34
|
-
`).map(s=>s.trim()).filter(Boolean);if(t.length<=1)return e;const r=[];let o=0;for(const s of t)/^(elif\b|else:|except\b|finally:)/.test(s)&&(o=Math.max(0,o-1)),r.push(" ".repeat(o)+s),s.endsWith(":")&&o++,/^(return|break|continue|pass)\b/.test(s)&&(o=Math.max(0,o-1));return r.join(`
|
|
35
|
-
`)}function U0(e,n){if(e.includes(`
|
|
36
|
-
`))return e;const t=(n||"plain").toLowerCase();if(t==="python"||t==="py")return KL(e);if(!e.includes("{")||!zL.has(t))return e;const r=[];let o=0,s="",l=null,c=0;const d=f=>{const h=f.trim();h&&r.push(" ".repeat(o)+h)};for(let f=0;f<e.length;f++){const h=e[f];if(l){s+=h,h==="\\"&&f+1<e.length?s+=e[++f]:h===l&&(l=null);continue}if(h==='"'||h==="'"||h==="`"){l=h,s+=h;continue}if(h==="("){c++,s+=h;continue}if(h===")"){c--,s+=h;continue}if(h==="{"){s=s.trimEnd()+" {",d(s),s="",o++,f+1<e.length&&e[f+1]===" "&&f++;continue}if(h==="}"){s.trim()&&(d(s),s=""),o=Math.max(0,o-1),r.push(" ".repeat(o)+"}"),f+1<e.length&&e[f+1]===" "&&f++;continue}if(h===";"&&c<=0){s+=";";let g=f+1;for(;g<e.length&&e[g]===" ";)g++;if(g<e.length-1&&e[g]==="/"&&e[g+1]==="/"){let C=g+2;for(;C<e.length&&e[C]!=="{"&&e[C]!=="}";)C++;s+=e.slice(f+1,C).trimEnd(),f=C-1}d(s),s="",f+1<e.length&&e[f+1]===" "&&f++;continue}s+=h}return s.trim()&&d(s),r.length<=1?e:r.join(`
|
|
37
|
-
`)}function H0(e,n){if(!n)return e;const t=new RegExp(`^${n}\\s+`,"i");return e.replace(t,"")}function Ib(e,n,t){const r=t??[];return e.map(o=>{var c;if(o.type!=="code"||!((c=o.text)!=null&&c.trim()))return o;const s=WL(o.text,n,r);if(s){r.push({start:s.start,end:s.end});const d=H0(s.code,o.lang);return{type:"code",lang:o.lang,text:U0(d,o.lang)}}const l=H0(o.text||"",o.lang);return{...o,text:U0(l,o.lang)}})}const UL=["h1","h2","h3","h4","h5","h6"];function bi(e){return UL.includes(e)}function Rc(e){return parseInt(e.charAt(1),10)}function HL(e){let n=!1;const t=e.findIndex(l=>bi(l.type));if(t!==-1&&e[t].type!=="h1"&&!e.some(c=>c.type==="h1")){const c=Rc(e[t].type);e.some(f=>bi(f.type)&&Rc(f.type)>c)&&(e=e.map((f,h)=>h===t?{...f,type:"h1"}:f))}let r=e.map(l=>{if(l.type==="h1"){if(n)return{...l,type:"h2"};n=!0}return l});const o=new Map;let s=0;return r=r.map(l=>{if(!bi(l.type))return l;const c=Rc(l.type);if(o.has(c)){const f=o.get(c);return s=f,{...l,type:`h${f}`}}let d=c;return s>0&&c>s+1&&(d=s+1),o.set(c,d),s=d,{...l,type:`h${d}`}}),r=YL(r),r}function Cf(e,n){for(let t=n+1;t<e.length;t++){if(bi(e[t].type))return null;const r=e[t].type;if(r!=="p")return r}return null}function YL(e){const n=[...e];let t=0;for(;t<n.length;){if(n[t].type!=="h2"){t++;continue}const r=t,o=[t];let s=t+1;for(;s<n.length;)if(bi(n[s].type))if(n[s].type==="h2")o.push(s),s++;else break;else s++;if(o.length>=2){const l=Cf(n,o[0]),c=o.slice(1).every(d=>Cf(n,d)==="code"||Cf(n,d)==="table");if(l!=="code"&&l!=="table"&&c)for(let d=1;d<o.length;d++)n[o[d]]={...n[o[d]],type:"h3"}}t=r+1}return n}function Db(e){const n=e.split(`
|
|
38
|
-
`);if(e.length/Math.max(n.length,1)<200&&n.length>3)return e;let r=e;return r=r.replace(new RegExp("(\\p{L}{2,}):([A-ZА-ЯЁ])","gu"),`$1:
|
|
39
|
-
$2`),r=r.replace(/([.:!?])\s*(«[^»]+»[^.!?\n]*\.\s*—\s*[^.!?\n]+[.!?]?)\s*/g,`$1
|
|
40
|
-
$2
|
|
41
|
-
`),r=r.replace(/\s*(```\w*)\s*/g,`
|
|
42
|
-
|
|
43
|
-
$1
|
|
44
|
-
|
|
45
|
-
`),r=r.replace(/\s+(#{1,6}\s)/g,`
|
|
46
|
-
|
|
47
|
-
$1`),r=r.replace(/\s+(>\s)/g,`
|
|
48
|
-
|
|
49
|
-
$1`),r=r.replace(new RegExp('(?<=[.!?:>)\\]»"])\\s+([-*•]\\s)',"g"),`
|
|
50
|
-
$1`),r=r.replace(/\s{2,}([-*•]\s)/g,`
|
|
51
|
-
$1`),r=r.replace(/\s+(\d+\.\s)/g,`
|
|
52
|
-
$1`),r=r.split(`
|
|
53
|
-
`).flatMap(o=>{const s=o.match(/^(\d+\.\s.*?[.!?)]+)\s+(?=[A-ZА-ЯЁ])/u);if(s){const l=s[0].length-1,c=o.slice(0,l).trimEnd(),d=o.slice(l).trimStart();if(d.length>0)return[c,d]}return[o]}).join(`
|
|
54
|
-
`),r=r.split(`
|
|
55
|
-
`).flatMap(o=>{if(!/^>\s*\[!\w+\]/.test(o)||o.length<=120)return[o];const s=o.split(new RegExp('(?<=[.!?])\\s+(?=[A-ZА-ЯЁ0-9«"\\p{Emoji_Presentation}])',"gu"));if(s.length<=1)return[o];let l=1;for(let f=1;f<s.length&&!(/^.{1,50}:\s*$/.test(s[f])||/^\d+\.\s/.test(s[f])||/^[A-ZА-ЯЁ]\S*(?:\s+\S+){0,4}:\s/.test(s[f])||(l=f+1,l>=3));f++);if(l>=s.length)return[o];const c=s.slice(0,l).join(" "),d=s.slice(l).join(" ");return[c,d]}).join(`
|
|
56
|
-
`),r=r.split(`
|
|
57
|
-
`).flatMap(o=>/^>\s*\[!/.test(o)?[o]:o.length<=200?[o]:o.split(new RegExp("(?<=:)\\s+(?=[A-ZА-ЯЁ][a-zа-яё])","gu"))).join(`
|
|
58
|
-
`),r=r.split(`
|
|
59
|
-
`).flatMap(o=>{if(/^>\s*\[!/.test(o))return[o];const s=o.match(/^(.+?)\s+([A-ZА-ЯЁ][а-яёa-z]\S*(?:\s+\S+){0,4}:)\s*$/u);return s?[s[1],s[2]]:[o]}).join(`
|
|
60
|
-
`),r=r.split(`
|
|
61
|
-
`).flatMap(o=>{if(/^>\s*\[!/.test(o))return[o];const s=o.match(/^(.+?[.!?])\s+([А-ЯЁ][а-яёa-z]\S*(?:\s+\S+){0,4}:)\s+([А-ЯЁ].+)/u);return s?[s[1],s[2],s[3]]:[o]}).join(`
|
|
62
|
-
`),r=r.split(`
|
|
63
|
-
`).flatMap(o=>{if(/^>\s*\[!/.test(o))return[o];const s=o.match(/^([^:\n]{5,55}:)\s+([А-ЯЁ].{30,})/u);return s?[s[1],s[2]]:[o]}).join(`
|
|
64
|
-
`),r=r.replace(/(\s)((?:cpp|c\+\+|python|java|javascript|typescript|html|css|sql|ruby|go|bash|sh|swift|kotlin|rust|php|perl|scala)\s+(?:void|int|float|double|char|bool|def|function|class|struct|import|from|const|let|var|#include|package|pub|async|module|export|return)\b)/gi,`
|
|
65
|
-
$2`),r=r.split(`
|
|
66
|
-
`).flatMap(o=>{if(/^>\s*\[!/.test(o))return[o];if(o.length<=150)return[o];const s=o.split(new RegExp('(?<=[.!?])\\s+(?=[A-ZА-ЯЁ0-9«"\\p{Emoji_Presentation}])',"gu"));return s.reduce((c,d)=>c+d.length,0)/s.length>=85?[o]:s}).join(`
|
|
67
|
-
`),r=r.replace(/\n{3,}/g,`
|
|
68
|
-
|
|
69
|
-
`),r=r.trim(),r}const Ob=`You are a text structure detector. Input is plain text. Return a JSON object {"blocks":[...]} detecting structure.
|
|
70
|
-
|
|
71
|
-
BLOCK TYPES:
|
|
72
|
-
{"type":"h1"|"h2"|"h3"|"h4"|"h5"|"h6", "text":"..."}
|
|
73
|
-
{"type":"p", "text":"..."}
|
|
74
|
-
{"type":"bullet", "items":["...", "..."]}
|
|
75
|
-
{"type":"number", "items":["...", "..."]}
|
|
76
|
-
{"type":"check", "items":[{"text":"...", "checked":true|false}]}
|
|
77
|
-
{"type":"quote", "text":"..."}
|
|
78
|
-
{"type":"callout", "style":"default"|"success"|"warning"|"alert", "text":"..."}
|
|
79
|
-
{"type":"code", "lang":"...", "text":"..."}
|
|
80
|
-
{"type":"table", "rows":[["A","B"],["C","D"]]} (first row = header)
|
|
81
|
-
{"type":"hr"}
|
|
82
|
-
|
|
83
|
-
IMPORTANT — CODE BLOCKS:
|
|
84
|
-
For code, return {"type":"code", "lang":"...", "text":"..."}.
|
|
85
|
-
Copy code VERBATIM — every character, every line. NEVER truncate, summarize or shorten code.
|
|
86
|
-
If code is inside \`\`\` fences, omit the fences, keep only the code content.
|
|
87
|
-
Text BEFORE code (intro phrases like "Вот код:", "Here is the script:", "Пример:") MUST be output as a separate p block BEFORE the code block. NEVER drop intro text.
|
|
88
|
-
|
|
89
|
-
INLINE FORMATTING:
|
|
90
|
-
- Preserve **bold** and \`code\` markers from input text EXACTLY as-is.
|
|
91
|
-
- For text without markers: add **bold** for key terms, important concepts, parameter names.
|
|
92
|
-
Add \`code\` for function names, variable names, commands, file paths, code identifiers, version strings (v1.0.0, stable-build-v2.1.0-alpha, etc.), config keys, env vars.
|
|
93
|
-
- Bold and code markers go INSIDE the "text" field of blocks. Example:
|
|
94
|
-
{"type":"p", "text":"**Important:** use \`fetchData()\` to load items"}
|
|
95
|
-
- NEVER add formatting inside code blocks (type "code").
|
|
96
|
-
|
|
97
|
-
DETECTION (priority order):
|
|
98
|
-
- \`\`\` fences → code (lang from fence label). Lines with code syntax (function, if(, while(, for(, switch(, try, catch, =>, {}, var/let/const, import, return, class, console.log, etc.) without natural language → code.
|
|
99
|
-
- "- "/"* "/"• " → bullet, "1. " → number, "[ ]"/"[x]" → check. Group consecutive items. ✅/👉/➡️ at line start are NOT list markers and NOT checkboxes — they are decorative emoji, keep them in p text.
|
|
100
|
-
- CRITICAL — CHECK TYPE: {"type":"check"} is ONLY for explicit text markers [ ] and [x]. NEVER use check type for lines starting with emoji (✅❌🟢🔴☑️⬜🎯👉 etc.). Emoji at line start = decorative, keep in heading or p text. Examples:
|
|
101
|
-
"✅ Добавляй лейбл когда:" → {"type":"h2","text":"✅ Добавляй лейбл когда:"}
|
|
102
|
-
"❌ НЕ добавляй когда:" → {"type":"h2","text":"❌ НЕ добавляй когда:"}
|
|
103
|
-
"[ ] Task not done" → {"type":"check","items":[{"text":"Task not done","checked":false}]}
|
|
104
|
-
"[x] Task done" → {"type":"check","items":[{"text":"Task done","checked":true}]}
|
|
105
|
-
- CRITICAL — NUMBER/BULLET EMOJI: 1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣ at line start are NOT numbered list markers. They are decorative emoji — keep them in the text as-is. NEVER convert to {"type":"number"}. Output as p or heading with the emoji preserved.
|
|
106
|
-
"1️⃣ PR → stage (Staging окружение)" → {"type":"h2","text":"1️⃣ PR → stage (Staging окружение)"}
|
|
107
|
-
"2️⃣ PR → main (Production окружение)" → {"type":"h2","text":"2️⃣ PR → main (Production окружение)"}
|
|
108
|
-
- 3+ consecutive short lines (1-4 words each) after a line ending with ":" → bullet list (unmarked list pattern).
|
|
109
|
-
- 3+ consecutive "Key: Value" pairs (like "Framework: React 18.3.1", "Build Tool: Vite 7.0.0") → bullet list. Each pair becomes one bullet. Keep the "Key: Value" text as-is. Tech specs, configs, metadata lists — always bullet.
|
|
110
|
-
|
|
111
|
-
- QUOTES — detect ALL these patterns as {"type":"quote"}:
|
|
112
|
-
"> " at line start, «text» — Author, "text" — Author, „text" — Author.
|
|
113
|
-
Intro words BEFORE the quote are NOT part of the quote — output intro as separate p.
|
|
114
|
-
CRITICAL RULE: ANY text containing «...» followed by " — Name" or ". — Name" MUST be split into p + quote. This applies even when the quote is embedded in a longer sentence or paragraph.
|
|
115
|
-
Examples:
|
|
116
|
-
'Цитата дня: «Программирование — это искусство». — Автор' → {"type":"p","text":"Цитата дня:"} + {"type":"quote","text":"«Программирование — это искусство». — Автор"}
|
|
117
|
-
'Важные мысли садоводов (записал в интернете): «Базилик — это фермерство». — Неизвестный автор.' → {"type":"p","text":"Важные мысли садоводов (записал в интернете):"} + {"type":"quote","text":"«Базилик — это фермерство». — Неизвестный автор."}
|
|
118
|
-
'Мне понравилась фраза «Код — поэзия». — Кнут' → {"type":"p","text":"Мне понравилась фраза"} + {"type":"quote","text":"«Код — поэзия». — Кнут"}
|
|
119
|
-
ALWAYS split. NEVER leave «...» — Author inside a p block.
|
|
120
|
-
- ВАЖНОЕ ПРИМЕЧАНИЕ/NOTE/WARNING/IMPORTANT/TIP/ALERT/CAUTION/ВНИМАНИЕ/ПРИМЕЧАНИЕ: at line start → callout. Remove marker. Style: NOTE/TIP/ПРИМЕЧАНИЕ→default, SUCCESS→success, WARNING/CAUTION→warning, IMPORTANT/ALERT/ВНИМАНИЕ/ВАЖНОЕ ПРИМЕЧАНИЕ→alert.
|
|
121
|
-
- > [!WARNING], > [!NOTE], > [!TIP], > [!IMPORTANT], > [!ERROR], > [!SUCCESS], > [!CAUTION] → callout. Remove the > [!...] marker. Map: WARNING/CAUTION→warning, NOTE/TIP→default, IMPORTANT/ERROR→alert, SUCCESS→success.
|
|
122
|
-
- Emoji ⚠️❗🔥💡ℹ️ at line start → callout. REMOVE the emoji from text. Style: ⚠️→warning, ❗🔥→alert, 💡ℹ️→default. Callout = ONLY that single line, following lines are separate blocks.
|
|
123
|
-
- Any OTHER emoji at line start (🎯👉🙂💰🎮📌🚨➡️ etc.) → NOT a callout. KEEP the emoji in the text. Example: "🎯 Мой совет" → {"type":"h2","text":"🎯 Мой совет"}.
|
|
124
|
-
- SHELL WORKFLOW BLOCKS — CRITICAL: When you see a sequence of shell commands (git, npm, npx, cd, mkdir, rm, cp, mv, ls, echo, docker, curl, wget, pip, python, node, yarn, pnpm, brew, apt, sudo, chmod, ssh, make, cargo) mixed with "# comment" lines (# followed by a space), this is a SINGLE bash code block. Rules:
|
|
125
|
-
1. "# text" lines near shell commands are bash COMMENTS, NOT headings. NEVER output them as h1/h2/h3.
|
|
126
|
-
2. Group the ENTIRE consecutive sequence (commands + # comments + empty lines between them) into ONE {"type":"code", "lang":"bash", "text":"..."} block.
|
|
127
|
-
3. NEVER split a shell workflow into multiple code blocks. NEVER interleave heading/p blocks between commands.
|
|
128
|
-
4. Text BEFORE the shell sequence (intro like "Стандартный workflow:") → separate p or heading. Text AFTER → separate block.
|
|
129
|
-
5. Example input:
|
|
130
|
-
"Стандартный workflow
|
|
131
|
-
# 1. Создать ветку
|
|
132
|
-
git checkout stage
|
|
133
|
-
git pull origin stage
|
|
134
|
-
|
|
135
|
-
# 2. Разработка
|
|
136
|
-
npm start
|
|
137
|
-
|
|
138
|
-
# 3. Коммит
|
|
139
|
-
git add .
|
|
140
|
-
git commit -m \\"feat\\"
|
|
141
|
-
|
|
142
|
-
# 4. Push
|
|
143
|
-
git push origin feature/x
|
|
144
|
-
Готово!"
|
|
145
|
-
Correct output: heading "Стандартный workflow" + ONE code block (lang:"bash") containing ALL lines from "# 1. Создать ветку" through "git push origin feature/x" + p "Готово!"
|
|
146
|
-
WRONG: multiple code blocks, or h2 "1. Создать ветку" + code "git checkout stage" + h2 "2. Разработка" etc.
|
|
147
|
-
- ENV/CONFIG FILE BLOCKS — CRITICAL: When ALL or MOST lines follow UPPER_SNAKE_CASE=value format (e.g. VITE_APP_NAME=Layers, DB_HOST=localhost, NODE_ENV=production), this is a configuration/env file. Rules:
|
|
148
|
-
1. Output the ENTIRE block as ONE {"type":"code","lang":"dotenv","text":"..."} block.
|
|
149
|
-
2. "# comment" lines within the block are part of the code — NEVER output them as headings or p blocks.
|
|
150
|
-
3. Empty lines between groups of vars → keep inside the single code block (part of the text).
|
|
151
|
-
4. NEVER split env vars into multiple blocks or individual p lines.
|
|
152
|
-
5. Example: "VITE_APP=Layers
|
|
153
|
-
VITE_KEY=<secret>
|
|
154
|
-
|
|
155
|
-
# Sentry
|
|
156
|
-
VITE_DSN=<secret>" → ONE code block (lang:"dotenv") containing all lines.
|
|
157
|
-
- # through ###### → h1-h6. ONLY ONE h1 per document (the main title). All other sections → h2 or lower. ALL CAPS line (>3 chars) → h1 (only if no h1 exists yet, otherwise h2). REMEMBER: "# text" near shell commands = bash comment, NOT heading (see SHELL WORKFLOW BLOCKS above).
|
|
158
|
-
- "---"/"***" → hr. Lines with "|" → table (skip |---| separator rows).
|
|
159
|
-
- HEADINGS — CRITICAL: A short phrase (2-8 words, no ending period) followed by explanatory text, list, or code block is ALWAYS a heading, NEVER a p. Rules:
|
|
160
|
-
1. Standalone short line (10-80 chars, ≥2 words, no ending .!?) → h2.
|
|
161
|
-
2. Short phrase at START of paragraph before a longer sentence or code → split into heading + content.
|
|
162
|
-
3. Lines with decorative emoji at start that match heading criteria (10-80 chars, ≥2 words) → heading WITH the emoji in text. Example: "📘 Инструкция: «Как делать X»" → h1, "🔵 Шаг 1. Настройка" → h2.
|
|
163
|
-
4. NEVER split a single heading into multiple blocks. ALL words of a heading line MUST stay in ONE block. "🔵 Шаг 0. Подготовь гипотезу в формате H1/H0" → ONE h2, NOT two p blocks.
|
|
164
|
-
5. HEADING HIERARCHY — NOT everything is h2! Analyze semantic nesting:
|
|
165
|
-
- Top-level sections under h1 → h2 (major topics like "Монорепозиторий структура", "Path Mapping")
|
|
166
|
-
- Sub-topics that belong INSIDE an h2 section → h3 (e.g. "Основное приложение (apps/layers)" and "Модули (packages/*)" are sub-topics of "Монорепозиторий структура" → h3, not h2)
|
|
167
|
-
- Sibling sections at the same semantic level MUST have the same heading level
|
|
168
|
-
- Example: h1 "Project Architecture" → h2 "Монорепозиторий структура" → h3 "Основное приложение" + h3 "Модули" → h2 "Path Mapping" → h3 "Примеры использования:"
|
|
169
|
-
6. Examples of HEADINGS (not p!): "Монорепозиторий структура", "Основное приложение (apps/layers)", "Path Mapping", "Примеры использования:", "Переменные и функции", "Качество кода", "Системные требования", "📘 Инструкция: «Название»", "🔵 Шаг 0. Описание".
|
|
170
|
-
7. These are NOT headings → regular p: single words (<10 chars), full sentences ending with period, lines >80 chars.
|
|
171
|
-
Single words and lines <10 chars → p.
|
|
172
|
-
- Empty line (double newline) = paragraph break. Each text block separated by empty lines → separate p. NEVER merge multiple paragraphs into one.
|
|
173
|
-
- Long text without empty lines: split into separate p blocks by semantic topic. When subject changes, new argument starts, or a new idea begins → new p. Aim for 2-5 sentences per paragraph. Never output a single giant p for multi-topic text.
|
|
174
|
-
- Everything else → p
|
|
175
|
-
|
|
176
|
-
RULES:
|
|
177
|
-
1. Return ONLY {"blocks":[...]}. No markdown fences, no explanation.
|
|
178
|
-
2. EVERY line of input MUST appear in output VERBATIM. Do NOT skip, drop, summarize, shorten, paraphrase, or rewrite any text. Copy the EXACT original words. You are a formatter, NOT a summarizer.
|
|
179
|
-
3. NEVER remove emoji from text — except callout-trigger emoji (⚠️❗🔥💡ℹ️) which are replaced by the callout icon. All other emoji must stay in text as-is.
|
|
180
|
-
4. ALWAYS split heading phrases from paragraph text.
|
|
181
|
-
5. Callout = single line only. Following lines → separate blocks.
|
|
182
|
-
6. For code blocks: copy the FULL code text verbatim, never truncate.
|
|
183
|
-
7. BLOCK BOUNDARY INTEGRITY: When splitting one input line into multiple blocks (heading+p, callout+p, p+code, etc.), the concatenation of ALL resulting block texts MUST contain EVERY word from the original line. NEVER drop words at split boundaries. Example: "ВАЖНО: Версионирование Не забудьте увеличить minor версию в package.json перед созданием PR!" → callout "Версионирование" + p "Не забудьте увеличить minor версию в package.json перед созданием PR!" — ALL words preserved.`,ZL="https://denindka.online/smart-paste";function GL(e,n,t=[]){let r=e.trim();const o=r.match(/```(?:json)?\s*([\s\S]*?)```/);o&&(r=o[1].trim());const s=JSON.parse(r);let l=Array.isArray(s)?s:s.blocks||s.children;if(!(l!=null&&l.length))throw new Error("Invalid AI response: empty blocks");return l=Ib(l,n),l=Rb(l),l=HL(l),Nb(l,[],t)}async function Pb(e,n,t=[]){const r=e.slice(0,Li),o=Db(r),s=jb(o),l=JSON.stringify({messages:[{role:"system",content:Ob},{role:"user",content:s}]});return new Promise((c,d)=>{const f=setTimeout(()=>{d(new Error("AI timeout"))},ih);n(l,h=>{clearTimeout(f);try{const g=GL(h,r,t);c(g)}catch(g){d(g)}},()=>{clearTimeout(f),d(new Error("AI request failed"))})})}function j1(e,n,t,r,o,s){let l=setTimeout(()=>s(),ih),c=0,d=e.length>Li;const f=new Set,h=[];let g=!1,C=0;const y=new Map,b=e.slice(0,Li),x=Db(b),w=jb(x),k=D=>{clearTimeout(l),l=setTimeout(()=>s(),ih);let N=D;if(bi(N.type)){N.type==="h1"&&g&&(N={...N,type:"h2"}),N.type==="h1"&&(g=!0);const O=Rc(N.type);if(y.has(O)){const I=y.get(O);N={...N,type:`h${I}`},C=I}else{let I=O;C>0&&O>C+1&&(I=C+1),y.set(O,I),C=I,N={...N,type:`h${I}`}}}const[L]=Ib([N],b,h),[E]=Rb([L]),M=Nb([E],n);if(t.length>0){const O="text"in E?E.text??"":"";for(let I=0;I<t.length;I++)!f.has(I)&&Lb(O,t[I].anchorText)&&(M.push(xa(t[I])),f.add(I))}r(M),c++},T=JSON.stringify({messages:[{role:"system",content:Ob},{role:"user",content:w}]});fetch(ZL,{method:"POST",headers:{"Content-Type":"application/json"},body:T}).then(async D=>{if(!D.ok||!D.body){clearTimeout(l),s();return}const N=D.body.getReader(),L=new TextDecoder;let E="";for(;;){const{done:M,value:O}=await N.read();if(M)break;const I=L.decode(O,{stream:!0});E+=I;const F=E.split(`
|
|
184
|
-
`);E=F.pop()||"";for(const _ of F){const R=_.trim();if(R){if(R==="data: [DONE]"){if(clearTimeout(l),c===0){s();return}if(t.length>0){const j=t.filter((K,W)=>!f.has(W)).map(K=>xa(K));j.length>0&&r(j)}o(d);return}if(R.startsWith("data: "))try{const j=R.slice(6),K=JSON.parse(j);if(K.error){clearTimeout(l),s({error:K.error,message:K.message});return}if(K.warning==="truncated"){d=!0;continue}k(K)}catch{}}}}if(clearTimeout(l),c===0){s();return}if(t.length>0){const M=t.filter((O,I)=>!f.has(I)).map(O=>xa(O));M.length>0&&r(M)}o(d)}).catch(()=>{clearTimeout(l),s()})}const VL=Object.freeze(Object.defineProperty({__proto__:null,segmentByAI:Pb,segmentByAIStream:j1},Symbol.toStringTag,{value:"Module"}));function qL(e,n){if(!e||e.length===0)return{valid:!1,reason:"No segments produced"};for(const s of e)if(!bL.has(s.blockType))return{valid:!1,reason:`Unknown block type: ${s.blockType}`};const t=e.map(s=>s.rawText).join(""),r=n.replace(/\r\n/g,`
|
|
185
|
-
`);return t.replace(/\r\n/g,`
|
|
186
|
-
`)!==r?{valid:!1,reason:"Reassembled text does not match original"}:{valid:!0}}function QL(e,n,t,r){e.update(()=>{const o=!!(t&&(t.start.key!==t.end.key||t.start.offset!==t.end.offset)),s=p.$getRoot();let l=!1;o&&t&&(l=T1(t));let c=null,d=!1;if(!l&&(t!=null&&t.anchorTopKey)){const g=p.$getNodeByKey(t.anchorTopKey),C=(g==null?void 0:g.getTopLevelElement())??g??null;C&&C.isAttached()&&(c=C,d=!0)}if(!c&&r){const g=ol(r);g.length>20&&(c=s.getChildren().find(C=>Gt(C.getTextContent()).includes(g))??null,c&&(d=!0))}if(!c&&l){const g=p.$getSelection();if(!p.$isRangeSelection(g))return;const C=g.anchor.getNode().getTopLevelElement();if(g.removeText(),C&&C.isAttached()&&Eb(C.getTextContent(),r,t==null?void 0:t.tracking))c=C,d=!0;else{const y=g.getNodes()[0];c=y?y.getTopLevelElement():s.getLastChild(),d=!!c}}c||(c=s.getLastChild());let f=c,h=!1;for(const g of n)try{const C=p.$parseSerializedNode(g);!h&&f&&f.getTextContent().trim()===""?(f.replace(C),f=C,h=!0):(f?f.insertAfter(C):s.append(C),f=C)}catch{}(!h&&d&&c&&c.isAttached()||h&&c&&c.isAttached())&&c.remove()})}function Fi(e,n){return e._nodes.has(n)}function Y0(e){return e.trim().replace(/^#{1,6}\s+/,"")}function Z0(e){return e.trim().split(`
|
|
187
|
-
`).map(n=>n.replace(/^>\s?/,"")).join(`
|
|
188
|
-
`)}function G0(e){return e.trim().replace(/^\[!(NOTE|TIP|WARNING|CAUTION|IMPORTANT)\]\s*/im,"")}function Us(e){const n=p.$createParagraphNode();return e.trim()&&n.append(p.$createTextNode(e.trim())),n}function JL(e,n){const t=[];for(const r of e){const o=XL(r,n);t.push(...o)}return t}function XL(e,n){switch(e.blockType){case"heading":return $L(e,n);case"bullet-list":return V0(e,"bullet",n);case"number-list":return V0(e,"number",n);case"quote":return eN(e,n);case"code":return tN(e,n);case"callout":return nN(e,n);case"horizontal-rule":return rN(n);case"paragraph":default:return[Us(e.rawText)]}}function $L(e,n){var o;const t=((o=e.meta)==null?void 0:o.headingLevel)||"h1";if(!Fi(n,"heading"))return[Us(Y0(e.rawText))];const r=ln.$createHeadingNode(t);return r.append(p.$createTextNode(Y0(e.rawText))),[r]}function V0(e,n,t){var s,l;if(!Fi(t,"list"))return(((s=e.meta)==null?void 0:s.listItems)||[e.rawText.trim()]).map(d=>Us(d));const r=cn(n),o=((l=e.meta)==null?void 0:l.listItems)||[e.rawText.trim()];for(const c of o){const d=Fn();d.append(p.$createTextNode(c)),r.append(d)}return[r]}function eN(e,n){if(!Fi(n,"quote"))return[Us(Z0(e.rawText))];const t=ln.$createQuoteNode();return t.append(p.$createTextNode(Z0(e.rawText))),[t]}function tN(e,n){var l;if(!Fi(n,"extend-code"))return[Us(e.rawText)];const t=((l=e.meta)==null?void 0:l.language)||"plain";let r=e.rawText.trim();const o=r.match(/^```\w*\n([\s\S]*?)```\s*$/);o&&(r=o[1]),r.endsWith(`
|
|
189
|
-
`)&&(r=r.slice(0,-1));const s=new qn(!1,t);return r&&s.append(p.$createTextNode(r)),[s]}function nN(e,n){var g;if(!Fi(n,"callout-wrapper"))return[Us(G0(e.rawText))];const t=((g=e.meta)==null?void 0:g.calloutType)||"default",{emoji:r,backgroundColor:o,calloutType:s}=ju(t),l=Ga(o||"#f3f3f4",s||"default"),c=Xa(r||"e=%F0%9F%99%82"),d=Za(),f=p.$createParagraphNode(),h=G0(e.rawText);return h.trim()&&f.append(p.$createTextNode(h.trim())),d.append(f),l.append(c),l.append(d),[l]}function rN(e){return Fi(e,"horizontalrule")?[js.$createHorizontalRuleNode()]:[Us("---")]}function oN(e,n,t,r){e.update(()=>{const o=!!(t&&(t.start.key!==t.end.key||t.start.offset!==t.end.offset)),s=p.$getRoot();let l=!1;o&&t&&(l=T1(t));let c=null,d=!1;if(!l&&(t!=null&&t.anchorTopKey)){const h=p.$getNodeByKey(t.anchorTopKey),g=(h==null?void 0:h.getTopLevelElement())??h??null;g&&g.isAttached()&&(c=g,d=!0)}if(!c&&r){const h=ol(r);h.length>20&&(c=s.getChildren().find(g=>Gt(g.getTextContent()).includes(h))??null,c&&(d=!0))}if(!c&&l){const h=p.$getSelection();if(p.$isRangeSelection(h)){const g=h.anchor.getNode().getTopLevelElement();if(h.removeText(),g&&g.isAttached()&&Eb(g.getTextContent(),r,t==null?void 0:t.tracking))c=g,d=!0;else{const C=h.getNodes()[0];c=C?C.getTopLevelElement():s.getLastChild(),d=!!c}}}c||(c=s.getLastChild());const f=JL(n,e);if(f.length>0){let h=c,g=!1;for(const C of f)!g&&h&&h.getTextContent().trim()===""?(h.replace(C),h=C,g=!0):(h?h.insertAfter(C):s.append(C),h=C);(!g&&d&&c&&c.isAttached()||g&&c&&c.isAttached())&&c.remove()}})}let Rs=Promise.resolve();function Ic(){Rs=Promise.resolve()}function Dc(e){Rs=e}function Oc(e){if(!Ut.$isCodeNode(e)&&!gn(e)||!p.$isElementNode(e))return null;const n=e.getChildren();if(n.length===0)return null;const t=[];let r=[];for(const o of n){const s=o.exportJSON();p.$isLineBreakNode(o)?(r.push(s),t.push(r),r=[]):r.push(s)}return r.length>0&&t.push(r),e.clear(),{codeNodeKey:e.getKey(),lines:t}}function ah(e){const n=[],t=[];function r(o){if(p.$isTextNode(o)&&t.push(o),p.$isElementNode(o)){if(Ut.$isCodeNode(o)||gn(o))return;for(const s of o.getChildren())r(s)}}r(e);for(const o of t){const s=o.getTextContent();if(s.trim()){const l=s.split(/\s+/).filter(c=>c);n.push({textNodeKey:o.getKey(),fullText:s,words:l}),o.setTextContent(" ")}}return n}async function lh(e,n){const t=n.words;let r="";for(let o=0;o<t.length;o++)if(await new Promise(s=>setTimeout(s,50)),r+=(o>0?" ":"")+t[o],e.update(()=>{const s=p.$getNodeByKey(n.textNodeKey);s&&s.isAttached()&&(s.setTextContent(r),s.select(r.length,r.length))}),o%10===0||o===t.length-1){const s=e.getElementByKey(n.textNodeKey);s&&s.scrollIntoView({behavior:"smooth",block:"center"})}r!==n.fullText&&e.update(()=>{const o=p.$getNodeByKey(n.textNodeKey);o&&o.isAttached()&&o.setTextContent(n.fullText)})}async function Pc(e,n){for(let t=0;t<n.lines.length;t++)if(await new Promise(r=>setTimeout(r,30)),e.update(()=>{const r=p.$getNodeByKey(n.codeNodeKey);if(!(!r||!p.$isElementNode(r)))for(const o of n.lines[t])try{const s=p.$parseSerializedNode(o);r.append(s)}catch{}},{discrete:!0}),t%3===0||t===n.lines.length-1){const r=e.getElementByKey(n.codeNodeKey);r&&r.scrollIntoView({behavior:"smooth",block:"center"})}}function Go(e){typeof window<"u"&&window.dispatchEvent(new CustomEvent("smart-paste-telemetry",{detail:e}))}const sN={note:"default",tip:"success",warning:"warning",caution:"alert",important:"alert"};function iN(e){const n=e.replace(/\r\n/g,`
|
|
190
|
-
`),t=[];let r=0;const s=n.replace(/^```(\w*)\n([\s\S]*?)^```\s*$/gm,(d,f,h)=>{const g=`\0CODE_BLOCK_${r++}\0`;return t.push({placeholder:g,content:h,language:f||"plain",fullMatch:d}),g}).split(/(\n\s*\n)/),l=[];for(let d=0;d<s.length;d++)d%2===0?l.push(s[d]):l.length>0?l[l.length-1]+=s[d]:l.push(s[d]);const c=[];for(const d of l){const f=d.trim();if(f.length===0){c.length>0&&(c[c.length-1].rawText+=d);continue}const h=t.find(y=>f===y.placeholder);if(h){c.push({blockType:"code",rawText:d.replace(h.placeholder,h.fullMatch),meta:{language:h.language}});continue}let g=d;for(const y of t)g.includes(y.placeholder)&&(g=g.replace(y.placeholder,y.fullMatch));const C=aN(f,g);c.push(C)}return lN(c)}function aN(e,n){if(/^(---|___|\*\*\*)\s*$/.test(e))return{blockType:"horizontal-rule",rawText:n};const t=e.match(/^(#{1,6})\s+(.*)$/);if(t){const o=`h${t[1].length}`;return{blockType:"heading",rawText:n,meta:{headingLevel:o}}}const r=e.match(/^\[!(NOTE|TIP|WARNING|CAUTION|IMPORTANT)\]\s*([\s\S]*)$/im);if(r){const o=sN[r[1].toLowerCase()]||"default";return{blockType:"callout",rawText:n,meta:{calloutType:o}}}if(/^>\s/m.test(e)&&e.split(`
|
|
191
|
-
`).every(s=>s.trim()===""||/^>\s?/.test(s)))return{blockType:"quote",rawText:n};if(/^(\s*[-*+]\s)/m.test(e)){const o=e.split(`
|
|
192
|
-
`);if(o.every(l=>l.trim()===""||/^\s*[-*+]\s/.test(l))){const l=o.filter(c=>c.trim().length>0).map(c=>c.replace(/^\s*[-*+]\s/,""));return{blockType:"bullet-list",rawText:n,meta:{listItems:l}}}}if(/^(\s*\d+\.\s)/m.test(e)){const o=e.split(`
|
|
193
|
-
`);if(o.every(l=>l.trim()===""||/^\s*\d+\.\s/.test(l))){const l=o.filter(c=>c.trim().length>0).map(c=>c.replace(/^\s*\d+\.\s/,""));return{blockType:"number-list",rawText:n,meta:{listItems:l}}}}return{blockType:"paragraph",rawText:n}}function lN(e){var t,r;const n=[];for(const o of e){const s=n[n.length-1];s&&s.blockType===o.blockType&&(o.blockType==="bullet-list"||o.blockType==="number-list")?(s.rawText+=o.rawText,s.meta={...s.meta,listItems:[...((t=s.meta)==null?void 0:t.listItems)||[],...((r=o.meta)==null?void 0:r.listItems)||[]]}):n.push({...o})}return n}function ch(e,n,t,r,o){const s=n.current;s&&(e.setEditorState(s),n.current=null),t();const l=(o==null?void 0:o.error)==="free_trial_exceeded";iw.notifications.show({message:r(l?"editor.smartPaste.freeLimitReached":"editor.smartPaste.fallback"),color:l?"yellow":"red",autoClose:5e3}),l&&window.dispatchEvent(new CustomEvent("smart-paste-free-limit",{detail:{error:o.error,message:o.message}}))}async function cN(e,n,t,r){const{editor:o,fetchSmartPastePrompt:s,serverStreamAvailable:l}=e;let c=!1,d=!1,f;const h=[];let g=null;o.update(()=>{let x=null,w=[],k=[];for(const D of t){const N=p.$getNodeByKey(D);if(!N)continue;const L=N.getType();if(N1.has(L))x==="paragraph"&&k.length>0&&(h.push({kind:"paragraph",texts:k,combinedText:k.join(`
|
|
194
|
-
`)}),k=[]),x="stable",w.push(L1(N));else{const M=N.getTextContent().trim();if(!M)continue;x==="stable"&&w.length>0&&(h.push({kind:"stable",serializedNodes:w}),w=[]),x="paragraph",k.push(M)}}w.length>0&&h.push({kind:"stable",serializedNodes:w}),k.length>0&&h.push({kind:"paragraph",texts:k,combinedText:k.join(`
|
|
195
|
-
`)});const T=p.$getNodeByKey(t[0]);if(T!=null&&T.isAttached()){const D=T.getPreviousSibling();g=(D==null?void 0:D.getKey())??null}di(!0);for(const D of t){const N=p.$getNodeByKey(D);N!=null&&N.isAttached()&&N.remove()}},{discrete:!0}),xL(h,r),Ic();const C=async x=>{if(s){const{segmentByAI:w}=await Promise.resolve().then(()=>VL);return w(x.combinedText,s,e.pendingRichElementsRef.current)}throw new Error("No classic AI provider")},y=new Map;if(s)for(let x=0;x<h.length;x++){const w=h[x];if(w.kind==="paragraph"){const k={texts:w.texts,combinedText:w.combinedText};y.set(x,C(k))}}function b(x){if(g){const w=p.$getNodeByKey(g),k=w?w.getTopLevelElement()??w:null;k!=null&&k.isAttached()?k.insertAfter(x):p.$getRoot().append(x)}else{const w=p.$getRoot(),k=w.getFirstChild();k?k.insertBefore(x):w.append(x)}g=x.getKey()}for(let x=0;x<h.length;x++){const w=h[x],k=x;w.kind==="stable"?Dc(Rs.then(async()=>{const T=[];o.update(()=>{for(const D of w.serializedNodes)try{const N=p.$parseSerializedNode(D);b(N);const L=Oc(N);L&&T.push(L)}catch{}},{discrete:!0});for(const D of T)await Pc(o,D)})):Dc(Rs.then(async()=>{if(s){let T;try{T=await y.get(k)}catch{return}for(let D=0;D<T.length;D++){const N=T[D],L=[];let E=null;if(o.update(()=>{try{const M=p.$parseSerializedNode(N);b(M),E=Oc(M),E||L.push(...ah(M))}catch{}},{discrete:!0}),await new Promise(M=>requestAnimationFrame(M)),E)await Pc(o,E);else for(const M of L)await lh(o,M)}}else if(l){const D=w.combinedText.slice(0,Li),N=[];let L=!1,E=null;for(j1(D,e.pendingLinksRef.current,e.pendingRichElementsRef.current,M=>{N.push(M),E&&(E(),E=null)},M=>{M&&(c=!0),L=!0,E&&(E(),E=null)},M=>{d=!0,f=M,L=!0,E&&(E(),E=null)});!L||N.length>0;){if(N.length===0){await new Promise(O=>{E=O});continue}const M=N.shift();for(const O of M){const I=[];let F=null;if(o.update(()=>{try{const _=p.$parseSerializedNode(O);b(_),F=Oc(_),F||I.push(...ah(_))}catch{}},{discrete:!0}),await new Promise(_=>requestAnimationFrame(_)),F)await Pc(o,F);else for(const _ of I)await lh(o,_)}}}}))}return Dc(Rs.then(()=>{if(di(!1),e.setIsProcessing(!1),d){ch(o,e.preAIEditorStateRef,()=>{e.resetPendingRefs(),e.setPopupMode(null),e.setPendingText("")},e.t,f),Ic();return}e.setPopupMode("confirm"),Ic()})),c}function lc(e){e.setPopupMode(null),e.setPendingText(""),e.pendingLinksRef.current=[],e.pendingRichElementsRef.current=[],e.pendingRangeRef.current=null,e.pendingClassificationRef.current=null,e.pendingInsertedKeysRef.current=[]}async function uN(e,n,t){const{editor:r,fetchSmartPastePrompt:o,serverStreamAvailable:s,onTrack:l}=e,c=performance.now();if(l==null||l("smart_paste_processing_started",{choice:n,textLength:t.length}),n==="plain"){lc(e),Go({choice:"plain",textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-c});return}try{if(n==="ai"){if(e.pendingClassificationRef.current&&e.pendingInsertedKeysRef.current.length>0){const y=e.pendingClassificationRef.current,b=[...e.pendingInsertedKeysRef.current];e.pendingClassificationRef.current=null,e.pendingInsertedKeysRef.current=[];try{const x=await cN({editor:r,fetchSmartPastePrompt:o,pendingLinksRef:e.pendingLinksRef,pendingRichElementsRef:e.pendingRichElementsRef,setIsProcessing:e.setIsProcessing,setPendingText:e.setPendingText,setPopupMode:e.setPopupMode,resetPendingRefs:()=>{e.pendingLinksRef.current=[],e.pendingRichElementsRef.current=[],e.pendingRangeRef.current=null,e.pendingClassificationRef.current=null,e.pendingInsertedKeysRef.current=[]},serverStreamAvailable:s,preAIEditorStateRef:e.preAIEditorStateRef,t:e.t},y,b,t);Go({choice:"ai",textLength:t.length,segmentCount:y.runs.length,processingTimeMs:performance.now()-c,wasTruncated:x}),l==null||l("smart_paste_processing_completed",{choice:"ai",processingTimeMs:Math.round(performance.now()-c),segmentCount:y.runs.length})}catch(x){console.warn("[SmartPaste] processNodeBasedAI failed, restoring state",x),di(!1),e.setIsProcessing(!1),ch(r,e.preAIEditorStateRef,()=>lc(e),e.t)}return}let g=e.pendingRangeRef.current;if(!g){const y=Mb(r,t);y&&(e.pendingRangeRef.current=y,g=y)}const C=!!o&&(!g||g.tracking==="fallback");if(s&&!C){let y=0,b=null,x=null,w=null,k=!1,T=Promise.resolve();const D=[],N=ol(t),L=N.slice(0,Math.min(N.length,80));r.update(()=>{const E=p.$getRoot(),M=e.pendingRangeRef.current;e.pendingRangeRef.current=null;let O=!1;if(M){const I=(M.insertedTopLevelKeys||[]).map(_=>{const R=p.$getNodeByKey(_);return(R==null?void 0:R.getTopLevelElement())??R??null}).filter(_=>!!(_&&_.isAttached()));if(I.length>0){const[_,...R]=I;x=_,w=_.getKey(),k=!0,O=!0,R.forEach(j=>{j.isAttached()&&j.remove()})}if(!x&&T1(M)){const R=p.$getSelection();p.$isRangeSelection(R)&&R.removeText()}const F=M.anchorTopKey?p.$getNodeByKey(M.anchorTopKey):null;if(F&&F.isAttached()){if(!x){x=F,w=x.getKey();const _=Gt(x.getTextContent());k=M.tracking==="fallback"||L.length>20&&_.includes(L),p.$isElementNode(x)&&M.start.offset===0&&M.end.key===M.start.key&&x.clear()}}else{const _=p.$getSelection(),R=_==null?void 0:_.getNodes()[0];if(x=(R==null?void 0:R.getTopLevelElement())??null,w=(x==null?void 0:x.getKey())??null,x){const j=Gt(x.getTextContent());k=L.length>20&&j.includes(L)}}b=x??E.getLastChild()}else{const I=p.$getSelection();p.$isRangeSelection(I)&&I.removeText();const F=I==null?void 0:I.getNodes()[0];if(x=(F==null?void 0:F.getTopLevelElement())??null,w=(x==null?void 0:x.getKey())??null,x){const _=Gt(x.getTextContent());k=L.length>20&&_.includes(L)}else if(L.length>20){const _=E.getChildren().find(R=>Gt(R.getTextContent()).includes(L))??null;_&&(x=_,w=_.getKey(),k=!0)}b=x??E.getLastChild()}if((M==null?void 0:M.tracking)==="fallback"&&x&&x.isAttached()){const I=x.getTopLevelElement()??x,F=E.getChildren(),_=F.findIndex(R=>R.getKey()===I.getKey());if(_>=0){const R=Gt(t);let j=Gt(I.getTextContent());const K=[];if(j&&R.startsWith(j))for(let W=_+1;W<F.length;W+=1){const B=F[W],H=Gt(B.getTextContent());if(!H)continue;const Q=Gt(`${j} ${H}`);if(R.startsWith(Q)){K.push(B),j=Q;continue}break}K.length>0&&K.forEach(W=>{W.isAttached()&&W.remove()})}}if((M==null?void 0:M.tracking)==="fallback"&&L.length>20&&x&&x.isAttached()){const I=x.getTopLevelElement()??x,F=E.getChildren(),_=F.findIndex(R=>R.getKey()===I.getKey());if(_>0){const R=F.slice(0,_),j=Gt(t);let K=R.findIndex(W=>Gt(W.getTextContent()).includes(L));if(K<0&&R.length>0){const W=Gt(R[0].getTextContent());W&&j.startsWith(W)&&(K=0)}if(K>=0){const W=[];let B="";for(let H=K;H<R.length;H+=1){const Q=Gt(R[H].getTextContent()),ee=Gt(`${B} ${Q}`);if(j.startsWith(ee)||j.includes(ee)){W.push(R[H]),B=ee;continue}break}W.length>0&&W.forEach(H=>{H.isAttached()&&H.remove()})}}}O&&x&&x.isAttached()&&(p.$isElementNode(x)?x.clear():p.$isTextNode(x)&&x.setTextContent(""))}),di(!0),j1(t,e.pendingLinksRef.current,e.pendingRichElementsRef.current,E=>{Dc(Rs.then(async()=>{const M=[],O=[],I=[];let F=y===0;if(r.update(()=>{F&&k&&x&&x.isAttached()&&x.getTextContent().trim()!==""&&(p.$isElementNode(x)?x.clear():p.$isTextNode(x)&&x.setTextContent(""));for(const _ of E)try{const R=p.$parseSerializedNode(_);if(F&&x&&x.isAttached()&&x.getTextContent().trim()==="")x.replace(R),b=R,x=null,F=!1;else{const W=b?b.getTopLevelElement()??b:null;W&&W.isAttached()?W.insertAfter(R):p.$getRoot().append(R),b=R,F=!1}y++;const j=R.getKey();M.push(j);const K=Oc(R);if(K)I.push(K);else{const W=ah(R);O.push(...W)}}catch{}p.$getRoot().selectEnd()},{discrete:!0}),D.push(...M),await new Promise(_=>requestAnimationFrame(_)),await new Promise(_=>requestAnimationFrame(_)),M.length>0){const _=M[0],R=r.getElementByKey(_);R&&R.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}for(const _ of I)await Pc(r,_);for(const _ of O)await lh(r,_)})),T=Rs},async E=>{await T,Ic(),r.update(()=>{var I,F;let M=!1;if(L.length>20&&D.length>0){const _=p.$getRoot(),R=(I=D.map(j=>{const K=p.$getNodeByKey(j);return(K==null?void 0:K.getTopLevelElement())??K??null}).find(Boolean))==null?void 0:I.getKey();if(R){const j=_.getChildren(),K=j.findIndex(W=>W.getKey()===R);if(K>0){const W=j.slice(0,K),B=Gt(t);let H=W.findIndex(Q=>Gt(Q.getTextContent()).includes(L));if(H<0&&W.length>0){const Q=Gt(W[0].getTextContent());Q&&B.startsWith(Q)&&(H=0)}if(H>=0){const Q=[];let ee="";for(let ae=H;ae<W.length;ae++){const pe=Gt(W[ae].getTextContent()),Le=Gt(`${ee} ${pe}`);if(B.startsWith(Le)||B.includes(Le)){Q.push(W[ae]),ee=Le;continue}break}Q.forEach(ae=>{ae.isAttached()&&ae.remove()}),M=!0}}}}const O=w?((F=p.$getNodeByKey(w))==null?void 0:F.getTopLevelElement())??p.$getNodeByKey(w):null;if(!M&&O&&O.isAttached()&&y>0&&k){O.remove();return}O&&O.isAttached()&&O.getTextContent().trim()===""&&p.$getRoot().getChildrenSize()>1&&O.remove()}),Go({choice:"ai",textLength:t.length,segmentCount:y,processingTimeMs:performance.now()-c,wasTruncated:E}),l==null||l("smart_paste_processing_completed",{choice:"ai",processingTimeMs:Math.round(performance.now()-c),segmentCount:y}),di(!1),e.setIsProcessing(!1),e.setPopupMode("confirm"),l==null||l("smart_paste_popup_shown",{mode:"confirm"})},E=>{const M=(E==null?void 0:E.error)??"AI stream failed";Go({choice:"ai",textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-c,fallback:!0,fallbackReason:M}),l==null||l("smart_paste_processing_failed",{choice:"ai",fallbackReason:M}),di(!1),e.setIsProcessing(!1),ch(r,e.preAIEditorStateRef,()=>lc(e),e.t,E)});return}if(o){const y=e.pendingRangeRef.current;e.pendingRangeRef.current=null;const b=await Pb(t,o,e.pendingRichElementsRef.current);QL(r,b,y,t),Go({choice:"ai",textLength:t.length,segmentCount:b.length,processingTimeMs:performance.now()-c}),l==null||l("smart_paste_processing_completed",{choice:"ai",processingTimeMs:Math.round(performance.now()-c),segmentCount:b.length}),e.setIsProcessing(!1),e.setPopupMode("confirm"),l==null||l("smart_paste_popup_shown",{mode:"confirm"});return}}const d=e.pendingRangeRef.current;e.pendingRangeRef.current=null;const f=iN(t);qL(f,t).valid?(oN(r,f,d,t),Go({choice:"rules",textLength:t.length,segmentCount:f.length,processingTimeMs:performance.now()-c}),l==null||l("smart_paste_processing_completed",{choice:"rules",processingTimeMs:Math.round(performance.now()-c),segmentCount:f.length})):(Go({choice:"rules",textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-c,fallback:!0,fallbackReason:"Validation failed for rules engine"}),l==null||l("smart_paste_processing_failed",{choice:"rules",fallbackReason:"Validation failed for rules engine"}))}catch(d){const f=`Error: ${d instanceof Error?d.message:String(d)}`;Go({choice:n,textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-c,fallback:!0,fallbackReason:f}),l==null||l("smart_paste_processing_failed",{choice:n,fallbackReason:f})}finally{n!=="ai"&&(e.setIsProcessing(!1),lc(e))}}m.createContext(null);const dN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},fN=m.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t,absoluteStrokeWidth:r=!1,className:o="",altIcon:s,showAlt:l=!1,icon:c,primaryColor:d,secondaryColor:f,disableSecondaryOpacity:h=!1,...g},C)=>{const y=t!==void 0?r?Number(t)*24/Number(n):t:void 0,b=y!==void 0?{strokeWidth:y,stroke:"currentColor"}:{},x={ref:C,...dN,width:n,height:n,color:d||e,className:o,...b,...g},k=[...l&&s?s:c].sort(([,T],[,D])=>{const N=T.opacity!==void 0;return D.opacity!==void 0?1:N?-1:0}).map(([T,D])=>{const N=D.opacity!==void 0,L=N&&!h?D.opacity:void 0,E=f?{...D.stroke!==void 0?{stroke:N?f:d||e}:{fill:N?f:d||e}}:{};return m.createElement(T,{...D,...b,...E,opacity:L,key:D.key})});return m.createElement("svg",x,k)});fN.displayName="HugeiconsIcon";p.createCommand("INSERT_VIDEO_COMMAND");p.createCommand("UPLOAD_VIDEO_COMMAND");function hN(e,n=!1){const t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);if(t&&t[2].length===11)return{platform:"youtube",id:t[2]};const r=e.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/);if(r){const c=r[1]||r[3],d=r[2]||r[4];return{platform:"vk",id:`${c}-${d}`}}const o=e.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/);if(o)return{platform:"rutube",id:o[1]};if(e==="upload")return{platform:"upload",id:null};if(n)return{platform:"link",id:e};const s=e.match(/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/i);if(s)return{platform:"download",id:s[1]};const l=e.split("/").pop();return l?{platform:"download",id:l}:{platform:"unknown",id:null}}const pN=[{value:"en",label:"English"},{value:"es",label:"Español"},{value:"fr",label:"Français"},{value:"de",label:"Deutsch"},{value:"it",label:"Italiano"},{value:"pt",label:"Português"},{value:"ru",label:"Русский"},{value:"uk",label:"Українська"},{value:"pl",label:"Polski"},{value:"nl",label:"Nederlands"},{value:"sv",label:"Svenska"},{value:"no",label:"Norsk"},{value:"da",label:"Dansk"},{value:"fi",label:"Suomi"},{value:"tr",label:"Türkçe"},{value:"ar",label:"العربية"},{value:"he",label:"עברית"},{value:"hi",label:"हिन्दी"},{value:"ja",label:"日本語"},{value:"ko",label:"한국어"},{value:"zh",label:"中文"},{value:"ro",label:"Română"}];pN.reduce((e,n)=>(e[n.value]=n.label,e),{});function mN(e){var r,o;let n=e.previousSibling;for(;n;){const s=(r=n.textContent)==null?void 0:r.trim();if(s)return s;n=n.previousSibling}let t=e.parentElement;for(;t&&t!==t.ownerDocument.body;){let s=t.previousElementSibling;for(;s;){const l=(o=s.textContent)==null?void 0:o.trim();if(l)return l;s=s.previousElementSibling}t=t.parentElement}return""}function gN(e){if(!e)return[];try{const t=new DOMParser().parseFromString(e,"text/html"),r=[];return t.querySelectorAll("img, iframe").forEach(o=>{const s=mN(o);if(o.tagName==="IMG"){const l=o,c=l.src;if(!c||c.startsWith("file:///")||c===window.location.href)return;r.push({kind:"image",src:c,altText:l.alt||"",width:l.getAttribute("width")||void 0,height:l.getAttribute("height")||void 0,anchorText:s});return}if(o.tagName==="IFRAME"){const l=o,c=l.getAttribute("src")||"";if(!c)return;const d=l.getAttribute("width")||void 0,f=l.getAttribute("height")||void 0,h=hN(c);if(h.id&&h.platform!=="download"&&h.platform!=="upload"&&h.platform!=="unknown"&&h.platform!=="link"){r.push({kind:"video",src:c,platform:h.platform,mediaId:h.id,width:d,height:f,anchorText:s});return}const g=ub(c);g.id&&g.platform!=="unknown"&&r.push({kind:"embed",src:c,platform:g.platform,mediaId:g.id,width:d,height:f,anchorText:s})}}),r}catch{return[]}}function CN(e){if(!e)return[];try{const r=new DOMParser().parseFromString(e,"text/html").querySelectorAll("a[href]"),o=[];return r.forEach(s=>{var d;const l=(d=s.textContent)==null?void 0:d.trim(),c=s.getAttribute("href");l&&c&&o.push({text:l,url:c})}),o}catch{return[]}}function AN(){const[e]=it.useLexicalComposerContext(),{fetchSmartPastePrompt:n,onTrack:t}=m.useContext(ut),{t:r}=Ze.useTranslation(),o=!0,s=m.useRef(null);m.useEffect(()=>{CL(),mL().then(ee=>{s.current=ee.smartPasteEnabled}).catch(()=>{s.current=!0})},[]);const[l,c]=m.useState(null),[d,f]=m.useState(""),[h,g]=m.useState(!1),[C,y]=m.useState(null),b=m.useRef(null),x=m.useRef([]),w=m.useRef([]),k=m.useRef(null),T=m.useRef(null),D=m.useRef([]),N=m.useRef(!1),L=m.useCallback(()=>{b.current=null,f(""),x.current=[],w.current=[],k.current=null,T.current=null,D.current=[]},[]),E=m.useCallback(()=>({editor:e,fetchSmartPastePrompt:n,serverStreamAvailable:o,onTrack:t,pendingLinksRef:x,pendingRichElementsRef:w,pendingRangeRef:k,pendingClassificationRef:T,pendingInsertedKeysRef:D,preAIEditorStateRef:b,setPendingText:f,setIsProcessing:g,setPopupMode:c,t:r}),[e,n,o,t,r]),M=m.useCallback((ee,ae)=>{uN(E(),ee,ae)},[E]),O=m.useCallback(()=>{var Le;const ee=Se=>{let we=e.getElementByKey(Se);return we||e.read(()=>{var Z;const de=p.$getNodeByKey(Se),ne=(Z=de==null?void 0:de.getTopLevelElement)==null?void 0:Z.call(de);ne&&(we=e.getElementByKey(ne.getKey()))}),we},ae=D.current.at(-1)??((Le=k.current)==null?void 0:Le.end.key);if(ae){const Se=ee(ae);if(Se)return Se}let pe=null;return e.read(()=>{const Se=p.$getRoot().getChildren();for(let we=Se.length-1;we>=0;we--){const de=e.getElementByKey(Se[we].getKey());if(de){pe=de;break}}}),pe},[e]),I=m.useCallback(()=>{const ee=O();ee&&ee.scrollIntoView({block:"end",inline:"nearest"})},[O]),F=m.useCallback(()=>{const ee=O();if(ee){const Le=ee.getBoundingClientRect();return{left:Le.left,top:Le.bottom}}const ae=window.getSelection();if(ae&&ae.rangeCount>0){const Le=ae.getRangeAt(0).getBoundingClientRect();if(Le.width||Le.height)return{left:Le.left,top:Le.bottom}}const pe=e.getRootElement();if(pe){const Le=pe.getBoundingClientRect();return{left:Le.left,top:Le.bottom}}return{left:100,top:100}},[e,O]),_=m.useCallback(()=>{const ee=F();y(ee),c("choose"),t==null||t("smart_paste_popup_shown",{mode:"choose"}),requestAnimationFrame(()=>{const ae=F();y(ae)})},[F,t]);m.useEffect(()=>{const ee=e.registerCommand(p.PASTE_COMMAND,ae=>{var le,se,Y,oe,$;if(!s.current||(le=ae.clipboardData)!=null&&le.files&&ae.clipboardData.files.length>0)return!1;const pe=(se=ae.clipboardData)==null?void 0:se.getData("application/x-lexical-editor");if(pe){try{const J=JSON.parse(pe),q=J.nodes??J;if(Array.isArray(q)&&q.length>0){const re=B0(q);if(!re.hasParagraphRuns||!re.hasStructuralSignals)return!1;ae.preventDefault();const he=[];e.update(()=>{const De=p.$getSelection();p.$isRangeSelection(De)&&De.removeText();for(const Ee of q)try{const Pe=p.$parseSerializedNode(Ee);p.$getRoot().append(Pe),he.push(Pe.getKey())}catch{}},{discrete:!0}),T.current=re,D.current=he;const ke=((Y=ae.clipboardData)==null?void 0:Y.getData("text/plain"))||"";return f(ke||q.map(De=>Ni(De)).join(`
|
|
196
|
-
`)),I(),_(),!0}}catch{}return!1}const Le=p.$getSelection();if(p.$isRangeSelection(Le)){const J=Le.anchor.getNode();if(be.$findMatchingParent(J,re=>Ut.$isCodeNode(re)||gn(re))!==null)return!1}const Se=((oe=ae.clipboardData)==null?void 0:oe.getData("text/plain"))||"";if(!Se.trim())return!1;const we=Se.trim(),de=we.split(`
|
|
197
|
-
`).filter(J=>J.trim()).length;if(we.length<Sb&&de<AL)return!1;const ne=(($=ae.clipboardData)==null?void 0:$.getData("text/html"))||"";x.current=CN(ne),w.current=gN(ne),ae.preventDefault();try{const J=yL(e,Se,ne);if(J){if(k.current=J,ne&&J.insertedTopLevelKeys&&J.insertedTopLevelKeys.length>0&&(n||o))try{let q=[];for(const re of J.insertedTopLevelKeys){const he=p.$getNodeByKey(re);he&&q.push(L1(he))}if(q.length>0){const re=B0(q);re.hasParagraphRuns&&(T.current=re,D.current=[...J.insertedTopLevelKeys])}}catch{}}else{const q=Mb(e,Se);k.current=q}}catch{}f(Se),I();let Z=null;try{const J=localStorage.getItem(O0);J==="ai"||J==="plain"?Z=J:J==="rules"&&localStorage.removeItem(O0)}catch{}const ce=Se.length>Li;return Z&&!(Z==="ai"&&ce)?(Z==="ai"&&(b.current=e.getEditorState().clone(),g(!0)),M(Z,Se),!0):(_(),!0)},p.COMMAND_PRIORITY_HIGH);return()=>{ee(),x.current=[],k.current=null,T.current=null,D.current=[]}},[e,n,o,M,_,I]),m.useEffect(()=>{if(l!=="confirm")return;const ee=F();y(ee),requestAnimationFrame(()=>{y(F())})},[e,l,F]),m.useEffect(()=>{if(!l||h)return;const ee=e.registerCommand(p.KEY_DOWN_COMMAND,ae=>(ae.defaultPrevented||ae.ctrlKey||ae.metaKey||ae.altKey||!(ae.isComposing||ae.key.length===1||ae.key==="Enter"||ae.key==="Backspace"||ae.key==="Delete"||ae.key==="Tab")||(c(null),L()),!1),p.COMMAND_PRIORITY_HIGH);return()=>{ee()}},[e,h,l,L]);const R=m.useCallback(()=>{if(!h){if(N.current){N.current=!1;return}t==null||t("smart_paste_popup_dismissed",{mode:l}),c(null),L()}},[h,l,t,L]),j=m.useCallback(()=>{d&&(N.current=!0,t==null||t("smart_paste_choice_made",{choice:"ai"}),b.current=e.getEditorState().clone(),g(!0),c(null),M("ai",d))},[e,d,M,t]),K=m.useCallback(()=>{N.current=!0,t==null||t("smart_paste_choice_made",{choice:"plain"}),c(null),M("plain",d)},[d,M,t]),W=m.useCallback(()=>{t==null||t("smart_paste_choice_made",{choice:"disabled"}),s.current=!1,gL({smartPasteEnabled:!1}).catch(()=>{}),K()},[K,t]),B=m.useCallback(()=>{Mt.isFeatureRated(P0)||Mt.showFeatureFeedback({feature:P0,title:r("editor.smartPaste.feedbackTitle"),delay:5})},[r]),H=m.useCallback(()=>{N.current=!0,t==null||t("smart_paste_result_accepted"),c(null),L(),B()},[L,t,B]),Q=m.useCallback(()=>{N.current=!0,t==null||t("smart_paste_result_discarded");const ee=b.current;ee&&e.setEditorState(ee),c(null),L(),B()},[e,L,t,B]);return{popupMode:l,isProcessing:h,anchorPosition:C,excessChars:Math.max(0,d.length-Li),onClose:R,onApply:j,onDismiss:K,onDontShowAgain:W,onAccept:H,onDiscard:Q}}function bN({visible:e,containerSelector:n}){const[t]=it.useLexicalComposerContext(),[r,o]=m.useState(null);return m.useEffect(()=>{if(!e){o(null);return}const s=t.getRootElement();if(!s)return;const l=h=>s.closest(h)??document.querySelector(h),c=n&&l(n)||l(".editor-scroller");if(!c)return;const d=()=>o(c.getBoundingClientRect());d();const f=new ResizeObserver(d);return f.observe(c),window.addEventListener("scroll",d,!0),window.addEventListener("resize",d),()=>{f.disconnect(),window.removeEventListener("scroll",d,!0),window.removeEventListener("resize",d)}},[t,e,n]),!e||!r?null:i.jsxs("div",{className:"smart-paste-gradient-border",style:{left:r.left,top:r.top,width:r.width,height:r.height},children:[i.jsx("div",{className:"smart-paste-border"}),i.jsx("div",{className:"smart-paste-glow"})]})}const yN=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:[i.jsx("path",{d:"M13.666 2.5L13.666 3.51302C13.666 5.77556 13.6666 6.18491 13.5026 7.53646C13.3375 8.8974 12.9983 9.93817 12.2617 10.7546C11.5184 11.5783 10.5594 11.9646 9.30794 12.151C8.07654 12.3345 6.4926 12.3333 4.45508 12.3333L3.83268 12.3333C3.55654 12.3333 3.33268 12.1095 3.33268 11.8333C3.33268 11.5572 3.55654 11.3333 3.83268 11.3333L4.45508 11.3333C6.52366 11.3333 8.0195 11.332 9.16016 11.1621C10.2807 10.9952 10.9866 10.6745 11.5189 10.0846C12.0578 9.48738 12.3566 8.68359 12.5104 7.41602C12.6654 6.13877 12.666 5.80113 12.666 3.51302L12.666 2.5C12.666 2.22386 12.8899 2 13.166 2C13.4422 2 13.666 2.22386 13.666 2.5Z",fill:"#868E96"}),i.jsx("path",{d:"M5.52484 14.1817C5.33243 14.3796 5.01583 14.3843 4.8178 14.1921C4.74012 14.1166 4.58915 13.996 4.37379 13.8268C4.16984 13.6666 3.9241 13.475 3.69085 13.2774C3.45977 13.0815 3.22345 12.8651 3.04111 12.6511C2.94976 12.5438 2.86148 12.4255 2.79437 12.3001C2.72937 12.1787 2.66611 12.0172 2.66611 11.8333C2.66611 11.6495 2.72937 11.488 2.79437 11.3666C2.86148 11.2412 2.94976 11.1229 3.04111 11.0156C3.22345 10.8016 3.45977 10.5852 3.69085 10.3893C3.9241 10.1917 4.16984 10.0001 4.37379 9.83986C4.58915 9.6707 4.74012 9.55014 4.81781 9.47462C5.01583 9.28235 5.33243 9.2871 5.52484 9.48504C5.71711 9.68306 5.71236 9.99966 5.51442 10.1921C5.38982 10.3131 5.18909 10.4712 4.99163 10.6263C4.78276 10.7904 4.55337 10.9693 4.33734 11.1524C4.11917 11.3372 3.93152 11.5122 3.80218 11.6641C3.74074 11.7362 3.70275 11.7931 3.68044 11.8333C3.70275 11.8736 3.74074 11.9305 3.80218 12.0026C3.93152 12.1545 4.11917 12.3295 4.33734 12.5143C4.55337 12.6974 4.78276 12.8763 4.99163 13.0404C5.18909 13.1955 5.38982 13.3535 5.51442 13.4746C5.71236 13.667 5.71711 13.9836 5.52484 14.1817Z",fill:"#868E96"})]}),xN=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:[i.jsx("path",{d:"M9.65765 4.62598C9.99776 4.45762 10.3977 4.45755 10.7377 4.62598C10.9348 4.72374 11.1005 4.89892 11.267 5.06543C11.4128 5.2112 11.5652 5.35646 11.6664 5.52246L11.7065 5.5957L11.7621 5.72559C11.8727 6.03457 11.8539 6.37814 11.7065 6.67578C11.6331 6.82375 11.5161 6.95393 11.392 7.08008L4.07952 14.3926C3.95337 14.5167 3.82318 14.6337 3.67523 14.707C3.33507 14.8755 2.93529 14.8755 2.59515 14.707C2.39802 14.6093 2.23243 14.4341 2.06585 14.2676C1.89922 14.1009 1.72419 13.9346 1.6264 13.7373C1.45793 13.3971 1.45781 12.9974 1.6264 12.6572C1.6998 12.5094 1.81686 12.3789 1.94085 12.2529L9.25335 4.94043C9.37936 4.81646 9.50975 4.69929 9.65765 4.62598ZM2.77288 12.835C2.67136 12.9365 2.60954 12.9989 2.56585 13.0479C2.53594 13.0814 2.52559 13.0972 2.52288 13.1016C2.49294 13.162 2.49288 13.2334 2.52288 13.2939C2.52568 13.2985 2.53592 13.3151 2.56585 13.3486C2.60957 13.3976 2.6715 13.4591 2.77288 13.5605C2.87416 13.6618 2.93591 13.7229 2.9848 13.7666C3.01794 13.7962 3.03379 13.8076 3.03851 13.8105C3.08378 13.833 3.13577 13.8383 3.18402 13.8271L3.23187 13.8105C3.23651 13.8076 3.2523 13.7963 3.28558 13.7666C3.33446 13.7229 3.39622 13.6618 3.49749 13.5605L8.6264 8.43262L7.90081 7.70703L2.77288 12.835ZM12.9994 7.83301C13.2087 7.83301 13.3956 7.96395 13.4682 8.16016L13.5414 8.3584C13.5924 8.4961 13.6216 8.57182 13.6469 8.62598C13.6684 8.67195 13.6739 8.67346 13.6664 8.66602L13.7065 8.68652C13.7606 8.7118 13.8363 8.74001 13.9741 8.79102L14.1723 8.86426C14.3684 8.93682 14.4993 9.1239 14.4994 9.33301C14.4994 9.54224 14.3685 9.72916 14.1723 9.80176L13.9741 9.87598C13.8363 9.92696 13.7606 9.9552 13.7065 9.98047L13.6664 10.001C13.6739 9.99355 13.6683 9.99439 13.6469 10.04C13.6216 10.0942 13.5924 10.1698 13.5414 10.3076L13.4682 10.5068C13.3955 10.7029 13.2086 10.833 12.9994 10.833C12.7904 10.8329 12.6033 10.7029 12.5307 10.5068L12.4575 10.3076C12.4065 10.1699 12.3773 10.0942 12.352 10.04L12.3325 10.001C12.3396 10.008 12.3379 10.0017 12.2924 9.98047C12.2383 9.9552 12.1626 9.92698 12.0248 9.87598L11.8266 9.80176C11.6304 9.72916 11.4994 9.54224 11.4994 9.33301C11.4996 9.1239 11.6305 8.93682 11.8266 8.86426L12.0248 8.79102C12.1625 8.74006 12.2383 8.71178 12.2924 8.68652C12.3382 8.66513 12.3398 8.6587 12.3325 8.66602L12.352 8.62598C12.3773 8.57181 12.4064 8.49621 12.4575 8.3584L12.5307 8.16016L12.5629 8.08887C12.6503 7.93274 12.8166 7.83307 12.9994 7.83301ZM10.2465 5.50586C10.1981 5.49453 10.1464 5.49996 10.101 5.52246C10.0969 5.52496 10.0815 5.53587 10.0473 5.56641C9.99843 5.61004 9.93666 5.67117 9.83538 5.77246L8.60784 7L9.33343 7.72559L10.56 6.49805C10.6615 6.39655 10.7233 6.33507 10.767 6.28613C10.7974 6.25207 10.8074 6.23564 10.81 6.23145L10.8276 6.18457C10.8387 6.13639 10.8323 6.08527 10.81 6.04004V6.03906C10.8071 6.03443 10.7964 6.01834 10.767 5.98535C10.7233 5.93641 10.6615 5.87393 10.56 5.77246C10.4587 5.67122 10.397 5.61008 10.3481 5.56641C10.3131 5.53521 10.2971 5.5248 10.2934 5.52246L10.2465 5.50586ZM6.99945 1.16699C7.20857 1.16699 7.39551 1.29711 7.4682 1.49316L7.54144 1.69238C7.59245 1.83019 7.62163 1.90582 7.64691 1.95996C7.66825 2.00558 7.67386 2.00645 7.66644 1.99902C7.65945 1.99221 7.66154 1.99853 7.70648 2.01953C7.76059 2.04479 7.83634 2.07306 7.97405 2.12402L8.17327 2.19824C8.36931 2.27094 8.49945 2.45789 8.49945 2.66699C8.49931 2.87596 8.36921 3.06309 8.17327 3.13574L7.97405 3.20898C7.83627 3.25997 7.7606 3.28821 7.70648 3.31348C7.66107 3.33469 7.65925 3.34106 7.66644 3.33398C7.67388 3.32654 7.66837 3.32808 7.64691 3.37402C7.62165 3.42816 7.59241 3.50389 7.54144 3.6416L7.4682 3.83984C7.39559 4.03606 7.20867 4.16699 6.99945 4.16699C6.79027 4.16692 6.60327 4.03604 6.5307 3.83984L6.45745 3.6416C6.40644 3.50378 6.37726 3.42817 6.35198 3.37402C6.33052 3.32808 6.32501 3.32654 6.33245 3.33398C6.3398 3.3413 6.33815 3.33485 6.29241 3.31348C6.2383 3.28824 6.16249 3.25992 6.02484 3.20898L5.82562 3.13574C5.62971 3.06308 5.49958 2.87595 5.49945 2.66699C5.49945 2.45798 5.62972 2.271 5.82562 2.19824L6.02484 2.12402C6.1626 2.07305 6.23829 2.04478 6.29241 2.01953C6.33781 1.99832 6.33962 1.99197 6.33245 1.99902C6.32504 2.00644 6.33069 2.00546 6.35198 1.95996C6.37725 1.90584 6.40647 1.83012 6.45745 1.69238L6.5307 1.49316L6.56292 1.42285C6.65022 1.26655 6.81646 1.16705 6.99945 1.16699ZM12.9994 1.16699C13.2086 1.16699 13.3955 1.29711 13.4682 1.49316L13.5414 1.69238C13.5924 1.83019 13.6216 1.90582 13.6469 1.95996C13.6682 2.00558 13.6739 2.00645 13.6664 1.99902C13.6595 1.99221 13.6615 1.99853 13.7065 2.01953C13.7606 2.04479 13.8363 2.07306 13.9741 2.12402L14.1733 2.19824C14.3693 2.27094 14.4994 2.45789 14.4994 2.66699C14.4993 2.87596 14.3692 3.06309 14.1733 3.13574L13.9741 3.20898C13.8363 3.25997 13.7606 3.28821 13.7065 3.31348C13.6611 3.33469 13.6593 3.34106 13.6664 3.33398C13.6739 3.32654 13.6684 3.32808 13.6469 3.37402C13.6216 3.42816 13.5924 3.50389 13.5414 3.6416L13.4682 3.83984C13.3956 4.03606 13.2087 4.16699 12.9994 4.16699C12.7903 4.16692 12.6033 4.03604 12.5307 3.83984L12.4575 3.6416C12.4064 3.50378 12.3773 3.42817 12.352 3.37402C12.3305 3.32808 12.325 3.32654 12.3325 3.33398C12.3398 3.3413 12.3382 3.33485 12.2924 3.31348C12.2383 3.28824 12.1625 3.25992 12.0248 3.20898L11.8256 3.13574C11.6297 3.06308 11.4996 2.87595 11.4994 2.66699C11.4994 2.45798 11.6297 2.271 11.8256 2.19824L12.0248 2.12402C12.1626 2.07305 12.2383 2.04479 12.2924 2.01953C12.3378 1.99831 12.3396 1.99194 12.3325 1.99902C12.325 2.00644 12.3307 2.00546 12.352 1.95996C12.3773 1.90584 12.4065 1.83012 12.4575 1.69238L12.5307 1.49316L12.5629 1.42285C12.6502 1.26655 12.8165 1.16705 12.9994 1.16699Z",fill:"url(#smartPasteAiGrad)"}),i.jsx("defs",{children:i.jsxs("linearGradient",{id:"smartPasteAiGrad",x1:"1.5",y1:"8.00019",x2:"14.4994",y2:"8.00019",gradientUnits:"userSpaceOnUse",children:[i.jsx("stop",{stopColor:"#BE4BDB"}),i.jsx("stop",{offset:"0.360577",stopColor:"#E64980"}),i.jsx("stop",{offset:"0.990385",stopColor:"#FAB005"})]})})]});function vN({mode:e,anchorPosition:n,excessChars:t=0,onClose:r,onApply:o,onDismiss:s,onDontShowAgain:l,onAccept:c,onDiscard:d}){const{t:f}=Ze.useTranslation(),h=t>0,g=i.jsx(v.Menu.Item,{onClick:h?void 0:o,leftSection:i.jsx(xN,{}),disabled:h,className:"smart-paste-ai-gradient-item",children:i.jsx("span",{className:"smart-paste-ai-gradient",children:f("editor.smartPaste.aiButton")})});return i.jsxs(v.Menu,{opened:e!==null&&n!==null,onClose:r,position:"bottom-start",offset:8,transitionProps:Wn,zIndex:999,shadow:"0px 10px 10px -5px rgba(0,0,0,0.15), 0px 0px 40px 0px rgba(0,0,0,0.1)",radius:12,styles:{dropdown:{minWidth:e==="confirm"?200:176,padding:5},item:{padding:"6px 12px",lineHeight:1.45,height:32},divider:{margin:"3.5px 0"}},children:[i.jsx(v.Menu.Target,{children:i.jsx("div",{style:{position:"fixed",left:(n==null?void 0:n.left)??0,top:(n==null?void 0:n.top)??0,width:10,height:10,background:"transparent",pointerEvents:"none"}})}),i.jsxs(v.Menu.Dropdown,{children:[e==="choose"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{onClick:s,leftSection:i.jsx(yN,{}),children:f("editor.smartPaste.plainButton")}),h?i.jsx(v.Tooltip,{label:f("editor.smartPaste.textTooLong",{max:"10,000",excess:t.toLocaleString()}),position:"left",multiline:!0,maw:250,withArrow:!0,children:g}):g,i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{onClick:l,leftSection:i.jsx(te,{icon:$h,size:16,color:"var(--gray-gray-text, #868E96)"}),style:{color:"var(--gray-gray-text, #868E96)"},children:f("editor.smartPaste.dontShowAgain")})]}),e==="confirm"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{onClick:c,leftSection:i.jsx(te,{icon:tr,size:16}),children:f("editor.smartPaste.accept")}),i.jsx(v.Menu.Item,{onClick:d,leftSection:i.jsx(te,{icon:qh,size:16}),children:f("editor.smartPaste.discard")})]})]})]})}function wN({containerSelector:e}){const n=AN();return i.jsxs(i.Fragment,{children:[i.jsx(bN,{visible:n.isProcessing,containerSelector:e}),i.jsx(vN,{mode:n.popupMode,anchorPosition:n.anchorPosition,excessChars:n.excessChars,onClose:n.onClose,onApply:n.onApply,onDismiss:n.onDismiss,onDontShowAgain:n.onDontShowAgain,onAccept:n.onAccept,onDiscard:n.onDiscard})]})}const kN=1,SN=100;let Bb=0,q0=!1;function EN(e){e.addEventListener("keydown",n=>{n.key==="Tab"&&(n.preventDefault(),Bb=n.timeStamp)},!0)}function MN(e){if(!q0){const n=e.getRootElement();n&&EN(n),q0=!0}return e.registerCommand(p.FOCUS_COMMAND,n=>{const t=p.$getSelection();return p.$isRangeSelection(t)&&Bb+SN>n.timeStamp&&p.$setSelection(t.clone()),!1},kN)}function TN(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>MN(e),[e]),null}function LN(e,n){const t=e.anchor,r=e.focus,s=(r.isBefore(t)?r:t).getNode(),l=be.$getNearestBlockElementAncestorOrThrow(s);if(!n&&l.__prev===null)return!0;l instanceof Dn&&!l.__opened&&l.setOpened(!0);const c=d=>{const f=d.getNextSibling(),h=f==null?void 0:f.getFirstChild();(h==null?void 0:h.__type)==="list"&&h.getChildren().forEach(C=>{C instanceof Dn&&(c(C),C.setIndent(Math.max(0,C.getIndent()-1)))})};return n&&c(l),!1}function NN(e){return e.registerCommand(p.KEY_TAB_COMMAND,n=>{const t=p.$getSelection();if(!p.$isRangeSelection(t))return!1;try{if(LN(t,n.shiftKey))return!1;n.preventDefault();const o=n.shiftKey?p.OUTDENT_CONTENT_COMMAND:p.INDENT_CONTENT_COMMAND;return e.dispatchCommand(o,void 0)}catch{return!1}},p.COMMAND_PRIORITY_EDITOR)}function jN(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>NN(e)),null}const R1=()=>!!document.querySelector(".selected-all-document");function RN(){const[e]=it.useLexicalComposerContext(),{imperativeHandleRef:n}=m.useContext(ut),t=m.useCallback(()=>{const r=Qt(),{lexicalNode:o}=vi(r,e,{"callout-wrapper":!0});return o&&p.$isElementNode(o)&&o.getChildren().length===1&&e.update(()=>{const s=p.$createParagraphNode();s.append(p.$createTextNode(""));const l=o.getParent();l&&(l.replace(s),s.selectStart())}),!1},[e]);m.useEffect(()=>{n!=null&&n.current&&(n.current.onDeleteCallout=t)},[n,t]),m.useEffect(()=>{if(!e.hasNodes([zs,jo,co]))throw new Error("CalloutPlugin: CalloutNode not registered on editor");return be.mergeRegister(e.registerMutationListener(co,r=>{e.getEditorState().read(()=>{for(const[o,s]of r)if(s==="destroyed"){const l=Number(o),c=String(l-1);e.update(()=>{const d=p.$getNodeByKey(c);if(d&&ao(d)){const f=d.getChildren();for(const h of f)d==null||d.insertBefore(h);d.remove()}},{tag:p.HISTORY_MERGE_TAG})}})}),e.registerCommand(Cu,r=>{const{emoji:o,backgroundColor:s,calloutType:l}=ju(r);let c=p.$getSelection();if(p.$isNodeSelection(c)&&(Eu(c),c=p.$getSelection()),!p.$isRangeSelection(c))return!1;const d=GA(c);if(d.length===0)return!1;const f=d[0],h=f.getParent();return ln.$isQuoteNode(f)||h!=null&&ln.$isQuoteNode(h)?(an.$setBlocksType(c,NS(o,s,l),IS),!0):RS(c,o,s,l)},p.COMMAND_PRIORITY_EDITOR),e.registerCommand(p.KEY_DELETE_COMMAND,t,p.COMMAND_PRIORITY_LOW),e.registerCommand(p.CONTROLLED_TEXT_INSERTION_COMMAND,()=>R1()&&e._keyToDOMMap.size>2,p.COMMAND_PRIORITY_LOW),e.registerCommand(p.COPY_COMMAND,r=>{if(!r.clipboardData)return!1;const o=p.$getSelection();if(!p.$isRangeSelection(o))return!1;const s=io(o.anchor.getNode()),l=io(o.focus.getNode());if(!s||!l||s.__key!==l.__key)return!1;const{hasSelectedBlock:c,selectedAllDocument:d}=Jo(),f=u0(o.getTextContent()),h=u0(s.getTextContent());if(!(f===h&&(c||d)))return!1;r.preventDefault();const b=s.__calloutType??"default",x=Ma.$getClipboardDataFromSelection(o)["text/html"],w=s.getTextContent(),k=`<div class="dsd__theme__callout-wrapper" style="background-color: ${s.__backgroundColor}" data-type="${b}">${x}</div>`;return r.clipboardData.setData("text/html",k),r.clipboardData.setData("text/plain",w),!0},p.COMMAND_PRIORITY_LOW))},[e,t])}function IN(){return RN(),null}function I1(e,n){if(!e.parentElement)return null;if(e.parentElement.classList.contains("ContentEditable__root")){let t=[];if(!CSS.supports("selector(:has(*))"))t=e.querySelectorAll("li:has(+ .dsd__theme__nestedListItem)");else{const r=e.querySelectorAll("li");t=Array.from(r).filter(o=>{const s=o.nextElementSibling;return s&&s.classList.contains("dsd__theme__nestedListItem")})}return setTimeout(()=>{for(let r=0;r<t.length;r++){const o=t[r],s=o.nextElementSibling;if(!s)return;let l=!1,c=!0;Array.from(s.querySelectorAll("li:not(.dsd__theme__nestedListItem):not(:has(+ .dsd__theme__nestedListItem))")).forEach(f=>{const h=f.getAttribute("aria-checked");(h===null||h==="false")&&(c=!1),h==="true"&&(l=!0)}),n.update(()=>{const f=p.$getNearestNodeFromDOMNode(o);f instanceof Dn&&(!c&&l?(f.setChecked(!1),f.setIndeterminate(!0)):!l&&!c?(f.setChecked(!1),f.setIndeterminate(!1)):c&&(f.setChecked(!0),f.setIndeterminate(!1)))}),l=!1,c=!0}},0),null}return I1(e.parentElement,n)}const DN=()=>{const e=Qt();if(!e)return!1;try{const n=be.$getNearestBlockElementAncestorOrThrow(e);n instanceof Dn&&!n.__opened&&n.setOpened(!0)}catch{return!1}return!1};function _b(e,n,t=!1){const r=e.target;if(r===null||!be.isHTMLElement(r))return;const o=r.firstChild;if(o!=null&&be.isHTMLElement(o)&&(o.tagName==="UL"||o.tagName==="OL"))return;const s=r.parentNode,l=r.getBoundingClientRect(),c=e.pageX/be.calculateZoomLevel(r);if(s&&c>l.right){if(t){n();return}if(e.target instanceof HTMLElement){const d=p.getNearestEditorFromDOMNode(s);d!=null&&d.update(()=>{const f=p.$getNearestNodeFromDOMNode(s);f instanceof Dn&&f.toggleOpen()})}}!s||s.__lexicalListType!=="check"||(r.dir==="rtl"?c<l.right&&c>l.right-20:c>l.left&&c<l.left+20)&&n()}const ON=du.debounce((e,n)=>{const t=n.getElementByKey(e);t&&I1(t,n)},100);function Q0(e){_b(e,()=>{if(e.target instanceof HTMLElement){const n=e.target,t=p.getNearestEditorFromDOMNode(n);t!=null&&t.isEditable()&&(t.update(()=>{const r=p.$getNearestNodeFromDOMNode(n);if(It(r)&&(r.selectEnd(),r.toggleChecked()),n.getAttribute("data-list")&&n.getAttribute("aria-checked")==="false"&&n.nextElementSibling){Array.from(n.nextElementSibling.querySelectorAll("[aria-checked]")).forEach(o=>{const s=p.$getNearestNodeFromDOMNode(o);s instanceof Dn&&s.setChecked(!0)});return}if(n.getAttribute("data-list")&&n.getAttribute("aria-checked")==="true"&&n.nextElementSibling){Array.from(n.nextElementSibling.querySelectorAll("[aria-checked]")).forEach(o=>{const s=p.$getNearestNodeFromDOMNode(o);s instanceof Dn&&s.setChecked(!1)});return}}),I1(n,t))}})}function J0(e){_b(e,()=>{e.preventDefault()},!0)}function PN(){const[e]=it.useLexicalComposerContext();m.useEffect(()=>{const n=e.registerMutationListener(mr,t=>{for(const[r,o]of t)o==="updated"&&ON(r,e)},{skipInitialization:!0});return()=>{n()}},[e]),m.useEffect(()=>be.mergeRegister(e.registerCommand(s1,()=>(Qf(e,"check"),!0),p.COMMAND_PRIORITY_LOW),e.registerRootListener((n,t)=>{n!==null&&(n.addEventListener("click",Q0),n.addEventListener("pointerdown",J0)),t!==null&&(t.removeEventListener("click",Q0),t.removeEventListener("pointerdown",J0))})),[e])}function BN(){return PN(),null}const $c=p.createCommand("INSERT_EMBED_INTEGRATION_COMMAND ");function _N(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>{if(!e.hasNodes([_i]))throw new Error("EmbedPlugin: EmbedNode not registered on editor");return e.registerCommand($c,n=>{const t=b1("","100%","100%","",!0,n),r=Qt();return r&&r.getParent()&&(r==null||r.replace(t)),!0},p.COMMAND_PRIORITY_EDITOR)},[e]),null}function FN(e){m.useEffect(()=>{const n=e.hasNodes([In,Qr]),t=e.registerNodeTransform(Ii,o=>{if(!n)return;const s=o.getParent();if(!s||wu(s)||o.isInline())return;const l=o.getNextSibling(),c=Ja(o);l?l.insertBefore(c):s.append(c)}),r=n?e.registerNodeTransform(In,o=>{const s=o.getChildren();if(s.some(gn))return;const l=s.some(f=>Oi(f)),c=s.find(Do);if(l||!c)return;const d=Oo();c.insertBefore(d)}):()=>{};return be.mergeRegister(t,r,e.registerCommand(Da,o=>{const s=p.$getSelection();if(!p.$isRangeSelection(s))return!1;if(o==="inline")e.update(()=>{const c=p.$getSelection();if(!p.$isRangeSelection(c))return;const d=c.getTextContent().trim(),f=Na(d,!0);c.insertNodes([f]),setTimeout(()=>{e.dispatchCommand(zc,f.getKey())},0)});else if(n)Bk(e);else return!1;return!0},p.COMMAND_PRIORITY_EDITOR))},[e])}function WN(){const[e]=it.useLexicalComposerContext();return FN(e),null}const zN=()=>{var c;const e=p.$getSelection(),n=e.anchor,t=e.focus,r=n.getNode(),o=t.getNode(),s=(c=r.getParent())==null?void 0:c.getIndexWithinParent();return(o instanceof qn||o.getParent()instanceof qn)&&(s===0||s||-1)&&n.key!==t.key?(e.removeText(),!0):!1};function eu(e){for(;e;){if(as(e))return e;const n=e.getParent();if(!n)break;e=n}return null}const X0=e=>e.replace(/\s+/g," ").trim();function KN(e){const n=e.getTextContent();return`<pre data-highlight-language="${e.__language}" data-language="${e.__language}" data-collapsed="${e.__isCollapsed}"><code>${n}</code></pre>`}function UN(e){const n=p.$getSelection();if(!n||!p.$isRangeSelection(n)||!n.isCollapsed())return!1;const t=n.anchor.getNode(),r=eu(t);if(!r)return!1;const o=r.getChildren().find(gn);return!o||o.getTextContent()!==""?!1:(e.update(()=>{const s=p.$createParagraphNode();r.insertBefore(s),r.remove(),s.selectStart()}),!0)}const HN=e=>{e.update(()=>{let n=p.$getSelection();if(!n||p.$isNodeSelection(n)&&(Eu(n),n=p.$getSelection(),!n))return;if(!p.$isRangeSelection(n)||n.isCollapsed()){an.$setBlocksType(n,()=>Pa(()=>{const s=Uf(!1);return s.setLanguage("plain"),s})());return}const t=n.getTextContent(),r=Pa(()=>{const s=Uf(!1);return s.setLanguage("plain"),s})(),o=r.getChildren().find(s=>gn(s));n.insertNodes([r]),n=p.$getSelection(),p.$isRangeSelection(n)&&o&&gn(o)&&o.append(os(t))})},Fb=p.createCommand("INSERT_CODE_COMMAND");function YN(e){m.useEffect(()=>{const n=e.hasNodes([In,Qr]),t=e.registerNodeTransform(qn,o=>{if(!n)return;const s=o.getParent();if(!s||as(s))return;const l=o.getNextSibling(),c=Ja(o);l?l.insertBefore(c):s.append(c)}),r=n?e.registerNodeTransform(In,o=>{const s=o.getChildren();if(s.some(Do))return;const l=s.some(f=>Oi(f)),c=s.find(gn);if(l||!c)return;const d=Oo();c.insertBefore(d)}):()=>{};return be.mergeRegister(t,r,e.registerCommand(Fb,()=>n?(e.update(()=>{const o=Qt(),s=p.$getRoot();if(o){const l=Pa(()=>{const d=Uf(!1);return d.setLanguage("plain"),d})(),c=l.getLastChild();c&&gn(c)&&c.append(os(o.getTextContent()||"")),o.replace(l),s.getChildrenSize()===1&&l.insertAfter(p.$createParagraphNode())}}),!0):!1,p.COMMAND_PRIORITY_LOW),e.registerCommand(p.KEY_DOWN_COMMAND,o=>{const s=p.$getSelection();let l=null;if(o.shiftKey&&o.code==="Enter"&&p.$isRangeSelection(s)&&(gn(s.anchor.getNode())?l=s.anchor.getNode():Ut.$isCodeHighlightNode(s.anchor.getNode())&&(l=s.anchor.getNode().getParent()),l)){const c=e.registerCommand(p.INSERT_LINE_BREAK_COMMAND,()=>(c(),!0),p.COMMAND_PRIORITY_NORMAL);return e.update(()=>{const d=l==null?void 0:l.getParent(),f=d==null?void 0:d.getNextSibling();f instanceof p.ParagraphNode&&!f.getTextContent()?f.selectStart():d&&d.insertAfter(p.$createParagraphNode()).selectStart()}),!0}return!1},0),e.registerCommand(p.COPY_COMMAND,o=>{if(!o.clipboardData)return!1;const s=p.$getSelection();if(!p.$isRangeSelection(s))return!1;const l=eu(s.anchor.getNode()),c=eu(s.focus.getNode());if(!l||!c||l.getKey()!==c.getKey())return!1;const{hasSelectedBlock:d,selectedAllDocument:f}=Jo(),h=X0(s.getTextContent()),g=l.getChildren().find(gn);if(!g)return!1;const C=X0(g.getTextContent());return h===C&&(d||f)?(o.preventDefault(),o.clipboardData.setData("text/html",KN(g)),o.clipboardData.setData("text/plain",g.getTextContent()),!0):!1},p.COMMAND_PRIORITY_LOW))},[e])}function ZN(){const[e]=it.useLexicalComposerContext();return YN(e),null}const GN=p.createCommand("INSERT_FORM_COMMAND");function VN(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>{if(!e.hasNodes([tl]))throw new Error("FormPlugin: FormNode not registered on editor");return e.registerCommand(GN,n=>{const t=x1(n);return be.$insertNodeToNearestRoot(t),!0},p.COMMAND_PRIORITY_EDITOR)},[e]),null}function qN(e,n){const t=document.createElement("a");t.href=e,t.download=n,t.rel="noopener",document.body.appendChild(t),t.click(),t.remove()}function QN(e){try{const t=new URL(e,window.location.origin).pathname.split("/").pop()||"image";return t.includes(".")?t:`${t}.png`}catch{return"image"}}async function JN(e,n){const t=await fetch(e);if(!t.ok)throw new Error("fetch failed");const r=await t.blob(),o=URL.createObjectURL(r);try{qN(o,n)}finally{setTimeout(()=>URL.revokeObjectURL(o),0)}}const Bu=(e,n,t)=>{const r=e.target;if(r&&(r instanceof HTMLElement||r instanceof SVGElement)){let o=null;const s=r.closest(n);for(const c of t)if(o=r.closest(c),o)break;return{lexicalDOMNode:s,isOutside:!(s||o)}}else return{lexicalDOMNode:null,isOutside:!0}};function Wi(e,n,t){const r=m.useRef(null);return r.current=e,m.useMemo(()=>du.debounce((...o)=>{r.current&&r.current(...o)},n,{maxWait:t}),[n,t])}function $0(e){return e!==null&&"setAlignment"in e&&typeof e.setAlignment=="function"}const D1=({editor:e,nodeKey:n,opened:t,setOpened:r,t:o,setShown:s,flexBorder:l})=>{var C;const[c,d]=m.useState("left");m.useEffect(()=>{if(!n)return;const y=()=>{e.getEditorState().read(()=>{const b=p.$getNodeByKey(n);$0(b)&&d(b.__alignment||"left")})};return y(),e.registerUpdateListener(()=>{y()})},[e,n]);const f=y=>{n&&e.update(()=>{const b=p.$getNodeByKey(n);$0(b)&&(b.setAlignment(y),b.getPreviousSibling()?b.selectPrevious():b.selectStart(),s&&s(!1))})},h=i.jsx("span",{style:{color:"var(--mantine-primary-color-filled)",display:"flex",alignItems:"center"},children:i.jsx(te,{icon:tr,size:16})}),g=[{value:"left",icon:FC,label:o("editor.toolbar.left")},{value:"center",icon:_c,label:o("editor.toolbar.center")},{value:"right",icon:WC,label:o("editor.toolbar.right")}];return i.jsxs(v.Menu,{opened:t,shadow:"md",onChange:r,transitionProps:Wn,children:[i.jsx(v.Menu.Target,{children:i.jsx(Cn,{label:o("editor.toolbar.align"),tooltipDisabled:t,flexBorder:l,icon:((C=g.find(y=>y.value===c))==null?void 0:C.icon)??_c,iconColor:"var(--mantine-color-gray-text)","aria-label":"Alignment"})}),i.jsx(v.Menu.Dropdown,{p:4,children:g.map(y=>i.jsx(v.Menu.Item,{onClick:()=>f(y.value),leftSection:i.jsx("span",{style:{color:"var(--mantine-color-gray-text)",display:"flex",alignItems:"center"},children:i.jsx(te,{icon:y.icon,size:16})}),rightSection:c===y.value?h:void 0,children:y.label},y.value))})]})};function XN({opened:e,onOpenChange:n,t,onDownload:r,onDelete:o}){return i.jsxs(v.Menu,{opened:e,onChange:n,transitionProps:Wn,shadow:"md",position:"bottom-start",offset:4,withinPortal:!0,closeOnItemClick:!0,children:[i.jsx(v.Menu.Target,{children:i.jsx(Cn,{label:t("editor.toolbar.more"),icon:Mr,iconColor:"var(--mantine-color-gray-text)","aria-label":t("editor.toolbar.more")})}),i.jsxs(v.Menu.Dropdown,{p:4,w:164,onMouseDown:s=>s.preventDefault(),children:[i.jsx(v.Menu.Item,{leftSection:i.jsx(v.Flex,{align:"center",justify:"center",c:"gray.6",children:i.jsx(te,{icon:Uh,size:16})}),onClick:s=>{s.stopPropagation(),r()},children:t("editor.gallery.download")}),i.jsx(v.Menu.Item,{color:"red",leftSection:i.jsx(v.Flex,{align:"center",justify:"center",c:"red.6",children:i.jsx(te,{icon:jn,size:16})}),onClick:s=>{s.stopPropagation(),o()},children:t("editor.contextMenu.delete")})]})]})}const $N=({t:e,src:n,setShown:t,id:r})=>{const[o,{open:s,close:l}]=Sn.useDisclosure(!1),c=m.useMemo(()=>[{id:!r||r==="0"?"":r,Url:n??"",contentType:"",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[n,r]),d=f=>{f?s():l()};return i.jsxs(i.Fragment,{children:[i.jsx(Mt.AttachmentsGalleryModal,{opened:o,onOpenChange:d,attachments:c}),i.jsx(Cn,{label:e("editor.image.preview"),icon:O8,iconColor:"var(--mantine-color-gray-text)","aria-label":e("editor.image.preview"),onClick:()=>{t(!1),s()}})]})},e2=8,ej=({anchorElem:e=document.body})=>{var D;const[n]=it.useLexicalComposerContext(),[t,r]=m.useState(!1),[o,s]=m.useState(!1),[l,c]=m.useState(!1),[d,f]=m.useState(null),h=m.useRef(null),[g,C]=m.useState({right:"0",top:"0"}),{t:y}=Ze.useTranslation(),b=Wi(N=>{if(o||N.target instanceof HTMLElement&&N.target.clientWidth<100)return;const{lexicalDOMNode:E,isOutside:M}=Bu(N,"img",["div.media-actions"]);if(M){c(!1);return}if(h.current=E,E){n.update(()=>{const K=p.$getNearestNodeFromDOMNode(E);K&&f({key:K.__key,src:K.__src})});const{y:O,right:I}=e.getBoundingClientRect(),{y:F,right:_}=E.getBoundingClientRect();c(!0);const R=F-O+e2,j=I-_+e2;C(()=>({right:`${j}px`,top:`${R}px`}))}},50,500);m.useEffect(()=>(document.addEventListener("mousemove",b),document.addEventListener("touchstart",b),()=>{c(!1),b.cancel(),document.removeEventListener("mousemove",b),document.removeEventListener("touchstart",b)}),[b]);const x=(N,L)=>{{N();return}},w=m.useCallback(()=>{x(()=>{n.update(()=>{if(!(d!=null&&d.key))return!1;const N=p.$getNodeByKey(d.key);return Ir(N)&&N.remove(),!1})})},[n,d==null?void 0:d.key]),k=m.useCallback(async()=>{const N=d==null?void 0:d.src;if(N)try{await JN(N,QN(N))}catch{}},[d==null?void 0:d.src]),T=l?"auto":"none";return Dr.createPortal(i.jsxs("div",{className:`media-actions ${l?"visible":""}`,style:{right:g.right,top:g.top,pointerEvents:T},children:[i.jsx($N,{setShown:c,t:y,src:d==null?void 0:d.src,id:(D=h.current)==null?void 0:D.getAttribute("data-id")}),!eh&&i.jsx(D1,{opened:t,setOpened:r,t:y,editor:n,nodeKey:d==null?void 0:d.key,setShown:c}),i.jsx(XN,{opened:o,onOpenChange:s,t:y,onDownload:()=>void k(),onDelete:w})]}),e)};function Wb(e,n){var s,l;const t=(s=n.exportDOM)==null?void 0:s.call(n,e),r=(t==null?void 0:t.element)??null;if(p.$isElementNode(n)){const c=r??document.createElement("div"),d=((l=n.getChildren)==null?void 0:l.call(n))??[];for(const f of d){const h=Wb(e,f);if(h)c.appendChild(h);else{const g=typeof f.getTextContent=="function"?f.getTextContent():"";g&&c.appendChild(document.createTextNode(g))}}return typeof(t==null?void 0:t.after)=="function"&&t.after(c),c}if(r)return typeof(t==null?void 0:t.after)=="function"&&t.after(r),r;const o=typeof n.getTextContent=="function"?n.getTextContent():"";return o?document.createTextNode(o):null}function t2(e,n){const t=e.getRootElement(),r=Array.from(t.querySelectorAll(".selected-block"));if(!r.length)return;let o="",s="";e.getEditorState().read(()=>{e.update(()=>{let l=r.map(d=>p.$getNearestNodeFromDOMNode(d)).filter(d=>!!d);o=l.map(d=>typeof d.getTextContent=="function"?d.getTextContent():"").filter(Boolean).join(`
|
|
198
|
-
`);const c=document.createElement("div");l.forEach(d=>{const f=Wb(e,d);n==="cut"&&d.remove(),f&&c.appendChild(f)}),s=c.innerHTML})}),(o||s)&&tj(o,s)}function tj(e,n){const t=o=>{var s,l;(s=o.clipboardData)==null||s.setData("text/plain",e||" "),n&&((l=o.clipboardData)==null||l.setData("text/html",n)),o.preventDefault()},r=document.createElement("textarea");r.value=e||" ",r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.select(),document.addEventListener("copy",t),document.execCommand("copy"),document.removeEventListener("copy",t),document.body.removeChild(r)}const tu=(e,n,t,r)=>{if(t==null)return;const o=typeof t=="string"?t:t.getKey();e.update(()=>{const s=p.$getNodeByKey(o);if(s)if(r==="layout"){const l=s.getParent(),c=l.getParent();Ei(e,l,c),n("delete")}else{const l=s.getParent();if(l instanceof Mn&&l.getChildren().length===2){const c=l,d=l.getParent();if(s.__type==="image"){c.append(p.$createParagraphNode());return}Ei(e,c,d)}gu(e,s),n("delete")}})},nj=e=>{const n=e._rootElement;return Array.from(n.querySelectorAll(".selected-block"))},nu=(e,n,t,r=!1)=>{if(n==null)return;const o=typeof n=="string"?n:n.getKey();e.update(()=>{const s=p.$getNodeByKey(o);if(!s)return;const l=s.getParent();if(!l)return;const c=e.getElementByKey(l.getKey());c&&cE(e,c,t,r)})},O1=(e,n,t,r)=>{if(r==="layout")nu(e,t,"right",!0);else{const o=e._rootElement,s=Array.from(o.querySelectorAll(".selected-block")).reverse();s.length&&(e.update(()=>{const l=p.$getNearestNodeFromDOMNode(s[0]);s.forEach(c=>{let d=p.$getNearestNodeFromDOMNode(c);d&&(l==null||l.insertAfter(Nr(d))),ps(c)})}),n())}},rj=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}],n2=16;function oj({color:e,onChange:n}){const{t}=Ze.useTranslation(),r=e===""?"inherit":e,o=m.useMemo(()=>rj.map(({value:l,nameKey:c,border:d})=>({value:l,label:t(`editor.toolbar.colorPicker.names.${c}`),border:d})),[t]),s=m.useMemo(()=>[{key:"columnBackground",label:t("editor.toolbar.colorPicker.background"),type:"highlight",colors:o,value:r}],[r,t,o]);return i.jsxs(v.Menu,{trigger:"hover",position:"right-start",offset:{mainAxis:10,alignmentAxis:-5},shadow:"md",children:[i.jsx(v.Menu.Target,{children:i.jsx(v.Menu.Item,{leftSection:i.jsx("span",{style:{color:"var(--mantine-color-default-color)",display:"flex",alignItems:"center"},children:i.jsx(te,{icon:rs,size:n2})}),rightSection:i.jsx("span",{style:{color:"var(--mantine-color-default-color)",display:"flex",alignItems:"center"},children:i.jsx(te,{icon:lo,size:n2})}),"data-test-id":"layout-column-color",children:t("editor.column.changeColor")})}),i.jsx(v.Menu.Dropdown,{onMouseDown:l=>l.preventDefault(),style:{width:232},children:i.jsx(Mt.ColorPicker.List,{sections:s,onChange:n})})]})}function sj({editor:e,anchorChildKey:n,layoutColor:t,setLayoutColor:r,disabledMoveColumnButtons:o,duplicateDisabled:s,t:l,onClose:c}){const{onTrack:d}=m.useContext(ut),f=()=>{},h=m.useCallback(C=>{const b=C===(t===""?"inherit":t)?"inherit":C;e.update(()=>{const x=p.$getNodeByKey(n);if(!x)return;const w=x.getParent();w instanceof Mn&&w.setLayoutBackground(b)}),r(b)},[e,n,t,r]),g=()=>{e.update(()=>{const C=p.$getNodeByKey(n);if(!C)return;const y=C.getParent();if(!(y instanceof Mn))return;for(const x of[...y.getChildren()])x.remove();const b=p.$createParagraphNode();y.append(b),y.append(dr()),b.selectStart()})};return i.jsxs(i.Fragment,{children:[i.jsx(oj,{color:t,onChange:h}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{disabled:o.left,onClick:()=>{Si(e,n,"left"),ss(e),c()},leftSection:i.jsx(te,{icon:Wh,size:14,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-move-left",children:l("editor.column.moveLeft")}),i.jsx(v.Menu.Item,{disabled:o.right,onClick:()=>{Si(e,n,"right"),ss(e),c()},leftSection:i.jsx(te,{icon:zh,size:14,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-move-right",children:l("editor.column.moveRight")}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{disabled:s,onClick:()=>{d==null||d("block_duplicated"),O1(e,f,n,"layout"),c()},leftSection:i.jsx(te,{icon:uo,size:16,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-duplicate",children:l("editor.column.duplicate")}),i.jsx(v.Menu.Item,{onClick:()=>{g(),c()},leftSection:i.jsx(te,{icon:Xh,size:16,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-clear-content",children:l("editor.column.clearContent")}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{onClick:()=>{d==null||d("block_deleted"),tu(e,f,n,"layout"),c()},color:"var(--mantine-color-red-6)",leftSection:i.jsx(te,{icon:jn,size:16}),"data-test-id":"layout-column-menu-delete",children:l("editor.column.deleteColumn")})]})}const ii="#ced4da0d",ij=[{value:"inherit",nameKey:"default"},{value:"#9775FA",nameKey:"violet"},{value:"#748FFC",nameKey:"indigo"},{value:"#4DABF7",nameKey:"blue"},{value:"#38D9A9",nameKey:"teal"},{value:"#69DB7C",nameKey:"green"},{value:"#FFD43B",nameKey:"yellow"},{value:"#FFA94D",nameKey:"orange"},{value:"#FF8787",nameKey:"red"},{value:"#9F765A",nameKey:"brown"},{value:"#CED4DA",nameKey:"gray"}],aj=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}],Ss=16,lj=({editor:e,anchorChildKey:n,layoutColor:t,setLayoutColor:r,disabledMoveColumnButtons:o,duplicateDisabled:s,onClose:l,children:c})=>{const{t:d}=Ze.useTranslation(),{onTrack:f}=m.useContext(ut),[h,g]=Sn.useDisclosure(!1),[C,y]=Sn.useDisclosure(!1),b=t===""?"inherit":t,x=m.useMemo(()=>ij.map(({value:O,nameKey:I})=>({value:O,label:d(`editor.toolbar.colorPicker.names.${I}`)})),[d]),w=m.useMemo(()=>aj.map(({value:O,nameKey:I,border:F})=>({value:O,label:d(`editor.toolbar.colorPicker.names.${I}`),border:F})),[d]),k=m.useMemo(()=>[{key:"textColor",label:d("editor.toolbar.colorPicker.textColors"),type:"text",colors:x,value:"inherit"},{key:"columnBackground",label:d("editor.toolbar.colorPicker.textHighlights"),type:"highlight",colors:w,value:b}],[b,d,x,w]),T=m.useCallback((O,I)=>{if(I==="columnBackground"){const F=O===b?"inherit":O;e.update(()=>{const _=p.$getNodeByKey(n);if(!_)return;const R=_.getParent();R instanceof Mn&&R.setLayoutBackground(F)}),r(F)}},[e,n,b,r]),D=m.useCallback(()=>{e.update(()=>{const O=p.$getNodeByKey(n);if(!O)return;const I=O.getParent();if(!(I instanceof Mn))return;for(const _ of[...I.getChildren()])_.remove();const F=p.$createParagraphNode();I.append(F),I.append(dr()),F.selectStart()})},[e,n]),N=()=>{},L=m.useCallback(()=>{g.open()},[g]),E=m.useCallback(()=>{g.close(),y.open()},[g,y]),M=m.useCallback(()=>{y.close()},[y]);return i.jsxs(i.Fragment,{children:[i.jsx("div",{onClick:L,style:{display:"contents"},children:c}),i.jsx(En,{opened:h,onClose:g.close,title:d("editor.column.mobile.columnActions","Actions"),children:i.jsxs(v.Stack,{gap:16,px:16,pb:16,children:[i.jsx(v.Stack,{gap:0,style:{borderRadius:8,overflow:"hidden"},children:i.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:ii,radius:8,leftSection:i.jsx(te,{icon:rs,size:Ss}),rightSection:i.jsx(te,{icon:lo,size:Ss}),onClick:E,children:d("editor.column.changeColor")})}),i.jsxs(v.Stack,{gap:2,style:{borderRadius:8,overflow:"hidden"},children:[i.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:ii,radius:8,leftSection:i.jsx(te,{icon:Wh,size:Ss}),disabled:o.left,onClick:()=>{Si(e,n,"left"),ss(e),g.close(),l()},children:d("editor.column.moveLeft")}),i.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:ii,radius:8,leftSection:i.jsx(te,{icon:zh,size:Ss}),disabled:o.right,onClick:()=>{Si(e,n,"right"),ss(e),g.close(),l()},children:d("editor.column.moveRight")})]}),i.jsxs(v.Stack,{gap:2,style:{borderRadius:8,overflow:"hidden"},children:[i.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:ii,radius:8,leftSection:i.jsx(te,{icon:uo,size:Ss}),disabled:s,onClick:()=>{f==null||f("block_duplicated"),O1(e,N,n,"layout"),g.close(),l()},children:d("editor.column.duplicate")}),i.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:ii,radius:8,leftSection:i.jsx(te,{icon:Xh,size:Ss}),onClick:()=>{D(),g.close(),l()},children:d("editor.column.clearContent")})]}),i.jsx(v.Stack,{gap:0,style:{borderRadius:8,overflow:"hidden"},children:i.jsx(v.Button,{variant:"subtle",color:"red",justify:"flex-start",fullWidth:!0,bg:ii,radius:8,leftSection:i.jsx(te,{icon:jn,size:Ss}),onClick:()=>{f==null||f("block_deleted"),tu(e,N,n,"layout"),g.close(),l()},children:d("editor.column.deleteColumn")})})]})}),i.jsx(En,{opened:C,onClose:M,title:d("editor.toolbar.colorPicker.textColor","Text color"),children:i.jsx("div",{style:{maxHeight:"calc(60dvh - 80px)",overflowY:"auto"},children:i.jsx(Mt.ColorPicker.List,{sections:k,onChange:T})})})]})},zb=-16,uh=31,cj=6,uj=8;function dj(e){if("clientX"in e)return{x:e.clientX,y:e.clientY};const n=e.touches[0];return n?{x:n.clientX,y:n.clientY}:null}function fj(e,n){const t=dj(e);if(!t)return!1;const r=n.getBoundingClientRect(),o=r.top+zb-cj,s=r.right+uh+uj;return t.x>=r.left&&t.x<=s&&t.y>=o&&t.y<=r.bottom}function hj({anchorElem:e}){const[n]=it.useLexicalComposerContext(),{disable:t}=m.useContext(ut),{t:r}=Ze.useTranslation(),[o,s]=m.useState(!1),[l,c]=m.useState(null),[d,f]=m.useState(null),[h,g]=m.useState(!1),[C,y]=m.useState("inherit"),[b,x]=m.useState({left:"0px",top:"0px",width:"0px"}),w=m.useRef(null);m.useEffect(()=>{w.current=l},[l]);const k=d??l,T=m.useCallback(F=>{if(!e)return;const{left:_,top:R}=e.getBoundingClientRect(),{left:j,top:K,width:W}=F.getBoundingClientRect();x({left:`${j-_}px`,top:`${K-R+zb}px`,width:`${W+uh}px`})},[e]);m.useEffect(()=>{k&&n.read(()=>{const F=p.$getNearestNodeFromDOMNode(k);F instanceof Mn&&y(F.__backgroundColor||"inherit")})},[k,n]),m.useEffect(()=>{h||f(null)},[h]);const D=m.useMemo(()=>{if(!k)return null;let F=null;return n.read(()=>{var R;const _=p.$getNearestNodeFromDOMNode(k);_ instanceof Mn&&(F=((R=_.getFirstChild())==null?void 0:R.getKey())??null)}),F},[k,n]),N=Wi(F=>{if(h||!e)return;const{lexicalDOMNode:_,isOutside:R}=Bu(F,".dsd__theme__layoutItem",["div.editor-layout-column-hover","div.editor-layout-column-hover__dropdown","div.mantine-Menu-dropdown","div.mantine-Popover-dropdown"]);if(R){if(w.current&&fj(F,w.current))return;s(!1),c(null);return}if(!_)return;const j=n.getRootElement();if(!(j!=null&&j.contains(_))||!_.closest(".dsd__theme__layoutContainer")){s(!1),c(null);return}let K=!1;if(n.read(()=>{K=p.$getNearestNodeFromDOMNode(_)instanceof Mn}),!K){s(!1),c(null);return}c(_),s(!0),T(_)},50,500);m.useEffect(()=>{if(t||!e){s(!1),c(null),g(!1),f(null);return}return document.addEventListener("mousemove",N),document.addEventListener("touchstart",N),()=>{s(!1),N.cancel(),document.removeEventListener("mousemove",N),document.removeEventListener("touchstart",N)}},[e,N,t]);const L=m.useMemo(()=>{const F={isDisabledAddColumnButton:!0,isMaxColumns:!1,disabledMoveColumnButtons:{left:!0,right:!0}};if(!k)return F;const _=k.parentElement;if(!(_!=null&&_.classList.contains("dsd__theme__layoutContainer")))return F;const R=_.children,j=Array.from(R).indexOf(k);return{isDisabledAddColumnButton:R.length>=4,isMaxColumns:R.length>=4,disabledMoveColumnButtons:{left:j<=0,right:j>=R.length-1}}},[k]),E=m.useCallback(()=>{!D||L.isDisabledAddColumnButton||(nu(n,D,"right"),s(!1))},[D,L.isDisabledAddColumnButton,n]),M=o?"auto":"none";if(t||!e)return null;const O=["editor-layout-column-hover",o?"editor-layout-column-hover--visible":""].filter(Boolean).join(" "),I={left:b.left,top:b.top,width:b.width,pointerEvents:M,"--editor-layout-column-hover-add-outset":`${uh}px`};return Dr.createPortal(i.jsx(v.Box,{className:O,style:I,children:o&&k?i.jsxs(v.Box,{className:"editor-layout-column-hover__inner",children:[i.jsx(v.Box,{className:"editor-layout-column-hover__menu-slot",children:Nt&&D?i.jsx(lj,{editor:n,anchorChildKey:D,layoutColor:C,setLayoutColor:y,disabledMoveColumnButtons:L.disabledMoveColumnButtons,duplicateDisabled:L.isDisabledAddColumnButton,onClose:()=>s(!1),children:i.jsx(v.ActionIcon,{variant:"transparent",type:"button",className:"editor-layout-column-hover__menu-trigger","aria-label":r("editor.hoverOptions.clickAction"),radius:"sm",p:0,children:i.jsx(te,{icon:Mr,size:18})})}):i.jsxs(v.Menu,{opened:h,onChange:g,onOpen:()=>{w.current&&f(w.current)},position:"bottom",shadow:"md",withinPortal:!0,transitionProps:Wn,closeOnItemClick:!1,classNames:{dropdown:"editor-layout-column-hover__dropdown"},children:[i.jsx(v.Menu.Target,{children:i.jsx(v.ActionIcon,{variant:"transparent",type:"button",className:"editor-layout-column-hover__menu-trigger","aria-label":r("editor.hoverOptions.clickAction"),radius:"sm",p:0,children:i.jsx(te,{icon:Mr,size:18})})}),i.jsx(v.Menu.Dropdown,{onMouseDown:F=>F.stopPropagation(),children:D?i.jsx(sj,{editor:n,anchorChildKey:D,layoutColor:C,setLayoutColor:y,disabledMoveColumnButtons:L.disabledMoveColumnButtons,duplicateDisabled:L.isDisabledAddColumnButton,t:r,onClose:()=>g(!1)}):null})]})}),i.jsx(v.Tooltip,{label:L.isMaxColumns?r("editor.column.addRightMaxReached"):r("editor.column.addRight"),children:i.jsx(v.Box,{component:"span",className:"editor-layout-column-hover__add-column-wrap",children:i.jsx(v.ActionIcon,{variant:"transparent",type:"button",size:16,radius:"sm",className:"editor-layout-column-hover__add-column","aria-label":L.isMaxColumns?r("editor.column.addRightMaxReached"):r("editor.column.addRight"),disabled:L.isDisabledAddColumnButton,p:0,onMouseDown:F=>{F.stopPropagation(),F.preventDefault()},onClick:E,children:i.jsx(te,{icon:M8,size:16})})})})]}):null}),e)}const P1=p.createCommand(),pj=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.anchor.getNode(),r=be.$findMatchingParent(t,Qc),o=be.$findMatchingParent(t,Tr),{lexicalNode:s}=vi(t,e,{"layout-item":!0});if(s&&!s.getTextContent()&&r)return Nu(e,r,o)&&Tr(s)}return!0},mj=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.focus.getNode().getParent(),r=t==null?void 0:t.getParent();if((t==null?void 0:t.getTextContent())===`
|
|
199
|
-
|
|
200
|
-
`&&(p.$isParagraphNode(t==null?void 0:t.getChildren()[0])||p.$isParagraphNode(t==null?void 0:t.getChildren()[1])))return Ei(e,t,r)}return!1};p.createCommand();function gj(e,n,t){const r=e.trim().split(/\s+/).filter(Boolean);if(r.length!==t)return e;const o=[];for(const l of r){const c=l.match(/^([\d.]+)px$/i);if(!c)return e;o.push(parseFloat(c[1]))}if(o.some(l=>!Number.isFinite(l)))return e;const s=n>0?n:1;return o.map((l,c)=>{const d=l/s*100;return`minmax(${c?100:50}px,${eb(d)}%)`}).join(" ")}function Cj(e){const n=getComputedStyle(e),t=n.columnGap;if(t&&t!=="normal"){const o=parseFloat(t);if(Number.isFinite(o))return o}const r=n.gap;if(r&&r!=="normal"){const o=r.trim().split(/\s+/),s=o.length>1?o[1]:o[0],l=parseFloat(s);if(Number.isFinite(l))return l}return 0}function Aj({anchorElem:e}={}){const[n]=it.useLexicalComposerContext();return m.useEffect(()=>{if(!n.hasNodes([Rr,Mn,Vr]))throw new Error("LayoutPlugin: LayoutContainerNode, or LayoutItemNode not registered on editor");return be.mergeRegister(n.registerCommand(P1,t=>(n.update(()=>{const r=Ru(t),o=bj(t);for(let l=0;l<o;l++)r.append(ro().append(p.$createParagraphNode()).append(dr()));const s=Qt();s&&(s==null||s.replace(r),r.selectStart())}),!0),p.COMMAND_PRIORITY_EDITOR),n.registerCommand(p.KEY_BACKSPACE_COMMAND,()=>{var l,c;const t=p.$getSelection();if(!p.$isRangeSelection(t))return!1;const r=(l=t.focus)==null?void 0:l.getNode(),o=(c=be.$findMatchingParent(r,Tr))==null?void 0:c.getKey(),s=r==null?void 0:r.getPreviousSibling();return setTimeout(()=>{n.update(()=>{if(s instanceof Rr){const f=dr(),h=s.getLastChild();h==null||h.append(f)}const d=o?p.$getNodeByKey(o):null;if(d!=null&&d.getChildren&&d.getChildren().length===1){const f=p.$createParagraphNode();d.append(f),f.selectStart()}})},50),!1},p.COMMAND_PRIORITY_CRITICAL),n.registerNodeTransform(Mn,t=>{if(!t.isAttached())return;const r=t.getParent();if(!Qc(r)){for(const o of t.getChildren())t.insertBefore(o);t.remove()}}),n.registerNodeTransform(Rr,t=>{if(!t.isAttached())return;const r=t.getChildren();if(!r.every(Tr)){for(const o of r)t.insertBefore(o);t.remove()}}))},[n]),m.useEffect(()=>{let t=!1,r=0,o=null,s=0,l=[],c=0;const d=g=>{const C=g.target.closest(".dsd__theme__layoutItem"),y=g.target.closest(".dsd__theme__layoutDivider");C&&y&&(g.preventDefault(),n.update(()=>{const b=p.$getNearestNodeFromDOMNode(C);b&&b.selectStart()}),f(C,g),y.classList.add("dragging"))};function f(g,C){t=!0;const y=document.querySelector("code");y&&(y.style.pointerEvents="none"),r=C.clientX,o=g.closest(".dsd__theme__layoutContainer");const b=o.querySelectorAll(".dsd__theme__layoutItem");c=b.length;const x=Cj(o);s=o.clientWidth-x*Math.max(0,b.length-1);const w=Array.from(b).map(O=>O.getBoundingClientRect().width),k=w.reduce((O,I)=>O+I,0),T=k>0?s/k:1,D=w.map(O=>O*T),N=s-D.reduce((O,I)=>O+I,0);D.length>0&&(D[D.length-1]+=N),l=D,o.style.gridTemplateColumns=l.map(O=>`${O}px`).join(" ");const L=Array.from(b).indexOf(g),E=O=>h(O,L),M=O=>{var F,_;t=!1,n.dispatchCommand(Zf,"up"),y&&y.style.pointerEvents==="none"&&(y.style.pointerEvents="auto"),(F=document.querySelector(".dsd__theme__layoutDivider.dragging"))==null||F.classList.remove("dragging");const I=o??((_=O.target)==null?void 0:_.closest(".dsd__theme__layoutContainer"));if(I&&c>0){const R=gj(I.style.gridTemplateColumns,I.clientWidth,c);I.style.gridTemplateColumns=R,n.update(()=>{p.$getNearestNodeFromDOMNode(I).setTemplateColumns(R)})}o=null,l=[],c=0,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",M)};document.addEventListener("mousemove",E),document.addEventListener("mouseup",M)}function h(g,C,y){if(!t||!C)return;n.dispatchCommand(Zf,"move");const b=g.clientX-r;if(Math.abs(b)<1)return;const x=C===1?50:100,w=l[C-1]+l[C],k=Math.max(x,Math.min(w-100,l[C-1]+b)),T=w-k,D=[...l];D[C-1]=k,D[C]=T;const N=document.querySelector(".dsd__theme__layoutDivider.dragging");if(N&&o){const L=o.clientHeight+"px";N.style.getPropertyValue("--height-column")!==L&&requestAnimationFrame(()=>{N.style.setProperty("--height-column",L)})}o.style.gridTemplateColumns=D.map(L=>`${L}px`).join(" ")}return document.body.addEventListener("mousedown",d),()=>document.body.removeEventListener("mousedown",d)},[n]),i.jsx(hj,{anchorElem:e??null})}function bj(e){return e.replace(/\(([^)]+)\)/g,t=>t.replace(/\s+/g,"")).trim().split(/\s+/).length}function yj(){const[e]=it.useLexicalComposerContext(),{t:n}=Ze.useTranslation(),{imperativeHandleRef:t,maxFileSize:r,disable:o}=m.useContext(ut);return a7(e,!o),m.useEffect(()=>{if(!e.hasNodes([Ks]))throw new Error("MusicPlugin: MusicNode not registered on editor");const s=l=>{const c=l.filter(d=>d.type.includes("audio/"));if(c.length){if(l.length>1){Mt.showMessageNotification({message:n("editor.validation.doNotUploadMoreThanSingleFile")});return}if(c[0].size>r*1024*1024){Mt.showErrorNotification({message:n("editor.validation.shouldNotExceed",{maxSize:r})});return}e.dispatchCommand(Nc,"upload"),setTimeout(()=>{e.dispatchCommand(wA,c)})}};return t!=null&&t.current&&(t.current.insertMusics=s),be.mergeRegister(e.registerCommand(Nc,l=>{const d=n1(l==="upload"?"":l,l!=="upload");return Ti(d),!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(p.PASTE_COMMAND,l=>{var f,h,g,C;if(o||e.getEditorState().read(()=>{const y=p.$getSelection();if(!p.$isRangeSelection(y))return!1;const b=y.anchor.getNode();return Ut.$isCodeNode(b)||Ut.$isCodeNode(b.getParent())}))return!1;const d=((h=(f=l.clipboardData)==null?void 0:f.getData("text/plain"))==null?void 0:h.trim())||((C=(g=l.clipboardData)==null?void 0:g.getData("text"))==null?void 0:C.trim());return!d||!SA(d)?!1:(l.preventDefault(),l.stopPropagation(),e.dispatchCommand(Nc,d),!0)},p.COMMAND_PRIORITY_CRITICAL))},[o,e,t,r,n]),null}const dh=p.createCommand("INSERT_PAGE_LINK_COMMAND");function fh(e,n){var r,o;if(!n)return e;const t=[];for(const s of e){if(s.id===n){(r=s.children)!=null&&r.length&&t.push(...fh(s.children,n));continue}t.push({...s,children:(o=s.children)!=null&&o.length?fh(s.children,n):void 0})}return t}function Kb(e,n){var o;const t=n.trim().toLowerCase();if(!t)return e;const r=[];for(const s of e){const l=s.title.toLowerCase().includes(t)||s.id.toLowerCase().includes(t),c=(o=s.children)!=null&&o.length?Kb(s.children,n):[];(l||c.length>0)&&r.push({...s,children:c.length>0?c:void 0})}return r}function xj(e){const{linkablePages:n,pages:t,pageId:r,disable:o}=m.useContext(ut),[s,l]=m.useState(!1),[c,d]=m.useState(null),[f,h]=m.useState(""),g=m.useRef(null),C=m.useRef(null),y=m.useRef(null),b=m.useRef(null),x=n??t,w=m.useMemo(()=>fh(x,r),[x,r]),k=!f.trim(),T=m.useMemo(()=>k?w:Kb(w,f),[w,f,k]),D=()=>{if(g.current&&C.current===!1){const L=g.current;e.update(()=>{const E=p.$getNodeByKey(L);if(!E||!(E instanceof Lo))return;const M=E;M.__placeholder&&M.remove()})}l(!1),d(null),g.current=null,C.current=null};return m.useEffect(()=>{if(s)return $a(),()=>{el()}},[s]),m.useEffect(()=>{if(!s||!c)return;const L=b.current;if(!L)return;const E=L.value.length;L.focus(),L.setSelectionRange(E,E)},[s,c]),m.useEffect(()=>{if(!e.hasNodes([Lo]))throw new Error("PageLinkPlugin: PageLinkNode not registered on editor");return e.registerCommand(dh,L=>L==="inline"?(e.update(()=>{const E=p.$getSelection();if(!p.$isRangeSelection(E))return;const M=ci({id:"",title:"",icon:null,inlineElement:!0,placeholder:!1});E.insertNodes([M]),g.current=M.getKey()}),C.current=!0,h(""),l(!0),!0):L!==void 0?(e.update(()=>{const E=ci({id:L.id,title:L.title,icon:L.icon}),M=Qt();M==null||M.replace(E)}),!0):(e.update(()=>{const E=p.$getSelection();if(!p.$isRangeSelection(E))return;const M=ci({id:"",title:"",icon:null,inlineElement:!0,placeholder:!0});E.insertNodes([M]),g.current=M.getKey()}),C.current=!1,h(""),l(!0),!0),p.COMMAND_PRIORITY_EDITOR)},[e]),m.useEffect(()=>{if(!s||!g.current)return;const L=g.current;let E=0,M=0;const O=()=>{const I=e.getElementByKey(L);if(I){const F=I.querySelector('[data-page-link-anchor="true"]')||I;return d(F.getBoundingClientRect()),!0}return!1};return E=requestAnimationFrame(()=>{O()||(M=window.setTimeout(()=>O(),50))}),()=>{E&&cancelAnimationFrame(E),M&&window.clearTimeout(M)}},[s,e]),m.useEffect(()=>{if(!s||!g.current)return;const L=g.current,E=()=>{const O=e.getElementByKey(L);if(!O)return;const I=O.querySelector('[data-page-link-anchor="true"]')||O;d(I.getBoundingClientRect())};E(),window.addEventListener("scroll",E,!0);const M=window.visualViewport;return M==null||M.addEventListener("scroll",E),M==null||M.addEventListener("resize",E),()=>{window.removeEventListener("scroll",E,!0),M==null||M.removeEventListener("scroll",E),M==null||M.removeEventListener("resize",E)}},[e,s]),m.useEffect(()=>{if(!s)return;const L=E=>{var O;const M=E.target;(O=y.current)!=null&&O.contains(M)||D()};return document.addEventListener("mousedown",L,!0),()=>document.removeEventListener("mousedown",L,!0)},[s]),m.useEffect(()=>e.registerCommand(p.CLICK_COMMAND,L=>(s||o||e.update(()=>{const E=L.target;if(!E)return;const M=p.$getNearestNodeFromDOMNode(E);if(!M||!k0(M))return;const O=M;if(O.__placeholder)C.current=!1;else if(O.isInline()){if(O.getPageId().trim()!=="")return;C.current=!0}else return;g.current=M.getKey(),h(""),l(!0)}),!1),p.COMMAND_PRIORITY_LOW),[e,s,h]),m.useEffect(()=>{if(!n||n.length===0)return;const L={},E=[...n];for(;E.length;){const M=E.pop();L[M.id]={title:M.title,icon:M.icon},M.children&&M.children.length&&E.push(...M.children)}e.update(()=>{const O=[...p.$getRoot().getChildren()];for(;O.length;){const I=O.pop();if(k0(I)){const F=I.getPageId(),_=L[F];if(_){const R=I.getMeta();(R.title!==_.title||R.icon!==_.icon)&&I.setMeta(_.title,_.icon)}}p.$isElementNode(I)&&O.push(...I.getChildren())}})},[e,n]),{pickerOpen:s,anchorRect:c,searchQuery:f,setSearchQuery:h,filteredPages:T,showAsTree:k,dropdownRef:y,inputRef:b,handleSelectPage:L=>{const E=g.current;if(!E){D();return}e.update(()=>{const M=p.$getNodeByKey(E);if(!M)return;if(M instanceof Lo){if(C.current){const F=M.getWritable();F.__pageId=L.id,F.setMeta(L.title,L.icon)}else{const F=M,_=F.getTopLevelElementOrThrow(),R=ci({id:L.id,title:L.title,icon:L.icon,inlineElement:!1}),j="getChildren"in _?_.getChildren():[];j.length===1&&j[0]===F?_.replace(R):(_.insertAfter(R),F.remove())}return}const O=ci({id:L.id,title:L.title,icon:L.icon,inlineElement:!1});M.getTopLevelElementOrThrow().insertAfter(O)}),D()},closePicker:D}}function Ub(e){const{onConfirm:n,onCancel:t}=e;return r=>{if(r.stopPropagation(),r.key==="Enter"&&!r.shiftKey&&!r.ctrlKey&&!r.metaKey&&n){r.preventDefault(),n();return}r.key==="Escape"&&t&&(r.preventDefault(),t())}}const vj="_dropdown_1llyg_1",wj="_searchInput_1llyg_39",kj="_textInputRoot_1llyg_49",Sj="_scrollViewport_1llyg_57",Ej="_item_1llyg_83",Mj="_itemNested_1llyg_85",Tj="_treeChildren_1llyg_109",Lj="_pageLinkItemTitle_1llyg_143",Nj="_listWrap_1llyg_193",jj="_empty_1llyg_227",oo={dropdown:vj,searchInput:wj,textInputRoot:kj,scrollViewport:Sj,item:Ej,itemNested:Mj,treeChildren:Tj,pageLinkItemTitle:Lj,listWrap:Nj,empty:jj};function Rj({page:e,onSelect:n,level:t}){const r=t>0;return i.jsx(v.Box,{className:r?oo.itemNested:oo.item,style:{paddingLeft:r?t*10:void 0},role:"button",tabIndex:0,"aria-label":e.title||void 0,onClick:()=>n(e),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),n(e))},children:i.jsx(qc,{page:{...e,onClick:void 0},titleClassName:oo.pageLinkItemTitle})})}function Hb({pages:e,onSelect:n,level:t=0}){const r=[...e].sort((o,s)=>(o.order??0)-(s.order??0));return i.jsx(i.Fragment,{children:r.map(o=>i.jsxs(m.Fragment,{children:[i.jsx(Rj,{page:o,onSelect:n,level:t}),o.children&&o.children.length>0&&i.jsx("div",{className:oo.treeChildren,"data-level":t,children:i.jsx(Hb,{pages:o.children,onSelect:n,level:t+1})})]},o.id))})}const r2=35,Af=5,Ij=8,Dj=8;function Oj(e){const{pickerOpen:n,anchorRect:t,searchQuery:r,setSearchQuery:o,filteredPages:s,dropdownRef:l,inputRef:c,handleSelectPage:d,closePicker:f}=e,{t:h}=Ze.useTranslation(),[g,C]=m.useState(null);if(m.useLayoutEffect(()=>{if(!n||!t){C(null);return}const D=l.current;if(!D)return;const N=()=>{const M=t,O=D.getBoundingClientRect(),I=O.height,F=O.width,_=window.visualViewport,R=(_==null?void 0:_.height)??window.innerHeight,j=(_==null?void 0:_.width)??window.innerWidth,K=Dj,W=Ij,B=M.top+r2,H=M.top-W-I,Q=B+Af,ee=Q+I<=R-K,ae=H>=K;let pe,Le;if(ee)pe=B,Le=!0;else if(ae)pe=H,Le=!1;else{const we=R-K-Q,de=M.top-W-K;Le=we>=de,pe=Le?B:H,pe=Math.max(K,Math.min(pe,R-I-K))}Le&&(pe+=Af);let Se=M.left;Se+F>j-K&&(Se=j-F-K),Se=Math.max(K,Se),C({top:pe,left:Se})},L=window.visualViewport;N();const E=new ResizeObserver(N);return E.observe(D),window.addEventListener("scroll",N,!0),L==null||L.addEventListener("resize",N),L==null||L.addEventListener("scroll",N),()=>{E.disconnect(),window.removeEventListener("scroll",N,!0),L==null||L.removeEventListener("resize",N),L==null||L.removeEventListener("scroll",N)}},[t,s,n]),!n||!t)return null;const y=D=>{d(D)},b=Ub({onCancel:f}),x=s.length===0?i.jsx(v.Box,{component:"div",className:oo.empty,children:i.jsx(v.Text,{size:"sm",c:"dimmed",children:h("editor.menu.other.pageLink.empty")})}):i.jsx(Hb,{pages:s,onSelect:y}),w=(g==null?void 0:g.top)??t.top+r2+Af,k=(g==null?void 0:g.left)??t.left,T=i.jsxs(v.Paper,{ref:l,className:oo.dropdown,style:{position:"fixed",top:w,left:k,width:400,maxWidth:"100%"},shadow:"md",withBorder:!1,children:[i.jsx(v.TextInput,{placeholder:h("editor.menu.other.pageLink.searchPlaceholder"),value:r,onChange:D=>o(D.currentTarget.value),onKeyDown:b,leftSection:i.jsx(te,{size:16,icon:Jh}),ref:c,classNames:{input:oo.searchInput,root:oo.textInputRoot}}),i.jsx(v.ScrollArea.Autosize,{mah:250,viewportProps:{tabIndex:-1},scrollbars:"y",offsetScrollbars:"y",classNames:{viewport:oo.scrollViewport},children:i.jsx(v.Box,{className:oo.listWrap,children:x})})]});return Dr.createPortal(T,document.body)}function Pj(){const[e]=it.useLexicalComposerContext(),n=xj(e);return i.jsx(Oj,{...n})}const Yb=p.createCommand("INSERT_SWAGGER_COMMAND");function Bj(e){if(!e.hasNodes([rl]))throw new Error("SwaggerPlugin: SwaggerPlugin not registered on editor");return e.registerCommand(Yb,n=>{const t=Qt();if(t&&t.getParent()){const r=v1(n,"",!0);t==null||t.replace(r)}return!0},p.COMMAND_PRIORITY_EDITOR)}function _j(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>Bj(e),[e]),null}function Fj(e){const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.anchor.getNode(),r=be.$findMatchingParent(t,vt),o=be.$findMatchingParent(t,Oe);return Nu(e,r,o)}return!0}function o2(e){return(e==null?void 0:e.tagName)==="TABLE"}function s2(e){let n=1;for(;e;)n*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;return n}function i2(e){const n=e.getShape();return{columns:n.toX-n.fromX+1,rows:n.toY-n.fromY+1}}function Wj(e){const n=e.getNodes(),t=[];let r=null,o=null,s=0;for(let l=0;l<n.length;l++){const c=n[l];if(Oe(c)){const d=c.getParentOrThrow();if(Hj(Ot(d),"Expected CellNode to have a RowNode parent"),r!==d){if(o!==null&&s!==o)return!1;r!==null&&(o=s),r=d,s=0}const f=c.__colSpan;for(let h=0;h<f;h++)t[s+h]===void 0&&(t[s+h]=0),t[s+h]+=c.__rowSpan;s+=f}}return(o===null||s===o)&&t.every(l=>l===t[0])}function zj(){const e=p.$getSelection();if(p.$isRangeSelection(e)&&!e.isCollapsed()||Ct(e)&&!e.anchor.is(e.focus)||!p.$isRangeSelection(e)&&!Ct(e))return!1;const[n]=kn(e.anchor);return n.__colSpan>1||n.__rowSpan>1}function cc(e){if(e.getChildrenSize()!==1)return!1;const n=e.getFirstChildOrThrow();return!(!p.$isParagraphNode(n)||!n.isEmpty())}function a2(e){const n=e.getLastDescendant();_n(n)?n.select():p.$isElementNode(n)?n.selectEnd():n!==null&&n.selectNext()}function l2(e){return e.getEditorState().read(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)||Ct(n)){const[t]=kn(n.anchor);if(Oe(t))return t.getBackgroundColor()}return null})}function Kj(e,n){const t=n.querySelectorAll("tr");let r=!1;return Array.from(t).forEach((o,s)=>{s&&o.children[0].tagName==="TH"&&(r=!0)}),r}function Uj(e){const n=e.querySelector("tr");let t=!1;return n&&Array.from(n.children).forEach((r,o)=>{o&&r.tagName==="TH"&&(t=!0)}),t}function Hj(e,n){if(!e)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+n)}const Yj=(e,n)=>{window.matchMedia("(pointer: coarse)").matches&&n&&setTimeout(()=>{n.scrollBy({left:e+25,behavior:"smooth"})},100)};function c2(e){return e.getEditorState().read(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)||Ct(n)){const[t]=kn(n.anchor);if(Oe(t)){let r=function(s){if(p.$isTextNode(s))o.push(s);else if(p.$isElementNode(s))for(const l of s.getChildren())r(l)};const o=[];for(const s of t.getChildren())r(s);if(o.length>0){const l=o[0].getStyle().match(/color\s*:\s*([^;]+)/);if(l)return l[1].trim()}}}return""})}function bf(e,n){function t(r){if(p.$isTextNode(r)){const o=r.getStyle(),s={};o&&o.split(";").forEach(l=>{const c=l.indexOf(":");if(c===-1)return;const d=l.slice(0,c).trim(),f=l.slice(c+1).trim();d&&f&&(s[d]=f)}),n===null?delete s.color:s.color=n,r.setStyle(Object.entries(s).map(([l,c])=>`${l}: ${c}`).join("; "))}else if(p.$isElementNode(r))for(const o of r.getChildren())t(o)}for(const r of e.getChildren())t(r)}p.createCommand("INSERT_NEW_TABLE_COMMAND");const Zj=m.createContext({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function Gj({hasCellMerge:e=!0,hasCellBackgroundColor:n=!0,hasTabHandler:t=!0,hasHorizontalScroll:r=!0}){const[o]=it.useLexicalComposerContext();m.useEffect(()=>{CS(o,r)},[o,r]),m.useEffect(()=>(o.hasNodes([Yr,Ur,Pi])||ot(!1,"TablePlugin: TableNode, TableCellNode or TableRowNode not registered on editor"),be.mergeRegister(o.registerCommand(Su,({columns:s,rows:l,includeHeaders:c})=>{const d=eS(Number(l),Number(s),c),f=Qt();f&&f.replace(d);const h=d.getFirstDescendant();return _n(h)&&h.select(),!0},p.COMMAND_PRIORITY_EDITOR),o.registerNodeTransform(Yr,s=>{const[l]=PA(s,null,null),c=l.reduce((f,h)=>Math.max(f,h.length),0),d=s.getChildren();for(let f=0;f<l.length;++f){const h=d[f];if(!h)continue;const g=l[f].reduce((C,y)=>y?1+C:C,0);if(g!==c)for(let C=g;C<c;++C){const y=Hr(0);y.append(p.$createParagraphNode()),h.append(y)}}}))),[o]),m.useEffect(()=>{const s=new Map,l=(d,f,h)=>{const g=Bs(d,h),C=sS(d,g,o,t);s.set(f,[C,g])},c=o.registerMutationListener(Yr,d=>{o.getEditorState().read(()=>{for(const[f,h]of d){const g=s.get(f);if(h==="created"||h==="updated"){const{tableNode:C,tableElement:y}=BA(f);g===void 0?l(C,f,y):y!==g[1]&&(g[0].removeListeners(),s.delete(f),l(C,f,y))}else h==="destroyed"&&g!==void 0&&(g[0].removeListeners(),s.delete(f))}},{editor:o})},{skipInitialization:!1});return()=>{c();for(const[,[d]]of s)d.removeListeners()}},[o,t]),m.useEffect(()=>{if(!e)return o.registerNodeTransform(Ur,s=>{if(s.getColSpan()>1||s.getRowSpan()>1){const[,,l]=kn(s),[c]=jr(l,s,s),d=c.length,f=c[0].length;let h=l.getFirstChild();ot(Ot(h),"Expected TableNode first child to be a RowNode");const g=[];for(let C=0;C<d;C++){C!==0&&(h=h.getNextSibling(),ot(Ot(h),"Expected TableNode first child to be a RowNode"));let y=null;for(let b=0;b<f;b++){const x=c[C][b],w=x.cell;if(x.startRow===C&&x.startColumn===b)y=w,g.push(w);else if(w.getColSpan()>1||w.getRowSpan()>1){ot(Oe(w),"Expected TableNode cell to be a TableCellNode");const k=Hr(w.__headerState);y!==null?y.insertAfter(k):be.$insertFirst(h,k)}}}for(const C of g)C.setColSpan(1),C.setRowSpan(1)}})},[o,e]),m.useEffect(()=>{if(!n)return o.registerNodeTransform(Ur,s=>{s.getBackgroundColor()!==null&&s.setBackgroundColor(null)})},[o,n,e])}function Vj(){const[e]=it.useLexicalComposerContext();m.useEffect(()=>be.mergeRegister(e.registerCommand(p.PASTE_COMMAND,n=>{var s,l;try{const c=n.clipboardData||window.clipboardData;if(!c)return!1;const d=c.getData("text/html"),f=document.createElement("div");f.innerHTML=d;let h=null;f.childNodes.length===1&&o2(f.firstChild)&&(h=f.firstChild),f.childNodes.length===2&&o2(f.childNodes[1])&&(h=f.childNodes[1]);const g=Os?1:2;if(f.childNodes.length===(Os?2:5)&&((s=f.childNodes[g].className)!=null&&s.includes("table-scrollable-wrapper"))&&(h=f.childNodes[g].firstChild),h){n.preventDefault();const C=Qt();if(C){const y=be.$findMatchingParent(C,Oe),b=be.$findMatchingParent(C,Ot),x=be.$findMatchingParent(C,vt);if(!x||!b||!y)return!1;const w=h.querySelectorAll("tr"),k=w[0].childNodes,T=x.getChildren();let D=null,N=0;for(let M=0;M<x.getChildren().length;M++)if(x.getChildren()[M].__key===(b==null?void 0:b.__key)&&(N=M,M+w.length>T.length)){let I=M+w.length-T.length;(l=x==null?void 0:x.getLastChild())==null||l.selectStart();for(let F=0;F<I;F++)_a(!0);break}let L=0;x.getChildren().forEach((M,O)=>{if(O>=N&&w[L]){let I=0;M.getChildren().forEach((_,R)=>{var j,K;if(Oe(_)&&(_.__key===(y==null?void 0:y.__key)&&(D=R,_==null||_.selectStart()),D!==null&&R>=D&&R<k.length+D)){const W=((K=(j=w[L])==null?void 0:j.childNodes[I])==null?void 0:K.innerText)||"";_.clear();const B=p.$createParagraphNode(),H=os(W||"");B.append(H),_.append(B),I++}}),L++}})}return!0}}catch(c){console.error("TABLE PASTE",c)}const t=p.$getSelection(),r=t==null?void 0:t.getNodes();return(r==null?void 0:r.length)>1&&Oe(r[1])&&e.update(()=>{r.forEach(c=>{vt(c)&&c.remove()})}),!1},p.COMMAND_PRIORITY_LOW)),[e])}const qj=33,Qj=50;function Jj({editor:e}){const n=m.useRef(null),t=m.useRef(null),r=m.useRef(null),[o,s]=m.useState(null),[l,c]=m.useState(null),[d,f]=m.useState(!1),[h,g]=m.useState(null),[C,y]=m.useState({right:!1,bottom:!1});m.useEffect(()=>e.registerCommand(p.SELECTION_CHANGE_COMMAND,E=>{const M=p.$getSelection(),O=Ct(M);return d!==O&&f(O),!1},p.COMMAND_PRIORITY_HIGH));const b=m.useCallback(()=>{c(null),g(null),r.current=null,t.current=null,y({right:!1,bottom:!1})},[]);m.useEffect(()=>{const E=M=>{setTimeout(()=>{var K,W;const O=M.target;if(h){s({x:M.clientX,y:M.clientY});return}if(n.current&&n.current.contains(O))return;if(O instanceof Element&&O.closest(".table-cell-action-button-container")){c(null);return}const I=5;let F=null,_=null,R=1/0,j=null;if(l){const B=l.elem.closest("table");if(B){const H=B.getBoundingClientRect();M.clientX>=H.left-I&&M.clientX<=H.right+I&&M.clientY>=H.top-I&&M.clientY<=H.bottom+I&&(j=B)}}if(!j&&O instanceof Element){const B=Vc(O);if(B?j=B.elem.closest("table"):j=(K=O.closest)==null?void 0:K.call(O,"table"),!j){const H=document.elementsFromPoint(M.clientX,M.clientY);for(const Q of H){const ee=(W=Q.closest)==null?void 0:W.call(Q,"table");if(ee){j=ee;break}}}}if(j&&j.querySelectorAll("td, th").forEach((H,Q)=>{var de,ne;const ee=H.getBoundingClientRect();let ae=Vc(H);if(!ae){const Z=H.closest("tr"),ce=Z?Array.from(((de=Z.parentElement)==null?void 0:de.children)||[]).indexOf(Z):0,le=Array.from(((ne=H.parentElement)==null?void 0:ne.children)||[]).indexOf(H);ae={elem:H,highlighted:!1,hasBackgroundColor:!1,x:le,y:ce}}const pe=Math.abs(M.clientX-ee.right),Le=M.clientY>=ee.top-I&&M.clientY<=ee.bottom+I;pe<=I&&Le&&pe<R&&(R=pe,F=ae,_="right");const Se=Math.abs(M.clientY-ee.bottom),we=M.clientX>=ee.left-I&&M.clientX<=ee.right+I;Se<=I&&we&&Se<R&&(R=Se,F=ae,_="bottom")}),F&&_)y({right:_==="right",bottom:_==="bottom"}),l!==F&&e.update(()=>{const B=p.$getNearestNodeFromDOMNode(F.elem);if(!B)return;const H=Yn(B),Q=e.getElementByKey(H.getKey());Q&&(t.current=Q.children[0].getBoundingClientRect(),c(F))});else{if(l){const B=l.elem.getBoundingClientRect(),H=Math.abs(M.clientX-B.right),Q=Math.abs(M.clientY-B.bottom),ee=Math.abs(M.clientY-B.top),ae=Math.abs(M.clientX-B.left),pe=Math.min(H,Q,ee,ae);y({right:H<=I&&H===pe,bottom:Q<=I&&Q===pe})}else y({right:!1,bottom:!1});l&&!j&&b()}},0)};return document.addEventListener("mousemove",E),()=>{document.removeEventListener("mousemove",E)}},[l,h,e,b]);const x=E=>E==="bottom",w=m.useCallback(E=>{if(!l)throw new Error("TableCellResizer: Expected active cell.");e.update(()=>{const M=p.$getNearestNodeFromDOMNode(l.elem);if(!Oe(M))throw new Error("TableCellResizer: Table cell node not found.");const O=Yn(M),I=Vo(M),F=O.getChildren();if(I>=F.length||I<0)throw new Error("Expected table cell to be inside of table row.");const _=F[I];if(!Ot(_))throw new Error("Expected table row");_.setHeight(E)})},[l,e]),k=m.useCallback((E,M)=>{if(!l)throw new Error("TableCellResizer: Expected active cell.");e.update(()=>{const O=p.$getNearestNodeFromDOMNode(l.elem);if(!Oe(O))throw new Error("TableCellResizer: Table cell node not found.");const I=Yn(O),F=qo(O),_=I.getChildren();for(let R=0;R<_.length;R++){const j=_[R];if(!Ot(j))throw new Error("Expected table row");const K=j.getChildren(),H=K.map(ee=>ee.getColSpan()).reduce((ee,ae)=>{const pe=ee[ee.length-1]??0;return ee.push(pe+ae),ee},[]).findIndex(ee=>ee>F);if(H>=K.length||H<0)throw new Error("Expected table cell to be inside of table row.");const Q=K[H];if(!Oe(Q))throw new Error("Expected table cell");Q.setWidth(E)}})},[l,e]),T=m.useCallback(E=>{const M=O=>{if(O.preventDefault(),O.stopPropagation(),e.dispatchCommand(es,!0),!l)throw new Error("TableCellResizer: Expected active cell.");if(r.current){const{x:I,y:F}=r.current;if(l===null)return;const _=s2(O.target);if(x(E)){const R=l.elem.getBoundingClientRect().height,j=Math.abs(O.clientY-F)/_,K=E==="bottom"&&F>O.clientY;w(Math.max(K?R-j:j+R,qj))}else{const R=getComputedStyle(l.elem);let j=l.elem.clientWidth;j-=parseFloat(R.paddingLeft)+parseFloat(R.paddingRight);const K=Math.abs(O.clientX-I)/_,W=E==="right"&&I>O.clientX;k(Math.max(W?j-K:K+j,Qj),j),e.update(()=>{p.$setSelection(null)})}b(),document.body.classList.remove("table-resize-active"),document.removeEventListener("mouseup",M)}};return M},[l,b,k,w]),D=m.useCallback(E=>M=>{const O=e.getRootElement();if(O&&O.contains(document.activeElement)&&ss(e),M.preventDefault(),M.stopPropagation(),e.dispatchCommand(es,!0),!l)throw new Error("TableCellResizer: Expected active cell.");r.current={x:M.clientX,y:M.clientY},s(r.current),g(E),document.body.classList.add("table-resize-active"),document.addEventListener("mouseup",T(E))},[l,T]),L=m.useCallback(()=>{if(l){const{height:E,width:M,top:O,left:I,right:F}=l.elem.getBoundingClientRect(),{right:_}=e._rootElement.getBoundingClientRect(),R=s2(l.elem),j=F>_?F-_+20:0,K={bottom:{backgroundColor:"transparent",cursor:"row-resize",height:"10px",left:`${I+5}px`,top:`${O+E-5}px`,width:`${M-j}px`,opacity:h==="bottom"||C.bottom?1:0,pointerEvents:h==="bottom"||C.bottom?"auto":"none"},right:{backgroundColor:"transparent",cursor:"col-resize",height:`${E-7}px`,left:`${I+M-5}px`,display:j?"none":"block",top:`${O+7}px`,width:"12px",opacity:h==="right"||C.right?1:0,pointerEvents:h==="right"||C.right?"auto":"none"}},W=t.current;return h&&o&&W&&(x(h)?(K[h].left=`${W.left}px`,K[h].top=`${o.y/R}px`,K[h].height="3px",K[h].width=`${W.width}px`):(K[h].top=`${W.top}px`,K[h].left=`${o.x/R}px`,K[h].width="3px",K[h].height=`${W.height}px`),K[h].backgroundColor="#adf"),K}return{bottom:null,left:null,right:null,top:null}},[l,h,o,C])();return i.jsx("div",{ref:n,children:l!=null&&!d&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:L.right||void 0,onMouseDown:D("right")}),i.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:L.bottom||void 0,onMouseDown:D("bottom")})]})})}function Xj({}){var r,o;const[e]=it.useLexicalComposerContext(),n=lw.useLexicalEditable(),t=((o=(r=e.getRootElement())==null?void 0:r.ownerDocument)==null?void 0:o.body)||document.body;return m.useMemo(()=>n?Dr.createPortal(i.jsx(Jj,{editor:e}),t):null,[e,n,t])}const Zb=[{format:"left",icon:Mc,shortcutApple:"(⌘⇧L)",shortcutOther:"(Ctrl+Shift+L)",testIdToolbar:"toolbar-align-left",testIdTable:"table-align-left"},{format:"center",icon:$C,shortcutApple:"(⌘⇧E)",shortcutOther:"(Ctrl+Shift+E)",testIdToolbar:"toolbar-align-center",testIdTable:"table-align-center"},{format:"right",icon:tA,shortcutApple:"(⌘⇧R)",shortcutOther:"(Ctrl+Shift+R)",testIdToolbar:"toolbar-align-right",testIdTable:"table-align-right"},{format:"justify",icon:eA,shortcutApple:"(⌥⌘J)",shortcutOther:"(Ctrl+Alt+J)",testIdToolbar:"toolbar-align-justify",testIdTable:"table-align-justify"}];function Gb(e){return{center:{icon:$C,name:e("editor.toolbar.center")},end:{icon:Mc,name:"End Align"},justify:{icon:eA,name:e("editor.toolbar.justify")},left:{icon:Mc,name:e("editor.toolbar.left")},right:{icon:tA,name:e("editor.toolbar.right")},start:{icon:Mc,name:"Start Align"}}}function $j({shortcut:e,trailingIcon:n}){return i.jsxs(v.Flex,{align:"center",gap:8,c:"dimmed",children:[i.jsx(v.Text,{size:"xs",component:"span",c:"dimmed",children:e}),n]})}function Vb({effectiveValue:e,onAlignmentSelect:n,showShortcuts:t,testScope:r,renderLeftSection:o,renderTrailingWhenSelected:s}){const{t:l,i18n:c}=Ze.useTranslation(),d=m.useMemo(()=>Gb(l),[c.language]),h=s??i.jsx(te,{icon:tr,size:16,color:"var(--mantine-primary-color-filled)"});return i.jsx(i.Fragment,{children:Zb.map(g=>{const C=e===g.format,y=r==="toolbar"?g.testIdToolbar:g.testIdTable,b=o?o(g):i.jsx(te,{icon:g.icon,size:16});return i.jsx(v.Menu.Item,{leftSection:b,rightSection:t?i.jsx($j,{shortcut:Os?g.shortcutApple:g.shortcutOther,trailingIcon:C?h:void 0}):C?h:void 0,onClick:()=>n(g.format),"data-test-id":y,children:d[g.format].name},g.format)})})}const eR=[{value:"inherit",nameKey:"default"},{value:"#9775FA",nameKey:"violet"},{value:"#748FFC",nameKey:"indigo"},{value:"#4DABF7",nameKey:"blue"},{value:"#38D9A9",nameKey:"teal"},{value:"#69DB7C",nameKey:"green"},{value:"#FFD43B",nameKey:"yellow"},{value:"#FFA94D",nameKey:"orange"},{value:"#FF8787",nameKey:"red"},{value:"#9F765A",nameKey:"brown"},{value:"#CED4DA",nameKey:"gray"}],tR=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}],u2=16;function nR({textColor:e,backgroundColor:n,onTextColorChange:t,onBackgroundColorChange:r}){const{t:o}=Ze.useTranslation(),s=e||"inherit",l=n||"inherit",c=m.useMemo(()=>eR.map(({value:g,nameKey:C})=>({value:g,label:o(`editor.toolbar.colorPicker.names.${C}`)})),[o]),d=m.useMemo(()=>tR.map(({value:g,nameKey:C,border:y})=>({value:g,label:o(`editor.toolbar.colorPicker.names.${C}`),border:y})),[o]),f=m.useMemo(()=>[{key:"textColor",label:o("editor.toolbar.colorPicker.textColors"),type:"text",colors:c,value:s},{key:"cellBackground",label:o("editor.table.colorPicker.cellBackground"),type:"highlight",colors:d,value:l}],[s,l,o,c,d]),h=(g,C)=>{C==="textColor"?t(g):r(g)};return i.jsxs(v.Menu,{trigger:"hover",position:"right-start",offset:{mainAxis:10,alignmentAxis:-5},shadow:"md",children:[i.jsx(v.Menu.Target,{children:i.jsx(v.Menu.Item,{leftSection:i.jsx("span",{style:{color:"var(--mantine-color-default-color)",display:"flex",alignItems:"center"},children:i.jsx(te,{icon:rs,size:u2})}),rightSection:i.jsx("span",{style:{color:"var(--mantine-color-default-color)",display:"flex",alignItems:"center"},children:i.jsx(te,{icon:lo,size:u2})}),"data-test-id":"table-cell-color",children:o("editor.table.menu.color")})}),i.jsx(v.Menu.Dropdown,{onMouseDown:g=>g.preventDefault(),style:{width:232},children:i.jsx("div",{style:{maxHeight:388,overflowY:"auto"},children:i.jsx(Mt.ColorPicker.List,{sections:f,onChange:h})})})]})}function qb({tableCellNode:e,cellMerge:n,isMenuOpen:t,selectionBeforeMenuOpenedRef:r,currentIndexColumn:o,currentIndexRow:s,tableDom:l,menuContext:c="cell"}){const[d]=it.useLexicalComposerContext(),{onTrack:f}=m.useContext(ut),[h,g]=m.useState(e),[C,y]=m.useState({columns:1,rows:1}),[b,x]=m.useState(!1),[w,k]=m.useState(!1),[T,D]=m.useState(!1),[N,L]=m.useState(""),[E,M]=m.useState(""),[O,I]=m.useState("left");m.useEffect(()=>d.registerMutationListener(Ur,J=>{J.get(h.getKey())==="updated"&&(d.getEditorState().read(()=>{g(h.getLatest())}),L(l2(d)||""),M(c2(d)))}),[d,h]),m.useEffect(()=>{t?(L(l2(d)||""),M(c2(d)),d.getEditorState().read(()=>{var q;const J=r.current;try{const he=h.getLatest().getFirstChild();he&&"getFormatType"in he&&I(he.getFormatType()||"left")}catch{}if(J&&Ct(J)){let re;try{re=i2(J)}catch{return}y(re);const he=Yn(J.anchor.getNode()),ke=he.getChildrenSize(),De=(q=he.getChildAtIndex(0))==null?void 0:q.getChildrenSize(),Ee=re.columns>=De&&re.rows>=ke;D(Ee),x(Wj(J)&&(re.columns>1||re.rows>1))}try{k(zj())}catch{}})):d.update(()=>{p.$getSelection()!==null&&setTimeout(()=>{x(!1),r.current=null,y({columns:1,rows:1});try{h.getParent(),F()}catch{}},200)})},[t]);const F=m.useCallback(()=>{d.update(()=>{if(h.isAttached()){const q=Yn(h),re=d.getElementByKey(q.getKey());if(!re)throw new Error("Expected to find tableElement in DOM");const he=c1(re);he!==null&&he.clearHighlight(),q.markDirty(),g(h.getLatest())}p.$getRoot().selectStart()})},[d,h]),_=m.useCallback(()=>{const q=Yn(h).getChildren();if(c==="row"&&s!==null){const re=q[s];if(Ot(re))return re.getChildren().filter(Oe)}if(c==="column"&&o!==null){const re=[];for(const he of q)if(Ot(he)){const ke=he.getChildAtIndex(o);Oe(ke)&&re.push(ke)}return re}return[h]},[h,c,s,o]),R=()=>{d.update(()=>{var q;if(c==="row"||c==="column"){const re=_();if(re.length<=1)return;const he=re[0];c==="row"?he.setColSpan(re.length):he.setRowSpan(re.length);const ke=cc(he);let De;ke&&p.$isParagraphNode(De=he.getFirstChild())&&De.remove();for(let Ee=1;Ee<re.length;Ee++)cc(re[Ee])||he.append(...re[Ee].getChildren()),re[Ee].remove();he.getChildrenSize()===0&&he.append(p.$createParagraphNode()),a2(he);return}const J=r.current;if(Ct(J)){let re;try{re=i2(J)}catch{return}const{columns:he,rows:ke}=re,De=Yn(J.anchor.getNode()),Ee=De.getChildrenSize(),Pe=(q=De.getChildAtIndex(0))==null?void 0:q.getChildrenSize();if(he>=Pe&&ke>=Ee)return;const Fe=J.getNodes();let ze=null;for(let bt=0;bt<Fe.length;bt++){const mt=Fe[bt];if(Oe(mt))if(ze===null){mt.setColSpan(he).setRowSpan(ke),ze=mt;const Ht=cc(mt);let Pt;Ht&&p.$isParagraphNode(Pt=mt.getFirstChild())&&Pt.remove()}else Oe(ze)&&(cc(mt)||ze.append(...mt.getChildren()),mt.remove())}ze!==null&&(ze.getChildrenSize()===0&&ze.append(p.$createParagraphNode()),a2(ze))}})},j=()=>{d.update(()=>{if(c==="row"||c==="column"){const J=_();for(const q of J)if(q.getColSpan()>1||q.getRowSpan()>1){q.selectStart(),n0();break}return}n0()})},K=m.useCallback(J=>{f==null||f("table_row_added",{position:J?"after":"before"}),d.update(()=>{const q=!J&&h.getHeaderStyles()&kt.ROW;for(let re=0;re<C.rows;re++)_a(J);if(q){const he=Yn(h).getChildren(),ke=he[0],De=he[1];Ot(ke)&&Ot(De)&&(ke.getChildren().forEach(Ee=>{Oe(Ee)&&Ee.setHeaderStyles(kt.ROW,kt.ROW)}),De.getChildren().forEach(Ee=>{Oe(Ee)&&Ee.setHeaderStyles(kt.NO_STATUS,kt.ROW)}))}})},[d,C.rows,h]),W=m.useCallback(J=>{f==null||f("table_column_added",{position:J?"after":"before"}),d.update(()=>{const q=!J&&h.getHeaderStyles()&kt.COLUMN;for(let re=0;re<C.columns;re++)Gc(J);if(q){const he=Yn(h).getChildren();for(const ke of he){if(!Ot(ke))continue;const De=ke.getChildAtIndex(0),Ee=ke.getChildAtIndex(1);Oe(De)&&De.setHeaderStyles(kt.COLUMN,kt.COLUMN),Oe(Ee)&&Ee.setHeaderStyles(kt.NO_STATUS,kt.COLUMN)}}})},[d,C.columns]),B=m.useCallback(()=>{f==null||f("table_row_deleted"),d.update(()=>{DA()})},[d]),H=m.useCallback(()=>{d.update(()=>{Yn(e).remove(),F()})},[d,e,F]),Q=m.useCallback(()=>{f==null||f("table_column_deleted"),d.update(()=>{OA()})},[d]),ee=m.useCallback(()=>{d.update(()=>{const J=Yn(h),q=Vo(h),re=J.getChildren();if(q>=re.length||q<0)throw new Error("Expected table cell to be inside of table row.");const he=re[q];if(!Ot(he))throw new Error("Expected table row");const ke=h.getHeaderStyles()^kt.ROW;he.getChildren().forEach(De=>{if(!Oe(De))throw new Error("Expected table cell");De.setHeaderStyles(ke,kt.ROW)}),F()})},[d,h,F]),ae=m.useCallback(J=>{d.update(()=>{const q=Yn(h),re=qo(h),he=q.getChildren(),ke=Math.max(...he.map(Ee=>Ee.getChildren().length));if(re>=ke||re<0)throw new Error("Expected table cell to be inside of table row.");const De=h.getHeaderStyles()^kt.COLUMN;for(let Ee=0;Ee<he.length;Ee++){const Pe=he[Ee];if(!Ot(Pe))throw new Error("Expected table row");const Fe=Pe.getChildren();if(re>=Fe.length)continue;const ze=Fe[re];if(!Oe(ze))throw new Error("Expected table cell");J?ze.setHeaderStyles(0,3):ze.setHeaderStyles(De,kt.COLUMN)}F()})},[d,h,F]),pe=m.useCallback(J=>{d.update(()=>{if(c==="row"||c==="column"){const re=_();for(const he of re)he.setBackgroundColor(J);return}const q=r.current;if(p.$isRangeSelection(q)||Ct(q)){const[re]=kn(q.anchor);if(Oe(re)&&re.setBackgroundColor(J),Ct(q)){const he=q.getNodes();for(let ke=0;ke<he.length;ke++){const De=he[ke];Oe(De)&&De.setBackgroundColor(J)}}}})},[d,c,_]),Le=m.useCallback(J=>{d.update(()=>{const q=J==="inherit"||!J?null:J;if(c==="row"||c==="column"){const he=_();for(const ke of he)bf(ke,q);return}const re=r.current;if(p.$isRangeSelection(re)||Ct(re)){const[he]=kn(re.anchor);if(Oe(he)&&bf(he,q),Ct(re)){const ke=re.getNodes();for(let De=0;De<ke.length;De++){const Ee=ke[De];Oe(Ee)&&bf(Ee,q)}}}})},[d,c,_,r]),Se=m.useCallback(()=>{function J(q){const re=q.exportJSON();return typeof q.getChildren=="function"&&(re.children=q.getChildren().map(he=>J(he))),re}d.update(()=>{const q=Yn(h);if(c==="row"&&s!==null){const he=q.getChildren()[s];if(!Ot(he))return;const ke=he.getChildren().filter(Oe).map(Fe=>J(Fe));_a(!0);const Ee=q.getChildren()[s+1];if(!Ot(Ee))return;const Pe=Ee.getChildren().filter(Oe);for(let Fe=0;Fe<Math.min(ke.length,Pe.length);Fe++){Pe[Fe].getChildren().forEach(bt=>bt.remove());for(const bt of ke[Fe].children)Pe[Fe].append(p.$parseSerializedNode(bt));Pe[Fe].setBackgroundColor(ke[Fe].backgroundColor||"");const ze=ke[Fe].headerState&kt.COLUMN;Pe[Fe].setHeaderStyles(ze?kt.COLUMN:kt.NO_STATUS,kt.ROW|kt.COLUMN)}}else if(c==="column"&&o!==null){const he=q.getChildren().filter(Ot).map(Ee=>{const Pe=Ee.getChildAtIndex(o);return Oe(Pe)?J(Pe):null});Gc(!0);const ke=q.getChildren();let De=0;for(const Ee of ke){if(!Ot(Ee))continue;const Pe=he[De];if(De++,!Pe)continue;const Fe=Ee.getChildAtIndex(o+1);if(!Oe(Fe))continue;Fe.getChildren().forEach(bt=>bt.remove());for(const bt of Pe.children)Fe.append(p.$parseSerializedNode(bt));Fe.setBackgroundColor(Pe.backgroundColor||"");const ze=Pe.headerState&kt.ROW;Fe.setHeaderStyles(ze?kt.ROW:kt.NO_STATUS,kt.ROW|kt.COLUMN)}}})},[d,c,h,s,o]),we=m.useCallback(()=>{d.update(()=>{if(c==="row"||c==="column"){const q=_();for(const re of q)re.getChildren().forEach(he=>he.remove()),re.append(p.$createParagraphNode());return}const J=r.current;if(Ct(J)){const q=J.getNodes();for(const re of q)Oe(re)&&(re.getChildren().forEach(he=>he.remove()),re.append(p.$createParagraphNode()))}else{const q=p.$getSelection()||J;if(!q||!p.$isRangeSelection(q)&&!Ct(q))return;const[re]=kn(q.anchor);Oe(re)&&(re.getChildren().forEach(he=>he.remove()),re.append(p.$createParagraphNode()),re.selectStart())}})},[d,r,c,_]),de=m.useCallback(()=>{c==="row"?B():c==="column"?Q():H()},[c,B,Q,H]),ne=m.useCallback(J=>{c==="row"||c==="column"?d.update(()=>{const q=_();for(const re of q)re.getChildren().forEach(he=>{p.$isElementNode(he)&&he.setFormat(J)})}):d.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,J)},[d,c,_]),Z=m.useCallback(()=>{d.dispatchCommand(p.INDENT_CONTENT_COMMAND,void 0)},[d]),ce=m.useCallback(()=>{d.dispatchCommand(p.OUTDENT_CONTENT_COMMAND,void 0)},[d]),le=s===0&&Uj(l),se=o===0&&Kj(o||0,l),Y=c==="row"||c==="column",oe=(()=>{if(!Y)return!1;try{return d.getEditorState().read(()=>_().some(q=>q.getColSpan()>1||q.getRowSpan()>1))}catch{return!1}})();return{tableCellNode:h,selectionCounts:C,canMergeCells:b,canUnmergeCell:w,isAllCellsSelected:T,backgroundColor:N,textColor:E,cellAlignment:O,isTableRowHeader:le,isTableCollHeader:se,isFullMenu:Y,isMerged:Y?oe:w,cellMerge:n,menuContext:c,currentIndexRow:s,currentIndexColumn:o,mergeTableCellsAtSelection:R,unmergeTableCellsAtSelection:j,insertTableRowAtSelection:K,insertTableColumnAtSelection:W,toggleTableRowIsHeader:ee,toggleTableColumnIsHeader:ae,duplicateRowOrColumn:Se,clearCellContent:we,handleDelete:de,handleCellBackgroundColor:pe,handleCellTextColor:Le,handleAlignment:ne,handleIndentIncrease:Z,handleIndentDecrease:ce}}const Bn=16,Hn=({children:e,color:n})=>i.jsx("span",{style:{color:n||"var(--mantine-color-gray-6)",display:"flex",alignItems:"center"},children:e}),rR=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:Bn,height:Bn,viewBox:"0 0 16 16",fill:"none",children:i.jsx("path",{d:"M13.4935 7.72982C13.4625 7.09985 13.3233 6.47914 13.0814 5.89518C12.8689 5.38224 12.58 4.90562 12.2259 4.48047L4.48047 12.2259C4.90562 12.58 5.38224 12.8689 5.89518 13.0814C6.56247 13.3578 7.27773 13.5 8 13.5L8.27018 13.4935C8.90015 13.4625 9.52086 13.3233 10.1048 13.0814C10.7721 12.805 11.3786 12.4 11.8893 11.8893C12.4 11.3786 12.805 10.7721 13.0814 10.1048C13.3578 9.43753 13.5 8.72227 13.5 8L13.4935 7.72982ZM2.50651 8.27018C2.53749 8.90015 2.67674 9.52086 2.91862 10.1048C3.13097 10.6175 3.41962 11.0939 3.77344 11.5189L11.5189 3.77344C11.0939 3.41962 10.6175 3.13097 10.1048 2.91862C9.43753 2.64222 8.72227 2.5 8 2.5C7.27773 2.5 6.56247 2.64222 5.89518 2.91862C5.22791 3.19502 4.62139 3.59996 4.11068 4.11068C3.59996 4.62139 3.19502 5.22791 2.91862 5.89518C2.64222 6.56247 2.5 7.27773 2.5 8L2.50651 8.27018ZM14.4922 8.31966C14.4555 9.06405 14.291 9.79761 14.0052 10.4876C13.6786 11.2762 13.1999 11.9928 12.5964 12.5964C11.9928 13.1999 11.2762 13.6786 10.4876 14.0052C9.79761 14.291 9.06405 14.4555 8.31966 14.4922L8 14.5C7.14641 14.5 6.30099 14.3319 5.51237 14.0052C4.72382 13.6786 4.00718 13.1999 3.40365 12.5964C2.80011 11.9928 2.32145 11.2762 1.99479 10.4876C1.70897 9.79761 1.54446 9.06405 1.50781 8.31966L1.5 8C1.5 7.14641 1.66814 6.30099 1.99479 5.51237C2.32145 4.72382 2.80011 4.00719 3.40365 3.40365C4.00719 2.80011 4.72382 2.32145 5.51237 1.99479C6.30099 1.66814 7.14641 1.5 8 1.5C8.85359 1.5 9.69901 1.66814 10.4876 1.99479C11.2762 2.32145 11.9928 2.80011 12.5964 3.40365C13.1999 4.00718 13.6786 4.72382 14.0052 5.51237C14.3319 6.30099 14.5 7.14641 14.5 8L14.4922 8.31966Z",fill:"currentColor"})}),oR=({tableCellNode:e,cellMerge:n,isMenuOpen:t,selectionBeforeMenuOpenedRef:r,currentIndexColumn:o,currentIndexRow:s,tableDom:l,menuContext:c="cell"})=>{const{t:d}=Ze.useTranslation(),{canMergeCells:f,canUnmergeCell:h,isAllCellsSelected:g,backgroundColor:C,textColor:y,cellAlignment:b,isTableRowHeader:x,isTableCollHeader:w,isFullMenu:k,isMerged:T,mergeTableCellsAtSelection:D,unmergeTableCellsAtSelection:N,insertTableRowAtSelection:L,insertTableColumnAtSelection:E,toggleTableRowIsHeader:M,toggleTableColumnIsHeader:O,duplicateRowOrColumn:I,clearCellContent:F,handleDelete:_,handleCellBackgroundColor:R,handleCellTextColor:j,handleAlignment:K,handleIndentIncrease:W,handleIndentDecrease:B}=qb({tableCellNode:e,cellMerge:n,isMenuOpen:t,selectionBeforeMenuOpenedRef:r,currentIndexColumn:o,currentIndexRow:s,tableDom:l,menuContext:c});return i.jsxs(i.Fragment,{children:[i.jsx(nR,{textColor:y,backgroundColor:C,onTextColorChange:j,onBackgroundColorChange:R}),i.jsxs(v.Menu,{trigger:"hover",position:"right-start",offset:{mainAxis:10,alignmentAxis:-5},shadow:"md",children:[i.jsx(v.Menu.Target,{children:i.jsx(v.Menu.Item,{leftSection:i.jsx(Hn,{children:i.jsx(te,{icon:j8,size:Bn})}),rightSection:i.jsx(Hn,{children:i.jsx(te,{icon:lo,size:Bn})}),"data-test-id":"table-alignment",children:d("editor.toolbar.align")})}),i.jsxs(v.Menu.Dropdown,{children:[i.jsx(Vb,{effectiveValue:b||"left",onAlignmentSelect:K,showShortcuts:!0,testScope:"table",renderLeftSection:H=>i.jsx(Hn,{children:i.jsx(te,{icon:H.icon,size:Bn})}),renderTrailingWhenSelected:i.jsx(Hn,{color:"var(--mantine-primary-color-filled)",children:i.jsx(te,{icon:tr,size:Bn})})}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{leftSection:i.jsx(Hn,{children:i.jsx(te,{icon:mk,size:Bn})}),onClick:W,"data-test-id":"table-indent-increase",children:d("editor.table.menu.increaseIndent")}),i.jsx(v.Menu.Item,{leftSection:i.jsx(Hn,{children:i.jsx(te,{icon:pk,size:Bn})}),onClick:B,"data-test-id":"table-indent-decrease",children:d("editor.table.menu.decreaseIndent")})]})]}),k&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Divider,{}),(c==="row"&&s===0||c==="column"&&o===0)&&i.jsx(v.Menu.Item,{leftSection:i.jsx(Hn,{children:i.jsx(te,{icon:XC,size:Bn})}),rightSection:i.jsx(v.Switch,{size:"xs",checked:c==="row"?x:w,onChange:()=>{},classNames:{thumb:"switch-no-indicator"},styles:{root:{pointerEvents:"none"}}}),onClick:()=>{c==="row"?M():O(w)},"data-test-id":c==="row"?"table-row-header":"table-column-header",children:d(c==="row"?"editor.table.menu.headerRow":"editor.table.menu.headerColumn")}),i.jsx(v.Menu.Item,{leftSection:i.jsx(Hn,{children:i.jsx(te,{icon:Fc,size:Bn})}),rightSection:i.jsx(v.Switch,{size:"xs",checked:T,onChange:()=>{},styles:{root:{pointerEvents:"none"}}}),onClick:()=>{T?N():D()},"data-test-id":"table-merge-cells",children:d("editor.table.menu.mergeCells")}),c==="row"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{leftSection:i.jsx(Hn,{children:i.jsx(te,{icon:GC,size:Bn})}),"data-test-id":"table-insert-row-above",onClick:()=>L(!1),children:d("editor.table.menu.insertAbove")}),i.jsx(v.Menu.Item,{leftSection:i.jsx(Hn,{children:i.jsx(te,{icon:ZC,size:Bn})}),"data-test-id":"table-insert-row-below",onClick:()=>L(!0),children:d("editor.table.menu.insertBelow")})]}),c==="column"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{leftSection:i.jsx(Hn,{children:i.jsx(te,{icon:HC,size:Bn})}),"data-test-id":"table-insert-column-before",onClick:()=>E(!1),children:d("editor.table.menu.insertLeft")}),i.jsx(v.Menu.Item,{leftSection:i.jsx(Hn,{children:i.jsx(te,{icon:YC,size:Bn})}),"data-test-id":"table-insert-column-after",onClick:()=>E(!0),children:d("editor.table.menu.insertRight")})]}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{leftSection:i.jsx(Hn,{children:i.jsx(te,{icon:uo,size:Bn})}),"data-test-id":"table-duplicate",onClick:I,children:d("editor.table.menu.duplicate")})]}),!k&&n&&(f||h)&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{disabled:g&&!h,leftSection:i.jsx(Hn,{children:i.jsx(te,{icon:Fc,size:Bn})}),rightSection:i.jsx(v.Switch,{size:"xs",checked:T,readOnly:!0,disabled:g&&!h,classNames:{thumb:"switch-no-indicator"},styles:{track:{cursor:"pointer"}}}),onClick:()=>{h?N():f&&D()},"data-test-id":"table-merge-cells",children:d("editor.table.menu.mergeCells")})]}),!k&&i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{leftSection:i.jsx(Hn,{children:i.jsx(rR,{})}),"data-test-id":"table-clear-content",onClick:F,children:d("editor.table.menu.clearContent")}),k&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{color:"red",leftSection:i.jsx(Hn,{color:"var(--mantine-color-red-6)",children:i.jsx(te,{icon:jn,size:Bn})}),"data-test-id":c==="row"?"table-delete-rows":"table-delete-columns",onClick:_,children:d("editor.table.menu.delete")})]})]})},to="light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",sR=[{value:"inherit",nameKey:"default"},{value:"#9775FA",nameKey:"violet"},{value:"#748FFC",nameKey:"indigo"},{value:"#4DABF7",nameKey:"blue"},{value:"#38D9A9",nameKey:"teal"},{value:"#69DB7C",nameKey:"green"},{value:"#FFD43B",nameKey:"yellow"},{value:"#FFA94D",nameKey:"orange"},{value:"#FF8787",nameKey:"red"},{value:"#9F765A",nameKey:"brown"},{value:"#CED4DA",nameKey:"gray"}],iR=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}],aR=({tableCellNode:e,setIsMenuOpen:n,cellMerge:t,isMenuOpen:r,selectionBeforeMenuOpenedRef:o,currentIndexColumn:s,currentIndexRow:l,tableDom:c,menuContext:d="cell",onOpen:f,children:h})=>{const{t:g}=Ze.useTranslation(),[C,{open:y,close:b}]=Sn.useDisclosure(!1),[x,{open:w,close:k}]=Sn.useDisclosure(!1),{backgroundColor:T,textColor:D,isFullMenu:N,isMerged:L,isTableRowHeader:E,isTableCollHeader:M,mergeTableCellsAtSelection:O,unmergeTableCellsAtSelection:I,insertTableRowAtSelection:F,insertTableColumnAtSelection:_,toggleTableRowIsHeader:R,toggleTableColumnIsHeader:j,duplicateRowOrColumn:K,clearCellContent:W,handleDelete:B,handleCellBackgroundColor:H,handleCellTextColor:Q}=qb({tableCellNode:e,cellMerge:t,isMenuOpen:C||x,selectionBeforeMenuOpenedRef:o,currentIndexColumn:s,currentIndexRow:l,tableDom:c,menuContext:d}),ee=m.useMemo(()=>sR.map(({value:Z,nameKey:ce})=>({value:Z,label:g(`editor.toolbar.colorPicker.names.${ce}`)})),[g]),ae=m.useMemo(()=>iR.map(({value:Z,nameKey:ce,border:le})=>({value:Z,label:g(`editor.toolbar.colorPicker.names.${ce}`),border:le})),[g]),pe=m.useMemo(()=>[{key:"textColor",label:g("editor.toolbar.colorPicker.textColors"),type:"text",colors:ee,value:D||"inherit"},{key:"cellBackground",label:g("editor.table.colorPicker.cellBackground"),type:"highlight",colors:ae,value:T||"inherit"}],[D,T,g,ee,ae]),Le=(Z,ce)=>{ce==="textColor"?Q(Z):H(Z)},Se=()=>{f(),n(!0),y()},we=()=>{b(),n(!1)},de=()=>{k(),n(!1)},ne=g(d==="column"?"editor.table.mobile.columnActions":"editor.table.mobile.rowActions");return i.jsxs(i.Fragment,{children:[i.jsx("div",{onClick:Se,style:{display:"contents"},children:h}),i.jsx(En,{opened:C,onClose:we,title:ne,children:i.jsxs(v.Stack,{gap:2,p:0,children:[i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:to,leftSection:i.jsx(te,{icon:rs,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:i.jsx(te,{icon:lo,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{b(),w()},"data-test-id":"table-mobile-color",children:g("editor.table.menu.color")}),N&&i.jsxs(i.Fragment,{children:[(d==="row"&&l===0||d==="column"&&s===0)&&i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:to,leftSection:i.jsx(te,{icon:XC,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:i.jsx(v.Switch,{size:"xs",checked:d==="row"?E:M,onChange:()=>{},styles:{root:{pointerEvents:"none"}}}),onClick:()=>{d==="row"?R():j(M),we()},"data-test-id":d==="row"?"table-mobile-row-header":"table-mobile-column-header",children:g(d==="row"?"editor.table.menu.headerRow":"editor.table.menu.headerColumn")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:to,leftSection:i.jsx(te,{icon:Fc,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:i.jsx(v.Switch,{size:"xs",checked:L,onChange:()=>{},styles:{root:{pointerEvents:"none"}}}),onClick:()=>{L?I():O(),we()},"data-test-id":"table-mobile-merge",children:g("editor.table.menu.mergeCells")}),d==="row"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:to,leftSection:i.jsx(te,{icon:GC,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{F(!1),we()},"data-test-id":"table-mobile-insert-row-above",children:g("editor.table.menu.insertAbove")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:to,leftSection:i.jsx(te,{icon:ZC,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{F(!0),we()},"data-test-id":"table-mobile-insert-row-below",children:g("editor.table.menu.insertBelow")})]}),d==="column"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:to,leftSection:i.jsx(te,{icon:HC,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{_(!1),we()},"data-test-id":"table-mobile-insert-column-left",children:g("editor.table.menu.insertLeft")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:to,leftSection:i.jsx(te,{icon:YC,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{_(!0),we()},"data-test-id":"table-mobile-insert-column-right",children:g("editor.table.menu.insertRight")})]}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:to,leftSection:i.jsx(te,{icon:hu,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{K(),we()},"data-test-id":"table-mobile-duplicate",children:g("editor.table.menu.duplicate")})]}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:to,leftSection:i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",style:{color:"var(--mantine-color-dimmed)"},children:i.jsx("path",{d:"M13.4935 7.72982C13.4625 7.09985 13.3233 6.47914 13.0814 5.89518C12.8689 5.38224 12.58 4.90562 12.2259 4.48047L4.48047 12.2259C4.90562 12.58 5.38224 12.8689 5.89518 13.0814C6.56247 13.3578 7.27773 13.5 8 13.5L8.27018 13.4935C8.90015 13.4625 9.52086 13.3233 10.1048 13.0814C10.7721 12.805 11.3786 12.4 11.8893 11.8893C12.4 11.3786 12.805 10.7721 13.0814 10.1048C13.3578 9.43753 13.5 8.72227 13.5 8L13.4935 7.72982ZM2.50651 8.27018C2.53749 8.90015 2.67674 9.52086 2.91862 10.1048C3.13097 10.6175 3.41962 11.0939 3.77344 11.5189L11.5189 3.77344C11.0939 3.41962 10.6175 3.13097 10.1048 2.91862C9.43753 2.64222 8.72227 2.5 8 2.5C7.27773 2.5 6.56247 2.64222 5.89518 2.91862C5.22791 3.19502 4.62139 3.59996 4.11068 4.11068C3.59996 4.62139 3.19502 5.22791 2.91862 5.89518C2.64222 6.56247 2.5 7.27773 2.5 8L2.50651 8.27018ZM14.4922 8.31966C14.4555 9.06405 14.291 9.79761 14.0052 10.4876C13.6786 11.2762 13.1999 11.9928 12.5964 12.5964C11.9928 13.1999 11.2762 13.6786 10.4876 14.0052C9.79761 14.291 9.06405 14.4555 8.31966 14.4922L8 14.5C7.14641 14.5 6.30099 14.3319 5.51237 14.0052C4.72382 13.6786 4.00718 13.1999 3.40365 12.5964C2.80011 11.9928 2.32145 11.2762 1.99479 10.4876C1.70897 9.79761 1.54446 9.06405 1.50781 8.31966L1.5 8C1.5 7.14641 1.66814 6.30099 1.99479 5.51237C2.32145 4.72382 2.80011 4.00719 3.40365 3.40365C4.00719 2.80011 4.72382 2.32145 5.51237 1.99479C6.30099 1.66814 7.14641 1.5 8 1.5C8.85359 1.5 9.69901 1.66814 10.4876 1.99479C11.2762 2.32145 11.9928 2.80011 12.5964 3.40365C13.1999 4.00718 13.6786 4.72382 14.0052 5.51237C14.3319 6.30099 14.5 7.14641 14.5 8L14.4922 8.31966Z",fill:"currentColor"})}),onClick:()=>{W(),we()},"data-test-id":"table-mobile-clear-content",children:g("editor.table.menu.clearContent")}),N&&i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:to,leftSection:i.jsx(te,{icon:jn,size:16,color:"var(--mantine-color-red-6)"}),onClick:()=>{B(),we()},"data-test-id":d==="row"?"table-mobile-delete-row":"table-mobile-delete-column",children:g("editor.table.menu.delete")})]})}),i.jsx(En,{opened:x,onClose:de,title:g("editor.table.menu.color"),children:i.jsx("div",{style:{maxHeight:"calc(60dvh - 80px)",overflowY:"auto"},children:i.jsx(Mt.ColorPicker.List,{sections:pe,onChange:Le})})})]})},yf=({tableCellNode:e,setIsMenuOpen:n,contextRef:t,cellMerge:r,children:o,tableDom:s,isMenuOpen:l,menuContext:c="cell"})=>{const[d]=it.useLexicalComposerContext(),f=m.useRef(null),h=m.useRef(null),g=m.useRef(null),C=()=>{n(!0),d.read(()=>{const y=qo(e),b=Vo(e);h.current=y,g.current=b;const x=p.$getSelection();Ct(x)?f.current=x.clone():(Dk(e,d),setTimeout(()=>{d.read(()=>{const w=p.$getSelection();f.current=w})},200))})};return Nt?i.jsx(aR,{tableCellNode:e,setIsMenuOpen:n,contextRef:t,cellMerge:r,isMenuOpen:l,tableDom:s,currentIndexColumn:h.current,currentIndexRow:g.current,selectionBeforeMenuOpenedRef:f,menuContext:c,onOpen:C,children:o}):i.jsxs(v.Menu,{onOpen:C,onClose:()=>n(!1),shadow:"md",position:"right",opened:l,transitionProps:Wn,classNames:{dropdown:"table-menu-dropdown"},children:[i.jsx(v.Menu.Target,{children:o}),i.jsx(v.Menu.Dropdown,{children:i.jsx(oR,{isMenuOpen:l,contextRef:t,tableCellNode:e,cellMerge:r,setIsMenuOpen:n,tableDom:s,currentIndexColumn:h.current,currentIndexRow:g.current,selectionBeforeMenuOpenedRef:f,menuContext:c})})]})},uc=12;function lR({anchorElem:e,isShowTableOptions:n,cellMerge:t}){var Re,Ke;const[r]=it.useLexicalComposerContext(),[o,s]=m.useState(!1),[l,c]=m.useState({}),[d,f]=m.useState({}),[h,g]=m.useState({}),[C,y]=m.useState({}),[b,x]=m.useState({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),w=m.useRef(null),k=m.useCallback(ge=>{x(me=>{const Ce=typeof ge=="function"?ge(me):ge,Be=me.row&&!Ce.row,Ye=me.column&&!Ce.column;return(Be||Ye)&&document.body.classList.contains("table-drag-active")?me:Be||Ye?(w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{document.body.classList.contains("table-drag-active")||x($e=>({...$e,row:Be?!1:$e.row,column:Ye?!1:$e.column}))},150),{...Ce,row:Be?me.row:Ce.row,column:Ye?me.column:Ce.column}):(w.current&&(Ce.row||Ce.column)&&(clearTimeout(w.current),w.current=null),Ce)})},[]),[T,D]=m.useState(!1),[N,L]=m.useState(!1),[E,M]=m.useState({}),[O,I]=m.useState({}),[F,_]=m.useState({}),[R,j]=m.useState(!1),[K,W]=m.useState(!1),[B,H]=m.useState(!1),[Q,ee]=m.useState(!1),[ae,pe]=m.useState(!1),[Le,Se]=m.useState(null),[we,de]=m.useState(null),[ne,Z]=m.useState(null),ce=m.useRef(null),le=m.useRef(null),se=m.useRef(null),Y=m.useRef(!1),oe=m.useRef(null),$=m.useRef(!1),J=m.useRef(null),q=m.useRef(new Set),re=m.useRef(null),he=m.useRef(null),ke=m.useRef(null),De=m.useRef(null),Ee=m.useRef(null),Pe=m.useRef(null),{t:Fe}=Ze.useTranslation();Y.current=R||T||N;const ze=Wi(ge=>{if(document.body.classList.contains("table-drag-active")||document.body.classList.contains("table-resize-active"))return;const{isOutside:me,tableDOMNode:Ce,edgeDirection:Be}=cR(ge,r,b.row);J.current=Be;const Ye=ge.target;if(Ye!=null&&Ye.closest(".table-cell-add-container")||Ye!=null&&Ye.closest(".table-row-add-container")||Y.current)return;if(me&&(b.row||b.column)){const Ue=e.querySelectorAll("table.dsd__theme__table");for(const _e of Ue){const Ne=_e.getBoundingClientRect(),Ge=ge.clientY>Ne.bottom-10&&ge.clientY<Ne.bottom+25,We=ge.clientX>Ne.right-10&&ge.clientX<Ne.right+25;if(Ge&&We)return}}if(me&&(b.top||b.bottom||b.left||b.right||b.column||b.row)){if($.current){k(Ue=>({...Ue,top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1})),Pe.current=null;return}if(oe.current&&(oe.current.classList.remove("dsd__theme__tableCellActive"),oe.current=null),ae){if(r.getEditorState().read(()=>Ct(p.$getSelection()))){k(_e=>({..._e,top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1})),Pe.current=null;return}pe(!1),de(null),Se(null),ra(!1)}k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),Pe.current=null;return}if(!Ce)return;ke.current=Ce;let $e=null,st=null,xe=null;r.update(()=>{var Ge,We,lt,Qe,tt,He;const Ue=p.$getSelection();if(Ct(Ue))return;ae&&(pe(!1),de(null),Se(null));const _e=p.$getNearestNodeFromDOMNode(Ce),Ne=J.current;if(!(((Ge=Pe.current)==null?void 0:Ge.__key)===(_e==null?void 0:_e.__key)&&b.options)&&(((We=Pe.current)==null?void 0:We.__key)!==(_e==null?void 0:_e.__key)&&(k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),W(!1),H(!1),ee(!1)),Pe.current=_e,Oe(_e))){const nt=be.$findMatchingParent(_e,ct=>vt(ct));if(!vt(nt))return;if(xe=r.getElementByKey(nt==null?void 0:nt.getKey()),xe){const ct=nt.getChildrenSize(),at=(lt=nt.getChildAtIndex(0))==null?void 0:lt.getChildrenSize(),Ve=Vo(_e),rt=qo(_e);if(De.current=(Qe=xe.firstChild)==null?void 0:Qe.childNodes[Ve+1].firstChild,Ee.current=(He=(tt=xe.firstChild)==null?void 0:tt.childNodes[1])==null?void 0:He.childNodes[rt],Ne==="bottom")$e=_e,Pe.current=null,k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!1});else if(Ne==="right")st=_e,Pe.current=null,k({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!1,options:!1});else{const en=Ve===ct-1,St=rt===at-1;en&&($e=_e),St&&(st=_e),w.current&&(clearTimeout(w.current),w.current=null),x(Tt=>({...Tt,column:St,row:en}))}}}}),setTimeout(()=>{var Ue,_e,Ne,Ge,We;if(!document.body.classList.contains("table-drag-active")&&xe){const{width:lt,y:Qe,left:tt,right:He,bottom:nt,height:ct}=xe.getBoundingClientRect(),{y:at,left:Ve}=e.getBoundingClientRect();if(Pe.current){const St=r.getElementByKey(Pe.current.getKey());if(St!=null){const Tt=St.getBoundingClientRect(),Lt=xe.getBoundingClientRect();if(!Y.current){const Jt=Lt.left+xe.clientWidth;let _t=Tt.right-Ve-8;Tt.right>Jt&&(_t=Jt-Ve-8),_({top:Tt.top-at+Tt.height/2-11,left:_t}),M({top:Tt.top-at+Tt.height/2-11,left:tt-Ve-6}),I({top:Qe-at-6,left:Tt.left-Ve+Tt.width/2-11})}}}if(Ee.current){const{top:St,width:Tt,left:Lt,right:Jt}=Ee.current.getBoundingClientRect(),_t=uc,nn=Lt-Ve-_t/2,Ft=St-at-_t/2;let Yt=Tt+_t+2;Jt>He&&(Yt=Yt-(Jt-He)),g({width:Yt,height:_t,top:Ft,left:nn})}if(De.current){const{top:St,height:Tt}=De.current.getBoundingClientRect(),Lt=uc,Jt=tt-Ve-Lt/2,_t=St-at-Lt/2;y({height:Tt+Lt+2,top:_t,left:Jt})}const rt=(Ue=xe.parentElement)!=null&&Ue.classList.contains("dsd__theme__callout-container")&&document.documentElement.getAttribute("data-mantine-color-scheme")==="light"?"rgba(173, 181, 189, 0.7)":"";if($e){const St=((_e=xe.firstElementChild)==null?void 0:_e.clientWidth)||0,Tt=xe.closest(".dsd__theme__table-scrollable-wrapper"),Lt=Tt==null?void 0:Tt.getBoundingClientRect(),Jt=Lt?Lt.bottom:nt,_t=lt>St?St:lt,nn=Lt?Lt.left-Ve:tt-Ve,Ft=Lt?Math.min(_t,Lt.width):_t;c({left:nn,top:Jt-at+6,width:Ft,padding:0,backgroundColor:rt})}const{right:en}=(Ne=xe.firstElementChild)==null?void 0:Ne.getBoundingClientRect();if(st){Yj(He,(We=(Ge=r._rootElement)==null?void 0:Ge.parentElement)==null?void 0:We.parentElement);const St=Math.min(en,He);f({height:ct,left:St-Ve+6,top:Qe-at,padding:0,backgroundColor:rt})}}},100)},50,150),bt=()=>{k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),oe.current&&(oe.current.classList.remove("dsd__theme__tableCellActive"),oe.current=null),Pe.current=null,D(!1),L(!1),j(!1),W(!1),H(!1),ee(!1),Z(null)},mt=(Ke=(Re=De.current)==null?void 0:Re.parentElement)==null?void 0:Ke.parentElement;m.useEffect(()=>{var ge;if(mt){(ge=he.current)==null||ge.call(he);const me=()=>{document.body.classList.contains("table-drag-active")||bt()},Ce=mt.parentElement;return Ce==null||Ce.addEventListener("scroll",me),he.current=()=>{Ce==null||Ce.removeEventListener("scroll",me)},()=>{var Be;(Be=he.current)==null||Be.call(he),he.current=null}}},[mt]),m.useEffect(()=>{const ge=me=>{var Ce;(Ce=me.target)!=null&&Ce.closest(".TableCellResizer__resizer")&&bt()};return document.addEventListener("mousedown",ge,!0),()=>document.removeEventListener("mousedown",ge,!0)},[]),m.useEffect(()=>{if(!o)return;const ge=me=>{var Ue,_e;const Ce=me.target;if(!Ce||document.body.classList.contains("table-drag-active")||document.body.classList.contains("table-resize-active"))return;const Be=e.querySelectorAll("table.dsd__theme__table");let Ye=null;for(const Ne of Be){const Ge=Ne.getBoundingClientRect();if(me.clientX>Ge.right-10&&me.clientX<Ge.right+25&&me.clientY>Ge.bottom-10&&me.clientY<Ge.bottom+25){Ye=Ne;break}}if(Ye){const Ne=Ye.getBoundingClientRect(),Ge=me.clientX,We=me.clientY,lt=We>Ne.bottom-10&&We<Ne.bottom+25,Qe=Ge>Ne.right-10&&Ge<Ne.right+25;if(lt&&Qe){ze.cancel();const tt=Ye.querySelectorAll("td.dsd__theme__tableCell, th.dsd__theme__tableCell"),He=tt[tt.length-1];if(He&&(ke.current=He),b.row&&b.column)return;const{y:nt,left:ct}=e.getBoundingClientRect(),at=(Ue=Ye.closest)==null?void 0:Ue.call(Ye,".dsd__theme__table-scrollable-wrapper"),Ve=at==null?void 0:at.getBoundingClientRect(),rt=Ve?Math.min(Ne.right,Ve.right):Ne.right;c({top:(Ve?Ve.bottom:Ne.bottom)-nt+6,left:Ve?Ve.left-ct:Ne.left-ct,width:Ve?Math.min(Ne.width,Ve.width):Ne.width,padding:0}),f({top:Ne.top-nt,left:rt-ct+6,height:Ve?Ve.height:Ne.height,padding:0}),k(en=>({...en,row:!0,column:!0}));return}}const $e=e.querySelector(".dsd__theme__tableAddColumns"),st=e.querySelector(".dsd__theme__tableAddRows");{const Ne=me.clientX,Ge=me.clientY;if($e){const We=$e.getBoundingClientRect();if(Ne>=We.left-6&&Ne<=We.right&&Ge>=We.top&&Ge<=We.bottom){ze.cancel();return}}if(st){const We=st.getBoundingClientRect();if(Ne>=We.left&&Ne<=We.right&&Ge>=We.top-6&&Ge<=We.bottom){ze.cancel();return}}}if(Ce.closest(".dsd__theme__tableAddRows")||Ce.closest(".dsd__theme__tableAddColumns")||Ce.closest(".dsd__theme__tableAddCorner")||Ce.closest(".table-cell-action-button-container")||Ce.closest(".table-row-add-container")||Ce.closest(".table-cell-add-container")||Ce.closest('[data-testid^="table-"]')||Ce.closest(".mantine-Menu-dropdown")){ze.cancel();return}if(document.body.classList.contains("table-drag-active"))return;const xe=(_e=Ce.closest)==null?void 0:_e.call(Ce,"td.dsd__theme__tableCell, th.dsd__theme__tableCell");if(Ce.className==="ContentEditable__root"||Ce.className==="ContentEditable__root focused"||Ce.className==="dsd__theme__table-scrollable-wrapper"||Ce.className==="content-editable-wrapper"){const Ne="td.dsd__theme__tableCell, th.dsd__theme__tableCell",Ge=document.elementFromPoint(me.x-20,me.y),We=document.elementFromPoint(me.x,me.y-20),lt=Ge==null?void 0:Ge.closest(Ne),Qe=We==null?void 0:We.closest(Ne);if(lt&&Qe){ze.cancel();const tt=Qe.closest("table.dsd__theme__table");if(tt){const He=tt.querySelectorAll("td.dsd__theme__tableCell, th.dsd__theme__tableCell");ke.current=He[He.length-1]||Qe}else ke.current=Qe;if(b.row&&b.column)return;if(tt){const He=tt.getBoundingClientRect(),{y:nt,left:ct}=e.getBoundingClientRect(),at=tt.closest(".dsd__theme__table-scrollable-wrapper"),Ve=at==null?void 0:at.getBoundingClientRect(),rt=Ve?Math.min(He.right,Ve.right):He.right;c({top:(Ve?Ve.bottom:He.bottom)-nt+6,left:Ve?Ve.left-ct:He.left-ct,width:Ve?Math.min(He.width,Ve.width):He.width,padding:0}),f({top:He.top-nt,left:rt-ct+6,height:He.height,padding:0})}k(He=>({...He,row:!0,column:!0}));return}if(lt){ze.cancel(),ke.current=lt;const tt=lt.closest("table.dsd__theme__table");if(tt){const He=tt.getBoundingClientRect(),{y:nt,left:ct}=e.getBoundingClientRect(),at=tt.closest(".dsd__theme__table-scrollable-wrapper"),Ve=at==null?void 0:at.getBoundingClientRect(),rt=Ve?Math.min(He.right,Ve.right):He.right;f({top:He.top-nt,left:rt-ct+6,height:He.height,padding:0}),k(en=>({...en,column:!0}))}return}if(Qe){ze.cancel(),ke.current=Qe;const tt=Qe.closest("table.dsd__theme__table");if(tt){const He=tt.getBoundingClientRect(),{y:nt,left:ct}=e.getBoundingClientRect(),at=tt.closest(".dsd__theme__table-scrollable-wrapper"),Ve=at==null?void 0:at.getBoundingClientRect();c({top:(Ve?Ve.bottom:He.bottom)-nt+6,left:Ve?Ve.left-ct:He.left-ct,width:Ve?Math.min(He.width,Ve.width):He.width,padding:0}),k(rt=>({...rt,row:!0}))}return}}if(xe){if($.current){r.read(()=>{var Ge,We;const Ne=p.$getNearestNodeFromDOMNode(xe);if(Oe(Ne)){const lt=be.$findMatchingParent(Ne,Qe=>vt(Qe));if(vt(lt)){const Qe=lt.getChildrenSize(),tt=(Ge=lt.getChildAtIndex(0))==null?void 0:Ge.getChildrenSize(),He=Vo(Ne),nt=qo(Ne),ct=He===Qe-1,at=nt===tt-1,Ve=xe.closest("table.dsd__theme__table"),rt=(We=oe.current)==null?void 0:We.closest("table.dsd__theme__table");if(Ve&&rt&&Ve!==rt&&(ct||at)){const St=Ve.getBoundingClientRect(),{y:Tt,left:Lt}=e.getBoundingClientRect();if(r.getElementByKey(lt.getKey()),ct&&(ke.current=xe,c({left:St.left-Lt,top:St.bottom-Tt+6,width:St.width,padding:0})),at){const Jt=Ve.closest(".dsd__theme__table-scrollable-wrapper"),_t=Jt==null?void 0:Jt.getBoundingClientRect(),nn=_t?Math.min(St.right,_t.right):St.right;ke.current=xe,f({top:St.top-Tt,left:nn-Lt+6,height:St.height,padding:0})}}k(St=>({...St,row:ct,column:at}))}}});return}r.read(()=>{var Ge;const Ne=p.$getNearestNodeFromDOMNode(xe);if(Oe(Ne)){const We=be.$findMatchingParent(Ne,lt=>vt(lt));if(vt(We)){const lt=We.getChildrenSize(),Qe=(Ge=We.getChildAtIndex(0))==null?void 0:Ge.getChildrenSize(),tt=Vo(Ne),He=qo(Ne),nt=tt===lt-1,ct=He===Qe-1;if(w.current&&(clearTimeout(w.current),w.current=null),nt||ct){const at=r.getElementByKey(We.getKey());if(at){const Ve=at.querySelector("table.dsd__theme__table")||at,rt=Ve.getBoundingClientRect(),{y:en,left:St}=e.getBoundingClientRect(),Tt=Ve.closest(".dsd__theme__table-scrollable-wrapper"),Lt=Tt==null?void 0:Tt.getBoundingClientRect();if(nt&&(ke.current=xe,c({top:(Lt?Lt.bottom:rt.bottom)-en+6,left:Lt?Lt.left-St:rt.left-St,width:Lt?Math.min(rt.width,Lt.width):rt.width,padding:0})),ct){ke.current=xe;const Jt=Lt?Math.min(rt.right,Lt.right):rt.right;f({top:rt.top-en,left:Jt-St+6,height:Lt?Lt.height:rt.height,padding:0})}}}x(at=>({...at,row:nt,column:ct}))}}});return}$.current?(b.row||b.column)&&k(Ne=>({...Ne,row:!1,column:!1})):(b.row||b.column)&&ze(me)};return document.addEventListener("mousemove",ge),()=>{document.removeEventListener("mousemove",ge)}},[o,ze,b.options,b.row,b.column]),m.useEffect(()=>{if(!o)return;const ge=me=>{var $e;ze.cancel(),J.current=null;const Ce=me.target;if(Y.current)return;const Be=r.getEditorState().read(()=>p.$getSelection());if(Ct(Be))return;const Ye=($e=Ce==null?void 0:Ce.closest)==null?void 0:$e.call(Ce,"td.dsd__theme__tableCell, th.dsd__theme__tableCell");if(!Ye){$.current=!1,bt();return}me.shiftKey||($.current=!0,ke.current=Ye,oe.current&&(oe.current.classList.remove("dsd__theme__tableCellActive"),oe.current=null),pe(!1),de(null),Se(null),ra(!1),r.update(()=>{var nt,ct,at,Ve;const st=p.$getNearestNodeFromDOMNode(Ye);if(!Oe(st))return;const xe=p.$getSelection();Ct(xe)&&st.selectStart();const Ue=be.$findMatchingParent(st,rt=>vt(rt));if(!vt(Ue))return;const _e=r.getElementByKey(Ue.getKey());if(!_e)return;const Ne=Ue.getChildrenSize(),Ge=(nt=Ue.getChildAtIndex(0))==null?void 0:nt.getChildrenSize(),We=Vo(st),lt=qo(st),Qe=We===Ne-1,tt=lt===Ge-1;De.current=(ct=_e.firstChild)==null?void 0:ct.childNodes[We+1].firstChild,Ee.current=(Ve=(at=_e.firstChild)==null?void 0:at.childNodes[1])==null?void 0:Ve.childNodes[lt],Pe.current=st;const He=r.getElementByKey(st.getKey());He&&(He.classList.add("dsd__theme__tableCellActive"),oe.current=He),k({top:!0,bottom:!0,left:!0,right:!0,column:tt,row:Qe,options:!0}),W(!1),H(!1),ee(!1),setTimeout(()=>{var Yt,Vt,Or;const{width:rt,y:en,left:St,right:Tt,bottom:Lt,height:Jt}=_e.getBoundingClientRect(),{y:_t,left:nn}=e.getBoundingClientRect();if(Pe.current){const Je=r.getElementByKey(Pe.current.getKey());if(Je){const yt=Je.getBoundingClientRect(),fo=_e.getBoundingClientRect().left+_e.clientWidth;let zn=yt.right-nn-8;yt.right>fo&&(zn=fo-nn-8),_({top:yt.top-_t+yt.height/2-11,left:zn}),M({top:yt.top-_t+yt.height/2-11,left:St-nn-6}),I({top:en-_t-6,left:yt.left-nn+yt.width/2-11})}}if(Ee.current){const{top:Je,width:yt,left:yn,right:fo}=Ee.current.getBoundingClientRect(),zn=uc;let ll=yt+zn+2;fo>Tt&&(ll-=fo-Tt),g({width:ll,height:zn,top:Je-_t-zn/2,left:yn-nn-zn/2})}if(De.current){const{top:Je,height:yt}=De.current.getBoundingClientRect(),yn=uc;y({height:yt+yn+2,top:Je-_t-yn/2,left:St-nn-yn/2})}const Ft=(Yt=_e.parentElement)!=null&&Yt.classList.contains("dsd__theme__callout-container")&&document.documentElement.getAttribute("data-mantine-color-scheme")==="light"?"rgba(173, 181, 189, 0.7)":"";if(Qe){const Je=((Vt=_e.firstElementChild)==null?void 0:Vt.clientWidth)||0,yt=_e.closest(".dsd__theme__table-scrollable-wrapper"),yn=yt==null?void 0:yt.getBoundingClientRect();c({left:yn?yn.left-nn:St-nn,top:(yn?yn.bottom:Lt)-_t+6,width:yn?Math.min(rt>Je?Je:rt,yn.width):rt>Je?Je:rt,padding:0,backgroundColor:Ft})}if(tt){const{right:Je}=(Or=_e.firstElementChild)==null?void 0:Or.getBoundingClientRect(),yt=Math.min(Je,Tt);f({height:Jt,left:yt-nn+6,top:en-_t,padding:0,backgroundColor:Ft})}},100)}))};return document.addEventListener("click",ge),()=>{bt(),ze.cancel(),document.removeEventListener("click",ge)}},[o,ze]),m.useEffect(()=>{if(Pe.current)return(T||N)&&(oe.current&&(oe.current.classList.remove("dsd__theme__tableCellActive"),oe.current),r.getEditorState().read(()=>{const ge=Pe.current;if(!ge||!Oe(ge))return;let me,Ce;try{me=Yn(ge),Ce=me.getChildren()}catch{return}let Be=null,Ye=null;if(T){let $e;try{$e=Vo(ge)}catch{return}const st=Ce[$e];if(Ot(st)){const xe=st.getChildren(),Ue=xe[0],_e=xe[xe.length-1];Oe(Ue)&&Oe(_e)&&(Be=r.getElementByKey(Ue.getKey()),Ye=r.getElementByKey(_e.getKey()))}}if(N){let $e;try{$e=qo(ge)}catch{return}const st=Ce[0],xe=Ce[Ce.length-1];if(Ot(st)&&Ot(xe)){const Ue=st.getChildAtIndex($e),_e=xe.getChildAtIndex($e);Oe(Ue)&&Oe(_e)&&(Be=r.getElementByKey(Ue.getKey()),Ye=r.getElementByKey(_e.getKey()))}}if(Be&&Ye){const{y:$e,left:st}=e.getBoundingClientRect(),xe=Be.getBoundingClientRect(),Ue=Ye.getBoundingClientRect(),_e=Be.closest(".dsd__theme__table-scrollable-wrapper"),Ne=_e==null?void 0:_e.getBoundingClientRect(),Ge=Math.min(xe.top,Ue.top),We=Math.max(xe.bottom,Ue.bottom),lt=Math.min(xe.left,Ue.left),Qe=Math.max(xe.right,Ue.right),tt=Ne?Math.max(Ge,Ne.top):Ge,He=Ne?Math.min(We,Ne.bottom):We,nt=Ne?Math.max(lt,Ne.left):lt,ct=Ne?Math.min(Qe,Ne.right):Qe;ct>nt&&He>tt&&de({top:tt-$e-1,left:nt-st,width:ct-nt,height:He-tt+1})}})),()=>{de(null)}},[T,N,r,e]),m.useEffect(()=>r.registerUpdateListener(({editorState:ge})=>{ge.read(()=>{const me=p.$getSelection();if(Ct(me)){$.current=!1,oe.current&&(oe.current.classList.remove("dsd__theme__tableCellActive"),oe.current=null);const Ce=me.anchor.getNode(),Be=Oe(Ce)?Ce:be.$findMatchingParent(Ce,Oe),Ye=me.focus.getNode(),$e=Oe(Ye)?Ye:be.$findMatchingParent(Ye,Oe);if(!Oe(Be)||!Oe($e))return;const st=r.getElementByKey(Be.getKey()),xe=r.getElementByKey($e.getKey());if(!st||!xe)return;const{y:Ue,left:_e}=e.getBoundingClientRect(),Ne=st.getBoundingClientRect(),Ge=xe.getBoundingClientRect(),We=Math.min(Ne.top,Ge.top),lt=Math.max(Ne.bottom,Ge.bottom),Qe=Math.min(Ne.left,Ge.left),tt=Math.max(Ne.right,Ge.right);Se(Be),_({top:(We+lt)/2-Ue-11,left:tt-_e-8}),de({top:We-Ue,left:Qe-_e,width:tt-Qe,height:lt-We}),pe(!0),k(nt=>({...nt,options:!0})),ra(!0);const He=Yn(Be).getKey();requestAnimationFrame(()=>{const nt=r.getElementByKey(He),ct=nt==null?void 0:nt.querySelectorAll(".dsd__theme__tableCell");ct==null||ct.forEach(at=>{const Ve=at;Ve.style.backgroundColor==="rgb(172, 206, 247)"&&(Ve.style.backgroundColor=""),Ve.style.backgroundImage=""})});return}ae&&!Ct(me)&&!Y.current&&(pe(!1),de(null),Se(null),ra(!1))})}),[r,e,ae]),m.useEffect(()=>{const ge=()=>{document.body.classList.contains("table-drag-active")||(pe(!1),de(null),Se(null),ra(!1),oe.current&&(oe.current.classList.remove("dsd__theme__tableCellActive"),oe.current=null),$.current=!1,r.update(()=>{p.$setSelection(null)}))},me=e.querySelectorAll(".dsd__theme__table-scrollable-wrapper");return me.forEach(Ce=>Ce.addEventListener("scroll",ge,{passive:!0})),()=>me.forEach(Ce=>Ce.removeEventListener("scroll",ge))},[r,e]),m.useEffect(()=>be.mergeRegister(r.registerMutationListener(Yr,ge=>{r.getEditorState().read(()=>{for(const[me,Ce]of ge)switch(Ce){case"created":q.current.add(me),re.current=r.getElementByKey(me),s(q.current.size>0);break;case"destroyed":q.current.delete(me),s(q.current.size>0);break;case"updated":document.body.classList.contains("table-drag-active")||s(!0);const Be=r.getElementByKey(me);re.current=Be;break}})})),[r]),m.useEffect(()=>{var Be,Ye,$e,st,xe,Ue;if(!b.row&&!b.column)return;const ge=((Ye=(Be=ke.current)==null?void 0:Be.closest)==null?void 0:Ye.call(Be,"table.dsd__theme__table"))||((st=($e=re.current)==null?void 0:$e.querySelector)==null?void 0:st.call($e,"table.dsd__theme__table"))||((Ue=(xe=re.current)==null?void 0:xe.closest)==null?void 0:Ue.call(xe,"table.dsd__theme__table"));if(!ge)return;let me=0;const Ce=new ResizeObserver(()=>{cancelAnimationFrame(me),me=requestAnimationFrame(()=>{if(document.body.classList.contains("table-drag-active"))return;const _e=ge.getBoundingClientRect(),Ne=e.getBoundingClientRect(),Ge=ge.closest(".dsd__theme__table-scrollable-wrapper"),We=Ge==null?void 0:Ge.getBoundingClientRect(),lt=We?Math.min(_e.right,We.right):_e.right,Qe=e.querySelector(".dsd__theme__tableAddRows"),tt=e.querySelector(".dsd__theme__tableAddColumns"),He=e.querySelector(".dsd__theme__tableAddCorner");if(Qe){const nt=We?We.left-Ne.left:_e.left-Ne.left,ct=We?Math.min(_e.width,We.width):_e.width,at=We?We.bottom:_e.bottom;Qe.style.top=`${at-Ne.y+6}px`,Qe.style.left=`${nt}px`,Qe.style.width=`${ct}px`}tt&&(tt.style.top=`${_e.top-Ne.y}px`,tt.style.left=`${lt-Ne.left+6}px`,tt.style.height=`${_e.height}px`),He&&(He.style.top=`${_e.bottom-Ne.y+6}px`,He.style.left=`${lt-Ne.left+6}px`)})});return Ce.observe(ge),()=>{cancelAnimationFrame(me),Ce.disconnect()}},[b.row,b.column,e]);const Ht=ge=>{r.update(()=>{if(ke.current){const me=p.$getNearestNodeFromDOMNode(ke.current);ge?(me==null||me.selectNext(),_a(),bt()):(me==null||me.selectEnd(),Gc(),bt())}})},Pt=20,V=60,fe=m.useCallback((ge,me)=>{var Qe,tt;me.preventDefault(),me.stopPropagation(),w.current&&(clearTimeout(w.current),w.current=null),x(He=>({...He,row:ge==="row"||ge==="both"||He.row,column:ge==="column"||ge==="both"||He.column}));const Ce=me.clientX,Be=me.clientY;let Ye=0,$e=0;const st=2,xe=2;let Ue=st,_e=xe;const Ne=ke.current||re.current;if(Ne){const He=((Qe=Ne.closest)==null?void 0:Qe.call(Ne,"table"))||((tt=Ne.querySelector)==null?void 0:tt.call(Ne,"table"));if(He){Ue=He.querySelectorAll("tr").length;const nt=He.querySelector("tr");_e=nt?nt.querySelectorAll("td, th").length:xe}}const Ge=He=>{var St,Tt,Lt,Jt,_t,nn;He.preventDefault(),We||(We=!0,w.current&&(clearTimeout(w.current),w.current=null),x({top:!1,bottom:!1,left:!1,right:!1,column:ge==="column"||ge==="both",row:ge==="row"||ge==="both",options:!1})),(St=window.getSelection())==null||St.removeAllRanges();const nt=He.clientX-Ce,ct=He.clientY-Be;let at=ct,Ve=nt;if(ge==="both"){const Ft=Math.floor(ct/Pt),Yt=Math.floor(nt/V),Vt=Math.abs(Ft)>=Math.abs(Yt)?Ft:Yt;at=Vt*Pt,Ve=Vt*V}if(ge==="row"||ge==="both"){const Ft=Math.floor(at/Pt);for(;Ye<Ft;)try{r.update(()=>{if(ke.current){const Yt=p.$getNearestNodeFromDOMNode(ke.current);Yt==null||Yt.selectNext(),_a()}}),Ye++}catch{break}for(;Ye>Ft&&!(Ue+Ye<=st);)try{r.update(()=>{if(ke.current){const Vt=p.$getNearestNodeFromDOMNode(ke.current);Vt==null||Vt.selectEnd()}DA()}),Ye--}catch{break}}if(ge==="column"||ge==="both"){const Ft=Math.floor(Ve/V);for(;$e<Ft;)try{r.update(()=>{if(ke.current){const Vt=p.$getNearestNodeFromDOMNode(ke.current);Vt==null||Vt.selectEnd(),Gc()}}),$e++;const Yt=(Lt=(Tt=ke.current)==null?void 0:Tt.closest)==null?void 0:Lt.call(Tt,".dsd__theme__table-scrollable-wrapper");Yt&&(Yt.scrollLeft=Yt.scrollWidth)}catch{break}for(;$e>Ft&&!(_e+$e<=xe);)try{r.update(()=>{if(ke.current){const Vt=p.$getNearestNodeFromDOMNode(ke.current);Vt==null||Vt.selectEnd()}OA()}),$e--}catch{break}}const rt=((Jt=ke.current)!=null&&Jt.isConnected?ke.current:null)||re.current,en=((_t=rt==null?void 0:rt.closest)==null?void 0:_t.call(rt,"table"))||((nn=rt==null?void 0:rt.querySelector)==null?void 0:nn.call(rt,"table"));if(en){const Ft=en.getBoundingClientRect();if(Ft.width<=0)return;const{y:Yt,left:Vt}=e.getBoundingClientRect(),Or=en.closest(".dsd__theme__table-scrollable-wrapper"),Je=Or==null?void 0:Or.getBoundingClientRect(),yt=Je?Math.min(Ft.right,Je.right):Ft.right,yn=Je?Math.min(Ft.width,Je.width):Ft.width,fo=Je?Je.left-Vt:Ft.left-Vt;c(zn=>({...zn,top:(Je?Je.bottom:Ft.bottom)-Yt+6,left:fo,width:yn})),f(zn=>({...zn,top:Ft.top-Yt,left:yt-Vt+6,height:Ft.height}))}};document.body.style.userSelect="none",document.body.classList.add("table-drag-active");let We=!1;const lt=()=>{document.removeEventListener("mousemove",Ge),document.removeEventListener("mouseup",lt),document.body.style.cursor="",document.body.style.userSelect="",document.body.classList.remove("table-drag-active"),We||((ge==="row"||ge==="both")&&Ht(!0),(ge==="column"||ge==="both")&&Ht(!1)),k(He=>({...He,row:ge==="row"||ge==="both",column:ge==="column"||ge==="both"}))};document.body.style.cursor=ge==="row"?"row-resize":ge==="column"?"col-resize":"nwse-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",Ge),document.addEventListener("mouseup",lt)},[r,bt]);return window.matchMedia("(pointer: coarse)").matches,i.jsxs(i.Fragment,{children:[we&&i.jsx("div",{style:{position:"absolute",boxSizing:"border-box",top:we.top,left:we.left,width:we.width,height:we.height,border:"1.5px solid var(--mantine-color-blue-outline, #228be6)",pointerEvents:"none",zIndex:5},"data-testid":"table-multi-cell-border"}),i.jsx(v.Transition,{mounted:!!((Pe.current||Le)&&b.options),transition:"fade",duration:300,timingFunction:"ease",children:ge=>{var me;return i.jsx("div",{className:"table-cell-action-button-container","data-testid":"table-cell-menu-button",style:{...ge,...F},onMouseDown:Ce=>{ae&&Ce.stopPropagation()},onMouseEnter:()=>W(!0),onMouseLeave:()=>{R||W(!1)},children:(Pe.current||Le)&&i.jsx(yf,{isMenuOpen:R,contextRef:se,tableCellNode:Le||Pe.current,cellMerge:t,setIsMenuOpen:Ce=>{j(Ce),Ce||W(!1)},tableDom:((me=ke.current)==null?void 0:me.closest("table.dsd__theme__table"))||re.current,menuContext:"cell",children:i.jsx("div",{ref:se,style:{width:14,height:22,boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:K||R?4:0,backgroundColor:K||R?"var(--mantine-color-blue-light-color, #228be6)":"transparent",border:K||R?"1.5px solid var(--app-root-bg, #f1f5f9)":"none"},children:K||R?i.jsx(te,{icon:Sc,size:10,color:"var(--mantine-color-white, #fff)"}):i.jsx("div",{style:{width:12,height:1.5,transform:"rotate(90deg)",backgroundColor:"var(--mantine-color-blue-outline, #228be6)",borderRadius:100,border:"1.5px solid var(--app-root-bg, #f1f5f9)"}})})})})}}),i.jsx(v.Transition,{mounted:!!(Pe.current&&b.options&&!ae),transition:"fade",duration:300,timingFunction:"ease",children:ge=>{var me;return i.jsx("div",{className:"table-cell-action-button-container","data-testid":"table-row-button",style:{...ge,...E},onMouseEnter:()=>H(!0),onMouseLeave:()=>{T||H(!1)},children:Pe.current&&i.jsx(yf,{isMenuOpen:T,contextRef:ce,tableCellNode:Pe.current,cellMerge:t,setIsMenuOpen:Ce=>{D(Ce),Ce||H(!1)},tableDom:((me=ke.current)==null?void 0:me.closest("table.dsd__theme__table"))||re.current,menuContext:"row",children:i.jsx("div",{ref:ce,style:{width:14,height:22,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:B||T?4:0,backgroundColor:B||T?"var(--mantine-color-blue-light-color, #228be6)":"transparent",border:B||T?"1.5px solid var(--app-root-bg, #f1f5f9)":"none"},children:B||T?i.jsx(te,{icon:Sc,size:10,color:"var(--mantine-color-white, #fff)"}):i.jsx("div",{style:{width:12,height:1.5,transform:"rotate(90deg)",backgroundColor:"var(--mantine-color-gray-light-color, #868e96)",borderRadius:100,border:"1.5px solid var(--app-root-bg, #f1f5f9)"}})})})})}}),i.jsx(v.Transition,{mounted:!!(Pe.current&&b.options&&!ae),transition:"fade",duration:300,timingFunction:"ease",children:ge=>{var me;return i.jsx("div",{className:"table-cell-action-button-container","data-testid":"table-column-button",style:{...ge,...O},onMouseEnter:()=>ee(!0),onMouseLeave:()=>{N||ee(!1)},children:Pe.current&&i.jsx(yf,{isMenuOpen:N,contextRef:le,tableCellNode:Pe.current,cellMerge:t,setIsMenuOpen:Ce=>{L(Ce),Ce||ee(!1)},tableDom:((me=ke.current)==null?void 0:me.closest("table.dsd__theme__table"))||re.current,menuContext:"column",children:i.jsx("div",{ref:le,style:{width:22,height:14,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:Q||N?4:0,backgroundColor:Q||N?"var(--mantine-color-blue-light-color, #228be6)":"transparent",border:Q||N?"1.5px solid var(--app-root-bg, #f1f5f9)":"none"},children:Q||N?i.jsx("span",{style:{transform:"rotate(90deg)",display:"flex"},children:i.jsx(te,{icon:Sc,size:10,color:"var(--mantine-color-white, #fff)"})}):i.jsx("div",{style:{width:12,height:1.5,backgroundColor:"var(--mantine-color-gray-light-color, #868e96)",borderRadius:100,border:"1.5px solid var(--app-root-bg, #f1f5f9)"}})})})})}}),i.jsx(v.Transition,{mounted:b.row,transition:"fade",duration:150,timingFunction:"ease",children:ge=>i.jsx(v.Tooltip,{label:Fe("editor.table.menu.addRowBelow"),position:"bottom",children:i.jsx("button",{className:"dsd__theme__tableAddRows",style:{...ge,...l,display:"flex",alignItems:"center",justifyContent:"center",height:14,borderRadius:4,backgroundColor:"var(--mantine-color-gray-light, rgba(134,142,150,0.1))",border:"none",cursor:"row-resize"},onMouseDown:me=>fe("row",me),children:i.jsx(te,{icon:Ec,size:12,color:"var(--mantine-color-gray-light-color, #868e96)"})})})}),i.jsx(v.Transition,{mounted:b.column,transition:"fade",duration:300,timingFunction:"ease",children:ge=>i.jsx(v.Tooltip,{label:Fe("editor.table.menu.addColAfter"),position:"right",children:i.jsx("button",{className:"dsd__theme__tableAddColumns",style:{...ge,...d,display:"flex",alignItems:"center",justifyContent:"center",width:14,borderRadius:4,backgroundColor:"var(--mantine-color-gray-light, rgba(134,142,150,0.1))",border:"none",cursor:"col-resize"},onMouseDown:me=>fe("column",me),children:i.jsx(te,{icon:Ec,size:12,color:"var(--mantine-color-gray-light-color, #868e96)"})})})}),i.jsx(v.Transition,{mounted:b.row&&b.column,transition:"fade",duration:300,timingFunction:"ease",children:ge=>i.jsx(v.Tooltip,{label:Fe("editor.table.menu.addRowAndCol"),position:"bottom",children:i.jsx("button",{className:"dsd__theme__tableAddCorner",style:{...ge,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",width:14,height:14,padding:0,borderRadius:4,border:"none",cursor:"nwse-resize",backgroundColor:"var(--mantine-color-gray-light, rgba(134,142,150,0.1))",top:l.top??0,left:d.left??0},onMouseDown:me=>fe("both",me),children:i.jsx(te,{icon:Ec,size:12,color:"var(--mantine-color-gray-light-color, #868e96)"})})})})]})}function cR(e,n,t){const r=e.target;let o="";const s=document.querySelector("div.new-paragraph");if(n.read(()=>{const l=p.$getRoot().getLastChild();vt(l)&&!t&&s&&(o="editor",s.style.visibility="hidden")}),r&&(r instanceof HTMLElement||r instanceof SVGElement)){const l="td.dsd__theme__tableCell, th.dsd__theme__tableCell";let c=r.closest(l),d=null;if(r.className==="ContentEditable__root"||r.className==="ContentEditable__root focused"||r.className==="dsd__theme__table-scrollable-wrapper"||r.className==="dsd__theme__callout-wrapper"||r.className==="dsd__theme__layoutItem"||r.className==="dsd__theme__callout-container"||r.className===o){const C=document.elementFromPoint(e.x-40,e.y),y=document.elementFromPoint(e.x,e.y-40);if(C||y){const b=C==null?void 0:C.closest(l),x=y==null?void 0:y.closest(l);b&&r.className!=="dsd__theme__layoutItem"&&(c=b,d="right"),x&&(c=x,d="bottom")}}let f=r.closest(".dsd__theme__tableAddRows")||r.closest(".table-cell-action-button-container")||r.closest(".dsd__theme__tableAddColumns")||r.closest(".dsd__theme__tableAddCorner");const h=r.closest(".mantine-Menu-dropdown"),g=!(c||f||h||r.closest("div.TableCellResizer__resizer"));return g&&!t&&(s==null?void 0:s.style.visibility)==="hidden"&&(s.style.visibility=""),{isOutside:g,tableDOMNode:c,edgeDirection:d}}else return{isOutside:!0,tableDOMNode:null,edgeDirection:null}}function uR({anchorElem:e=document.body,cellMerge:n=!1}){return Dr.createPortal(i.jsx(lR,{isShowTableOptions:!1,cellMerge:n,anchorElem:e}),e)}const ru=624,Qb=9;function dR(e,n,t){return e||`${t("editor.heading.name")} ${n.split("")[1]}`}function fR(e){var t;const n=(t=e==null?void 0:e.getClientRects()[0])==null?void 0:t.y;return n>=ru&&n<=ru+Qb}function dc(e){var t;return((t=e==null?void 0:e.getClientRects()[0])==null?void 0:t.y)<ru}function xf(e){var t;return((t=e==null?void 0:e.getClientRects()[0])==null?void 0:t.y)>=ru+Qb}function hR({tableOfContents:e}){const[n,t]=m.useState(""),r=m.useRef(0),[o]=it.useLexicalComposerContext(),{t:s}=Ze.useTranslation(),[l,c]=m.useState(!1);function d(f,h){o.getEditorState().read(()=>{const g=o.getElementByKey(f);g!==null&&(g.classList.add("ScrollToBlock"),g.scrollIntoView({behavior:"smooth",block:"center"}),t(f),r.current=h,setTimeout(()=>{g.classList.remove("ScrollToBlock")},2e3))})}return m.useEffect(()=>{function f(){if(e.length>0&&r.current<e.length-1){let y=o.getElementByKey(e[r.current][0]);if(y!==null){if(xf(y)){for(;y!==null&&xf(y)&&r.current>0;){const x=o.getElementByKey(e[r.current-1][0]);x!==null&&(dc(x)||xf(x))&&r.current--,y=x}const b=e[r.current][0];t(b)}else if(dc(y)){for(;y!==null&&dc(y)&&r.current<e.length-1;){const x=o.getElementByKey(e[r.current+1][0]);x!==null&&(fR(x)||dc(x))&&r.current++,y=x}const b=e[r.current][0];t(b)}}}else r.current=0}let h;function g(y,b){clearTimeout(h),h=setTimeout(y,b)}function C(){g(f,10)}return document.addEventListener("scroll",C),()=>document.removeEventListener("scroll",C)},[e,o]),e.length<2?i.jsx(i.Fragment,{}):i.jsxs(v.Popover,{opened:l,onClose:()=>c(!1),width:300,position:"left",offset:-55,transitionProps:{transition:{in:{opacity:1,transform:"translateX(0px)"},out:{opacity:0,transform:"translateX(25px)"},transitionProperty:"transform, opacity"},duration:100,exitDelay:50,exitDuration:200},children:[i.jsx(v.Popover.Target,{children:i.jsx(v.Box,{className:"table-of-contents-container",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:i.jsx(v.Box,{className:"table-of-contents",children:i.jsx(v.Stack,{gap:12,style:{alignItems:"flex-end",transition:"all 0.7s"},children:e.map(([f,,h],g)=>i.jsx(v.Box,{onClick:()=>d(f,g),style:{height:4,borderRadius:"4px",cursor:"pointer",backgroundColor:n===f?"light-dark(var(--mantine-color-dark-2), var(--mantine-color-dark-3))":"light-dark(var(--mantine-color-dark-0), var(--mantine-color-dark-2))",width:h==="h1"?"38px":h==="h2"?"25px":"15px",transition:"all 0.7s"}},f))})})})}),i.jsxs(v.Popover.Dropdown,{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),style:{boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",overflowY:"auto",maxHeight:"400px"},children:[i.jsx(v.Text,{size:"xs",children:s("editor.content")}),e.map(([f,h,g],C)=>i.jsx(v.Text,{className:"table-of-contents-item",lineClamp:2,onClick:()=>d(f,C),style:{fontSize:g==="h1"?"1.25rem":g==="h2"?"1rem":"0.875rem",marginLeft:g==="h1"?"0.25rem":g==="h2"?"0.75rem":"2.25rem",color:n===f?"light-dark(var(--mantine-color-blue-6), var(--mantine-color-dark-3))":"light-dark(var(--mantine-color-dark-8), var(--mantine-color-dark-2))"},children:dR(h,g,s)},f))]})]})}function hh(){return i.jsx(cw.TableOfContentsPlugin,{children:e=>i.jsx(hR,{tableOfContents:e})})}function pR({children:e}){const[n,t]=m.useState({cellEditorConfig:null,cellEditorPlugins:null});return i.jsx(Zj.Provider,{value:m.useMemo(()=>({cellEditorConfig:n.cellEditorConfig,cellEditorPlugins:n.cellEditorPlugins,set:(r,o)=>{t({cellEditorConfig:r,cellEditorPlugins:o})}}),[n.cellEditorConfig,n.cellEditorPlugins]),children:e})}function mR({hasCellMerge:e,hasCellBackgroundColor:n}){return Gj({hasCellMerge:e,hasCellBackgroundColor:n,hasTabHandler:!0,hasHorizontalScroll:!0}),null}function gR(e){const{floatingAnchorElem:n}=e,{disable:t}=m.useContext(ut),{settings:{tableCellMerge:r,showTableOfContents:o,tableCellBackgroundColor:s}}=k1();return Vj(),i.jsxs(i.Fragment,{children:[i.jsx(mR,{hasCellMerge:r,hasCellBackgroundColor:s}),!t&&i.jsx(Xj,{}),n&&i.jsxs(i.Fragment,{children:[!t&&i.jsx(uR,{anchorElem:n,cellMerge:!0}),i.jsx("div",{children:o&&i.jsx(hh,{})})]})]})}const CR=[{name:"alert",color:"rgb(250, 82, 82)",icon:i.jsx(ye.IconExclamationCircle,{size:16}),emoji:"❗"},{name:"success",color:"rgb(64, 192, 87)",icon:i.jsx(ye.IconCheck,{size:16}),emoji:"✅"},{name:"warning",color:"rgb(250, 176, 5)",icon:i.jsx(ye.IconAlertTriangle,{size:16}),emoji:"⚠️"}],AR=e=>e.mode==="callout";function bR({anchorElem:e}){const[n]=it.useLexicalComposerContext(),{t}=Ze.useTranslation(),{disable:r}=m.useContext(ut),[o,s]=m.useState(!1),[l,c]=m.useState(null),[d,f]=m.useState({right:"0",top:"0"}),h=m.useRef(null),g=o?"auto":"none",C=Wi(b=>{const{lexicalDOMNode:x,isOutside:w}=Bu(b,"div.dsd__theme__callout-wrapper",["div.dropdown-select-language","div.mantine-Select-option","div.action-menu-container","div.mantine-Menu-dropdown"]);if(w){s(!1);return}if(!x)return;let k=null;if(n.update(()=>{const T=p.$getNearestNodeFromDOMNode(x);ao(T)&&(k=T,c(T.__key))}),k){const{y:T,right:D,left:N}=e.getBoundingClientRect(),{y:L,right:E,left:M}=x.getBoundingClientRect();s(!0),h.current&&(h.current.style.visibility="visible");const O=L-T,I=D-E,F=M-N;f(()=>({right:`${I}px`,left:`${F}px`,top:`${O}px`}))}},50,500);if(m.useEffect(()=>be.mergeRegister(n.registerMutationListener(jo,b=>{n.getEditorState().read(()=>{for(const[x,w]of b)w==="destroyed"&&s(!1)})}),n.registerUpdateListener(({dirtyElements:b,dirtyLeaves:x})=>{o&&(b.size>0||x.size>0)&&n.getEditorState().read(()=>{const w=l!=null?p.$getNodeByKey(l):null;(!w||!ao(w))&&h.current&&(h.current.style.visibility="hidden")})})),[n,o,l]),m.useEffect(()=>(document.addEventListener("mousemove",C),()=>{s(!1),C.cancel(),document.removeEventListener("mousemove",C)}),[C]),r)return null;const y=b=>{n.update(()=>{const x=p.$getNodeByKey(l);ao(x)&&n.update(()=>{const w=AR(b);x.setType(w?b.meta.type:void 0),x.setBackgroundColor(b.value),s(!1)})})};return i.jsx("div",{className:`action-menu-container callout-action ${o?"visible":""}`,ref:h,style:{right:d.right,top:d.top,pointerEvents:g},children:o&&i.jsx(Mt.NewColorPicker,{data:{callout:{label:t("editor.colors.theme"),filled:!0,palette:CR.map(b=>({label:t(`editor.colors.callout.${b.name}`),value:v.alpha(b.color,.19),icon:b.icon,meta:{type:b.name,emoji:b.emoji}}))}},onChange:b=>{y(b)},modes:["callout","background"],hideInherit:!0,target:i.jsx(v.ActionIcon,{variant:"default","aria-label":"Settings",children:i.jsx(mn,{name:"palette",style:{cursor:"pointer"}})}),menuProps:{trigger:"click",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},value:{background:"",callout:""}})})}function yR({anchorElem:e=document.body}){return Dr.createPortal(i.jsx(bR,{anchorElem:e}),(e==null?void 0:e.parentElement)||document.body)}function xR({onClose:e,children:n,title:t,size:r}){return i.jsx(v.Modal,{className:"doc-space-editor-wrapper",size:r,centered:!0,opened:!0,onClose:e,title:t,zIndex:999,children:n})}function B1(e){const[n,t]=m.useState(null),r=m.useCallback(()=>{t(null)},[]),o=m.useMemo(()=>{if(n===null)return null;const{title:l,content:c,closeOnClickOutside:d}=n;return i.jsx(xR,{onClose:r,title:l,size:"md",closeOnClickOutside:d,children:c})},[n,r]),s=m.useCallback((l,c,d=!1)=>{t({closeOnClickOutside:d,content:c(r),title:l})},[r]);return[o,s]}function d2({children:e,onClick:n,"data-test-id":t,title:r,className:o,small:s,...l}){return i.jsx(v.Button,{radius:"sm",size:s?"xs":"sm",variant:"default",onClick:n,"aria-label":r,className:o,"data-test-id":t,...l,children:e})}async function*Jb(e){let n=!1;for(;!n;){const t=await e.read(),{value:r}=t;r!==void 0&&(yield r),n=t.done}}async function vR(e){const n=[];for await(const r of Jb(e))for(let o=0;o<r.length;o+=32768)n.push(String.fromCharCode(...r.subarray(o,o+32768)));return n.join("")}async function wR(e){const n=new CompressionStream("gzip"),t=n.writable.getWriter(),[,r]=await Promise.all([t.write(new TextEncoder().encode(JSON.stringify(e))).then(()=>t.close()),vR(n.readable.getReader())]);return`#doc=${btoa(r).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}`}async function kR(e){const n=/^#doc=(.*)$/.exec(e);if(!n)return null;const t=new DecompressionStream("gzip"),r=t.writable.getWriter(),o=atob(n[1].replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(o.length);for(let d=0;d<o.length;d++)s[d]=o.charCodeAt(d);const l=r.write(s).then(()=>r.close()),c=[];for await(const d of Jb(t.readable.pipeThrough(new TextDecoderStream).getReader()))c.push(d);return await l,JSON.parse(c.join(""))}const SR=p.createCommand("SPEECH_TO_TEXT_COMMAND"),ER="SpeechRecognition"in window||"webkitSpeechRecognition"in window;async function MR(e){const n=JSON.stringify(e.getEditorState());try{await fetch("http://localhost:1235/setEditorState",{body:n,headers:{Accept:"application/json","Content-type":"application/json"},method:"POST"})}catch{}}async function TR(e){const n=JSON.stringify(e.getEditorState());let t=null;try{t=await fetch("http://localhost:1235/validateEditorState",{body:n,headers:{Accept:"application/json","Content-type":"application/json"},method:"POST"})}catch{}if(t!==null&&t.status===403)throw new Error("Editor state validation failed! Server did not accept changes.")}async function LR(e){const n=new URL(window.location.toString());n.hash=await wR(e);const t=n.toString();window.history.replaceState({},"",t),await window.navigator.clipboard.writeText(t)}function NR({isRichText:e,shouldPreserveNewLinesInMarkdown:n}){const[t]=it.useLexicalComposerContext(),[r,o]=m.useState(()=>t.isEditable()),[s,l]=m.useState(!1),[c,d]=m.useState(!1),[f,h]=m.useState(!0),[g,C]=B1(),y=xu(),b=!1;m.useEffect(()=>{T0.isCollab||kR(window.location.hash).then(w=>{w&&w.source==="Playground"&&(t.setEditorState(Ql.editorStateFromSerializedDocument(t,w)),t.dispatchCommand(p.CLEAR_HISTORY_COMMAND,void 0))})},[t]),m.useEffect(()=>be.mergeRegister(t.registerEditableListener(w=>{o(w)}),t.registerCommand(uw.CONNECTED_COMMAND,w=>(d(w),!1),p.COMMAND_PRIORITY_EDITOR)),[t]),m.useEffect(()=>t.registerUpdateListener(({dirtyElements:w,prevEditorState:k,tags:T})=>{!r&&w.size>0&&!T.has(p.HISTORIC_TAG)&&!T.has(p.COLLABORATION_TAG)&&TR(t),t.getEditorState().read(()=>{const N=p.$getRoot().getChildren();if(N.length>1)h(!1);else if(p.$isParagraphNode(N[0])){const L=N[0].getChildren();h(L.length===0)}else h(!1)})}),[t,r]);const x=m.useCallback(()=>{t.update(()=>{var D;const w=p.$getRoot(),k=w.getFirstChild();let T=null;if(Ut.$isCodeNode(k))T=k;else if(k instanceof p.ElementNode){const L=(((D=k.getChildren)==null?void 0:D.call(k))??[]).find(E=>Ut.$isCodeNode(E));L&&Ut.$isCodeNode(L)&&(T=L)}if(T&&T.getLanguage()==="markdown")no.$convertFromMarkdownString(T.getTextContent(),Ka,void 0,n);else{for(const E of w.getChildren())if(as(E)){for(const M of E.getChildren())Ut.$isCodeNode(M)&&E.insertBefore(M);E.remove()}const N=no.$convertToMarkdownString(Ka,void 0,n),L=Ut.$createCodeNode("markdown");L.append(p.$createTextNode(N)),w.clear().append(L),N.length===0&&L.select()}})},[t,n]);return i.jsxs("div",{className:"actions",children:[ER&&i.jsx("button",{onClick:()=>{t.dispatchCommand(SR,!s),l(!s)},className:"action-button action-button-mic "+(s?"active":""),title:"Speech To Text","aria-label":`${s?"Enable":"Disable"} speech to text`,children:i.jsx(te,{icon:L8,size:16})}),i.jsx("button",{className:"action-button import",onClick:()=>Ql.importFile(t),title:"Import","aria-label":"Import editor state from JSON",children:i.jsx(te,{icon:R8,size:16})}),i.jsx("button",{className:"action-button export",onClick:()=>Ql.exportFile(t,{fileName:`Playground ${new Date().toISOString()}`,source:"Playground"}),title:"Export","aria-label":"Export editor state to JSON",children:i.jsx(te,{icon:I8,size:16})}),i.jsx("button",{className:"action-button share",disabled:T0.isCollab,onClick:()=>LR(Ql.serializedDocumentFromEditorState(t.getEditorState(),{source:"Playground"})).then(()=>y("URL copied to clipboard"),()=>y("URL could not be copied to clipboard")),title:"Share","aria-label":"Share Playground link to current editor state",children:i.jsx(te,{icon:lk,size:16})}),i.jsx("button",{className:"action-button clear",disabled:f,onClick:()=>{C("Clear editor",w=>i.jsx(jR,{editor:t,onClose:w}))},title:"Clear","aria-label":"Clear editor contents",children:i.jsx(te,{icon:hk,size:16})}),i.jsx("button",{className:`action-button ${r?"lock":"unlock"}`,onClick:()=>{r&&MR(t),t.setEditable(!t.isEditable())},title:"Read-Only Mode","aria-label":`${r?"Lock":"Unlock"} read-only mode`,children:i.jsx(te,{icon:r?W8:z8,size:16})}),i.jsx("button",{className:"action-button",onClick:x,title:"Convert From Markdown","aria-label":"Convert from markdown",children:i.jsx(te,{icon:G8,size:16})}),b,g]})}function jR({editor:e,onClose:n}){return i.jsxs(i.Fragment,{children:["Are you sure you want to clear the editor?",i.jsxs("div",{className:"Modal__content",children:[i.jsx(d2,{onClick:()=>{e.dispatchCommand(p.CLEAR_EDITOR_COMMAND,void 0),e.focus(),n()},children:"Clear"})," ",i.jsx(d2,{onClick:()=>{e.focus(),n()},children:"Cancel"})]})]})}const f2=(e,n,t)=>{if(!e)return null;let r=null;return t.read(()=>{const o=p.$getNearestNodeFromDOMNode(e);r=o&&be.$getNearestNodeOfType(o,n)}),r},RR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAACWCAYAAAAff3ceAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAGPRSURBVHgB7b1LyG1RUucZcfJW01iZpkU1dKcPqBr4mlWrAxFUUFAHCgWCIx0UOHPiY644VFBHjhzUQB3bDQrqQMGJImIXCIIKnUX7yFFDolbVwPSLuufcHWv/4h+x9jlXHeaC7ztn770e8fxHrLXX3sftffnsZz/37+IT8Z/ff/0P7/++zL5Yvli+WL5YXixh9n/d/pX/2L//zGf+qx9g8v/8m09/6su+9FP/Om7uftYzn9sb69im3gt02LOxdvUC191eo9XsepyPLR8rB9bZ8bSTx6t0P6u3G8vsX04uH1tesYOP1ZvaiW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06erP2I8LMzM/wrMz/AAZERERER4yOyz+E2VlMzMzMzP3Ieg6CxmfwCIiIiI0d2WymZmeiaNcd2fUREbI6ER8OIsWPC+oufqzMzPxZmZ6ERERGyPMRcQ/IiIiIiIiIjZFjEWNjERER1IiIiPzGfERYxpn+HZ+LMzM/hY2NjY2P8T//2Q==",hn={header:(e,n)=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsxs(v.Group,{p:8,gap:0,className:"hintBoard",children:[i.jsx(v.Title,{order:n,mb:"sm",mt:12-(n-1)*4,h:40-(n-1)*4,children:e("editor.heading.name")+` H${n}`}),i.jsx(v.Text,{size:"sm",h:80,lh:"21px",children:e("editor.menu.heading.hintShowCase",{projectName:"Layers"})})]})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e(`editor.menu.heading.h${n}.hintDescription`)})]}),ol:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:i.jsx(v.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:i.jsxs(v.List,{type:"ordered",mt:2,children:[i.jsx(v.List.Item,{fz:"sm",children:e("editor.menu.lists.numberList.hint.firstItem")}),i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondItem")}),i.jsxs(v.List,{pl:18,listStyleType:"upper-alpha",children:[i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubItem")}),i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubItem")}),i.jsxs(v.List,{pl:22,withPadding:!0,listStyleType:"lower-roman",children:[i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubSubItem")}),i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.lists.numberList.hint.description")})]}),ul:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:i.jsx(v.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:i.jsxs(v.List,{type:"unordered",mt:2,children:[i.jsx(v.List.Item,{fz:"sm",children:e("editor.menu.lists.numberList.hint.firstItem")}),i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondItem")}),i.jsxs(v.List,{pl:18,listStyleType:"circle",children:[i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubItem")}),i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubItem")}),i.jsxs(v.List,{pl:22,withPadding:!0,listStyleType:"square",children:[i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubSubItem")}),i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.lists.bulletList.hint.description")})]}),checkList:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:i.jsx(v.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",pt:"sm",children:i.jsxs(v.Checkbox.Group,{defaultValue:["indeterminate","checked"],mt:4,children:[i.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,pb:3,label:e("editor.menu.lists.checkList.hint.indeterminate")}),i.jsxs(v.Checkbox.Group,{pl:18,defaultValue:["indeterminate"],children:[i.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:e("editor.menu.lists.checkList.hint.unchecked")}),i.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,py:3,label:e("editor.menu.lists.checkList.hint.indeterminate")}),i.jsxs(v.Checkbox.Group,{pl:18,defaultValue:["check"],children:[i.jsx(v.Checkbox,{value:"check",size:"xs",radius:"sm",py:3,label:e("editor.menu.lists.checkList.hint.checked")}),i.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:e("editor.menu.lists.checkList.hint.unchecked")})]})]}),i.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"checked",pt:3,label:e("editor.menu.lists.checkList.hint.checked")})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.lists.checkList.hint.description")})]}),type:(e,n,t)=>r=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:i.jsxs(v.Group,{p:8,gap:0,w:"100%",h:150,align:"start",wrap:"nowrap",className:"hintBoard dsd__theme__callout-wrapper","data-emoji":e,"data-type":t,style:n?{backgroundColor:n}:void 0,children:[i.jsx(v.Box,{children:i.jsx(v.Text,{w:26,mr:"sm",ta:"center",children:e})}),i.jsx(v.Text,{size:"sm",lh:"21px",children:r("editor.menu.callout.default.hint.body",{projectName:"Layers"})})]})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:r("editor.menu.callout.warning.hint.description")})]}),paragraph:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:i.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.paragraph.hint.text",{projectName:"Layers"})})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.paragraph.hint.description")})]}),quote:e=>i.jsxs(v.Group,{gap:0,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{p:"sm",gap:0,children:i.jsx(v.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:i.jsx(v.Group,{gap:0,className:"quote",children:i.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.quote.hint.text",{projectName:"Layers"})})})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.quote.hint.description")})]}),collapse:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:i.jsx(v.Group,{p:8,pt:"sm",gap:0,w:"100%",h:150,className:"hintBoard",children:i.jsxs(v.List,{type:"unordered",children:[i.jsx(v.List.Item,{icon:i.jsx(ye.IconTriangleFilled,{size:8,className:"rotate-90deg"}),fz:"sm",children:e("editor.menu.main.collapse.hint.firstItemEmpty")}),i.jsx(v.List.Item,{icon:i.jsx(ye.IconTriangleFilled,{size:8,className:"rotate-180deg"}),fz:"sm",mt:2,children:e("editor.menu.main.collapse.hint.secondItem")}),i.jsxs(v.List,{pl:18,listStyleType:"circle",children:[i.jsx(v.List.Item,{fz:"sm",mt:3,icon:i.jsx(ye.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:e("editor.menu.main.collapse.hint.firstSubItemEmpty")}),i.jsx(v.List.Item,{fz:"sm",mt:2,icon:i.jsx(ye.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:e("editor.menu.main.collapse.hint.secondSubItem")}),i.jsxs(v.List,{pl:22,withPadding:!0,listStyleType:"square",children:[i.jsx(v.List.Item,{fz:"sm",mt:2,icon:i.jsx(ye.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:e("editor.menu.main.collapse.hint.firstSubSubItemEmpty")}),i.jsx(v.List.Item,{fz:"sm",mt:2,icon:i.jsx(ye.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:e("editor.menu.main.collapse.hint.secondSubSubItem")})]})]})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.collapse.hint.description")})]}),divider:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:i.jsxs(v.Box,{children:[i.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.horizontal-rule.hint.topText")}),i.jsx(v.Divider,{my:"sm"}),i.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.horizontal-rule.hint.bottomText")})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.horizontal-rule.hint.description")})]}),table:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Group,{gap:0,p:8,pt:"sm",className:"hintBoard",w:276,children:i.jsxs(v.Table,{p:8,withTableBorder:!0,withRowBorders:!0,withColumnBorders:!0,h:150,children:[i.jsx(v.Table.Thead,{children:i.jsxs(v.Table.Tr,{h:58,children:[i.jsxs(v.Table.Th,{fz:"sm",fw:400,miw:177,style:{position:"relative"},children:[i.jsx(v.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:5,top:5},children:i.jsx(mn,{stroke:1,size:10,name:"chevron-down"})}),i.jsx(v.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{left:-7.5,bottom:-7},children:i.jsx(mn,{stroke:1,size:10,name:"plus"})}),i.jsx(v.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:-7.5,top:-7},children:i.jsx(mn,{stroke:1,size:10,name:"plus"})}),e("editor.menu.main.table.hint.firstRow")]}),i.jsx(v.Table.Th,{w:177,fz:"sm",fw:400})]})}),i.jsxs(v.Table.Tbody,{children:[i.jsxs(v.Table.Tr,{h:47,children:[i.jsx(v.Table.Td,{}),i.jsx(v.Table.Td,{})]}),i.jsxs(v.Table.Tr,{children:[i.jsxs(v.Table.Td,{miw:177,children:[" ",i.jsx(v.Checkbox,{mt:-19,radius:"sm",size:"xs",value:"checked",defaultChecked:!0,indeterminate:!0,label:e("editor.menu.lists.checkList.hint.indeterminate")})]}),i.jsx(v.Table.Td,{miw:177,children:i.jsx(v.Text,{fz:"sm",fw:400,children:e("editor.menu.main.table.hint.secondRow")})})]})]})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.table.hint.description")})]}),grid:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Group,{gap:0,p:8,className:"hintBoard",w:276,children:i.jsxs(v.Flex,{align:"flex-start",gap:"sm",children:[i.jsx(v.Text,{size:"sm",lh:"21px",miw:180,children:e("editor.menu.main.grid.hint.firstColumn")}),i.jsx(v.Text,{size:"sm",lh:"21px",miw:180,children:e("editor.menu.main.grid.hint.secondColumn",{projectName:"Layers"})})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.grid.hint.description")})]}),code:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Group,{px:8,gap:0,className:"hintBoard",children:i.jsx(v.Image,{style:{flex:1},radius:"sm",fit:"cover",src:IR,w:"110%",h:"110%"})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.code.hint.description")})]}),image:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Image,{style:{border:"1px solid #E9ECEF",flex:1},radius:"sm",fit:"cover",src:PR,w:"100%",h:"100%"})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.photo.hint.description")})]}),video:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsxs(v.Group,{px:"sm",pt:"sm",gap:0,children:[i.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:BR,w:"100%",h:"100%"}),i.jsx(v.Box,{w:274,style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},children:i.jsx(ye.IconPlayerPlayFilled,{size:32})})]}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.video.hint.description")})]}),audio:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:RR,w:"100%",h:"100%"})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.audio.hint.description")})]}),file:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:DR,w:"100%",h:"100%"})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.file.hint.description")})]}),excalidraw:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:OR,w:"100%",h:"100%"})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.excalidraw.hint.description")})]})};function zr(e,n,t){return t.filter(r=>e(r)).map(r=>n(r))}const _R=["editor.menu.lists.bulletList.keywords.bulletsAlt1","editor.menu.lists.bulletList.keywords.bulletsAlt2"],FR=["editor.menu.main.quote.keywords.quote","editor.menu.main.quote.keywords.mark","editor.menu.main.quote.keywords.citation"],WR=["editor.menu.main.collapse.keywords.collapsibleList","editor.menu.main.collapse.keywords.expandList","editor.menu.main.collapse.keywords.hideList","editor.menu.main.collapse.keywords.turnList"],zR=["editor.menu.main.horizontalRule.keywords.divider","editor.menu.main.horizontalRule.keywords.horizontalLine","editor.menu.main.horizontalRule.keywords.border"],KR=["editor.menu.main.table.keywords.table"],UR=["editor.menu.main.grid.keywords.net","editor.menu.main.grid.keywords.grid","editor.menu.main.grid.keywords.columns"],HR=["editor.menu.main.code.keywords.code","editor.menu.main.code.keywords.snippet"],YR=["editor.menu.media.photo.keywords.picture","editor.menu.media.photo.keywords.display","editor.menu.media.photo.keywords.meme","editor.menu.media.photo.keywords.drawing","editor.menu.media.photo.keywords.memePic"],ZR=["editor.menu.media.form.keywords"],GR=["editor.menu.media.video.keywords.video"],VR=["editor.menu.other.equation.keywords.equation","editor.menu.other.equation.keywords.formula","editor.menu.other.equation.keywords.math","editor.menu.other.equation.keywords.latex","editor.menu.other.equation.keywords.block","editor.menu.other.equation.keywords.expression","editor.menu.other.equation.keywords.tex"],qR=["editor.menu.other.inlineEquation.keywords.equation","editor.menu.other.inlineEquation.keywords.formula","editor.menu.other.inlineEquation.keywords.math","editor.menu.other.inlineEquation.keywords.latex","editor.menu.other.inlineEquation.keywords.inline","editor.menu.other.inlineEquation.keywords.expression","editor.menu.other.inlineEquation.keywords.tex"],h2=(e,n,t)=>{const r=c=>t?zr(t,n,c):[],o=r(_R),s=r([`editor.menu.lists.${e}List.keywords.heading`,`editor.menu.lists.${e}List.keywords.headingList`,`editor.menu.lists.${e}List.keywords.markers`]);return({number:["numberedlist","orderedlist","ol","numbers"],bullet:["bulletedlist","unorderedlist","ul","bullets"],check:["checklist","todolist","check","done","shoppinglist"]}[e]||[]).concat(o,s)},Es=(e,n,t)=>{const r=t?zr(t,n,FR):[],o=t?zr(t,n,WR):[],s=t?zr(t,n,zR):[],l=t?zr(t,n,KR):[],c=t?zr(t,n,UR):[],d=t?zr(t,n,HR):[];switch(e){case"quote":return["blockquote","quote"].concat(r);case"collapse":return["collapse","collapsiblelist","toggle"].concat(o);case"horizontal-rule":return["horizontalrule","divider","hr","line"].concat(s);case"table":return["table","spreadsheet","rows","columns"].concat(l);case"grid":return["columns","layout","grid"].concat(c);case"code":return["javascript","python","js","codeblock","code","snippet"].concat(d)}},fc=(e,n,t)=>{const r=t?zr(t,n,YR):[],o=t?zr(t,n,ZR):[],s=t?zr(t,n,GR):[];switch(e){case"photo":return["image","photo","picture","img","png","jpg","jpeg","media"].concat(r);case"file":return["file","pdf","zip","media"].concat(r);case"excalidraw":return["excalidraw","paint","draw","media"].concat(r);case"audio":return["audio","music"].concat(r);case"form":return["form","embed","media"].concat(o);case"video":return["youtube","rutube","vkvideos","video","mp4","webm","media"].concat(s)}},p2=(e,n,t)=>{const r=l=>t?zr(t,n,l):l.map(c=>n(c)).filter((c,d)=>c!==l[d]),o=r(VR),s=r(qR);switch(e){case"equation":return["equation","formula","math","latex","block","tex","katex","expression"].concat(o);case"equation-inline":return["equation","formula","math","latex","inline","tex","katex","expression"].concat(s)}},QR=[{type:"number",command:ku,name:"editor.menu.lists.numberList.name",iconName:"number",hint:hn.ol,description:"editor.menu.lists.numberList.subtitle"},{type:"bullet",command:o1,name:"editor.menu.lists.bulletList.name",iconName:"bullet",hint:hn.ul,description:"editor.menu.lists.bulletList.subtitle"},{type:"check",command:s1,name:"editor.menu.lists.checkList.name",iconName:"check",hint:hn.checkList,description:"editor.menu.lists.checkList.subtitle"}],JR=[{type:"default",command:"default",name:"editor.menu.callout.default.name",iconName:"defaultOff",hint:hn.type("💫","","default"),description:"editor.menu.callout.default.subtitle"},{type:"alert",command:"alert",name:"editor.menu.callout.alert.name",iconName:"alert",hint:hn.type("❗","","alert"),description:"editor.menu.callout.alert.subtitle"},{type:"success",command:"success",name:"editor.menu.callout.success.name",iconName:"success",hint:hn.type("✅","","success"),description:"editor.menu.callout.success.subtitle"},{type:"warning",command:"warning",name:"editor.menu.callout.warning.name",iconName:"warning",hint:hn.type("⚠️","","warning"),description:"editor.menu.callout.warning.subtitle"}],XR=e=>({1:e("editor.menu.heading.h1.subtitle"),2:e("editor.menu.heading.h2.subtitle"),3:e("editor.menu.heading.h3.subtitle"),4:e("editor.menu.heading.h4.subtitle","Small heading")}),$t=(e,n,t)=>{e.update(()=>{const r=e.__savedDragHandleSelection;r&&!p.$getSelection()&&p.$setSelection(r.clone()),e.__savedDragHandleSelection=null;let o=Qt();if(!t&&((o==null?void 0:o.__type)==="text"||(o==null?void 0:o.__type)==="listitem")){const s=p.$createParagraphNode(),{lexicalNode:l}=vi(o,e,{root:!0,"layout-item":!0,callout:!0,"collapsible-content":!0});s.append(),l==null||l.insertAfter(s).selectStart(),n(s)}else n(o)})};function $R(e){return e?"active dropdown-item-active":""}const Xb={flip:!0,size:{padding:8,apply({availableHeight:e,elements:n}){requestAnimationFrame(()=>{Object.assign(n.floating.style,{maxHeight:`${e>=425?425:e}px`})})}}};function eI(e,n){return e==="swagger"?!0:n}function vf(e,n){e.update(()=>{const t=p.$getSelection();t&&(p.$isNodeSelection(t)&&Eu(t),an.$setBlocksType(p.$getSelection(),n))})}const m2=["figma","miro","lucidchart","tldraw","diagrams","dbdiagram","google-sheets","google-slides","google-drawings","google-forms","google-calendar","google-docs","google-maps","google-drive","airtable","grist","trello","typeform","loom","vimeo","descript","spotify","instagram","github","codepen","valtown"];function tI(e){const n=m2.length,t=r=>{const o=m2.indexOf(r);return o===-1?n:o};return[...e].map((r,o)=>({d:r,index:o})).sort((r,o)=>{const s=t(r.d.platform)-t(o.d.platform);return s!==0?s:r.index-o.index}).map(({d:r})=>r)}function _1({editor:e,isToolbar:n,excludeNodes:t,t:r,exists:o,plugins:s,onTrack:l}){const d=XR(r),f=I=>{switch(I){case 1:return["heading1","hone","h1",r("editor.menu.heading.h1.keywords.headerOne")];case 2:return["heading2","htwo","h2",r("editor.menu.heading.h2.keywords.headerTwo")];case 3:return["heading3","hthree","h3",r("editor.menu.heading.h3.keywords.headerThree")];case 4:return["heading4","hfour","h4",r("editor.menu.heading.h4.keywords.headerFour","heading four")]}},h=I=>r(I),g={1:Hh,2:Yh,3:Zh,4:Ca},C=()=>[1,2,3,4].map(I=>({parentKey:"heading",name:`${r("editor.heading.name")} ${I}`,description:d[I]||"Добавите заголовок",hint:hn.header(r,I),keywords:[`${f(I)}`,`${r(`editor.menu.heading.h${I}.keywords.header${I}`)}`,`${r(`editor.menu.heading.h${I}.keywords.heading`)}`,`${r(`editor.menu.heading.h${I}.keywords.h${I}`)}`],icon:i.jsx(te,{icon:g[I],size:16}),key:`${I}`,hide:t[`${I}`],"data-test-id":`block-type-h${I}`,onSelect:()=>{l==null||l("block_heading_created",{level:I}),$t(e,()=>{vf(e,()=>ln.$createHeadingNode(`h${I}`))},n)}})),y={number:Gh,bullet:Wc,check:Kh},b=()=>QR.map(({type:I,command:F,hint:_,description:R,name:j})=>({parentKey:"list",name:r(j),description:r(R),icon:i.jsx(te,{icon:y[I]||Wc,size:16}),keywords:[`${h2(I,r,o)}`],key:I,hint:_(r),hide:t[I],"data-test-id":`block-type-${I}`,onSelect:()=>{l==null||l(`list_${I}_created`),$t(e,()=>{e.dispatchCommand(F,void 0)},n)}})),x=()=>[{parentKey:"main",name:r("editor.menu.main.paragraph.name"),description:r("editor.menu.main.paragraph.subtitle"),icon:i.jsx(te,{icon:pu,size:16}),keywords:[`${Es("paragraph",r,o)}`],key:"paragraph","data-test-id":"block-type-paragraph",hint:hn.paragraph(r),hide:t.paragraph||!n,onSelect:()=>$t(e,()=>{vf(e,()=>p.$createParagraphNode())},n)},{parentKey:"main",name:r("editor.menu.main.quote.name"),description:r("editor.menu.main.quote.subtitle"),icon:i.jsx(te,{icon:Qh,size:16}),keywords:[`${Es("quote",r,o)}`],key:"quote",hint:hn.quote(r),hide:t.quote,"data-test-id":"block-type-quote",onSelect:()=>{l==null||l("block_quote_created"),$t(e,()=>{vf(e,()=>ln.$createQuoteNode())},n)}},{parentKey:"main",name:r("editor.menu.main.collapse.name"),description:r("editor.menu.main.collapse.subtitle"),icon:i.jsx(te,{icon:X8,size:16}),keywords:[`${Es("collapse",r,o)}`],key:"caret-right",hint:hn.collapse(r),hide:n||t["caret-right"],"data-test-id":"block-type-collapse",onSelect:()=>{l==null||l("block_collapse_created"),$t(e,()=>{e.dispatchCommand($A,void 0)},n)}},{parentKey:"main",name:r("editor.menu.main.horizontal-rule.name"),description:r("editor.menu.main.horizontal-rule.subtitle"),icon:i.jsx(te,{icon:Z8,size:16}),keywords:[`${Es("horizontal-rule",r,o)}`],hint:hn.divider(r),hide:n||t["horizontal-rule"],key:"horizontal-rule","data-test-id":"block-type-horizontal-rule",onSelect:()=>{l==null||l("block_divider_inserted"),$t(e,I=>{const F=I==null?void 0:I.getParent();if(Tr(F)){const _=js.$createHorizontalRuleNode(),R=I==null?void 0:I.replace(_);R==null||R.insertAfter(p.$createParagraphNode())}else e.dispatchCommand(js.INSERT_HORIZONTAL_RULE_COMMAND,void 0);!(I!=null&&I.getTextContent())&&!hs(I==null?void 0:I.getParent())&&(I==null||I.remove())},n)}},{parentKey:"main",name:r("editor.menu.main.table.name"),description:r("editor.menu.main.table.subtitle"),icon:i.jsx(te,{icon:Fc,size:16}),keywords:[`${Es("table",r,o)}`],key:"table",hint:hn.table(r),hide:n||t.table,"data-test-id":"block-type-table",onSelect:()=>{l==null||l("block_table_created"),$t(e,()=>{e.dispatchCommand(Su,{columns:"2",includeHeaders:!1,rows:"2"})},n)}},{parentKey:"main",name:r("editor.menu.main.grid.name"),description:r("editor.menu.main.grid.subtitle"),icon:i.jsx(te,{icon:J8,size:16}),keywords:[`${Es("grid",r,o)}`],hide:n||t.grid,hint:hn.grid(r),key:"grid","data-test-id":"block-type-grid",onSelect:()=>{l==null||l("block_layout_used"),$t(e,()=>{e.dispatchCommand(P1,g1)},n)}},{parentKey:"main",name:r("editor.menu.main.code.name"),description:r("editor.menu.main.code.subtitle"),icon:i.jsx(te,{icon:Ia,size:16}),keywords:[`${Es("code",r,o)}`],key:"code",hint:hn.code(r),hide:t.code,"data-test-id":"block-type-code",onSelect:()=>{l==null||l("block_code_created"),$t(e,()=>{HN(e)},n)}}],w={default:Ff,alert:Fh,success:F8,warning:N8},k=()=>JR.map(({type:I,command:F,hint:_,description:R,name:j})=>({parentKey:"callout",name:r(j),description:r(R),icon:i.jsx(te,{icon:w[I]||Ff,size:16}),keywords:[`${h2(I,r,o)}`,`${r(`editor.menu.callout.${I}.keywords.heading`)}`,`${r(`editor.menu.callout.${I}.keywords.headingList`)}`,`${r(`editor.menu.callout.${I}.keywords.markers`)}`],key:I,hint:_(r),hide:t[I],"data-test-id":`block-type-${I}`,onSelect:()=>{l==null||l("block_callout_created",{type:I}),$t(e,()=>{e.dispatchCommand(Cu,F)},n)}})),T=()=>{const I=C(),F=b(),_=x(),R=k(),j={parentKey:"text",name:r("editor.menu.other.equation.name"),description:r("editor.menu.other.equation.subtitle"),icon:i.jsx(te,{icon:Ra,size:16}),keywords:p2("equation",r,o)||[],key:"equation",hide:n||t.equation,onSelect:()=>{$t(e,()=>{e.dispatchCommand(Da,void 0)},n)}},K=B=>B==="equation"?j:I.find(H=>H.key===B)||F.find(H=>H.key===B)||_.find(H=>H.key===B)||R.find(H=>H.key===B);return["1","caret-right","2","bullet","3","number","4","check","quote","equation","default","alert","success","warning","paragraph"].map(B=>K(B)).filter(B=>!!B&&!B.hide).map(B=>({...B,parentKey:"text"}))},D=()=>[{parentKey:"inline",name:r("editor.menu.other.inlinePageLink.name"),description:r("editor.menu.other.inlinePageLink.subtitle"),icon:i.jsx(te,{icon:ja,size:16}),keywords:["inline","page","page link"],key:"inlinePageLink",hide:n||t.inlinePageLink,onSelect:()=>{$t(e,()=>{e.dispatchCommand(dh,"inline")},n)}},{parentKey:"inline",name:r("editor.menu.other.inlineEquation.name"),description:r("editor.menu.other.inlineEquation.subtitle"),icon:i.jsx(te,{icon:Ra,size:16}),keywords:p2("equation-inline",r,o)||[],key:"equation-inline",hide:n||t["equation-inline"],onSelect:()=>{$t(e,()=>{e.dispatchCommand(Da,"inline")},n)}}].filter(F=>!F.hide),N=()=>{const I=x();return["horizontal-rule","table","grid","code"].map(_=>I.find(R=>R.key===_)).filter(_=>_!==void 0&&!_.hide).map(_=>({..._,parentKey:"advanced"}))},L=()=>{const I=[{parentKey:"media",name:r("editor.menu.media.photo.name"),description:r("editor.menu.media.photo.subtitle"),icon:i.jsx(te,{icon:UC,size:16}),keywords:[`${fc("photo",r,o)}`],hide:n||t.photo,hint:hn.image(r),key:"photo",onSelect:()=>{l==null||l("block_image_added"),$t(e,()=>{e.dispatchCommand(w1,{altText:"new-image",src:"",create:!0})},n)}},{parentKey:"media",name:r("editor.menu.media.audio.name"),description:r("editor.menu.media.audio.subtitle"),hint:hn.audio(r),keywords:[`${fc("audio",r,o)}`],icon:i.jsx(te,{icon:tk,size:16}),key:"audio",hide:n||t.audio,onSelect:()=>{l==null||l("media_audio_added"),$t(e,()=>{e.dispatchCommand(Nc,"")},n)}},{parentKey:"media",name:r("editor.menu.media.file.name"),description:r("editor.menu.media.file.subtitle"),hint:hn.file(r),keywords:[`${fc("file",r,o)}`],icon:i.jsx(te,{icon:Tg,size:16}),key:"file",hide:n||t.file,onSelect:()=>{l==null||l("media_file_added"),$t(e,()=>{e.dispatchCommand(nh,"")},n)}},{parentKey:"media",name:r("editor.menu.media.excalidraw.name"),description:r("editor.menu.media.excalidraw.subtitle"),hint:hn.excalidraw(r),keywords:[`${fc("excalidraw",r,o)}`,"media"],icon:i.jsx(te,{icon:rk,size:16}),key:"excalidraw",hide:n||t.excalidraw,onSelect:()=>{t.excalidraw||Promise.resolve().then(()=>require("./layers.DlgVWdcp.js")).then(({INSERT_EXCALIDRAW_COMMAND:_})=>{$t(e,()=>{e.dispatchCommand(_,void 0)},n)})}}],F=(s==null?void 0:s.filter(_=>{var R;return((R=_.slashMenu)==null?void 0:R.parentKey)==="media"}).map(_=>{const R=_.key,j=R in hn?hn[R](r):_.slashMenu.hint?r(_.slashMenu.hint):void 0;return{parentKey:_.slashMenu.parentKey,name:r(_.slashMenu.name),description:r(_.slashMenu.description),hint:j,keywords:_.slashMenu.keywords,icon:_.slashMenu.icon,key:_.key,hide:n||t[_.key],onSelect:()=>{_.key==="video"&&(l==null||l("media_video_added",{source:"slash_menu"})),$t(e,()=>{e.dispatchCommand(_.slashMenu.command,_.slashMenu.commandPayload)},n)}}}))||[];return[...I,...F]},E=()=>[{parentKey:"other",name:r("editor.menu.other.emoji.name"),description:r("editor.menu.other.emoji.subtitle"),icon:i.jsx(te,{icon:dk,size:16}),keywords:["emoji","smile"],key:"emoji",hide:n||t.emoji,onSelect:()=>{e.focus(),e.dispatchCommand(pA,void 0)}},{parentKey:"other",name:r("editor.menu.other.pageLink.name"),description:r("editor.menu.other.pageLink.subtitle"),icon:i.jsx(te,{icon:ja,size:16}),keywords:["link","page","page link"],hide:n||t.pageLink,key:"pageLink",onSelect:()=>{$t(e,()=>{e.dispatchCommand(dh,void 0)},n)}},{parentKey:"other",name:r("editor.menu.other.documents.name"),description:r("editor.menu.other.documents.subtitle"),icon:i.jsx(te,{icon:Tg,size:16}),keywords:["page","document","child"],hide:n||t.childDocs,key:"childDocuments",onSelect:()=>{l==null||l("block_child_docs_inserted"),$t(e,()=>{e.dispatchCommand(XA,void 0)},n)}}].filter(F=>!F.hide),M=()=>{const I={parentKey:"integrations",name:r("editor.menu.other.embed.name"),description:r("editor.menu.other.embed.subtitle"),icon:i.jsx(te,{icon:H8,size:16}),keywords:["embed","iframe","webpage","html"],key:"embed","data-test-id":"block-type-embed",hide:n||t.embed,onSelect:()=>{l==null||l("block_embed_added",{platform:"generic-embed"}),$t(e,()=>{e.dispatchCommand($c,"generic-embed")},n)}},F=tI(Bi).map(j=>({...j,keywords:["iframe",...j.keywords],"data-test-id":`block-type-${j.platform}`,onSelect:()=>{l==null||l("block_embed_added",{platform:j.platform}),$t(e,()=>{j.platform==="swagger"?e.dispatchCommand(Yb,""):e.dispatchCommand($c,j.platform)},n)},hide:eI(j.platform,n)})),_=[I,...F].filter(j=>!j.hide),R=_.findIndex(j=>j.key==="embed");if(R>0){const[j]=_.splice(R,1);_.unshift(j)}return _},O=()=>{const I=_=>$t(e,()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,_)},!0);return[{parentKey:"formatting",name:r("editor.toolbar.bold"),description:r("editor.toolbar.bold"),icon:i.jsx(te,{icon:nA,size:16}),keywords:["bold","b","strong"],key:"format-bold",hide:n,"data-test-id":"slash-menu-format-bold",onSelect:()=>I("bold")},{parentKey:"formatting",name:r("editor.toolbar.strike"),description:r("editor.toolbar.strike"),icon:i.jsx(te,{icon:oA,size:16}),keywords:["strike","strikethrough"],key:"format-strike",hide:n,"data-test-id":"slash-menu-format-strike",onSelect:()=>I("strikethrough")},{parentKey:"formatting",name:r("editor.toolbar.italic"),description:r("editor.toolbar.italic"),icon:i.jsx(te,{icon:rA,size:16}),keywords:["italic","i"],key:"format-italic",hide:n,"data-test-id":"slash-menu-format-italic",onSelect:()=>I("italic")},{parentKey:"formatting",name:r("editor.toolbar.underline"),description:r("editor.toolbar.underline"),icon:i.jsx(te,{icon:sA,size:16}),keywords:["underline","u"],key:"format-underline",hide:n,"data-test-id":"slash-menu-format-underline",onSelect:()=>I("underline")},{parentKey:"formatting",name:r("editor.menu.formatting.inlineCode"),description:r("editor.menu.formatting.inlineCode"),icon:i.jsx(te,{icon:Ia,size:16}),keywords:["code","inline","pre"],key:"format-inline-code",hide:n,"data-test-id":"slash-menu-format-inline-code",onSelect:()=>I("code")}].filter(_=>!_.hide)};return[{key:"text",name:h("editor.menu.text.title"),blocks:T()},{key:"advanced",name:h("editor.menu.advanced.title"),blocks:N()},{key:"media",name:h("editor.menu.media.title"),blocks:L()},{key:"inline",name:h("editor.menu.inline.title"),blocks:D()},{key:"other",name:h("editor.menu.other.title"),blocks:E()},{key:"integrations",name:h("editor.menu.integrations.title"),blocks:M()},{key:"formatting",name:h("editor.menu.formatting.title"),blocks:O()}]}function nI({index:e,isSelected:n,onClick:t,onMouseEnter:r,option:o}){return i.jsxs(v.UnstyledButton,{tabIndex:-1,className:"item",role:"option",id:"typeahead-item-"+e,ref:o.setRefElement,"aria-selected":n,onMouseEnter:r,onClick:t,"data-selected":n,"data-test-id":`block-type-${o.key}`,children:[i.jsx(v.Box,{className:"slash-menu-item-icon",children:o.icon}),i.jsx(v.Tooltip,{label:o.title,openDelay:400,zIndex:1001,children:i.jsx(v.Box,{className:"slash-menu-item-text",children:i.jsx(v.Text,{className:"slash-menu-item-label",span:!0,truncate:"end",children:o.title})})})]})}const rI=(e,n,t)=>{var r;return(n==null?void 0:n.__key)!==t.current.key&&(t.current={show:!0,key:n.__key,isCheck:!0}),n&&t.current.show&&t.current.isCheck&&(be.$findMatchingParent(n,To)||be.$findMatchingParent(n,vt)||((r=be.$findMatchingParent(n,It))==null?void 0:r.__checked)!==void 0)&&(t.current={show:!1,key:n.__key,isCheck:!1}),t.current.show&&(n==null?void 0:n.__key)===t.current.key&&(t.current={show:!0,key:(n==null?void 0:n.__key)||"",isCheck:!1}),t.current.show?e:""};function oI(e,n){for(let t=0;t<e.length;t++){const r=e[t].items;for(let o=0;o<r.length;o++)if(r[o].index===n)return{groupIndex:t,localItemIndex:o}}return null}function sI(e,n){return n<=0?"wrap":e+2<n?e+2:e%2===1&&e+1<n?e+1:"wrap"}function iI(e,n,t,r){if(r<=1)return 0;const o=oI(e,n);if(!o)return Math.max(0,Math.min(r-1,n));const{groupIndex:s,localItemIndex:l}=o,d=e[s].items.length,f=(h,g)=>{var y;const C=(y=e[h])==null?void 0:y.items[g];return(C==null?void 0:C.index)??n};switch(t){case"right":return l%2===0&&l+1<d?f(s,l+1):n;case"left":return l%2===1?f(s,l-1):n;case"down":{const h=sI(l,d);return typeof h=="number"?f(s,h):s+1<e.length?f(s+1,0):f(0,0)}case"up":{if(l-2>=0)return f(s,l-2);if(s>0){const b=e[s-1].items.length;if(b===0)return n;if(l===0){const x=b%2===0?b-2:b-1;return f(s-1,Math.max(0,x))}if(l===1)return f(s-1,b-1)}const h=e.length-1,C=e[h].items.length;if(C===0)return n;if(l===0){const y=C%2===0?C-2:C-1;return f(h,Math.max(0,y))}return f(h,C-1)}default:return n}}function aI({editor:e,opened:n,groupOptions:t,options:r,selectedIndex:o,setHighlightedIndex:s}){const l=m.useRef(r),c=m.useRef(t),d=m.useRef(o);return l.current=r,c.current=t,d.current=o,m.useEffect(()=>{if(!n)return;const f=g=>{var w;const C=l.current;if(C.length===0)return;const y=Math.max(0,Math.min(C.length-1,g));s(y),d.current=y;const b=C[y],x=(w=b==null?void 0:b.ref)==null?void 0:w.current;x!=null&&(e.dispatchCommand(Ta.SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND,{index:y,option:b}),requestAnimationFrame(()=>{x.scrollIntoView({block:"nearest",inline:"nearest"})}))},h=(g,C)=>{const y=l.current;if(y.length===0)return!1;C.preventDefault(),C.stopPropagation();const b=d.current,x=b===null?0:b,w=iI(c.current,x,g,y.length);return w!==x&&f(w),!0};return be.mergeRegister(e.registerCommand(p.KEY_ARROW_DOWN_COMMAND,g=>h("down",g),p.COMMAND_PRIORITY_HIGH),e.registerCommand(p.KEY_ARROW_UP_COMMAND,g=>h("up",g),p.COMMAND_PRIORITY_HIGH),e.registerCommand(p.KEY_ARROW_RIGHT_COMMAND,g=>h("right",g),p.COMMAND_PRIORITY_HIGH),e.registerCommand(p.KEY_ARROW_LEFT_COMMAND,g=>h("left",g),p.COMMAND_PRIORITY_HIGH))},[e,n,s]),null}class $b extends Ta.MenuOption{constructor(t,r,o,s,l,c){super(t);Me(this,"key");Me(this,"title");Me(this,"description");Me(this,"icon");Me(this,"keywords");Me(this,"keyboardShortcut");Me(this,"onSelect");Me(this,"hide");Me(this,"parentKey");Me(this,"index");Me(this,"hint");this.key=t,this.title=r,this.hide=s,this.description=o,this.keywords=c.keywords||[],this.icon=c.icon,this.hint=c.hint,this.parentKey=l,this.index=0,this.keyboardShortcut=c.keyboardShortcut,this.onSelect=c.onSelect.bind(this)}}function lI(e,n){const t=[];if(n==null)return t;const r=n.match(/^([1-9]\d?)(?:x([1-9]\d?)?)?$/);if(r!==null){const o=r[1],s=r[2]?[r[2]]:[1,2,3,4,5,6,7,8,9,10].map(String);t.push(...s.map(l=>new $b("table",`${o}x${l} Table`,"",!1,"advanced",{icon:i.jsx(v.Box,{className:"icon table"}),keywords:["table"],onSelect:()=>e.dispatchCommand(Su,{columns:l,rows:o})})))}return t}function cI({editor:e,excludeNodes:n,t,plugins:r,onTrack:o}){const s=_1({editor:e,isToolbar:!1,excludeNodes:n,t,plugins:r,onTrack:o});let l=[],c={};s.forEach(f=>{c[f.key]=f,l=[...l,...f.blocks]});let d=[];return l.forEach(f=>{f.hide||(d=[...d,new $b(f.key,f.name,f.description,f.hide,f.parentKey,{hint:f.hint,icon:f.icon,keywords:f.keywords,onSelect:f.onSelect})])}),{groupedOptions:c,baseOptions:d}}function uI({mode:e,setOpenedMenu:n,opened:t}){const[r]=it.useLexicalComposerContext(),o=m.useRef({show:!0,key:"",isCheck:!0}),[s,l]=m.useState(null),[c,d]=m.useState(0),{t:f}=Ze.useTranslation(),h=(c===100).toString(),{fetchUploadMedia:g,excludeNodes:C,plugins:y,onTrack:b}=m.useContext(ut),x=Ta.useBasicTypeaheadTriggerMatch("/",{minLength:0}),{options:w,groupOptions:k,groupedInitialOptions:T}=m.useMemo(()=>{const{groupedOptions:M,baseOptions:O}=cI({editor:r,excludeNodes:C,t:f,plugins:y,onTrack:b}),I=R=>{const j=R.reduce((K,W,B)=>{const H=W.parentKey;return K[H]||(K[H]=[]),K[H].push({...W,index:B}),K},{});return Object.entries(j).map(([K,W])=>({name:K,items:W}))};if(!s)return{options:O,groupOptions:I(O),groupedInitialOptions:M};const F=new RegExp(s,"i"),_=[...lI(r,s),...O.filter(R=>F.test(R.title)||R.keywords.some(j=>F.test(j)))];return{options:_,groupOptions:I(_),groupedInitialOptions:M}},[r,g,e,s,y]),D=m.useCallback((M,O,I,F)=>{r.update(()=>{O==null||O.remove(),M.onSelect(F),I()})},[r]),N=M=>{const O=M.target;if(O!=null&&O.closest(".component-picker-menu"))return;f2(O,Yr,r)&&d(100),n(!1),document.removeEventListener("click",N)};m.useEffect(()=>(t&&document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}),[t]);const L=M=>{var R;if(!M){b==null||b("slash_menu_opened"),setTimeout(()=>{n(!0),d(j=>j+1)},50);return}const{x:O,y:I}=((R=M.getRect)==null?void 0:R.call(M))??{},F=document.elementFromPoint(O+1,I+1);!F||f2(F,Yr,r)||(b==null||b("slash_menu_opened"),setTimeout(()=>{n(!0),d(j=>j+1)},50))},E=(M,O)=>{if(M.substring(0,1)!=="/")return x(M,O);const F=Qt();if(!F)return x(M,O);const _=rI(M,F,o);return L(),x(_,O)};return i.jsx(i.Fragment,{children:i.jsx(Ta.LexicalTypeaheadMenuPlugin,{onQueryChange:l,onSelectOption:D,triggerFn:E,options:w,onOpen:L,anchorClassName:"reset-anchor",onClose:()=>{n(!1)},menuRenderFn:(M,O)=>{const{selectedIndex:I,selectOptionAndCleanUp:F,setHighlightedIndex:_}=O;return i.jsx(i.Fragment,{children:M.current&&i.jsx(v.Portal,{target:M.current||document.body,children:i.jsxs(v.Menu,{shadow:"md",opened:t,loop:!1,trapFocus:!1,menuItemTabIndex:0,styles:{dropdown:{overflow:"hidden",overflowX:"hidden",zIndex:1e3,display:w.length?"block":"none",width:375,padding:0}},middlewares:{flip:!0,size:{padding:8,apply({elements:R,y:j,placement:K}){requestAnimationFrame(()=>{Object.assign(R.floating.style,{maxHeight:"425px",top:K==="top-start"?`${j-20}px`:`${j}px`})})}}},closeOnItemClick:!1,position:"bottom-start",transitionProps:Wn,children:[i.jsx(v.Menu.Target,{children:i.jsx(v.Box,{component:"span",w:0,h:0,display:"block"})},c),i.jsxs(v.Menu.Dropdown,{className:"typeahead-popover component-picker-menu",children:[i.jsx(aI,{editor:r,opened:t,groupOptions:k.filter(R=>R.items.length>0),options:O.options,selectedIndex:I,setHighlightedIndex:_}),i.jsx(v.Box,{id:"typeahead-menu",className:"slash-menu-scroll-region",children:i.jsx(v.Box,{className:"slash-menu-list-column",children:k.map(R=>{const j=T[R.name].name;return i.jsxs(v.Box,{className:"slash-menu-group",children:[i.jsx(v.Text,{className:"slash-menu-group-label",size:"sm",span:!0,children:j}),i.jsx(v.Box,{className:"slash-menu-grid",children:R.items.length>0?R.items.map(K=>i.jsx(nI,{index:K.index,isSelected:I===K.index,onClick:()=>{_(K.index),F(K)},onMouseEnter:()=>{_(K.index)},option:K},K.key)):null})]},j)})})})]})]},h)})})}})})}function hc(e){return e instanceof HTMLElement}const dI=({hoveredButton:e,insertNewParagraph:n,currentDraggableBlockRef:t,setHoveredButton:r,isClickedBlockRef:o,setDraggableBlockElem:s,editor:l,t:c})=>i.jsx("div",{className:`icon add-block-menu ${e?"active":""} ${e==="bottom"?"add-block-menu--plus":""}`,onClick:()=>{n({blockElement:t.current.htmlElement,editor:l,isTop:!1,isClickedBlockRef:o,setDraggableBlockElem:s}),r("both")},onMouseEnter:()=>{r("bottom")},onMouseLeave:()=>{r("both")},children:i.jsx(v.Tooltip,{openDelay:300,label:c("editor.hoverOptions.addNewBlockBelow"),position:"bottom",disabled:o.current||!e,children:i.jsx(v.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:e==="bottom"?i.jsx(ye.IconPlus,{}):i.jsx(ye.IconMinus,{})})})}),fI=({hoveredButton:e,insertNewParagraph:n,currentDraggableBlockRef:t,setHoveredButton:r,isClickedBlockRef:o,setDraggableBlockElem:s,editor:l,t:c})=>i.jsx("div",{className:`icon add-block-menu add-block-menu_top ${e?"active":""} ${e==="top"?"add-block-menu--plus":""}`,onClick:()=>{n({blockElement:t.current.htmlElement,editor:l,isTop:!0,isClickedBlockRef:o,setDraggableBlockElem:s}),r("both")},onMouseEnter:()=>{r("top")},onMouseLeave:()=>{r("both")},children:i.jsx(v.Tooltip,{disabled:o.current||!e,openDelay:300,label:c("editor.hoverOptions.addNewBlockAbove"),position:"top",children:i.jsx(v.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:e==="top"?i.jsx(ye.IconPlus,{}):i.jsx(ye.IconMinus,{})})})}),wf=({label:e,icon:n,dataNameAttribute:t})=>i.jsxs("div",{className:"custom-menu-item","data-test-id":t||"color-picker",children:[i.jsxs("div",{children:[n,i.jsx("span",{children:e})]}),i.jsx(te,{className:"custom-menu-item__chevron",icon:lo,size:16})]}),g2={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"},C2={paragraph:pu,1:Hh,2:Yh,3:Zh,4:Ca,bullet:Wc,check:Kh,number:Gh,quote:Qh,code:Ia,equation:Ra,callout:Ff},hI=Os?{1:"(⌥⌘1)",2:"(⌥⌘2)",3:"(⌥⌘3)",4:"(⌥⌘4)",bullet:"(⇧⌘9)",check:"(⇧⌘8)",number:"(⇧⌘7)"}:{1:"(Ctrl+Alt+1)",2:"(Ctrl+Alt+2)",3:"(Ctrl+Alt+3)",4:"(Ctrl+Alt+4)",bullet:"(Ctrl+Shift+9)",check:"(Ctrl+Shift+8)",number:"(Ctrl+Shift+7)"},pI={h1:"1",h2:"2",h3:"3",h4:"4",h5:"5",h6:"6",paragraph:"paragraph",bullet:"bullet",check:"check",number:"number",quote:"quote",code:"code"},mI=["paragraph","1","2","3","4","__divider_1__","bullet","check","number","__divider_2__","equation","code","callout","quote"];function e5({editor:e,blockType:n,disabled:t=!1,mode:r,fetchUploadMedia:o,excludeNodes:s,children:l,menuProps:c,onChange:d,plugins:f}){const[h,g]=B1(),{t:C,i18n:y}=Ze.useTranslation(),{onTrack:b}=m.useContext(ut),x=m.useMemo(()=>_1({editor:e,isToolbar:!0,excludeNodes:s,t:C,plugins:f,onTrack:b}).map(E=>({...E,blocks:E.blocks.filter(M=>!M.hide)})),[e,g,o,r,y.language,f]),w=m.useCallback(()=>{b==null||b("block_equation_created"),$t(e,()=>{e.dispatchCommand(Da,void 0)},!0)},[e,b]),k=m.useCallback(()=>{b==null||b("block_callout_created",{type:"default"}),$t(e,()=>{e.dispatchCommand(Cu,"default")},!0)},[e,b]),T=m.useMemo(()=>{const E=x.flatMap(I=>I.blocks),M=new Map(E.map(I=>[I.key,I])),O=[];for(const I of mI){if(I.startsWith("__divider_")){O.push({type:"divider",key:I});continue}if(I==="equation"){s.equation||O.push({type:"item",key:"equation",block:{key:"equation",name:C("editor.menu.other.equation.name"),onSelect:w,"data-test-id":"block-type-equation"}});continue}if(I==="callout"){s.default||O.push({type:"item",key:"callout",block:{key:"callout",name:C("editor.menu.callout.default.name"),onSelect:k,"data-test-id":"block-type-callout"}});continue}const F=M.get(I);F&&O.push({type:"item",key:I,block:F})}return O},[x,s,C,w,k]),D=pI[n]||n,[N,L]=m.useState(!1);if(Nt){const E=l?m.cloneElement(l,{onClick:M=>{var O,I;(I=(O=l.props)==null?void 0:O.onClick)==null||I.call(O,M),M.defaultPrevented||L(!0)}}):i.jsxs(v.UnstyledButton,{component:"button",type:"button",disabled:t,className:"toolbar-item block-controls","aria-label":"Formatting options for text style",title:g2[n],"data-test-id":"toolbar-block-controls",onClick:()=>L(!0),children:[i.jsx(mn,{size:18,mr:5,name:n}),i.jsx(mn,{name:"chevron-down"})]});return i.jsxs(i.Fragment,{children:[h,E,i.jsx(En,{opened:N,onClose:()=>L(!1),title:C("editor.toolbar.turnInto"),children:i.jsx(v.Stack,{gap:2,pb:"sm",children:T.map(M=>{if(M.type==="divider")return i.jsx("div",{className:"mobile-slash-menu__divider"},M.key);const{block:O,key:I}=M,F=C2[I],_=D===I||I==="callout"&&["default","alert","success","warning"].includes(D);return i.jsxs(v.UnstyledButton,{className:"mobile-slash-menu__item","data-active":_||void 0,"data-test-id":O["data-test-id"],onClick:()=>{O.onSelect(),d&&d(),L(!1)},children:[i.jsx("div",{className:"mobile-slash-menu__item-icon",children:F?i.jsx(te,{icon:F,size:16}):O.icon}),i.jsx(v.Text,{className:"mobile-slash-menu__item-text",size:"sm",children:I==="paragraph"?"Text":O.name}),_&&i.jsx(te,{className:"mobile-slash-menu__item-check",icon:tr,size:16})]},I)})})})]})}return i.jsxs(i.Fragment,{children:[h,i.jsxs(v.Menu,{shadow:"md",classNames:{dropdown:"toolbar-dark-dropdown"},styles:{dropdown:{overflow:"auto",zIndex:1e3,overscrollBehavior:"contain"},item:{gap:"var(--mantine-spacing-sm)"}},middlewares:Xb,position:"bottom-start",transitionProps:Wn,...c,children:[i.jsx(v.Menu.Target,{children:l||i.jsx(v.Tooltip,{label:C("editor.toolbar.turnInto"),children:i.jsxs("button",{disabled:t,className:"toolbar-item block-controls","aria-label":"Formatting options for text style",title:g2[n],type:"button","data-test-id":"toolbar-block-controls",children:[i.jsx(mn,{size:18,mr:5,name:n}),i.jsx(mn,{name:"chevron-down"})]})})}),i.jsxs(v.Menu.Dropdown,{children:[i.jsx(v.Menu.Label,{children:C("editor.toolbar.turnInto")}),i.jsx("div",{className:"toolbar-dropdown-list",children:T.map(E=>{if(E.type==="divider")return i.jsx(v.Menu.Divider,{},E.key);const{block:M,key:O}=E,I=C2[O],F=hI[O],_=D===O||O==="callout"&&["default","alert","success","warning"].includes(D);return i.jsx(v.Menu.Item,{leftSection:I?i.jsx(te,{color:"var(--mantine-color-dark-2)",icon:I,size:16}):M.icon,rightSection:F||_?i.jsxs(i.Fragment,{children:[F&&i.jsx(v.Text,{size:"xs",component:"span",c:"dimmed",children:F}),_&&i.jsx(te,{icon:tr,size:16,color:"var(--mantine-primary-color-filled)"})]}):void 0,onClick:()=>{M.onSelect(),d&&d()},"data-test-id":M["data-test-id"],children:O==="paragraph"?"Text":M.name},O)})})]})]})]})}const gI=[{value:"inherit",nameKey:"default"},{value:"#9775FA",nameKey:"violet"},{value:"#748FFC",nameKey:"indigo"},{value:"#4DABF7",nameKey:"blue"},{value:"#38D9A9",nameKey:"teal"},{value:"#69DB7C",nameKey:"green"},{value:"#FFD43B",nameKey:"yellow"},{value:"#FFA94D",nameKey:"orange"},{value:"#FF8787",nameKey:"red"},{value:"#9F765A",nameKey:"brown"},{value:"#CED4DA",nameKey:"gray"}],CI=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}];function ph({fontColor:e,bgColor:n,disabled:t,onChange:r,onOpenChange:o,children:s,menuProps:l,visibleSections:c,highlightsSectionLabelKey:d="editor.toolbar.colorPicker.textHighlights"}){const{t:f}=Ze.useTranslation(),{onChange:h,...g}=l??{},C=m.useMemo(()=>({recent:(c==null?void 0:c.recent)??!0,textColors:(c==null?void 0:c.textColors)??!0,highlights:(c==null?void 0:c.highlights)??!0}),[c]),y=e===""?"inherit":e,b=n===""?"inherit":n,x=m.useMemo(()=>gI.map(({value:L,nameKey:E})=>({value:L,label:f(`editor.toolbar.colorPicker.names.${E}`)})),[f]),w=m.useMemo(()=>CI.map(({value:L,nameKey:E,border:M})=>({value:L,label:f(`editor.toolbar.colorPicker.names.${E}`),border:M})),[f]),k=m.useMemo(()=>{const L=[];return C.textColors&&L.push({key:"textColor",label:f("editor.toolbar.colorPicker.textColors"),colors:x,value:y}),C.highlights&&L.push({key:"textHighlight",label:f(d),colors:w,value:b}),L},[C,f,y,b,d,x,w]),T=m.useCallback((L,E)=>{r(E==="textColor"?{color:L,"background-color":n}:{color:e,"background-color":L})},[e,n,r]),[D,N]=m.useState(!1);if(Nt){const L=M=>{N(M),o==null||o(M),h==null||h(M)},E=m.isValidElement(s)?m.cloneElement(s,{onClick:M=>{var O,I;(I=(O=s.props)==null?void 0:O.onClick)==null||I.call(O,M),M.defaultPrevented||L(!0)}}):s;return i.jsxs(i.Fragment,{children:[E,i.jsx(En,{opened:D,onClose:()=>L(!1),title:f("editor.toolbar.colorPicker.textColors"),children:i.jsx("div",{style:{maxHeight:"calc(60dvh - 80px)",overflowY:"auto"},children:i.jsx(Mt.ColorPicker.List,{sections:k,onChange:(M,O)=>{T(M,O)}})})})]})}return i.jsxs(v.Menu,{transitionProps:Wn,shadow:"md",position:"bottom-start",classNames:{dropdown:"toolbar-dark-dropdown toolbar-color-dropdown"},styles:{dropdown:{zIndex:100}},...g,onChange:L=>{o==null||o(L),h==null||h(L)},children:[i.jsx(v.Menu.Target,{children:s}),i.jsx(v.Menu.Dropdown,{"data-test-id":"toolbar-color-picker-dropdown",onMouseDown:L=>L.preventDefault(),children:i.jsx(Mt.ColorPicker.Toolbar,{sections:k,onChange:T,withRecentColors:C.recent,recentColorsLabel:f("editor.toolbar.colorPicker.recentlyUsed"),disabled:t})})]})}const AI=({editor:e,onChange:n,currentEditorNode:t,textBlock:r,t:o,isDisabledAddColumnButton:s,disabledMoveColumnButtons:l})=>{const{fetchUploadMedia:c,excludeNodes:d,commentController:f,mode:h,onTrack:g}=m.useContext(ut),[C,y]=m.useState("inherit"),[b,x]=m.useState("inherit"),[w,k]=m.useState("inherit"),[T,D]=m.useState(""),[N,L]=m.useState(!1);m.useEffect(()=>{e.read(()=>{var j;const R=t==null?void 0:t.__type;if(((j=t==null?void 0:t.getParent())==null?void 0:j.__type)==="layout-item"){D("layout");return}if(R==="callout-wrapper"){D(R);return}if(t&&pr(t)&&t.getChildren().some(Do)){D("equation-block");return}D("block")})},[t==null?void 0:t.__key]);const E=m.useCallback(R=>{e.update(()=>{let j=p.$getSelection();if(!j){const K=e.__savedDragHandleSelection;K&&(p.$setSelection(K.clone()),j=p.$getSelection())}j&&an.$patchStyleText(j,R)})},[e]),M=m.useCallback(R=>{const j=R["background-color"],K=j===b?"inherit":j;e.update(()=>{const W=t==null?void 0:t.getParent();W instanceof Mn&&W.setLayoutBackground(K)}),x(K),n()},[e,t,b,n]),O=m.useCallback(R=>{T==="callout-wrapper"&&t instanceof jo?e.update(()=>{t.setBackgroundColor(R["background-color"]);let j=p.$getSelection();if(!j){const K=e.__savedDragHandleSelection;K&&(p.$setSelection(K.clone()),j=p.$getSelection())}j&&an.$patchStyleText(j,{color:R.color})}):E(R),n()},[e,T,t,n,E]),I=R=>{const j=nj(e);j.length?j.forEach(K=>{e.update(()=>{let W=p.$getNearestNodeFromDOMNode(K);W&&tu(e,n,W,R)})}):e.update(()=>{let K=p.$getNearestNodeFromDOMNode(j[0]);tu(e,n,K,R)})};m.useEffect(()=>{setTimeout(()=>{e.read(()=>{if(T==="callout-wrapper"&&t instanceof jo){y(t.__backgroundColor);return}const R=t==null?void 0:t.getParent();R instanceof Mn&&x(R.__backgroundColor);const j=p.$getSelection();p.$isRangeSelection(j)&&(k(an.$getSelectionStyleValueForProperty(j,"color","inherit")),y(an.$getSelectionStyleValueForProperty(j,"background-color","inherit")))})})},[]),m.useEffect(()=>{e.update(()=>{let R=p.$getSelection();if(!R){L(!1);return}if(p.$isNodeSelection(R)&&(Eu(R),R=p.$getSelection(),!R)){L(!1);return}if(!p.$isRangeSelection(R)){L(!1);return}const j=R.getNodes();if(j.length===0){L(!1);return}const W=j.every(B=>p.$isTextNode(B)&&!p.$isDecoratorNode(B))&&R.getTextContent().trim().length>0;L(W)})},[e,t==null?void 0:t.__key]);const F=r==="text"&&T!=="callout-wrapper",_=r==="text"||T=="callout-wrapper";return i.jsxs(i.Fragment,{children:[F&&i.jsx(i.Fragment,{children:i.jsx(e5,{disabled:!1,blockType:"paragraph",rootType:"root",editor:e,mode:"editor",fetchUploadMedia:c,excludeNodes:d,onChange:n,menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},children:i.jsx("div",{children:i.jsx(wf,{label:o("editor.toolbar.turnInto"),dataNameAttribute:"turn-into",icon:i.jsx(te,{icon:P8,size:16,color:"var(--mantine-color-gray-6)"})})})})}),_&&i.jsx(ph,{fontColor:w,bgColor:C,onChange:O,menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0},styles:{dropdown:{zIndex:400}}},children:i.jsx("div",{children:i.jsx(wf,{dataNameAttribute:"color-picker",label:o(T==="callout-wrapper"?"editor.contextMenu.appearance":"editor.toolbar.color"),icon:i.jsx(te,{size:16,icon:rs,color:"var(--mantine-color-gray-6)"})})})}),(F||_)&&i.jsx(v.Menu.Divider,{}),N&&f&&h==="editor"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{onMouseDown:R=>{R.preventDefault(),R.stopPropagation(),e.dispatchCommand(Ou,void 0),n("comment")},leftSection:i.jsx(te,{icon:_8,size:16,color:"var(--mantine-color-gray-6)"}),children:o("editor.toolbar.comment")}),i.jsx(v.Menu.Divider,{})]}),i.jsx(v.Menu.Item,{onMouseDown:R=>{R.preventDefault(),t2(e,"cut"),n("cut")},"data-test-id":"cut-draggable",leftSection:i.jsx(te,{icon:ik,size:16,color:"var(--mantine-color-gray-6)"}),children:o("editor.contextMenu.cut")}),i.jsx(v.Menu.Item,{onMouseDown:R=>{R.preventDefault(),t2(e,"copy"),n("copy")},leftSection:i.jsx(te,{icon:nk,size:16,color:"var(--mantine-color-gray-6)"}),"data-test-id":"copy-draggable",children:o("editor.link.copy")}),i.jsx(v.Menu.Item,{"data-test-id":"duplicate-draggable",disabled:T==="layout"&&s,onClick:()=>{g==null||g("block_duplicated"),O1(e,n,t,T)},leftSection:i.jsx(te,{icon:uo,size:16,color:"var(--mantine-color-gray-6)"}),children:o("editor.contextMenu.duplicate")}),i.jsx(v.Menu.Item,{"data-test-id":"delete-draggable",onClick:()=>{g==null||g("block_deleted"),I("")},color:"var(--mantine-color-red-6)",leftSection:i.jsx(te,{icon:jn,size:16}),children:o("editor.contextMenu.delete")}),T==="layout"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Divider,{}),i.jsx(ph,{fontColor:"inherit",bgColor:b===""?"inherit":b,onChange:M,visibleSections:{recent:!1,textColors:!1,highlights:!0},highlightsSectionLabelKey:"editor.toolbar.colorPicker.background",menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0},withinPortal:!0},children:i.jsx("div",{children:i.jsx(wf,{label:o("editor.column.changeColor"),icon:i.jsx(te,{size:16,icon:rs,color:"var(--mantine-color-gray-6)"})})})}),i.jsx(v.Menu.Item,{disabled:s,onClick:()=>{nu(e,t,"left")},leftSection:i.jsx(te,{icon:Lg,size:14,color:"var(--mantine-color-gray-6)"}),"data-test-id":"column-left",children:o("editor.column.addLeft")}),i.jsx(v.Menu.Item,{disabled:s,"data-test-id":"column-right",onClick:()=>{nu(e,t,"right")},leftSection:i.jsx(te,{icon:Lg,size:14,color:"var(--mantine-color-gray-6)"}),children:o("editor.column.addRight")}),i.jsx(v.Menu.Item,{disabled:l.left,"data-test-id":"column-move-left",onClick:()=>{Si(e,t,"left"),ss(e)},leftSection:i.jsx(te,{icon:Wh,size:14,color:"var(--mantine-color-gray-6)"}),children:o("editor.column.moveLeft")}),i.jsx(v.Menu.Item,{disabled:l.right,"data-test-id":"column-move-right",onClick:()=>{Si(e,t,"right"),ss(e)},leftSection:i.jsx(te,{icon:zh,size:14,color:"var(--mantine-color-gray-6)"}),children:o("editor.column.moveRight")}),i.jsx(v.Menu.Item,{"data-test-id":"column-delete",onClick:()=>I("layout"),color:"var(--mantine-color-red-6)",leftSection:i.jsx(te,{icon:jn,size:16}),children:o("editor.column.deleteColumn")})]})]})};var ca=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ua={exports:{}};/**
|
|
201
|
-
* @license
|
|
202
|
-
* Lodash <https://lodash.com/>
|
|
203
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
204
|
-
* Released under MIT license <https://lodash.com/license>
|
|
205
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
206
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
207
|
-
*/var yI=ua.exports,A2;function xI(){return A2||(A2=1,(function(e,n){(function(){var t,r="4.17.23",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",g=1,C=2,y=4,b=1,x=2,w=1,k=2,T=4,D=8,N=16,L=32,E=64,M=128,O=256,I=512,F=30,_="...",R=800,j=16,K=1,W=2,B=3,H=1/0,Q=9007199254740991,ee=17976931348623157e292,ae=NaN,pe=4294967295,Le=pe-1,Se=pe>>>1,we=[["ary",M],["bind",w],["bindKey",k],["curry",D],["curryRight",N],["flip",I],["partial",L],["partialRight",E],["rearg",O]],de="[object Arguments]",ne="[object Array]",Z="[object AsyncFunction]",ce="[object Boolean]",le="[object Date]",se="[object DOMException]",Y="[object Error]",oe="[object Function]",$="[object GeneratorFunction]",J="[object Map]",q="[object Number]",re="[object Null]",he="[object Object]",ke="[object Promise]",De="[object Proxy]",Ee="[object RegExp]",Pe="[object Set]",Fe="[object String]",ze="[object Symbol]",bt="[object Undefined]",mt="[object WeakMap]",Ht="[object WeakSet]",Pt="[object ArrayBuffer]",V="[object DataView]",fe="[object Float32Array]",Re="[object Float64Array]",Ke="[object Int8Array]",ge="[object Int16Array]",me="[object Int32Array]",Ce="[object Uint8Array]",Be="[object Uint8ClampedArray]",Ye="[object Uint16Array]",$e="[object Uint32Array]",st=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,Ue=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,Ne=/[&<>"']/g,Ge=RegExp(_e.source),We=RegExp(Ne.source),lt=/<%-([\s\S]+?)%>/g,Qe=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,He=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,ct=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,at=/[\\^$.*+?()[\]{}|]/g,Ve=RegExp(at.source),rt=/^\s+/,en=/\s/,St=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Tt=/\{\n\/\* \[wrapped with (.+)\] \*/,Lt=/,? & /,Jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_t=/[()=,{}\[\]\/\s]/,nn=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yt=/\w*$/,Vt=/^[-+]0x[0-9a-f]+$/i,Or=/^0b[01]+$/i,Je=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,yn=/^(?:0|[1-9]\d*)$/,fo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zn=/($^)/,ll=/['\n\r\u2028\u2029\\]/g,cl="\\ud800-\\udfff",O5="\\u0300-\\u036f",P5="\\ufe20-\\ufe2f",B5="\\u20d0-\\u20ff",q1=O5+P5+B5,Q1="\\u2700-\\u27bf",J1="a-z\\xdf-\\xf6\\xf8-\\xff",_5="\\xac\\xb1\\xd7\\xf7",F5="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",W5="\\u2000-\\u206f",z5=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",X1="A-Z\\xc0-\\xd6\\xd8-\\xde",$1="\\ufe0e\\ufe0f",ep=_5+F5+W5+z5,Yu="['’]",K5="["+cl+"]",tp="["+ep+"]",ul="["+q1+"]",np="\\d+",U5="["+Q1+"]",rp="["+J1+"]",op="[^"+cl+ep+np+Q1+J1+X1+"]",Zu="\\ud83c[\\udffb-\\udfff]",H5="(?:"+ul+"|"+Zu+")",sp="[^"+cl+"]",Gu="(?:\\ud83c[\\udde6-\\uddff]){2}",Vu="[\\ud800-\\udbff][\\udc00-\\udfff]",Ys="["+X1+"]",ip="\\u200d",ap="(?:"+rp+"|"+op+")",Y5="(?:"+Ys+"|"+op+")",lp="(?:"+Yu+"(?:d|ll|m|re|s|t|ve))?",cp="(?:"+Yu+"(?:D|LL|M|RE|S|T|VE))?",up=H5+"?",dp="["+$1+"]?",Z5="(?:"+ip+"(?:"+[sp,Gu,Vu].join("|")+")"+dp+up+")*",G5="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V5="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",fp=dp+up+Z5,q5="(?:"+[U5,Gu,Vu].join("|")+")"+fp,Q5="(?:"+[sp+ul+"?",ul,Gu,Vu,K5].join("|")+")",J5=RegExp(Yu,"g"),X5=RegExp(ul,"g"),qu=RegExp(Zu+"(?="+Zu+")|"+Q5+fp,"g"),$5=RegExp([Ys+"?"+rp+"+"+lp+"(?="+[tp,Ys,"$"].join("|")+")",Y5+"+"+cp+"(?="+[tp,Ys+ap,"$"].join("|")+")",Ys+"?"+ap+"+"+lp,Ys+"+"+cp,V5,G5,np,q5].join("|"),"g"),ey=RegExp("["+ip+cl+q1+$1+"]"),ty=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ny=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ry=-1,Xt={};Xt[fe]=Xt[Re]=Xt[Ke]=Xt[ge]=Xt[me]=Xt[Ce]=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ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},sy={"&":"&","<":"<",">":">",'"':""","'":"'"},iy={"&":"&","<":"<",">":">",""":'"',"'":"'"},ay={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ly=parseFloat,cy=parseInt,hp=typeof ca=="object"&&ca&&ca.Object===Object&&ca,uy=typeof self=="object"&&self&&self.Object===Object&&self,On=hp||uy||Function("return this")(),Qu=n&&!n.nodeType&&n,ms=Qu&&!0&&e&&!e.nodeType&&e,pp=ms&&ms.exports===Qu,Ju=pp&&hp.process,Cr=(function(){try{var ie=ms&&ms.require&&ms.require("util").types;return ie||Ju&&Ju.binding&&Ju.binding("util")}catch{}})(),mp=Cr&&Cr.isArrayBuffer,gp=Cr&&Cr.isDate,Cp=Cr&&Cr.isMap,Ap=Cr&&Cr.isRegExp,bp=Cr&&Cr.isSet,yp=Cr&&Cr.isTypedArray;function nr(ie,ve,Ae){switch(Ae.length){case 0:return ie.call(ve);case 1:return ie.call(ve,Ae[0]);case 2:return ie.call(ve,Ae[0],Ae[1]);case 3:return ie.call(ve,Ae[0],Ae[1],Ae[2])}return ie.apply(ve,Ae)}function dy(ie,ve,Ae,Xe){for(var gt=-1,Bt=ie==null?0:ie.length;++gt<Bt;){var Tn=ie[gt];ve(Xe,Tn,Ae(Tn),ie)}return Xe}function Ar(ie,ve){for(var Ae=-1,Xe=ie==null?0:ie.length;++Ae<Xe&&ve(ie[Ae],Ae,ie)!==!1;);return ie}function fy(ie,ve){for(var Ae=ie==null?0:ie.length;Ae--&&ve(ie[Ae],Ae,ie)!==!1;);return ie}function xp(ie,ve){for(var Ae=-1,Xe=ie==null?0:ie.length;++Ae<Xe;)if(!ve(ie[Ae],Ae,ie))return!1;return!0}function Po(ie,ve){for(var Ae=-1,Xe=ie==null?0:ie.length,gt=0,Bt=[];++Ae<Xe;){var Tn=ie[Ae];ve(Tn,Ae,ie)&&(Bt[gt++]=Tn)}return Bt}function dl(ie,ve){var Ae=ie==null?0:ie.length;return!!Ae&&Zs(ie,ve,0)>-1}function Xu(ie,ve,Ae){for(var Xe=-1,gt=ie==null?0:ie.length;++Xe<gt;)if(Ae(ve,ie[Xe]))return!0;return!1}function tn(ie,ve){for(var Ae=-1,Xe=ie==null?0:ie.length,gt=Array(Xe);++Ae<Xe;)gt[Ae]=ve(ie[Ae],Ae,ie);return gt}function Bo(ie,ve){for(var Ae=-1,Xe=ve.length,gt=ie.length;++Ae<Xe;)ie[gt+Ae]=ve[Ae];return ie}function $u(ie,ve,Ae,Xe){var gt=-1,Bt=ie==null?0:ie.length;for(Xe&&Bt&&(Ae=ie[++gt]);++gt<Bt;)Ae=ve(Ae,ie[gt],gt,ie);return Ae}function hy(ie,ve,Ae,Xe){var gt=ie==null?0:ie.length;for(Xe&>&&(Ae=ie[--gt]);gt--;)Ae=ve(Ae,ie[gt],gt,ie);return Ae}function ed(ie,ve){for(var Ae=-1,Xe=ie==null?0:ie.length;++Ae<Xe;)if(ve(ie[Ae],Ae,ie))return!0;return!1}var py=td("length");function my(ie){return ie.split("")}function gy(ie){return ie.match(Jt)||[]}function vp(ie,ve,Ae){var Xe;return Ae(ie,function(gt,Bt,Tn){if(ve(gt,Bt,Tn))return Xe=Bt,!1}),Xe}function fl(ie,ve,Ae,Xe){for(var gt=ie.length,Bt=Ae+(Xe?1:-1);Xe?Bt--:++Bt<gt;)if(ve(ie[Bt],Bt,ie))return Bt;return-1}function Zs(ie,ve,Ae){return ve===ve?Ty(ie,ve,Ae):fl(ie,wp,Ae)}function Cy(ie,ve,Ae,Xe){for(var gt=Ae-1,Bt=ie.length;++gt<Bt;)if(Xe(ie[gt],ve))return gt;return-1}function wp(ie){return ie!==ie}function kp(ie,ve){var Ae=ie==null?0:ie.length;return Ae?rd(ie,ve)/Ae:ae}function td(ie){return function(ve){return ve==null?t:ve[ie]}}function nd(ie){return function(ve){return ie==null?t:ie[ve]}}function Sp(ie,ve,Ae,Xe,gt){return gt(ie,function(Bt,Tn,Zt){Ae=Xe?(Xe=!1,Bt):ve(Ae,Bt,Tn,Zt)}),Ae}function Ay(ie,ve){var Ae=ie.length;for(ie.sort(ve);Ae--;)ie[Ae]=ie[Ae].value;return ie}function rd(ie,ve){for(var Ae,Xe=-1,gt=ie.length;++Xe<gt;){var Bt=ve(ie[Xe]);Bt!==t&&(Ae=Ae===t?Bt:Ae+Bt)}return Ae}function od(ie,ve){for(var Ae=-1,Xe=Array(ie);++Ae<ie;)Xe[Ae]=ve(Ae);return Xe}function by(ie,ve){return tn(ve,function(Ae){return[Ae,ie[Ae]]})}function Ep(ie){return ie&&ie.slice(0,Np(ie)+1).replace(rt,"")}function rr(ie){return function(ve){return ie(ve)}}function sd(ie,ve){return tn(ve,function(Ae){return ie[Ae]})}function Ki(ie,ve){return ie.has(ve)}function Mp(ie,ve){for(var Ae=-1,Xe=ie.length;++Ae<Xe&&Zs(ve,ie[Ae],0)>-1;);return Ae}function Tp(ie,ve){for(var Ae=ie.length;Ae--&&Zs(ve,ie[Ae],0)>-1;);return Ae}function yy(ie,ve){for(var Ae=ie.length,Xe=0;Ae--;)ie[Ae]===ve&&++Xe;return Xe}var xy=nd(oy),vy=nd(sy);function wy(ie){return"\\"+ay[ie]}function ky(ie,ve){return ie==null?t:ie[ve]}function Gs(ie){return ey.test(ie)}function Sy(ie){return ty.test(ie)}function Ey(ie){for(var ve,Ae=[];!(ve=ie.next()).done;)Ae.push(ve.value);return Ae}function id(ie){var ve=-1,Ae=Array(ie.size);return ie.forEach(function(Xe,gt){Ae[++ve]=[gt,Xe]}),Ae}function Lp(ie,ve){return function(Ae){return ie(ve(Ae))}}function _o(ie,ve){for(var Ae=-1,Xe=ie.length,gt=0,Bt=[];++Ae<Xe;){var Tn=ie[Ae];(Tn===ve||Tn===h)&&(ie[Ae]=h,Bt[gt++]=Ae)}return Bt}function hl(ie){var ve=-1,Ae=Array(ie.size);return ie.forEach(function(Xe){Ae[++ve]=Xe}),Ae}function My(ie){var ve=-1,Ae=Array(ie.size);return ie.forEach(function(Xe){Ae[++ve]=[Xe,Xe]}),Ae}function Ty(ie,ve,Ae){for(var Xe=Ae-1,gt=ie.length;++Xe<gt;)if(ie[Xe]===ve)return Xe;return-1}function Ly(ie,ve,Ae){for(var Xe=Ae+1;Xe--;)if(ie[Xe]===ve)return Xe;return Xe}function Vs(ie){return Gs(ie)?jy(ie):py(ie)}function Pr(ie){return Gs(ie)?Ry(ie):my(ie)}function Np(ie){for(var ve=ie.length;ve--&&en.test(ie.charAt(ve)););return ve}var Ny=nd(iy);function jy(ie){for(var ve=qu.lastIndex=0;qu.test(ie);)++ve;return ve}function Ry(ie){return ie.match(qu)||[]}function Iy(ie){return ie.match($5)||[]}var Dy=(function ie(ve){ve=ve==null?On:qs.defaults(On.Object(),ve,qs.pick(On,ny));var Ae=ve.Array,Xe=ve.Date,gt=ve.Error,Bt=ve.Function,Tn=ve.Math,Zt=ve.Object,ad=ve.RegExp,Oy=ve.String,br=ve.TypeError,pl=Ae.prototype,Py=Bt.prototype,Qs=Zt.prototype,ml=ve["__core-js_shared__"],gl=Py.toString,Wt=Qs.hasOwnProperty,By=0,jp=(function(){var a=/[^.]+$/.exec(ml&&ml.keys&&ml.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})(),Cl=Qs.toString,_y=gl.call(Zt),Fy=On._,Wy=ad("^"+gl.call(Wt).replace(at,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Al=pp?ve.Buffer:t,Fo=ve.Symbol,bl=ve.Uint8Array,Rp=Al?Al.allocUnsafe:t,yl=Lp(Zt.getPrototypeOf,Zt),Ip=Zt.create,Dp=Qs.propertyIsEnumerable,xl=pl.splice,Op=Fo?Fo.isConcatSpreadable:t,Ui=Fo?Fo.iterator:t,gs=Fo?Fo.toStringTag:t,vl=(function(){try{var a=xs(Zt,"defineProperty");return a({},"",{}),a}catch{}})(),zy=ve.clearTimeout!==On.clearTimeout&&ve.clearTimeout,Ky=Xe&&Xe.now!==On.Date.now&&Xe.now,Uy=ve.setTimeout!==On.setTimeout&&ve.setTimeout,wl=Tn.ceil,kl=Tn.floor,ld=Zt.getOwnPropertySymbols,Hy=Al?Al.isBuffer:t,Pp=ve.isFinite,Yy=pl.join,Zy=Lp(Zt.keys,Zt),Ln=Tn.max,Kn=Tn.min,Gy=Xe.now,Vy=ve.parseInt,Bp=Tn.random,qy=pl.reverse,cd=xs(ve,"DataView"),Hi=xs(ve,"Map"),ud=xs(ve,"Promise"),Js=xs(ve,"Set"),Yi=xs(ve,"WeakMap"),Zi=xs(Zt,"create"),Sl=Yi&&new Yi,Xs={},Qy=vs(cd),Jy=vs(Hi),Xy=vs(ud),$y=vs(Js),e3=vs(Yi),El=Fo?Fo.prototype:t,Gi=El?El.valueOf:t,_p=El?El.toString:t;function z(a){if(sn(a)&&!At(a)&&!(a instanceof Rt)){if(a instanceof yr)return a;if(Wt.call(a,"__wrapped__"))return Fm(a)}return new yr(a)}var $s=(function(){function a(){}return function(u){if(!rn(u))return{};if(Ip)return Ip(u);a.prototype=u;var A=new a;return a.prototype=t,A}})();function Ml(){}function yr(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=t}z.templateSettings={escape:lt,evaluate:Qe,interpolate:tt,variable:"",imports:{_:z}},z.prototype=Ml.prototype,z.prototype.constructor=z,yr.prototype=$s(Ml.prototype),yr.prototype.constructor=yr;function Rt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=pe,this.__views__=[]}function t3(){var a=new Rt(this.__wrapped__);return a.__actions__=Qn(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Qn(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Qn(this.__views__),a}function n3(){if(this.__filtered__){var a=new Rt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function r3(){var a=this.__wrapped__.value(),u=this.__dir__,A=At(a),S=u<0,P=A?a.length:0,U=mx(0,P,this.__views__),G=U.start,X=U.end,ue=X-G,Te=S?X:G-1,je=this.__iteratees__,Ie=je.length,qe=0,et=Kn(ue,this.__takeCount__);if(!A||!S&&P==ue&&et==ue)return lm(a,this.__actions__);var ft=[];e:for(;ue--&&qe<et;){Te+=u;for(var wt=-1,ht=a[Te];++wt<Ie;){var jt=je[wt],Dt=jt.iteratee,ir=jt.type,Vn=Dt(ht);if(ir==W)ht=Vn;else if(!Vn){if(ir==K)continue e;break e}}ft[qe++]=ht}return ft}Rt.prototype=$s(Ml.prototype),Rt.prototype.constructor=Rt;function Cs(a){var u=-1,A=a==null?0:a.length;for(this.clear();++u<A;){var S=a[u];this.set(S[0],S[1])}}function o3(){this.__data__=Zi?Zi(null):{},this.size=0}function s3(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function i3(a){var u=this.__data__;if(Zi){var A=u[a];return A===d?t:A}return Wt.call(u,a)?u[a]:t}function a3(a){var u=this.__data__;return Zi?u[a]!==t:Wt.call(u,a)}function l3(a,u){var A=this.__data__;return this.size+=this.has(a)?0:1,A[a]=Zi&&u===t?d:u,this}Cs.prototype.clear=o3,Cs.prototype.delete=s3,Cs.prototype.get=i3,Cs.prototype.has=a3,Cs.prototype.set=l3;function ho(a){var u=-1,A=a==null?0:a.length;for(this.clear();++u<A;){var S=a[u];this.set(S[0],S[1])}}function c3(){this.__data__=[],this.size=0}function u3(a){var u=this.__data__,A=Tl(u,a);if(A<0)return!1;var S=u.length-1;return A==S?u.pop():xl.call(u,A,1),--this.size,!0}function d3(a){var u=this.__data__,A=Tl(u,a);return A<0?t:u[A][1]}function f3(a){return Tl(this.__data__,a)>-1}function h3(a,u){var A=this.__data__,S=Tl(A,a);return S<0?(++this.size,A.push([a,u])):A[S][1]=u,this}ho.prototype.clear=c3,ho.prototype.delete=u3,ho.prototype.get=d3,ho.prototype.has=f3,ho.prototype.set=h3;function po(a){var u=-1,A=a==null?0:a.length;for(this.clear();++u<A;){var S=a[u];this.set(S[0],S[1])}}function p3(){this.size=0,this.__data__={hash:new Cs,map:new(Hi||ho),string:new Cs}}function m3(a){var u=Wl(this,a).delete(a);return this.size-=u?1:0,u}function g3(a){return Wl(this,a).get(a)}function C3(a){return Wl(this,a).has(a)}function A3(a,u){var A=Wl(this,a),S=A.size;return A.set(a,u),this.size+=A.size==S?0:1,this}po.prototype.clear=p3,po.prototype.delete=m3,po.prototype.get=g3,po.prototype.has=C3,po.prototype.set=A3;function As(a){var u=-1,A=a==null?0:a.length;for(this.__data__=new po;++u<A;)this.add(a[u])}function b3(a){return this.__data__.set(a,d),this}function y3(a){return this.__data__.has(a)}As.prototype.add=As.prototype.push=b3,As.prototype.has=y3;function Br(a){var u=this.__data__=new ho(a);this.size=u.size}function x3(){this.__data__=new ho,this.size=0}function v3(a){var u=this.__data__,A=u.delete(a);return this.size=u.size,A}function w3(a){return this.__data__.get(a)}function k3(a){return this.__data__.has(a)}function S3(a,u){var A=this.__data__;if(A instanceof ho){var S=A.__data__;if(!Hi||S.length<o-1)return S.push([a,u]),this.size=++A.size,this;A=this.__data__=new po(S)}return A.set(a,u),this.size=A.size,this}Br.prototype.clear=x3,Br.prototype.delete=v3,Br.prototype.get=w3,Br.prototype.has=k3,Br.prototype.set=S3;function Fp(a,u){var A=At(a),S=!A&&ws(a),P=!A&&!S&&Ho(a),U=!A&&!S&&!P&&ri(a),G=A||S||P||U,X=G?od(a.length,Oy):[],ue=X.length;for(var Te in a)(u||Wt.call(a,Te))&&!(G&&(Te=="length"||P&&(Te=="offset"||Te=="parent")||U&&(Te=="buffer"||Te=="byteLength"||Te=="byteOffset")||Ao(Te,ue)))&&X.push(Te);return X}function Wp(a){var u=a.length;return u?a[xd(0,u-1)]:t}function E3(a,u){return zl(Qn(a),bs(u,0,a.length))}function M3(a){return zl(Qn(a))}function dd(a,u,A){(A!==t&&!_r(a[u],A)||A===t&&!(u in a))&&mo(a,u,A)}function Vi(a,u,A){var S=a[u];(!(Wt.call(a,u)&&_r(S,A))||A===t&&!(u in a))&&mo(a,u,A)}function Tl(a,u){for(var A=a.length;A--;)if(_r(a[A][0],u))return A;return-1}function T3(a,u,A,S){return Wo(a,function(P,U,G){u(S,P,A(P),G)}),S}function zp(a,u){return a&&Xr(u,Rn(u),a)}function L3(a,u){return a&&Xr(u,Xn(u),a)}function mo(a,u,A){u=="__proto__"&&vl?vl(a,u,{configurable:!0,enumerable:!0,value:A,writable:!0}):a[u]=A}function fd(a,u){for(var A=-1,S=u.length,P=Ae(S),U=a==null;++A<S;)P[A]=U?t:Zd(a,u[A]);return P}function bs(a,u,A){return a===a&&(A!==t&&(a=a<=A?a:A),u!==t&&(a=a>=u?a:u)),a}function xr(a,u,A,S,P,U){var G,X=u&g,ue=u&C,Te=u&y;if(A&&(G=P?A(a,S,P,U):A(a)),G!==t)return G;if(!rn(a))return a;var je=At(a);if(je){if(G=Cx(a),!X)return Qn(a,G)}else{var Ie=Un(a),qe=Ie==oe||Ie==$;if(Ho(a))return dm(a,X);if(Ie==he||Ie==de||qe&&!P){if(G=ue||qe?{}:Nm(a),!X)return ue?ix(a,L3(G,a)):sx(a,zp(G,a))}else{if(!qt[Ie])return P?a:{};G=Ax(a,Ie,X)}}U||(U=new Br);var et=U.get(a);if(et)return et;U.set(a,G),sg(a)?a.forEach(function(ht){G.add(xr(ht,u,A,ht,a,U))}):rg(a)&&a.forEach(function(ht,jt){G.set(jt,xr(ht,u,A,jt,a,U))});var ft=Te?ue?Rd:jd:ue?Xn:Rn,wt=je?t:ft(a);return Ar(wt||a,function(ht,jt){wt&&(jt=ht,ht=a[jt]),Vi(G,jt,xr(ht,u,A,jt,a,U))}),G}function N3(a){var u=Rn(a);return function(A){return Kp(A,a,u)}}function Kp(a,u,A){var S=A.length;if(a==null)return!S;for(a=Zt(a);S--;){var P=A[S],U=u[P],G=a[P];if(G===t&&!(P in a)||!U(G))return!1}return!0}function Up(a,u,A){if(typeof a!="function")throw new br(l);return ta(function(){a.apply(t,A)},u)}function qi(a,u,A,S){var P=-1,U=dl,G=!0,X=a.length,ue=[],Te=u.length;if(!X)return ue;A&&(u=tn(u,rr(A))),S?(U=Xu,G=!1):u.length>=o&&(U=Ki,G=!1,u=new As(u));e:for(;++P<X;){var je=a[P],Ie=A==null?je:A(je);if(je=S||je!==0?je:0,G&&Ie===Ie){for(var qe=Te;qe--;)if(u[qe]===Ie)continue e;ue.push(je)}else U(u,Ie,S)||ue.push(je)}return ue}var Wo=gm(Jr),Hp=gm(pd,!0);function j3(a,u){var A=!0;return Wo(a,function(S,P,U){return A=!!u(S,P,U),A}),A}function Ll(a,u,A){for(var S=-1,P=a.length;++S<P;){var U=a[S],G=u(U);if(G!=null&&(X===t?G===G&&!sr(G):A(G,X)))var X=G,ue=U}return ue}function R3(a,u,A,S){var P=a.length;for(A=xt(A),A<0&&(A=-A>P?0:P+A),S=S===t||S>P?P:xt(S),S<0&&(S+=P),S=A>S?0:ag(S);A<S;)a[A++]=u;return a}function Yp(a,u){var A=[];return Wo(a,function(S,P,U){u(S,P,U)&&A.push(S)}),A}function Pn(a,u,A,S,P){var U=-1,G=a.length;for(A||(A=yx),P||(P=[]);++U<G;){var X=a[U];u>0&&A(X)?u>1?Pn(X,u-1,A,S,P):Bo(P,X):S||(P[P.length]=X)}return P}var hd=Cm(),Zp=Cm(!0);function Jr(a,u){return a&&hd(a,u,Rn)}function pd(a,u){return a&&Zp(a,u,Rn)}function Nl(a,u){return Po(u,function(A){return bo(a[A])})}function ys(a,u){u=Ko(u,a);for(var A=0,S=u.length;a!=null&&A<S;)a=a[$r(u[A++])];return A&&A==S?a:t}function Gp(a,u,A){var S=u(a);return At(a)?S:Bo(S,A(a))}function Zn(a){return a==null?a===t?bt:re:gs&&gs in Zt(a)?px(a):Mx(a)}function md(a,u){return a>u}function I3(a,u){return a!=null&&Wt.call(a,u)}function D3(a,u){return a!=null&&u in Zt(a)}function O3(a,u,A){return a>=Kn(u,A)&&a<Ln(u,A)}function gd(a,u,A){for(var S=A?Xu:dl,P=a[0].length,U=a.length,G=U,X=Ae(U),ue=1/0,Te=[];G--;){var je=a[G];G&&u&&(je=tn(je,rr(u))),ue=Kn(je.length,ue),X[G]=!A&&(u||P>=120&&je.length>=120)?new As(G&&je):t}je=a[0];var Ie=-1,qe=X[0];e:for(;++Ie<P&&Te.length<ue;){var et=je[Ie],ft=u?u(et):et;if(et=A||et!==0?et:0,!(qe?Ki(qe,ft):S(Te,ft,A))){for(G=U;--G;){var wt=X[G];if(!(wt?Ki(wt,ft):S(a[G],ft,A)))continue e}qe&&qe.push(ft),Te.push(et)}}return Te}function P3(a,u,A,S){return Jr(a,function(P,U,G){u(S,A(P),U,G)}),S}function Qi(a,u,A){u=Ko(u,a),a=Dm(a,u);var S=a==null?a:a[$r(wr(u))];return S==null?t:nr(S,a,A)}function Vp(a){return sn(a)&&Zn(a)==de}function B3(a){return sn(a)&&Zn(a)==Pt}function _3(a){return sn(a)&&Zn(a)==le}function Ji(a,u,A,S,P){return a===u?!0:a==null||u==null||!sn(a)&&!sn(u)?a!==a&&u!==u:F3(a,u,A,S,Ji,P)}function F3(a,u,A,S,P,U){var G=At(a),X=At(u),ue=G?ne:Un(a),Te=X?ne:Un(u);ue=ue==de?he:ue,Te=Te==de?he:Te;var je=ue==he,Ie=Te==he,qe=ue==Te;if(qe&&Ho(a)){if(!Ho(u))return!1;G=!0,je=!1}if(qe&&!je)return U||(U=new Br),G||ri(a)?Mm(a,u,A,S,P,U):fx(a,u,ue,A,S,P,U);if(!(A&b)){var et=je&&Wt.call(a,"__wrapped__"),ft=Ie&&Wt.call(u,"__wrapped__");if(et||ft){var wt=et?a.value():a,ht=ft?u.value():u;return U||(U=new Br),P(wt,ht,A,S,U)}}return qe?(U||(U=new Br),hx(a,u,A,S,P,U)):!1}function W3(a){return sn(a)&&Un(a)==J}function Cd(a,u,A,S){var P=A.length,U=P,G=!S;if(a==null)return!U;for(a=Zt(a);P--;){var X=A[P];if(G&&X[2]?X[1]!==a[X[0]]:!(X[0]in a))return!1}for(;++P<U;){X=A[P];var ue=X[0],Te=a[ue],je=X[1];if(G&&X[2]){if(Te===t&&!(ue in a))return!1}else{var Ie=new Br;if(S)var qe=S(Te,je,ue,a,u,Ie);if(!(qe===t?Ji(je,Te,b|x,S,Ie):qe))return!1}}return!0}function qp(a){if(!rn(a)||vx(a))return!1;var u=bo(a)?Wy:Je;return u.test(vs(a))}function z3(a){return sn(a)&&Zn(a)==Ee}function K3(a){return sn(a)&&Un(a)==Pe}function U3(a){return sn(a)&&Gl(a.length)&&!!Xt[Zn(a)]}function Qp(a){return typeof a=="function"?a:a==null?$n:typeof a=="object"?At(a)?$p(a[0],a[1]):Xp(a):Ag(a)}function Ad(a){if(!ea(a))return Zy(a);var u=[];for(var A in Zt(a))Wt.call(a,A)&&A!="constructor"&&u.push(A);return u}function H3(a){if(!rn(a))return Ex(a);var u=ea(a),A=[];for(var S in a)S=="constructor"&&(u||!Wt.call(a,S))||A.push(S);return A}function bd(a,u){return a<u}function Jp(a,u){var A=-1,S=Jn(a)?Ae(a.length):[];return Wo(a,function(P,U,G){S[++A]=u(P,U,G)}),S}function Xp(a){var u=Dd(a);return u.length==1&&u[0][2]?Rm(u[0][0],u[0][1]):function(A){return A===a||Cd(A,a,u)}}function $p(a,u){return Pd(a)&&jm(u)?Rm($r(a),u):function(A){var S=Zd(A,a);return S===t&&S===u?Gd(A,a):Ji(u,S,b|x)}}function jl(a,u,A,S,P){a!==u&&hd(u,function(U,G){if(P||(P=new Br),rn(U))Y3(a,u,G,A,jl,S,P);else{var X=S?S(_d(a,G),U,G+"",a,u,P):t;X===t&&(X=U),dd(a,G,X)}},Xn)}function Y3(a,u,A,S,P,U,G){var X=_d(a,A),ue=_d(u,A),Te=G.get(ue);if(Te){dd(a,A,Te);return}var je=U?U(X,ue,A+"",a,u,G):t,Ie=je===t;if(Ie){var qe=At(ue),et=!qe&&Ho(ue),ft=!qe&&!et&&ri(ue);je=ue,qe||et||ft?At(X)?je=X:un(X)?je=Qn(X):et?(Ie=!1,je=dm(ue,!0)):ft?(Ie=!1,je=fm(ue,!0)):je=[]:na(ue)||ws(ue)?(je=X,ws(X)?je=lg(X):(!rn(X)||bo(X))&&(je=Nm(ue))):Ie=!1}Ie&&(G.set(ue,je),P(je,ue,S,U,G),G.delete(ue)),dd(a,A,je)}function em(a,u){var A=a.length;if(A)return u+=u<0?A:0,Ao(u,A)?a[u]:t}function tm(a,u,A){u.length?u=tn(u,function(U){return At(U)?function(G){return ys(G,U.length===1?U[0]:U)}:U}):u=[$n];var S=-1;u=tn(u,rr(dt()));var P=Jp(a,function(U,G,X){var ue=tn(u,function(Te){return Te(U)});return{criteria:ue,index:++S,value:U}});return Ay(P,function(U,G){return ox(U,G,A)})}function Z3(a,u){return nm(a,u,function(A,S){return Gd(a,S)})}function nm(a,u,A){for(var S=-1,P=u.length,U={};++S<P;){var G=u[S],X=ys(a,G);A(X,G)&&Xi(U,Ko(G,a),X)}return U}function G3(a){return function(u){return ys(u,a)}}function yd(a,u,A,S){var P=S?Cy:Zs,U=-1,G=u.length,X=a;for(a===u&&(u=Qn(u)),A&&(X=tn(a,rr(A)));++U<G;)for(var ue=0,Te=u[U],je=A?A(Te):Te;(ue=P(X,je,ue,S))>-1;)X!==a&&xl.call(X,ue,1),xl.call(a,ue,1);return a}function rm(a,u){for(var A=a?u.length:0,S=A-1;A--;){var P=u[A];if(A==S||P!==U){var U=P;Ao(P)?xl.call(a,P,1):kd(a,P)}}return a}function xd(a,u){return a+kl(Bp()*(u-a+1))}function V3(a,u,A,S){for(var P=-1,U=Ln(wl((u-a)/(A||1)),0),G=Ae(U);U--;)G[S?U:++P]=a,a+=A;return G}function vd(a,u){var A="";if(!a||u<1||u>Q)return A;do u%2&&(A+=a),u=kl(u/2),u&&(a+=a);while(u);return A}function Et(a,u){return Fd(Im(a,u,$n),a+"")}function q3(a){return Wp(oi(a))}function Q3(a,u){var A=oi(a);return zl(A,bs(u,0,A.length))}function Xi(a,u,A,S){if(!rn(a))return a;u=Ko(u,a);for(var P=-1,U=u.length,G=U-1,X=a;X!=null&&++P<U;){var ue=$r(u[P]),Te=A;if(ue==="__proto__"||ue==="constructor"||ue==="prototype")return a;if(P!=G){var je=X[ue];Te=S?S(je,ue,X):t,Te===t&&(Te=rn(je)?je:Ao(u[P+1])?[]:{})}Vi(X,ue,Te),X=X[ue]}return a}var om=Sl?function(a,u){return Sl.set(a,u),a}:$n,J3=vl?function(a,u){return vl(a,"toString",{configurable:!0,enumerable:!1,value:qd(u),writable:!0})}:$n;function X3(a){return zl(oi(a))}function vr(a,u,A){var S=-1,P=a.length;u<0&&(u=-u>P?0:P+u),A=A>P?P:A,A<0&&(A+=P),P=u>A?0:A-u>>>0,u>>>=0;for(var U=Ae(P);++S<P;)U[S]=a[S+u];return U}function $3(a,u){var A;return Wo(a,function(S,P,U){return A=u(S,P,U),!A}),!!A}function Rl(a,u,A){var S=0,P=a==null?S:a.length;if(typeof u=="number"&&u===u&&P<=Se){for(;S<P;){var U=S+P>>>1,G=a[U];G!==null&&!sr(G)&&(A?G<=u:G<u)?S=U+1:P=U}return P}return wd(a,u,$n,A)}function wd(a,u,A,S){var P=0,U=a==null?0:a.length;if(U===0)return 0;u=A(u);for(var G=u!==u,X=u===null,ue=sr(u),Te=u===t;P<U;){var je=kl((P+U)/2),Ie=A(a[je]),qe=Ie!==t,et=Ie===null,ft=Ie===Ie,wt=sr(Ie);if(G)var ht=S||ft;else Te?ht=ft&&(S||qe):X?ht=ft&&qe&&(S||!et):ue?ht=ft&&qe&&!et&&(S||!wt):et||wt?ht=!1:ht=S?Ie<=u:Ie<u;ht?P=je+1:U=je}return Kn(U,Le)}function sm(a,u){for(var A=-1,S=a.length,P=0,U=[];++A<S;){var G=a[A],X=u?u(G):G;if(!A||!_r(X,ue)){var ue=X;U[P++]=G===0?0:G}}return U}function im(a){return typeof a=="number"?a:sr(a)?ae:+a}function or(a){if(typeof a=="string")return a;if(At(a))return tn(a,or)+"";if(sr(a))return _p?_p.call(a):"";var u=a+"";return u=="0"&&1/a==-H?"-0":u}function zo(a,u,A){var S=-1,P=dl,U=a.length,G=!0,X=[],ue=X;if(A)G=!1,P=Xu;else if(U>=o){var Te=u?null:ux(a);if(Te)return hl(Te);G=!1,P=Ki,ue=new As}else ue=u?[]:X;e:for(;++S<U;){var je=a[S],Ie=u?u(je):je;if(je=A||je!==0?je:0,G&&Ie===Ie){for(var qe=ue.length;qe--;)if(ue[qe]===Ie)continue e;u&&ue.push(Ie),X.push(je)}else P(ue,Ie,A)||(ue!==X&&ue.push(Ie),X.push(je))}return X}function kd(a,u){u=Ko(u,a);var A=-1,S=u.length;if(!S)return!0;for(var P=a==null||typeof a!="object"&&typeof a!="function";++A<S;){var U=u[A];if(typeof U=="string"){if(U==="__proto__"&&!Wt.call(a,"__proto__"))return!1;if(U==="constructor"&&A+1<S&&typeof u[A+1]=="string"&&u[A+1]==="prototype"){if(P&&A===0)continue;return!1}}}var G=Dm(a,u);return G==null||delete G[$r(wr(u))]}function am(a,u,A,S){return Xi(a,u,A(ys(a,u)),S)}function Il(a,u,A,S){for(var P=a.length,U=S?P:-1;(S?U--:++U<P)&&u(a[U],U,a););return A?vr(a,S?0:U,S?U+1:P):vr(a,S?U+1:0,S?P:U)}function lm(a,u){var A=a;return A instanceof Rt&&(A=A.value()),$u(u,function(S,P){return P.func.apply(P.thisArg,Bo([S],P.args))},A)}function Sd(a,u,A){var S=a.length;if(S<2)return S?zo(a[0]):[];for(var P=-1,U=Ae(S);++P<S;)for(var G=a[P],X=-1;++X<S;)X!=P&&(U[P]=qi(U[P]||G,a[X],u,A));return zo(Pn(U,1),u,A)}function cm(a,u,A){for(var S=-1,P=a.length,U=u.length,G={};++S<P;){var X=S<U?u[S]:t;A(G,a[S],X)}return G}function Ed(a){return un(a)?a:[]}function Md(a){return typeof a=="function"?a:$n}function Ko(a,u){return At(a)?a:Pd(a,u)?[a]:_m(zt(a))}var ex=Et;function Uo(a,u,A){var S=a.length;return A=A===t?S:A,!u&&A>=S?a:vr(a,u,A)}var um=zy||function(a){return On.clearTimeout(a)};function dm(a,u){if(u)return a.slice();var A=a.length,S=Rp?Rp(A):new a.constructor(A);return a.copy(S),S}function Td(a){var u=new a.constructor(a.byteLength);return new bl(u).set(new bl(a)),u}function tx(a,u){var A=u?Td(a.buffer):a.buffer;return new a.constructor(A,a.byteOffset,a.byteLength)}function nx(a){var u=new a.constructor(a.source,Yt.exec(a));return u.lastIndex=a.lastIndex,u}function rx(a){return Gi?Zt(Gi.call(a)):{}}function fm(a,u){var A=u?Td(a.buffer):a.buffer;return new a.constructor(A,a.byteOffset,a.length)}function hm(a,u){if(a!==u){var A=a!==t,S=a===null,P=a===a,U=sr(a),G=u!==t,X=u===null,ue=u===u,Te=sr(u);if(!X&&!Te&&!U&&a>u||U&&G&&ue&&!X&&!Te||S&&G&&ue||!A&&ue||!P)return 1;if(!S&&!U&&!Te&&a<u||Te&&A&&P&&!S&&!U||X&&A&&P||!G&&P||!ue)return-1}return 0}function ox(a,u,A){for(var S=-1,P=a.criteria,U=u.criteria,G=P.length,X=A.length;++S<G;){var ue=hm(P[S],U[S]);if(ue){if(S>=X)return ue;var Te=A[S];return ue*(Te=="desc"?-1:1)}}return a.index-u.index}function pm(a,u,A,S){for(var P=-1,U=a.length,G=A.length,X=-1,ue=u.length,Te=Ln(U-G,0),je=Ae(ue+Te),Ie=!S;++X<ue;)je[X]=u[X];for(;++P<G;)(Ie||P<U)&&(je[A[P]]=a[P]);for(;Te--;)je[X++]=a[P++];return je}function mm(a,u,A,S){for(var P=-1,U=a.length,G=-1,X=A.length,ue=-1,Te=u.length,je=Ln(U-X,0),Ie=Ae(je+Te),qe=!S;++P<je;)Ie[P]=a[P];for(var et=P;++ue<Te;)Ie[et+ue]=u[ue];for(;++G<X;)(qe||P<U)&&(Ie[et+A[G]]=a[P++]);return Ie}function Qn(a,u){var A=-1,S=a.length;for(u||(u=Ae(S));++A<S;)u[A]=a[A];return u}function Xr(a,u,A,S){var P=!A;A||(A={});for(var U=-1,G=u.length;++U<G;){var X=u[U],ue=S?S(A[X],a[X],X,A,a):t;ue===t&&(ue=a[X]),P?mo(A,X,ue):Vi(A,X,ue)}return A}function sx(a,u){return Xr(a,Od(a),u)}function ix(a,u){return Xr(a,Tm(a),u)}function Dl(a,u){return function(A,S){var P=At(A)?dy:T3,U=u?u():{};return P(A,a,dt(S,2),U)}}function ei(a){return Et(function(u,A){var S=-1,P=A.length,U=P>1?A[P-1]:t,G=P>2?A[2]:t;for(U=a.length>3&&typeof U=="function"?(P--,U):t,G&&Gn(A[0],A[1],G)&&(U=P<3?t:U,P=1),u=Zt(u);++S<P;){var X=A[S];X&&a(u,X,S,U)}return u})}function gm(a,u){return function(A,S){if(A==null)return A;if(!Jn(A))return a(A,S);for(var P=A.length,U=u?P:-1,G=Zt(A);(u?U--:++U<P)&&S(G[U],U,G)!==!1;);return A}}function Cm(a){return function(u,A,S){for(var P=-1,U=Zt(u),G=S(u),X=G.length;X--;){var ue=G[a?X:++P];if(A(U[ue],ue,U)===!1)break}return u}}function ax(a,u,A){var S=u&w,P=$i(a);function U(){var G=this&&this!==On&&this instanceof U?P:a;return G.apply(S?A:this,arguments)}return U}function Am(a){return function(u){u=zt(u);var A=Gs(u)?Pr(u):t,S=A?A[0]:u.charAt(0),P=A?Uo(A,1).join(""):u.slice(1);return S[a]()+P}}function ti(a){return function(u){return $u(gg(mg(u).replace(J5,"")),a,"")}}function $i(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var A=$s(a.prototype),S=a.apply(A,u);return rn(S)?S:A}}function lx(a,u,A){var S=$i(a);function P(){for(var U=arguments.length,G=Ae(U),X=U,ue=ni(P);X--;)G[X]=arguments[X];var Te=U<3&&G[0]!==ue&&G[U-1]!==ue?[]:_o(G,ue);if(U-=Te.length,U<A)return wm(a,u,Ol,P.placeholder,t,G,Te,t,t,A-U);var je=this&&this!==On&&this instanceof P?S:a;return nr(je,this,G)}return P}function bm(a){return function(u,A,S){var P=Zt(u);if(!Jn(u)){var U=dt(A,3);u=Rn(u),A=function(X){return U(P[X],X,P)}}var G=a(u,A,S);return G>-1?P[U?u[G]:G]:t}}function ym(a){return Co(function(u){var A=u.length,S=A,P=yr.prototype.thru;for(a&&u.reverse();S--;){var U=u[S];if(typeof U!="function")throw new br(l);if(P&&!G&&Fl(U)=="wrapper")var G=new yr([],!0)}for(S=G?S:A;++S<A;){U=u[S];var X=Fl(U),ue=X=="wrapper"?Id(U):t;ue&&Bd(ue[0])&&ue[1]==(M|D|L|O)&&!ue[4].length&&ue[9]==1?G=G[Fl(ue[0])].apply(G,ue[3]):G=U.length==1&&Bd(U)?G[X]():G.thru(U)}return function(){var Te=arguments,je=Te[0];if(G&&Te.length==1&&At(je))return G.plant(je).value();for(var Ie=0,qe=A?u[Ie].apply(this,Te):je;++Ie<A;)qe=u[Ie].call(this,qe);return qe}})}function Ol(a,u,A,S,P,U,G,X,ue,Te){var je=u&M,Ie=u&w,qe=u&k,et=u&(D|N),ft=u&I,wt=qe?t:$i(a);function ht(){for(var jt=arguments.length,Dt=Ae(jt),ir=jt;ir--;)Dt[ir]=arguments[ir];if(et)var Vn=ni(ht),ar=yy(Dt,Vn);if(S&&(Dt=pm(Dt,S,P,et)),U&&(Dt=mm(Dt,U,G,et)),jt-=ar,et&&jt<Te){var dn=_o(Dt,Vn);return wm(a,u,Ol,ht.placeholder,A,Dt,dn,X,ue,Te-jt)}var Fr=Ie?A:this,xo=qe?Fr[a]:a;return jt=Dt.length,X?Dt=Tx(Dt,X):ft&&jt>1&&Dt.reverse(),je&&ue<jt&&(Dt.length=ue),this&&this!==On&&this instanceof ht&&(xo=wt||$i(xo)),xo.apply(Fr,Dt)}return ht}function xm(a,u){return function(A,S){return P3(A,a,u(S),{})}}function Pl(a,u){return function(A,S){var P;if(A===t&&S===t)return u;if(A!==t&&(P=A),S!==t){if(P===t)return S;typeof A=="string"||typeof S=="string"?(A=or(A),S=or(S)):(A=im(A),S=im(S)),P=a(A,S)}return P}}function Ld(a){return Co(function(u){return u=tn(u,rr(dt())),Et(function(A){var S=this;return a(u,function(P){return nr(P,S,A)})})})}function Bl(a,u){u=u===t?" ":or(u);var A=u.length;if(A<2)return A?vd(u,a):u;var S=vd(u,wl(a/Vs(u)));return Gs(u)?Uo(Pr(S),0,a).join(""):S.slice(0,a)}function cx(a,u,A,S){var P=u&w,U=$i(a);function G(){for(var X=-1,ue=arguments.length,Te=-1,je=S.length,Ie=Ae(je+ue),qe=this&&this!==On&&this instanceof G?U:a;++Te<je;)Ie[Te]=S[Te];for(;ue--;)Ie[Te++]=arguments[++X];return nr(qe,P?A:this,Ie)}return G}function vm(a){return function(u,A,S){return S&&typeof S!="number"&&Gn(u,A,S)&&(A=S=t),u=yo(u),A===t?(A=u,u=0):A=yo(A),S=S===t?u<A?1:-1:yo(S),V3(u,A,S,a)}}function _l(a){return function(u,A){return typeof u=="string"&&typeof A=="string"||(u=kr(u),A=kr(A)),a(u,A)}}function wm(a,u,A,S,P,U,G,X,ue,Te){var je=u&D,Ie=je?G:t,qe=je?t:G,et=je?U:t,ft=je?t:U;u|=je?L:E,u&=~(je?E:L),u&T||(u&=-4);var wt=[a,u,P,et,Ie,ft,qe,X,ue,Te],ht=A.apply(t,wt);return Bd(a)&&Om(ht,wt),ht.placeholder=S,Pm(ht,a,u)}function Nd(a){var u=Tn[a];return function(A,S){if(A=kr(A),S=S==null?0:Kn(xt(S),292),S&&Pp(A)){var P=(zt(A)+"e").split("e"),U=u(P[0]+"e"+(+P[1]+S));return P=(zt(U)+"e").split("e"),+(P[0]+"e"+(+P[1]-S))}return u(A)}}var ux=Js&&1/hl(new Js([,-0]))[1]==H?function(a){return new Js(a)}:Xd;function km(a){return function(u){var A=Un(u);return A==J?id(u):A==Pe?My(u):by(u,a(u))}}function go(a,u,A,S,P,U,G,X){var ue=u&k;if(!ue&&typeof a!="function")throw new br(l);var Te=S?S.length:0;if(Te||(u&=-97,S=P=t),G=G===t?G:Ln(xt(G),0),X=X===t?X:xt(X),Te-=P?P.length:0,u&E){var je=S,Ie=P;S=P=t}var qe=ue?t:Id(a),et=[a,u,A,S,P,je,Ie,U,G,X];if(qe&&Sx(et,qe),a=et[0],u=et[1],A=et[2],S=et[3],P=et[4],X=et[9]=et[9]===t?ue?0:a.length:Ln(et[9]-Te,0),!X&&u&(D|N)&&(u&=-25),!u||u==w)var ft=ax(a,u,A);else u==D||u==N?ft=lx(a,u,X):(u==L||u==(w|L))&&!P.length?ft=cx(a,u,A,S):ft=Ol.apply(t,et);var wt=qe?om:Om;return Pm(wt(ft,et),a,u)}function Sm(a,u,A,S){return a===t||_r(a,Qs[A])&&!Wt.call(S,A)?u:a}function Em(a,u,A,S,P,U){return rn(a)&&rn(u)&&(U.set(u,a),jl(a,u,t,Em,U),U.delete(u)),a}function dx(a){return na(a)?t:a}function Mm(a,u,A,S,P,U){var G=A&b,X=a.length,ue=u.length;if(X!=ue&&!(G&&ue>X))return!1;var Te=U.get(a),je=U.get(u);if(Te&&je)return Te==u&&je==a;var Ie=-1,qe=!0,et=A&x?new As:t;for(U.set(a,u),U.set(u,a);++Ie<X;){var ft=a[Ie],wt=u[Ie];if(S)var ht=G?S(wt,ft,Ie,u,a,U):S(ft,wt,Ie,a,u,U);if(ht!==t){if(ht)continue;qe=!1;break}if(et){if(!ed(u,function(jt,Dt){if(!Ki(et,Dt)&&(ft===jt||P(ft,jt,A,S,U)))return et.push(Dt)})){qe=!1;break}}else if(!(ft===wt||P(ft,wt,A,S,U))){qe=!1;break}}return U.delete(a),U.delete(u),qe}function fx(a,u,A,S,P,U,G){switch(A){case V:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case Pt:return!(a.byteLength!=u.byteLength||!U(new bl(a),new bl(u)));case ce:case le:case q:return _r(+a,+u);case Y:return a.name==u.name&&a.message==u.message;case Ee:case Fe:return a==u+"";case J:var X=id;case Pe:var ue=S&b;if(X||(X=hl),a.size!=u.size&&!ue)return!1;var Te=G.get(a);if(Te)return Te==u;S|=x,G.set(a,u);var je=Mm(X(a),X(u),S,P,U,G);return G.delete(a),je;case ze:if(Gi)return Gi.call(a)==Gi.call(u)}return!1}function hx(a,u,A,S,P,U){var G=A&b,X=jd(a),ue=X.length,Te=jd(u),je=Te.length;if(ue!=je&&!G)return!1;for(var Ie=ue;Ie--;){var qe=X[Ie];if(!(G?qe in u:Wt.call(u,qe)))return!1}var et=U.get(a),ft=U.get(u);if(et&&ft)return et==u&&ft==a;var wt=!0;U.set(a,u),U.set(u,a);for(var ht=G;++Ie<ue;){qe=X[Ie];var jt=a[qe],Dt=u[qe];if(S)var ir=G?S(Dt,jt,qe,u,a,U):S(jt,Dt,qe,a,u,U);if(!(ir===t?jt===Dt||P(jt,Dt,A,S,U):ir)){wt=!1;break}ht||(ht=qe=="constructor")}if(wt&&!ht){var Vn=a.constructor,ar=u.constructor;Vn!=ar&&"constructor"in a&&"constructor"in u&&!(typeof Vn=="function"&&Vn instanceof Vn&&typeof ar=="function"&&ar instanceof ar)&&(wt=!1)}return U.delete(a),U.delete(u),wt}function Co(a){return Fd(Im(a,t,Km),a+"")}function jd(a){return Gp(a,Rn,Od)}function Rd(a){return Gp(a,Xn,Tm)}var Id=Sl?function(a){return Sl.get(a)}:Xd;function Fl(a){for(var u=a.name+"",A=Xs[u],S=Wt.call(Xs,u)?A.length:0;S--;){var P=A[S],U=P.func;if(U==null||U==a)return P.name}return u}function ni(a){var u=Wt.call(z,"placeholder")?z:a;return u.placeholder}function dt(){var a=z.iteratee||Qd;return a=a===Qd?Qp:a,arguments.length?a(arguments[0],arguments[1]):a}function Wl(a,u){var A=a.__data__;return xx(u)?A[typeof u=="string"?"string":"hash"]:A.map}function Dd(a){for(var u=Rn(a),A=u.length;A--;){var S=u[A],P=a[S];u[A]=[S,P,jm(P)]}return u}function xs(a,u){var A=ky(a,u);return qp(A)?A:t}function px(a){var u=Wt.call(a,gs),A=a[gs];try{a[gs]=t;var S=!0}catch{}var P=Cl.call(a);return S&&(u?a[gs]=A:delete a[gs]),P}var Od=ld?function(a){return a==null?[]:(a=Zt(a),Po(ld(a),function(u){return Dp.call(a,u)}))}:$d,Tm=ld?function(a){for(var u=[];a;)Bo(u,Od(a)),a=yl(a);return u}:$d,Un=Zn;(cd&&Un(new cd(new ArrayBuffer(1)))!=V||Hi&&Un(new Hi)!=J||ud&&Un(ud.resolve())!=ke||Js&&Un(new Js)!=Pe||Yi&&Un(new Yi)!=mt)&&(Un=function(a){var u=Zn(a),A=u==he?a.constructor:t,S=A?vs(A):"";if(S)switch(S){case Qy:return V;case Jy:return J;case Xy:return ke;case $y:return Pe;case e3:return mt}return u});function mx(a,u,A){for(var S=-1,P=A.length;++S<P;){var U=A[S],G=U.size;switch(U.type){case"drop":a+=G;break;case"dropRight":u-=G;break;case"take":u=Kn(u,a+G);break;case"takeRight":a=Ln(a,u-G);break}}return{start:a,end:u}}function gx(a){var u=a.match(Tt);return u?u[1].split(Lt):[]}function Lm(a,u,A){u=Ko(u,a);for(var S=-1,P=u.length,U=!1;++S<P;){var G=$r(u[S]);if(!(U=a!=null&&A(a,G)))break;a=a[G]}return U||++S!=P?U:(P=a==null?0:a.length,!!P&&Gl(P)&&Ao(G,P)&&(At(a)||ws(a)))}function Cx(a){var u=a.length,A=new a.constructor(u);return u&&typeof a[0]=="string"&&Wt.call(a,"index")&&(A.index=a.index,A.input=a.input),A}function Nm(a){return typeof a.constructor=="function"&&!ea(a)?$s(yl(a)):{}}function Ax(a,u,A){var S=a.constructor;switch(u){case Pt:return Td(a);case ce:case le:return new S(+a);case V:return tx(a,A);case fe:case Re:case Ke:case ge:case me:case Ce:case Be:case Ye:case $e:return fm(a,A);case J:return new S;case q:case Fe:return new S(a);case Ee:return nx(a);case Pe:return new S;case ze:return rx(a)}}function bx(a,u){var A=u.length;if(!A)return a;var S=A-1;return u[S]=(A>1?"& ":"")+u[S],u=u.join(A>2?", ":" "),a.replace(St,`{
|
|
208
|
-
/* [wrapped with `+u+`] */
|
|
209
|
-
`)}function yx(a){return At(a)||ws(a)||!!(Op&&a&&a[Op])}function Ao(a,u){var A=typeof a;return u=u??Q,!!u&&(A=="number"||A!="symbol"&&yn.test(a))&&a>-1&&a%1==0&&a<u}function Gn(a,u,A){if(!rn(A))return!1;var S=typeof u;return(S=="number"?Jn(A)&&Ao(u,A.length):S=="string"&&u in A)?_r(A[u],a):!1}function Pd(a,u){if(At(a))return!1;var A=typeof a;return A=="number"||A=="symbol"||A=="boolean"||a==null||sr(a)?!0:nt.test(a)||!He.test(a)||u!=null&&a in Zt(u)}function xx(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function Bd(a){var u=Fl(a),A=z[u];if(typeof A!="function"||!(u in Rt.prototype))return!1;if(a===A)return!0;var S=Id(A);return!!S&&a===S[0]}function vx(a){return!!jp&&jp in a}var wx=ml?bo:ef;function ea(a){var u=a&&a.constructor,A=typeof u=="function"&&u.prototype||Qs;return a===A}function jm(a){return a===a&&!rn(a)}function Rm(a,u){return function(A){return A==null?!1:A[a]===u&&(u!==t||a in Zt(A))}}function kx(a){var u=Yl(a,function(S){return A.size===f&&A.clear(),S}),A=u.cache;return u}function Sx(a,u){var A=a[1],S=u[1],P=A|S,U=P<(w|k|M),G=S==M&&A==D||S==M&&A==O&&a[7].length<=u[8]||S==(M|O)&&u[7].length<=u[8]&&A==D;if(!(U||G))return a;S&w&&(a[2]=u[2],P|=A&w?0:T);var X=u[3];if(X){var ue=a[3];a[3]=ue?pm(ue,X,u[4]):X,a[4]=ue?_o(a[3],h):u[4]}return X=u[5],X&&(ue=a[5],a[5]=ue?mm(ue,X,u[6]):X,a[6]=ue?_o(a[5],h):u[6]),X=u[7],X&&(a[7]=X),S&M&&(a[8]=a[8]==null?u[8]:Kn(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=P,a}function Ex(a){var u=[];if(a!=null)for(var A in Zt(a))u.push(A);return u}function Mx(a){return Cl.call(a)}function Im(a,u,A){return u=Ln(u===t?a.length-1:u,0),function(){for(var S=arguments,P=-1,U=Ln(S.length-u,0),G=Ae(U);++P<U;)G[P]=S[u+P];P=-1;for(var X=Ae(u+1);++P<u;)X[P]=S[P];return X[u]=A(G),nr(a,this,X)}}function Dm(a,u){return u.length<2?a:ys(a,vr(u,0,-1))}function Tx(a,u){for(var A=a.length,S=Kn(u.length,A),P=Qn(a);S--;){var U=u[S];a[S]=Ao(U,A)?P[U]:t}return a}function _d(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var Om=Bm(om),ta=Uy||function(a,u){return On.setTimeout(a,u)},Fd=Bm(J3);function Pm(a,u,A){var S=u+"";return Fd(a,bx(S,Lx(gx(S),A)))}function Bm(a){var u=0,A=0;return function(){var S=Gy(),P=j-(S-A);if(A=S,P>0){if(++u>=R)return arguments[0]}else u=0;return a.apply(t,arguments)}}function zl(a,u){var A=-1,S=a.length,P=S-1;for(u=u===t?S:u;++A<u;){var U=xd(A,P),G=a[U];a[U]=a[A],a[A]=G}return a.length=u,a}var _m=kx(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(ct,function(A,S,P,U){u.push(P?U.replace(nn,"$1"):S||A)}),u});function $r(a){if(typeof a=="string"||sr(a))return a;var u=a+"";return u=="0"&&1/a==-H?"-0":u}function vs(a){if(a!=null){try{return gl.call(a)}catch{}try{return a+""}catch{}}return""}function Lx(a,u){return Ar(we,function(A){var S="_."+A[0];u&A[1]&&!dl(a,S)&&a.push(S)}),a.sort()}function Fm(a){if(a instanceof Rt)return a.clone();var u=new yr(a.__wrapped__,a.__chain__);return u.__actions__=Qn(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function Nx(a,u,A){(A?Gn(a,u,A):u===t)?u=1:u=Ln(xt(u),0);var S=a==null?0:a.length;if(!S||u<1)return[];for(var P=0,U=0,G=Ae(wl(S/u));P<S;)G[U++]=vr(a,P,P+=u);return G}function jx(a){for(var u=-1,A=a==null?0:a.length,S=0,P=[];++u<A;){var U=a[u];U&&(P[S++]=U)}return P}function Rx(){var a=arguments.length;if(!a)return[];for(var u=Ae(a-1),A=arguments[0],S=a;S--;)u[S-1]=arguments[S];return Bo(At(A)?Qn(A):[A],Pn(u,1))}var Ix=Et(function(a,u){return un(a)?qi(a,Pn(u,1,un,!0)):[]}),Dx=Et(function(a,u){var A=wr(u);return un(A)&&(A=t),un(a)?qi(a,Pn(u,1,un,!0),dt(A,2)):[]}),Ox=Et(function(a,u){var A=wr(u);return un(A)&&(A=t),un(a)?qi(a,Pn(u,1,un,!0),t,A):[]});function Px(a,u,A){var S=a==null?0:a.length;return S?(u=A||u===t?1:xt(u),vr(a,u<0?0:u,S)):[]}function Bx(a,u,A){var S=a==null?0:a.length;return S?(u=A||u===t?1:xt(u),u=S-u,vr(a,0,u<0?0:u)):[]}function _x(a,u){return a&&a.length?Il(a,dt(u,3),!0,!0):[]}function Fx(a,u){return a&&a.length?Il(a,dt(u,3),!0):[]}function Wx(a,u,A,S){var P=a==null?0:a.length;return P?(A&&typeof A!="number"&&Gn(a,u,A)&&(A=0,S=P),R3(a,u,A,S)):[]}function Wm(a,u,A){var S=a==null?0:a.length;if(!S)return-1;var P=A==null?0:xt(A);return P<0&&(P=Ln(S+P,0)),fl(a,dt(u,3),P)}function zm(a,u,A){var S=a==null?0:a.length;if(!S)return-1;var P=S-1;return A!==t&&(P=xt(A),P=A<0?Ln(S+P,0):Kn(P,S-1)),fl(a,dt(u,3),P,!0)}function Km(a){var u=a==null?0:a.length;return u?Pn(a,1):[]}function zx(a){var u=a==null?0:a.length;return u?Pn(a,H):[]}function Kx(a,u){var A=a==null?0:a.length;return A?(u=u===t?1:xt(u),Pn(a,u)):[]}function Ux(a){for(var u=-1,A=a==null?0:a.length,S={};++u<A;){var P=a[u];S[P[0]]=P[1]}return S}function Um(a){return a&&a.length?a[0]:t}function Hx(a,u,A){var S=a==null?0:a.length;if(!S)return-1;var P=A==null?0:xt(A);return P<0&&(P=Ln(S+P,0)),Zs(a,u,P)}function Yx(a){var u=a==null?0:a.length;return u?vr(a,0,-1):[]}var Zx=Et(function(a){var u=tn(a,Ed);return u.length&&u[0]===a[0]?gd(u):[]}),Gx=Et(function(a){var u=wr(a),A=tn(a,Ed);return u===wr(A)?u=t:A.pop(),A.length&&A[0]===a[0]?gd(A,dt(u,2)):[]}),Vx=Et(function(a){var u=wr(a),A=tn(a,Ed);return u=typeof u=="function"?u:t,u&&A.pop(),A.length&&A[0]===a[0]?gd(A,t,u):[]});function qx(a,u){return a==null?"":Yy.call(a,u)}function wr(a){var u=a==null?0:a.length;return u?a[u-1]:t}function Qx(a,u,A){var S=a==null?0:a.length;if(!S)return-1;var P=S;return A!==t&&(P=xt(A),P=P<0?Ln(S+P,0):Kn(P,S-1)),u===u?Ly(a,u,P):fl(a,wp,P,!0)}function Jx(a,u){return a&&a.length?em(a,xt(u)):t}var Xx=Et(Hm);function Hm(a,u){return a&&a.length&&u&&u.length?yd(a,u):a}function $x(a,u,A){return a&&a.length&&u&&u.length?yd(a,u,dt(A,2)):a}function e6(a,u,A){return a&&a.length&&u&&u.length?yd(a,u,t,A):a}var t6=Co(function(a,u){var A=a==null?0:a.length,S=fd(a,u);return rm(a,tn(u,function(P){return Ao(P,A)?+P:P}).sort(hm)),S});function n6(a,u){var A=[];if(!(a&&a.length))return A;var S=-1,P=[],U=a.length;for(u=dt(u,3);++S<U;){var G=a[S];u(G,S,a)&&(A.push(G),P.push(S))}return rm(a,P),A}function Wd(a){return a==null?a:qy.call(a)}function r6(a,u,A){var S=a==null?0:a.length;return S?(A&&typeof A!="number"&&Gn(a,u,A)?(u=0,A=S):(u=u==null?0:xt(u),A=A===t?S:xt(A)),vr(a,u,A)):[]}function o6(a,u){return Rl(a,u)}function s6(a,u,A){return wd(a,u,dt(A,2))}function i6(a,u){var A=a==null?0:a.length;if(A){var S=Rl(a,u);if(S<A&&_r(a[S],u))return S}return-1}function a6(a,u){return Rl(a,u,!0)}function l6(a,u,A){return wd(a,u,dt(A,2),!0)}function c6(a,u){var A=a==null?0:a.length;if(A){var S=Rl(a,u,!0)-1;if(_r(a[S],u))return S}return-1}function u6(a){return a&&a.length?sm(a):[]}function d6(a,u){return a&&a.length?sm(a,dt(u,2)):[]}function f6(a){var u=a==null?0:a.length;return u?vr(a,1,u):[]}function h6(a,u,A){return a&&a.length?(u=A||u===t?1:xt(u),vr(a,0,u<0?0:u)):[]}function p6(a,u,A){var S=a==null?0:a.length;return S?(u=A||u===t?1:xt(u),u=S-u,vr(a,u<0?0:u,S)):[]}function m6(a,u){return a&&a.length?Il(a,dt(u,3),!1,!0):[]}function g6(a,u){return a&&a.length?Il(a,dt(u,3)):[]}var C6=Et(function(a){return zo(Pn(a,1,un,!0))}),A6=Et(function(a){var u=wr(a);return un(u)&&(u=t),zo(Pn(a,1,un,!0),dt(u,2))}),b6=Et(function(a){var u=wr(a);return u=typeof u=="function"?u:t,zo(Pn(a,1,un,!0),t,u)});function y6(a){return a&&a.length?zo(a):[]}function x6(a,u){return a&&a.length?zo(a,dt(u,2)):[]}function v6(a,u){return u=typeof u=="function"?u:t,a&&a.length?zo(a,t,u):[]}function zd(a){if(!(a&&a.length))return[];var u=0;return a=Po(a,function(A){if(un(A))return u=Ln(A.length,u),!0}),od(u,function(A){return tn(a,td(A))})}function Ym(a,u){if(!(a&&a.length))return[];var A=zd(a);return u==null?A:tn(A,function(S){return nr(u,t,S)})}var w6=Et(function(a,u){return un(a)?qi(a,u):[]}),k6=Et(function(a){return Sd(Po(a,un))}),S6=Et(function(a){var u=wr(a);return un(u)&&(u=t),Sd(Po(a,un),dt(u,2))}),E6=Et(function(a){var u=wr(a);return u=typeof u=="function"?u:t,Sd(Po(a,un),t,u)}),M6=Et(zd);function T6(a,u){return cm(a||[],u||[],Vi)}function L6(a,u){return cm(a||[],u||[],Xi)}var N6=Et(function(a){var u=a.length,A=u>1?a[u-1]:t;return A=typeof A=="function"?(a.pop(),A):t,Ym(a,A)});function Zm(a){var u=z(a);return u.__chain__=!0,u}function j6(a,u){return u(a),a}function Kl(a,u){return u(a)}var R6=Co(function(a){var u=a.length,A=u?a[0]:0,S=this.__wrapped__,P=function(U){return fd(U,a)};return u>1||this.__actions__.length||!(S instanceof Rt)||!Ao(A)?this.thru(P):(S=S.slice(A,+A+(u?1:0)),S.__actions__.push({func:Kl,args:[P],thisArg:t}),new yr(S,this.__chain__).thru(function(U){return u&&!U.length&&U.push(t),U}))});function I6(){return Zm(this)}function D6(){return new yr(this.value(),this.__chain__)}function O6(){this.__values__===t&&(this.__values__=ig(this.value()));var a=this.__index__>=this.__values__.length,u=a?t:this.__values__[this.__index__++];return{done:a,value:u}}function P6(){return this}function B6(a){for(var u,A=this;A instanceof Ml;){var S=Fm(A);S.__index__=0,S.__values__=t,u?P.__wrapped__=S:u=S;var P=S;A=A.__wrapped__}return P.__wrapped__=a,u}function _6(){var a=this.__wrapped__;if(a instanceof Rt){var u=a;return this.__actions__.length&&(u=new Rt(this)),u=u.reverse(),u.__actions__.push({func:Kl,args:[Wd],thisArg:t}),new yr(u,this.__chain__)}return this.thru(Wd)}function F6(){return lm(this.__wrapped__,this.__actions__)}var W6=Dl(function(a,u,A){Wt.call(a,A)?++a[A]:mo(a,A,1)});function z6(a,u,A){var S=At(a)?xp:j3;return A&&Gn(a,u,A)&&(u=t),S(a,dt(u,3))}function K6(a,u){var A=At(a)?Po:Yp;return A(a,dt(u,3))}var U6=bm(Wm),H6=bm(zm);function Y6(a,u){return Pn(Ul(a,u),1)}function Z6(a,u){return Pn(Ul(a,u),H)}function G6(a,u,A){return A=A===t?1:xt(A),Pn(Ul(a,u),A)}function Gm(a,u){var A=At(a)?Ar:Wo;return A(a,dt(u,3))}function Vm(a,u){var A=At(a)?fy:Hp;return A(a,dt(u,3))}var V6=Dl(function(a,u,A){Wt.call(a,A)?a[A].push(u):mo(a,A,[u])});function q6(a,u,A,S){a=Jn(a)?a:oi(a),A=A&&!S?xt(A):0;var P=a.length;return A<0&&(A=Ln(P+A,0)),Vl(a)?A<=P&&a.indexOf(u,A)>-1:!!P&&Zs(a,u,A)>-1}var Q6=Et(function(a,u,A){var S=-1,P=typeof u=="function",U=Jn(a)?Ae(a.length):[];return Wo(a,function(G){U[++S]=P?nr(u,G,A):Qi(G,u,A)}),U}),J6=Dl(function(a,u,A){mo(a,A,u)});function Ul(a,u){var A=At(a)?tn:Jp;return A(a,dt(u,3))}function X6(a,u,A,S){return a==null?[]:(At(u)||(u=u==null?[]:[u]),A=S?t:A,At(A)||(A=A==null?[]:[A]),tm(a,u,A))}var $6=Dl(function(a,u,A){a[A?0:1].push(u)},function(){return[[],[]]});function ev(a,u,A){var S=At(a)?$u:Sp,P=arguments.length<3;return S(a,dt(u,4),A,P,Wo)}function tv(a,u,A){var S=At(a)?hy:Sp,P=arguments.length<3;return S(a,dt(u,4),A,P,Hp)}function nv(a,u){var A=At(a)?Po:Yp;return A(a,Zl(dt(u,3)))}function rv(a){var u=At(a)?Wp:q3;return u(a)}function ov(a,u,A){(A?Gn(a,u,A):u===t)?u=1:u=xt(u);var S=At(a)?E3:Q3;return S(a,u)}function sv(a){var u=At(a)?M3:X3;return u(a)}function iv(a){if(a==null)return 0;if(Jn(a))return Vl(a)?Vs(a):a.length;var u=Un(a);return u==J||u==Pe?a.size:Ad(a).length}function av(a,u,A){var S=At(a)?ed:$3;return A&&Gn(a,u,A)&&(u=t),S(a,dt(u,3))}var lv=Et(function(a,u){if(a==null)return[];var A=u.length;return A>1&&Gn(a,u[0],u[1])?u=[]:A>2&&Gn(u[0],u[1],u[2])&&(u=[u[0]]),tm(a,Pn(u,1),[])}),Hl=Ky||function(){return On.Date.now()};function cv(a,u){if(typeof u!="function")throw new br(l);return a=xt(a),function(){if(--a<1)return u.apply(this,arguments)}}function qm(a,u,A){return u=A?t:u,u=a&&u==null?a.length:u,go(a,M,t,t,t,t,u)}function Qm(a,u){var A;if(typeof u!="function")throw new br(l);return a=xt(a),function(){return--a>0&&(A=u.apply(this,arguments)),a<=1&&(u=t),A}}var Kd=Et(function(a,u,A){var S=w;if(A.length){var P=_o(A,ni(Kd));S|=L}return go(a,S,u,A,P)}),Jm=Et(function(a,u,A){var S=w|k;if(A.length){var P=_o(A,ni(Jm));S|=L}return go(u,S,a,A,P)});function Xm(a,u,A){u=A?t:u;var S=go(a,D,t,t,t,t,t,u);return S.placeholder=Xm.placeholder,S}function $m(a,u,A){u=A?t:u;var S=go(a,N,t,t,t,t,t,u);return S.placeholder=$m.placeholder,S}function eg(a,u,A){var S,P,U,G,X,ue,Te=0,je=!1,Ie=!1,qe=!0;if(typeof a!="function")throw new br(l);u=kr(u)||0,rn(A)&&(je=!!A.leading,Ie="maxWait"in A,U=Ie?Ln(kr(A.maxWait)||0,u):U,qe="trailing"in A?!!A.trailing:qe);function et(dn){var Fr=S,xo=P;return S=P=t,Te=dn,G=a.apply(xo,Fr),G}function ft(dn){return Te=dn,X=ta(jt,u),je?et(dn):G}function wt(dn){var Fr=dn-ue,xo=dn-Te,bg=u-Fr;return Ie?Kn(bg,U-xo):bg}function ht(dn){var Fr=dn-ue,xo=dn-Te;return ue===t||Fr>=u||Fr<0||Ie&&xo>=U}function jt(){var dn=Hl();if(ht(dn))return Dt(dn);X=ta(jt,wt(dn))}function Dt(dn){return X=t,qe&&S?et(dn):(S=P=t,G)}function ir(){X!==t&&um(X),Te=0,S=ue=P=X=t}function Vn(){return X===t?G:Dt(Hl())}function ar(){var dn=Hl(),Fr=ht(dn);if(S=arguments,P=this,ue=dn,Fr){if(X===t)return ft(ue);if(Ie)return um(X),X=ta(jt,u),et(ue)}return X===t&&(X=ta(jt,u)),G}return ar.cancel=ir,ar.flush=Vn,ar}var uv=Et(function(a,u){return Up(a,1,u)}),dv=Et(function(a,u,A){return Up(a,kr(u)||0,A)});function fv(a){return go(a,I)}function Yl(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new br(l);var A=function(){var S=arguments,P=u?u.apply(this,S):S[0],U=A.cache;if(U.has(P))return U.get(P);var G=a.apply(this,S);return A.cache=U.set(P,G)||U,G};return A.cache=new(Yl.Cache||po),A}Yl.Cache=po;function Zl(a){if(typeof a!="function")throw new br(l);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function hv(a){return Qm(2,a)}var pv=ex(function(a,u){u=u.length==1&&At(u[0])?tn(u[0],rr(dt())):tn(Pn(u,1),rr(dt()));var A=u.length;return Et(function(S){for(var P=-1,U=Kn(S.length,A);++P<U;)S[P]=u[P].call(this,S[P]);return nr(a,this,S)})}),Ud=Et(function(a,u){var A=_o(u,ni(Ud));return go(a,L,t,u,A)}),tg=Et(function(a,u){var A=_o(u,ni(tg));return go(a,E,t,u,A)}),mv=Co(function(a,u){return go(a,O,t,t,t,u)});function gv(a,u){if(typeof a!="function")throw new br(l);return u=u===t?u:xt(u),Et(a,u)}function Cv(a,u){if(typeof a!="function")throw new br(l);return u=u==null?0:Ln(xt(u),0),Et(function(A){var S=A[u],P=Uo(A,0,u);return S&&Bo(P,S),nr(a,this,P)})}function Av(a,u,A){var S=!0,P=!0;if(typeof a!="function")throw new br(l);return rn(A)&&(S="leading"in A?!!A.leading:S,P="trailing"in A?!!A.trailing:P),eg(a,u,{leading:S,maxWait:u,trailing:P})}function bv(a){return qm(a,1)}function yv(a,u){return Ud(Md(u),a)}function xv(){if(!arguments.length)return[];var a=arguments[0];return At(a)?a:[a]}function vv(a){return xr(a,y)}function wv(a,u){return u=typeof u=="function"?u:t,xr(a,y,u)}function kv(a){return xr(a,g|y)}function Sv(a,u){return u=typeof u=="function"?u:t,xr(a,g|y,u)}function Ev(a,u){return u==null||Kp(a,u,Rn(u))}function _r(a,u){return a===u||a!==a&&u!==u}var Mv=_l(md),Tv=_l(function(a,u){return a>=u}),ws=Vp((function(){return arguments})())?Vp:function(a){return sn(a)&&Wt.call(a,"callee")&&!Dp.call(a,"callee")},At=Ae.isArray,Lv=mp?rr(mp):B3;function Jn(a){return a!=null&&Gl(a.length)&&!bo(a)}function un(a){return sn(a)&&Jn(a)}function Nv(a){return a===!0||a===!1||sn(a)&&Zn(a)==ce}var Ho=Hy||ef,jv=gp?rr(gp):_3;function Rv(a){return sn(a)&&a.nodeType===1&&!na(a)}function Iv(a){if(a==null)return!0;if(Jn(a)&&(At(a)||typeof a=="string"||typeof a.splice=="function"||Ho(a)||ri(a)||ws(a)))return!a.length;var u=Un(a);if(u==J||u==Pe)return!a.size;if(ea(a))return!Ad(a).length;for(var A in a)if(Wt.call(a,A))return!1;return!0}function Dv(a,u){return Ji(a,u)}function Ov(a,u,A){A=typeof A=="function"?A:t;var S=A?A(a,u):t;return S===t?Ji(a,u,t,A):!!S}function Hd(a){if(!sn(a))return!1;var u=Zn(a);return u==Y||u==se||typeof a.message=="string"&&typeof a.name=="string"&&!na(a)}function Pv(a){return typeof a=="number"&&Pp(a)}function bo(a){if(!rn(a))return!1;var u=Zn(a);return u==oe||u==$||u==Z||u==De}function ng(a){return typeof a=="number"&&a==xt(a)}function Gl(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=Q}function rn(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function sn(a){return a!=null&&typeof a=="object"}var rg=Cp?rr(Cp):W3;function Bv(a,u){return a===u||Cd(a,u,Dd(u))}function _v(a,u,A){return A=typeof A=="function"?A:t,Cd(a,u,Dd(u),A)}function Fv(a){return og(a)&&a!=+a}function Wv(a){if(wx(a))throw new gt(s);return qp(a)}function zv(a){return a===null}function Kv(a){return a==null}function og(a){return typeof a=="number"||sn(a)&&Zn(a)==q}function na(a){if(!sn(a)||Zn(a)!=he)return!1;var u=yl(a);if(u===null)return!0;var A=Wt.call(u,"constructor")&&u.constructor;return typeof A=="function"&&A instanceof A&&gl.call(A)==_y}var Yd=Ap?rr(Ap):z3;function Uv(a){return ng(a)&&a>=-Q&&a<=Q}var sg=bp?rr(bp):K3;function Vl(a){return typeof a=="string"||!At(a)&&sn(a)&&Zn(a)==Fe}function sr(a){return typeof a=="symbol"||sn(a)&&Zn(a)==ze}var ri=yp?rr(yp):U3;function Hv(a){return a===t}function Yv(a){return sn(a)&&Un(a)==mt}function Zv(a){return sn(a)&&Zn(a)==Ht}var Gv=_l(bd),Vv=_l(function(a,u){return a<=u});function ig(a){if(!a)return[];if(Jn(a))return Vl(a)?Pr(a):Qn(a);if(Ui&&a[Ui])return Ey(a[Ui]());var u=Un(a),A=u==J?id:u==Pe?hl:oi;return A(a)}function yo(a){if(!a)return a===0?a:0;if(a=kr(a),a===H||a===-H){var u=a<0?-1:1;return u*ee}return a===a?a:0}function xt(a){var u=yo(a),A=u%1;return u===u?A?u-A:u:0}function ag(a){return a?bs(xt(a),0,pe):0}function kr(a){if(typeof a=="number")return a;if(sr(a))return ae;if(rn(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=rn(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=Ep(a);var A=Or.test(a);return A||yt.test(a)?cy(a.slice(2),A?2:8):Vt.test(a)?ae:+a}function lg(a){return Xr(a,Xn(a))}function qv(a){return a?bs(xt(a),-Q,Q):a===0?a:0}function zt(a){return a==null?"":or(a)}var Qv=ei(function(a,u){if(ea(u)||Jn(u)){Xr(u,Rn(u),a);return}for(var A in u)Wt.call(u,A)&&Vi(a,A,u[A])}),cg=ei(function(a,u){Xr(u,Xn(u),a)}),ql=ei(function(a,u,A,S){Xr(u,Xn(u),a,S)}),Jv=ei(function(a,u,A,S){Xr(u,Rn(u),a,S)}),Xv=Co(fd);function $v(a,u){var A=$s(a);return u==null?A:zp(A,u)}var e4=Et(function(a,u){a=Zt(a);var A=-1,S=u.length,P=S>2?u[2]:t;for(P&&Gn(u[0],u[1],P)&&(S=1);++A<S;)for(var U=u[A],G=Xn(U),X=-1,ue=G.length;++X<ue;){var Te=G[X],je=a[Te];(je===t||_r(je,Qs[Te])&&!Wt.call(a,Te))&&(a[Te]=U[Te])}return a}),t4=Et(function(a){return a.push(t,Em),nr(ug,t,a)});function n4(a,u){return vp(a,dt(u,3),Jr)}function r4(a,u){return vp(a,dt(u,3),pd)}function o4(a,u){return a==null?a:hd(a,dt(u,3),Xn)}function s4(a,u){return a==null?a:Zp(a,dt(u,3),Xn)}function i4(a,u){return a&&Jr(a,dt(u,3))}function a4(a,u){return a&&pd(a,dt(u,3))}function l4(a){return a==null?[]:Nl(a,Rn(a))}function c4(a){return a==null?[]:Nl(a,Xn(a))}function Zd(a,u,A){var S=a==null?t:ys(a,u);return S===t?A:S}function u4(a,u){return a!=null&&Lm(a,u,I3)}function Gd(a,u){return a!=null&&Lm(a,u,D3)}var d4=xm(function(a,u,A){u!=null&&typeof u.toString!="function"&&(u=Cl.call(u)),a[u]=A},qd($n)),f4=xm(function(a,u,A){u!=null&&typeof u.toString!="function"&&(u=Cl.call(u)),Wt.call(a,u)?a[u].push(A):a[u]=[A]},dt),h4=Et(Qi);function Rn(a){return Jn(a)?Fp(a):Ad(a)}function Xn(a){return Jn(a)?Fp(a,!0):H3(a)}function p4(a,u){var A={};return u=dt(u,3),Jr(a,function(S,P,U){mo(A,u(S,P,U),S)}),A}function m4(a,u){var A={};return u=dt(u,3),Jr(a,function(S,P,U){mo(A,P,u(S,P,U))}),A}var g4=ei(function(a,u,A){jl(a,u,A)}),ug=ei(function(a,u,A,S){jl(a,u,A,S)}),C4=Co(function(a,u){var A={};if(a==null)return A;var S=!1;u=tn(u,function(U){return U=Ko(U,a),S||(S=U.length>1),U}),Xr(a,Rd(a),A),S&&(A=xr(A,g|C|y,dx));for(var P=u.length;P--;)kd(A,u[P]);return A});function A4(a,u){return dg(a,Zl(dt(u)))}var b4=Co(function(a,u){return a==null?{}:Z3(a,u)});function dg(a,u){if(a==null)return{};var A=tn(Rd(a),function(S){return[S]});return u=dt(u),nm(a,A,function(S,P){return u(S,P[0])})}function y4(a,u,A){u=Ko(u,a);var S=-1,P=u.length;for(P||(P=1,a=t);++S<P;){var U=a==null?t:a[$r(u[S])];U===t&&(S=P,U=A),a=bo(U)?U.call(a):U}return a}function x4(a,u,A){return a==null?a:Xi(a,u,A)}function v4(a,u,A,S){return S=typeof S=="function"?S:t,a==null?a:Xi(a,u,A,S)}var fg=km(Rn),hg=km(Xn);function w4(a,u,A){var S=At(a),P=S||Ho(a)||ri(a);if(u=dt(u,4),A==null){var U=a&&a.constructor;P?A=S?new U:[]:rn(a)?A=bo(U)?$s(yl(a)):{}:A={}}return(P?Ar:Jr)(a,function(G,X,ue){return u(A,G,X,ue)}),A}function k4(a,u){return a==null?!0:kd(a,u)}function S4(a,u,A){return a==null?a:am(a,u,Md(A))}function E4(a,u,A,S){return S=typeof S=="function"?S:t,a==null?a:am(a,u,Md(A),S)}function oi(a){return a==null?[]:sd(a,Rn(a))}function M4(a){return a==null?[]:sd(a,Xn(a))}function T4(a,u,A){return A===t&&(A=u,u=t),A!==t&&(A=kr(A),A=A===A?A:0),u!==t&&(u=kr(u),u=u===u?u:0),bs(kr(a),u,A)}function L4(a,u,A){return u=yo(u),A===t?(A=u,u=0):A=yo(A),a=kr(a),O3(a,u,A)}function N4(a,u,A){if(A&&typeof A!="boolean"&&Gn(a,u,A)&&(u=A=t),A===t&&(typeof u=="boolean"?(A=u,u=t):typeof a=="boolean"&&(A=a,a=t)),a===t&&u===t?(a=0,u=1):(a=yo(a),u===t?(u=a,a=0):u=yo(u)),a>u){var S=a;a=u,u=S}if(A||a%1||u%1){var P=Bp();return Kn(a+P*(u-a+ly("1e-"+((P+"").length-1))),u)}return xd(a,u)}var j4=ti(function(a,u,A){return u=u.toLowerCase(),a+(A?pg(u):u)});function pg(a){return Vd(zt(a).toLowerCase())}function mg(a){return a=zt(a),a&&a.replace(fo,xy).replace(X5,"")}function R4(a,u,A){a=zt(a),u=or(u);var S=a.length;A=A===t?S:bs(xt(A),0,S);var P=A;return A-=u.length,A>=0&&a.slice(A,P)==u}function I4(a){return a=zt(a),a&&We.test(a)?a.replace(Ne,vy):a}function D4(a){return a=zt(a),a&&Ve.test(a)?a.replace(at,"\\$&"):a}var O4=ti(function(a,u,A){return a+(A?"-":"")+u.toLowerCase()}),P4=ti(function(a,u,A){return a+(A?" ":"")+u.toLowerCase()}),B4=Am("toLowerCase");function _4(a,u,A){a=zt(a),u=xt(u);var S=u?Vs(a):0;if(!u||S>=u)return a;var P=(u-S)/2;return Bl(kl(P),A)+a+Bl(wl(P),A)}function F4(a,u,A){a=zt(a),u=xt(u);var S=u?Vs(a):0;return u&&S<u?a+Bl(u-S,A):a}function W4(a,u,A){a=zt(a),u=xt(u);var S=u?Vs(a):0;return u&&S<u?Bl(u-S,A)+a:a}function z4(a,u,A){return A||u==null?u=0:u&&(u=+u),Vy(zt(a).replace(rt,""),u||0)}function K4(a,u,A){return(A?Gn(a,u,A):u===t)?u=1:u=xt(u),vd(zt(a),u)}function U4(){var a=arguments,u=zt(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var H4=ti(function(a,u,A){return a+(A?"_":"")+u.toLowerCase()});function Y4(a,u,A){return A&&typeof A!="number"&&Gn(a,u,A)&&(u=A=t),A=A===t?pe:A>>>0,A?(a=zt(a),a&&(typeof u=="string"||u!=null&&!Yd(u))&&(u=or(u),!u&&Gs(a))?Uo(Pr(a),0,A):a.split(u,A)):[]}var Z4=ti(function(a,u,A){return a+(A?" ":"")+Vd(u)});function G4(a,u,A){return a=zt(a),A=A==null?0:bs(xt(A),0,a.length),u=or(u),a.slice(A,A+u.length)==u}function V4(a,u,A){var S=z.templateSettings;A&&Gn(a,u,A)&&(u=t),a=zt(a),u=ql({},u,S,Sm);var P=ql({},u.imports,S.imports,Sm),U=Rn(P),G=sd(P,U),X,ue,Te=0,je=u.interpolate||zn,Ie="__p += '",qe=ad((u.escape||zn).source+"|"+je.source+"|"+(je===tt?Ft:zn).source+"|"+(u.evaluate||zn).source+"|$","g"),et="//# sourceURL="+(Wt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ry+"]")+`
|
|
210
|
-
`;a.replace(qe,function(ht,jt,Dt,ir,Vn,ar){return Dt||(Dt=ir),Ie+=a.slice(Te,ar).replace(ll,wy),jt&&(X=!0,Ie+=`' +
|
|
211
|
-
__e(`+jt+`) +
|
|
212
|
-
'`),Vn&&(ue=!0,Ie+=`';
|
|
213
|
-
`+Vn+`;
|
|
214
|
-
__p += '`),Dt&&(Ie+=`' +
|
|
215
|
-
((__t = (`+Dt+`)) == null ? '' : __t) +
|
|
216
|
-
'`),Te=ar+ht.length,ht}),Ie+=`';
|
|
217
|
-
`;var ft=Wt.call(u,"variable")&&u.variable;if(!ft)Ie=`with (obj) {
|
|
218
|
-
`+Ie+`
|
|
219
|
-
}
|
|
220
|
-
`;else if(_t.test(ft))throw new gt(c);Ie=(ue?Ie.replace(st,""):Ie).replace(xe,"$1").replace(Ue,"$1;"),Ie="function("+(ft||"obj")+`) {
|
|
221
|
-
`+(ft?"":`obj || (obj = {});
|
|
222
|
-
`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(ue?`, __j = Array.prototype.join;
|
|
223
|
-
function print() { __p += __j.call(arguments, '') }
|
|
224
|
-
`:`;
|
|
225
|
-
`)+Ie+`return __p
|
|
226
|
-
}`;var wt=Cg(function(){return Bt(U,et+"return "+Ie).apply(t,G)});if(wt.source=Ie,Hd(wt))throw wt;return wt}function q4(a){return zt(a).toLowerCase()}function Q4(a){return zt(a).toUpperCase()}function J4(a,u,A){if(a=zt(a),a&&(A||u===t))return Ep(a);if(!a||!(u=or(u)))return a;var S=Pr(a),P=Pr(u),U=Mp(S,P),G=Tp(S,P)+1;return Uo(S,U,G).join("")}function X4(a,u,A){if(a=zt(a),a&&(A||u===t))return a.slice(0,Np(a)+1);if(!a||!(u=or(u)))return a;var S=Pr(a),P=Tp(S,Pr(u))+1;return Uo(S,0,P).join("")}function $4(a,u,A){if(a=zt(a),a&&(A||u===t))return a.replace(rt,"");if(!a||!(u=or(u)))return a;var S=Pr(a),P=Mp(S,Pr(u));return Uo(S,P).join("")}function e9(a,u){var A=F,S=_;if(rn(u)){var P="separator"in u?u.separator:P;A="length"in u?xt(u.length):A,S="omission"in u?or(u.omission):S}a=zt(a);var U=a.length;if(Gs(a)){var G=Pr(a);U=G.length}if(A>=U)return a;var X=A-Vs(S);if(X<1)return S;var ue=G?Uo(G,0,X).join(""):a.slice(0,X);if(P===t)return ue+S;if(G&&(X+=ue.length-X),Yd(P)){if(a.slice(X).search(P)){var Te,je=ue;for(P.global||(P=ad(P.source,zt(Yt.exec(P))+"g")),P.lastIndex=0;Te=P.exec(je);)var Ie=Te.index;ue=ue.slice(0,Ie===t?X:Ie)}}else if(a.indexOf(or(P),X)!=X){var qe=ue.lastIndexOf(P);qe>-1&&(ue=ue.slice(0,qe))}return ue+S}function t9(a){return a=zt(a),a&&Ge.test(a)?a.replace(_e,Ny):a}var n9=ti(function(a,u,A){return a+(A?" ":"")+u.toUpperCase()}),Vd=Am("toUpperCase");function gg(a,u,A){return a=zt(a),u=A?t:u,u===t?Sy(a)?Iy(a):gy(a):a.match(u)||[]}var Cg=Et(function(a,u){try{return nr(a,t,u)}catch(A){return Hd(A)?A:new gt(A)}}),r9=Co(function(a,u){return Ar(u,function(A){A=$r(A),mo(a,A,Kd(a[A],a))}),a});function o9(a){var u=a==null?0:a.length,A=dt();return a=u?tn(a,function(S){if(typeof S[1]!="function")throw new br(l);return[A(S[0]),S[1]]}):[],Et(function(S){for(var P=-1;++P<u;){var U=a[P];if(nr(U[0],this,S))return nr(U[1],this,S)}})}function s9(a){return N3(xr(a,g))}function qd(a){return function(){return a}}function i9(a,u){return a==null||a!==a?u:a}var a9=ym(),l9=ym(!0);function $n(a){return a}function Qd(a){return Qp(typeof a=="function"?a:xr(a,g))}function c9(a){return Xp(xr(a,g))}function u9(a,u){return $p(a,xr(u,g))}var d9=Et(function(a,u){return function(A){return Qi(A,a,u)}}),f9=Et(function(a,u){return function(A){return Qi(a,A,u)}});function Jd(a,u,A){var S=Rn(u),P=Nl(u,S);A==null&&!(rn(u)&&(P.length||!S.length))&&(A=u,u=a,a=this,P=Nl(u,Rn(u)));var U=!(rn(A)&&"chain"in A)||!!A.chain,G=bo(a);return Ar(P,function(X){var ue=u[X];a[X]=ue,G&&(a.prototype[X]=function(){var Te=this.__chain__;if(U||Te){var je=a(this.__wrapped__),Ie=je.__actions__=Qn(this.__actions__);return Ie.push({func:ue,args:arguments,thisArg:a}),je.__chain__=Te,je}return ue.apply(a,Bo([this.value()],arguments))})}),a}function h9(){return On._===this&&(On._=Fy),this}function Xd(){}function p9(a){return a=xt(a),Et(function(u){return em(u,a)})}var m9=Ld(tn),g9=Ld(xp),C9=Ld(ed);function Ag(a){return Pd(a)?td($r(a)):G3(a)}function A9(a){return function(u){return a==null?t:ys(a,u)}}var b9=vm(),y9=vm(!0);function $d(){return[]}function ef(){return!1}function x9(){return{}}function v9(){return""}function w9(){return!0}function k9(a,u){if(a=xt(a),a<1||a>Q)return[];var A=pe,S=Kn(a,pe);u=dt(u),a-=pe;for(var P=od(S,u);++A<a;)u(A);return P}function S9(a){return At(a)?tn(a,$r):sr(a)?[a]:Qn(_m(zt(a)))}function E9(a){var u=++By;return zt(a)+u}var M9=Pl(function(a,u){return a+u},0),T9=Nd("ceil"),L9=Pl(function(a,u){return a/u},1),N9=Nd("floor");function j9(a){return a&&a.length?Ll(a,$n,md):t}function R9(a,u){return a&&a.length?Ll(a,dt(u,2),md):t}function I9(a){return kp(a,$n)}function D9(a,u){return kp(a,dt(u,2))}function O9(a){return a&&a.length?Ll(a,$n,bd):t}function P9(a,u){return a&&a.length?Ll(a,dt(u,2),bd):t}var B9=Pl(function(a,u){return a*u},1),_9=Nd("round"),F9=Pl(function(a,u){return a-u},0);function W9(a){return a&&a.length?rd(a,$n):0}function z9(a,u){return a&&a.length?rd(a,dt(u,2)):0}return z.after=cv,z.ary=qm,z.assign=Qv,z.assignIn=cg,z.assignInWith=ql,z.assignWith=Jv,z.at=Xv,z.before=Qm,z.bind=Kd,z.bindAll=r9,z.bindKey=Jm,z.castArray=xv,z.chain=Zm,z.chunk=Nx,z.compact=jx,z.concat=Rx,z.cond=o9,z.conforms=s9,z.constant=qd,z.countBy=W6,z.create=$v,z.curry=Xm,z.curryRight=$m,z.debounce=eg,z.defaults=e4,z.defaultsDeep=t4,z.defer=uv,z.delay=dv,z.difference=Ix,z.differenceBy=Dx,z.differenceWith=Ox,z.drop=Px,z.dropRight=Bx,z.dropRightWhile=_x,z.dropWhile=Fx,z.fill=Wx,z.filter=K6,z.flatMap=Y6,z.flatMapDeep=Z6,z.flatMapDepth=G6,z.flatten=Km,z.flattenDeep=zx,z.flattenDepth=Kx,z.flip=fv,z.flow=a9,z.flowRight=l9,z.fromPairs=Ux,z.functions=l4,z.functionsIn=c4,z.groupBy=V6,z.initial=Yx,z.intersection=Zx,z.intersectionBy=Gx,z.intersectionWith=Vx,z.invert=d4,z.invertBy=f4,z.invokeMap=Q6,z.iteratee=Qd,z.keyBy=J6,z.keys=Rn,z.keysIn=Xn,z.map=Ul,z.mapKeys=p4,z.mapValues=m4,z.matches=c9,z.matchesProperty=u9,z.memoize=Yl,z.merge=g4,z.mergeWith=ug,z.method=d9,z.methodOf=f9,z.mixin=Jd,z.negate=Zl,z.nthArg=p9,z.omit=C4,z.omitBy=A4,z.once=hv,z.orderBy=X6,z.over=m9,z.overArgs=pv,z.overEvery=g9,z.overSome=C9,z.partial=Ud,z.partialRight=tg,z.partition=$6,z.pick=b4,z.pickBy=dg,z.property=Ag,z.propertyOf=A9,z.pull=Xx,z.pullAll=Hm,z.pullAllBy=$x,z.pullAllWith=e6,z.pullAt=t6,z.range=b9,z.rangeRight=y9,z.rearg=mv,z.reject=nv,z.remove=n6,z.rest=gv,z.reverse=Wd,z.sampleSize=ov,z.set=x4,z.setWith=v4,z.shuffle=sv,z.slice=r6,z.sortBy=lv,z.sortedUniq=u6,z.sortedUniqBy=d6,z.split=Y4,z.spread=Cv,z.tail=f6,z.take=h6,z.takeRight=p6,z.takeRightWhile=m6,z.takeWhile=g6,z.tap=j6,z.throttle=Av,z.thru=Kl,z.toArray=ig,z.toPairs=fg,z.toPairsIn=hg,z.toPath=S9,z.toPlainObject=lg,z.transform=w4,z.unary=bv,z.union=C6,z.unionBy=A6,z.unionWith=b6,z.uniq=y6,z.uniqBy=x6,z.uniqWith=v6,z.unset=k4,z.unzip=zd,z.unzipWith=Ym,z.update=S4,z.updateWith=E4,z.values=oi,z.valuesIn=M4,z.without=w6,z.words=gg,z.wrap=yv,z.xor=k6,z.xorBy=S6,z.xorWith=E6,z.zip=M6,z.zipObject=T6,z.zipObjectDeep=L6,z.zipWith=N6,z.entries=fg,z.entriesIn=hg,z.extend=cg,z.extendWith=ql,Jd(z,z),z.add=M9,z.attempt=Cg,z.camelCase=j4,z.capitalize=pg,z.ceil=T9,z.clamp=T4,z.clone=vv,z.cloneDeep=kv,z.cloneDeepWith=Sv,z.cloneWith=wv,z.conformsTo=Ev,z.deburr=mg,z.defaultTo=i9,z.divide=L9,z.endsWith=R4,z.eq=_r,z.escape=I4,z.escapeRegExp=D4,z.every=z6,z.find=U6,z.findIndex=Wm,z.findKey=n4,z.findLast=H6,z.findLastIndex=zm,z.findLastKey=r4,z.floor=N9,z.forEach=Gm,z.forEachRight=Vm,z.forIn=o4,z.forInRight=s4,z.forOwn=i4,z.forOwnRight=a4,z.get=Zd,z.gt=Mv,z.gte=Tv,z.has=u4,z.hasIn=Gd,z.head=Um,z.identity=$n,z.includes=q6,z.indexOf=Hx,z.inRange=L4,z.invoke=h4,z.isArguments=ws,z.isArray=At,z.isArrayBuffer=Lv,z.isArrayLike=Jn,z.isArrayLikeObject=un,z.isBoolean=Nv,z.isBuffer=Ho,z.isDate=jv,z.isElement=Rv,z.isEmpty=Iv,z.isEqual=Dv,z.isEqualWith=Ov,z.isError=Hd,z.isFinite=Pv,z.isFunction=bo,z.isInteger=ng,z.isLength=Gl,z.isMap=rg,z.isMatch=Bv,z.isMatchWith=_v,z.isNaN=Fv,z.isNative=Wv,z.isNil=Kv,z.isNull=zv,z.isNumber=og,z.isObject=rn,z.isObjectLike=sn,z.isPlainObject=na,z.isRegExp=Yd,z.isSafeInteger=Uv,z.isSet=sg,z.isString=Vl,z.isSymbol=sr,z.isTypedArray=ri,z.isUndefined=Hv,z.isWeakMap=Yv,z.isWeakSet=Zv,z.join=qx,z.kebabCase=O4,z.last=wr,z.lastIndexOf=Qx,z.lowerCase=P4,z.lowerFirst=B4,z.lt=Gv,z.lte=Vv,z.max=j9,z.maxBy=R9,z.mean=I9,z.meanBy=D9,z.min=O9,z.minBy=P9,z.stubArray=$d,z.stubFalse=ef,z.stubObject=x9,z.stubString=v9,z.stubTrue=w9,z.multiply=B9,z.nth=Jx,z.noConflict=h9,z.noop=Xd,z.now=Hl,z.pad=_4,z.padEnd=F4,z.padStart=W4,z.parseInt=z4,z.random=N4,z.reduce=ev,z.reduceRight=tv,z.repeat=K4,z.replace=U4,z.result=y4,z.round=_9,z.runInContext=ie,z.sample=rv,z.size=iv,z.snakeCase=H4,z.some=av,z.sortedIndex=o6,z.sortedIndexBy=s6,z.sortedIndexOf=i6,z.sortedLastIndex=a6,z.sortedLastIndexBy=l6,z.sortedLastIndexOf=c6,z.startCase=Z4,z.startsWith=G4,z.subtract=F9,z.sum=W9,z.sumBy=z9,z.template=V4,z.times=k9,z.toFinite=yo,z.toInteger=xt,z.toLength=ag,z.toLower=q4,z.toNumber=kr,z.toSafeInteger=qv,z.toString=zt,z.toUpper=Q4,z.trim=J4,z.trimEnd=X4,z.trimStart=$4,z.truncate=e9,z.unescape=t9,z.uniqueId=E9,z.upperCase=n9,z.upperFirst=Vd,z.each=Gm,z.eachRight=Vm,z.first=Um,Jd(z,(function(){var a={};return Jr(z,function(u,A){Wt.call(z.prototype,A)||(a[A]=u)}),a})(),{chain:!1}),z.VERSION=r,Ar(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){z[a].placeholder=z}),Ar(["drop","take"],function(a,u){Rt.prototype[a]=function(A){A=A===t?1:Ln(xt(A),0);var S=this.__filtered__&&!u?new Rt(this):this.clone();return S.__filtered__?S.__takeCount__=Kn(A,S.__takeCount__):S.__views__.push({size:Kn(A,pe),type:a+(S.__dir__<0?"Right":"")}),S},Rt.prototype[a+"Right"]=function(A){return this.reverse()[a](A).reverse()}}),Ar(["filter","map","takeWhile"],function(a,u){var A=u+1,S=A==K||A==B;Rt.prototype[a]=function(P){var U=this.clone();return U.__iteratees__.push({iteratee:dt(P,3),type:A}),U.__filtered__=U.__filtered__||S,U}}),Ar(["head","last"],function(a,u){var A="take"+(u?"Right":"");Rt.prototype[a]=function(){return this[A](1).value()[0]}}),Ar(["initial","tail"],function(a,u){var A="drop"+(u?"":"Right");Rt.prototype[a]=function(){return this.__filtered__?new Rt(this):this[A](1)}}),Rt.prototype.compact=function(){return this.filter($n)},Rt.prototype.find=function(a){return this.filter(a).head()},Rt.prototype.findLast=function(a){return this.reverse().find(a)},Rt.prototype.invokeMap=Et(function(a,u){return typeof a=="function"?new Rt(this):this.map(function(A){return Qi(A,a,u)})}),Rt.prototype.reject=function(a){return this.filter(Zl(dt(a)))},Rt.prototype.slice=function(a,u){a=xt(a);var A=this;return A.__filtered__&&(a>0||u<0)?new Rt(A):(a<0?A=A.takeRight(-a):a&&(A=A.drop(a)),u!==t&&(u=xt(u),A=u<0?A.dropRight(-u):A.take(u-a)),A)},Rt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Rt.prototype.toArray=function(){return this.take(pe)},Jr(Rt.prototype,function(a,u){var A=/^(?:filter|find|map|reject)|While$/.test(u),S=/^(?:head|last)$/.test(u),P=z[S?"take"+(u=="last"?"Right":""):u],U=S||/^find/.test(u);P&&(z.prototype[u]=function(){var G=this.__wrapped__,X=S?[1]:arguments,ue=G instanceof Rt,Te=X[0],je=ue||At(G),Ie=function(jt){var Dt=P.apply(z,Bo([jt],X));return S&&qe?Dt[0]:Dt};je&&A&&typeof Te=="function"&&Te.length!=1&&(ue=je=!1);var qe=this.__chain__,et=!!this.__actions__.length,ft=U&&!qe,wt=ue&&!et;if(!U&&je){G=wt?G:new Rt(this);var ht=a.apply(G,X);return ht.__actions__.push({func:Kl,args:[Ie],thisArg:t}),new yr(ht,qe)}return ft&&wt?a.apply(this,X):(ht=this.thru(Ie),ft?S?ht.value()[0]:ht.value():ht)})}),Ar(["pop","push","shift","sort","splice","unshift"],function(a){var u=pl[a],A=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",S=/^(?:pop|shift)$/.test(a);z.prototype[a]=function(){var P=arguments;if(S&&!this.__chain__){var U=this.value();return u.apply(At(U)?U:[],P)}return this[A](function(G){return u.apply(At(G)?G:[],P)})}}),Jr(Rt.prototype,function(a,u){var A=z[u];if(A){var S=A.name+"";Wt.call(Xs,S)||(Xs[S]=[]),Xs[S].push({name:u,func:A})}}),Xs[Ol(t,k).name]=[{name:"wrapper",func:t}],Rt.prototype.clone=t3,Rt.prototype.reverse=n3,Rt.prototype.value=r3,z.prototype.at=R6,z.prototype.chain=I6,z.prototype.commit=D6,z.prototype.next=O6,z.prototype.plant=B6,z.prototype.reverse=_6,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=F6,z.prototype.first=z.prototype.head,Ui&&(z.prototype[Ui]=P6),z}),qs=Dy();ms?((ms.exports=qs)._=qs,Qu._=qs):On._=qs}).call(yI)})(ua,ua.exports)),ua.exports}var vI=xI();function wI(e){if(!e)return window;let n=e;for(;n;){if(n===document.body||n===document.documentElement)return window;const r=getComputedStyle(n).overflowY;if((r==="auto"||r==="scroll"||r==="overlay")&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement}return window}function kI(e,n){let t=150;const{clientY:r}=e;if(n===window){const o=window.innerHeight;r<t?window.scrollBy(0,Math.max(-15,(r-t)/15)):r>o-t&&window.scrollBy(0,Math.min(15,(r-(o-t))/15))}else{t=100;const o=n.getBoundingClientRect();r<o.top+t?n.scrollTop-=5:r>o.bottom-t&&(n.scrollTop+=5)}}const SI=vI.throttle((e,n)=>{e.preventDefault(),kI(e,n)},16);let pc=null;function EI(e){return e?e.classList.contains("dsd__theme__table-scrollable-wrapper")?e.firstElementChild:e:null}function MI(e,n,t){const r=m.useRef(null),o=m.useRef(null),s=m.useRef(!1),l=m.useRef(!1),c=m.useRef(null),d=m.useRef({htmlElement:null,lexicalNode:null,isBottom:!1}),f=m.useRef(null),h=m.useRef(()=>{}),g=m.useCallback(de=>{h.current(de)},[]),[C,y]=m.useState(null),{disable:b}=m.useContext(ut),[x,w]=m.useState(!1),[k,T]=m.useState({opened:!1}),[D,N]=m.useState(""),[L,E]=m.useState(null),[M,O]=m.useState(!1),[I,F]=m.useState({left:!1,right:!1}),[_,R]=m.useState(null),{t:j}=Ze.useTranslation(),K=Wi(de=>{const ne=de.target;l.current||hc(ne)&&(hE(ne)||e.read(()=>{var Y;const Z=ne.className.includes("content-editable-wrapper"),ce=Z?p.$getRoot():p.$getNearestNodeFromDOMNode(ne),{htmlElement:le,lexicalNode:se}=Rg(ce,e,{root:!0,"layout-container":!0,"layout-item":!0,callout:!0,"collapsible-content":!0},de);if((se==null?void 0:se.__type)==="callout"||(se==null?void 0:se.__type)==="callout-image"||((Y=se==null?void 0:se.getParent())==null?void 0:Y.__type)==="callout"&&(se==null?void 0:se.getPreviousSibling())===null){y(null);return}if(!(Z&&se instanceof Vr||Z&&!se)&&se!=null&&se.__key){if(se.__type==="layout-container"||se.__type==="layout-item"||se.__type==="collapsible-content"){y(null);return}le&&(d.current.htmlElement=le,d.current.lexicalNode=se),(se==null?void 0:se.__type)==="collapsible-title"&&(d.current.htmlElement=(le==null?void 0:le.parentElement)||le,d.current.lexicalNode=se.getParent()),E(null),y(d.current.htmlElement)}}))},20,50);m.useEffect(()=>()=>{pc=null},[]),m.useEffect(()=>{function de(){l.current||y(null)}function ne(ce){if(!s.current)return!1;const[le]=ln.eventFiles(ce);if(le)return!1;const{target:se,dataTransfer:Y}=ce,oe=(Y==null?void 0:Y.getData(h0))||"";if(!oe)return!1;ce.preventDefault(),e.update(()=>{var Pe;let $=p.$getNodeByKey(oe);if(!$||!(hc(se)||se.closest(".resizable-container")))return!1;const{htmlElement:J,lexicalNode:q,isBottom:re}=d.current;let he=q,ke=null;if(he!=null&&he.__key&&(ke=J),!ke||!he)return!1;if(he===$)return!0;if(o.current&&lE(o.current,e,he,$))return!1;if($.__type==="layout-divider"){if($=$.getParent(),q&&($!=null&&$.isParentOf(q)))return!1;nb(e,$)}if($.getParent()instanceof Mn&&((Pe=$.getParent())==null?void 0:Pe.getChildren().length)===2){const Fe=$.getParent(),ze=Fe.getParent();Ei(e,Fe,ze)}if(J!=null&&J.classList.contains("selected-block"))return;let De;const Ee=e._rootElement;re?De=Array.from(Ee.querySelectorAll(".selected-block")).reverse():De=Array.from(Ee.querySelectorAll(".selected-block")),De.length?De.forEach(Fe=>{let ze=p.$getNearestNodeFromDOMNode(Fe);re?he==null||he.insertAfter(ze):he==null||he.insertBefore(ze)}):re?he.insertAfter($):he.insertBefore($),y(null)})}function Z(ce){const{target:le}=ce;hc(le)&&le.className==="ContentEditable__root"&&A0(o.current)}return n==null||n.addEventListener("mousemove",K),n==null||n.addEventListener("drop",ne),n==null||n.addEventListener("mouseleave",de),n==null||n.addEventListener("dragleave",Z),()=>{n==null||n.removeEventListener("mousemove",K),n==null||n.removeEventListener("drop",ne),n==null||n.removeEventListener("mouseleave",de),n==null||n.removeEventListener("dragleave",Z)}},[n,e]),m.useEffect(()=>{if(r.current){if(l.current||k.opened)return;g0(C,r.current,n,k.opened)}},[n,C,l.current,k.opened]),m.useEffect(()=>(h.current=de=>{if(!s.current)return;const[ne]=ln.eventFiles(de);if(ne)return;pc||(pc=wI(de.target)),SI(de,pc),de.preventDefault(),de.dataTransfer&&(de.dataTransfer.dropEffect="move");const{clientY:Z,clientX:ce,target:le}=de;hc(le)&&e.read(()=>{var q,re;const se=p.$getNearestNodeFromDOMNode(le)||p.$getRoot(),{htmlElement:Y,lexicalNode:oe}=Rg(se,e,{root:!0,"layout-container":!0,"layout-item":!0,"callout-wrapper":!0,callout:!0,"collapsible-content":!0,"collapsible-container":!0},de);if((oe==null?void 0:oe.__type)==="callout"||(oe==null?void 0:oe.__type)==="collapsible-content"||rb(f.current,oe==null?void 0:oe.getParent())||(oe==null?void 0:oe.__type)==="layout-item"&&se.__type!=="root")return;Y&&(d.current.htmlElement=Y,d.current.lexicalNode=oe);let $=null;$=d.current.htmlElement||Y,$!=null&&$.closest(".dsd__theme__layoutContainer")&&se.__type==="root"&&oe&&((oe==null?void 0:oe.__type)==="layout-item"&&se.__type==="root"?($=$==null?void 0:$.parentElement,d.current.htmlElement=$,d.current.lexicalNode=oe==null?void 0:oe.getParent()):($=(q=$.parentElement)==null?void 0:q.parentElement,d.current.htmlElement=$,d.current.lexicalNode=(re=oe.getParent())==null?void 0:re.getParent()));const J=o.current;if(!$&&J){J.style.background="transparent";return}$===null||J===null||$!=null&&$.classList.contains("selected-block")||mE(J,$,Z,ce,n,de,d)})},be.mergeRegister(e.registerCommand(es,de=>de==="hide_menu"?(dE(r.current),setTimeout(()=>{l.current=!0},0),!1):de==="show_menu"?(l.current=!1,!1):(de===!0&&!l.current&&y(null),l.current=!1,!1),p.COMMAND_PRIORITY_LOW),e.registerCommand(hA,de=>((de==null?void 0:de.target)instanceof HTMLElement&&r.current instanceof HTMLElement&&(Q(de,!0),g0(de.target,r.current,n,k.opened)),!1),p.COMMAND_PRIORITY_LOW),e.registerCommand(p.KEY_ARROW_DOWN_COMMAND,()=>(e.dispatchCommand(es,!0),!1),p.COMMAND_PRIORITY_LOW),e.registerCommand(p.KEY_ARROW_UP_COMMAND,()=>(e.dispatchCommand(es,!0),!1),p.COMMAND_PRIORITY_LOW))),[n,e]),m.useEffect(()=>()=>{n==null||n.removeEventListener("dragover",g,!0)},[n,g]);function W(de){var se;const ne=de.dataTransfer;(se=o.current)==null||se.setAttribute("data-index-start","");const Z=C||d.current.htmlElement;if(!ne||!Z)return;const ce=e._rootElement;if(Z!=null&&Z.classList.contains("selected-block")){const Y=e._rootElement,oe=Array.from(Y.querySelectorAll(".selected-block"));pE(de.dataTransfer,oe)}else Jl(ce),Z.className.includes("_layoutDivider")&&Z.parentElement?C0(ne,Z.parentElement):C0(ne,Z);let le="";e.read(()=>{var oe,$;const Y=p.$getNearestNodeFromDOMNode(Z);if(Y&&(le=Y.getKey()),Y instanceof Vr){const J=Wa((oe=Z.parentElement)==null?void 0:oe.parentElement,Z.parentElement);($=o.current)==null||$.setAttribute("data-index-start",J.toString())}}),r.current&&(w(!0),r.current.style.opacity="0"),s.current=!0,f.current=le,ne.setData(h0,le),de.stopPropagation(),n==null||n.removeEventListener("dragover",g,!0),n==null||n.addEventListener("dragover",g,!0)}function B(){n==null||n.removeEventListener("dragover",g,!0),s.current=!1,A0(o.current),w(!1)}if(b)return i.jsx("div",{});function H(){var Z;const de=d.current.htmlElement,ne=(Z=de==null?void 0:de.parentElement)==null?void 0:Z.parentElement;if(ne!=null&&ne.classList.contains("dsd__theme__layoutContainer")&&(ne.children.length===4?O(!0):O(!1),de!=null&&de.parentElement)){const ce=Wa(ne,de==null?void 0:de.parentElement);ce?ce===ne.children.length-1?F({left:!1,right:!0}):F({left:!1,right:!1}):F({left:!0,right:!1})}}function Q(de,ne=!1){l.current=!0;const Z=EI((de==null?void 0:de.target)??d.current.htmlElement);if(!Z)return;const ce=e._rootElement;H(),Z.classList.contains("selected-block")||Jl(ce),e.update(()=>{let se=p.$getSelection();!se&&c.current&&(se=c.current),e.__savedDragHandleSelection=c.current,c.current=null;const oe=((se==null?void 0:se.getNodes())??[]).filter(Ee=>!p.$isTextNode(Ee)&&Ee.__parent==="root"),$=oe.map(Ee=>{const Pe=e.getElementByKey(Ee.getKey());return Ee.getType()==="table"?Pe==null?void 0:Pe.firstElementChild:Pe}).filter(Ee=>Ee!==null),J=oe.length&&$.includes(Z)?$:[Z];if(J.length===1){const Ee=p.$getNearestNodeFromDOMNode(Z);if(!Ee)return;ne||(p.$isElementNode(Ee)?Ee.select(0):qr.$isDecoratorBlockNode(Ee)||Ee.selectStart(),e.__savedDragHandleSelection=p.$getSelection()),R(Ee)}else R(null);const q=document.querySelector(".selected-all-document"),re=!!q;re||J.forEach(Ee=>{i1(e,{block:Ee,isCreateEventListener:!1})});const ke=Array.from(re?q.children:document.querySelectorAll(".selected-block")).reduce((Ee,Pe)=>{const Fe=p.$getNearestNodeFromDOMNode(Pe);return Fe&&Ee.push(Fe),Ee},[]),De=ke.length>0&&ke.every(Ee=>ao(Ee)||vt(Ee)||hr(Ee)?!1:p.$isElementNode(Ee)||p.$isTextNode(Ee));N(De?"text":"block")}),$a();const le=Number(de==null?void 0:de.y)+240>window.innerHeight?Number(de==null?void 0:de.y)-200:de==null?void 0:de.y;T({opened:!0,x:(de==null?void 0:de.x)??0,y:le??0}),e.dispatchCommand(Yf,!0)}const ee=()=>{e.update(()=>{const de=Qt();if(l.current=!1,T(ne=>({opened:!1,x:ne.x,y:ne.y})),(de==null?void 0:de.__key)==="root"){const ne=p.$createParagraphNode();de.append(ne)}p.$setSelection(null)})},ae=t?"hide-add-button":"",pe=k.x!==0?{position:"fixed",top:0,left:0,transform:`translate(${k.x}px, ${k.y}px)`}:{},Le=()=>{var de;ee(),el(),Jl(e._rootElement),(de=e._rootElement)==null||de.classList.remove("selected-all-document")},Se=(de=!1)=>{if(!de){setTimeout(()=>{Le()},100);return}Le()},we=m.useCallback(de=>{const ne=document.querySelector(".draggable-menu");if(!k&&de.button!==2)return;const Z=de.target;if(Z.closest(".mantine-Menu-dropdown"))return;!((ne==null?void 0:ne.contains(Z))&&Z.closest("div.custom-menu-item"))&&de.button!==2&&k.opened&&(de.stopPropagation(),de.preventDefault())},[e,k]);return m.useEffect(()=>(k.opened?document.addEventListener("mousedown",we):document.removeEventListener("mousedown",we),()=>{document.removeEventListener("mousedown",we)}),[k.opened,we]),Dr.createPortal(i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`draggable-block-container ${ae} ${C?"visible":""}`,ref:r,onMouseEnter:()=>{var de;k.opened||E("both"),(de=r.current)!=null&&de.style&&(r.current.style.opacity="1")},onMouseLeave:()=>{E(null)},children:[i.jsx(fI,{hoveredButton:L,insertNewParagraph:m0,currentDraggableBlockRef:d,setHoveredButton:E,isClickedBlockRef:l,setDraggableBlockElem:y,editor:e,t:j}),i.jsxs(v.Menu,{onOpen:Q,opened:k.opened,styles:{dropdown:pe},position:"left-start",width:320,shadow:"md",withinPortal:!0,onClose:()=>{Se()},transitionProps:Wn,children:[i.jsx(v.Menu.Target,{children:i.jsx("div",{className:"icon draggable-block-menu",draggable:!0,onDragStart:W,onDragEnd:B,onMouseEnter:()=>{k.opened||E("both")},onMouseDown:de=>{de.stopPropagation();const ne=e.getEditorState();c.current=ne._selection},children:i.jsx(v.Tooltip,{openDelay:300,multiline:!0,disabled:x||l.current,label:i.jsxs(i.Fragment,{children:[i.jsxs("span",{children:[i.jsx("strong",{children:j("editor.hoverOptions.drag")}),","," ",j("editor.hoverOptions.dragAction")]}),i.jsx("br",{}),i.jsxs("span",{children:[i.jsx("strong",{children:j("editor.hoverOptions.click")}),","," ",j("editor.hoverOptions.clickAction")]})]}),position:"bottom-start",children:i.jsx(v.ActionIcon,{radius:"sm",color:"gray",size:"sm",bd:"none",variant:"subtle","aria-label":"Settings",children:i.jsx(ye.IconGripVertical,{size:20})})})})}),i.jsx(dI,{hoveredButton:L,insertNewParagraph:m0,currentDraggableBlockRef:d,setHoveredButton:E,isClickedBlockRef:l,setDraggableBlockElem:y,editor:e,t:j}),i.jsx(v.Menu.Dropdown,{className:"draggable-menu",children:i.jsx(AI,{onChange:de=>{var ne;if(de==="comment"){T(Z=>({opened:!1,x:Z.x,y:Z.y})),Jl(e._rootElement),(ne=e._rootElement)==null||ne.classList.remove("selected-all-document");return}Se(!0),ss(e)},t:j,textBlock:D,currentEditorNode:_,editor:e,isDisabledAddColumnButton:M,disabledMoveColumnButtons:I})})]})]}),i.jsx("div",{className:"draggable-block-target-line",ref:o})]}),n)}function TI({anchorElem:e=document.body,isShowAddButton:n=!1}){const[t]=it.useLexicalComposerContext();return MI(t,e,n)}const t5=/(^|\s):([a-z0-9_+-]+)$/i,LI=/(^|\s)(:\)|:-\)|:d|:-d|;\)|;-\)|:\(|:-\(|:\*|<3)$/i,NI=/(^|\s):$/,jI=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","Escape","Enter","Tab"]);function RI(e,n){return{leadOffset:n.index+n[1].length,matchingString:"",replaceableString:":"}}const II=e=>jI.has(e),DI=e=>e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&!e.isComposing;function OI(e,n){if(n<=0)return{activate:!1,colonAt:-1,expectAt:-1};const t=e[n-1]??"",r=e[n-2]??"",o=n-2<0;return t===":"&&(o||/\s/.test(r))?{activate:!0,colonAt:n-1,expectAt:n}:{activate:!1,colonAt:-1,expectAt:-1}}function b2(e,n){const t=n.index+n[1].length,r=n[0].slice(n[1].length),o=n===e.match(t5)?n[2]??"":r;return{leadOffset:t,matchingString:o,replaceableString:r}}function PI(){const[e]=it.useLexicalComposerContext(),{t:n}=Ze.useTranslation(),[t,r]=m.useState(!1),[o,s]=m.useState({top:0,left:0}),l=m.useRef(""),c=m.useRef({key:null,offset:null}),d=m.useRef({nodeKey:null,colonOffset:null,expectNextAt:null,active:!1,ts:0}),f=g=>{if(!d.current.active||g.length<1)return null;const C=g.match(NI);if(C)return RI(g,C);const y=g.match(t5);if(y)return b2(g,y);const b=g.match(LI);return b?b2(g,b):null};m.useEffect(()=>e.registerCommand(pA,()=>(e.update(()=>{let g=p.$getSelection();if(!p.$isRangeSelection(g)&&(p.$getRoot().selectEnd(),g=p.$getSelection(),!p.$isRangeSelection(g)))return!1;let C=g.anchor.getNode();if(p.$isElementNode(C)){const L=p.$createTextNode("");C.append(L),L.select(),C=L}const y=g.anchor.getNode();if(!_n(y))return;const b=y.getTextContent(),x=g.anchor.offset,w=x>0?b[x-1]:"",T=(x>0&&!/\s/.test(w)?" ":"")+":",D=b.slice(0,x)+T+b.slice(x);y.setTextContent(D);const N=x+T.length;g.anchor.set(y.getKey(),N,"text"),g.focus.set(y.getKey(),N,"text"),d.current={nodeKey:y.getKey(),colonOffset:N-1,expectNextAt:N,active:!0,ts:Date.now()},l.current=":",t&&r(!1)}),!1),p.COMMAND_PRIORITY_LOW),[e,t]),m.useEffect(()=>e.registerUpdateListener(({editorState:g})=>{g.read(()=>{const C=p.$getSelection();if(p.$isRangeSelection(C)&&C.isCollapsed()?c.current={key:C.anchor.getNode().getKey(),offset:C.anchor.offset}:c.current={key:null,offset:null},!t&&!d.current.active)return;if(!p.$isRangeSelection(C)||!C.isCollapsed()){t&&r(!1),d.current.active=!1;return}const y=C.anchor.getNode().getKey(),b=C.anchor.offset,x=c.current;x.key!==null&&(y!==x.key||x.offset!==null&&Math.abs(b-x.offset)>1)&&(t&&r(!1),d.current.active=!1)})}),[e,t]),m.useEffect(()=>e.registerCommand(p.CLICK_COMMAND,()=>(t&&r(!1),d.current.active=!1,!1),p.COMMAND_PRIORITY_LOW),[e,t]),m.useEffect(()=>e.registerCommand(p.KEY_DOWN_COMMAND,g=>II(g.key)?(g.key==="Escape"&&t&&r(!1),d.current.active=!1,!1):(DI(g)&&e.getEditorState().read(()=>{const C=p.$getSelection();if(!p.$isRangeSelection(C)||!C.isCollapsed()){d.current.active=!1;return}const y=C.anchor.getNode(),b=y.getKey(),x=C.anchor.offset;if(g.key===":"){d.current={nodeKey:b,colonOffset:x,expectNextAt:x+1,active:!1,ts:Date.now()};return}const w=typeof(y==null?void 0:y.getTextContent)=="function"?y.getTextContent():"",{activate:k,colonAt:T,expectAt:D}=OI(w,x);if(k){d.current={nodeKey:b,colonOffset:T,expectNextAt:D,active:!0,ts:Date.now()};return}d.current.active&&d.current.nodeKey===b||(d.current.active=!1)}),!1),p.COMMAND_PRIORITY_LOW),[e,t]);const h=m.useCallback(g=>{e.update(()=>{const C=p.$getSelection();if(!p.$isRangeSelection(C)||!C.isCollapsed())return;const y=C.anchor.getNode(),b=C.anchor.offset,w=(R=>typeof(R==null?void 0:R.getTextContent)=="function"?R.getTextContent():"")(y),k=Math.max(0,b-1);let T=d.current.active&&d.current.colonOffset!=null?d.current.colonOffset:-1;if(T===-1){const R=w.lastIndexOf(":",k),j=w.lastIndexOf(";",k),K=w.lastIndexOf("<",k);T=Math.max(R,j,K)}if(T===-1)return;const D=w[T],N=T>0?w[T-1]:null;if(N&&!/\s/.test(N))return;const L=w.slice(T),E=/^(?:\:\)|\:\-\)|\:d|\:\-d|\;\)|\;\-\)|\:\(|\:\-\(|\:\*|<3)/i;let M=T,O=null;const I=L.match(E);if(I)O=T+I[0].length;else if(D===":"){const R=K=>/[a-z0-9_+\-]/i.test(K);let j=T+1;for(;j<w.length&&R(w[j]);)j++;j===T+1?O=T+1:O=j}else if(D===";"){const R=L.match(/^(?:\;\)|\;\-\))/);if(R)O=T+R[0].length;else return}else if(D==="<"){const R=L.match(/^(?:<3)/);if(R)O=T+R[0].length;else return}if(O==null)return;const F=w.slice(0,M)+g+w.slice(O);y.setTextContent(F);const _=M+g.length;C.anchor.set(y.getKey(),_,"text"),C.focus.set(y.getKey(),_,"text"),t&&r(!1),d.current.active=!1})},[e,t]);return i.jsx(Ta.LexicalTypeaheadMenuPlugin,{onSelectOption:()=>{},triggerFn:f,onQueryChange:g=>{l.current=g},options:[],onClose:()=>{t&&r(!1),d.current.active=!1},onOpen:()=>{d.current.active&&e.update(()=>{const g=Qt();if(!g)return;const C=e.getElementByKey(g.getKey());C&&requestAnimationFrame(()=>{const y=C.getBoundingClientRect();s({top:y.bottom,left:y.left}),r(!0)})})},menuRenderFn:()=>i.jsx(v.Portal,{target:document.body,children:t&&i.jsx("div",{style:{position:"fixed",top:`${o.top}px`,left:`${o.left}px`,zIndex:1e4},children:i.jsx(Mt.EmojiPicker,{onChange:g=>{var C;h(((C=Mt.IconEntity.parse(g))==null?void 0:C.emoji)+" ")},querySearch:String(l.current)||"",locales:{emojis:n("editor.emoji.emojis"),search:n("editor.emoji.search"),searchResults:n("editor.emoji.searchResults"),searchNoResults:n("editor.emoji.searchNoResults"),remove:n("editor.emoji.remove"),emojiCategory:{frequent:n("editor.emoji.emojiCategory.frequent"),people:n("editor.emoji.emojiCategory.people"),nature:n("editor.emoji.emojiCategory.nature"),foods:n("editor.emoji.emojiCategory.foods"),activity:n("editor.emoji.emojiCategory.activity"),places:n("editor.emoji.emojiCategory.places"),objects:n("editor.emoji.emojiCategory.objects"),symbols:n("editor.emoji.emojiCategory.symbols"),flags:n("editor.emoji.emojiCategory.flags")}},popoverProps:{opened:t,transitionProps:Wn,withinPortal:!0,onClose:()=>{t&&r(!1),d.current.active=!1}},children:i.jsx(i.Fragment,{})})})})})}const n5=new Set(["http:","https:","mailto:","sms:","tel:"]);function va(e){try{const n=new URL(e);if(!n5.has(n.protocol))return"about:blank"}catch{return e}return e}function BI(e,n){e.update(()=>{const t=window.getSelection();if(t&&t.rangeCount>0){const r=t.getRangeAt(0),o=r.startOffset,s=Math.max(0,o-n);r.setStart(r.startContainer,s),t.removeAllRanges(),t.addRange(r)}})}function y2(e){const n=/^(https?:\/\/)?[\w-]+(\.[\w-]+)+/,t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return n.test(e)||t.test(e)}function _I(){const[e]=it.useLexicalComposerContext();m.useEffect(()=>e.registerCommand(p.KEY_SPACE_COMMAND,()=>(e.update(()=>{const n=p.$getSelection();if(!p.$isRangeSelection(n))return!1;const t=n.anchor,r=t.getNode();if(Ut.$isCodeNode(r)||Ut.$isCodeNode(r.getParent()))return!1;if(p.$isTextNode(r)){const o=r.getTextContent().substring(0,t.offset),s=o.match(/(\S+)$/);if(s){const l=s[1],c=o.lastIndexOf(l),d=c>0?o[c-1]:"";if((d===""||d===" ")&&y2(l)){const f=on.$createLinkNode(l,{rel:"noopener noreferrer",target:"_blank"}),h=p.$createTextNode(l);f.append(h);const g=c,C=g+l.length;n.anchor.set(r.__key,g,"text"),n.focus.set(r.__key,C,"text"),n.insertNodes([f]);const y=p.$getSelection();p.$isRangeSelection(y)&&(y.anchor.set(f.getKey(),l.length,"element"),y.focus.set(f.getKey(),l.length,"element")),f.selectEnd()}}}}),!1),p.COMMAND_PRIORITY_CRITICAL),[e]),m.useEffect(()=>e.registerCommand(p.PASTE_COMMAND,n=>{var o,s;if(e.getEditorState().read(()=>{const l=p.$getSelection();if(!p.$isRangeSelection(l))return!1;const c=l.anchor.getNode();return Ut.$isCodeNode(c)||Ut.$isCodeNode(c.getParent())}))return!1;const r=((o=n.clipboardData)==null?void 0:o.getData("text"))||((s=n.clipboardData)==null?void 0:s.getData("text/plain"));return!r||!y2(r)||SA(r)||setTimeout(()=>{BI(e,r.length),e.dispatchCommand(on.TOGGLE_LINK_COMMAND,va(r)),e.update(()=>{const l=Qt();p.$getSelection()&&p.$setSelection(null),l==null||l.selectEnd()})},10),!1},p.COMMAND_PRIORITY_CRITICAL),[e])}function FI(){return _I(),null}function yi(e){const n=e.anchor,t=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?an.$isAtNodeEnd(t)?r:o:an.$isAtNodeEnd(n)?r:o}function WI(e){switch(e){case"phone":return"tel:";case"email":return"mailto:";case"sms":return"sms:";case"web":default:return"https://"}}function zI(e,n){if(!e)return!1;try{if(n==="phone"){const c=e.startsWith("tel:")?e.substring(4):e;return/^\+?[\d\s\-\(\)]+$/.test(c)&&/\d/.test(c)}if(n==="sms"){const d=(e.startsWith("sms:")?e.substring(4):e).split("?")[0];return/^\+?[\d\s\-\(\)]+$/.test(d)&&/\d/.test(d)}if(n==="email"){const c=e.startsWith("mailto:")?e.substring(7):e;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)}const t=[".","::","://","https://","http://"],r=e.trim();if(!r||t.includes(r)||r.startsWith("://"))return!1;const o=r.startsWith("http://")||r.startsWith("https://")?r:`https://${r}`,s=new URL(o);if(!n5.has(s.protocol))return!1;const l=s.hostname;return l?l==="localhost"||l.includes(".")&&l.split(".").every(c=>c.length>0):!1}catch{return!1}}function x2(e,n){return!e||e.includes("://")||e.startsWith("tel:")||e.startsWith("mailto:")||e.startsWith("sms:")?e:WI(n)+e}function v2(e){return e?e.startsWith("tel:")?"phone":e.startsWith("mailto:")?"email":e.startsWith("sms:")?"sms":(e.startsWith("http://")||e.startsWith("https://"),"web"):"web"}function mc(e){if(!e)return e;if(e.startsWith("tel:"))return e.substring(4);if(e.startsWith("mailto:"))return e.substring(7);if(e.startsWith("sms:")){const n=e.substring(4),t=n.indexOf("?");return t===-1?n:n.substring(0,t)}return e.startsWith("https://")?e.substring(8):e.startsWith("http://")?e.substring(7):e}function w2(e){if(!e||!e.startsWith("sms:"))return{phone:"",body:""};const n=e.substring(4),t=n.indexOf("?");if(t===-1)return{phone:n,body:""};const r=n.substring(0,t),o=new URLSearchParams(n.substring(t+1));return{phone:r,body:o.get("body")??""}}function k2(e,n){if(!e)return"";const r=(e.startsWith("sms:")?e.substring(4):e).split("?")[0];return n?`sms:${r}?body=${encodeURIComponent(n)}`:`sms:${r}`}function KI(e){switch(e){case"phone":return"+373 000 00 000";case"email":return"example@example.com";case"sms":return"+373 000 00 000";case"web":default:return"https://"}}function UI(e){return e==="phone"||e==="sms"?"tel":e==="email"?"email":"text"}function HI(e){return e==="email"?"email":e==="phone"||e==="sms"?"tel":"url"}function YI(e){return(e==null?void 0:e.closest(".doc-space-editor-wrapper"))??null}function kf(e){return(e==null?void 0:e.closest(".dsd__theme__link"))??null}function mh(e){return e?!!(e.closest('[data-test-id="floating-link-dropdown"]')||e.closest(".floating-link-type-combobox-dropdown")):!1}function ZI(e){return{top:e.y,left:e.x}}function GI(e){const n=e.getBoundingClientRect();return{top:n.y,left:n.x+n.width/2}}function VI(){const e=window.getSelection();return!e||e.rangeCount===0?null:e.getRangeAt(0).getBoundingClientRect()}function qI(){const e=window.getSelection();return!e||e.rangeCount===0?null:e.getRangeAt(0).startContainer.parentElement}function QI(e,n=!1){var o;if(!e)return;const t=document.createRange(),r=window.getSelection();return t.setStart(e,Number(n)),t.collapse(!0),r&&(r.removeAllRanges(),r.addRange(t)),(o=e.textContent)==null?void 0:o.length}async function JI(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function XI({showTextToolbar:e,updateLink:n}){const t=m.useRef(null),r=m.useRef(!1),o=m.useRef(!1),s=m.useRef(null),l=m.useRef(null),c=m.useRef(null),d=m.useRef(null),[f,h]=m.useState(""),[g,C]=m.useState(""),[y,b]=m.useState(""),[x,w]=m.useState(""),[k,T]=m.useState(!1),[D,N]=m.useState(!1),[L,E]=m.useState("preview"),[M,O]=m.useState({top:0,left:0}),[I,F]=m.useState("web"),_=m.useRef({linkUrl:f,messageText:x,textUrl:y,linkType:I});_.current={linkUrl:f,messageText:x,textUrl:y,linkType:I};const[R]=it.useLexicalComposerContext();m.useEffect(()=>{if(D&&!(L!=="edit"&&L!=="create"))return $a(),()=>el()},[D,L]);const j=m.useCallback(()=>{r.current=!1,E("preview"),h(""),C(""),w(""),T(!1),N(!1),F("web"),O({top:0,left:-999}),c.current=null,s.current=null,d.current=null},[]),K=m.useCallback(()=>{const Z=d.current;if(!Z)return!1;const ce=_.current;return Z.linkUrl!==ce.linkUrl||Z.messageText!==ce.messageText||Z.textUrl!==ce.textUrl||Z.linkType!==ce.linkType},[]);m.useEffect(()=>{if(!D)return;const Z=()=>j();return window.addEventListener("resize",Z,{passive:!0}),()=>window.removeEventListener("resize",Z)},[D,j]);const W=m.useCallback(Z=>{if(!Z||r.current||!YI(Z))return;const le=kf(Z);if(!le||s.current===le)return;const se=R.getRootElement();if(!(se!=null&&se.contains(le)))return;const Y=le.getAttribute("href");if(O(GI(le)),Y){const oe=v2(Y);if(F(oe),oe==="sms"){const{phone:$,body:J}=w2(Y);h($),w(J),C($)}else h(mc(Y)),w(""),C(oe==="web"?Y:mc(Y))}else h(""),w(""),C("");N(!0),s.current=le},[R]),B=m.useCallback(Z=>{const ce=p.$getSelection();Z==="create"&&(E("create"),r.current=!0,F("web"),h(""),w(""),d.current={linkUrl:"",messageText:"",textUrl:"",linkType:"web"});const le=Y=>{const oe=v2(Y);if(F(oe),oe==="sms"){const{phone:$,body:J}=w2(Y);h($),w(J),C($)}else h(mc(Y)),w(""),C(oe==="web"?Y:mc(Y))};if(p.$isRangeSelection(ce)){const Y=yi(ce),oe=be.$findMatchingParent(Y,on.$isLinkNode);c.current={anchorKey:ce.anchor.key,anchorOffset:ce.anchor.offset,anchorType:ce.anchor.type,focusKey:ce.focus.key,focusOffset:ce.focus.offset,focusType:ce.focus.type},oe?le(oe.getURL()):on.$isLinkNode(Y)&&le(Y.getURL())}const se=ce?VI():null;return se&&O(ZI(se)),N(!0),!0},[]);m.useEffect(()=>{n.current&&(n.current.updateLinkEditor=()=>{const Z=qI();r.current=!1,W(Z),r.current=!0,E("edit")})},[W,n]),m.useEffect(()=>{if(Nt)return;const Z=ce=>{if(e.current)return;const le=ce.target;le instanceof HTMLElement&&W(le)};return document.body.addEventListener("mouseover",Z,{passive:!0}),()=>{document.body.removeEventListener("mouseover",Z)}},[W,e]),m.useEffect(()=>{if(!Nt)return;const Z=ce=>{if(e.current)return;const le=ce.target;if(!(le instanceof HTMLElement)||mh(le))return;if(kf(le)){if(!R.isEditable()||(ce.preventDefault(),ce.stopPropagation(),r.current))return;W(le);return}r.current||j()};return document.addEventListener("click",Z,{capture:!0}),document.addEventListener("touchend",Z,{capture:!0,passive:!1}),()=>{document.removeEventListener("click",Z,{capture:!0}),document.removeEventListener("touchend",Z,{capture:!0})}},[R,W,j,e]),m.useEffect(()=>{if(Nt)return;const Z=du.debounce(ce=>{if(r.current)return;if(e.current){j();return}const le=ce.target;if(!(le instanceof HTMLElement))return;const se=kf(le)!==null,Y=mh(le);se||Y||j()},300,{maxWait:600});return document.addEventListener("mousemove",Z,{passive:!0}),()=>{document.removeEventListener("mousemove",Z),Z.cancel()}},[j,e]),m.useEffect(()=>be.mergeRegister(R.registerCommand(Au,Z=>(B(Z),!0),p.COMMAND_PRIORITY_LOW)),[R,B]),m.useEffect(()=>{if(!L)return;const Z=requestAnimationFrame(()=>{t.current&&(t.current.focus(),t.current.select()),R.read(()=>{const ce=p.$getSelection();if(p.$isRangeSelection(ce)){l.current=Qt();const le=yi(ce);if(be.$findMatchingParent(le,on.$isLinkNode)&&le){const Y=le.getTextContent();b(Y),L==="edit"&&(d.current={linkUrl:_.current.linkUrl,messageText:_.current.messageText,textUrl:Y,linkType:_.current.linkType})}}})});return()=>cancelAnimationFrame(Z)},[R,L]);const H=m.useCallback(()=>{const Z=p.$getSelection();if(p.$isRangeSelection(Z))return!0;const ce=(Y,oe,$)=>$==="text"&&p.$isTextNode(Y)?Math.max(0,Math.min(oe,Y.getTextContentSize())):$==="element"&&p.$isElementNode(Y)?Math.max(0,Math.min(oe,Y.getChildrenSize())):Math.max(0,oe),le=c.current;if(le){const Y=p.$getNodeByKey(le.anchorKey),oe=p.$getNodeByKey(le.focusKey);if(Y&&oe){const $=p.$createRangeSelection();return $.anchor.set(le.anchorKey,ce(Y,le.anchorOffset,le.anchorType),le.anchorType),$.focus.set(le.focusKey,ce(oe,le.focusOffset,le.focusType),le.focusType),p.$setSelection($),!0}}const se=l.current;if(!se)return!1;if(p.$isTextNode(se))return se.select(0,se.getTextContentSize()),!0;if(p.$isElementNode(se)){const Y=se.getFirstDescendant();if(p.$isTextNode(Y))return Y.select(0,Y.getTextContentSize()),!0}return!1},[]),Q=m.useCallback(()=>{if(o.current)return;const Z=I==="sms"?k2(f,x):x2(f,I);if(zI(Z,I)&&Z)T(!1);else{T(!0);return}o.current=!0;try{R.update(()=>{if(!H())return;const ce=p.$getSelection();if(!p.$isRangeSelection(ce))return;const le=yi(ce),se=le?le.getParent():null,Y=(on.$isAutoLinkNode(le)?le:null)??(on.$isAutoLinkNode(se)?se:null);if(!Y)R.dispatchCommand(on.TOGGLE_LINK_COMMAND,va(Z)),L==="edit"&&le&&_n(le)&&(le.setTextContent(y),le.selectEnd());else{const oe=p.$createTextNode(y),$=Y.getParent();$&&(Y.remove(),$.append(oe),R.dispatchCommand(on.TOGGLE_LINK_COMMAND,va(Z)),oe.selectEnd())}}),j()}catch(ce){console.error("[FloatingLink] submit failed",ce)}finally{o.current=!1}},[R,L,f,x,I,j,H,y]),ee=m.useCallback(Z=>{if((Z.metaKey||Z.ctrlKey)&&(Z.code==="KeyZ"||Z.code==="KeyY")){Z.stopPropagation();return}Z.code==="Enter"?(Z.preventDefault(),Q()):Z.code==="Escape"&&(Z.preventDefault(),j())},[Q,j]),ae=Z=>{k&&T(!1),h(Z)},pe=Z=>{k&&T(!1),F(Z),h(""),Z!=="sms"&&w("")},Le=L==="edit",Se=va(I==="sms"?k2(f,x):x2(f,I));return{inputRef:t,isOpen:D,position:M,linkUrl:f,displayLinkUrl:g,textUrl:y,setTextUrl:b,messageText:x,setMessageText:w,error:k,isLinkEditMode:L,isShowEditTextLink:Le,safeLinkUrl:Se,linkType:I,reset:j,isDirty:K,onUrlInputChange:ae,onLinkTypeChange:pe,onUrlInputKeyDown:ee,onSubmit:Q,onEditClick:()=>{setTimeout(()=>{const Z=s.current;Z&&document.contains(Z)&&QI(Z),R.read(()=>{const ce=p.$getSelection();p.$isRangeSelection(ce)&&(c.current={anchorKey:ce.anchor.key,anchorOffset:ce.anchor.offset,anchorType:ce.anchor.type,focusKey:ce.focus.key,focusOffset:ce.focus.offset,focusType:ce.focus.type})}),E("edit"),r.current=!0},100)},onCopyClick:()=>{Se&&JI(Se)},onRemoveClick:()=>{const Z=s.current;if(!Z||!document.contains(Z)){j();return}R.update(()=>{const ce=p.$getNearestNodeFromDOMNode(Z);if(!ce)return;const le=be.$findMatchingParent(ce,J=>on.$isLinkNode(J)||on.$isAutoLinkNode(J));if(!le)return;if(on.$isAutoLinkNode(le)){le.setIsUnlinked(!0),le.markDirty();const J=le.getFirstDescendant();p.$isTextNode(J)&&J.selectEnd();return}const se=le.getFirstDescendant(),Y=le.getLastDescendant();if(!p.$isTextNode(se)||!p.$isTextNode(Y))return;const oe=p.$createRangeSelection();oe.anchor.set(se.getKey(),0,"text"),oe.focus.set(Y.getKey(),Y.getTextContentSize(),"text"),p.$setSelection(oe),on.$toggleLink(null);const $=p.$getSelection();p.$isRangeSelection($)&&$.anchor.getNode().selectEnd()}),j()}}}function r5({inputRef:e,linkUrl:n,linkType:t,error:r,onLinkTypeChange:o,onUrlInputChange:s,onUrlInputKeyDown:l}){const{t:c}=Ze.useTranslation();return i.jsxs(v.Group,{wrap:"nowrap",gap:0,w:"100%",className:"floating-link-group","data-error":r||void 0,children:[i.jsx(Va,{data:[{value:"web",label:c("editor.link.type.web")},{value:"phone",label:c("editor.link.type.phone")},{value:"email",label:c("editor.link.type.email")},{value:"sms",label:c("editor.link.type.sms")}],comboboxProps:{width:200,zIndex:400,position:"bottom-start",classNames:{dropdown:"floating-link-type-combobox-dropdown"}},value:t,onChange:d=>{d&&o(d)},placeholder:c("editor.link.type.web"),"data-test-id":"floating-link-type-select",inputClassName:"editor-select__input--create-mode"}),i.jsx(v.Input,{ref:e,value:n,error:r,type:UI(t),name:HI(t),size:"sm",className:"floating-link-url-input",placeholder:KI(t),"data-test-id":"floating-link-url-input",onChange:d=>{s(d.target.value)},onKeyDown:l})]})}function $I({inputRef:e,linkUrl:n,linkType:t,error:r,mobile:o,onLinkTypeChange:s,onUrlInputChange:l,onUrlInputKeyDown:c,onCancel:d,onSave:f}){const{t:h}=Ze.useTranslation();return i.jsxs(v.Box,{className:"floating-link-form",children:[i.jsxs(v.Stack,{gap:5,children:[i.jsx(v.Text,{fw:500,size:"xs",c:"var(--mantine-color-text)",children:h("editor.link.link")}),i.jsx(r5,{inputRef:e,linkUrl:n,linkType:t,error:r,onLinkTypeChange:s,onUrlInputChange:l,onUrlInputKeyDown:c})]}),o?i.jsxs(v.Stack,{gap:4,mt:16,children:[i.jsx(v.Button,{h:36,fullWidth:!0,onClick:f,disabled:!n.trim(),"data-test-id":"floating-link-save",children:h("editor.link.save")}),i.jsx(v.Button,{h:36,fullWidth:!0,variant:"subtle",color:"gray",onClick:d,"data-test-id":"floating-link-cancel",children:h("editor.cancel")})]}):i.jsxs(v.Group,{justify:"flex-end",mt:16,gap:8,children:[i.jsx(v.Button,{h:30,variant:"subtle",color:"gray",onClick:d,"data-test-id":"floating-link-cancel",children:h("editor.cancel")}),i.jsx(v.Button,{h:30,type:"submit",onClick:f,disabled:!n.trim(),"data-test-id":"floating-link-save",children:h("editor.link.save")})]})]})}function eD({inputRef:e,textUrl:n,linkUrl:t,linkType:r,error:o,mobile:s,setTextUrl:l,onLinkTypeChange:c,onUrlInputChange:d,onUrlInputKeyDown:f,onCancel:h,onSave:g}){const{t:C}=Ze.useTranslation();return i.jsxs(v.Box,{className:"floating-link-form",children:[i.jsxs(v.Stack,{gap:10,children:[i.jsxs(v.Stack,{gap:5,children:[i.jsx(v.Text,{fw:500,size:"xs",c:"var(--mantine-color-text)",children:C("editor.link.link")}),i.jsx(r5,{inputRef:e,linkUrl:t,linkType:r,error:o,onLinkTypeChange:c,onUrlInputChange:d,onUrlInputKeyDown:f})]}),i.jsxs(v.Stack,{gap:5,children:[i.jsx(v.Text,{fw:500,size:"xs",c:"var(--mantine-color-text)",children:C("editor.link.name")}),i.jsx(v.Input,{value:n,size:"sm",placeholder:C("editor.link.linkName"),"data-test-id":"floating-link-text-input",onChange:y=>{l(y.target.value)},onKeyDown:f})]})]}),s?i.jsxs(v.Stack,{gap:4,mt:16,children:[i.jsx(v.Button,{h:36,fullWidth:!0,onClick:g,disabled:!t.trim(),"data-test-id":"floating-link-save",children:C("editor.link.save")}),i.jsx(v.Button,{h:36,fullWidth:!0,variant:"subtle",color:"gray",onClick:h,"data-test-id":"floating-link-cancel",children:C("editor.cancel")})]}):i.jsxs(v.Group,{justify:"flex-end",mt:16,gap:8,children:[i.jsx(v.Button,{h:30,variant:"subtle",color:"gray",onClick:h,"data-test-id":"floating-link-cancel",children:C("editor.cancel")}),i.jsx(v.Button,{h:30,type:"submit",onClick:g,disabled:!t.trim(),"data-test-id":"floating-link-save",children:C("editor.link.save")})]})]})}const tD={web:Vh,phone:uk,email:$8,sms:ek};function nD({linkUrl:e,href:n,linkType:t,messageText:r,onEditClick:o,onCopyClick:s,onRemoveClick:l}){const{t:c}=Ze.useTranslation(),d=xu(),f=tD[t],h=()=>{s(),d(c("editor.link.copied"))};return i.jsxs(v.Box,{className:`floating-link-card floating-link-card--${t}`,children:[i.jsxs(v.Group,{className:"floating-link-card__top",wrap:"nowrap",children:[i.jsxs(v.Group,{className:"floating-link-card__info",wrap:"nowrap",gap:6,children:[i.jsx(te,{icon:f,size:16,color:"currentColor"}),i.jsx(v.Anchor,{className:"floating-link-card__url",size:"xs",truncate:!0,href:n,target:t==="web"?"_blank":void 0,rel:t==="web"?"noopener noreferrer":void 0,underline:"hover",c:"inherit",onClick:g=>g.stopPropagation(),"data-test-id":"floating-link-anchor",children:e})]}),i.jsxs(v.Group,{className:"floating-link-card__actions",gap:2,wrap:"nowrap",children:[i.jsx(v.ActionIcon,{variant:"subtle",color:"gray",size:24,radius:"md",onMouseDown:g=>g.preventDefault(),onClick:o,"aria-label":c("editor.link.edit"),"data-test-id":"floating-link-edit",children:i.jsx(te,{icon:KC,size:16,color:"currentColor"})}),i.jsx(v.ActionIcon,{variant:"subtle",color:"gray",size:24,radius:"md",onMouseDown:g=>g.preventDefault(),onClick:h,"aria-label":c("editor.link.copy"),"data-test-id":"floating-link-copy",children:i.jsx(te,{icon:hu,size:16,color:"currentColor"})}),i.jsx(v.ActionIcon,{variant:"subtle",color:"red",size:24,radius:"md",onMouseDown:g=>g.preventDefault(),onClick:l,"aria-label":c("editor.link.remove"),"data-test-id":"floating-link-remove",children:i.jsx(te,{icon:jn,size:16,color:"currentColor"})})]})]}),t==="sms"&&r&&i.jsx(v.Text,{className:"floating-link-card__sms-body",size:"xs",children:r})]})}function rD({showTextToolbar:e,updateLink:n}){const{t}=Ze.useTranslation(),[r,o]=m.useState(!1),{inputRef:s,isOpen:l,position:c,linkUrl:d,displayLinkUrl:f,textUrl:h,setTextUrl:g,messageText:C,error:y,isLinkEditMode:b,isShowEditTextLink:x,safeLinkUrl:w,linkType:k,reset:T,isDirty:D,onUrlInputChange:N,onLinkTypeChange:L,onUrlInputKeyDown:E,onSubmit:M,onEditClick:O,onCopyClick:I,onRemoveClick:F}=XI({showTextToolbar:e,updateLink:n}),_=()=>{if((b==="create"||b==="edit")&&D()){o(!0);return}T()},R=Sn.useClickOutside(ee=>{const ae=ee.target;mh(ae)||_()}),j=()=>{o(!1),T()},K=b==="preview"?"preview":x?"edit":"create",W=ee=>K==="create"?i.jsx($I,{inputRef:s,linkUrl:d,linkType:k,error:y,mobile:ee,onLinkTypeChange:L,onUrlInputChange:N,onUrlInputKeyDown:E,onCancel:T,onSave:M}):K==="edit"?i.jsx(eD,{inputRef:s,textUrl:h,linkUrl:d,linkType:k,error:y,mobile:ee,setTextUrl:g,onLinkTypeChange:L,onUrlInputChange:N,onUrlInputKeyDown:E,onCancel:T,onSave:M}):i.jsx(nD,{linkUrl:f,href:w,linkType:k,messageText:C,onEditClick:O,onCopyClick:I,onRemoveClick:F}),B=t(K==="edit"?"editor.link.editLink":"editor.link.addLink"),H=i.jsxs(v.Modal,{opened:r,onClose:()=>o(!1),centered:!0,title:t("editor.unsavedChanges.title"),size:"sm",zIndex:jc+10,children:[i.jsx(v.Text,{mb:"md",children:t("editor.unsavedChanges.message")}),i.jsxs(v.Flex,{justify:"flex-end",gap:"sm",children:[i.jsx(v.Button,{variant:"default",onClick:()=>o(!1),children:t("editor.unsavedChanges.cancel")}),i.jsx(v.Button,{color:"red",onClick:j,children:t("editor.unsavedChanges.closeWithoutSaving")})]})]}),Q=i.jsxs(v.Popover,{width:K==="preview"?312:380,opened:l,onChange:ee=>{ee||T()},closeOnClickOutside:!1,position:"bottom",offset:10,transitionProps:Wn,zIndex:jc,children:[i.jsx(v.Popover.Target,{children:i.jsx("div",{style:{position:"fixed",left:c.left,top:c.top+8,width:10,height:10,background:"transparent",pointerEvents:"none"}})}),i.jsx(v.Popover.Dropdown,{className:`floating-link-dropdown floating-link-dropdown--${b}-mode`,"data-test-id":"floating-link-dropdown",children:i.jsx("div",{ref:R,children:W(!1)})})]});if(Nt){const ee=K==="create"||K==="edit";return i.jsxs(i.Fragment,{children:[ee?i.jsx(En,{opened:l,onClose:_,title:B,zIndex:jc,children:W(!0)}):Q,H]})}return i.jsxs(i.Fragment,{children:[Q,H]})}function oD(e){const{disable:n}=m.useContext(ut),t=m.useRef({updateLinkEditor:()=>{}});return n?null:i.jsxs(i.Fragment,{children:[i.jsx(FI,{}),Dr.createPortal(i.jsx(rD,{showTextToolbar:e,updateLink:t}),document.body)]})}function sD({showTextToolbar:e}){return oD(e)}function iD(e,n){const t=e.getRangeAt(0);let r;if(e.anchorNode===n){let o=n;for(;o.firstElementChild!=null;)o=o.firstElementChild;r=o.getBoundingClientRect()}else r=t.getBoundingClientRect();if(r.width===0&&r.height===0&&r.top===0&&r.left===0){let o=e.anchorNode;if(o&&o.nodeType===Node.TEXT_NODE&&(o=o.parentElement),o instanceof HTMLElement){let s=o;for(;s&&s!==n;){const l=window.getComputedStyle(s).display;if(l==="block"||l==="list-item"||l==="flex"||l==="grid")break;s=s.parentElement}s&&s!==n&&(r=s.getBoundingClientRect())}}return r}const S2=()=>{var t;const e=(t=window.getSelection())==null?void 0:t.toString().trim();return e==null?void 0:e.replace(/\s+/g,"")},aD=10,lD=5;function ai(e,n,t,r=!1,o=aD,s=lD,l=!1){const c=t.parentElement,d=document.querySelector(".ai-editor-menu");if(e===null||!c||d){n.style.opacity="0",n.style.transform="translate(-10000px, -10000px)";return}const f=n.getBoundingClientRect(),h=c.getBoundingClientRect();let g,C;if(l){if(e.width===0&&e.height===0&&e.top===0&&e.left===0)return;const b=typeof window<"u"?window.visualViewport:null,x=(b==null?void 0:b.offsetTop)??0,w=((b==null?void 0:b.height)??window.innerHeight)+x,k=(b==null?void 0:b.width)??window.innerWidth;if(g=e.bottom+o,g+f.height>w){const D=e.top-f.height-o;D>=x+o?g=D:g=Math.max(x+o,w-f.height-o)}const T=4;C=Math.round((k-f.width)/2),C+f.width>k-T&&(C=k-f.width-T),C<T&&(C=T),n.style.transform=`translate(${C}px, ${g}px)`,n.style.opacity="1";return}if(g=e.top-f.height-o,g<0&&(g=10),C=e.left-s,g<h.top&&(g+=f.height+e.height+o*2),C+f.width>h.right&&(C=h.right-f.width-s),e.bottom-e.height>h.bottom){n.style.transform="translate(-1000px, -1000px)";return}if(e.bottom+e.height<h.top){n.style.transform="translate(-1000px, -1000px)";return}let y=g;f.top>=h.bottom&&(y=h.bottom),n.style.transform=`translate(${C}px, ${y}px)`,n.style.opacity="1"}function cD({editor:e,anchorElem:n,isLink:t,isBold:r,isItalic:o,isUnderline:s,isCode:l,isStrikethrough:c,isSubscript:d,isSuperscript:f,component:h,isText:g}){const C=m.useRef(null),y=m.useRef(!1),b=m.useRef(null),x=m.useCallback(()=>{e.dispatchCommand(Au,"create")},[e,t]);function w(){var T,D;C.current&&(y.current=!0,ai(((T=b.current)==null?void 0:T.rect)||null,C==null?void 0:C.current,n,(D=b.current)==null?void 0:D.isLink,void 0,void 0,Nt))}m.useEffect(()=>{const T=S2();if(!g&&!(T!=null&&T.length)){let D=function(M){return M instanceof HTMLElement};const N=C.current,L=window.getSelection();let E=!1;L!=null&&L.anchorNode&&D(L.anchorNode)&&L.anchorNode.className==="toolbar"&&(E=!0),N&&!E&&(b.current={rect:null,floatingElem:N,anchorElem:n,isLink:t},ai(null,N,n,t,void 0,void 0,Nt),y.current=!1)}},[g,e]),m.useEffect(()=>{if(C!=null&&C.current){const T=()=>{const D=window.getSelection();if(!D||D.isCollapsed)return;const N=e.getRootElement();!N||!D.anchorNode||N.contains(D.anchorNode)&&w()};return document.addEventListener("mouseup",w),document.addEventListener("keyup",T),()=>{document.removeEventListener("mouseup",w),document.removeEventListener("keyup",T)}}},[e,C]),m.useEffect(()=>{e.registerCommand(p.KEY_DOWN_COMMAND,T=>{var D;return(T.metaKey||T.ctrlKey)&&T.code==="KeyA"?(T.preventDefault(),Ik(e),Qt(!0)&&(Ok()&&(C!=null&&C.current)?(ai(null,C==null?void 0:C.current,n,(D=b.current)==null?void 0:D.isLink,void 0,void 0,Nt),p.$selectAll(),i1(e)):setTimeout(()=>{w()})),!0):!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(Yf,()=>(setTimeout(()=>{var T;C!=null&&C.current&&ai(null,C==null?void 0:C.current,n,(T=b.current)==null?void 0:T.isLink,void 0,void 0,Nt)},100),!1),p.COMMAND_PRIORITY_LOW)},[e]);const k=m.useCallback(()=>{const T=p.$getSelection(),D=C.current,N=window.getSelection();if(D===null)return;const L=e.getRootElement();let E=!1;const M=S2();if(M&&M.length>0&&(E=!0),T!==null&&N!==null&&(!N.isCollapsed||Nt)&&L!==null&&L.contains(N.anchorNode)&&(E||Nt)){const O=iD(N,L);if(b.current={rect:O,floatingElem:D,anchorElem:n,isLink:t},Nt){const I=(F=0)=>{var K,W;const _=C.current;if(!_)return;const{width:R,height:j}=_.getBoundingClientRect();if((R===0||j===0)&&F<3){requestAnimationFrame(()=>I(F+1));return}ai(((K=b.current)==null?void 0:K.rect)||null,_,n,(W=b.current)==null?void 0:W.isLink,void 0,void 0,!0)};requestAnimationFrame(()=>I())}if(p.$isRangeSelection(T)){const F=yi(T).getParent(),_=F==null?void 0:F.getFormatType();y.current&&_&&C&&e.registerCommand(Yf,R=>(R||setTimeout(()=>{var j,K;ai(((j=b.current)==null?void 0:j.rect)||null,D,n,(K=b.current)==null?void 0:K.isLink,void 0,void 0,Nt)},100),!1),p.COMMAND_PRIORITY_LOW)}}else b.current={rect:null,floatingElem:D,anchorElem:n,isLink:t}},[e,n,t]);return m.useEffect(()=>{const T=n.parentElement,D=()=>{e.getEditorState().read(()=>{k()})};return window.addEventListener("resize",D),T&&T.addEventListener("scroll",D),()=>{window.removeEventListener("resize",D),T&&T.removeEventListener("scroll",D)}},[e,k,n]),m.useEffect(()=>(e.getEditorState().read(()=>{k()}),be.mergeRegister(e.registerUpdateListener(({editorState:T})=>{T.read(()=>{k()})}),e.registerCommand(p.SELECTION_CHANGE_COMMAND,()=>(k(),!1),p.COMMAND_PRIORITY_LOW))),[e,k]),i.jsx("div",{ref:C,className:`floating-text-format-popup doc-space-editor-wrapper ${g?"":"floating-text-format-popup-hidden"}`,onMouseDown:T=>T.preventDefault(),children:i.jsx("div",{children:e.isEditable()&&(h||i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"bold")},className:"popup-item spaced "+(r?"active":""),"data-test-id":"toolbar-bold",children:i.jsx(mn,{name:"bold",stroke:r?3:2})}),i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"italic")},className:"popup-item spaced "+(o?"active":""),"data-test-id":"toolbar-italic",children:i.jsx(mn,{name:"italic",stroke:o?3:2})}),i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"underline")},className:"popup-item spaced "+(s?"active":""),"data-test-id":"toolbar-underline",children:i.jsx(mn,{name:"underline",stroke:s?3:2})}),i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"strikethrough")},className:"popup-item spaced "+(c?"active":""),"data-test-id":"toolbar-strikethrough",children:i.jsx(mn,{name:"strikethrough",stroke:c?3:2})}),i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"subscript")},className:"popup-item spaced "+(d?"active":""),"data-test-id":"toolbar-subscript",children:i.jsx(mn,{name:"subscript",stroke:d?3:2})}),i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"superscript")},className:"popup-item spaced "+(f?"active":""),"data-test-id":"toolbar-superscript",children:i.jsx(mn,{name:"superscript",stroke:f?3:2})}),i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"code")},className:"popup-item spaced "+(l?"active":""),"data-test-id":"toolbar-code",children:i.jsx(mn,{name:"code"})}),i.jsx("button",{type:"button",onClick:x,className:"popup-item spaced "+(t?"active":""),"data-test-id":"toolbar-link",children:i.jsx(mn,{name:"link"})})]}))})})}function uD(e,n,t){const[r,o]=m.useState(!1),[s,l]=m.useState(!1),[c,d]=m.useState(!1),[f,h]=m.useState(!1),[g,C]=m.useState(!1),[y,b]=m.useState(!1),[x,w]=m.useState(!1),[k,T]=m.useState(!1),[D,N]=m.useState(!1),[L,E]=m.useState(!1),[M,O]=m.useState(!1),I=R1(),{disable:F}=m.useContext(ut);m.useEffect(()=>{if(Nt)return e.registerCommand(mA,()=>(O(!0),!0),p.COMMAND_PRIORITY_LOW)},[e]),m.useEffect(()=>{if(!Nt||!M)return;const j=e.getRootElement();if(!j)return;const K=()=>O(!1);return j.addEventListener("pointerdown",K),()=>{j.removeEventListener("pointerdown",K)}},[e,M]);const _=m.useCallback(()=>{e.getEditorState().read(()=>{var Le,Se,we;if(e.isComposing())return;const j=p.$getSelection(),K=window.getSelection(),W=e.getRootElement();if(K!==null&&(!p.$isRangeSelection(j)||W===null||!W.contains(K.anchorNode))){o(!1);return}if(!p.$isRangeSelection(j))return;const B=yi(j),H=be.$findMatchingParent(B,vt);l(vt(H)),h(j.hasFormat("bold")),C(j.hasFormat("italic")),b(j.hasFormat("underline")),w(j.hasFormat("strikethrough")),T(j.hasFormat("subscript")),N(j.hasFormat("superscript")),E(j.hasFormat("code"));const Q=B.getParent();on.$isLinkNode(Q)||on.$isLinkNode(B)?d(!0):d(!1);const ee=Ut.$isCodeHighlightNode(j.anchor.getNode()),ae=(we=(Se=(Le=e.getElementByKey(B.__key))==null?void 0:Le.parentElement)==null?void 0:Se.parentElement)==null?void 0:we.classList.contains("Collapsible__title");!ee&&(j.getTextContent()!==""||Nt)&&!ae?o(_n(B)||p.$isParagraphNode(B)||ln.$isHeadingNode(B)||ln.$isQuoteNode(B)||It(B)):o(!1);const pe=j.getTextContent().replace(/\n/g,"");if(!j.isCollapsed()&&pe===""){o(!1);return}})},[e]);if(m.useEffect(()=>(document.addEventListener("selectionchange",_),()=>{document.removeEventListener("selectionchange",_)}),[_]),m.useEffect(()=>be.mergeRegister(e.registerUpdateListener(()=>{_()}),e.registerRootListener(()=>{e.getRootElement()===null&&o(!1)})),[e,_]),F)return null;const R=s?null:t;return Dr.createPortal(i.jsx(cD,{editor:e,anchorElem:n,isLink:c,isBold:f,isItalic:g,isStrikethrough:x,isSubscript:k,isSuperscript:D,isUnderline:y,isCode:L,component:R,isText:r&&!I&&!M}),document.body)}function E2({anchorElem:e=document.body,component:n}){const[t]=it.useLexicalComposerContext();return uD(t,e,n)}function dD(){const[e]=it.useLexicalComposerContext(),{maxHeight:n}=m.useContext(ut),t=()=>{dA(e)};return n?null:i.jsx("div",{className:"new-paragraph",onClick:t})}function fD({hover:e,menuRef:n,onCopy:t,onDuplicate:r,isEmpty:o}){const{t:s}=Ze.useTranslation(),l=e.type==="code"?e.label||s("editor.menu.main.code.name"):s("editor.menu.other.equation.overlayTitle");return i.jsxs(v.Paper,{ref:n,className:"preview-code-equation-menu",shadow:"none",radius:"md",withBorder:!1,style:{position:"absolute",top:e.position.top,right:e.position.right,display:"flex",alignItems:"center",gap:8,padding:0,backgroundColor:"transparent",zIndex:1e3},children:[i.jsx(v.Box,{bg:"light-dark(var(--mantine-color-white), var(--mantine-color-body))",px:8,py:6,style:{borderRadius:"var(--mantine-radius-sm)"},children:i.jsx(v.Text,{className:"preview-code-equation-menu__label",size:"sm",c:"var(--mantine-color-dark-0)",children:l})}),i.jsx(e1,{isEmpty:o,copyToClipboard:t,onDuplicate:r,tooltipCopy:s("editor.contextMenu.copy"),tooltipDuplicate:s("editor.contextMenu.duplicate")})]})}function M2(e){const t=(e.closest("[data-lexical-equation]")??e.querySelector("[data-lexical-equation]")??e).getAttribute("data-lexical-equation");if(t)try{return decodeURIComponent(escape(atob(t)))}catch{}const r=e.querySelector('annotation[encoding="application/x-tex"]');return r&&r.textContent?r.textContent.trim():e.textContent||""}async function T2(e){if(!e)return!1;try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function hD(e){const{disable:n}=m.useContext(ut),[t]=it.useLexicalComposerContext(),[r,o]=m.useState(null),s=m.useRef(null),l=n&&!!e,c=m.useMemo(()=>C=>{if(!l||!e)return;const{lexicalDOMNode:y,isOutside:b}=Bu(C,"code.dsd__theme__code, div.editor-equation",[".preview-code-equation-menu"]);if(b){o(null);return}if(!y)return;const x=y.matches("code.dsd__theme__code"),w=x&&(y.getAttribute("data-name-language")||y.getAttribute("data-language"))||"",{y:k,right:T}=e.getBoundingClientRect(),{y:D,right:N}=y.getBoundingClientRect(),L=D-k+4,E=T-N+4;let M=null;t.getEditorState().read(()=>{const O=p.$getNearestNodeFromDOMNode(y);if(!O)return;const I=x?eu(O):Tc(O);M=(I==null?void 0:I.getKey())??null}),o({type:x?"code":"equation",label:w,target:y,wrapperKey:M,position:{top:`${L}px`,right:`${E}px`}})},[e,l,t]),d=Wi(c,50,300);if(m.useEffect(()=>{if(!l){o(null);return}return document.addEventListener("mousemove",d),()=>{d.cancel(),document.removeEventListener("mousemove",d)}},[d,l]),!l||!r||!e)return null;const f=async()=>r!=null&&r.target?r.type==="code"?T2((r.target.textContent||"").trim()):T2(M2(r.target).trim()):!1,h=r.type==="code"?!(r.target.textContent||"").trim():!M2(r.target).trim(),g=()=>{const C=r.wrapperKey;C&&t.update(()=>{const y=p.$getNodeByKey(C);!as(y)&&!wu(y)||y.insertAfter(Nr(y))})};return m.createElement(fD,{hover:r,menuRef:s,onCopy:f,onDuplicate:g,isEmpty:h})}function pD({anchorElem:e=document.body}){return hD(e)}var mD="function",gD="object",CD="string",AD="undefined",bD=typeof document!==AD&&document,yD=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],Kr=1e-7,gc={cm:function(e){return e*96/2.54},mm:function(e){return e*96/254},in:function(e){return e*96},pt:function(e){return e*96/72},pc:function(e){return e*96/6},"%":function(e,n){return e*n/100},vw:function(e,n){return n===void 0&&(n=window.innerWidth),e/100*n},vh:function(e,n){return n===void 0&&(n=window.innerHeight),e/100*n},vmax:function(e,n){return n===void 0&&(n=Math.max(window.innerWidth,window.innerHeight)),e/100*n},vmin:function(e,n){return n===void 0&&(n=Math.min(window.innerWidth,window.innerHeight)),e/100*n}};/*! *****************************************************************************
|
|
227
|
-
Copyright (c) Microsoft Corporation.
|
|
228
|
-
|
|
229
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
230
|
-
purpose with or without fee is hereby granted.
|
|
231
|
-
|
|
232
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
233
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
234
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
235
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
236
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
237
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
238
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
239
|
-
***************************************************************************** */function xD(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var r=Array(e),o=0,n=0;n<t;n++)for(var s=arguments[n],l=0,c=s.length;l<c;l++,o++)r[o]=s[l];return r}function ds(e){return e&&typeof e===gD}function ou(e){return Array.isArray(e)}function Ua(e){return typeof e===CD}function F1(e){return typeof e===mD}function vD(e,n){var t=e===""||e==" ",r=n===""||n==" ";return r&&t||e===n}function o5(e,n,t,r,o){var s=W1(e,n,t);return s?t:wD(e,n,t+1,r,o)}function W1(e,n,t){if(!e.ignore)return null;var r=n.slice(Math.max(t-3,0),t+3).join("");return new RegExp(e.ignore).exec(r)}function wD(e,n,t,r,o){for(var s=function(f){var h=n[f].trim();if(h===e.close&&!W1(e,n,f))return{value:f};var g=f,C=Ha(o,function(y){var b=y.open;return b===h});if(C&&(g=o5(C,n,f,r,o)),g===-1)return l=f,"break";f=g,l=f},l,c=t;c<r;++c){var d=s(c);if(c=l,typeof d=="object")return d.value;if(d==="break")break}return-1}function z1(e,n){var t=Ua(n)?{separator:n}:n,r=t.separator,o=r===void 0?",":r,s=t.isSeparateFirst,l=t.isSeparateOnlyOpenClose,c=t.isSeparateOpenClose,d=c===void 0?l:c,f=t.openCloseCharacters,h=f===void 0?yD:f,g=h.map(function(M){var O=M.open,I=M.close;return O===I?O:O+"|"+I}).join("|"),C="(\\s*"+o+"\\s*|"+g+"|\\s+)",y=new RegExp(C,"g"),b=e.split(y).filter(function(M){return M&&M!=="undefined"}),x=b.length,w=[],k=[];function T(){return k.length?(w.push(k.join("")),k=[],!0):!1}for(var D=function(M){var O=b[M].trim(),I=M,F=Ha(h,function(j){var K=j.open;return K===O}),_=Ha(h,function(j){var K=j.close;return K===O});if(F){if(I=o5(F,b,M,x,h),I!==-1&&d)return T()&&s||(w.push(b.slice(M,I+1).join("")),M=I,s)?(N=M,"break"):(N=M,"continue")}else if(_&&!W1(_,b,M)){var R=xD(h);return R.splice(h.indexOf(_),1),{value:z1(e,{separator:o,isSeparateFirst:s,isSeparateOnlyOpenClose:l,isSeparateOpenClose:d,openCloseCharacters:R})}}else if(vD(O,o)&&!l)return T(),s?(N=M,"break"):(N=M,"continue");I===-1&&(I=x-1),k.push(b.slice(M,I+1).join("")),M=I,N=M},N,L=0;L<x;++L){var E=D(L);if(L=N,typeof E=="object")return E.value;if(E==="break")break}return k.length&&w.push(k.join("")),w}function kD(e){return z1(e,"")}function da(e){return z1(e,",")}function SD(e){var n=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(e);return!n||n.length<4?{}:{prefix:n[1],value:n[2],suffix:n[3]}}function su(e){var n=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!n)return{prefix:"",unit:"",value:NaN};var t=n[1],r=n[2],o=n[3];return{prefix:t,unit:o,value:parseFloat(r)}}function gh(e){return e.replace(/[\s-_]+([^\s-_])/g,function(n,t){return t.toUpperCase()})}function Ch(){return Date.now?Date.now():new Date().getTime()}function iu(e,n,t){t===void 0&&(t=-1);for(var r=e.length,o=0;o<r;++o)if(n(e[o],o,e))return o;return t}function Ha(e,n,t){var r=iu(e,n);return r>-1?e[r]:t}function L2(e,n){var t=su(e),r=t.value,o=t.unit;if(ds(n)){var s=n[o];if(s){if(F1(s))return s(r);if(gc[o])return gc[o](r,s)}}else if(o==="%")return r*n/100;return gc[o]?gc[o](r):r}function s5(e,n,t){return Math.max(n,Math.min(e,t))}function N2(e,n,t,r){return r===void 0&&(r=e[0]/e[1]),[[So(n[0],Kr),So(n[0]/r,Kr)],[So(n[1]*r,Kr),So(n[1],Kr)]].filter(function(o){return o.every(function(s,l){var c=n[l],d=So(c,Kr);return t?s<=c||s<=d:s>=c||s>=d})})[0]||e}function ED(e,n,t,r){if(!r)return e.map(function(y,b){return s5(y,n[b],t[b])});var o=e[0],s=e[1],l=r===!0?o/s:r,c=N2(e,n,!1,l),d=c[0],f=c[1],h=N2(e,t,!0,l),g=h[0],C=h[1];return o<d||s<f?(o=d,s=f):(o>g||s>C)&&(o=g,s=C),[o,s]}function MD(e){for(var n=e.length,t=0,r=n-1;r>=0;--r)t+=e[r];return t}function TD(e){for(var n=e.length,t=0,r=n-1;r>=0;--r)t+=e[r];return n?t/n:0}function j2(e,n){var t=n[0]-e[0],r=n[1]-e[1],o=Math.atan2(r,t);return o>=0?o:o+Math.PI*2}function LD(e){return[0,1].map(function(n){return TD(e.map(function(t){return t[n]}))})}function R2(e){var n=LD(e),t=j2(n,e[0]),r=j2(n,e[1]);return t<r&&r-t<Math.PI||t>r&&r-t<-Math.PI?1:-1}function Ah(e,n){return Math.sqrt(Math.pow((n?n[0]:0)-e[0],2)+Math.pow((n?n[1]:0)-e[1],2))}function So(e,n){var t=1/n;return Math.round(e/n)/t}function ND(e,n){return e.classList?e.classList.contains(n):!!e.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)"))}function jD(e,n){e.classList?e.classList.add(n):e.className+=" "+n}function wn(e,n,t,r){e.addEventListener(n,t,r)}function fn(e,n,t,r){e.removeEventListener(n,t,r)}function wo(e){return(e==null?void 0:e.ownerDocument)||bD}function Ns(e){var n;return((n=e==null?void 0:e.ownerDocument)===null||n===void 0?void 0:n.defaultView)||window}function RD(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function I2(e){return ds(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}/*! *****************************************************************************
|
|
240
|
-
Copyright (c) Microsoft Corporation.
|
|
241
|
-
|
|
242
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
243
|
-
purpose with or without fee is hereby granted.
|
|
244
|
-
|
|
245
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
246
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
247
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
248
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
249
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
250
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
251
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
252
|
-
***************************************************************************** */var bh=function(){return bh=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},bh.apply(this,arguments)};function ID(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var r=Array(e),o=0,n=0;n<t;n++)for(var s=arguments[n],l=0,c=s.length;l<c;l++,o++)r[o]=s[l];return r}var _u=(function(){function e(){this._events={}}var n=e.prototype;return n.on=function(t,r){if(ds(t))for(var o in t)this.on(o,t[o]);else this._addEvent(t,r,{});return this},n.off=function(t,r){if(!t)this._events={};else if(ds(t))for(var o in t)this.off(o);else if(!r)this._events[t]=[];else{var s=this._events[t];if(s){var l=iu(s,function(c){return c.listener===r});l>-1&&s.splice(l,1)}}return this},n.once=function(t,r){var o=this;return r&&this._addEvent(t,r,{once:!0}),new Promise(function(s){o._addEvent(t,s,{once:!0})})},n.emit=function(t,r){var o=this;r===void 0&&(r={});var s=this._events[t];if(!t||!s)return!0;var l=!1;return r.eventType=t,r.stop=function(){l=!0},r.currentTarget=this,ID(s).forEach(function(c){c.listener(r),c.once&&o.off(t,c.listener)}),!l},n.trigger=function(t,r){return r===void 0&&(r={}),this.emit(t,r)},n._addEvent=function(t,r,o){var s=this._events;s[t]=s[t]||[];var l=s[t];l.push(bh({listener:r},o))},e})();/*! *****************************************************************************
|
|
253
|
-
Copyright (c) Microsoft Corporation.
|
|
254
|
-
|
|
255
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
256
|
-
purpose with or without fee is hereby granted.
|
|
257
|
-
|
|
258
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
259
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
260
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
261
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
262
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
263
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
264
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
265
|
-
***************************************************************************** */var yh=function(e,n){return yh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},yh(e,n)};function DD(e,n){yh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var xn=function(){return xn=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},xn.apply(this,arguments)};function OD(e,n){var t=n[0]-e[0],r=n[1]-e[1],o=Math.atan2(r,t);return o>=0?o:o+Math.PI*2}function Sf(e){return OD([e[0].clientX,e[0].clientY],[e[1].clientX,e[1].clientY])/Math.PI*180}function PD(e){return e.touches&&e.touches.length>=2}function Cc(e){return e?e.touches?_D(e.touches):[i5(e)]:[]}function BD(e){return e&&(e.type.indexOf("mouse")>-1||"button"in e)}function D2(e,n,t){var r=t.length,o=wa(e,r),s=o.clientX,l=o.clientY,c=o.originalClientX,d=o.originalClientY,f=wa(n,r),h=f.clientX,g=f.clientY,C=wa(t,r),y=C.clientX,b=C.clientY,x=s-h,w=l-g,k=s-y,T=l-b;return{clientX:c,clientY:d,deltaX:x,deltaY:w,distX:k,distY:T}}function Ef(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function _D(e){for(var n=Math.min(e.length,2),t=[],r=0;r<n;++r)t.push(i5(e[r]));return t}function i5(e){return{clientX:e.clientX,clientY:e.clientY}}function wa(e,n){n===void 0&&(n=e.length);for(var t={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,n),o=0;o<r;++o){var s=e[o];t.originalClientX+="originalClientX"in s?s.originalClientX:s.clientX,t.originalClientY+="originalClientY"in s?s.originalClientY:s.clientY,t.clientX+=s.clientX,t.clientY+=s.clientY}return n?{clientX:t.clientX/n,clientY:t.clientY/n,originalClientX:t.originalClientX/n,originalClientY:t.originalClientY/n}:t}var Mf=(function(){function e(n){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=n,this.prevClients=n,this.length=n.length}return e.prototype.getAngle=function(n){return n===void 0&&(n=this.prevClients),Sf(n)},e.prototype.getRotation=function(n){return n===void 0&&(n=this.prevClients),Sf(n)-Sf(this.startClients)},e.prototype.getPosition=function(n,t){n===void 0&&(n=this.prevClients);var r=D2(n||this.prevClients,this.prevClients,this.startClients),o=r.deltaX,s=r.deltaY;return this.movement+=Math.sqrt(o*o+s*s),this.prevClients=n,r},e.prototype.getPositions=function(n){n===void 0&&(n=this.prevClients);for(var t=this.prevClients,r=this.startClients,o=Math.min(this.length,t.length),s=[],l=0;l<o;++l)s[l]=D2([n[l]],[t[l]],[r[l]]);return s},e.prototype.getMovement=function(n){var t=this.movement;if(!n)return t;var r=wa(n,this.length),o=wa(this.prevClients,this.length),s=r.clientX-o.clientX,l=r.clientY-o.clientY;return Math.sqrt(s*s+l*l)+t},e.prototype.getDistance=function(n){return n===void 0&&(n=this.prevClients),Ef(n)},e.prototype.getScale=function(n){return n===void 0&&(n=this.prevClients),Ef(n)/Ef(this.startClients)},e.prototype.move=function(n,t){this.startClients.forEach(function(r){r.clientX-=n,r.clientY-=t}),this.prevClients.forEach(function(r){r.clientX-=n,r.clientY-=t})},e})(),O2=["textarea","input"],FD=(function(e){DD(n,e);function n(t,r){r===void 0&&(r={});var o=e.call(this)||this;o.options={},o.flag=!1,o.pinchFlag=!1,o.data={},o.isDrag=!1,o.isPinch=!1,o.clientStores=[],o.targets=[],o.prevTime=0,o.doubleFlag=!1,o._useMouse=!1,o._useTouch=!1,o._useDrag=!1,o._dragFlag=!1,o._isTrusted=!1,o._isMouseEvent=!1,o._isSecondaryButton=!1,o._preventMouseEvent=!1,o._prevInputEvent=null,o._isDragAPI=!1,o._isIdle=!0,o._preventMouseEventId=0,o._window=window,o.onDragStart=function(C,y){if(y===void 0&&(y=!0),!(!o.flag&&C.cancelable===!1)){var b=C.type.indexOf("drag")>=-1;if(!(o.flag&&b)){o._isDragAPI=!0;var x=o.options,w=x.container,k=x.pinchOutside,T=x.preventWheelClick,D=x.preventRightClick,N=x.preventDefault,L=x.checkInput,E=x.dragFocusedInput,M=x.preventClickEventOnDragStart,O=x.preventClickEventOnDrag,I=x.preventClickEventByCondition,F=o._useTouch,_=!o.flag;if(o._isSecondaryButton=C.which===3||C.button===2,T&&(C.which===2||C.button===1)||D&&(C.which===3||C.button===2))return o.stop(),!1;if(_){var R=o._window.document.activeElement,j=C.target;if(j){var K=j.tagName.toLowerCase(),W=O2.indexOf(K)>-1,B=j.isContentEditable;if(W||B){if(L||!E&&R===j)return!1;if(R&&(R===j||B&&R.isContentEditable&&R.contains(j)))if(E)j.blur();else return!1}else if((N||C.type==="touchstart")&&R){var H=R.tagName.toLowerCase();(R.isContentEditable||O2.indexOf(H)>-1)&&R.blur()}(M||O||I)&&wn(o._window,"click",o._onClick,!0)}o.clientStores=[new Mf(Cc(C))],o._isIdle=!1,o.flag=!0,o.isDrag=!1,o._isTrusted=y,o._dragFlag=!0,o._prevInputEvent=C,o.data={},o.doubleFlag=Ch()-o.prevTime<200,o._isMouseEvent=BD(C),!o._isMouseEvent&&o._preventMouseEvent&&o._allowMouseEvent();var Q=o._preventMouseEvent||o.emit("dragStart",xn(xn({data:o.data,datas:o.data,inputEvent:C,isMouseEvent:o._isMouseEvent,isSecondaryButton:o._isSecondaryButton,isTrusted:y,isDouble:o.doubleFlag},o.getCurrentStore().getPosition()),{preventDefault:function(){C.preventDefault()},preventDrag:function(){o._dragFlag=!1}}));Q===!1&&o.stop(),o._isMouseEvent&&o.flag&&N&&C.preventDefault()}if(!o.flag)return!1;var ee=0;if(_?(o._attchDragEvent(),F&&k&&(ee=setTimeout(function(){wn(w,"touchstart",o.onDragStart,{passive:!1})}))):F&&k&&fn(w,"touchstart",o.onDragStart),o.flag&&PD(C)){if(clearTimeout(ee),_&&C.touches.length!==C.changedTouches.length)return;o.pinchFlag||o.onPinchStart(C)}}}},o.onDrag=function(C,y){if(o.flag){var b=o.options.preventDefault;!o._isMouseEvent&&b&&C.preventDefault(),o._prevInputEvent=C;var x=Cc(C),w=o.moveClients(x,C,!1);if(o._dragFlag){if(o.pinchFlag||w.deltaX||w.deltaY){var k=o._preventMouseEvent||o.emit("drag",xn(xn({},w),{isScroll:!!y,inputEvent:C}));if(k===!1){o.stop();return}}o.pinchFlag&&o.onPinch(C,x)}o.getCurrentStore().getPosition(x,!0)}},o.onDragEnd=function(C){if(o.flag){var y=o.options,b=y.pinchOutside,x=y.container,w=y.preventClickEventOnDrag,k=y.preventClickEventOnDragStart,T=y.preventClickEventByCondition,D=o.isDrag;(w||k||T)&&requestAnimationFrame(function(){o._allowClickEvent()}),!T&&!k&&w&&!D&&o._allowClickEvent(),o._useTouch&&b&&fn(x,"touchstart",o.onDragStart),o.pinchFlag&&o.onPinchEnd(C);var N=C!=null&&C.touches?Cc(C):[],L=N.length;L===0||!o.options.keepDragging?o.flag=!1:o._addStore(new Mf(N));var E=o._getPosition(),M=Ch(),O=!D&&o.doubleFlag;o._prevInputEvent=null,o.prevTime=D||O?0:M,o.flag||(o._dettachDragEvent(),o._preventMouseEvent||o.emit("dragEnd",xn({data:o.data,datas:o.data,isDouble:O,isDrag:D,isClick:!D,isMouseEvent:o._isMouseEvent,isSecondaryButton:o._isSecondaryButton,inputEvent:C,isTrusted:o._isTrusted},E)),o.clientStores=[],o._isMouseEvent||(o._preventMouseEvent=!0,clearTimeout(o._preventMouseEventId),o._preventMouseEventId=setTimeout(function(){o._preventMouseEvent=!1},200)),o._isIdle=!0)}},o.onBlur=function(){o.onDragEnd()},o._allowClickEvent=function(){fn(o._window,"click",o._onClick,!0)},o._onClick=function(C){o._allowClickEvent(),o._allowMouseEvent();var y=o.options.preventClickEventByCondition;y!=null&&y(C)||(C.stopPropagation(),C.preventDefault())},o._onContextMenu=function(C){var y=o.options;y.preventRightClick?o.onDragEnd(C):C.preventDefault()},o._passCallback=function(){};var s=[].concat(t),l=s[0];o._window=RD(l)?l:Ns(l),o.options=xn({checkInput:!1,container:l&&!("document"in l)?Ns(l):l,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var c=o.options,d=c.container,f=c.events,h=c.checkWindowBlur;if(o._useDrag=f.indexOf("drag")>-1,o._useTouch=f.indexOf("touch")>-1,o._useMouse=f.indexOf("mouse")>-1,o.targets=s,o._useDrag&&s.forEach(function(C){wn(C,"dragstart",o.onDragStart)}),o._useMouse&&(s.forEach(function(C){wn(C,"mousedown",o.onDragStart),wn(C,"mousemove",o._passCallback)}),wn(d,"contextmenu",o._onContextMenu)),h&&wn(Ns(),"blur",o.onBlur),o._useTouch){var g={passive:!1};s.forEach(function(C){wn(C,"touchstart",o.onDragStart,g),wn(C,"touchmove",o._passCallback,g)})}return o}return n.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},n.prototype.getMovement=function(t){return this.getCurrentStore().getMovement(t)+this.clientStores.slice(1).reduce(function(r,o){return r+o.movement},0)},n.prototype.isDragging=function(){return this.isDrag},n.prototype.isIdle=function(){return this._isIdle},n.prototype.isFlag=function(){return this.flag},n.prototype.isPinchFlag=function(){return this.pinchFlag},n.prototype.isDoubleFlag=function(){return this.doubleFlag},n.prototype.isPinching=function(){return this.isPinch},n.prototype.scrollBy=function(t,r,o,s){s===void 0&&(s=!0),this.flag&&(this.clientStores[0].move(t,r),s&&this.onDrag(o,!0))},n.prototype.move=function(t,r){var o=t[0],s=t[1],l=this.getCurrentStore(),c=l.prevClients;return this.moveClients(c.map(function(d){var f=d.clientX,h=d.clientY;return{clientX:f+o,clientY:h+s,originalClientX:f,originalClientY:h}}),r,!0)},n.prototype.triggerDragStart=function(t){this.onDragStart(t,!1)},n.prototype.setEventData=function(t){var r=this.data;for(var o in t)r[o]=t[o];return this},n.prototype.setEventDatas=function(t){return this.setEventData(t)},n.prototype.getCurrentEvent=function(t){return t===void 0&&(t=this._prevInputEvent),xn(xn({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},n.prototype.getEventData=function(){return this.data},n.prototype.getEventDatas=function(){return this.data},n.prototype.unset=function(){var t=this,r=this.targets,o=this.options.container;this.off(),fn(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(s){fn(s,"dragstart",t.onDragStart)}),this._useMouse&&(r.forEach(function(s){fn(s,"mousedown",t.onDragStart)}),fn(o,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(s){fn(s,"touchstart",t.onDragStart)}),fn(o,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},n.prototype.onPinchStart=function(t){var r=this,o=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>o)){var s=new Mf(Cc(t));this.pinchFlag=!0,this._addStore(s);var l=this.emit("pinchStart",xn(xn({data:this.data,datas:this.data,angle:s.getAngle(),touches:this.getCurrentStore().getPositions()},s.getPosition()),{inputEvent:t,isTrusted:this._isTrusted,preventDefault:function(){t.preventDefault()},preventDrag:function(){r._dragFlag=!1}}));l===!1&&(this.pinchFlag=!1)}},n.prototype.onPinch=function(t,r){if(!(!this.flag||!this.pinchFlag||r.length<2)){var o=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",xn(xn({data:this.data,datas:this.data,movement:this.getMovement(r),angle:o.getAngle(r),rotation:o.getRotation(r),touches:o.getPositions(r),scale:o.getScale(r),distance:o.getDistance(r)},o.getPosition(r)),{inputEvent:t,isTrusted:this._isTrusted}))}},n.prototype.onPinchEnd=function(t){if(this.pinchFlag){var r=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var o=this.getCurrentStore();this.emit("pinchEnd",xn(xn({data:this.data,datas:this.data,isPinch:r,touches:o.getPositions()},o.getPosition()),{inputEvent:t}))}},n.prototype.getCurrentStore=function(){return this.clientStores[0]},n.prototype.moveClients=function(t,r,o){var s=this._getPosition(t,o),l=this.isDrag;(s.deltaX||s.deltaY)&&(this.isDrag=!0);var c=!1;return!l&&this.isDrag&&(c=!0),xn(xn({data:this.data,datas:this.data},s),{movement:this.getMovement(t),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:r,isTrusted:this._isTrusted,isFirstDrag:c})},n.prototype._addStore=function(t){this.clientStores.splice(0,0,t)},n.prototype._getPosition=function(t,r){var o=this.getCurrentStore(),s=o.getPosition(t,r),l=this.clientStores.slice(1).reduce(function(f,h){var g=h.getPosition();return f.distX+=g.distX,f.distY+=g.distY,f},s),c=l.distX,d=l.distY;return xn(xn({},s),{distX:c,distY:d})},n.prototype._attchDragEvent=function(){var t=this._window,r=this.options.container,o={passive:!1};this._isDragAPI&&(wn(r,"dragover",this.onDrag,o),wn(t,"dragend",this.onDragEnd)),this._useMouse&&(wn(r,"mousemove",this.onDrag),wn(t,"mouseup",this.onDragEnd)),this._useTouch&&(wn(r,"touchmove",this.onDrag,o),wn(t,"touchend",this.onDragEnd,o),wn(t,"touchcancel",this.onDragEnd,o))},n.prototype._dettachDragEvent=function(){var t=this._window,r=this.options.container;this._isDragAPI&&(fn(r,"dragover",this.onDrag),fn(t,"dragend",this.onDragEnd)),this._useMouse&&(fn(r,"mousemove",this.onDrag),fn(t,"mouseup",this.onDragEnd)),this._useTouch&&(fn(r,"touchstart",this.onDragStart),fn(r,"touchmove",this.onDrag),fn(t,"touchend",this.onDragEnd),fn(t,"touchcancel",this.onDragEnd))},n.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},n})(_u);function WD(e,n){return function(t){t&&(e[n]=t)}}function zD(e,n){return function(t){var r=t.prototype;e.forEach(function(o){n(r,o)})}}function KD(e,n){return n===void 0&&(n={}),function(t,r){e.forEach(function(o){var s=n[o]||o;s in t||(t[s]=function(){for(var l,c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var f=(l=this[r])[o].apply(l,c);return f===this[r]?this:f})})}}var UD=(function(){function e(){this.keys=[],this.values=[]}var n=e.prototype;return n.get=function(t){return this.values[this.keys.indexOf(t)]},n.set=function(t,r){var o=this.keys,s=this.values,l=o.indexOf(t),c=l===-1?o.length:l;o[c]=t,s[c]=r},e})(),HD=(function(){function e(){this.object={}}var n=e.prototype;return n.get=function(t){return this.object[t]},n.set=function(t,r){this.object[t]=r},e})(),YD=typeof Map=="function",ZD=(function(){function e(){}var n=e.prototype;return n.connect=function(t,r){this.prev=t,this.next=r,t&&(t.next=this),r&&(r.prev=this)},n.disconnect=function(){var t=this.prev,r=this.next;t&&(t.next=r),r&&(r.prev=t)},n.getIndex=function(){for(var t=this,r=-1;t;)t=t.prev,++r;return r},e})();function GD(e,n){var t=[],r=[];return e.forEach(function(o){var s=o[0],l=o[1],c=new ZD;t[s]=c,r[l]=c}),t.forEach(function(o,s){o.connect(t[s-1])}),e.filter(function(o,s){return!n[s]}).map(function(o,s){var l=o[0],c=o[1];if(l===c)return[0,0];var d=t[l],f=r[c-1],h=d.getIndex();d.disconnect(),f?d.connect(f,f.next):d.connect(void 0,t[0]);var g=d.getIndex();return[h,g]})}var VD=(function(){function e(t,r,o,s,l,c,d,f){this.prevList=t,this.list=r,this.added=o,this.removed=s,this.changed=l,this.maintained=c,this.changedBeforeAdded=d,this.fixed=f}var n=e.prototype;return Object.defineProperty(n,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(n,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),n.caculateOrdered=function(){var t=GD(this.changedBeforeAdded,this.fixed),r=this.changed,o=[];this.cacheOrdered=t.filter(function(s,l){var c=s[0],d=s[1],f=r[l],h=f[0],g=f[1];if(c!==d)return o.push([h,g]),!0}),this.cachePureChanged=o},e})();function qD(e,n,t){var r=YD?Map:t?HD:UD,o=t||function(T){return T},s=[],l=[],c=[],d=e.map(o),f=n.map(o),h=new r,g=new r,C=[],y=[],b={},x=[],w=0,k=0;return d.forEach(function(T,D){h.set(T,D)}),f.forEach(function(T,D){g.set(T,D)}),d.forEach(function(T,D){var N=g.get(T);typeof N>"u"?(++k,l.push(D)):b[N]=k}),f.forEach(function(T,D){var N=h.get(T);typeof N>"u"?(s.push(D),++w):(c.push([N,D]),k=b[D]||0,C.push([N-k,D-w]),y.push(D===N),N!==D&&x.push([N,D]))}),l.reverse(),new VD(e,n,s,l,x,c,C,y)}var QD=typeof Map=="function"?void 0:(function(){var e=0;return function(n){return n.__DIFF_KEY__||(n.__DIFF_KEY__=++e)}})();function fa(e,n){return qD(e,n,QD)}/*! *****************************************************************************
|
|
266
|
-
Copyright (c) Microsoft Corporation.
|
|
267
|
-
|
|
268
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
269
|
-
purpose with or without fee is hereby granted.
|
|
270
|
-
|
|
271
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
272
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
273
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
274
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
275
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
276
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
277
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
278
|
-
***************************************************************************** */var xh=function(e,n){return xh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},xh(e,n)};function JD(e,n){xh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var hi=function(){return hi=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},hi.apply(this,arguments)};function XD(e){var n=e.container;return n===document.body?[n.scrollLeft||document.documentElement.scrollLeft,n.scrollTop||document.documentElement.scrollTop]:[n.scrollLeft,n.scrollTop]}function P2(e,n){return e.addEventListener("scroll",n),function(){e.removeEventListener("scroll",n)}}function Ac(e){if(e){if(Ua(e))return document.querySelector(e)}else return null;if(F1(e))return e();if(e instanceof Element)return e;if("current"in e)return e.current;if("value"in e)return e.value}var $D=(function(e){JD(n,e);function n(){var r=e!==null&&e.apply(this,arguments)||this;return r._startRect=null,r._startPos=[],r._prevTime=0,r._timer=0,r._prevScrollPos=[0,0],r._isWait=!1,r._flag=!1,r._currentOptions=null,r._lock=!1,r._unregister=null,r._onScroll=function(){var o=r._currentOptions;r._lock||!o||r.emit("scrollDrag",{next:function(s){r.checkScroll({container:o.container,inputEvent:s})}})},r}var t=n.prototype;return t.dragStart=function(r,o){var s=Ac(o.container);if(!s){this._flag=!1;return}var l=0,c=0,d=0,f=0;if(s===document.body)d=window.innerWidth,f=window.innerHeight;else{var h=s.getBoundingClientRect();l=h.top,c=h.left,d=h.width,f=h.height}this._flag=!0,this._startPos=[r.clientX,r.clientY],this._startRect={top:l,left:c,width:d,height:f},this._prevScrollPos=this._getScrollPosition([0,0],o),this._currentOptions=o,this._registerScrollEvent(o)},t.drag=function(r,o){if(clearTimeout(this._timer),!!this._flag){var s=r.clientX,l=r.clientY,c=o.threshold,d=c===void 0?0:c,f=this,h=f._startRect,g=f._startPos;this._currentOptions=o;var C=[0,0];return h.top>l-d?(g[1]>h.top||l<g[1])&&(C[1]=-1):h.top+h.height<l+d&&(g[1]<h.top+h.height||l>g[1])&&(C[1]=1),h.left>s-d?(g[0]>h.left||s<g[0])&&(C[0]=-1):h.left+h.width<s+d&&(g[0]<h.left+h.width||s>g[0])&&(C[0]=1),!C[0]&&!C[1]?!1:this._continueDrag(hi(hi({},o),{direction:C,inputEvent:r,isDrag:!0}))}},t.checkScroll=function(r){var o=this;if(this._isWait)return!1;var s=r.prevScrollPos,l=s===void 0?this._prevScrollPos:s,c=r.direction,d=r.throttleTime,f=d===void 0?0:d,h=r.inputEvent,g=r.isDrag,C=this._getScrollPosition(c||[0,0],r),y=C[0]-l[0],b=C[1]-l[1],x=c||[y?Math.abs(y)/y:0,b?Math.abs(b)/b:0];return this._prevScrollPos=C,this._lock=!1,!y&&!b?!1:(this.emit("move",{offsetX:x[0]?y:0,offsetY:x[1]?b:0,inputEvent:h}),f&&g&&(clearTimeout(this._timer),this._timer=window.setTimeout(function(){o._continueDrag(r)},f)),!0)},t.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},t._getScrollPosition=function(r,o){var s=o.container,l=o.getScrollPosition,c=l===void 0?XD:l;return c({container:Ac(s),direction:r})},t._continueDrag=function(r){var o=this,s,l=r.container,c=r.direction,d=r.throttleTime,f=r.useScroll,h=r.isDrag,g=r.inputEvent;if(!(!this._flag||h&&this._isWait)){var C=Ch(),y=Math.max(d+this._prevTime-C,0);if(y>0)return clearTimeout(this._timer),this._timer=window.setTimeout(function(){o._continueDrag(r)},y),!1;this._prevTime=C;var b=this._getScrollPosition(c,r);this._prevScrollPos=b,h&&(this._isWait=!0),f||(this._lock=!0);var x={container:Ac(l),direction:c,inputEvent:g};return(s=r.requestScroll)===null||s===void 0||s.call(r,x),this.emit("scroll",x),this._isWait=!1,f||this.checkScroll(hi(hi({},r),{prevScrollPos:b,direction:c,inputEvent:g}))}},t._registerScrollEvent=function(r){this._unregisterScrollEvent();var o=r.checkScrollEvent;if(o){var s=o===!0?P2:o,l=Ac(r.container);o===!0&&(l===document.body||l===document.documentElement)?this._unregister=P2(window,this._onScroll):this._unregister=s(l,this._onScroll)}},t._unregisterScrollEvent=function(){var r;(r=this._unregister)===null||r===void 0||r.call(this),this._unregister=null},n})(_u),vh=function(e,n){return vh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},vh(e,n)};function eO(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");vh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function tO(e,n){return n={exports:{}},e(n,n.exports),n.exports}var il=tO(function(e,n){function t(d){if(d&&typeof d=="object"){var f=d.which||d.keyCode||d.charCode;f&&(d=f)}if(typeof d=="number")return l[d];var h=String(d),g=r[h.toLowerCase()];if(g)return g;var g=o[h.toLowerCase()];if(g)return g;if(h.length===1)return h.charCodeAt(0)}t.isEventKey=function(f,h){if(f&&typeof f=="object"){var g=f.which||f.keyCode||f.charCode;if(g==null)return!1;if(typeof h=="string"){var C=r[h.toLowerCase()];if(C)return C===g;var C=o[h.toLowerCase()];if(C)return C===g}else if(typeof h=="number")return h===g;return!1}},n=e.exports=t;var r=n.code=n.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=n.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
|
|
279
|
-
* Programatically add the following
|
|
280
|
-
*/for(s=97;s<123;s++)r[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)r[s-48]=s;for(s=1;s<13;s++)r["f"+s]=s+111;for(s=0;s<10;s++)r["numpad "+s]=s+96;var l=n.names=n.title={};for(s in r)l[r[s]]=s;for(var c in o)r[c]=o[c]});il.code;il.codes;il.aliases;var nO=il.names;il.title;var B2={"+":"plus","left command":"meta","right command":"meta"},_2={shift:1,ctrl:2,alt:3,meta:4};function a5(e,n){var t=(nO[e]||n||"").toLowerCase();for(var r in B2)t=t.replace(r,B2[r]);return t.replace(/\s/g,"")}function l5(e,n){n===void 0&&(n=a5(e.keyCode,e.key));var t=rO(e);return t.indexOf(n)===-1&&t.push(n),t.filter(Boolean)}function rO(e){var n=[e.shiftKey&&"shift",e.ctrlKey&&"ctrl",e.altKey&&"alt",e.metaKey&&"meta"];return n.filter(Boolean)}function F2(e){var n=e.slice();return n.sort(function(t,r){var o=_2[t]||5,s=_2[r]||5;return o-s}),n}var W2,oO=(function(e){eO(n,e);function n(r){r===void 0&&(r=window);var o=e.call(this)||this;return o.container=r,o.ctrlKey=!1,o.altKey=!1,o.shiftKey=!1,o.metaKey=!1,o.clear=function(){return o.ctrlKey=!1,o.altKey=!1,o.shiftKey=!1,o.metaKey=!1,o},o.keydownEvent=function(s){o.triggerEvent("keydown",s)},o.keyupEvent=function(s){o.triggerEvent("keyup",s)},o.blur=function(){o.clear(),o.trigger("blur")},wn(r,"blur",o.blur),wn(r,"keydown",o.keydownEvent),wn(r,"keyup",o.keyupEvent),o}var t=n.prototype;return Object.defineProperty(n,"global",{get:function(){return W2||(W2=new n)},enumerable:!1,configurable:!0}),n.setGlobal=function(){return this.global},t.destroy=function(){var r=this.container;this.clear(),this.off(),fn(r,"blur",this.blur),fn(r,"keydown",this.keydownEvent),fn(r,"keyup",this.keyupEvent)},t.keydown=function(r,o){return this.addEvent("keydown",r,o)},t.offKeydown=function(r,o){return this.removeEvent("keydown",r,o)},t.offKeyup=function(r,o){return this.removeEvent("keyup",r,o)},t.keyup=function(r,o){return this.addEvent("keyup",r,o)},t.addEvent=function(r,o,s){return ou(o)?this.on("".concat(r,".").concat(F2(o).join(".")),s):Ua(o)?this.on("".concat(r,".").concat(o),s):this.on(r,o),this},t.removeEvent=function(r,o,s){return ou(o)?this.off("".concat(r,".").concat(F2(o).join(".")),s):Ua(o)?this.off("".concat(r,".").concat(o),s):this.off(r,o),this},t.triggerEvent=function(r,o){this.ctrlKey=o.ctrlKey,this.shiftKey=o.shiftKey,this.altKey=o.altKey,this.metaKey=o.metaKey;var s=a5(o.keyCode,o.key),l=s==="ctrl"||s==="shift"||s==="meta"||s==="alt",c={key:s,isToggle:l,inputEvent:o,keyCode:o.keyCode,ctrlKey:o.ctrlKey,altKey:o.altKey,shiftKey:o.shiftKey,metaKey:o.metaKey};this.trigger(r,c),this.trigger("".concat(r,".").concat(s),c);var d=l5(o,s);d.length>1&&this.trigger("".concat(r,".").concat(d.join(".")),c)},n})(_u);/*! *****************************************************************************
|
|
281
|
-
Copyright (c) Microsoft Corporation.
|
|
282
|
-
|
|
283
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
284
|
-
purpose with or without fee is hereby granted.
|
|
285
|
-
|
|
286
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
287
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
288
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
289
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
290
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
291
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
292
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
293
|
-
***************************************************************************** */function sO(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var r=Array(e),o=0,n=0;n<t;n++)for(var s=arguments[n],l=0,c=s.length;l<c;l++,o++)r[o]=s[l];return r}function er(e){return So(e,Kr)}function iO(e,n){return e.every(function(t,r){return er(t-n[r])===0})}function aO(e,n){return!er(e[0]-n[0])&&!er(e[1]-n[1])}function Tf(e){return e.length<3?0:Math.abs(MD(e.map(function(n,t){var r=e[t+1]||e[0];return n[0]*r[1]-r[0]*n[1]})))/2}function lO(e,n){var t=n.width,r=n.height,o=n.left,s=n.top,l=c5(e),c=l.minX,d=l.minY,f=l.maxX,h=l.maxY,g=t/(f-c),C=r/(h-d);return e.map(function(y){return[o+(y[0]-c)*g,s+(y[1]-d)*C]})}function c5(e){var n=e.map(function(r){return r[0]}),t=e.map(function(r){return r[1]});return{minX:Math.min.apply(Math,n),minY:Math.min.apply(Math,t),maxX:Math.max.apply(Math,n),maxY:Math.max.apply(Math,t)}}function wh(e,n,t){var r=e[0],o=e[1],s=c5(n),l=s.minX,c=s.maxX,d=[[l,o],[c,o]],f=au(d[0],d[1]),h=kh(n),g=[];if(h.forEach(function(b){var x=au(b[0],b[1]),w=b[0];if(iO(f,x))g.push({pos:e,line:b,type:"line"});else{var k=d5(u5(f,x),[d,b]);k.forEach(function(T){b.some(function(D){return aO(D,T)})?g.push({pos:T,line:b,type:"point"}):er(w[1]-o)!==0&&g.push({pos:T,line:b,type:"intersection"})})}}),Ha(g,function(b){return b[0]===r}))return!0;var C=0,y={};return g.forEach(function(b){var x=b.pos,w=b.type,k=b.line;if(!(x[0]>r))if(w==="intersection")++C;else{if(w==="line")return;if(w==="point"){var T=Ha(k,function(L){return L[1]!==o}),D=y[x[0]],N=T[1]>o?1:-1;D?D!==N&&++C:y[x[0]]=N}}}),C%2===1}function au(e,n){var t=e[0],r=e[1],o=n[0],s=n[1],l=o-t,c=s-r;Math.abs(l)<Kr&&(l=0),Math.abs(c)<Kr&&(c=0);var d=0,f=0,h=0;return l?c?(d=-c/l,f=1,h=-d*t-r):(f=1,h=-r):c&&(d=-1,h=t),[d,f,h]}function u5(e,n){var t=e[0],r=e[1],o=e[2],s=n[0],l=n[1],c=n[2],d=t===0&&s===0,f=r===0&&l===0,h=[];if(d&&f)return[];if(d){var g=-o/r,C=-c/l;return g!==C?[]:[[-1/0,g],[1/0,g]]}else if(f){var y=-o/t,b=-c/s;return y!==b?[]:[[y,-1/0],[y,1/0]]}else if(t===0){var x=-o/r,w=-(l*x+c)/s;h=[[w,x]]}else if(s===0){var x=-c/l,w=-(r*x+o)/t;h=[[w,x]]}else if(r===0){var w=-o/t,x=-(s*w+c)/l;h=[[w,x]]}else if(l===0){var w=-c/s,x=-(t*w+o)/r;h=[[w,x]]}else{var w=(r*c-l*o)/(l*t-r*s),x=-(t*w+o)/r;h=[[w,x]]}return h.map(function(k){return[k[0],k[1]]})}function d5(e,n){var t=n.map(function(g){return[0,1].map(function(C){return[Math.min(g[0][C],g[1][C]),Math.max(g[0][C],g[1][C])]})}),r=[];if(e.length===2){var o=e[0],s=o[0],l=o[1];if(er(s-e[1][0])){if(!er(l-e[1][1])){var f=Math.max.apply(Math,t.map(function(g){return g[0][0]})),h=Math.min.apply(Math,t.map(function(g){return g[0][1]}));if(er(f-h)>0)return[];r=[[f,l],[h,l]]}}else{var c=Math.max.apply(Math,t.map(function(g){return g[1][0]})),d=Math.min.apply(Math,t.map(function(g){return g[1][1]}));if(er(c-d)>0)return[];r=[[s,c],[s,d]]}}return r.length||(r=e.filter(function(g){var C=g[0],y=g[1];return t.every(function(b){return 0<=er(C-b[0][0])&&0<=er(b[0][1]-C)&&0<=er(y-b[1][0])&&0<=er(b[1][1]-y)})})),r.map(function(g){return[er(g[0]),er(g[1])]})}function kh(e){return sO(e.slice(1),[e[0]]).map(function(n,t){return[e[t],n]})}function cO(e,n){var t=e.slice(),r=n.slice();R2(t)===-1&&t.reverse(),R2(r)===-1&&r.reverse();var o=kh(t),s=kh(r),l=o.map(function(h){return au(h[0],h[1])}),c=s.map(function(h){return au(h[0],h[1])}),d=[];l.forEach(function(h,g){var C=o[g],y=[];c.forEach(function(b,x){var w=u5(h,b),k=d5(w,[C,s[x]]);y.push.apply(y,k.map(function(T){return{index1:g,index2:x,pos:T,type:"intersection"}}))}),y.sort(function(b,x){return Ah(C[0],b.pos)-Ah(C[0],x.pos)}),d.push.apply(d,y),wh(C[1],r)&&d.push({index1:g,index2:-1,pos:C[1],type:"inside"})}),s.forEach(function(h,g){if(wh(h[1],t)){var C=!1,y=iu(d,function(b){var x=b.index2;return x===g?(C=!0,!1):!!C});y===-1&&(C=!1,y=iu(d,function(b){var x=b.index1,w=b.index2;return x===-1&&w+1===g?(C=!0,!1):!!C})),y===-1?d.push({index1:-1,index2:g,pos:h[1],type:"inside"}):d.splice(y,0,{index1:-1,index2:g,pos:h[1],type:"inside"})}});var f={};return d.filter(function(h){var g=h.pos,C=g[0]+"x"+g[1];return f[C]?!1:(f[C]=!0,!0)})}function z2(e,n){var t=cO(e,n);return t.map(function(r){var o=r.pos;return o})}function uO(e,n,t,r,o,s){for(var l=0;l<o;++l){var c=t+l*o,d=r+l*o;e[c]+=e[d]*s,n[c]+=n[d]*s}}function dO(e,n,t,r,o){for(var s=0;s<o;++s){var l=t+s*o,c=r+s*o,d=e[l],f=n[l];e[l]=e[c],e[c]=d,n[l]=n[c],n[c]=f}}function fO(e,n,t,r,o){for(var s=0;s<r;++s){var l=t+s*r;e[l]/=o,n[l]/=o}}function hO(e,n){for(var t=e.slice(),r=f5(n),o=0;o<n;++o){var s=n*o+o;if(!So(t[s],Kr)){for(var l=o+1;l<n;++l)if(t[n*o+l]){dO(t,r,o,l,n);break}}if(!So(t[s],Kr))return[];fO(t,r,o,n,t[s]);for(var l=0;l<n;++l){var c=l,d=l+o*n,f=t[d];!So(f,Kr)||o===l||uO(t,r,c,o,n,-f)}}return r}function Hs(e,n,t){t===void 0&&(t=Math.sqrt(e.length));var r=[],o=e.length/t,s=n.length/o;if(o){if(!s)return e}else return n;for(var l=0;l<t;++l)for(var c=0;c<s;++c){r[c*t+l]=0;for(var d=0;d<o;++d)r[c*t+l]+=e[d*t+l]*n[c*o+d]}return r}function pO(e,n,t){var r=Hs(e,n,t),o=r[t-1];return r.map(function(s){return s/o})}function mO(e,n){return Hs(e,[1,0,0,0,0,Math.cos(n),Math.sin(n),0,0,-Math.sin(n),Math.cos(n),0,0,0,0,1],4)}function gO(e,n){return Hs(e,[Math.cos(n),0,-Math.sin(n),0,0,1,0,0,Math.sin(n),0,Math.cos(n),0,0,0,0,1],4)}function CO(e,n){return Hs(e,AO(n,4))}function bc(e,n){var t=n[0],r=t===void 0?1:t,o=n[1],s=o===void 0?1:o,l=n[2],c=l===void 0?1:l;return Hs(e,[r,0,0,0,0,s,0,0,0,0,c,0,0,0,0,1],4)}function Lf(e,n){var t=n[0],r=t===void 0?0:t,o=n[1],s=o===void 0?0:o,l=n[2],c=l===void 0?0:l;return Hs(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,s,c,1],4)}function Sh(e,n){return Hs(e,n,4)}function AO(e,n){var t=Math.cos(e),r=Math.sin(e),o=f5(n);return o[0]=t,o[1]=r,o[n]=-r,o[n+1]=t,o}function f5(e){for(var n=e*e,t=[],r=0;r<n;++r)t[r]=r%(e+1)?0:1;return t}var ka=function(){return ka=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},ka.apply(this,arguments)};function K1(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function bO(e,n){return n===void 0&&(n=0),xO(vO(e,n))}function Nf(e,n){var t=pO(e,[n[0],n[1]||0,n[2]||0,1],4),r=t[3]||1;return[t[0]/r,t[1]/r,t[2]/r]}function yO(e,n){n===void 0&&(n=document.body);for(var t=e,r=K1();t;){var o=getComputedStyle(t).transform;if(r=Sh(bO(o),r),t===n)break;t=t.parentElement}return r=hO(r,4),r[12]=0,r[13]=0,r[14]=0,r}function xO(e){var n=K1();return e.forEach(function(t){var r=t.matrixFunction,o=t.functionValue;r&&(n=r(n,o))}),n}function vO(e,n){n===void 0&&(n=0);var t=ou(e)?e:kD(e);return t.map(function(r){var o=SD(r),s=o.prefix,l=o.value,c=null,d=s,f="";if(s==="translate"||s==="translateX"||s==="translate3d"){var h=ds(n)?ka(ka({},n),{"o%":n["%"]}):{"%":n,"o%":n},g=da(l).map(function(j,K){return K===0&&"x%"in h?h["%"]=n["x%"]:K===1&&"y%"in h?h["%"]=n["y%"]:h["%"]=n["o%"],L2(j,h)}),C=g[0],y=g[1],b=y===void 0?0:y,x=g[2],w=x===void 0?0:x;c=Lf,f=[C,b,w]}else if(s==="translateY"){var k=ds(n)?ka({"%":n["y%"]},n):{"%":n},b=L2(l,k);c=Lf,f=[0,b,0]}else if(s==="translateZ"){var w=parseFloat(l);c=Lf,f=[0,0,w]}else if(s==="scale"||s==="scale3d"){var T=da(l).map(function(j){return parseFloat(j)}),D=T[0],N=T[1],L=N===void 0?D:N,E=T[2],M=E===void 0?1:E;c=bc,f=[D,L,M]}else if(s==="scaleX"){var D=parseFloat(l);c=bc,f=[D,1,1]}else if(s==="scaleY"){var L=parseFloat(l);c=bc,f=[1,L,1]}else if(s==="scaleZ"){var M=parseFloat(l);c=bc,f=[1,1,M]}else if(s==="rotate"||s==="rotateZ"||s==="rotateX"||s==="rotateY"){var O=su(l),I=O.unit,F=O.value,_=I==="rad"?F:F*Math.PI/180;s==="rotate"||s==="rotateZ"?(d="rotateZ",c=CO):s==="rotateX"?c=mO:s==="rotateY"&&(c=gO),f=_}else if(s==="matrix3d")c=Sh,f=da(l).map(function(j){return parseFloat(j)});else if(s==="matrix"){var R=da(l).map(function(j){return parseFloat(j)});c=Sh,f=[R[0],R[1],0,0,R[2],R[3],0,0,0,0,1,0,R[4],R[5],0,1]}else d="";return{name:s,functionName:d,value:l,matrixFunction:c,functionValue:f}})}function wO(e){for(var n=5381,t=e.length;t;)n=n*33^e.charCodeAt(--t);return n>>>0}var kO=wO;function SO(e){return kO(e).toString(36)}function EO(e){if(e&&e.getRootNode){var n=e.getRootNode();if(n.nodeType===11)return n}}function MO(e,n,t){return t.original?n:n.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(r,o){var s=o.trim();return(s?da(s):[""]).map(function(l){var c=l.trim();return c.indexOf("@")===0?c:c.indexOf(":global")>-1?c.replace(/\:global/g,""):c.indexOf(":host")>-1?"".concat(c.replace(/\:host/g,".".concat(e))):c?".".concat(e," ").concat(c):".".concat(e)}).join(", ")+" {"})}function TO(e,n,t,r,o){var s=wo(r),l=s.createElement("style");return l.setAttribute("type","text/css"),l.setAttribute("data-styled-id",e),l.setAttribute("data-styled-count","1"),t.nonce&&l.setAttribute("nonce",t.nonce),l.innerHTML=MO(e,n,t),(o||s.head||s.body).appendChild(l),l}function LO(e){var n="rCS"+SO(e);return{className:n,inject:function(t,r){r===void 0&&(r={});var o=EO(t),s=(o||t.ownerDocument||document).querySelector('style[data-styled-id="'.concat(n,'"]'));if(!s)s=TO(n,e,r,t,o);else{var l=parseFloat(s.getAttribute("data-styled-count"))||0;s.setAttribute("data-styled-count","".concat(l+1))}return{destroy:function(){var c,d=parseFloat(s.getAttribute("data-styled-count"))||0;d<=1?(s.remove?s.remove():(c=s.parentNode)===null||c===void 0||c.removeChild(s),s=null):s.setAttribute("data-styled-count","".concat(d-1))}}}}}var Eh=function(e,n){return Eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Eh(e,n)};function h5(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Eh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var vn=function(){return vn=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},vn.apply(this,arguments)};function NO(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t}function jO(e,n,t,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,t):r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,t,r);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(s=(o<3?l(s):o>3?l(n,t,s):l(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function Sa(e,n,t){for(var r=0,o=n.length,s;r<o;r++)(s||!(r in n))&&(s||(s=Array.prototype.slice.call(n,0,r)),s[r]=n[r]);return e.concat(s||Array.prototype.slice.call(n))}function RO(e){if("touches"in e){var n=e.touches[0]||e.changedTouches[0];return{clientX:n.clientX,clientY:n.clientY}}else return{clientX:e.clientX,clientY:e.clientY}}function IO(e){if(typeof Map>"u")return e.filter(function(t,r){return e.indexOf(t)===r});var n=new Map;return e.filter(function(t){return n.has(t)?!1:(n.set(t,!0),!0)})}function DO(e,n,t){var r=wo(e);return r.elementFromPoint&&r.elementFromPoint(n,t)||null}function p5(e,n,t){var r=e.tag,o=e.children,s=e.attributes,l=e.className,c=e.style,d=n||wo(t).createElement(r);for(var f in s)d.setAttribute(f,s[f]);var h=d.children;if(o.forEach(function(C,y){p5(C,h[y],d)}),l&&l.split(/\s+/g).forEach(function(C){C&&!ND(d,C)&&jD(d,C)}),c){var g=d.style;for(var f in c)g[f]=c[f]}return!n&&t&&t.appendChild(d),d}function OO(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=n||{},s=o.className,l=s===void 0?"":s,c=o.style,d=c===void 0?{}:c,f=NO(o,["className","style"]);return{tag:e,className:l,style:d,attributes:f,children:t}}function jf(e,n,t){e!==n&&t(e,n)}function K2(e,n,t){var r;t===void 0&&(t=e.data.boundArea);var o=e.distX,s=o===void 0?0:o,l=e.distY,c=l===void 0?0:l,d=e.data,f=d.startX,h=d.startY;if(n>0){var g=Math.sqrt((s*s+c*c)/(1+n*n)),C=n*g;s=(s>=0?1:-1)*C,c=(c>=0?1:-1)*g}var y=Math.abs(s),b=Math.abs(c),x=s<0?f-t.left:t.right-f,w=c<0?h-t.top:t.bottom-h;r=ED([y,b],[0,0],[x,w],!!n),y=r[0],b=r[1],s=(s>=0?1:-1)*y,c=(c>=0?1:-1)*b;var k=Math.min(0,s),T=Math.min(0,c),D=f+k,N=h+T;return{left:D,top:N,right:D+y,bottom:N+b,width:y,height:b}}function yc(e){var n=e.getBoundingClientRect(),t=n.left,r=n.top,o=n.width,s=n.height;return{pos1:[t,r],pos2:[t+o,r],pos3:[t,r+s],pos4:[t+o,r+s]}}function U2(e,n,t){var r=fa(e,n),o=r.list,s=r.prevList,l=r.added,c=r.removed,d=r.maintained;return Sa(Sa(Sa([],l.map(function(f){return o[f]}),!0),c.map(function(f){return s[f]}),!0),t?d.map(function(f){var h=f[1];return o[h]}):[])}function H2(e){for(var n=0,t=e.length,r=1;r<t;++r)n=Math.max(Ah(e[r],e[r-1]),n);return n}var m5=LO(`
|
|
294
|
-
:host {
|
|
295
|
-
position: fixed;
|
|
296
|
-
display: none;
|
|
297
|
-
border: 1px solid #4af;
|
|
298
|
-
background: rgba(68, 170, 255, 0.5);
|
|
299
|
-
pointer-events: none;
|
|
300
|
-
will-change: transform;
|
|
301
|
-
z-index: 100;
|
|
302
|
-
}
|
|
303
|
-
`),Mh="selecto-selection ".concat(m5.className),U1=["className","boundContainer","selectableTargets","selectByClick","selectFromInside","continueSelect","continueSelectWithoutDeselect","toggleContinueSelect","toggleContinueSelectWithoutDeselect","keyContainer","hitRate","scrollOptions","checkInput","preventDefault","ratio","getElementRect","preventDragFromInside","rootContainer","dragCondition","clickBySelectEnd","checkOverflow","innerScrollOptions"],PO=Sa(["dragContainer","cspNonce","preventClickEventOnDrag","preventClickEventOnDragStart","preventRightClick"],U1),g5=["dragStart","drag","dragEnd","selectStart","select","selectEnd","keydown","keyup","scroll","innerScroll"],BO=["clickTarget","getSelectableElements","setSelectedTargets","getElementPoints","getSelectedTargets","findSelectableTargets","triggerDragStart","checkScroll","selectTargetsByPoints","setSelectedTargetsByPoints"],_O=(function(e){h5(n,e);function n(r){r===void 0&&(r={});var o=e.call(this)||this;o.selectedTargets=[],o.dragScroll=new $D,o._onDragStart=function(c,d){var f=c.data,h=c.clientX,g=c.clientY,C=c.inputEvent,y=o.options,b=y.selectFromInside,x=y.selectByClick,w=y.rootContainer,k=y.boundContainer,T=y.preventDragFromInside,D=T===void 0?!0:T,N=y.clickBySelectEnd,L=y.dragCondition;if(L&&!L(c)){c.stop();return}f.data={};var E=Ns(o.container);f.innerWidth=E.innerWidth,f.innerHeight=E.innerHeight,o.findSelectableTargets(f),f.startSelectedTargets=o.selectedTargets,f.scaleMatrix=K1(),f.containerX=0,f.containerY=0;var M=o.container,O={left:-1/0,top:-1/0,right:1/0,bottom:1/0};if(w){var I=o.container.getBoundingClientRect();f.containerX=I.left,f.containerY=I.top,f.scaleMatrix=yO(o.container,w)}if(k){var F=ds(k)&&"element"in k?vn({left:!0,top:!0,bottom:!0,right:!0},k):{element:k,left:!0,top:!0,bottom:!0,right:!0},_=F.element,R=void 0;if(_){Ua(_)?R=wo(M).querySelector(_):_===!0?R=o.container:R=_;var j=R.getBoundingClientRect();F.left&&(O.left=j.left),F.top&&(O.top=j.top),F.right&&(O.right=j.right),F.bottom&&(O.bottom=j.bottom)}}f.boundArea=O;var K={left:h,top:g,right:h,bottom:g,width:0,height:0},W=[],B=x&&!N,H=!1;if(!b||B){var Q=o._findElement(d||C.target,f.selectableTargets);H=!!Q,B&&(W=Q?[Q]:[])}var ee=!b&&H;if(ee&&!x)return c.stop(),!1;var ae=C.type,pe=ae==="mousedown"||ae==="touchstart",Le=!c.isClick&&pe?o.emit("dragStart",vn(vn({},c),{data:f.data})):!0;if(!Le)return c.stop(),!1;if(o.continueSelect?(W=U2(o.selectedTargets,W,o.continueSelectWithoutDeselect),f.startPassedTargets=o.selectedTargets):f.startPassedTargets=[],o._select(W,K,c,!0,ee&&x&&!N&&D),f.startX=h,f.startY=g,f.selectFlag=!1,f.preventDragFromInside=!1,C.target){var Se=Nf(f.scaleMatrix,[h-f.containerX,g-f.containerY]);o.target.style.cssText+="position: ".concat(w?"absolute":"fixed",";")+"left:0px;top:0px;"+"transform: translate(".concat(Se[0],"px, ").concat(Se[1],"px)")}if(ee&&x&&!N)C.preventDefault(),D&&(o._selectEnd(f.startSelectedTargets,f.startPassedTargets,K,c,!0),f.preventDragFromInside=!0);else{f.selectFlag=!0;var we=o.options,de=we.scrollOptions,ne=we.innerScrollOptions,Z=!1;if(ne){for(var ce=c.inputEvent,le=ce.target,se=null,Y=le;Y&&Y!==wo(M).body;){var oe=getComputedStyle(Y).overflow!=="visible";if(oe){se=Y;break}Y=Y.parentElement}se&&(f.innerScrollOptions=vn({container:se,checkScrollEvent:!0},ne===!0?{}:ne),o.dragScroll.dragStart(c,f.innerScrollOptions),Z=!0)}!Z&&de&&de.container&&o.dragScroll.dragStart(c,de),ee&&x&&N&&(f.selectFlag=!1,c.preventDrag())}return!0},o._onDrag=function(c){if(c.data.selectFlag){var d=o.scrollOptions,f=c.data.innerScrollOptions,h=f||(d==null?void 0:d.container);if(h&&!c.isScroll&&o.dragScroll.drag(c,f||d))return}o._checkSelected(c)},o._onDragEnd=function(c){var d=c.data,f=c.inputEvent,h=K2(c,o.options.ratio),g=d.selectFlag,C=o.container;if(f&&o.emit("dragEnd",vn(vn({isDouble:!!c.isDouble,isClick:!!c.isClick,isDrag:!1,isSelect:g},c),{data:d.data,rect:h})),o.target.style.cssText+="display: none;",g)d.selectFlag=!1,o.dragScroll.dragEnd();else if(o.selectByClick&&o.clickBySelectEnd){var y=o._findElement((f==null?void 0:f.target)||DO(C,c.clientX,c.clientY),d.selectableTargets);o._select(y?[y]:[],h,c)}d.preventDragFromInside||o._selectEnd(d.startSelectedTargets,d.startPassedTargets,h,c)},o._onKeyDown=function(c){var d=o.options,f=!1;if(!o._keydownContinueSelect){var h=o._sameCombiKey(c,d.toggleContinueSelect);o._keydownContinueSelect=h,f||(f=h)}if(!o._keydownContinueSelectWithoutDeselection){var h=o._sameCombiKey(c,d.toggleContinueSelectWithoutDeselect);o._keydownContinueSelectWithoutDeselection=h,f||(f=h)}f&&o.emit("keydown",{keydownContinueSelect:o._keydownContinueSelect,keydownContinueSelectWithoutDeselection:o._keydownContinueSelectWithoutDeselection})},o._onKeyUp=function(c){var d=o.options,f=!1;if(o._keydownContinueSelect){var h=o._sameCombiKey(c,d.toggleContinueSelect,!0);o._keydownContinueSelect=!h,f||(f=h)}if(o._keydownContinueSelectWithoutDeselection){var h=o._sameCombiKey(c,d.toggleContinueSelectWithoutDeselect,!0);o._keydownContinueSelectWithoutDeselection=!h,f||(f=h)}f&&o.emit("keyup",{keydownContinueSelect:o._keydownContinueSelect,keydownContinueSelectWithoutDeselection:o._keydownContinueSelectWithoutDeselection})},o._onBlur=function(){(o._keydownContinueSelect||o._keydownContinueSelectWithoutDeselection)&&(o._keydownContinueSelect=!1,o._keydownContinueSelectWithoutDeselection=!1,o.emit("keyup",{keydownContinueSelect:o._keydownContinueSelect,keydownContinueSelectWithoutDeselection:o._keydownContinueSelectWithoutDeselection}))},o._onDocumentSelectStart=function(c){var d=wo(o.container);if(o.gesto.isFlag()){var f=o.dragContainer;f===Ns(o.container)&&(f=d.documentElement);var h=I2(f)?[f]:[].slice.call(f),g=c.target;h.some(function(C){if(C===g||C.contains(g))return c.preventDefault(),!0})}},o.target=r.portalContainer;var s=r.container;o.options=vn({className:"",portalContainer:null,container:null,dragContainer:null,selectableTargets:[],selectByClick:!0,selectFromInside:!0,clickBySelectEnd:!1,hitRate:100,continueSelect:!1,continueSelectWithoutDeselect:!1,toggleContinueSelect:null,toggleContinueSelectWithoutDeselect:null,keyContainer:null,scrollOptions:null,checkInput:!1,preventDefault:!1,boundContainer:!1,preventDragFromInside:!0,dragCondition:null,rootContainer:null,checkOverflow:!1,innerScrollOptions:!1,getElementRect:yc,cspNonce:"",ratio:0},r);var l=o.options.portalContainer;return l&&(s=l.parentElement),o.container=s||document.body,o.initElement(),o.initDragScroll(),o.setKeyController(),o}var t=n.prototype;return t.setSelectedTargets=function(r){var o=this.selectedTargets,s=fa(o,r),l=s.added,c=s.removed,d=s.prevList,f=s.list;return this.selectedTargets=r,{added:l.map(function(h){return f[h]}),removed:c.map(function(h){return d[h]}),beforeSelected:o,selected:r}},t.setSelectedTargetsByPoints=function(r,o){var s=Math.min(r[0],o[0]),l=Math.min(r[1],o[1]),c=Math.max(r[0],o[0]),d=Math.max(r[1],o[1]),f={left:s,top:l,right:c,bottom:d,width:c-s,height:d-l},h={ignoreClick:!0};this.findSelectableTargets(h);var g=this.hitTest(f,h,!0,null),C=this.setSelectedTargets(g);return vn(vn({},C),{rect:f})},t.selectTargetsByPoints=function(r,o){var s=new MouseEvent("mousedown",{clientX:r[0],clientY:r[1],cancelable:!0,bubbles:!0}),l=new MouseEvent("mousemove",{clientX:o[0],clientY:o[1],cancelable:!0,bubbles:!0}),c=new MouseEvent("mousemove",{clientX:o[0],clientY:o[1],cancelable:!0,bubbles:!0}),d=this.gesto,f=d.onDragStart(s);f!==!1&&(d.onDrag(l),d.onDragEnd(c))},t.getSelectedTargets=function(){return this.selectedTargets},t.triggerDragStart=function(r){return this.gesto.triggerDragStart(r),this},t.destroy=function(){var r;this.off(),this.keycon&&this.keycon.destroy(),this.gesto.unset(),this.injectResult.destroy(),this.dragScroll.dragEnd(),fn(document,"selectstart",this._onDocumentSelectStart),this.options.portalContainer||(r=this.target.parentElement)===null||r===void 0||r.removeChild(this.target),this.keycon=null,this.gesto=null,this.injectResult=null,this.target=null,this.container=null,this.options=null},t.getElementPoints=function(r){var o=this.getElementRect||yc,s=o(r),l=[s.pos1,s.pos2,s.pos4,s.pos3];if(o!==yc){var c=r.getBoundingClientRect();return lO(l,c)}return l},t.getSelectableElements=function(){var r=this.container,o=[];return this.options.selectableTargets.forEach(function(s){if(F1(s)){var l=s();l&&o.push.apply(o,[].slice.call(l))}else if(I2(s))o.push(s);else if(ds(s))o.push(s.value||s.current);else{var c=[].slice.call(wo(r).querySelectorAll(s));o.push.apply(o,c)}}),o},t.checkScroll=function(){if(this.gesto.isFlag()){var r=this.scrollOptions,o=this.gesto.getEventData().innerScrollOptions,s=o||(r==null?void 0:r.container);s&&this.dragScroll.checkScroll(vn({inputEvent:this.gesto.getCurrentEvent()},o||r))}},t.findSelectableTargets=function(r){var o=this;r===void 0&&(r=this.gesto.getEventData());var s=this.getSelectableElements(),l=s.map(function(g){return o.getElementPoints(g)});r.selectableTargets=s,r.selectablePoints=l,r.selectableParentMap=null;var c=this.options,d=c.checkOverflow||c.innerScrollOptions,f=wo(this.container);if(d){var h=new Map;r.selectableInnerScrollParentMap=h,r.selectableInnerScrollPathsList=s.map(function(g,C){for(var y=g.parentElement,b=[],x=[],w=function(){var k=h.get(y);if(!k){var T=getComputedStyle(y).overflow!=="visible";if(T){var D=yc(y);k={parentElement:y,indexes:[],points:[D.pos1,D.pos2,D.pos4,D.pos3],paths:Sa([],x)},b.push(y),b.forEach(function(N){h.set(N,k)}),b=[]}}k?(y=k.parentElement,h.get(y).indexes.push(C),x.push(y)):b.push(y),y=y.parentElement};y&&y!==f.body;)w();return x})}return c.checkOverflow||(r.selectableInners=s.map(function(){return!0})),this._refreshGroups(r),s},t.clickTarget=function(r,o){var s=RO(r),l=s.clientX,c=s.clientY,d={data:{selectFlag:!1},clientX:l,clientY:c,inputEvent:r,isClick:!0,isTrusted:!1,stop:function(){return!1}};return this._onDragStart(d,o)&&this._onDragEnd(d),this},t.setKeyController=function(){var r=this.options,o=r.keyContainer,s=r.toggleContinueSelect,l=r.toggleContinueSelectWithoutDeselect;this.keycon&&(this.keycon.destroy(),this.keycon=null),(s||l)&&(this.keycon=new oO(o||Ns(this.container)),this.keycon.keydown(this._onKeyDown).keyup(this._onKeyUp).on("blur",this._onBlur))},t.setClassName=function(r){this.options.className=r,this.target.setAttribute("class","".concat(Mh," ").concat(r||""))},t.setKeyEvent=function(){var r=this.options,o=r.toggleContinueSelect,s=r.toggleContinueSelectWithoutDeselect;!o&&!s||this.keycon||this.setKeyController()},t.setKeyContainer=function(r){var o=this,s=this.options;jf(s.keyContainer,r,function(){s.keyContainer=r,o.setKeyController()})},t.getContinueSelect=function(){var r=this.options,o=r.continueSelect,s=r.toggleContinueSelect;return!s||!this._keydownContinueSelect?o:!o},t.getContinueSelectWithoutDeselect=function(){var r=this.options,o=r.continueSelectWithoutDeselect,s=r.toggleContinueSelectWithoutDeselect;return!s||!this._keydownContinueSelectWithoutDeselection?o:!o},t.setToggleContinueSelect=function(r){var o=this,s=this.options;jf(s.toggleContinueSelect,r,function(){s.toggleContinueSelect=r,o.setKeyEvent()})},t.setToggleContinueSelectWithoutDeselect=function(r){var o=this,s=this.options;jf(s.toggleContinueSelectWithoutDeselect,r,function(){s.toggleContinueSelectWithoutDeselect=r,o.setKeyEvent()})},t.setPreventDefault=function(r){this.gesto.options.preventDefault=r},t.setCheckInput=function(r){this.gesto.options.checkInput=r},t.initElement=function(){var r=this.options,o=r.dragContainer,s=r.checkInput,l=r.preventDefault,c=r.preventClickEventOnDragStart,d=r.preventClickEventOnDrag,f=r.preventClickEventByCondition,h=r.preventRightClick,g=h===void 0?!0:h,C=r.className,y=this.container;this.target=p5(OO("div",{className:"".concat(Mh," ").concat(C||"")}),this.target,y);var b=this.target;this.dragContainer=typeof o=="string"?[].slice.call(wo(y).querySelectorAll(o)):o||this.target.parentNode,this.gesto=new FD(this.dragContainer,{checkWindowBlur:!0,container:Ns(y),checkInput:s,preventDefault:l,preventClickEventOnDragStart:c,preventClickEventOnDrag:d,preventClickEventByCondition:f,preventRightClick:g}).on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd}),wn(document,"selectstart",this._onDocumentSelectStart),this.injectResult=m5.inject(b,{nonce:this.options.cspNonce})},t.hitTest=function(r,o,s,l){var c=this.options,d=c.hitRate,f=c.selectByClick,h=r.left,g=r.top,C=r.right,y=r.bottom,b=o.innerGroups,x=o.innerWidth,w=o.innerHeight,k=l==null?void 0:l.clientX,T=l==null?void 0:l.clientY,D=o.ignoreClick,N=[[h,g],[C,g],[C,y],[h,y]],L=function(Q,ee){var ae=su(typeof d=="function"?"".concat(d(ee)):"".concat(d)),pe=D?!1:wh([k,T],Q);if(!s&&f&&pe)return!0;var Le=z2(N,Q);if(!Le.length)return!1;var Se=Tf(Le),we=0;if(Se===0&&Tf(Q)===0?(we=H2(Q),Se=H2(Le)):we=Tf(Q),ae.unit==="px")return Se>=ae.value;var de=s5(Math.round(Se/we*100),0,100);return de>=Math.min(100,ae.value)},E=o.selectableTargets,M=o.selectablePoints,O=o.selectableInners;if(!b)return E.filter(function(Q,ee){return O[ee]?L(M[ee],E[ee]):!1});for(var I=[],F=Math.floor(h/x),_=Math.floor(C/x),R=Math.floor(g/w),j=Math.floor(y/w),K=F;K<=_;++K){var W=b[K];if(W)for(var B=R;B<=j;++B){var H=W[B];H&&H.forEach(function(Q){var ee=M[Q],ae=O[Q],pe=E[Q];ae&&L(ee,pe)&&I.push(pe)})}}return IO(I)},t.initDragScroll=function(){var r=this;this.dragScroll.on("scrollDrag",function(o){var s=o.next;s(r.gesto.getCurrentEvent())}).on("scroll",function(o){var s=o.container,l=o.direction,c=r.gesto.getEventData().innerScrollOptions;c?r.emit("innerScroll",{container:s,direction:l}):r.emit("scroll",{container:s,direction:l})}).on("move",function(o){var s=o.offsetX,l=o.offsetY,c=o.inputEvent,d=r.gesto;if(!(!d||!d.isFlag())){var f=r.gesto.getEventData(),h=f.boundArea;f.startX-=s,f.startY-=l;var g=r.gesto.getEventData().innerScrollOptions,C=g==null?void 0:g.container,y=!1;if(C){var b=f.selectableInnerScrollParentMap,x=b.get(C);x&&(x.paths.forEach(function(w){var k=b.get(w);k.points.forEach(function(T){T[0]-=s,T[1]-=l})}),x.indexes.forEach(function(w){f.selectablePoints[w].forEach(function(k){k[0]-=s,k[1]-=l})}),y=!0)}y||f.selectablePoints.forEach(function(w){w.forEach(function(k){k[0]-=s,k[1]-=l})}),r._refreshGroups(f),h.left-=s,h.right-=s,h.top-=l,h.bottom-=l,r.gesto.scrollBy(s,l,c.inputEvent),r._checkSelected(r.gesto.getCurrentEvent())}})},t._select=function(r,o,s,l,c){c===void 0&&(c=!1);var d=s.inputEvent,f=s.data,h=this.setSelectedTargets(r),g=fa(f.startSelectedTargets,r),C=g.added,y=g.removed,b=g.prevList,x=g.list,w={startSelected:b,startAdded:C.map(function(k){return x[k]}),startRemoved:y.map(function(k){return b[k]})};l&&this.emit("selectStart",vn(vn(vn({},h),w),{rect:o,inputEvent:d,data:f.data,isTrusted:s.isTrusted,isDragStartEnd:c})),(h.added.length||h.removed.length)&&this.emit("select",vn(vn(vn({},h),w),{rect:o,inputEvent:d,data:f.data,isTrusted:s.isTrusted,isDragStartEnd:c}))},t._selectEnd=function(r,o,s,l,c){c===void 0&&(c=!1);var d=l.inputEvent,f=l.isDouble,h=l.data,g=d&&d.type,C=g==="mousedown"||g==="touchstart",y=fa(r,this.selectedTargets),b=y.added,x=y.removed,w=y.prevList,k=y.list,T=fa(o,this.selectedTargets),D=T.added,N=T.removed,L=T.prevList,E=T.list;this.emit("selectEnd",{startSelected:r,beforeSelected:o,selected:this.selectedTargets,added:b.map(function(M){return k[M]}),removed:x.map(function(M){return w[M]}),afterAdded:D.map(function(M){return E[M]}),afterRemoved:N.map(function(M){return L[M]}),isDragStart:C&&c,isDragStartEnd:C&&c,isClick:!!l.isClick,isDouble:!!f,rect:s,inputEvent:d,data:h.data,isTrusted:l.isTrusted})},t._checkSelected=function(r,o){o===void 0&&(o=K2(r,this.options.ratio));var s=r.data,l=o.top,c=o.left,d=o.width,f=o.height,h=s.selectFlag,g=s.containerX,C=s.containerY,y=s.scaleMatrix,b=Nf(y,[c-g,l-C]),x=Nf(y,[d,f]),w=[];if(h){this.target.style.cssText+="display: block;left:0px;top:0px;"+"transform: translate(".concat(b[0],"px, ").concat(b[1],"px);")+"width:".concat(x[0],"px;height:").concat(x[1],"px;");var k=this.hitTest(o,s,!0,r);w=U2(s.startPassedTargets,k,this.continueSelect&&this.continueSelectWithoutDeselect)}var T=this.emit("drag",vn(vn({},r),{data:s.data,isSelect:h,rect:o}));if(T===!1){this.target.style.cssText+="display: none;",r.stop();return}h&&this._select(w,o,r)},t._sameCombiKey=function(r,o,s){if(!o)return!1;var l=l5(r.inputEvent,r.key),c=[].concat(o),d=ou(c[0])?c:[c];if(s){var f=r.key;return d.some(function(h){return h.some(function(g){return g===f})})}return d.some(function(h){return h.every(function(g){return l.indexOf(g)>-1})})},t._findElement=function(r,o){for(var s=r;s&&!(o.indexOf(s)>-1);)s=s.parentElement;return s},t._refreshGroups=function(r){var o,s=r.innerWidth,l=r.innerHeight,c=r.selectablePoints;if(this.options.checkOverflow){var d=(o=this.gesto.getEventData().innerScrollOptions)===null||o===void 0?void 0:o.container,f=r.selectableInnerScrollParentMap,h=r.selectableInnerScrollPathsList;r.selectableInners=h.map(function(y,b){var x=!1;return y.every(function(w){if(x)return!0;if(w===d)return x=!0,!0;var k=f.get(w);if(k){var T=c[b],D=k.points,N=z2(T,D);if(!N.length)return!1}return!0})})}if(!s||!l)r.innerGroups=null;else{var g=r.selectablePoints,C={};g.forEach(function(y,b){var x=1/0,w=-1/0,k=1/0,T=-1/0;y.forEach(function(L){var E=Math.floor(L[0]/s),M=Math.floor(L[1]/l);x=Math.min(E,x),w=Math.max(E,w),k=Math.min(M,k),T=Math.max(M,T)});for(var D=x;D<=w;++D)for(var N=k;N<=T;++N)C[D]=C[D]||{},C[D][N]=C[D][N]||[],C[D][N].push(b)}),r.innerGroups=C}},n=jO([zD(U1,function(r,o){var s={enumerable:!0,configurable:!0,get:function(){return this.options[o]}},l=gh("get ".concat(o));r[l]?s.get=function(){return this[l]()}:s.get=function(){return this.options[o]};var c=gh("set ".concat(o));r[c]?s.set=function(d){this[c](d)}:s.set=function(d){this.options[o]=d},Object.defineProperty(r,o,s)})],n),n})(_u),FO=(function(e){h5(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n})(_O),Th=function(e,n){return Th=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Th(e,n)};function WO(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Th(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var lu=function(){return lu=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},lu.apply(this,arguments)};function zO(e,n,t,r){var o=arguments.length,s=o<3?n:r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,t,r);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(s=(o<3?l(s):o>3?l(n,t,s):l(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}var Y2=g5.map(function(e){return gh("on ".concat(e))}),KO=(function(e){WO(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}var t=n.prototype;return t.render=function(){return m.createElement("div",{className:Mh,ref:WD(this,"selectionElement")})},t.componentDidMount=function(){var r=this,o=this.props,s={};PO.forEach(function(l){l in o&&(s[l]=o[l])}),this.selecto=new FO(lu(lu({},s),{portalContainer:this.selectionElement})),g5.forEach(function(l,c){r.selecto.on(l,function(d){var f=r.props,h=f[Y2[c]]&&f[Y2[c]](d);h===!1&&d.stop()})})},t.componentDidUpdate=function(r){var o=this.props,s=this.selecto;U1.forEach(function(l){r[l]!==o[l]&&(s[l]=o[l])})},t.componentWillUnmount=function(){this.selecto.destroy()},zO([KD(BO)],n.prototype,"selecto",void 0),n})(m.PureComponent);const UO=({editor:e})=>{const{disable:n}=m.useContext(ut),t=m.useRef(null),[r,o]=m.useState({depth:0,targets:Jf});return m.useEffect(()=>{const s=()=>{var l;return(l=t.current)==null?void 0:l.checkScroll()};return window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[e]),m.useEffect(()=>{let s=null;const l=()=>{s=be.mergeRegister(e.registerCommand(p.KEY_ESCAPE_COMMAND,()=>{var C;const f=((C=t.current)==null?void 0:C.getSelectedTargets())||[],{hasSelectedBlock:h,selectedAllDocument:g}=Jo();if(h)f.forEach(y=>ps(y));else if(g){const y=document.querySelector("div.ContentEditable__root");y==null||y.classList.remove("selected-all-document")}return!1},p.COMMAND_PRIORITY_NORMAL),e.registerCommand(p.KEY_DOWN_COMMAND,f=>{const{hasSelectedBlock:h,selectedAllDocument:g}=Jo();if(q7(e,f,t.current))return!0;if((f.metaKey||f.ctrlKey)&&(f.code==="KeyX"||f.code==="KeyC")&&g){f.preventDefault();const x=p.$getRoot(),w=p.$createNodeSelection(),k=N=>{w.add(N.getKey()),p.$isElementNode(N)&&N.getChildren().forEach(k)};x.getChildren().forEach(k);const T=Ma.$getClipboardDataFromSelection(w),D=f.code==="KeyX";if(D){const N=document.querySelector("div.ContentEditable__root");N==null||N.classList.remove("selected-all-document")}return setTimeout(()=>{Ma.copyToClipboard(e,null,T).then(()=>{D&&(e.update(()=>{const N=p.$getRoot();N.getChildren().forEach(L=>L.remove()),N.getChildrenSize()===0&&N.append(p.$createParagraphNode())},{tag:"historic"}),e.dispatchCommand(es,!0))})},0),!0}const y=f.ctrlKey||f.metaKey||f.altKey;return y?!1:f.key.length===1&&!y&&(h||g)?(f.preventDefault(),!0):!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(p.CUT_COMMAND,()=>{const{selectedAllDocument:f}=Jo();if(f){const h=document.querySelector("div.ContentEditable__root");h==null||h.classList.remove("selected-all-document")}return!1},p.COMMAND_PRIORITY_NORMAL))},c=e.registerUpdateListener(()=>{const{hasSelectedBlock:f,selectedAllDocument:h}=Jo(),g=f||h;g&&!s?l():!g&&s&&(s(),s=null)}),d=f=>{const h=f.target;if(h.closest(".video-container"))return;const g=t.current;if(!g)return;const C=h.closest(".resizable-container__inner")||h.closest("iframe");C instanceof HTMLElement&&(C.classList.contains("selected-block")||(C.classList.add("selected-block"),g.setSelectedTargets([C]),setTimeout(()=>{var y,b;(b=(y=g.props).onSelectEnd)==null||b.call(y,e)},100)))};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d),s&&s(),c()}},[e]),n?null:i.jsx(KO,{ref:t,className:"editor-selecto",dragContainer:".editor",selectableTargets:r.targets,selectByClick:!1,selectFromInside:!1,checkInput:!0,toggleContinueSelect:"shift",toggleContinueSelectWithoutDeselect:[["ctrl"],["meta"]],ratio:0,hitRate:0,onDragStart:s=>{const l=s.inputEvent.target;if(!l.closest(".editor")&&!l.closest(".editor-scroller")){s.stop();return}if(document.body.classList.contains("table-drag-active")||l.closest(".dsd__theme__tableAddRows")||l.closest(".dsd__theme__tableAddColumns")||l.closest(".dsd__theme__tableAddCorner")||l.closest(".table-cell-action-button-container")){s.stop();return}if(l.closest(".draggable-block-container")||l.closest(".draggable-block-target-line")){s.stop();return}},onSelectEnd:()=>{Z7(e),o({targets:Jf,depth:0})},onSelect:s=>J7(s,e,r,o,t.current),scrollOptions:Q7,onScroll:s=>{document.documentElement.scrollBy(s.direction[0]*10,s.direction[1]*10)}})};function HO({editor:e,value:n,disabled:t=!1,setElementFormat:r}){const{t:o,i18n:s}=Ze.useTranslation(),l=m.useMemo(()=>Gb(o),[s.language]),c=m.useMemo(()=>n==="start"||n==="end"?l.left:l[n||"left"],[n,l]),d=C=>{r(C),e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,C)},f=n==="start"||n==="end"?"left":n||"left",[h,g]=m.useState(!1);return Nt?i.jsxs(i.Fragment,{children:[i.jsxs(v.UnstyledButton,{component:"button",type:"button",disabled:t,className:"toolbar-light-btn toolbar-light-btn--compact","aria-label":"Formatting options for text alignment","data-test-id":"toolbar-align-menu",onClick:()=>g(!0),children:[i.jsx("span",{className:"toolbar-light-btn__icon",children:i.jsx(te,{icon:c.icon,size:20,color:"currentColor"})}),i.jsx("span",{className:`toolbar-light-btn__chevron${h?" toolbar-light-btn__chevron--open":""}`,children:i.jsx(te,{icon:Ds,size:16,color:"currentColor"})})]}),i.jsx(En,{opened:h,onClose:()=>g(!1),title:o("editor.toolbar.align"),children:i.jsx(v.Stack,{gap:2,pb:"sm",children:Zb.map(C=>{const y=f===C.format;return i.jsxs(v.UnstyledButton,{className:"mobile-slash-menu__item","data-active":y||void 0,"data-test-id":C.testIdToolbar,onClick:()=>{d(C.format),g(!1)},children:[i.jsx("div",{className:"mobile-slash-menu__item-icon",children:i.jsx(te,{icon:C.icon,size:16})}),i.jsx(v.Text,{className:"mobile-slash-menu__item-text",size:"sm",children:l[C.format].name}),y&&i.jsx(te,{className:"mobile-slash-menu__item-check",icon:tr,size:16})]},C.format)})})})]}):i.jsxs(v.Menu,{transitionProps:Wn,shadow:"md",position:"bottom-start",classNames:{dropdown:"toolbar-dark-dropdown"},styles:{dropdown:{zIndex:1e3},item:{gap:"var(--mantine-spacing-sm)"}},onChange:g,children:[i.jsx(v.Menu.Target,{children:i.jsx(v.Tooltip,{label:o("editor.toolbar.align"),children:i.jsxs("button",{disabled:t,className:"toolbar-light-btn toolbar-light-btn--compact","aria-label":"Formatting options for text alignment",type:"button","data-test-id":"toolbar-align-menu",children:[i.jsx("span",{className:"toolbar-light-btn__icon",children:i.jsx(te,{icon:c.icon,size:20,color:"currentColor"})}),i.jsx("span",{className:`toolbar-light-btn__chevron${h?" toolbar-light-btn__chevron--open":""}`,children:i.jsx(te,{icon:Ds,size:16,color:"currentColor"})})]})})}),i.jsx(v.Menu.Dropdown,{onMouseDown:C=>C.preventDefault(),children:i.jsx("div",{className:"toolbar-dropdown-list",children:i.jsx(Vb,{effectiveValue:f,onAlignmentSelect:d,showShortcuts:!0,testScope:"toolbar"})})})]})}function YO(e,n=40){const[t,r]=m.useState(""),o=m.useRef(0),s=m.useRef(null),l=m.useRef(null);return m.useEffect(()=>{if(s.current&&clearInterval(s.current),r(""),o.current=0,!!e)return s.current=window.setInterval(()=>{r(c=>{const d=e[o.current];return o.current+=1,o.current>=e.length&&clearInterval(s.current),c+(d||"")})},n),()=>{s.current&&clearInterval(s.current)}},[e,n]),m.useEffect(()=>{l.current&&(l.current.scrollTop=l.current.scrollHeight)},[t]),{displayedText:t,containerRef:l}}const ZO=(e,n,t,r)=>{e.update(()=>{if(p.$isRangeSelection(t)){const o=p.$createTextNode(n);t.insertNodes([o]),r()}})},GO=(e,n,t,r)=>{e.update(()=>{if(p.$isRangeSelection(t)){const o=p.$createTextNode(n);t.insertNodes([]);const s=o.getParent()??t.focus.getNode().getParent();if(s){const l=t.focus.getNode().getNextSibling();l?l.insertBefore(o):s.append(o),r()}}})},VO=(e,n="",t,r)=>{e.update(()=>{if(!p.$isRangeSelection(t))return;const s=t.anchor.getNode().getTopLevelElementOrThrow(),l=p.$createParagraphNode();n&&l.append(p.$createTextNode(n)),s.insertAfter(l),r()})},qO=(e,n)=>{e.update(()=>{const t=p.$getSelection();if(p.$isRangeSelection(t)){const r=t.getTextContent();n(r)}})},QO=({editor:e,response:n,onSubmit:t,setTypeMenu:r,onClose:o,t:s,selection:l})=>i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-back",leftSection:i.jsx(ye.IconArrowNarrowLeft,{size:14}),onClick:()=>r("main"),children:s("editor.ai.back")}),i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-replace",onClick:()=>{ZO(e,n,l,o)},leftSection:i.jsx(ye.IconReplace,{size:14}),children:s("editor.ai.menu.answer.replaceSelection")}),i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-add-inline",onClick:()=>{GO(e,` ${n}`,l,o)},leftSection:i.jsx(ye.IconTextPlus,{size:14}),children:s("editor.ai.menu.answer.addTextInline")}),i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-add-below",onClick:()=>{VO(e,n,l,o),o()},leftSection:i.jsx(ye.IconIndentIncrease,{size:14}),children:s("editor.ai.menu.answer.addBelowParagraph")}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Label,{children:s("editor.ai.menu.answer.modifyFurther")}),i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-continue",onClick:()=>{t(`Start with this text and continue. Output this text at the start: "${n}"`,!1)},leftSection:i.jsx(ye.IconPlayerPlay,{size:14}),children:s("editor.ai.menu.answer.continueWriting")}),i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-regenerate",onClick:()=>{t("Regenerate this text with another way: ")},leftSection:i.jsx(ye.IconReload,{size:14}),children:s("editor.ai.menu.answer.regenerate")}),i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-discard",onClick:o,leftSection:i.jsx(ye.IconTrash,{size:14}),children:s("editor.ai.menu.answer.discard")})]}),JO=["arabic","bengali","chinese","dutch","english","french","german","hindi","japanese","korean","nepali","portuguese","spanish"],XO=["professional","straightforward","friendly","poetic","passiveAggressive","pirate"],$O=[{title:"modifySelection",options:[{title:"improveWriting",prompt:"Improve the quality of the text",icon:i.jsx(ye.IconWand,{size:14})},{title:"fixMistakes",prompt:"Fix any typos or general errors in the text",icon:i.jsx(ye.IconTextSpellcheck,{size:14})},{title:"simplify",prompt:"Shorten the text, simplifying it",icon:i.jsx(ye.IconSortAscending,{size:14})},{title:"addMoreDetail",prompt:"Lengthen the text, going into more detail",icon:i.jsx(ye.IconSortDescending,{size:14})}]},{title:"generate",options:[{title:"summarise",prompt:"Summarise the text",icon:i.jsx(ye.IconNotes,{size:14})},{title:"translate",icon:i.jsx(ye.IconLanguage,{size:14}),type:"language"},{title:"changeStyle",icon:i.jsx(ye.IconScript,{size:14}),type:"style"},{title:"explain",prompt:"Explain what the text is about",icon:i.jsx(ye.IconHelpOctagon,{size:14})}]}],eP=({setTypeMenu:e,onSubmit:n,t})=>i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{"data-test-id":"ai-lang-back",leftSection:i.jsx(ye.IconArrowNarrowLeft,{size:14}),onClick:()=>e("main"),children:t("editor.ai.back")}),JO.map(r=>i.jsx(v.Menu.Item,{"data-test-id":`ai-lang-${r}`,onClick:()=>{n(`Translate text into the ${r} language`)},children:t(`editor.ai.menu.languages.${r}`)},r))]}),tP=({setTypeMenu:e,onSubmit:n,t})=>i.jsx(i.Fragment,{children:$O.map(r=>i.jsxs("div",{children:[i.jsx(v.Menu.Label,{children:t(`editor.ai.menu.main.${r.title}`)}),r.options.map(o=>i.jsx(v.Menu.Item,{"data-test-id":`ai-op-${o.title}`,onClick:()=>{if(o.type){e(o.type);return}n(o.prompt||"")},leftSection:o.icon,children:t(`editor.ai.menu.main.${o.title}`)},o.title))]},r.title))}),nP=({setTypeMenu:e,onSubmit:n,t})=>i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{"data-test-id":"ai-style-back",leftSection:i.jsx(ye.IconArrowNarrowLeft,{size:14}),onClick:()=>e("main"),children:t("editor.ai.back")}),XO.map(r=>i.jsx(v.Menu.Item,{"data-test-id":`ai-style-${r}`,onClick:()=>{n(`Change text into ${r} style`)},children:t(`editor.ai.menu.style.${r}`)},r))]}),rP=({keyType:e,setTypeMenu:n,editor:t,onSubmit:r,response:o,onClose:s,t:l,selection:c})=>{switch(e){case"main":return i.jsx(tP,{t:l,setTypeMenu:n,onSubmit:r});case"answer":return i.jsx(QO,{t:l,onSubmit:r,editor:t,response:o,setTypeMenu:n,onClose:s,selection:c});case"language":return i.jsx(eP,{t:l,onSubmit:r,setTypeMenu:n});case"style":return i.jsx(nP,{t:l,onSubmit:r,setTypeMenu:n});default:return null}},oP=()=>{var K;const[e,n]=m.useState({top:"0px",bottom:"auto"}),[t,r]=m.useState(!1),[o,s]=m.useState(!1),[l]=it.useLexicalComposerContext(),[c,d]=m.useState("main"),[f,h]=m.useState(""),[g,C]=m.useState(""),[y,b]=m.useState(""),[x,w]=m.useState(null),[k,T]=m.useState(!1),{fetchPromptResult:D,onTrack:N}=m.useContext(ut),{t:L}=Ze.useTranslation(),[E,M]=Sn.useResizeObserver(),O=()=>{r(!1),s(!1),b(""),d("main"),setTimeout(()=>{n({top:"0px",bottom:"auto"})},200)},I=Sn.useClickOutside(()=>{O()});m.useEffect(()=>{t?(qO(l,C),document.documentElement.style.overflow="hidden",l.update(()=>{const W=p.$getSelection();W&&w(W)}),setTimeout(()=>{var W;(W=R.current)==null||W.focus()},400)):(d("main"),document.documentElement.style.overflow="auto",b(""))},[t]);const{displayedText:F,containerRef:_}=YO(y,10),R=m.useRef(null),j=(W,B=!0)=>{const H=W+` "${B?g:""}"Only return the modified text. Do not include any explanations, introductions, or formatting.`;T(!0),D&&D(H,Q=>{b(Q),T(!1),d("answer"),h("")},()=>{T(!1)})};return m.useEffect(()=>{var B,H,Q;const{bottom:W}=((B=E.current)==null?void 0:B.getBoundingClientRect())||{bottom:0};if(W>window.innerHeight){const ee=(((Q=(H=l._rootElement)==null?void 0:H.getBoundingClientRect())==null?void 0:Q.bottom)||0)-window.innerHeight;n({...e,top:"auto",bottom:`${ee}px`})}},[M.height,t,E.current]),(K=l._rootElement)!=null&&K.parentElement?i.jsxs(i.Fragment,{children:[e.top?Dr.createPortal(i.jsx(v.Transition,{mounted:!!t,transition:"scale-x",duration:300,timingFunction:"ease",children:W=>i.jsx(v.Box,{ref:I,"data-test-id":"ai-menu",style:{position:"absolute",...e,...W},className:"ai-editor-menu",children:i.jsxs(v.Menu,{opened:!!o,closeOnItemClick:!1,position:"bottom-start",zIndex:99,transitionProps:{transition:"fade",duration:300},styles:{dropdown:{overflow:"auto"}},offset:8,middlewares:{flip:!0,size:{apply({availableHeight:B,elements:H}){requestAnimationFrame(()=>{Object.assign(H.floating.style,{maxHeight:`${B>=425?425:B}px`})})}}},disabled:k,children:[i.jsx(v.Menu.Target,{children:i.jsxs(v.Paper,{withBorder:!0,ref:E,shadow:"lg",radius:"md",p:"0",px:"xs",children:[y&&i.jsxs(i.Fragment,{children:[i.jsxs(v.Group,{"data-test-id":"ai-response",gap:3,align:"flex-start",style:{overflowY:"auto"},mah:120,ref:_,children:[i.jsx(v.Box,{style:{flex:1},w:"auto",py:"xs",children:F}),i.jsx(v.Box,{w:"auto",mt:"xs",children:i.jsx(v.CopyButton,{value:y,timeout:2e3,children:({copied:B,copy:H})=>i.jsx(v.Tooltip,{label:B?"Copied":"Copy",withArrow:!0,position:"right",children:i.jsx(v.ActionIcon,{"data-test-id":"ai-copy-button",color:B?"teal":"gray",variant:"subtle",onClick:H,children:B?i.jsx(ye.IconCheck,{size:16}):i.jsx(ye.IconCopy,{size:16})})})})})]}),i.jsx(v.Divider,{my:"0"})]}),i.jsx(v.Box,{onMouseDown:B=>B.stopPropagation(),onClick:B=>B.stopPropagation(),children:i.jsx(v.Input,{ref:R,"data-test-id":"ai-input",size:"md",placeholder:L("editor.ai.placeholder"),rightSectionPointerEvents:"all",variant:"unstyled",value:f,onKeyDown:B=>{if(B.key==="Enter"){if(k)return;j(f)}},onChange:B=>{h(B.target.value)},rightSection:i.jsx(i.Fragment,{children:k?i.jsx(v.Loader,{"data-test-id":"ai-loader",color:"violet",size:"16",mr:"xs"}):i.jsx(v.ActionIcon,{"data-test-id":"ai-submit",color:"violet",disabled:!f,variant:"subtle",onClick:()=>{j(f)},children:i.jsx(ye.IconSparkles,{size:16})})})})})]})}),i.jsx(v.Menu.Dropdown,{"data-test-id":"ai-menu-dropdown",className:"menu-dropdown-ai",onMouseDown:B=>{B.stopPropagation()},children:i.jsx(rP,{keyType:c,setTypeMenu:d,editor:l,onSubmit:j,response:y,onClose:O,t:L,selection:x})})]})})}),l._rootElement.parentElement):null,i.jsx("svg",{width:"0",height:"0","aria-hidden":"true",style:{position:"absolute"},children:i.jsx("defs",{children:i.jsxs("linearGradient",{id:"ai-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[i.jsx("stop",{offset:"0%",stopColor:"#e599f7"}),i.jsx("stop",{offset:"36%",stopColor:"#f783ac"}),i.jsx("stop",{offset:"99%",stopColor:"#fab005"})]})})}),i.jsxs("button",{disabled:!1,className:"toolbar-light-btn toolbar-light-btn--ai","aria-label":L("editor.toolbar.ai","Improve writing"),type:"button","data-test-id":"toolbar-ai",onClick:()=>{const W=document.querySelector(".floating-text-format-popup");if(W.style.opacity="0",W.style.transform="translate(-10000px, -10000px)",W!=null&&W.style){const B=window.getSelection();if((B==null?void 0:B.rangeCount)===0)return null;if(B){const Q=B.getRangeAt(0).getBoundingClientRect(),ee=document.querySelector(".content-editable-wrapper"),ae=ee.getBoundingClientRect(),pe=Q.top-ae.top+ee.scrollTop+Q.height+"px";n({top:pe,bottom:"auto"}),N==null||N("ai_menu_opened"),setTimeout(()=>{r(!0)},0),setTimeout(()=>{s(!0)},100)}}},children:[i.jsx("span",{className:"toolbar-light-btn__icon toolbar-ai-icon",children:i.jsx(te,{icon:T8,size:20})}),!Nt&&i.jsx("span",{className:"toolbar-light-btn__text toolbar-ai-text",children:L("editor.toolbar.ai","Improve writing")})]})]}):null},C5=({children:e,inline:n=!1,nodeKey:t,popoverProps:r,defaultTabValue:o,onWriteTabToNode:s,galleryCollection:l,...c})=>{var L;const{imagePickerSettings:d,maxFileSize:f}=m.useContext(ut),{giphyToken:h,unsplashClientId:g,maxUploadFiles:C}=d,y=n&&!!t,b=(L=d.galleryCollection)!=null&&L.length?d.galleryCollection:l,w=Array.isArray(b)&&b.length>0||n,{showTabKeys:k,visibleInFilePicker:T}=m.useMemo(()=>o7(d,{hasOnUpload:!!c.onUpload,hasGalleryInPicker:w}),[d,w,c.onUpload]),D=m.useMemo(()=>Wg(o,T),[o,T]);m.useLayoutEffect(()=>{if(!y||!s)return;const E=Wg(o,T);E!==o&&s(E)},[y,o,s,T]);const N={showTabs:k,dropZoneProps:{maxFiles:C||1,maxSize:f*1024*1024},giphyToken:h,unsplashClientId:g,inline:n,tab:D,popoverProps:n?{...r,opened:!0}:r,children:n?null:e,...c,galleryCollection:b??[]};return i.jsx(Mt.FilePicker,{...N})},sP=({editor:e,isEditable:n,t})=>{const{fetchUploadMedia:r,imperativeHandleRef:o}=m.useContext(ut),[s,l]=m.useState(!1);return r?i.jsx(C5,{popoverProps:{opened:s,position:"bottom",onChange:l},onUpload:c=>{var d,f;!r||!c.length||(l(!1),(d=o==null?void 0:o.current)!=null&&d.insertImages&&((f=o.current)==null||f.insertImages(c)))},onChange:c=>{e.dispatchCommand(w1,{altText:"",src:c}),l(!1)},children:i.jsx(v.Tooltip,{label:t("editor.image.add_photo"),children:i.jsx("button",{disabled:!n,type:"button",onClick:()=>l(c=>!c),className:"toolbar-item spaced","data-test-id":"toolbar-insert-image",children:i.jsx(mn,{name:"photo"})})})}):null};function A5({editor:e,canUndo:n,canRedo:t,isEditable:r,onClearFormatting:o}){return[{type:"action",id:"undo",icon:gk,label:"Undo",shortcut:Os?"(⌘Z)":"(Ctrl+Z)",disabled:!n,onClick:()=>e.dispatchCommand(p.UNDO_COMMAND,void 0),testId:"toolbar-undo"},{type:"action",id:"redo",icon:sk,label:"Redo",shortcut:Os?"(⌘⇧Z)":"(Ctrl+Shift+Z)",disabled:!t,onClick:()=>e.dispatchCommand(p.REDO_COMMAND,void 0),testId:"toolbar-redo"},{type:"divider",id:"divider-1"},{type:"action",id:"clear",icon:Xh,label:"Clear format",disabled:!r,onClick:o,testId:"toolbar-more-clear-format"}]}function iP({opened:e,onClose:n,editor:t,canUndo:r,canRedo:o,isEditable:s,onClearFormatting:l}){const{t:c}=Ze.useTranslation(),d=A5({editor:t,canUndo:r,canRedo:o,isEditable:s,onClearFormatting:l});return i.jsx(En,{opened:e,onClose:n,title:c("editor.toolbar.moreSettings","More settings"),children:i.jsx(v.Stack,{gap:2,pb:"sm",children:d.map(f=>f.type==="divider"?null:i.jsxs(v.UnstyledButton,{className:"mobile-slash-menu__item mobile-slash-menu__item--filled","data-test-id":f.testId,disabled:f.disabled,onClick:()=>{f.onClick(),n()},children:[i.jsx("div",{className:"mobile-slash-menu__item-icon",children:i.jsx(te,{icon:f.icon,size:16})}),i.jsx(v.Text,{className:"mobile-slash-menu__item-text",size:"sm",children:f.label})]},f.id))})})}function aP({opened:e,onClose:n,editor:t,mode:r,excludeNodes:o,plugins:s,onTrack:l}){const{t:c}=Ze.useTranslation(),d=m.useMemo(()=>_1({editor:t,isToolbar:!1,excludeNodes:o,t:c,plugins:s,onTrack:l}).map(g=>({...g,blocks:g.blocks.filter(C=>!C.hide)})).filter(g=>g.blocks.length>0),[t,o,c,s,l,r]),f=h=>{n(),requestAnimationFrame(()=>{t.focus(),h.onSelect()})};return i.jsx(En,{opened:e,onClose:n,title:c("editor.menu.mobileTitle","Insert blok"),children:i.jsx(v.Stack,{gap:"md",pb:"sm",children:d.map(h=>i.jsxs(v.Box,{className:"mobile-slash-menu__group",children:[i.jsx(v.Text,{className:"mobile-slash-menu__group-label",size:"xs",c:"dimmed",children:h.name}),i.jsx(v.Stack,{gap:2,children:h.blocks.map(g=>i.jsxs(v.UnstyledButton,{className:"mobile-slash-menu__item",onClick:()=>f(g),"data-test-id":g["data-test-id"],children:[i.jsx(v.Box,{className:"mobile-slash-menu__item-icon",children:g.icon}),i.jsx(v.Text,{className:"mobile-slash-menu__item-text",size:"sm",children:g.name})]},g.key))})]},h.key))})})}const lP={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"},cP={paragraph:pu,h1:Hh,h2:Yh,h3:Zh,h4:Ca,h5:Ca,h6:Ca,bullet:Wc,number:Gh,check:Kh,code:Ia,quote:Qh},cr=m.forwardRef((e,n)=>i.jsx(v.Tooltip,{...e,ref:n,disabled:Nt||e.disabled}));cr.displayName="Tooltip";function Z2({mode:e,isFloating:n}){const[t]=it.useLexicalComposerContext(),{colorScheme:r}=v.useMantineColorScheme(),o=r==="dark",[s,l]=m.useState(t),[c,d]=m.useState("paragraph"),[f,h]=m.useState("root"),[g,C]=m.useState(null),[y,b]=m.useState("#000"),[x,w]=m.useState("#fff"),[k,T]=m.useState("left"),[D,N]=m.useState(!1),[L,E]=m.useState(!1),[M,O]=m.useState(!1),[I,F]=m.useState(!1),[_,R]=m.useState(!1),[j,K]=m.useState(!1),[W,B]=m.useState(!1),[H,Q]=m.useState(!1),[ee,ae]=m.useState(!1),[pe,Le]=m.useState(!1),[Se]=B1(),[we,de]=m.useState(!1),[ne,Z]=m.useState(!0),[ce,le]=m.useState(!0),[se,Y]=m.useState(0),[oe,$]=m.useState(()=>t.isEditable()),J=e||"default",{excludeNodes:q,fetchUploadMedia:re,fetchPromptResult:he,commentController:ke,onTrack:De}=m.useContext(ut),{t:Ee}=Ze.useTranslation(),Pe=m.useCallback(()=>{const xe=p.$getSelection();if(p.$isRangeSelection(xe)){const Ue=xe.anchor.getNode(),_e=xe.focus.getNode(),Ne=p.$isRootNode(Ue)?null:Ue.getTopLevelElementOrThrow(),Ge=p.$isRootNode(_e)?null:_e.getTopLevelElementOrThrow();let We=Ue.getKey()==="root"?Ue:be.$findMatchingParent(Ue,Ve=>{const rt=Ve.getParent();return rt!==null&&p.$isRootOrShadowRoot(rt)});xe.getNodes().length===1?Z(!0):Z(!1),We===null&&(We=Ue.getTopLevelElementOrThrow());const Qe=We.getKey(),tt=s.getElementByKey(Qe);t.update(()=>{E(xe.hasFormat("bold")),O(xe.hasFormat("italic")),F(xe.hasFormat("underline")),R(xe.hasFormat("strikethrough")),K(xe.hasFormat("subscript")),B(xe.hasFormat("superscript")),Q(xe.hasFormat("code"))});const He=yi(xe),nt=He.getParent();on.$isLinkNode(nt)||on.$isLinkNode(He)?N(!0):N(!1),b(an.$getSelectionStyleValueForProperty(xe,"color","inherit")),w(an.$getSelectionStyleValueForProperty(xe,"background-color","inherit"));let ct;on.$isLinkNode(nt)&&(ct=be.$findMatchingParent(He,Ve=>p.$isElementNode(Ve)&&!Ve.isInline())),T(p.$isElementNode(ct)?ct.getFormatType():p.$isElementNode(He)?He.getFormatType():(nt==null?void 0:nt.getFormatType())||"left");const at=be.$findMatchingParent(He,vt);if(vt(at)?h("table"):h("root"),tt!==null&&(Ne==null?void 0:Ne.getKey())===(Ge==null?void 0:Ge.getKey()))if(C(Qe),pt(We)){const Ve=be.$getNearestNodeOfType(Ue,mr),rt=Ve?Ve.getListType():We.getListType();d(rt)}else{const Ve=ln.$isHeadingNode(We)?We.getTag():We.getType();Ve in lP&&d(Ve)}else d("")}},[s,Z]);m.useEffect(()=>t.registerCommand(p.SELECTION_CHANGE_COMMAND,(xe,Ue)=>(Pe(),l(Ue),!1),p.COMMAND_PRIORITY_CRITICAL),[t,Pe]),m.useEffect(()=>be.mergeRegister(t.registerEditableListener(xe=>{$(xe)}),s.registerUpdateListener(({editorState:xe})=>{xe.read(()=>{Pe()})}),s.registerCommand(p.CAN_UNDO_COMMAND,xe=>(ae(xe),!1),p.COMMAND_PRIORITY_CRITICAL),s.registerCommand(p.CAN_REDO_COMMAND,xe=>(Le(xe),!1),p.COMMAND_PRIORITY_CRITICAL)),[Pe,s,t]),m.useEffect(()=>be.mergeRegister(s.registerCommand(p.KEY_MODIFIER_COMMAND,xe=>{const Ue=xe,{code:_e,metaKey:Ne}=Ue;if(_e==="KeyK"&&Ne){Ue.preventDefault();let Ge;return D?Ge=null:Ge=va("https://"),s.dispatchCommand(on.TOGGLE_LINK_COMMAND,Ge)}return!1},p.COMMAND_PRIORITY_NORMAL),s.registerCommand(p.CLICK_COMMAND,()=>{const xe=p.$getSelection();if(p.$isRangeSelection(xe)){const Ue=xe.getNodes(),_e=Ue.length>0&&Ue.every(Ne=>ao(Ne)||vt(Ne)||hr(Ne)?!1:p.$isElementNode(Ne)||p.$isTextNode(Ne));le(!_e)}return!1},p.COMMAND_PRIORITY_NORMAL)),[s,D]),m.useEffect(()=>{const xe=Ue=>{var We,lt;const _e=t.getRootElement();if(!_e||_e.contains(document.activeElement)||!(Ue.ctrlKey||Ue.metaKey)&&!Ue.altKey||!!!((We=document.activeElement)!=null&&We.closest(".toolbar-dark-dropdown")||(lt=document.activeElement)!=null&<.closest(".toolbar-wrapper")))return;t.dispatchCommand(p.KEY_DOWN_COMMAND,Ue)&&(Ue.preventDefault(),t.focus())};return document.addEventListener("keydown",xe,!0),()=>document.removeEventListener("keydown",xe,!0)},[t]),m.useCallback((xe,Ue)=>{s.update(()=>{const _e=p.$getSelection();_e!==null&&an.$patchStyleText(_e,xe)},Ue?{tag:"historic"}:{})},[s]);const Fe=m.useCallback(()=>{De==null||De("text_formatting_cleared"),setTimeout(()=>{s.dispatchCommand(p.FORMAT_TEXT_COMMAND,"")}),s.update(()=>{const xe=p.$getSelection();if(p.$isRangeSelection(xe)){const Ue=xe.anchor,_e=xe.focus,Ne=xe.getNodes(),Ge=xe.extract();if(Ue.key===_e.key&&Ue.offset===_e.offset)return;Ne.forEach((We,lt)=>{if(_n(We)){let Qe=We;lt===0&&Ue.offset!==0&&(Qe=Qe.splitText(Ue.offset)[1]||Qe),lt===Ne.length-1&&(Qe=Qe.splitText(_e.offset)[0]||Qe);const tt=Ge[0];Ne.length===1&&_n(tt)&&(Qe=tt),Qe.__style!==""&&Qe.setStyle(""),Qe.__format!==0&&Qe.setFormat(0);const He=be.$getNearestBlockElementAncestorOrThrow(Qe);He.__format!==0&&He.setFormat(""),He.__indent!==0&&He.setIndent(0),We=Qe}else ln.$isHeadingNode(We)||ln.$isQuoteNode(We)?We.replace(p.$createParagraphNode(),!0):qr.$isDecoratorBlockNode(We)&&We.setFormat("")})}})},[s]),ze=m.useCallback(()=>{De==null||De("block_link_inserted"),t.dispatchCommand(Au,"create"),setTimeout(()=>{$(!0)},1e3)},[t]),bt=()=>{De==null||De("block_comment_added"),t.dispatchCommand(Ou,void 0),Y(xe=>xe+1)},mt=cP[c]??pu,Ht=!y||y==="inherit"||y==="",Pt=!x||x==="inherit"||x==="",V=!Ht,fe=!Pt,[Re,Ke]=m.useState(!1),ge=n&&Nt,[me,Ce]=m.useState(!1),[Be,Ye]=m.useState(!1),$e=()=>{Ce(!0)},st=()=>{s.dispatchCommand(mA,void 0)};return i.jsxs("div",{className:`toolbar-wrapper${ge?" toolbar-wrapper--touch-floating":""}`,tabIndex:-1,children:[i.jsxs("div",{className:"toolbar",children:[ge&&i.jsx("div",{className:"toolbar-section toolbar-section--leading-sticky",children:i.jsx(v.UnstyledButton,{component:"button",type:"button",className:"toolbar-item",onMouseDown:xe=>xe.preventDefault(),onClick:$e,"data-test-id":"toolbar-insert-slash","aria-label":"Insert",children:i.jsx(te,{icon:Ec,size:20,color:"currentColor"})})}),e==="editor"&&!0&&he&&i.jsx("div",{className:"toolbar-section",children:i.jsx(m.Suspense,{fallback:null,children:i.jsx(oP,{})})}),i.jsx("div",{className:"toolbar-section",children:i.jsx(e5,{disabled:ce,blockType:c,rootType:f,editor:t,mode:J,fetchUploadMedia:re,excludeNodes:q,children:i.jsx(cr,{label:Ee("editor.toolbar.turnInto"),children:i.jsxs("button",{disabled:ce,className:"toolbar-light-btn toolbar-light-btn--compact","aria-label":"Formatting options for text style",type:"button","data-test-id":"toolbar-block-controls",children:[i.jsx("span",{className:"toolbar-light-btn__icon",children:i.jsx(te,{icon:mt,size:20,color:"currentColor"})}),i.jsx("span",{className:"toolbar-light-btn__chevron",children:i.jsx(te,{icon:Ds,size:16,color:"currentColor"})})]})})})}),i.jsxs("div",{className:"toolbar-section",children:[i.jsx(cr,{label:Ee("editor.toolbar.bold"),children:i.jsx("button",{disabled:!oe,onClick:()=>{s.dispatchCommand(p.FORMAT_TEXT_COMMAND,"bold")},className:"toolbar-item"+(L?" active":""),type:"button","data-test-id":"toolbar-bold",children:i.jsx(te,{icon:nA,size:20,color:"currentColor"})})}),i.jsx(cr,{label:Ee("editor.toolbar.italic"),children:i.jsx("button",{disabled:!oe,onClick:()=>{s.dispatchCommand(p.FORMAT_TEXT_COMMAND,"italic")},className:"toolbar-item"+(M?" active":""),type:"button","data-test-id":"toolbar-italic",children:i.jsx(te,{icon:rA,size:20,color:"currentColor"})})}),i.jsx(cr,{label:Ee("editor.toolbar.underline"),children:i.jsx("button",{disabled:!oe,"data-test-id":"toolbar-underline",onClick:()=>{s.dispatchCommand(p.FORMAT_TEXT_COMMAND,"underline")},className:"toolbar-item"+(I?" active":""),type:"button",children:i.jsx(te,{icon:sA,size:20,color:"currentColor"})})}),i.jsx(cr,{label:Ee("editor.toolbar.strike"),children:i.jsx("button",{disabled:!oe,className:"toolbar-item"+(_?" active":""),"data-test-id":"toolbar-strikethrough",onClick:()=>{s.dispatchCommand(p.FORMAT_TEXT_COMMAND,"strikethrough")},children:i.jsx(te,{icon:oA,size:20,color:"currentColor"})})}),i.jsx(cr,{disabled:!oe,label:Ee("editor.toolbar.link"),children:i.jsx("button",{onClick:ze,className:"toolbar-item"+(D?" active":""),onMouseDown:()=>{$(!1)},type:"button","data-test-id":"toolbar-link",children:i.jsx(te,{icon:ja,size:20,color:"currentColor"})})}),i.jsx(cr,{label:Ee("editor.toolbar.code"),children:i.jsx("button",{disabled:!oe,onClick:()=>{De==null||De("text_code_toggled"),s.dispatchCommand(p.FORMAT_TEXT_COMMAND,"code")},className:"toolbar-item"+(H?" active":""),type:"button","data-test-id":"toolbar-code",children:i.jsx(te,{icon:Ia,size:20,color:"currentColor"})})}),i.jsx(cr,{label:Ee("editor.toolbar.equation","Inline equation"),children:i.jsx("button",{disabled:!oe,className:"toolbar-item",onClick:()=>{De==null||De("block_inline_equation_inserted"),s.dispatchCommand(Da,"inline")},"data-test-id":"toolbar-inline-equation",children:i.jsx(te,{icon:Ra,size:20,color:"currentColor"})})}),i.jsx(ph,{fontColor:y,bgColor:x,disabled:!oe,onOpenChange:Ke,onChange:xe=>{b(xe.color),w(xe["background-color"]),s.update(()=>{const Ue=p.$getSelection();Ue!==null&&an.$patchStyleText(Ue,xe)})},children:i.jsx(cr,{label:Ee("editor.toolbar.color","Text color"),children:i.jsxs("button",{disabled:!oe,className:"toolbar-light-btn toolbar-light-btn--compact"+(fe?" toolbar-light-btn--color-active":""),style:fe?{backgroundColor:`color-mix(in srgb, ${x} 85%, transparent)`}:void 0,type:"button","data-test-id":"toolbar-color-picker",children:[i.jsx("span",{className:"toolbar-light-btn__icon",children:i.jsx(Mt.TextColorIcon,{size:20,color:V?y:o?"#FFFFFF":"#000000",showBorder:!0})}),i.jsx("span",{className:`toolbar-light-btn__chevron${Re?" toolbar-light-btn__chevron--open":""}`,children:i.jsx(te,{icon:Ds,size:16,color:"currentColor"})})]})})})]}),i.jsx("div",{className:"toolbar-section",children:i.jsx(HO,{disabled:!oe,value:k,editor:t,isRTL:we,setElementFormat:T})}),ke&&i.jsx("div",{className:"toolbar-section",children:i.jsx(cr,{label:Ee("editor.toolbar.comment"),children:i.jsxs("button",{onClick:bt,className:"toolbar-light-btn",type:"button","data-test-id":"toolbar-comment",children:[i.jsx("span",{className:"toolbar-light-btn__icon",children:i.jsx(te,{icon:U8,size:20,color:"currentColor"})}),i.jsx("span",{className:"toolbar-light-btn__text",children:Ee("editor.toolbar.comment")})]})},se)}),e==="default"&&i.jsx("div",{className:"toolbar-section",children:i.jsx(sP,{editor:t,t:Ee,isEditable:oe})}),i.jsx("div",{className:"toolbar-section",children:ge?i.jsx(cr,{label:Ee("editor.toolbar.more"),children:i.jsx(v.UnstyledButton,{className:"toolbar-item",type:"button","data-test-id":"toolbar-more","aria-label":Ee("editor.toolbar.more"),onClick:()=>Ye(!0),children:i.jsx(v.Flex,{align:"center",justify:"center",children:i.jsx(te,{icon:Mr,size:20,color:"currentColor"})})})}):i.jsxs(v.Menu,{transitionProps:Wn,shadow:"md",position:"bottom-end",offset:4,withinPortal:!0,classNames:{dropdown:"toolbar-dark-dropdown"},styles:{dropdown:{zIndex:1e3},item:{gap:"var(--mantine-spacing-sm)"}},children:[i.jsx(v.Menu.Target,{children:i.jsx(cr,{label:Ee("editor.toolbar.more"),children:i.jsx(v.UnstyledButton,{className:"toolbar-item",type:"button","data-test-id":"toolbar-more","aria-label":Ee("editor.toolbar.more"),children:i.jsx(v.Flex,{align:"center",justify:"center",children:i.jsx(te,{icon:Mr,size:20,color:"currentColor"})})})})}),i.jsx(v.Menu.Dropdown,{onMouseDown:xe=>xe.preventDefault(),children:A5({editor:s,canUndo:ee,canRedo:pe,isEditable:oe,onClearFormatting:Fe}).map(xe=>xe.type==="divider"?i.jsx(v.Menu.Divider,{},xe.id):i.jsx(v.Menu.Item,{leftSection:i.jsx(v.Flex,{align:"center",justify:"center",c:"gray.6",children:i.jsx(te,{icon:xe.icon,size:16})}),rightSection:xe.shortcut?i.jsx(v.Text,{size:"xs",c:"dimmed",children:xe.shortcut}):void 0,disabled:xe.disabled,onClick:xe.onClick,"data-test-id":xe.testId,children:xe.label},xe.id))})]})}),Se]}),ge&&i.jsx(iP,{opened:Be,onClose:()=>Ye(!1),editor:s,canUndo:ee,canRedo:pe,isEditable:oe,onClearFormatting:Fe}),ge&&i.jsx("div",{className:"toolbar-section toolbar-section--trailing-fixed",children:i.jsx(v.UnstyledButton,{component:"button",type:"button",className:"toolbar-item",onMouseDown:xe=>xe.preventDefault(),onClick:st,"data-test-id":"toolbar-hide","aria-label":"Hide toolbar",children:i.jsx(te,{icon:Q8,size:20,color:"currentColor"})})}),ge&&i.jsx(aP,{opened:me,onClose:()=>Ce(!1),editor:s,mode:J,excludeNodes:q,fetchUploadMedia:re,onTrack:De})]})}function G2(e){let n=0;const t=[];return e.split(/(<[^>]+>)/g).filter(Boolean).forEach(o=>{o.startsWith("</")?(n=Math.max(0,n-2),t.push(" ".repeat(n)+o)):o.startsWith("<")?(t.push(" ".repeat(n)+o),!o.endsWith("/>")&&!o.match(/<(br|img|hr|input)[^>]*>/)&&(n+=2)):o.trim()&&t.push(" ".repeat(n)+o)}),t.join(`
|
|
304
|
-
`)}function uP(){const[e]=it.useLexicalComposerContext(),[n,t]=m.useState("tree"),[r,o]=m.useState(""),[s,l]=m.useState(!1);m.useEffect(()=>{if(n==="dom"){const d=()=>{const f=e.getRootElement();f&&o(f.innerHTML)};return d(),e.registerUpdateListener(d)}},[n,e]);const c=async(d=!1)=>{try{const f=d?G2(r):r;await navigator.clipboard.writeText(f),l(!0),setTimeout(()=>l(!1),2e3)}catch(f){console.error("Failed to copy:",f)}};return i.jsxs("div",{className:"tree-view-output",children:[i.jsxs("div",{style:{display:"flex",gap:"4px",padding:"8px",borderBottom:"1px solid #333",background:"#1e1e1e"},children:[i.jsx("button",{onClick:()=>t("tree"),style:{padding:"6px 12px",background:n==="tree"?"#0078d4":"#2d2d2d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px",fontWeight:n==="tree"?"bold":"normal"},children:"Tree View"}),i.jsx("button",{onClick:()=>t("dom"),style:{padding:"6px 12px",background:n==="dom"?"#0078d4":"#2d2d2d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px",fontWeight:n==="dom"?"bold":"normal"},children:"DOM HTML"})]}),n==="tree"&&i.jsx(dw.TreeView,{viewClassName:"tree-view-output",treeTypeButtonClassName:"debug-treetype-button",timeTravelPanelClassName:"debug-timetravel-panel",timeTravelButtonClassName:"debug-timetravel-button",timeTravelPanelSliderClassName:"debug-timetravel-panel-slider",timeTravelPanelButtonClassName:"debug-timetravel-panel-button",editor:e}),n==="dom"&&i.jsxs("div",{style:{padding:"16px",background:"#1e1e1e",height:"100%",overflow:"auto"},children:[i.jsx("div",{style:{display:"flex",gap:"8px",marginBottom:"16px",position:"sticky",top:0,background:"#1e1e1e",paddingBottom:"8px",zIndex:10},children:i.jsx("button",{onClick:()=>c(!0),style:{padding:"6px 12px",background:s?"#28a745":"#6c757d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"11px",fontWeight:"bold"},children:s?"✓ Copied!":"Copy Formatted"})}),i.jsx("div",{style:{padding:"12px",background:"#252526",borderRadius:"4px",border:"1px solid #3e3e42"},children:i.jsx("pre",{style:{margin:0,whiteSpace:"pre",color:"#9cdcfe",fontFamily:"monospace",fontSize:"11px",lineHeight:"1.4"},children:G2(r)})})]})]})}function V2({className:e}){return i.jsx(fw.ContentEditable,{className:e||"ContentEditable__root"})}const dP="_listContainer_1l5sq_1",fP="_list_1l5sq_1",hP="_text_1l5sq_55",Rf={listContainer:dP,list:fP,text:hP},pP=({editor:e})=>{var h;const[n,t]=m.useState(!1),{t:r,i18n:o}=Ze.useTranslation(),{excludeNodes:s,disable:l}=m.useContext(ut),c=g=>{const C=document.querySelector(".editor-container");if(g){C.classList.add("empty-editor");return}C.classList.remove("empty-editor")};m.useEffect(()=>{e.update(()=>{Hf()&&(t(!0),c(!0))}),be.mergeRegister(e.registerCommand(p.BLUR_COMMAND,()=>{const g=!!Hf();return t(g),c(g),!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(p.FOCUS_COMMAND,()=>(t(!1),c(!1),!1),p.COMMAND_PRIORITY_LOW))},[]);const d=(g,C)=>{g==null||g.update(()=>{g.focus();const b=p.$getRoot().getFirstChild();b&&C&&(C(b),t(!1))})},f=m.useMemo(()=>[{title:r("editor.emptyPageOptions.heading"),icon:i.jsx(ye.IconH1,{stroke:2,size:18}),onSelect:()=>d(e,g=>{g.replace(ln.$createHeadingNode("h1"))})},{title:r("editor.emptyPageOptions.grid"),icon:i.jsx(ye.IconColumns2,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(P1,g1)})}},{title:r("editor.emptyPageOptions.list"),icon:i.jsx(ye.IconListNumbers,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(ku,void 0)})}},{title:r("editor.emptyPageOptions.code"),icon:i.jsx(ye.IconCode,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(Fb,void 0)})}},{title:r("editor.menu.media.excalidraw.hint.description"),icon:i.jsx(ye.IconPalette,{stroke:2,size:18}),onSelect:()=>{Promise.resolve().then(()=>require("./layers.DlgVWdcp.js")).then(({INSERT_EXCALIDRAW_COMMAND:g})=>{d(e,()=>{e.dispatchCommand(g,void 0)})})}},s.template?{title:r("editor.emptyPageOptions.template"),icon:i.jsx(ye.IconTemplate,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(fA,void 0)})}}:null,{title:r("editor.emptyPageOptions.callout"),icon:i.jsx(ye.IconBaseline,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{setTimeout(()=>{e==null||e.dispatchCommand(Cu,"success")})})}},{title:r("editor.emptyPageOptions.table"),icon:i.jsx(ye.IconTable,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{setTimeout(()=>{e==null||e.dispatchCommand(Su,{columns:"4",includeHeaders:!1,rows:"3"})})})}},{title:r("editor.emptyPageOptions.integrations"),icon:i.jsx(ye.IconApps,{stroke:2,size:18}),onSelect:()=>{}}],[o.language]);return!n||l?null:i.jsx(v.Portal,{target:((h=e==null?void 0:e._rootElement)==null?void 0:h.parentElement)||document.body,children:i.jsx("ul",{className:`${Rf.listContainer} empty-page-options`,children:f.map((g,C)=>g?i.jsxs(v.Menu,{disabled:C!==f.length-1,position:"bottom-start",shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},middlewares:Xb,width:200,transitionProps:Wn,children:[i.jsx(v.Menu.Target,{children:i.jsxs("li",{className:Rf.list,onClick:g.onSelect,children:[g.icon," ",i.jsx("span",{className:Rf.text,children:g.title})]})}),i.jsx(v.Menu.Dropdown,{children:Bi.map(y=>i.jsx(v.Menu.Item,{className:"item "+$R(y.key==="1"),leftSection:y.icon,style:{borderRadius:"var(--mantine-radius-sm)",paddingBlock:"calc(var(--mantine-spacing-xs) / 1.5)"},onClick:()=>{d(e,()=>{setTimeout(()=>{e==null||e.dispatchCommand($c,y.platform),t(!1)})})},children:y.name},y.name))})]},g.title):null)})})};function H1(e,n){try{return Ea.$generateNodesFromDOM(e,n)}catch(t){if(t instanceof Error&&t.message.includes("to have a parent")){console.warn("[@layers-app/editor] $generateNodesFromDOM failed with orphaned node error, retrying with individual nodes");const r=n.body.childNodes,o=[];for(const s of r)try{const l=document.implementation.createHTMLDocument();l.body.appendChild(s.cloneNode(!0));const c=Ea.$generateNodesFromDOM(e,l);o.push(...c)}catch{}return o}throw t}}function mP({editor:e,outputFormat:n,debounceMs:t=500,onChange:r,onBlur:o,isCommentVariant:s,checkIsEmpty:l,onChangeCommand:c}){const d=Sn.useDebouncedCallback(g=>{c&&g.dispatchCommand(c,!0)},100),f=Sn.useDebouncedCallback((g,C)=>{if(n==="html")g.read(()=>{let b=Ea.$generateHtmlFromNodes(C,null);const x=p.$getRoot();x&&(l()&&(b=""),x.getChildrenSize()===0&&(C.update(()=>{x.append(p.$createParagraphNode())}),b=""));const w=p.$getRoot().getTextContent();r(b,w)});else{const y=g.toJSON();r(y)}},t),h=(g,C)=>{if(o)if(n==="html")C.update(()=>{const y=Ea.$generateHtmlFromNodes(C,null);o(y)});else{const y=g.toJSON();o(y)}};return m.useEffect(()=>e.registerCommand(p.PASTE_COMMAND,C=>{if(!s)return!1;try{const y=C.clipboardData||window.clipboardData;if(!y||!y.getData("application/x-lexical-editor"))return!1;const x=y.getData("text/html");if(!x)return!1;const k=new DOMParser().parseFromString(x,"text/html"),T=H1(e,k);return p.$insertNodes(T),!0}catch{return!1}},p.COMMAND_PRIORITY_LOW),[e,s]),{triggerOnChangeCommand:d,onChangeValue:f,onBlurValue:h}}const gP={toolbar:{comment:!1,default:!0,editor:!1},componentPicker:{comment:!1,default:!0,editor:!0},floatingTextToolbar:{comment:!0,default:!0,editor:!0},floatingLinkEditor:{comment:!0,default:!0,editor:!0},actionMenu:{comment:!1,default:!0,editor:!0},mediaActions:{comment:!1,default:!0,editor:!0},previewCodeEquation:{comment:!1,default:!0,editor:!0},richText:{comment:!0,default:!0,editor:!0},history:{comment:!1,default:!0,editor:!0},treeView:{comment:!1,default:!0,editor:!0},actionsInspector:{comment:!1,default:!0,editor:!0},onChange:{comment:!0,default:!0,editor:!0},blur:{comment:!0,default:!0,editor:!0},focus:{comment:!0,default:!0,editor:!0},autoFocus:{comment:!0,default:!0,editor:!0},placeholder:{comment:!0,default:!0,editor:!0},clearEditor:{comment:!0,default:!1,editor:!1},maxLength:{comment:!1,default:!0,editor:!0},emoji:{comment:!0,default:!0,editor:!0},hashtag:{comment:!1,default:!0,editor:!0},markdownShortcut:{comment:!1,default:!0,editor:!0},extendCode:{comment:!1,default:!0,editor:!0},equation:{comment:!1,default:!0,editor:!0},codeHighlight:{comment:!1,default:!0,editor:!0},list:{comment:!0,default:!0,editor:!0},checkList:{comment:!0,default:!0,editor:!0},listMaxIndent:{comment:!0,default:!0,editor:!0},link:{comment:!0,default:!0,editor:!0},clickableLink:{comment:!0,default:!0,editor:!0},horizontalRule:{comment:!1,default:!0,editor:!0},tabFocus:{comment:!0,default:!0,editor:!0},tabIndentation:{comment:!0,default:!0,editor:!0},collapsible:{comment:!1,default:!0,editor:!0},callout:{comment:!1,default:!0,editor:!0},layout:{comment:!1,default:!0,editor:!0},table:{comment:!1,default:!0,editor:!0},draggableBlock:{comment:!1,default:!0,editor:!0},newParagraph:{comment:!0,default:!0,editor:!0},tableOfContents:{comment:!1,default:!0,editor:!0},embed:{comment:!1,default:!0,editor:!0},swagger:{comment:!1,default:!0,editor:!0},images:{comment:!1,default:!0,editor:!0},audio:{comment:!1,default:!0,editor:!0},file:{comment:!1,default:!0,editor:!0},excalidraw:{comment:!1,default:!0,editor:!0},childDocs:{comment:!1,default:!0,editor:!0},pageLink:{comment:!1,default:!0,editor:!0},comment:{comment:!1,default:!0,editor:!0},form:{comment:!1,default:!0,editor:!0},select:{comment:!1,default:!0,editor:!0},shortcuts:{comment:!1,default:!0,editor:!0},smartPaste:{comment:!1,default:!0,editor:!0},emptyPage:{comment:!1,default:!1,editor:!0}},CP={images:"photo",codeHighlight:"code",checkList:"check",listMaxIndent:"list",collapsible:"caret-right",horizontalRule:"horizontal-rule",clickableLink:"link",floatingLinkEditor:"link",previewCodeEquation:"previewCodeEquation"};function AP(e,n){return t=>{if(!gP[t][e])return!1;const o=CP[t];return o?!n[o]:!(t in n&&n[t])}}const b5={comment:!1,default:!0,editor:!0};function bP(e,n,t,r,o){return n.filter(l=>(l.modes??b5)[r]&&!t[l.key]).map(l=>l.Provider).reduceRight((l,c)=>i.jsx(c,{imperativeHandleRef:o,children:l}),i.jsx(i.Fragment,{children:e}))}const q2=m.lazy(()=>Promise.resolve().then(()=>require("./layers.DlgVWdcp.js")).then(e=>({default:e.ExcalidrawPlugin})));function yP(e){const{onRef:n,floatingAnchorElem:t,maxHeight:r,showTextToolbar:o,mode:s,isLoading:l,editor:c,onBlur:d,onFocus:f,onChange:h,outputFormat:g,debounceMs:C}=e,y=s==="editor",b=s==="comment",[x,w]=m.useState(!1),{excludeNodes:k,plugins:T,imperativeHandleRef:D,disable:N}=m.useContext(ut),L=Nt,E=AP(s,k),{settings:{isRichText:M,showTreeView:O,isMaxLength:I}}=k1(),{historyState:F}=S1(),{triggerOnChangeCommand:_,onChangeValue:R,onBlurValue:j}=mP({editor:c,outputFormat:g,debounceMs:C,onChange:h,onBlur:d,isCommentVariant:b,checkIsEmpty:Hf,onChangeCommand:es});let K={};r?K={maxHeight:r}:y&&(K={overflowY:"hidden"});const W=y?i.jsx("div",{className:"editor-scroller",style:K,children:i.jsx("div",{className:"editor",ref:n,children:i.jsx("div",{className:"content-editable-wrapper",children:i.jsx("div",{children:i.jsx(V2,{})})})})}):i.jsx("div",{className:"editor-scroller",style:K,children:i.jsx("div",{className:"editor",ref:n,children:i.jsx(V2,{})})}),B=i.jsxs(i.Fragment,{children:[E("toolbar")&&!y&&!L&&i.jsx(Z2,{mode:s}),E("componentPicker")&&!L&&i.jsx(uI,{mode:s,opened:x,setOpenedMenu:w}),E("history")&&i.jsx(Rh.HistoryPlugin,{externalHistoryState:F}),E("floatingTextToolbar")&&t&&(y||L?i.jsx(E2,{anchorElem:t,component:i.jsx(Z2,{mode:s,isFloating:!0})}):i.jsx(E2,{anchorElem:t})),i.jsxs("div",{className:`editor-container ${M?"":"plain-text"}`,children:[E("placeholder")&&i.jsx(cT,{}),E("autoFocus")&&i.jsx(oT,{isLoading:l}),E("emoji")&&i.jsx(PI,{}),E("hashtag")&&i.jsx(ew.HashtagPlugin,{}),E("clearEditor")&&i.jsx(J9.ClearEditorPlugin,{}),E("richText")&&i.jsx(rw.RichTextPlugin,{contentEditable:W,ErrorBoundary:$9.LexicalErrorBoundary}),(E("extendCode")||E("equation"))&&!N&&i.jsx(T7,{}),E("markdownShortcut")&&i.jsx(NT,{}),E("shortcuts")&&i.jsx(pL,{editor:c,setIsLinkEditMode:()=>{}}),E("extendCode")&&!N&&i.jsx(ZN,{}),E("equation")&&!N&&i.jsx(WN,{}),E("codeHighlight")&&i.jsx(rT,{}),E("list")&&i.jsx(mT,{}),E("checkList")&&i.jsx(BN,{}),E("listMaxIndent")&&i.jsx(bT,{maxDepth:7}),!N&&i.jsx(fT,{}),E("link")&&i.jsx(hT,{}),E("comment")&&i.jsx(OT,{}),q2&&E("excalidraw")&&i.jsx(m.Suspense,{children:i.jsx(q2,{})}),E("swagger")&&i.jsx(_j,{}),E("childDocs")&&i.jsx(QS,{}),E("pageLink")&&i.jsx(Pj,{}),E("newParagraph")&&!O&&i.jsx(dD,{}),E("form")&&i.jsx(VN,{}),T==null?void 0:T.map(H=>{const{key:Q,Plugin:ee,modes:ae}=H;return!(ae??b5)[s]||k[Q]?null:i.jsx(ee,{},Q)}),E("audio")&&i.jsx(yj,{}),E("file")&&i.jsx(ZM,{}),E("embed")&&i.jsx(_N,{}),E("images")&&i.jsx(UM,{}),E("onChange")&&i.jsx(nw.OnChangePlugin,{ignoreSelectionChange:!0,onChange:(H,Q)=>{R(H,Q),_(Q)}}),E("maxLength")&&I&&i.jsx(jT,{maxLength:30}),E("blur")&&i.jsx(nT,{onBlur:j}),E("focus")&&i.jsx(uT,{onFocus:f}),E("treeView")&&O&&i.jsx(uP,{}),E("actionsInspector")&&O&&i.jsx(NR,{isRichText:!0,shouldPreserveNewLinesInMarkdown:!0}),E("select")&&i.jsx(UO,{editor:c}),E("smartPaste")&&i.jsx(wN,{containerSelector:"main[data-app-container]"}),E("clickableLink")&&i.jsx(X9.ClickableLinkPlugin,{}),E("horizontalRule")&&i.jsx(tw.HorizontalRulePlugin,{}),E("tabFocus")&&i.jsx(TN,{}),E("tabIndentation")&&i.jsx(jN,{}),E("collapsible")&&i.jsx(tE,{}),E("callout")&&i.jsx(IN,{}),E("layout")&&i.jsx(Aj,{anchorElem:t}),E("table")&&t&&(y||!L)&&i.jsx(gR,{floatingAnchorElem:t}),E("draggableBlock")&&t&&i.jsx(TI,{isShowAddButton:!L,anchorElem:t}),t&&i.jsxs(i.Fragment,{children:[E("floatingLinkEditor")&&i.jsx(sD,{showTextToolbar:o}),E("actionMenu")&&i.jsx(yR,{anchorElem:t}),E("mediaActions")&&i.jsx(ej,{anchorElem:t}),E("previewCodeEquation")&&i.jsx(pD,{anchorElem:t})]})]}),E("tableOfContents")&&(y?k.contents&&i.jsx(hh,{}):(k.contents||k.contents===void 0)&&i.jsx(hh,{})),E("emptyPage")&&y&&i.jsx(pP,{editor:c})]});return!T||T.length===0?i.jsx(i.Fragment,{children:B}):bP(B,T,k,s,D)}const xP=()=>{const e=p.$getSelection(),n=Qt(),t=n==null?void 0:n.getParent(),r=t==null?void 0:t.getParent();if(n){if(R1())return p.$getRoot().clear(),e.insertParagraph(),!0;if(r instanceof Io||r instanceof cs)return CE();if(t instanceof qn)return zN()}return!1},vP=e=>{const n=p.$getSelection();if(!p.$isRangeSelection(n)||!n.isCollapsed())return!1;const t=n.anchor.getNode();if(t.getPreviousSibling()===null&&n.anchor.offset===0){const r=t.getParent();if(r){const o=p.$createParagraphNode();return o.append(...r.getChildren()),r.replace(o),e.preventDefault(),!0}}return!1},wP=/\.(mp4|webm|ogg|mov|avi|mkv|flv|wmv|m4v|3gp|mpg|mpeg|ts|mts|m2ts|vob)$/i;function y5(e){return e.type.includes("video")||wP.test(e.name)}function kP(e){if(!e)return null;const t=new DOMParser().parseFromString(e,"text/html").body,r=Array.from(t.children);if(r.length!==1)return null;const o=r[0];return o.tagName!=="IMG"||t.textContent&&t.textContent.trim().length>0?null:o.getAttribute("src")||""||null}const SP=(e,n)=>{var t,r,o,s,l,c;if(e.target instanceof HTMLElement&&e.target.closest('[data-editor-dropzone="video"]')||e.target instanceof HTMLElement&&(e.target.closest("[data-editor-image-picker-drop-root]")||e.target.closest("[data-editor-file-picker-drop-root]")||e.target.closest(".mantine-Dropzone-root")))return!1;if(e.dataTransfer){const d=Object.values(e.dataTransfer.files);if(d&&d.length){if(e.preventDefault(),e.target instanceof HTMLElement&&((t=n.current)!=null&&t.insertImages)){(r=p.$getNearestNodeFromDOMNode(e.target))==null||r.selectEnd();const f=d[0];y5(f)&&((o=n.current)!=null&&o.insertVideos)?n.current.insertVideos(d):f.type.includes("image")&&((s=n.current)!=null&&s.insertImages)?n.current.insertImages(d):f.type.includes("audio")&&((l=n.current)!=null&&l.insertMusics)?n.current.insertMusics(d):(c=n.current)!=null&&c.insertFiles&&(n==null||n.current.insertFiles(d))}return!0}}return!1},Q2=()=>{const e=Qt(),n=e==null?void 0:e.getParent();return e&&ls(n)?bE():!1},J2=()=>{const e=Qt(),n=e==null?void 0:e.getParent();return e&&To(n)?AE():!1},EP=(e,n,t)=>{var s,l;const r=Qt(),o=r==null?void 0:r.getParent();if(r){if(To(o))return yE(e);if(hs(o))(l=(s=t.current)==null?void 0:s.onDeleteCallout)==null||l.call(s,n);else{if(Tr(o))return mj(e);if(It(o))return vP(n);if(as(o))return UN(e)}}return!1},MP=(e,n)=>{const t=n.ctrlKey||n.metaKey,r=n.shiftKey,o=n.code==="KeyZ";return t&&r&&o?(n.preventDefault(),e.dispatchCommand(p.REDO_COMMAND,void 0),!0):!1},TP=(e,n,t,r,o)=>{var c,d;if(o)return r.preventDefault(),r.key==="Enter"&&r.shiftKey&&n.insertParagraph(),!0;const s=Qt(),l=s==null?void 0:s.getParent();if(s){if(l instanceof Mn)return pj(e);if(l instanceof Io)return gE(e);if(l instanceof zs)return TS(e);if(l instanceof Ur)return Fj(e);if(l instanceof mr||Mn)return DN()}return(d=(c=t.current)==null?void 0:c.decoratorEnterAction)==null||d.call(c),!1};function LP(e,n){var t,r,o,s,l,c,d,f;if("dataTransfer"in e&&((r=(t=e.dataTransfer)==null?void 0:t.files)!=null&&r.length)){const h=Array.from(e.dataTransfer.files),g=h[0];return y5(g)&&((o=n.current)!=null&&o.insertVideos)?n.current.insertVideos(h):g.type.includes("image")&&((s=n.current)!=null&&s.insertImages)?n.current.insertImages(h):g.type.includes("audio")&&((l=n.current)!=null&&l.insertMusics)?n.current.insertMusics(h):(c=n.current)!=null&&c.insertFiles&&n.current.insertFiles(h),!0}if("clipboardData"in e){const h=(f=(d=e.clipboardData)==null?void 0:d.getData("text/html"))==null?void 0:f.trim();if(kP(h))return!0}return!1}function NP(e){if(!e||e.classList.contains("video-container")||e.classList.contains("resizable-container")||e.classList.contains("editor-image"))return null;if(e.closest("ol, ul"))return e;let n=e;for(;n&&!n.classList.contains("ContentEditable__root");)n=n.parentElement;if(n!=null&&n.classList.contains("ContentEditable__root")){let t=e;for(;t&&t.parentElement!==n;)t=t.parentElement;return t}return null}function jP(e){const{mode:n,maxHeight:t,disable:r,isErrorWs:o,content:s,isLoading:l,imperativeHandleRef:c,editorRef:d,onBlur:f,onFocus:h,onChange:g,outputFormat:C,debounceMs:y}=e,[b,x]=m.useState(null),w=m.useRef(!1),[k,...T]=it.useLexicalComposerContext(),{shiftEnterInsertNewLine:D}=m.useContext(ut);GM({editor:k}),m.useEffect(()=>{k&&k.setEditable(!r)},[k,r]),m.useEffect(()=>{k&&(k.setEditable(!r),d&&(d.current=k),o&&k.update(()=>{if(typeof s=="string"){p.$getRoot().clear();const O=new DOMParser().parseFromString(s,"text/html"),I=H1(k,O);p.$getRoot().select(),p.$insertNodes(I)}else{const E=k.parseEditorState(JSON.stringify(s));k.setEditorState(E)}}))},[o]),m.useEffect(()=>{function E(){k.dispatchCommand(Zf,!0)}function M(I){const F=I.target,R=(F.tagName.toLowerCase()==="img"?F.closest("div.resizable-container__inner"):null)||NP(F);if(!R||F.classList.contains("dsd__theme__table-scrollable-wrapper"))return;(R.classList.contains("selected-block")||R.querySelector(".selected-block"))&&(I.preventDefault(),k.dispatchCommand(hA,{x:I.clientX,y:I.clientY,target:R}))}window.addEventListener("scroll",E);const O=k.getRootElement();return O==null||O.addEventListener("contextmenu",M),()=>{window.removeEventListener("scroll",E),O==null||O.removeEventListener("contextmenu",M)}},[k]);const N=E=>{E!==null&&x(E)};m.useEffect(()=>{const E=M=>{const O=document.activeElement;if(O&&O!==document.body&&O!==document.documentElement)return;const I=navigator.platform.toUpperCase().includes("MAC"),F=I&&M.metaKey&&!M.shiftKey&&M.code==="KeyZ"||!I&&M.ctrlKey&&!M.shiftKey&&M.code==="KeyZ",_=I&&M.metaKey&&M.shiftKey&&M.code==="KeyZ"||!I&&M.ctrlKey&&M.shiftKey&&M.code==="KeyZ";F&&(M.preventDefault(),k.dispatchCommand(p.UNDO_COMMAND,void 0)),_&&(M.preventDefault(),k.dispatchCommand(p.REDO_COMMAND,void 0))};return be.mergeRegister(k.registerCommand(p.BLUR_COMMAND,()=>(window.addEventListener("keydown",E),!1),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.FOCUS_COMMAND,()=>(window.removeEventListener("keydown",E),!1),p.COMMAND_PRIORITY_LOW))},[k]),m.useEffect(()=>be.mergeRegister(k.registerCommand(p.KEY_ENTER_COMMAND,E=>{const M=p.$getSelection();return TP(k,M,c,E,D)},p.COMMAND_PRIORITY_LOW),k.registerCommand(p.DELETE_CHARACTER_COMMAND,()=>xP(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ESCAPE_COMMAND,E=>p.$getSelection()?(k.blur(),p.$setSelection(null),ko(E),!0):!1,p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_DOWN_COMMAND,E=>MP(k,E),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ARROW_UP_COMMAND,()=>J2(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ARROW_LEFT_COMMAND,()=>J2(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ARROW_DOWN_COMMAND,()=>Q2(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.PASTE_COMMAND,E=>LP(E,c),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.DROP_COMMAND,E=>SP(E,c),p.COMMAND_PRIORITY_HIGH),k.registerCommand(p.KEY_ARROW_RIGHT_COMMAND,()=>Q2(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>{const E=p.$getSelection();E.format=0,E.setStyle("");const M=E.insertParagraph();return M&&(M.__format=0),!0},p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_BACKSPACE_COMMAND,E=>EP(k,E,c),p.COMMAND_PRIORITY_HIGH)),[k]);const L={onRef:N,floatingAnchorElem:b,maxHeight:t,showTextToolbar:w,mode:n,isLoading:l,editor:k,onBlur:f,onFocus:h,onChange:g,outputFormat:C,debounceMs:y};return i.jsx(yP,{...L})}function RP(e){const n=new URL(e),t=`${n.origin}${n.pathname}`,r=n.searchParams.get("token");return{baseUrl:t,token:r}}function IP(e,n,t="http://localhost"){const r=DP(e,n),{baseUrl:o,token:s}=RP(t);let l={};return s&&(l={params:{token:s}}),new _C(o,e,r,{connect:!1,...l})}function DP(e,n){let t=n.get(e);return t===void 0?(t=new pC.Doc,n.set(e,t)):t.load(),t}const OP=Os?"":"os-windows",x5=({children:e})=>i.jsx("div",{className:`doc-space-styles-provider ${OP}`,children:e}),ut=m.createContext({maxFileSize:5,disable:!1,excludeNodes:{},imagePickerSettings:{},pages:[],plugins:[]}),v5=({initialContent:e,onChange:n,outputFormat:t,mode:r,maxHeight:o,onBlur:s,onFocus:l,fetchUploadMedia:c,fileChunkUploadApi:d,fetchPromptResult:f,fetchSmartPastePrompt:h,fetchSmartPasteStreamPrompt:g,fetchDeleteMedia:C,fetchRestoreMedia:y,pageId:b,commentController:x,maxFileSize:w,contentModalUploadImage:k,maxImageSizeError:T,debounce:D,disable:N,ws:L,excludeNodes:E={},imagePickerSettings:M={},childPages:O,linkablePages:I,language:F,shiftEnterInsertNewLine:_,editorRef:R,placeholder:j,plugins:K=[],onTrack:W})=>{const B=r||"default",H=e||"<p></p>";let Q=!!(L!=null&&L.url);const{historyState:ee}=S1(),ae=m.useRef({}),pe=m.useRef(null),[Le,Se]=m.useState("initial"),[we,de]=m.useState(null),ne=m.useCallback($=>{$.update(()=>{if(typeof H=="string"){const q=new DOMParser().parseFromString(H,"text/html"),re=H1($,q);p.$insertNodes(re),p.$setSelection(null)}})},[]),Z=m.useMemo(()=>{window.editorAppVersion=`version @layers-app/editor:${A8.version}`,B==="comment"&&document.body.setAttribute("mode","true");const $=WM(B,K),J=N?$.filter(q=>q!==In&&q!==Qr):$;return{editable:!N,editorState:null,namespace:"layers",nodes:J,onError:q=>{throw q},theme:S8(B)}},[K,N,B]);m.useEffect(()=>{F&&_f.changeLanguage(F)},[F]);const ce=()=>typeof H=="string"?ne:JSON.stringify(H),le=m.useCallback(($,J)=>{const q=IP($,J,L==null?void 0:L.url);return q.on("status",re=>{re.status==="connecting"&&Se(re.status)}),setTimeout(()=>de(q),0),q},[]),se=m.useCallback(()=>{var re;const $=we.awareness,q=Array.from($.getStates().entries()).map(([he,ke])=>({id:String(he),userId:he,name:ke.name,color:ke.color,awarenessData:ke.awarenessData})).filter((he,ke,De)=>ke===De.findIndex(Ee=>Ee.name===he.name));(re=L==null?void 0:L.getActiveUsers)==null||re.call(L,q)},[we]);m.useEffect(()=>{if(we!=null)return we.awareness.on("update",se),()=>we.awareness.off("update",se)},[we,se]),m.useEffect(()=>{if(we!=null&&we.ws){const $=we.ws;let J=0;$?($.addEventListener("message",q=>{if(typeof q.data!="string"){J===1&&Se("connected"),J++;return}const re=JSON.parse(q.data);re["active-users"]&&console.log("message",re["active-users"]),re.error&&(re.error==="Unauthorized"?(console.error("Connection unauthorized: You are not authorized to access this WebSocket."),we.disconnect()):re.error==="No token provided"?(console.error("No token provided: You must provide a token."),we.disconnect()):(console.error("Unknown error:",re.error),we.disconnect()),Se("error"))}),$.addEventListener("close",q=>{console.error("WebSocket connection closed:",q),Se("error")})):console.error("WebSocket is not initialized yet.")}},[we==null?void 0:we.ws]),m.useEffect(()=>()=>{we instanceof _C&&(we.destroy(),we.disconnect())},[we]),Q||(Z.editorState=ce());const Y=Le==="connecting"&&Q,oe=m.useMemo(()=>{const $={...E};return c||($.photo=!0,$.video=!0,$.audio=!0,$.file=!0),r!=="editor"&&($.childDocs=!0),N||($.previewCodeEquation=!0),{fetchDeleteMedia:C,fetchUploadMedia:c,fileChunkUploadApi:d,fetchRestoreMedia:y,fetchPromptResult:f,fetchSmartPastePrompt:h,fetchSmartPasteStreamPrompt:g,onTrack:W,maxFileSize:w||5,contentModalUploadImage:k,maxImageSizeError:T,shiftEnterInsertNewLine:_,commentController:x,disable:N||!1,pageId:b,mode:B,excludeNodes:$,imagePickerSettings:M,imperativeHandleRef:ae,maxHeight:o,pages:(O==null?void 0:O.items)??[],childPagesLoading:(O==null?void 0:O.isLoading)??!1,linkablePages:I,placeholder:j,plugins:K}},[O,b,x,j,K,I,E,c,d,C,y,f,W,w,k,T,_,N,B,M,o]);return i.jsx(ut.Provider,{value:oe,children:i.jsx(Ze.I18nextProvider,{i18n:_f,children:i.jsx(x5,{children:i.jsxs(d7,{children:[i.jsx("div",{ref:pe}),i.jsxs("div",{className:`doc-space-editor-wrapper ${B}${N?" disabled":""}`,children:[i.jsx(v.LoadingOverlay,{visible:Y,overlayProps:{radius:"sm",blur:2}}),i.jsx($M,{children:i.jsx(H9.LexicalCollaboration,{children:i.jsxs(Z9.LexicalComposer,{initialConfig:Z,children:[L&&Le!=="error"?i.jsx(Y9.CollaborationPlugin,{id:L.id,providerFactory:le,username:L.user.name,cursorColor:L.user.color,awarenessData:L.user.awarenessData,shouldBootstrap:!0,cursorsContainerRef:pe,initialEditorState:ce()}):i.jsx(Rh.HistoryPlugin,{externalHistoryState:ee}),i.jsx(eT,{children:i.jsx(pR,{children:i.jsx(IT,{children:i.jsx(bS,{children:i.jsx("div",{className:"editor-shell",children:i.jsx(jP,{editorRef:R,maxHeight:o,mode:B,disable:N||!1,isErrorWs:Le==="error",content:H,isLoading:Y,imperativeHandleRef:ae,onBlur:s,onFocus:l,onChange:n,outputFormat:t,debounceMs:D})})})})})})]})})})]})]})})})})},w5=m.createContext(null);function PP({config:e,children:n,imperativeHandleRef:t}){const[r,o]=m.useState(0),s=m.useRef(new Set),l=m.useCallback(h=>{var g;if(!s.current.has(h)){s.current.add(h);const C=s.current.size;o(C),(g=e.onUploadStateChange)==null||g.call(e,C>0,C)}},[e]),c=m.useCallback(h=>{var g;if(s.current.has(h)){s.current.delete(h);const C=s.current.size;o(C),(g=e.onUploadStateChange)==null||g.call(e,C>0,C)}},[e]),d=m.useCallback((h,g,C)=>{if(!e.onError)return;let y;if(h&&typeof h=="object"&&"status"in h&&typeof h.status=="number"){const b=h;y={status:b.status,statusText:b.statusText||"",message:b.message||(b.data&&typeof b.data=="object"&&"message"in b.data&&typeof b.data.message=="string"?b.data.message:"Request failed"),data:b.data,source:g,videoId:C}}else h instanceof Error?y={status:0,statusText:"Error",message:h.message,source:g,videoId:C}:y={status:0,statusText:"Unknown Error",message:String(h),source:g,videoId:C};e.onError(y)},[e]),f=m.useMemo(()=>({pageId:e.pageId,maxFileSize:e.maxFileSize??5,imperativeHandleRef:t,registerUpload:l,unregisterUpload:c,isUploading:r>0,uploadingCount:r,reportError:d,onTrack:e.onTrack}),[e.pageId,e.maxFileSize,e.onTrack,t,l,c,r,d]);return i.jsx(w5.Provider,{value:f,children:n})}function Y1(){const e=m.useContext(w5);if(!e)throw new Error("useVideoContext must be used within a VideoConfigProvider");return e}const Lh=p.createCommand("INSERT_VIDEO_COMMAND"),k5=p.createCommand("UPLOAD_VIDEO_COMMAND");function S5(e,n=!1){const t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);if(t&&t[2].length===11)return{platform:"youtube",id:t[2]};const r=e.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/);if(r){const c=r[1]||r[3],d=r[2]||r[4];return{platform:"vk",id:`${c}-${d}`}}const o=e.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/);if(o)return{platform:"rutube",id:o[1]};if(e==="upload")return{platform:"upload",id:null};if(n)return{platform:"link",id:e};const s=e.match(/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/i);if(s)return{platform:"download",id:s[1]};const l=e.split("/").pop();return l?{platform:"download",id:l}:{platform:"unknown",id:null}}function Xo(e,n){let t="";switch(e){case"youtube":t=`https://www.youtube-nocookie.com/embed/${n}`;break;case"download":{t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(n)?`/v1/vod/${n}/master.m3u8`:n;break}case"vk":const r=n.split("-");t=`https://vk.com/video_ext.php?oid=-${r[0]}&id=${r[1]}`;break;case"link":t=n;break;case"rutube":t=`https://rutube.ru/play/embed/${n}`;break}return t}function BP(e){const n=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return!!(n&&n[2].length===11||e.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/)||e.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/)||e.match(/\.(mp4|webm|ogg|mov|avi|mkv)(\?.*)?$/i))}function X2({children:e,className:n}){const t=["media-actions",n].filter(Boolean).join(" ");return i.jsx("div",{className:t,children:e})}function Z1({size:e=32}){return i.jsx("div",{className:"stars-animation",style:{width:e,height:e},children:i.jsxs("svg",{className:"stars-animation__icon",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 32 32",fill:"none",children:[i.jsx("path",{d:"M28.3337 14.444C28.3334 14.0149 27.9856 13.6669 27.5563 13.6666C27.3116 13.6666 27.0808 13.782 26.9339 13.9778L23.667 18.332V20.3333L26.9339 24.6888C27.0808 24.8846 27.3117 25 27.5563 25C27.9856 24.9997 28.3334 24.6517 28.3337 24.2226V14.444ZM30.3337 24.2226C30.3334 25.7563 29.09 26.9997 27.5563 27C26.7913 27 26.0643 26.6853 25.5433 26.138L25.3337 25.8893L21.8675 21.2669C21.7377 21.0938 21.667 20.883 21.667 20.6666V18C21.667 17.7836 21.7377 17.5728 21.8675 17.3997L25.3337 12.7773L25.5433 12.5286C26.0643 11.9813 26.7913 11.6666 27.5563 11.6666C29.09 11.6669 30.3334 12.9103 30.3337 14.444V24.2226Z",fill:"currentColor"}),i.jsx("path",{className:"stars-animation__star stars-animation__star--a",d:"M13.0377 7.63672C13.3768 6.78166 14.6243 6.79378 14.9622 7.63803L15.0208 7.83073V7.83334C15.4133 9.75317 16.9135 11.2534 18.8333 11.6458C19.944 11.873 19.944 13.4604 18.8333 13.6875C16.9134 14.08 15.4133 15.5802 15.0208 17.5V17.5013C14.794 18.6022 13.2074 18.6194 12.9791 17.5C12.5866 15.5803 11.0864 14.08 9.16662 13.6875C8.05579 13.4604 8.05579 11.8729 9.16662 11.6458C11.0864 11.2534 12.5866 9.75313 12.9791 7.83334L13.0377 7.63672ZM14 10.5521C13.4583 11.403 12.7363 12.1251 11.8854 12.6667C12.7359 13.2081 13.4584 13.9295 14 14.78C14.5413 13.9298 15.2631 13.208 16.1132 12.6667C15.2628 12.1251 14.5413 11.4027 14 10.5521Z",fill:"#FAB005"}),i.jsx("path",{d:"M1.6665 19.1634C1.6665 16.9963 1.66552 15.2828 1.82536 13.9303C1.98784 12.5557 2.32831 11.4237 3.104 10.4785C3.36704 10.158 3.66108 9.86395 3.98161 9.60086C4.88967 8.85562 5.97067 8.51046 7.27327 8.34045C7.82065 8.26937 8.32162 8.65631 8.39307 9.20373C8.46429 9.7512 8.07858 10.2534 7.53109 10.3248C6.42818 10.4688 5.76031 10.7286 5.25114 11.1464C5.03175 11.3265 4.82966 11.5273 4.64958 11.7467C4.21474 12.2766 3.9512 12.9788 3.81104 14.1647C3.66826 15.3726 3.6665 16.9472 3.6665 19.1634C3.6665 21.3779 3.6677 22.9977 3.81104 24.2506C3.95301 25.4913 4.22137 26.2274 4.64958 26.7493C4.82978 26.9688 5.03186 27.1696 5.25114 27.3496C5.78094 27.7843 6.4823 28.0492 7.66781 28.1894C8.87569 28.3322 10.4504 28.3339 12.6665 28.3339C14.8826 28.3339 16.4573 28.3322 17.6652 28.1894C18.8508 28.0492 19.5521 27.7843 20.0819 27.3496C20.3011 27.1697 20.5033 26.9688 20.6834 26.7493C21.1182 26.2195 21.3818 25.5171 21.522 24.3313C21.6647 23.1236 21.6665 21.5496 21.6665 19.3339C21.6665 16.3651 21.6585 14.5741 21.3423 13.3144C21.2078 12.7788 21.5333 12.2355 22.0688 12.1009C22.6045 11.9664 23.1479 12.2918 23.2824 12.8274C23.6739 14.3871 23.6665 16.4847 23.6665 19.3339C23.6665 21.5009 23.6675 23.2146 23.5076 24.567C23.3452 25.9412 23.0045 27.0725 22.229 28.0175C21.966 28.338 21.6724 28.6331 21.3514 28.8964C20.4062 29.6721 19.2742 30.0126 17.8996 30.1751C16.547 30.3349 14.8336 30.3339 12.6665 30.3339C10.4994 30.3339 8.78597 30.3349 7.43343 30.1751C6.05888 30.0126 4.92684 29.6721 3.98161 28.8964C3.66082 28.6332 3.36705 28.338 3.104 28.0175C2.32195 27.0644 1.98474 25.8816 1.82406 24.4772C1.66477 23.0846 1.6665 21.3316 1.6665 19.1634Z",fill:"currentColor"}),i.jsx("path",{className:"stars-animation__star stars-animation__star--b",opacity:"0.5",d:"M20.1611 3.07952C20.2736 2.529 21.0601 2.529 21.1727 3.07952C21.4212 4.29541 22.3715 5.24561 23.5873 5.49413C24.1379 5.60666 24.1379 6.39325 23.5873 6.50578C22.3715 6.7543 21.4212 7.7045 21.1727 8.9204C21.0601 9.47092 20.2736 9.47092 20.1611 8.9204C19.9125 7.7045 18.9624 6.7543 17.7464 6.50578C17.1959 6.39325 17.1959 5.60666 17.7464 5.49413C18.9624 5.24561 19.9125 4.29541 20.1611 3.07952Z",fill:"currentColor"})]})})}function G1({size:e="sm",w:n=150,comboboxProps:t,rightSection:r,renderOption:o,data:s,value:l,defaultValue:c,onChange:d,inputClassName:f,...h}){var B;const{onClick:g,type:C,onCopy:y,onCut:b,onPaste:x,classNames:w,allowDeselect:k,...T}=h,N=[typeof w=="object"&&w&&"input"in w?w.input:void 0,f].filter(Boolean).join(" ")||void 0,L=N?{...typeof w=="object"&&w?w:{},input:N}:w,[E,M]=m.useState(""),O=v.useCombobox({onDropdownClose:()=>{O.resetSelectedOption(),O.focusTarget(),M("")},onDropdownOpen:()=>{O.focusSearchInput()}}),I=m.useMemo(()=>(Array.isArray(s)?s:[]).map(H=>typeof H=="string"?{value:H,label:H}:H),[s]),F=l??c??null,_=((B=I.find(H=>H.value===F))==null?void 0:B.label)??"",R=(H,Q,ee)=>o?o({option:{value:H,label:Q},checked:ee}):i.jsxs(v.Group,{justify:"space-between",wrap:"nowrap",w:"100%",children:[Q,ee&&i.jsx(te,{icon:tr,size:16,color:"var(--primary-color-text, #4C6EF5)"})]}),{width:j,...K}=t||{},W=j??"target";return i.jsxs(v.Combobox,{store:O,withinPortal:!0,onOptionSubmit:H=>{const Q=I.find(ee=>ee.value===H)??{value:H,label:H};d==null||d(H,Q),O.closeDropdown()},width:W,...K,children:[i.jsx(v.Combobox.Target,{children:i.jsx(v.InputBase,{component:"button",size:e,w:n,classNames:L,pointer:!0,rightSection:r??i.jsx(te,{icon:Ds,size:16,className:"editor-select__chevron"}),rightSectionPointerEvents:"none",onClick:H=>{g==null||g(H),O.toggleDropdown()},...T,children:_})}),i.jsx(v.Combobox.Dropdown,{children:i.jsx(v.Combobox.Options,{style:{maxHeight:396,overflowY:"auto"},children:I.length>0?I.map(H=>{const Q=H.value===F;return i.jsx(v.Combobox.Option,{value:H.value,children:R(H.value,H.label,Q)},H.value)}):i.jsx(v.Combobox.Empty,{children:"Nothing found"})})})]})}function Fu(){return""}function _P(){return typeof window<"u"&&window.location.hostname==="dev-app.layers.md"?"https://api.layers.md":""}function al(){return{}}async function FP(e,n,t,r,o,s,l,c){return new Promise((d,f)=>{const h=_P()+`/v1/videos/${e}/upload`,g=n.slice(t,r+1),C=`bytes ${t}-${r}/${o}`,y=new XMLHttpRequest;if(c(y),s.aborted){f(new Error("Upload cancelled"));return}s.addEventListener("abort",()=>y.abort(),{once:!0}),y.upload.addEventListener("progress",x=>{x.lengthComputable&&l(x.loaded)}),y.addEventListener("load",()=>{if(y.status>=200&&y.status<300)try{const w=(y.getResponseHeader("content-type")||"").includes("application/json")?JSON.parse(y.responseText):y.responseText;d(typeof w=="object"&&w!==null?w:{})}catch(x){f(x)}else if(y.status===409){try{const w=(y.getResponseHeader("content-type")||"").includes("application/json")?JSON.parse(y.responseText):{};if(w&&typeof w=="object"&&"expectedOffset"in w){d({expectedOffset:w.expectedOffset});return}}catch{}f({status:409,statusText:y.statusText,data:{message:"Upload conflict"}})}else{let x={};try{x=(y.getResponseHeader("content-type")||"").includes("application/json")?JSON.parse(y.responseText):y.responseText}catch{x={message:"Unknown error"}}f({status:y.status,statusText:y.statusText,data:x})}}),y.addEventListener("error",()=>{f({status:0,statusText:"Network Error",data:{message:"Network error occurred"}})}),y.addEventListener("abort",()=>{const x=new Error("Upload cancelled");x.isPaused=!0,f(x)}),y.open("PUT",h,!0);const b={"Content-Range":C,...al()};Object.keys(b).forEach(x=>y.setRequestHeader(x,b[x])),y.withCredentials=!0,y.send(g)})}async function Wu(e,n,t=6e4){const r=new AbortController,o=setTimeout(()=>r.abort(),t);try{const s=await fetch(e,{...n,signal:r.signal});return clearTimeout(o),s}catch(s){throw clearTimeout(o),s}}async function WP(e,n,t="PAGE",r,o){const s=Fu()+"/v1/videos/init",l={"Content-Type":"application/json",...al()},c={parentId:n,parentType:t,file:{originalFileName:e.name,contentType:e.type||"application/octet-stream",bytesTotal:e.size}};try{const d=await Wu(s,{method:"POST",headers:l,body:JSON.stringify(c),credentials:r?void 0:"include"},3e4);if(!d.ok){let h={};try{const C=await d.text();C&&(h=JSON.parse(C))}catch{h={message:"Unknown error"}}const g={status:d.status,statusText:d.statusText,data:h};throw console.error("initVideo API error:",{url:s,status:d.status,statusText:d.statusText,data:h,requestBody:c}),g}return await d.json()}catch(d){throw(d==null?void 0:d.name)==="AbortError"?(console.error("initVideo timeout"),{status:408,statusText:"Request Timeout",data:{message:"Request timeout"}}):d!=null&&d.status?d:(console.error("initVideo fetch error:",{url:s,error:(d==null?void 0:d.message)||d}),{status:0,statusText:"Network Error",data:{message:(d==null?void 0:d.message)||"Network error occurred"}})}}async function ji(e,n,t){const r=(n||Fu())+`/v1/videos/${e}/status`,o={...t||al()};try{const s=await Wu(r,{method:"GET",headers:o,credentials:n?void 0:"include"},1e4);if(!s.ok){const c=await s.json().catch(()=>({}));throw console.error("fetchStatus API error:",{url:r,status:s.status,statusText:s.statusText,data:c}),{status:s.status,statusText:s.statusText,data:c}}return await s.json()}catch(s){throw(s==null?void 0:s.name)==="AbortError"?(console.error("fetchStatus timeout"),{status:408,statusText:"Request Timeout",data:{message:"Request timeout"}}):s!=null&&s.status?s:(console.error("fetchStatus fetch error:",{url:r,error:(s==null?void 0:s.message)||s}),{status:0,statusText:"Network Error",data:{message:(s==null?void 0:s.message)||"Network error occurred"}})}}async function zP(e,n,t,r){const o=Fu()+`/v1/videos/${e}/cover`,s=new FormData;s.append("file",n);const l=await Wu(o,{method:"POST",headers:al(),body:s,credentials:"include"},3e4);if(!l.ok){const c=await l.json().catch(()=>({}));throw{status:l.status,statusText:l.statusText,data:c}}return l.json()}async function KP(e,n,t){const r=Fu()+`/v1/videos/${e}/retry`,o={...al()};try{const s=await Wu(r,{method:"POST",headers:o,credentials:n?void 0:"include"},3e4);if(!s.ok){const l=await s.json().catch(()=>({}));throw console.error("retryVideoProcessing API error:",{url:r,status:s.status,statusText:s.statusText,data:l}),{status:s.status,statusText:s.statusText,data:l}}}catch(s){throw(s==null?void 0:s.name)==="AbortError"?(console.error("retryVideoProcessing timeout"),{status:408,statusText:"Request Timeout",data:{message:"Request timeout"}}):s!=null&&s.status?s:(console.error("retryVideoProcessing fetch error:",{url:r,error:(s==null?void 0:s.message)||s}),{status:0,statusText:"Network Error",data:{message:(s==null?void 0:s.message)||"Network error occurred"}})}}const UP=2e3;function HP(e){return!e||e.playable!==!0?null:e.downloadUrl?e.downloadUrl:e.primaryUrl&&e.optimizedReady||e.proxyReady&&e.primaryUrl?e.primaryUrl:e.rawPlayable&&e.rawUrl?e.rawUrl:e.primaryUrl?e.primaryUrl:e.rawUrl?e.rawUrl:e.fallbackUrl?e.fallbackUrl:null}function YP(e){return!e||e.playable!==!0?null:e.rawPlayable&&e.rawUrl?e.rawUrl:e.proxyReady&&e.primaryUrl?e.primaryUrl:null}function ZP({videoId:e,baseUrl:n,authHeaders:t,enabled:r=!0}){const[o,s]=m.useState(null),[l,c]=m.useState(!0),d=m.useRef(null),f=m.useCallback(()=>{d.current&&(clearInterval(d.current),d.current=null)},[]),h=m.useCallback(()=>{if(f(),!e||!r)return;c(!0);const k=e,T=async()=>{var D;if(k)try{const N=await ji(k,n,t);if(s(N),N.failure){f();return}if(((D=N.playback)==null?void 0:D.optimizedReady)===!0){f();return}}catch(N){if((N==null?void 0:N.status)===404||(N==null?void 0:N.statusText)==="Not Found"){c(!1),f();return}console.error("Video status polling error:",(N==null?void 0:N.message)||N)}};d.current=setInterval(T,UP),T()},[e,r,n,t,f]);m.useEffect(()=>(r&&e?h():(f(),c(!0)),()=>{f()}),[r,e,h,f]);const g=(o==null?void 0:o.playback)||null,C=HP(g),y=(g==null?void 0:g.primaryUrl)||null,b=(g==null?void 0:g.optimizedReady)===!0,x=(g==null?void 0:g.rawPlayable)===!0,w=YP(g);return{status:o,playback:g,videoUrl:C,primaryUrl:y,optimizedReady:b,nativeVideoUrl:w,rawPlayable:x,isStatusAvailable:l}}const GP=18e4;function VP(e){if(!e)return"analysis";switch(e){case"QUEUED":case"PROXY_LQ":case"TRANSCODING":return"analysis";case"PACKAGING":case"THUMBNAILS":return"conversion";default:return"analysis"}}function qP({videoId:e,status:n,onAnalysisComplete:t,onConversionComplete:r,onError:o}){const[s,l]=m.useState({percent:0,stage:"analysis",remaining:void 0}),[c,d]=m.useState(!1),[f,h]=m.useState(!1),g=m.useRef(!1),C=m.useRef(""),y=m.useRef(0),b=m.useRef(!1),x=m.useRef(!1),w=m.useRef(!1),k=m.useRef(0),T=m.useRef(t),D=m.useRef(r),N=m.useRef(o);T.current=t,D.current=r,N.current=o,m.useEffect(()=>{var j,K,W,B,H,Q;if(!c||f||!n)return;if(n.failure){const ee=n.failure,ae=(ee==null?void 0:ee.message)||(ee==null?void 0:ee.reason)||"Unknown error";console.error("Video processing failed:",ae),d(!1),(j=N.current)==null||j.call(N);return}const F=n.playback||null,_=(F==null?void 0:F.playable)===!0,R=(F==null?void 0:F.optimizedReady)===!0;if(_&&!x.current&&(x.current=!0,(K=T.current)==null||K.call(T)),_&&!w.current&&(w.current=!0,(W=D.current)==null||W.call(D)),R){x.current||(x.current=!0,(B=T.current)==null||B.call(T)),w.current||(w.current=!0,(H=D.current)==null||H.call(D)),d(!1);return}if(n.processing){const ee=n.processing,ae=ee.percent!=null?ee.percent:0,pe=VP(ee.stage),Le=JSON.stringify({stage:ee.stage,percent:ae});Le!==C.current&&(C.current=Le,y.current=Date.now(),b.current=!1,pe==="conversion"&&!x.current&&(x.current=!0,(Q=T.current)==null||Q.call(T)));const Se=Date.now();!b.current&&y.current>0&&Se-y.current>GP&&(b.current=!0);const we=Math.max(k.current,ae);k.current=we,l({percent:we,stage:pe,remaining:we<100?Math.ceil((100-we)/5):void 0})}},[c,f,n]);const L=m.useCallback(()=>{e&&(d(!0),g.current=!1,h(!1),x.current=!1,k.current=0,l({percent:0,stage:"analysis",remaining:void 0}),C.current="",y.current=0,b.current=!1,w.current=!1)},[e]),E=m.useCallback(()=>{e&&(d(!0),g.current=!1,h(!1),l({percent:0,stage:"conversion",remaining:void 0}))},[e]),M=m.useCallback(()=>{g.current=!0,h(!0)},[]),O=m.useCallback(()=>{g.current=!1,h(!1)},[]),I=m.useCallback(()=>{d(!1),h(!1),g.current=!1,k.current=0,l({percent:0,stage:"analysis",remaining:void 0}),x.current=!1,C.current="",y.current=0,b.current=!1,w.current=!1},[]);return{transcodingProgress:s,isTranscoding:c,isPaused:f,startAnalysis:L,startConversion:E,handlePause:M,handleResume:O,handleCancel:I}}function QP({onError:e,parentId:n,parentType:t="PAGE"}){const r=m.useMemo(()=>({init:async(s,l,c)=>{var f,h;const d=await WP(s,l,c);return{id:d.videoId,startOffset:(h=(f=d.status)==null?void 0:f.upload)==null?void 0:h.nextOffset}},uploadChunk:FP,fetchOffset:async s=>{var c;const l=await ji(s);return{nextOffset:(c=l==null?void 0:l.upload)==null?void 0:c.nextOffset}}}),[]),o=gA({api:r,parentId:n,parentType:t,onError:s=>{const l=o.uploadId;(s==null?void 0:s.status)===409?e("offset-mismatch",l,s):e("interrupted",l,s)}});return{uploadProgress:o.uploadProgress,isUploading:o.isUploading,isPaused:o.isPaused,handleUpload:o.handleUpload,handlePause:o.handlePause,handleResume:o.handleResume,handleCancel:o.handleCancel,uploadVideoId:o.uploadId}}function E5({size:e=32}){return i.jsxs("div",{className:"video-analysis-animation",style:{width:e,height:e,display:"flex",alignItems:"center",justifyContent:"center"},children:[i.jsxs("svg",{className:"video-analysis-animation__icon",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 32 32",fill:"none",children:[i.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--1",d:"M17.3334 9.66663C17.8857 9.66663 18.3334 10.1143 18.3334 10.6666C18.3334 11.2189 17.8857 11.6666 17.3334 11.6666H14.6667C14.1145 11.6666 13.6667 11.2189 13.6667 10.6666C13.6667 10.1143 14.1145 9.66663 14.6667 9.66663H17.3334Z"}),i.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--2",d:"M21.6667 14.6667C21.6667 12.4388 21.665 10.8684 21.5053 9.67973C21.3493 8.51981 21.0592 7.87424 20.5925 7.40759C20.1258 6.94094 19.4803 6.65077 18.3204 6.49483C17.1318 6.33507 15.5613 6.33338 13.3334 6.33338H12.0001C9.77219 6.33338 8.20173 6.33508 7.0131 6.49483C5.85319 6.65078 5.20761 6.94095 4.74097 7.40759C4.27432 7.87424 3.98415 8.51982 3.82821 9.67973C3.66845 10.8684 3.66675 12.4388 3.66675 14.6667V17.3334C3.66675 19.5613 3.66845 21.1317 3.82821 22.3204C3.98415 23.4802 4.27432 24.1258 4.74097 24.5925C5.20761 25.0591 5.85319 25.3493 7.0131 25.5053C8.20173 25.665 9.7722 25.6667 12.0001 25.6667H13.3334C15.5613 25.6667 17.1318 25.665 18.3204 25.5053C19.4803 25.3493 20.1258 25.0591 20.5925 24.5925C21.0592 24.1258 21.3494 23.4802 21.5053 22.3204C21.665 21.1317 21.6667 19.5613 21.6667 17.3334V14.6667ZM23.6667 17.3334C23.6667 19.505 23.6689 21.2344 23.4871 22.5873C23.3013 23.9689 22.9067 25.1063 22.0066 26.0066C21.1064 26.9067 19.969 27.3013 18.5873 27.487C17.2344 27.6689 15.505 27.6667 13.3334 27.6667H12.0001C9.82846 27.6667 8.09909 27.6689 6.74618 27.487C5.36452 27.3013 4.22708 26.9067 3.32691 26.0066C2.42676 25.1063 2.03221 23.9689 1.84644 22.5873C1.66454 21.2344 1.66675 19.505 1.66675 17.3334V14.6667C1.66675 12.4951 1.66454 10.7657 1.84644 9.4128C2.0322 8.03114 2.42673 6.8937 3.32691 5.99353C4.22708 5.09335 5.36451 4.69883 6.74618 4.51306C8.0991 4.33117 9.82847 4.33338 12.0001 4.33338H13.3334C15.505 4.33338 17.2344 4.33117 18.5873 4.51306C19.969 4.69883 21.1064 5.09338 22.0066 5.99353C22.9067 6.89371 23.3013 8.03114 23.4871 9.4128C23.6689 10.7657 23.6667 12.4951 23.6667 14.6667V17.3334Z"}),i.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--3",d:"M28.3332 17.0429V14.957C28.3332 13.0616 28.331 11.7506 28.2017 10.8359C28.0693 9.90011 27.8504 9.74905 27.7551 9.70179C27.6735 9.66142 27.4467 9.57162 26.6666 10.0429C25.898 10.5072 24.9084 11.322 23.4712 12.5078L23.3033 12.6458C22.8773 12.9973 22.2472 12.9364 21.8957 12.5104C21.5443 12.0844 21.6039 11.4543 22.0298 11.1028L22.1978 10.9648C23.5816 9.82307 24.7074 8.89105 25.6327 8.332C26.5446 7.78112 27.5909 7.38889 28.6431 7.91012C29.6814 8.4248 30.0312 9.48824 30.1822 10.556C30.3361 11.6446 30.3332 13.1276 30.3332 14.957V17.0429C30.3332 18.8728 30.3362 20.3566 30.1822 21.4453C30.0311 22.5127 29.6822 23.5751 28.6444 24.0898H28.6431C27.5909 24.611 26.5446 24.2188 25.6327 23.6679C24.7074 23.1089 23.5816 22.1769 22.1978 21.0351L22.0298 20.8971C21.6039 20.5456 21.5443 19.9155 21.8957 19.4895C22.2473 19.0636 22.8773 19.0026 23.3033 19.3541L23.4712 19.4922C24.9084 20.678 25.898 21.4927 26.6666 21.957C27.4466 22.4282 27.6734 22.3385 27.7551 22.2981C27.8505 22.2509 28.0693 22.0998 28.2017 21.164C28.331 20.2494 28.3332 18.9384 28.3332 17.0429Z"}),i.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--4",d:"M3.82796 22.3203C3.6682 21.1317 3.66651 19.5612 3.66651 17.3333V16H1.6665V17.3333C1.66651 19.5049 1.6643 21.2343 1.84619 22.5872C2.03196 23.9689 2.42651 25.1063 3.32666 26.0065C4.22684 26.9067 5.36427 27.3012 6.74593 27.487C8.08281 27.6667 9.78728 27.6667 11.9228 27.6667H11.9998H13.3332H13.4102C15.5457 27.6667 17.2502 27.6667 18.5871 27.487C19.9687 27.3012 21.1061 26.9066 22.0063 26.0065C22.9065 25.1063 23.3011 23.9689 23.4868 22.5872C23.6666 21.2504 23.6665 19.5459 23.6665 17.4104V17.3333V16H21.6665V17.3333C21.6665 19.5612 21.6648 21.1317 21.505 22.3203C21.3491 23.4802 21.0589 24.1257 20.5923 24.5924C20.1256 25.0591 19.48 25.3493 18.3202 25.5052C17.1315 25.665 15.5611 25.6667 13.3332 25.6667H11.9998C9.77195 25.6667 8.20149 25.665 7.01286 25.5052C5.85294 25.3493 5.20737 25.0591 4.74072 24.5924C4.27407 24.1257 3.9839 23.4802 3.82796 22.3203Z"}),i.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--5",d:"M30.3334 17.1443L30.3334 17.043V16H28.3334V17.043C28.3334 18.9384 28.3312 20.2494 28.2019 21.1641C28.0696 22.0998 27.8507 22.2509 27.7553 22.2982C27.6736 22.3386 27.4468 22.4283 26.6668 21.957C25.8982 21.4927 24.9086 20.678 23.4715 19.4922L23.3035 19.3542C22.8775 19.0026 22.2475 19.0636 21.8959 19.4896C21.5445 19.9155 21.6041 20.5456 22.0301 20.8971L22.198 21.0352L22.2585 21.0851C23.6147 22.2041 24.7211 23.1171 25.6329 23.668C26.5448 24.2189 27.5911 24.611 28.6433 24.0898H28.6446C29.6824 23.5752 30.0313 22.5127 30.1824 21.4453C30.3335 20.3768 30.3335 18.9277 30.3334 17.1443Z"})]}),i.jsx("div",{className:"video-analysis-animation__line"})]})}function JP({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){const{t:s}=Ze.useTranslation();return i.jsxs(v.Paper,{p:"xl",withBorder:!0,radius:12,style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg)",alignItems:"center"},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs)",alignItems:"center"},children:[o?i.jsx(E5,{size:32}):i.jsx(Z1,{size:32}),i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,alignItems:"center"},children:[i.jsx(v.Text,{size:"md",fw:500,children:s("editor.video.transcoding.title")}),i.jsx(v.Text,{size:"sm",c:"dimmed",children:s("editor.video.transcoding.analysis")})]})]}),i.jsx("div",{style:{width:"100%"},children:i.jsx(bu,{progress:{percent:e.percent,uploaded:0,total:100,speed:0,remaining:e.remaining||0},showSpeed:!1,showRemaining:!1,showInfo:!1})})]}),i.jsx(qa,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})}function XP({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){const{t:s}=Ze.useTranslation();return i.jsxs(v.Paper,{p:"xl",withBorder:!0,radius:12,style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg)",alignItems:"center"},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs)",alignItems:"center"},children:[o?i.jsx(E5,{size:32}):i.jsx(Z1,{size:32}),i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,alignItems:"center"},children:[i.jsx(v.Text,{size:"md",fw:500,children:s("editor.video.transcoding.title")}),i.jsx(v.Text,{size:"sm",c:"dimmed",children:s("editor.video.transcoding.conversion")})]})]}),i.jsx("div",{style:{width:"100%"},children:i.jsx(bu,{progress:{percent:e.percent,uploaded:0,total:100,speed:0,remaining:e.remaining||0},showSpeed:!1,showRemaining:!!e.remaining,showInfo:!1})})]}),i.jsx(qa,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})}function $2({onFileSelect:e,maxFileSize:n}){const t={type:"file",showTabs:["upload"],dropZoneProps:{multiple:!1,maxFiles:1,maxSize:n*1024*1024,accept:{"video/*":[]}},inline:!0,tab:"upload",popoverProps:{opened:!0},onUpload:r=>{r.length>0&&e(r[0])}};return i.jsx(Mt.FilePicker,{...t})}function $P({errorType:e,onRetry:n,onCancel:t,maxFileSize:r}){const{t:o}=Ze.useTranslation(),s=c=>c>=1024?`${(c/1024).toFixed(1)} GB`:`${c} MB`,l=()=>{switch(e){case"size-limit":return o("editor.video.errors.sizeLimit",{size:s(r)});case"format":return i.jsxs(i.Fragment,{children:[o("editor.video.errors.format"),i.jsx("br",{}),o("editor.video.errors.formatHint")]});case"interrupted":return o("editor.video.errors.interrupted");case"offset-mismatch":return o("editor.video.errors.offsetMismatch");case"stall":return o("editor.video.errors.stall");default:return o("editor.video.errors.unknown")}};return i.jsxs(v.Paper,{p:"xl",withBorder:!0,radius:12,style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg, 20px)",alignItems:"center",justifyContent:"center"},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center",width:"100%"},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center"},children:[i.jsx(te,{icon:Fh,size:32,color:"var(--mantine-color-red-filled)",className:"video-upload-error-icon"}),i.jsx(v.Text,{size:"md",fw:500,c:"var(--mantine-color-bright)",style:{lineHeight:1.55},children:o("editor.video.errors.uploadFailed")})]}),i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center",justifyContent:"center",width:"100%"},children:[e==="interrupted"&&i.jsx("div",{style:{width:"100%"},children:i.jsx(v.Progress,{value:100,color:"red",size:6,radius:"md"})}),i.jsx(v.Text,{size:"xs",c:"var(--mantine-color-red-text)",ta:"center",style:{lineHeight:1.4},className:"video-upload-error-message",children:l()})]})]}),e==="interrupted"?i.jsx(qa,{onRetry:n,onCancel:t,showRetry:!0}):i.jsx(v.Button,{variant:"default",size:"sm",onClick:n,style:{height:36,padding:"6px 18px"},children:o("editor.video.actions.selectAnotherFile")})]})}function eB({value:e,disabled:n=!1,error:t,onChange:r,onSubmit:o}){const{t:s}=Ze.useTranslation(),l=m.useCallback(d=>{d.stopPropagation()},[]),c=m.useCallback(d=>{d.stopPropagation()},[]);return i.jsxs("div",{className:"video-upload-link",style:{pointerEvents:"auto",position:"relative",zIndex:10},onClick:l,onMouseDown:l,onMouseUp:l,onPointerDown:c,onPointerUp:c,children:[i.jsx("div",{className:"video-upload-link-input",children:i.jsx(v.TextInput,{value:e,type:"url",variant:"filled",size:"sm",placeholder:s("editor.video.link.placeholder"),disabled:n,error:!!t,w:"100%",leftSection:i.jsx(te,{icon:Jh,size:16}),styles:{input:{pointerEvents:"auto"}},onChange:d=>r(d.currentTarget.value),onKeyDown:d=>{d.stopPropagation(),d.key==="Enter"&&(d.preventDefault(),o())},onClick:l,onMouseDown:l,onPointerDown:c})}),t?i.jsx(v.Text,{size:"xs",className:"video-upload-link-error",children:t}):null,i.jsx("div",{className:"video-upload-link-actions",children:i.jsx(v.Button,{size:"sm",radius:"md",onClick:o,disabled:n||e.trim().length===0,children:s("editor.video.link.save")})})]})}function eC(e){const n=e.match(/(\d+):(\d+):(\d+)\.(\d+)/);if(!n)return 0;const t=Number(n[1]),r=Number(n[2]),o=Number(n[3]),s=Number(n[4]);return t*3600+r*60+o+s/1e3}function M5(e,n){if(e.startsWith("http://")||e.startsWith("https://"))return e;const t=n||(typeof window<"u"?window.location.origin:""),r=e.startsWith("/")?e:`/${e}`;return`${t}${r}`}function tB(e,n){const r=M5(e,n).split("/");return r.pop(),r.join("/")}function nB(e,n,t){const r=e.split(/\r?\n/),o=[],s=tB(n,t);let l=0;for(;l<r.length;){const c=r[l].trim();if(c.includes("-->")){const[d,f]=c.split("-->").map(b=>b.trim()),h=eC(d),g=eC(f),y=(r[l+1]||"").trim().match(/^(sheet_\d+\.jpg)#xywh=(\d+),(\d+),(\d+),(\d+)/);if(y){const b=y[1],x=Number(y[2]),w=Number(y[3]),k=Number(y[4]),T=Number(y[5]),D=`${s}/${b}`;o.push({start:h,end:g,sheetUrl:D,x,y:w,w:k,h:T})}l+=2;continue}l+=1}return o}function tC(e,n){return M5(e,n)}function rB(e){return Math.min(1,Math.max(0,e))}function oB({storyboard:e,baseUrl:n,authHeaders:t,enabled:r=!0}){const[o,s]=m.useState([]),[l,c]=m.useState(0),[d,f]=m.useState(!1),[h,g]=m.useState(()=>new Map),C=m.useRef(new Set),y=r&&(e==null?void 0:e.ready)&&e.vttUrl&&e.metaUrl;m.useEffect(()=>{if(!y){f(!1),s([]),c(0);return}let k=!0;return(async()=>{const D=tC(e.vttUrl,n),N=tC(e.metaUrl,n),E={method:"GET",headers:t||{},credentials:n?void 0:"include"},[M,O]=await Promise.all([fetch(D,E),fetch(N,E)]);if(!M.ok||!O.ok){k&&f(!1);return}const[I,F]=await Promise.all([M.text(),O.json().catch(()=>({}))]);if(!k)return;const _=nB(I,D,n),R=Number(F.durationSec||0);s(_),c(R),f(_.length>0&&R>0)})().catch(()=>{k&&f(!1)}),()=>{k=!1}},[y,e==null?void 0:e.vttUrl,e==null?void 0:e.metaUrl,n,t]);const b=m.useCallback(async k=>{if(h.has(k)||C.current.has(k))return h.get(k);C.current.add(k);const T=new Image,D=await new Promise(N=>{T.onload=()=>N({width:T.naturalWidth,height:T.naturalHeight}),T.onerror=()=>N(null),T.src=k});return C.current.delete(k),D?(g(N=>{const L=new Map(N);return L.set(k,D),L}),D):null},[h]),x=m.useCallback(k=>{if(!d||!l||o.length===0)return null;const T=rB(k),D=Math.min(o.length-1,Math.max(0,Math.floor(T*o.length))),N=o[D],L=h.get(N.sheetUrl);return{...N,sheetWidth:L==null?void 0:L.width,sheetHeight:L==null?void 0:L.height}},[d,l,o,h]),w=m.useMemo(()=>o.map(k=>k.sheetUrl),[o]);return m.useEffect(()=>{if(!d||w.length===0)return;const k=w[0];h.has(k)||b(k).catch(()=>{})},[d,w,h,b]),{ready:d,cues:o,durationSec:l,getFrameAtRatio:x,ensureSheetDimensions:b}}const sB=120,iB=64;function aB({frame:e,left:n,width:t=sB}){const r=m.useMemo(()=>{const o=t/e.w,s=iB,l=e.sheetWidth&&e.sheetHeight?`${e.sheetWidth*o}px ${e.sheetHeight*o}px`:void 0,c=`-${e.x*o}px -${e.y*o}px`;return{container:{left:n,width:t,height:s},image:{backgroundImage:`url('${e.sheetUrl}')`,backgroundSize:l,backgroundPosition:c}}},[e,n,t]);return i.jsx("div",{className:"video-player-storyboard-preview","data-test-id":"video-storyboard-preview",style:r.container,children:i.jsx("div",{className:"video-player-storyboard-preview-image",style:r.image})})}function gr(e){return function({size:t=20,color:r="currentColor"}){return i.jsx(te,{icon:e,size:t,color:r})}}function T5({size:e=20,color:n="currentColor"}){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e*44/42,viewBox:"0 0 42 44",fill:"none","aria-hidden":"true",focusable:"false",children:i.jsx("path",{d:"M7.80209 0.289726C10.2068 -0.391222 12.6819 0.195277 15.3958 1.34962C18.1136 2.50569 21.4619 4.41001 25.724 6.83139C30.1341 9.33682 33.595 11.3004 36.0547 13.097C38.5092 14.8899 40.3262 16.7646 40.9766 19.235C41.4534 21.0471 41.4534 22.9542 40.9766 24.7663C40.3262 27.2368 38.5092 29.1114 36.0547 30.9043C33.595 32.7009 30.1341 34.6644 25.724 37.1699C21.4619 39.5912 18.1136 41.4956 15.3958 42.6517C12.6819 43.8061 10.2069 44.3926 7.80209 43.7116C6.03479 43.2107 4.4259 42.2585 3.13021 40.9512C1.3719 39.1771 0.664657 36.7249 0.330731 33.7741C-0.00366531 30.8183 1.69004e-06 26.9408 1.69004e-06 22.0007C1.68951e-06 17.0605 -0.00366606 13.183 0.330731 10.2272C0.664657 7.27644 1.37188 4.82417 3.13021 3.05014C4.42578 1.74306 6.03454 0.790589 7.80209 0.289726Z",fill:n})})}function lB({size:e=20,color:n="currentColor"}){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",focusable:"false",children:[i.jsx("path",{d:"M8.9585 14.1666C8.9585 14.7382 8.9599 15.2299 8.90723 15.6217C8.85213 16.0313 8.72764 16.4238 8.40918 16.7423C8.09069 17.0607 7.69819 17.1852 7.28858 17.2403C6.89686 17.293 6.40509 17.2916 5.8335 17.2916C5.26191 17.2916 4.77014 17.293 4.37842 17.2403C3.96881 17.1852 3.5763 17.0607 3.25782 16.7423C2.93936 16.4238 2.81487 16.0313 2.75977 15.6217C2.7071 15.2299 2.7085 14.7382 2.7085 14.1666V5.83326C2.7085 5.26167 2.7071 4.7699 2.75977 4.37818C2.81486 3.96855 2.93933 3.57606 3.25782 3.25757C3.5763 2.93908 3.9688 2.81462 4.37842 2.75953C4.77014 2.70686 5.26191 2.70826 5.8335 2.70826C6.40509 2.70826 6.89686 2.70686 7.28858 2.75953C7.6982 2.81462 8.09069 2.93908 8.40918 3.25757C8.72767 3.57606 8.85213 3.96855 8.90723 4.37818C8.9599 4.7699 8.9585 5.26167 8.9585 5.83326V14.1666Z",fill:n}),i.jsx("path",{d:"M17.2915 14.1666C17.2915 14.7382 17.2929 15.2299 17.2402 15.6217C17.1851 16.0313 17.0606 16.4238 16.7422 16.7423C16.4237 17.0607 16.0312 17.1852 15.6216 17.2403C15.2299 17.293 14.7381 17.2916 14.1665 17.2916C13.5949 17.2916 13.1031 17.293 12.7114 17.2403C12.3018 17.1852 11.9093 17.0607 11.5908 16.7423C11.2724 16.4238 11.1479 16.0313 11.0928 15.6217C11.0401 15.2299 11.0415 14.7382 11.0415 14.1666V5.83326C11.0415 5.26167 11.0401 4.76989 11.0928 4.37818C11.1479 3.96856 11.2724 3.57606 11.5908 3.25757C11.9093 2.93911 12.3018 2.81462 12.7114 2.75953C13.1032 2.70686 13.5949 2.70826 14.1665 2.70826C14.7381 2.70826 15.2299 2.70686 15.6216 2.75953C16.0312 2.81462 16.4237 2.93911 16.7422 3.25757C17.0607 3.57606 17.1851 3.96856 17.2402 4.37818C17.2929 4.76989 17.2915 5.26167 17.2915 5.83326V14.1666Z",fill:n})]})}const cB=gr(aA),uB=gr(lA),nC=gr(ak),ts=gr(lo),dB=gr(V8),fB=gr(ok),xi=gr(zC),Eo=gr(tr),L5=gr(fk),N5=gr(Y8),j5=gr(ck),V1=gr(Sc),xc=gr(qh);function hB({size:e=32}){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 32 32",fill:"none","aria-hidden":"true",focusable:"false",children:[i.jsx("path",{d:"M16 1.66699C23.916 1.66699 30.333 8.08391 30.333 16C30.333 23.916 23.916 30.333 16 30.333C8.08391 30.333 1.66699 23.916 1.66699 16C1.66699 8.08392 8.08392 1.66699 16 1.66699Z",fill:"var(--mantine-primary-color-filled, #4c6ef5)"}),i.jsx("path",{d:"M20.5961 11.3243C20.9693 10.9172 21.6018 10.8899 22.0089 11.2631C22.4159 11.6363 22.4432 12.2687 22.0701 12.6758L14.7367 20.6758C14.5525 20.8767 14.2944 20.994 14.0219 21C13.7492 21.006 13.4856 20.8999 13.2927 20.7071L9.9594 17.3737C9.56887 16.9832 9.56887 16.3502 9.9594 15.9597C10.3499 15.5691 10.9829 15.5691 11.3735 15.9597L13.9672 18.5534L20.5961 11.3243Z",fill:"white"})]})}function zu(e,n){return e.startsWith("http://")||e.startsWith("https://")?e:`${n||(typeof window<"u"?window.location.origin:"")}${e}`}function Ku(e){return e?{Authorization:`Bearer ${e}`}:{}}async function rC(e){const n=await e.text();if(!n)return null;try{return JSON.parse(n)}catch{return n}}async function Uu(e){if(!e.ok){const n=await rC(e),t=(n&&typeof n=="object"&&"message"in n?n.message:null)||e.statusText||"Request failed";throw new Error(t)}return rC(e)}function Ri(e){const n=(e==null?void 0:e.id)??(e==null?void 0:e.trackId)??(e==null?void 0:e.subtitleId)??"",t=(e==null?void 0:e.lang)??(e==null?void 0:e.language)??(e==null?void 0:e.srclang)??"",r=t?String(t):"und",o=(e==null?void 0:e.label)??(e==null?void 0:e.name)??(e==null?void 0:e.title)??r,s=o?String(o):r,l=(e==null?void 0:e.kind)??"subtitles",c=!!((e==null?void 0:e.isDefault)??(e==null?void 0:e.default)??!1),d=!!((e==null?void 0:e.isDisabled)??!1),f=typeof(e==null?void 0:e.url)=="string"?e.url:typeof(e==null?void 0:e.vttUrl)=="string"?e.vttUrl:typeof(e==null?void 0:e.src)=="string"?e.src:void 0,h=typeof(e==null?void 0:e.createdAt)=="string"?e.createdAt:void 0,g=typeof(e==null?void 0:e.fileName)=="string"?e.fileName:void 0,C=!!((e==null?void 0:e.auto)??(e==null?void 0:e.isAuto)??(e==null?void 0:e.source)==="auto");return{id:String(n),lang:r,label:s,kind:String(l),isDefault:c,isDisabled:d,url:f,createdAt:h,fileName:g,status:"ready",auto:C}}function cu(e){return e.label.length<=3}async function oC(e,n={}){const t=zu(`/v1/videos/${e}/subtitles`,n.baseUrl),r=await fetch(t,{method:"GET",credentials:"include",headers:{...Ku(n.authToken)}}),o=await Uu(r);return(Array.isArray(o)?o:Array.isArray(o==null?void 0:o.tracks)?o.tracks:[]).map(Ri).filter(l=>l.id)}async function pB(e,n,t,r={}){const o=new URLSearchParams;o.set("lang",t.lang),t.label&&o.set("label",t.label),t.kind&&o.set("kind",t.kind),o.set("default","false");const s=zu(`/v1/videos/${e}/subtitles?${o.toString()}`,r.baseUrl),l=new FormData;l.append("file",n);const c=await fetch(s,{method:"POST",credentials:"include",headers:{...Ku(r.authToken)},body:l,signal:t.signal}),d=await Uu(c);return d?Ri(d):null}async function mB(e,n,t,r={}){const o=zu(`/v1/videos/${e}/subtitles/${n}/disabled`,r.baseUrl),s=await fetch(o,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...Ku(r.authToken)},body:JSON.stringify({isDisabled:t})});await Uu(s)}async function gB(e,n,t={}){const r=zu(`/v1/videos/${e}/subtitles/${n}`,t.baseUrl),o=await fetch(r,{method:"DELETE",credentials:"include",headers:{...Ku(t.authToken)}});await Uu(o)}const CB={en:"English",es:"Español",fr:"Français",de:"Deutsch",it:"Italiano",pt:"Português",ru:"Русский",uk:"Українська",pl:"Polski",nl:"Nederlands",sv:"Svenska",no:"Norsk",da:"Dansk",fi:"Suomi",tr:"Türkçe",ar:"العربية",he:"עברית",hi:"हिन्दी",ja:"日本語",ko:"한국어",zh:"中文",ro:"Română"};function AB({opened:e,onClose:n,settings:t,isSettingsDisabled:r,onSubtitlesOpen:o,onSpeedClick:s,onQualityClick:l,onSubtitleSelect:c,optimisticSpeed:d,setOptimisticSpeed:f}){var N,L;const{t:h}=Ze.useTranslation(),[g,C]=m.useState("main"),y=()=>{n(),C("main")},b=(d??t.currentSpeed)===1?h("editor.video.settings.normal"):`${d??t.currentSpeed}x`,x=((N=t.qualities.find(E=>E.id===t.currentQualityId))==null?void 0:N.label)||h("editor.video.settings.auto"),w=((L=t.subtitles.find(E=>E.id===t.currentSubtitleId))==null?void 0:L.label)||h("editor.video.settings.off"),k=E=>E===1?h("editor.video.settings.normal"):E.toString(),T=d??t.currentSpeed,D=h("editor.video.settingsModal.autoGenerated");return i.jsx(v.Drawer,{opened:e,onClose:y,position:"bottom",size:"auto",withCloseButton:!1,padding:0,lockScroll:!1,withOverlay:!1,classNames:{content:"video-mobile-settings-drawer"},withinPortal:!0,children:i.jsxs("div",{className:"video-mobile-settings-drawer__inner",children:[g==="main"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"video-mobile-settings-drawer__header",children:[i.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.player.settings")}),i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:y,children:i.jsx(xc,{size:16})})]}),i.jsx("div",{className:"video-mobile-settings-drawer__divider"}),i.jsxs("div",{className:"video-mobile-settings-drawer__list",children:[i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__item",disabled:r,onClick:()=>{r||(o==null||o(),C("subtitles"))},children:[i.jsx("span",{className:"video-mobile-settings-drawer__item-icon",children:i.jsx(L5,{size:16})}),i.jsx("span",{className:"video-mobile-settings-drawer__item-label",children:h("editor.video.settings.subtitlesCc")}),i.jsx("span",{className:"video-mobile-settings-drawer__item-value",children:w}),i.jsx("span",{className:"video-mobile-settings-drawer__item-chevron",children:i.jsx(ts,{size:16})})]}),i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__item",disabled:r||!t.hasRealSpeeds,onClick:()=>{t.hasRealSpeeds&&C("speed")},children:[i.jsx("span",{className:"video-mobile-settings-drawer__item-icon",children:i.jsx(N5,{size:16})}),i.jsx("span",{className:"video-mobile-settings-drawer__item-label",children:h("editor.video.settings.speed")}),i.jsx("span",{className:"video-mobile-settings-drawer__item-value",children:b}),i.jsx("span",{className:"video-mobile-settings-drawer__item-chevron",children:i.jsx(ts,{size:16})})]}),i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__item",disabled:r||!t.hasRealQualities,onClick:()=>{t.hasRealQualities&&C("quality")},children:[i.jsx("span",{className:"video-mobile-settings-drawer__item-icon",children:i.jsx(j5,{size:16})}),i.jsx("span",{className:"video-mobile-settings-drawer__item-label",children:h("editor.video.settings.quality")}),i.jsx("span",{className:"video-mobile-settings-drawer__item-value",children:x}),i.jsx("span",{className:"video-mobile-settings-drawer__item-chevron",children:i.jsx(ts,{size:16})})]})]})]}),g==="subtitles"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub",children:[i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__back",onClick:()=>C("main"),children:i.jsx(xi,{size:16})}),i.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.settings.subtitlesCc")}),i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:y,children:i.jsx(xc,{size:16})})]}),i.jsx("div",{className:"video-mobile-settings-drawer__divider"}),i.jsx("div",{className:"video-mobile-settings-drawer__scroll-list",children:t.subtitles.map(E=>{const M=E.id===t.currentSubtitleId;let O=E.label;if(cu({label:O})){const I=E.lang?CB[E.lang.toLowerCase()]:null;I&&(O=I),O=`${O} (${D})`}return i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{c(E.id),y()},children:[i.jsx("span",{className:"video-mobile-settings-drawer__option-label",children:O}),M&&i.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:i.jsx(Eo,{size:16})})]},`subtitle-${E.id??"off"}`)})})]}),g==="speed"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub",children:[i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__back",onClick:()=>C("main"),children:i.jsx(xi,{size:16})}),i.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.settings.speed")}),i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:y,children:i.jsx(xc,{size:16})})]}),i.jsx("div",{className:"video-mobile-settings-drawer__divider"}),i.jsx("div",{className:"video-mobile-settings-drawer__scroll-list",children:t.speeds.map(E=>{const M=E===T;return i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{f(E),s(E),y()},children:[i.jsx("span",{className:"video-mobile-settings-drawer__option-label",children:k(E)}),M&&i.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:i.jsx(Eo,{size:16})})]},`speed-${E}`)})})]}),g==="quality"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub",children:[i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__back",onClick:()=>C("main"),children:i.jsx(xi,{size:16})}),i.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.settings.quality")}),i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:y,children:i.jsx(xc,{size:16})})]}),i.jsx("div",{className:"video-mobile-settings-drawer__divider"}),i.jsxs("div",{className:"video-mobile-settings-drawer__scroll-list",children:[t.qualities.map(E=>{var I;const M=E.id===t.currentQualityId,O=(I=E.label)==null?void 0:I.includes("1080");return i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{l(E.id),y()},children:[i.jsxs("span",{className:"video-mobile-settings-drawer__option-label",children:[E.label,O&&i.jsx("sup",{className:"video-mobile-settings-drawer__hd-badge",children:"HD"})]}),M&&i.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:i.jsx(Eo,{size:16})})]},`quality-${E.id}`)}),t.hasRealQualities&&i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{l(null),y()},children:[i.jsx("span",{className:"video-mobile-settings-drawer__option-label",children:h("editor.video.settings.auto")}),t.currentQualityId==null&&i.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:i.jsx(Eo,{size:16})})]})]})]})]})})}function Hu({header:e,items:n,width:t=300,maxHeight:r}){return i.jsxs(v.Menu.Dropdown,{w:t,mah:r,style:r?{overflowY:"auto"}:void 0,onClick:o=>{o.stopPropagation()},children:[e&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{onClick:o=>{o.stopPropagation(),e.onClick()},disabled:e.disabled,leftSection:e.leftSection,closeMenuOnClick:!1,className:"video-menu-item",children:i.jsxs("div",{className:"video-menu-row",children:[i.jsx(v.Text,{className:"video-menu-header",children:e.label}),e.rightSection&&i.jsx("span",{className:"video-menu-icon",onClick:o=>{o.stopPropagation()},children:e.rightSection})]})}),i.jsx(v.Menu.Divider,{})]}),n.map(o=>i.jsx(v.Menu.Item,{onClick:s=>{s.stopPropagation(),o.onClick()},disabled:o.disabled,closeMenuOnClick:!1,className:"video-menu-item",children:i.jsxs("div",{className:"video-menu-row",children:[i.jsxs("div",{className:"video-menu-left",children:[o.leftIcon&&i.jsx("span",{className:"video-menu-icon",children:o.leftIcon}),i.jsx(v.Text,{className:"video-menu-item-text",children:o.leftLabel})]}),i.jsxs("div",{className:"video-menu-right",children:[i.jsx(v.Text,{className:"video-menu-item-text video-menu-value",children:o.centerLabel??""}),o.rightSection?i.jsx("span",{className:"video-menu-chevron",children:o.rightSection}):null]})]})},o.key))]})}function bB({disabled:e,settings:n,onBack:t,onSelect:r}){const{t:o}=Ze.useTranslation(),s=[...n.qualities.map(l=>{var f;const c=l.id===n.currentQualityId,d=(f=l.label)==null?void 0:f.includes("1080");return{key:`quality-${l.id}`,onClick:()=>r(l.id),disabled:e,leftLabel:d?i.jsxs("span",{children:[l.label," ",i.jsx("sup",{className:"video-menu-hd-badge",children:"HD"})]}):l.label,rightSection:c?i.jsx(Eo,{size:16}):null}}),...n.hasRealQualities?[{key:"quality-auto",onClick:()=>r(null),disabled:e,leftLabel:o("editor.video.settings.auto"),rightSection:n.currentQualityId==null?i.jsx(Eo,{size:16}):null}]:[]];return i.jsx(Hu,{width:264,header:{label:o("editor.video.settings.quality"),onClick:t,disabled:e,leftSection:i.jsx(xi,{size:16})},items:s})}function yB({disabled:e,settings:n,onSpeedClick:t,onQualityClick:r,onSubtitlesClick:o}){var h,g;const{t:s}=Ze.useTranslation(),l=n.currentSpeed===1?s("editor.video.settings.normal"):`${n.currentSpeed}x`,c=((h=n.qualities.find(C=>C.id===n.currentQualityId))==null?void 0:h.label)||s("editor.video.settings.auto"),d=((g=n.subtitles.find(C=>C.id===n.currentSubtitleId))==null?void 0:g.label)||s("editor.video.settings.off"),f=[{key:"subtitles",onClick:o,disabled:e,leftIcon:i.jsx(L5,{size:16}),leftLabel:s("editor.video.settings.subtitlesCc"),centerLabel:d,rightSection:i.jsx(ts,{size:16})},{key:"speed",onClick:t,disabled:e||!n.hasRealSpeeds,leftIcon:i.jsx(N5,{size:16}),leftLabel:s("editor.video.settings.speed"),centerLabel:l,rightSection:i.jsx(ts,{size:16})},{key:"quality",onClick:r,disabled:e||!n.hasRealQualities,leftIcon:i.jsx(j5,{size:16}),leftLabel:s("editor.video.settings.quality"),centerLabel:c,rightSection:i.jsx(ts,{size:16})}];return i.jsx(Hu,{width:300,items:f})}function xB({disabled:e,settings:n,currentSpeed:t,onBack:r,onSelect:o}){const{t:s}=Ze.useTranslation(),l=f=>f===1?s("editor.video.settings.normal"):f.toString(),c=t??n.currentSpeed,d=n.speeds.map(f=>{const h=f===c;return{key:`speed-${f}`,onClick:()=>o(f),disabled:e,leftLabel:l(f),rightSection:h?i.jsx(Eo,{size:16}):null}});return i.jsx(Hu,{width:264,maxHeight:244,header:{label:s("editor.video.settings.speed"),onClick:r,disabled:e,leftSection:i.jsx(xi,{size:16})},items:d})}const vB={en:"English",es:"Español",fr:"Français",de:"Deutsch",it:"Italiano",pt:"Português",ru:"Русский",uk:"Українська",pl:"Polski",nl:"Nederlands",sv:"Svenska",no:"Norsk",da:"Dansk",fi:"Suomi",tr:"Türkçe",ar:"العربية",he:"עברית",hi:"हिन्दी",ja:"日本語",ko:"한국어",zh:"中文",ro:"Română"};function wB({disabled:e,settings:n,onBack:t,onSelect:r}){const{t:o}=Ze.useTranslation(),s=o("editor.video.settingsModal.autoGenerated"),l=n.subtitles.map(c=>{const d=c.id===n.currentSubtitleId;let f=c.label;if(cu({label:f})){const h=c.lang?vB[c.lang.toLowerCase()]:null;h&&(f=h),f=`${f} (${s})`}return{key:`subtitle-${c.id??"off"}`,onClick:()=>r(c.id),disabled:e,leftLabel:f,rightSection:d?i.jsx(Eo,{size:16}):null}});return i.jsx(Hu,{width:264,header:{label:o("editor.video.settings.subtitlesCc"),onClick:t,disabled:e,leftSection:i.jsx(xi,{size:16})},items:l})}function kB({text:e}){const n=m.useRef(null),[t,r]=m.useState(!1),o=m.useCallback(()=>{const s=n.current;s&&r(s.scrollWidth>s.clientWidth)},[]);return i.jsx(v.Tooltip,{label:e,openDelay:300,withinPortal:!0,disabled:!t,children:i.jsx("span",{ref:n,className:"video-player-chapters-item-title",onMouseEnter:o,children:e})})}function SB({video:e,containerRef:n,title:t,settings:r,isSettingsDisabled:o,onSubtitlesOpen:s,onSpeedClick:l,onQualityClick:c,onSubtitleSelect:d,storyboard:f,baseUrl:h,authHeaders:g,chapters:C=[],isProcessing:y=!1}){const{t:b}=Ze.useTranslation(),[x,w]=m.useState(0),[k,T]=m.useState(0),[D,N]=m.useState(!1),[L,E]=m.useState(1),[M,O]=m.useState(!1),[I,F]=m.useState([]),[_,R]=m.useState(!1),[j,K]=m.useState(!1),[W,B]=m.useState(!1),[H,Q]=m.useState(!1),ee=m.useRef(null),[ae,pe]=m.useState(null),[Le,Se]=m.useState(null),[we,de]=m.useState(!1),[ne,Z]=m.useState("main"),[ce,le]=m.useState(null),se=oB({storyboard:f,baseUrl:h,authHeaders:g,enabled:!!f}),Y=m.useMemo(()=>ae==null?null:se.getFrameAtRatio(ae),[ae,se]);m.useEffect(()=>{Y!=null&&Y.sheetUrl&&se.ensureSheetDimensions(Y.sheetUrl).catch(()=>{})},[Y,se]),m.useEffect(()=>{if(!e)return;const V=()=>{w(e.currentTime||0)},fe=()=>{T(e.duration||0),F(zg(e))},Re=()=>{N(!0)},Ke=()=>{N(!1)},ge=()=>{E(e.volume??1),O(e.muted)},me=()=>{F(zg(e))};return V(),fe(),ge(),N(!e.paused),e.addEventListener("timeupdate",V),e.addEventListener("durationchange",fe),e.addEventListener("loadedmetadata",fe),e.addEventListener("play",Re),e.addEventListener("pause",Ke),e.addEventListener("volumechange",ge),e.addEventListener("progress",me),()=>{e.removeEventListener("timeupdate",V),e.removeEventListener("durationchange",fe),e.removeEventListener("loadedmetadata",fe),e.removeEventListener("play",Re),e.removeEventListener("pause",Ke),e.removeEventListener("volumechange",ge),e.removeEventListener("progress",me)}},[e]),m.useEffect(()=>{const V=()=>{K(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",V),V(),()=>{document.removeEventListener("fullscreenchange",V)}},[]),m.useEffect(()=>{if(!e)return;const V=()=>B(!0),fe=()=>B(!1);return e.addEventListener("enterpictureinpicture",V),e.addEventListener("leavepictureinpicture",fe),B(document.pictureInPictureElement===e&&!!document.pictureInPictureElement),()=>{e.removeEventListener("enterpictureinpicture",V),e.removeEventListener("leavepictureinpicture",fe)}},[e]),m.useEffect(()=>{if(!_)return;const V=Re=>{var Ce;if(!e||!k)return;const Ke=(Ce=ee.current)==null?void 0:Ce.getBoundingClientRect();if(!Ke)return;const me=Wr((Re.clientX-Ke.left)/Ke.width,0,1)*k;e.currentTime=me,w(me)},fe=()=>{R(!1)};return window.addEventListener("pointermove",V),window.addEventListener("pointerup",fe),()=>{window.removeEventListener("pointermove",V),window.removeEventListener("pointerup",fe)}},[_,e,k]),m.useEffect(()=>{le(null)},[r.currentSpeed]);const oe=k>0?Wr(x/k,0,1):0,$=y?[]:I,J=m.useMemo(()=>!C||C.length===0?[]:[...C].filter(V=>k>0&&V.startSec<=k).sort((V,fe)=>V.startSec-fe.startSec),[C,k]),q=m.useMemo(()=>{if(J.length===0||k<=0)return[];const V=[],fe=Wr(J[0].startSec/k,0,1);fe>0&&V.push({chapter:null,startRatio:0,endRatio:fe});for(let Re=0;Re<J.length;Re++){const Ke=J[Re],ge=Wr(Ke.startSec/k,0,1),me=J[Re+1],Ce=me?Wr(me.startSec/k,0,1):1;V.push({chapter:Ke,startRatio:ge,endRatio:Ce})}return V},[J,k]),re=m.useMemo(()=>{if(J.length===0)return null;for(let V=J.length-1;V>=0;V--)if(x>=J[V].startSec)return J[V];return J[0]},[J,x]),he=m.useMemo(()=>{if(ae==null||J.length===0||k<=0)return null;const V=ae*k;for(let fe=J.length-1;fe>=0;fe--)if(V>=J[fe].startSec)return J[fe];return J[0]},[ae,J,k]),ke=V=>{e&&(e.currentTime=V.startSec,w(V.startSec))},De=()=>{e&&(e.paused?e.play().catch(()=>{}):e.pause())},Ee=()=>{e&&(e.muted=!e.muted,O(e.muted))},Pe=V=>{e&&(e.volume=V,V===0?e.muted=!0:e.muted&&(e.muted=!1),E(V),O(e.muted))},Fe=()=>{var fe,Re;const V=(n==null?void 0:n.current)||e;V&&(document.fullscreenElement?(fe=document.exitFullscreen)==null||fe.call(document):(Re=V.requestFullscreen)==null||Re.call(V))},ze=async()=>{if(!(!e||!document.pictureInPictureEnabled))try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch{return}},bt=V=>{var ge;if(!e||!k)return;const fe=(ge=ee.current)==null?void 0:ge.getBoundingClientRect();if(!fe)return;const Ke=Wr((V.clientX-fe.left)/fe.width,0,1)*k;e.currentTime=Ke,w(Ke),R(!0)},mt=V=>{var Ke;if(!k)return;const fe=(Ke=ee.current)==null?void 0:Ke.getBoundingClientRect();if(!fe)return;const Re=Wr((V.clientX-fe.left)/fe.width,0,1);pe(Re),Se(Re*fe.width)},Ht=()=>{pe(null),Se(null)},Pt=q.length>0;return i.jsxs("div",{className:`video-player-controls ${Pt?"video-player-controls--with-chapters":"video-player-controls--no-chapters"}`,style:{"--video-subtitles-offset":Pt?"48px":"16px"},children:[i.jsxs("div",{className:"video-player-timeline",ref:ee,"data-test-id":"video-player-timeline",children:[i.jsx("div",{className:"video-player-timeline-hitbox",onPointerDown:bt,onPointerMove:mt,onPointerLeave:Ht,role:"presentation",children:i.jsxs("div",{className:`video-player-timeline-track ${Pt?"video-player-timeline-track--chapters":""}`,children:[Pt?i.jsx("div",{className:"video-player-chapter-segments",children:q.map((V,fe)=>{const Re=V.endRatio-V.startRatio,Ke=oe<=V.startRatio?0:oe>=V.endRatio?1:(oe-V.startRatio)/Re;return i.jsxs("div",{className:"video-player-chapter-segment",style:{flex:`${Re*100} 0 0`},children:[i.jsx("div",{className:"video-player-chapter-segment-progress",style:{width:`${Ke*100}%`}}),$.map((ge,me)=>{const Ce=Wr((ge.start-V.startRatio)/Re,0,1),Be=Wr((ge.end-V.startRatio)/Re,0,1);return Be<=0||Ce>=1?null:i.jsx("span",{className:"video-player-chapter-segment-buffered",style:{left:`${Ce*100}%`,width:`${(Be-Ce)*100}%`}},`buf-${fe}-${me}`)})]},`chapter-${fe}`)})}):i.jsxs(i.Fragment,{children:[$.map((V,fe)=>i.jsx("span",{className:"video-player-buffered",style:{left:`${V.start*100}%`,width:`${(V.end-V.start)*100}%`}},`${V.start}-${V.end}-${fe}`)),i.jsx("span",{className:"video-player-progress",style:{width:`${oe*100}%`}})]}),i.jsx("span",{className:"video-player-knob",style:{left:`${oe*100}%`}})]})}),Le!=null&&i.jsxs("div",{"data-test-id":"video-player-hover-preview",className:"video-player-hover-preview",style:{left:Le,transform:"translateX(-50%)"},children:[Y&&se.ready&&i.jsx(aB,{frame:Y,left:0}),ae!=null&&i.jsxs("div",{className:"video-player-hover-preview-info",children:[i.jsx("span",{className:"video-player-hover-preview-time",children:ui(ae*k)}),((he==null?void 0:he.title)||t)&&i.jsx("span",{className:"video-player-hover-preview-title",children:(he==null?void 0:he.title)??t})]})]})]}),i.jsxs("div",{className:"video-player-controls-row",children:[i.jsxs("div",{className:"video-player-left",children:[i.jsx("button",{className:"video-player-button",type:"button",onClick:De,"aria-label":b(D?"editor.video.player.pause":"editor.video.player.play"),children:D?i.jsx(lB,{size:20}):i.jsx(T5,{size:20})}),i.jsxs(v.Box,{onMouseEnter:()=>Q(!0),onMouseLeave:()=>Q(!1),style:{display:"inline-flex",alignItems:"center",height:28,borderRadius:8,padding:H?"0 8px":0,gap:6,background:H?"rgba(134, 142, 150, 0.15)":"transparent",backdropFilter:H?"blur(4px)":"none",transition:"padding 120ms ease, background 120ms ease, backdrop-filter 120ms ease"},children:[i.jsx("button",{type:"button",className:H?void 0:"video-player-button",onClick:Ee,"aria-label":b(M||L===0?"editor.video.player.unmute":"editor.video.player.mute"),style:H?{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:16,height:16,padding:0,border:"none",background:"transparent",color:"#fff",cursor:"pointer"}:void 0,children:M||L===0?i.jsx(uB,{size:H?16:20}):i.jsx(cB,{size:H?16:20})}),i.jsx(v.Box,{className:"video-player-volume-slider",style:{width:H?57:0,opacity:H?1:0,overflow:H?"visible":"hidden",pointerEvents:H?"auto":"none",transition:"width 120ms ease, opacity 120ms ease",display:"flex",alignItems:"center"},children:i.jsx(v.Slider,{w:57,min:0,max:1,step:.01,value:M?0:L,onChange:Pe,label:null,"aria-label":b("editor.video.player.volume"),size:3})})]}),i.jsxs("div",{className:"video-player-time",children:[ui(x)," / ",ui(k)]}),re&&i.jsxs("div",{className:"video-player-chapter-title",children:[i.jsx("span",{children:re.title}),i.jsx(ts,{size:16})]}),!re&&t&&i.jsxs("div",{className:"video-player-title",children:[i.jsx("span",{children:t}),i.jsx(ts,{size:16})]})]}),i.jsxs("div",{className:"video-player-right",children:[Nt?i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"video-player-button",type:"button","aria-label":b("editor.video.player.settings"),onClick:()=>de(!0),children:i.jsx(nC,{size:20})}),i.jsx(AB,{opened:we,onClose:()=>{de(!1)},settings:r,isSettingsDisabled:o,onSubtitlesOpen:s,onSpeedClick:l,onQualityClick:c,onSubtitleSelect:d,optimisticSpeed:ce,setOptimisticSpeed:le})]}):i.jsxs(v.Menu,{opened:we,onChange:V=>{de(V),V||Z("main")},position:"top-end",offset:8,withinPortal:!0,classNames:{dropdown:"video-player-menu-dropdown"},portalProps:j&&document.fullscreenElement?{target:document.fullscreenElement instanceof HTMLElement?document.fullscreenElement:void 0}:void 0,shadow:"md",radius:"md",closeOnItemClick:!1,closeOnEscape:!0,trapFocus:!0,children:[i.jsx(v.Menu.Target,{children:i.jsx("button",{className:"video-player-button",type:"button","aria-label":b("editor.video.player.settings"),children:i.jsx(nC,{size:20})})}),ne==="main"&&i.jsx(yB,{isOpen:!0,disabled:o,settings:r,onSpeedClick:()=>{r.hasRealSpeeds&&Z("speed")},onQualityClick:()=>{r.hasRealQualities&&Z("quality")},onSubtitlesClick:()=>{o||(s==null||s(),Z("subtitles"))}}),ne==="speed"&&i.jsx(xB,{disabled:o,settings:r,currentSpeed:ce??r.currentSpeed,onBack:()=>Z("main"),onSelect:V=>{le(V),l(V),de(!1)}}),ne==="subtitles"&&i.jsx(wB,{disabled:o,settings:r,onBack:()=>Z("main"),onSelect:V=>{d(V),de(!1)}}),ne==="quality"&&i.jsx(bB,{disabled:o,settings:r,onBack:()=>Z("main"),onSelect:V=>{c(V),de(!1)}})]}),i.jsx("button",{className:"video-player-button",type:"button","aria-label":b("editor.video.player.pictureInPicture"),onClick:ze,disabled:!document.pictureInPictureEnabled,"aria-pressed":W,children:i.jsx(fB,{size:20})}),i.jsx("button",{className:"video-player-button",type:"button",onClick:Fe,"aria-label":b(j?"editor.video.player.exitFullscreen":"editor.video.player.enterFullscreen"),children:i.jsx(dB,{size:20})})]})]}),J.length>0&&i.jsx("div",{className:"video-player-chapters-list",children:J.map((V,fe)=>{const Re=re===V;return i.jsxs("button",{type:"button",className:`video-player-chapters-item ${Re?"video-player-chapters-item--active":""}`,onClick:()=>ke(V),children:[i.jsx("span",{className:"video-player-chapters-item-time",children:ui(V.startSec)}),i.jsx(kB,{text:V.title})]},`chapter-list-${fe}`)})})]})}const sC=[.25,.5,.75,1,1.25,1.5,2],iC=[{id:1,label:"English (Automatic)"},{id:2,label:"Русский (Автоматические)"},{id:3,label:"Spanish (automatic)"}],EB=e=>e.height?`${e.height}p`:e.bandwidth?`${(e.bandwidth/1e6).toFixed(1)} Mbps`:"Auto",R5=e=>e!=null&&e.textTracks?Array.from(e.textTracks).filter(n=>n.kind==="subtitles"||n.kind==="captions"):[],lr=(e,n)=>{var y,b,x;if(!e){const w=R5(n),k=w.length>0,T=w.findIndex(N=>N.mode==="showing"),D=k?[{id:null,label:"Off"},...w.map((N,L)=>({id:L,label:N.label||N.language||"Unknown",lang:N.language||void 0,isDefault:N.default??!1}))]:[{id:null,label:"Off"},...iC];return{speeds:sC,currentSpeed:(n==null?void 0:n.playbackRate)??1,hasRealSpeeds:!0,qualities:[],currentQualityId:null,hasRealQualities:!1,subtitles:D,currentSubtitleId:T>=0?T:null,hasRealSubtitles:k}}const t=sC,r=((y=e.getPlaybackRate)==null?void 0:y.call(e))??(n==null?void 0:n.playbackRate)??1,o=t.length>0,s=((b=e.getVariantTracks)==null?void 0:b.call(e))??[],l=s.map(w=>({id:w.id,label:EB(w)})),c=s.find(w=>w.active),d=l.length>0,f=((x=e.getTextTracks)==null?void 0:x.call(e))??[],h=f.length>0,g=h?[{id:null,label:"Off"},...f.map(w=>({id:w.id,label:w.label||w.language||"Unknown",lang:w.language||void 0,isDefault:!!(w.default??w.isDefault??!1)}))]:[{id:null,label:"Off"},...iC],C=f.find(w=>w.active);return{speeds:t,currentSpeed:r,hasRealSpeeds:o,qualities:l,currentQualityId:(c==null?void 0:c.id)??null,hasRealQualities:d,subtitles:g,currentSubtitleId:(C==null?void 0:C.id)??null,hasRealSubtitles:h}},MB=(e,n)=>{var t;(t=e==null?void 0:e.setPlaybackRate)==null||t.call(e,n)},TB=(e,n)=>{var o,s;if(!e)return;const r=(((o=e.getVariantTracks)==null?void 0:o.call(e))??[]).find(l=>l.id===n);r&&((s=e.selectVariantTrack)==null||s.call(e,r,!0))},vc=(e,n,t)=>{var o,s,l,c;if(e){if(n===null){(o=e.setTextTrackVisibility)==null||o.call(e,!1);return}const f=(((s=e.getTextTracks)==null?void 0:s.call(e))??[]).find(h=>h.id===n);f&&((l=e.selectTextTrack)==null||l.call(e,f),(c=e.setTextTrackVisibility)==null||c.call(e,!0));return}if(!t)return;const r=R5(t);if(n===null){r.forEach(d=>{d.mode="disabled"});return}r.forEach((d,f)=>{d.mode=f===n?"showing":"disabled"})};function vo(e,n){return e?e.startsWith("http://")||e.startsWith("https://")?e:e.startsWith("/")?`${n||window.location.origin}${e}`:e:null}function LB(e){return Array.from(e.textTracks||[]).filter(n=>n.kind==="subtitles"||n.kind==="captions")}function If(e,n){return e.url?vo(e.url,n):null}function NB({videoId:e,language:n,baseUrl:t,videoUrl:r,primaryUrl:o,optimizedReady:s,nativeVideoUrl:l,rawUrl:c,storyboard:d,chapters:f,subtitles:h,isProcessing:g=!1,posterUrl:C,onPlayerInfo:y,onFallback:b}){const{t:x,i18n:w}=Ze.useTranslation(),[k,T]=m.useState(null),[D,N]=m.useState(null),[L,E]=m.useState(null),[M,O]=m.useState(!1),I=m.useRef(null),F=m.useRef(null),_=m.useRef(null),[R,j]=m.useState(null),[K,W]=m.useState(()=>lr(null,null)),[B,H]=m.useState(!0),[Q,ee]=m.useState([]),[ae,pe]=m.useState([{id:null,label:x("editor.video.settings.off")}]),[Le,Se]=m.useState(null),[we,de]=m.useState(null),[ne,Z]=m.useState(!0),[ce,le]=m.useState(0),se=m.useRef(null),Y=m.useRef(null),oe=m.useRef(null),$=m.useRef(null),J=m.useRef([]),q=m.useRef(!1),re=m.useRef(new Set),he=m.useRef(null),ke=m.useRef(!1);m.useEffect(()=>{n&&w.changeLanguage(n).catch(()=>{})},[n]),m.useEffect(()=>{if(!e){ee([]);return}if(h!=null){const V=(h||[]).map(Ri).filter(fe=>fe.id&&!fe.isDisabled);ee(V)}},[e,h]),m.useEffect(()=>{H(!0),he.current=null},[e]);const De=m.useCallback(()=>{if(!e||h==null)return;const V=(h||[]).map(Ri).filter(fe=>fe.id&&!fe.isDisabled);ee(V)},[e,h]);m.useEffect(()=>{if(Q.length===0){pe([{id:null,label:x("editor.video.settings.off")}]),Se(null);return}const V=[{id:null,label:x("editor.video.settings.off")},...Q.map((fe,Re)=>({id:Re,label:fe.label||fe.lang||"Unknown",lang:fe.lang||void 0,isDefault:fe.isDefault||!1}))];pe(V),Se(fe=>fe!=null&&fe>=0&&fe<Q.length?fe:null)},[Q,x]),m.useEffect(()=>{var ge;let V=!1;const fe=((ge=I.current)==null?void 0:ge.player)||null;return s?(async()=>{var xe,Ue,_e;if(!fe)return;if(Le==null){vc(fe,null),W(lr(fe,R));return}const me=Q[Le],Ce=(me==null?void 0:me.label)||(me==null?void 0:me.lang)||"und",Be=(me==null?void 0:me.lang)||"und",Ye=(me==null?void 0:me.kind)||"subtitles",$e=((xe=fe.getTextTracks)==null?void 0:xe.call(fe))||[];let st=$e.find(Ne=>(Ne.language||"")===Be&&(Ne.label||"")===Ce&&(Ne.kind||"subtitles")===Ye);if(!st&&we&&(st=$e.find(Ne=>(Ne.language||"")===we.lang&&(Ne.label||"")===we.label&&(Ne.kind||"subtitles")===we.kind)),!st){const Ne=we&&Q.length>0&&Q.find(Qe=>(Qe.lang||"und")===we.lang&&(Qe.label||Qe.lang||"und")===we.label&&(Qe.kind||"subtitles")===we.kind)||null,Ge=me||Ne,We=Ge?If(Ge,t):null;if(!We||typeof fe.addTextTrackAsync!="function")return;let lt=null;lt=await fe.addTextTrackAsync(We,(Ge==null?void 0:Ge.lang)||Be,(Ge==null?void 0:Ge.kind)||Ye,"text/vtt",void 0,(Ge==null?void 0:Ge.label)||Ce),lt&&typeof lt.id=="number"&&(st=lt)}V||st&&((Ue=fe.selectTextTrack)==null||Ue.call(fe,st),(_e=fe.setTextTrackVisibility)==null||_e.call(fe,!0),W(lr(fe,R)))})().catch(()=>{}):(()=>{R&&(vc(null,Le,R),W(lr(null,R)))})(),()=>{V=!0}},[Le,Q,s,R,t,e,we]),m.useEffect(()=>{if(!k)return;let V=!1,fe=null;const Re=Ce=>{if(V)return;vo(l,t)||vo(c??null,t)?(O(!0),b==null||b(!0)):E(x("editor.video.player.playbackError",{code:Ce.code}))},Ke=Ce=>{const Be=Ce.detail;if(Be.severity===2)Re(Be);else try{fe==null||fe.recover()}catch{}},ge=()=>{var Ce;if(fe=(Ce=I.current)==null?void 0:Ce.player,!fe){const Be=requestAnimationFrame(ge);return()=>cancelAnimationFrame(Be)}if(oe.current)try{fe.removeEventListener("error",oe.current)}catch{}oe.current=Ke,fe.addEventListener("error",Ke),fe.load(k).catch(Be=>{V||Be.code!==7e3&&Re(Be)})},me=requestAnimationFrame(ge);return()=>{if(V=!0,cancelAnimationFrame(me),fe&&oe.current)try{fe.removeEventListener("error",oe.current)}catch{}}},[k,l,c,t,b]),m.useEffect(()=>{let V=!1,fe=null;if(s&&o){const Re=vo(o,t);if(Re){if(!D&&c){const Ye=vo(c,t);Ye&&N(Ye)}if(he.current===Re)return;const Ke=F.current;Ke&&Ke.currentTime>0&&(Y.current={time:Ke.currentTime,paused:Ke.paused},ke.current=!0);const ge=Ye=>{V||fetch(Re,{method:"HEAD",credentials:"include"}).then($e=>{V||(he.current=Re,$e.ok?(T(Re),E(null),O(!1),b==null||b(!1),re.current.clear()):(re.current.clear(),O(!0),b==null||b(!0),Be(Ye)))}).catch($e=>{V||(re.current.clear(),O(!0),b==null||b(!0),Be(Ye))})},me=10,Ce=5e3,Be=Ye=>{V||Ye>=me||(fe=setTimeout(()=>ge(Ye+1),Ce))};ge(0)}}else if(l){const Re=vo(l,t);if(Re){if(se.current===Re)return;const Ke=F.current;if(Ke&&Ke.readyState>0&&!Ke.error&&Ke.src){se.current=Re;return}se.current&&Ke&&Ke.currentTime>0&&(Y.current={time:Ke.currentTime,paused:Ke.paused}),N(Re),T(null),se.current=Re}}return()=>{V=!0,fe&&clearTimeout(fe)}},[o,t,s,l]),m.useEffect(()=>{if(s&&k&&I.current){const V=I.current.videoElement;if(V){const fe=()=>{V.readyState>=1&&(Y.current&&(V.currentTime=Y.current.time,Y.current.paused||V.play().catch(()=>{}),Y.current=null),ke.current=!1)};if(V.readyState>=1)fe();else{const Re=()=>{fe()},Ke=()=>{fe()};return V.addEventListener("loadedmetadata",Re,{once:!0}),V.addEventListener("canplay",Ke,{once:!0}),()=>{V.removeEventListener("loadedmetadata",Re),V.removeEventListener("canplay",Ke)}}}}},[s,k]),m.useEffect(()=>{const V=F.current;V&&k&&!M&&(V.currentTime>0&&(Y.current={time:V.currentTime,paused:V.paused}),V.paused||V.pause())},[k,M]),m.useEffect(()=>{var V;if(k&&!M){const fe=((V=I.current)==null?void 0:V.videoElement)||null;if(fe&&fe.readyState>=1)j(fe);else if(fe){const Re=()=>j(fe);return fe.addEventListener("loadedmetadata",Re,{once:!0}),()=>fe.removeEventListener("loadedmetadata",Re)}}else j(F.current)},[s,M,k,D]),m.useEffect(()=>{if(!R)return;const V=()=>{Z(R.paused)};return V(),R.addEventListener("play",V),R.addEventListener("pause",V),R.addEventListener("ended",V),()=>{R.removeEventListener("play",V),R.removeEventListener("pause",V),R.removeEventListener("ended",V)}},[R]),m.useEffect(()=>{const V=_.current;if(!V)return;const fe=new ResizeObserver(Re=>{const Ke=Re[0];Ke&&le(Math.round(Ke.contentRect.width))});return fe.observe(V),()=>fe.disconnect()},[]),m.useEffect(()=>{var me,Ce;if(!y)return;const V=((me=I.current)==null?void 0:me.player)||null,fe=F.current||null,Re=_.current||null,Ke=k&&!M&&V?"shaka":"native";let ge=null;try{const Be=(Ce=V==null?void 0:V.seekRange)==null?void 0:Ce.call(V);Be&&Number.isFinite(Be.end)&&Be.end>0&&(ge=Be.end)}catch{}if(ge==null&&R){const Be=R.duration;Number.isFinite(Be)&&Be>0&&(ge=Be)}y({shakaPlayer:V,nativeVideo:fe,mode:Ke,containerEl:Re,videoDuration:ge})},[y,s,M,k,D,R]),m.useEffect(()=>{var Re;const V=F.current;V&&(V.poster=C||"");const fe=(Re=I.current)==null?void 0:Re.videoElement;fe&&(fe.poster=C||"")},[C,k,D]),m.useEffect(()=>{var fe;const V=((fe=I.current)==null?void 0:fe.player)||null;if(!s||!V){W(lr(null,R));return}W(lr(V,R))},[s,k,R]),m.useEffect(()=>{var Ke;const V=((Ke=I.current)==null?void 0:Ke.player)||null;if(!s||!V)return;const fe=()=>{W(lr(V,R))},Re=["variantchanged","adaptation","trackschanged"];return Re.forEach(ge=>{var me;(me=V.addEventListener)==null||me.call(V,ge,fe)}),()=>{Re.forEach(ge=>{var me;(me=V.removeEventListener)==null||me.call(V,ge,fe)})}},[s,k,R]),m.useEffect(()=>{if(!R)return;const V=()=>{var Re;const fe=((Re=I.current)==null?void 0:Re.player)||null;W(lr(fe,R))};return R.addEventListener("ratechange",V),()=>{R.removeEventListener("ratechange",V)}},[R]),m.useEffect(()=>()=>{var me,Ce;const V=document.pictureInPictureElement;if(!V)return;const fe=((me=I.current)==null?void 0:me.videoElement)||null,Re=F.current||null,Ke=_.current||null,ge=V instanceof HTMLVideoElement&&(Re&&Re.currentSrc===V.currentSrc||fe&&fe.currentSrc===V.currentSrc);(V===fe||V===Re||Ke&&Ke.contains(V)||ge)&&((Ce=document.exitPictureInPicture)==null||Ce.call(document).catch(()=>{}))},[]),m.useEffect(()=>{const V=F.current;if(!V||!D)return;const fe=()=>{Y.current&&(V.currentTime=Y.current.time,Y.current.paused||V.play().catch(()=>{}),ke.current=!1)};V.readyState>=1?fe():V.addEventListener("loadedmetadata",fe,{once:!0});const Re=()=>{ke.current||($.current&&clearTimeout($.current),$.current=setTimeout(()=>{ke.current||(Y.current||(Y.current={time:0,paused:!0}),Y.current.time=V.currentTime)},100))},Ke=()=>{ke.current||(Y.current?Y.current.paused=!1:Y.current={time:0,paused:!1})},ge=()=>{ke.current||(Y.current?Y.current.paused=!0:Y.current={time:V.currentTime,paused:!0})};return V.addEventListener("timeupdate",Re),V.addEventListener("play",Ke),V.addEventListener("pause",ge),()=>{V.removeEventListener("loadedmetadata",fe),V.removeEventListener("timeupdate",Re),V.removeEventListener("play",Ke),V.removeEventListener("pause",ge),$.current&&clearTimeout($.current),V.currentTime>0&&(Y.current={time:V.currentTime,paused:V.paused})}},[D]),m.useEffect(()=>{if(s)return;const V=F.current;if(!V)return;V.querySelectorAll('track[data-subtitle-track="managed"]').forEach(ge=>ge.remove()),e&&Q.forEach(ge=>{const me=If(ge,t);if(!me)return;const Ce=document.createElement("track");Ce.setAttribute("data-subtitle-track","managed"),Ce.kind=ge.kind||"subtitles",Ce.label=ge.label||ge.lang||"und",Ce.srclang=ge.lang||"und",Ce.src=me,Ce.setAttribute("crossorigin","use-credentials"),Ce.default=!1,V.appendChild(Ce)});try{V.textTracks}catch{}const Re=LB(V);Re.some(ge=>ge.mode==="showing")&&Re.forEach(ge=>{ge.mode="disabled"}),W(lr(null,V))},[s,D,Q,e,t]),m.useEffect(()=>{var me,Ce,Be,Ye;if(!s){J.current=[];return}const V=((me=I.current)==null?void 0:me.player)||null;if(!V)return;const fe=(Ce=V.getNetworkingEngine)==null?void 0:Ce.call(V);fe&&!q.current&&((Be=fe.registerRequestFilter)==null||Be.call(fe,($e,st)=>{st.allowCrossSiteCredentials=!0}),q.current=!0),(((Ye=V.getTextTracks)==null?void 0:Ye.call(V))||[]).forEach($e=>{var st;J.current.includes($e.id)&&((st=V.removeTextTrack)==null||st.call(V,$e))}),J.current=[];let Ke=!1;return(async()=>{var st,xe;const $e=((st=V.getTextTracks)==null?void 0:st.call(V))||[];if(e)for(const Ue of Q){const _e=If(Ue,t);if(!_e||typeof V.addTextTrackAsync!="function")continue;const Ne=Ue.label||Ue.lang||"und",Ge=Ue.lang||"und",We=Ue.kind||"subtitles";if($e.some(tt=>(tt.language||"")===Ge&&(tt.label||"")===Ne&&(tt.kind||"subtitles")===We))continue;let Qe=null;if(Qe=await V.addTextTrackAsync(_e,Ge,We,"text/vtt",void 0,Ne),Ke)return;Qe&&typeof Qe.id=="number"&&(J.current.push(Qe.id),$e.push(Qe))}(xe=V.setTextTrackVisibility)==null||xe.call(V,!1),W(lr(V,R))})().catch(()=>{}),()=>{Ke=!0}},[s,k,Q,e,t,R]);const Ee=m.useMemo(()=>({...K,subtitles:ae,currentSubtitleId:Le,currentQualityId:B?null:K.currentQualityId,hasRealSubtitles:ae.length>1}),[K,ae,Le,B]),Pe=V=>{if(!R)return;V.target.closest(".video-player-controls")!==null||(R.paused?R.play().catch(()=>{}):R.pause())};if(L)return i.jsx(v.Flex,{justify:"center",align:"center",styles:{root:{height:"100%",width:"100%",minHeight:200,padding:16}},children:i.jsx("div",{style:{textAlign:"center",color:"red"},children:L})});const Fe=vo(c??null,t)||D,ze=!!(k&&!M),bt=ce>0&&ce<500,mt=ce>0&&ce<380,Pt=((f==null?void 0:f.length)??0)>0&&!mt?"48px":"16px";return i.jsx(v.Flex,{justify:"center",align:"center",styles:{root:{height:"100%",width:"100%",minHeight:200,position:"relative"}},children:i.jsxs("div",{"data-test-id":"video-player-container",className:`video-player-container video-player-container--with-player ${bt?"video-player--compact":""} ${mt?"video-player--narrow":""}`,style:{"--video-subtitles-offset":Pt},ref:_,onClick:Pe,children:[i.jsx("video",{ref:F,src:D||(M?Fe:null)||void 0,className:"video-player-media",style:ze?{display:"none"}:void 0,poster:C||void 0,onError:V=>{const fe=V.currentTarget,Re=fe.currentSrc||fe.src;if(!Re||!fe.error)return;re.current.add(Re);const ge=[vo(c??null,t),vo(l,t)].filter(me=>!!me&&!re.current.has(me));ge.length>0&&(fe.src=ge[0],fe.load())}}),ze&&i.jsx(aw,{ref:I,autoPlay:!1,className:"video-player-media"}),(D||k||o||M&&Fe)&&i.jsxs(i.Fragment,{children:[ne&&!bt&&i.jsx("button",{className:"video-player-center-play",type:"button","aria-label":x("editor.video.player.play"),onClick:V=>{V.stopPropagation(),R==null||R.play().catch(()=>{})},children:i.jsx(T5,{size:32})}),i.jsxs("div",{className:"video-player-overlay",children:[i.jsx("div",{className:"video-player-gradient"}),i.jsx(SB,{video:R,containerRef:_,settings:Ee,isSettingsDisabled:!1,onSubtitlesOpen:De,storyboard:d,chapters:s?f:void 0,isProcessing:g,baseUrl:t,onSpeedClick:V=>{var Re;const fe=((Re=I.current)==null?void 0:Re.player)||null;W(Ke=>({...Ke,currentSpeed:V})),fe&&MB(fe,V),R&&(R.playbackRate=V)},onQualityClick:V=>{var Ke,ge,me;const fe=((Ke=I.current)==null?void 0:Ke.player)||null;if(!fe||K.qualities.length===0)return;if(V==null){(ge=fe.configure)==null||ge.call(fe,{abr:{enabled:!0}}),H(!0),W(lr(fe,R));return}(me=fe.configure)==null||me.call(fe,{abr:{enabled:!1}});const Re=K.qualities.find(Ce=>Ce.id===V)||null;Re&&TB(fe,Re.id),H(!1),W(Ce=>({...Ce,currentQualityId:V}))},onSubtitleSelect:V=>{var Ke,ge;const fe=((Ke=I.current)==null?void 0:Ke.player)||null,Re=typeof V=="number"?V:null;if(Se(Re),fe){const me=((ge=fe.getTextTracks)==null?void 0:ge.call(fe))??[];if(Re==null)de(null);else{const Be=me.find(Ye=>Ye.id===Re);if(Be)de({lang:Be.language||"und",label:Be.label||"und",kind:Be.kind||"subtitles"});else{const Ye=Q[Re];Ye&&de({lang:Ye.lang||"und",label:Ye.label||Ye.lang||"und",kind:Ye.kind||"subtitles"})}}let Ce=Re;if(typeof Re=="number"&&!me.find(Be=>Be.id===Re)){const Be=Q[Re];if(Be){const Ye=Be.label||Be.lang||"und",$e=Be.lang||"und",st=me.find(xe=>(xe.language||"")===$e&&(xe.label||"")===Ye);st&&(Ce=st.id)}}vc(fe,Ce),W(lr(fe,R));return}if(R){if(Re==null)de(null);else{const me=Q[Re];me&&de({lang:me.lang||"und",label:me.label||me.lang||"und",kind:me.kind||"subtitles"})}vc(null,Re,R),W(lr(null,R))}}})]})]})]})})}const wc=e=>e==="link"||e==="youtube"||e==="vk"||e==="rutube",jB=e=>e==="upload"||e==="download";function RB({className:e,format:n,nodeKey:t,onUploadComplete:r,initialVideoId:o,initialVideoState:s,onStateChange:l,posterUrl:c,chaptersOverride:d,subtitlesOverride:f,platform:h,fallbackNativeVideoUrl:g,onStatusAvailabilityChange:C,onOptimizedReadyChange:y,onStatusChange:b,onPlayerInfo:x}){var Vt,Or;const[w]=it.useLexicalComposerContext(),{t:k,i18n:T}=Ze.useTranslation(),{pageId:D,maxFileSize:N,registerUpload:L,unregisterUpload:E,reportError:M}=Y1(),O=G1,[I,F]=m.useState(s??"default"),[_,R]=m.useState(()=>wc(h)?"link":"upload"),[j,K]=m.useState(null),[W,B]=m.useState(o??null),[H,Q]=m.useState(""),[ee,ae]=m.useState(null),[pe,Le]=m.useState(!1),Se=m.useRef(null),we=m.useRef(!1),de=m.useRef(null),{uploadProgress:ne,isUploading:Z,isPaused:ce,handleUpload:le,handlePause:se,handleResume:Y,handleCancel:oe,uploadVideoId:$}=QP({parentId:D,parentType:"PAGE",onError:(Je,yt,yn)=>{K(Je),F(`error-${Je}`),yt!=null&&B(yt),yn&&M(yn,"upload",yt??void 0)}});m.useEffect(()=>{if(Z){const Je=`upload-${t}-${Date.now()}`;de.current=Je,L(Je)}else de.current&&(E(de.current),de.current=null);return()=>{de.current&&E(de.current)}},[Z,t,L,E]),m.useEffect(()=>{$&&B($)},[$]),m.useEffect(()=>{wc(h)?R("link"):jB(h)&&R("upload")},[h]),m.useEffect(()=>{we.current=!1},[W]),m.useEffect(()=>{if(_==="link"&&!(H.trim().length>0)&&!(!h||!W)){if(h==="link"){Q(W);return}wc(h)&&Q(Xo(h,W))}},[_,H,h,W]);const{status:J,playback:q,videoUrl:re,primaryUrl:he,optimizedReady:ke,nativeVideoUrl:De,rawPlayable:Ee,isStatusAvailable:Pe}=ZP({videoId:W,enabled:_==="upload"&&!Z}),Fe=_==="upload"?J:null,ze=_==="upload"?q:null,bt=_==="upload"?re:null,mt=_==="upload"?he:null,Ht=_==="upload"?ke:!1,Pt=_==="upload"?Ee:!1,V=_==="upload"?Pe:!1,fe=d??(Fe==null?void 0:Fe.chapters)??void 0,Re=f??(Fe==null?void 0:Fe.subtitles)??void 0,Ke=m.useRef(Re),ge=m.useMemo(()=>Re===Ke.current||JSON.stringify(Re)===JSON.stringify(Ke.current)?Ke.current:(Ke.current=Re,Re),[Re]),me=m.useMemo(()=>{if(g)return g;if(h==="link"){const Je=W??o;if(Je)return Xo(h,Je)}return null},[g,h,W,o]),Ce=(_==="upload"?De:null)??me??null,Be=(ze==null?void 0:ze.rawUrl)??null;m.useEffect(()=>{C==null||C(V)},[V,C]),m.useEffect(()=>{y==null||y(Ht)},[Ht,y]),m.useEffect(()=>{b==null||b(Fe)},[Fe,b]),m.useEffect(()=>{if(_!=="upload")return;const Je=W?Xo("download",W):null,yt=mt??Be??bt??Ce??Je;!we.current&&yt&&W&&!Z&&(we.current=!0,r(yt,W))},[mt,Be,bt,Ce,W,Z,r,_]),m.useEffect(()=>{h!=="download"||!mt||qB(w,t,mt)},[w,t,h,mt]),m.useEffect(()=>{if(!Z)return;const Je=yt=>{yt.preventDefault(),yt.returnValue=""};return window.addEventListener("beforeunload",Je),()=>{window.removeEventListener("beforeunload",Je)}},[Z]),m.useEffect(()=>{I==="upload"&&!Z&&W&&F("analysis")},[I,Z,W]);const{transcodingProgress:Ye,isTranscoding:$e,isPaused:st,startAnalysis:xe,startConversion:Ue,handlePause:_e,handleResume:Ne,handleCancel:Ge}=qP({videoId:W,status:Fe,onAnalysisComplete:()=>{F("conversion"),Ue()},onConversionComplete:()=>{F("video-preview")},onError:()=>{K("interrupted"),F("error-interrupted")}}),We=Z||$e||I==="upload"||I==="analysis"||I==="conversion",Qe=I==="video-preview"&&(_==="link"?!0:V?Ht:Ht||Pt||(!!Ce||!!bt)),tt=(Fe==null?void 0:Fe.state)==="PROCESSING"||(Fe==null?void 0:Fe.state)==="UPLOADING",He=typeof((Vt=Fe==null?void 0:Fe.processing)==null?void 0:Vt.percent)=="number",nt=I==="video-preview"&&_==="upload"&&!!Ce&&V&&!Ht&&!pe&&(tt||He),ct=m.useRef(0),at=Math.max(0,Math.min(100,((Or=Fe==null?void 0:Fe.processing)==null?void 0:Or.percent)??0));at>ct.current&&(ct.current=at),nt||(ct.current=0);const Ve=ct.current,rt=Je=>{if(_!=="upload")return;const yt=N*1024*1024;if(Je.size>yt){K("size-limit"),F("error-size-limit");return}if(!Je.type.startsWith("video/")&&!Je.name.match(/\.(mp4|webm|ogg|mov|avi|mkv|flv|wmv|m4v|3gp|mpg|mpeg|ts|mts|m2ts|vob|asf|rm|rmvb|divx|xvid)$/i)){K("format"),F("error-format");return}F("upload"),Se.current=Je,le(Je)},en=We,St=Je=>{R(Je),K(null),ae(null),F("default")},Tt=()=>{const Je=H.trim();if(!Je||!BP(Je)){ae(k("editor.video.link.invalid"));return}if(!D5(w,t,{url:Je,isLink:!0})){ae(k("editor.video.link.invalid"));return}ae(null),F("video-preview")},Lt=m.useRef(W);Lt.current=W;const Jt=m.useRef($);Jt.current=$,m.useEffect(()=>w.registerCommand(k5,Je=>_==="upload"&&Je.length>0&&!Lt.current&&!Jt.current?(rt(Je[0]),!0):!1,p.COMMAND_PRIORITY_LOW),[w,_,rt]);const _t=async()=>{const Je=W??$;if(j==="interrupted"&&Je)try{await KP(Je),K(null),F("analysis")}catch(yt){M(yt,"retry",Je)}else Se.current?(K(null),F("upload"),le(Se.current)):(K(null),F("default"))},nn=()=>{oe(),Se.current=null,F("default"),B(null)},Ft=()=>{Ge(),Se.current=null,F("default"),B(null)};m.useEffect(()=>{I==="analysis"&&W&&!$e&&xe()},[I,W,$e,xe]),m.useEffect(()=>{o&&B(o),s&&F(s)},[o,s]),m.useEffect(()=>{l==null||l(I)},[I,l]);const Yt=()=>{var Je;if(_==="link"&&I!=="video-preview")return i.jsx(eB,{value:H,disabled:en,error:ee,onChange:yt=>{Q(yt),ee&&ae(null)},onSubmit:Tt});switch(I){case"default":case"hover":case"focus":return i.jsx($2,{onFileSelect:rt,maxFileSize:N});case"upload":return i.jsx(vA,{progress:ne,onPause:se,onResume:Y,onCancel:nn,isPaused:ce});case"error-size-limit":case"error-format":case"error-interrupted":case"error-offset-mismatch":case"error-stall":return i.jsx($P,{errorType:j||"interrupted",onRetry:_t,onCancel:nn,maxFileSize:N});case"analysis":return i.jsx(JP,{progress:Ye,onPause:_e,onResume:Ne,onCancel:Ft,isPaused:st});case"conversion":return i.jsx(XP,{progress:Ye,onPause:_e,onResume:Ne,onCancel:Ft,isPaused:st});case"video-preview":if(!W)return null;if(h&&wc(h)&&h!=="link")return i.jsx("div",{className:"video-embed-container",children:i.jsx("iframe",{src:Xo(h,W),className:"video-embed-frame",width:"100%",height:"100%",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Video embed"})});const yt=c??((Je=Fe==null?void 0:Fe.cover)==null?void 0:Je.url)??null;return i.jsx(NB,{videoId:W,language:T.resolvedLanguage||T.language,videoUrl:bt,primaryUrl:mt,optimizedReady:Ht,nativeVideoUrl:Ce,rawUrl:Be,storyboard:(Fe==null?void 0:Fe.storyboard)??null,chapters:nt?void 0:fe,isProcessing:nt,subtitles:ge,posterUrl:yt,onPlayerInfo:x,onFallback:Le});default:return i.jsx($2,{onFileSelect:rt,maxFileSize:N})}};return i.jsx(Qo.BlockWithAlignableContents,{className:e,format:n,nodeKey:t,children:i.jsxs(v.Box,{className:"video-upload-container","data-state":I,"data-ready":Qe?"true":"false",children:[I!=="video-preview"?i.jsx("div",{className:"video-upload-header",onClick:Je=>Je.stopPropagation(),onMouseDown:Je=>Je.stopPropagation(),onPointerDown:Je=>Je.stopPropagation(),children:i.jsx(O,{data:[{value:"upload",label:k("editor.video.source.uploadVideo")},{value:"link",label:k("editor.video.source.embedLink")}],value:_,w:"max-content",disabled:en,size:"sm",className:"video-upload-source-select",classNames:{root:"video-upload-source-select__root",wrapper:"video-upload-source-select__wrapper",input:"editor-select__input video-upload-source-select__input"},rightSectionWidth:32,comboboxProps:{position:"bottom-start",width:237},onChange:Je=>{Je&&St(Je)}})}):null,nt?i.jsxs("div",{className:"video-upload-processing-banner",children:[i.jsx(Z1,{size:20}),i.jsx(v.Text,{className:"video-upload-processing-text",children:k("editor.video.upload.processed",{percent:Math.round(Ve)})})]}):null,i.jsx("div",{className:"video-upload-plugin",children:Yt()})]})})}function ha(e){const n=Math.max(0,Number(e)||0),t=Math.floor(n/3600),r=Math.floor(n%3600/60),o=Math.floor(n%60);return t>0?`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`:`${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`}function aC(e){const n=e.split(":").map(t=>t.trim());if(n.length===2){const t=Number(n[0]),r=Number(n[1]);return!Number.isFinite(t)||!Number.isFinite(r)?null:t*60+r}if(n.length===3){const t=Number(n[0]),r=Number(n[1]),o=Number(n[2]);return!Number.isFinite(t)||!Number.isFinite(r)||!Number.isFinite(o)?null:t*3600+r*60+o}return null}function IB(e,n){return e.startsWith("http://")||e.startsWith("https://")?e:`${n||(typeof window<"u"?window.location.origin:"")}${e}`}function DB(e){return e?{Authorization:`Bearer ${e}`}:{}}async function lC(e){const n=await e.text();if(!n)return null;try{return JSON.parse(n)}catch{return n}}async function OB(e){if(!e.ok){const n=await lC(e),t=(n&&typeof n=="object"&&"message"in n?n.message:null)||(n&&typeof n=="object"&&"error"in n?n.error:null)||e.statusText||"Request failed";throw new Error(t)}return lC(e)}async function PB(e,n,t={}){const r=IB(`/v1/videos/${e}/chapters`,t.baseUrl),o=await fetch(r,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json",...DB(t.authToken)},body:JSON.stringify({chapters:n})});await OB(o)}function I5(){try{return crypto.randomUUID()}catch{return`${Date.now()}-${Math.random().toString(16).slice(2)}`}}function BB(e){return e.map(n=>({id:I5(),startSec:n.startSec??0,title:(n.title??"").trim()})).sort((n,t)=>n.startSec-t.startSec)}function _B({chapter:e,index:n,startSec:t,endSec:r,isLast:o,disabled:s,startTimePlaceholder:l,endTimePlaceholder:c,titlePlaceholder:d,deleteChapterLabel:f,startMin:h,startMax:g,endMin:C,endMax:y,onStartSecChange:b,onEndSecChange:x,onTitleChange:w,onRemove:k}){const[T,D]=m.useState(()=>ha(t)),[N,L]=m.useState(()=>r==null?"":ha(r)),[E,M]=m.useState(!1),[O,I]=m.useState(!1),[F,_]=m.useState(!1),[R,j]=m.useState(!1);m.useEffect(()=>{F||D(ha(t))},[t,F]),m.useEffect(()=>{R||L(r==null?"":ha(r))},[r,R]);const K=B=>{D(B);const H=aC(B);if(H!==null){const Q=Math.floor(Number(H)||0),ee=Q<h,ae=g!=null&&Q>g;if(ee||ae){M(!0);return}M(!1),b(n,Q)}else if(B.trim()===""){const ee=0<h,ae=g!=null&&0>g;if(ee||ae){M(!0);return}M(!1),b(n,0)}else M(!0)},W=B=>{if(L(B),o)return;const H=aC(B);if(H!==null){const Q=Math.floor(Number(H)||0),ae=Q<(C??-1/0),pe=y!=null&&Q>y;if(ae||pe){I(!0);return}I(!1),x(n,Q)}else B.trim()===""?I(!1):I(!0)};return i.jsxs(v.Group,{gap:10,align:"flex-start",wrap:"nowrap",className:"video-settings-modal-chapter-row",style:{maxWidth:"100%"},children:[i.jsxs(v.Stack,{className:"video-settings-modal-chapter-times",children:[i.jsx(v.TextInput,{size:"sm",radius:8,variant:"default",placeholder:l,value:T,onChange:B=>K(B.currentTarget.value),style:{width:"100%"},styles:{input:{height:36,paddingTop:6,paddingBottom:6,paddingLeft:12,paddingRight:12,lineHeight:1.45}},error:E,disabled:s,onFocus:()=>_(!0),onBlur:()=>_(!1)}),i.jsx(v.TextInput,{size:"sm",radius:8,variant:"default",placeholder:c,value:N,onChange:B=>W(B.currentTarget.value),style:{width:"100%"},styles:{input:{height:36,paddingTop:6,paddingBottom:6,paddingLeft:12,paddingRight:12,lineHeight:1.45}},error:O,disabled:s||o||r==null,onFocus:()=>j(!0),onBlur:()=>j(!1)})]}),i.jsx(v.Flex,{className:"video-settings-modal-chapter-title",children:i.jsx(v.Textarea,{size:"sm",radius:8,variant:"default",placeholder:d,value:e.title,onChange:B=>w(n,B.currentTarget.value),styles:{root:{width:"100%",height:"100%"},wrapper:{height:"100%"},input:{height:"100%",paddingTop:8,paddingBottom:8,paddingLeft:12,paddingRight:12,lineHeight:1.45,resize:"none"}},style:{width:"100%",height:"100%"},disabled:s})}),i.jsx(v.Flex,{className:"video-settings-modal-chapter-actions",children:i.jsxs(v.Menu,{position:"bottom-end",children:[i.jsx(v.Menu.Target,{children:i.jsx(v.ActionIcon,{size:36,variant:"subtle",color:"gray","aria-label":"Chapter actions",disabled:s,radius:8,children:i.jsx(V1,{size:20})})}),i.jsx(v.Menu.Dropdown,{children:i.jsx(v.Menu.Item,{color:"red",onClick:()=>k(n),children:f})})]})})]})}function FB({videoId:e,initialChapters:n,nativeVideo:t,shakaPlayer:r,videoDuration:o,baseUrl:s,authToken:l,title:c,customLabel:d,dontShowLabel:f,chaptersDisabled:h,onChaptersDisabledChange:g,onSave:C,timePlaceholder:y,endTimePlaceholder:b,titlePlaceholder:x,addChapterLabel:w,deleteChapterLabel:k,emptyLabel:T,errorLabel:D,invalidRangeLabel:N,addTranscriptManuallyLabel:L}){const E=G1,[M,O]=m.useState([]),[I,F]=m.useState(null),[_,R]=m.useState(null),[j,K]=m.useState(!1),[W,B]=m.useState(!1),[H,Q]=m.useState(null),ee=m.useRef(!1),ae=m.useRef(!1),pe=m.useMemo(()=>({baseUrl:s,authToken:l}),[s,l]),Le=m.useCallback(se=>{ae.current||ee.current||O(BB(se))},[]);m.useEffect(()=>{var se;if(o!=null&&o>0){Q(o);return}try{const Y=(se=r==null?void 0:r.seekRange)==null?void 0:se.call(r);if(Y&&Number.isFinite(Y.end)&&Y.end>0){Q(Y.end);return}}catch{}if(t){const Y=t.duration;if(Number.isFinite(Y)&&Y>0){Q(Y);return}}},[o,r,t]);const Se=m.useCallback(()=>H==null?null:Math.floor(H),[H]);m.useCallback(()=>{const se=[...M].filter(oe=>oe.title.trim()).sort((oe,$)=>oe.startSec-$.startSec),Y=Se();for(let oe=0;oe<se.length;oe++){const $=Math.floor(Number(se[oe].startSec)||0),J=oe<se.length-1?Math.floor(Number(se[oe+1].startSec)||0):null;if($<0||J!=null&&$>=J||Y!=null&&$>=Y)return!1;const q=J??Y??null;if(q!=null&&$>=q||Y!=null&&q!=null&&q>Y)return!1}return!0},[M,Se]);const we=m.useCallback(async()=>{if(!e)return null;R(null),B(!0),ae.current=!0,F(null);try{const se=M.filter(Y=>Y.title.trim()).filter(Y=>H==null||Y.startSec<H).sort((Y,oe)=>Y.startSec-oe.startSec).map(({startSec:Y,title:oe})=>({startSec:Y,title:oe}));return await PB(e,se,pe),ee.current=!1,se}catch(se){const Y=se instanceof Error?se.message:D;return/exceeds/i.test(Y)||F(Y),null}finally{B(!1),ae.current=!1}},[e,M,pe,D,Se]);m.useEffect(()=>{C==null||C(we)},[we,C]);const de=m.useCallback(()=>{ee.current=!0,R(null),O(se=>{const Y=H!=null?Math.floor(H):null,oe=[...se].sort((re,he)=>re.startSec-he.startSec),$=oe.length>0?Math.floor(oe[oe.length-1].startSec):-1,J=Math.max(0,$+1),q=Y!=null?Math.min(J,Math.max(0,Y-1)):J;return[...oe,{id:I5(),startSec:q,title:""}]})},[H]),ne=m.useCallback((se,Y)=>{ee.current=!0,O(oe=>{const J=[...[...oe].sort((re,he)=>re.startSec-he.startSec)],q=J[se];return q?(J[se]={...q,title:Y},J):oe})},[]),Z=m.useCallback((se,Y)=>{ee.current=!0,R(null),O(oe=>{const $=[...oe].sort((re,he)=>re.startSec-he.startSec),J=$[se];if(!J)return oe;const q=[...$];return q[se]={...J,startSec:Y},q.sort((re,he)=>re.startSec-he.startSec)})},[]),ce=m.useCallback((se,Y)=>{ee.current=!0,R(null),O(oe=>{const $=[...oe].sort((re,he)=>re.startSec-he.startSec);if(se>=$.length-1)return oe;const J=$[se+1];if(!J)return oe;const q=[...$];return q[se+1]={...J,startSec:Y},q.sort((re,he)=>re.startSec-he.startSec)})},[]),le=m.useCallback(se=>{ee.current=!0,R(null),O(Y=>[...Y].sort(($,J)=>$.startSec-J.startSec).filter(($,J)=>J!==se))},[]);return m.useEffect(()=>{if(!e){O([]),F(null),ee.current=!1;return}ae.current||ee.current||Array.isArray(n)&&Le(n)},[e,n,Le]),i.jsxs(v.Stack,{gap:"xs",children:[i.jsx(v.Text,{className:"video-settings-modal-section-title",children:c}),i.jsx(E,{size:"sm",radius:8,allowDeselect:!1,value:h?"disabled":"custom",data:[{value:"custom",label:d},{value:"disabled",label:f}],onChange:se=>{g(se==="disabled")},classNames:{root:"video-settings-modal-select-fullwidth",input:"video-settings-modal-language-select"},comboboxProps:{position:"bottom-start",width:"target"}}),!h&&i.jsxs(i.Fragment,{children:[i.jsx(v.Divider,{my:4}),L&&i.jsx(v.Text,{size:"sm",fw:500,className:"video-settings-modal-text-label",children:L}),I&&i.jsx(v.Text,{size:"sm",c:"red",mb:"xs",children:I}),_&&i.jsx(v.Text,{size:"sm",c:"red",mb:"xs",children:_}),i.jsx(v.Stack,{gap:12,children:[...M].sort((se,Y)=>se.startSec-Y.startSec).map((se,Y,oe)=>{const $=oe[Y+1]||null,J=oe[Y+2]||null,q=H!=null?Math.floor(H):null,re=$!=null?Math.floor($.startSec):q??null,he=Math.floor(se.startSec),ke=Y>0?Math.floor(oe[Y-1].startSec):null,De=$!=null?Math.floor($.startSec):null,Ee=ke!=null?ke+1:0,Pe=De!=null?De-1:null,Fe=q!=null?q-1:null,ze=Pe!=null&&Fe!=null?Math.min(Pe,Fe):Pe??Fe,bt=Y<oe.length-1?he+1:null,mt=J!=null?Math.floor(J.startSec):null,Ht=mt!=null?mt-1:null,Pt=q??null,V=Ht!=null&&Pt!=null?Math.min(Ht,Pt):Ht??Pt;return i.jsx(_B,{chapter:se,index:Y,startSec:he,endSec:re,isLast:Y===oe.length-1,startMin:Ee,startMax:ze,endMin:bt,endMax:V,disabled:!1,startTimePlaceholder:y,endTimePlaceholder:H!=null?ha(Math.floor(H)):b,titlePlaceholder:x,deleteChapterLabel:k,onStartSecChange:Z,onEndSecChange:ce,onTitleChange:ne,onRemove:le},se.id)})}),i.jsx(v.Text,{component:"button",type:"button",className:"video-settings-modal-link",onClick:de,children:w}),M.length===0&&!j&&i.jsx(v.Text,{size:"xs",c:"dimmed",children:T})]})]})}function WB({opened:e,videoId:n,initialStatus:t,title:r,uploadLabel:o,cropLabel:s,emptyCoverLabel:l,loadErrorLabel:c,retryLabel:d,onCoverUpload:f,onCropCover:h,onPosterChange:g,onSelectedPosterChange:C,selectedPosterUrl:y}){var we,de;const[b,x]=m.useState(null),[w,k]=m.useState(null),[T,D]=m.useState(!1),[N,L]=m.useState(!1),[E,M]=m.useState(new Set),[O,I]=m.useState(new Set),[F,_]=m.useState(null),R=m.useRef(null),j=m.useRef(!1),K=m.useMemo(()=>{const ne=(b==null?void 0:b.previews)??[];return F?[...ne,{id:"uploaded",url:F,order:ne.length}]:ne},[b==null?void 0:b.previews,F]),W=m.useMemo(()=>{var ne,Z;return((ne=b==null?void 0:b.cover)==null?void 0:ne.previewId)??((Z=K[0])==null?void 0:Z.id)??null},[(we=b==null?void 0:b.cover)==null?void 0:we.previewId,K]),B=w??W;K.length>0;const H=K.length+1,Q=H>3,ee=m.useCallback(ne=>{M(Z=>{const ce=new Set(Z);return ce.delete(ne),ce}),I(Z=>{const ce=new Set(Z);return ce.delete(ne),ce})},[]),ae=m.useCallback(ne=>{M(Z=>{const ce=new Set(Z);return ce.delete(ne),ce}),I(Z=>new Set(Z).add(ne))},[]),pe=m.useCallback(async()=>{var ne,Z,ce;if(n){D(!0),L(!1);try{const le=await ji(n);x(le);const se=((Z=(ne=le==null?void 0:le.previews)==null?void 0:ne[0])==null?void 0:Z.id)??null,Y=((ce=le==null?void 0:le.cover)==null?void 0:ce.previewId)??se;k(Y),M(new Set),I(new Set)}catch(le){console.error("cover status fetch failed",le instanceof Error?le.message:le),L(!0)}finally{D(!1)}}},[n]),Le=m.useCallback(async ne=>{var le,se,Y,oe;const Z=ne[0];if(!Z||!f)return;const ce=URL.createObjectURL(Z);_(ce),M(new Set(["uploaded"])),k("uploaded"),C==null||C(ce);try{const $=await Promise.resolve(f(Z));_(null),ce&&URL.revokeObjectURL(ce);const J=$==null?void 0:$.previews,q=Array.isArray(J)&&J.length>0;if($&&q&&J){j.current=!0,x($);const re=((le=J[J.length-1])==null?void 0:le.id)??((se=$==null?void 0:$.cover)==null?void 0:se.previewId)??((Y=J[0])==null?void 0:Y.id);if(k(re??"uploaded"),re){const he=(oe=J.find(ke=>ke.id===re))==null?void 0:oe.url;he&&(C==null||C(he))}M(new Set),I(new Set)}else pe()}catch($){_(null),ce&&URL.revokeObjectURL(ce),k(null),console.error("cover upload failed",$ instanceof Error?$.message:$),pe()}},[f,pe,C]),Se=m.useMemo(()=>{var ne,Z;return y||(((ne=K.find(ce=>ce.id===B))==null?void 0:ne.url)??((Z=b==null?void 0:b.cover)==null?void 0:Z.url)??null)},[y,K,B,(de=b==null?void 0:b.cover)==null?void 0:de.url]);return m.useEffect(()=>{var ne,Z,ce;if(!(!e||!n))if(t){x(t);const le=((Z=(ne=t==null?void 0:t.previews)==null?void 0:ne[0])==null?void 0:Z.id)??null,se=((ce=t==null?void 0:t.cover)==null?void 0:ce.previewId)??le;k(se),M(new Set),I(new Set),D(!1),L(!1)}else pe()},[e,n]),m.useEffect(()=>{if(!F||!R.current)return;const Z=requestAnimationFrame(()=>{var se;const le=((b==null?void 0:b.previews)??[]).length+1;(se=R.current)==null||se.scrollTo(le)});return()=>cancelAnimationFrame(Z)},[F,b==null?void 0:b.previews]),m.useEffect(()=>{if(!j.current)return;j.current=!1;const ne=R.current;if(!ne)return;const ce=((b==null?void 0:b.previews)??[]).length;requestAnimationFrame(()=>ne.scrollTo(ce))},[b==null?void 0:b.previews]),m.useEffect(()=>()=>{R.current=null},[]),i.jsxs(v.Stack,{gap:"xs",children:[i.jsx(v.Text,{className:"video-settings-modal-section-title",children:r}),N&&i.jsxs(v.Group,{gap:"xs",mb:"xs",children:[i.jsx(v.Text,{size:"sm",c:"red",children:c}),d&&i.jsx(v.Button,{variant:"light",size:"xs",onClick:pe,children:d})]}),i.jsxs(tf.Carousel,{className:"video-settings-modal-cover-carousel",classNames:{controls:"video-settings-modal-cover-controls",control:"video-settings-modal-cover-control"},slideSize:"33.333%",slideGap:"10px",emblaOptions:{loop:!1},withControls:Q,draggable:H>1,nextControlIcon:i.jsx(te,{icon:lo,size:20,color:"currentColor"}),previousControlIcon:i.jsx(te,{icon:zC,size:20,color:"currentColor"}),getEmblaApi:ne=>{R.current=ne},children:[i.jsx(tf.Carousel.Slide,{children:i.jsx(v.Box,{className:"video-settings-modal-cover-cell",children:i.jsx(yg.Dropzone,{className:"video-settings-modal-cover-upload",onDrop:Le,accept:yg.IMAGE_MIME_TYPE,maxFiles:1,disabled:!f,style:f?void 0:{opacity:.7,pointerEvents:"none"},children:i.jsxs(v.Box,{className:"video-settings-modal-cover-upload-inner",children:[i.jsx(te,{icon:UC,size:20,color:"var(--mantine-color-bright)"}),i.jsx(v.Text,{size:"sm",fw:500,className:"video-settings-modal-cover-upload-label",children:o})]})})})}),K.map(ne=>{const Z=Se!=null?ne.url===Se:B!=null&&ne.id===B,ce=E.has(ne.id),le=O.has(ne.id);return i.jsx(tf.Carousel.Slide,{children:i.jsxs(v.Box,{className:`video-settings-modal-cover-cell video-settings-modal-cover-thumb ${Z&&!le?"selected":""} ${ce?"loading":""} ${le?"error":""}`,onClick:()=>{le||(k(ne.id),C==null||C(ne.url))},role:"button",tabIndex:0,onKeyDown:se=>se.key==="Enter"&&!le&&(()=>{k(ne.id),C==null||C(ne.url)})(),children:[i.jsx("img",{src:ne.url,alt:"",onLoad:()=>ee(ne.id),onError:()=>ae(ne.id)}),ce&&i.jsx("span",{className:"video-settings-modal-cover-spinner","aria-hidden":!0,children:i.jsx(v.Loader,{size:"sm",color:"gray"})}),le&&i.jsx("span",{className:"video-settings-modal-cover-error-icon","aria-hidden":!0,children:i.jsx(te,{icon:Fh,size:24,color:"#fff"})}),Z&&!le&&i.jsx("span",{className:"video-settings-modal-cover-check","aria-hidden":!0,children:i.jsx(hB,{size:32})})]})},ne.id)})]})]})}function zB({cancelLabel:e,saveLabel:n,onCancel:t,onSave:r,isSaving:o}){return i.jsxs(v.Group,{justify:"flex-end",gap:8,children:[i.jsx(v.Button,{size:"sm",variant:"subtle",color:"gray",radius:"md",onClick:t,disabled:o,children:e}),i.jsx(v.Button,{size:"sm",radius:"md",onClick:r,loading:o,children:n})]})}const uu=[{value:"en",label:"English"},{value:"es",label:"Español"},{value:"fr",label:"Français"},{value:"de",label:"Deutsch"},{value:"it",label:"Italiano"},{value:"pt",label:"Português"},{value:"ru",label:"Русский"},{value:"uk",label:"Українська"},{value:"pl",label:"Polski"},{value:"nl",label:"Nederlands"},{value:"sv",label:"Svenska"},{value:"no",label:"Norsk"},{value:"da",label:"Dansk"},{value:"fi",label:"Suomi"},{value:"tr",label:"Türkçe"},{value:"ar",label:"العربية"},{value:"he",label:"עברית"},{value:"hi",label:"हिन्दी"},{value:"ja",label:"日本語"},{value:"ko",label:"한국어"},{value:"zh",label:"中文"},{value:"ro",label:"Română"}],cC="ru",Nh=uu.reduce((e,n)=>(e[n.value]=n.label,e),{});function KB({videoId:e,baseUrl:n,authToken:t,statusSubtitles:r,onTracksChange:o,onSave:s}){const{t:l}=Ze.useTranslation(),{reportError:c}=Y1(),d=G1,[f,h]=m.useState([]),[g,C]=m.useState([]),y=m.useRef(new Map),[b,x]=m.useState(!1),w=m.useMemo(()=>f.find(cu)??null,[f]);m.useEffect(()=>{w&&x(w.isDisabled)},[w]);const k=m.useMemo(()=>({baseUrl:n,authToken:t}),[n,t]),T=m.useCallback(R=>{w&&(x(R),h(j=>j.map(K=>K.id===w.id?{...K,isDisabled:R}:K)))},[w]),D=m.useRef(null);m.useEffect(()=>{w&&D.current===null&&(D.current=w.isDisabled)},[w]);const N=m.useCallback(async(R=!1)=>{if(e){if(R||r==null)try{const j=await oC(e,k);h(j);return}catch{}try{const j=await oC(e,k);h(j)}catch{if(r!=null){const j=(r||[]).map(Ri).filter(K=>K.id);h(j)}else try{const j=await ji(e),K=((j==null?void 0:j.subtitles)||[]).map(Ri).filter(W=>W.id);h(K)}catch(j){c(j,"subtitles",e)}}}},[e,k,c,r]);m.useEffect(()=>{if(!e){h([]),C([]);return}N().catch(()=>{})},[e,N]),m.useEffect(()=>{o==null||o(f)},[f,o]),m.useEffect(()=>{s==null||s(async()=>{!e||!w||b!==D.current&&(await mB(e,w.id,b,k),D.current=b)})},[s,e,w,b,k]);const L=m.useMemo(()=>{const R=f.filter(K=>!cu(K)),j=new Map;for(const K of R)j.set(K.lang,K);return Array.from(j.values())},[f]),E=m.useMemo(()=>{const R=new Set(L.map(j=>j.lang));return g.forEach(j=>{j.lang&&R.add(j.lang)}),R},[L,g]),M=m.useCallback(()=>{var K;const R=((K=uu.find(W=>!E.has(W.value)))==null?void 0:K.value)??(E.has(cC)?null:cC),j=R?Nh[R]||R:null;C(W=>[...W,{id:crypto.randomUUID(),lang:R,label:j,status:"draft"}])},[E]),O=m.useCallback((R,j)=>{C(K=>K.map(W=>W.id===R?{...W,...j}:W))},[]),I=m.useCallback(async(R,j)=>{if(!e)return;const K=g.find(B=>B.id===R);if(!(K!=null&&K.lang))return;const W=new AbortController;y.current.set(R,W),O(R,{status:"uploading",fileName:j.name});try{const B=await pB(e,j,{lang:K.lang,label:K.label||Nh[K.lang]||K.lang,kind:"subtitles",default:!1,signal:W.signal},k);y.current.delete(R),C(H=>H.filter(Q=>Q.id!==R)),B?h(H=>H.find(Q=>Q.id===B.id)?H:[...H,B]):await N(!0)}catch(B){y.current.delete(R),O(R,{status:"error"}),c(B,"subtitles",e)}},[e,g,k,N,O,c]),F=m.useCallback(async R=>{e&&(h(j=>j.filter(K=>K.id!==R)),await gB(e,R,k))},[e,k]),_=m.useCallback(R=>{C(j=>j.filter(K=>K.id!==R))},[]);return i.jsxs("div",{className:"video-settings-modal-subtitles",children:[w&&i.jsxs(v.Flex,{align:"center",gap:"md",className:"video-settings-modal-subtitles-auto-toggle",children:[i.jsx(v.Text,{size:"sm",fw:500,c:"var(--mantine-color-bright)",flex:1,children:l("editor.video.settingsModal.hideAutoSubtitles")}),i.jsx(v.Switch,{size:"sm",checked:b,onChange:R=>T(R.currentTarget.checked)})]}),w&&i.jsx(v.Divider,{my:4}),i.jsx(v.Text,{size:"sm",mb:0,className:"video-settings-modal-subtitles-label video-settings-modal-text-label",children:l("editor.video.settingsModal.uploadSubtitlesManually")}),L.map(R=>i.jsxs(v.Flex,{align:"center",gap:"xs",wrap:"nowrap",className:"video-settings-modal-subtitles-row",children:[i.jsx(d,{size:"sm",data:uu,value:R.lang,disabled:!0,flex:1,miw:140,w:"auto",comboboxProps:{width:"target"},classNames:{input:"video-settings-modal-language-select"}}),i.jsxs(v.Flex,{align:"center",gap:6,flex:1,children:[i.jsx(Eo,{size:20,color:"var(--mantine-color-green-6)"}),i.jsx(v.Text,{size:"sm",children:l("editor.video.settingsModal.successfullyLoaded")})]}),i.jsxs(v.Menu,{position:"bottom-end",children:[i.jsx(v.Menu.Target,{children:i.jsx(v.ActionIcon,{size:36,variant:"subtle",color:"gray","aria-label":"Subtitle actions",children:i.jsx(V1,{size:20})})}),i.jsx(v.Menu.Dropdown,{children:i.jsx(v.Menu.Item,{color:"red",onClick:()=>F(R.id),children:l("editor.video.settingsModal.deleteSubtitle")})})]})]},R.id)),g.map(R=>i.jsx(UB,{draft:R,usedLanguages:E,onChange:j=>O(R.id,j),onUpload:j=>I(R.id,j),onRemove:()=>_(R.id),SelectComponent:d},R.id)),i.jsx(v.Text,{component:"button",type:"button",className:"video-settings-modal-link",onClick:M,children:l("editor.video.settingsModal.addSubtitleTrack")})]})}function UB({draft:e,usedLanguages:n,onChange:t,onUpload:r,onRemove:o,SelectComponent:s}){const{t:l}=Ze.useTranslation(),c=m.useRef(null),d=m.useMemo(()=>uu.filter(h=>h.value===e.lang||!n.has(h.value)),[n,e.lang]),f=h=>{var C;const g=(C=h.target.files)==null?void 0:C[0];h.target.value="",g&&r(g)};return i.jsx(v.Box,{children:i.jsxs(v.Flex,{align:"center",wrap:"nowrap",className:"video-settings-modal-subtitles-row",children:[i.jsx(s,{size:"sm",placeholder:l("editor.video.settingsModal.selectLanguage"),data:d,value:e.lang,onChange:h=>t({lang:h,label:h?Nh[h]:null}),flex:1,miw:140,w:"auto",comboboxProps:{width:"target"},inputClassName:"video-settings-modal-language-select"}),i.jsx(v.Flex,{align:"center",gap:6,flex:1,children:e.status==="uploading"?i.jsx(v.Loader,{size:22}):i.jsxs(i.Fragment,{children:[i.jsx("input",{ref:c,type:"file",accept:".srt,.vtt",hidden:!0,onChange:f}),i.jsx(v.Button,{variant:"light",size:"sm",className:"video-settings-modal-upload-button",disabled:!e.lang,onClick:()=>{var h;return(h=c.current)==null?void 0:h.click()},children:l("editor.video.settingsModal.uploadFile")})]})}),i.jsxs(v.Menu,{position:"bottom-end",children:[i.jsx(v.Menu.Target,{children:i.jsx(v.ActionIcon,{size:36,variant:"subtle",color:"gray","aria-label":"Subtitle actions",children:i.jsx(V1,{size:20})})}),i.jsx(v.Menu.Dropdown,{children:i.jsx(v.Menu.Item,{color:"red",onClick:o,children:l("editor.video.settingsModal.deleteSubtitle")})})]}),e.status==="error"&&i.jsx(v.Text,{size:"sm",c:"red",children:l("editor.video.settingsModal.uploadError")})]})})}function uC({opened:e,onClose:n,videoId:t,initialStatus:r,onStatusChange:o,onPosterChange:s,onChaptersSaved:l,onChaptersDisabledChange:c,onSubtitlesSaved:d,posterUrl:f,chaptersDisabled:h=!1,shakaPlayer:g,nativeVideo:C,videoDuration:y,playerMode:b="native"}){const{t:x}=Ze.useTranslation(),[w,k]=m.useState(h),[T,D]=m.useState(null),[N,L]=m.useState(r??null),[E,M]=m.useState([]),O=m.useRef(null),I=m.useRef(null),[F,_]=m.useState(!1),R=m.useCallback(B=>{D(B)},[]);m.useEffect(()=>{r&&L(r)},[r]),m.useEffect(()=>{!e||!t||ji(t).then(B=>{B&&(L(B),o==null||o(B))}).catch(()=>{})},[e,t]),m.useEffect(()=>{e&&k(h)},[e,h]);const j=m.useCallback(async B=>{if(t)return zP(t,B)},[t]),K=m.useCallback(async()=>{_(!0);try{if(O.current){const B=await O.current();Array.isArray(B)&&(l==null||l(B))}if(c==null||c(w),I.current&&await I.current(),d==null||d(E),T!==null&&(s==null||s(T)),t){const B=await ji(t);o==null||o(B)}n()}finally{_(!1)}},[t,w,c,l,n,s,o,d,T,E]),W=i.jsxs(i.Fragment,{children:[i.jsx(v.Box,{className:"video-settings-modal-body",children:i.jsxs(v.Stack,{gap:32,children:[i.jsx(WB,{opened:e,videoId:t,initialStatus:N,title:x("editor.video.settingsModal.cover"),uploadLabel:x("editor.video.settingsModal.uploadFile"),cropLabel:x("editor.video.settingsModal.cropCoverImage"),emptyCoverLabel:x("editor.video.settingsModal.emptyCovers"),loadErrorLabel:x("editor.video.settingsModal.loadError"),retryLabel:x("editor.video.settingsModal.retry"),onCoverUpload:j,onSelectedPosterChange:R,selectedPosterUrl:T??f??null}),i.jsxs(v.Stack,{gap:"xs",children:[i.jsxs(v.Flex,{align:"center",gap:6,children:[i.jsx(v.Text,{className:"video-settings-modal-section-title",children:x("editor.video.settingsModal.subtitles")}),i.jsx(v.Tooltip,{label:x("editor.video.settingsModal.subtitlesFormatHint"),position:"right",withArrow:!0,children:i.jsx(te,{icon:q8,size:16,color:"var(--mantine-color-dimmed)"})})]}),i.jsx(KB,{videoId:t,mode:b,shakaPlayer:g,nativeVideo:C,statusSubtitles:N==null?void 0:N.subtitles,onTracksChange:M,onSave:B=>{I.current=B}})]}),i.jsx(FB,{videoId:t,initialChapters:N==null?void 0:N.chapters,nativeVideo:C,shakaPlayer:g,videoDuration:y,title:x("editor.video.settingsModal.chapters"),customLabel:x("editor.video.settingsModal.chaptersCustom"),dontShowLabel:x("editor.video.settingsModal.chaptersDontShow"),chaptersDisabled:w,onChaptersDisabledChange:k,onSave:B=>{O.current=B},timePlaceholder:x("editor.video.settingsModal.chaptersTimePlaceholder"),titlePlaceholder:x("editor.video.settingsModal.chaptersTitlePlaceholder"),endTimePlaceholder:x("editor.video.settingsModal.chaptersEndTimePlaceholder"),addChapterLabel:x("editor.video.settingsModal.addChapter"),deleteChapterLabel:x("editor.video.settingsModal.deleteChapter"),emptyLabel:x("editor.video.settingsModal.emptyChapters"),errorLabel:x("editor.video.settingsModal.chaptersError"),invalidRangeLabel:x("editor.video.settingsModal.chaptersInvalidTimeRange"),addTranscriptManuallyLabel:x("editor.video.settingsModal.addTranscriptManually")})]})}),i.jsx(v.Box,{className:"video-settings-modal-footer",children:i.jsx(zB,{cancelLabel:x("editor.video.settingsModal.cancel"),saveLabel:x("editor.video.settingsModal.save"),onCancel:n,onSave:K,isSaving:F})})]});return Nt?i.jsx(v.Drawer,{opened:e,onClose:n,title:x("editor.video.settingsModal.title"),position:"bottom",size:"auto",radius:"lg",zIndex:300,className:"video-settings-modal",classNames:{content:"video-settings-drawer",header:"video-settings-drawer__header",title:"video-settings-drawer__title",body:"video-settings-drawer__body"},children:W}):i.jsx(v.Modal,{opened:e,onClose:n,title:x("editor.video.settingsModal.title"),size:"md",radius:"lg",zIndex:300,className:"video-settings-modal",children:W})}function dC(e){if(e==="inherit")return 100;if(typeof e=="number")return e;if(typeof e=="string"){const n=parseFloat(e);if(!isNaN(n))return n}return 100}function HB({className:e,format:n,platform:t,videoID:r,editor:o,nodeKey:s,width:l,height:c,alignment:d}){const f=D1,[h,{open:g,close:C}]=Sn.useDisclosure(!1),[,y]=m.useState(!1),[b,x]=m.useState(!0),[w,k]=m.useState(!1),[T,D]=m.useState(!1),[N,L]=m.useState(null),[E,M]=m.useState(!1),[O,I]=m.useState(null),[F,_]=m.useState(null),[R,j]=m.useState(null),[K,W]=m.useState(!0),[B,H]=m.useState(!1),[Q,ee]=m.useState({shakaPlayer:null,nativeVideo:null,mode:"native",containerEl:null,videoDuration:null}),ae=m.useMemo(()=>t==="download"||t==="link"?Xo(t,r):null,[t,r]),{t:pe}=Ze.useTranslation(),Le=(Y,oe=!1,$,J)=>{D5(o,s,{url:Y,isLink:oe,platformOverride:$,overrideId:J})||y(!0)},Se=(Y,oe)=>{GB(o,s,Y,oe)},we=Y=>{x(["video-preview"].includes(Y))},de=()=>{var oe,$,J;const Y=document.pictureInPictureElement;if(Y){const q=(($=(oe=Q.shakaPlayer)==null?void 0:oe.getMediaElement)==null?void 0:$.call(oe))||null,re=Q.nativeVideo||null,he=Q.containerEl||null,ke=Y instanceof HTMLVideoElement&&(re&&re.currentSrc===Y.currentSrc||q&&q.currentSrc===Y.currentSrc);(Y===q||Y===re||he&&he.contains(Y)||ke)&&((J=document.exitPictureInPicture)==null||J.call(document).catch(()=>{}))}JB(o,s)},ne=m.useCallback(Y=>{L(Y),VB(o,s,Y)},[o,s]),Z=m.useCallback(Y=>{M(Y),QB(o,s,Y)},[o,s]),ce=m.useCallback(Y=>{ee(Y)},[]);m.useEffect(()=>{o.getEditorState().read(()=>{const Y=p.$getNodeByKey(s);zi(Y)&&(L(Y.getPosterUrl()||null),M(Y.getChaptersDisabled()))})},[o,s]);const le=E?[]:O,se={className:e,format:n,nodeKey:s,onUploadComplete:(Y,oe)=>{Le(Y,!1,"download",oe)},onStateChange:we,initialVideoState:r&&(t==="download"||t==="link"||t==="youtube"||t==="vk"||t==="rutube")?"video-preview":void 0};return i.jsx(A1,{editor:o,isIcon:!1,isEmbed:!0,width:dC(l),height:dC(c),onResizeEnd:Se,alignment:d,type:"video",disableInteractions:!b||T,children:i.jsxs("div",{className:"media-wrapper",children:[Nt?i.jsxs(i.Fragment,{children:[i.jsx(X2,{className:"visible",children:i.jsx(Cn,{label:pe("editor.video.mobile.actions"),tooltipDisabled:!0,icon:Mr,iconColor:"var(--mantine-color-gray-text)","aria-label":pe("editor.video.mobile.actions"),className:"media-action",onClick:Y=>{Y.stopPropagation(),g()}})}),i.jsx(En,{opened:h,onClose:C,title:pe("editor.video.mobile.actions"),children:i.jsxs(v.Stack,{gap:4,p:0,children:[K&&B&&i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:()=>{C(),D(!0)},leftSection:i.jsx(te,{icon:Ng,size:16,color:"var(--mantine-color-dimmed)"}),children:pe("editor.video.player.settings")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:()=>{C(),de()},leftSection:i.jsx(te,{icon:jn,size:16,color:"var(--mantine-color-red-6)"}),children:pe("editor.video.delete")})]})}),K&&B&&i.jsx(uC,{opened:T,onClose:()=>D(!1),videoId:r,initialStatus:R,onStatusChange:j,posterUrl:N,onPosterChange:ne,onChaptersSaved:Y=>I(Y),onSubtitlesSaved:Y=>_(Y),chaptersDisabled:E,onChaptersDisabledChange:Z,shakaPlayer:Q.shakaPlayer,nativeVideo:Q.nativeVideo,playerMode:Q.mode,videoDuration:Q.videoDuration})]}):i.jsxs(X2,{children:[K&&B&&i.jsxs(i.Fragment,{children:[i.jsx(Cn,{label:pe("editor.video.player.settings"),"aria-label":"Settings",className:"media-action",icon:Ng,iconColor:"var(--mantine-color-gray-text)",onClick:Y=>{Y.stopPropagation(),D(!0)}}),i.jsx(uC,{opened:T,onClose:()=>D(!1),videoId:r,initialStatus:R,onStatusChange:j,posterUrl:N,onPosterChange:ne,onChaptersSaved:Y=>I(Y),onSubtitlesSaved:Y=>_(Y),chaptersDisabled:E,onChaptersDisabledChange:Z,shakaPlayer:Q.shakaPlayer,nativeVideo:Q.nativeVideo,playerMode:Q.mode,videoDuration:Q.videoDuration})]}),f&&i.jsx(f,{opened:w,setOpened:k,t:pe,editor:o,nodeKey:s}),i.jsx(Cn,{label:pe("editor.video.delete"),"aria-label":"Delete",className:"media-action",icon:jn,iconColor:"var(--mantine-color-red-outline)",onClick:de})]}),i.jsx(RB,{...se,initialVideoId:r,posterUrl:N,chaptersOverride:le,subtitlesOverride:F,platform:t,fallbackNativeVideoUrl:ae,onStatusChange:j,onStatusAvailabilityChange:W,onOptimizedReadyChange:H,onPlayerInfo:ce})]})})}function YB(e){return i.jsx(HB,{...e})}function fC(e){const n=e.getAttribute("data-lexical-platform"),t=e.getAttribute("data-lexical-videoid"),r=e.getAttribute("src"),o=e.getAttribute("poster"),s=e.getAttribute("data-lexical-chapters-disabled")==="true",l=parseFloat(e.getAttribute("width")??"100%"),c=parseFloat(e.getAttribute("height")??"100%"),d=e.getAttribute("data-lexical-alignment")||e.style.justifyContent||"left";if(n==="upload"||n==="unknown"&&!t&&!r){const C=jh("upload",l,c,d,!0);return o&&C.setPosterUrl(o),s&&C.setChaptersDisabled(!0),{node:C}}const h=n||null,g=(typeof t=="string"&&t.length>0?t:null)||r||null;if(h&&g){const C=jh(Xo(h,g),l,c,d);return h==="download"&&r&&C.setUrl(r),o&&C.setPosterUrl(o),s&&C.setChaptersDisabled(!0),{node:C}}return{node:null}}class Ws extends p.DecoratorNode{constructor(t,r,o,s,l,c,d="left",f){super(c);Me(this,"__platform");Me(this,"__id");Me(this,"__url");Me(this,"__posterUrl");Me(this,"__chaptersDisabled");Me(this,"__create");Me(this,"__width");Me(this,"__height");Me(this,"__alignment");Me(this,"__format");this.__platform=t,this.__id=r,this.__url="",this.__posterUrl="",this.__chaptersDisabled=!1,this.__create=f||!1,this.__width=s||560,this.__height=l||315,this.__alignment=d||"left",this.__format=o??null}static getType(){return"video"}static clone(t){const r=new Ws(t.__platform,t.__id,t.__format,t.__width,t.__height,t.__key,t.__alignment,t.__create);return r.__url=t.__url,r.__posterUrl=t.__posterUrl,r.__chaptersDisabled=t.__chaptersDisabled,r}static importJSON(t){let r=t.videoID;if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(r)&&t.url){const l=t.url.match(/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/i);l&&(r=l[1])}const s=new Ws(t.platform,r,t.format??null,t.width,t.height,void 0,t.alignment??"left",t.create);return t.url&&s.setUrl(t.url),t.posterUrl&&s.setPosterUrl(t.posterUrl),typeof t.chaptersDisabled=="boolean"&&s.setChaptersDisabled(t.chaptersDisabled),t.create&&s.setCreated(!0),s}exportJSON(){return{...super.exportJSON(),type:"video",version:1,platform:this.__platform,videoID:this.__id,url:this.__url,posterUrl:this.__posterUrl,chaptersDisabled:this.__chaptersDisabled,width:this.__width,height:this.__height,create:this.__create,alignment:this.__alignment,format:this.__format}}static importDOM(){return{iframe:t=>{const r=t.getAttribute("data-lexical-platform"),o=t.getAttribute("data-lexical-videoid");return r!=="download"&&typeof o=="string"?{conversion:fC,priority:1}:null},video:t=>{const r=t.getAttribute("data-lexical-platform"),o=t.getAttribute("data-lexical-videoid"),s=t.getAttribute("src");return(r==="download"||r==="link")&&(typeof o=="string"||typeof s=="string")?{conversion:fC,priority:1}:null}}}isInline(){return!1}createDOM(){const t=document.createElement("div");return t.className="video-container",t.style.justifyContent=this.__alignment||"left",t.style.display="flex",t}updateDOM(t,r){return this.__alignment!==t.__alignment&&(r.style.justifyContent=this.__alignment||"left"),!1}exportDOM(){const t=this.__platform==="download"||this.__platform==="link"?"video":"iframe",r=document.createElement(t),o=this.__platform==="download"&&this.__url?this.__url:this.__id,s=Xo(this.__platform,o),l=s==="upload"?"":s;this.__platform==="download"||this.__platform==="link"?(r.setAttribute("controls","true"),this.__posterUrl&&r.setAttribute("poster",this.__posterUrl)):(r.setAttribute("frameborder","0"),r.setAttribute("allowfullscreen","true")),r.setAttribute("src",l),r.setAttribute("data-lexical-platform",this.__platform),r.setAttribute("data-lexical-videoid",this.__id),r.setAttribute("data-lexical-alignment",this.__alignment||"left"),this.__chaptersDisabled&&r.setAttribute("data-lexical-chapters-disabled","true"),r.setAttribute("width",this.__width.toString()+"%"),r.setAttribute("height",this.__height.toString()+"%"),r.setAttribute("style","aspect-ratio: 128 / 72 ");const c=document.createElement("span");return c.setAttribute("data-src",l),c.className="video-container",c.style.justifyContent=this.__alignment||"left",r.style.justifyContent=this.__alignment||"left",c.appendChild(r),{element:c}}decorate(t,r){const s={base:(r.theme.embedBlock||{}).base||"",focus:""};return m.createElement(YB,{editor:t,nodeKey:this.getKey(),format:this.__format,className:s,platform:this.__platform,videoID:this.__id,width:this.__width,height:this.__height,create:this.__create,alignment:this.__alignment})}setPlatform(t){const r=this.getWritable();r.__platform=t}setFormat(t){const r=this.getWritable();r.__format=t}setId(t){const r=this.getWritable();r.__id=t}setUrl(t){const r=this.getWritable();r.__url=t}setPosterUrl(t){const r=this.getWritable();r.__posterUrl=t}setChaptersDisabled(t){const r=this.getWritable();r.__chaptersDisabled=t}setCreated(t){const r=this.getWritable();r.__create=t}getId(){return this.__id}getUrl(){return this.__url}getPosterUrl(){return this.__posterUrl}getChaptersDisabled(){return this.__chaptersDisabled}getFormat(){return this.__format}setAlignment(t){const r=this.getWritable();r.__alignment=t}getTextContent(){const t=this.__platform==="download"&&this.__url?this.__url:this.__id;return Xo(this.__platform,t)}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}}function jh(e,n,t,r,o){const s=e.startsWith("https")||e.startsWith("http"),{platform:l,id:c}=S5(e,s);return new Ws(l,c||"",void 0,n,t,void 0,r,o)}function zi(e){return e instanceof Ws}function ZB(e,n){e.update(()=>{const t=jh(n,"100%","100%","left",n==="upload");t.setChaptersDisabled(!0),Ti(t)},{tag:"skip-scroll-into-view"})}function D5(e,n,{url:t,isLink:r=!1,platformOverride:o,overrideId:s}){const{platform:l,id:c}=o&&s?{platform:o,id:s}:S5(t,r);if(!c&&l!=="upload")return!1;const d=c??"";return e.update(()=>{const f=p.$getNodeByKey(n);if(!f||!zi(f))return;f.setPlatform(l),f.setId(d),f.setUrl(t),f.setCreated(!1);const h=f.getNextSibling();h&&p.$setSelection(h.selectNext())},{tag:"skip-scroll-into-view"}),!0}function GB(e,n,t,r){e.update(()=>{const o=p.$getNodeByKey(n);!o||!zi(o)||o.setWidthAndHeight(t,r)},{tag:"skip-scroll-into-view"})}function VB(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);!r||!zi(r)||r.setPosterUrl(t||"")},{tag:"skip-scroll-into-view"})}function qB(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);!r||!zi(r)||r.setUrl(t)},{tag:"skip-scroll-into-view"})}function QB(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);!r||!zi(r)||r.setChaptersDisabled(t)},{tag:"skip-scroll-into-view"})}function JB(e,n){gu(e,n)}function XB(){const[e]=it.useLexicalComposerContext(),{t:n}=Ze.useTranslation(),{imperativeHandleRef:t,maxFileSize:r,onTrack:o}=Y1();return m.useEffect(()=>{if(!e.hasNodes([Ws]))throw new Error("VideoPlugin: VideoNode not registered on editor");const s=l=>{if(l.length>1){Mt.showErrorNotification({message:n("editor.validation.doNotUploadMoreThanSingleFile")});return}const c=l[0];if(!c)return;if(!(c.type.includes("video/")||c.name.match(/\.(mp4|webm|ogg|mov|avi|mkv|flv|wmv|m4v|3gp|mpg|mpeg|ts|mts|m2ts|vob|asf|rm|rmvb|divx|xvid)$/i))){Mt.showErrorNotification({message:n("editor.video.errors.format")});return}if(c.size>r*1024*1024){Mt.showErrorNotification({message:n("editor.validation.shouldNotExceed",{maxSize:r})});return}o==null||o("media_video_added",{source:"upload"}),e.dispatchCommand(Lh,"upload"),setTimeout(()=>{e.dispatchCommand(k5,l)})};return t!=null&&t.current&&(t.current.insertVideos=s),e.registerCommand(Lh,l=>(ZB(e,l),!1),p.COMMAND_PRIORITY_LOW)},[e,t,r,n,o]),null}function $B(e){return{key:"video",node:Ws,Plugin:XB,modes:{comment:!1,default:!0,editor:!0},Provider:({children:t,imperativeHandleRef:r})=>i.jsx(PP,{config:e,imperativeHandleRef:r,children:t}),slashMenu:{parentKey:"media",name:"editor.menu.media.video.name",description:"editor.menu.media.video.subtitle",hint:"editor.menu.media.video.hint.description",keywords:["video","youtube","rutube","vkvideos","mp4","webm","media"],icon:i.jsx(te,{icon:Ck,size:16}),command:Lh,commandPayload:"upload"}}}function e_(e,n=!0){const t=n?"rootStart":"rootEnd";e.focus(()=>{},{defaultSelection:t})}exports.$createExcalidrawNode=y1;exports.$createNewParagraph=dA;exports.$isEquationNode=Do;exports.$isExcalidrawNode=bM;exports.$isImageNode=Ir;exports.$tr=Ra;exports.$writeImagePickerTabToNode=yA;exports.ActionIcon=Cn;exports.AlignmentImage=D1;exports.AlignmentMenu=ob;exports.CREATE_TEMPLATE=fA;exports.Context=ut;exports.Editor=v5;exports.ExcalidrawNode=us;exports.HugeiconsIcon=te;exports.INSERT_EXCALIDRAW_COMMAND=db;exports.IS_TOUCH_DEVICE=Nt;exports.Icon=mn;exports.ImageNode=fr;exports.ImagePicker=C5;exports.MobileDrawer=En;exports.OPEN_EQUATION_POPUP_COMMAND=zc;exports.ResizableContainer=A1;exports.StylesProvider=x5;exports.UPLOAD_IMAGE_COMMAND=pb;exports.blockScroll=$a;exports.commonjsGlobal=ca;exports.createMediaComponent=Ti;exports.createPopupKeyDownHandler=Ub;exports.deleteNode=gu;exports.focusEditor=e_;exports.getDefaultExportFromCjs=bI;exports.lg=jn;exports.mediaMap=Sr;exports.parseContainerSize=ib;exports.tf=KC;exports.unblockScroll=el;exports.useCancelUpload=xA;exports.useExcalidrawBehaviour=yM;exports.useSettings=k1;exports.useSharedHistoryContext=S1;exports.videoPlugin=$B;
|