@layers-app/editor 0.7.77 → 0.7.79

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.
Files changed (226) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +70 -6
  3. package/dist/index.js +14 -12
  4. package/dist/layers.-0O_onOX.js +304 -0
  5. package/dist/{layers.DxEDSWCX.js → layers.2kl1aRUj.js} +1 -1
  6. package/dist/{layers.BYcdHN5K.js → layers.3JuVpxXb.js} +1 -1
  7. package/dist/{layers.ETOR-1_M.js → layers.6mdz-Na2.js} +3 -3
  8. package/dist/{layers.CEjGlMKg.js → layers.7kExnlZ3.js} +1 -1
  9. package/dist/{layers.DfSW6xJK.js → layers.8Edx0vxr.js} +1 -1
  10. package/dist/{layers.CkkRIbGl.js → layers.ADMZntNg.js} +1 -1
  11. package/dist/{layers.BRHKRm7T.js → layers.B1oRpBrL.js} +1 -1
  12. package/dist/{layers.CyeiYJsA.js → layers.B2Rh_x8m.js} +1 -1
  13. package/dist/{layers.BgK7dDnf.js → layers.B2fELUiM.js} +1 -1
  14. package/dist/{layers.C9rC1J6r.js → layers.B6bs5Fa-.js} +1 -1
  15. package/dist/{layers.CUSw_oFl.js → layers.B6jWFkL_.js} +1 -1
  16. package/dist/{layers.pOn23FOQ.js → layers.B707QLSG.js} +1 -1
  17. package/dist/{layers.CW6vAag6.js → layers.B8BHbr5w.js} +1 -1
  18. package/dist/{layers.CTa-Cy2b.js → layers.B8wcmc88.js} +1 -1
  19. package/dist/{layers.CNppyY-m.js → layers.BEadygXO.js} +1 -1
  20. package/dist/{layers.DjkNgRqL.js → layers.BFHrTCu6.js} +1 -1
  21. package/dist/{layers.x9L_z5Lo.js → layers.BGxxpIwr.js} +1 -1
  22. package/dist/{layers.DOg6wGU1.js → layers.BIQ6JYQZ.js} +1 -1
  23. package/dist/{layers.7qtdKFrd.js → layers.BInHVDvJ.js} +1 -1
  24. package/dist/{layers.Bt9ZZOjN.js → layers.BKoNyXJR.js} +1 -1
  25. package/dist/{layers.DdWxLbOb.js → layers.BKvr1Tcc.js} +1 -1
  26. package/dist/{layers.C5tcvIAA.js → layers.BL8qCZOe.js} +2 -2
  27. package/dist/{layers.CMNXIF_5.js → layers.BLfjvoiA.js} +1 -1
  28. package/dist/{layers.BiFUd4f0.js → layers.BMFWRw1e.js} +1 -1
  29. package/dist/{layers.STFNqYaS.js → layers.BNWsN93S.js} +7 -7
  30. package/dist/{layers.DxGnQ-WK.js → layers.BNtYfeEC.js} +1 -1
  31. package/dist/{layers.jSedtSyi.js → layers.BOIxfgsV.js} +1 -1
  32. package/dist/{layers.5ib4tFwZ.js → layers.BOYb-ebd.js} +4 -4
  33. package/dist/{layers.vvHeBwRL.js → layers.BRDVo5EI.js} +1 -1
  34. package/dist/{layers.BRq0tnAX.js → layers.BRfvZDuh.js} +1 -1
  35. package/dist/{layers.C2u4sSH3.js → layers.BS1hxdXe.js} +1 -1
  36. package/dist/{layers.DMAZ9IbW.js → layers.BTCPfVTk.js} +1 -1
  37. package/dist/{layers.W4dUzBMD.js → layers.BTYzCwGf.js} +1 -1
  38. package/dist/{layers.DOKiGPCw.js → layers.BTdD6Q_D.js} +1 -1
  39. package/dist/{layers.aluHBzXL.js → layers.BW8tHuyL.js} +1 -1
  40. package/dist/{layers.DBn2I3DX.js → layers.BWqKB8Tp.js} +1 -1
  41. package/dist/{layers.F-KRLijT.js → layers.BXpDL2TM.js} +1 -1
  42. package/dist/{layers.Bs1jdriv.js → layers.BYe8thFA.js} +1 -1
  43. package/dist/{layers.XGbz3mK3.js → layers.BYgZ-KvZ.js} +1 -1
  44. package/dist/{layers.T_AjbzD9.js → layers.BaX-1WMw.js} +1 -1
  45. package/dist/{layers.C4YMYmRf.js → layers.BapitDDl.js} +1 -1
  46. package/dist/{layers.C71iP9GR.js → layers.BbTSHM-R.js} +1 -1
  47. package/dist/layers.BcY5trq3.js +296 -0
  48. package/dist/{layers.DEqzvYv8.js → layers.BdGy4Ku-.js} +1 -1
  49. package/dist/{layers.BqOnOcPl.js → layers.BdysQaP9.js} +1 -1
  50. package/dist/{layers.CGf01FUp.js → layers.Beujd2gV.js} +1 -1
  51. package/dist/{layers.Jfp0TWAa.js → layers.Bi-QHBcd.js} +1 -1
  52. package/dist/{layers.CZWkZnuM.js → layers.BjEh95nH.js} +1 -1
  53. package/dist/{layers.BDl4JJUb.js → layers.BkGNkMxK.js} +1 -1
  54. package/dist/{layers.BVaOozUc.js → layers.BkHmSHan.js} +1 -1
  55. package/dist/{layers.DsMQaELM.js → layers.Bkira6Tt.js} +1 -1
  56. package/dist/{layers.CVXOJDvI.js → layers.Bl7kgUIS.js} +1 -1
  57. package/dist/{layers.BvIFeFai.js → layers.BleVyog3.js} +3 -3
  58. package/dist/{layers.DMQVNuhC.js → layers.BmzD2tT6.js} +1 -1
  59. package/dist/{layers.D6qwvAYI.js → layers.BnvU3-7C.js} +1 -1
  60. package/dist/{layers.DoxSDodH.js → layers.Bo3872e1.js} +1 -1
  61. package/dist/{layers.Jx-gBW2F.js → layers.BqByVzA3.js} +1 -1
  62. package/dist/{layers.BPaUJFuE.js → layers.BujYQGMz.js} +1 -1
  63. package/dist/{layers.DKhDaFqB.js → layers.BvAafL9L.js} +1 -1
  64. package/dist/{layers.B4KqxKh1.js → layers.BvCFLeTR.js} +1 -1
  65. package/dist/{layers.Ds94bRGw.js → layers.BzDN8T7e.js} +1 -1
  66. package/dist/{layers.A4F753ue.js → layers.C-qmTNFy.js} +1 -1
  67. package/dist/{layers.CN9HDgXN.js → layers.C1FTyTvU.js} +1 -1
  68. package/dist/{layers.CBPvGloV.js → layers.C2XuxKbl.js} +1 -1
  69. package/dist/{layers.D5-OzEGJ.js → layers.C2bsLW-V.js} +4 -4
  70. package/dist/{layers.BZfE5fLY.js → layers.C3u7j4et.js} +1 -1
  71. package/dist/layers.C4P7Q4ju.js +1 -0
  72. package/dist/{layers.gG8j92wG.js → layers.C5-KsS9l.js} +4 -4
  73. package/dist/{layers.Bv0qz7x9.js → layers.CACntamY.js} +1 -1
  74. package/dist/{layers.umyo4OEQ.js → layers.CAN9vlS-.js} +1 -1
  75. package/dist/{layers.DjxbqAhT.js → layers.CArpuehS.js} +1 -1
  76. package/dist/{layers.D0wgX-g3.js → layers.CBOug2uu.js} +1 -1
  77. package/dist/{layers.2l-z2d6S.js → layers.CBQZm2e7.js} +1 -1
  78. package/dist/{layers.Cz5O8MjY.js → layers.CBdylbSi.js} +1 -1
  79. package/dist/{layers.Bqhx3Bvc.js → layers.CBzz8__b.js} +1 -1
  80. package/dist/{layers.DxK2XlNN.js → layers.CCEUvI5d.js} +1 -1
  81. package/dist/{layers.DH1NMJfb.js → layers.CCKu4hKE.js} +6 -6
  82. package/dist/{layers.DDEta_gE.js → layers.CFCTy-Yu.js} +1 -1
  83. package/dist/{layers.0zMNJxVf.js → layers.CI9mmWI6.js} +3 -3
  84. package/dist/{layers.C2reYFHl.js → layers.CLyZjoes.js} +1 -1
  85. package/dist/{layers.2WHo1NhR.js → layers.CNjmcrIc.js} +1 -1
  86. package/dist/{layers.B44DiZBh.js → layers.COkRWQkr.js} +1 -1
  87. package/dist/{layers.BEEOG0ub.js → layers.COzdgI_q.js} +1 -1
  88. package/dist/{layers.C5yQNEdt.js → layers.CQKwzZBP.js} +1 -1
  89. package/dist/{layers.C0IJF_so.js → layers.CRsj8jgj.js} +1 -1
  90. package/dist/{layers.DGzof1q3.js → layers.CSIF_jBD.js} +1 -1
  91. package/dist/{layers.BARN-9f4.js → layers.CTeHGuV0.js} +1 -1
  92. package/dist/{layers.DIUlujiY.js → layers.CTjRAJwk.js} +3 -3
  93. package/dist/{layers.DSOcu2gg.js → layers.CWgs7Ylx.js} +1 -1
  94. package/dist/{layers.CganRDLp.js → layers.CXCD93Xx.js} +2 -2
  95. package/dist/{layers.Ciaj2IT0.js → layers.CYmtPuff.js} +1 -1
  96. package/dist/{layers.62FWtpR6.js → layers.CdV-iM5a.js} +1 -1
  97. package/dist/{layers.CnQH92vl.js → layers.Ce_vM4CM.js} +1 -1
  98. package/dist/{layers.D0ectbPH.js → layers.CfTHKUqx.js} +1 -1
  99. package/dist/{layers.CQxYOqGJ.js → layers.CgEPPGNk.js} +1 -1
  100. package/dist/{layers.ChhsF--O.js → layers.CgcpyDQN.js} +1 -1
  101. package/dist/layers.Cj16hdv5.js +1 -0
  102. package/dist/{layers.DCmj4pMk.js → layers.CjEUyNjP.js} +1 -1
  103. package/dist/{layers.BLiy35t0.js → layers.CjfPccZD.js} +3 -3
  104. package/dist/{layers.DkeXM6bk.js → layers.CjxpNr33.js} +3 -3
  105. package/dist/{layers.DQHVXnNU.js → layers.CkieCy7R.js} +1 -1
  106. package/dist/{layers.6G8rsgJa.js → layers.CmLRj4Tg.js} +1 -1
  107. package/dist/layers.CmmYt3Ou.js +1 -0
  108. package/dist/{layers.BAvnrwdC.js → layers.CnhYIwP1.js} +1 -1
  109. package/dist/{layers.GeKAxRPL.js → layers.CoOD1WPr.js} +1 -1
  110. package/dist/{layers.Ct55gB0C.js → layers.CqZWYINg.js} +1 -1
  111. package/dist/layers.CtSQ_xs8.js +1 -0
  112. package/dist/{layers.pv4kpRJO.js → layers.CtyNVkPX.js} +1 -1
  113. package/dist/{layers.BylxlEnO.js → layers.Cu9_FKnF.js} +1 -1
  114. package/dist/{layers.DsEEw19z.js → layers.D0FP90Rx.js} +1 -1
  115. package/dist/{layers.DIFg7xPK.js → layers.D0ex43Sd.js} +1 -1
  116. package/dist/{layers.Dtg5F4sH.js → layers.D1EG4_KB.js} +2 -2
  117. package/dist/{layers.Cmxp8pV5.js → layers.D4c48hOc.js} +24 -24
  118. package/dist/{layers.Dl8sVR2P.js → layers.D56Tfhmk.js} +1 -1
  119. package/dist/{layers.BDlWEWBN.js → layers.D6Atcltc.js} +1 -1
  120. package/dist/layers.D6Rqlluc.js +8 -0
  121. package/dist/{layers.C4JxlowK.js → layers.D7AgOP2Q.js} +1 -1
  122. package/dist/{layers.BiS9-lDF.js → layers.D8sE8uHE.js} +8 -8
  123. package/dist/{layers.BTBO4eMW.js → layers.DBVHuw-w.js} +1 -1
  124. package/dist/{layers.8U0GBHRZ.js → layers.DC6dMnJc.js} +1 -1
  125. package/dist/{layers.DAlaatv8.js → layers.DCEcRZzx.js} +1 -1
  126. package/dist/{layers.X1hul86v.js → layers.DE1igpPm.js} +4 -4
  127. package/dist/{layers.BSNFhcxo.js → layers.DFFhOqpa.js} +3 -3
  128. package/dist/{layers.CRg-B1vP.js → layers.DG-JxETp.js} +4 -4
  129. package/dist/{layers.C8fbK8uf.js → layers.DJOVnwM2.js} +2 -2
  130. package/dist/{layers.3UVMaoC9.js → layers.DKm2qNyS.js} +3 -3
  131. package/dist/{layers.BNRV7XGA.js → layers.DLJD83oe.js} +1 -1
  132. package/dist/layers.DNZpmwzY.js +1 -0
  133. package/dist/{layers.CCzUe8xK.js → layers.DO1IXM7s.js} +1 -1
  134. package/dist/{layers.BqPCMU8w.js → layers.DOkhborM.js} +1 -1
  135. package/dist/{layers.Bn6kIrny.js → layers.DPTwQEic.js} +1 -1
  136. package/dist/{layers.DV2Gv4v7.js → layers.DRYcao5O.js} +4 -4
  137. package/dist/{layers.K4cBv23e.js → layers.DUu5ONqk.js} +1 -1
  138. package/dist/{layers.CSkBQxnC.js → layers.D_CF8aTh.js} +1 -1
  139. package/dist/layers.D_jo1wBE.js +1 -0
  140. package/dist/{layers.BkFTPCRZ.js → layers.Db1m4LYG.js} +1 -1
  141. package/dist/{layers.Dd5UvUyZ.js → layers.DbBiHbPW.js} +1 -1
  142. package/dist/layers.DbT3gbC2.js +1 -0
  143. package/dist/{layers.v7wAIgcY.js → layers.DbYcHeQn.js} +1 -1
  144. package/dist/{layers.BO-2MPoe.js → layers.DfYqcDoS.js} +1 -1
  145. package/dist/{layers.DI5443bl.js → layers.DhiI16il.js} +1 -1
  146. package/dist/{layers.D5RNhA0Y.js → layers.DhnMVCTe.js} +1 -1
  147. package/dist/layers.DilA0qnM.js +54 -0
  148. package/dist/{layers.DduFwONh.js → layers.DiqKogMY.js} +1 -1
  149. package/dist/{layers.UpXfP8aP.js → layers.DjXVVFJ6.js} +1 -1
  150. package/dist/{layers.CIzvJORb.js → layers.DkB4TLLx.js} +1 -1
  151. package/dist/{layers.K2QI0Bof.js → layers.DkoCrPjT.js} +1 -1
  152. package/dist/{layers.BGMakO5J.js → layers.DlMc9MQp.js} +3 -3
  153. package/dist/{layers.BjhL04eE.js → layers.Dm1R5-Bc.js} +1 -1
  154. package/dist/{layers.UaAliOOU.js → layers.DnklT_6f.js} +1 -1
  155. package/dist/{layers.BrGu4vtF.js → layers.DrytRiPP.js} +1 -1
  156. package/dist/{layers.-w6pj3Y4.js → layers.DsQWXcJg.js} +1 -1
  157. package/dist/layers.Dtoqj1Fs.js +17 -0
  158. package/dist/{layers.BA2uiqCQ.js → layers.DuGuDpd7.js} +1 -1
  159. package/dist/layers.DuMcCkrh.js +346 -0
  160. package/dist/{layers.LiZI0ZwD.js → layers.Dun64x33.js} +1 -1
  161. package/dist/layers.DvWEGYe1.js +454 -0
  162. package/dist/{layers.DvYO0f59.js → layers.DvXoBIUZ.js} +1 -1
  163. package/dist/{layers.BlfCceBI.js → layers.Dwpj_vFw.js} +1 -1
  164. package/dist/{layers.DgqoyVBV.js → layers.Dx6ZLQwW.js} +1 -1
  165. package/dist/{layers.Clxb8f1x.js → layers.DxKmenFC.js} +1 -1
  166. package/dist/{layers.Cqe_oRtA.js → layers.Dy1gtAJp.js} +1 -1
  167. package/dist/{layers.BtuDtJ-I.js → layers.DylcSpUB.js} +1 -1
  168. package/dist/{layers.BElz4lCb.js → layers.Ed24dDlF.js} +1 -1
  169. package/dist/{layers.CdzeAqMM.js → layers.IQeql6ox.js} +1 -1
  170. package/dist/{layers.B_v-ekSG.js → layers.Igj9Z_X5.js} +1 -1
  171. package/dist/{layers.t_PLMZsR.js → layers.LRYgh6hQ.js} +4 -4
  172. package/dist/{layers.BaBYnnag.js → layers.LlaEJBRG.js} +1 -1
  173. package/dist/{layers.Cg5aVDZJ.js → layers.MusRfIms.js} +1 -1
  174. package/dist/{layers.MPGGZrAJ.js → layers.PRjOncxz.js} +1 -1
  175. package/dist/{layers.DdQVuq6G.js → layers.QSWdqOub.js} +1 -1
  176. package/dist/{layers.DiJjW0J0.js → layers.UDrjC5Tj.js} +1 -1
  177. package/dist/{layers.CiEV5zOR.js → layers.UeY82rK1.js} +1 -1
  178. package/dist/{layers.Y5Mmv58o.js → layers.UnFXRP-h.js} +2 -2
  179. package/dist/{layers.DOU2Orui.js → layers.VUgha0GG.js} +1 -1
  180. package/dist/layers.W2PJ02K_.js +6 -0
  181. package/dist/{layers.GbFqgFzH.js → layers.ZH0qMQEf.js} +1 -1
  182. package/dist/{layers.B4QOFvW7.js → layers.ZZ3oZOeo.js} +1 -1
  183. package/dist/layers.Za1xNAZb.js +44129 -0
  184. package/dist/{layers.BK_djDLj.js → layers.ZbZH407Q.js} +1 -1
  185. package/dist/{layers.DJ7CILqE.js → layers.abCaEHQx.js} +1 -1
  186. package/dist/{layers.0EKkhaN6.js → layers.bHeq9TkF.js} +3 -3
  187. package/dist/{layers.BOv3MLex.js → layers.c2NkOi_M.js} +1 -1
  188. package/dist/{layers.CMIyfHu5.js → layers.cPP8dR9B.js} +1 -1
  189. package/dist/{layers.DJA3seAe.js → layers.cu_xTYUL.js} +5 -5
  190. package/dist/{layers.DK1Ji02P.js → layers.eU7eT5YK.js} +1 -1
  191. package/dist/{layers.usC-HMJr.js → layers.hXAYMeaM.js} +1 -1
  192. package/dist/{layers.CI97KuQk.js → layers.j9IemQgB.js} +1 -1
  193. package/dist/{layers.DxDzQDF_.js → layers.jEw_qKmc.js} +1 -1
  194. package/dist/{layers.HcBlXBPG.js → layers.kOe1DpNx.js} +1 -1
  195. package/dist/{layers.sC7L7hjr.js → layers.l6FaPfT8.js} +5 -5
  196. package/dist/{layers.Bv2jdLOB.js → layers.lmJ2S5UE.js} +4 -4
  197. package/dist/{layers.B0Wh8zJI.js → layers.mcGDz8zt.js} +1 -1
  198. package/dist/{layers.dkWUYvi-.js → layers.nRX25E69.js} +1 -1
  199. package/dist/{layers.BMj6a3AQ.js → layers.oHdFw2-y.js} +1 -1
  200. package/dist/{layers.DIFUdtpU.js → layers.sX3WD0ma.js} +1 -1
  201. package/dist/{layers.PiLmzDCM.js → layers.vTnx63BV.js} +1 -1
  202. package/dist/{layers.DdNBJIBy.js → layers.vU34cz08.js} +1 -1
  203. package/dist/{layers.Cmw0vQ5Q.js → layers.wLREEZrM.js} +1 -1
  204. package/dist/{layers.447Y1Euo.js → layers.wf0Idf__.js} +4 -4
  205. package/dist/{layers.RO2h68UE.js → layers.wy9jNSUy.js} +1 -1
  206. package/dist/{layers.DCxU6g4r.js → layers.y6q4BoT7.js} +1 -1
  207. package/dist/{layers.Dc_eA38A.js → layers.ylAWGnrt.js} +3 -3
  208. package/package.json +192 -160
  209. package/dist/layers.BEVwG5HD.js +0 -271
  210. package/dist/layers.BFjPLKPL.js +0 -299
  211. package/dist/layers.BRZ7tJR7.js +0 -276
  212. package/dist/layers.BaycGHUx.js +0 -129
  213. package/dist/layers.C1SfcqPQ.js +0 -6
  214. package/dist/layers.C4BHb2Zi.js +0 -1
  215. package/dist/layers.C4cc5MrZ.js +0 -28641
  216. package/dist/layers.CB1j9n7I.js +0 -1
  217. package/dist/layers.CJq9BdUp.js +0 -295
  218. package/dist/layers.CX_pWFAL.js +0 -76
  219. package/dist/layers.CiMS62k1.js +0 -1
  220. package/dist/layers.D5-JajPy.js +0 -8
  221. package/dist/layers.D5G8QmnT.js +0 -1
  222. package/dist/layers.D5f6PG-j.js +0 -1
  223. package/dist/layers.DKHOnSbj.js +0 -1
  224. package/dist/layers.DMziPH2V.js +0 -1
  225. package/dist/layers.ePA5rZJO.js +0 -1
  226. package/dist/layers.t8X_Qdxw.js +0 -213
@@ -0,0 +1,304 @@
1
+ "use strict";var L9=Object.defineProperty;var N9=(e,n,t)=>n in e?L9(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var we=(e,n,t)=>N9(e,typeof n!="symbol"?n+"":n,t);const gm=require("@mantine/dropzone"),p=require("lexical"),a=require("react/jsx-runtime"),g=require("react"),He=require("react-i18next"),R9=require("@lexical/react/LexicalCollaborationContext"),j9=require("@lexical/react/LexicalCollaborationPlugin"),I9=require("@lexical/react/LexicalComposer"),Nh=require("@lexical/react/LexicalHistoryPlugin"),v=require("@mantine/core"),rC=require("yjs"),O9=require("i18next"),Bt=require("@layers-app/shared"),tt=require("@lexical/react/LexicalComposerContext"),ye=require("@lexical/utils"),qr=require("@lexical/react/LexicalDecoratorBlockNode"),Yn=require("@mantine/hooks"),Kt=require("@lexical/code"),ln=require("@lexical/selection"),Vo=require("@lexical/react/LexicalBlockWithAlignableContents"),Ir=require("react-dom"),xe=require("@tabler/icons-react"),D9=require("@lexical/hashtag"),sn=require("@lexical/link"),li=require("@lexical/mark"),oC=require("@lexical/overflow"),Ms=require("@lexical/react/LexicalHorizontalRuleNode"),cn=require("@lexical/rich-text"),P9=require("react-dom/server"),B9=require("@lexical/react/useLexicalNodeSelection"),_9=require("@lexical/react/LexicalClearEditorPlugin"),F9=require("@lexical/react/LexicalClickableLinkPlugin"),W9=require("@lexical/react/LexicalErrorBoundary"),z9=require("@lexical/react/LexicalHashtagPlugin"),U9=require("@lexical/react/LexicalHorizontalRulePlugin"),K9=require("@lexical/react/LexicalOnChangePlugin"),H9=require("@lexical/react/LexicalRichTextPlugin"),Y9=require("@lexical/react/LexicalLinkPlugin"),Z9=require("@lexical/react/LexicalMarkdownShortcutPlugin"),to=require("@lexical/markdown"),En=require("@lexical/table"),wa=require("@lexical/html"),G9=require("@mantine/notifications"),V9=require("shaka-player-react"),Xd=require("@mantine/carousel"),ka=require("@lexical/clipboard"),cu=require("lodash-es"),q9=require("@lexical/react/useLexicalEditable"),Q9=require("@lexical/react/LexicalTableOfContentsPlugin"),Yl=require("@lexical/file"),J9=require("@lexical/yjs"),Sa=require("@lexical/react/LexicalTypeaheadMenuPlugin"),X9=require("@lexical/react/LexicalTreeView"),$9=require("@lexical/react/LexicalContentEditable");function sC(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 ew=sC(g),Rh=sC(rC),ci=()=>new Map,iC=(e,n,t)=>{let r=e.get(n);return r===void 0&&e.set(n,r=t()),r},aC=()=>new Set,tw=Array.from,nw=String.fromCharCode,rw=e=>e.toLowerCase(),ow=/^\s*/g,sw=e=>e.replace(ow,""),iw=/([A-Z])/g,mm=(e,n)=>sw(e.replace(iw,t=>`${n}${rw(t)}`)),aw=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},Ea=typeof TextEncoder<"u"?new TextEncoder:null,lw=e=>Ea.encode(e),cw=Ea?lw:aw;let da=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});da&&da.decode(new Uint8Array).length===1&&(da=null);const Cm=e=>e===void 0?null:e;class uw{constructor(){this.map=new Map}setItem(n,t){this.map.set(n,t)}getItem(n){return this.map.get(n)}}let lC=new uw,jh=!0;try{typeof localStorage<"u"&&localStorage&&(lC=localStorage,jh=!1)}catch{}const cC=lC,dw=e=>jh||addEventListener("storage",e),fw=e=>jh||removeEventListener("storage",e),Am=Symbol("Equality"),hw=Object.keys,pw=(e,n)=>{const t=[];for(const r in e)t.push(n(e[r],r));return t},bm=e=>hw(e).length,gw=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),fa=(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[Am]!=null)return e[Am](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)||!fa(e.get(t),n.get(t)))return!1;break}case void 0:case Object:if(bm(e)!==bm(n))return!1;for(const t in e)if(!gw(e,t)||!fa(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(!fa(e[t],n[t]))return!1;break;default:return!1}return!0},mw=(e,n)=>n.includes(e),es=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",uC=typeof window<"u"&&typeof document<"u"&&!es;let eo;const Cw=()=>{if(eo===void 0)if(es){eo=ci();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=ci(),(location.search||"?").slice(1).split("&").forEach(e=>{if(e.length!==0){const[n,t]=e.split("=");eo.set(`--${mm(n,"-")}`,t),eo.set(`-${mm(n,"-")}`,t)}})):eo=ci();return eo},Rf=e=>Cw().has(e),jf=e=>Cm(es?process.env[e.toUpperCase().replaceAll("-","_")]:cC.getItem(e)),dC=e=>Rf("--"+e)||jf(e)!==null;dC("production");const Aw=es&&mw(process.env.FORCE_COLOR,["true","1","2"]);Aw||!Rf("--no-colors")&&!dC("no-color")&&(!es||process.stdout.isTTY)&&(!es||Rf("--color")||jf("COLORTERM")!==null||(jf("TERM")||"").includes("color"));const fC=Math.floor,hC=(e,n)=>e<n?e:n,bw=(e,n)=>e>n?e:n,yw=Math.pow,pC=128,bc=127,xw=Number.MAX_SAFE_INTEGER;class vw{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const Sr=()=>new vw,Ih=e=>{let n=e.cpos;for(let t=0;t<e.bufs.length;t++)n+=e.bufs[t].length;return n},cr=e=>{const n=new Uint8Array(Ih(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},jc=(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},gn=(e,n)=>{for(;n>bc;)jc(e,pC|bc&n),n=fC(n/128);jc(e,bc&n)},If=new Uint8Array(3e4),ww=If.length/3,kw=(e,n)=>{if(n.length<ww){const t=Ea.encodeInto(n,If).written||0;gn(e,t);for(let r=0;r<t;r++)jc(e,If[r])}else ko(e,cw(n))},Sw=(e,n)=>{const t=unescape(encodeURIComponent(n)),r=t.length;gn(e,r);for(let o=0;o<r;o++)jc(e,t.codePointAt(o))},Ew=Ea&&Ea.encodeInto?kw:Sw,Mw=(e,n)=>{const t=e.cbuf.length,r=e.cpos,o=hC(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(bw(t*2,s)),e.cbuf.set(n.subarray(o)),e.cpos=s)},ko=(e,n)=>{gn(e,n.byteLength),Mw(e,n)},gC=e=>new Error(e),Tw=gC("Unexpected end of array"),Lw=gC("Integer out of Range");class Nw{constructor(n){this.arr=n,this.pos=0}}const mC=e=>new Nw(e),Rw=(e,n)=>{const t=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,n);return e.pos+=n,t},uu=e=>Rw(e,Jo(e)),ym=e=>e.arr[e.pos++],Jo=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&bc)*t,t*=128,o<pC)return n;if(n>xw)throw Lw}throw Tw},jw=e=>{let n=Jo(e);if(n===0)return"";{let t=String.fromCodePoint(ym(e));if(--n<100)for(;n--;)t+=String.fromCodePoint(ym(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))}},Iw=e=>da.decode(uu(e)),CC=da?Iw:jw,Ow=e=>new Uint8Array(e),Dw=(e,n,t)=>new Uint8Array(e,n,t),Pw=e=>new Uint8Array(e),Bw=e=>{let n="";for(let t=0;t<e.byteLength;t++)n+=nw(e[t]);return btoa(n)},_w=e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("base64"),Fw=e=>{const n=atob(e),t=Ow(n.length);for(let r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},Ww=e=>{const n=Buffer.from(e,"base64");return Dw(n.buffer,n.byteOffset,n.byteLength)},zw=uC?Bw:_w,Uw=uC?Fw:Ww,AC=new Map;class Kw{constructor(n){this.room=n,this.onmessage=null,this._onChange=t=>t.key===n&&this.onmessage!==null&&this.onmessage({data:Uw(t.newValue||"")}),dw(this._onChange)}postMessage(n){cC.setItem(this.room,zw(Pw(n)))}close(){fw(this._onChange)}}const Hw=typeof BroadcastChannel>"u"?Kw:BroadcastChannel,Oh=e=>iC(AC,e,()=>{const n=aC(),t=new Hw(e);return t.onmessage=r=>n.forEach(o=>o(r.data,"broadcastchannel")),{bc:t,subs:n}}),Yw=(e,n)=>(Oh(e).subs.add(n),n),Zw=(e,n)=>{const t=Oh(e),r=t.subs.delete(n);return r&&t.subs.size===0&&(t.bc.close(),AC.delete(e)),r},ni=(e,n,t=null)=>{const r=Oh(e);r.bc.postMessage(n),r.subs.forEach(o=>o(n,t))},Ls=Date.now,bC=0,Dh=1,yC=2,Of=(e,n)=>{gn(e,bC);const t=Rh.encodeStateVector(n);ko(e,t)},xC=(e,n,t)=>{gn(e,Dh),ko(e,Rh.encodeStateAsUpdate(n,t))},Gw=(e,n,t)=>xC(n,t,uu(e)),vC=(e,n,t,r)=>{try{Rh.applyUpdate(n,uu(e),t)}catch(o){r!=null&&r(o),console.error("Caught error while handling a Yjs update",o)}},Vw=(e,n)=>{gn(e,yC),ko(e,n)},qw=vC,Qw=(e,n,t,r,o)=>{const s=Jo(e);switch(s){case bC:Gw(e,n,t);break;case Dh:vC(e,t,r,o);break;case yC:qw(e,t,r,o);break;default:throw new Error("Unknown message type")}return s},Jw=0,Xw=(e,n,t)=>{switch(Jo(e)){case Jw:t(n,CC(e))}};class wC{constructor(){this._observers=ci()}on(n,t){iC(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 tw((this._observers.get(n)||ci()).values()).forEach(r=>r(...t))}destroy(){this._observers=ci()}}const $d=3e4;class $w extends wC{constructor(n){super(),this.doc=n,this.clientID=n.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const t=Ls();this.getLocalState()!==null&&$d/2<=t-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const r=[];this.meta.forEach((o,s)=>{s!==this.clientID&&$d<=t-o.lastUpdated&&this.states.has(s)&&r.push(s)}),r.length>0&&Ph(this,r,"timeout")},fC($d/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:Ls()});const l=[],u=[],d=[],f=[];n===null?f.push(t):s==null?n!=null&&l.push(t):(u.push(t),fa(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:u,removed:f},"local"])}setLocalStateField(n,t){const r=this.getLocalState();r!==null&&this.setLocalState({...r,[n]:t})}getStates(){return this.states}}const Ph=(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:Ls()})}r.push(s)}}r.length>0&&(e.emit("change",[{added:[],updated:[],removed:r},t]),e.emit("update",[{added:[],updated:[],removed:r},t]))},ha=(e,n,t=e.states)=>{const r=n.length,o=Sr();gn(o,r);for(let s=0;s<r;s++){const l=n[s],u=t.get(l)||null,d=e.meta.get(l).clock;gn(o,l),gn(o,d),Ew(o,JSON.stringify(u))}return cr(o)},e8=(e,n,t)=>{const r=mC(n),o=Ls(),s=[],l=[],u=[],d=[],f=Jo(r);for(let h=0;h<f;h++){const m=Jo(r);let A=Jo(r);const y=JSON.parse(CC(r)),b=e.meta.get(m),x=e.states.get(m),w=b===void 0?0:b.clock;(w<A||w===A&&y===null&&e.states.has(m))&&(y===null?m===e.clientID&&e.getLocalState()!=null?A++:e.states.delete(m):e.states.set(m,y),e.meta.set(m,{clock:A,lastUpdated:o}),b===void 0&&y!==null?s.push(m):b!==void 0&&y===null?d.push(m):y!==null&&(fa(y,x)||u.push(m),l.push(m)))}(s.length>0||u.length>0||d.length>0)&&e.emit("change",[{added:s,updated:u,removed:d},t]),(s.length>0||l.length>0||d.length>0)&&e.emit("update",[{added:s,updated:l,removed:d},t])},t8=e=>pw(e,(n,t)=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&"),Ss=0,kC=3,ui=1,n8=2,Ua=[];Ua[Ss]=(e,n,t,r,o)=>{gn(e,Ss);const s=Qw(n,e,t.doc,t);r&&s===Dh&&!t.synced&&(t.synced=!0)};Ua[kC]=(e,n,t,r,o)=>{gn(e,ui),ko(e,ha(t.awareness,Array.from(t.awareness.getStates().keys())))};Ua[ui]=(e,n,t,r,o)=>{e8(t.awareness,uu(n),t)};Ua[n8]=(e,n,t,r,o)=>{Xw(n,t.doc,(s,l)=>r8(t,l))};const xm=3e4,r8=(e,n)=>console.warn(`Permission denied to access ${e.url}.
2
+ ${n}`),SC=(e,n,t)=>{const r=mC(n),o=Sr(),s=Jo(r),l=e.messageHandlers[s];return l?l(o,r,e,t,s):console.error("Unable to compute message"),o},EC=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=Ls();const r=SC(e,new Uint8Array(t.data),!0);Ih(r)>1&&n.send(cr(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,Ph(e.awareness,Array.from(e.awareness.getStates().keys()).filter(r=>r!==e.doc.clientID),e),e.emit("status",[{status:"disconnected"}])):e.wsUnsuccessfulReconnects++,setTimeout(EC,hC(yw(2,e.wsUnsuccessfulReconnects)*100,e.maxBackoffTime),e)},n.onopen=()=>{e.wsLastMessageReceived=Ls(),e.wsconnecting=!1,e.wsconnected=!0,e.wsUnsuccessfulReconnects=0,e.emit("status",[{status:"connected"}]);const t=Sr();if(gn(t,Ss),Of(t,e.doc),n.send(cr(t)),e.awareness.getLocalState()!==null){const r=Sr();gn(r,ui),ko(r,ha(e.awareness,[e.doc.clientID])),n.send(cr(r))}},e.emit("status",[{status:"connecting"}])}},ef=(e,n)=>{const t=e.ws;e.wsconnected&&t&&t.readyState===t.OPEN&&t.send(n),e.bcconnected&&ni(e.bcChannel,n,e)};class MC extends wC{constructor(n,t,r,{connect:o=!0,awareness:s=new $w(r),params:l={},WebSocketPolyfill:u=WebSocket,resyncInterval:d=-1,maxBackoffTime:f=2500,disableBc:h=!1}={}){for(super();n[n.length-1]==="/";)n=n.slice(0,n.length-1);const m=t8(l);this.maxBackoffTime=f,this.bcChannel=n+"/"+t,this.url=n+"/"+t+(m.length===0?"":"?"+m),this.roomname=t,this.doc=r,this._WS=u,this.awareness=s,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=h,this.wsUnsuccessfulReconnects=0,this.messageHandlers=Ua.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 A=Sr();gn(A,Ss),Of(A,r),this.ws.send(cr(A))}},d)),this._bcSubscriber=(A,y)=>{if(y!==this){const b=SC(this,new Uint8Array(A),!1);Ih(b)>1&&ni(this.bcChannel,cr(b),this)}},this._updateHandler=(A,y)=>{if(y!==this){const b=Sr();gn(b,Ss),Vw(b,A),ef(this,cr(b))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:A,updated:y,removed:b},x)=>{const w=A.concat(y).concat(b),k=Sr();gn(k,ui),ko(k,ha(s,w)),ef(this,cr(k))},this._exitHandler=()=>{Ph(this.awareness,[r.clientID],"app closed")},es&&typeof process<"u"&&process.on("exit",this._exitHandler),s.on("update",this._awarenessUpdateHandler),this._checkInterval=setInterval(()=>{this.wsconnected&&xm<Ls()-this.wsLastMessageReceived&&this.ws.close()},xm/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(),es&&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||(Yw(this.bcChannel,this._bcSubscriber),this.bcconnected=!0);const n=Sr();gn(n,Ss),Of(n,this.doc),ni(this.bcChannel,cr(n),this);const t=Sr();gn(t,Ss),xC(t,this.doc),ni(this.bcChannel,cr(t),this);const r=Sr();gn(r,kC),ni(this.bcChannel,cr(r),this);const o=Sr();gn(o,ui),ko(o,ha(this.awareness,[this.doc.clientID])),ni(this.bcChannel,cr(o),this)}disconnectBc(){const n=Sr();gn(n,ui),ko(n,ha(this.awareness,[this.doc.clientID],new Map)),ef(this,cr(n)),this.bcconnected&&(Zw(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&&(EC(this),this.connectBc())}}const o8="0.7.79",s8={version:o8},i8=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","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"}},"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"},"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?"}}`),a8={editor:i8},l8=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","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"}},"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"},"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?"}}`),c8={editor:l8},u8=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":"Темы","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":"Добавить строку и столбец"}},"column":{"name":"Вставить сетку","insert":"Вставить","columns":"Колонки","addRight":"Добавить колонку справа","addRightMaxReached":"Не больше 4 колонок — удалите колонку, чтобы добавить ещё","addLeft":"Добавить колонку слева","moveLeft":"Переместить колонку влево","moveRight":"Переместить колонку вправо","duplicate":"Дублировать","clearContent":"Очистить содержимое","deleteColumn":"Удалить колонку","changeColor":"Цвет"},"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":"Насколько вы довольны ИИ-редактированием текста?"}}`),d8={editor:u8},Df=O9.createInstance();Df.use(He.initReactI18next).init({resources:{en:{translation:a8,ui:Bt.enUI},ru:{translation:d8,ui:Bt.ruUI},es:{translation:c8,ui:Bt.esUI}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}}).then(()=>{}).catch(e=>{});const Tr={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"}},f8=e=>{const n={...Tr,text:{...Tr.text}};return e==="comment"&&n.text&&(delete n.text.strikethrough,delete n.text.underlineStrikethrough),n},h8=ew.lazy(()=>Promise.resolve().then(()=>require("./layers.DbT3gbC2.js")));function vm(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:Ma(o,t)}}class Li extends p.DecoratorNode{constructor(t,r,o){super(o);we(this,"__equation");we(this,"__inline");this.__equation=t,this.__inline=r??!1}static getType(){return"equation"}static clone(t){return new Li(t.__equation,t.__inline,t.__key)}static importJSON(t){return Ma(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:vm,priority:2}:null,span:t=>t.hasAttribute("data-lexical-equation")?{conversion:vm,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 a.jsx(h8,{equation:this.__equation,inline:this.__inline,nodeKey:this.__key})}}function Ma(e="",n=!1){const t=new Li(e,n);return p.$applyNodeReplacement(t)}function Ro(e){return e instanceof Li}const p8=[["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"}]],g8=[["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"}]],m8=[["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"}]],C8=[["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"}]],Bh=[["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"}]],A8=[["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"}]],Ic=[["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"}]],TC=[["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"}]],LC=[["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"}]],b8=[["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"}]],y8=[["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"}]],mi=[["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"}]],x8=[["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"}]],v8=[["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"}]],NC=[["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"}]],RC=[["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"}]],w8=[["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"}]],Ns=[["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"}]],jC=[["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"}]],k8=[["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"}]],S8=[["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"}]],_h=[["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"}]],E8=[["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"}]],M8=[["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"}]],T8=[["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"}]],L8=[["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"}]],N8=[["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"}]],jo=[["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"}]],Fh=[["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"}]],R8=[["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"}]],j8=[["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"}]],_n=[["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"}]],I8=[["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"}]],Wh=[["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"}]],IC=[["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"}]],O8=[["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"}]],wm=[["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"}]],D8=[["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"}]],tf=[["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"}]],zh=[["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"}]],Uh=[["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"}]],Kh=[["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"}]],pa=[["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"}]],P8=[["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"}]],OC=[["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"}]],B8=[["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"}]],_8=[["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"}]],F8=[["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"}]],W8=[["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"}]],z8=[["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"}]],Pf=[["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"}]],Oc=[["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"}]],Hh=[["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"}]],U8=[["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"}]],Yh=[["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"}]],Ta=[["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"}]],DC=[["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"}]],K8=[["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"}]],H8=[["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"}]],PC=[["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"}]],so=[["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"}]],yc=[["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"}]],Zh=[["path",{d:"M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Y8=[["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"}]],Z8=[["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"}]],G8=[["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"}]],Ci=[["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"}]],BC=[["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"}]],V8=[["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"}]],_C=[["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"}]],km=[["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"}]],nf=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Gh=[["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"}]],q8=[["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"}]],La=[["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"}]],Q8=[["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"}]],Vh=[["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"}]],J8=[["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"}]],Sm=[["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"}]],X8=[["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"}]],$8=[["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"}]],ek=[["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"}]],tk=[["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"}]],Na=[["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"}]],nk=[["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"}]],rk=[["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"}]],FC=[["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"}]],WC=[["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"}]],xc=[["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"}]],zC=[["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"}]],UC=[["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"}]],ok=[["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"}]],sk=[["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"}]],ik=[["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"}]],KC=[["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"}]],Bf=[["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"}]],HC=[["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"}]],du=[["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"}]],YC=[["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"}]],Or=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],ZC=[["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"}]],ak=[["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"}]],_f=[["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"}]],Ff=[["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"}]],lk=[["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"}]],qh=[["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"}]],GC=[["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"}]],VC=[["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"}]],ck=[["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"}]],qC=[["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"}]],uk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},ue=g.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t,absoluteStrokeWidth:r=!1,className:o="",altIcon:s,showAlt:l=!1,icon:u,primaryColor:d,secondaryColor:f,disableSecondaryOpacity:h=!1,...m},A)=>{const y=t!==void 0?r?Number(t)*24/Number(n):t:void 0,b=y!==void 0?{strokeWidth:y,stroke:"currentColor"}:{},x={ref:A,...uk,width:n,height:n,color:d||e,className:o,...b,...m},k=[...l&&s?s:u].sort(([,L],[,O])=>{const T=L.opacity!==void 0;return O.opacity!==void 0?1:T?-1:0}).map(([L,O])=>{const T=O.opacity!==void 0,R=T&&!h?O.opacity:void 0,E=f?{...O.stroke!==void 0?{stroke:T?f:d||e}:{fill:T?f:d||e}}:{};return g.createElement(L,{...O,...b,...E,opacity:R,key:O.key})});return g.createElement("svg",x,k)});ue.displayName="HugeiconsIcon";const Ni=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dk=Ni&&"documentMode"in document?document.documentMode:null;var nC;const fk=(nC=navigator.userAgentData)==null?void 0:nC.platform,Rs=Ni&&/macOS|iPod|iPhone|iPad/.test(fk);Ni&&"InputEvent"in window&&!dk&&"getTargetRanges"in new window.InputEvent("input");const hk=Ni&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Tn=Ni&&!!navigator.maxTouchPoints,pk="1px solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4))",Cn=g.forwardRef(function({label:n,icon:t,iconColor:r,tooltipDisabled:o,flexBorder:s,className:l,...u},d){const f=["action-icon",l].filter(Boolean).join(" ");return a.jsx(v.Tooltip,{label:n,disabled:o,children:a.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?pk:void 0,children:a.jsx(v.ActionIcon,{ref:d,size:28,variant:"transparent",bd:"none",className:f,...u,children:a.jsx(ue,{icon:t,size:16,color:r})})})})});function ls({label:e,ariaLabel:n,onClick:t}){return a.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:_n,iconColor:"var(--mantine-color-red-5)"})}function fu({label:e,ariaLabel:n,onClick:t}){return a.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:jo,iconColor:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-gray-4))"})}const Qh=g.forwardRef(function({isEmpty:n,copyToClipboard:t,onDuplicate:r,tooltipCopy:o,tooltipDuplicate:s},l){const[u,d]=g.useState(!1),f=n?s:o;function h(){if(n){r();return}t().then(A=>{A&&(d(!0),setTimeout(()=>{d(!1)},1e3))})}const m=n?jo:u?Or:Fh;return a.jsx(Cn,{ref:l,className:!n&&u?"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:m,iconColor:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-gray-4))"})});function QC(e,n){const[t,r]=g.useState(()=>{let o=!1;return e.getEditorState().read(()=>{var s;o=!!((s=n())!=null&&s.getTextContent().trim())}),o});return g.useEffect(()=>e.registerUpdateListener(({editorState:o})=>{o.read(()=>{var l;const s=!!((l=n())!=null&&l.getTextContent().trim());r(u=>u===s?u:s)})}),[e,n]),t}const Ur=({title:e,children:n,classNames:t,...r})=>{const o=["mobile-drawer",t==null?void 0:t.content].filter(Boolean).join(" ").trim();return a.jsxs(v.Drawer,{position:"bottom",size:"auto",withCloseButton:!1,padding:0,lockScroll:!0,classNames:{...t,content:o||void 0},...r,children:[a.jsx(v.Box,{className:"mobile-drawer__handle-rail",children:a.jsx(v.Box,{className:"mobile-drawer__handle"})}),a.jsxs(v.Box,{className:"mobile-drawer__body",children:[e?a.jsx(v.Text,{component:"p",className:"mobile-drawer__title",children:e}):null,a.jsx(v.Box,{className:"mobile-drawer__main",children:n})]})]})};class Mo extends p.TextNode{constructor(n,t){super(n,t)}static getType(){return"extended-text"}static clone(n){return new Mo(n.__text,n.__key)}static importDOM(){const n=p.TextNode.importDOM(),t=document.body.getAttribute("mode")?{code:()=>({conversion:Ko(n==null?void 0:n.span),priority:1}),s:()=>({conversion:Ko(n==null?void 0:n.span),priority:1})}:{code:()=>({conversion:Ko(n==null?void 0:n.code),priority:1})};return{...n,...t,em:()=>({conversion:Ko(n==null?void 0:n.em),priority:1}),span:()=>({conversion:Ko(n==null?void 0:n.span),priority:1}),strong:()=>({conversion:Ko(n==null?void 0:n.strong),priority:1}),sub:()=>({conversion:Ko(n==null?void 0:n.sub),priority:1}),sup:()=>({conversion:Ko(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 ts(e=""){return p.$applyNodeReplacement(new Mo(e))}function Fn(e){return e instanceof Mo}function Ko(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:"",u=n.style.textDecoration;return{...r,forChild:(d,f)=>{const m=((r==null?void 0:r.forChild)??(A=>A))(d,f);if(Fn(m)){const A=[s?`background-color: ${s}`:null,l?`color: ${l}`:null,u?`text-decoration: ${u}`:null].filter(y=>y!=null).join("; ");if(A.length)return m.setStyle(A)}return m}}}}const Wf={...Tr};function gk(){return{node:Ka()}}class Bs extends p.ElementNode{static getType(){return"callout"}static clone(n){return new Bs(n.__key)}constructor(n){super(n)}createDOM(n){const t=document.createElement("div");return typeof n.theme.callout=="string"&&ye.addClassNamesToElement(t,Wf.callout),t}updateDOM(){return!1}isShadowRoot(){return!0}static importDOM(){return{div:n=>n.className!==Wf.callout?null:{conversion:gk,priority:2}}}static importJSON(){return Ka()}exportJSON(){return{...super.exportJSON(),type:"callout",version:1}}}function Ka(){return new Bs}function cs(e){return e instanceof Bs}const mk=new Set(["success","warning","alert"]),Ck=new Set(["#f3f3f4","rgba(219, 242, 233, 1)","rgba(255, 224, 223, 1)","rgba(254, 247, 230, 1)","rgba(254, 247, 230)"]);function Em(e,n){return!(mk.has(n)||!e||Ck.has(e))}function Ak(e){const n=e.getAttribute("data-type"),t=e.style.backgroundColor;return{node:Ha(t,n||"default")}}class To extends p.ElementNode{constructor(t,r,o){super(o);we(this,"__backgroundColor");we(this,"__calloutType");this.__backgroundColor=t===void 0?"":t,this.__calloutType=r===void 0?"😊":r}static getType(){return"callout-wrapper"}static clone(t){return new To(t.__backgroundColor,t.__calloutType,t.__key)}createDOM(t){const r=document.createElement("div");return typeof t.theme.callout=="string"&&ye.addClassNamesToElement(r,t.theme.calloutWrapper),r.setAttribute("data-type",this.__calloutType),Em(this.__backgroundColor,this.__calloutType)?r.style.backgroundColor=this.__backgroundColor:r.style.backgroundColor="",r}updateDOM(t,r){return t&&(r.setAttribute("data-type",this.__calloutType),Em(this.__backgroundColor,this.__calloutType)?r.style.backgroundColor=this.__backgroundColor:r.style.backgroundColor=""),!1}static importDOM(){return{div:t=>t.className!==Wf.calloutWrapper?null:{conversion:Ak,priority:2}}}static importJSON(t){return Ha(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 Ha(e="",n="default"){return new To(e,n)}function ao(e){return e instanceof To}function JC({label:e,checked:n,onSelect:t}){return a.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:a.jsxs(v.Group,{justify:"space-between",wrap:"nowrap",w:"100%",align:"center",children:[a.jsx(v.Text,{size:"sm",children:e}),n?a.jsx(ue,{icon:Or,size:16,color:"var(--mantine-primary-color-filled)"}):null]})})}function Ya({size:e="sm",w:n=150,comboboxProps:t,rightSection:r,renderOption:o,searchable:s,data:l,value:u,defaultValue:d,placeholder:f,onChange:h,inputClassName:m,...A}){var oe;const{t:y}=He.useTranslation(),{onClick:b,type:x,onCopy:w,onCut:k,onPaste:L,classNames:O,allowDeselect:T,...R}=A,M=[typeof O=="object"&&O&&"input"in O?O.input:void 0,m].filter(Boolean).join(" ")||void 0,P=M?{...typeof O=="object"&&O?O:{},input:M}:O,[I,F]=g.useState(""),_=v.useCombobox({onDropdownClose:()=>{_.resetSelectedOption(),_.focusTarget(),F("")},onDropdownOpen:()=>{_.focusSearchInput()}}),N=g.useMemo(()=>(Array.isArray(l)?l:[]).map(Ce=>typeof Ce=="string"?{value:Ce,label:Ce}:Ce),[l]),j=u??d??null,U=!s||!I?N:N.filter(Ce=>Ce.label.toLowerCase().includes(I.toLowerCase().trim())),W=((oe=N.find(Ce=>Ce.value===j))==null?void 0:oe.label)??"",B=(Ce,Te,Me)=>o?o({option:{value:Ce,label:Te},checked:Me}):a.jsxs(v.Group,{justify:"space-between",wrap:"nowrap",w:"100%",align:"center",children:[a.jsx(v.Text,{size:"sm",children:Te}),Me?a.jsx(ue,{icon:Or,size:16,color:"var(--mantine-primary-color-filled)"}):null]}),{width:Z,...Q}=t||{},re=Z??250;return a.jsxs(v.Combobox,{store:_,withinPortal:!0,onOptionSubmit:Ce=>{const Te=N.find(Me=>Me.value===Ce)??{value:Ce,label:Ce};h==null||h(Ce,Te),_.closeDropdown()},width:re,...Q,children:[a.jsx(v.Combobox.Target,{children:a.jsx(v.InputBase,{component:"button",size:e,w:n,classNames:P,pointer:!0,rightSection:r??a.jsx("span",{className:"editor-select__chevron",children:a.jsx(ue,{icon:mi,size:16})}),rightSectionPointerEvents:"none",onClick:Ce=>{b==null||b(Ce),_.toggleDropdown()},...R,children:W})}),a.jsxs(v.Combobox.Dropdown,{children:[s&&a.jsx(v.Combobox.Search,{value:I,onChange:Ce=>F(Ce.currentTarget.value),placeholder:f,size:e,leftSectionWidth:40,leftSection:a.jsx(ue,{icon:Vh,size:16,color:"var(--mantine-color-gray-6)"}),leftSectionPointerEvents:"none",classNames:{input:"editor-select__search-input"}}),a.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:U.length>0?U.map(Ce=>{const Te=Ce.value===j;return a.jsx(v.Combobox.Option,{value:Ce.value,className:Te?"editor-select__combobox-option--selected":void 0,children:B(Ce.value,Ce.label,Te)},Ce.value)}):a.jsx(v.Combobox.Empty,{children:y("editor.menu.main.code.languageSearchNoResults")})})]})]})}function bk({onCollapsibleCode:e,copyToClipboard:n,onDuplicateCodeBlock:t,hasCodeContent:r,onRemoveCodeBlock:o,showExpandButton:s,isCollapsed:l}){const{t:u}=He.useTranslation();return a.jsx("div",{className:"code-block-header-menu__burger",children:a.jsxs(v.Menu,{shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},children:[a.jsx(v.Menu.Target,{children:a.jsx(v.Button,{radius:"sm",h:25,px:5,size:"xs",variant:"default",children:a.jsx(xe.IconMenu2,{size:18})})}),a.jsxs(v.Menu.Dropdown,{children:[a.jsx(v.Menu.Item,{rightSection:a.jsx(ue,{size:16,color:"var(--mantine-color-gray-6)",icon:r?Fh:jo}),onClick:()=>{r?n():t()},children:a.jsx(v.Text,{size:"12px",children:u(r?"editor.contextMenu.copy":"editor.contextMenu.duplicate")})}),s&&a.jsx(v.Menu.Item,{onClick:e,rightSection:l?a.jsx(ue,{size:16,color:"var(--mantine-color-gray-6)",icon:Ff}):a.jsx(ue,{size:16,color:"var(--mantine-color-gray-6)",icon:_f}),children:a.jsx(v.Text,{size:"12px",children:u(l?"editor.menu.main.code.collapsible.expand":"editor.menu.main.code.collapsible.hidden")})}),a.jsx(v.Menu.Item,{rightSection:a.jsx(ue,{size:16,color:"var(--mantine-color-red-outline)",icon:_n}),onClick:o,children:a.jsx(v.Text,{size:"12px",children:u("editor.actions.delete")})})]})]})})}const di={json:"JSON",...Kt.CODE_LANGUAGE_FRIENDLY_NAME_MAP};function yk({editor:e,headerKey:n}){const{t}=He.useTranslation(),{disable:r}=g.useContext(at),[o,{open:s,close:l}]=Yn.useDisclosure(!1),[u,{open:d,close:f}]=Yn.useDisclosure(!1),[h,m]=g.useState(!1),[A,y]=g.useState(""),[b,x]=g.useState(!1),[w,k]=g.useState(""),L=g.useMemo(()=>Object.entries(di).map(([W,B])=>({value:W,label:B})),[]),O=g.useMemo(()=>{const W=w.toLowerCase().trim();return W?L.filter(B=>B.label.toLowerCase().includes(W)):L},[L,w]),T=()=>{const W=p.$getNodeByKey(n);if(!W)return null;const B=W.getNextSibling();return mn(B)?B:null},R=g.useCallback(()=>{const W=p.$getNodeByKey(n);if(!W)return null;const B=W.getNextSibling();return mn(B)?B:null},[n]),E=QC(e,R);g.useEffect(()=>{e.getEditorState().read(()=>{const W=T();if(!W)return;const B=W.getLanguage()||"plain",Z=Kt.CODE_LANGUAGE_MAP[B]||B;y(Z),m(W.__isCollapsed)})},[e,n]),g.useEffect(()=>{const W=()=>{let Z=null;if(e.getEditorState().read(()=>{const re=T();re&&(Z=re.getKey())}),h){x(!0);return}if(!Z){x(!1);return}const Q=e.getElementByKey(Z);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=T();if(!B)return;B.setLanguage(W),B.selectStart();const Z=B.getLanguage()||"plain",Q=Kt.CODE_LANGUAGE_MAP[Z]||Z;y(Q)})},P=()=>{e.update(()=>{const W=T();W&&(W.toggleCodeState(),m(B=>!B))})},I=()=>{l(),P()},F=()=>{e.update(()=>{const W=p.$getNodeByKey(n),B=W==null?void 0:W.getParent();rs(B)&&B.remove()})},_=()=>{l(),F()},N=async()=>{let W="";if(e.getEditorState().read(()=>{const B=T();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();rs(B)&&B.insertAfter(Lr(B))})},U=()=>{l(),j()};return Tn?a.jsxs(a.Fragment,{children:[a.jsxs(v.Group,{className:"code-block-header-mobile__row",wrap:"nowrap",justify:"space-between",align:"center",gap:"xs",flex:1,miw:0,children:[a.jsx(v.Box,{className:"code-block-header-mobile__select-host",children:a.jsx(v.InputBase,{component:"button",type:"button",size:"sm",w:120,classNames:{input:"editor-select__input--codeblock"},rightSection:a.jsx(ue,{icon:mi,size:16}),rightSectionPointerEvents:"none",onClick:()=>{l(),d()},children:di[A]??A})}),!r&&a.jsx(Cn,{label:t("editor.toolbar.more"),icon:PC,iconColor:"var(--mantine-color-gray-text)","aria-label":t("editor.toolbar.more"),onClick:()=>{f(),s()}})]}),a.jsx(Ur,{opened:!r&&u,onClose:()=>{f(),k("")},title:t("editor.menu.main.code.languageDrawerTitle"),children:a.jsxs(v.Stack,{gap:"sm",p:0,children:[a.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"}}),a.jsx(v.Stack,{gap:4,children:O.length===0?a.jsx(v.Text,{size:"sm",c:"dimmed",py:"xs",children:t("editor.menu.main.code.languageSearchNoResults")}):O.map(W=>{const B=W.value===A;return a.jsx(JC,{label:W.label,checked:B,onSelect:()=>{M(W.value),f(),k("")}},W.value)})})]})}),a.jsx(Ur,{opened:!r&&o,onClose:l,title:t("editor.menu.main.code.mobileActions"),children:a.jsxs(v.Stack,{gap:4,p:0,children:[b&&a.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:a.jsx(ue,{icon:h?Ff:_f,size:16,color:"var(--mantine-color-dimmed)"}),children:t(h?"editor.menu.main.code.drawer.expand":"editor.menu.main.code.drawer.collapse")}),a.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:U,leftSection:a.jsx(ue,{icon:jo,size:16,color:"var(--mantine-color-dimmed)"}),children:t("editor.contextMenu.duplicate")}),a.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:a.jsx(ue,{icon:_n,size:16,color:"var(--mantine-color-red-6)"}),children:t("editor.actions.delete")})]})})]}):a.jsxs(a.Fragment,{children:[a.jsx(Ya,{data:L,value:A,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&&a.jsxs("div",{className:"code-block-header-menu__main",children:[a.jsxs("div",{className:"code-block-header-menu__actions",children:[a.jsx(v.Tooltip,{label:t("editor.menu.main.code.exitCommandText"),children:a.jsx(v.Text,{size:"xs",c:"dimmed",children:"(Shift+Enter)"})}),b&&a.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:P,icon:h?Ff:_f,iconColor:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-gray-4))"}),a.jsx(Qh,{isEmpty:!E,copyToClipboard:N,onDuplicate:j,tooltipCopy:t("editor.contextMenu.copy"),tooltipDuplicate:t("editor.contextMenu.duplicate")}),a.jsx(ls,{label:t("editor.actions.delete"),ariaLabel:"remove-code-block",onClick:F})]}),a.jsx(bk,{onCollapsibleCode:P,copyToClipboard:N,onDuplicateCodeBlock:j,hasCodeContent:E,onRemoveCodeBlock:F,showExpandButton:b,isCollapsed:h})]})]})}const rf=new Map;class qn extends Kt.CodeNode{constructor(t=!1,r="plain",o){super(r,o);we(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=di[this.__language||"plain"]||this.__language;return o.setAttribute("data-name-language",String(s)),setTimeout(()=>{rf.set(this.__key,o.getAttribute("data-gutter")||"")},0),o}updateDOM(t,r,o){if(this.__isCollapsed!==t.__isCollapsed)return this.__isCollapsed?(r.classList.add(Tr.codeCollapsed),r.setAttribute("data-collapsed","true")):(r.classList.remove(Tr.codeCollapsed),r.setAttribute("data-collapsed","false")),!1;if(this.__language!==t.__language){const s=di[this.__language||"plain"]||this.__language;r.setAttribute("data-name-language",String(s))}return setTimeout(()=>{rf.set(this.__key,r.getAttribute("data-gutter")||"")},0),super.updateDOM(t,r,o)}exportDOM(t){var l;const r=document.createElement("pre");ye.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=di[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=rf.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,u=(o.isBefore(s)?o:s).getNode();if(p.$isTextNode(u)){let d=xk(u);const f=[];for(;;)if(p.$isTabNode(d))f.push(p.$createTabNode()),d=d.getNextSibling();else if(Kt.$isCodeHighlightNode(d)){let w=0;const k=d.getTextContent(),L=d.getTextContentSize();for(;w<L&&k[w]===" ";)w++;if(w!==0&&f.push(p.$applyNodeReplacement(new Kt.CodeHighlightNode(" ".repeat(w)))),w!==L)break;d=d.getNextSibling()}else break;const h=u.splitText(o.offset)[0],m=o.offset===0?0:1,A=h.getIndexWithinParent()+m,y=u.getParentOrThrow(),b=[p.$createLineBreakNode(),...f];y.splice(A,0,b);const x=f[f.length-1];x?x.select():o.offset===0?h.selectPrevious():h.getNextSibling().selectNext(0,0)}if(mn(u)){const{offset:d}=t.anchor;u.splice(d,0,[p.$createLineBreakNode()]),u.select(d+1,d+1)}return null}}function zf(e=!1){return p.$applyNodeReplacement(new qn(e))}function mn(e){return e instanceof qn}function xk(e){let n=e,t=e;for(;Kt.$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 vk(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()?Fn(r)&&Fn(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 hu=(e,n)=>{e.update(()=>{if(typeof n=="string"){const t=p.$getNodeByKey(n);t&&t.remove();return}n&&n.remove()})};function wk(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 kk(){const e=p.$getSelection();if(p.$isRangeSelection(e)){const n=e.anchor,t=e.focus,r=t.getNode(),o=mn(r)?r.__size:r.getTextContentSize(),s=n.offset===0,l=t.offset===o;if(s&&l)return!0}return!1}function Lr(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[u,d]=l;if(p.$isElementNode(u)&&p.$isElementNode(d)){const f=u.getChildren();for(const h of f){if(n&&h.is(n))continue;const m=p.$copyNode(h);Fn(h)&&Fn(m)&&(m.setFormat(h.__format),m.setStyle(h.__style)),d.append(m),r.push([h,m])}}}}return t}function Sk(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 Ai(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),u=Sk(s,cs);if(u&&(u.getFirstChild()===e.getTopLevelElement()||u.getFirstChild()===((o=e.getTopLevelElement())==null?void 0:o.getParent()))){const f=u.getParent(),h=f?n.getElementByKey(f.__key):null;if(h)return{htmlElement:h,lexicalNode:p.$getNearestNodeFromDOMNode(h)}}return{htmlElement:l,lexicalNode:e}}return Ai(s,n,r)}return{htmlElement:null,lexicalNode:null}}function Mm(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:u}=window.getComputedStyle(r==null?void 0:r.target),d=document.elementFromPoint(l+parseFloat(u)+10,s),f=p.$getNearestNodeFromDOMNode(d||document.body);return f?Ai(f,n,t):{htmlElement:null,lexicalNode:null}}else return Ai(e,n,t);return{htmlElement:null,lexicalNode:null}}const bi=e=>{e.update(()=>{p.$getSelection()!==null&&p.$setSelection(null)})},Uf=()=>{const e=p.$getRoot(),n=e==null?void 0:e.getFirstChild();return e.getChildren().length>1?!1:n&&p.$isElementNode(n)&&n.isEmpty()&&!mn(n)},XC=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()})},Xo=p.createCommand(),Kf=p.createCommand(),pu=p.createCommand(),Hf=p.createCommand(),gu=p.createCommand(),$C=p.createCommand(),eA=p.createCommand(),tA=p.createCommand(),Ra=p.createCommand(),Dc=p.createCommand();function vc(e){for(;e;){if(yu(e))return e;const n=e.getParent();if(!n)break;e=n}return null}const Ek=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()){ln.$setBlocksType(n,()=>Ia(()=>{const r=Ma("",!1);return setTimeout(()=>{e.dispatchCommand(Dc,r.getKey())},0),r})());return}const t=Ia(()=>{const r=Ma("",!1);return setTimeout(()=>{e.dispatchCommand(Dc,r.getKey())},0),r})();n.insertNodes([t,p.$createParagraphNode()])})};function Mk({editor:e,headerKey:n}){const{t}=He.useTranslation(),{disable:r}=g.useContext(at),[o,{open:s,close:l}]=Yn.useDisclosure(!1),u=g.useCallback(()=>{const x=p.$getNodeByKey(n);if(!x)return null;const w=vc(x);return w?w.getChildren().find(Ro)??null:null},[n]),d=g.useCallback(()=>u(),[u]),f=QC(e,d),h=async()=>{let x="";e.getEditorState().read(()=>{const k=u();k&&(x=k.getEquation())});const w=x.trim();if(!w)return!1;try{return await navigator.clipboard.writeText(w),!0}catch{return!1}},m=g.useCallback(()=>{e.update(()=>{const x=p.$getNodeByKey(n);if(!x)return;const w=vc(x);if(!w||!yu(w))return;const k=p.$createParagraphNode();w.insertAfter(k),w.remove(),k.selectStart()})},[e,n]),A=g.useCallback(()=>{e.update(()=>{const x=p.$getNodeByKey(n);if(!x)return;const w=vc(x);w&&w.insertAfter(Lr(w))})},[e,n]),y=g.useCallback(()=>{l(),A()},[l,A]),b=g.useCallback(()=>{l(),m()},[l,m]);return Tn?a.jsxs(a.Fragment,{children:[a.jsx(v.Text,{size:"sm",fw:500,ml:10,children:t("editor.menu.other.equation.overlayTitle")}),!r&&a.jsx(Cn,{label:t("editor.toolbar.more"),icon:PC,iconColor:"var(--mantine-color-gray-text)","aria-label":t("editor.toolbar.more"),onClick:s}),a.jsx(Ur,{opened:o,onClose:l,title:t("editor.menu.other.equation.mobileActions"),children:a.jsxs(v.Stack,{gap:4,p:0,children:[a.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:a.jsx(ue,{icon:jo,size:16,color:"var(--mantine-color-dimmed)"}),children:t("editor.contextMenu.duplicate")}),a.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:a.jsx(ue,{icon:_n,size:16,color:"var(--mantine-color-red-6)"}),children:t("editor.actions.delete")})]})})]}):a.jsxs(a.Fragment,{children:[a.jsx(v.Text,{size:"sm",fw:500,ml:10,children:t("editor.menu.other.equation.overlayTitle")}),!r&&a.jsxs(v.Group,{gap:4,children:[a.jsx(Qh,{isEmpty:!f,copyToClipboard:h,onDuplicate:A,tooltipCopy:t("editor.contextMenu.copy"),tooltipDuplicate:t("editor.contextMenu.duplicate")}),a.jsx(ls,{label:t("editor.actions.delete"),ariaLabel:"remove-equation-block",onClick:m})]})]})}function Tk(){const[e,n]=g.useState(!1),t=()=>n(!0),r=()=>n(!1);return g.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 Lk({size:e=20,color:n="currentColor"}){return a.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:[a.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}),a.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}),a.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 Za({onPause:e,onResume:n,onCancel:t,onRetry:r,isPaused:o=!1,showRetry:s=!1}){const{t:l}=He.useTranslation();return a.jsxs("div",{className:"upload-actions",children:[(e||n)&&a.jsx(v.Tooltip,{label:l(o?"editor.video.actions.resume":"editor.video.actions.pause"),children:a.jsx(v.ActionIcon,{variant:"light",color:o?"blue":"gray",size:28,radius:"md",onClick:o?n:e,children:o?a.jsx(ue,{icon:_C,size:16,color:"currentColor"}):a.jsx(ue,{icon:BC,size:16,color:"currentColor"})})}),s&&r&&a.jsx(v.Tooltip,{label:l("editor.video.actions.retry"),children:a.jsx(v.ActionIcon,{variant:"light",color:"gray",size:28,radius:"md",onClick:r,children:a.jsx(Lk,{size:16,color:"currentColor"})})}),t&&a.jsx(v.Tooltip,{label:l("editor.video.actions.cancel"),children:a.jsx(v.ActionIcon,{variant:"light",color:"red",size:28,radius:"md",onClick:t,children:a.jsx(ue,{icon:Zh,size:16,color:"currentColor"})})})]})}function mu({progress:e,showSpeed:n=!0,showRemaining:t=!1,showInfo:r=!0,isPaused:o=!1}){const{t:s}=He.useTranslation(),l=h=>{const m=Math.max(0,h);return m===0?"0 MB":`${(m/(1024*1024)).toFixed(2)} MB`},u=h=>{const m=Math.max(0,h);return m===0?"0.00 MB/s":`${(m/(1024*1024)).toFixed(2)} MB/s`},d=h=>{if(h<=0)return"0s";if(h<60)return`${h}s`;const m=Math.floor(h/60),A=h%60;return`${m}m ${A}s`},f=Math.min(100,Math.max(0,Math.round(e.percent)));return a.jsxs("div",{className:"upload-progress-container",children:[a.jsxs("div",{className:"upload-progress-header",children:[a.jsxs(v.Text,{size:"sm",fw:400,c:"var(--mantine-color-bright)",children:[f,"%"]}),o?a.jsx(v.Text,{size:"sm",c:"var(--mantine-color-text)",children:s("editor.video.actions.pause")}):t&&e.remaining>0&&a.jsxs(v.Text,{size:"sm",c:"var(--mantine-color-dimmed)",children:[s("editor.video.upload.remaining"),a.jsxs(v.Text,{component:"span",c:"var(--mantine-color-text)",children:[" ",d(e.remaining)]})]})]}),a.jsx(v.Progress,{value:f,size:6,radius:"md"}),r&&a.jsxs("div",{className:"upload-progress-info",children:[a.jsxs(v.Text,{size:"xs",c:"dimmed",children:[s("editor.video.upload.progress"),a.jsxs(v.Text,{component:"span",size:"xs",c:"var(--mantine-color-text)",inherit:!0,children:[" ",l(e.uploaded)," / ",l(e.total)]})]}),n&&!o&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"upload-progress-dot"}),a.jsx(v.Text,{size:"xs",c:"var(--mantine-color-text)",children:u(e.speed||0)})]})]})]})}function Pc({isPaused:e=!1}){const{t:n}=He.useTranslation();return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center"},children:[a.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:[a.jsx("circle",{cx:16,cy:16,r:14,stroke:"var(--mantine-color-gray-light)",strokeWidth:2.5}),!e&&a.jsx("circle",{cx:16,cy:16,r:14,stroke:"var(--mantine-color-bright)",strokeWidth:2.5,strokeLinecap:"round",strokeDasharray:"66 22"})]}),a.jsx(v.Text,{size:"md",fw:500,c:"var(--mantine-color-bright)",children:n("editor.video.upload.uploading")})]})}function Nk({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){return e==null?a.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:a.jsx(v.Stack,{align:"center",children:a.jsx(Pc,{isPaused:o})})}):a.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:a.jsxs(v.Stack,{gap:"lg",align:"center",children:[a.jsx(Pc,{isPaused:o}),a.jsx(v.Box,{w:"100%",children:a.jsx(mu,{progress:e,showSpeed:!0,showRemaining:!0,isPaused:o})}),a.jsx(Za,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})})}const Rk=8*1024*1024,jk=3e4,Tm=3,Ik=3,Ok=15,Dk=3e3,Pk=20,Lm=.15;function of(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 nA({api:e,parentId:n,parentType:t="PAGE",onComplete:r,onError:o}){const[s,l]=g.useState({percent:0,uploaded:0,total:0,speed:0,remaining:0}),[u,d]=g.useState(!1),[f,h]=g.useState(!1),[m,A]=g.useState(null),y=g.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=g.useRef(null),x=g.useRef([]),w=g.useRef(0),k=g.useRef(0),L=g.useRef(null),O=g.useRef(r);O.current=r;const T=g.useRef(o);T.current=o;const R=g.useRef(e);R.current=e;const E=g.useCallback((j,U,W)=>{const B=y.current;if(B.lastTime===0)return B.lastTime=W,B.lastBytes=j,x.current=[],L.current=null,w.current=0,{speed:0,remaining:0};const Z=(W-B.lastTime)/1e3,Q=j-B.lastBytes;if(Q<0)return B.lastBytes=j,B.lastTime=W,{speed:L.current??0,remaining:w.current};if(Z>0&&!B.isPaused){const re=Math.max(0,Q/Z);x.current.push(re),x.current.length>Pk&&x.current.shift(),L.current===null?L.current=re:L.current=Lm*re+(1-Lm)*L.current;const oe=L.current;B.lastTime=W,B.lastBytes=j;const Ce=U>j&&oe>0?Math.ceil((U-j)/oe):0,Te=w.current;let Me;return Te===0||Ce<=Te?Me=Ce:Me=Math.min(Ce,Te+1),w.current=Me,{speed:oe,remaining:Me}}if(B.isPaused&&x.current.length>0){const re=x.current[x.current.length-1],oe=U>j&&re>0?Math.ceil((U-j)/re):0;return{speed:re,remaining:oe}}return{speed:0,remaining:0}},[]),M=g.useCallback((j,U)=>{const W=Date.now(),{speed:B,remaining:Z}=E(j,U,W),Q=U>0?Math.floor(j*100/U):0,re=Math.max(Q,k.current);k.current=re,l({percent:re,uploaded:Math.max(j,U*re/100),total:U,speed:B,remaining:Z})},[E]),P=g.useCallback(async(j,U,W=0)=>{var Me,Re,ae,te,q,ce,ie;const B=y.current,Z=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 ne;B.isPaused||B.isPausing||!((ne=B.signal)!=null&&ne.aborted)&&B.currentOffset<Z&&M(B.currentOffset,Z)},1e3);let re=0,oe=0,Ce=0,Te=!1;for(M(Q>0?Q:0,Z);Q<Z;){if(B.cancelled||(Me=B.signal)!=null&&Me.aborted)throw new Error("Upload cancelled");if(B.isPaused)break;if(B.isPausing){B.isPausing=!1,B.isPaused=!0,h(!0);break}const ne=Date.now();!B.uploadStallReported&&ne-B.lastUploadAckAt>jk&&(B.uploadStallReported=!0);const H=Math.min(Z-1,Q+Rk-1),X=Q,Y=new AbortController;B.chunkAbortController=Y;const J=()=>Y.abort();(Re=B.signal)!=null&&Re.aborted||B.cancelled?Y.abort():B.signal&&B.signal.addEventListener("abort",J,{once:!0});try{const $=await R.current.uploadChunk(U,j,Q,H,Z,Y.signal,Ae=>{if(B.isPaused||B.isPausing)return;const me=X+Ae;me<=H+1&&(B.currentOffset=me)},Ae=>{B.currentXhr=Ae});if(B.chunkAbortController=null,B.currentXhr=null,(ae=B.signal)==null||ae.removeEventListener("abort",J),$.expectedOffset!=null){if(re++,re>=Tm)throw{status:409,statusText:"Conflict",data:{message:"Too many consecutive offset conflicts"}};Q=$.expectedOffset;continue}if(re=0,oe=0,Te=!0,Q=$.nextOffset!=null?$.nextOffset:H+1,Q<Z&&await of(500,B.signal??void 0),B.currentOffset=Q,B.chunkAbortController=null,B.lastUploadAckAt=Date.now(),B.uploadStallReported=!1,!B.isPaused&&!B.isPausing&&M(Q,Z),B.isPausing){B.isPausing=!1,B.isPaused=!0,h(!0);break}}catch($){if(B.currentXhr=null,B.chunkAbortController=null,(te=B.signal)==null||te.removeEventListener("abort",J),B.isPaused||B.isPausing){B.isPausing=!1,B.isPaused=!0;break}if(($==null?void 0:$.name)==="AbortError"||(q=B.signal)!=null&&q.aborted||B.cancelled)throw new Error("Upload cancelled");if(($==null?void 0:$.status)===409&&((ce=$==null?void 0:$.data)==null?void 0:ce.expectedOffset)!=null){if(re++,re>=Tm)throw $;Q=$.data.expectedOffset;continue}if((!($!=null&&$.status)||($==null?void 0:$.status)===0||($==null?void 0:$.status)===409)&&oe<Ik&&Ce<Ok){oe++,Ce++;const me=Dk*oe;if(await of(me,B.signal??void 0),B.cancelled||(ie=B.signal)!=null&&ie.aborted||B.isPaused||B.isPausing)break;try{const ke=await R.current.fetchOffset(U);if(ke.nextOffset!=null){const Fe=ke.nextOffset;if(Fe===Q&&oe>=2){await of(5e3,B.signal??void 0);const De=await R.current.fetchOffset(U);if(De.nextOffset!=null&&De.nextOffset>Q){Q=De.nextOffset,B.currentOffset=Q,oe=0;continue}}Q=Fe,B.currentOffset=Fe}}catch{}continue}throw $}}if(b.current&&(clearInterval(b.current),b.current=null),Q>=Z&&!Te&&re>0&&!B.isPaused&&!B.isPausing)throw{status:409,statusText:"Conflict",data:{message:"Upload completed via offset corrections without any successful chunk transfer"}};Q>=Z?!B.isPaused&&!B.isPausing&&M(Z,Z):B.isPaused||B.isPausing?M(B.currentOffset,Z):M(Z,Z)},[M]),I=g.useCallback(async j=>{var Z,Q,re;const U=y.current;(U.isPaused||U.isPausing)&&(U.isPaused=!1,U.isPausing=!1,U.cancelled=!0,U.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,(Z=W.controller)==null||Z.abort(),W.controller=new AbortController,W.signal=W.controller.signal;try{if(!n)throw new Error("Upload requires parentId");let oe=W.uploadId,Ce=0;if(oe){try{const Te=await R.current.fetchOffset(oe);Te.nextOffset!=null?Ce=Te.nextOffset:(oe=null,W.uploadId=null,A(null))}catch{oe=null,W.uploadId=null,A(null)}oe||(oe=(await R.current.init(j,n,t)).id,W.uploadId=oe,A(oe))}else{const Te=await R.current.init(j,n,t);oe=Te.id,W.uploadId=oe,A(oe);try{const Me=await R.current.fetchOffset(oe);Me.nextOffset!=null&&Me.nextOffset>0?Ce=Me.nextOffset:Te.startOffset!=null&&(Ce=Te.startOffset)}catch{Te.startOffset!=null&&(Ce=Te.startOffset)}}if(!oe)throw new Error("Upload ID is missing after initialization");if(W.currentOffset=Ce,W.file=j,await P(j,oe,Ce),W.uploadSession!==B||W.isPaused)return;if(!oe)throw new Error("Upload ID became null after upload");d(!1),(Q=O.current)==null||Q.call(O,oe,j)}catch(oe){if(W.uploadSession!==B||W.isPaused||W.isPausing||(oe==null?void 0:oe.message)==="Upload cancelled")return;(re=T.current)==null||re.call(T,oe),d(!1)}},[n,t,P]),F=g.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))},[]),_=g.useCallback(async()=>{var U,W,B;const j=y.current;if(j.file&&j.uploadId&&j.currentOffset<(j.file.size||0)){j.uploadSession++;const Z=j.uploadSession;d(!0);try{let Q=j.currentOffset;try{const re=await R.current.fetchOffset(j.uploadId);re.nextOffset!=null&&(Q=re.nextOffset,j.currentOffset=Q)}catch{j.uploadSession===Z&&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 P(j.file,j.uploadId,Q),j.uploadSession!==Z)return;!j.isPaused&&!j.isPausing&&j.uploadId&&(d(!1),(U=O.current)==null||U.call(O,j.uploadId,j.file))}catch(Q){if(j.uploadSession!==Z||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,A(null),I(j.file);return}(W=T.current)==null||W.call(T,Q),d(!1)}}j.file&&j.uploadId&&j.currentOffset>=(j.file.size||0)&&(d(!1),(B=O.current)==null||B.call(O,j.uploadId,j.file))},[P,I]),N=g.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),A(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:u,isPaused:f,uploadId:m,handleUpload:I,handlePause:F,handleResume:_,handleCancel:N}}function Bk({parentId:e,parentType:n="PAGE",fileChunkUploadApi:t,onComplete:r,onError:o}){const s=g.useMemo(()=>({init:async(l,u,d)=>{var h;if(!t)throw new Error("File chunk upload API is missing from Context");const f=await t.initAttachment(l,u,d);return{id:f.attachmentId,startOffset:(h=f.status)==null?void 0:h.nextOffset}},uploadChunk:(l,u,d,f,h,m,A,y)=>t.uploadChunkWithProgress(l,u,d,f,h,m,A,y),fetchOffset:l=>t.fetchContentStatus(l)}),[t]);return nA({api:s,parentId:e,parentType:n,onComplete:r,onError:o})}function rA(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 _k(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 Ga=["link","upload"],oA={link:{labelKey:"editor.image.embed_link",fallback:"Embed link"},upload:{labelKey:"editor.image.upload",fallback:"Upload"}};function Bc(e){return e&&Ga.includes(e)?e:"upload"}function Cu(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 u=Ga.filter(f=>l.has(f)),d=u.filter(f=>f==="upload"?n.hasOnUpload:!0);return{showTabKeys:u,visibleInFilePicker:d}}function _c(e,n){return n.length?e&&n.includes(e)?e:n[0]:Ga[0]}const Fk=({children:e,inline:n=!1,nodeKey:t,popoverProps:r,defaultTabValue:o,onWriteTabToNode:s,...l})=>{const{imagePickerSettings:u,maxFileSize:d}=g.useContext(at),{maxUploadFiles:f}=u,h=n&&!!t,{showTabKeys:m,visibleInFilePicker:A}=g.useMemo(()=>Cu(u,{hasOnUpload:!!l.onUpload}),[u,l.onUpload]),y=g.useMemo(()=>_c(o,A),[o,A]);g.useLayoutEffect(()=>{if(!h||!s)return;const x=_c(o,A);x!==o&&s(x)},[h,o,s,A]);const b={type:"file",showTabs:m,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 a.jsx(Bt.FilePicker,{...b})};function Wk({src:e,editor:n,nodeKey:t,filePickerTab:r}){const{t:o}=He.useTranslation(),{disable:s,pageId:l,fileChunkUploadApi:u}=g.useContext(at),d=g.useRef(null),{startLoading:f,stopLoading:h}=Tk(),m=g.useCallback(W=>{n.update(()=>{const B=p.$getNodeByKey(t);if(!B)return;Lo(B)&&B.setSrc(W);const Z=B.getNextSibling();Z&&p.$setSelection(Z.selectNext())})},[n,t]),{uploadProgress:A,isUploading:y,isPaused:b,handleUpload:x,handlePause:w,handleResume:k,handleCancel:L}=Bk({parentId:l,parentType:"PAGE",fileChunkUploadApi:u,onComplete:(W,B)=>{h();const Z=`/v1/attachments/${W}/content`,Q=new URLSearchParams({contentType:B.type||"application/octet-stream",fileSize:String(B.size),originalFileName:B.name}),re=`${Z}?${Q.toString()}`;m(re)},onError:W=>{h(),W&&Bt.showErrorNotification({message:o("editor.gallery.errorFile")})}});g.useEffect(()=>{n.update(()=>{var Z,Q;const W=p.$getNodeByKey(t),B=((Q=(Z=d.current)==null?void 0:Z.firstChild)==null?void 0:Q.outerHTML)||"";W instanceof ns&&e&&W.setRef(B)})},[e,n,t]);const{fileSize:O,fileName:T,contentType:R}=g.useMemo(()=>{const W=new URL(window.location.href+e),B=W.searchParams.get("contentType"),Z=W.searchParams.get("fileSize"),Q=W.searchParams.get("originalFileName");return{contentType:B,fileName:Q||e,fileSize:Z}},[e]),E=g.useMemo(()=>Bt.getFileType(R||"application/octet-stream"),[R]),M=g.useMemo(()=>Bt.getFileIcons(E,!1,40),[E]),P=g.useMemo(()=>{var B,Z;const W=(Z=(B=T.split("/").pop())==null?void 0:B.split("?")[0])==null?void 0:Z.trim();return W&&W.length>0?W:"file"},[T]),I=g.useCallback(()=>{L(),h()},[L,h]),F=g.useCallback(W=>{W.length&&(f(),x(W[0]))},[x,f]);g.useEffect(()=>n.registerCommand($A,W=>e!=="upload"||y?!1:(F(W),!0),p.COMMAND_PRIORITY_LOW),[e,n,F,y]);const _=g.useCallback(W=>sA(n,t,W),[n,t]),N=W=>{W.stopPropagation(),W.preventDefault(),n.update(()=>{const B=p.$getNodeByKey(t);B&&B.remove()})},j=g.useCallback(W=>{W.stopPropagation(),W.preventDefault(),rA(e,P)},[e,P]);if(!e||e==="upload")return a.jsx(v.Box,{"data-editor-file-picker-drop-root":!0,w:"100%",children:y?a.jsx(Nk,{progress:A,onPause:w,onResume:k,onCancel:I,isPaused:b}):a.jsx(Fk,{inline:!0,nodeKey:t,defaultTabValue:r,onWriteTabToNode:_,uploading:!1,onUpload:F,popoverProps:{opened:!0,position:"bottom"},onChange:W=>{let B=!1;try{const Z=new URL(W);B=Z.protocol==="http:"||Z.protocol==="https:"}catch{B=!1}B&&m(W)}})});const U=_k(Number(O)||0,2);return a.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:a.jsxs(v.Flex,{className:"editor-file-attached__body",align:"stretch",gap:0,flex:1,miw:0,children:[a.jsx(v.Anchor,{className:"editor-file-attached__icon-link",href:e,target:"_blank",rel:"noopener noreferrer",underline:"never",children:a.jsx(v.Box,{className:"editor-file-attached__icon-slot",children:M})}),a.jsxs(v.Box,{className:"editor-file-attached__meta",children:[a.jsx(v.Anchor,{className:"editor-file-attached__meta-link",href:e,target:"_blank",rel:"noopener noreferrer",underline:"never",children:a.jsxs(v.Box,{className:"editor-file-attached__row",children:[a.jsx(v.Text,{component:"span",className:"editor-file-attached__name",size:"sm",fw:500,truncate:!0,c:"var(--mantine-color-bright)",children:T}),a.jsx(v.Box,{component:"span",className:"editor-file-attached__dot","aria-hidden":!0}),a.jsx(v.Text,{component:"span",className:"editor-file-attached__size",size:"xs",c:"var(--mantine-color-gray-text)",children:U})]})}),s?null:a.jsxs(v.Box,{className:"editor-file-attached__actions",children:[a.jsx(Cn,{label:o("editor.gallery.download"),icon:Wh,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.gallery.download"),onClick:j}),a.jsx(Cn,{label:o("editor.actions.delete"),icon:_n,iconColor:"var(--mantine-color-red-6)","aria-label":o("editor.actions.delete"),onClick:N})]})]})]})})}function zk({className:e,format:n,src:t,editor:r,nodeKey:o,create:s,filePickerTab:l}){const{disable:u}=g.useContext(at);return u&&(!t||t==="upload")?null:a.jsx(Wk,{className:e,format:n,src:t,editor:r,nodeKey:o,create:s,filePickerTab:l})}const Nm=new Map,fi="upload";function Uk(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:Jh(n||"",t,r,o,void 0,s||void 0)}}class ns extends qr.DecoratorBlockNode{constructor(t,r,o,s,l,u="left",d,f){super(r,l);we(this,"__src");we(this,"__create");we(this,"__width");we(this,"__height");we(this,"__alignment");we(this,"__filePickerTab");this.__src=t,this.__create=d||!1,this.__width=o||560,this.__height=s||315,this.__alignment=u||"left",this.__filePickerTab=f||fi}static getType(){return"file"}static clone(t){return new ns(t.__src,t.__format,t.__width,t.__height,t.__key,t.__alignment,t.__create,t.__filePickerTab)}static importJSON(t){const r=Jh(t.src,t.width,t.height,void 0,void 0,t.filePickerTab||fi);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:Uk,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=Nm.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 a.jsx(zk,{editor:t,nodeKey:this.getKey(),format:this.__format,className:s,src:this.__src,create:this.__create,filePickerTab:this.__filePickerTab})}setRef(t){Nm.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||fi}}function Jh(e,n,t,r,o,s){return new ns(e,void 0,n,t,void 0,r,o,s)}function Rm(e,n){let t;return e.getEditorState().read(()=>{const r=p.$getNodeByKey(n);Lo(r)&&(t=r.getFilePickerTab())}),t}function sA(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Lo(r)&&r.setFilePickerTab(t)})}function Lo(e){return e instanceof ns}function Kk({editor:e,headerKey:n,fileNodeKey:t,filePickerTab:r}){const{t:o}=He.useTranslation(),{disable:s,imagePickerSettings:l,fetchUploadMedia:u}=g.useContext(at),{visibleInFilePicker:d}=g.useMemo(()=>Cu(l,{hasOnUpload:!!u}),[u,l]),f=g.useMemo(()=>Ga.filter(b=>d.includes(b)).map(b=>{const x=oA[b];return{value:b,label:o(x.labelKey,x.fallback)}}),[o,d]),[h,m]=g.useState(()=>Bc(Rm(e,t)??r));g.useEffect(()=>e.registerUpdateListener(()=>{const b=Rm(e,t),x=Bc(b??r);m(w=>w===x?w:x)}),[e,t,r]);const A=g.useCallback(()=>{e.update(()=>{const b=p.$getNodeByKey(n),x=b==null?void 0:b.getParent();Wm(x)&&x.remove()})},[e,n]),y=g.useCallback(()=>{e.update(()=>{const b=p.$getNodeByKey(n);if(!b)return;const x=b.getParent();Wm(x)&&x.insertAfter(Lr(x))})},[e,n]);return s?null:a.jsxs(v.Flex,{className:"image-header",align:"center",justify:"space-between",w:"100%",children:[a.jsx(Ya,{data:f,value:h,onChange:b=>{if(!b)return;sA(e,t,b)},size:"sm",rightSectionWidth:32,w:140,classNames:{wrapper:"image-header__select-wrapper"},inputClassName:"image-header__select-input"}),a.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[a.jsx(fu,{label:o("editor.contextMenu.duplicate"),ariaLabel:"duplicate-file-block",onClick:y}),a.jsx(ls,{label:o("editor.actions.delete"),ariaLabel:"remove-file-block",onClick:A})]})]})}const Hk=g.lazy(()=>Promise.resolve().then(()=>require("./layers.D_jo1wBE.js"))),wc="upload",jm="95%";function Yk(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"),u=n.getAttribute("height")??"inherit",d=n.getAttribute("width")??"inherit",f=n.getAttribute("data-image-picker-tab"),h=r===window.location.href?"":r,m=n.style.justifyContent||"left";return{node:ja({altText:t,height:u!=null&&u.includes("%")?u:s,src:h,width:d!=null&&d.includes("%")?d:o,id:String(l),alignment:m,imagePickerTab:f||wc})}}class ur extends p.DecoratorNode{constructor(t,r,o,s,l,u,d,f,h,m,A,y,b){super(h);we(this,"__src");we(this,"__altText");we(this,"__width");we(this,"__height");we(this,"__maxWidth");we(this,"__showCaption");we(this,"__caption");we(this,"__captionsEnabled");we(this,"__id");we(this,"__create");we(this,"__alignment");we(this,"__imagePickerTab");this.__src=t,this.__altText=r,this.__maxWidth=Number(o),this.__width=s!==void 0&&s!==""?s||"inherit":jm,this.__height=l!==void 0&&l!==""?l||"inherit":jm,this.__showCaption=u||!1,this.__caption=d||p.createEditor(),this.__captionsEnabled=f||f===void 0,this.__id=m||"0",this.__create=A||!1,this.__alignment=y||"left",this.__imagePickerTab=b||wc}static getType(){return"image"}static clone(t){return new ur(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:u,src:d,showCaption:f,alignment:h,imagePickerTab:m}=t,A=ja({altText:r,height:o,maxWidth:l,showCaption:f,src:d,width:s,create:!1,alignment:h,imagePickerTab:m||wc}),y=A.__caption,b=y.parseEditorState(u.editorState);return b.isEmpty()||y.setEditorState(b),A}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:Yk,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||wc}createDOM(t){const r=document.createElement("span"),s=t.theme.image;return r.style.justifyContent=this.__alignment||"left",s!==void 0&&(r.className=s),ur.isPlaceholderSrc(this.__src)&&r.setAttribute("data-image-placeholder",""),r}updateDOM(t,r){const o=ur.isPlaceholderSrc(this.__src),s=ur.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 a.jsx(Hk,{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 ja({altText:e,height:n,maxWidth:t,captionsEnabled:r,src:o,width:s,showCaption:l,caption:u,key:d,id:f,create:h,alignment:m,imagePickerTab:A}){return p.$applyNodeReplacement(new ur(o,e,t,s,n,l,u,r,d,f,h,m,A))}function jr(e){return e instanceof ur}function Im(e,n){let t;return e.getEditorState().read(()=>{const r=p.$getNodeByKey(n);jr(r)&&(t=r.getImagePickerTab())}),t}function iA(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);jr(r)&&r.setImagePickerTab(t)})}const yi=["gallery","upload","link","unsplash","giphy"],Zk={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 Om(e){return e&&yi.includes(e)?e:yi[0]}function Gk(e,n){const{link:t,download:r,unsplashClientId:o,giphyToken:s}=e,l=t===void 0?!0:t,u=r===void 0?!0:r,d=new Set;d.add("gallery"),u&&d.add("upload"),l&&d.add("link"),d.add("unsplash"),d.add("giphy");const f=yi.filter(m=>d.has(m)),h=yi.filter(m=>{if(!f.includes(m))return!1;switch(m){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 Dm(e,n){return n.length?e&&n.includes(e)?e:n[0]:yi[0]}function Vk({editor:e,headerKey:n,imageNodeKey:t,imagePickerTab:r}){const{t:o}=He.useTranslation(),{disable:s}=g.useContext(at),[l,u]=g.useState(()=>Om(Im(e,t)??r));g.useEffect(()=>e.registerUpdateListener(()=>{const m=Im(e,t),A=Om(m??r);u(y=>y===A?y:A)}),[e,t,r]);const d=g.useMemo(()=>yi.map(m=>{const A=Zk[m];return{value:m,label:o(A.labelKey,A.fallback)}}),[o]),f=g.useCallback(()=>{e.update(()=>{const m=p.$getNodeByKey(n),A=m==null?void 0:m.getParent();Fm(A)&&A.remove()})},[e,n]),h=g.useCallback(()=>{e.update(()=>{const m=p.$getNodeByKey(n);if(!m)return;const A=m.getParent();Fm(A)&&A.insertAfter(Lr(A))})},[e,n]);return s?null:a.jsxs(v.Flex,{className:"image-header",align:"center",justify:"space-between",w:"100%",children:[a.jsx(Ya,{data:d,value:l,onChange:m=>{if(!m)return;iA(e,t,m)},size:"sm",rightSectionWidth:32,w:140,classNames:{wrapper:"image-header__select-wrapper"},inputClassName:"image-header__select-input"}),a.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[a.jsx(fu,{label:o("editor.contextMenu.duplicate"),ariaLabel:"duplicate-image-block",onClick:h}),a.jsx(ls,{label:o("editor.actions.delete"),ariaLabel:"remove-image-block",onClick:f})]})]})}function aA(){const e=g.useRef(null),n=g.useCallback(()=>{var r;return(r=e.current)==null||r.abort(),e.current=new AbortController,e.current.signal},[]),t=g.useCallback(()=>{var r;(r=e.current)==null||r.abort(),e.current=null},[]);return{start:n,cancel:t}}function lA({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){return console.log(e),e==null?a.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:a.jsx(v.Stack,{align:"center",children:a.jsx(Pc,{isPaused:o})})}):a.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:a.jsxs(v.Stack,{gap:"lg",align:"center",w:"100%",children:[a.jsx(Pc,{isPaused:o}),a.jsx(v.Box,{w:"100%",children:a.jsx(mu,{progress:e,showSpeed:!0,showRemaining:!0,isPaused:o})}),a.jsx(Za,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})})}const kc=p.createCommand("INSERT_MUSIC_COMMAND"),cA=p.createCommand("UPLOAD_MUSIC_COMMAND");function qk(e){const n=e.getSrc();return!n||!n.trim()}function Qk(e,n){g.useEffect(()=>{if(!n)return;const t=e.hasNodes([In,Qr]),r=e.registerNodeTransform(_s,s=>{if(!t)return;const l=s.getParent(),u=qk(s);if(u&&l&&!fr(l)){const d=s.getNextSibling(),f=Va(s);d?d.insertBefore(f):l.append(f);return}if(!u&&l&&fr(l)){const d=l;d.insertBefore(s),d.remove()}}),o=t?e.registerNodeTransform(In,s=>{const l=s.getChildren(),u=l.find(Gr);if(!u||l.some(Ri))return;const f=Io();u.insertBefore(f)}):()=>{};return ye.mergeRegister(r,o)},[e,n])}const Jk=({children:e,inline:n=!1,nodeKey:t,popoverProps:r,defaultTabValue:o,onWriteTabToNode:s,...l})=>{const{imagePickerSettings:u,maxFileSize:d}=g.useContext(at),{maxUploadFiles:f}=u,h=n&&!!t,{showTabKeys:m,visibleInFilePicker:A}=g.useMemo(()=>Cu(u,{hasOnUpload:!!l.onUpload}),[u,l.onUpload]),y=g.useMemo(()=>_c(o,A),[o,A]);g.useLayoutEffect(()=>{if(!h||!s)return;const x=_c(o,A);x!==o&&s(x)},[h,o,s,A]);const b={type:"audio",showTabs:m,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 a.jsx(Bt.FilePicker,{...b})};function Xk({children:e}){return Ir.createPortal(a.jsx("div",{className:"FlashMessage__overlay",role:"dialog",children:a.jsx("p",{className:"FlashMessage__alert",role:"alert",children:e})}),document.body)}const uA=g.createContext(void 0),sf={},$k=1e3,e7=({children:e})=>{const[n,t]=g.useState(sf),r=g.useCallback((o,s)=>t(o?{duration:s,message:o}:sf),[]);return g.useEffect(()=>{if(n.message){const o=setTimeout(()=>t(sf),n.duration??$k);return()=>clearTimeout(o)}},[n]),a.jsxs(uA.Provider,{value:r,children:[e,n.message&&a.jsx(Xk,{children:n.message})]})},t7=()=>{const e=g.useContext(uA);if(!e)throw new Error("Missing FlashMessageContext");return e};function Au(){return t7()}function n7(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 dA(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 Fr=(e,n,t)=>Math.min(t,Math.max(n,e)),oi=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")}`},Pm=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=Fr(t.start(r)/e.duration,0,1),s=Fr(t.end(r)/e.duration,0,1);n.push({start:o,end:s})}return n},r7=[.5,.7,1,1.2,1.5,1.7,2],o7=3,fA=3,s7=o7+fA;function af(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 i7(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),u=o-s;return Math.round((n[s]??af(s))*(1-u)+(n[l]??af(l))*u)}):Array.from({length:e},(t,r)=>af(r))}function Bm(e,n){const[t,r]=g.useState(!1),o=g.useRef(null),s=g.useRef(null),l=()=>{o.current&&clearTimeout(o.current),s.current&&clearTimeout(s.current)};g.useEffect(()=>()=>l(),[]);const u=g.useCallback(()=>{l(),o.current=setTimeout(()=>r(!0),e)},[e]),d=g.useCallback(()=>{l(),s.current=setTimeout(()=>r(!1),n)},[n]),f=g.useCallback(()=>{s.current&&clearTimeout(s.current)},[]);return{opened:t,setOpened:r,open:u,close:d,cancelClose:f}}function a7(e,n){return n||e===0?qC:e<=.5?ck:VC}const l7={dropdown:"music-player-bar-speed-dropdown"},c7={dropdown:"music-player-bar-ghost-dropdown"};function u7({src:e,duration:n,playbackRates:t=r7,initialVolume:r=1,waveformHeights:o,editor:s,nodeKey:l}){const{disable:u}=g.useContext(at),{t:d}=He.useTranslation(),f=Au(),h=g.useRef(null),m=g.useRef(null),A=g.useRef(null),[y,b]=g.useState(!1),[x,w]=g.useState(0),[k,L]=g.useState(()=>n??0),[O,T]=g.useState(()=>{const $=t.indexOf(1);return $>=0?$:0}),[R,E]=g.useState(r),[M,P]=g.useState(!1),[I,F]=g.useState(40),[_,N]=g.useState(!1),j=Bm(120,220),U=Bm(120,480);g.useEffect(()=>{const $=m.current;if(!$)return;const Ae=new ResizeObserver(([me])=>{const ke=me.contentRect.width;F(Math.max(4,Math.min(200,Math.floor((ke+fA)/s7))))});return Ae.observe($),()=>Ae.disconnect()},[]);const W=g.useMemo(()=>i7(I,o),[I,o]);g.useEffect(()=>{n!=null&&Number.isFinite(n)&&n>0&&L(n)},[n]);const{start:B,stop:Z}=Yn.useInterval(()=>{h.current&&w(h.current.currentTime)},200);g.useEffect(()=>(y?B():Z(),()=>Z()),[y,B,Z]),g.useEffect(()=>{const $=h.current;$&&(y?$.play().catch(()=>b(!1)):$.pause())},[y]),g.useEffect(()=>{h.current&&(h.current.playbackRate=t[O]??1)},[O,t]),g.useEffect(()=>{h.current&&(h.current.muted=M,h.current.volume=M?0:R)},[M,R]),g.useEffect(()=>()=>{A.current!==null&&clearTimeout(A.current)},[]);const Q=g.useCallback(()=>{var Ae;const $=(Ae=h.current)==null?void 0:Ae.duration;Number.isFinite($)&&($??0)>0&&L($??0)},[]),re=g.useCallback(()=>b(!1),[]),oe=g.useCallback(()=>b($=>!$),[]),Ce=g.useCallback(()=>P($=>!$),[]),Te=g.useCallback($=>{T($),j.setOpened(!1)},[j]),Me=g.useCallback($=>{if(!h.current||!k)return;const Ae=$.currentTarget.getBoundingClientRect(),me=Math.max(0,Math.min(($.clientX-Ae.left)/Ae.width,1))*k;h.current.currentTime=me,w(me)},[k]),Re=g.useCallback($=>{E($),$>0&&P(!1)},[]),ae=g.useMemo(()=>{var $,Ae,me,ke;try{const Pe=(Ae=($=((e.startsWith("http://")||e.startsWith("https://")?new URL(e):new URL(e,window.location.href)).searchParams.get("originalFileName")||e).split("/").pop())==null?void 0:$.split("?")[0])==null?void 0:Ae.trim();return Pe&&Pe.length>0?Pe:"file"}catch{const Fe=(ke=(me=e.split("/").pop())==null?void 0:me.split("?")[0])==null?void 0:ke.trim();return Fe&&Fe.length>0?Fe:"file"}},[e]),te=g.useCallback($=>{$.stopPropagation(),$.preventDefault();const Ae=n7(e);Ae&&navigator.clipboard.writeText(Ae).then(()=>{A.current!==null&&clearTimeout(A.current),N(!0),A.current=setTimeout(()=>{N(!1),A.current=null},1e3)},()=>f(d("editor.embed.linkCopyFailed")))},[f,e,d]),q=g.useCallback($=>{$.stopPropagation(),$.preventDefault(),rA(e,ae)},[e,ae]),ce=g.useCallback(()=>{!s||!l||s.update(()=>{const $=p.$getNodeByKey(l);if(!Gr($))return;const Ae=$.getParent();Yf(Ae)?Ae.remove():$.remove()})},[s,l]),ie=k>0?x/k:0,ne=Math.round(ie*I),H=t[O]??1,X=M?0:R,Y=Number.isFinite(k)&&k>0?Math.round(k):0,J=a7(R,M);return a.jsxs(a.Fragment,{children:[a.jsx("audio",{ref:h,src:e,title:"",onLoadedMetadata:Q,onTimeUpdate:()=>{var $;return w((($=h.current)==null?void 0:$.currentTime)??0)},onEnded:re,preload:"metadata",style:{position:"absolute",width:0,height:0,opacity:0,pointerEvents:"none"}}),a.jsxs("div",{"data-testid":"music-player-bar",className:"music-player-bar","data-popovers-open":j.opened||U.opened||void 0,"data-volume-open":U.opened||void 0,"data-hover-actions-reduced":u||void 0,children:[a.jsx(v.ActionIcon,{size:28,radius:8,onClick:oe,className:"music-player-bar__play-btn","aria-label":d(y?"editor.video.player.pause":"editor.video.player.play"),children:a.jsx(ue,{icon:y?BC:_C,size:16,color:"var(--mantine-color-white)"})}),a.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:[oi(x)," / ",oi(k)]}),a.jsx("div",{ref:m,className:"music-player-bar__waveform-clip",children:a.jsx("div",{"data-testid":"music-waveform",className:"music-player-bar__waveform",onClick:Me,role:"slider","aria-label":d("editor.audio.player.waveformSeek"),"aria-valuenow":Math.round(x),"aria-valuemin":0,"aria-valuemax":Y,children:W.map(($,Ae)=>a.jsx("div",{className:`music-player-bar__stem music-player-bar__stem--${Ae<ne?"active":"inactive"}`,style:{height:$}},Ae))})}),a.jsxs("div",{className:"music-player-bar__tail-rail",children:[a.jsxs("div",{className:"music-player-bar__tail",children:[a.jsxs(v.Popover,{opened:j.opened,position:"top-end",offset:6,withinPortal:!0,trapFocus:!1,returnFocus:!1,classNames:l7,children:[a.jsx(v.Popover.Target,{children:a.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:[H,"x"]})}),a.jsx(v.Popover.Dropdown,{children:a.jsxs(v.Stack,{gap:6,onMouseEnter:j.cancelClose,onMouseLeave:j.close,children:[a.jsx(v.Text,{className:"music-player-bar__speed-label",children:d("editor.audio.player.playbackSpeedLabel")}),a.jsx(v.Box,{role:"listbox","aria-label":d("editor.audio.player.playbackSpeedLabel"),style:{display:"flex",alignItems:"center",gap:2},children:t.map(($,Ae)=>{const me=Ae===O;return a.jsx(v.UnstyledButton,{role:"option","aria-selected":me,onClick:()=>Te(Ae),className:`music-player-bar__speed-chip${me?" music-player-bar__speed-chip--active":""}`,children:a.jsxs(v.Text,{fz:14,fw:me?600:400,c:me?"var(--mantine-primary-color-filled)":"var(--mantine-color-text)",children:[$,"x"]})},$)})})]})})]}),a.jsxs(v.Popover,{opened:U.opened,position:"right",offset:4,withinPortal:!0,trapFocus:!1,returnFocus:!1,classNames:c7,children:[a.jsx(v.Popover.Target,{children:a.jsx(v.ActionIcon,{variant:"subtle",color:"gray",size:28,"aria-label":d(M||R===0?"editor.video.player.unmute":"editor.video.player.mute"),onMouseEnter:U.open,onMouseLeave:U.close,onClick:Ce,children:a.jsx(ue,{icon:J,size:20,color:"var(--mantine-color-dimmed)"})})}),a.jsx(v.Popover.Dropdown,{children:a.jsx("div",{className:"music-player-bar__volume-dropdown",onMouseEnter:U.cancelClose,onMouseLeave:U.close,children:U.opened&&a.jsx(v.Slider,{min:0,max:1,step:.01,value:X,onChange:Re,label:null,w:57,size:2,"data-testid":"music-volume-slider",className:"music-player-bar__volume-slider","aria-label":d("editor.audio.player.volume")})})})]})]}),a.jsx("div",{className:"music-player-bar__tail-spacer","aria-hidden":!0})]}),s&&l&&a.jsxs("div",{className:"music-player-bar__hover-actions",onPointerDown:$=>$.stopPropagation(),children:[a.jsx(Cn,{label:d("editor.gallery.download"),icon:Wh,iconColor:"var(--mantine-color-gray-text)",onClick:q}),a.jsx(Cn,{label:d("editor.embed.copyLink"),icon:_?Or:Ta,iconColor:"var(--mantine-color-gray-text)",className:_?"header-menu__copy-icon header-menu__copy-icon--success":"header-menu__copy-icon",onClick:te}),!u&&a.jsx(ls,{label:d("editor.actions.delete"),ariaLabel:"remove-music-block",onClick:ce})]})]})]})}function d7({className:e,format:n,src:t,editor:r,nodeKey:o,filePickerTab:s,create:l}){const[u,d]=g.useState(!1),{start:f}=aA(),{fetchUploadMedia:h,disable:m}=g.useContext(at),A=g.useCallback(w=>hA(r,o,w),[r,o]),y=g.useCallback(w=>{r.update(()=>{const k=p.$getNodeByKey(o);if(!k)return;Gr(k)&&k.setSrc(w);const L=k.getNextSibling();L&&p.$setSelection(L.selectNext())})},[r,o]),b=g.useCallback(w=>{if(!w[0]||!h)return;d(!0);const k=f();h(w[0],(L,O,T)=>{const{originalFileName:R}=T,E=new URLSearchParams({originalFileName:R}),M=`${L}?${E.toString()}`;y(M),d(!1)},()=>{d(!1)},k)},[y,h,f]),x=u;return g.useEffect(()=>r.registerCommand(cA,w=>!w.length||x||t.trim()||!h?!1:(b(w),!0),p.COMMAND_PRIORITY_LOW),[r,h,b,x,t]),m&&!t.trim()?null:t.trim()?a.jsx(Vo.BlockWithAlignableContents,{className:e,format:n,nodeKey:o,children:a.jsx(v.Box,{w:"100%",children:a.jsx(u7,{src:t,editor:r,nodeKey:o})})}):a.jsx(Vo.BlockWithAlignableContents,{className:e,format:n,nodeKey:o,children:a.jsx(v.Box,{"data-editor-music-picker-drop-root":!0,w:"100%",style:{pointerEvents:x?"none":void 0},children:x?a.jsx(lA,{}):a.jsx(Jk,{inline:!0,nodeKey:o,defaultTabValue:s,onWriteTabToNode:A,uploading:u,onUpload:w=>{!w.length||!h||b(w)},popoverProps:{opened:!0,position:"bottom"},onChange:w=>{y(w)}})})})}function f7(e){const n=e.getAttribute("data-src"),t=e.getAttribute("data-file-picker-tab");return{node:Xh(n||"",void 0,t||void 0)}}class _s extends qr.DecoratorBlockNode{constructor(t,r,o,s,l){super(r,o);we(this,"__src");we(this,"__create");we(this,"__filePickerTab");this.__src=t,this.__create=s||!1,this.__filePickerTab=l||fi}static getType(){return"music"}static clone(t){return new _s(t.__src,t.__format,t.__key,t.__create,t.__filePickerTab)}static importJSON(t){const r=Xh(t.src,t.create,t.filePickerTab||fi);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:f7,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 a.jsx(d7,{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||fi}}function Xh(e,n,t){return new _s(e,void 0,void 0,n,t)}function Gr(e){return e instanceof _s}function _m(e,n){let t;return e.getEditorState().read(()=>{const r=p.$getNodeByKey(n);Gr(r)&&(t=r.getFilePickerTab())}),t}function hA(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Gr(r)&&r.setFilePickerTab(t)})}function h7({editor:e,headerKey:n,musicNodeKey:t,filePickerTab:r}){const{t:o}=He.useTranslation(),{disable:s,imagePickerSettings:l,fetchUploadMedia:u}=g.useContext(at),{visibleInFilePicker:d}=g.useMemo(()=>Cu(l,{hasOnUpload:!!u}),[u,l]),f=g.useMemo(()=>Ga.filter(b=>d.includes(b)).map(b=>{const x=oA[b];return{value:b,label:o(x.labelKey,x.fallback)}}),[o,d]),[h,m]=g.useState(()=>Bc(_m(e,t)??r));g.useEffect(()=>e.registerUpdateListener(()=>{const b=_m(e,t),x=Bc(b??r);m(w=>w===x?w:x)}),[e,t,r]);const A=g.useCallback(()=>{e.update(()=>{const b=p.$getNodeByKey(n),x=b==null?void 0:b.getParent();Yf(x)&&x.remove()})},[e,n]),y=g.useCallback(()=>{e.update(()=>{const b=p.$getNodeByKey(n);if(!b)return;const x=b.getParent();Yf(x)&&x.insertAfter(Lr(x))})},[e,n]);return s?null:a.jsxs(v.Flex,{className:"image-header",align:"center",justify:"space-between",w:"100%",children:[a.jsx(Ya,{data:f,value:h,onChange:b=>{if(!b)return;hA(e,t,b)},size:"sm",rightSectionWidth:32,w:140,classNames:{wrapper:"image-header__select-wrapper"},inputClassName:"image-header__select-input"}),a.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[a.jsx(fu,{label:o("editor.contextMenu.duplicate"),ariaLabel:"duplicate-music-block",onClick:y}),a.jsx(ls,{label:o("editor.actions.delete"),ariaLabel:"remove-music-block",onClick:A})]})]})}function p7(){return{node:Io()}}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 Io()}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:p7,priority:2}}}}createDOM(){const n=document.createElement("div");return ye.addClassNamesToElement(n,Tr.codeHeader,"overlay-header"),n}updateDOM(){return!1}decorate(n,t){const r=this.getNextSibling();return mn(r)?a.jsx(yk,{editor:n,headerKey:this.__key}):Ro(r)?a.jsx(Mk,{editor:n,headerKey:this.__key}):jr(r)?a.jsx(Vk,{editor:n,headerKey:this.__key,imageNodeKey:r.getKey(),imagePickerTab:r.getImagePickerTab()}):Lo(r)?a.jsx(Kk,{editor:n,headerKey:this.__key,fileNodeKey:r.getKey(),filePickerTab:r.getFilePickerTab()}):Gr(r)?a.jsx(h7,{editor:n,headerKey:this.__key,musicNodeKey:r.getKey(),filePickerTab:r.getFilePickerTab()}):a.jsx(a.Fragment,{})}}function Io(){return new Qr}function Ri(e){return e instanceof Qr}function g7(){return{node:bu()}}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||Tr.codeWrapper;return ye.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=Tr.codeWrapper;ye.addClassNamesToElement(t,r),t.setAttribute("dir","auto"),t.setAttribute("data-lexical-overlay-wrapper","true");const o=this.getChildren().find(mn);if(o){const l=di[o.getLanguage()||"plain"]||o.getLanguage();t.setAttribute("data-name-language",String(l))}const s=this.getChildren().find(Ro);if(s){const l=s.getEquation();let u="";try{u=btoa(unescape(encodeURIComponent(l)))}catch{u=""}t.setAttribute("data-lexical-equation-wrapper","true"),t.setAttribute("data-lexical-equation",u)}return{element:t}}static importDOM(){const n=Tr.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"),u=o.hasAttribute("data-name-language");return!s&&!l&&!u?null:{conversion:g7,priority:2}}}}static importJSON(n){return bu()}exportJSON(){return{...super.exportJSON(),type:"overlay-wrapper",version:1}}}function bu(){return new In}function fr(e){return e instanceof In}function rs(e){return fr(e)?e.getChildren().some(mn):!1}function yu(e){return fr(e)?e.getChildren().some(Ro):!1}function Ia(e){return()=>{const n=bu(),t=Io(),r=e();return n.append(t,r),n}}function Va(e){const n=bu(),t=Io();return n.append(t,e),n}function Fm(e){return fr(e)?e.getChildren().some(jr):!1}function Wm(e){return fr(e)?e.getChildren().some(Lo):!1}function Yf(e){return fr(e)?e.getChildren().some(Gr):!1}function m7(e){g.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||!fr(s))return;const l=s.getChildren(),u=l.some(mn),d=l.some(Ro),f=l.some(jr),h=l.some(Lo),m=l.some(Gr);if(!(u||d||f||h||m)){for(const A of l)Ri(A)?A.remove():s.insertBefore(A);s.remove()}},{tag:p.HISTORY_MERGE_TAG})})});return ye.mergeRegister(n)},[e])}function C7(){const[e]=tt.useLexicalComposerContext();return m7(e),null}function et(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 Fc(...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 Zf(e){let n=1,t=e.getParent();for(;t!=null;){if(Rt(t)){const r=t.getParent();if(pt(r)){n++,t=r.getParent();continue}et(!1,"A ListItemNode must have a ListNode for a parent.")}return n}return n}function Gf(e){let n=e.getParent();pt(n)||et(!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 pA(e){let n=[];const t=e.getChildren().filter(Rt);for(let r=0;r<t.length;r++){const o=t[r],s=o.getFirstChild();pt(s)?n=n.concat(pA(s)):n.push(o)}return n}function oo(e){return Rt(e)&&pt(e.getFirstChild())}function A7(e){let n=e;for(;n.getNextSibling()==null&&n.getPreviousSibling()==null;){const t=n.getParent();if(t==null||!(Rt(n)||pt(n)))break;n=t}n.remove()}function zm(e){return Wn().append(e)}let gA=!1;function si(e){gA=e}function mA(e,n){return Rt(e)&&(n.length===0||n.length===1&&e.is(n[0])&&e.getChildrenSize()===0)}function Vf(e,n){e.update(()=>{const t=p.$getSelection();if(t!==null){const r=t.getNodes();if(p.$isRangeSelection(t)){const s=t.getStartEndPoints();et(s!==null,"insertList: anchor should be defined");const[l]=s,u=l.getNode(),d=u.getParent();if(mA(u,r)){const f=un(n);if(p.$isRootOrShadowRoot(d)){u.replace(f);const h=Wn();p.$isElementNode(u)&&(h.setFormat(u.getFormatType()),h.setIndent(u.getIndent())),f.append(h)}else if(Rt(u)){const h=u.getParentOrThrow();js(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()&&!Rt(l)&&!o.has(l.getKey())){Um(l,n);continue}if(p.$isLeafNode(l)){let u=l.getParent();for(;u!=null;){const d=u.getKey();if(pt(u)){if(!o.has(d)){const f=un(n);js(f,u.getChildren()),u.replace(f),o.add(d)}break}else{const f=u.getParent();if(p.$isRootOrShadowRoot(f)&&!o.has(d)){o.add(d),Um(u,n);break}u=f}}}}}})}function js(e,n){e.splice(e.getChildrenSize(),0,n)}function b7(e,n){const t=e.getChildren().find(l=>mn(l));if(!t){const l=un(n),u=Wn();return u.append(p.$createParagraphNode()),l.append(u),e.replace(l),l}const o=t.getTextContent().split(/\r?\n/),s=un(n);for(const l of o){const u=Wn(),d=p.$createParagraphNode();d.append(p.$createTextNode(l)),u.append(d),s.append(u)}return e.replace(s),s}function Um(e,n){if(pt(e))return e;if(rs(e))return b7(e,n);const t=e.getPreviousSibling(),r=e.getNextSibling(),o=Wn();if(o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),js(o,e.getChildren()),pt(t)&&n===t.getListType())return t.append(o),e.remove(),pt(r)&&n===r.getListType()&&(js(t,r.getChildren()),r.remove()),t;if(pt(r)&&n===r.getListType())return r.getFirstChildOrThrow().insertBefore(o),e.remove(),r;{const s=un(n);return s.append(o),e.replace(s),s}}function $h(e,n){const t=e.getLastChild(),r=n.getFirstChild();t&&r&&oo(t)&&oo(r)&&($h(t.getFirstChild(),r.getFirstChild()),r.remove());const o=n.getChildren();o.length>0&&e.append(...o),n.remove()}function y7(e){e.update(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)){const t=new Set,r=n.getNodes(),o=n.anchor.getNode();if(mA(o,r))t.add(Gf(o));else for(let s=0;s<r.length;s++){const l=r[s];if(p.$isLeafNode(l)){const u=ye.$getNearestNodeOfType(l,On);u!=null&&t.add(Gf(u))}}for(const s of t){let l=s;const u=pA(s);for(const d of u){const f=p.$createParagraphNode();js(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 x7(e){const n=e.getListType()!=="check";let t=e.getStart();for(const r of e.getChildren())Rt(r)&&(r.getValue()!==t&&r.setValue(t),n&&r.getLatest().__checked!=null&&r.setChecked(void 0),pt(r.getFirstChild())||t++)}function v7(e){if(gA)return;const n=e.getNextSibling();pt(n)&&e.getListType()===n.getListType()&&$h(e,n)}function w7(e){const n=new Set;if(oo(e)||n.has(e.getKey()))return;const t=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(oo(r)&&oo(o)){const s=o.getFirstChild();if(pt(s)){s.append(e);const l=r.getFirstChild();if(pt(l)){const u=l.getChildren();js(s,u),r.remove(),n.add(r.getKey())}}}else if(oo(r)){const s=r.getFirstChild();if(pt(s)){const l=s.getFirstChild();l!==null&&l.insertBefore(e)}}else if(oo(o)){const s=o.getFirstChild();pt(s)&&s.append(e)}else if(pt(t)){const s=Wn(),l=un(t.getListType());s.append(l),l.append(e),o?o.insertAfter(s):r?r.insertBefore(s):t.append(s)}}function k7(e){if(oo(e))return;const n=e.getParent(),t=n?n.getParent():void 0,r=t?t.getParent():void 0;if(pt(r)&&Rt(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(),u=Wn(),d=un(l);u.append(d),e.getPreviousSiblings().forEach(m=>d.append(m));const f=Wn(),h=un(l);f.append(h),js(h,e.getNextSiblings()),t.insertBefore(u),t.insertAfter(f),t.replace(e)}}}function S7(){const e=p.$getSelection();if(!p.$isRangeSelection(e)||!e.isCollapsed())return!1;const n=e.anchor.getNode();if(!Rt(n)||n.getChildrenSize()!==0)return!1;const t=Gf(n),r=n.getParent();et(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(Rt(o))s=Wn(),o.insertAfter(s);else return!1;s.select();const l=n.getNextSiblings();if(l.length>0){const u=un(r.getListType());if(p.$isParagraphNode(s))s.insertAfter(u);else{const d=Wn();d.append(u),s.insertAfter(d)}l.forEach(d=>{d.remove(),u.append(d)})}return A7(n),!0}class On extends p.ElementNode{constructor(t,r,o,s,l){super(l);we(this,"__value");we(this,"__checked");we(this,"__opened");we(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 On(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"&&Hm(r,this,null),r.value=this.__value,Km(r,t.theme,this),r}updateDOM(t,r,o){const s=this.getParent();return pt(s)&&s.getListType()==="check"&&Hm(r,this,t),r.value=this.__value,Km(r,o.theme,this),!1}static transform(){return t=>{if(et(Rt(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:E7,priority:0})}}static importJSON(t){const r=Wn(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(Rt(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=un(o.getListType());let l=this.getNextSibling();for(;l;){const u=l;l=l.getNextSibling(),s.append(u)}o.insertAfter(t),t.insertAfter(s)}return r&&(et(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)||et(!1,"insertAfter: list node is not parent of list item node"),Rt(t))return super.insertAfter(t,r);const s=this.getNextSiblings();if(o.insertAfter(t,r),s.length!==0){const l=un(o.getListType());s.forEach(u=>l.append(u)),t.insertAfter(l,r)}return t}remove(t){const r=this.getPreviousSibling(),o=this.getNextSibling();super.remove(t),r&&o&&oo(r)&&oo(o)&&($h(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(t,r=!0){const o=Wn(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(),u=Rt(l);if(s.getChildrenSize()===1)if(u)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(;Rt(r);)r=r.getParentOrThrow().getParentOrThrow(),o++;return o}setIndent(t){et(typeof t=="number","Invalid indent value."),t=Math.floor(t),et(t>=0,"Indent value must be non-negative.");let r=this.getIndent();for(;r!==t;)r<t?(w7(this),r++):(k7(this),r--);return this}canInsertAfter(t){return Rt(t)}canReplaceWith(t){return Rt(t)}canMergeWith(t){return p.$isParagraphNode(t)||Rt(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 un("bullet")}canMergeWhenEmpty(){return!0}}function Km(e,n,t){let r=[],o=[];const s=n.list,l=s?s.listitem:void 0;let u;if(s&&s.nested&&(u=s.nested.listitem),l!==void 0&&r.push(...Fc(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(u!==void 0){const d=Fc(u);t.getChildren().some(f=>pt(f))?r.push(...d):o.push(...d)}t.__isIndeterminate?r=[...r,Tr.listitemIndeterminate]:o=[...o,Tr.listitemIndeterminate],o.length>0&&ye.removeClassNamesFromElement(e,...o),r.length>0&&ye.addClassNamesToElement(e,...r)}function Hm(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 E7(e){if(e.classList.contains("task-list-item")){for(const u of e.children)if(u.tagName==="INPUT")return M7(u)}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(Tr.listitemIndeterminate);return{node:Wn(o,s,l)}}function M7(e){if(!(e.getAttribute("type")==="checkbox"))return{node:null};const t=e.hasAttribute("checked");return{node:Wn(t,!1,!0)}}function Wn(e,n,t){return p.$applyNodeReplacement(new On(void 0,e,n,t))}function Rt(e){return e instanceof On}class hr extends p.ElementNode{constructor(t,r,o){super(o);we(this,"__tag");we(this,"__start");we(this,"__listType");const s=Gm[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||Gm[t.__tag];return new hr(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,Ym(s,t.theme,this),s}updateDOM(t,r,o){return t.__tag!==this.__tag?!0:(Ym(r,o.theme,this),!1)}static transform(){return t=>{et(pt(t),"node is not a ListNode"),v7(t),x7(t)}}static importDOM(){return{ol:()=>({conversion:Zm,priority:0}),ul:()=>({conversion:Zm,priority:0})}}static importJSON(t){const r=un(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&&ye.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(Rt(o))super.append(o);else{const s=Wn();if(pt(o))s.append(o);else if(p.$isElementNode(o)){const l=ts(o.getTextContent());s.append(l)}else s.append(o);super.append(s)}}return this}extractWithChild(t){return Rt(t)}}function Ym(e,n,t){const r=[],o=[],s=n.list;if(s!==void 0){const l=s[`${t.__tag}Depth`]||[],u=Zf(t)-1,d=u%l.length,f=l[d],h=s[t.__tag];let m;const A=s.nested,y=s.checklist;if(A!==void 0&&A.list&&(m=A.list),h!==void 0&&r.push(h),y!==void 0&&t.__listType==="check"&&r.push(y),f!==void 0){r.push(...Fc(f));for(let b=0;b<l.length;b++)b!==d&&o.push(t.__tag+b)}if(m!==void 0){const b=Fc(m);u>1?r.push(...b):o.push(...b)}}o.length>0&&ye.removeClassNamesFromElement(e,...o),r.length>0&&ye.addClassNamesToElement(e,...r)}function T7(e){const n=[];for(let t=0;t<e.length;t++){const r=e[t];if(Rt(r)){n.push(r);const o=r.getChildren();o.length>1&&o.forEach(s=>{pt(s)&&n.push(zm(s))})}else n.push(zm(r))}return n}function L7(e){if(e.getAttribute("__lexicallisttype")==="check"||e.classList.contains("contains-task-list"))return!0;for(const n of e.childNodes)if(ye.isHTMLElement(n)&&n.hasAttribute("aria-checked"))return!0;return!1}function Zm(e){const n=e.nodeName.toLowerCase();let t=null;if(n==="ol"){const r=e.start;t=un("number",r)}else n==="ul"&&(L7(e)?t=un("check"):t=un("bullet"));return{after:T7,node:t}}const Gm={ol:"number",ul:"bullet"};function un(e,n=1){return p.$applyNodeReplacement(new hr(e,n))}function pt(e){return e instanceof hr}const e1=p.createCommand("INSERT_UNORDERED_LIST_COMMAND"),xu=p.createCommand("INSERT_ORDERED_LIST_COMMAND"),t1=p.createCommand("INSERT_CHECK_LIST_COMMAND"),N7=p.createCommand("REMOVE_LIST_COMMAND");function R7(e){return ye.mergeRegister(e.registerCommand(xu,()=>(Vf(e,"number"),!0),p.COMMAND_PRIORITY_LOW),e.registerCommand(e1,()=>(Vf(e,"bullet"),!0),p.COMMAND_PRIORITY_LOW),e.registerCommand(N7,()=>(y7(e),!0),p.COMMAND_PRIORITY_LOW),e.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>!!S7(),p.COMMAND_PRIORITY_LOW))}const Wc=/^(\d+(?:\.\d+)?)px$/,wt={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class Kr extends p.ElementNode{constructor(t=wt.NO_STATUS,r=1,o,s){super(s);we(this,"__colSpan");we(this,"__rowSpan");we(this,"__headerState");we(this,"__width");we(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 Kr(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:Vm,priority:0}),th:t=>({conversion:Vm,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),ye.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=wt.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!==wt.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 Vm(e){const n=e,t=e.nodeName.toLowerCase();let r;(Wc.test(n.style.minWidth)||Wc.test(n.style.maxWidth))&&(r=parseFloat(n.style.minWidth));const o=Hr(t==="th"?wt.ROW:wt.NO_STATUS,n.colSpan,r);o.__rowSpan=n.rowSpan;const s=n.style.backgroundColor;s!==""&&(o.__backgroundColor=s);const l=n.style,u=(l&&l.textDecoration||"").split(" "),d=l.fontWeight==="700"||l.fontWeight==="bold",f=u.includes("line-through"),h=l.fontStyle==="italic",m=u.includes("underline");return{after:A=>(A.length===0&&A.push(p.$createParagraphNode()),A),forChild:(A,y)=>{if(Ie(y)&&!p.$isElementNode(A)){const b=p.$createParagraphNode();return p.$isLineBreakNode(A)&&A.getTextContent()===`
3
+ `?null:(Fn(A)&&(d&&A.toggleFormat("bold"),f&&A.toggleFormat("strikethrough"),h&&A.toggleFormat("italic"),m&&A.toggleFormat("underline")),b.append(A),b)}return A},node:o}}function Hr(e,n=1,t){return p.$applyNodeReplacement(new Kr(e,n,t))}function Ie(e){return e instanceof Kr}const vu=p.createCommand("INSERT_TABLE_COMMAND");function CA(e,n){if(n.add(e.getKey()),p.$isElementNode(e))for(const t of e.getChildren())CA(t,n)}function wu(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 ku=[".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"],qf=[...ku,"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)"],j7=[...ku,"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"],I7=[...ku,"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"],O7=[...ku,"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"],D7=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&&CA(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=>{us(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})})},P7=(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 m,A,y,b;const u=p.$getNearestNodeFromDOMNode(s);if(!u)return;const d=r?(m=u.getPreviousSibling)==null?void 0:m.call(u):(A=u.getNextSibling)==null?void 0:A.call(u);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(u=>us(u)),!0):!1},B7=(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=>us(s)),!0):!1},_7=(e,n,t)=>{const{hasSelectedBlock:r}=qo(),o=(t==null?void 0:t.getSelectedTargets())||[];return!r||!o.length?!1:n.key==="Backspace"||n.key==="Delete"?(o.forEach(u=>us(u)),t==null||t.setSelectedTargets([]),!1):n.code==="Enter"&&B7(e,n,o)?(t==null||t.setSelectedTargets([]),!0):P7(e,n,o)?(t==null||t.setSelectedTargets([]),!0):!1},F7={container:document.body,getScrollPosition:()=>[document.documentElement.scrollLeft,document.documentElement.scrollTop],throttleTime:30,threshold:0},qm=(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 u;(u=p.$getRoot().getFirstChild())==null||u.selectStart()}),o instanceof KeyboardEvent&&n==="selected-all-document"&&o.key==="Escape"&&t.blur()}),setTimeout(()=>{document.body.removeEventListener("mousedown",r),document.removeEventListener("keydown",r)}))},n1=(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 u=qm(o,l,e);document.body.addEventListener("mousedown",u),document.addEventListener("keydown",u)}}else{const o="selected-all-document",s=qm(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")}},us=e=>{e.classList.remove("selected-block"),e.classList.add("selected-block-hidden")},Zl=e=>{e.querySelectorAll(".selected-block").forEach(t=>{us(t)})},W7=(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 m=e.beforeSelected[0],A=e.beforeSelected[1],y=m.getBoundingClientRect().top;A.getBoundingClientRect().top<y?l=AA(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 m=f.tagName.toUpperCase();if(m==="UL"||m==="OL")h||(h=m.toLowerCase()),d++;else if(m!=="LI")break;f=f.parentElement}if(d!==0&&t.depth!==d){if(!h)return;r({depth:d,targets:z7(d,h)}),setTimeout(()=>{o==null||o.findSelectableTargets(),o==null||o.setSelectedTargets(e.selected)})}}else!t.depth&&e.added.length&&(r({depth:999,targets:j7}),setTimeout(()=>{o==null||o.findSelectableTargets(),o==null||o.setSelectedTargets(e.selected)}));e.added.forEach(l=>{n1(n,{block:l,isCreateEventListener:!1})}),e.removed.forEach(l=>{us(l)})},qo=()=>{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}},Qm=(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(),u=`ul.dsd__theme__ul${o?` ${o}`:""}:not(.dsd__theme__nestedListItem ${s}) >`;let d=`${u} li:not(.dsd__theme__nestedListItem)`;return t?`${u} li.dsd__theme__nestedListItem`:d}};function z7(e,n){if(e<1)throw new Error("Depth must be >= 1");const t=[];if(t.push(Qm(n,e,!1)),t.push(Qm(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[...I7,...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[...O7,...t]}return[...qf,...t]}function AA(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")?AA(t)??t:t}function xo(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}class ji extends p.ElementNode{constructor(t,r){super(r);we(this,"__height");this.__height=t}static getType(){return"tablerow"}static clone(t){return new ji(t.__height,t.__key)}static importDOM(){return{tr:t=>({conversion:U7,priority:0})}}static importJSON(t){return Oa(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`),ye.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 U7(e){const n=e;let t;return Wc.test(n.style.height)&&(t=parseFloat(n.style.height)),{node:Oa(t)}}function Oa(e){return p.$applyNodeReplacement(new ji(e))}function Ot(e){return e instanceof ji}function K7(e,n,t=!0){const r=a1();for(let o=0;o<e;o++){const s=Oa();for(let l=0;l<n;l++){let u=wt.NO_STATUS;typeof t=="object"?(o===0&&t.rows&&(u|=wt.ROW),l===0&&t.columns&&(u|=wt.COLUMN)):t&&(o===0&&(u|=wt.ROW),l===0&&(u|=wt.COLUMN));const d=Hr(u),f=p.$createParagraphNode();f.append(ts()),d.append(f),s.append(d)}r.append(s)}return r}function bA(e){const n=ye.$findMatchingParent(e,t=>Ot(t));if(Ot(n))return n;throw new Error("Expected table cell to be inside of table row.")}function Hn(e){const n=ye.$findMatchingParent(e,t=>xt(t));if(xt(n))return n;throw new Error("Expected table cell to be inside of table.")}function Zo(e){const n=bA(e);return Hn(n).getChildren().findIndex(r=>r.is(n))}function Go(e){return bA(e).getChildren().findIndex(t=>t.is(e))}const H7=(e,n)=>e===wt.BOTH||e===n?n:wt.NO_STATUS;function Da(e=!0){const n=p.$getSelection();et(p.$isRangeSelection(n)||yt(n),"Expected a RangeSelection or TableSelection");const t=n.focus.getNode(),[r,,o]=Rn(t),[s,l]=Nr(o,r,r),u=s[0].length,{startRow:d}=l;let f=null;if(e){const h=d+r.__rowSpan-1,m=s[h],A=Oa();for(let b=0;b<u;b++){const{cell:x,startRow:w}=m[b];if(w+x.__rowSpan-1<=h){const L=m[b].cell.__headerState;A.append(Hr(L).append(p.$createParagraphNode()))}else x.setRowSpan(x.__rowSpan+1)}const y=o.getChildAtIndex(h);et(Ot(y),"focusEndRow is not a TableRowNode"),y.insertAfter(A),f=A}else{const h=s[d],m=Oa();for(let y=0;y<u;y++){const{cell:b,startRow:x}=h[y];if(x===d){const k=h[y].cell.__headerState;m.append(Hr(k).append(p.$createParagraphNode()))}else b.setRowSpan(b.__rowSpan+1)}const A=o.getChildAtIndex(d);et(Ot(A),"focusEndRow is not a TableRowNode"),A.insertBefore(m),f=m}return f}function zc(e=!0){const n=p.$getSelection();et(p.$isRangeSelection(n)||yt(n),"Expected a RangeSelection or TableSelection");const t=n.anchor.getNode(),r=n.focus.getNode(),[o]=Rn(t),[s,,l]=Rn(r),[u,d,f]=Nr(l,s,o),h=u.length,m=e?Math.max(d.startColumn,f.startColumn):Math.min(d.startColumn,f.startColumn),A=e?m+s.__colSpan-1:m-1,y=l.getFirstChild();et(Ot(y),"Expected firstTable child to be a row");let b=null;function x(L=wt.NO_STATUS){const O=Hr(L).append(p.$createParagraphNode());return b===null&&(b=O),O}let w=y;e:for(let L=0;L<h;L++){if(L!==0){const I=w.getNextSibling();et(Ot(I),"Expected row nextSibling to be a row"),w=I}const O=u[L],T=O[A<0?0:A].cell.__headerState,R=H7(T,wt.ROW);if(A<0){r1(w,x(R));continue}const{cell:E,startColumn:M,startRow:P}=O[A];if(M+E.__colSpan-1<=A){let I=E,F=P,_=A;for(;F!==L&&I.__rowSpan>1;)if(_-=E.__colSpan,_>=0){const{cell:j,startRow:U}=O[_];I=j,F=U}else{w.append(x(R));continue e}const N=L?0:R;I.insertAfter(x(N))}else E.setColSpan(E.__colSpan+1)}b!==null&&Pa(b);const k=l.getColWidths();if(k){const L=[...k],O=A<0?0:A,T=L[O];L.splice(O,0,T),l.setColWidths(L)}return b}function yA(){const e=p.$getSelection();et(p.$isRangeSelection(e)||yt(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]=Rn(n),[s]=Rn(t),[l,u,d]=Nr(o,r,s),{startRow:f}=u,{startRow:h}=d,m=h+s.__rowSpan-1;if(l.length===m-f+1){o.remove();return}const A=l[0].length,y=l[m+1],b=o.getChildAtIndex(m+1);for(let x=m;x>=f;x--){for(let k=A-1;k>=0;k--){const{cell:L,startRow:O,startColumn:T}=l[x][k];if(T===k&&(x===f&&O<f&&L.setRowSpan(L.__rowSpan-(O-f)),O>=f&&O+L.__rowSpan-1>m))if(L.setRowSpan(L.__rowSpan-(m-O+1)),et(b!==null,"Expected nextRowNode not to be null"),k===0)r1(b,L);else{const{cell:R}=y[k-1];R.insertAfter(L)}}const w=o.getChildAtIndex(x);et(Ot(w),"Expected TableNode childAtIndex(%s) to be RowNode",String(x)),w.remove()}if(y!==void 0){const{cell:x}=y[0];Pa(x)}else{const x=l[f-1],{cell:w}=x[0];Pa(w)}}function xA(){const e=p.$getSelection();et(p.$isRangeSelection(e)||yt(e),"Expected a RangeSelection or TableSelection");const n=e.anchor.getNode(),t=e.focus.getNode(),[r,,o]=Rn(n),[s]=Rn(t),[l,u,d]=Nr(o,r,s),{startColumn:f}=u,{startRow:h,startColumn:m}=d,A=Math.min(f,m),y=Math.max(f+r.__colSpan-1,m+s.__colSpan-1),b=y-A+1;if(l[0].length===y-A+1){o.selectPrevious(),o.remove();return}const w=l.length;for(let T=0;T<w;T++)for(let R=A;R<=y;R++){const{cell:E,startColumn:M}=l[T][R];if(M<A){if(R===A){const P=A-M;E.setColSpan(E.__colSpan-Math.min(b,E.__colSpan-P))}}else if(M+E.__colSpan-1>y){if(R===y){const P=y-M+1;E.setColSpan(E.__colSpan-P)}}else E.remove()}const k=l[h],L=f>m?k[f+r.__colSpan]:k[m+s.__colSpan];if(L!==void 0){const{cell:T}=L;Pa(T)}else{const T=m<f?k[m-1]:k[f-1],{cell:R}=T;Pa(R)}const O=o.getColWidths();if(O){const T=[...O];T.splice(A,b),o.setColWidths(T)}}function Pa(e){const n=e.getFirstDescendant();n==null?e.selectStart():n.getParentOrThrow().selectStart()}function r1(e,n){const t=e.getFirstChild();t!==null?t.insertBefore(n):e.append(n)}function Jm(){const e=p.$getSelection();et(p.$isRangeSelection(e)||yt(e),"Expected a RangeSelection or TableSelection");const n=e.anchor.getNode(),[t,r,o]=Rn(n),s=t.__colSpan,l=t.__rowSpan;if(s===1&&l===1)return;const[u,d]=Nr(o,t,t),{startColumn:f,startRow:h}=d,m=t.__headerState&wt.COLUMN,A=Array.from({length:s},(x,w)=>{let k=m;for(let L=0;k!==0&&L<u.length;L++)k&=u[L][w+f].cell.__headerState;return k}),y=t.__headerState&wt.ROW,b=Array.from({length:l},(x,w)=>{let k=y;for(let L=0;k!==0&&L<u[0].length;L++)k&=u[w+h][L].cell.__headerState;return k});if(s>1){for(let x=1;x<s;x++)t.insertAfter(Hr(A[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,L=u[k];x=(x||r).getNextSibling(),et(Ot(x),"Expected row next sibling to be a row");let O=null;for(let T=0;T<f;T++){const R=L[T],E=R.cell;R.startRow===k&&(O=E),E.__colSpan>1&&(T+=E.__colSpan-1)}if(O===null)for(let T=s-1;T>=0;T--)r1(x,Hr(A[T]|b[w]).append(p.$createParagraphNode()));else for(let T=s-1;T>=0;T--)O.insertAfter(Hr(A[T]|b[w]).append(p.$createParagraphNode()))}t.setRowSpan(1)}}function Nr(e,n,t){const[r,o,s]=vA(e,n,t);return et(o!==null,"Anchor not found in Table"),et(s!==null,"Focus not found in Table"),[r,o,s]}function vA(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 u=e.getChildren();for(let d=0;d<u.length;d++){const f=u[d];et(Ot(f),"Expected TableNode children to be TableRowNode");for(let h=f.getFirstChild(),m=0;h!=null;h=h.getNextSibling()){et(Ie(h),"Expected TableRowNode children to be TableCellNode");const A=l(d);for(;A[m]!==void 0;)m++;const y={cell:h,startColumn:m,startRow:d},{__rowSpan:b,__colSpan:x}=h;for(let w=0;w<b&&!(d+w>=u.length);w++){const k=l(d+w);for(let L=0;L<x;L++)k[m+L]=y}n!==null&&o===null&&n.is(h)&&(o=y),t!==null&&s===null&&t.is(h)&&(s=y)}}return[r,o,s]}function Rn(e){let n;if(e instanceof Kr)n=e;else if("__type"in e){const o=ye.$findMatchingParent(e,Ie);et(Ie(o),"Expected to find a parent TableCellNode"),n=o}else{const o=ye.$findMatchingParent(e.getNode(),Ie);et(Ie(o),"Expected to find a parent TableCellNode"),n=o}const t=n.getParent();et(Ot(t),"Expected TableCellNode to have a parent TableRowNode");const r=t.getParent();return et(xt(r),"Expected TableRowNode to have a parent TableNode"),[n,t,r]}function Xm(e){const[n,,t]=Rn(e),r=t.getChildren(),o=r.length,s=r[0].getChildren().length,l=new Array(o);for(let u=0;u<o;u++)l[u]=new Array(s);for(let u=0;u<o;u++){const f=r[u].getChildren();let h=0;for(let m=0;m<f.length;m++){for(;l[u][h];)h++;const A=f[m],y=A.__rowSpan||1,b=A.__colSpan||1;for(let x=0;x<y;x++)for(let w=0;w<b;w++)l[u+x][h+w]=A;if(n===A)return{colSpan:b,columnIndex:h,rowIndex:u,rowSpan:y};h+=b}}return null}class Su{constructor(n,t,r){we(this,"tableKey");we(this,"anchor");we(this,"focus");we(this,"_cachedNodes");we(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 yt(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 Su(this.tableKey,this.anchor,this.focus)}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(n){}insertText(){}hasFormat(n){let t=0;this.getNodes().filter(Ie).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();et(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);et(Ie(n),"Expected TableSelection anchor to be (or a child of) TableCellNode");const t=Xm(n);et(t!==null,"getCellRect: expected to find AnchorNode");const r=p.$getNodeByKey(this.focus.key);et(Ie(r),"Expected TableSelection focus to be (or a child of) TableCellNode");const o=Xm(r);et(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),u=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(u,d),toX:Math.max(s,l),toY:Math.max(u,d)}}getNodes(){const n=this._cachedNodes;if(n!==null)return n;const t=this.anchor.getNode(),r=this.focus.getNode(),o=ye.$findMatchingParent(t,Ie),s=ye.$findMatchingParent(r,Ie);et(Ie(o),"Expected TableSelection anchor to be (or a child of) TableCellNode"),et(Ie(s),"Expected TableSelection focus to be (or a child of) TableCellNode");const l=o.getParent();et(Ot(l),"Expected anchorCell to have a parent TableRowNode");const u=l.getParent();et(xt(u),"Expected tableNode to have a parent TableNode");const d=s.getParents()[1];if(d!==u){if(u.isParentOf(s)){const P=d.getParent();et(P!=null,"Expected focusCellParent to have a parent"),this.set(this.tableKey,s.getKey(),P.getKey())}else{const P=u.getParent();et(P!=null,"Expected gridParent to have a parent"),this.set(this.tableKey,P.getKey(),s.getKey())}return this.getNodes()}const[f,h,m]=Nr(u,o,s);let A=Math.min(h.startColumn,m.startColumn),y=Math.min(h.startRow,m.startRow),b=Math.max(h.startColumn+h.cell.__colSpan-1,m.startColumn+m.cell.__colSpan-1),x=Math.max(h.startRow+h.cell.__rowSpan-1,m.startRow+m.cell.__rowSpan-1),w=A,k=y,L=A,O=y;function T(P){const{cell:I,startColumn:F,startRow:_}=P;A=Math.min(A,F),y=Math.min(y,_),b=Math.max(b,F+I.__colSpan-1),x=Math.max(x,_+I.__rowSpan-1)}for(;A<w||y<k||b>L||x>O;){if(A<w){const P=O-k,I=w-1;for(let F=0;F<=P;F++)T(f[k+F][I]);w=I}if(y<k){const P=L-w,I=k-1;for(let F=0;F<=P;F++)T(f[I][w+F]);k=I}if(b>L){const P=O-k,I=L+1;for(let F=0;F<=P;F++)T(f[k+F][I]);L=I}if(x>O){const P=L-w,I=O+1;for(let F=0;F<=P;F++)T(f[I][w+F]);O=I}}const R=new Map([[u.getKey(),u]]);let E=null;for(let P=y;P<=x;P++)for(let I=A;I<=b;I++){const{cell:F}=f[P][I],_=F.getParent();et(Ot(_),"Expected TableCellNode parent to be a TableRowNode"),_!==E&&R.set(_.getKey(),_),R.set(F.getKey(),F);for(const N of Y7(F))R.set(N.getKey(),N);E=_}const M=Array.from(R.values());return p.isCurrentlyReadOnlyMode()||(this._cachedNodes=M),M}getTextContent(){const n=this.getNodes().filter(r=>Ie(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 yt(e){return e instanceof Su}function $m(){const e=p.$createPoint("root",0,"element"),n=p.$createPoint("root",0,"element");return new Su("root",e,n)}function Y7(e){const n=[],t=[e];for(;t.length>0;){const r=t.pop();et(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 wA(e,n=p.$getEditor()){const t=p.$getNodeByKey(e);et(xt(t),"TableObserver: Expected tableNodeKey %s to be a TableNode",e);const r=Is(t,n.getElementByKey(e));return et(r!==null,"TableObserver: Expected to find TableElement in DOM for key %s",e),{tableElement:r,tableNode:t}}class Z7{constructor(n,t){we(this,"focusX");we(this,"focusY");we(this,"listenersToRemove");we(this,"table");we(this,"isHighlightingCells");we(this,"anchorX");we(this,"anchorY");we(this,"tableNodeKey");we(this,"anchorCell");we(this,"focusCell");we(this,"anchorCellNodeKey");we(this,"focusCellNodeKey");we(this,"editor");we(this,"tableSelection");we(this,"hasHijackedSelectionStyles");we(this,"isSelecting");we(this,"shouldCheckSelection");we(this,"abortController");we(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 wA(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 u=t[o].target.nodeName;if(u==="TABLE"||u==="TBODY"||u==="THEAD"||u==="TR"){r=!0;break}}if(r)try{const{tableNode:o,tableElement:s}=this.$lookup();this.table=ga(o,s)}catch{}},{editor:this.editor})});this.editor.getEditorState().read(()=>{const{tableNode:t,tableElement:r}=this.$lookup();this.table=ga(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=ga(t,r);Gl(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();ye.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();ye.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(),Gl(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 u=kA(r._window);u&&u.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 u=p.$getNearestNodeFromDOMNode(n.elem);if(this.tableSelection!=null&&this.anchorCellNodeKey!=null&&Ie(u)&&o.is(ii(u))){const d=u.getKey();this.tableSelection=this.tableSelection.clone()||$m(),this.focusCellNodeKey=d,this.tableSelection.set(this.tableNodeKey,this.anchorCellNodeKey,this.focusCellNodeKey),p.$setSelection(this.tableSelection),r.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0),Gl(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(Ie(t)){const r=t.getKey();this.tableSelection=this.tableSelection!=null?this.tableSelection.clone():$m(),this.anchorCellNodeKey=r}})}formatCells(n){this.editor.update(()=>{const t=p.$getSelection();yt(t)||et(!1,"Expected grid selection");const r=p.$createRangeSelection(),o=r.anchor,s=r.focus,l=t.getNodes().filter(Ie),u=l[0].getFirstChild(),d=p.$isParagraphNode(u)?u.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(!xt(t))throw new Error("Expected TableNode.");const r=p.$getSelection();yt(r)||et(!1,"Expected grid selection");const o=r.getNodes().filter(Ie);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(),u=ts();l.append(u),s.append(l),s.getChildren().forEach(d=>{d!==l&&d.remove()})}}),Gl(n,this.table,null),p.$setSelection(null),n.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0)})}}const o1="__lexicalTableSelection",kA=e=>Ni?(e||window).getSelection():null,G7=e=>(e.buttons&1)===1;function Is(e,n){if(!n)return n;const t=n.nodeName==="TABLE"?n:e.getDOMSlot(n).element;return et(t.nodeName==="TABLE","getTableElement: Expecting table in as DOM node for TableNode, not %s",n.nodeName),t}function V7(e,n,t,r){const o=t.getRootElement();if(o===null)throw new Error("No root element.");const s=new Z7(t,e.getKey()),l=t._window||window,u=Is(e,n);Q7(u,s),s.listenersToRemove.add(()=>q7(u,s));const d=()=>{const b=()=>{s.isSelecting=!1,l.removeEventListener("mouseup",b),l.removeEventListener("mousemove",x)},x=cu.debounce(w=>{setTimeout(()=>{if(!G7(w)&&s.isSelecting){s.isSelecting=!1,l.removeEventListener("mouseup",b),l.removeEventListener("mousemove",x);return}const k=Uc(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=Uc(b.target);x!==null&&(xo(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)};u.addEventListener("mousedown",f,s.listenerOptions);const h=b=>{b.button===0&&t.update(()=>{const x=p.$getSelection(),w=b.target;yt(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=>ra(t,b,"down",e,s),p.COMMAND_PRIORITY_HIGH)),s.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_UP_COMMAND,b=>ra(t,b,"up",e,s),p.COMMAND_PRIORITY_HIGH)),s.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_LEFT_COMMAND,b=>ra(t,b,"backward",e,s),p.COMMAND_PRIORITY_HIGH)),s.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_RIGHT_COMMAND,b=>ra(t,b,"forward",e,s),p.COMMAND_PRIORITY_HIGH));const m=b=>()=>{const x=p.$getSelection();if(!ws(x,e))return!1;if(yt(x))return s.clearText(),!0;if(p.$isRangeSelection(x)){const w=ye.$findMatchingParent(x.anchor.getNode(),P=>Ie(P));if(!Ie(w))return!1;const k=x.anchor.getNode(),L=x.focus.getNode(),O=e.isParentOf(k),T=e.isParentOf(L);if(O&&!T||T&&!O)return s.clearText(),!0;const E=ye.$findMatchingParent(x.anchor.getNode(),P=>p.$isElementNode(P)),M=E&&ye.$findMatchingParent(E,P=>p.$isElementNode(P)&&Ie(P.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,m(b),p.COMMAND_PRIORITY_CRITICAL))});const A=b=>{const x=p.$getSelection();if(!(yt(x)||p.$isRangeSelection(x)))return!1;const w=e.isParentOf(x.anchor.getNode()),k=e.isParentOf(x.focus.getNode());if(w!==k){const L=w?"anchor":"focus",O=w?"focus":"anchor",{key:T,offset:R,type:E}=x[O];return e[x[L].isBefore(x[O])?"selectPrevious":"selectNext"]()[O].set(T,R,E),!1}return yt(x)?(b&&(b.preventDefault(),b.stopPropagation()),s.clearText(),!0):!1};s.listenersToRemove.add(t.registerCommand(p.KEY_BACKSPACE_COMMAND,A,p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.KEY_DELETE_COMMAND,A,p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.CUT_COMMAND,b=>{const x=p.$getSelection();if(x){if(!(yt(x)||p.$isRangeSelection(x)))return!1;ka.copyToClipboard(t,ye.objectKlassEquals(b,ClipboardEvent)?b:null,ka.$getClipboardDataFromSelection(x));const w=A(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(!ws(x,e))return!1;if(yt(x))return s.formatCells(b),!0;if(p.$isRangeSelection(x)){const w=ye.$findMatchingParent(x.anchor.getNode(),k=>Ie(k));if(!Ie(w))return!1}return!1},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.FORMAT_ELEMENT_COMMAND,b=>{const x=p.$getSelection();if(!yt(x)||!ws(x,e))return!1;const w=x.anchor.getNode(),k=x.focus.getNode();if(!Ie(w)||!Ie(k))return!1;const[L,O,T]=Nr(e,w,k),R=Math.max(O.startRow,T.startRow),E=Math.max(O.startColumn,T.startColumn),M=Math.min(O.startRow,T.startRow),P=Math.min(O.startColumn,T.startColumn);for(let I=M;I<=R;I++)for(let F=P;F<=E;F++){const _=L[I][F].cell;_.setFormat(b);const N=_.getChildren();for(let j=0;j<N.length;j++){const U=N[j];p.$isElementNode(U)&&!U.isInline()&&U.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=Ie(w[1]),L=p.$getRoot(),O=t._keyToDOMMap.size-1===(x==null?void 0:x.getNodes().length);if(k&&t.update(()=>{const T=p.$createParagraphNode(),R=ts(b);T.append(R),w.forEach(E=>{if(!xt(E))return;const M=E.getPreviousSibling(),P=E.getNextSibling();M?M.insertAfter(T,!0):P&&P.insertBefore(T).selectEnd(),E.remove()}),O&&(L.clear(),x.insertText(b))}),!ws(x,e))return!1;if(yt(x))return s.clearHighlight(),!1;if(p.$isRangeSelection(x)){const T=ye.$findMatchingParent(x.anchor.getNode(),R=>Ie(R));if(!Ie(T))return!1;if(typeof b=="string"){const R=n0(t,x,e);if(R)return t0(R,e,[ts(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()||!ws(x,e))return!1;const w=ql(x.anchor.getNode());if(w===null)return!1;xo(b);const k=e.getCordsFromCellNode(w,s.table);return SA(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(Ie(k)&&x.length>0){const L=x[0];if(xt(L)){const O=L.getFirstChild();return O&&O.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 L=b.anchor.getNode(),O=e.getFirstChild(),T=ql(L);if(T!==null&&Ot(O)){const R=O.getFirstChild();if(Ie(R)&&!ye.$findMatchingParent(T,E=>E.is(R)))return R.selectStart(),!0}}const{hasSelectedBlock:w,selectedAllDocument:k}=qo();if(p.$isRangeSelection(b)){const{anchor:L,focus:O}=b,T=L.getNode(),R=O.getNode(),E=ql(T),M=ql(R),P=!!(E&&e.is(ii(E))),I=!!(M&&e.is(ii(M))),F=P!==I,_=P&&I,N=b.isBackward();if(F){const j=b.clone();if(I){const[U]=Nr(e,M,M),W=U[0][0].cell,B=U[U.length-1].at(-1).cell;j.focus.set(N?W.getKey():B.getKey(),N?W.getChildrenSize():B.getChildrenSize(),"element")}else if(P){const[U]=Nr(e,E,E),W=U[0][0].cell,B=U[U.length-1].at(-1).cell;j.anchor.set(N?B.getKey():W.getKey(),N?B.getChildrenSize():0,"element")}p.$setSelection(j),!w&&!k&&e0(t,s)}else _&&(E.is(M)||(s.setAnchorCellForSelection(y(E)),s.setFocusCellForSelection(y(M),!0),s.isSelecting||setTimeout(()=>{const{onMouseUp:j,onMouseMove:U}=d();s.isSelecting=!0,l.addEventListener("mouseup",j),l.addEventListener("mousemove",U)},0)))}else if(b&&yt(b)&&b.is(x)&&b.tableKey===e.getKey()){const L=kA(t._window);if(L&&L.anchorNode&&L.focusNode){const O=p.$getNearestNodeFromDOMNode(L.focusNode),T=O&&!e.is(ii(O)),R=p.$getNearestNodeFromDOMNode(L.anchorNode),E=R&&e.is(ii(R));if(T&&E&&L.rangeCount>0){const M=p.$createRangeSelectionFromDom(L,t);M&&(M.anchor.set(e.getKey(),b.isBackward()?e.getChildrenSize():0,"element"),L.removeAllRanges(),p.$setSelection(M))}}}return b&&!b.is(x)&&(yt(b)||yt(x))&&s.tableSelection&&!s.tableSelection.is(x)?(yt(b)&&b.tableKey===s.tableNodeKey?s.updateTableTableSelection(b):!yt(b)&&yt(x)&&x.tableKey===s.tableNodeKey&&s.updateTableTableSelection(null),!1):(s.hasHijackedSelectionStyles&&!e.isSelected()?J7(t,s):!s.hasHijackedSelectionStyles&&e.isSelected()&&!w&&!k&&e0(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()||!ws(b,e))return!1;const x=n0(t,b,e);return x?(t0(x,e),!0):!1},p.COMMAND_PRIORITY_CRITICAL)),s}function q7(e,n){s1(e)===n&&delete e[o1]}function Q7(e,n){et(s1(e)===null,"tableElement already has an attached TableObserver"),e[o1]=n}function s1(e){return e[o1]||null}function Uc(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 ga(e,n){const t=Is(e,n),r=[],o={columns:0,domRows:r,rows:0};let s=t.querySelector("tr"),l=0,u=0;for(r.length=0;s!=null;){const d=s.nodeName;if(d==="TD"||d==="TH"){const m=s,A={elem:m,hasBackgroundColor:m.style.backgroundColor!=="",highlighted:!1,x:l,y:u};s._cell=A;let y=r[u];y===void 0&&(y=r[u]=[]),y[l]=A}else{const m=s.firstChild;if(m!=null){s=m;continue}}const f=s.nextSibling;if(f!=null){l++,s=f;continue}const h=s.parentNode;if(h!=null){const m=h.nextSibling;if(m==null)break;u++,l=0,s=m}}return o.columns=l+1,o.rows=u+1,o}function Gl(e,n,t){const r=new Set(t?t.getNodes():[]);i1(n,(o,s)=>{const l=o.elem;r.has(s)?(o.highlighted=!0,MA(e,o)):(o.highlighted=!1,TA(e,o),l.getAttribute("style")||l.removeAttribute("style"))})}function i1(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 u=p.$getNearestNodeFromDOMNode(l.elem);u!==null&&n(l,u,{x:s,y:r})}}}function e0(e,n){n.disableHighlightStyle(),i1(n.table,t=>{t.highlighted=!0,MA(e,t)})}function J7(e,n){n.enableHighlightStyle(),i1(n.table,t=>{const r=t.elem;t.highlighted=!1,TA(e,t),r.getAttribute("style")||r.removeAttribute("style")})}const SA=(e,n,t,r,o)=>{const s=o==="forward";switch(o){case"backward":case"forward":return t!==(s?e.table.columns-1:0)?Vl(n.getCellNodeFromCordsOrThrow(t+(s?1:-1),r,e.table),s):r!==(s?e.table.rows-1:0)?Vl(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?Vl(n.getCellNodeFromCordsOrThrow(t,r-1,e.table),!1):n.selectPrevious(),!0;case"down":return r!==e.table.rows-1?Vl(n.getCellNodeFromCordsOrThrow(t,r+1,e.table),!0):n.selectNext(),!0;default:return!1}},X7=(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 ws(e,n){if(p.$isRangeSelection(e)||yt(e)){const t=n.isParentOf(e.anchor.getNode()),r=n.isParentOf(e.focus.getNode());return t&&r}return!1}function Vl(e,n){n?e.selectStart():e.selectEnd()}const lf="172,206,247";let EA=!1;function $i(e){EA=e}function MA(e,n){const t=n.elem,r=p.$getNearestNodeFromDOMNode(t);if(et(Ie(r),"Expected to find LexicalNode from Table Cell DOMNode"),EA){t.style.setProperty("caret-color","transparent");return}r.getBackgroundColor()===null?t.style.setProperty("background-color",`rgb(${lf})`):t.style.setProperty("background-image",`linear-gradient(to right, rgba(${lf},0.85), rgba(${lf},0.85))`),t.style.setProperty("caret-color","transparent")}function TA(e,n){const t=n.elem,r=p.$getNearestNodeFromDOMNode(t);et(Ie(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 ql(e){const n=ye.$findMatchingParent(e,Ie);return Ie(n)?n:null}function ii(e){const n=ye.$findMatchingParent(e,xt);return xt(n)?n:null}function ra(e,n,t,r,o){if((t==="up"||t==="down")&&$7(e))return!1;const s=p.$getSelection();if(!ws(s,r)){if(p.$isRangeSelection(s)){if(s.isCollapsed()&&t==="backward"){const l=s.anchor.type,u=s.anchor.offset;if(l!=="element"&&!(l==="text"&&u===0))return!1;const d=s.anchor.getNode();if(!d)return!1;const f=ye.$findMatchingParent(d,m=>p.$isElementNode(m)&&!m.isInline());if(!f)return!1;const h=f.getPreviousSibling();return!h||!xt(h)?!1:(xo(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=ye.$findMatchingParent(l,y=>xt(y));if(Ie(d)&&(d=ye.$findMatchingParent(d,xt)),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 m=f;if(t==="up"&&p.$isElementNode(f)){const y=f.getLastChild();m=y||f,h=Fn(m)?m.getTextContentSize():0}const A=s.clone();return A.focus.set(m.getKey(),h,Fn(m)?"text":"element"),p.$setSelection(A),xo(n),!0}else if(p.$isRootOrShadowRoot(l)){const d=t==="up"?s.getNodes()[s.getNodes().length-1]:s.getNodes()[0];if(d){const f=ye.$findMatchingParent(d,Ie);if(f&&r.isParentOf(f)){const h=r.getFirstDescendant(),m=r.getLastDescendant();if(!h||!m)return!1;const[A]=Rn(h),[y]=Rn(m),b=r.getCordsFromCellNode(A,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=ye.$findMatchingParent(l,h=>p.$isElementNode(h)&&!h.isInline());if(Ie(d)&&(d=ye.$findMatchingParent(d,xt)),!d)return!1;const f=t==="down"?d.getNextSibling():d.getPreviousSibling();if(xt(f)&&o.tableNodeKey===f.getKey()){const h=f.getFirstDescendant(),m=f.getLastDescendant();if(!h||!m)return!1;const[A]=Rn(h),[y]=Rn(m),b=s.clone();return b.focus.set((t==="up"?A:y).getKey(),t==="up"?0:y.getChildrenSize(),"element"),xo(n),p.$setSelection(b),!0}}}}return t==="down"&&LA(e)&&o.setShouldCheckSelection(),!1}if(p.$isRangeSelection(s)&&s.isCollapsed()){const{anchor:l,focus:u}=s,d=ye.$findMatchingParent(l.getNode(),Ie),f=ye.$findMatchingParent(u.getNode(),Ie);if(!Ie(d)||!d.is(f))return!1;const h=ii(d);if(h!==r&&h!=null){const L=Is(h,e.getElementByKey(h.getKey()));if(L!=null)return o.table=ga(h,L),ra(e,n,t,h,o)}if(t==="backward"||t==="forward"){const L=l.type,O=l.offset,T=l.getNode();if(!T)return!1;const R=s.getNodes();return R.length===1&&p.$isDecoratorNode(R[0])?!1:eS(L,O,T,t)?rS(n,T,r,t):!1}const m=e.getElementByKey(d.__key),A=e.getElementByKey(l.key);if(A==null||m==null)return!1;let y;if(l.type==="element")y=A.getBoundingClientRect();else{const L=window.getSelection();if(L===null||L.rangeCount===0)return!1;y=L.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){xo(n);const L=r.getCordsFromCellNode(d,o.table);if(n.shiftKey){const O=r.getDOMCellFromCordsOrThrow(L.x,L.y,o.table);o.setAnchorCellForSelection(O),o.setFocusCellForSelection(O,!0)}else return SA(o,r,L.x,L.y,t);return!0}}else if(yt(s)){const{anchor:l,focus:u}=s,d=ye.$findMatchingParent(l.getNode(),Ie),f=ye.$findMatchingParent(u.getNode(),Ie),[h]=s.getNodes();et(xt(h),"$handleArrowKey: TableSelection.getNodes()[0] expected to be TableNode");const m=Is(h,e.getElementByKey(h.getKey()));if(!Ie(d)||!Ie(f)||!xt(h)||m==null)return!1;o.updateTableTableSelection(s);const A=ga(h,m),y=r.getCordsFromCellNode(d,A),b=r.getDOMCellFromCordsOrThrow(y.x,y.y,A);if(o.setAnchorCellForSelection(b),xo(n),n.shiftKey){const x=r.getCordsFromCellNode(f,A);return X7(o,h,x.x,x.y,t)}else f.selectEnd();return!0}return!1}function $7(e){const n=e.getRootElement();return n?n.hasAttribute("aria-controls")&&n.getAttribute("aria-controls")==="typeahead-menu":!1}function eS(e,n,t,r){return tS(e,t,r)||nS(e,n,t,r)}function tS(e,n,t){return e==="element"&&(t==="backward"?n.getPreviousSibling()===null:n.getNextSibling()===null)}function nS(e,n,t,r){const o=ye.$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 rS(e,n,t,r){const o=ye.$findMatchingParent(n,Ie);if(!Ie(o))return!1;const[s,l]=Nr(t,o,o);if(!oS(s,l,r))return!1;const u=sS(n,r,t);return!u||xt(u)?!1:(xo(e),r==="backward"?u.selectEnd():u.selectStart(),!0)}function oS(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 sS(e,n,t){const r=ye.$findMatchingParent(e,s=>p.$isElementNode(s)&&!s.isInline());if(!r)return;const o=n==="backward"?r.getPreviousSibling():r.getNextSibling();return o&&xt(o)?o:n==="backward"?t.getPreviousSibling():t.getNextSibling()}function t0(e,n,t){const r=p.$createParagraphNode();e==="first"?n.insertBefore(r):n.insertAfter(r),r.append(...t||[]),r.selectEnd()}function n0(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()),u=Is(t,e.getElementByKey(t.getKey()));if(!s||!l||!u||!l.contains(s)||u.contains(s))return;const d=ye.$findMatchingParent(n.anchor.getNode(),L=>Ie(L));if(!d)return;const f=ye.$findMatchingParent(d,L=>xt(L));if(!xt(f)||!f.is(t))return;const[h,m]=Nr(t,d,d),A=h[0][0],y=h[h.length-1][h[0].length-1],{startRow:b,startColumn:x}=m,w=b===A.startRow&&x===A.startColumn,k=b===y.startRow&&x===y.startColumn;return w?"first":k?"last":void 0}function r0(e,n,t,r){const o=e.querySelector("colgroup");if(!o)return;const s=[];for(let l=0;l<t;l++){const u=document.createElement("col"),d=r&&r[l];d&&(u.style.width=`${d}px`),s.push(u)}o.replaceChildren(...s)}function o0(e,n,t){t?(ye.addClassNamesToElement(e,n.theme.tableRowStriping),e.setAttribute("data-lexical-row-striping","true")):(ye.removeClassNamesFromElement(e,n.theme.tableRowStriping),e.removeAttribute("data-lexical-row-striping"))}const Qf=new WeakSet;function LA(e=p.$getEditor()){return Qf.has(e)}function iS(e,n){n?(e._config.theme.tableScrollableWrapper||console.warn("TableNode: hasHorizontalScroll is active but theme.tableScrollableWrapper is not defined."),Qf.add(e)):Qf.delete(e)}class Yr extends p.ElementNode{constructor(t){super(t);we(this,"__rowStriping");we(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=a1();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 et(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),r0(o,t,this.getColumnCount(),this.getColWidths()),p.setDOMUnmanaged(s),ye.addClassNamesToElement(o,t.theme.table),this.__rowStriping&&o0(o,t,!0),LA(r)){const l=document.createElement("div"),u=t.theme.tableScrollableWrapper;return u?ye.addClassNamesToElement(l,u):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&&o0(r,o,this.__rowStriping),r0(l,o,this.getColumnCount(),this.getColWidths()),t!==this}exportDOM(t){return{...super.exportDOM(t),after:r=>{if(!r||!ye.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 u=s[l];if(u==null)continue;const d=u.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 u=t<l.length?t:l.length-1,d=l[u];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 Ie(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=>{Ie(o)&&(r+=o.getColSpan())}),r}}function aS(e){const n=a1();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||!Wc.test(s)){r=void 0;break}r.push(parseFloat(s))}r&&n.setColWidths(r)}return{node:n}}function a1(){return p.$applyNodeReplacement(new Yr)}function xt(e){return e instanceof Yr}const NA=g.createContext([e=>()=>{},e=>{}]),lS=({children:e})=>{const n=g.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 a.jsx(NA.Provider,{value:n,children:e})},cS=()=>{const[e,n]=g.useContext(NA),[t,r]=g.useState(null);return g.useEffect(()=>e(o=>{r(o)}),[e]),[t,n]},uS=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);class Eu extends p.DecoratorNode{constructor(t,r){super(r);we(this,"__uuid");this.__uuid=t}static clone(t){return new Eu(t.__uuid,t.__key)}static getType(){return"autocomplete"}static importJSON(t){return dS(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!==uS?null:a.jsx(fS,{})}}function dS(e){return new Eu(e)}function fS(){const[e]=cS(),n=window.navigator.userAgentData,t=n!==void 0?n.mobile:window.innerWidth<=800&&window.innerHeight<=600;return a.jsxs("span",{style:{color:"#ccc"},spellCheck:"false",children:[e," ",t?"(SWIPE ⮕)":"(TAB)"]})}class Zr extends li.MarkNode{constructor(t,r=null,o){super(t,o);we(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"),u=document.createDocumentFragment();return Array.from(r.childNodes).forEach(d=>u.appendChild(d.cloneNode(!0))),{node:RA(s,l)}},priority:1})}}resolveThreat(t){const r=this.getWritable();r.__resolve=t}createDOM(t){const r=document.createElement("mark");ye.addClassNamesToElement(r,t.theme.mark),ye.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 RA(e,n=null){return p.$applyNodeReplacement(new Zr(e,n))}function Ho(e){return e instanceof Zr}const jA=[{replace:p.TextNode,with:e=>new Mo(e.getTextContent()),withKlass:Mo},{replace:Kt.CodeNode,with:e=>new qn(!1),withKlass:qn},{replace:li.MarkNode,with:e=>new Zr(e.__ids),withKlass:Zr}],zn={transition:"fade",duration:400};function hS(e,n){for(let t=0;t<n.length;t++){const r=n[t];if(Rt(r)){const o=r.getParent(),s=pt(o)?o.getListType():"bullet",l=un(s);for(;t<n.length&&Rt(n[t]);)l.append(n[t]),t++;e.append(l),t--}else e.append(r)}}function pS(e,n){const t=e.getChildren();if(t.length===0){e.remove();return}const r=t.findIndex(u=>u.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&&Rt(s)){const u=s.getParent();if(u&&pt(u)){const d=u.getChildren().findIndex(f=>f.getKey()===s.getKey());if(d!==-1){s.remove();const f=u.getChildren(),h=u.getListType(),m=un(h),A=un(h);for(let y=0;y<d;y++)m.append(f[y]);for(let y=d;y<f.length;y++)A.append(f[y]);u.insertBefore(m),m.insertAfter(n),n.insertAfter(A),u.isAttached()&&u.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 u=e.getListType(),d=un(u);for(const f of o)d.append(f);e.insertAfter(n),n.insertAfter(d)}}function gS(e){var t;const n=Er();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"&&ye.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:gS,priority:2}}}static importJSON(){return Er()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"layout-divider",version:1}}}function Er(){return new Vr}function mS(e){return e instanceof Vr}const Mu=(e,n,t)=>{var o,s,l,u,d;const r=p.$getSelection();if(p.$isRangeSelection(r)&&r.isCollapsed()){const f=r.anchor.getNode(),h=f.getKey(),m=f.getParent()===t,A=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&&((u=t.getFirstChild())==null?void 0:u.getKey())===h;if(t&&f instanceof p.ParagraphNode&&!f.getTextContent()&&m&&!((d=f.getPreviousSibling())!=null&&d.getTextContent())&&A&&!y){const x=e.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>(x(),!0),p.COMMAND_PRIORITY_NORMAL);return e.update(()=>{var k;if(t){let L=t.getChildren();const O=t.getLastChild();mS(O)&&(L=L.slice(0,-1)),L.length===2?L.slice(-1).forEach(T=>T.remove()):L.slice(-2).forEach(T=>T.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 L=n==null?void 0:n.insertAfter(p.$createParagraphNode());L==null||L.selectStart()}}),!0}}return!1},io=e=>{for(;e;){if(ao(e))return e;const n=e.getParent();if(!n)break;e=n}return null},Tu=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:"😊"}}},s0=e=>e.replace(/\s+/g," ").trim(),CS=e=>{const n=Qt();if(n){const t=ye.$findMatchingParent(n,cs);if((t==null?void 0:t.__type)==="callout"){const r=p.$getSelection();if(p.$isRangeSelection(r)&&r.isCollapsed()){const o=r.anchor.getNode(),s=ye.$findMatchingParent(o,ao);return Mu(e,s,t)}}}return!0};function cf(e,n){let t=e;for(;t;){if(p.$isElementNode(t)){const r=t.getParent();if(Rt(t)||(r==null?void 0:r.getKey())===n.getKey())return t}t=t.getParent()}return null}function AS(e){const n=[];function t(r){if(pt(r))for(const o of r.getChildren())t(o);else if(Rt(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 IA(e){const n=p.$getRoot(),t=e.anchor.getNode(),r=e.focus.getNode(),o=cf(t,n),s=cf(r,n);if(!o||!s)return[];const l=new Set([o.getKey(),s.getKey()]);for(const h of e.getNodes()){const m=cf(h,n);m&&l.add(m.getKey())}const d=AS(n).filter(h=>l.has(h.getKey())),f=new Set(d.map(h=>h.getKey()));return d.filter(h=>{let m=h.getParent();for(;m;){if(f.has(m.getKey()))return!1;m=m.getParent()}return!0})}const bS=(e,n,t)=>()=>{const r=Ha(n,t),o=qa(e),s=p.$createParagraphNode(),l=Ka().append(s);return r.append(o),r.append(l),r};function yS(e,n,t){const r=Ha(n,t),o=qa(e),s=Ka();return r.append(o),r.append(s),r}function xS(e,n,t,r){const o=IA(e);if(o.length===0)return!1;const s=o[0],l=s.getParent(),u=yS(n,t,r),d=u.getChildren().find(cs);return!d||!p.$isElementNode(d)?!1:(s.insertBefore(u),hS(d,o),l&&pt(l)&&pS(l,u),!0)}const vS=(e,n)=>{const r=n.getChildren().find(cs);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)},OA=[{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"}],wS=[{name:"default",outline:"var(--mantine-color-default-border)",bg:""},{name:"red",outline:"var(--mantine-color-red-outline, #ff8787)",bg:"var(--mantine-color-red-light)"},{name:"violet",outline:"var(--mantine-color-violet-outline, #9775fa)",bg:"var(--mantine-color-violet-light)"},{name:"indigo",outline:"var(--mantine-color-indigo-outline, #748ffc)",bg:"var(--mantine-color-indigo-light)"},{name:"blue",outline:"var(--mantine-color-blue-outline, #4dabf7)",bg:"var(--mantine-color-blue-light)"},{name:"green",outline:"var(--mantine-color-green-outline, #69db7c)",bg:"var(--mantine-color-green-light)"},{name:"yellow",outline:"var(--mantine-color-yellow-outline, #ffd43b)",bg:"var(--mantine-color-yellow-light)"},{name:"orange",outline:"var(--mantine-color-orange-outline, #ffa94d)",bg:"var(--mantine-color-orange-light)"},{name:"dark",outline:"var(--mantine-color-gray-6, #868e96)",bg:"var(--mantine-color-dark-light)"}],kS=[{key:"violet",i18n:"editor.colors.violet",fallback:"Violet color",outline:"var(--mantine-color-violet-outline, #9775fa)",bg:"var(--mantine-color-violet-light)"},{key:"indigo",i18n:"editor.colors.indigo",fallback:"Indigo color",outline:"var(--mantine-color-indigo-outline, #748ffc)",bg:"var(--mantine-color-indigo-light)"},{key:"blue",i18n:"editor.colors.blue",fallback:"Blue color",outline:"var(--mantine-color-blue-outline, #4dabf7)",bg:"var(--mantine-color-blue-light)"},{key:"teal",i18n:"editor.colors.teal",fallback:"Teal color",outline:"var(--mantine-color-teal-4, #38d9a9)",bg:"var(--mantine-color-teal-light)"},{key:"green",i18n:"editor.colors.green",fallback:"Green color",outline:"var(--mantine-color-green-outline, #69db7c)",bg:"var(--mantine-color-green-light)"},{key:"yellow",i18n:"editor.colors.yellow",fallback:"Yellow color",outline:"var(--mantine-color-yellow-outline, #ffd43b)",bg:"var(--mantine-color-yellow-light)"},{key:"orange",i18n:"editor.colors.orange",fallback:"Orange color",outline:"var(--mantine-color-orange-outline, #ffa94d)",bg:"var(--mantine-color-orange-light)"},{key:"red",i18n:"editor.colors.red",fallback:"Red highlights",outline:"var(--mantine-color-red-outline, #fa5252)",bg:"var(--mantine-color-red-light)"},{key:"brown",i18n:"editor.colors.brown",fallback:"Brown color",outline:"var(--mantine-color-orange-outline, #ffa94d)",bg:"var(--mantine-color-orange-light)"},{key:"gray",i18n:"editor.colors.gray",fallback:"Gray color",outline:"var(--mantine-color-gray-6, #868e96)",bg:"var(--mantine-color-dark-light)"}],uf="light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))";function SS({editor:e,keyNode:n,currentType:t,onClose:r}){const{t:o}=He.useTranslation(),s=g.useCallback(f=>{e.update(()=>{const h=p.$getNodeByKey(n);if(!h)return;const m=io(h);if(!m)return;const{emoji:A,backgroundColor:y,calloutType:b}=Tu(f);m.setType(b),m.setBackgroundColor(y),h instanceof lo&&h.setEmoji(A)}),r()},[e,n,r]),l=g.useCallback(f=>{e.update(()=>{const h=p.$getNodeByKey(n);if(!h)return;const m=io(h);m&&m.setBackgroundColor(f)})},[e,n]),u=t==="😊"||t==="default"?"default":t,d=u==="default";return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,paddingTop:8,paddingBottom:8,overflow:"hidden"},children:[a.jsx("div",{style:{paddingLeft:8,paddingRight:8,paddingBottom:6},children:a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[a.jsx(v.Text,{size:"xs",fw:500,c:"dimmed",px:4,lh:1.4,children:o("editor.menu.callout.type","Type")}),a.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:OA.map(({key:f,i18n:h})=>{const m=u===f;return a.jsx("button",{type:"button",onClick:()=>s(f),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:m?"var(--mantine-primary-color-light)":"var(--mantine-color-gray-light)",color:m?"light-dark(var(--mantine-primary-color-light-color), var(--mantine-primary-color-4))":"var(--mantine-color-default-color)",fontSize:"var(--mantine-font-size-sm)",fontWeight:400,lineHeight:1.45,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:"inherit"},children:o(h)},f)})})]})}),d&&a.jsxs(a.Fragment,{children:[a.jsx("div",{style:{paddingTop:4,paddingBottom:4},children:a.jsx("div",{style:{height:1,backgroundColor:"light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-5))"}})}),a.jsxs("div",{style:{paddingLeft:8,paddingRight:8,display:"flex",flexDirection:"column",gap:4},children:[a.jsx(v.Text,{size:"xs",fw:500,c:"dimmed",px:4,lh:1.4,children:o("editor.colors.color","Color")}),a.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"1px 0",alignItems:"center",justifyContent:"space-between",width:"100%"},children:wS.map(f=>a.jsx("div",{role:"button",tabIndex:0,onClick:()=>l(f.bg),onKeyDown:h=>{(h.key==="Enter"||h.key===" ")&&l(f.bg)},style:{width:26,height:26,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:a.jsx("div",{style:{width:24,height:24,borderRadius:"50%",border:`1.5px solid ${f.outline}`,backgroundColor:f.bg||"transparent"}})},f.name))})]})]})]})}function ES({editor:e,keyNode:n}){const{t}=He.useTranslation(),[r,o]=g.useState("default"),[s,l]=g.useState(!1);g.useEffect(()=>{const d=()=>{const f=p.$getNodeByKey(n);if(!f)return;const h=io(f);h&&o(h.__calloutType)};return e.getEditorState().read(d),e.registerUpdateListener(({editorState:f})=>{f.read(d)})},[e,n]);const u=g.useCallback(()=>{e.update(()=>{const d=p.$getNodeByKey(n);if(!d)return;const f=io(d);if(f){for(const h of f.getChildren())if(cs(h))for(const m of h.getChildren())f.insertBefore(m);f.remove()}})},[e,n]);return a.jsxs("div",{className:"callout-hover-actions",children:[a.jsxs(v.Menu,{opened:s,onChange:l,position:"bottom-end",shadow:"md",withinPortal:!0,transitionProps:zn,styles:{dropdown:{borderRadius:"var(--mantine-spacing-sm)",padding:0,overflow:"hidden",width:280}},children:[a.jsx(v.Menu.Target,{children:a.jsx(Cn,{label:t("editor.contextMenu.appearance"),"aria-label":t("editor.contextMenu.appearance"),icon:Ci,iconColor:"var(--mantine-color-gray-text)"})}),a.jsx(v.Menu.Dropdown,{children:a.jsx(SS,{editor:e,keyNode:n,currentType:r,onClose:()=>l(!1)})})]}),a.jsx(ls,{label:t("editor.actions.delete"),ariaLabel:"remove-callout-block",onClick:u})]})}function MS({editor:e,keyNode:n}){const{t}=He.useTranslation(),[r,o]=g.useState("default"),[s,l]=g.useState(""),[u,{open:d,close:f}]=Yn.useDisclosure(!1),[h,{open:m,close:A}]=Yn.useDisclosure(!1),[y,{open:b,close:x}]=Yn.useDisclosure(!1);g.useEffect(()=>{const T=()=>{const R=p.$getNodeByKey(n);if(!R)return;const E=io(R);E&&(o(E.__calloutType),l(E.__backgroundColor))};return e.getEditorState().read(T),e.registerUpdateListener(({editorState:R})=>{R.read(T)})},[e,n]);const w=g.useCallback(T=>{e.update(()=>{const R=p.$getNodeByKey(n);if(!R)return;const E=io(R);if(!E)return;const{emoji:M,backgroundColor:P,calloutType:I}=Tu(T);E.setType(I),E.setBackgroundColor(P),R instanceof lo&&R.setEmoji(M)}),A()},[e,n,A]),k=g.useCallback(T=>{e.update(()=>{const R=p.$getNodeByKey(n);if(!R)return;const E=io(R);E&&E.setBackgroundColor(T)}),x()},[e,n,x]),L=g.useCallback(()=>{f(),e.update(()=>{const T=p.$getNodeByKey(n);if(!T)return;const R=io(T);if(R){for(const E of R.getChildren())if(cs(E))for(const M of E.getChildren())R.insertBefore(M);R.remove()}})},[e,n,f]),O=r==="😊"||r==="default"?"default":r;return a.jsxs(a.Fragment,{children:[a.jsx(v.ActionIcon,{className:"callout-mobile-actions-btn",size:32,variant:"subtle",color:"gray",radius:"md",bg:"var(--mantine-color-body)",onClick:d,children:a.jsx(ue,{icon:so,size:16})}),a.jsx(Ur,{opened:u,onClose:f,title:t("editor.menu.main.code.mobileActions"),children:a.jsxs(v.Stack,{gap:2,p:0,children:[a.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:uf,leftSection:a.jsx(ue,{icon:Ci,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:a.jsx(ue,{icon:Ns,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{f(),m()},children:t("editor.menu.callout.type","Type")}),a.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:uf,leftSection:a.jsx(ue,{icon:L8,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:a.jsx(ue,{icon:Ns,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{f(),b()},children:t("editor.colors.color","Color")}),a.jsx(v.Button,{variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:uf,leftSection:a.jsx(ue,{icon:_n,size:16,color:"var(--mantine-color-red-6)"}),onClick:L,children:t("editor.actions.delete")})]})}),a.jsx(Ur,{opened:h,onClose:A,title:t("editor.menu.callout.type","Type"),children:a.jsx(v.Stack,{gap:2,p:0,children:OA.map(({key:T,i18n:R})=>a.jsx(JC,{label:t(R),checked:O===T,onSelect:()=>w(T)},T))})}),a.jsx(Ur,{opened:y,onClose:x,title:t("editor.colors.color","Color"),children:a.jsx(v.Stack,{gap:2,p:0,children:kS.map(T=>a.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:s===T.bg?"light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5))":void 0,leftSection:a.jsx("div",{style:{width:16,height:16,borderRadius:"50%",border:`1.5px solid ${T.outline}`,backgroundColor:T.bg||"transparent",flexShrink:0}}),onClick:()=>k(T.bg),children:a.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:a.jsx(v.Text,{size:"sm",children:t(T.i18n,T.fallback)})})},T.key))})})]})}const TS=({editor:e,keyNode:n,emoji:t})=>{const{t:r}=He.useTranslation(),{disable:o}=g.useContext(at),s=g.useRef(null);return g.useEffect(()=>{e.update(()=>{var d,f;const l=p.$getNodeByKey(n),u=((f=(d=s.current)==null?void 0:d.firstChild)==null?void 0:f.outerHTML)||"";l instanceof lo&&l.setRef(u)})},[t]),o?a.jsx("div",{ref:s,children:a.jsx(v.ActionIcon,{size:28,variant:"subtle",radius:6,style:{pointerEvents:"none"},children:a.jsx(Bt.ProjectIcon,{size:24,fz:24,icon:t,fallback:a.jsx(xe.IconFile,{size:"1em"})})})}):a.jsxs("div",{ref:s,children:[a.jsx(Bt.EmojiPicker,{value:t,showRemoveButton:!1,onChange:l=>{e.update(()=>{var d;const u=p.$getNodeByKey(n);u instanceof lo&&((d=u.getNextSibling())==null||d.selectStart(),u.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:zn},children:a.jsx(v.ActionIcon,{size:28,variant:"subtle",radius:6,children:a.jsx(Bt.ProjectIcon,{size:24,fz:24,icon:t,fallback:a.jsx(xe.IconFile,{size:"1em"})})})}),Tn?a.jsx(MS,{editor:e,keyNode:n}):a.jsx(ES,{editor:e,keyNode:n})]})};function LS(e){const n=e.getAttribute("data-emoji");return{node:qa(n||"","")}}const i0=new Map;class lo extends qr.DecoratorBlockNode{constructor(t,r,o,s){super(o,s);we(this,"__emojiCode");we(this,"__refElem");this.__emojiCode=t||"",this.__refElem=r||""}static getType(){return"callout-image"}static clone(t){return new lo(t.__emojiCode,t.__refElem,t.__format,t.__key)}static importJSON(t){return qa(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:LS,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=i0.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){i0.set(this.__key,t)}decorate(t,r){return a.jsx(TS,{emoji:this.__emojiCode,editor:t,keyNode:this.__key})}}function qa(e,n){return new lo(e||"",n||"")}const a0={bullet:xe.IconList,check:xe.IconListCheck,"check-mark":xe.IconCheck,code:xe.IconCode,h1:xe.IconH1,h2:xe.IconH2,h3:xe.IconH3,number:xe.IconListNumbers,paragraph:xe.IconIndentIncrease,quote:xe.IconQuote,fontFamily:xe.IconLetterT,undo:xe.IconArrowBackUp,redo:xe.IconArrowForwardUp,bold:xe.IconBold,italic:xe.IconItalic,underline:xe.IconUnderline,link:xe.IconLink,"color-picker":xe.IconColorPicker,background:xe.IconBucketDroplet,photo:xe.IconPhoto,"photo-check":xe.IconPhotoCheck,"align-left":xe.IconAlignLeft,"align-end":xe.IconAlignLeft,"align-start":xe.IconAlignLeft,"align-right":xe.IconAlignRight,"align-center":xe.IconAlignCenter,"align-justify":xe.IconAlignJustified,"horizontal-rule":xe.IconFlipHorizontal,strikethrough:xe.IconStrikethrough,subscript:xe.IconSubscript,superscript:xe.IconSuperscript,minus:xe.IconMinus,plus:xe.IconPlus,"chevron-down":xe.IconChevronDown,"chevron-right":xe.IconChevronRight,grip:xe.IconGripVertical,"circle-check":xe.IconCircleCheck,"circle-x":xe.IconCircleX,pencil:xe.IconPencil,trash:xe.IconTrash,table:xe.IconTable,"caret-right":xe.IconCaretRight,grid:xe.IconColumns3,"dots-vertical":xe.IconDotsVertical,copy:xe.IconCopy,clipboard:xe.IconClipboard,cut:xe.IconCut,"arrow-bar-to-up":xe.IconArrowBarToUp,"arrow-bar-to-down":xe.IconArrowBarToDown,"arrow-bar-to-left":xe.IconArrowBarToLeft,"arrow-bar-to-right":xe.IconArrowBarToRight,"column-insert-left":xe.IconColumnInsertLeft,"column-insert-right":xe.IconColumnInsertRight,"row-insert-top":xe.IconRowInsertTop,"row-insert-bottom":xe.IconRowInsertBottom,"container-off":xe.IconContainerOff,"table-off":xe.IconTableOff,"layers-union":xe.IconLayersUnion,"layers-substract":xe.IconLayersSubtract,"сlear-format":xe.IconDropletOff,form:xe.IconCheckupList,youtube:xe.IconBrandYoutube,emoji:xe.IconMoodSmile,file:xe.IconFile,success:xe.IconCheck,warning:xe.IconAlertTriangle,alert:xe.IconExclamationCircle,defaultOff:xe.IconBaseline,embed:xe.IconCodeCircle,at:xe.IconAt,paperclip:xe.IconPaperclip,close:xe.IconX,api:xe.IconApi,music:xe.IconMusic,message:xe.IconMessage,reply:xe.IconArrowBackUp,filter:xe.IconFilter,messages:xe.IconMessages,"shield-check":xe.IconShieldCheckFilled,reOpen:xe.IconReload,send:xe.IconSend,expandSidebar:xe.IconLayoutSidebarLeftExpand,palette:xe.IconPalette},Mn=({name:e,iconStyle:n,...t})=>{const r=a0[e]||a0.bullet;return a.jsx(v.Flex,{gap:0,justify:"center",align:"center",...t,children:a.jsx(r,{size:18,stroke:2,style:n,...t})})},NS=({icon:e,title:n,pointerEvents:t="auto",isLoading:r,progress:o,nodeKey:s,onAfterCancel:l,...u})=>{const[d]=tt.useLexicalComposerContext(),{t:f}=He.useTranslation(),{fetchUploadMedia:h,disable:m}=g.useContext(at),A=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 m?null:a.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"}},...u,children:[a.jsxs("div",{className:"empty-node-button__content",children:[r&&!A&&a.jsx(v.Loader,{size:"xs",mb:2,mr:4,color:"gray"}),!r&&a.jsx(Mn,{name:e}),n,r&&l&&a.jsx(v.Text,{component:"span",onClick:b,variant:"link",style:{marginLeft:"auto",cursor:"pointer",pointerEvents:"auto"},children:f("editor.cancel")}),s&&!r&&a.jsx(Mn,{style:{pointerEvents:"auto"},className:"delete-icon",name:"close",size:22,onClick:y})]}),r&&typeof o=="number"&&A&&a.jsx(v.Progress,{w:"100%",value:o,animated:!0,transitionDuration:200})]})},RS="_title_1ozo8_1",jS="_icon_1ozo8_21",IS="_link_1ozo8_39",Ql={title:RS,icon:jS,link:IS},OS=({page:e,titleClassName:n,withTooltip:t=!0,withHover:r=!0})=>{const{t:o}=He.useTranslation(),s=a.jsx(v.Text,{truncate:!0,className:`${Ql.title} ${n||""}`.trim(),"data-empty":!e.title,children:e.title||o("editor.noTitle")});return a.jsxs("div",{className:`${Ql.link} ${r?"":Ql.linkNoHover}`.trim(),onClick:e.onClick,children:[a.jsx("div",{className:Ql.icon,children:e.icon?a.jsx(Bt.ProjectIcon,{size:16,fz:16,icon:e.icon,fallback:a.jsx(xe.IconFile,{size:"1em"})}):a.jsx(Bt.EntityIcon,{item:{...e,type:"PAGE"}})}),t?a.jsx(v.Tooltip,{label:e.title,disabled:!e.title,openDelay:400,children:s}):s]})},DS=g.memo,Kc=DS(OS),PS=({page:e})=>a.jsx("div",{className:"docs-item",children:a.jsx(Kc,{page:e})});function BS({nodeKey:e}){const{pages:n,childPagesLoading:t}=g.useContext(at),{t:r}=He.useTranslation();return n.length===0?a.jsx("p",{style:{margin:0},children:a.jsx(NS,{title:r(t?"editor.menu.other.documents.loading":"editor.menu.other.documents.empty"),icon:"file",pointerEvents:"none",nodeKey:e,isLoading:t})}):a.jsx("div",{className:"docs-container",children:n.map(o=>a.jsx(PS,{page:o},o.id))})}function _S(e){return e.getAttribute("data-child-docs")?{node:DA()}:null}class xi extends qr.DecoratorBlockNode{static getType(){return"childDocs"}static clone(n){return new xi(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 a.jsx(BS,{nodeKey:this.__key})}static importJSON(n){const{format:t,key:r}=n;return new xi(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:_S,priority:2}:null}}}function DA(){return new xi(void 0)}function FS(e){const n=DA(),t=Qt();t==null||t.replace(n)}const PA=p.createCommand("INSERT_CHILD_DOCUMENTS_COMMAND");function WS(e){g.useEffect(()=>{if(!e.hasNodes([xi]))throw new Error("ChildDocsPlugin: ChildDocsNode not registered on editor");return e.registerCommand(PA,()=>(FS(),!0),p.COMMAND_PRIORITY_EDITOR)},[e])}function zS(){const[e]=tt.useLexicalComposerContext();return WS(e),null}function US(e){var o;const n=e.getAttribute("open");return((o=e.firstElementChild)==null?void 0:o.tagName)==="SPAN"?{node:null}:{node:l1(n!==null)}}class Os extends p.ElementNode{constructor(t,r){super(r);we(this,"__open");this.__open=t}static getType(){return"collapsible-container"}static clone(t){return new Os(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:US,priority:1})}}static importJSON(t){return l1(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 l1(e){return new Os(e)}function dr(e){return e instanceof Os}function KS(e){return{node:c1()}}class No extends p.ElementNode{static getType(){return"collapsible-content"}static clone(n){return new No(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:KS,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 c1()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"collapsible-content",version:1}}}function c1(){return new No}function os(e){return e instanceof No}function HS(e){return{node:u1()}}class ss extends p.ElementNode{static getType(){return"collapsible-title"}static clone(n){return new ss(n.__key)}createDOM(n,t){const r=document.createElement("summary");return r.classList.add("Collapsible__title"),hk&&(r.style.cursor="pointer"),r}updateDOM(n,t){return!1}static importDOM(){return{summary:n=>({conversion:HS,priority:1})}}static importJSON(n){return u1()}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(!dr(r))throw new Error("CollapsibleTitleNode expects to be child of CollapsibleContainerNode");if(r.getOpen()){const o=this.getNextSibling();if(!os(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 u1(){return new ss}function So(e){return e instanceof ss}const BA=p.createCommand("INSERT_COLLAPSIBLE_COMMAND");p.createCommand("TOGGLE_COLLAPSIBLE_COMMAND");function YS(e){g.useEffect(()=>{if(!e.hasNodes([Os,ss,No]))throw new Error("CollapsiblePlugin: CollapsibleContainerNode, CollapsibleTitleNode, or CollapsibleContentNode not registered on editor");return ye.mergeRegister(e.registerNodeTransform(No,n=>{const t=n.getParent();if(!dr(t)){const r=n.getChildren();for(const o of r)n.insertBefore(o);n.remove()}}),e.registerNodeTransform(ss,n=>{const t=n.getParent();if(!dr(t)){const r=n.getChildren();for(const o of r)n.insertBefore(o);n.remove();return}}),e.registerNodeTransform(Os,n=>{const t=n.getChildren();if(t.length!==2||!So(t[0])||!os(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=ye.$findMatchingParent(n.anchor.getNode(),o=>So(o));if(r&&So(r)){const o=r.getParent();if(o&&dr(o))return o.getOpen()||o.toggleOpen(),(t=r.getNextSibling())==null||t.selectEnd(),!0}}return!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(BA,()=>(e.update(()=>{const n=u1(),t=p.$createParagraphNode(),r=Qt(),o=l1(!1).append(n.append(t),c1().append(p.$createParagraphNode()));r==null||r.replace(o),t.select()}),!0),p.COMMAND_PRIORITY_LOW))},[e])}function ZS(){const[e]=tt.useLexicalComposerContext();return YS(e),null}function GS(e){const n=e.style.gridTemplateColumns;return n?{node:Lu(n)}:null}class Rr extends p.ElementNode{constructor(t,r){super(r);we(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"&&ye.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:GS,priority:2}:null}}static importJSON(t){return Lu(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 Lu(e){return new Rr(e)}function Hc(e){return e instanceof Rr}function VS(e){const n=e.style.backgroundColor||"transparent";return{node:no(n)}}class jn extends p.ElementNode{constructor(t,r){super(r);we(this,"__backgroundColor");this.__backgroundColor=t}static getType(){return"layout-item"}static clone(t){return new jn(t.__backgroundColor,t.__key)}createDOM(t){const r=document.createElement("div");return r.style.backgroundColor=this.__backgroundColor,typeof t.theme.layoutItem=="string"&&ye.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:VS,priority:2}}}static importJSON(){return no()}isShadowRoot(){return!1}setLayoutBackground(t){this.getWritable().__backgroundColor=t}exportJSON(){return{...super.exportJSON(),type:"layout-item",backgroundColor:this.__backgroundColor,version:1}}}function no(e="transparent"){return new jn(e)}function Mr(e){return e instanceof jn}const d1="calc(50% - 25px) calc(50% - 25px)",qS=4,QS=2,JS="draggable-block-menu",XS=16,l0="application/x-lexical-drag-block",c0=32,f1=e=>e?e.match(/(\d*\.?\d+)%/g):[],_A=e=>e<0?0:e>100?100:e,FA=(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=f1(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 u=s/r;for(let d=0;d<l.length;d++)if(t!==d){const f=Number(l[d])-u;l[d]=`minmax(100px,${_A(f)}%)`}else l[d]=`minmax(100px,${l[d]})`;n.setTemplateColumns(l.join(" "))})},Jf=(e,n,t,r)=>{e.update(()=>{const o=e.getElementByKey(n.getKey());if(!o)return;let s=r;t<r&&(s=r-1);const u=o.style.getPropertyValue("grid-template-columns").match(/minmax\([^)]*\)|\S+/g)||[],d=u.splice(t,1)[0];u.splice(s,0,d),n.setTemplateColumns(u.join(" "))})},Ba=(e,n)=>(e!=null&&e.children?Array.from(e.children):[]).indexOf(n);function $S(e,n,t,r){var d;let o=e.getAttribute("data-direction")==="left",s=e.getAttribute("data-direction")==="right",l=e.getAttribute("data-index"),u=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 m=r instanceof Vr;if((h==null?void 0:h.length)>=4&&!m)return!0;n.update(()=>{var b;let A=0;o?A=0:s?A=((b=f==null?void 0:f.getChildren())==null?void 0:b.length)-1:A=Number(l),m?Jf(n,f,Number(u),A):FA(n,f,A);let y=null;A!==void 0&&n.update(()=>{if(y=f.getChildren()[A],m)t instanceof Rr?y.insertAfter(r.getParent()):y.insertBefore(r.getParent());else if(s)y.insertAfter(no().append(r).append(Er()));else{const x=r.getParent(),w=x==null?void 0:x.getParent();Mr(x)&&(x==null?void 0:x.getChildrenSize())===2&&Mr(x)&&Hc(w)&&vi(n,x,w),y.insertBefore(no().append(r).append(Er()))}})})}else n.update(()=>{const h=Lu(d1);let m;if(ao(t)||dr(t)){const A=r.getParent(),y=A==null?void 0:A.getParent();if(Mr(A)&&(A==null?void 0:A.getChildrenSize())===2&&Hc(y)){const x=y.getParent(),w=x==null?void 0:x.getParent(),k=y.getChildren(),O=k.findIndex(R=>R===A)===0?1:0,T=k[O];if(Mr(T)){const R=T.getChildren()[0];ao(w)&&(w.append(R),y.remove(),m=Lr(w))}}else m=Lr(t,r)}else m=Lr(t);m&&(o?(h.append(no().append(r).append(Er())),h.append(no().append(m).append(Er()))):(h.append(no().append(m).append(Er())),h.append(no().append(r).append(Er()))),t.insertAfter(h),t.remove(),m.selectStart())});return!0}return!1}function eE(e,n,t="right",r=!1){e.update(()=>{const o=p.$getNearestNodeFromDOMNode(n),s=o==null?void 0:o.getParent();if(s){if(f1(s.__templateColumns).length===4)return;let u=Ba(n.parentElement,n);t==="right"&&(u=u+1),FA(e,s,u)}const l=no().append(p.$createParagraphNode()).append(Er());o&&(t==="right"?r?(o.insertBefore(Lr(o)),o.selectStart()):(o.insertAfter(l),l==null||l.selectStart()):(o.insertBefore(l),l.selectStart()))})}const WA=(e,n)=>{const t=n==null?void 0:n.getParent();let r=f1(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)),u=l.reduce((h,m)=>h+m,0),f=l.map(h=>h/u*100).map(h=>`minmax(50px,${h.toFixed(2)}%)`);t==null||t.setTemplateColumns(f.join(" "))},tE=e=>e.className.includes("editor-image")||e.className.includes("video-container")?e:e.className.includes("editor-excalidraw")?e.firstChild:null,zA=(e,n)=>n!=null&&n.__key&&e!==n.__key?zA(e,n==null?void 0:n.getParent()):e===(n==null?void 0:n.__key),Yc=(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(),u=t==="right"?(f=o.getParent())==null?void 0:f.getNextSibling():(h=o.getParent())==null?void 0:h.getPreviousSibling();if(l&&u&&s instanceof Rr){const m=e.getElementByKey(l.getKey()),A=e.getElementByKey(s.getKey()),y=Ba(A,m);l&&s&&u&&(t==="right"&&(Jf(e,s,y+1,y),u.insertAfter(l)),t==="left"&&(Jf(e,s,y,y+1),u.insertBefore(l)))}})};function nE(e){e&&(e.style.display="none")}function u0({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 rE(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 oE(e){return!!e.closest(`.${JS}`)}function d0(e,n,t,r){if(!e){n.style.opacity="0";return}n.style.display="block";let o=null;const s=tE(e);s&&s.style.justifyContent!=="left"&&s.firstChild instanceof HTMLElement?o=s.firstChild.getBoundingClientRect():o=e.getBoundingClientRect();let l=null,u=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 L=window.getComputedStyle(k),O=parseFloat(L.lineHeight),T=parseFloat(L.fontSize);f=Math.ceil(T+(O-T)/2),l=k.getBoundingClientRect()}else if(e.firstChild instanceof HTMLElement&&e.firstChild.tagName==="BR"&&e.tagName!=="CODE"){const L=window.getComputedStyle(e,"::before");f=parseFloat(L.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(),m=(l==null?void 0:l.top)||o.top,A=f||u,y=n.clientHeight,b=A-y;let x=!d||!A?o.top+7-h.top:m+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=m-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=m-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 f0(e,n){const{transform:t}=n.style;n.style.transform="translateZ(0)",e.setDragImage(n,0,0),setTimeout(()=>{n.style.transform=t})}function sE(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 iE(e,n,t,r,o,s,l){var _;const{top:u,height:d,width:f,left:h}=n.getBoundingClientRect(),{top:m,left:A,width:y}=o==null?void 0:o.getBoundingClientRect(),{marginTop:b,marginBottom:x}=rE(n);let w=u;t>=u?(l.current.isBottom=!0,w+=d+x/2):(l.current.isBottom=!1,w-=b/2);const k=w-m-QS,L=XS-qS,T=s.target.closest(".dsd__theme__layoutDivider");e.setAttribute("data-index",""),e.style.background="deepskyblue";const R=h-A-L,E=y-R,M=r-A,P=h+f,I=M>=E,F=r>=P-c0&&r<=P+c0;if(r<=h&&!T){if(n.closest(".dsd__theme__layoutItem"))return;e.style.transform=`translate(${R}px, ${u-m}px)`,e.style.width="4px",e.style.height=`${d}px`,e.style.opacity=".4",e.setAttribute("data-direction","left")}else if((I||F)&&!T&&!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-R}px, ${u-m}px)`,e.style.width="4px",e.style.height=`${d}px`,e.style.opacity=".4",e.setAttribute("data-direction","right");else if(T){s.preventDefault();const N=(_=T.parentNode)==null?void 0:_.parentNode;(N==null?void 0:N.children.length)===4&&(e.style.background="red");const j=T.parentNode,U=Ba(N,j),W=U?T.getBoundingClientRect().left-A:R+30;e.style.transform=`translate(${W}px, ${u-m}px)`,e.style.width="4px",e.style.height=`${d}px`,e.style.opacity=".4",e.setAttribute("data-index",`${U}`)}else e.style.transform=`translate(${R}px, ${k}px)`,e.style.width=`${f+L}px`,e.style.opacity=".4",e.style.height="4px",e.setAttribute("data-direction","")}function h0(e){e&&(e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)")}const vi=(e,n,t)=>{var s,l,u;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)){WA(e,d),hu(e,d);const f=d.getPreviousSibling()??d.getNextSibling();(u=(l=f==null?void 0:f.getFirstChild)==null?void 0:l.call(f))==null||u.selectEnd()}const o=e.registerCommand(p.DELETE_CHARACTER_COMMAND,()=>(o(),!0),p.COMMAND_PRIORITY_NORMAL);return!0},aE=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.anchor.getNode(),r=ye.$findMatchingParent(t,os),o=ye.$findMatchingParent(t,dr);return Mu(e,o,r)&&os(r)}return!0},lE=()=>{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!dr(r)||r.getOpen()?!1:(r.setOpen(!0),!0)},cE=()=>{var n;const e=p.$getSelection();if(p.$isRangeSelection(e)&&e.isCollapsed()&&e.anchor.offset===0){const t=ye.$findMatchingParent(e.anchor.getNode(),dr);if(dr(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},uE=()=>{const e=p.$getSelection();if(p.$isRangeSelection(e)&&e.isCollapsed()){const n=ye.$findMatchingParent(e.anchor.getNode(),dr);if(dr(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},dE=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 vi(e,t,r)}return!1},p0=[{value:"left",icon:TC,labelKey:"editor.toolbar.left"},{value:"center",icon:Ic,labelKey:"editor.toolbar.center"},{value:"right",icon:LC,labelKey:"editor.toolbar.right"}],UA=({currentAlignment:e,onAlign:n,className:t,targetLabel:r})=>{var u;const{t:o}=He.useTranslation(),s=((u=p0.find(d=>d.value===e))==null?void 0:u.icon)??Ic,l=a.jsx("span",{style:{color:"var(--mantine-primary-color-filled)",display:"flex",alignItems:"center"},children:a.jsx(ue,{icon:Or,size:16})});return a.jsxs(v.Menu,{shadow:"md",position:"bottom-end",transitionProps:zn,children:[a.jsx(v.Menu.Target,{children:a.jsx(Cn,{className:t,label:r??o("editor.toolbar.align"),icon:s,iconColor:"var(--mantine-color-gray-text)"})}),a.jsx(v.Menu.Dropdown,{p:4,children:p0.map(d=>a.jsx(v.Menu.Item,{onClick:()=>n(d.value),leftSection:a.jsx("span",{style:{color:"var(--mantine-color-gray-text)",display:"flex",alignItems:"center"},children:a.jsx(ue,{icon:d.icon,size:16})}),rightSection:e===d.value?l:void 0,children:o(d.labelKey)},d.value))})]})},fE=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"]},Xf=(()=>{var n;const e=(n=window.navigator)==null?void 0:n.userAgentData;return e!==void 0?e.mobile:window.innerWidth<=800&&window.innerHeight<=600})(),hE={center:-8,right:2,left:-18},pE=(e,n,t,r)=>{const s=e.width/2,l=e.height/2,u=r==null?void 0:r.classList[1],d=hE[u];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)}}},gE=(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,u=n<=32,d=n>=e.width-32;return s&&u?r.includes("nw-resize")?"nw-resize":"default":s&&d?r.includes("ne-resize")?"ne-resize":"default":l&&u?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":u?r.includes("w-resize")?"w-resize":"default":d&&r.includes("e-resize")?"e-resize":"default"},Jl=32,Xl=(e,n)=>e&&typeof e=="number"?Math.min(e/n*100,95.5):95.5;function mE(e){const t=100-4e3/e;return{minResizePercent:Math.max(5,9792/e),maxWidthPercent:t}}const h1=({editor:e,width:n,height:t,initialHeight:r,initialWidth:o,children:s,onResizeStart:l,isIcon:u,onResizeEnd:d,alignment:f,isEmbed:h,type:m,disableInteractions:A=!1})=>{const[y,b]=g.useState({x:-1e3,y:-1e3}),[x,w]=g.useState(30),[k,L]=g.useState("default"),[O,T]=g.useState(!1),{imperativeHandleRef:R,disable:E}=g.useContext(at),M=A||!!E,[P,I]=g.useState(null),F=g.useMemo(()=>fE(f)||["e-resize"],[f]),_=F.length===1&&F[0]==="e-resize",N=g.useRef(null),j=g.useRef(null),U=g.useRef(null),W=g.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=(te,q=95.5)=>{var ie;const ce=(ie=e._window)==null?void 0:ie.innerWidth;if(ce){let ne=100;h&&(ne=250);const H=ne/ce*100;return te<H?H:te>q?q:te}else return te<20?20:te>100?100:te},Z=(te,q)=>{const ce=Math.min(te,q);return 15+(Math.max(200,Math.min(800,ce))-100)/500*15},Q=(te,q,ce)=>{if(L("default"),!O)return;let ie=k;ie=gE(te,q,ce,F),W.current.isResizing&&(ie=k),L(ie),w(x),b(ne=>pE(te,ie,h||!1,N.current)||ne)},re=te=>{var ne;if(Xf)return;te.preventDefault();const q=(ne=N.current)==null?void 0:ne.getBoundingClientRect();if(!q)return;const ce=te.clientX-q.left,ie=te.clientY-q.top;W.current.isResizing||Q(q,ce,ie)},oe=(te,q=12,ce=95.5,ie=W.current.rootWidth)=>{const ne=N.current,H=W.current;if(!ne||te.button===2||!(H!=null&&H.isResizing))return;const X=ne.getBoundingClientRect(),Y=te.clientX-X.left,J=te.clientY-X.top;Q(X,Y,J);const $=.17,Ae=f==="right",me=f==="center",ke=H.isLeft,Fe=H.isTop,De=H.isBottom,Pe=H.direction==="y",Ue=H.isRight,Ze=Math.floor(Ae?X.right-te.clientX-(X.right-H.startX):te.clientX-H.startX),It=Math.floor(te.clientY-H.startY);let Mt=0;ke||Ue?Mt=Ze/ie*100:(Fe||De||me)&&(Mt=It*$),(ke||Fe)&&(!Ae||Pe&&!ke)&&(!De||me)&&(Mt=-Mt),(Fe&&Ue||De&&Ue)&&(Mt=Ze/ie*100),Mt=Math.max(-100,Math.min(100,Mt));const Gt=H.startWidthPercent+Mt,_t=H.startHeightPercent+Mt;H.currentWidthPercent=B(Math.max(q,Gt),ce),H.currentHeightPercent=B(Math.max(q,_t),ce),ne.style.width=`${H.currentWidthPercent}%`,ne.style.height=`${H.currentHeightPercent}%`},Ce=()=>{const te=U.current;te&&(document.removeEventListener("mousedown",te,!0),document.removeEventListener("pointerdown",te,!0),document.removeEventListener("click",te,!0),U.current=null)},Te=te=>{var ne,H;const q=W.current;if(q.isResizing=!1,Ce(),(ne=N.current)==null||ne.classList.remove("is-resizing"),(H=N.current)==null||H.releasePointerCapture(te.pointerId),d(q.currentWidthPercent+"%",q.currentHeightPercent+"%"),document.removeEventListener("pointermove",oe),!N.current)return;const ce=N.current.getBoundingClientRect(),ie=Z(ce.width,ce.height);w(ie)},Me=te=>{var Oe,fe;const q=te.target;if(q!=null&&q.closest(".video-player-controls")||q!=null&&q.closest(".video-player-menu-dropdown")||q!=null&&q.closest(".mantine-Menu-dropdown"))return;if(te.button===2||!O){te.preventDefault(),te.stopPropagation();return}if(!N.current)return;N.current.classList.add("is-resizing");const ce=e.getRootElement();if(!ce)return;const ie=ce.getBoundingClientRect();if(!e.isEditable()||k==="default")return;const ne=j.current;if(ne===null)return;const H=(Oe=N.current)==null?void 0:Oe.getBoundingClientRect();if(!ne.getBoundingClientRect()||!H)return;if(te.preventDefault(),te.stopPropagation(),!U.current){const ge=pe=>{W.current.isResizing&&(pe.preventDefault(),pe.stopPropagation())};U.current=ge,document.addEventListener("mousedown",ge,!0),document.addEventListener("pointerdown",ge,!0),document.addEventListener("click",ge,!0)}const{width:Y,height:J,top:$,left:Ae}=H,me=te.clientX-Ae,ke=te.clientY-$,Fe=ke<=Jl,De=ke>=J-Jl,Pe=me<=Jl,Ue=me>=Y-Jl,Ze=W.current,It=window.getComputedStyle(ce),Mt=parseFloat(It.paddingTop),Gt=parseFloat(It.paddingBottom),_t=parseFloat(It.paddingLeft),V=parseFloat(It.paddingRight);Ze.rootHeight=ie.height-Mt-Gt||0,Ze.rootWidth=ie.width-_t-V||0,Ze.ratio=Y/J,Ze.currentWidth=Ze.currentWidth||Y,Ze.currentWidthPercent=+N.current.style.width.replace("%",""),Ze.currentHeight=Ze.currentHeight||J,Ze.currentHeightPercent=+N.current.style.height.replace("%",""),Ze.startX=te.clientX,Ze.startY=te.clientY,Ze.startWidth=Ze.currentWidth||Y,Ze.startWidthPercent=Ze.currentWidthPercent,Ze.startHeight=Ze.currentHeight||J,Ze.startHeightPercent=Ze.currentHeightPercent,Ze.isResizing=!0,Ze.isTop=Fe,Ze.isBottom=De,Ze.isLeft=Pe,Ze.isRight=Ue,Ze.direction=De||Fe?"y":"x",l&&l(),N.current.setPointerCapture(te.pointerId);const de=((fe=N.current.parentElement)==null?void 0:fe.offsetWidth)??Ze.rootWidth,{maxWidthPercent:he,minResizePercent:Le}=mE(de);document.addEventListener("pointermove",ge=>{var pe,We;return oe(ge,m==="video"?40:Le,he,(We=(pe=N.current)==null?void 0:pe.parentElement)==null?void 0:We.offsetWidth)}),document.addEventListener("pointerup",Te,{capture:!0,once:!0})};g.useEffect(()=>{var ne;const te=N.current;if(!te)return;if(typeof n=="number"&&typeof t=="number"){te.style.width=`${B(n)}%`,te.style.height=`${B(t)}%`;return}const q=(ne=te.parentElement)==null?void 0:ne.getBoundingClientRect();if(!q)return;const ce=Xl(r,q.height),ie=Xl(o,q.width);te.style.width=`${ie}%`,te.style.height=`${ce}%`},[n,t,o,r]),g.useEffect(()=>{var ie;if(!N.current)return;const te=N.current.getBoundingClientRect(),q=(ie=N.current.parentElement)==null?void 0:ie.getBoundingClientRect(),ce=Z(te.width,te.height);if(w(ce),typeof n=="number"&&typeof t=="number")N.current.style.width=`${B(n)}%`,N.current.style.height=`${B(t)}%`,W.current.currentWidthPercent=n,W.current.currentHeightPercent=t;else if(q){const ne=Xl(r,q.height),H=Xl(o,q.width);requestAnimationFrame(()=>{N.current&&(N.current.style.height=`${ne}%`,N.current.style.width=`${H}%`)}),W.current.currentWidthPercent=H,W.current.currentHeightPercent=ne}else N.current.style.height="100%",N.current.style.width="100%",W.current.currentWidthPercent=100,W.current.currentHeightPercent=100},[N.current,u,r,o]);const Re=te=>{const ce=te.target.closest("[data-lexical-decorator]");return ce?e.update(()=>{const ie=p.$getNearestNodeFromDOMNode(ce);ie&&ie instanceof p.DecoratorNode&&(typeof ie.select=="function"&&ie.select(),I(ie))}):I(null),!1},ae=()=>(P&&setTimeout(()=>{e.update(()=>(P.insertAfter(p.$createParagraphNode()).selectStart(),I(null),!0))}),!1);return R!=null&&R.current&&(R.current.decoratorEnterAction=ae),g.useEffect(()=>{const te=e.registerCommand(p.CLICK_COMMAND,Re,p.COMMAND_PRIORITY_NORMAL);return()=>{te()}},[P]),Xf?s:a.jsxs("div",{ref:N,className:`resizable-container ${f||""} ${_?"hide-padding":""} ${m?`resizable-container--${m}`:""}`,style:{cursor:k,pointerEvents:M?"none":"auto"},onMouseMove:M?void 0:re,onMouseEnter:M?void 0:()=>T(!0),onMouseLeave:M?void 0:()=>{T(!1),L("default")},onMouseUp:M?void 0:()=>{e.dispatchCommand(Xo,"show_menu")},onPointerDown:M?void 0:Me,children:[a.jsx("svg",{className:`resizable-container__handle ${O?"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:O?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:a.jsx("rect",{x:0,y:0,width:"100%",height:"100%",stroke:"#D9D9D9",strokeWidth:8,rx:15,ry:15,fill:"none"})}),a.jsx("div",{ref:j,className:"resizable-container__inner",style:{height:"100%",width:"100%",pointerEvents:W.current.isResizing?"none":"auto"},children:s})]})},Sc=400;function wi(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,u=n>0&&t.scrollTop+t.clientHeight<t.scrollHeight;if(l||u)return}t=t.parentElement}e.preventDefault()}const CE=299,g0={passive:!1,capture:!1},Zc={passive:!1,capture:!0};function AE(){const e=document.createElement("div");return Object.assign(e.style,{position:"fixed",inset:"0",zIndex:String(CE),pointerEvents:"auto",background:"transparent",touchAction:"none"}),e.setAttribute("aria-hidden","true"),e.addEventListener("wheel",wi,g0),e.addEventListener("touchmove",wi,g0),document.body.appendChild(e),e}let KA=0,oa=null;function Qa(){KA++>0||(document.addEventListener("wheel",wi,Zc),document.addEventListener("touchmove",wi,Zc),oa=AE())}function Ja(){--KA>0||(document.removeEventListener("wheel",wi,Zc),document.removeEventListener("touchmove",wi,Zc),oa==null||oa.remove(),oa=null)}const HA=e=>typeof e=="string"&&e.includes("%")?parseFloat(e):e;function bE(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 YA(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",u=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${u}!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 yE(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 ZA(e){if(e)return e.includes("lookerstudio")?yE(e):e.includes("maps")?YA(e):!bE(e,{requireHostname:!1})&&!e.startsWith("/")&&!e.startsWith("#")&&!e.startsWith("mailto:")&&!e.startsWith("sms:")&&!e.startsWith("fax:")&&!e.startsWith("tel:")?`https://${e}`:e}const xE=28,Ds=g.forwardRef(({src:e,title:n,icon:t,canonicalUrl:r,isSelected:o,width:s="100%",height:l,saveUrl:u,editor:d,updateMinHeight:f,disableOutline:h},m)=>{var w;const A=g.useRef(null),[y,b]=g.useState(!1),x=g.useMemo(()=>{var L;return(l?parseFloat(String(l)):((L=A.current)==null?void 0:L.scrollHeight)||0)+xE},[l,(w=A.current)==null?void 0:w.scrollHeight]);return g.useEffect(()=>{const k=setTimeout(()=>{b(!0),e&&(d==null||d.update(()=>{u(e)}))},0);return()=>clearTimeout(k)},[e]),g.useEffect(()=>{x&&f(x)},[x]),a.jsx(v.Box,{className:`frame-container ${o?"selected":""}`,style:{overflow:"hidden",width:"inherit",height:"100%",padding:"0px"},children:y&&a.jsx("iframe",{ref:m||A,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:ZA(e),allowFullScreen:!0})})}),vE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAACglBMVEUAAAAktvjtMET/wAAmtfkhsfkltPjsL0nxVAD/vwAltfj/wgD/wAD/vwD/wAD/wAD/wQD/wgAArvYltvj/wAD/wAD/uwD/vQAQr/8ltvnqKUPHJ0LuMUrKK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D6NurIGm8AAAAAASUVORK5CYII=",FE="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",WE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAn1BMVEUAAAD3jR3zhhT1hxTthxb3dwD3jR34jR74jR33jR33ihf4jB33jB34jR33jRz4jBz3jBz4ixv4iRn3hgD3jR33jRz3jB34ixf5iBb3jRz3jR33jR33jB33jB32jBz4jBz4jBz4jBn4jR33jR33jRz3jBz3ixv4jR33jR33jBz3jB34jRz4jR33jRz4jRv3jRz2jBr3jRr5jBr4jRz3jR5wb2LMAAAANHRSTlMA/AwPCAPo+fWvIovN8pxLNi4TBu3GchkW496qgnhWUEUd2JdlYEDSwbSloblrXH07MyeRXwFKAQAABC1JREFUaN7t2ulymzAQAODlMgYMGGyM7/uIHR9Juu//bJ1pnQKJtBUyUtpOv9/YAiHtaoXgvz+eud8NBtu9Bb+1ii+zwfW110yrnos/uOelRba67eBP4aZrw4OWLpYYV+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nYu8uNoZ3I+H+C9Yd6ZxyF9La9sw2mOzbFNara8bNu9S8BideF27sprMr0oKOj9Ec8TsNKfq7hOnG3iUcKSB+j1PTuo3Gtnc+Yz473e7h7vw+X2mGJV+P4/siVuy8Ae9ff0wouNpoXU2Is2lSXI+tmpoXdBLu0wbiPdqaFa8rXS/O7mdO6xVIsmMZscMiCWMoNfmvQDOWZuYJb89/DMu2kyTbBHHschDuXZEmfhrSNgQCyyH1iVgkKo0JED/+HEz4IvDCcezrp36UJ1X5ThGlikSGDfBO4vDxOo5rzwfKoqtfOPYGuTUjMj4BNv860O6n0nzXSGruiknflX4vxaH9ODLxIlmrZtUMH1zolZ6udiEVMrHjpTjcGSsxWpKNxRkUONUcvPMHQDB/BA/9FdC+FSC0BtTC9FI/rwDhvUod9gci2UPYhkmlqMH3QFqlyAZ+onrvIp+e+v9+1d2Lv4munAAAAABJRU5ErkJggg==",HE="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",YE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG5ElEQVR42u2dX4jUVRTH787Mzm5l/yiIwictVgS3ohcfQiVyE/9kQRFmDyZUkNhDURTqQ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zrITeKKOhZ6mwTLV73GeUnEYlT0u0yXiSnTsYj6tzxVc5qyIK7m70hgl5LCAVx4uiwf4JfFQQgALgitKiMZtLc4Ml7nZUqEdlGGPCZgXlOCoMM9XUIaejFP64TmnS12d85s702IB8xyUwopxU1jGEJqqUE0rcCbXL14F7F9LdXcu+YrKgKf2VGtCWNDgD1pTWmFiM5xSkz0zW6S1JiywfvTJrlQOwAN9boIQ1BxpvoAlgYbs1xlQzU0QgjgjSU9hES9v5zGbmCHtZpGBKyTFIaxkTRU7tlZkzGoV1uomUo5SsscXutIBrDZMpHxN6V09VZ7VxG3qvgqEzCErnZuwGk8UpChk9SwPCV4JG2QRkgpOPSVDQrO+0tP7Bc+C6EuHBG1cugYPNOnRZV6R0AewiUXXus3gi4LcD6cMNsk6pNwtyTPV9TlsInykeAP8qSQTdlLYyPDkjnZO9kR7cNjIiuW2dcUm3iy3yh5SZ3tGFkZpBWzFfSZxm+ENtYpdC9iu9JBSchjxs04m3KiwXXpHykk8Xx/s/ROGsEWKG45xjYiRW/om4AVqzebfw3gaK0gmHMBLCn12hvC00VDiO7xe0CMpzmbjsrsFrxkaJCmdCcCNibioF/CirEOa3oUiiDWkdQJexGsFSUyP80hBWh/CywoPaUxx2VQ1SnhdEOFqNYfXWTGuFZuwA3FiuI49wC5qHVfREg67KK64hlKrsI/UWRW3DWEn6o2tiOuksJtcvsksGq8In2wys30B+xnuTDKuV6uwI94qKMXNM9hV5aEM/RHCvtJeKu7Jgp2JRqLW2hh3P5X79sFBC3uGC9oMdrH217TOhLdI52vNagFv0jCcplUc3sXQZ+ZkwuF9pu4hTHMMDm+UXSfGc2fBeyUulW7kq/Bu9ZfIin0yOLydyO0/qtz4JnyC6jvaGPba+iF8iDByx2U/ahxfkhA+SDWK+vKo/SRV4dOEaarHv+APh8PhcDj8ezj8Hd8AxYE9wZItsP4AAAAASUVORK5CYII=";function QE({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 a.jsx(Ds,{...n,src:n.attrs.href,icon:a.jsx(v.Image,{src:GA,alt:"Diagrams.net",width:16,height:16}),canonicalUrl:n.attrs.href,title:s})}function JE(e){return e.endsWith(".pibb")?e:`${e}.pibb`}function XE(e){const n=JE(e.attrs.href);return a.jsx(Ds,{...e,src:n,canonicalUrl:n,width:"100%",title:"GitHub Gist"})}function $E({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,a.jsx(Ds,{...n,disableOutline:!0,width:"100%",height:`${o}px`,src:`https://open.spotify.com/embed${r}`,title:"Spotify Embed",allow:"encrypted-media"})}function eM({matches:e,...n}){const t=e[2];return e[1]==="c"?a.jsx(Ds,{...n,width:"316px",height:"141px",src:`https://trello.com/embed/card?id=${t}`,title:`Trello Card (${t})`}):a.jsx(Ds,{...n,width:"248px",height:"185px",src:`https://trello.com/embed/board?id=${t}`,title:`Trello Board (${t})`})}function tM({matches:e,...n}){const t=e[4],r=e[5],o=`https://player.vimeo.com/video/${t}?byline=0${r?`&h=${r}`:""}`;return a.jsx(Ds,{...n,src:o,canonicalUrl:o,title:`Vimeo Embed (${t})`,height:"412px",referrerPolicy:"origin"})}const nM={github:"GitHub Gist",figma:"Figma",vimeo:"Vimeo Embed"},Ii=[{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:a.jsx(Ut,{className:"integration-icon",src:KE}),name:"Spotify",placeholder:"https://open.spotify.com/...",component:$E},{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:a.jsx(Ut,{className:"integration-icon",src:EE}),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:a.jsx(Ut,{className:"integration-icon",src:vE}),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:a.jsx(Ut,{className:"integration-icon",src:wE}),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:a.jsx(Ut,{className:"integration-icon",src:kE}),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:a.jsx(Ut,{className:"integration-icon",src:GA}),name:"Diagrams.net",placeholder:"https://viewer.diagrams.net/...",component:QE},{parentKey:"integrations",platform:"descript",keywords:["audio"],key:"descript",hide:!1,regexMatches:[/^https?:\/\/share\.descript\.com\/view\/(\w+)$/],icon:a.jsx(Ut,{className:"integration-icon",src:SE}),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:a.jsx(Ut,{className:"integration-icon",src:ME}),name:"GitHub Gist",placeholder:"https://gist.github.com/...",component:XE},{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:a.jsx(Ut,{className:"integration-icon",src:OE}),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:a.jsx(Ut,{className:"integration-icon",src:NE}),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:a.jsx(Ut,{className:"integration-icon",src:RE}),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:a.jsx(Ut,{className:"integration-icon",src:LE}),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:a.jsx(Ut,{className:"integration-icon",src:DE}),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:a.jsx(Ut,{className:"integration-icon",src:PE,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:a.jsx(Ut,{className:"integration-icon",src:TE,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:a.jsx(Ut,{className:"integration-icon",src:jE,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:a.jsx(Ut,{className:"integration-icon",src:IE,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:a.jsx(Ut,{className:"integration-icon",src:BE,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:a.jsx(Ut,{className:"integration-icon",src:_E,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:a.jsx(Ut,{className:"integration-icon",src:FE,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:a.jsx(Ut,{className:"integration-icon",src:WE,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:a.jsx(Ut,{className:"integration-icon",src:zE,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:a.jsx(Ut,{className:"integration-icon",src:UE,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:a.jsx(Ut,{className:"integration-icon",src:HE,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:a.jsx(Ut,{className:"integration-icon",src:YE,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:a.jsx(Ut,{className:"integration-icon",src:ZE,alt:"Trello"}),component:eM,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:a.jsx(Ut,{className:"integration-icon typeform",src:GE,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:a.jsx(Ut,{className:"integration-icon",src:VE,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:a.jsx(Ut,{className:"integration-icon",src:qE,alt:"Vimeo"}),name:"Vimeo",placeholder:"https://vimeo.com/...",component:tM}];function Ut({w:e=16,h:n=16,...t}){return a.jsx(v.Image,{w:e,h:n,...t})}const $f=(e,n=[])=>{const t=n??[];for(const r of t){const o=e.match(r);if(o)return o}return!1};function rM(e){for(const n of Ii){const t=$f(e,n.regexMatches);if(t)return{embed:n,matches:t}}}function VA(e){var r;let n=null;const t=Ii.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 oM(e,n){var r;const t=Ii.find(o=>o.platform===e);return t?((r=t==null?void 0:t.getIframeUrl)==null?void 0:r.call(t,n))||"valid":""}const sM=({height:e,width:n,id:t,platform:r,src:o})=>{const s=nM[r]||r,u=`${parseInt(e,10)-24}px`;return a.jsxs("span",{className:"frame-container",style:{width:n,height:e},children:[a.jsx("iframe",{"data-lexical-embedid":t,"data-lexical-platform":r,src:o,style:{margin:0},width:"100%","data-exportheight":e,"data-exportwidth":n,height:u,allowFullScreen:!0,frameBorder:"0"}),a.jsx("span",{className:"frame-bar","data-title":s,children:a.jsx("a",{className:"frame-open-link",href:o,target:"_blank",rel:"noopener noreferrer"})})]})},ea="light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))";function m0({icon:e,title:n,actions:t}){return a.jsxs("div",{className:"embed-header",children:[a.jsxs("div",{className:"embed-header__title",children:[a.jsx("div",{className:"embed-header__icon",children:e}),a.jsx(v.Text,{size:"sm",fw:500,c:"bright",truncate:!0,children:n})]}),a.jsx("div",{className:"embed-header__actions",children:t})]})}function df({showPreview:e,onTogglePreview:n,onViewOriginal:t,onCopyLink:r,onDelete:o}){const{t:s}=He.useTranslation();return a.jsxs(v.Menu,{shadow:"md",position:"bottom-end",withinPortal:!0,children:[a.jsx(v.Menu.Target,{children:a.jsx(Cn,{className:"embed-action-btn",label:s("editor.embed.moreAction"),icon:so,iconColor:"var(--mantine-color-gray-text)"})}),a.jsxs(v.Menu.Dropdown,{miw:232,children:[a.jsx(v.Menu.Item,{leftSection:a.jsx(ue,{icon:e?qh:GC,size:16,color:"currentColor"}),onClick:n,children:s(e?"editor.embed.hidePreview":"editor.embed.showPreview")}),a.jsx(v.Menu.Divider,{}),a.jsx(v.Menu.Item,{leftSection:a.jsx(ue,{icon:DC,size:16,color:"currentColor"}),onClick:t,children:s("editor.embed.viewOriginal")}),a.jsx(v.Menu.Item,{leftSection:a.jsx(ue,{icon:Yh,size:16,color:"currentColor"}),onClick:r,children:s("editor.embed.copyLink")}),a.jsx(v.Menu.Divider,{}),a.jsx(v.Menu.Item,{color:"red",leftSection:a.jsx(ue,{icon:_n,size:16,color:"currentColor"}),onClick:o,children:s("editor.embed.delete")})]})]})}function $l({opened:e,onClose:n,hasPreview:t,showPreview:r,onTogglePreview:o,onViewOriginal:s,onCopyLink:l,onDuplicate:u,onDelete:d}){const{t:f}=He.useTranslation(),h=m=>{n(),m()};return a.jsx(Ur,{opened:e,onClose:n,title:f("editor.menu.main.code.mobileActions"),children:a.jsxs(v.Stack,{gap:16,p:0,children:[t&&a.jsx(v.Stack,{gap:2,p:0,children:a.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:ea,leftSection:a.jsx(ue,{icon:r?qh:GC,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(o),children:f(r?"editor.embed.hidePreview":"editor.embed.showPreview")})}),a.jsxs(v.Stack,{gap:2,p:0,children:[t&&a.jsxs(a.Fragment,{children:[a.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:ea,leftSection:a.jsx(ue,{icon:DC,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(s),children:f("editor.embed.viewOriginal")}),a.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:ea,leftSection:a.jsx(ue,{icon:Yh,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(l),children:f("editor.embed.copyLink")})]}),u&&!t&&a.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:ea,leftSection:a.jsx(ue,{icon:jo,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(u),children:f("editor.contextMenu.duplicate")})]}),a.jsx(v.Stack,{gap:2,p:0,children:a.jsx(v.Button,{variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:ea,leftSection:a.jsx(ue,{icon:_n,size:16,color:"var(--mantine-color-red-6)"}),onClick:()=>h(d),children:f("editor.embed.delete")})})]})})}function iM({opened:e,onClose:n,title:t,url:r,onUrlChange:o,onSubmit:s,onCancel:l,inputPlaceholder:u,invalidUrl:d,errorMessage:f}){const{t:h}=He.useTranslation();return a.jsx(Ur,{opened:e,onClose:n,title:t,children:a.jsxs(v.Stack,{gap:16,p:0,children:[a.jsx(v.TextInput,{placeholder:u,type:"url",size:"sm",variant:"default","data-autofocus":!0,value:r,onChange:m=>o(m.currentTarget.value),error:d?f:void 0}),a.jsxs(v.Stack,{gap:8,p:0,children:[a.jsx(v.Button,{h:36,fullWidth:!0,onClick:s,disabled:!r,children:h("editor.embed.save")}),a.jsx(v.Button,{h:36,fullWidth:!0,variant:"subtle",color:"gray",onClick:l,children:h("editor.cancel")})]})]})})}function aM({className:e,format:n,platform:t,embedId:r,embedSrc:o="",width:s,editor:l,nodeKey:u,create:d,showPreview:f}){const[h,m]=g.useState(r||""),[A,y]=g.useState(!1),[b,x]=g.useState(d||!1),[w,k]=g.useState(f!==!1),{t:L}=He.useTranslation(),{disable:O,onTrack:T}=g.useContext(at),[R,{open:E,close:M}]=Yn.useDisclosure(!1),[P,{open:I,close:F}]=Yn.useDisclosure(!1),_=Au(),N=g.useMemo(()=>Ii.find(Y=>Y.platform===t),[t]);g.useEffect(()=>{if(b)return Tn||Qa(),()=>{Tn||Ja()}},[b]);const j=g.useMemo(()=>rM(h),[h]);g.useEffect(()=>{m(r||"")},[r]);const U=g.useMemo(()=>j!=null&&j.embed.transformMatch?j.embed.transformMatch(j.matches):o||r||"",[j,o,r]),W=g.useMemo(()=>ZA(U),[U]),B=N!=null&&N.icon?N.icon:a.jsx(ue,{icon:tf,size:20,color:"var(--mantine-color-gray-text)"}),Z=(N==null?void 0:N.name)||L("editor.embed.insert"),Q=Y=>{l.update(()=>{const J=p.$getNodeByKey(u);return ta(J)&&J.setMinHeight(Y),!0})},re=Y=>{const J=p.$getNodeByKey(u),$=$f(h,(j==null?void 0:j.embed.regexMatches)||[]);if(ta(J)&&$){const Ae=h.includes("maps");if(Y&&!Ae){J.setSrc(Y);return}J.setPlatform(j==null?void 0:j.embed.platform),J.setId(h),Ae?J.setSrc(YA(h)):j!=null&&j.embed.transformMatch?J.setSrc(j==null?void 0:j.embed.transformMatch(j==null?void 0:j.matches)):J.setSrc(h)}},oe=(Y,J)=>{l.update(()=>{p.$setSelection(null);const $=p.$getNodeByKey(u);return ta($)&&$.setWidthAndHeight(Y,J),!0})},Ce=()=>{if(!$f(h,(j==null?void 0:j.embed.regexMatches)||[])&&!(j!=null&&j.embed.platform)){y(!0);return}l.update(()=>{const J=p.$getNodeByKey(u);if(!J)return;re();const $=J.getNextSibling();$&&p.$setSelection($.selectNext())}),x(!1),y(!1)},Te=Y=>{Y.preventDefault(),Ce()},Me=()=>{x(!1),m(""),y(!1)},Re=()=>{T==null||T("block_deleted"),l.update(()=>{const Y=p.$getNodeByKey(u);Y&&Y.remove()})},ae=()=>{T==null||T("block_duplicated"),l.update(()=>{const Y=p.$getNodeByKey(u);Y&&Y.insertAfter(Lr(Y))})},te=()=>{r&&navigator.clipboard.writeText(r).then(()=>_(L("editor.embed.linkCopied")),()=>_(L("editor.embed.linkCopyFailed")))},q=()=>{r&&window.open(r,"_blank","noopener,noreferrer")},ce=()=>{const Y=!w;k(Y),l.update(()=>{const J=p.$getNodeByKey(u);ta(J)&&J.setShowPreview(Y)})},ie=()=>{E()},ne=()=>{if(j!=null&&j.embed.transformMatch){const Y=j==null?void 0:j.embed.transformMatch(j==null?void 0:j.matches);return a.jsx(Ds,{src:Y,width:"100%",height:"400px",canonicalUrl:h,title:N==null?void 0:N.name,allow:"encrypted-media",saveUrl:re,editor:l,updateMinHeight:Q})}return N!=null&&N.component?N.component({saveUrl:re,attrs:{href:h},matches:j==null?void 0:j.matches,isSelected:!1,isEditable:!1,embed:N,editor:l,updateMinHeight:Q}):a.jsx("div",{})};g.useEffect(()=>{d&&x(!0)},[d]);const H=(N==null?void 0:N.placeholder)||L("editor.embed.placeholder"),X=N!=null&&N.name?`${L("editor.embed.addPrefix")} ${N.name}`:L("editor.embed.addEmbed");return r?w?j?a.jsx(Vo.BlockWithAlignableContents,{className:e,format:n,nodeKey:u,children:a.jsxs(h1,{editor:l,width:HA(s),isIcon:!1,isEmbed:!0,height:400,onResizeEnd:oe,children:[a.jsx(v.Modal,{opened:R,onClose:M,fullScreen:!0,title:Z,zIndex:1e4,children:a.jsx(v.Box,{style:{height:"calc(100dvh - 2 * var(--mantine-spacing-xl))",minHeight:"60vh"},children:W?a.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:Z,src:W,allowFullScreen:!0}):N!=null&&N.component?a.jsx(v.Box,{style:{height:"100%",minHeight:"60vh"},children:N.component({saveUrl:re,attrs:{href:h},matches:j==null?void 0:j.matches,isSelected:!1,isEditable:!1,embed:N,editor:l,updateMinHeight:Q})}):null})}),a.jsx("div",{className:"embed-block embed-block--preview",children:a.jsxs("div",{className:"embed-block__box",children:[a.jsx(m0,{icon:B,title:Z,actions:O?null:Tn?a.jsxs(a.Fragment,{children:[a.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:I,children:a.jsx(ue,{icon:so,size:16,color:"currentColor"})}),a.jsx($l,{opened:P,onClose:F,hasPreview:!0,showPreview:w,onTogglePreview:ce,onViewOriginal:q,onCopyLink:te,onDelete:Re})]}):a.jsxs(v.Flex,{gap:4,align:"center",children:[a.jsx(Cn,{className:"embed-action-btn",label:L("editor.embed.openPreview"),icon:x8,iconColor:"var(--mantine-color-gray-text)",onClick:ie}),a.jsx(UA,{currentAlignment:n||"left",onAlign:Y=>{l.update(()=>{const J=p.$getNodeByKey(u);ta(J)&&J.setFormat(Y)})},className:"embed-action-btn",targetLabel:L("editor.embed.alignment")}),a.jsx(df,{showPreview:w,onTogglePreview:ce,onViewOriginal:q,onCopyLink:te,onDelete:Re})]})}),a.jsx("div",{className:"embed-block__preview-content",children:ne()})]})})]})}):a.jsx(Vo.BlockWithAlignableContents,{className:e,format:n,nodeKey:u,children:a.jsx("div",{className:"embed-block embed-block--inline",children:a.jsxs("div",{className:"embed-inline",children:[a.jsxs("div",{className:"embed-inline__info",children:[a.jsx(ue,{icon:tf,size:20,color:"currentColor"}),a.jsx(v.Text,{size:"md",c:"bright",truncate:!0,children:r})]}),O?null:Tn?a.jsxs(a.Fragment,{children:[a.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:I,children:a.jsx(ue,{icon:so,size:16,color:"currentColor"})}),a.jsx($l,{opened:P,onClose:F,hasPreview:!1,showPreview:!1,onTogglePreview:ce,onViewOriginal:q,onCopyLink:te,onDelete:Re})]}):a.jsx(df,{showPreview:!1,onTogglePreview:ce,onViewOriginal:q,onCopyLink:te,onDelete:Re})]})})}):a.jsx(Vo.BlockWithAlignableContents,{className:e,format:n,nodeKey:u,children:a.jsx("div",{className:"embed-block embed-block--inline",children:a.jsxs("div",{className:"embed-inline",children:[a.jsxs("div",{className:"embed-inline__info",children:[a.jsx(ue,{icon:tf,size:20,color:"currentColor"}),a.jsx(v.Text,{size:"md",c:"bright",truncate:!0,children:Z})]}),O?null:Tn?a.jsxs(a.Fragment,{children:[a.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:I,children:a.jsx(ue,{icon:so,size:16,color:"currentColor"})}),a.jsx($l,{opened:P,onClose:F,hasPreview:!0,showPreview:w,onTogglePreview:ce,onViewOriginal:q,onCopyLink:te,onDelete:Re})]}):a.jsx(df,{showPreview:w,onTogglePreview:ce,onViewOriginal:q,onCopyLink:te,onDelete:Re})]})})}):a.jsx(Vo.BlockWithAlignableContents,{className:e,format:n,nodeKey:u,children:a.jsx("div",{className:"embed-block embed-block--empty",children:a.jsxs("div",{className:"embed-block__box",children:[a.jsx(m0,{icon:B,title:Z,actions:O?null:Tn?a.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:I,children:a.jsx(ue,{icon:so,size:16,color:"currentColor"})}):a.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[a.jsx(fu,{label:L("editor.contextMenu.duplicate"),ariaLabel:"duplicate-embed-block",onClick:ae}),a.jsx(ls,{label:L("editor.actions.delete"),ariaLabel:"remove-embed-block",onClick:Re})]})}),Tn?a.jsxs(a.Fragment,{children:[a.jsx(v.UnstyledButton,{className:"embed-block__placeholder",onClick:()=>x(!0),children:a.jsx(v.Text,{size:"md",c:"var(--mantine-color-placeholder)",truncate:!0,children:X})}),a.jsx(iM,{opened:b,onClose:Me,title:X,url:h,onUrlChange:m,onSubmit:Ce,onCancel:Me,inputPlaceholder:H,invalidUrl:A,errorMessage:L("editor.validation.link")}),a.jsx($l,{opened:!O&&P,onClose:F,hasPreview:!1,showPreview:!1,onTogglePreview:ce,onViewOriginal:q,onCopyLink:te,onDuplicate:ae,onDelete:Re})]}):a.jsxs(v.Popover,{width:400,position:"bottom-start",shadow:"md",opened:b,trapFocus:!0,onChange:Y=>{x(Y),Y||(m(""),y(!1))},withinPortal:!0,zIndex:Sc,children:[a.jsx(v.Popover.Target,{children:a.jsx(v.UnstyledButton,{className:"embed-block__placeholder",onClick:()=>x(Y=>!Y),children:a.jsx(v.Text,{size:"md",c:"var(--mantine-color-placeholder)",truncate:!0,children:X})})}),a.jsx(v.Popover.Dropdown,{className:"embed-url-input",children:a.jsxs("form",{onSubmit:Te,children:[a.jsx(v.TextInput,{placeholder:H,type:"url",size:"sm",variant:"default","data-autofocus":!0,value:h,onChange:Y=>m(Y.currentTarget.value),error:A?L("editor.validation.link"):void 0}),a.jsxs(v.Flex,{justify:"flex-end",mt:"xs",gap:8,children:[a.jsx(v.Button,{variant:"subtle",size:"xs",color:"gray",onClick:Me,children:L("editor.cancel")}),a.jsx(v.Button,{type:"submit",size:"xs",disabled:!h,children:L("editor.embed.save")})]})]})})]})]})})})}function lM(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 u=p1(t,o,s,r,!1,n);return u.setMinHeight(parseFloat(l)),{node:u}}return{node:null}}class Oi extends qr.DecoratorBlockNode{constructor(t,r,o,s,l,u,d,f,h,m){super(o,u);we(this,"__platform");we(this,"__id");we(this,"__create");we(this,"__width");we(this,"__height");we(this,"__src");we(this,"__minHeight");we(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=m!==!1}static getType(){return"embed"}static clone(t){return new Oi(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=p1(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:lM,priority:1}:null}}}updateDOM(){return!1}exportDOM(){const t=typeof this.__width=="string"&&this.__width.includes("%")?this.__width:`${this.__width}%`,r=this.__src||"",o=P9.renderToString(a.jsx(sM,{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 a.jsx(aM,{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 oM(this.__platform,this.__id)}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}}function p1(e,n,t,r,o,s,l){let u=s||"unknown";if(!s){const{platform:d}=VA(e||"");u=d||"unknown"}return new Oi(u,r,void 0,n,t,void 0,o,e,void 0,l)}function ta(e){return e instanceof Oi}const C0=g.lazy(()=>Promise.resolve().then(()=>require("./layers.CtSQ_xs8.js")));function cM(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:g1(n,l,s,o)}:null}class is extends p.DecoratorNode{constructor(t="[]",r="inherit",o="inherit",s="left",l){super(l);we(this,"__data");we(this,"__width");we(this,"__height");we(this,"__alignment");this.__data=t,this.__width=r,this.__height=o,this.__alignment=s}static getType(){return"excalidraw"}static clone(t){return new is(t.__data,t.__width,t.__height,t.__alignment,t.__key)}static importJSON(t){return new is(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:cM,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 C0?a.jsx(g.Suspense,{fallback:null,children:a.jsx(C0,{nodeKey:this.getKey(),data:this.__data,width:this.__width,height:this.__height,alignment:this.__alignment})}):a.jsx("div",{})}}function g1(e="[]",n="inherit",t="inherit",r="left"){return new is(e,n,t,r)}function uM(e){return e instanceof is}const qA=p.createCommand("INSERT_EXCALIDRAW_COMMAND");function dM(e){g.useEffect(()=>{if(!e.hasNodes([is]))throw new Error("ExcalidrawPlugin: ExcalidrawNode not registered on editor");return e.registerCommand(qA,()=>(e.update(()=>{const n=g1(),t=Qt();t&&t.getParent()&&t.replace(n)}),!0),p.COMMAND_PRIORITY_EDITOR)},[e])}function fM({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 a.jsxs(Vo.BlockWithAlignableContents,{className:s,format:n,nodeKey:r,children:[a.jsx(v.Tooltip,{label:"Удалить",children:a.jsx(v.ActionIcon,{color:"gray","aria-label":"Settings",className:"image-delete-icon",variant:"default",onClick:l=>{l.stopPropagation(),t.update(()=>{if(p.$getSelection()){const u=p.$getNodeByKey(r);u&&u.remove()}return!1})},children:a.jsx(Mn,{name:"trash"})})}),a.jsx("iframe",{width:"100%",height:"500",src:`https://dudoc.io/f/${o}`,title:"Form",style:{border:"none"}})]})}function hM(e){const n=e.getAttribute("data-form");return n?{node:m1(n)}:null}class Xa extends qr.DecoratorBlockNode{constructor(t,r,o){super(r,o);we(this,"__id");this.__id=t}static getType(){return"form"}static clone(t){return new Xa(t.__id,t.__format,t.__key)}static importJSON(t){const r=m1(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:hM,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 a.jsx(fM,{className:s,format:this.__format,nodeKey:this.getKey(),formID:this.__id,editor:t})}}function m1(e){return new Xa(e)}class Nu extends p.TextNode{static getType(){return"keyword"}static clone(n){return new Nu(n.__text,n.__key)}static importJSON(n){const t=pM(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 pM(e){return new Nu(e)}function gM({nodeKey:e}){const[n]=tt.useLexicalComposerContext(),[t,r,o]=B9.useLexicalNodeSelection(e),s=g.useCallback(l=>{if(l.preventDefault(),t&&p.$isNodeSelection(p.$getSelection())){const u=p.$getNodeByKey(e);if(CM(u))return u.remove(),!0}return!1},[t,e]);return g.useEffect(()=>ye.mergeRegister(n.registerCommand(p.CLICK_COMMAND,l=>{const u=n.getElementByKey(e);return l.target===u?(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]),g.useEffect(()=>{const l=n.getElementByKey(e);l!==null&&(l.className=t?"selected":"")},[n,t,e]),null}class $a extends p.DecoratorNode{static getType(){return"page-break"}static clone(n){return new $a(n.__key)}static importJSON(){return QA()}static importDOM(){return{figure:n=>n.getAttribute("type")!==this.getType()?null:{conversion:mM,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 a.jsx(gM,{nodeKey:this.__key})}}function mM(){return{node:QA()}}function QA(){return new $a}function CM(e){return e instanceof $a}const AM="_inlineElement_12e9h_1",bM="_placeholderInline_12e9h_29",yM="_placeholderInlineIcon_12e9h_67",xM="_placeholderInlineText_12e9h_79",vM="_placeholderInlineDisabled_12e9h_87",wM="_main_12e9h_97",kM="_mainIcon_12e9h_105",xs={inlineElement:AM,placeholderInline:bM,placeholderInlineIcon:yM,placeholderInlineText:xM,placeholderInlineDisabled:vM,main:wM,mainIcon:kM};function SM({page:e,inlineElement:n,placeholder:t}){const{t:r}=He.useTranslation(),{disable:o}=g.useContext(at);if(t)return null;if(n&&!e.id)return a.jsxs(v.Box,{component:"span",className:`${xs.placeholderInline} ${o?xs.placeholderInlineDisabled:""}`,"data-page-link-anchor":"true",children:[a.jsx("span",{className:xs.placeholderInlineIcon,children:a.jsx(ue,{icon:Ta,size:16})}),a.jsx(v.Text,{component:"span",className:xs.placeholderInlineText,children:r("editor.menu.other.pageLink.placeholder")})]});if(n)return a.jsx(v.Box,{component:"span",className:xs.inlineElement,"data-page-link-anchor":"true",children:a.jsx(Kc,{page:e,withTooltip:!1,withHover:!0})});const s=l=>{e.onClick&&e.onClick(l)};return a.jsxs(v.Box,{component:"div",className:xs.main,onClick:s,children:[a.jsx(Kc,{page:{...e,onClick:void 0},withTooltip:!1}),a.jsx("span",{className:xs.mainIcon,children:a.jsx(ue,{icon:k8,size:20})})]})}function EM(e){const{pageId:n,title:t,icon:r,inlineElement:o,placeholder:s}=e,{linkablePages:l,pages:u}=g.useContext(at),f=(l??u).find(m=>m.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 a.jsx(SM,{page:h,inlineElement:o,placeholder:s})}function A0(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:ri({id:s?"":n,title:t,icon:r??null,inlineElement:o,placeholder:l})}}class Eo extends p.DecoratorNode{constructor(t,r,o,s,l=!1,u=!1,d){super(d);we(this,"__pageId");we(this,"__title");we(this,"__icon");we(this,"__order");we(this,"__inlineElement");we(this,"__placeholder");this.__pageId=t,this.__title=r,this.__icon=o,this.__order=s,this.__inlineElement=l,this.__placeholder=u}static getType(){return"pageLink"}static clone(t){return new Eo(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:u,placeholder:d,format:f}=t;return new Eo(r??"",o??"",s??null,l,u??!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 a.jsx(EM,{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:A0,priority:2},a:t=>t.getAttribute("data-page-link")!=="true"?null:{conversion:A0,priority:2}}}}function ri(e){return new Eo(e.id,e.title,e.icon,e.order,e.inlineElement??!1,e.placeholder??!1,void 0)}function b0(e){return e instanceof Eo}function MM(e){const n=e.getAttribute("data-src"),t=e.getAttribute("data-json");return{node:C1(n||"",t||"",!1)}}class el extends qr.DecoratorBlockNode{constructor(t,r,o,s,l){super(s,l);we(this,"__src");we(this,"__json");we(this,"__create");this.__src=t,this.__json=r,this.__create=o}static getType(){return"swagger"}static clone(t){return new el(t.__src,t.__json,!1,t.__format,t.__key)}static importJSON(t){const r=C1(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:MM,priority:1}:null}}decorate(t,r){return(r.theme.embedBlock||{}).base,a.jsx("div",{})}}function C1(e,n,t){return new el(e,n,t)}function TM(e){const n=e.textContent;return n!==null?{node:JA(n)}:null}const LM="background-color: rgba(24, 119, 232, 0.2)";class Ru extends p.TextNode{constructor(t,r,o){super(r??t,o);we(this,"__mention");this.__mention=t}static getType(){return"mention"}static clone(t){return new Ru(t.__mention,t.__text,t.__key)}static importJSON(t){const r=JA(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=LM,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:TM,priority:1}:null}}isTextEntity(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function JA(e){const n=new Ru(e);return n.setMode("segmented").toggleDirectionless(),p.$applyNodeReplacement(n)}const NM=[cn.HeadingNode,hr,On,cn.QuoteNode,Yr,Kr,ji,D9.HashtagNode,sn.AutoLinkNode,sn.LinkNode,oC.OverflowNode,ur,Mo,Ru,Eu,Nu,Ms.HorizontalRuleNode,Oi,Xa,li.MarkNode,Os,No,ss,$a,Rr,jn,Vr,xi,Eo,To,Bs,Zr,lo,qn,Qr,In,Kt.CodeHighlightNode,el,_s,ns,is,Li,...jA.map(e=>e)],RM=(e,n)=>{const t=e==="comment"?[hr,On,sn.AutoLinkNode,sn.LinkNode,oC.OverflowNode,ur,Mo,qn,Kt.CodeHighlightNode,...jA.map(o=>o)]:NM,r=(n==null?void 0:n.map(o=>o.node).filter(Boolean))||[];return[...t,...r]};function jM(e){const n=e.getSrc();return!n||n==="upload"||!n.trim()}function IM(e){g.useEffect(()=>{const n=e.hasNodes([In,Qr]),t=e.registerNodeTransform(ur,o=>{if(!n)return;const s=o.getParent(),l=jM(o);if(l&&s&&!fr(s)){const u=o.getNextSibling(),d=Va(o);u?u.insertBefore(d):s.append(d);return}if(!l&&s&&fr(s)){const u=s;u.insertBefore(o),u.remove()}}),r=n?e.registerNodeTransform(In,o=>{const s=o.getChildren(),l=s.find(jr);if(!l||s.some(Ri))return;const d=Io();l.insertBefore(d)}):()=>{};return ye.mergeRegister(t,r)},[e])}const A1=p.createCommand("INSERT_IMAGE_COMMAND"),XA=p.createCommand("UPLOAD_IMAGE_COMMAND");function OM(){const[e]=tt.useLexicalComposerContext(),{t:n}=He.useTranslation(),{imperativeHandleRef:t,maxFileSize:r,disable:o}=g.useContext(at);return o||IM(e),g.useEffect(()=>{if(!e.hasNodes([ur]))throw new Error("ImageOlugin: FileNode not registered on editor");const s=l=>{if(l.length>1){Bt.showMessageNotification({message:n("editor.validation.doNotUploadMoreThanSingleFile")});return}if(l[0].size>r*1024*1024){Bt.showErrorNotification({message:n("editor.validation.shouldNotExceed",{maxSize:r})});return}let u="";e.update(()=>{const d=ja({src:"upload",create:!1,altText:""});ki(d),u=d.getKey()}),setTimeout(()=>{e.dispatchCommand(XA,{files:l,targetNodeKey:u})},100)};return t!=null&&t.current&&(t.current.insertImages=s),e.registerCommand(A1,l=>{const u=ja(l);return ki(u),!1},p.COMMAND_PRIORITY_LOW)},[e]),null}const ki=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 On||t instanceof hr,o=n instanceof Mo&&!!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},eh=p.createCommand("INSERT_FILE_COMMAND"),$A=p.createCommand("UPLOAD_FILE_COMMAND");function DM(e){const n=e.getSrc();return!n||n==="upload"||!n.trim()}function PM(){const[e]=tt.useLexicalComposerContext(),{imperativeHandleRef:n}=g.useContext(at);g.useEffect(()=>{if(!e.hasNodes([ns]))throw new Error("FilePlugin: FileNode not registered on editor");const t=e.hasNodes([In,Qr]),r=o=>{if(o.length>1){Bt.showMessageNotification({message:"editor.validation.doNotUploadMoreThanSingleFile"});return}e.dispatchCommand(eh,"upload"),setTimeout(()=>{e.dispatchCommand($A,o)})};return n!=null&&n.current&&(n.current.insertFiles=r),ye.mergeRegister(e.registerNodeTransform(ns,o=>{if(!t)return;const s=o.getParent(),l=DM(o);if(l&&s&&!fr(s)){const u=o.getNextSibling(),d=Va(o);u?u.insertBefore(d):s.append(d);return}if(!l&&s&&fr(s)){const u=s;u.insertBefore(o),u.remove()}}),...t?[e.registerNodeTransform(In,o=>{const s=o.getChildren(),l=s.find(Lo);if(!l||s.some(Ri))return;const d=Io();l.insertBefore(d)})]:[],e.registerCommand(eh,o=>{const s=Jh(o,"100%","100%","left",o!=="upload");return ki(s),!1},p.COMMAND_PRIORITY_LOW))},[e,n])}function BM(){return PM(),null}function th(e){return e!==null&&typeof e=="object"&&typeof e.getType=="function"&&e.getType()==="video"&&"setId"in e&&typeof e.setId=="function"}function ec(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 y0(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);jr(r)||Gr(r)?r.setSrc(t):th(r)&&t.trim()&&r.setId(t)},{tag:"historic"})}const kr=new Map;function _M({editor:e}){const{fetchDeleteMedia:n,fetchRestoreMedia:t,pageId:r}=g.useContext(at);return g.useEffect(()=>()=>{kr.clear()},[r]),g.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[u,d]of Object.entries(o)){const f=d.props,h=d._self,A=jr(h)||th(h)||Lo(h)||Gr(h);if(!f&&A)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"))&&ec(y)){const b=s.get(y)||[],x=b.includes(u)?b:[...b,u];s.set(y,x)}}for(const[u,d]of s.entries())kr.set(u,{mediaNodeKeys:d})}),e.registerDecoratorListener(o=>{var u;const s=new Map;let l=!1;for(const[d,f]of Object.entries(o)){const h=f==null?void 0:f.props,m=f==null?void 0:f._self,A=th(m)||jr(m)||Lo(m)||Gr(m);if(A&&((u=h==null?void 0:h.src)!=null&&u.includes("unsplash"))||!h&&A)continue;const y=h.src||h.videoID;if(!y)continue;if(y.trim()==="")return;const b=s.get(y)||[];!b.includes(d)&&ec(h==null?void 0:h.src)&&s.set(y,[...b,d])}for(const[d,f]of kr.entries()){const h=s.get(d);if(Array.isArray(f.mediaNodeKeys)&&f.mediaNodeKeys.length>0&&(!h||h.length===0)){const m=ec(d);if(m&&n){const A=e.registerCommand(p.UNDO_COMMAND,()=>!0,p.COMMAND_PRIORITY_NORMAL);n(m,()=>{A()}),kr.set(d,{mediaNodeKeys:[]})}}}for(const[d]of kr.entries())s.has(d)||kr.set(d,{mediaNodeKeys:[]});if(kr.size>0)for(const[d,f]of s.entries()){const h=kr.get(d);if(h&&Array.isArray(h.mediaNodeKeys)&&h.mediaNodeKeys.length===0&&f.length>0){y0(e,f[0]," "),l=!0;const m=ec(d);if(kr.set(d,{mediaNodeKeys:f}),m&&t){const A=e.registerCommand(p.REDO_COMMAND,()=>!0,p.COMMAND_PRIORITY_NORMAL);t(m,()=>{A(),y0(e,f[0],d)})}}}if(!l)for(const[d,f]of s.entries())kr.set(d,{mediaNodeKeys:f})})},[e,t,n]),kr}const x0=window.location.hostname,FM=x0!=="playground.lexical.dev"&&x0!=="lexical-playground.vercel.app",WM=new URLSearchParams(window.location.search),v0=e=>WM.get(e)==="true",{isShowTreeView:zM,isMaxLength:UM}={isShowTreeView:v0("showTreeView"),isMaxLength:v0("isMaxLength")},_a={disableBeforeInput:!1,emptyEditor:FM,isAutocomplete:!1,isCharLimit:!1,isCharLimitUtf8:!1,isCollab:!1,isMaxLength:UM,isRichText:!0,shouldUseLexicalContextMenu:!1,showNestedEditorTreeView:!1,showTableOfContents:!1,showTreeView:zM,tableCellBackgroundColor:!0,tableCellMerge:!0},w0={..._a},eb=g.createContext({setOption:(e,n)=>{},settings:_a});function KM(){const e={},n=new URLSearchParams(window.location.search);for(const t of Object.keys(_a)){const r=n.get(t);r!==null&&(e[t]=r==="true")}return e}const HM=({children:e})=>{const[n,t]=g.useState(()=>({..._a,...KM()})),r=g.useCallback((s,l)=>{t(u=>({...u,[s]:l})),_a[s]===l?k0(s,null):k0(s,l)},[]),o=g.useMemo(()=>({setOption:r,settings:n}),[r,n]);return a.jsx(eb.Provider,{value:o,children:e})},b1=()=>g.useContext(eb);function k0(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 tb=g.createContext({}),YM=({children:e})=>{const n=g.useMemo(()=>({historyState:Nh.createEmptyHistoryState()}),[]);return a.jsx(tb.Provider,{value:n,children:e})},y1=()=>g.useContext(tb),ZM=[".toolbar",'[role="menu"]',".mantine-Popover-dropdown",".floating-text-format-popup","[data-comment-submit-button]","[data-modal-content]"],GM=({onBlur:e})=>{const[n]=tt.useLexicalComposerContext();return g.useEffect(()=>{const t=n.getRootElement();if(!t)return;const r=(s,l,u)=>s>=u.left&&s<=u.right&&l>=u.top&&l<=u.bottom,o=s=>{const l=t.getBoundingClientRect(),u=s.target,d=u instanceof Element&&ZM.some(b=>u.closest(b)),{clientX:f,clientY:h}=s,m=r(f,h,l),A=document.activeElement;!t.contains(A)&&!m&&!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 VM(){const[e]=tt.useLexicalComposerContext();return g.useEffect(()=>Kt.registerCodeHighlighting(e),[e]),null}function qM({isLoading:e}){const[n]=tt.useLexicalComposerContext(),{disable:t}=g.useContext(at);return g.useEffect(()=>{t||n.update(()=>{p.$getRoot().getFirstChild()&&setTimeout(()=>{var s;(s=n._rootElement)==null||s.setAttribute("contenteditable","true")},0)})},[n,e,t]),null}function x1(e){const n=e.getParent();if(!Mr(n)||!p.$isParagraphNode(e))return!1;let t=0;for(const r of n.getChildren())p.$isParagraphNode(r)&&t++;return t===1}function nb(e,n,t){const r=e.getParent();if(!os(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 QM=(e,n,t)=>{if(ye.$findMatchingParent(e,xt)||ye.$findMatchingParent(e,So)||So(e))return;const s=p.$isParagraphNode(e)?e:p.$isParagraphNode(e.getParent())?e.getParent():null;if(s){const l=s.getParent();return os(l)?nb(s,n,t):x1(s)?n("editor.placeholders.layoutAddContent"):t||n("editor.placeholder")}},ff="node-placeholder",S0=new WeakMap,JM=({selection:e,editor:n,t,customPlaceholder:r})=>{var f,h;const o=e.anchor,s=S0.get(n);if(s&&s!==o.key){const m=n.getElementByKey(s);(f=m==null?void 0:m.classList)==null||f.remove(ff),m==null||m.removeAttribute("data-placeholder")}const l=QM(o.getNode(),t,r),u=o.getNode().getTextContentSize(),d=n.getElementByKey(o.key);l&&u===0?(d==null||d.classList.add(ff),d==null||d.setAttribute("data-placeholder",l)):d&&((h=d==null?void 0:d.classList)==null||h.remove(ff),d==null||d.removeAttribute("data-placeholder")),S0.set(n,o.key)},XM=(e,n,t)=>{e.getEditorState().read(()=>{const r=p.$getSelection();p.$isRangeSelection(r)&&JM({selection:r,editor:e,t:n,customPlaceholder:t})})},tc="node-placeholder";function $M(e,n){if(cn.$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(cn.$isQuoteNode(e))return n("editor.placeholders.quote");if(Rt(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(So(t))return n("editor.placeholders.toggle");if(os(t))return nb(e,n);if(x1(e))return n("editor.placeholders.layoutAddContent")}}function E0(e,n){e.getEditorState().read(()=>{const t=r=>{const o=$M(r,n),s=n("editor.placeholders.layoutAddContent");if(p.$isParagraphNode(r)){const l=r.getParent();if(Mr(l)&&!x1(r)&&r.getTextContentSize()===0){const u=e.getElementByKey(r.getKey());u&&u.classList.contains(tc)&&u.getAttribute("data-placeholder")===s&&(u.classList.remove(tc),u.removeAttribute("data-placeholder"))}}if(o){const l=e.getElementByKey(r.getKey());if(!l)return;r.getTextContentSize()===0?(l.classList.add(tc),l.setAttribute("data-placeholder",o)):(l.classList.remove(tc),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 eT=()=>{const[e]=tt.useLexicalComposerContext(),{t:n}=He.useTranslation(),{placeholder:t,disable:r}=g.useContext(at);return g.useEffect(()=>{const o=setTimeout(()=>{E0(e,n)}),s=e.registerUpdateListener(()=>{r||XM(e,n,t),E0(e,n)});return()=>{clearTimeout(o),s()}},[e,t,r,n]),null},tT=({onFocus:e})=>{const[n]=tt.useLexicalComposerContext();return g.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 nT(e){g.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 rT=()=>{const[e]=tt.useLexicalComposerContext();return nT(e),null};function oT(){return a.jsx(Y9.LinkPlugin,{attributes:{target:null,rel:"noreferrer"}})}function sT(e){g.useEffect(()=>R7(e),[e])}function iT(){const[e]=tt.useLexicalComposerContext();return g.useEffect(()=>{if(!e.hasNodes([hr,On]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[e]),sT(e),null}const aT=" ";function lT(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 cT(e){const n=p.$getSelection();if(!p.$isRangeSelection(n))return!1;const t=n.focus.getNode();if(!(pt(t)||Rt(t)||Rt(t.getParent())))return n.insertText(aT),!1;const o=lT(n);let s=0;for(const l of o)if(pt(l))s=Math.max(Zf(l)+1,s);else if(Rt(l)){const u=l.getParent();if(!pt(u))throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");s=Math.max(Zf(u)+1,s)}return s<=e}function uT({maxDepth:e}){const[n]=tt.useLexicalComposerContext();return g.useEffect(()=>ye.mergeRegister(n.registerCommand(p.INDENT_CONTENT_COMMAND,()=>!cT(e??7),p.COMMAND_PRIORITY_CRITICAL)),[n,e]),null}const rb=4,dT={dependencies:[Ms.HorizontalRuleNode],export:e=>Ms.$isHorizontalRuleNode(e)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,n,t,r)=>{const o=Ms.$createHorizontalRuleNode();r||e.getNextSibling()!=null?e.replace(o):e.insertBefore(o),o.selectNext()},type:"element"},fT={dependencies:[ur],export:e=>jr(e)?`![${e.getAltText()}](${e.getSrc()})`:null,importRegExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))/,regExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))$/,replace:(e,n)=>{const[,t,r]=n,o=ja({altText:t,maxWidth:800,src:r});e.replace(o)},trigger:")",type:"text-match"};function hT(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/rb)),r}const ob=e=>(n,t,r)=>{const o=n.getPreviousSibling(),s=n.getNextSibling(),l=Wn(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=un(e,e==="number"?Number(r[2]):void 0);d.append(l),n.replace(d)}l.append(...t),l.select(0,0);const u=hT(r[1]);u&&l.setIndent(u)},v1=(e,n,t)=>{const r=[],o=e.getChildren();let s=0;for(const l of o)if(Rt(l)){if(l.getChildrenSize()===1){const h=l.getFirstChild();if(pt(h)){r.push(v1(h,n,t+1));continue}}const u=" ".repeat(t*rb),d=e.getListType(),f=d==="number"?`${e.getStart()+s}. `:d==="check"?`- [${l.getChecked()?"x":" "}] `:"- ";r.push(u+f+n(l)),s++}return r.join(`
11
+ `)},pT=/^(\s*)(\d{1,})\.\s/,gT=/^(\s*)[-*+]\s/,mT={dependencies:[hr,On],export:(e,n)=>pt(e)?v1(e,n,0):null,regExp:pT,replace:ob("number"),type:"element"},CT={dependencies:[hr,On],export:(e,n)=>pt(e)?v1(e,n,0):null,regExp:gT,replace:ob("bullet"),type:"element"},sb=/^(?:\|)(.+)(?:\|)\s?$/,AT=/^(\| ?:?-*:? ?)+\|\s?$/,bT={dependencies:[En.TableNode,En.TableRowNode,En.TableCellNode],export:e=>{if(!En.$isTableNode(e))return null;const n=[];for(const t of e.getChildren()){const r=[];if(!En.$isTableRowNode(t))continue;let o=!1;for(const s of t.getChildren())En.$isTableCellNode(s)&&(r.push(to.$convertToMarkdownString(Fa,s).replace(/\n/g,"\\n")),s.__headerState===En.TableCellHeaderStates.ROW&&(o=!0));n.push(`| ${r.join(" | ")} |`),o&&n.push(`| ${r.map(s=>"---").join(" | ")} |`)}return n.join(`
12
+ `)},regExp:sb,replace:(e,n,t)=>{if(AT.test(t[0])){const f=e.getPreviousSibling();if(!f||!En.$isTableNode(f))return;const h=f.getChildren(),m=h[h.length-1];if(!m||!En.$isTableRowNode(m))return;m.getChildren().forEach(A=>{En.$isTableCellNode(A)&&A.setHeaderStyles(En.TableCellHeaderStates.ROW,En.TableCellHeaderStates.ROW)}),e.remove();return}const r=M0(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(!Fn(f))break;const h=M0(f.getTextContent());if(h==null)break;l=Math.max(l,h.length),o.unshift(h);const m=s.getPreviousSibling();s.remove(),s=m}const u=En.$createTableNode();for(const f of o){const h=En.$createTableRowNode();u.append(h);for(let m=0;m<l;m++)h.append(m<f.length?f[m]:ib(""))}const d=e.getPreviousSibling();En.$isTableNode(d)&&yT(d)===l?(d.append(...u.getChildren()),e.remove()):e.replace(u),u.selectEnd()},type:"element"};function yT(e){const n=e.getFirstChild();return En.$isTableRowNode(n)?n.getChildrenSize():0}const ib=e=>{e=e.replace(/\\n/g,`
13
+ `);const n=En.$createTableCellNode(En.TableCellHeaderStates.NO_STATUS);return to.$convertFromMarkdownString(e,Fa,n),n},M0=e=>{const n=e.match(sb);return!n||!n[1]?null:n[1].split("|").map(t=>ib(t))},Fa=[bT,dT,fT,to.CHECK_LIST,to.HEADING,to.QUOTE,CT,mT,...to.MULTILINE_ELEMENT_TRANSFORMERS,...to.TEXT_FORMAT_TRANSFORMERS,...to.TEXT_MATCH_TRANSFORMERS];function xT(){return a.jsx(Z9.MarkdownShortcutPlugin,{transformers:Fa})}function vT({maxLength:e}){const[n]=tt.useLexicalComposerContext();return g.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()),u=r.getTextContentSize();if(l!==u){const d=u-e,f=o.anchor;d>0&&(l===e&&t!==s?(t=s,ye.$restoreEditorState(n,s)):ln.trimTextContentFromAnchor(n,f,d))}})},[n,e]),null}const hf=8,pf=72,nh=15,wT={bgColor:"#fff",blockType:"paragraph",canRedo:!1,canUndo:!1,codeLanguage:"",codeTheme:"",elementFormat:"left",fontColor:"#000",fontFamily:"Arial",fontSize:`${nh}px`,fontSizeInputValue:`${nh}`,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},ab=g.createContext(void 0),kT=({children:e})=>{const[n,t]=g.useState(wT),r=n.fontSize,o=g.useCallback((l,u)=>{t(d=>({...d,[l]:u}))},[]);g.useEffect(()=>{o("fontSizeInputValue",r.slice(0,-2))},[r,o]);const s=g.useMemo(()=>({toolbarState:n,updateToolbarState:o}),[n,o]);return a.jsx(ab.Provider,{value:s,children:e})},ST=()=>{const e=g.useContext(ab);if(e===void 0)throw new Error("useToolbarState must be used within a ToolbarProvider");return e};function ti(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 ju=p.createCommand("INSERT_INLINE_COMMAND");function ET(){var T;const[e]=tt.useLexicalComposerContext(),[n,t]=g.useState([]),[r,o]=g.useState(!1),s=g.useRef(new Map),l=(T=g.useContext(at))==null?void 0:T.commentController,{onHighlight:u,activeCommentId:d,actions:f,editorComments:h}=l??{onHighlight:void 0,activeCommentId:{ids:[],source:null},actions:{add:async()=>{},delete:()=>{},restore:()=>{}},editorComments:new Map};g.useEffect(()=>{const R=document.documentElement,E=getComputedStyle(R).getPropertyValue("--mantine-primary-color-filled").trim()||"#4c6ef5";R.style.setProperty("--comment-selection-color-level1",ti(E,.12)),R.style.setProperty("--comment-selection-color-level2",ti(E,.24)),R.style.setProperty("--comment-selection-color-level3",ti(E,.4)),R.style.setProperty("--comment-selection-color-selected1",ti(E,.28)),R.style.setProperty("--comment-selection-color-selected2",ti(E,.36)),R.style.setProperty("--comment-selection-color-selected3",ti(E,.48))},[]),g.useEffect(()=>{const E=((d==null?void 0:d.ids)??[])[0];!E||d.source==="editor"||e.update(()=>{const M=m.get(E);if(!M)return;const P=Array.from(M).filter(F=>!!p.$getNodeByKey(F)),I=p.$getNodeByKey(P[0]);I&&Ho(I)&&I.selectStart()})},[d==null?void 0:d.ids,d==null?void 0:d.source]);const m=g.useMemo(()=>new Map,[]),A=g.useRef(h),y=g.useRef(null);g.useEffect(()=>{A.current=h},[h]);function b(R,E){e.update(()=>{const M=m.get(R);if(M)for(const P of M){const I=p.$getNodeByKey(P);Ho(I)&&I.resolveThreat(E)}})}function x(R){const E=m.get(R);!E||E.size===0||(e.update(()=>{for(const M of E){const P=p.$getNodeByKey(M);Ho(P)&&(P.deleteID(R),P.getIDs().length===0&&li.$unwrapMarkNode(P))}}),m.delete(R))}function w(R,E){E&&x(R)}g.useEffect(()=>{if(h){for(const[R,E]of h.entries()){const M=s.current.get(R);M&&(M.resolution!==E.resolution&&b(R,E.resolution),M.deleted!==E.deleted&&w(R,E.deleted))}s.current=new Map(h)}},[h]),g.useEffect(()=>{const R=[];if(n.length!==0){for(let E=0;E<n.length;E++){const M=n[E],P=m.get(M);if(P!==void 0)for(const I of P){const F=e.getElementByKey(I);F!==null&&(F.classList.add("selected"),R.push(F))}}return()=>{for(let E=0;E<R.length;E++)R[E].classList.remove("selected")}}},[n,e,m]),g.useEffect(()=>{const R=new Map;return ye.mergeRegister(ye.registerNestedElementResolver(e,Zr,E=>RA(E.getIDs()),(E,M)=>{E.getIDs().forEach(I=>{M.addID(I)})}),e.registerMutationListener(Zr,E=>{e.getEditorState().read(()=>{for(const[M,P]of E){const I=p.$getNodeByKey(M);let F=[];P==="created"&&Ho(I)&&I.getIDs().forEach(N=>{var U;const j=(U=A.current)==null?void 0:U.get(N);j!=null&&j.deleted&&(f==null||f.restore(N))}),P==="destroyed"?F=R.get(M)||[]:Ho(I)&&(F=I.getIDs());for(let _=0;_<F.length;_++){const N=F[_];let j=m.get(N);if(R.set(M,F),P==="destroyed"){let U=!1;for(const[W,B]of E)if(B==="created"){const Z=p.$getNodeByKey(W);Ho(Z)&&Z.getIDs().some(Q=>F.includes(Q))&&(U=!0)}U||j!==void 0&&(j.delete(M),j.size===0&&(m.delete(N),f==null||f.delete(N)))}else j===void 0&&(j=new Set,m.set(N,j)),j.has(M)||j.add(M)}}})},{skipInitialization:!1}),e.registerUpdateListener(({editorState:E})=>{E.read(()=>{const M=p.$getSelection();let P=!1;if(p.$isRangeSelection(M)){const I=M.anchor.getNode();if(Fn(I)){const F=li.$getMarkIDs(I,M.anchor.offset);F!==null&&(u==null||u(F,"editor"),t(()=>F),P=!0)}}P||(u==null||u(null,"editor"),t(I=>I.length===0?I:[]))})}),e.registerCommand(ju,()=>{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(_=>Ho(_)||Ho(_.getParent())))return!1;const F=M.getTextContent();return E.clipboardData.setData("text/plain",F),!0},p.COMMAND_PRIORITY_LOW))},[e,m]);const k=g.useCallback((R,E,M)=>{e.getEditorState().read(()=>{const P=y.current??p.$getSelection();if(p.$isRangeSelection(P)){E.current=P.clone();const I=P.anchor,F=P.focus,_=ln.createDOMRange(e,I.getNode(),I.offset,F.getNode(),F.offset);if(_!==null&&R!==null){const{left:N,bottom:j,top:U,width:W}=_.getBoundingClientRect(),B=ln.createRectsFromDOMRange(e,_),Z=R.offsetHeight||200,Q=window.pageYOffset||document.documentElement.scrollTop,re=window.innerHeight-j>Z+20;let oe=B.length===1?N+W/2-125:N-125;oe<10&&(oe=10),R.style.left=`${oe}px`,R.style.top=re?`${j+10+Q}px`:`${U-Z-55+Q}px`;const Ce=B.length,{container:Te,elements:Me}=M,Re=Me.length;for(let ae=0;ae<Ce;ae++){const te=B[ae];let q=Me[ae];q===void 0&&(q=document.createElement("span"),Me[ae]=q,Te.appendChild(q));const ie=document.body.scrollHeight>window.innerHeight?0:8;q.style.cssText=`
14
+ position:absolute;
15
+ top:${te.top+Q}px;
16
+ left:${te.left+ie}px;
17
+ height:${te.height}px;
18
+ width:${te.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 ae=Re-1;ae>=Ce;ae--){const te=Me[ae];Te.removeChild(te),Me.pop()}}}})},[e]);function L(R){e.update(()=>{const E=y.current??p.$getSelection();if(!p.$isRangeSelection(E))return;const M=E.isBackward();li.$wrapSelectionInMarkNode(E,M,R,P=>new Zr(P,null)),y.current=null})}function O(R){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&&(R(I),o(!1))})()}}return a.jsx(a.Fragment,{children:r&&Ir.createPortal(a.jsx(Bt.CommentComposer,{updateLocation:k,onSubmit:O(L),onBlur:()=>o(!1),ns:"",children:R=>{const{handleBlur:E,setCommentDraft:M,editorRef:P}=R;return a.jsx(c5,{initialContent:"",outputFormat:"html",debounce:1,editorRef:P,mode:"comment",placeholder:" ",shiftEnterInsertNewLine:!0,onBlur:E,onChange:I=>M(F=>({...F,text:I}))})}}),document.body)})}const bn={ctrlKey:!ye.IS_APPLE,metaKey:ye.IS_APPLE};function MT(e){const{code:n}=e;return(n==="Numpad0"||n==="Digit0")&&p.isModifierMatch(e,{...bn,altKey:!0})}function TT(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 LT(e){const{code:n}=e;return(n==="Numpad7"||n==="Digit7")&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function NT(e){const{code:n}=e;return(n==="Numpad8"||n==="Digit8")&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function RT(e){const{code:n}=e;return(n==="Numpad9"||n==="Digit9")&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function jT(e){const{code:n}=e;return n==="KeyC"&&p.isModifierMatch(e,{...bn,altKey:!0})}function IT(e){const{code:n}=e;return n==="KeyQ"&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function OT(e){const{code:n}=e;return(n==="Numpad1"||n==="Digit1")&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function DT(e){const{code:n}=e;return(n==="Numpad2"||n==="Digit2")&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function PT(e){const{code:n}=e;return(n==="Numpad3"||n==="Digit3")&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function BT(e){const{code:n}=e;return n==="KeyX"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function _T(e){const{code:n}=e;return n==="BracketRight"&&p.isModifierMatch(e,bn)}function FT(e){const{code:n}=e;return n==="BracketLeft"&&p.isModifierMatch(e,bn)}function WT(e){const{code:n}=e;return n==="KeyE"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function zT(e){const{code:n}=e;return n==="KeyL"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function UT(e){const{code:n}=e;return n==="KeyR"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function KT(e){const{code:n}=e;return n==="KeyJ"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function HT(e){const{code:n}=e;return n==="Comma"&&p.isModifierMatch(e,bn)}function YT(e){const{code:n}=e;return n==="Period"&&p.isModifierMatch(e,bn)}function ZT(e){const{code:n}=e;return n==="KeyC"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function GT(e){const{code:n}=e;return n==="Period"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function VT(e){const{code:n}=e;return n==="Comma"&&p.isModifierMatch(e,{...bn,shiftKey:!0})}function qT(e){const{code:n}=e;return n==="Backslash"&&p.isModifierMatch(e,bn)}function QT(e){const{code:n}=e;return n==="KeyK"&&p.isModifierMatch(e,bn)}function JT(e){const{code:n}=e;return n==="KeyM"&&p.isModifierMatch(e,{...bn,altKey:!0})}var rh=(e=>(e[e.increment=1]="increment",e[e.decrement=2]="decrement",e))(rh||{});const lb=(e,n)=>{if(!n)return e;let t=e;switch(n){case 2:switch(!0){case e>pf:t=pf;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=hf;break}break;case 1:switch(!0){case e<hf:t=hf;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=pf;break}break}return t},T0=(e,n,t)=>{const r=o=>(o||(o=`${nh}px`),o=o.slice(0,-2),`${lb(Number(o),t)}px`);e.update(()=>{if(e.isEditable()){const o=p.$getSelection();o!==null&&ln.$patchStyleText(o,{"font-size":n||r})}})},L0=(e,n,t)=>{if(t!==""){const r=lb(Number(t),n);T0(e,String(r)+"px",null)}else T0(e,null,n)},Iu=e=>{e.update(()=>{const n=p.$getSelection();ln.$setBlocksType(n,()=>p.$createParagraphNode())})},XT=(e,n,t)=>{n!==t&&e.update(()=>{const r=p.$getSelection();ln.$setBlocksType(r,()=>cn.$createHeadingNode(t))})},$T=(e,n)=>{n!=="bullet"?e.dispatchCommand(e1,void 0):Iu(e)},eL=(e,n)=>{n!=="check"?e.dispatchCommand(t1,void 0):Iu(e)},tL=(e,n)=>{n!=="number"?e.dispatchCommand(xu,void 0):Iu(e)},nL=(e,n)=>{n!=="quote"&&e.update(()=>{const t=p.$getSelection();ln.$setBlocksType(t,()=>cn.$createQuoteNode())})},rL=(e,n)=>{n!=="code"&&e.update(()=>{let t=p.$getSelection();if(t)if(!p.$isRangeSelection(t)||t.isCollapsed())ln.$setBlocksType(t,()=>Kt.$createCodeNode());else{const r=t.getTextContent(),o=Kt.$createCodeNode();t.insertNodes([o]),t=p.$getSelection(),p.$isRangeSelection(t)&&t.insertRawText(r)}})},oL=e=>{e.update(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)||En.$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,u)=>{if(p.$isTextNode(l)){let d=l;u===0&&t.offset!==0&&(d=d.splitText(t.offset)[1]||d),u===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=ye.$getNearestBlockElementAncestorOrThrow(d);h.__format!==0&&h.setFormat(""),h.__indent!==0&&h.setIndent(0),l=d}else cn.$isHeadingNode(l)||cn.$isQuoteNode(l)?l.replace(p.$createParagraphNode(),!0):qr.$isDecoratorBlockNode(l)&&l.setFormat("")})}})};function sL({editor:e,setIsLinkEditMode:n}){const{toolbarState:t}=ST();return g.useEffect(()=>{const r=o=>{if(p.isModifierMatch(o,{}))return!1;if(MT(o))Iu(e);else if(TT(o)){const{code:s}=o,l=`h${s[s.length-1]}`;XT(e,t.blockType,l)}else if(NT(o))$T(e,t.blockType);else if(LT(o))tL(e,t.blockType);else if(RT(o))eL(e,t.blockType);else if(jT(o))rL(e,t.blockType);else if(IT(o))nL(e,t.blockType);else if(BT(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"strikethrough");else if(OT(o))console.log("isLowercase"),e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"lowercase");else if(DT(o))console.log("isUppercase"),e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"uppercase");else if(PT(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"capitalize");else if(_T(o))e.dispatchCommand(p.INDENT_CONTENT_COMMAND,void 0);else if(FT(o))e.dispatchCommand(p.OUTDENT_CONTENT_COMMAND,void 0);else if(WT(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"center");else if(zT(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"left");else if(UT(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"right");else if(KT(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"justify");else if(HT(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"subscript");else if(YT(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"superscript");else if(ZT(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"code");else if(GT(o))L0(e,rh.increment,t.fontSizeInputValue);else if(VT(o))L0(e,rh.decrement,t.fontSizeInputValue);else if(qT(o))oL(e);else if(QT(o))e.dispatchCommand(gu,"create");else if(JT(o))e.dispatchCommand(ju,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 Gc="/v1/me/features";let ma=null,ks=null;function iL(){return ma?Promise.resolve(ma):ks||(ks=fetch(Gc,{credentials:"include"}).then(e=>{if(!e.ok)throw new Error(`GET ${Gc} ${e.status}`);return e.json()}).then(e=>(ma=e,ks=null,e)).catch(e=>{throw ks=null,e}),ks)}function aL(e){return fetch(Gc,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(n=>{if(!n.ok)throw new Error(`PATCH ${Gc} ${n.status}`);return n.json()}).then(n=>(ma=n,n))}function lL(){ma=null,ks=null}const N0="smart-paste-preference",R0="smart_paste",oh=15e3,Si=1e4,cb=400,cL=7,uL=new Set(["paragraph","heading","bullet-list","number-list","quote","code","callout","horizontal-rule"]);function dL(e,n,t){const r=()=>{var A;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},u=((A=s.getNode().getTopLevelElement())==null?void 0:A.getKey())??null,d=(t==null?void 0:t.trim())||"";if(d)try{const b=new DOMParser().parseFromString(d,"text/html"),x=wa.$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],L=Array.from(new Set(x.map(R=>(R.getTopLevelElement()??R).getKey()))),O=p.$isTextNode(w)?{key:w.getKey(),offset:0,type:"text"}:{key:w.getKey(),offset:0,type:"element"},T=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:O,end:T,anchorTopKey:w.getKey(),tracking:"exact",insertedTopLevelKeys:L}}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:u,tracking:"exact"}}let h={...l};const m=p.$getNodeByKey(l.key);return p.$isTextNode(m)&&(h={key:l.key,type:"text",offset:Math.min(m.getTextContentSize(),l.offset+n.length)}),{start:l,end:h,anchorTopKey:u,tracking:"fallback"}};try{return r()}catch{let o=null;return e.update(()=>{o=r()},{discrete:!0}),o}}function Zt(e){return e.replace(/\s+/g," ").trim()}function tl(e){return e?Zt(e).slice(0,180):""}function ub(e,n,t){if(t==="fallback")return!0;const r=Zt(e);if(!r)return!0;const o=tl(n);if(o.length<=20)return!1;const s=o.slice(0,Math.min(o.length,80));return r.includes(s)}function w1(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 db(e,n){let t=null;const r=tl(n),o=Zt(n);return r.length<=20||!o?null:(e.read(()=>{const l=p.$getRoot().getChildren();if(l.length===0)return;const u=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 T;const k=w.filter(R=>R.isAttached());if(k.length===0)return null;const L=k[0],O=k[k.length-1];return{start:u(L),end:d(O),anchorTopKey:((T=L.getTopLevelElement())==null?void 0:T.getKey())??L.getKey(),tracking:"fallback",insertedTopLevelKeys:k.map(R=>R.getKey())}},h=p.$getSelection(),m=p.$isRangeSelection(h)?(h.anchor.getNode().getTopLevelElement()??h.anchor.getNode()).getKey():null;let A=m!==null?l.findIndex(w=>w.getKey()===m):-1;A>=0?!Zt(l[A].getTextContent())&&A>0&&(A-=1):A=l.length-1;const y=[];let b="";for(let w=A;w>=0;w--){const k=l[w],L=Zt(k.getTextContent());if(!L){if(y.length>0)break;continue}const O=Zt(`${L} ${b}`);if(o.endsWith(O)||o.includes(O)){if(y.unshift(k),b=O,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=Zt(w.getTextContent());return k?k.includes(r)||r.includes(k):!1})??null;x&&(t=f([x]))}),t)}function k1(e){const n=e.exportJSON();return p.$isElementNode(e)&&(n.children=e.getChildren().map(k1)),n}function fL(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(" "),u=n.indexOf(s,t);if(u!==-1){const d=n.indexOf(l,u);d!==-1&&(r.combinedText=n.slice(u,d+l.length).trim(),t=d+l.length)}}else{const s=r.serializedNodes.map(l=>Ei(l).trim()).join(" ").split(/\s+/);if(s.length>=3){const l=s.slice(-3).join(" "),u=n.indexOf(l,t);u!==-1&&(t=u+l.length)}}}const S1=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"]),hL=new Set(["paragraph","element","linebreak"]);function Ei(e){return"text"in e&&typeof e.text=="string"?e.text:"children"in e&&Array.isArray(e.children)?e.children.map(Ei).join(""):""}function fb(e){const n=[];for(const t of e){const r=t.type;if(r==="paragraph"||S1.has(r))n.push(t);else if("children"in t&&Array.isArray(t.children)){const o=t.children;o.length>0&&n.push(...fb(o))}else Ei(t).trim()&&n.push({...t,type:"paragraph"})}return n}const pL=[/\n\s*\n/,/^[-*+]\s/m,/^\d+\.\s/m,/^```/m,/^#{1,6}\s/m,/^>\s/m,/\|.*\|.*\|/,/^(ВНИМАНИЕ|WARNING|ВАЖНО|NOTE|TIP):/im,/^[⚠️❗🔥💡ℹ️]/m];function gL(e){for(const n of pL)if(n.test(e))return!0;return!1}function j0(e){const n=fb(e),t=[];let r=null,o=[],s=[],l=[];function u(){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"||hL.has(w)){const k=Ei(x).trim();if(!k)continue;r!=="paragraph"&&(u(),r="paragraph"),s.push(k),l.push(x)}else if(S1.has(w))r!=="stable"&&(d(),r="stable"),o.push(x);else{const k=Ei(x).trim();k?(r!=="paragraph"&&(u(),r="paragraph"),s.push(k),l.push(x)):(r!=="stable"&&(d(),r="stable"),o.push(x))}}u(),d();let f=0,h="";for(const x of t)x.kind==="paragraph"&&(f+=x.combinedText.length,h+=(h?`
24
+ `:"")+x.combinedText);const m=t.some(x=>x.kind==="paragraph"),A=t.some(x=>x.kind==="stable"),y=m&&(A||f>=cb),b=h?gL(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}},I0={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 sa(e){return{...An.text,text:e}}const O0=/[\s([{]$/,D0=/^[\s)\]}.,:;!?]/;function nc(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&&!D0.test(s)&&(s=" "+s),s.length>0&&!O0.test(s)&&(s+=" "),n.push(sa(s))}else if(n.length>0){const s=n[n.length-1];s.text&&!O0.test(s.text)&&n.push(sa(" "))}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&&!D0.test(s)&&(s=" "+s),n.push(sa(s))}return n.length>0?n:[sa(e)]}function mL(e,n){return{type:"link",version:1,url:e,rel:"noreferrer",target:null,title:null,direction:null,format:"",indent:0,children:[sa(n)]}}function nl(e,n){if(!n.length)return nc(e);const t=[];let r=e;for(;r.length>0;){let o=1/0,s=null;for(const l of n){const u=r.indexOf(l.text);u!==-1&&u<o&&(o=u,s=l)}s!==null&&o<1/0?(o>0&&t.push(...nc(r.slice(0,o))),t.push(mL(s.url,s.text)),r=r.slice(o+s.text.length)):(t.push(...nc(r)),r="")}return t.length>0?t:nc(e)}function Ca(e,n=[]){return{...An.paragraph,children:nl(e,n)}}function CL(e,n,t=[]){return{...An.heading,tag:e,children:nl(n,t)}}function AL(e,n,t=[]){return{...e==="bullet"?An.bulletList:An.numberList,children:n.map((o,s)=>({...An.listitem,value:s+1,children:nl(o,t)}))}}function bL(e,n=[]){return{...An.checkList,children:e.map((t,r)=>({...An.checkListitem,value:r+1,checked:t.checked,children:nl(t.text,n)}))}}function yL(e,n=[]){return{...An.quote,children:nl(e,n)}}function xL(e,n,t=[]){const r=I0[e]??I0.default;return{...An.calloutWrapper,backgroundColor:r.bg,calloutType:e,children:[{...An.calloutImage,emojiCode:r.emoji},{...An.calloutContent,children:[Ca(n,t)]}]}}const vL=new Set(["c","clike","cpp","css","html","java","js","json","markdown","objc","plain","powershell","py","rust","sql","swift","typescript","xml"]),P0={javascript:"js",python:"py","c++":"cpp","objective-c":"objc",ts:"typescript",tsx:"typescript",jsx:"js"};function wL(e){if(!e)return"plain";const n=e.toLowerCase();return vL.has(n)?n:P0[n]?P0[n]:"plain"}function kL(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:wL(e),children:r}}function SL(e,n,t,r){return{type:"video",version:1,format:"",platform:e,videoID:n,width:t||"inherit",height:r||"inherit"}}function EL(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 Aa(e){switch(e.kind){case"image":return ML(e.src,e.altText,e.width,e.height);case"video":return SL(e.platform,e.mediaId,e.width,e.height);case"embed":return EL(e.src,e.platform,e.mediaId,e.width,e.height)}}function ML(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 hb(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 TL(e,n=[]){return{...An.table,children:e.map((t,r)=>({...An.tableRow,children:t.map(o=>({...An.tableCell,headerState:r===0?1:0,children:[Ca(o,n)]}))}))}}function B0(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())?Ca(e.text,n):CL(e.type,e.text,n);case"p":return Ca(e.text,n);case"bullet":case"number":return AL(e.type,e.items,n);case"check":return bL(e.items,n);case"quote":return yL(e.text,n);case"callout":return xL(e.style,e.text||"",n);case"code":return kL(e.lang,e.text||"");case"table":return TL(e.rows,n);case"hr":return An.horizontalRule;default:return Ca(e.text??"",n)}}function LL(e){return"text"in e?e.text??"":"items"in e?e.items.map(t=>typeof t=="string"?t:t.text).join(" "):""}function pb(e,n=[],t=[]){if(!t.length)return e.map(s=>B0(s,n));const r=[],o=new Set;for(const s of e){r.push(B0(s,n));const l=LL(s);for(let u=0;u<t.length;u++)o.has(u)||hb(l,t[u].anchorText)&&(r.push(Aa(t[u])),o.add(u))}for(let s=0;s<t.length;s++)o.has(s)||r.push(Aa(t[s]));return r}const NL=[[/^>\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 gb(e){return e.split(`
26
+ `).map(n=>{for(const[t,r]of NL){const o=n.match(t);if(o)return`[CALLOUT:${r}] ${n.slice(o[0].length)}`}return n}).join(`
27
+ `)}function mb(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 RL(e,n,t){const r=e.trim();if(!r)return null;const o=h=>t.some(m=>h>=m.start&&h<m.end),s=[...new Set(r.match(/\b\w{5,}\b/g)||[])],l=h=>s.length<=2?!0:s.filter(A=>h.includes(A)).length/s.length>=.4;let u=-1,d=0,f=null;{let h=0;for(;;){const m=n.indexOf(r,h);if(m===-1)break;if(!o(m)){f={code:r,start:m,end:m+r.length},u=m;break}h=m+1}}if(u===-1){const h=r.match(/\b\w{4,}\b/g);if(!(h!=null&&h.length))return null;const m=[...new Set(h)],A=m.sort((w,k)=>k.length-w.length),y=A[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 A.slice(1)){for(x=0;;){const k=n.indexOf(w,x);if(k===-1)break;if(!o(k)){u=k;break}x=k+1}if(u!==-1)break}else if(b.length===1)u=b[0];else{const w=r.length+200,k=m.slice(0,20);let L=-1;for(const O of b){const T=Math.max(0,O-100),R=Math.min(n.length,O+w),E=n.slice(T,R);let M=0;for(const P of k)E.includes(P)&&(M+=P.length);M>L&&(L=M,u=O)}}u!==-1&&(d=r.indexOf(y))}if(u===-1)return null;{const h=Math.max(0,u-300),m=Math.min(n.length,u+r.length+300),A=n.slice(h,m),y=/```\w*\s*\n?([\s\S]*?)```/g;let b;for(;(b=y.exec(A))!==null;){const x=h+b.index+b[0].indexOf(b[1]),w=x+b[1].length;if(u>=h+b.index&&u<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,u-2e3);let m=0,A=-1;for(let E=u-1;E>=h;E--)if(n[E]==="}"&&m++,n[E]==="{")if(m>0)m--;else{A=E;break}const y=A!==-1?A:u,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(A!==-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=A}else w=u;let k=0,L=w,O=!1,T=-1;for(let E=w;E<n.length&&E<w+3e3;E++)if(n[E]==="{"&&(O||(T=E),k++,O=!0),n[E]==="}"&&(k--,k<=0&&O)){L=E+1;break}const R=Math.max(r.length,300);if(O&&L>w&&T-w<=R){const E=n.slice(w,L).trim(),M=E.replace(/\s/g,"").length,P=r.replace(/\s/g,"").length;if(M>=P*.7&&l(E))return{code:E,start:w,end:L}}}{const h=n.slice(Math.max(0,u-500),u),m=h.lastIndexOf(`
28
+
29
+ `),A=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;m!==-1?b=Math.max(0,u-500)+m+2:A!==-1?b=Math.max(0,u-500)+A+1:y!==-1?b=Math.max(0,u-500)+y:b=Math.max(0,u-d-20);const x=b+r.length+40,w=n.slice(u),k=w.search(/\n\s*\n/),L=r.length-d;let O=-1;if(k!==-1)O=k;else{const P=w.search(/[.!?]\s+[A-ZА-ЯЁ]|>\s*\[!/);P!==-1&&P>=L&&u+P<=x&&(O=P)}let T=O!==-1?u+O+1:Math.min(x,n.length);if(O===-1&&s.length>0){const P=n.slice(b,T);let I=0;for(const F of s){const _=P.lastIndexOf(F);_!==-1&&(I=Math.max(I,_+F.length))}I>0&&(T=b+I)}const R=n.slice(b,T).trim(),E=R.replace(/\s/g,"").length,M=r.replace(/\s/g,"").length;if(E>=M*.7&&l(R))return{code:R,start:b,end:T}}return f||null}const jL=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 IL(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 _0(e,n){if(e.includes(`
36
+ `))return e;const t=(n||"plain").toLowerCase();if(t==="python"||t==="py")return IL(e);if(!e.includes("{")||!jL.has(t))return e;const r=[];let o=0,s="",l=null,u=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==="("){u++,s+=h;continue}if(h===")"){u--,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===";"&&u<=0){s+=";";let m=f+1;for(;m<e.length&&e[m]===" ";)m++;if(m<e.length-1&&e[m]==="/"&&e[m+1]==="/"){let A=m+2;for(;A<e.length&&e[A]!=="{"&&e[A]!=="}";)A++;s+=e.slice(f+1,A).trimEnd(),f=A-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 F0(e,n){if(!n)return e;const t=new RegExp(`^${n}\\s+`,"i");return e.replace(t,"")}function Cb(e,n,t){const r=t??[];return e.map(o=>{var u;if(o.type!=="code"||!((u=o.text)!=null&&u.trim()))return o;const s=RL(o.text,n,r);if(s){r.push({start:s.start,end:s.end});const d=F0(s.code,o.lang);return{type:"code",lang:o.lang,text:_0(d,o.lang)}}const l=F0(o.text||"",o.lang);return{...o,text:_0(l,o.lang)}})}const OL=["h1","h2","h3","h4","h5","h6"];function hi(e){return OL.includes(e)}function Ec(e){return parseInt(e.charAt(1),10)}function DL(e){let n=!1;const t=e.findIndex(l=>hi(l.type));if(t!==-1&&e[t].type!=="h1"&&!e.some(u=>u.type==="h1")){const u=Ec(e[t].type);e.some(f=>hi(f.type)&&Ec(f.type)>u)&&(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(!hi(l.type))return l;const u=Ec(l.type);if(o.has(u)){const f=o.get(u);return s=f,{...l,type:`h${f}`}}let d=u;return s>0&&u>s+1&&(d=s+1),o.set(u,d),s=d,{...l,type:`h${d}`}}),r=PL(r),r}function gf(e,n){for(let t=n+1;t<e.length;t++){if(hi(e[t].type))return null;const r=e[t].type;if(r!=="p")return r}return null}function PL(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(hi(n[s].type))if(n[s].type==="h2")o.push(s),s++;else break;else s++;if(o.length>=2){const l=gf(n,o[0]),u=o.slice(1).every(d=>gf(n,d)==="code"||gf(n,d)==="table");if(l!=="code"&&l!=="table"&&u)for(let d=1;d<o.length;d++)n[o[d]]={...n[o[d]],type:"h3"}}t=r+1}return n}function Ab(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,u=o.slice(0,l).trimEnd(),d=o.slice(l).trimStart();if(d.length>0)return[u,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 u=s.slice(0,l).join(" "),d=s.slice(l).join(" ");return[u,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((u,d)=>u+d.length,0)/s.length>=85?[o]:s}).join(`
67
+ `),r=r.replace(/\n{3,}/g,`
68
+
69
+ `),r=r.trim(),r}const bb=`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.`,BL="https://denindka.online/smart-paste";function _L(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=Cb(l,n),l=mb(l),l=DL(l),pb(l,[],t)}async function yb(e,n,t=[]){const r=e.slice(0,Si),o=Ab(r),s=gb(o),l=JSON.stringify({messages:[{role:"system",content:bb},{role:"user",content:s}]});return new Promise((u,d)=>{const f=setTimeout(()=>{d(new Error("AI timeout"))},oh);n(l,h=>{clearTimeout(f);try{const m=_L(h,r,t);u(m)}catch(m){d(m)}},()=>{clearTimeout(f),d(new Error("AI request failed"))})})}function E1(e,n,t,r,o,s){let l=setTimeout(()=>s(),oh),u=0,d=e.length>Si;const f=new Set,h=[];let m=!1,A=0;const y=new Map,b=e.slice(0,Si),x=Ab(b),w=gb(x),k=O=>{clearTimeout(l),l=setTimeout(()=>s(),oh);let T=O;if(hi(T.type)){T.type==="h1"&&m&&(T={...T,type:"h2"}),T.type==="h1"&&(m=!0);const P=Ec(T.type);if(y.has(P)){const I=y.get(P);T={...T,type:`h${I}`},A=I}else{let I=P;A>0&&P>A+1&&(I=A+1),y.set(P,I),A=I,T={...T,type:`h${I}`}}}const[R]=Cb([T],b,h),[E]=mb([R]),M=pb([E],n);if(t.length>0){const P="text"in E?E.text??"":"";for(let I=0;I<t.length;I++)!f.has(I)&&hb(P,t[I].anchorText)&&(M.push(Aa(t[I])),f.add(I))}r(M),u++},L=JSON.stringify({messages:[{role:"system",content:bb},{role:"user",content:w}]});fetch(BL,{method:"POST",headers:{"Content-Type":"application/json"},body:L}).then(async O=>{if(!O.ok||!O.body){clearTimeout(l),s();return}const T=O.body.getReader(),R=new TextDecoder;let E="";for(;;){const{done:M,value:P}=await T.read();if(M)break;const I=R.decode(P,{stream:!0});E+=I;const F=E.split(`
184
+ `);E=F.pop()||"";for(const _ of F){const N=_.trim();if(N){if(N==="data: [DONE]"){if(clearTimeout(l),u===0){s();return}if(t.length>0){const j=t.filter((U,W)=>!f.has(W)).map(U=>Aa(U));j.length>0&&r(j)}o(d);return}if(N.startsWith("data: "))try{const j=N.slice(6),U=JSON.parse(j);if(U.error){clearTimeout(l),s({error:U.error,message:U.message});return}if(U.warning==="truncated"){d=!0;continue}k(U)}catch{}}}}if(clearTimeout(l),u===0){s();return}if(t.length>0){const M=t.filter((P,I)=>!f.has(I)).map(P=>Aa(P));M.length>0&&r(M)}o(d)}).catch(()=>{clearTimeout(l),s()})}const FL=Object.freeze(Object.defineProperty({__proto__:null,segmentByAI:yb,segmentByAIStream:E1},Symbol.toStringTag,{value:"Module"}));function WL(e,n){if(!e||e.length===0)return{valid:!1,reason:"No segments produced"};for(const s of e)if(!uL.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 zL(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=w1(t));let u=null,d=!1;if(!l&&(t!=null&&t.anchorTopKey)){const m=p.$getNodeByKey(t.anchorTopKey),A=(m==null?void 0:m.getTopLevelElement())??m??null;A&&A.isAttached()&&(u=A,d=!0)}if(!u&&r){const m=tl(r);m.length>20&&(u=s.getChildren().find(A=>Zt(A.getTextContent()).includes(m))??null,u&&(d=!0))}if(!u&&l){const m=p.$getSelection();if(!p.$isRangeSelection(m))return;const A=m.anchor.getNode().getTopLevelElement();if(m.removeText(),A&&A.isAttached()&&ub(A.getTextContent(),r,t==null?void 0:t.tracking))u=A,d=!0;else{const y=m.getNodes()[0];u=y?y.getTopLevelElement():s.getLastChild(),d=!!u}}u||(u=s.getLastChild());let f=u,h=!1;for(const m of n)try{const A=p.$parseSerializedNode(m);!h&&f&&f.getTextContent().trim()===""?(f.replace(A),f=A,h=!0):(f?f.insertAfter(A):s.append(A),f=A)}catch{}(!h&&d&&u&&u.isAttached()||h&&u&&u.isAttached())&&u.remove()})}function Di(e,n){return e._nodes.has(n)}function W0(e){return e.trim().replace(/^#{1,6}\s+/,"")}function z0(e){return e.trim().split(`
187
+ `).map(n=>n.replace(/^>\s?/,"")).join(`
188
+ `)}function U0(e){return e.trim().replace(/^\[!(NOTE|TIP|WARNING|CAUTION|IMPORTANT)\]\s*/im,"")}function Fs(e){const n=p.$createParagraphNode();return e.trim()&&n.append(p.$createTextNode(e.trim())),n}function UL(e,n){const t=[];for(const r of e){const o=KL(r,n);t.push(...o)}return t}function KL(e,n){switch(e.blockType){case"heading":return HL(e,n);case"bullet-list":return K0(e,"bullet",n);case"number-list":return K0(e,"number",n);case"quote":return YL(e,n);case"code":return ZL(e,n);case"callout":return GL(e,n);case"horizontal-rule":return VL(n);case"paragraph":default:return[Fs(e.rawText)]}}function HL(e,n){var o;const t=((o=e.meta)==null?void 0:o.headingLevel)||"h1";if(!Di(n,"heading"))return[Fs(W0(e.rawText))];const r=cn.$createHeadingNode(t);return r.append(p.$createTextNode(W0(e.rawText))),[r]}function K0(e,n,t){var s,l;if(!Di(t,"list"))return(((s=e.meta)==null?void 0:s.listItems)||[e.rawText.trim()]).map(d=>Fs(d));const r=un(n),o=((l=e.meta)==null?void 0:l.listItems)||[e.rawText.trim()];for(const u of o){const d=Wn();d.append(p.$createTextNode(u)),r.append(d)}return[r]}function YL(e,n){if(!Di(n,"quote"))return[Fs(z0(e.rawText))];const t=cn.$createQuoteNode();return t.append(p.$createTextNode(z0(e.rawText))),[t]}function ZL(e,n){var l;if(!Di(n,"extend-code"))return[Fs(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 GL(e,n){var m;if(!Di(n,"callout-wrapper"))return[Fs(U0(e.rawText))];const t=((m=e.meta)==null?void 0:m.calloutType)||"default",{emoji:r,backgroundColor:o,calloutType:s}=Tu(t),l=Ha(o||"#f3f3f4",s||"default"),u=qa(r||"e=%F0%9F%99%82"),d=Ka(),f=p.$createParagraphNode(),h=U0(e.rawText);return h.trim()&&f.append(p.$createTextNode(h.trim())),d.append(f),l.append(u),l.append(d),[l]}function VL(e){return Di(e,"horizontalrule")?[Ms.$createHorizontalRuleNode()]:[Fs("---")]}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=w1(t));let u=null,d=!1;if(!l&&(t!=null&&t.anchorTopKey)){const h=p.$getNodeByKey(t.anchorTopKey),m=(h==null?void 0:h.getTopLevelElement())??h??null;m&&m.isAttached()&&(u=m,d=!0)}if(!u&&r){const h=tl(r);h.length>20&&(u=s.getChildren().find(m=>Zt(m.getTextContent()).includes(h))??null,u&&(d=!0))}if(!u&&l){const h=p.$getSelection();if(p.$isRangeSelection(h)){const m=h.anchor.getNode().getTopLevelElement();if(h.removeText(),m&&m.isAttached()&&ub(m.getTextContent(),r,t==null?void 0:t.tracking))u=m,d=!0;else{const A=h.getNodes()[0];u=A?A.getTopLevelElement():s.getLastChild(),d=!!u}}}u||(u=s.getLastChild());const f=UL(n,e);if(f.length>0){let h=u,m=!1;for(const A of f)!m&&h&&h.getTextContent().trim()===""?(h.replace(A),h=A,m=!0):(h?h.insertAfter(A):s.append(A),h=A);(!m&&d&&u&&u.isAttached()||m&&u&&u.isAttached())&&u.remove()}})}let Ts=Promise.resolve();function Mc(){Ts=Promise.resolve()}function Tc(e){Ts=e}function Lc(e){if(!Kt.$isCodeNode(e)&&!mn(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 sh(e){const n=[],t=[];function r(o){if(p.$isTextNode(o)&&t.push(o),p.$isElementNode(o)){if(Kt.$isCodeNode(o)||mn(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(u=>u);n.push({textNodeKey:o.getKey(),fullText:s,words:l}),o.setTextContent(" ")}}return n}async function ih(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 Nc(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 Yo(e){typeof window<"u"&&window.dispatchEvent(new CustomEvent("smart-paste-telemetry",{detail:e}))}const QL={note:"default",tip:"success",warning:"warning",caution:"alert",important:"alert"};function JL(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 m=`\0CODE_BLOCK_${r++}\0`;return t.push({placeholder:m,content:h,language:f||"plain",fullMatch:d}),m}).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 u=[];for(const d of l){const f=d.trim();if(f.length===0){u.length>0&&(u[u.length-1].rawText+=d);continue}const h=t.find(y=>f===y.placeholder);if(h){u.push({blockType:"code",rawText:d.replace(h.placeholder,h.fullMatch),meta:{language:h.language}});continue}let m=d;for(const y of t)m.includes(y.placeholder)&&(m=m.replace(y.placeholder,y.fullMatch));const A=XL(f,m);u.push(A)}return $L(u)}function XL(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=QL[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(u=>u.trim().length>0).map(u=>u.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(u=>u.trim().length>0).map(u=>u.replace(/^\s*\d+\.\s/,""));return{blockType:"number-list",rawText:n,meta:{listItems:l}}}}return{blockType:"paragraph",rawText:n}}function $L(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 ah(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";G9.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 eN(e,n,t,r){const{editor:o,fetchSmartPastePrompt:s,serverStreamAvailable:l}=e;let u=!1,d=!1,f;const h=[];let m=null;o.update(()=>{let x=null,w=[],k=[];for(const O of t){const T=p.$getNodeByKey(O);if(!T)continue;const R=T.getType();if(S1.has(R))x==="paragraph"&&k.length>0&&(h.push({kind:"paragraph",texts:k,combinedText:k.join(`
194
+ `)}),k=[]),x="stable",w.push(k1(T));else{const M=T.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 L=p.$getNodeByKey(t[0]);if(L!=null&&L.isAttached()){const O=L.getPreviousSibling();m=(O==null?void 0:O.getKey())??null}si(!0);for(const O of t){const T=p.$getNodeByKey(O);T!=null&&T.isAttached()&&T.remove()}},{discrete:!0}),fL(h,r),Mc();const A=async x=>{if(s){const{segmentByAI:w}=await Promise.resolve().then(()=>FL);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,A(k))}}function b(x){if(m){const w=p.$getNodeByKey(m),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)}m=x.getKey()}for(let x=0;x<h.length;x++){const w=h[x],k=x;w.kind==="stable"?Tc(Ts.then(async()=>{const L=[];o.update(()=>{for(const O of w.serializedNodes)try{const T=p.$parseSerializedNode(O);b(T);const R=Lc(T);R&&L.push(R)}catch{}},{discrete:!0});for(const O of L)await Nc(o,O)})):Tc(Ts.then(async()=>{if(s){let L;try{L=await y.get(k)}catch{return}for(let O=0;O<L.length;O++){const T=L[O],R=[];let E=null;if(o.update(()=>{try{const M=p.$parseSerializedNode(T);b(M),E=Lc(M),E||R.push(...sh(M))}catch{}},{discrete:!0}),await new Promise(M=>requestAnimationFrame(M)),E)await Nc(o,E);else for(const M of R)await ih(o,M)}}else if(l){const O=w.combinedText.slice(0,Si),T=[];let R=!1,E=null;for(E1(O,e.pendingLinksRef.current,e.pendingRichElementsRef.current,M=>{T.push(M),E&&(E(),E=null)},M=>{M&&(u=!0),R=!0,E&&(E(),E=null)},M=>{d=!0,f=M,R=!0,E&&(E(),E=null)});!R||T.length>0;){if(T.length===0){await new Promise(P=>{E=P});continue}const M=T.shift();for(const P of M){const I=[];let F=null;if(o.update(()=>{try{const _=p.$parseSerializedNode(P);b(_),F=Lc(_),F||I.push(...sh(_))}catch{}},{discrete:!0}),await new Promise(_=>requestAnimationFrame(_)),F)await Nc(o,F);else for(const _ of I)await ih(o,_)}}}}))}return Tc(Ts.then(()=>{if(si(!1),e.setIsProcessing(!1),d){ah(o,e.preAIEditorStateRef,()=>{e.resetPendingRefs(),e.setPopupMode(null),e.setPendingText("")},e.t,f),Mc();return}e.setPopupMode("confirm"),Mc()})),u}function rc(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 tN(e,n,t){const{editor:r,fetchSmartPastePrompt:o,serverStreamAvailable:s,onTrack:l}=e,u=performance.now();if(l==null||l("smart_paste_processing_started",{choice:n,textLength:t.length}),n==="plain"){rc(e),Yo({choice:"plain",textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-u});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 eN({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);Yo({choice:"ai",textLength:t.length,segmentCount:y.runs.length,processingTimeMs:performance.now()-u,wasTruncated:x}),l==null||l("smart_paste_processing_completed",{choice:"ai",processingTimeMs:Math.round(performance.now()-u),segmentCount:y.runs.length})}catch(x){console.warn("[SmartPaste] processNodeBasedAI failed, restoring state",x),si(!1),e.setIsProcessing(!1),ah(r,e.preAIEditorStateRef,()=>rc(e),e.t)}return}let m=e.pendingRangeRef.current;if(!m){const y=db(r,t);y&&(e.pendingRangeRef.current=y,m=y)}const A=!!o&&(!m||m.tracking==="fallback");if(s&&!A){let y=0,b=null,x=null,w=null,k=!1,L=Promise.resolve();const O=[],T=tl(t),R=T.slice(0,Math.min(T.length,80));r.update(()=>{const E=p.$getRoot(),M=e.pendingRangeRef.current;e.pendingRangeRef.current=null;let P=!1;if(M){const I=(M.insertedTopLevelKeys||[]).map(_=>{const N=p.$getNodeByKey(_);return(N==null?void 0:N.getTopLevelElement())??N??null}).filter(_=>!!(_&&_.isAttached()));if(I.length>0){const[_,...N]=I;x=_,w=_.getKey(),k=!0,P=!0,N.forEach(j=>{j.isAttached()&&j.remove()})}if(!x&&w1(M)){const N=p.$getSelection();p.$isRangeSelection(N)&&N.removeText()}const F=M.anchorTopKey?p.$getNodeByKey(M.anchorTopKey):null;if(F&&F.isAttached()){if(!x){x=F,w=x.getKey();const _=Zt(x.getTextContent());k=M.tracking==="fallback"||R.length>20&&_.includes(R),p.$isElementNode(x)&&M.start.offset===0&&M.end.key===M.start.key&&x.clear()}}else{const _=p.$getSelection(),N=_==null?void 0:_.getNodes()[0];if(x=(N==null?void 0:N.getTopLevelElement())??null,w=(x==null?void 0:x.getKey())??null,x){const j=Zt(x.getTextContent());k=R.length>20&&j.includes(R)}}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 _=Zt(x.getTextContent());k=R.length>20&&_.includes(R)}else if(R.length>20){const _=E.getChildren().find(N=>Zt(N.getTextContent()).includes(R))??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(N=>N.getKey()===I.getKey());if(_>=0){const N=Zt(t);let j=Zt(I.getTextContent());const U=[];if(j&&N.startsWith(j))for(let W=_+1;W<F.length;W+=1){const B=F[W],Z=Zt(B.getTextContent());if(!Z)continue;const Q=Zt(`${j} ${Z}`);if(N.startsWith(Q)){U.push(B),j=Q;continue}break}U.length>0&&U.forEach(W=>{W.isAttached()&&W.remove()})}}if((M==null?void 0:M.tracking)==="fallback"&&R.length>20&&x&&x.isAttached()){const I=x.getTopLevelElement()??x,F=E.getChildren(),_=F.findIndex(N=>N.getKey()===I.getKey());if(_>0){const N=F.slice(0,_),j=Zt(t);let U=N.findIndex(W=>Zt(W.getTextContent()).includes(R));if(U<0&&N.length>0){const W=Zt(N[0].getTextContent());W&&j.startsWith(W)&&(U=0)}if(U>=0){const W=[];let B="";for(let Z=U;Z<N.length;Z+=1){const Q=Zt(N[Z].getTextContent()),re=Zt(`${B} ${Q}`);if(j.startsWith(re)||j.includes(re)){W.push(N[Z]),B=re;continue}break}W.length>0&&W.forEach(Z=>{Z.isAttached()&&Z.remove()})}}}P&&x&&x.isAttached()&&(p.$isElementNode(x)?x.clear():p.$isTextNode(x)&&x.setTextContent(""))}),si(!0),E1(t,e.pendingLinksRef.current,e.pendingRichElementsRef.current,E=>{Tc(Ts.then(async()=>{const M=[],P=[],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 N=p.$parseSerializedNode(_);if(F&&x&&x.isAttached()&&x.getTextContent().trim()==="")x.replace(N),b=N,x=null,F=!1;else{const W=b?b.getTopLevelElement()??b:null;W&&W.isAttached()?W.insertAfter(N):p.$getRoot().append(N),b=N,F=!1}y++;const j=N.getKey();M.push(j);const U=Lc(N);if(U)I.push(U);else{const W=sh(N);P.push(...W)}}catch{}p.$getRoot().selectEnd()},{discrete:!0}),O.push(...M),await new Promise(_=>requestAnimationFrame(_)),await new Promise(_=>requestAnimationFrame(_)),M.length>0){const _=M[0],N=r.getElementByKey(_);N&&N.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}for(const _ of I)await Nc(r,_);for(const _ of P)await ih(r,_)})),L=Ts},async E=>{await L,Mc(),r.update(()=>{var I,F;let M=!1;if(R.length>20&&O.length>0){const _=p.$getRoot(),N=(I=O.map(j=>{const U=p.$getNodeByKey(j);return(U==null?void 0:U.getTopLevelElement())??U??null}).find(Boolean))==null?void 0:I.getKey();if(N){const j=_.getChildren(),U=j.findIndex(W=>W.getKey()===N);if(U>0){const W=j.slice(0,U),B=Zt(t);let Z=W.findIndex(Q=>Zt(Q.getTextContent()).includes(R));if(Z<0&&W.length>0){const Q=Zt(W[0].getTextContent());Q&&B.startsWith(Q)&&(Z=0)}if(Z>=0){const Q=[];let re="";for(let oe=Z;oe<W.length;oe++){const Ce=Zt(W[oe].getTextContent()),Te=Zt(`${re} ${Ce}`);if(B.startsWith(Te)||B.includes(Te)){Q.push(W[oe]),re=Te;continue}break}Q.forEach(oe=>{oe.isAttached()&&oe.remove()}),M=!0}}}}const P=w?((F=p.$getNodeByKey(w))==null?void 0:F.getTopLevelElement())??p.$getNodeByKey(w):null;if(!M&&P&&P.isAttached()&&y>0&&k){P.remove();return}P&&P.isAttached()&&P.getTextContent().trim()===""&&p.$getRoot().getChildrenSize()>1&&P.remove()}),Yo({choice:"ai",textLength:t.length,segmentCount:y,processingTimeMs:performance.now()-u,wasTruncated:E}),l==null||l("smart_paste_processing_completed",{choice:"ai",processingTimeMs:Math.round(performance.now()-u),segmentCount:y}),si(!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";Yo({choice:"ai",textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-u,fallback:!0,fallbackReason:M}),l==null||l("smart_paste_processing_failed",{choice:"ai",fallbackReason:M}),si(!1),e.setIsProcessing(!1),ah(r,e.preAIEditorStateRef,()=>rc(e),e.t,E)});return}if(o){const y=e.pendingRangeRef.current;e.pendingRangeRef.current=null;const b=await yb(t,o,e.pendingRichElementsRef.current);zL(r,b,y,t),Yo({choice:"ai",textLength:t.length,segmentCount:b.length,processingTimeMs:performance.now()-u}),l==null||l("smart_paste_processing_completed",{choice:"ai",processingTimeMs:Math.round(performance.now()-u),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=JL(t);WL(f,t).valid?(qL(r,f,d,t),Yo({choice:"rules",textLength:t.length,segmentCount:f.length,processingTimeMs:performance.now()-u}),l==null||l("smart_paste_processing_completed",{choice:"rules",processingTimeMs:Math.round(performance.now()-u),segmentCount:f.length})):(Yo({choice:"rules",textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-u,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)}`;Yo({choice:n,textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-u,fallback:!0,fallbackReason:f}),l==null||l("smart_paste_processing_failed",{choice:n,fallbackReason:f})}finally{n!=="ai"&&(e.setIsProcessing(!1),rc(e))}}g.createContext(null);const nN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},rN=g.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t,absoluteStrokeWidth:r=!1,className:o="",altIcon:s,showAlt:l=!1,icon:u,primaryColor:d,secondaryColor:f,disableSecondaryOpacity:h=!1,...m},A)=>{const y=t!==void 0?r?Number(t)*24/Number(n):t:void 0,b=y!==void 0?{strokeWidth:y,stroke:"currentColor"}:{},x={ref:A,...nN,width:n,height:n,color:d||e,className:o,...b,...m},k=[...l&&s?s:u].sort(([,L],[,O])=>{const T=L.opacity!==void 0;return O.opacity!==void 0?1:T?-1:0}).map(([L,O])=>{const T=O.opacity!==void 0,R=T&&!h?O.opacity:void 0,E=f?{...O.stroke!==void 0?{stroke:T?f:d||e}:{fill:T?f:d||e}}:{};return g.createElement(L,{...O,...b,...E,opacity:R,key:O.key})});return g.createElement("svg",x,k)});rN.displayName="HugeiconsIcon";p.createCommand("INSERT_VIDEO_COMMAND");p.createCommand("UPLOAD_VIDEO_COMMAND");function oN(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 u=r[1]||r[3],d=r[2]||r[4];return{platform:"vk",id:`${u}-${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 sN=[{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ă"}];sN.reduce((e,n)=>(e[n.value]=n.label,e),{});function iN(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 aN(e){if(!e)return[];try{const t=new DOMParser().parseFromString(e,"text/html"),r=[];return t.querySelectorAll("img, iframe").forEach(o=>{const s=iN(o);if(o.tagName==="IMG"){const l=o,u=l.src;if(!u||u.startsWith("file:///")||u===window.location.href)return;r.push({kind:"image",src:u,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,u=l.getAttribute("src")||"";if(!u)return;const d=l.getAttribute("width")||void 0,f=l.getAttribute("height")||void 0,h=oN(u);if(h.id&&h.platform!=="download"&&h.platform!=="upload"&&h.platform!=="unknown"&&h.platform!=="link"){r.push({kind:"video",src:u,platform:h.platform,mediaId:h.id,width:d,height:f,anchorText:s});return}const m=VA(u);m.id&&m.platform!=="unknown"&&r.push({kind:"embed",src:u,platform:m.platform,mediaId:m.id,width:d,height:f,anchorText:s})}}),r}catch{return[]}}function lN(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(),u=s.getAttribute("href");l&&u&&o.push({text:l,url:u})}),o}catch{return[]}}function cN(){const[e]=tt.useLexicalComposerContext(),{fetchSmartPastePrompt:n,onTrack:t}=g.useContext(at),{t:r}=He.useTranslation(),o=!0,s=g.useRef(null);g.useEffect(()=>{lL(),iL().then(re=>{s.current=re.smartPasteEnabled}).catch(()=>{s.current=!0})},[]);const[l,u]=g.useState(null),[d,f]=g.useState(""),[h,m]=g.useState(!1),[A,y]=g.useState(null),b=g.useRef(null),x=g.useRef([]),w=g.useRef([]),k=g.useRef(null),L=g.useRef(null),O=g.useRef([]),T=g.useRef(!1),R=g.useCallback(()=>{b.current=null,f(""),x.current=[],w.current=[],k.current=null,L.current=null,O.current=[]},[]),E=g.useCallback(()=>({editor:e,fetchSmartPastePrompt:n,serverStreamAvailable:o,onTrack:t,pendingLinksRef:x,pendingRichElementsRef:w,pendingRangeRef:k,pendingClassificationRef:L,pendingInsertedKeysRef:O,preAIEditorStateRef:b,setPendingText:f,setIsProcessing:m,setPopupMode:u,t:r}),[e,n,o,t,r]),M=g.useCallback((re,oe)=>{tN(E(),re,oe)},[E]),P=g.useCallback(()=>{var Te;const re=Me=>{let Re=e.getElementByKey(Me);return Re||e.read(()=>{var q;const ae=p.$getNodeByKey(Me),te=(q=ae==null?void 0:ae.getTopLevelElement)==null?void 0:q.call(ae);te&&(Re=e.getElementByKey(te.getKey()))}),Re},oe=O.current.at(-1)??((Te=k.current)==null?void 0:Te.end.key);if(oe){const Me=re(oe);if(Me)return Me}let Ce=null;return e.read(()=>{const Me=p.$getRoot().getChildren();for(let Re=Me.length-1;Re>=0;Re--){const ae=e.getElementByKey(Me[Re].getKey());if(ae){Ce=ae;break}}}),Ce},[e]),I=g.useCallback(()=>{const re=P();re&&re.scrollIntoView({block:"end",inline:"nearest"})},[P]),F=g.useCallback(()=>{const re=P();if(re){const Te=re.getBoundingClientRect();return{left:Te.left,top:Te.bottom}}const oe=window.getSelection();if(oe&&oe.rangeCount>0){const Te=oe.getRangeAt(0).getBoundingClientRect();if(Te.width||Te.height)return{left:Te.left,top:Te.bottom}}const Ce=e.getRootElement();if(Ce){const Te=Ce.getBoundingClientRect();return{left:Te.left,top:Te.bottom}}return{left:100,top:100}},[e,P]),_=g.useCallback(()=>{const re=F();y(re),u("choose"),t==null||t("smart_paste_popup_shown",{mode:"choose"}),requestAnimationFrame(()=>{const oe=F();y(oe)})},[F,t]);g.useEffect(()=>{const re=e.registerCommand(p.PASTE_COMMAND,oe=>{var ie,ne,H,X,Y;if(!s.current||(ie=oe.clipboardData)!=null&&ie.files&&oe.clipboardData.files.length>0)return!1;const Ce=(ne=oe.clipboardData)==null?void 0:ne.getData("application/x-lexical-editor");if(Ce){try{const J=JSON.parse(Ce),$=J.nodes??J;if(Array.isArray($)&&$.length>0){const Ae=j0($);if(!Ae.hasParagraphRuns||!Ae.hasStructuralSignals)return!1;oe.preventDefault();const me=[];e.update(()=>{const Fe=p.$getSelection();p.$isRangeSelection(Fe)&&Fe.removeText();for(const De of $)try{const Pe=p.$parseSerializedNode(De);p.$getRoot().append(Pe),me.push(Pe.getKey())}catch{}},{discrete:!0}),L.current=Ae,O.current=me;const ke=((H=oe.clipboardData)==null?void 0:H.getData("text/plain"))||"";return f(ke||$.map(Fe=>Ei(Fe)).join(`
196
+ `)),I(),_(),!0}}catch{}return!1}const Te=p.$getSelection();if(p.$isRangeSelection(Te)){const J=Te.anchor.getNode();if(ye.$findMatchingParent(J,Ae=>Kt.$isCodeNode(Ae)||mn(Ae))!==null)return!1}const Me=((X=oe.clipboardData)==null?void 0:X.getData("text/plain"))||"";if(!Me.trim())return!1;const Re=Me.trim(),ae=Re.split(`
197
+ `).filter(J=>J.trim()).length;if(Re.length<cb&&ae<cL)return!1;const te=((Y=oe.clipboardData)==null?void 0:Y.getData("text/html"))||"";x.current=lN(te),w.current=aN(te),oe.preventDefault();try{const J=dL(e,Me,te);if(J){if(k.current=J,te&&J.insertedTopLevelKeys&&J.insertedTopLevelKeys.length>0&&(n||o))try{let $=[];for(const Ae of J.insertedTopLevelKeys){const me=p.$getNodeByKey(Ae);me&&$.push(k1(me))}if($.length>0){const Ae=j0($);Ae.hasParagraphRuns&&(L.current=Ae,O.current=[...J.insertedTopLevelKeys])}}catch{}}else{const $=db(e,Me);k.current=$}}catch{}f(Me),I();let q=null;try{const J=localStorage.getItem(N0);J==="ai"||J==="plain"?q=J:J==="rules"&&localStorage.removeItem(N0)}catch{}const ce=Me.length>Si;return q&&!(q==="ai"&&ce)?(q==="ai"&&(b.current=e.getEditorState().clone(),m(!0)),M(q,Me),!0):(_(),!0)},p.COMMAND_PRIORITY_HIGH);return()=>{re(),x.current=[],k.current=null,L.current=null,O.current=[]}},[e,n,o,M,_,I]),g.useEffect(()=>{if(l!=="confirm")return;const re=F();y(re),requestAnimationFrame(()=>{y(F())})},[e,l,F]),g.useEffect(()=>{if(!l||h)return;const re=e.registerCommand(p.KEY_DOWN_COMMAND,oe=>(oe.defaultPrevented||oe.ctrlKey||oe.metaKey||oe.altKey||!(oe.isComposing||oe.key.length===1||oe.key==="Enter"||oe.key==="Backspace"||oe.key==="Delete"||oe.key==="Tab")||(u(null),R()),!1),p.COMMAND_PRIORITY_HIGH);return()=>{re()}},[e,h,l,R]);const N=g.useCallback(()=>{if(!h){if(T.current){T.current=!1;return}t==null||t("smart_paste_popup_dismissed",{mode:l}),u(null),R()}},[h,l,t,R]),j=g.useCallback(()=>{d&&(T.current=!0,t==null||t("smart_paste_choice_made",{choice:"ai"}),b.current=e.getEditorState().clone(),m(!0),u(null),M("ai",d))},[e,d,M,t]),U=g.useCallback(()=>{T.current=!0,t==null||t("smart_paste_choice_made",{choice:"plain"}),u(null),M("plain",d)},[d,M,t]),W=g.useCallback(()=>{t==null||t("smart_paste_choice_made",{choice:"disabled"}),s.current=!1,aL({smartPasteEnabled:!1}).catch(()=>{}),U()},[U,t]),B=g.useCallback(()=>{Bt.isFeatureRated(R0)||Bt.showFeatureFeedback({feature:R0,title:r("editor.smartPaste.feedbackTitle"),delay:5})},[r]),Z=g.useCallback(()=>{T.current=!0,t==null||t("smart_paste_result_accepted"),u(null),R(),B()},[R,t,B]),Q=g.useCallback(()=>{T.current=!0,t==null||t("smart_paste_result_discarded");const re=b.current;re&&e.setEditorState(re),u(null),R(),B()},[e,R,t,B]);return{popupMode:l,isProcessing:h,anchorPosition:A,excessChars:Math.max(0,d.length-Si),onClose:N,onApply:j,onDismiss:U,onDontShowAgain:W,onAccept:Z,onDiscard:Q}}function uN({visible:e,containerSelector:n}){const[t]=tt.useLexicalComposerContext(),[r,o]=g.useState(null);return g.useEffect(()=>{if(!e){o(null);return}const s=t.getRootElement();if(!s)return;const l=h=>s.closest(h)??document.querySelector(h),u=n&&l(n)||l(".editor-scroller");if(!u)return;const d=()=>o(u.getBoundingClientRect());d();const f=new ResizeObserver(d);return f.observe(u),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:a.jsxs("div",{className:"smart-paste-gradient-border",style:{left:r.left,top:r.top,width:r.width,height:r.height},children:[a.jsx("div",{className:"smart-paste-border"}),a.jsx("div",{className:"smart-paste-glow"})]})}const dN=()=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:[a.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"}),a.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"})]}),fN=()=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:[a.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)"}),a.jsx("defs",{children:a.jsxs("linearGradient",{id:"smartPasteAiGrad",x1:"1.5",y1:"8.00019",x2:"14.4994",y2:"8.00019",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#BE4BDB"}),a.jsx("stop",{offset:"0.360577",stopColor:"#E64980"}),a.jsx("stop",{offset:"0.990385",stopColor:"#FAB005"})]})})]});function hN({mode:e,anchorPosition:n,excessChars:t=0,onClose:r,onApply:o,onDismiss:s,onDontShowAgain:l,onAccept:u,onDiscard:d}){const{t:f}=He.useTranslation(),h=t>0,m=a.jsx(v.Menu.Item,{onClick:h?void 0:o,leftSection:a.jsx(fN,{}),disabled:h,className:"smart-paste-ai-gradient-item",children:a.jsx("span",{className:"smart-paste-ai-gradient",children:f("editor.smartPaste.aiButton")})});return a.jsxs(v.Menu,{opened:e!==null&&n!==null,onClose:r,position:"bottom-start",offset:8,transitionProps:zn,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:[a.jsx(v.Menu.Target,{children:a.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"}})}),a.jsxs(v.Menu.Dropdown,{children:[e==="choose"&&a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Item,{onClick:s,leftSection:a.jsx(dN,{}),children:f("editor.smartPaste.plainButton")}),h?a.jsx(v.Tooltip,{label:f("editor.smartPaste.textTooLong",{max:"10,000",excess:t.toLocaleString()}),position:"left",multiline:!0,maw:250,withArrow:!0,children:m}):m,a.jsx(v.Menu.Divider,{}),a.jsx(v.Menu.Item,{onClick:l,leftSection:a.jsx(ue,{icon:qh,size:16,color:"var(--gray-gray-text, #868E96)"}),style:{color:"var(--gray-gray-text, #868E96)"},children:f("editor.smartPaste.dontShowAgain")})]}),e==="confirm"&&a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Item,{onClick:u,leftSection:a.jsx(ue,{icon:Or,size:16}),children:f("editor.smartPaste.accept")}),a.jsx(v.Menu.Item,{onClick:d,leftSection:a.jsx(ue,{icon:Zh,size:16}),children:f("editor.smartPaste.discard")})]})]})]})}function pN({containerSelector:e}){const n=cN();return a.jsxs(a.Fragment,{children:[a.jsx(uN,{visible:n.isProcessing,containerSelector:e}),a.jsx(hN,{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 gN=1,mN=100;let xb=0,H0=!1;function CN(e){e.addEventListener("keydown",n=>{n.key==="Tab"&&(n.preventDefault(),xb=n.timeStamp)},!0)}function AN(e){if(!H0){const n=e.getRootElement();n&&CN(n),H0=!0}return e.registerCommand(p.FOCUS_COMMAND,n=>{const t=p.$getSelection();return p.$isRangeSelection(t)&&xb+mN>n.timeStamp&&p.$setSelection(t.clone()),!1},gN)}function bN(){const[e]=tt.useLexicalComposerContext();return g.useEffect(()=>AN(e),[e]),null}function yN(e,n){const t=e.anchor,r=e.focus,s=(r.isBefore(t)?r:t).getNode(),l=ye.$getNearestBlockElementAncestorOrThrow(s);if(!n&&l.__prev===null)return!0;l instanceof On&&!l.__opened&&l.setOpened(!0);const u=d=>{const f=d.getNextSibling(),h=f==null?void 0:f.getFirstChild();(h==null?void 0:h.__type)==="list"&&h.getChildren().forEach(A=>{A instanceof On&&(u(A),A.setIndent(Math.max(0,A.getIndent()-1)))})};return n&&u(l),!1}function xN(e){return e.registerCommand(p.KEY_TAB_COMMAND,n=>{const t=p.$getSelection();if(!p.$isRangeSelection(t))return!1;try{if(yN(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 vN(){const[e]=tt.useLexicalComposerContext();return g.useEffect(()=>xN(e)),null}const M1=()=>!!document.querySelector(".selected-all-document");function wN(){const[e]=tt.useLexicalComposerContext(),{imperativeHandleRef:n}=g.useContext(at),t=g.useCallback(()=>{const r=Qt(),{lexicalNode:o}=Ai(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]);g.useEffect(()=>{n!=null&&n.current&&(n.current.onDeleteCallout=t)},[n,t]),g.useEffect(()=>{if(!e.hasNodes([Bs,To,lo]))throw new Error("CalloutPlugin: CalloutNode not registered on editor");return ye.mergeRegister(e.registerMutationListener(lo,r=>{e.getEditorState().read(()=>{for(const[o,s]of r)if(s==="destroyed"){const l=Number(o),u=String(l-1);e.update(()=>{const d=p.$getNodeByKey(u);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(pu,r=>{const{emoji:o,backgroundColor:s,calloutType:l}=Tu(r);let u=p.$getSelection();if(p.$isNodeSelection(u)&&(wu(u),u=p.$getSelection()),!p.$isRangeSelection(u))return!1;const d=IA(u);if(d.length===0)return!1;const f=d[0],h=f.getParent();return cn.$isQuoteNode(f)||h!=null&&cn.$isQuoteNode(h)?(ln.$setBlocksType(u,bS(o,s,l),vS),!0):xS(u,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,()=>M1()&&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:u,selectedAllDocument:d}=qo(),f=s0(o.getTextContent()),h=s0(s.getTextContent());if(!(f===h&&(u||d)))return!1;r.preventDefault();const b=s.__calloutType??"default",x=ka.$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 kN(){return wN(),null}function T1(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,u=!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")&&(u=!1),h==="true"&&(l=!0)}),n.update(()=>{const f=p.$getNearestNodeFromDOMNode(o);f instanceof On&&(!u&&l?(f.setChecked(!1),f.setIndeterminate(!0)):!l&&!u?(f.setChecked(!1),f.setIndeterminate(!1)):u&&(f.setChecked(!0),f.setIndeterminate(!1)))}),l=!1,u=!0}},0),null}return T1(e.parentElement,n)}const SN=()=>{const e=Qt();if(!e)return!1;try{const n=ye.$getNearestBlockElementAncestorOrThrow(e);n instanceof On&&!n.__opened&&n.setOpened(!0)}catch{return!1}return!1};function vb(e,n,t=!1){const r=e.target;if(r===null||!ye.isHTMLElement(r))return;const o=r.firstChild;if(o!=null&&ye.isHTMLElement(o)&&(o.tagName==="UL"||o.tagName==="OL"))return;const s=r.parentNode,l=r.getBoundingClientRect(),u=e.pageX/ye.calculateZoomLevel(r);if(s&&u>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 On&&f.toggleOpen()})}}!s||s.__lexicalListType!=="check"||(r.dir==="rtl"?u<l.right&&u>l.right-20:u>l.left&&u<l.left+20)&&n()}const EN=cu.debounce((e,n)=>{const t=n.getElementByKey(e);t&&T1(t,n)},100);function Y0(e){vb(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(Rt(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 On&&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 On&&s.setChecked(!1)});return}}),T1(n,t))}})}function Z0(e){vb(e,()=>{e.preventDefault()},!0)}function MN(){const[e]=tt.useLexicalComposerContext();g.useEffect(()=>{const n=e.registerMutationListener(hr,t=>{for(const[r,o]of t)o==="updated"&&EN(r,e)},{skipInitialization:!0});return()=>{n()}},[e]),g.useEffect(()=>ye.mergeRegister(e.registerCommand(t1,()=>(Vf(e,"check"),!0),p.COMMAND_PRIORITY_LOW),e.registerRootListener((n,t)=>{n!==null&&(n.addEventListener("click",Y0),n.addEventListener("pointerdown",Z0)),t!==null&&(t.removeEventListener("click",Y0),t.removeEventListener("pointerdown",Z0))})),[e])}function TN(){return MN(),null}const Vc=p.createCommand("INSERT_EMBED_INTEGRATION_COMMAND ");function LN(){const[e]=tt.useLexicalComposerContext();return g.useEffect(()=>{if(!e.hasNodes([Oi]))throw new Error("EmbedPlugin: EmbedNode not registered on editor");return e.registerCommand(Vc,n=>{const t=p1("","100%","100%","",!0,n),r=Qt();return r&&r.getParent()&&(r==null||r.replace(t)),!0},p.COMMAND_PRIORITY_EDITOR)},[e]),null}function NN(e){g.useEffect(()=>{const n=e.hasNodes([In,Qr]),t=e.registerNodeTransform(Li,o=>{if(!n)return;const s=o.getParent();if(!s||yu(s)||o.isInline())return;const l=o.getNextSibling(),u=Va(o);l?l.insertBefore(u):s.append(u)}),r=n?e.registerNodeTransform(In,o=>{const s=o.getChildren();if(s.some(mn))return;const l=s.some(f=>Ri(f)),u=s.find(Ro);if(l||!u)return;const d=Io();u.insertBefore(d)}):()=>{};return ye.mergeRegister(t,r,e.registerCommand(Ra,o=>{const s=p.$getSelection();if(!p.$isRangeSelection(s))return!1;if(o==="inline")e.update(()=>{const u=p.$getSelection();if(!p.$isRangeSelection(u))return;const d=u.getTextContent().trim(),f=Ma(d,!0);u.insertNodes([f]),setTimeout(()=>{e.dispatchCommand(Dc,f.getKey())},0)});else if(n)Ek(e);else return!1;return!0},p.COMMAND_PRIORITY_EDITOR))},[e])}function RN(){const[e]=tt.useLexicalComposerContext();return NN(e),null}const jN=()=>{var u;const e=p.$getSelection(),n=e.anchor,t=e.focus,r=n.getNode(),o=t.getNode(),s=(u=r.getParent())==null?void 0:u.getIndexWithinParent();return(o instanceof qn||o.getParent()instanceof qn)&&(s===0||s||-1)&&n.key!==t.key?(e.removeText(),!0):!1};function qc(e){for(;e;){if(rs(e))return e;const n=e.getParent();if(!n)break;e=n}return null}const G0=e=>e.replace(/\s+/g," ").trim();function IN(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 ON(e){const n=p.$getSelection();if(!n||!p.$isRangeSelection(n)||!n.isCollapsed())return!1;const t=n.anchor.getNode(),r=qc(t);if(!r)return!1;const o=r.getChildren().find(mn);return!o||o.getTextContent()!==""?!1:(e.update(()=>{const s=p.$createParagraphNode();r.insertBefore(s),r.remove(),s.selectStart()}),!0)}const DN=e=>{e.update(()=>{let n=p.$getSelection();if(!n||p.$isNodeSelection(n)&&(wu(n),n=p.$getSelection(),!n))return;if(!p.$isRangeSelection(n)||n.isCollapsed()){ln.$setBlocksType(n,()=>Ia(()=>{const s=zf(!1);return s.setLanguage("plain"),s})());return}const t=n.getTextContent(),r=Ia(()=>{const s=zf(!1);return s.setLanguage("plain"),s})(),o=r.getChildren().find(s=>mn(s));n.insertNodes([r]),n=p.$getSelection(),p.$isRangeSelection(n)&&o&&mn(o)&&o.append(ts(t))})},wb=p.createCommand("INSERT_CODE_COMMAND");function PN(e){g.useEffect(()=>{const n=e.hasNodes([In,Qr]),t=e.registerNodeTransform(qn,o=>{if(!n)return;const s=o.getParent();if(!s||rs(s))return;const l=o.getNextSibling(),u=Va(o);l?l.insertBefore(u):s.append(u)}),r=n?e.registerNodeTransform(In,o=>{const s=o.getChildren();if(s.some(Ro))return;const l=s.some(f=>Ri(f)),u=s.find(mn);if(l||!u)return;const d=Io();u.insertBefore(d)}):()=>{};return ye.mergeRegister(t,r,e.registerCommand(wb,()=>n?(e.update(()=>{const o=Qt(),s=p.$getRoot();if(o){const l=Ia(()=>{const d=zf(!1);return d.setLanguage("plain"),d})(),u=l.getLastChild();u&&mn(u)&&u.append(ts(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)&&(mn(s.anchor.getNode())?l=s.anchor.getNode():Kt.$isCodeHighlightNode(s.anchor.getNode())&&(l=s.anchor.getNode().getParent()),l)){const u=e.registerCommand(p.INSERT_LINE_BREAK_COMMAND,()=>(u(),!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=qc(s.anchor.getNode()),u=qc(s.focus.getNode());if(!l||!u||l.getKey()!==u.getKey())return!1;const{hasSelectedBlock:d,selectedAllDocument:f}=qo(),h=G0(s.getTextContent()),m=l.getChildren().find(mn);if(!m)return!1;const A=G0(m.getTextContent());return h===A&&(d||f)?(o.preventDefault(),o.clipboardData.setData("text/html",IN(m)),o.clipboardData.setData("text/plain",m.getTextContent()),!0):!1},p.COMMAND_PRIORITY_LOW))},[e])}function BN(){const[e]=tt.useLexicalComposerContext();return PN(e),null}const _N=p.createCommand("INSERT_FORM_COMMAND");function FN(){const[e]=tt.useLexicalComposerContext();return g.useEffect(()=>{if(!e.hasNodes([Xa]))throw new Error("FormPlugin: FormNode not registered on editor");return e.registerCommand(_N,n=>{const t=m1(n);return ye.$insertNodeToNearestRoot(t),!0},p.COMMAND_PRIORITY_EDITOR)},[e]),null}function WN(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 zN(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 UN(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{WN(o,n)}finally{setTimeout(()=>URL.revokeObjectURL(o),0)}}const Ou=(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 u of t)if(o=r.closest(u),o)break;return{lexicalDOMNode:s,isOutside:!(s||o)}}else return{lexicalDOMNode:null,isOutside:!0}};function Pi(e,n,t){const r=g.useRef(null);return r.current=e,g.useMemo(()=>cu.debounce((...o)=>{r.current&&r.current(...o)},n,{maxWait:t}),[n,t])}function V0(e){return e!==null&&"setAlignment"in e&&typeof e.setAlignment=="function"}const L1=({editor:e,nodeKey:n,opened:t,setOpened:r,t:o,setShown:s,flexBorder:l})=>{var A;const[u,d]=g.useState("left");g.useEffect(()=>{if(!n)return;const y=()=>{e.getEditorState().read(()=>{const b=p.$getNodeByKey(n);V0(b)&&d(b.__alignment||"left")})};return y(),e.registerUpdateListener(()=>{y()})},[e,n]);const f=y=>{n&&e.update(()=>{const b=p.$getNodeByKey(n);V0(b)&&(b.setAlignment(y),b.getPreviousSibling()?b.selectPrevious():b.selectStart(),s&&s(!1))})},h=a.jsx("span",{style:{color:"var(--mantine-primary-color-filled)",display:"flex",alignItems:"center"},children:a.jsx(ue,{icon:Or,size:16})}),m=[{value:"left",icon:TC,label:o("editor.toolbar.left")},{value:"center",icon:Ic,label:o("editor.toolbar.center")},{value:"right",icon:LC,label:o("editor.toolbar.right")}];return a.jsxs(v.Menu,{opened:t,shadow:"md",onChange:r,transitionProps:zn,children:[a.jsx(v.Menu.Target,{children:a.jsx(Cn,{label:o("editor.toolbar.align"),tooltipDisabled:t,flexBorder:l,icon:((A=m.find(y=>y.value===u))==null?void 0:A.icon)??Ic,iconColor:"var(--mantine-color-gray-text)","aria-label":"Alignment"})}),a.jsx(v.Menu.Dropdown,{p:4,children:m.map(y=>a.jsx(v.Menu.Item,{onClick:()=>f(y.value),leftSection:a.jsx("span",{style:{color:"var(--mantine-color-gray-text)",display:"flex",alignItems:"center"},children:a.jsx(ue,{icon:y.icon,size:16})}),rightSection:u===y.value?h:void 0,children:y.label},y.value))})]})};function KN({opened:e,onOpenChange:n,t,onDownload:r,onDelete:o}){return a.jsxs(v.Menu,{opened:e,onChange:n,transitionProps:zn,shadow:"md",position:"bottom-start",offset:4,withinPortal:!0,closeOnItemClick:!0,children:[a.jsx(v.Menu.Target,{children:a.jsx(Cn,{label:t("editor.toolbar.more"),icon:so,iconColor:"var(--mantine-color-gray-text)","aria-label":t("editor.toolbar.more")})}),a.jsxs(v.Menu.Dropdown,{p:4,w:164,onMouseDown:s=>s.preventDefault(),children:[a.jsx(v.Menu.Item,{leftSection:a.jsx(v.Flex,{align:"center",justify:"center",c:"gray.6",children:a.jsx(ue,{icon:Wh,size:16})}),onClick:s=>{s.stopPropagation(),r()},children:t("editor.gallery.download")}),a.jsx(v.Menu.Item,{color:"red",leftSection:a.jsx(v.Flex,{align:"center",justify:"center",c:"red.6",children:a.jsx(ue,{icon:_n,size:16})}),onClick:s=>{s.stopPropagation(),o()},children:t("editor.contextMenu.delete")})]})]})}const HN=({t:e,src:n,setShown:t,id:r})=>{const[o,{open:s,close:l}]=Yn.useDisclosure(!1),u=g.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 a.jsxs(a.Fragment,{children:[a.jsx(Bt.AttachmentsGalleryModal,{opened:o,onOpenChange:d,attachments:u}),a.jsx(Cn,{label:e("editor.image.preview"),icon:v8,iconColor:"var(--mantine-color-gray-text)","aria-label":e("editor.image.preview"),onClick:()=>{t(!1),s()}})]})},q0=8,YN=({anchorElem:e=document.body})=>{var O;const[n]=tt.useLexicalComposerContext(),[t,r]=g.useState(!1),[o,s]=g.useState(!1),[l,u]=g.useState(!1),[d,f]=g.useState(null),h=g.useRef(null),[m,A]=g.useState({right:"0",top:"0"}),{t:y}=He.useTranslation(),b=Pi(T=>{if(o||T.target instanceof HTMLElement&&T.target.clientWidth<100)return;const{lexicalDOMNode:E,isOutside:M}=Ou(T,"img",["div.media-actions"]);if(M){u(!1);return}if(h.current=E,E){n.update(()=>{const U=p.$getNearestNodeFromDOMNode(E);U&&f({key:U.__key,src:U.__src})});const{y:P,right:I}=e.getBoundingClientRect(),{y:F,right:_}=E.getBoundingClientRect();u(!0);const N=F-P+q0,j=I-_+q0;A(()=>({right:`${j}px`,top:`${N}px`}))}},50,500);g.useEffect(()=>(document.addEventListener("mousemove",b),document.addEventListener("touchstart",b),()=>{u(!1),b.cancel(),document.removeEventListener("mousemove",b),document.removeEventListener("touchstart",b)}),[b]);const x=(T,R)=>{{T();return}},w=g.useCallback(()=>{x(()=>{n.update(()=>{if(!(d!=null&&d.key))return!1;const T=p.$getNodeByKey(d.key);return jr(T)&&T.remove(),!1})})},[n,d==null?void 0:d.key]),k=g.useCallback(async()=>{const T=d==null?void 0:d.src;if(T)try{await UN(T,zN(T))}catch{}},[d==null?void 0:d.src]),L=l?"auto":"none";return Ir.createPortal(a.jsxs("div",{className:`media-actions ${l?"visible":""}`,style:{right:m.right,top:m.top,pointerEvents:L},children:[a.jsx(HN,{setShown:u,t:y,src:d==null?void 0:d.src,id:(O=h.current)==null?void 0:O.getAttribute("data-id")}),!Xf&&a.jsx(L1,{opened:t,setOpened:r,t:y,editor:n,nodeKey:d==null?void 0:d.key,setShown:u}),a.jsx(KN,{opened:o,onOpenChange:s,t:y,onDownload:()=>void k(),onDelete:w})]}),e)};function kb(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 u=r??document.createElement("div"),d=((l=n.getChildren)==null?void 0:l.call(n))??[];for(const f of d){const h=kb(e,f);if(h)u.appendChild(h);else{const m=typeof f.getTextContent=="function"?f.getTextContent():"";m&&u.appendChild(document.createTextNode(m))}}return typeof(t==null?void 0:t.after)=="function"&&t.after(u),u}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 Q0(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 u=document.createElement("div");l.forEach(d=>{const f=kb(e,d);n==="cut"&&d.remove(),f&&u.appendChild(f)}),s=u.innerHTML})}),(o||s)&&ZN(o,s)}function ZN(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 lh=(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(),u=l.getParent();vi(e,l,u),n("delete")}else{const l=s.getParent();if(l instanceof jn&&l.getChildren().length===2){const u=l,d=l.getParent();if(s.__type==="image"){u.append(p.$createParagraphNode());return}vi(e,u,d)}hu(e,s),n("delete")}})},GN=e=>{const n=e._rootElement;return Array.from(n.querySelectorAll(".selected-block"))},Qc=(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 u=e.getElementByKey(l.getKey());u&&eE(e,u,t,r)})},Sb=(e,n,t,r)=>{if(r==="layout")Qc(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(u=>{let d=p.$getNearestNodeFromDOMNode(u);d&&(l==null||l.insertAfter(Lr(d))),us(u)})}),n())}},Rc=({label:e,icon:n,dataNameAttribute:t})=>a.jsxs("div",{className:"custom-menu-item","data-test-id":t||"color-picker",children:[a.jsxs("div",{children:[n,a.jsx("span",{children:e})]}),a.jsx(ue,{className:"custom-menu-item__chevron",icon:Ns,size:16})]}),Eb="toolbar-recent-colors",N1=[{nameKey:"default",value:"inherit"},{nameKey:"violet",value:"#9775FA"},{nameKey:"indigo",value:"#748FFC"},{nameKey:"blue",value:"#4DABF7"},{nameKey:"teal",value:"#38D9A9"},{nameKey:"green",value:"#69DB7C"},{nameKey:"yellow",value:"#FFD43B"},{nameKey:"orange",value:"#FFA94D"},{nameKey:"red",value:"#FF8787"},{nameKey:"brown",value:"#9F765A"},{nameKey:"gray",value:"#CED4DA"}],Mb=[{nameKey:"default",value:"inherit",border:"#424242"},{nameKey:"violet",value:"rgba(121, 80, 242, 0.25)",border:"#9775FA"},{nameKey:"indigo",value:"rgba(76, 110, 245, 0.25)",border:"#748FFC"},{nameKey:"blue",value:"rgba(34, 139, 230, 0.25)",border:"#4DABF7"},{nameKey:"teal",value:"rgba(56, 217, 169, 0.25)",border:"#96F2D7"},{nameKey:"green",value:"rgba(64, 192, 87, 0.25)",border:"#69DB7C"},{nameKey:"yellow",value:"rgba(250, 176, 5, 0.25)",border:"#FFD43B"},{nameKey:"orange",value:"rgba(253, 126, 20, 0.25)",border:"#FFA94D"},{nameKey:"red",value:"rgba(250, 82, 82, 0.25)",border:"#FF8787"},{nameKey:"brown",value:"rgba(159, 118, 90, 0.25)",border:"#9F765A"},{nameKey:"gray",value:"rgba(134, 142, 150, 0.25)",border:"#CED4DA"}],Tb=N1.length;function mf(){try{const e=localStorage.getItem(Eb);return e?JSON.parse(e):[]}catch{return[]}}function VN(e){try{localStorage.setItem(Eb,JSON.stringify(e.slice(0,Tb)))}catch{}}const Jc={tooltip:{zIndex:1001}};function Xc(e,n){return e(`editor.toolbar.colorPicker.names.${n}`)}function R1({size:e=20,color:n="#FFFFFF",showBorder:t}){const r=n==="inherit"||n==="currentColor"?"#FFFFFF":n;return a.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:[t&&a.jsx("rect",{x:"1.33",y:"1.33",width:"17.33",height:"17.33",rx:"3.5",stroke:"#424242",strokeWidth:"1",fill:"none"}),a.jsx("g",{transform:"translate(4.3, 2.85) scale(0.95)",children:a.jsx("path",{d:"M5.74962 0C6.5741 0.000240788 7.09605 0.678431 7.50255 1.43555C7.93242 2.23626 8.38252 3.42022 8.95763 4.92676L11.4615 11.4873C11.5709 11.7742 11.428 12.0954 11.1412 12.2051C10.8542 12.3146 10.5331 12.1707 10.4234 11.8838L8.57677 7.04883H2.92149L1.07579 11.8838C0.966125 12.1708 0.644077 12.3147 0.35704 12.2051C0.0702995 12.0954 -0.0725959 11.7742 0.0367278 11.4873L2.54063 4.92676C3.11576 3.42021 3.56583 2.23626 3.99571 1.43555C4.40229 0.678281 4.92487 0 5.74962 0ZM5.74962 1.11328C5.62949 1.11328 5.38805 1.19675 4.97716 1.96191C4.58947 2.68404 4.16722 3.7852 3.5797 5.32422L3.3463 5.93555H8.15196L7.91856 5.32422C7.33105 3.78519 6.90879 2.68404 6.5211 1.96191C6.11073 1.19772 5.8699 1.11349 5.74962 1.11328Z",fill:r})})]})}function Lb({bgColor:e,borderColor:n}){const t=e==="inherit",r=t&&n==="transparent"?"#FFFFFF":n;return a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:a.jsx("circle",{cx:"12",cy:"12",r:"9",fill:t?"#242424":e,stroke:r,strokeWidth:"1.5"})})}const $c=g.forwardRef(function({round:n,isActive:t,disabled:r,onClick:o,children:s},l){return a.jsx(v.UnstyledButton,{ref:l,type:"button",className:`cp-swatch${n?" cp-swatch--round":""}${t?" cp-swatch--active":""}`,onMouseDown:u=>u.preventDefault(),onClick:o,disabled:r,children:s})});function qN({entry:e,isActive:n,onClick:t,t:r}){var l;if(e.mode==="color"){const u=(l=N1.find(f=>f.value===e.value))==null?void 0:l.nameKey,d=u?Xc(r,u):e.value;return a.jsx(v.Tooltip,{label:r("editor.toolbar.colorPicker.tooltipText",{name:d}),styles:Jc,zIndex:1001,children:a.jsx($c,{isActive:n,onClick:t,children:a.jsx(R1,{color:e.value})})})}const o=Mb.find(u=>u.value===e.value),s=o?Xc(r,o.nameKey):e.value;return a.jsx(v.Tooltip,{label:r("editor.toolbar.colorPicker.tooltipHighlight",{name:s}),styles:Jc,zIndex:1001,children:a.jsx($c,{round:!0,isActive:n,onClick:t,children:a.jsx(Lb,{bgColor:e.value,borderColor:(o==null?void 0:o.border)??"transparent"})})})}function eu({fontColor:e,bgColor:n,disabled:t,onChange:r,onOpenChange:o,children:s,menuProps:l,visibleSections:u,highlightsSectionLabelKey:d="editor.toolbar.colorPicker.textHighlights"}){const{t:f}=He.useTranslation(),{onChange:h,...m}=l??{},[A,y]=g.useState(mf),b=g.useMemo(()=>({recent:(u==null?void 0:u.recent)??!0,textColors:(u==null?void 0:u.textColors)??!0,highlights:(u==null?void 0:u.highlights)??!0}),[u]),x=g.useMemo(()=>!b.textColors&&b.highlights?A.filter(E=>E.mode==="background"):A,[A,b.textColors,b.highlights]),w=g.useCallback(E=>{const P=mf().filter(F=>!(F.value===E.value&&F.mode===E.mode)),I=[E,...P].slice(0,Tb);VN(I)},[]),k=g.useCallback(E=>{b.recent&&w({value:E,mode:"color"}),r({color:E,"background-color":n})},[n,r,w,b.recent]),L=g.useCallback(E=>{b.recent&&w({value:E,mode:"background"}),r({color:e,"background-color":E})},[e,r,w,b.recent]),O=g.useCallback(E=>{b.recent&&w(E),E.mode==="color"?r({color:E.value,"background-color":n}):r({color:e,"background-color":E.value})},[e,n,r,w,b.recent]),T=g.useMemo(()=>e===""?"inherit":e,[e]),R=g.useMemo(()=>n===""?"inherit":n,[n]);return a.jsxs(v.Menu,{transitionProps:zn,shadow:"md",position:"bottom-start",classNames:{dropdown:"toolbar-dark-dropdown toolbar-color-dropdown"},styles:{dropdown:{zIndex:100}},...m,onChange:E=>{E&&y(mf()),o==null||o(E),h==null||h(E)},children:[a.jsx(v.Menu.Target,{children:s}),a.jsxs(v.Menu.Dropdown,{"data-test-id":"toolbar-color-picker-dropdown",onMouseDown:E=>E.preventDefault(),children:[b.recent&&x.length>0&&a.jsxs(v.Box,{className:"cp-section",children:[a.jsx(v.Box,{className:"cp-label",children:f("editor.toolbar.colorPicker.recentlyUsed")}),a.jsx(v.Box,{className:"cp-row",children:x.map((E,M)=>a.jsx(qN,{entry:E,isActive:E.mode==="color"?T===E.value:R===E.value,onClick:()=>O(E),t:f},`${E.mode}-${E.value}-${M}`))})]}),b.textColors&&a.jsxs(v.Box,{className:"cp-section",children:[a.jsx(v.Box,{className:"cp-label",children:f("editor.toolbar.colorPicker.textColors")}),a.jsx(v.Box,{className:"cp-row",children:N1.map(E=>a.jsx(v.Tooltip,{label:f("editor.toolbar.colorPicker.tooltipText",{name:Xc(f,E.nameKey)}),styles:Jc,zIndex:1001,children:a.jsx($c,{isActive:T===E.value,onClick:()=>k(E.value),disabled:t,children:a.jsx(R1,{color:E.value})})},E.value))})]}),b.highlights&&a.jsxs(v.Box,{className:"cp-section",children:[a.jsx(v.Box,{className:"cp-label",children:f(d)}),a.jsx(v.Box,{className:"cp-row",children:Mb.map(E=>a.jsx(v.Tooltip,{label:f("editor.toolbar.colorPicker.tooltipHighlight",{name:Xc(f,E.nameKey)}),styles:Jc,zIndex:1001,children:a.jsx($c,{round:!0,isActive:R===E.value,onClick:()=>L(E.value),disabled:t,children:a.jsx(Lb,{bgColor:E.value,borderColor:E.border})})},E.value))})]})]})]})}function QN({editor:e,anchorChildKey:n,layoutColor:t,setLayoutColor:r,disabledMoveColumnButtons:o,duplicateDisabled:s,t:l,onClose:u}){const{onTrack:d}=g.useContext(at),f=()=>{},h=A=>{const y=A["background-color"],b=y===t?"inherit":y;e.update(()=>{const x=p.$getNodeByKey(n);if(!x)return;const w=x.getParent();w instanceof jn&&w.setLayoutBackground(b)}),r(b)},m=()=>{e.update(()=>{const A=p.$getNodeByKey(n);if(!A)return;const y=A.getParent();if(!(y instanceof jn))return;for(const x of[...y.getChildren()])x.remove();const b=p.$createParagraphNode();y.append(b),y.append(Er()),b.selectStart()})};return a.jsxs(a.Fragment,{children:[a.jsx(eu,{fontColor:"inherit",bgColor:t===""?"inherit":t,onChange:h,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:a.jsx("div",{children:a.jsx(Rc,{label:l("editor.column.changeColor"),icon:a.jsx(ue,{size:16,icon:Ci,color:"var(--mantine-color-gray-6)"})})})}),a.jsx(v.Menu.Divider,{}),a.jsx(v.Menu.Item,{disabled:o.left,onClick:()=>{Yc(e,n,"left"),bi(e),u()},leftSection:a.jsx(ue,{icon:RC,size:14,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-move-left",children:l("editor.column.moveLeft")}),a.jsx(v.Menu.Item,{disabled:o.right,onClick:()=>{Yc(e,n,"right"),bi(e),u()},leftSection:a.jsx(ue,{icon:jC,size:14,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-move-right",children:l("editor.column.moveRight")}),a.jsx(v.Menu.Divider,{}),a.jsx(v.Menu.Item,{disabled:s,onClick:()=>{d==null||d("block_duplicated"),Sb(e,f,n,"layout"),u()},leftSection:a.jsx(ue,{icon:jo,size:16,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-duplicate",children:l("editor.column.duplicate")}),a.jsx(v.Menu.Item,{onClick:()=>{m(),u()},leftSection:a.jsx(ue,{icon:ZC,size:16,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-clear-content",children:l("editor.column.clearContent")}),a.jsx(v.Menu.Divider,{}),a.jsx(v.Menu.Item,{onClick:()=>{d==null||d("block_deleted"),lh(e,f,n,"layout"),u()},color:"var(--mantine-color-red-6)",leftSection:a.jsx(ue,{icon:_n,size:16}),"data-test-id":"layout-column-menu-delete",children:l("editor.column.deleteColumn")})]})}const Nb=-16,ch=31,JN=6,XN=8;function $N(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 eR(e,n){const t=$N(e);if(!t)return!1;const r=n.getBoundingClientRect(),o=r.top+Nb-JN,s=r.right+ch+XN;return t.x>=r.left&&t.x<=s&&t.y>=o&&t.y<=r.bottom}function tR({anchorElem:e}){const[n]=tt.useLexicalComposerContext(),{disable:t}=g.useContext(at),{t:r}=He.useTranslation(),[o,s]=g.useState(!1),[l,u]=g.useState(null),[d,f]=g.useState(null),[h,m]=g.useState(!1),[A,y]=g.useState("inherit"),[b,x]=g.useState({left:"0px",top:"0px",width:"0px"}),w=g.useRef(null);g.useEffect(()=>{w.current=l},[l]);const k=d??l,L=g.useCallback(F=>{if(!e)return;const{left:_,top:N}=e.getBoundingClientRect(),{left:j,top:U,width:W}=F.getBoundingClientRect();x({left:`${j-_}px`,top:`${U-N+Nb}px`,width:`${W+ch}px`})},[e]);g.useEffect(()=>{k&&n.read(()=>{const F=p.$getNearestNodeFromDOMNode(k);F instanceof jn&&y(F.__backgroundColor||"inherit")})},[k,n]),g.useEffect(()=>{h||f(null)},[h]);const O=g.useMemo(()=>{if(!k)return null;let F=null;return n.read(()=>{var N;const _=p.$getNearestNodeFromDOMNode(k);_ instanceof jn&&(F=((N=_.getFirstChild())==null?void 0:N.getKey())??null)}),F},[k,n]),T=Pi(F=>{if(h||!e)return;const{lexicalDOMNode:_,isOutside:N}=Ou(F,".dsd__theme__layoutItem",["div.editor-layout-column-hover","div.editor-layout-column-hover__dropdown","div.mantine-Menu-dropdown","div.mantine-Popover-dropdown"]);if(N){if(w.current&&eR(F,w.current))return;s(!1),u(null);return}if(!_)return;const j=n.getRootElement();if(!(j!=null&&j.contains(_))||!_.closest(".dsd__theme__layoutContainer")){s(!1),u(null);return}let U=!1;if(n.read(()=>{U=p.$getNearestNodeFromDOMNode(_)instanceof jn}),!U){s(!1),u(null);return}u(_),s(!0),L(_)},50,500);g.useEffect(()=>{if(t||!e){s(!1),u(null),m(!1),f(null);return}return document.addEventListener("mousemove",T),document.addEventListener("touchstart",T),()=>{s(!1),T.cancel(),document.removeEventListener("mousemove",T),document.removeEventListener("touchstart",T)}},[e,T,t]);const R=g.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 N=_.children,j=Array.from(N).indexOf(k);return{isDisabledAddColumnButton:N.length>=4,isMaxColumns:N.length>=4,disabledMoveColumnButtons:{left:j<=0,right:j>=N.length-1}}},[k]),E=g.useCallback(()=>{!O||R.isDisabledAddColumnButton||(Qc(n,O,"right"),s(!1))},[O,R.isDisabledAddColumnButton,n]),M=o?"auto":"none";if(t||!e)return null;const P=["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":`${ch}px`};return Ir.createPortal(a.jsx(v.Box,{className:P,style:I,children:o&&k?a.jsxs(v.Box,{className:"editor-layout-column-hover__inner",children:[a.jsx(v.Box,{className:"editor-layout-column-hover__menu-slot",children:a.jsxs(v.Menu,{opened:h,onChange:m,onOpen:()=>{w.current&&f(w.current)},position:"bottom",shadow:"md",withinPortal:!0,transitionProps:zn,closeOnItemClick:!1,classNames:{dropdown:"editor-layout-column-hover__dropdown"},children:[a.jsx(v.Menu.Target,{children:a.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:a.jsx(ue,{icon:so,size:18})})}),a.jsx(v.Menu.Dropdown,{onMouseDown:F=>F.stopPropagation(),children:O?a.jsx(QN,{editor:n,anchorChildKey:O,layoutColor:A,setLayoutColor:y,disabledMoveColumnButtons:R.disabledMoveColumnButtons,duplicateDisabled:R.isDisabledAddColumnButton,t:r,onClose:()=>m(!1)}):null})]})}),a.jsx(v.Tooltip,{label:R.isMaxColumns?r("editor.column.addRightMaxReached"):r("editor.column.addRight"),children:a.jsx(v.Box,{component:"span",className:"editor-layout-column-hover__add-column-wrap",children:a.jsx(v.ActionIcon,{variant:"transparent",type:"button",size:16,radius:"sm",className:"editor-layout-column-hover__add-column","aria-label":R.isMaxColumns?r("editor.column.addRightMaxReached"):r("editor.column.addRight"),disabled:R.isDisabledAddColumnButton,p:0,onMouseDown:F=>{F.stopPropagation(),F.preventDefault()},onClick:E,children:a.jsx(ue,{icon:p8,size:16})})})})]}):null}),e)}const j1=p.createCommand(),nR=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.anchor.getNode(),r=ye.$findMatchingParent(t,Hc),o=ye.$findMatchingParent(t,Mr),{lexicalNode:s}=Ai(t,e,{"layout-item":!0});if(s&&!s.getTextContent()&&r)return Mu(e,r,o)&&Mr(s)}return!0},rR=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 vi(e,t,r)}return!1};p.createCommand();function oR(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 u=l.match(/^([\d.]+)px$/i);if(!u)return e;o.push(parseFloat(u[1]))}if(o.some(l=>!Number.isFinite(l)))return e;const s=n>0?n:1;return o.map((l,u)=>{const d=l/s*100;return`minmax(${u?100:50}px,${_A(d)}%)`}).join(" ")}function sR(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 iR({anchorElem:e}={}){const[n]=tt.useLexicalComposerContext();return g.useEffect(()=>{if(!n.hasNodes([Rr,jn,Vr]))throw new Error("LayoutPlugin: LayoutContainerNode, or LayoutItemNode not registered on editor");return ye.mergeRegister(n.registerCommand(j1,t=>(n.update(()=>{const r=Lu(t),o=aR(t);for(let l=0;l<o;l++)r.append(no().append(p.$createParagraphNode()).append(Er()));const s=Qt();s&&(s==null||s.replace(r),r.selectStart())}),!0),p.COMMAND_PRIORITY_EDITOR),n.registerCommand(p.KEY_BACKSPACE_COMMAND,()=>{var l,u;const t=p.$getSelection();if(!p.$isRangeSelection(t))return!1;const r=(l=t.focus)==null?void 0:l.getNode(),o=(u=ye.$findMatchingParent(r,Mr))==null?void 0:u.getKey(),s=r==null?void 0:r.getPreviousSibling();return setTimeout(()=>{n.update(()=>{if(s instanceof Rr){const f=Er(),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(jn,t=>{if(!t.isAttached())return;const r=t.getParent();if(!Hc(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(Mr)){for(const o of r)t.insertBefore(o);t.remove()}}))},[n]),g.useEffect(()=>{let t=!1,r=0,o=null,s=0,l=[],u=0;const d=m=>{const A=m.target.closest(".dsd__theme__layoutItem"),y=m.target.closest(".dsd__theme__layoutDivider");A&&y&&(m.preventDefault(),n.update(()=>{const b=p.$getNearestNodeFromDOMNode(A);b&&b.selectStart()}),f(A,m),y.classList.add("dragging"))};function f(m,A){t=!0;const y=document.querySelector("code");y&&(y.style.pointerEvents="none"),r=A.clientX,o=m.closest(".dsd__theme__layoutContainer");const b=o.querySelectorAll(".dsd__theme__layoutItem");u=b.length;const x=sR(o);s=o.clientWidth-x*Math.max(0,b.length-1);const w=Array.from(b).map(P=>P.getBoundingClientRect().width),k=w.reduce((P,I)=>P+I,0),L=k>0?s/k:1,O=w.map(P=>P*L),T=s-O.reduce((P,I)=>P+I,0);O.length>0&&(O[O.length-1]+=T),l=O,o.style.gridTemplateColumns=l.map(P=>`${P}px`).join(" ");const R=Array.from(b).indexOf(m),E=P=>h(P,R),M=P=>{var F,_;t=!1,n.dispatchCommand(Hf,"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??((_=P.target)==null?void 0:_.closest(".dsd__theme__layoutContainer"));if(I&&u>0){const N=oR(I.style.gridTemplateColumns,I.clientWidth,u);I.style.gridTemplateColumns=N,n.update(()=>{p.$getNearestNodeFromDOMNode(I).setTemplateColumns(N)})}o=null,l=[],u=0,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",M)};document.addEventListener("mousemove",E),document.addEventListener("mouseup",M)}function h(m,A,y){if(!t||!A)return;n.dispatchCommand(Hf,"move");const b=m.clientX-r;if(Math.abs(b)<1)return;const x=A===1?50:100,w=l[A-1]+l[A],k=Math.max(x,Math.min(w-100,l[A-1]+b)),L=w-k,O=[...l];O[A-1]=k,O[A]=L;const T=document.querySelector(".dsd__theme__layoutDivider.dragging");if(T&&o){const R=o.clientHeight+"px";T.style.getPropertyValue("--height-column")!==R&&requestAnimationFrame(()=>{T.style.setProperty("--height-column",R)})}o.style.gridTemplateColumns=O.map(R=>`${R}px`).join(" ")}return document.body.addEventListener("mousedown",d),()=>document.body.removeEventListener("mousedown",d)},[n]),a.jsx(tR,{anchorElem:e??null})}function aR(e){return e.replace(/\(([^)]+)\)/g,t=>t.replace(/\s+/g,"")).trim().split(/\s+/).length}function lR(){const[e]=tt.useLexicalComposerContext(),{t:n}=He.useTranslation(),{imperativeHandleRef:t,maxFileSize:r,disable:o}=g.useContext(at);return Qk(e,!o),g.useEffect(()=>{if(!e.hasNodes([_s]))throw new Error("MusicPlugin: MusicNode not registered on editor");const s=l=>{const u=l.filter(d=>d.type.includes("audio/"));if(u.length){if(l.length>1){Bt.showMessageNotification({message:n("editor.validation.doNotUploadMoreThanSingleFile")});return}if(u[0].size>r*1024*1024){Bt.showErrorNotification({message:n("editor.validation.shouldNotExceed",{maxSize:r})});return}e.dispatchCommand(kc,"upload"),setTimeout(()=>{e.dispatchCommand(cA,u)})}};return t!=null&&t.current&&(t.current.insertMusics=s),ye.mergeRegister(e.registerCommand(kc,l=>{const d=Xh(l==="upload"?"":l,l!=="upload");return ki(d),!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(p.PASTE_COMMAND,l=>{var f,h,m,A;if(o||e.getEditorState().read(()=>{const y=p.$getSelection();if(!p.$isRangeSelection(y))return!1;const b=y.anchor.getNode();return Kt.$isCodeNode(b)||Kt.$isCodeNode(b.getParent())}))return!1;const d=((h=(f=l.clipboardData)==null?void 0:f.getData("text/plain"))==null?void 0:h.trim())||((A=(m=l.clipboardData)==null?void 0:m.getData("text"))==null?void 0:A.trim());return!d||!dA(d)?!1:(l.preventDefault(),l.stopPropagation(),e.dispatchCommand(kc,d),!0)},p.COMMAND_PRIORITY_CRITICAL))},[o,e,t,r,n]),null}const uh=p.createCommand("INSERT_PAGE_LINK_COMMAND");function dh(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(...dh(s.children,n));continue}t.push({...s,children:(o=s.children)!=null&&o.length?dh(s.children,n):void 0})}return t}function Rb(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),u=(o=s.children)!=null&&o.length?Rb(s.children,n):[];(l||u.length>0)&&r.push({...s,children:u.length>0?u:void 0})}return r}function cR(e){const{linkablePages:n,pages:t,pageId:r,disable:o}=g.useContext(at),[s,l]=g.useState(!1),[u,d]=g.useState(null),[f,h]=g.useState(""),m=g.useRef(null),A=g.useRef(null),y=g.useRef(null),b=g.useRef(null),x=n??t,w=g.useMemo(()=>dh(x,r),[x,r]),k=!f.trim(),L=g.useMemo(()=>k?w:Rb(w,f),[w,f,k]),O=()=>{if(m.current&&A.current===!1){const R=m.current;e.update(()=>{const E=p.$getNodeByKey(R);if(!E||!(E instanceof Eo))return;const M=E;M.__placeholder&&M.remove()})}l(!1),d(null),m.current=null,A.current=null};return g.useEffect(()=>{if(s)return Qa(),()=>{Ja()}},[s]),g.useEffect(()=>{if(!s||!u)return;const R=b.current;if(!R)return;const E=R.value.length;R.focus(),R.setSelectionRange(E,E)},[s,u]),g.useEffect(()=>{if(!e.hasNodes([Eo]))throw new Error("PageLinkPlugin: PageLinkNode not registered on editor");return e.registerCommand(uh,R=>R==="inline"?(e.update(()=>{const E=p.$getSelection();if(!p.$isRangeSelection(E))return;const M=ri({id:"",title:"",icon:null,inlineElement:!0,placeholder:!1});E.insertNodes([M]),m.current=M.getKey()}),A.current=!0,h(""),l(!0),!0):R!==void 0?(e.update(()=>{const E=ri({id:R.id,title:R.title,icon:R.icon}),M=Qt();M==null||M.replace(E)}),!0):(e.update(()=>{const E=p.$getSelection();if(!p.$isRangeSelection(E))return;const M=ri({id:"",title:"",icon:null,inlineElement:!0,placeholder:!0});E.insertNodes([M]),m.current=M.getKey()}),A.current=!1,h(""),l(!0),!0),p.COMMAND_PRIORITY_EDITOR)},[e]),g.useEffect(()=>{if(!s||!m.current)return;const R=m.current;let E=0,M=0;const P=()=>{const I=e.getElementByKey(R);if(I){const F=I.querySelector('[data-page-link-anchor="true"]')||I;return d(F.getBoundingClientRect()),!0}return!1};return E=requestAnimationFrame(()=>{P()||(M=window.setTimeout(()=>P(),50))}),()=>{E&&cancelAnimationFrame(E),M&&window.clearTimeout(M)}},[s,e]),g.useEffect(()=>{if(!s||!m.current)return;const R=m.current,E=()=>{const P=e.getElementByKey(R);if(!P)return;const I=P.querySelector('[data-page-link-anchor="true"]')||P;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]),g.useEffect(()=>{if(!s)return;const R=E=>{var P;const M=E.target;(P=y.current)!=null&&P.contains(M)||O()};return document.addEventListener("mousedown",R,!0),()=>document.removeEventListener("mousedown",R,!0)},[s]),g.useEffect(()=>e.registerCommand(p.CLICK_COMMAND,R=>(s||o||e.update(()=>{const E=R.target;if(!E)return;const M=p.$getNearestNodeFromDOMNode(E);if(!M||!b0(M))return;const P=M;if(P.__placeholder)A.current=!1;else if(P.isInline()){if(P.getPageId().trim()!=="")return;A.current=!0}else return;m.current=M.getKey(),h(""),l(!0)}),!1),p.COMMAND_PRIORITY_LOW),[e,s,h]),g.useEffect(()=>{if(!n||n.length===0)return;const R={},E=[...n];for(;E.length;){const M=E.pop();R[M.id]={title:M.title,icon:M.icon},M.children&&M.children.length&&E.push(...M.children)}e.update(()=>{const P=[...p.$getRoot().getChildren()];for(;P.length;){const I=P.pop();if(b0(I)){const F=I.getPageId(),_=R[F];if(_){const N=I.getMeta();(N.title!==_.title||N.icon!==_.icon)&&I.setMeta(_.title,_.icon)}}p.$isElementNode(I)&&P.push(...I.getChildren())}})},[e,n]),{pickerOpen:s,anchorRect:u,searchQuery:f,setSearchQuery:h,filteredPages:L,showAsTree:k,dropdownRef:y,inputRef:b,handleSelectPage:R=>{const E=m.current;if(!E){O();return}e.update(()=>{const M=p.$getNodeByKey(E);if(!M)return;if(M instanceof Eo){if(A.current){const F=M.getWritable();F.__pageId=R.id,F.setMeta(R.title,R.icon)}else{const F=M,_=F.getTopLevelElementOrThrow(),N=ri({id:R.id,title:R.title,icon:R.icon,inlineElement:!1}),j="getChildren"in _?_.getChildren():[];j.length===1&&j[0]===F?_.replace(N):(_.insertAfter(N),F.remove())}return}const P=ri({id:R.id,title:R.title,icon:R.icon,inlineElement:!1});M.getTopLevelElementOrThrow().insertAfter(P)}),O()},closePicker:O}}function jb(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 uR="_dropdown_1llyg_1",dR="_searchInput_1llyg_39",fR="_textInputRoot_1llyg_49",hR="_scrollViewport_1llyg_57",pR="_item_1llyg_83",gR="_itemNested_1llyg_85",mR="_treeChildren_1llyg_109",CR="_pageLinkItemTitle_1llyg_143",AR="_listWrap_1llyg_193",bR="_empty_1llyg_227",ro={dropdown:uR,searchInput:dR,textInputRoot:fR,scrollViewport:hR,item:pR,itemNested:gR,treeChildren:mR,pageLinkItemTitle:CR,listWrap:AR,empty:bR};function yR({page:e,onSelect:n,level:t}){const r=t>0;return a.jsx(v.Box,{className:r?ro.itemNested:ro.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:a.jsx(Kc,{page:{...e,onClick:void 0},titleClassName:ro.pageLinkItemTitle})})}function Ib({pages:e,onSelect:n,level:t=0}){const r=[...e].sort((o,s)=>(o.order??0)-(s.order??0));return a.jsx(a.Fragment,{children:r.map(o=>a.jsxs(g.Fragment,{children:[a.jsx(yR,{page:o,onSelect:n,level:t}),o.children&&o.children.length>0&&a.jsx("div",{className:ro.treeChildren,"data-level":t,children:a.jsx(Ib,{pages:o.children,onSelect:n,level:t+1})})]},o.id))})}const J0=35,Cf=5,xR=8,vR=8;function wR(e){const{pickerOpen:n,anchorRect:t,searchQuery:r,setSearchQuery:o,filteredPages:s,dropdownRef:l,inputRef:u,handleSelectPage:d,closePicker:f}=e,{t:h}=He.useTranslation(),[m,A]=g.useState(null);if(g.useLayoutEffect(()=>{if(!n||!t){A(null);return}const O=l.current;if(!O)return;const T=()=>{const M=t,P=O.getBoundingClientRect(),I=P.height,F=P.width,_=window.visualViewport,N=(_==null?void 0:_.height)??window.innerHeight,j=(_==null?void 0:_.width)??window.innerWidth,U=vR,W=xR,B=M.top+J0,Z=M.top-W-I,Q=B+Cf,re=Q+I<=N-U,oe=Z>=U;let Ce,Te;if(re)Ce=B,Te=!0;else if(oe)Ce=Z,Te=!1;else{const Re=N-U-Q,ae=M.top-W-U;Te=Re>=ae,Ce=Te?B:Z,Ce=Math.max(U,Math.min(Ce,N-I-U))}Te&&(Ce+=Cf);let Me=M.left;Me+F>j-U&&(Me=j-F-U),Me=Math.max(U,Me),A({top:Ce,left:Me})},R=window.visualViewport;T();const E=new ResizeObserver(T);return E.observe(O),window.addEventListener("scroll",T,!0),R==null||R.addEventListener("resize",T),R==null||R.addEventListener("scroll",T),()=>{E.disconnect(),window.removeEventListener("scroll",T,!0),R==null||R.removeEventListener("resize",T),R==null||R.removeEventListener("scroll",T)}},[t,s,n]),!n||!t)return null;const y=O=>{d(O)},b=jb({onCancel:f}),x=s.length===0?a.jsx(v.Box,{component:"div",className:ro.empty,children:a.jsx(v.Text,{size:"sm",c:"dimmed",children:h("editor.menu.other.pageLink.empty")})}):a.jsx(Ib,{pages:s,onSelect:y}),w=(m==null?void 0:m.top)??t.top+J0+Cf,k=(m==null?void 0:m.left)??t.left,L=a.jsxs(v.Paper,{ref:l,className:ro.dropdown,style:{position:"fixed",top:w,left:k,width:400,maxWidth:"100%"},shadow:"md",withBorder:!1,children:[a.jsx(v.TextInput,{placeholder:h("editor.menu.other.pageLink.searchPlaceholder"),value:r,onChange:O=>o(O.currentTarget.value),onKeyDown:b,leftSection:a.jsx(ue,{size:16,icon:Vh}),ref:u,classNames:{input:ro.searchInput,root:ro.textInputRoot}}),a.jsx(v.ScrollArea.Autosize,{mah:250,viewportProps:{tabIndex:-1},scrollbars:"y",offsetScrollbars:"y",classNames:{viewport:ro.scrollViewport},children:a.jsx(v.Box,{className:ro.listWrap,children:x})})]});return Ir.createPortal(L,document.body)}function kR(){const[e]=tt.useLexicalComposerContext(),n=cR(e);return a.jsx(wR,{...n})}const Ob=p.createCommand("INSERT_SWAGGER_COMMAND");function SR(e){if(!e.hasNodes([el]))throw new Error("SwaggerPlugin: SwaggerPlugin not registered on editor");return e.registerCommand(Ob,n=>{const t=Qt();if(t&&t.getParent()){const r=C1(n,"",!0);t==null||t.replace(r)}return!0},p.COMMAND_PRIORITY_EDITOR)}function ER(){const[e]=tt.useLexicalComposerContext();return g.useEffect(()=>SR(e),[e]),null}function MR(e){const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.anchor.getNode(),r=ye.$findMatchingParent(t,xt),o=ye.$findMatchingParent(t,Ie);return Mu(e,r,o)}return!0}function X0(e){return(e==null?void 0:e.tagName)==="TABLE"}function $0(e){let n=1;for(;e;)n*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;return n}function e2(e){const n=e.getShape();return{columns:n.toX-n.fromX+1,rows:n.toY-n.fromY+1}}function TR(e){const n=e.getNodes(),t=[];let r=null,o=null,s=0;for(let l=0;l<n.length;l++){const u=n[l];if(Ie(u)){const d=u.getParentOrThrow();if(IR(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=u.__colSpan;for(let h=0;h<f;h++)t[s+h]===void 0&&(t[s+h]=0),t[s+h]+=u.__rowSpan;s+=f}}return(o===null||s===o)&&t.every(l=>l===t[0])}function LR(){const e=p.$getSelection();if(p.$isRangeSelection(e)&&!e.isCollapsed()||yt(e)&&!e.anchor.is(e.focus)||!p.$isRangeSelection(e)&&!yt(e))return!1;const[n]=Rn(e.anchor);return n.__colSpan>1||n.__rowSpan>1}function oc(e){if(e.getChildrenSize()!==1)return!1;const n=e.getFirstChildOrThrow();return!(!p.$isParagraphNode(n)||!n.isEmpty())}function t2(e){const n=e.getLastDescendant();Fn(n)?n.select():p.$isElementNode(n)?n.selectEnd():n!==null&&n.selectNext()}function NR(e){return e.getEditorState().read(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)||yt(n)){const[t]=Rn(n.anchor);if(Ie(t))return t.getBackgroundColor()}return null})}function RR(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 jR(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 IR(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 OR=(e,n)=>{window.matchMedia("(pointer: coarse)").matches&&n&&setTimeout(()=>{n.scrollBy({left:e+25,behavior:"smooth"})},100)};p.createCommand("INSERT_NEW_TABLE_COMMAND");const DR=g.createContext({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function PR({hasCellMerge:e=!0,hasCellBackgroundColor:n=!0,hasTabHandler:t=!0,hasHorizontalScroll:r=!0}){const[o]=tt.useLexicalComposerContext();g.useEffect(()=>{iS(o,r)},[o,r]),g.useEffect(()=>(o.hasNodes([Yr,Kr,ji])||et(!1,"TablePlugin: TableNode, TableCellNode or TableRowNode not registered on editor"),ye.mergeRegister(o.registerCommand(vu,({columns:s,rows:l,includeHeaders:u})=>{const d=K7(Number(l),Number(s),u),f=Qt();f&&f.replace(d);const h=d.getFirstDescendant();return Fn(h)&&h.select(),!0},p.COMMAND_PRIORITY_EDITOR),o.registerNodeTransform(Yr,s=>{const[l]=vA(s,null,null),u=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 m=l[f].reduce((A,y)=>y?1+A:A,0);if(m!==u)for(let A=m;A<u;++A){const y=Hr(0);y.append(p.$createParagraphNode()),h.append(y)}}}))),[o]),g.useEffect(()=>{const s=new Map,l=(d,f,h)=>{const m=Is(d,h),A=V7(d,m,o,t);s.set(f,[A,m])},u=o.registerMutationListener(Yr,d=>{o.getEditorState().read(()=>{for(const[f,h]of d){const m=s.get(f);if(h==="created"||h==="updated"){const{tableNode:A,tableElement:y}=wA(f);m===void 0?l(A,f,y):y!==m[1]&&(m[0].removeListeners(),s.delete(f),l(A,f,y))}else h==="destroyed"&&m!==void 0&&(m[0].removeListeners(),s.delete(f))}},{editor:o})},{skipInitialization:!1});return()=>{u();for(const[,[d]]of s)d.removeListeners()}},[o,t]),g.useEffect(()=>{if(!e)return o.registerNodeTransform(Kr,s=>{if(s.getColSpan()>1||s.getRowSpan()>1){const[,,l]=Rn(s),[u]=Nr(l,s,s),d=u.length,f=u[0].length;let h=l.getFirstChild();et(Ot(h),"Expected TableNode first child to be a RowNode");const m=[];for(let A=0;A<d;A++){A!==0&&(h=h.getNextSibling(),et(Ot(h),"Expected TableNode first child to be a RowNode"));let y=null;for(let b=0;b<f;b++){const x=u[A][b],w=x.cell;if(x.startRow===A&&x.startColumn===b)y=w,m.push(w);else if(w.getColSpan()>1||w.getRowSpan()>1){et(Ie(w),"Expected TableNode cell to be a TableCellNode");const k=Hr(w.__headerState);y!==null?y.insertAfter(k):ye.$insertFirst(h,k)}}}for(const A of m)A.setColSpan(1),A.setRowSpan(1)}})},[o,e]),g.useEffect(()=>{if(!n)return o.registerNodeTransform(Kr,s=>{s.getBackgroundColor()!==null&&s.setBackgroundColor(null)})},[o,n,e])}function BR(){const[e]=tt.useLexicalComposerContext();g.useEffect(()=>ye.mergeRegister(e.registerCommand(p.PASTE_COMMAND,n=>{var s,l;try{const u=n.clipboardData||window.clipboardData;if(!u)return!1;const d=u.getData("text/html"),f=document.createElement("div");f.innerHTML=d;let h=null;f.childNodes.length===1&&X0(f.firstChild)&&(h=f.firstChild),f.childNodes.length===2&&X0(f.childNodes[1])&&(h=f.childNodes[1]);const m=Rs?1:2;if(f.childNodes.length===(Rs?2:5)&&((s=f.childNodes[m].className)!=null&&s.includes("table-scrollable-wrapper"))&&(h=f.childNodes[m].firstChild),h){n.preventDefault();const A=Qt();if(A){const y=ye.$findMatchingParent(A,Ie),b=ye.$findMatchingParent(A,Ot),x=ye.$findMatchingParent(A,xt);if(!x||!b||!y)return!1;const w=h.querySelectorAll("tr"),k=w[0].childNodes,L=x.getChildren();let O=null,T=0;for(let M=0;M<x.getChildren().length;M++)if(x.getChildren()[M].__key===(b==null?void 0:b.__key)&&(T=M,M+w.length>L.length)){let I=M+w.length-L.length;(l=x==null?void 0:x.getLastChild())==null||l.selectStart();for(let F=0;F<I;F++)Da(!0);break}let R=0;x.getChildren().forEach((M,P)=>{if(P>=T&&w[R]){let I=0;M.getChildren().forEach((_,N)=>{var j,U;if(Ie(_)&&(_.__key===(y==null?void 0:y.__key)&&(O=N,_==null||_.selectStart()),O!==null&&N>=O&&N<k.length+O)){const W=((U=(j=w[R])==null?void 0:j.childNodes[I])==null?void 0:U.innerText)||"";_.clear();const B=p.$createParagraphNode(),Z=ts(W||"");B.append(Z),_.append(B),I++}}),R++}})}return!0}}catch(u){console.error("TABLE PASTE",u)}const t=p.$getSelection(),r=t==null?void 0:t.getNodes();return(r==null?void 0:r.length)>1&&Ie(r[1])&&e.update(()=>{r.forEach(u=>{xt(u)&&u.remove()})}),!1},p.COMMAND_PRIORITY_LOW)),[e])}const _R=33,FR=50;function WR({editor:e}){const n=g.useRef(null),t=g.useRef(null),r=g.useRef(null),[o,s]=g.useState(null),[l,u]=g.useState(null),[d,f]=g.useState(!1),[h,m]=g.useState(null),[A,y]=g.useState({right:!1,bottom:!1});g.useEffect(()=>e.registerCommand(p.SELECTION_CHANGE_COMMAND,E=>{const M=p.$getSelection(),P=yt(M);return d!==P&&f(P),!1},p.COMMAND_PRIORITY_HIGH));const b=g.useCallback(()=>{u(null),m(null),r.current=null,t.current=null,y({right:!1,bottom:!1})},[]);g.useEffect(()=>{const E=M=>{setTimeout(()=>{var U,W;const P=M.target;if(h){s({x:M.clientX,y:M.clientY});return}if(n.current&&n.current.contains(P))return;if(P instanceof Element&&P.closest(".table-cell-action-button-container")){u(null);return}const I=5;let F=null,_=null,N=1/0,j=null;if(l){const B=l.elem.closest("table");if(B){const Z=B.getBoundingClientRect();M.clientX>=Z.left-I&&M.clientX<=Z.right+I&&M.clientY>=Z.top-I&&M.clientY<=Z.bottom+I&&(j=B)}}if(!j&&P instanceof Element){const B=Uc(P);if(B?j=B.elem.closest("table"):j=(U=P.closest)==null?void 0:U.call(P,"table"),!j){const Z=document.elementsFromPoint(M.clientX,M.clientY);for(const Q of Z){const re=(W=Q.closest)==null?void 0:W.call(Q,"table");if(re){j=re;break}}}}if(j&&j.querySelectorAll("td, th").forEach((Z,Q)=>{var ae,te;const re=Z.getBoundingClientRect();let oe=Uc(Z);if(!oe){const q=Z.closest("tr"),ce=q?Array.from(((ae=q.parentElement)==null?void 0:ae.children)||[]).indexOf(q):0,ie=Array.from(((te=Z.parentElement)==null?void 0:te.children)||[]).indexOf(Z);oe={elem:Z,highlighted:!1,hasBackgroundColor:!1,x:ie,y:ce}}const Ce=Math.abs(M.clientX-re.right),Te=M.clientY>=re.top-I&&M.clientY<=re.bottom+I;Ce<=I&&Te&&Ce<N&&(N=Ce,F=oe,_="right");const Me=Math.abs(M.clientY-re.bottom),Re=M.clientX>=re.left-I&&M.clientX<=re.right+I;Me<=I&&Re&&Me<N&&(N=Me,F=oe,_="bottom")}),F&&_)y({right:_==="right",bottom:_==="bottom"}),l!==F&&e.update(()=>{const B=p.$getNearestNodeFromDOMNode(F.elem);if(!B)return;const Z=Hn(B),Q=e.getElementByKey(Z.getKey());Q&&(t.current=Q.children[0].getBoundingClientRect(),u(F))});else{if(l){const B=l.elem.getBoundingClientRect(),Z=Math.abs(M.clientX-B.right),Q=Math.abs(M.clientY-B.bottom),re=Math.abs(M.clientY-B.top),oe=Math.abs(M.clientX-B.left),Ce=Math.min(Z,Q,re,oe);y({right:Z<=I&&Z===Ce,bottom:Q<=I&&Q===Ce})}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=g.useCallback(E=>{if(!l)throw new Error("TableCellResizer: Expected active cell.");e.update(()=>{const M=p.$getNearestNodeFromDOMNode(l.elem);if(!Ie(M))throw new Error("TableCellResizer: Table cell node not found.");const P=Hn(M),I=Zo(M),F=P.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=g.useCallback((E,M)=>{if(!l)throw new Error("TableCellResizer: Expected active cell.");e.update(()=>{const P=p.$getNearestNodeFromDOMNode(l.elem);if(!Ie(P))throw new Error("TableCellResizer: Table cell node not found.");const I=Hn(P),F=Go(P),_=I.getChildren();for(let N=0;N<_.length;N++){const j=_[N];if(!Ot(j))throw new Error("Expected table row");const U=j.getChildren(),Z=U.map(re=>re.getColSpan()).reduce((re,oe)=>{const Ce=re[re.length-1]??0;return re.push(Ce+oe),re},[]).findIndex(re=>re>F);if(Z>=U.length||Z<0)throw new Error("Expected table cell to be inside of table row.");const Q=U[Z];if(!Ie(Q))throw new Error("Expected table cell");Q.setWidth(E)}})},[l,e]),L=g.useCallback(E=>{const M=P=>{if(P.preventDefault(),P.stopPropagation(),e.dispatchCommand(Xo,!0),!l)throw new Error("TableCellResizer: Expected active cell.");if(r.current){const{x:I,y:F}=r.current;if(l===null)return;const _=$0(P.target);if(x(E)){const N=l.elem.getBoundingClientRect().height,j=Math.abs(P.clientY-F)/_,U=E==="bottom"&&F>P.clientY;w(Math.max(U?N-j:j+N,_R))}else{const N=getComputedStyle(l.elem);let j=l.elem.clientWidth;j-=parseFloat(N.paddingLeft)+parseFloat(N.paddingRight);const U=Math.abs(P.clientX-I)/_,W=E==="right"&&I>P.clientX;k(Math.max(W?j-U:U+j,FR),j),e.update(()=>{p.$setSelection(null)})}b(),document.body.classList.remove("table-resize-active"),document.removeEventListener("mouseup",M)}};return M},[l,b,k,w]),O=g.useCallback(E=>M=>{const P=e.getRootElement();if(P&&P.contains(document.activeElement)&&bi(e),M.preventDefault(),M.stopPropagation(),e.dispatchCommand(Xo,!0),!l)throw new Error("TableCellResizer: Expected active cell.");r.current={x:M.clientX,y:M.clientY},s(r.current),m(E),document.body.classList.add("table-resize-active"),document.addEventListener("mouseup",L(E))},[l,L]),R=g.useCallback(()=>{if(l){const{height:E,width:M,top:P,left:I,right:F}=l.elem.getBoundingClientRect(),{right:_}=e._rootElement.getBoundingClientRect(),N=$0(l.elem),j=F>_?F-_+20:0,U={bottom:{backgroundColor:"transparent",cursor:"row-resize",height:"10px",left:`${I+5}px`,top:`${P+E-5}px`,width:`${M-j}px`,opacity:h==="bottom"||A.bottom?1:0,pointerEvents:h==="bottom"||A.bottom?"auto":"none"},right:{backgroundColor:"transparent",cursor:"col-resize",height:`${E-7}px`,left:`${I+M-5}px`,display:j?"none":"block",top:`${P+7}px`,width:"12px",opacity:h==="right"||A.right?1:0,pointerEvents:h==="right"||A.right?"auto":"none"}},W=t.current;return h&&o&&W&&(x(h)?(U[h].left=`${W.left}px`,U[h].top=`${o.y/N}px`,U[h].height="3px",U[h].width=`${W.width}px`):(U[h].top=`${W.top}px`,U[h].left=`${o.x/N}px`,U[h].width="3px",U[h].height=`${W.height}px`),U[h].backgroundColor="#adf"),U}return{bottom:null,left:null,right:null,top:null}},[l,h,o,A])();return a.jsx("div",{ref:n,children:l!=null&&!d&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:R.right||void 0,onMouseDown:O("right")}),a.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:R.bottom||void 0,onMouseDown:O("bottom")})]})})}function zR({}){var r,o;const[e]=tt.useLexicalComposerContext(),n=q9.useLexicalEditable(),t=((o=(r=e.getRootElement())==null?void 0:r.ownerDocument)==null?void 0:o.body)||document.body;return g.useMemo(()=>n?Ir.createPortal(a.jsx(WR,{editor:e}),t):null,[e,n,t])}const UR=[{format:"left",icon:xc,shortcutApple:"(⌘⇧L)",shortcutOther:"(Ctrl+Shift+L)",testIdToolbar:"toolbar-align-left",testIdTable:"table-align-left"},{format:"center",icon:FC,shortcutApple:"(⌘⇧E)",shortcutOther:"(Ctrl+Shift+E)",testIdToolbar:"toolbar-align-center",testIdTable:"table-align-center"},{format:"right",icon:zC,shortcutApple:"(⌘⇧R)",shortcutOther:"(Ctrl+Shift+R)",testIdToolbar:"toolbar-align-right",testIdTable:"table-align-right"},{format:"justify",icon:WC,shortcutApple:"(⌥⌘J)",shortcutOther:"(Ctrl+Alt+J)",testIdToolbar:"toolbar-align-justify",testIdTable:"table-align-justify"}];function Db(e){return{center:{icon:FC,name:e("editor.toolbar.center")},end:{icon:xc,name:"End Align"},justify:{icon:WC,name:e("editor.toolbar.justify")},left:{icon:xc,name:e("editor.toolbar.left")},right:{icon:zC,name:e("editor.toolbar.right")},start:{icon:xc,name:"Start Align"}}}function KR({shortcut:e,trailingIcon:n}){return a.jsxs(v.Flex,{align:"center",gap:8,c:"dimmed",children:[a.jsx(v.Text,{size:"xs",component:"span",c:"dimmed",children:e}),n]})}function Pb({effectiveValue:e,onAlignmentSelect:n,showShortcuts:t,testScope:r,renderLeftSection:o,renderTrailingWhenSelected:s}){const{t:l,i18n:u}=He.useTranslation(),d=g.useMemo(()=>Db(l),[u.language]),h=s??a.jsx(ue,{icon:Or,size:16,color:"var(--mantine-primary-color-filled)"});return a.jsx(a.Fragment,{children:UR.map(m=>{const A=e===m.format,y=r==="toolbar"?m.testIdToolbar:m.testIdTable,b=o?o(m):a.jsx(ue,{icon:m.icon,size:16});return a.jsx(v.Menu.Item,{leftSection:b,rightSection:t?a.jsx(KR,{shortcut:Rs?m.shortcutApple:m.shortcutOther,trailingIcon:A?h:void 0}):A?h:void 0,onClick:()=>n(m.format),"data-test-id":y,children:d[m.format].name},m.format)})})}const Sn=16,Nn=({children:e,color:n})=>a.jsx("span",{style:{color:n||"var(--mantine-color-gray-6)",display:"flex",alignItems:"center"},children:e}),HR=()=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:Sn,height:Sn,viewBox:"0 0 16 16",fill:"none",children:a.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"})}),YR=({tableCellNode:e,setIsMenuOpen:n,cellMerge:t,isMenuOpen:r,selectionBeforeMenuOpenedRef:o,currentIndexColumn:s,currentIndexRow:l,tableDom:u,menuContext:d="cell"})=>{const[f]=tt.useLexicalComposerContext(),{onTrack:h}=g.useContext(at),[m,A]=g.useState(e),[y,b]=g.useState({columns:1,rows:1}),[x,w]=g.useState(!1),[k,L]=g.useState(!1),[O,T]=g.useState(!1),[R,E]=g.useState(""),[M,P]=g.useState("left"),{t:I}=He.useTranslation();g.useEffect(()=>f.registerMutationListener(Kr,H=>{H.get(m.getKey())==="updated"&&(f.getEditorState().read(()=>{A(m.getLatest())}),E(NR(f)||""))}),[f,m]),g.useEffect(()=>{r?f.getEditorState().read(()=>{var X;const H=o.current;try{const J=m.getLatest().getFirstChild();J&&"getFormatType"in J&&P(J.getFormatType()||"left")}catch{}if(H&&yt(H)){let Y;try{Y=e2(H)}catch{return}b(Y);const J=Hn(H.anchor.getNode()),$=J.getChildrenSize(),Ae=(X=J.getChildAtIndex(0))==null?void 0:X.getChildrenSize(),me=Y.columns>=Ae&&Y.rows>=$;T(me),w(TR(H)&&(Y.columns>1||Y.rows>1))}try{L(LR())}catch{}}):f.update(()=>{p.$getSelection()!==null&&setTimeout(()=>{w(!1),o.current=null,b({columns:1,rows:1});try{m.getParent(),F()}catch{}},200)})},[r]);const F=g.useCallback(()=>{f.update(()=>{if(m.isAttached()){const X=Hn(m),Y=f.getElementByKey(X.getKey());if(!Y)throw new Error("Expected to find tableElement in DOM");const J=s1(Y);J!==null&&J.clearHighlight(),X.markDirty(),A(m.getLatest())}p.$getRoot().selectStart()})},[f,m]),_=()=>{f.update(()=>{var X;if(d==="row"||d==="column"){const Y=oe();if(Y.length<=1)return;const J=Y[0];d==="row"?J.setColSpan(Y.length):J.setRowSpan(Y.length);const $=oc(J);let Ae;$&&p.$isParagraphNode(Ae=J.getFirstChild())&&Ae.remove();for(let me=1;me<Y.length;me++)oc(Y[me])||J.append(...Y[me].getChildren()),Y[me].remove();J.getChildrenSize()===0&&J.append(p.$createParagraphNode()),t2(J);return}const H=o.current;if(yt(H)){let Y;try{Y=e2(H)}catch{return}const{columns:J,rows:$}=Y,Ae=Hn(H.anchor.getNode()),me=Ae.getChildrenSize(),ke=(X=Ae.getChildAtIndex(0))==null?void 0:X.getChildrenSize();if(J>=ke&&$>=me)return;const Fe=H.getNodes();let De=null;for(let Pe=0;Pe<Fe.length;Pe++){const Ue=Fe[Pe];if(Ie(Ue))if(De===null){Ue.setColSpan(J).setRowSpan($),De=Ue;const Ze=oc(Ue);let It;Ze&&p.$isParagraphNode(It=Ue.getFirstChild())&&It.remove()}else Ie(De)&&(oc(Ue)||De.append(...Ue.getChildren()),Ue.remove())}De!==null&&(De.getChildrenSize()===0&&De.append(p.$createParagraphNode()),t2(De))}})},N=()=>{f.update(()=>{if(d==="row"||d==="column"){const H=oe();for(const X of H)if(X.getColSpan()>1||X.getRowSpan()>1){X.selectStart(),Jm();break}return}Jm()})},j=g.useCallback(H=>{h==null||h("table_row_added",{position:H?"after":"before"}),f.update(()=>{const X=!H&&m.getHeaderStyles()&wt.ROW;for(let Y=0;Y<y.rows;Y++)Da(H);if(X){const J=Hn(m).getChildren(),$=J[0],Ae=J[1];Ot($)&&Ot(Ae)&&($.getChildren().forEach(me=>{Ie(me)&&me.setHeaderStyles(wt.ROW,wt.ROW)}),Ae.getChildren().forEach(me=>{Ie(me)&&me.setHeaderStyles(wt.NO_STATUS,wt.ROW)}))}})},[f,y.rows,m]),U=g.useCallback(H=>{h==null||h("table_column_added",{position:H?"after":"before"}),f.update(()=>{const X=!H&&m.getHeaderStyles()&wt.COLUMN;for(let Y=0;Y<y.columns;Y++)zc(H);if(X){const J=Hn(m).getChildren();for(const $ of J){if(!Ot($))continue;const Ae=$.getChildAtIndex(0),me=$.getChildAtIndex(1);Ie(Ae)&&Ae.setHeaderStyles(wt.COLUMN,wt.COLUMN),Ie(me)&&me.setHeaderStyles(wt.NO_STATUS,wt.COLUMN)}}})},[f,y.columns]),W=g.useCallback(()=>{h==null||h("table_row_deleted"),f.update(()=>{yA()})},[f]),B=g.useCallback(()=>{f.update(()=>{Hn(e).remove(),F()})},[f,e,F]),Z=g.useCallback(()=>{h==null||h("table_column_deleted"),f.update(()=>{xA()})},[f]),Q=g.useCallback(()=>{f.update(()=>{const H=Hn(m),X=Zo(m),Y=H.getChildren();if(X>=Y.length||X<0)throw new Error("Expected table cell to be inside of table row.");const J=Y[X];if(!Ot(J))throw new Error("Expected table row");const $=m.getHeaderStyles()^wt.ROW;J.getChildren().forEach(Ae=>{if(!Ie(Ae))throw new Error("Expected table cell");Ae.setHeaderStyles($,wt.ROW)}),F()})},[f,m,F]),re=g.useCallback(H=>{f.update(()=>{const X=Hn(m),Y=Go(m),J=X.getChildren(),$=Math.max(...J.map(me=>me.getChildren().length));if(Y>=$||Y<0)throw new Error("Expected table cell to be inside of table row.");const Ae=m.getHeaderStyles()^wt.COLUMN;for(let me=0;me<J.length;me++){const ke=J[me];if(!Ot(ke))throw new Error("Expected table row");const Fe=ke.getChildren();if(Y>=Fe.length)continue;const De=Fe[Y];if(!Ie(De))throw new Error("Expected table cell");H?De.setHeaderStyles(0,3):De.setHeaderStyles(Ae,wt.COLUMN)}F()})},[f,m,F]),oe=g.useCallback(()=>{const X=Hn(m).getChildren();if(d==="row"&&l!==null){const Y=X[l];if(Ot(Y))return Y.getChildren().filter(Ie)}if(d==="column"&&s!==null){const Y=[];for(const J of X)if(Ot(J)){const $=J.getChildAtIndex(s);Ie($)&&Y.push($)}return Y}return[m]},[m,d,l,s]),Ce=g.useCallback(H=>{f.update(()=>{if(d==="row"||d==="column"){const Y=oe();for(const J of Y)J.setBackgroundColor(H);return}const X=o.current;if(p.$isRangeSelection(X)||yt(X)){const[Y]=Rn(X.anchor);if(Ie(Y)&&Y.setBackgroundColor(H),yt(X)){const J=X.getNodes();for(let $=0;$<J.length;$++){const Ae=J[$];Ie(Ae)&&Ae.setBackgroundColor(H)}}}})},[f,d,oe]),Te=g.useCallback(()=>{function H(X){const Y=X.exportJSON();return typeof X.getChildren=="function"&&(Y.children=X.getChildren().map(J=>H(J))),Y}f.update(()=>{const X=Hn(m);if(d==="row"&&l!==null){const J=X.getChildren()[l];if(!Ot(J))return;const $=J.getChildren().filter(Ie).map(Fe=>H(Fe));Da(!0);const me=X.getChildren()[l+1];if(!Ot(me))return;const ke=me.getChildren().filter(Ie);for(let Fe=0;Fe<Math.min($.length,ke.length);Fe++){ke[Fe].getChildren().forEach(Pe=>Pe.remove());for(const Pe of $[Fe].children)ke[Fe].append(p.$parseSerializedNode(Pe));ke[Fe].setBackgroundColor($[Fe].backgroundColor||"");const De=$[Fe].headerState&wt.COLUMN;ke[Fe].setHeaderStyles(De?wt.COLUMN:wt.NO_STATUS,wt.ROW|wt.COLUMN)}}else if(d==="column"&&s!==null){const J=X.getChildren().filter(Ot).map(me=>{const ke=me.getChildAtIndex(s);return Ie(ke)?H(ke):null});zc(!0);const $=X.getChildren();let Ae=0;for(const me of $){if(!Ot(me))continue;const ke=J[Ae];if(Ae++,!ke)continue;const Fe=me.getChildAtIndex(s+1);if(!Ie(Fe))continue;Fe.getChildren().forEach(Pe=>Pe.remove());for(const Pe of ke.children)Fe.append(p.$parseSerializedNode(Pe));Fe.setBackgroundColor(ke.backgroundColor||"");const De=ke.headerState&wt.ROW;Fe.setHeaderStyles(De?wt.ROW:wt.NO_STATUS,wt.ROW|wt.COLUMN)}}})},[f,d,m,l,s]),Me=g.useCallback(()=>{f.update(()=>{if(d==="row"||d==="column"){const X=oe();for(const Y of X)Y.getChildren().forEach(J=>J.remove()),Y.append(p.$createParagraphNode());return}const H=o.current;if(yt(H)){const X=H.getNodes();for(const Y of X)Ie(Y)&&(Y.getChildren().forEach(J=>J.remove()),Y.append(p.$createParagraphNode()))}else{const X=p.$getSelection()||H;if(!X||!p.$isRangeSelection(X)&&!yt(X))return;const[Y]=Rn(X.anchor);Ie(Y)&&(Y.getChildren().forEach(J=>J.remove()),Y.append(p.$createParagraphNode()),Y.selectStart())}})},[f,o,d,oe]),Re=g.useCallback(()=>{d==="row"?W():d==="column"?Z():B()},[d,W,Z,B]),ae=g.useCallback(H=>{d==="row"||d==="column"?f.update(()=>{const X=oe();for(const Y of X)Y.getChildren().forEach(J=>{p.$isElementNode(J)&&J.setFormat(H)})}):f.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,H)},[f,d,oe]),te=l===0&&jR(u),q=s===0&&RR(s||0,u),ce=d==="row"||d==="column",ie=(()=>{if(!ce)return!1;try{return f.getEditorState().read(()=>oe().some(X=>X.getColSpan()>1||X.getRowSpan()>1))}catch{return!1}})(),ne=ce?ie:k;return a.jsxs(a.Fragment,{children:[a.jsx(Bt.NewColorPicker,{modes:["background"],value:{background:R},onChange:H=>Ce(H.value),menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:10,alignmentAxis:-5}},target:a.jsx(v.Menu.Item,{leftSection:a.jsx(Nn,{children:a.jsx(ue,{icon:Ci,size:Sn})}),rightSection:a.jsx(Nn,{children:a.jsx(ue,{icon:Ns,size:Sn})}),"data-test-id":"table-background-color",children:I("editor.table.menu.color")})}),a.jsxs(v.Menu,{trigger:"hover",position:"right-start",offset:{mainAxis:10,alignmentAxis:-5},shadow:"md",children:[a.jsx(v.Menu.Target,{children:a.jsx(v.Menu.Item,{leftSection:a.jsx(Nn,{children:a.jsx(ue,{icon:A8,size:Sn})}),rightSection:a.jsx(Nn,{children:a.jsx(ue,{icon:Ns,size:Sn})}),"data-test-id":"table-alignment",children:I("editor.toolbar.align")})}),a.jsxs(v.Menu.Dropdown,{children:[a.jsx(Pb,{effectiveValue:M||"left",onAlignmentSelect:ae,showShortcuts:!0,testScope:"table",renderLeftSection:H=>a.jsx(Nn,{children:a.jsx(ue,{icon:H.icon,size:Sn})}),renderTrailingWhenSelected:a.jsx(Nn,{color:"var(--mantine-primary-color-filled)",children:a.jsx(ue,{icon:Or,size:Sn})})}),a.jsx(v.Menu.Divider,{}),a.jsx(v.Menu.Item,{leftSection:a.jsx(Nn,{children:a.jsx(ue,{icon:ik,size:Sn})}),onClick:()=>f.dispatchCommand(p.INDENT_CONTENT_COMMAND,void 0),"data-test-id":"table-indent-increase",children:I("editor.table.menu.increaseIndent")}),a.jsx(v.Menu.Item,{leftSection:a.jsx(Nn,{children:a.jsx(ue,{icon:sk,size:Sn})}),onClick:()=>f.dispatchCommand(p.OUTDENT_CONTENT_COMMAND,void 0),"data-test-id":"table-indent-decrease",children:I("editor.table.menu.decreaseIndent")})]})]}),ce&&a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Divider,{}),(d==="row"&&l===0||d==="column"&&s===0)&&a.jsx(v.Menu.Item,{leftSection:a.jsx(Nn,{children:a.jsx(ue,{icon:rk,size:Sn})}),rightSection:a.jsx(v.Switch,{size:"xs",checked:d==="row"?te:q,onChange:()=>{},classNames:{thumb:"switch-no-indicator"},styles:{root:{pointerEvents:"none"}}}),onClick:()=>{d==="row"?Q():re(q)},"data-test-id":d==="row"?"table-row-header":"table-column-header",children:I(d==="row"?"editor.table.menu.headerRow":"editor.table.menu.headerColumn")}),t&&a.jsx(v.Menu.Item,{leftSection:a.jsx(Nn,{children:a.jsx(ue,{icon:Pf,size:Sn})}),rightSection:a.jsx(v.Switch,{size:"xs",checked:ne,onChange:()=>{},classNames:{thumb:"switch-no-indicator"},styles:{root:{pointerEvents:"none"}}}),onClick:()=>{ie?N():_()},"data-test-id":"table-merge-cells",children:I("editor.table.menu.mergeCells")}),d==="row"&&a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Item,{leftSection:a.jsx(Nn,{children:a.jsx(ue,{icon:W8,size:Sn})}),"data-test-id":"table-insert-row-above",onClick:()=>j(!1),children:I("editor.table.menu.insertAbove")}),a.jsx(v.Menu.Item,{leftSection:a.jsx(Nn,{children:a.jsx(ue,{icon:F8,size:Sn})}),"data-test-id":"table-insert-row-below",onClick:()=>j(!0),children:I("editor.table.menu.insertBelow")})]}),d==="column"&&a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Item,{leftSection:a.jsx(Nn,{children:a.jsx(ue,{icon:B8,size:Sn})}),"data-test-id":"table-insert-column-before",onClick:()=>U(!1),children:I("editor.table.menu.insertLeft")}),a.jsx(v.Menu.Item,{leftSection:a.jsx(Nn,{children:a.jsx(ue,{icon:_8,size:Sn})}),"data-test-id":"table-insert-column-after",onClick:()=>U(!0),children:I("editor.table.menu.insertRight")})]}),a.jsx(v.Menu.Divider,{}),a.jsx(v.Menu.Item,{leftSection:a.jsx(Nn,{children:a.jsx(ue,{icon:jo,size:Sn})}),"data-test-id":"table-duplicate",onClick:Te,children:I("editor.table.menu.duplicate")})]}),!ce&&t&&(x||k)&&a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Divider,{}),a.jsx(v.Menu.Item,{disabled:O&&!k,leftSection:a.jsx(Nn,{children:a.jsx(ue,{icon:Pf,size:Sn})}),rightSection:a.jsx(v.Switch,{size:"xs",checked:ne,readOnly:!0,disabled:O&&!k,classNames:{thumb:"switch-no-indicator"},styles:{track:{cursor:"pointer"}}}),onClick:()=>{k?N():x&&_()},"data-test-id":"table-merge-cells",children:I("editor.table.menu.mergeCells")})]}),!ce&&a.jsx(v.Menu.Divider,{}),a.jsx(v.Menu.Item,{leftSection:a.jsx(Nn,{children:a.jsx(HR,{})}),"data-test-id":"table-clear-content",onClick:Me,children:I("editor.table.menu.clearContent")}),ce&&a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Divider,{}),a.jsx(v.Menu.Item,{color:"red",leftSection:a.jsx(Nn,{color:"var(--mantine-color-red-6)",children:a.jsx(ue,{icon:_n,size:Sn})}),"data-test-id":d==="row"?"table-delete-rows":"table-delete-columns",onClick:Re,children:I("editor.table.menu.delete")})]})]})},Af=({tableCellNode:e,setIsMenuOpen:n,contextRef:t,cellMerge:r,children:o,tableDom:s,isMenuOpen:l,menuContext:u="cell"})=>{const[d]=tt.useLexicalComposerContext(),f=g.useRef(null),h=g.useRef(null),m=g.useRef(null),A=()=>{n(!0),d.read(()=>{const y=Go(e),b=Zo(e);h.current=y,m.current=b;const x=p.$getSelection();yt(x)?f.current=x.clone():(wk(e,d),setTimeout(()=>{d.read(()=>{const w=p.$getSelection();f.current=w})},200))})};return a.jsxs(v.Menu,{onOpen:A,onClose:()=>n(!1),shadow:"md",position:"right",opened:l,transitionProps:zn,classNames:{dropdown:"table-menu-dropdown"},children:[a.jsx(v.Menu.Target,{children:o}),a.jsx(v.Menu.Dropdown,{children:a.jsx(YR,{isMenuOpen:l,contextRef:t,tableCellNode:e,cellMerge:r,setIsMenuOpen:n,tableDom:s,currentIndexColumn:h.current,currentIndexRow:m.current,selectionBeforeMenuOpenedRef:f,menuContext:u})})]})},sc=12;function ZR({anchorElem:e,isShowTableOptions:n,cellMerge:t}){var Le,Oe;const[r]=tt.useLexicalComposerContext(),[o,s]=g.useState(!1),[l,u]=g.useState({}),[d,f]=g.useState({}),[h,m]=g.useState({}),[A,y]=g.useState({}),[b,x]=g.useState({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),w=g.useRef(null),k=g.useCallback(fe=>{x(ge=>{const pe=typeof fe=="function"?fe(ge):fe,We=ge.row&&!pe.row,_e=ge.column&&!pe.column;return(We||_e)&&document.body.classList.contains("table-drag-active")?ge:We||_e?(w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{document.body.classList.contains("table-drag-active")||x(qe=>({...qe,row:We?!1:qe.row,column:_e?!1:qe.column}))},150),{...pe,row:We?ge.row:pe.row,column:_e?ge.column:pe.column}):(w.current&&(pe.row||pe.column)&&(clearTimeout(w.current),w.current=null),pe)})},[]),[L,O]=g.useState(!1),[T,R]=g.useState(!1),[E,M]=g.useState({}),[P,I]=g.useState({}),[F,_]=g.useState({}),[N,j]=g.useState(!1),[U,W]=g.useState(!1),[B,Z]=g.useState(!1),[Q,re]=g.useState(!1),[oe,Ce]=g.useState(!1),[Te,Me]=g.useState(null),[Re,ae]=g.useState(null),[te,q]=g.useState(null),ce=g.useRef(null),ie=g.useRef(null),ne=g.useRef(null),H=g.useRef(!1),X=g.useRef(null),Y=g.useRef(!1),J=g.useRef(null),$=g.useRef(new Set),Ae=g.useRef(null),me=g.useRef(null),ke=g.useRef(null),Fe=g.useRef(null),De=g.useRef(null),Pe=g.useRef(null),{t:Ue}=He.useTranslation();H.current=N||L||T;const Ze=Pi(fe=>{if(document.body.classList.contains("table-drag-active")||document.body.classList.contains("table-resize-active"))return;const{isOutside:ge,tableDOMNode:pe,edgeDirection:We}=GR(fe,r,b.row);J.current=We;const _e=fe.target;if(_e!=null&&_e.closest(".table-cell-add-container")||_e!=null&&_e.closest(".table-row-add-container")||H.current)return;if(ge&&(b.row||b.column)){const nt=e.querySelectorAll("table.dsd__theme__table");for(const Be of nt){const Ne=Be.getBoundingClientRect(),Je=fe.clientY>Ne.bottom-10&&fe.clientY<Ne.bottom+25,Qe=fe.clientX>Ne.right-10&&fe.clientX<Ne.right+25;if(Je&&Qe)return}}if(ge&&(b.top||b.bottom||b.left||b.right||b.column||b.row)){if(Y.current){k(nt=>({...nt,top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1})),Pe.current=null;return}if(X.current&&(X.current.classList.remove("dsd__theme__tableCellActive"),X.current=null),oe){if(r.getEditorState().read(()=>yt(p.$getSelection()))){k(Be=>({...Be,top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1})),Pe.current=null;return}Ce(!1),ae(null),Me(null),$i(!1)}k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),Pe.current=null;return}if(!pe)return;ke.current=pe;let qe=null,$e=null,Ve=null;r.update(()=>{var Je,Qe,st,gt,ut,Ke;const nt=p.$getSelection();if(yt(nt))return;oe&&(Ce(!1),ae(null),Me(null));const Be=p.$getNearestNodeFromDOMNode(pe),Ne=J.current;if(!(((Je=Pe.current)==null?void 0:Je.__key)===(Be==null?void 0:Be.__key)&&b.options)&&(((Qe=Pe.current)==null?void 0:Qe.__key)!==(Be==null?void 0:Be.__key)&&(k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),W(!1),Z(!1),re(!1)),Pe.current=Be,Ie(Be))){const ot=ye.$findMatchingParent(Be,ft=>xt(ft));if(!xt(ot))return;if(Ve=r.getElementByKey(ot==null?void 0:ot.getKey()),Ve){const ft=ot.getChildrenSize(),dt=(st=ot.getChildAtIndex(0))==null?void 0:st.getChildrenSize(),Ye=Zo(Be),ht=Go(Be);if(Fe.current=(gt=Ve.firstChild)==null?void 0:gt.childNodes[Ye+1].firstChild,De.current=(Ke=(ut=Ve.firstChild)==null?void 0:ut.childNodes[1])==null?void 0:Ke.childNodes[ht],Ne==="bottom")qe=Be,Pe.current=null,k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!1});else if(Ne==="right")$e=Be,Pe.current=null,k({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!1,options:!1});else{const nn=Ye===ft-1,kt=ht===dt-1;nn&&(qe=Be),kt&&($e=Be),w.current&&(clearTimeout(w.current),w.current=null),x(St=>({...St,column:kt,row:nn}))}}}}),setTimeout(()=>{var nt,Be,Ne,Je,Qe;if(!document.body.classList.contains("table-drag-active")&&Ve){const{width:st,y:gt,left:ut,right:Ke,bottom:ot,height:ft}=Ve.getBoundingClientRect(),{y:dt,left:Ye}=e.getBoundingClientRect();if(Pe.current){const kt=r.getElementByKey(Pe.current.getKey());if(kt!=null){const St=kt.getBoundingClientRect(),Tt=Ve.getBoundingClientRect();if(!H.current){const en=Tt.left+Ve.clientWidth;let Dt=St.right-Ye-8;St.right>en&&(Dt=en-Ye-8),_({top:St.top-dt+St.height/2-11,left:Dt}),M({top:St.top-dt+St.height/2-11,left:ut-Ye-6}),I({top:gt-dt-6,left:St.left-Ye+St.width/2-11})}}}if(De.current){const{top:kt,width:St,left:Tt,right:en}=De.current.getBoundingClientRect(),Dt=sc,rn=Tt-Ye-Dt/2,Ft=kt-dt-Dt/2;let Ht=St+Dt+2;en>Ke&&(Ht=Ht-(en-Ke)),m({width:Ht,height:Dt,top:Ft,left:rn})}if(Fe.current){const{top:kt,height:St}=Fe.current.getBoundingClientRect(),Tt=sc,en=ut-Ye-Tt/2,Dt=kt-dt-Tt/2;y({height:St+Tt+2,top:Dt,left:en})}const ht=(nt=Ve.parentElement)!=null&&nt.classList.contains("dsd__theme__callout-container")&&document.documentElement.getAttribute("data-mantine-color-scheme")==="light"?"rgba(173, 181, 189, 0.7)":"";if(qe){const kt=((Be=Ve.firstElementChild)==null?void 0:Be.clientWidth)||0,St=Ve.closest(".dsd__theme__table-scrollable-wrapper"),Tt=St==null?void 0:St.getBoundingClientRect(),en=Tt?Tt.bottom:ot,Dt=st>kt?kt:st,rn=Tt?Tt.left-Ye:ut-Ye,Ft=Tt?Math.min(Dt,Tt.width):Dt;u({left:rn,top:en-dt+6,width:Ft,padding:0,backgroundColor:ht})}const{right:nn}=(Ne=Ve.firstElementChild)==null?void 0:Ne.getBoundingClientRect();if($e){OR(Ke,(Qe=(Je=r._rootElement)==null?void 0:Je.parentElement)==null?void 0:Qe.parentElement);const kt=Math.min(nn,Ke);f({height:ft,left:kt-Ye+6,top:gt-dt,padding:0,backgroundColor:ht})}}},100)},50,150),It=()=>{k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),X.current&&(X.current.classList.remove("dsd__theme__tableCellActive"),X.current=null),Pe.current=null,O(!1),R(!1),j(!1),W(!1),Z(!1),re(!1),q(null)},Mt=(Oe=(Le=Fe.current)==null?void 0:Le.parentElement)==null?void 0:Oe.parentElement;g.useEffect(()=>{var fe;if(Mt){(fe=me.current)==null||fe.call(me);const ge=()=>{document.body.classList.contains("table-drag-active")||It()},pe=Mt.parentElement;return pe==null||pe.addEventListener("scroll",ge),me.current=()=>{pe==null||pe.removeEventListener("scroll",ge)},()=>{var We;(We=me.current)==null||We.call(me),me.current=null}}},[Mt]),g.useEffect(()=>{const fe=ge=>{var pe;(pe=ge.target)!=null&&pe.closest(".TableCellResizer__resizer")&&It()};return document.addEventListener("mousedown",fe,!0),()=>document.removeEventListener("mousedown",fe,!0)},[]),g.useEffect(()=>{if(!o)return;const fe=ge=>{var nt,Be;const pe=ge.target;if(!pe||document.body.classList.contains("table-drag-active")||document.body.classList.contains("table-resize-active"))return;const We=e.querySelectorAll("table.dsd__theme__table");let _e=null;for(const Ne of We){const Je=Ne.getBoundingClientRect();if(ge.clientX>Je.right-10&&ge.clientX<Je.right+25&&ge.clientY>Je.bottom-10&&ge.clientY<Je.bottom+25){_e=Ne;break}}if(_e){const Ne=_e.getBoundingClientRect(),Je=ge.clientX,Qe=ge.clientY,st=Qe>Ne.bottom-10&&Qe<Ne.bottom+25,gt=Je>Ne.right-10&&Je<Ne.right+25;if(st&&gt){Ze.cancel();const ut=_e.querySelectorAll("td.dsd__theme__tableCell, th.dsd__theme__tableCell"),Ke=ut[ut.length-1];if(Ke&&(ke.current=Ke),b.row&&b.column)return;const{y:ot,left:ft}=e.getBoundingClientRect(),dt=(nt=_e.closest)==null?void 0:nt.call(_e,".dsd__theme__table-scrollable-wrapper"),Ye=dt==null?void 0:dt.getBoundingClientRect(),ht=Ye?Math.min(Ne.right,Ye.right):Ne.right;u({top:(Ye?Ye.bottom:Ne.bottom)-ot+6,left:Ye?Ye.left-ft:Ne.left-ft,width:Ye?Math.min(Ne.width,Ye.width):Ne.width,padding:0}),f({top:Ne.top-ot,left:ht-ft+6,height:Ye?Ye.height:Ne.height,padding:0}),k(nn=>({...nn,row:!0,column:!0}));return}}const qe=e.querySelector(".dsd__theme__tableAddColumns"),$e=e.querySelector(".dsd__theme__tableAddRows");{const Ne=ge.clientX,Je=ge.clientY;if(qe){const Qe=qe.getBoundingClientRect();if(Ne>=Qe.left-6&&Ne<=Qe.right&&Je>=Qe.top&&Je<=Qe.bottom){Ze.cancel();return}}if($e){const Qe=$e.getBoundingClientRect();if(Ne>=Qe.left&&Ne<=Qe.right&&Je>=Qe.top-6&&Je<=Qe.bottom){Ze.cancel();return}}}if(pe.closest(".dsd__theme__tableAddRows")||pe.closest(".dsd__theme__tableAddColumns")||pe.closest(".dsd__theme__tableAddCorner")||pe.closest(".table-cell-action-button-container")||pe.closest(".table-row-add-container")||pe.closest(".table-cell-add-container")||pe.closest('[data-testid^="table-"]')||pe.closest(".mantine-Menu-dropdown")){Ze.cancel();return}if(document.body.classList.contains("table-drag-active"))return;const Ve=(Be=pe.closest)==null?void 0:Be.call(pe,"td.dsd__theme__tableCell, th.dsd__theme__tableCell");if(pe.className==="ContentEditable__root"||pe.className==="ContentEditable__root focused"||pe.className==="dsd__theme__table-scrollable-wrapper"||pe.className==="content-editable-wrapper"){const Ne="td.dsd__theme__tableCell, th.dsd__theme__tableCell",Je=document.elementFromPoint(ge.x-20,ge.y),Qe=document.elementFromPoint(ge.x,ge.y-20),st=Je==null?void 0:Je.closest(Ne),gt=Qe==null?void 0:Qe.closest(Ne);if(st&&gt){Ze.cancel();const ut=gt.closest("table.dsd__theme__table");if(ut){const Ke=ut.querySelectorAll("td.dsd__theme__tableCell, th.dsd__theme__tableCell");ke.current=Ke[Ke.length-1]||gt}else ke.current=gt;if(b.row&&b.column)return;if(ut){const Ke=ut.getBoundingClientRect(),{y:ot,left:ft}=e.getBoundingClientRect(),dt=ut.closest(".dsd__theme__table-scrollable-wrapper"),Ye=dt==null?void 0:dt.getBoundingClientRect(),ht=Ye?Math.min(Ke.right,Ye.right):Ke.right;u({top:(Ye?Ye.bottom:Ke.bottom)-ot+6,left:Ye?Ye.left-ft:Ke.left-ft,width:Ye?Math.min(Ke.width,Ye.width):Ke.width,padding:0}),f({top:Ke.top-ot,left:ht-ft+6,height:Ke.height,padding:0})}k(Ke=>({...Ke,row:!0,column:!0}));return}if(st){Ze.cancel(),ke.current=st;const ut=st.closest("table.dsd__theme__table");if(ut){const Ke=ut.getBoundingClientRect(),{y:ot,left:ft}=e.getBoundingClientRect(),dt=ut.closest(".dsd__theme__table-scrollable-wrapper"),Ye=dt==null?void 0:dt.getBoundingClientRect(),ht=Ye?Math.min(Ke.right,Ye.right):Ke.right;f({top:Ke.top-ot,left:ht-ft+6,height:Ke.height,padding:0}),k(nn=>({...nn,column:!0}))}return}if(gt){Ze.cancel(),ke.current=gt;const ut=gt.closest("table.dsd__theme__table");if(ut){const Ke=ut.getBoundingClientRect(),{y:ot,left:ft}=e.getBoundingClientRect(),dt=ut.closest(".dsd__theme__table-scrollable-wrapper"),Ye=dt==null?void 0:dt.getBoundingClientRect();u({top:(Ye?Ye.bottom:Ke.bottom)-ot+6,left:Ye?Ye.left-ft:Ke.left-ft,width:Ye?Math.min(Ke.width,Ye.width):Ke.width,padding:0}),k(ht=>({...ht,row:!0}))}return}}if(Ve){if(Y.current){r.read(()=>{var Je,Qe;const Ne=p.$getNearestNodeFromDOMNode(Ve);if(Ie(Ne)){const st=ye.$findMatchingParent(Ne,gt=>xt(gt));if(xt(st)){const gt=st.getChildrenSize(),ut=(Je=st.getChildAtIndex(0))==null?void 0:Je.getChildrenSize(),Ke=Zo(Ne),ot=Go(Ne),ft=Ke===gt-1,dt=ot===ut-1,Ye=Ve.closest("table.dsd__theme__table"),ht=(Qe=X.current)==null?void 0:Qe.closest("table.dsd__theme__table");if(Ye&&ht&&Ye!==ht&&(ft||dt)){const kt=Ye.getBoundingClientRect(),{y:St,left:Tt}=e.getBoundingClientRect();if(r.getElementByKey(st.getKey()),ft&&(ke.current=Ve,u({left:kt.left-Tt,top:kt.bottom-St+6,width:kt.width,padding:0})),dt){const en=Ye.closest(".dsd__theme__table-scrollable-wrapper"),Dt=en==null?void 0:en.getBoundingClientRect(),rn=Dt?Math.min(kt.right,Dt.right):kt.right;ke.current=Ve,f({top:kt.top-St,left:rn-Tt+6,height:kt.height,padding:0})}}k(kt=>({...kt,row:ft,column:dt}))}}});return}r.read(()=>{var Je;const Ne=p.$getNearestNodeFromDOMNode(Ve);if(Ie(Ne)){const Qe=ye.$findMatchingParent(Ne,st=>xt(st));if(xt(Qe)){const st=Qe.getChildrenSize(),gt=(Je=Qe.getChildAtIndex(0))==null?void 0:Je.getChildrenSize(),ut=Zo(Ne),Ke=Go(Ne),ot=ut===st-1,ft=Ke===gt-1;if(w.current&&(clearTimeout(w.current),w.current=null),ot||ft){const dt=r.getElementByKey(Qe.getKey());if(dt){const Ye=dt.querySelector("table.dsd__theme__table")||dt,ht=Ye.getBoundingClientRect(),{y:nn,left:kt}=e.getBoundingClientRect(),St=Ye.closest(".dsd__theme__table-scrollable-wrapper"),Tt=St==null?void 0:St.getBoundingClientRect();if(ot&&(ke.current=Ve,u({top:(Tt?Tt.bottom:ht.bottom)-nn+6,left:Tt?Tt.left-kt:ht.left-kt,width:Tt?Math.min(ht.width,Tt.width):ht.width,padding:0})),ft){ke.current=Ve;const en=Tt?Math.min(ht.right,Tt.right):ht.right;f({top:ht.top-nn,left:en-kt+6,height:Tt?Tt.height:ht.height,padding:0})}}}x(dt=>({...dt,row:ot,column:ft}))}}});return}Y.current?(b.row||b.column)&&k(Ne=>({...Ne,row:!1,column:!1})):(b.row||b.column)&&Ze(ge)};return document.addEventListener("mousemove",fe),()=>{document.removeEventListener("mousemove",fe)}},[o,Ze,b.options,b.row,b.column]),g.useEffect(()=>{if(!o)return;const fe=ge=>{var qe;Ze.cancel(),J.current=null;const pe=ge.target;if(H.current)return;const We=r.getEditorState().read(()=>p.$getSelection());if(yt(We))return;const _e=(qe=pe==null?void 0:pe.closest)==null?void 0:qe.call(pe,"td.dsd__theme__tableCell, th.dsd__theme__tableCell");if(!_e){Y.current=!1,It();return}ge.shiftKey||(Y.current=!0,ke.current=_e,X.current&&(X.current.classList.remove("dsd__theme__tableCellActive"),X.current=null),Ce(!1),ae(null),Me(null),$i(!1),r.update(()=>{var ot,ft,dt,Ye;const $e=p.$getNearestNodeFromDOMNode(_e);if(!Ie($e))return;const Ve=p.$getSelection();yt(Ve)&&$e.selectStart();const nt=ye.$findMatchingParent($e,ht=>xt(ht));if(!xt(nt))return;const Be=r.getElementByKey(nt.getKey());if(!Be)return;const Ne=nt.getChildrenSize(),Je=(ot=nt.getChildAtIndex(0))==null?void 0:ot.getChildrenSize(),Qe=Zo($e),st=Go($e),gt=Qe===Ne-1,ut=st===Je-1;Fe.current=(ft=Be.firstChild)==null?void 0:ft.childNodes[Qe+1].firstChild,De.current=(Ye=(dt=Be.firstChild)==null?void 0:dt.childNodes[1])==null?void 0:Ye.childNodes[st],Pe.current=$e;const Ke=r.getElementByKey($e.getKey());Ke&&(Ke.classList.add("dsd__theme__tableCellActive"),X.current=Ke),k({top:!0,bottom:!0,left:!0,right:!0,column:ut,row:gt,options:!0}),W(!1),Z(!1),re(!1),setTimeout(()=>{var Ht,Vt,rt;const{width:ht,y:nn,left:kt,right:St,bottom:Tt,height:en}=Be.getBoundingClientRect(),{y:Dt,left:rn}=e.getBoundingClientRect();if(Pe.current){const Ct=r.getElementByKey(Pe.current.getKey());if(Ct){const Jt=Ct.getBoundingClientRect(),gr=Be.getBoundingClientRect().left+Be.clientWidth;let tr=Jt.right-rn-8;Jt.right>gr&&(tr=gr-rn-8),_({top:Jt.top-Dt+Jt.height/2-11,left:tr}),M({top:Jt.top-Dt+Jt.height/2-11,left:kt-rn-6}),I({top:nn-Dt-6,left:Jt.left-rn+Jt.width/2-11})}}if(De.current){const{top:Ct,width:Jt,left:Dn,right:gr}=De.current.getBoundingClientRect(),tr=sc;let ds=Jt+tr+2;gr>St&&(ds-=gr-St),m({width:ds,height:tr,top:Ct-Dt-tr/2,left:Dn-rn-tr/2})}if(Fe.current){const{top:Ct,height:Jt}=Fe.current.getBoundingClientRect(),Dn=sc;y({height:Jt+Dn+2,top:Ct-Dt-Dn/2,left:kt-rn-Dn/2})}const Ft=(Ht=Be.parentElement)!=null&&Ht.classList.contains("dsd__theme__callout-container")&&document.documentElement.getAttribute("data-mantine-color-scheme")==="light"?"rgba(173, 181, 189, 0.7)":"";if(gt){const Ct=((Vt=Be.firstElementChild)==null?void 0:Vt.clientWidth)||0,Jt=Be.closest(".dsd__theme__table-scrollable-wrapper"),Dn=Jt==null?void 0:Jt.getBoundingClientRect();u({left:Dn?Dn.left-rn:kt-rn,top:(Dn?Dn.bottom:Tt)-Dt+6,width:Dn?Math.min(ht>Ct?Ct:ht,Dn.width):ht>Ct?Ct:ht,padding:0,backgroundColor:Ft})}if(ut){const{right:Ct}=(rt=Be.firstElementChild)==null?void 0:rt.getBoundingClientRect(),Jt=Math.min(Ct,St);f({height:en,left:Jt-rn+6,top:nn-Dt,padding:0,backgroundColor:Ft})}},100)}))};return document.addEventListener("click",fe),()=>{It(),Ze.cancel(),document.removeEventListener("click",fe)}},[o,Ze]),g.useEffect(()=>{if(Pe.current)return(L||T)&&(X.current&&(X.current.classList.remove("dsd__theme__tableCellActive"),X.current),r.getEditorState().read(()=>{const fe=Pe.current;if(!fe||!Ie(fe))return;let ge,pe;try{ge=Hn(fe),pe=ge.getChildren()}catch{return}let We=null,_e=null;if(L){let qe;try{qe=Zo(fe)}catch{return}const $e=pe[qe];if(Ot($e)){const Ve=$e.getChildren(),nt=Ve[0],Be=Ve[Ve.length-1];Ie(nt)&&Ie(Be)&&(We=r.getElementByKey(nt.getKey()),_e=r.getElementByKey(Be.getKey()))}}if(T){let qe;try{qe=Go(fe)}catch{return}const $e=pe[0],Ve=pe[pe.length-1];if(Ot($e)&&Ot(Ve)){const nt=$e.getChildAtIndex(qe),Be=Ve.getChildAtIndex(qe);Ie(nt)&&Ie(Be)&&(We=r.getElementByKey(nt.getKey()),_e=r.getElementByKey(Be.getKey()))}}if(We&&_e){const{y:qe,left:$e}=e.getBoundingClientRect(),Ve=We.getBoundingClientRect(),nt=_e.getBoundingClientRect(),Be=We.closest(".dsd__theme__table-scrollable-wrapper"),Ne=Be==null?void 0:Be.getBoundingClientRect(),Je=Math.min(Ve.top,nt.top),Qe=Math.max(Ve.bottom,nt.bottom),st=Math.min(Ve.left,nt.left),gt=Math.max(Ve.right,nt.right),ut=Ne?Math.max(Je,Ne.top):Je,Ke=Ne?Math.min(Qe,Ne.bottom):Qe,ot=Ne?Math.max(st,Ne.left):st,ft=Ne?Math.min(gt,Ne.right):gt;ft>ot&&Ke>ut&&ae({top:ut-qe-1,left:ot-$e,width:ft-ot,height:Ke-ut+1})}})),()=>{ae(null)}},[L,T,r,e]),g.useEffect(()=>r.registerUpdateListener(({editorState:fe})=>{fe.read(()=>{const ge=p.$getSelection();if(yt(ge)){Y.current=!1,X.current&&(X.current.classList.remove("dsd__theme__tableCellActive"),X.current=null);const pe=ge.anchor.getNode(),We=Ie(pe)?pe:ye.$findMatchingParent(pe,Ie),_e=ge.focus.getNode(),qe=Ie(_e)?_e:ye.$findMatchingParent(_e,Ie);if(!Ie(We)||!Ie(qe))return;const $e=r.getElementByKey(We.getKey()),Ve=r.getElementByKey(qe.getKey());if(!$e||!Ve)return;const{y:nt,left:Be}=e.getBoundingClientRect(),Ne=$e.getBoundingClientRect(),Je=Ve.getBoundingClientRect(),Qe=Math.min(Ne.top,Je.top),st=Math.max(Ne.bottom,Je.bottom),gt=Math.min(Ne.left,Je.left),ut=Math.max(Ne.right,Je.right);Me(We),_({top:(Qe+st)/2-nt-11,left:ut-Be-8}),ae({top:Qe-nt,left:gt-Be,width:ut-gt,height:st-Qe}),Ce(!0),k(ot=>({...ot,options:!0})),$i(!0);const Ke=Hn(We).getKey();requestAnimationFrame(()=>{const ot=r.getElementByKey(Ke),ft=ot==null?void 0:ot.querySelectorAll(".dsd__theme__tableCell");ft==null||ft.forEach(dt=>{const Ye=dt;Ye.style.backgroundColor==="rgb(172, 206, 247)"&&(Ye.style.backgroundColor=""),Ye.style.backgroundImage=""})});return}oe&&!yt(ge)&&!H.current&&(Ce(!1),ae(null),Me(null),$i(!1))})}),[r,e,oe]),g.useEffect(()=>{const fe=()=>{document.body.classList.contains("table-drag-active")||(Ce(!1),ae(null),Me(null),$i(!1),X.current&&(X.current.classList.remove("dsd__theme__tableCellActive"),X.current=null),Y.current=!1,r.update(()=>{p.$setSelection(null)}))},ge=e.querySelectorAll(".dsd__theme__table-scrollable-wrapper");return ge.forEach(pe=>pe.addEventListener("scroll",fe,{passive:!0})),()=>ge.forEach(pe=>pe.removeEventListener("scroll",fe))},[r,e]),g.useEffect(()=>ye.mergeRegister(r.registerMutationListener(Yr,fe=>{r.getEditorState().read(()=>{for(const[ge,pe]of fe)switch(pe){case"created":$.current.add(ge),Ae.current=r.getElementByKey(ge),s($.current.size>0);break;case"destroyed":$.current.delete(ge),s($.current.size>0);break;case"updated":document.body.classList.contains("table-drag-active")||s(!0);const We=r.getElementByKey(ge);Ae.current=We;break}})})),[r]),g.useEffect(()=>{var We,_e,qe,$e,Ve,nt;if(!b.row&&!b.column)return;const fe=((_e=(We=ke.current)==null?void 0:We.closest)==null?void 0:_e.call(We,"table.dsd__theme__table"))||(($e=(qe=Ae.current)==null?void 0:qe.querySelector)==null?void 0:$e.call(qe,"table.dsd__theme__table"))||((nt=(Ve=Ae.current)==null?void 0:Ve.closest)==null?void 0:nt.call(Ve,"table.dsd__theme__table"));if(!fe)return;let ge=0;const pe=new ResizeObserver(()=>{cancelAnimationFrame(ge),ge=requestAnimationFrame(()=>{if(document.body.classList.contains("table-drag-active"))return;const Be=fe.getBoundingClientRect(),Ne=e.getBoundingClientRect(),Je=fe.closest(".dsd__theme__table-scrollable-wrapper"),Qe=Je==null?void 0:Je.getBoundingClientRect(),st=Qe?Math.min(Be.right,Qe.right):Be.right,gt=e.querySelector(".dsd__theme__tableAddRows"),ut=e.querySelector(".dsd__theme__tableAddColumns"),Ke=e.querySelector(".dsd__theme__tableAddCorner");if(gt){const ot=Qe?Qe.left-Ne.left:Be.left-Ne.left,ft=Qe?Math.min(Be.width,Qe.width):Be.width,dt=Qe?Qe.bottom:Be.bottom;gt.style.top=`${dt-Ne.y+6}px`,gt.style.left=`${ot}px`,gt.style.width=`${ft}px`}ut&&(ut.style.top=`${Be.top-Ne.y}px`,ut.style.left=`${st-Ne.left+6}px`,ut.style.height=`${Be.height}px`),Ke&&(Ke.style.top=`${Be.bottom-Ne.y+6}px`,Ke.style.left=`${st-Ne.left+6}px`)})});return pe.observe(fe),()=>{cancelAnimationFrame(ge),pe.disconnect()}},[b.row,b.column,e]);const Gt=fe=>{r.update(()=>{if(ke.current){const ge=p.$getNearestNodeFromDOMNode(ke.current);fe?(ge==null||ge.selectNext(),Da(),It()):(ge==null||ge.selectEnd(),zc(),It())}})},_t=20,V=60,de=g.useCallback((fe,ge)=>{var gt,ut;ge.preventDefault(),ge.stopPropagation(),w.current&&(clearTimeout(w.current),w.current=null),x(Ke=>({...Ke,row:fe==="row"||fe==="both"||Ke.row,column:fe==="column"||fe==="both"||Ke.column}));const pe=ge.clientX,We=ge.clientY;let _e=0,qe=0;const $e=2,Ve=2;let nt=$e,Be=Ve;const Ne=ke.current||Ae.current;if(Ne){const Ke=((gt=Ne.closest)==null?void 0:gt.call(Ne,"table"))||((ut=Ne.querySelector)==null?void 0:ut.call(Ne,"table"));if(Ke){nt=Ke.querySelectorAll("tr").length;const ot=Ke.querySelector("tr");Be=ot?ot.querySelectorAll("td, th").length:Ve}}const Je=Ke=>{var kt,St,Tt,en,Dt,rn;Ke.preventDefault(),Qe||(Qe=!0,w.current&&(clearTimeout(w.current),w.current=null),x({top:!1,bottom:!1,left:!1,right:!1,column:fe==="column"||fe==="both",row:fe==="row"||fe==="both",options:!1})),(kt=window.getSelection())==null||kt.removeAllRanges();const ot=Ke.clientX-pe,ft=Ke.clientY-We;let dt=ft,Ye=ot;if(fe==="both"){const Ft=Math.floor(ft/_t),Ht=Math.floor(ot/V),Vt=Math.abs(Ft)>=Math.abs(Ht)?Ft:Ht;dt=Vt*_t,Ye=Vt*V}if(fe==="row"||fe==="both"){const Ft=Math.floor(dt/_t);for(;_e<Ft;)try{r.update(()=>{if(ke.current){const Ht=p.$getNearestNodeFromDOMNode(ke.current);Ht==null||Ht.selectNext(),Da()}}),_e++}catch{break}for(;_e>Ft&&!(nt+_e<=$e);)try{r.update(()=>{if(ke.current){const Vt=p.$getNearestNodeFromDOMNode(ke.current);Vt==null||Vt.selectEnd()}yA()}),_e--}catch{break}}if(fe==="column"||fe==="both"){const Ft=Math.floor(Ye/V);for(;qe<Ft;)try{r.update(()=>{if(ke.current){const Vt=p.$getNearestNodeFromDOMNode(ke.current);Vt==null||Vt.selectEnd(),zc()}}),qe++;const Ht=(Tt=(St=ke.current)==null?void 0:St.closest)==null?void 0:Tt.call(St,".dsd__theme__table-scrollable-wrapper");Ht&&(Ht.scrollLeft=Ht.scrollWidth)}catch{break}for(;qe>Ft&&!(Be+qe<=Ve);)try{r.update(()=>{if(ke.current){const Vt=p.$getNearestNodeFromDOMNode(ke.current);Vt==null||Vt.selectEnd()}xA()}),qe--}catch{break}}const ht=((en=ke.current)!=null&&en.isConnected?ke.current:null)||Ae.current,nn=((Dt=ht==null?void 0:ht.closest)==null?void 0:Dt.call(ht,"table"))||((rn=ht==null?void 0:ht.querySelector)==null?void 0:rn.call(ht,"table"));if(nn){const Ft=nn.getBoundingClientRect();if(Ft.width<=0)return;const{y:Ht,left:Vt}=e.getBoundingClientRect(),rt=nn.closest(".dsd__theme__table-scrollable-wrapper"),Ct=rt==null?void 0:rt.getBoundingClientRect(),Jt=Ct?Math.min(Ft.right,Ct.right):Ft.right,Dn=Ct?Math.min(Ft.width,Ct.width):Ft.width,gr=Ct?Ct.left-Vt:Ft.left-Vt;u(tr=>({...tr,top:(Ct?Ct.bottom:Ft.bottom)-Ht+6,left:gr,width:Dn})),f(tr=>({...tr,top:Ft.top-Ht,left:Jt-Vt+6,height:Ft.height}))}};document.body.style.userSelect="none",document.body.classList.add("table-drag-active");let Qe=!1;const st=()=>{document.removeEventListener("mousemove",Je),document.removeEventListener("mouseup",st),document.body.style.cursor="",document.body.style.userSelect="",document.body.classList.remove("table-drag-active"),Qe||((fe==="row"||fe==="both")&&Gt(!0),(fe==="column"||fe==="both")&&Gt(!1)),k(Ke=>({...Ke,row:fe==="row"||fe==="both",column:fe==="column"||fe==="both"}))};document.body.style.cursor=fe==="row"?"row-resize":fe==="column"?"col-resize":"nwse-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",Je),document.addEventListener("mouseup",st)},[r,It]),he=window.matchMedia("(pointer: coarse)").matches;return a.jsxs(a.Fragment,{children:[Re&&a.jsx("div",{style:{position:"absolute",boxSizing:"border-box",top:Re.top,left:Re.left,width:Re.width,height:Re.height,border:"1.5px solid var(--mantine-color-blue-outline, #228be6)",pointerEvents:"none",zIndex:5},"data-testid":"table-multi-cell-border"}),a.jsx(v.Transition,{mounted:!!((Pe.current||Te)&&b.options&&!he),transition:"fade",duration:300,timingFunction:"ease",children:fe=>{var ge;return a.jsx("div",{className:"table-cell-action-button-container","data-testid":"table-cell-menu-button",style:{...fe,...F},onMouseDown:pe=>{oe&&pe.stopPropagation()},onMouseEnter:()=>W(!0),onMouseLeave:()=>{N||W(!1)},children:(Pe.current||Te)&&a.jsx(Af,{isMenuOpen:N,contextRef:ne,tableCellNode:Te||Pe.current,cellMerge:t,setIsMenuOpen:pe=>{j(pe),pe||W(!1)},tableDom:((ge=ke.current)==null?void 0:ge.closest("table.dsd__theme__table"))||Ae.current,menuContext:"cell",children:a.jsx("div",{ref:ne,style:{width:14,height:22,boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:U||N?4:0,backgroundColor:U||N?"var(--mantine-color-blue-light-color, #228be6)":"transparent",border:U||N?"1.5px solid var(--app-root-bg, #f1f5f9)":"none"},children:U||N?a.jsx(ue,{icon:yc,size:10,color:"var(--mantine-color-white, #fff)"}):a.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)"}})})})})}}),a.jsx(v.Transition,{mounted:!!(Pe.current&&b.options&&!he&&!oe),transition:"fade",duration:300,timingFunction:"ease",children:fe=>{var ge;return a.jsx("div",{className:"table-cell-action-button-container","data-testid":"table-row-button",style:{...fe,...E},onMouseEnter:()=>Z(!0),onMouseLeave:()=>{L||Z(!1)},children:Pe.current&&a.jsx(Af,{isMenuOpen:L,contextRef:ce,tableCellNode:Pe.current,cellMerge:t,setIsMenuOpen:pe=>{O(pe),pe||Z(!1)},tableDom:((ge=ke.current)==null?void 0:ge.closest("table.dsd__theme__table"))||Ae.current,menuContext:"row",children:a.jsx("div",{ref:ce,style:{width:14,height:22,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:B||L?4:0,backgroundColor:B||L?"var(--mantine-color-blue-light-color, #228be6)":"transparent",border:B||L?"1.5px solid var(--app-root-bg, #f1f5f9)":"none"},children:B||L?a.jsx(ue,{icon:yc,size:10,color:"var(--mantine-color-white, #fff)"}):a.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)"}})})})})}}),a.jsx(v.Transition,{mounted:!!(Pe.current&&b.options&&!he&&!oe),transition:"fade",duration:300,timingFunction:"ease",children:fe=>{var ge;return a.jsx("div",{className:"table-cell-action-button-container","data-testid":"table-column-button",style:{...fe,...P},onMouseEnter:()=>re(!0),onMouseLeave:()=>{T||re(!1)},children:Pe.current&&a.jsx(Af,{isMenuOpen:T,contextRef:ie,tableCellNode:Pe.current,cellMerge:t,setIsMenuOpen:pe=>{R(pe),pe||re(!1)},tableDom:((ge=ke.current)==null?void 0:ge.closest("table.dsd__theme__table"))||Ae.current,menuContext:"column",children:a.jsx("div",{ref:ie,style:{width:22,height:14,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:Q||T?4:0,backgroundColor:Q||T?"var(--mantine-color-blue-light-color, #228be6)":"transparent",border:Q||T?"1.5px solid var(--app-root-bg, #f1f5f9)":"none"},children:Q||T?a.jsx("span",{style:{transform:"rotate(90deg)",display:"flex"},children:a.jsx(ue,{icon:yc,size:10,color:"var(--mantine-color-white, #fff)"})}):a.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)"}})})})})}}),a.jsx(v.Transition,{mounted:b.row,transition:"fade",duration:150,timingFunction:"ease",children:fe=>a.jsx(v.Tooltip,{label:Ue("editor.table.menu.addRowBelow"),position:"bottom",children:a.jsx("button",{className:"dsd__theme__tableAddRows",style:{...fe,...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:ge=>de("row",ge),children:a.jsx(ue,{icon:nf,size:12,color:"var(--mantine-color-gray-light-color, #868e96)"})})})}),a.jsx(v.Transition,{mounted:b.column,transition:"fade",duration:300,timingFunction:"ease",children:fe=>a.jsx(v.Tooltip,{label:Ue("editor.table.menu.addColAfter"),position:"right",children:a.jsx("button",{className:"dsd__theme__tableAddColumns",style:{...fe,...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:ge=>de("column",ge),children:a.jsx(ue,{icon:nf,size:12,color:"var(--mantine-color-gray-light-color, #868e96)"})})})}),a.jsx(v.Transition,{mounted:b.row&&b.column,transition:"fade",duration:300,timingFunction:"ease",children:fe=>a.jsx(v.Tooltip,{label:Ue("editor.table.menu.addRowAndCol"),position:"bottom",children:a.jsx("button",{className:"dsd__theme__tableAddCorner",style:{...fe,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:ge=>de("both",ge),children:a.jsx(ue,{icon:nf,size:12,color:"var(--mantine-color-gray-light-color, #868e96)"})})})})]})}function GR(e,n,t){const r=e.target;let o="";const s=document.querySelector("div.new-paragraph");if(n.read(()=>{const l=p.$getRoot().getLastChild();xt(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 u=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 A=document.elementFromPoint(e.x-40,e.y),y=document.elementFromPoint(e.x,e.y-40);if(A||y){const b=A==null?void 0:A.closest(l),x=y==null?void 0:y.closest(l);b&&r.className!=="dsd__theme__layoutItem"&&(u=b,d="right"),x&&(u=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"),m=!(u||f||h||r.closest("div.TableCellResizer__resizer"));return m&&!t&&(s==null?void 0:s.style.visibility)==="hidden"&&(s.style.visibility=""),{isOutside:m,tableDOMNode:u,edgeDirection:d}}else return{isOutside:!0,tableDOMNode:null,edgeDirection:null}}function VR({anchorElem:e=document.body,cellMerge:n=!1}){return Ir.createPortal(a.jsx(ZR,{isShowTableOptions:!1,cellMerge:n,anchorElem:e}),e)}const tu=624,Bb=9;function qR(e,n,t){return e||`${t("editor.heading.name")} ${n.split("")[1]}`}function QR(e){var t;const n=(t=e==null?void 0:e.getClientRects()[0])==null?void 0:t.y;return n>=tu&&n<=tu+Bb}function ic(e){var t;return((t=e==null?void 0:e.getClientRects()[0])==null?void 0:t.y)<tu}function bf(e){var t;return((t=e==null?void 0:e.getClientRects()[0])==null?void 0:t.y)>=tu+Bb}function JR({tableOfContents:e}){const[n,t]=g.useState(""),r=g.useRef(0),[o]=tt.useLexicalComposerContext(),{t:s}=He.useTranslation(),[l,u]=g.useState(!1);function d(f,h){o.getEditorState().read(()=>{const m=o.getElementByKey(f);m!==null&&(m.classList.add("ScrollToBlock"),m.scrollIntoView({behavior:"smooth",block:"center"}),t(f),r.current=h,setTimeout(()=>{m.classList.remove("ScrollToBlock")},2e3))})}return g.useEffect(()=>{function f(){if(e.length>0&&r.current<e.length-1){let y=o.getElementByKey(e[r.current][0]);if(y!==null){if(bf(y)){for(;y!==null&&bf(y)&&r.current>0;){const x=o.getElementByKey(e[r.current-1][0]);x!==null&&(ic(x)||bf(x))&&r.current--,y=x}const b=e[r.current][0];t(b)}else if(ic(y)){for(;y!==null&&ic(y)&&r.current<e.length-1;){const x=o.getElementByKey(e[r.current+1][0]);x!==null&&(QR(x)||ic(x))&&r.current++,y=x}const b=e[r.current][0];t(b)}}}else r.current=0}let h;function m(y,b){clearTimeout(h),h=setTimeout(y,b)}function A(){m(f,10)}return document.addEventListener("scroll",A),()=>document.removeEventListener("scroll",A)},[e,o]),e.length<2?a.jsx(a.Fragment,{}):a.jsxs(v.Popover,{opened:l,onClose:()=>u(!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:[a.jsx(v.Popover.Target,{children:a.jsx(v.Box,{className:"table-of-contents-container",onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:a.jsx(v.Box,{className:"table-of-contents",children:a.jsx(v.Stack,{gap:12,style:{alignItems:"flex-end",transition:"all 0.7s"},children:e.map(([f,,h],m)=>a.jsx(v.Box,{onClick:()=>d(f,m),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))})})})}),a.jsxs(v.Popover.Dropdown,{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:{boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",overflowY:"auto",maxHeight:"400px"},children:[a.jsx(v.Text,{size:"xs",children:s("editor.content")}),e.map(([f,h,m],A)=>a.jsx(v.Text,{className:"table-of-contents-item",lineClamp:2,onClick:()=>d(f,A),style:{fontSize:m==="h1"?"1.25rem":m==="h2"?"1rem":"0.875rem",marginLeft:m==="h1"?"0.25rem":m==="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:qR(h,m,s)},f))]})]})}function fh(){return a.jsx(Q9.TableOfContentsPlugin,{children:e=>a.jsx(JR,{tableOfContents:e})})}function XR({children:e}){const[n,t]=g.useState({cellEditorConfig:null,cellEditorPlugins:null});return a.jsx(DR.Provider,{value:g.useMemo(()=>({cellEditorConfig:n.cellEditorConfig,cellEditorPlugins:n.cellEditorPlugins,set:(r,o)=>{t({cellEditorConfig:r,cellEditorPlugins:o})}}),[n.cellEditorConfig,n.cellEditorPlugins]),children:e})}function $R({hasCellMerge:e,hasCellBackgroundColor:n}){return PR({hasCellMerge:e,hasCellBackgroundColor:n,hasTabHandler:!0,hasHorizontalScroll:!0}),null}function ej(e){const{floatingAnchorElem:n}=e,{disable:t}=g.useContext(at),{settings:{tableCellMerge:r,showTableOfContents:o,tableCellBackgroundColor:s}}=b1();return BR(),a.jsxs(a.Fragment,{children:[a.jsx($R,{hasCellMerge:r,hasCellBackgroundColor:s}),!t&&a.jsx(zR,{}),n&&a.jsxs(a.Fragment,{children:[!t&&a.jsx(VR,{anchorElem:n,cellMerge:!0}),a.jsx("div",{children:o&&a.jsx(fh,{})})]})]})}const tj=[{name:"alert",color:"rgb(250, 82, 82)",icon:a.jsx(xe.IconExclamationCircle,{size:16}),emoji:"❗"},{name:"success",color:"rgb(64, 192, 87)",icon:a.jsx(xe.IconCheck,{size:16}),emoji:"✅"},{name:"warning",color:"rgb(250, 176, 5)",icon:a.jsx(xe.IconAlertTriangle,{size:16}),emoji:"⚠️"}],nj=e=>e.mode==="callout";function rj({anchorElem:e}){const[n]=tt.useLexicalComposerContext(),{t}=He.useTranslation(),{disable:r}=g.useContext(at),[o,s]=g.useState(!1),[l,u]=g.useState(null),[d,f]=g.useState({right:"0",top:"0"}),h=g.useRef(null),m=o?"auto":"none",A=Pi(b=>{const{lexicalDOMNode:x,isOutside:w}=Ou(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 L=p.$getNearestNodeFromDOMNode(x);ao(L)&&(k=L,u(L.__key))}),k){const{y:L,right:O,left:T}=e.getBoundingClientRect(),{y:R,right:E,left:M}=x.getBoundingClientRect();s(!0),h.current&&(h.current.style.visibility="visible");const P=R-L,I=O-E,F=M-T;f(()=>({right:`${I}px`,left:`${F}px`,top:`${P}px`}))}},50,500);if(g.useEffect(()=>ye.mergeRegister(n.registerMutationListener(To,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]),g.useEffect(()=>(document.addEventListener("mousemove",A),()=>{s(!1),A.cancel(),document.removeEventListener("mousemove",A)}),[A]),r)return null;const y=b=>{n.update(()=>{const x=p.$getNodeByKey(l);ao(x)&&n.update(()=>{const w=nj(b);x.setType(w?b.meta.type:void 0),x.setBackgroundColor(b.value),s(!1)})})};return a.jsx("div",{className:`action-menu-container callout-action ${o?"visible":""}`,ref:h,style:{right:d.right,top:d.top,pointerEvents:m},children:o&&a.jsx(Bt.NewColorPicker,{data:{callout:{label:t("editor.colors.theme"),filled:!0,palette:tj.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:a.jsx(v.ActionIcon,{variant:"default","aria-label":"Settings",children:a.jsx(Mn,{name:"palette",style:{cursor:"pointer"}})}),menuProps:{trigger:"click",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},value:{background:"",callout:""}})})}function oj({anchorElem:e=document.body}){return Ir.createPortal(a.jsx(rj,{anchorElem:e}),(e==null?void 0:e.parentElement)||document.body)}function sj({onClose:e,children:n,title:t,size:r}){return a.jsx(v.Modal,{className:"doc-space-editor-wrapper",size:r,centered:!0,opened:!0,onClose:e,title:t,zIndex:999,children:n})}function I1(e){const[n,t]=g.useState(null),r=g.useCallback(()=>{t(null)},[]),o=g.useMemo(()=>{if(n===null)return null;const{title:l,content:u,closeOnClickOutside:d}=n;return a.jsx(sj,{onClose:r,title:l,size:"md",closeOnClickOutside:d,children:u})},[n,r]),s=g.useCallback((l,u,d=!1)=>{t({closeOnClickOutside:d,content:u(r),title:l})},[r]);return[o,s]}function n2({children:e,onClick:n,"data-test-id":t,title:r,className:o,small:s,...l}){return a.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*_b(e){let n=!1;for(;!n;){const t=await e.read(),{value:r}=t;r!==void 0&&(yield r),n=t.done}}async function ij(e){const n=[];for await(const r of _b(e))for(let o=0;o<r.length;o+=32768)n.push(String.fromCharCode(...r.subarray(o,o+32768)));return n.join("")}async function aj(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()),ij(n.readable.getReader())]);return`#doc=${btoa(r).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}`}async function lj(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()),u=[];for await(const d of _b(t.readable.pipeThrough(new TextDecoderStream).getReader()))u.push(d);return await l,JSON.parse(u.join(""))}const cj=p.createCommand("SPEECH_TO_TEXT_COMMAND"),uj="SpeechRecognition"in window||"webkitSpeechRecognition"in window;async function dj(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 fj(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 hj(e){const n=new URL(window.location.toString());n.hash=await aj(e);const t=n.toString();window.history.replaceState({},"",t),await window.navigator.clipboard.writeText(t)}function pj({isRichText:e,shouldPreserveNewLinesInMarkdown:n}){const[t]=tt.useLexicalComposerContext(),[r,o]=g.useState(()=>t.isEditable()),[s,l]=g.useState(!1),[u,d]=g.useState(!1),[f,h]=g.useState(!0),[m,A]=I1(),y=Au(),b=!1;g.useEffect(()=>{w0.isCollab||lj(window.location.hash).then(w=>{w&&w.source==="Playground"&&(t.setEditorState(Yl.editorStateFromSerializedDocument(t,w)),t.dispatchCommand(p.CLEAR_HISTORY_COMMAND,void 0))})},[t]),g.useEffect(()=>ye.mergeRegister(t.registerEditableListener(w=>{o(w)}),t.registerCommand(J9.CONNECTED_COMMAND,w=>(d(w),!1),p.COMMAND_PRIORITY_EDITOR)),[t]),g.useEffect(()=>t.registerUpdateListener(({dirtyElements:w,prevEditorState:k,tags:L})=>{!r&&w.size>0&&!L.has(p.HISTORIC_TAG)&&!L.has(p.COLLABORATION_TAG)&&fj(t),t.getEditorState().read(()=>{const T=p.$getRoot().getChildren();if(T.length>1)h(!1);else if(p.$isParagraphNode(T[0])){const R=T[0].getChildren();h(R.length===0)}else h(!1)})}),[t,r]);const x=g.useCallback(()=>{t.update(()=>{var O;const w=p.$getRoot(),k=w.getFirstChild();let L=null;if(Kt.$isCodeNode(k))L=k;else if(k instanceof p.ElementNode){const R=(((O=k.getChildren)==null?void 0:O.call(k))??[]).find(E=>Kt.$isCodeNode(E));R&&Kt.$isCodeNode(R)&&(L=R)}if(L&&L.getLanguage()==="markdown")to.$convertFromMarkdownString(L.getTextContent(),Fa,void 0,n);else{for(const E of w.getChildren())if(rs(E)){for(const M of E.getChildren())Kt.$isCodeNode(M)&&E.insertBefore(M);E.remove()}const T=to.$convertToMarkdownString(Fa,void 0,n),R=Kt.$createCodeNode("markdown");R.append(p.$createTextNode(T)),w.clear().append(R),T.length===0&&R.select()}})},[t,n]);return a.jsxs("div",{className:"actions",children:[uj&&a.jsx("button",{onClick:()=>{t.dispatchCommand(cj,!s),l(!s)},className:"action-button action-button-mic "+(s?"active":""),title:"Speech To Text","aria-label":`${s?"Enable":"Disable"} speech to text`,children:a.jsx(ue,{icon:m8,size:16})}),a.jsx("button",{className:"action-button import",onClick:()=>Yl.importFile(t),title:"Import","aria-label":"Import editor state from JSON",children:a.jsx(ue,{icon:b8,size:16})}),a.jsx("button",{className:"action-button export",onClick:()=>Yl.exportFile(t,{fileName:`Playground ${new Date().toISOString()}`,source:"Playground"}),title:"Export","aria-label":"Export editor state to JSON",children:a.jsx(ue,{icon:y8,size:16})}),a.jsx("button",{className:"action-button share",disabled:w0.isCollab,onClick:()=>hj(Yl.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:a.jsx(ue,{icon:X8,size:16})}),a.jsx("button",{className:"action-button clear",disabled:f,onClick:()=>{A("Clear editor",w=>a.jsx(gj,{editor:t,onClose:w}))},title:"Clear","aria-label":"Clear editor contents",children:a.jsx(ue,{icon:ok,size:16})}),a.jsx("button",{className:`action-button ${r?"lock":"unlock"}`,onClick:()=>{r&&dj(t),t.setEditable(!t.isEditable())},title:"Read-Only Mode","aria-label":`${r?"Lock":"Unlock"} read-only mode`,children:a.jsx(ue,{icon:r?M8:T8,size:16})}),a.jsx("button",{className:"action-button",onClick:x,title:"Convert From Markdown","aria-label":"Convert from markdown",children:a.jsx(ue,{icon:O8,size:16})}),b,m]})}function gj({editor:e,onClose:n}){return a.jsxs(a.Fragment,{children:["Are you sure you want to clear the editor?",a.jsxs("div",{className:"Modal__content",children:[a.jsx(n2,{onClick:()=>{e.dispatchCommand(p.CLEAR_EDITOR_COMMAND,void 0),e.focus(),n()},children:"Clear"})," ",a.jsx(n2,{onClick:()=>{e.focus(),n()},children:"Cancel"})]})]})}const r2=(e,n,t)=>{if(!e)return null;let r=null;return t.read(()=>{const o=p.$getNearestNodeFromDOMNode(e);r=o&&ye.$getNearestNodeOfType(o,n)}),r},mj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAACWCAYAAAAff3ceAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAGPRSURBVHgB7b1LyG1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foySbIiGPORFjY2NjER1ZsrKyn1JZWUz4mbKyn9pmZnsvZuPIzOmdcTLMzBGudEafIREWNiaZ8J2I06IIjRHUiI8fGmZbnqzJpspmbKy2GuYiPyTscx2INER246n4xERERERERERERERERH7RGmbKZmZ7M9j3H1LGxsbHuzM7fgzMzMz5iIixsYjTLNzM2Usz8iIiOhERERG2dvZ+jZWUzMzNlZWUzs0eZ6keBnbM7ZZnQRERsiPuz9GZmfAREbPaRGiIiLGxsbGwiNMzNlM2UzPVmZmfwWZmZmZmZ06erP2I8LMzM/wrMz/AAZERERER4yOyz+E2VlMzMzMzP3Ieg6CxmfwCIiIiI0d2WymZmeiaNcd2fUREbI6ER8OIsWPC+oufqzMzPxZmZ6ERERGyPMRcQ/IiIiIiIiIjZFjEWNjERER1IiIiPzGfERYxpn+HZ+LMzM/hY2NjY2P8T//2Q==",pn={header:(e,n)=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:a.jsxs(v.Group,{p:8,gap:0,className:"hintBoard",children:[a.jsx(v.Title,{order:n,mb:"sm",mt:12-(n-1)*4,h:40-(n-1)*4,children:e("editor.heading.name")+` H${n}`}),a.jsx(v.Text,{size:"sm",h:80,lh:"21px",children:e("editor.menu.heading.hintShowCase",{projectName:"Layers"})})]})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e(`editor.menu.heading.h${n}.hintDescription`)})]}),ol:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:a.jsx(v.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:a.jsxs(v.List,{type:"ordered",mt:2,children:[a.jsx(v.List.Item,{fz:"sm",children:e("editor.menu.lists.numberList.hint.firstItem")}),a.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondItem")}),a.jsxs(v.List,{pl:18,listStyleType:"upper-alpha",children:[a.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubItem")}),a.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubItem")}),a.jsxs(v.List,{pl:22,withPadding:!0,listStyleType:"lower-roman",children:[a.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubSubItem")}),a.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.lists.numberList.hint.description")})]}),ul:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:a.jsx(v.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:a.jsxs(v.List,{type:"unordered",mt:2,children:[a.jsx(v.List.Item,{fz:"sm",children:e("editor.menu.lists.numberList.hint.firstItem")}),a.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondItem")}),a.jsxs(v.List,{pl:18,listStyleType:"circle",children:[a.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubItem")}),a.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubItem")}),a.jsxs(v.List,{pl:22,withPadding:!0,listStyleType:"square",children:[a.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubSubItem")}),a.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.lists.bulletList.hint.description")})]}),checkList:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:a.jsx(v.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",pt:"sm",children:a.jsxs(v.Checkbox.Group,{defaultValue:["indeterminate","checked"],mt:4,children:[a.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,pb:3,label:e("editor.menu.lists.checkList.hint.indeterminate")}),a.jsxs(v.Checkbox.Group,{pl:18,defaultValue:["indeterminate"],children:[a.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:e("editor.menu.lists.checkList.hint.unchecked")}),a.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,py:3,label:e("editor.menu.lists.checkList.hint.indeterminate")}),a.jsxs(v.Checkbox.Group,{pl:18,defaultValue:["check"],children:[a.jsx(v.Checkbox,{value:"check",size:"xs",radius:"sm",py:3,label:e("editor.menu.lists.checkList.hint.checked")}),a.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:e("editor.menu.lists.checkList.hint.unchecked")})]})]}),a.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"checked",pt:3,label:e("editor.menu.lists.checkList.hint.checked")})]})})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.lists.checkList.hint.description")})]}),type:(e,n,t)=>r=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:a.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:[a.jsx(v.Box,{children:a.jsx(v.Text,{w:26,mr:"sm",ta:"center",children:e})}),a.jsx(v.Text,{size:"sm",lh:"21px",children:r("editor.menu.callout.default.hint.body",{projectName:"Layers"})})]})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:r("editor.menu.callout.warning.hint.description")})]}),paragraph:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:a.jsx(v.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:a.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.paragraph.hint.text",{projectName:"Layers"})})})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.paragraph.hint.description")})]}),quote:e=>a.jsxs(v.Group,{gap:0,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{p:"sm",gap:0,children:a.jsx(v.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:a.jsx(v.Group,{gap:0,className:"quote",children:a.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.quote.hint.text",{projectName:"Layers"})})})})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.quote.hint.description")})]}),collapse:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:a.jsx(v.Group,{p:8,pt:"sm",gap:0,w:"100%",h:150,className:"hintBoard",children:a.jsxs(v.List,{type:"unordered",children:[a.jsx(v.List.Item,{icon:a.jsx(xe.IconTriangleFilled,{size:8,className:"rotate-90deg"}),fz:"sm",children:e("editor.menu.main.collapse.hint.firstItemEmpty")}),a.jsx(v.List.Item,{icon:a.jsx(xe.IconTriangleFilled,{size:8,className:"rotate-180deg"}),fz:"sm",mt:2,children:e("editor.menu.main.collapse.hint.secondItem")}),a.jsxs(v.List,{pl:18,listStyleType:"circle",children:[a.jsx(v.List.Item,{fz:"sm",mt:3,icon:a.jsx(xe.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:e("editor.menu.main.collapse.hint.firstSubItemEmpty")}),a.jsx(v.List.Item,{fz:"sm",mt:2,icon:a.jsx(xe.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:e("editor.menu.main.collapse.hint.secondSubItem")}),a.jsxs(v.List,{pl:22,withPadding:!0,listStyleType:"square",children:[a.jsx(v.List.Item,{fz:"sm",mt:2,icon:a.jsx(xe.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:e("editor.menu.main.collapse.hint.firstSubSubItemEmpty")}),a.jsx(v.List.Item,{fz:"sm",mt:2,icon:a.jsx(xe.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:e("editor.menu.main.collapse.hint.secondSubSubItem")})]})]})]})})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.collapse.hint.description")})]}),divider:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:a.jsx(v.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:a.jsxs(v.Box,{children:[a.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.horizontal-rule.hint.topText")}),a.jsx(v.Divider,{my:"sm"}),a.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.horizontal-rule.hint.bottomText")})]})})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.horizontal-rule.hint.description")})]}),table:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:a.jsx(v.Group,{gap:0,p:8,pt:"sm",className:"hintBoard",w:276,children:a.jsxs(v.Table,{p:8,withTableBorder:!0,withRowBorders:!0,withColumnBorders:!0,h:150,children:[a.jsx(v.Table.Thead,{children:a.jsxs(v.Table.Tr,{h:58,children:[a.jsxs(v.Table.Th,{fz:"sm",fw:400,miw:177,style:{position:"relative"},children:[a.jsx(v.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:5,top:5},children:a.jsx(Mn,{stroke:1,size:10,name:"chevron-down"})}),a.jsx(v.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{left:-7.5,bottom:-7},children:a.jsx(Mn,{stroke:1,size:10,name:"plus"})}),a.jsx(v.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:-7.5,top:-7},children:a.jsx(Mn,{stroke:1,size:10,name:"plus"})}),e("editor.menu.main.table.hint.firstRow")]}),a.jsx(v.Table.Th,{w:177,fz:"sm",fw:400})]})}),a.jsxs(v.Table.Tbody,{children:[a.jsxs(v.Table.Tr,{h:47,children:[a.jsx(v.Table.Td,{}),a.jsx(v.Table.Td,{})]}),a.jsxs(v.Table.Tr,{children:[a.jsxs(v.Table.Td,{miw:177,children:[" ",a.jsx(v.Checkbox,{mt:-19,radius:"sm",size:"xs",value:"checked",defaultChecked:!0,indeterminate:!0,label:e("editor.menu.lists.checkList.hint.indeterminate")})]}),a.jsx(v.Table.Td,{miw:177,children:a.jsx(v.Text,{fz:"sm",fw:400,children:e("editor.menu.main.table.hint.secondRow")})})]})]})]})})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.table.hint.description")})]}),grid:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:a.jsx(v.Group,{gap:0,p:8,className:"hintBoard",w:276,children:a.jsxs(v.Flex,{align:"flex-start",gap:"sm",children:[a.jsx(v.Text,{size:"sm",lh:"21px",miw:180,children:e("editor.menu.main.grid.hint.firstColumn")}),a.jsx(v.Text,{size:"sm",lh:"21px",miw:180,children:e("editor.menu.main.grid.hint.secondColumn",{projectName:"Layers"})})]})})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.grid.hint.description")})]}),code:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:a.jsx(v.Group,{px:8,gap:0,className:"hintBoard",children:a.jsx(v.Image,{style:{flex:1},radius:"sm",fit:"cover",src:Cj,w:"110%",h:"110%"})})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.code.hint.description")})]}),image:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:a.jsx(v.Image,{style:{border:"1px solid #E9ECEF",flex:1},radius:"sm",fit:"cover",src:yj,w:"100%",h:"100%"})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.photo.hint.description")})]}),video:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsxs(v.Group,{px:"sm",pt:"sm",gap:0,children:[a.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:xj,w:"100%",h:"100%"}),a.jsx(v.Box,{w:274,style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},children:a.jsx(xe.IconPlayerPlayFilled,{size:32})})]}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.video.hint.description")})]}),audio:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:a.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:mj,w:"100%",h:"100%"})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.audio.hint.description")})]}),file:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:a.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:Aj,w:"100%",h:"100%"})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.file.hint.description")})]}),excalidraw:e=>a.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[a.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:a.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:bj,w:"100%",h:"100%"})}),a.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.excalidraw.hint.description")})]})};function Wr(e,n,t){return t.filter(r=>e(r)).map(r=>n(r))}const vj=["editor.menu.lists.bulletList.keywords.bulletsAlt1","editor.menu.lists.bulletList.keywords.bulletsAlt2"],wj=["editor.menu.main.quote.keywords.quote","editor.menu.main.quote.keywords.mark","editor.menu.main.quote.keywords.citation"],kj=["editor.menu.main.collapse.keywords.collapsibleList","editor.menu.main.collapse.keywords.expandList","editor.menu.main.collapse.keywords.hideList","editor.menu.main.collapse.keywords.turnList"],Sj=["editor.menu.main.horizontalRule.keywords.divider","editor.menu.main.horizontalRule.keywords.horizontalLine","editor.menu.main.horizontalRule.keywords.border"],Ej=["editor.menu.main.table.keywords.table"],Mj=["editor.menu.main.grid.keywords.net","editor.menu.main.grid.keywords.grid","editor.menu.main.grid.keywords.columns"],Tj=["editor.menu.main.code.keywords.code","editor.menu.main.code.keywords.snippet"],Lj=["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"],Nj=["editor.menu.media.form.keywords"],Rj=["editor.menu.media.video.keywords.video"],jj=["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"],Ij=["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"],o2=(e,n,t)=>{const r=u=>t?Wr(t,n,u):[],o=r(vj),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)},vs=(e,n,t)=>{const r=t?Wr(t,n,wj):[],o=t?Wr(t,n,kj):[],s=t?Wr(t,n,Sj):[],l=t?Wr(t,n,Ej):[],u=t?Wr(t,n,Mj):[],d=t?Wr(t,n,Tj):[];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(u);case"code":return["javascript","python","js","codeblock","code","snippet"].concat(d)}},ac=(e,n,t)=>{const r=t?Wr(t,n,Lj):[],o=t?Wr(t,n,Nj):[],s=t?Wr(t,n,Rj):[];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)}},s2=(e,n,t)=>{const r=l=>t?Wr(t,n,l):l.map(u=>n(u)).filter((u,d)=>u!==l[d]),o=r(jj),s=r(Ij);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)}},Oj=[{type:"number",command:xu,name:"editor.menu.lists.numberList.name",iconName:"number",hint:pn.ol,description:"editor.menu.lists.numberList.subtitle"},{type:"bullet",command:e1,name:"editor.menu.lists.bulletList.name",iconName:"bullet",hint:pn.ul,description:"editor.menu.lists.bulletList.subtitle"},{type:"check",command:t1,name:"editor.menu.lists.checkList.name",iconName:"check",hint:pn.checkList,description:"editor.menu.lists.checkList.subtitle"}],Dj=[{type:"default",command:"default",name:"editor.menu.callout.default.name",iconName:"defaultOff",hint:pn.type("💫","","default"),description:"editor.menu.callout.default.subtitle"},{type:"alert",command:"alert",name:"editor.menu.callout.alert.name",iconName:"alert",hint:pn.type("❗","","alert"),description:"editor.menu.callout.alert.subtitle"},{type:"success",command:"success",name:"editor.menu.callout.success.name",iconName:"success",hint:pn.type("✅","","success"),description:"editor.menu.callout.success.subtitle"},{type:"warning",command:"warning",name:"editor.menu.callout.warning.name",iconName:"warning",hint:pn.type("⚠️","","warning"),description:"editor.menu.callout.warning.subtitle"}],Pj=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}=Ai(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 Bj(e){return e?"active dropdown-item-active":""}const Fb={flip:!0,size:{padding:8,apply({availableHeight:e,elements:n}){requestAnimationFrame(()=>{Object.assign(n.floating.style,{maxHeight:`${e>=425?425:e}px`})})}}};function _j(e,n){return e==="swagger"?!0:n}function yf(e,n){e.update(()=>{const t=p.$getSelection();t&&(p.$isNodeSelection(t)&&wu(t),ln.$setBlocksType(p.$getSelection(),n))})}const i2=["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 Fj(e){const n=i2.length,t=r=>{const o=i2.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 Wb({editor:e,isToolbar:n,excludeNodes:t,t:r,exists:o,plugins:s,onTrack:l}){const d=Pj(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),m={1:zh,2:Uh,3:Kh,4:pa},A=()=>[1,2,3,4].map(I=>({parentKey:"heading",name:`${r("editor.heading.name")} ${I}`,description:d[I]||"Добавите заголовок",hint:pn.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:a.jsx(ue,{icon:m[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,()=>{yf(e,()=>cn.$createHeadingNode(`h${I}`))},n)}})),y={number:Hh,bullet:Oc,check:_h},b=()=>Oj.map(({type:I,command:F,hint:_,description:N,name:j})=>({parentKey:"list",name:r(j),description:r(N),icon:a.jsx(ue,{icon:y[I]||Oc,size:16}),keywords:[`${o2(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:a.jsx(ue,{icon:du,size:16}),keywords:[`${vs("paragraph",r,o)}`],key:"paragraph","data-test-id":"block-type-paragraph",hint:pn.paragraph(r),hide:t.paragraph||!n,onSelect:()=>$t(e,()=>{yf(e,()=>p.$createParagraphNode())},n)},{parentKey:"main",name:r("editor.menu.main.quote.name"),description:r("editor.menu.main.quote.subtitle"),icon:a.jsx(ue,{icon:Gh,size:16}),keywords:[`${vs("quote",r,o)}`],key:"quote",hint:pn.quote(r),hide:t.quote,"data-test-id":"block-type-quote",onSelect:()=>{l==null||l("block_quote_created"),$t(e,()=>{yf(e,()=>cn.$createQuoteNode())},n)}},{parentKey:"main",name:r("editor.menu.main.collapse.name"),description:r("editor.menu.main.collapse.subtitle"),icon:a.jsx(ue,{icon:U8,size:16}),keywords:[`${vs("collapse",r,o)}`],key:"caret-right",hint:pn.collapse(r),hide:n||t["caret-right"],"data-test-id":"block-type-collapse",onSelect:()=>{l==null||l("block_collapse_created"),$t(e,()=>{e.dispatchCommand(BA,void 0)},n)}},{parentKey:"main",name:r("editor.menu.main.horizontal-rule.name"),description:r("editor.menu.main.horizontal-rule.subtitle"),icon:a.jsx(ue,{icon:I8,size:16}),keywords:[`${vs("horizontal-rule",r,o)}`],hint:pn.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(Mr(F)){const _=Ms.$createHorizontalRuleNode(),N=I==null?void 0:I.replace(_);N==null||N.insertAfter(p.$createParagraphNode())}else e.dispatchCommand(Ms.INSERT_HORIZONTAL_RULE_COMMAND,void 0);!(I!=null&&I.getTextContent())&&!cs(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:a.jsx(ue,{icon:Pf,size:16}),keywords:[`${vs("table",r,o)}`],key:"table",hint:pn.table(r),hide:n||t.table,"data-test-id":"block-type-table",onSelect:()=>{l==null||l("block_table_created"),$t(e,()=>{e.dispatchCommand(vu,{columns:"2",includeHeaders:!1,rows:"2"})},n)}},{parentKey:"main",name:r("editor.menu.main.grid.name"),description:r("editor.menu.main.grid.subtitle"),icon:a.jsx(ue,{icon:z8,size:16}),keywords:[`${vs("grid",r,o)}`],hide:n||t.grid,hint:pn.grid(r),key:"grid","data-test-id":"block-type-grid",onSelect:()=>{l==null||l("block_layout_used"),$t(e,()=>{e.dispatchCommand(j1,d1)},n)}},{parentKey:"main",name:r("editor.menu.main.code.name"),description:r("editor.menu.main.code.subtitle"),icon:a.jsx(ue,{icon:Na,size:16}),keywords:[`${vs("code",r,o)}`],key:"code",hint:pn.code(r),hide:t.code,"data-test-id":"block-type-code",onSelect:()=>{l==null||l("block_code_created"),$t(e,()=>{DN(e)},n)}}],w={default:Bf,alert:Bh,success:E8,warning:C8},k=()=>Dj.map(({type:I,command:F,hint:_,description:N,name:j})=>({parentKey:"callout",name:r(j),description:r(N),icon:a.jsx(ue,{icon:w[I]||Bf,size:16}),keywords:[`${o2(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(pu,F)},n)}})),L=()=>{const I=A(),F=b(),_=x(),N=k(),j={parentKey:"text",name:r("editor.menu.other.equation.name"),description:r("editor.menu.other.equation.subtitle"),icon:a.jsx(ue,{icon:La,size:16}),keywords:s2("equation",r,o)||[],key:"equation",hide:n||t.equation,onSelect:()=>{$t(e,()=>{e.dispatchCommand(Ra,void 0)},n)}},U=B=>B==="equation"?j:I.find(Z=>Z.key===B)||F.find(Z=>Z.key===B)||_.find(Z=>Z.key===B)||N.find(Z=>Z.key===B);return["1","caret-right","2","bullet","3","number","4","check","quote","equation","default","alert","success","warning","paragraph"].map(B=>U(B)).filter(B=>!!B&&!B.hide).map(B=>({...B,parentKey:"text"}))},O=()=>[{parentKey:"inline",name:r("editor.menu.other.inlinePageLink.name"),description:r("editor.menu.other.inlinePageLink.subtitle"),icon:a.jsx(ue,{icon:Ta,size:16}),keywords:["inline","page","page link"],key:"inlinePageLink",hide:n||t.inlinePageLink,onSelect:()=>{$t(e,()=>{e.dispatchCommand(uh,"inline")},n)}},{parentKey:"inline",name:r("editor.menu.other.inlineEquation.name"),description:r("editor.menu.other.inlineEquation.subtitle"),icon:a.jsx(ue,{icon:La,size:16}),keywords:s2("equation-inline",r,o)||[],key:"equation-inline",hide:n||t["equation-inline"],onSelect:()=>{$t(e,()=>{e.dispatchCommand(Ra,"inline")},n)}}].filter(F=>!F.hide),T=()=>{const I=x();return["horizontal-rule","table","grid","code"].map(_=>I.find(N=>N.key===_)).filter(_=>_!==void 0&&!_.hide).map(_=>({..._,parentKey:"advanced"}))},R=()=>{const I=[{parentKey:"media",name:r("editor.menu.media.photo.name"),description:r("editor.menu.media.photo.subtitle"),icon:a.jsx(ue,{icon:OC,size:16}),keywords:[`${ac("photo",r,o)}`],hide:n||t.photo,hint:pn.image(r),key:"photo",onSelect:()=>{l==null||l("block_image_added"),$t(e,()=>{e.dispatchCommand(A1,{altText:"new-image",src:"",create:!0})},n)}},{parentKey:"media",name:r("editor.menu.media.audio.name"),description:r("editor.menu.media.audio.subtitle"),hint:pn.audio(r),keywords:[`${ac("audio",r,o)}`],icon:a.jsx(ue,{icon:Y8,size:16}),key:"audio",hide:n||t.audio,onSelect:()=>{l==null||l("media_audio_added"),$t(e,()=>{e.dispatchCommand(kc,"")},n)}},{parentKey:"media",name:r("editor.menu.media.file.name"),description:r("editor.menu.media.file.subtitle"),hint:pn.file(r),keywords:[`${ac("file",r,o)}`],icon:a.jsx(ue,{icon:wm,size:16}),key:"file",hide:n||t.file,onSelect:()=>{l==null||l("media_file_added"),$t(e,()=>{e.dispatchCommand(eh,"")},n)}},{parentKey:"media",name:r("editor.menu.media.excalidraw.name"),description:r("editor.menu.media.excalidraw.subtitle"),hint:pn.excalidraw(r),keywords:[`${ac("excalidraw",r,o)}`,"media"],icon:a.jsx(ue,{icon:G8,size:16}),key:"excalidraw",hide:n||t.excalidraw,onSelect:()=>{t.excalidraw||Promise.resolve().then(()=>require("./layers.C4P7Q4ju.js")).then(({INSERT_EXCALIDRAW_COMMAND:_})=>{$t(e,()=>{e.dispatchCommand(_,void 0)},n)})}}],F=(s==null?void 0:s.filter(_=>{var N;return((N=_.slashMenu)==null?void 0:N.parentKey)==="media"}).map(_=>{const N=_.key,j=N in pn?pn[N](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:a.jsx(ue,{icon:tk,size:16}),keywords:["emoji","smile"],key:"emoji",hide:n||t.emoji,onSelect:()=>{e.focus(),e.dispatchCommand(tA,void 0)}},{parentKey:"other",name:r("editor.menu.other.pageLink.name"),description:r("editor.menu.other.pageLink.subtitle"),icon:a.jsx(ue,{icon:Ta,size:16}),keywords:["link","page","page link"],hide:n||t.pageLink,key:"pageLink",onSelect:()=>{$t(e,()=>{e.dispatchCommand(uh,void 0)},n)}},{parentKey:"other",name:r("editor.menu.other.documents.name"),description:r("editor.menu.other.documents.subtitle"),icon:a.jsx(ue,{icon:wm,size:16}),keywords:["page","document","child"],hide:n||t.childDocs,key:"childDocuments",onSelect:()=>{l==null||l("block_child_docs_inserted"),$t(e,()=>{e.dispatchCommand(PA,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:a.jsx(ue,{icon:R8,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(Vc,"generic-embed")},n)}},F=Fj(Ii).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(Ob,""):e.dispatchCommand(Vc,j.platform)},n)},hide:_j(j.platform,n)})),_=[I,...F].filter(j=>!j.hide),N=_.findIndex(j=>j.key==="embed");if(N>0){const[j]=_.splice(N,1);_.unshift(j)}return _},P=()=>{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:a.jsx(ue,{icon:UC,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:a.jsx(ue,{icon:HC,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:a.jsx(ue,{icon:KC,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:a.jsx(ue,{icon:YC,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:a.jsx(ue,{icon:Na,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:L()},{key:"advanced",name:h("editor.menu.advanced.title"),blocks:T()},{key:"media",name:h("editor.menu.media.title"),blocks:R()},{key:"inline",name:h("editor.menu.inline.title"),blocks:O()},{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:P()}]}function Wj({index:e,isSelected:n,onClick:t,onMouseEnter:r,option:o}){return a.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:[a.jsx(v.Box,{className:"slash-menu-item-icon",children:o.icon}),a.jsx(v.Tooltip,{label:o.title,openDelay:400,zIndex:1001,children:a.jsx(v.Box,{className:"slash-menu-item-text",children:a.jsx(v.Text,{className:"slash-menu-item-label",span:!0,truncate:"end",children:o.title})})})]})}const zj=(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&&(ye.$findMatchingParent(n,So)||ye.$findMatchingParent(n,xt)||((r=ye.$findMatchingParent(n,Rt))==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 Uj(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 Kj(e,n){return n<=0?"wrap":e+2<n?e+2:e%2===1&&e+1<n?e+1:"wrap"}function Hj(e,n,t,r){if(r<=1)return 0;const o=Uj(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,m)=>{var y;const A=(y=e[h])==null?void 0:y.items[m];return(A==null?void 0:A.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=Kj(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,A=e[h].items.length;if(A===0)return n;if(l===0){const y=A%2===0?A-2:A-1;return f(h,Math.max(0,y))}return f(h,A-1)}default:return n}}function Yj({editor:e,opened:n,groupOptions:t,options:r,selectedIndex:o,setHighlightedIndex:s}){const l=g.useRef(r),u=g.useRef(t),d=g.useRef(o);return l.current=r,u.current=t,d.current=o,g.useEffect(()=>{if(!n)return;const f=m=>{var w;const A=l.current;if(A.length===0)return;const y=Math.max(0,Math.min(A.length-1,m));s(y),d.current=y;const b=A[y],x=(w=b==null?void 0:b.ref)==null?void 0:w.current;x!=null&&(e.dispatchCommand(Sa.SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND,{index:y,option:b}),requestAnimationFrame(()=>{x.scrollIntoView({block:"nearest",inline:"nearest"})}))},h=(m,A)=>{const y=l.current;if(y.length===0)return!1;A.preventDefault(),A.stopPropagation();const b=d.current,x=b===null?0:b,w=Hj(u.current,x,m,y.length);return w!==x&&f(w),!0};return ye.mergeRegister(e.registerCommand(p.KEY_ARROW_DOWN_COMMAND,m=>h("down",m),p.COMMAND_PRIORITY_HIGH),e.registerCommand(p.KEY_ARROW_UP_COMMAND,m=>h("up",m),p.COMMAND_PRIORITY_HIGH),e.registerCommand(p.KEY_ARROW_RIGHT_COMMAND,m=>h("right",m),p.COMMAND_PRIORITY_HIGH),e.registerCommand(p.KEY_ARROW_LEFT_COMMAND,m=>h("left",m),p.COMMAND_PRIORITY_HIGH))},[e,n,s]),null}class zb extends Sa.MenuOption{constructor(t,r,o,s,l,u){super(t);we(this,"key");we(this,"title");we(this,"description");we(this,"icon");we(this,"keywords");we(this,"keyboardShortcut");we(this,"onSelect");we(this,"hide");we(this,"parentKey");we(this,"index");we(this,"hint");this.key=t,this.title=r,this.hide=s,this.description=o,this.keywords=u.keywords||[],this.icon=u.icon,this.hint=u.hint,this.parentKey=l,this.index=0,this.keyboardShortcut=u.keyboardShortcut,this.onSelect=u.onSelect.bind(this)}}function Zj(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 zb("table",`${o}x${l} Table`,"",!1,"advanced",{icon:a.jsx(v.Box,{className:"icon table"}),keywords:["table"],onSelect:()=>e.dispatchCommand(vu,{columns:l,rows:o})})))}return t}function Gj({editor:e,excludeNodes:n,t,plugins:r,onTrack:o}){const s=Wb({editor:e,isToolbar:!1,excludeNodes:n,t,plugins:r,onTrack:o});let l=[],u={};s.forEach(f=>{u[f.key]=f,l=[...l,...f.blocks]});let d=[];return l.forEach(f=>{f.hide||(d=[...d,new zb(f.key,f.name,f.description,f.hide,f.parentKey,{hint:f.hint,icon:f.icon,keywords:f.keywords,onSelect:f.onSelect})])}),{groupedOptions:u,baseOptions:d}}function Vj({mode:e,setOpenedMenu:n,opened:t}){const[r]=tt.useLexicalComposerContext(),o=g.useRef({show:!0,key:"",isCheck:!0}),[s,l]=g.useState(null),[u,d]=g.useState(0),{t:f}=He.useTranslation(),h=(u===100).toString(),{fetchUploadMedia:m,excludeNodes:A,plugins:y,onTrack:b}=g.useContext(at),x=Sa.useBasicTypeaheadTriggerMatch("/",{minLength:0}),{options:w,groupOptions:k,groupedInitialOptions:L}=g.useMemo(()=>{const{groupedOptions:M,baseOptions:P}=Gj({editor:r,excludeNodes:A,t:f,plugins:y,onTrack:b}),I=N=>{const j=N.reduce((U,W,B)=>{const Z=W.parentKey;return U[Z]||(U[Z]=[]),U[Z].push({...W,index:B}),U},{});return Object.entries(j).map(([U,W])=>({name:U,items:W}))};if(!s)return{options:P,groupOptions:I(P),groupedInitialOptions:M};const F=new RegExp(s,"i"),_=[...Zj(r,s),...P.filter(N=>F.test(N.title)||N.keywords.some(j=>F.test(j)))];return{options:_,groupOptions:I(_),groupedInitialOptions:M}},[r,m,e,s,y]),O=g.useCallback((M,P,I,F)=>{r.update(()=>{P==null||P.remove(),M.onSelect(F),I()})},[r]),T=M=>{const P=M.target;if(P!=null&&P.closest(".component-picker-menu"))return;r2(P,Yr,r)&&d(100),n(!1),document.removeEventListener("click",T)};g.useEffect(()=>(t&&document.addEventListener("click",T),()=>{document.removeEventListener("click",T)}),[t]);const R=M=>{var N;if(!M){b==null||b("slash_menu_opened"),setTimeout(()=>{n(!0),d(j=>j+1)},50);return}const{x:P,y:I}=((N=M.getRect)==null?void 0:N.call(M))??{},F=document.elementFromPoint(P+1,I+1);!F||r2(F,Yr,r)||(b==null||b("slash_menu_opened"),setTimeout(()=>{n(!0),d(j=>j+1)},50))},E=(M,P)=>{if(M.substring(0,1)!=="/")return x(M,P);const F=Qt();if(!F)return x(M,P);const _=zj(M,F,o);return R(),x(_,P)};return a.jsx(a.Fragment,{children:a.jsx(Sa.LexicalTypeaheadMenuPlugin,{onQueryChange:l,onSelectOption:O,triggerFn:E,options:w,onOpen:R,anchorClassName:"reset-anchor",onClose:()=>{n(!1)},menuRenderFn:(M,P)=>{const{selectedIndex:I,selectOptionAndCleanUp:F,setHighlightedIndex:_}=P;return a.jsx(a.Fragment,{children:M.current&&a.jsx(v.Portal,{target:M.current||document.body,children:a.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:N,y:j,placement:U}){requestAnimationFrame(()=>{Object.assign(N.floating.style,{maxHeight:"425px",top:U==="top-start"?`${j-20}px`:`${j}px`})})}}},closeOnItemClick:!1,position:"bottom-start",transitionProps:zn,children:[a.jsx(v.Menu.Target,{children:a.jsx(v.Box,{component:"span",w:0,h:0,display:"block"})},u),a.jsxs(v.Menu.Dropdown,{className:"typeahead-popover component-picker-menu",children:[a.jsx(Yj,{editor:r,opened:t,groupOptions:k.filter(N=>N.items.length>0),options:P.options,selectedIndex:I,setHighlightedIndex:_}),a.jsx(v.Box,{id:"typeahead-menu",className:"slash-menu-scroll-region",children:a.jsx(v.Box,{className:"slash-menu-list-column",children:k.map(N=>{const j=L[N.name].name;return a.jsxs(v.Box,{className:"slash-menu-group",children:[a.jsx(v.Text,{className:"slash-menu-group-label",size:"sm",span:!0,children:j}),a.jsx(v.Box,{className:"slash-menu-grid",children:N.items.length>0?N.items.map(U=>a.jsx(Wj,{index:U.index,isSelected:I===U.index,onClick:()=>{_(U.index),F(U)},onMouseEnter:()=>{_(U.index)},option:U},U.key)):null})]},j)})})})]})]},h)})})}})})}function lc(e){return e instanceof HTMLElement}const qj=({hoveredButton:e,insertNewParagraph:n,currentDraggableBlockRef:t,setHoveredButton:r,isClickedBlockRef:o,setDraggableBlockElem:s,editor:l,t:u})=>a.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:a.jsx(v.Tooltip,{openDelay:300,label:u("editor.hoverOptions.addNewBlockBelow"),position:"bottom",disabled:o.current||!e,children:a.jsx(v.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:e==="bottom"?a.jsx(xe.IconPlus,{}):a.jsx(xe.IconMinus,{})})})}),Qj=({hoveredButton:e,insertNewParagraph:n,currentDraggableBlockRef:t,setHoveredButton:r,isClickedBlockRef:o,setDraggableBlockElem:s,editor:l,t:u})=>a.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:a.jsx(v.Tooltip,{disabled:o.current||!e,openDelay:300,label:u("editor.hoverOptions.addNewBlockAbove"),position:"top",children:a.jsx(v.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:e==="top"?a.jsx(xe.IconPlus,{}):a.jsx(xe.IconMinus,{})})})}),Jj={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"},Xj={paragraph:du,1:zh,2:Uh,3:Kh,4:pa,bullet:Oc,check:_h,number:Hh,quote:Gh,code:Na,equation:La,callout:Bf},$j=Rs?{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)"},eI={h1:"1",h2:"2",h3:"3",h4:"4",h5:"5",h6:"6",paragraph:"paragraph",bullet:"bullet",check:"check",number:"number",quote:"quote",code:"code"},tI=["paragraph","1","2","3","4","__divider_1__","bullet","check","number","__divider_2__","equation","code","callout","quote"];function Ub({editor:e,blockType:n,disabled:t=!1,mode:r,fetchUploadMedia:o,excludeNodes:s,children:l,menuProps:u,onChange:d,plugins:f}){const[h,m]=I1(),{t:A,i18n:y}=He.useTranslation(),{onTrack:b}=g.useContext(at),x=g.useMemo(()=>Wb({editor:e,isToolbar:!0,excludeNodes:s,t:A,plugins:f,onTrack:b}).map(T=>({...T,blocks:T.blocks.filter(R=>!R.hide)})),[e,m,o,r,y.language,f]),w=g.useCallback(()=>{b==null||b("block_equation_created"),$t(e,()=>{e.dispatchCommand(Ra,void 0)},!0)},[e,b]),k=g.useCallback(()=>{b==null||b("block_callout_created",{type:"default"}),$t(e,()=>{e.dispatchCommand(pu,"default")},!0)},[e,b]),L=g.useMemo(()=>{const T=x.flatMap(M=>M.blocks),R=new Map(T.map(M=>[M.key,M])),E=[];for(const M of tI){if(M.startsWith("__divider_")){E.push({type:"divider",key:M});continue}if(M==="equation"){s.equation||E.push({type:"item",key:"equation",block:{key:"equation",name:A("editor.menu.other.equation.name"),onSelect:w,"data-test-id":"block-type-equation"}});continue}if(M==="callout"){s.default||E.push({type:"item",key:"callout",block:{key:"callout",name:A("editor.menu.callout.default.name"),onSelect:k,"data-test-id":"block-type-callout"}});continue}const P=R.get(M);P&&E.push({type:"item",key:M,block:P})}return E},[x,s,A,w,k]),O=eI[n]||n;return a.jsxs(a.Fragment,{children:[h,a.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:Fb,position:"bottom-start",transitionProps:zn,...u,children:[a.jsx(v.Menu.Target,{children:l||a.jsx(v.Tooltip,{label:A("editor.toolbar.turnInto"),children:a.jsxs("button",{disabled:t,className:"toolbar-item block-controls","aria-label":"Formatting options for text style",title:Jj[n],type:"button","data-test-id":"toolbar-block-controls",children:[a.jsx(Mn,{size:18,mr:5,name:n}),a.jsx(Mn,{name:"chevron-down"})]})})}),a.jsxs(v.Menu.Dropdown,{children:[a.jsx(v.Menu.Label,{children:A("editor.toolbar.turnInto")}),a.jsx("div",{className:"toolbar-dropdown-list",children:L.map(T=>{if(T.type==="divider")return a.jsx(v.Menu.Divider,{},T.key);const{block:R,key:E}=T,M=Xj[E],P=$j[E],I=O===E||E==="callout"&&["default","alert","success","warning"].includes(O);return a.jsx(v.Menu.Item,{leftSection:M?a.jsx(ue,{color:"var(--mantine-color-dark-2)",icon:M,size:16}):R.icon,rightSection:P||I?a.jsxs(a.Fragment,{children:[P&&a.jsx(v.Text,{size:"xs",component:"span",c:"dimmed",children:P}),I&&a.jsx(ue,{icon:Or,size:16,color:"var(--mantine-primary-color-filled)"})]}):void 0,onClick:()=>{R.onSelect(),d&&d()},"data-test-id":R["data-test-id"],children:E==="paragraph"?"Text":R.name},E)})})]})]})]})}const nI=({editor:e,onChange:n,currentEditorNode:t,textBlock:r,t:o,isDisabledAddColumnButton:s,disabledMoveColumnButtons:l})=>{const{fetchUploadMedia:u,excludeNodes:d,commentController:f,mode:h,onTrack:m}=g.useContext(at),[A,y]=g.useState("inherit"),[b,x]=g.useState("inherit"),[w,k]=g.useState("inherit"),[L,O]=g.useState(""),[T,R]=g.useState(!1);g.useEffect(()=>{e.read(()=>{var j;const N=t==null?void 0:t.__type;if(((j=t==null?void 0:t.getParent())==null?void 0:j.__type)==="layout-item"){O("layout");return}if(N==="callout-wrapper"){O(N);return}if(t&&fr(t)&&t.getChildren().some(Ro)){O("equation-block");return}O("block")})},[t==null?void 0:t.__key]);const E=g.useCallback(N=>{e.update(()=>{let j=p.$getSelection();if(!j){const U=e.__savedDragHandleSelection;U&&(p.$setSelection(U.clone()),j=p.$getSelection())}j&&ln.$patchStyleText(j,N)})},[e]),M=g.useCallback(N=>{const j=N["background-color"],U=j===b?"inherit":j;e.update(()=>{const W=t==null?void 0:t.getParent();W instanceof jn&&W.setLayoutBackground(U)}),x(U),n()},[e,t,b,n]),P=g.useCallback(N=>{L==="callout-wrapper"&&t instanceof To?e.update(()=>{t.setBackgroundColor(N["background-color"]);let j=p.$getSelection();if(!j){const U=e.__savedDragHandleSelection;U&&(p.$setSelection(U.clone()),j=p.$getSelection())}j&&ln.$patchStyleText(j,{color:N.color})}):E(N),n()},[e,L,t,n,E]),I=N=>{const j=GN(e);j.length?j.forEach(U=>{e.update(()=>{let W=p.$getNearestNodeFromDOMNode(U);W&&lh(e,n,W,N)})}):e.update(()=>{let U=p.$getNearestNodeFromDOMNode(j[0]);lh(e,n,U,N)})};g.useEffect(()=>{setTimeout(()=>{e.read(()=>{if(L==="callout-wrapper"&&t instanceof To){y(t.__backgroundColor);return}const N=t==null?void 0:t.getParent();N instanceof jn&&x(N.__backgroundColor);const j=p.$getSelection();p.$isRangeSelection(j)&&(k(ln.$getSelectionStyleValueForProperty(j,"color","inherit")),y(ln.$getSelectionStyleValueForProperty(j,"background-color","inherit")))})})},[]),g.useEffect(()=>{e.update(()=>{let N=p.$getSelection();if(!N){R(!1);return}if(p.$isNodeSelection(N)&&(wu(N),N=p.$getSelection(),!N)){R(!1);return}if(!p.$isRangeSelection(N)){R(!1);return}const j=N.getNodes();if(j.length===0){R(!1);return}const W=j.every(B=>p.$isTextNode(B)&&!p.$isDecoratorNode(B))&&N.getTextContent().trim().length>0;R(W)})},[e,t==null?void 0:t.__key]);const F=r==="text"&&L!=="callout-wrapper",_=r==="text"||L=="callout-wrapper";return a.jsxs(a.Fragment,{children:[F&&a.jsx(a.Fragment,{children:a.jsx(Ub,{disabled:!1,blockType:"paragraph",rootType:"root",editor:e,mode:"editor",fetchUploadMedia:u,excludeNodes:d,onChange:n,menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},children:a.jsx("div",{children:a.jsx(Rc,{label:o("editor.toolbar.turnInto"),dataNameAttribute:"turn-into",icon:a.jsx(ue,{icon:w8,size:16,color:"var(--mantine-color-gray-6)"})})})})}),_&&a.jsx(eu,{fontColor:w,bgColor:A,onChange:P,menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0},styles:{dropdown:{zIndex:400}}},children:a.jsx("div",{children:a.jsx(Rc,{dataNameAttribute:"color-picker",label:o(L==="callout-wrapper"?"editor.contextMenu.appearance":"editor.toolbar.color"),icon:a.jsx(ue,{size:16,icon:Ci,color:"var(--mantine-color-gray-6)"})})})}),(F||_)&&a.jsx(v.Menu.Divider,{}),T&&f&&h==="editor"&&a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Item,{onMouseDown:N=>{N.preventDefault(),N.stopPropagation(),e.dispatchCommand(ju,void 0),n("comment")},leftSection:a.jsx(ue,{icon:S8,size:16,color:"var(--mantine-color-gray-6)"}),children:o("editor.toolbar.comment")}),a.jsx(v.Menu.Divider,{})]}),a.jsx(v.Menu.Item,{onMouseDown:N=>{N.preventDefault(),Q0(e,"cut"),n("cut")},"data-test-id":"cut-draggable",leftSection:a.jsx(ue,{icon:Q8,size:16,color:"var(--mantine-color-gray-6)"}),children:o("editor.contextMenu.cut")}),a.jsx(v.Menu.Item,{onMouseDown:N=>{N.preventDefault(),Q0(e,"copy"),n("copy")},leftSection:a.jsx(ue,{icon:Z8,size:16,color:"var(--mantine-color-gray-6)"}),"data-test-id":"copy-draggable",children:o("editor.link.copy")}),a.jsx(v.Menu.Item,{"data-test-id":"duplicate-draggable",disabled:L==="layout"&&s,onClick:()=>{m==null||m("block_duplicated"),Sb(e,n,t,L)},leftSection:a.jsx(ue,{icon:jo,size:16,color:"var(--mantine-color-gray-6)"}),children:o("editor.contextMenu.duplicate")}),a.jsx(v.Menu.Item,{"data-test-id":"delete-draggable",onClick:()=>{m==null||m("block_deleted"),I("")},color:"var(--mantine-color-red-6)",leftSection:a.jsx(ue,{icon:_n,size:16}),children:o("editor.contextMenu.delete")}),L==="layout"&&a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Divider,{}),a.jsx(eu,{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:a.jsx("div",{children:a.jsx(Rc,{label:o("editor.column.changeColor"),icon:a.jsx(ue,{size:16,icon:Ci,color:"var(--mantine-color-gray-6)"})})})}),a.jsx(v.Menu.Item,{disabled:s,onClick:()=>{Qc(e,t,"left")},leftSection:a.jsx(ue,{icon:km,size:14,color:"var(--mantine-color-gray-6)"}),"data-test-id":"column-left",children:o("editor.column.addLeft")}),a.jsx(v.Menu.Item,{disabled:s,"data-test-id":"column-right",onClick:()=>{Qc(e,t,"right")},leftSection:a.jsx(ue,{icon:km,size:14,color:"var(--mantine-color-gray-6)"}),children:o("editor.column.addRight")}),a.jsx(v.Menu.Item,{disabled:l.left,"data-test-id":"column-move-left",onClick:()=>{Yc(e,t,"left"),bi(e)},leftSection:a.jsx(ue,{icon:RC,size:14,color:"var(--mantine-color-gray-6)"}),children:o("editor.column.moveLeft")}),a.jsx(v.Menu.Item,{disabled:l.right,"data-test-id":"column-move-right",onClick:()=>{Yc(e,t,"right"),bi(e)},leftSection:a.jsx(ue,{icon:jC,size:14,color:"var(--mantine-color-gray-6)"}),children:o("editor.column.moveRight")}),a.jsx(v.Menu.Item,{"data-test-id":"column-delete",onClick:()=>I("layout"),color:"var(--mantine-color-red-6)",leftSection:a.jsx(ue,{icon:_n,size:16}),children:o("editor.column.deleteColumn")})]})]})};var ia=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var aa={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 oI=aa.exports,a2;function sI(){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",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",m=1,A=2,y=4,b=1,x=2,w=1,k=2,L=4,O=8,T=16,R=32,E=64,M=128,P=256,I=512,F=30,_="...",N=800,j=16,U=1,W=2,B=3,Z=1/0,Q=9007199254740991,re=17976931348623157e292,oe=NaN,Ce=4294967295,Te=Ce-1,Me=Ce>>>1,Re=[["ary",M],["bind",w],["bindKey",k],["curry",O],["curryRight",T],["flip",I],["partial",R],["partialRight",E],["rearg",P]],ae="[object Arguments]",te="[object Array]",q="[object AsyncFunction]",ce="[object Boolean]",ie="[object Date]",ne="[object DOMException]",H="[object Error]",X="[object Function]",Y="[object GeneratorFunction]",J="[object Map]",$="[object Number]",Ae="[object Null]",me="[object Object]",ke="[object Promise]",Fe="[object Proxy]",De="[object RegExp]",Pe="[object Set]",Ue="[object String]",Ze="[object Symbol]",It="[object Undefined]",Mt="[object WeakMap]",Gt="[object WeakSet]",_t="[object ArrayBuffer]",V="[object DataView]",de="[object Float32Array]",he="[object Float64Array]",Le="[object Int8Array]",Oe="[object Int16Array]",fe="[object Int32Array]",ge="[object Uint8Array]",pe="[object Uint8ClampedArray]",We="[object Uint16Array]",_e="[object Uint32Array]",qe=/\b__p \+= '';/g,$e=/\b(__p \+=) '' \+/g,Ve=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nt=/&(?:amp|lt|gt|quot|#39);/g,Be=/[&<>"']/g,Ne=RegExp(nt.source),Je=RegExp(Be.source),Qe=/<%-([\s\S]+?)%>/g,st=/<%([\s\S]+?)%>/g,gt=/<%=([\s\S]+?)%>/g,ut=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ke=/^\w*$/,ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ft=/[\\^$.*+?()[\]{}|]/g,dt=RegExp(ft.source),Ye=/^\s+/,ht=/\s/,nn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kt=/\{\n\/\* \[wrapped with (.+)\] \*/,St=/,? & /,Tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,en=/[()=,{}\[\]\/\s]/,Dt=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ft=/\w*$/,Ht=/^[-+]0x[0-9a-f]+$/i,Vt=/^0b[01]+$/i,rt=/^\[object .+?Constructor\]$/,Ct=/^0o[0-7]+$/i,Jt=/^(?:0|[1-9]\d*)$/,Dn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gr=/($^)/,tr=/['\n\r\u2028\u2029\\]/g,ds="\\ud800-\\udfff",v5="\\u0300-\\u036f",w5="\\ufe20-\\ufe2f",k5="\\u20d0-\\u20ff",H1=v5+w5+k5,Y1="\\u2700-\\u27bf",Z1="a-z\\xdf-\\xf6\\xf8-\\xff",S5="\\xac\\xb1\\xd7\\xf7",E5="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",M5="\\u2000-\\u206f",T5=" \\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",G1="A-Z\\xc0-\\xd6\\xd8-\\xde",V1="\\ufe0e\\ufe0f",q1=S5+E5+M5+T5,Uu="['’]",L5="["+ds+"]",Q1="["+q1+"]",sl="["+H1+"]",J1="\\d+",N5="["+Y1+"]",X1="["+Z1+"]",$1="[^"+ds+q1+J1+Y1+Z1+G1+"]",Ku="\\ud83c[\\udffb-\\udfff]",R5="(?:"+sl+"|"+Ku+")",ep="[^"+ds+"]",Hu="(?:\\ud83c[\\udde6-\\uddff]){2}",Yu="[\\ud800-\\udbff][\\udc00-\\udfff]",zs="["+G1+"]",tp="\\u200d",np="(?:"+X1+"|"+$1+")",j5="(?:"+zs+"|"+$1+")",rp="(?:"+Uu+"(?:d|ll|m|re|s|t|ve))?",op="(?:"+Uu+"(?:D|LL|M|RE|S|T|VE))?",sp=R5+"?",ip="["+V1+"]?",I5="(?:"+tp+"(?:"+[ep,Hu,Yu].join("|")+")"+ip+sp+")*",O5="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",D5="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ap=ip+sp+I5,P5="(?:"+[N5,Hu,Yu].join("|")+")"+ap,B5="(?:"+[ep+sl+"?",sl,Hu,Yu,L5].join("|")+")",_5=RegExp(Uu,"g"),F5=RegExp(sl,"g"),Zu=RegExp(Ku+"(?="+Ku+")|"+B5+ap,"g"),W5=RegExp([zs+"?"+X1+"+"+rp+"(?="+[Q1,zs,"$"].join("|")+")",j5+"+"+op+"(?="+[Q1,zs+np,"$"].join("|")+")",zs+"?"+np+"+"+rp,zs+"+"+op,D5,O5,J1,P5].join("|"),"g"),z5=RegExp("["+tp+ds+H1+V1+"]"),U5=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,K5=["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"],H5=-1,Xt={};Xt[de]=Xt[he]=Xt[Le]=Xt[Oe]=Xt[fe]=Xt[ge]=Xt[pe]=Xt[We]=Xt[_e]=!0,Xt[ae]=Xt[te]=Xt[_t]=Xt[ce]=Xt[V]=Xt[ie]=Xt[H]=Xt[X]=Xt[J]=Xt[$]=Xt[me]=Xt[De]=Xt[Pe]=Xt[Ue]=Xt[Mt]=!1;var qt={};qt[ae]=qt[te]=qt[_t]=qt[V]=qt[ce]=qt[ie]=qt[de]=qt[he]=qt[Le]=qt[Oe]=qt[fe]=qt[J]=qt[$]=qt[me]=qt[De]=qt[Pe]=qt[Ue]=qt[Ze]=qt[ge]=qt[pe]=qt[We]=qt[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ŕ:"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"},Z5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},G5={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},V5={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},q5=parseFloat,Q5=parseInt,lp=typeof ia=="object"&&ia&&ia.Object===Object&&ia,J5=typeof self=="object"&&self&&self.Object===Object&&self,Pn=lp||J5||Function("return this")(),Gu=n&&!n.nodeType&&n,fs=Gu&&!0&&e&&!e.nodeType&&e,cp=fs&&fs.exports===Gu,Vu=cp&&lp.process,mr=(function(){try{var se=fs&&fs.require&&fs.require("util").types;return se||Vu&&Vu.binding&&Vu.binding("util")}catch{}})(),up=mr&&mr.isArrayBuffer,dp=mr&&mr.isDate,fp=mr&&mr.isMap,hp=mr&&mr.isRegExp,pp=mr&&mr.isSet,gp=mr&&mr.isTypedArray;function nr(se,ve,be){switch(be.length){case 0:return se.call(ve);case 1:return se.call(ve,be[0]);case 2:return se.call(ve,be[0],be[1]);case 3:return se.call(ve,be[0],be[1],be[2])}return se.apply(ve,be)}function X5(se,ve,be,Ge){for(var mt=-1,Pt=se==null?0:se.length;++mt<Pt;){var wn=se[mt];ve(Ge,wn,be(wn),se)}return Ge}function Cr(se,ve){for(var be=-1,Ge=se==null?0:se.length;++be<Ge&&ve(se[be],be,se)!==!1;);return se}function $5(se,ve){for(var be=se==null?0:se.length;be--&&ve(se[be],be,se)!==!1;);return se}function mp(se,ve){for(var be=-1,Ge=se==null?0:se.length;++be<Ge;)if(!ve(se[be],be,se))return!1;return!0}function Oo(se,ve){for(var be=-1,Ge=se==null?0:se.length,mt=0,Pt=[];++be<Ge;){var wn=se[be];ve(wn,be,se)&&(Pt[mt++]=wn)}return Pt}function il(se,ve){var be=se==null?0:se.length;return!!be&&Us(se,ve,0)>-1}function qu(se,ve,be){for(var Ge=-1,mt=se==null?0:se.length;++Ge<mt;)if(be(ve,se[Ge]))return!0;return!1}function tn(se,ve){for(var be=-1,Ge=se==null?0:se.length,mt=Array(Ge);++be<Ge;)mt[be]=ve(se[be],be,se);return mt}function Do(se,ve){for(var be=-1,Ge=ve.length,mt=se.length;++be<Ge;)se[mt+be]=ve[be];return se}function Qu(se,ve,be,Ge){var mt=-1,Pt=se==null?0:se.length;for(Ge&&Pt&&(be=se[++mt]);++mt<Pt;)be=ve(be,se[mt],mt,se);return be}function ey(se,ve,be,Ge){var mt=se==null?0:se.length;for(Ge&&mt&&(be=se[--mt]);mt--;)be=ve(be,se[mt],mt,se);return be}function Ju(se,ve){for(var be=-1,Ge=se==null?0:se.length;++be<Ge;)if(ve(se[be],be,se))return!0;return!1}var ty=Xu("length");function ny(se){return se.split("")}function ry(se){return se.match(Tt)||[]}function Cp(se,ve,be){var Ge;return be(se,function(mt,Pt,wn){if(ve(mt,Pt,wn))return Ge=Pt,!1}),Ge}function al(se,ve,be,Ge){for(var mt=se.length,Pt=be+(Ge?1:-1);Ge?Pt--:++Pt<mt;)if(ve(se[Pt],Pt,se))return Pt;return-1}function Us(se,ve,be){return ve===ve?gy(se,ve,be):al(se,Ap,be)}function oy(se,ve,be,Ge){for(var mt=be-1,Pt=se.length;++mt<Pt;)if(Ge(se[mt],ve))return mt;return-1}function Ap(se){return se!==se}function bp(se,ve){var be=se==null?0:se.length;return be?ed(se,ve)/be:oe}function Xu(se){return function(ve){return ve==null?t:ve[se]}}function $u(se){return function(ve){return se==null?t:se[ve]}}function yp(se,ve,be,Ge,mt){return mt(se,function(Pt,wn,Yt){be=Ge?(Ge=!1,Pt):ve(be,Pt,wn,Yt)}),be}function sy(se,ve){var be=se.length;for(se.sort(ve);be--;)se[be]=se[be].value;return se}function ed(se,ve){for(var be,Ge=-1,mt=se.length;++Ge<mt;){var Pt=ve(se[Ge]);Pt!==t&&(be=be===t?Pt:be+Pt)}return be}function td(se,ve){for(var be=-1,Ge=Array(se);++be<se;)Ge[be]=ve(be);return Ge}function iy(se,ve){return tn(ve,function(be){return[be,se[be]]})}function xp(se){return se&&se.slice(0,Sp(se)+1).replace(Ye,"")}function rr(se){return function(ve){return se(ve)}}function nd(se,ve){return tn(ve,function(be){return se[be]})}function _i(se,ve){return se.has(ve)}function vp(se,ve){for(var be=-1,Ge=se.length;++be<Ge&&Us(ve,se[be],0)>-1;);return be}function wp(se,ve){for(var be=se.length;be--&&Us(ve,se[be],0)>-1;);return be}function ay(se,ve){for(var be=se.length,Ge=0;be--;)se[be]===ve&&++Ge;return Ge}var ly=$u(Y5),cy=$u(Z5);function uy(se){return"\\"+V5[se]}function dy(se,ve){return se==null?t:se[ve]}function Ks(se){return z5.test(se)}function fy(se){return U5.test(se)}function hy(se){for(var ve,be=[];!(ve=se.next()).done;)be.push(ve.value);return be}function rd(se){var ve=-1,be=Array(se.size);return se.forEach(function(Ge,mt){be[++ve]=[mt,Ge]}),be}function kp(se,ve){return function(be){return se(ve(be))}}function Po(se,ve){for(var be=-1,Ge=se.length,mt=0,Pt=[];++be<Ge;){var wn=se[be];(wn===ve||wn===h)&&(se[be]=h,Pt[mt++]=be)}return Pt}function ll(se){var ve=-1,be=Array(se.size);return se.forEach(function(Ge){be[++ve]=Ge}),be}function py(se){var ve=-1,be=Array(se.size);return se.forEach(function(Ge){be[++ve]=[Ge,Ge]}),be}function gy(se,ve,be){for(var Ge=be-1,mt=se.length;++Ge<mt;)if(se[Ge]===ve)return Ge;return-1}function my(se,ve,be){for(var Ge=be+1;Ge--;)if(se[Ge]===ve)return Ge;return Ge}function Hs(se){return Ks(se)?Ay(se):ty(se)}function Dr(se){return Ks(se)?by(se):ny(se)}function Sp(se){for(var ve=se.length;ve--&&ht.test(se.charAt(ve)););return ve}var Cy=$u(G5);function Ay(se){for(var ve=Zu.lastIndex=0;Zu.test(se);)++ve;return ve}function by(se){return se.match(Zu)||[]}function yy(se){return se.match(W5)||[]}var xy=(function se(ve){ve=ve==null?Pn:Ys.defaults(Pn.Object(),ve,Ys.pick(Pn,K5));var be=ve.Array,Ge=ve.Date,mt=ve.Error,Pt=ve.Function,wn=ve.Math,Yt=ve.Object,od=ve.RegExp,vy=ve.String,Ar=ve.TypeError,cl=be.prototype,wy=Pt.prototype,Zs=Yt.prototype,ul=ve["__core-js_shared__"],dl=wy.toString,Wt=Zs.hasOwnProperty,ky=0,Ep=(function(){var i=/[^.]+$/.exec(ul&&ul.keys&&ul.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),fl=Zs.toString,Sy=dl.call(Yt),Ey=Pn._,My=od("^"+dl.call(Wt).replace(ft,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hl=cp?ve.Buffer:t,Bo=ve.Symbol,pl=ve.Uint8Array,Mp=hl?hl.allocUnsafe:t,gl=kp(Yt.getPrototypeOf,Yt),Tp=Yt.create,Lp=Zs.propertyIsEnumerable,ml=cl.splice,Np=Bo?Bo.isConcatSpreadable:t,Fi=Bo?Bo.iterator:t,hs=Bo?Bo.toStringTag:t,Cl=(function(){try{var i=As(Yt,"defineProperty");return i({},"",{}),i}catch{}})(),Ty=ve.clearTimeout!==Pn.clearTimeout&&ve.clearTimeout,Ly=Ge&&Ge.now!==Pn.Date.now&&Ge.now,Ny=ve.setTimeout!==Pn.setTimeout&&ve.setTimeout,Al=wn.ceil,bl=wn.floor,sd=Yt.getOwnPropertySymbols,Ry=hl?hl.isBuffer:t,Rp=ve.isFinite,jy=cl.join,Iy=kp(Yt.keys,Yt),kn=wn.max,Un=wn.min,Oy=Ge.now,Dy=ve.parseInt,jp=wn.random,Py=cl.reverse,id=As(ve,"DataView"),Wi=As(ve,"Map"),ad=As(ve,"Promise"),Gs=As(ve,"Set"),zi=As(ve,"WeakMap"),Ui=As(Yt,"create"),yl=zi&&new zi,Vs={},By=bs(id),_y=bs(Wi),Fy=bs(ad),Wy=bs(Gs),zy=bs(zi),xl=Bo?Bo.prototype:t,Ki=xl?xl.valueOf:t,Ip=xl?xl.toString:t;function z(i){if(an(i)&&!At(i)&&!(i instanceof Nt)){if(i instanceof br)return i;if(Wt.call(i,"__wrapped__"))return Og(i)}return new br(i)}var qs=(function(){function i(){}return function(c){if(!on(c))return{};if(Tp)return Tp(c);i.prototype=c;var C=new i;return i.prototype=t,C}})();function vl(){}function br(i,c){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=t}z.templateSettings={escape:Qe,evaluate:st,interpolate:gt,variable:"",imports:{_:z}},z.prototype=vl.prototype,z.prototype.constructor=z,br.prototype=qs(vl.prototype),br.prototype.constructor=br;function Nt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ce,this.__views__=[]}function Uy(){var i=new Nt(this.__wrapped__);return i.__actions__=Qn(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Qn(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Qn(this.__views__),i}function Ky(){if(this.__filtered__){var i=new Nt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function Hy(){var i=this.__wrapped__.value(),c=this.__dir__,C=At(i),S=c<0,D=C?i.length:0,K=nx(0,D,this.__views__),G=K.start,ee=K.end,le=ee-G,Se=S?ee:G-1,Ee=this.__iteratees__,je=Ee.length,ze=0,Xe=Un(le,this.__takeCount__);if(!C||!S&&D==le&&Xe==le)return rg(i,this.__actions__);var lt=[];e:for(;le--&&ze<Xe;){Se+=c;for(var vt=-1,ct=i[Se];++vt<je;){var Lt=Ee[vt],jt=Lt.iteratee,ir=Lt.type,Vn=jt(ct);if(ir==W)ct=Vn;else if(!Vn){if(ir==U)continue e;break e}}lt[ze++]=ct}return lt}Nt.prototype=qs(vl.prototype),Nt.prototype.constructor=Nt;function ps(i){var c=-1,C=i==null?0:i.length;for(this.clear();++c<C;){var S=i[c];this.set(S[0],S[1])}}function Yy(){this.__data__=Ui?Ui(null):{},this.size=0}function Zy(i){var c=this.has(i)&&delete this.__data__[i];return this.size-=c?1:0,c}function Gy(i){var c=this.__data__;if(Ui){var C=c[i];return C===d?t:C}return Wt.call(c,i)?c[i]:t}function Vy(i){var c=this.__data__;return Ui?c[i]!==t:Wt.call(c,i)}function qy(i,c){var C=this.__data__;return this.size+=this.has(i)?0:1,C[i]=Ui&&c===t?d:c,this}ps.prototype.clear=Yy,ps.prototype.delete=Zy,ps.prototype.get=Gy,ps.prototype.has=Vy,ps.prototype.set=qy;function co(i){var c=-1,C=i==null?0:i.length;for(this.clear();++c<C;){var S=i[c];this.set(S[0],S[1])}}function Qy(){this.__data__=[],this.size=0}function Jy(i){var c=this.__data__,C=wl(c,i);if(C<0)return!1;var S=c.length-1;return C==S?c.pop():ml.call(c,C,1),--this.size,!0}function Xy(i){var c=this.__data__,C=wl(c,i);return C<0?t:c[C][1]}function $y(i){return wl(this.__data__,i)>-1}function e3(i,c){var C=this.__data__,S=wl(C,i);return S<0?(++this.size,C.push([i,c])):C[S][1]=c,this}co.prototype.clear=Qy,co.prototype.delete=Jy,co.prototype.get=Xy,co.prototype.has=$y,co.prototype.set=e3;function uo(i){var c=-1,C=i==null?0:i.length;for(this.clear();++c<C;){var S=i[c];this.set(S[0],S[1])}}function t3(){this.size=0,this.__data__={hash:new ps,map:new(Wi||co),string:new ps}}function n3(i){var c=Dl(this,i).delete(i);return this.size-=c?1:0,c}function r3(i){return Dl(this,i).get(i)}function o3(i){return Dl(this,i).has(i)}function s3(i,c){var C=Dl(this,i),S=C.size;return C.set(i,c),this.size+=C.size==S?0:1,this}uo.prototype.clear=t3,uo.prototype.delete=n3,uo.prototype.get=r3,uo.prototype.has=o3,uo.prototype.set=s3;function gs(i){var c=-1,C=i==null?0:i.length;for(this.__data__=new uo;++c<C;)this.add(i[c])}function i3(i){return this.__data__.set(i,d),this}function a3(i){return this.__data__.has(i)}gs.prototype.add=gs.prototype.push=i3,gs.prototype.has=a3;function Pr(i){var c=this.__data__=new co(i);this.size=c.size}function l3(){this.__data__=new co,this.size=0}function c3(i){var c=this.__data__,C=c.delete(i);return this.size=c.size,C}function u3(i){return this.__data__.get(i)}function d3(i){return this.__data__.has(i)}function f3(i,c){var C=this.__data__;if(C instanceof co){var S=C.__data__;if(!Wi||S.length<o-1)return S.push([i,c]),this.size=++C.size,this;C=this.__data__=new uo(S)}return C.set(i,c),this.size=C.size,this}Pr.prototype.clear=l3,Pr.prototype.delete=c3,Pr.prototype.get=u3,Pr.prototype.has=d3,Pr.prototype.set=f3;function Op(i,c){var C=At(i),S=!C&&ys(i),D=!C&&!S&&Uo(i),K=!C&&!S&&!D&&$s(i),G=C||S||D||K,ee=G?td(i.length,vy):[],le=ee.length;for(var Se in i)(c||Wt.call(i,Se))&&!(G&&(Se=="length"||D&&(Se=="offset"||Se=="parent")||K&&(Se=="buffer"||Se=="byteLength"||Se=="byteOffset")||go(Se,le)))&&ee.push(Se);return ee}function Dp(i){var c=i.length;return c?i[Ad(0,c-1)]:t}function h3(i,c){return Pl(Qn(i),ms(c,0,i.length))}function p3(i){return Pl(Qn(i))}function ld(i,c,C){(C!==t&&!Br(i[c],C)||C===t&&!(c in i))&&fo(i,c,C)}function Hi(i,c,C){var S=i[c];(!(Wt.call(i,c)&&Br(S,C))||C===t&&!(c in i))&&fo(i,c,C)}function wl(i,c){for(var C=i.length;C--;)if(Br(i[C][0],c))return C;return-1}function g3(i,c,C,S){return _o(i,function(D,K,G){c(S,D,C(D),G)}),S}function Pp(i,c){return i&&Xr(c,Ln(c),i)}function m3(i,c){return i&&Xr(c,Xn(c),i)}function fo(i,c,C){c=="__proto__"&&Cl?Cl(i,c,{configurable:!0,enumerable:!0,value:C,writable:!0}):i[c]=C}function cd(i,c){for(var C=-1,S=c.length,D=be(S),K=i==null;++C<S;)D[C]=K?t:Kd(i,c[C]);return D}function ms(i,c,C){return i===i&&(C!==t&&(i=i<=C?i:C),c!==t&&(i=i>=c?i:c)),i}function yr(i,c,C,S,D,K){var G,ee=c&m,le=c&A,Se=c&y;if(C&&(G=D?C(i,S,D,K):C(i)),G!==t)return G;if(!on(i))return i;var Ee=At(i);if(Ee){if(G=ox(i),!ee)return Qn(i,G)}else{var je=Kn(i),ze=je==X||je==Y;if(Uo(i))return ig(i,ee);if(je==me||je==ae||ze&&!D){if(G=le||ze?{}:Sg(i),!ee)return le?G3(i,m3(G,i)):Z3(i,Pp(G,i))}else{if(!qt[je])return D?i:{};G=sx(i,je,ee)}}K||(K=new Pr);var Xe=K.get(i);if(Xe)return Xe;K.set(i,G),em(i)?i.forEach(function(ct){G.add(yr(ct,c,C,ct,i,K))}):Xg(i)&&i.forEach(function(ct,Lt){G.set(Lt,yr(ct,c,C,Lt,i,K))});var lt=Se?le?Ld:Td:le?Xn:Ln,vt=Ee?t:lt(i);return Cr(vt||i,function(ct,Lt){vt&&(Lt=ct,ct=i[Lt]),Hi(G,Lt,yr(ct,c,C,Lt,i,K))}),G}function C3(i){var c=Ln(i);return function(C){return Bp(C,i,c)}}function Bp(i,c,C){var S=C.length;if(i==null)return!S;for(i=Yt(i);S--;){var D=C[S],K=c[D],G=i[D];if(G===t&&!(D in i)||!K(G))return!1}return!0}function _p(i,c,C){if(typeof i!="function")throw new Ar(l);return Ji(function(){i.apply(t,C)},c)}function Yi(i,c,C,S){var D=-1,K=il,G=!0,ee=i.length,le=[],Se=c.length;if(!ee)return le;C&&(c=tn(c,rr(C))),S?(K=qu,G=!1):c.length>=o&&(K=_i,G=!1,c=new gs(c));e:for(;++D<ee;){var Ee=i[D],je=C==null?Ee:C(Ee);if(Ee=S||Ee!==0?Ee:0,G&&je===je){for(var ze=Se;ze--;)if(c[ze]===je)continue e;le.push(Ee)}else K(c,je,S)||le.push(Ee)}return le}var _o=dg(Jr),Fp=dg(dd,!0);function A3(i,c){var C=!0;return _o(i,function(S,D,K){return C=!!c(S,D,K),C}),C}function kl(i,c,C){for(var S=-1,D=i.length;++S<D;){var K=i[S],G=c(K);if(G!=null&&(ee===t?G===G&&!sr(G):C(G,ee)))var ee=G,le=K}return le}function b3(i,c,C,S){var D=i.length;for(C=bt(C),C<0&&(C=-C>D?0:D+C),S=S===t||S>D?D:bt(S),S<0&&(S+=D),S=C>S?0:nm(S);C<S;)i[C++]=c;return i}function Wp(i,c){var C=[];return _o(i,function(S,D,K){c(S,D,K)&&C.push(S)}),C}function Bn(i,c,C,S,D){var K=-1,G=i.length;for(C||(C=ax),D||(D=[]);++K<G;){var ee=i[K];c>0&&C(ee)?c>1?Bn(ee,c-1,C,S,D):Do(D,ee):S||(D[D.length]=ee)}return D}var ud=fg(),zp=fg(!0);function Jr(i,c){return i&&ud(i,c,Ln)}function dd(i,c){return i&&zp(i,c,Ln)}function Sl(i,c){return Oo(c,function(C){return mo(i[C])})}function Cs(i,c){c=Wo(c,i);for(var C=0,S=c.length;i!=null&&C<S;)i=i[$r(c[C++])];return C&&C==S?i:t}function Up(i,c,C){var S=c(i);return At(i)?S:Do(S,C(i))}function Zn(i){return i==null?i===t?It:Ae:hs&&hs in Yt(i)?tx(i):px(i)}function fd(i,c){return i>c}function y3(i,c){return i!=null&&Wt.call(i,c)}function x3(i,c){return i!=null&&c in Yt(i)}function v3(i,c,C){return i>=Un(c,C)&&i<kn(c,C)}function hd(i,c,C){for(var S=C?qu:il,D=i[0].length,K=i.length,G=K,ee=be(K),le=1/0,Se=[];G--;){var Ee=i[G];G&&c&&(Ee=tn(Ee,rr(c))),le=Un(Ee.length,le),ee[G]=!C&&(c||D>=120&&Ee.length>=120)?new gs(G&&Ee):t}Ee=i[0];var je=-1,ze=ee[0];e:for(;++je<D&&Se.length<le;){var Xe=Ee[je],lt=c?c(Xe):Xe;if(Xe=C||Xe!==0?Xe:0,!(ze?_i(ze,lt):S(Se,lt,C))){for(G=K;--G;){var vt=ee[G];if(!(vt?_i(vt,lt):S(i[G],lt,C)))continue e}ze&&ze.push(lt),Se.push(Xe)}}return Se}function w3(i,c,C,S){return Jr(i,function(D,K,G){c(S,C(D),K,G)}),S}function Zi(i,c,C){c=Wo(c,i),i=Lg(i,c);var S=i==null?i:i[$r(vr(c))];return S==null?t:nr(S,i,C)}function Kp(i){return an(i)&&Zn(i)==ae}function k3(i){return an(i)&&Zn(i)==_t}function S3(i){return an(i)&&Zn(i)==ie}function Gi(i,c,C,S,D){return i===c?!0:i==null||c==null||!an(i)&&!an(c)?i!==i&&c!==c:E3(i,c,C,S,Gi,D)}function E3(i,c,C,S,D,K){var G=At(i),ee=At(c),le=G?te:Kn(i),Se=ee?te:Kn(c);le=le==ae?me:le,Se=Se==ae?me:Se;var Ee=le==me,je=Se==me,ze=le==Se;if(ze&&Uo(i)){if(!Uo(c))return!1;G=!0,Ee=!1}if(ze&&!Ee)return K||(K=new Pr),G||$s(i)?vg(i,c,C,S,D,K):$3(i,c,le,C,S,D,K);if(!(C&b)){var Xe=Ee&&Wt.call(i,"__wrapped__"),lt=je&&Wt.call(c,"__wrapped__");if(Xe||lt){var vt=Xe?i.value():i,ct=lt?c.value():c;return K||(K=new Pr),D(vt,ct,C,S,K)}}return ze?(K||(K=new Pr),ex(i,c,C,S,D,K)):!1}function M3(i){return an(i)&&Kn(i)==J}function pd(i,c,C,S){var D=C.length,K=D,G=!S;if(i==null)return!K;for(i=Yt(i);D--;){var ee=C[D];if(G&&ee[2]?ee[1]!==i[ee[0]]:!(ee[0]in i))return!1}for(;++D<K;){ee=C[D];var le=ee[0],Se=i[le],Ee=ee[1];if(G&&ee[2]){if(Se===t&&!(le in i))return!1}else{var je=new Pr;if(S)var ze=S(Se,Ee,le,i,c,je);if(!(ze===t?Gi(Ee,Se,b|x,S,je):ze))return!1}}return!0}function Hp(i){if(!on(i)||cx(i))return!1;var c=mo(i)?My:rt;return c.test(bs(i))}function T3(i){return an(i)&&Zn(i)==De}function L3(i){return an(i)&&Kn(i)==Pe}function N3(i){return an(i)&&Ul(i.length)&&!!Xt[Zn(i)]}function Yp(i){return typeof i=="function"?i:i==null?$n:typeof i=="object"?At(i)?Vp(i[0],i[1]):Gp(i):hm(i)}function gd(i){if(!Qi(i))return Iy(i);var c=[];for(var C in Yt(i))Wt.call(i,C)&&C!="constructor"&&c.push(C);return c}function R3(i){if(!on(i))return hx(i);var c=Qi(i),C=[];for(var S in i)S=="constructor"&&(c||!Wt.call(i,S))||C.push(S);return C}function md(i,c){return i<c}function Zp(i,c){var C=-1,S=Jn(i)?be(i.length):[];return _o(i,function(D,K,G){S[++C]=c(D,K,G)}),S}function Gp(i){var c=Rd(i);return c.length==1&&c[0][2]?Mg(c[0][0],c[0][1]):function(C){return C===i||pd(C,i,c)}}function Vp(i,c){return Id(i)&&Eg(c)?Mg($r(i),c):function(C){var S=Kd(C,i);return S===t&&S===c?Hd(C,i):Gi(c,S,b|x)}}function El(i,c,C,S,D){i!==c&&ud(c,function(K,G){if(D||(D=new Pr),on(K))j3(i,c,G,C,El,S,D);else{var ee=S?S(Dd(i,G),K,G+"",i,c,D):t;ee===t&&(ee=K),ld(i,G,ee)}},Xn)}function j3(i,c,C,S,D,K,G){var ee=Dd(i,C),le=Dd(c,C),Se=G.get(le);if(Se){ld(i,C,Se);return}var Ee=K?K(ee,le,C+"",i,c,G):t,je=Ee===t;if(je){var ze=At(le),Xe=!ze&&Uo(le),lt=!ze&&!Xe&&$s(le);Ee=le,ze||Xe||lt?At(ee)?Ee=ee:dn(ee)?Ee=Qn(ee):Xe?(je=!1,Ee=ig(le,!0)):lt?(je=!1,Ee=ag(le,!0)):Ee=[]:Xi(le)||ys(le)?(Ee=ee,ys(ee)?Ee=rm(ee):(!on(ee)||mo(ee))&&(Ee=Sg(le))):je=!1}je&&(G.set(le,Ee),D(Ee,le,S,K,G),G.delete(le)),ld(i,C,Ee)}function qp(i,c){var C=i.length;if(C)return c+=c<0?C:0,go(c,C)?i[c]:t}function Qp(i,c,C){c.length?c=tn(c,function(K){return At(K)?function(G){return Cs(G,K.length===1?K[0]:K)}:K}):c=[$n];var S=-1;c=tn(c,rr(it()));var D=Zp(i,function(K,G,ee){var le=tn(c,function(Se){return Se(K)});return{criteria:le,index:++S,value:K}});return sy(D,function(K,G){return Y3(K,G,C)})}function I3(i,c){return Jp(i,c,function(C,S){return Hd(i,S)})}function Jp(i,c,C){for(var S=-1,D=c.length,K={};++S<D;){var G=c[S],ee=Cs(i,G);C(ee,G)&&Vi(K,Wo(G,i),ee)}return K}function O3(i){return function(c){return Cs(c,i)}}function Cd(i,c,C,S){var D=S?oy:Us,K=-1,G=c.length,ee=i;for(i===c&&(c=Qn(c)),C&&(ee=tn(i,rr(C)));++K<G;)for(var le=0,Se=c[K],Ee=C?C(Se):Se;(le=D(ee,Ee,le,S))>-1;)ee!==i&&ml.call(ee,le,1),ml.call(i,le,1);return i}function Xp(i,c){for(var C=i?c.length:0,S=C-1;C--;){var D=c[C];if(C==S||D!==K){var K=D;go(D)?ml.call(i,D,1):xd(i,D)}}return i}function Ad(i,c){return i+bl(jp()*(c-i+1))}function D3(i,c,C,S){for(var D=-1,K=kn(Al((c-i)/(C||1)),0),G=be(K);K--;)G[S?K:++D]=i,i+=C;return G}function bd(i,c){var C="";if(!i||c<1||c>Q)return C;do c%2&&(C+=i),c=bl(c/2),c&&(i+=i);while(c);return C}function Et(i,c){return Pd(Tg(i,c,$n),i+"")}function P3(i){return Dp(ei(i))}function B3(i,c){var C=ei(i);return Pl(C,ms(c,0,C.length))}function Vi(i,c,C,S){if(!on(i))return i;c=Wo(c,i);for(var D=-1,K=c.length,G=K-1,ee=i;ee!=null&&++D<K;){var le=$r(c[D]),Se=C;if(le==="__proto__"||le==="constructor"||le==="prototype")return i;if(D!=G){var Ee=ee[le];Se=S?S(Ee,le,ee):t,Se===t&&(Se=on(Ee)?Ee:go(c[D+1])?[]:{})}Hi(ee,le,Se),ee=ee[le]}return i}var $p=yl?function(i,c){return yl.set(i,c),i}:$n,_3=Cl?function(i,c){return Cl(i,"toString",{configurable:!0,enumerable:!1,value:Zd(c),writable:!0})}:$n;function F3(i){return Pl(ei(i))}function xr(i,c,C){var S=-1,D=i.length;c<0&&(c=-c>D?0:D+c),C=C>D?D:C,C<0&&(C+=D),D=c>C?0:C-c>>>0,c>>>=0;for(var K=be(D);++S<D;)K[S]=i[S+c];return K}function W3(i,c){var C;return _o(i,function(S,D,K){return C=c(S,D,K),!C}),!!C}function Ml(i,c,C){var S=0,D=i==null?S:i.length;if(typeof c=="number"&&c===c&&D<=Me){for(;S<D;){var K=S+D>>>1,G=i[K];G!==null&&!sr(G)&&(C?G<=c:G<c)?S=K+1:D=K}return D}return yd(i,c,$n,C)}function yd(i,c,C,S){var D=0,K=i==null?0:i.length;if(K===0)return 0;c=C(c);for(var G=c!==c,ee=c===null,le=sr(c),Se=c===t;D<K;){var Ee=bl((D+K)/2),je=C(i[Ee]),ze=je!==t,Xe=je===null,lt=je===je,vt=sr(je);if(G)var ct=S||lt;else Se?ct=lt&&(S||ze):ee?ct=lt&&ze&&(S||!Xe):le?ct=lt&&ze&&!Xe&&(S||!vt):Xe||vt?ct=!1:ct=S?je<=c:je<c;ct?D=Ee+1:K=Ee}return Un(K,Te)}function eg(i,c){for(var C=-1,S=i.length,D=0,K=[];++C<S;){var G=i[C],ee=c?c(G):G;if(!C||!Br(ee,le)){var le=ee;K[D++]=G===0?0:G}}return K}function tg(i){return typeof i=="number"?i:sr(i)?oe:+i}function or(i){if(typeof i=="string")return i;if(At(i))return tn(i,or)+"";if(sr(i))return Ip?Ip.call(i):"";var c=i+"";return c=="0"&&1/i==-Z?"-0":c}function Fo(i,c,C){var S=-1,D=il,K=i.length,G=!0,ee=[],le=ee;if(C)G=!1,D=qu;else if(K>=o){var Se=c?null:J3(i);if(Se)return ll(Se);G=!1,D=_i,le=new gs}else le=c?[]:ee;e:for(;++S<K;){var Ee=i[S],je=c?c(Ee):Ee;if(Ee=C||Ee!==0?Ee:0,G&&je===je){for(var ze=le.length;ze--;)if(le[ze]===je)continue e;c&&le.push(je),ee.push(Ee)}else D(le,je,C)||(le!==ee&&le.push(je),ee.push(Ee))}return ee}function xd(i,c){c=Wo(c,i);var C=-1,S=c.length;if(!S)return!0;for(var D=i==null||typeof i!="object"&&typeof i!="function";++C<S;){var K=c[C];if(typeof K=="string"){if(K==="__proto__"&&!Wt.call(i,"__proto__"))return!1;if(K==="constructor"&&C+1<S&&typeof c[C+1]=="string"&&c[C+1]==="prototype"){if(D&&C===0)continue;return!1}}}var G=Lg(i,c);return G==null||delete G[$r(vr(c))]}function ng(i,c,C,S){return Vi(i,c,C(Cs(i,c)),S)}function Tl(i,c,C,S){for(var D=i.length,K=S?D:-1;(S?K--:++K<D)&&c(i[K],K,i););return C?xr(i,S?0:K,S?K+1:D):xr(i,S?K+1:0,S?D:K)}function rg(i,c){var C=i;return C instanceof Nt&&(C=C.value()),Qu(c,function(S,D){return D.func.apply(D.thisArg,Do([S],D.args))},C)}function vd(i,c,C){var S=i.length;if(S<2)return S?Fo(i[0]):[];for(var D=-1,K=be(S);++D<S;)for(var G=i[D],ee=-1;++ee<S;)ee!=D&&(K[D]=Yi(K[D]||G,i[ee],c,C));return Fo(Bn(K,1),c,C)}function og(i,c,C){for(var S=-1,D=i.length,K=c.length,G={};++S<D;){var ee=S<K?c[S]:t;C(G,i[S],ee)}return G}function wd(i){return dn(i)?i:[]}function kd(i){return typeof i=="function"?i:$n}function Wo(i,c){return At(i)?i:Id(i,c)?[i]:Ig(zt(i))}var z3=Et;function zo(i,c,C){var S=i.length;return C=C===t?S:C,!c&&C>=S?i:xr(i,c,C)}var sg=Ty||function(i){return Pn.clearTimeout(i)};function ig(i,c){if(c)return i.slice();var C=i.length,S=Mp?Mp(C):new i.constructor(C);return i.copy(S),S}function Sd(i){var c=new i.constructor(i.byteLength);return new pl(c).set(new pl(i)),c}function U3(i,c){var C=c?Sd(i.buffer):i.buffer;return new i.constructor(C,i.byteOffset,i.byteLength)}function K3(i){var c=new i.constructor(i.source,Ft.exec(i));return c.lastIndex=i.lastIndex,c}function H3(i){return Ki?Yt(Ki.call(i)):{}}function ag(i,c){var C=c?Sd(i.buffer):i.buffer;return new i.constructor(C,i.byteOffset,i.length)}function lg(i,c){if(i!==c){var C=i!==t,S=i===null,D=i===i,K=sr(i),G=c!==t,ee=c===null,le=c===c,Se=sr(c);if(!ee&&!Se&&!K&&i>c||K&&G&&le&&!ee&&!Se||S&&G&&le||!C&&le||!D)return 1;if(!S&&!K&&!Se&&i<c||Se&&C&&D&&!S&&!K||ee&&C&&D||!G&&D||!le)return-1}return 0}function Y3(i,c,C){for(var S=-1,D=i.criteria,K=c.criteria,G=D.length,ee=C.length;++S<G;){var le=lg(D[S],K[S]);if(le){if(S>=ee)return le;var Se=C[S];return le*(Se=="desc"?-1:1)}}return i.index-c.index}function cg(i,c,C,S){for(var D=-1,K=i.length,G=C.length,ee=-1,le=c.length,Se=kn(K-G,0),Ee=be(le+Se),je=!S;++ee<le;)Ee[ee]=c[ee];for(;++D<G;)(je||D<K)&&(Ee[C[D]]=i[D]);for(;Se--;)Ee[ee++]=i[D++];return Ee}function ug(i,c,C,S){for(var D=-1,K=i.length,G=-1,ee=C.length,le=-1,Se=c.length,Ee=kn(K-ee,0),je=be(Ee+Se),ze=!S;++D<Ee;)je[D]=i[D];for(var Xe=D;++le<Se;)je[Xe+le]=c[le];for(;++G<ee;)(ze||D<K)&&(je[Xe+C[G]]=i[D++]);return je}function Qn(i,c){var C=-1,S=i.length;for(c||(c=be(S));++C<S;)c[C]=i[C];return c}function Xr(i,c,C,S){var D=!C;C||(C={});for(var K=-1,G=c.length;++K<G;){var ee=c[K],le=S?S(C[ee],i[ee],ee,C,i):t;le===t&&(le=i[ee]),D?fo(C,ee,le):Hi(C,ee,le)}return C}function Z3(i,c){return Xr(i,jd(i),c)}function G3(i,c){return Xr(i,wg(i),c)}function Ll(i,c){return function(C,S){var D=At(C)?X5:g3,K=c?c():{};return D(C,i,it(S,2),K)}}function Qs(i){return Et(function(c,C){var S=-1,D=C.length,K=D>1?C[D-1]:t,G=D>2?C[2]:t;for(K=i.length>3&&typeof K=="function"?(D--,K):t,G&&Gn(C[0],C[1],G)&&(K=D<3?t:K,D=1),c=Yt(c);++S<D;){var ee=C[S];ee&&i(c,ee,S,K)}return c})}function dg(i,c){return function(C,S){if(C==null)return C;if(!Jn(C))return i(C,S);for(var D=C.length,K=c?D:-1,G=Yt(C);(c?K--:++K<D)&&S(G[K],K,G)!==!1;);return C}}function fg(i){return function(c,C,S){for(var D=-1,K=Yt(c),G=S(c),ee=G.length;ee--;){var le=G[i?ee:++D];if(C(K[le],le,K)===!1)break}return c}}function V3(i,c,C){var S=c&w,D=qi(i);function K(){var G=this&&this!==Pn&&this instanceof K?D:i;return G.apply(S?C:this,arguments)}return K}function hg(i){return function(c){c=zt(c);var C=Ks(c)?Dr(c):t,S=C?C[0]:c.charAt(0),D=C?zo(C,1).join(""):c.slice(1);return S[i]()+D}}function Js(i){return function(c){return Qu(dm(um(c).replace(_5,"")),i,"")}}function qi(i){return function(){var c=arguments;switch(c.length){case 0:return new i;case 1:return new i(c[0]);case 2:return new i(c[0],c[1]);case 3:return new i(c[0],c[1],c[2]);case 4:return new i(c[0],c[1],c[2],c[3]);case 5:return new i(c[0],c[1],c[2],c[3],c[4]);case 6:return new i(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new i(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var C=qs(i.prototype),S=i.apply(C,c);return on(S)?S:C}}function q3(i,c,C){var S=qi(i);function D(){for(var K=arguments.length,G=be(K),ee=K,le=Xs(D);ee--;)G[ee]=arguments[ee];var Se=K<3&&G[0]!==le&&G[K-1]!==le?[]:Po(G,le);if(K-=Se.length,K<C)return Ag(i,c,Nl,D.placeholder,t,G,Se,t,t,C-K);var Ee=this&&this!==Pn&&this instanceof D?S:i;return nr(Ee,this,G)}return D}function pg(i){return function(c,C,S){var D=Yt(c);if(!Jn(c)){var K=it(C,3);c=Ln(c),C=function(ee){return K(D[ee],ee,D)}}var G=i(c,C,S);return G>-1?D[K?c[G]:G]:t}}function gg(i){return po(function(c){var C=c.length,S=C,D=br.prototype.thru;for(i&&c.reverse();S--;){var K=c[S];if(typeof K!="function")throw new Ar(l);if(D&&!G&&Ol(K)=="wrapper")var G=new br([],!0)}for(S=G?S:C;++S<C;){K=c[S];var ee=Ol(K),le=ee=="wrapper"?Nd(K):t;le&&Od(le[0])&&le[1]==(M|O|R|P)&&!le[4].length&&le[9]==1?G=G[Ol(le[0])].apply(G,le[3]):G=K.length==1&&Od(K)?G[ee]():G.thru(K)}return function(){var Se=arguments,Ee=Se[0];if(G&&Se.length==1&&At(Ee))return G.plant(Ee).value();for(var je=0,ze=C?c[je].apply(this,Se):Ee;++je<C;)ze=c[je].call(this,ze);return ze}})}function Nl(i,c,C,S,D,K,G,ee,le,Se){var Ee=c&M,je=c&w,ze=c&k,Xe=c&(O|T),lt=c&I,vt=ze?t:qi(i);function ct(){for(var Lt=arguments.length,jt=be(Lt),ir=Lt;ir--;)jt[ir]=arguments[ir];if(Xe)var Vn=Xs(ct),ar=ay(jt,Vn);if(S&&(jt=cg(jt,S,D,Xe)),K&&(jt=ug(jt,K,G,Xe)),Lt-=ar,Xe&&Lt<Se){var fn=Po(jt,Vn);return Ag(i,c,Nl,ct.placeholder,C,jt,fn,ee,le,Se-Lt)}var _r=je?C:this,Ao=ze?_r[i]:i;return Lt=jt.length,ee?jt=gx(jt,ee):lt&&Lt>1&&jt.reverse(),Ee&&le<Lt&&(jt.length=le),this&&this!==Pn&&this instanceof ct&&(Ao=vt||qi(Ao)),Ao.apply(_r,jt)}return ct}function mg(i,c){return function(C,S){return w3(C,i,c(S),{})}}function Rl(i,c){return function(C,S){var D;if(C===t&&S===t)return c;if(C!==t&&(D=C),S!==t){if(D===t)return S;typeof C=="string"||typeof S=="string"?(C=or(C),S=or(S)):(C=tg(C),S=tg(S)),D=i(C,S)}return D}}function Ed(i){return po(function(c){return c=tn(c,rr(it())),Et(function(C){var S=this;return i(c,function(D){return nr(D,S,C)})})})}function jl(i,c){c=c===t?" ":or(c);var C=c.length;if(C<2)return C?bd(c,i):c;var S=bd(c,Al(i/Hs(c)));return Ks(c)?zo(Dr(S),0,i).join(""):S.slice(0,i)}function Q3(i,c,C,S){var D=c&w,K=qi(i);function G(){for(var ee=-1,le=arguments.length,Se=-1,Ee=S.length,je=be(Ee+le),ze=this&&this!==Pn&&this instanceof G?K:i;++Se<Ee;)je[Se]=S[Se];for(;le--;)je[Se++]=arguments[++ee];return nr(ze,D?C:this,je)}return G}function Cg(i){return function(c,C,S){return S&&typeof S!="number"&&Gn(c,C,S)&&(C=S=t),c=Co(c),C===t?(C=c,c=0):C=Co(C),S=S===t?c<C?1:-1:Co(S),D3(c,C,S,i)}}function Il(i){return function(c,C){return typeof c=="string"&&typeof C=="string"||(c=wr(c),C=wr(C)),i(c,C)}}function Ag(i,c,C,S,D,K,G,ee,le,Se){var Ee=c&O,je=Ee?G:t,ze=Ee?t:G,Xe=Ee?K:t,lt=Ee?t:K;c|=Ee?R:E,c&=~(Ee?E:R),c&L||(c&=-4);var vt=[i,c,D,Xe,je,lt,ze,ee,le,Se],ct=C.apply(t,vt);return Od(i)&&Ng(ct,vt),ct.placeholder=S,Rg(ct,i,c)}function Md(i){var c=wn[i];return function(C,S){if(C=wr(C),S=S==null?0:Un(bt(S),292),S&&Rp(C)){var D=(zt(C)+"e").split("e"),K=c(D[0]+"e"+(+D[1]+S));return D=(zt(K)+"e").split("e"),+(D[0]+"e"+(+D[1]-S))}return c(C)}}var J3=Gs&&1/ll(new Gs([,-0]))[1]==Z?function(i){return new Gs(i)}:qd;function bg(i){return function(c){var C=Kn(c);return C==J?rd(c):C==Pe?py(c):iy(c,i(c))}}function ho(i,c,C,S,D,K,G,ee){var le=c&k;if(!le&&typeof i!="function")throw new Ar(l);var Se=S?S.length:0;if(Se||(c&=-97,S=D=t),G=G===t?G:kn(bt(G),0),ee=ee===t?ee:bt(ee),Se-=D?D.length:0,c&E){var Ee=S,je=D;S=D=t}var ze=le?t:Nd(i),Xe=[i,c,C,S,D,Ee,je,K,G,ee];if(ze&&fx(Xe,ze),i=Xe[0],c=Xe[1],C=Xe[2],S=Xe[3],D=Xe[4],ee=Xe[9]=Xe[9]===t?le?0:i.length:kn(Xe[9]-Se,0),!ee&&c&(O|T)&&(c&=-25),!c||c==w)var lt=V3(i,c,C);else c==O||c==T?lt=q3(i,c,ee):(c==R||c==(w|R))&&!D.length?lt=Q3(i,c,C,S):lt=Nl.apply(t,Xe);var vt=ze?$p:Ng;return Rg(vt(lt,Xe),i,c)}function yg(i,c,C,S){return i===t||Br(i,Zs[C])&&!Wt.call(S,C)?c:i}function xg(i,c,C,S,D,K){return on(i)&&on(c)&&(K.set(c,i),El(i,c,t,xg,K),K.delete(c)),i}function X3(i){return Xi(i)?t:i}function vg(i,c,C,S,D,K){var G=C&b,ee=i.length,le=c.length;if(ee!=le&&!(G&&le>ee))return!1;var Se=K.get(i),Ee=K.get(c);if(Se&&Ee)return Se==c&&Ee==i;var je=-1,ze=!0,Xe=C&x?new gs:t;for(K.set(i,c),K.set(c,i);++je<ee;){var lt=i[je],vt=c[je];if(S)var ct=G?S(vt,lt,je,c,i,K):S(lt,vt,je,i,c,K);if(ct!==t){if(ct)continue;ze=!1;break}if(Xe){if(!Ju(c,function(Lt,jt){if(!_i(Xe,jt)&&(lt===Lt||D(lt,Lt,C,S,K)))return Xe.push(jt)})){ze=!1;break}}else if(!(lt===vt||D(lt,vt,C,S,K))){ze=!1;break}}return K.delete(i),K.delete(c),ze}function $3(i,c,C,S,D,K,G){switch(C){case V:if(i.byteLength!=c.byteLength||i.byteOffset!=c.byteOffset)return!1;i=i.buffer,c=c.buffer;case _t:return!(i.byteLength!=c.byteLength||!K(new pl(i),new pl(c)));case ce:case ie:case $:return Br(+i,+c);case H:return i.name==c.name&&i.message==c.message;case De:case Ue:return i==c+"";case J:var ee=rd;case Pe:var le=S&b;if(ee||(ee=ll),i.size!=c.size&&!le)return!1;var Se=G.get(i);if(Se)return Se==c;S|=x,G.set(i,c);var Ee=vg(ee(i),ee(c),S,D,K,G);return G.delete(i),Ee;case Ze:if(Ki)return Ki.call(i)==Ki.call(c)}return!1}function ex(i,c,C,S,D,K){var G=C&b,ee=Td(i),le=ee.length,Se=Td(c),Ee=Se.length;if(le!=Ee&&!G)return!1;for(var je=le;je--;){var ze=ee[je];if(!(G?ze in c:Wt.call(c,ze)))return!1}var Xe=K.get(i),lt=K.get(c);if(Xe&&lt)return Xe==c&&lt==i;var vt=!0;K.set(i,c),K.set(c,i);for(var ct=G;++je<le;){ze=ee[je];var Lt=i[ze],jt=c[ze];if(S)var ir=G?S(jt,Lt,ze,c,i,K):S(Lt,jt,ze,i,c,K);if(!(ir===t?Lt===jt||D(Lt,jt,C,S,K):ir)){vt=!1;break}ct||(ct=ze=="constructor")}if(vt&&!ct){var Vn=i.constructor,ar=c.constructor;Vn!=ar&&"constructor"in i&&"constructor"in c&&!(typeof Vn=="function"&&Vn instanceof Vn&&typeof ar=="function"&&ar instanceof ar)&&(vt=!1)}return K.delete(i),K.delete(c),vt}function po(i){return Pd(Tg(i,t,Bg),i+"")}function Td(i){return Up(i,Ln,jd)}function Ld(i){return Up(i,Xn,wg)}var Nd=yl?function(i){return yl.get(i)}:qd;function Ol(i){for(var c=i.name+"",C=Vs[c],S=Wt.call(Vs,c)?C.length:0;S--;){var D=C[S],K=D.func;if(K==null||K==i)return D.name}return c}function Xs(i){var c=Wt.call(z,"placeholder")?z:i;return c.placeholder}function it(){var i=z.iteratee||Gd;return i=i===Gd?Yp:i,arguments.length?i(arguments[0],arguments[1]):i}function Dl(i,c){var C=i.__data__;return lx(c)?C[typeof c=="string"?"string":"hash"]:C.map}function Rd(i){for(var c=Ln(i),C=c.length;C--;){var S=c[C],D=i[S];c[C]=[S,D,Eg(D)]}return c}function As(i,c){var C=dy(i,c);return Hp(C)?C:t}function tx(i){var c=Wt.call(i,hs),C=i[hs];try{i[hs]=t;var S=!0}catch{}var D=fl.call(i);return S&&(c?i[hs]=C:delete i[hs]),D}var jd=sd?function(i){return i==null?[]:(i=Yt(i),Oo(sd(i),function(c){return Lp.call(i,c)}))}:Qd,wg=sd?function(i){for(var c=[];i;)Do(c,jd(i)),i=gl(i);return c}:Qd,Kn=Zn;(id&&Kn(new id(new ArrayBuffer(1)))!=V||Wi&&Kn(new Wi)!=J||ad&&Kn(ad.resolve())!=ke||Gs&&Kn(new Gs)!=Pe||zi&&Kn(new zi)!=Mt)&&(Kn=function(i){var c=Zn(i),C=c==me?i.constructor:t,S=C?bs(C):"";if(S)switch(S){case By:return V;case _y:return J;case Fy:return ke;case Wy:return Pe;case zy:return Mt}return c});function nx(i,c,C){for(var S=-1,D=C.length;++S<D;){var K=C[S],G=K.size;switch(K.type){case"drop":i+=G;break;case"dropRight":c-=G;break;case"take":c=Un(c,i+G);break;case"takeRight":i=kn(i,c-G);break}}return{start:i,end:c}}function rx(i){var c=i.match(kt);return c?c[1].split(St):[]}function kg(i,c,C){c=Wo(c,i);for(var S=-1,D=c.length,K=!1;++S<D;){var G=$r(c[S]);if(!(K=i!=null&&C(i,G)))break;i=i[G]}return K||++S!=D?K:(D=i==null?0:i.length,!!D&&Ul(D)&&go(G,D)&&(At(i)||ys(i)))}function ox(i){var c=i.length,C=new i.constructor(c);return c&&typeof i[0]=="string"&&Wt.call(i,"index")&&(C.index=i.index,C.input=i.input),C}function Sg(i){return typeof i.constructor=="function"&&!Qi(i)?qs(gl(i)):{}}function sx(i,c,C){var S=i.constructor;switch(c){case _t:return Sd(i);case ce:case ie:return new S(+i);case V:return U3(i,C);case de:case he:case Le:case Oe:case fe:case ge:case pe:case We:case _e:return ag(i,C);case J:return new S;case $:case Ue:return new S(i);case De:return K3(i);case Pe:return new S;case Ze:return H3(i)}}function ix(i,c){var C=c.length;if(!C)return i;var S=C-1;return c[S]=(C>1?"& ":"")+c[S],c=c.join(C>2?", ":" "),i.replace(nn,`{
208
+ /* [wrapped with `+c+`] */
209
+ `)}function ax(i){return At(i)||ys(i)||!!(Np&&i&&i[Np])}function go(i,c){var C=typeof i;return c=c??Q,!!c&&(C=="number"||C!="symbol"&&Jt.test(i))&&i>-1&&i%1==0&&i<c}function Gn(i,c,C){if(!on(C))return!1;var S=typeof c;return(S=="number"?Jn(C)&&go(c,C.length):S=="string"&&c in C)?Br(C[c],i):!1}function Id(i,c){if(At(i))return!1;var C=typeof i;return C=="number"||C=="symbol"||C=="boolean"||i==null||sr(i)?!0:Ke.test(i)||!ut.test(i)||c!=null&&i in Yt(c)}function lx(i){var c=typeof i;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?i!=="__proto__":i===null}function Od(i){var c=Ol(i),C=z[c];if(typeof C!="function"||!(c in Nt.prototype))return!1;if(i===C)return!0;var S=Nd(C);return!!S&&i===S[0]}function cx(i){return!!Ep&&Ep in i}var ux=ul?mo:Jd;function Qi(i){var c=i&&i.constructor,C=typeof c=="function"&&c.prototype||Zs;return i===C}function Eg(i){return i===i&&!on(i)}function Mg(i,c){return function(C){return C==null?!1:C[i]===c&&(c!==t||i in Yt(C))}}function dx(i){var c=Wl(i,function(S){return C.size===f&&C.clear(),S}),C=c.cache;return c}function fx(i,c){var C=i[1],S=c[1],D=C|S,K=D<(w|k|M),G=S==M&&C==O||S==M&&C==P&&i[7].length<=c[8]||S==(M|P)&&c[7].length<=c[8]&&C==O;if(!(K||G))return i;S&w&&(i[2]=c[2],D|=C&w?0:L);var ee=c[3];if(ee){var le=i[3];i[3]=le?cg(le,ee,c[4]):ee,i[4]=le?Po(i[3],h):c[4]}return ee=c[5],ee&&(le=i[5],i[5]=le?ug(le,ee,c[6]):ee,i[6]=le?Po(i[5],h):c[6]),ee=c[7],ee&&(i[7]=ee),S&M&&(i[8]=i[8]==null?c[8]:Un(i[8],c[8])),i[9]==null&&(i[9]=c[9]),i[0]=c[0],i[1]=D,i}function hx(i){var c=[];if(i!=null)for(var C in Yt(i))c.push(C);return c}function px(i){return fl.call(i)}function Tg(i,c,C){return c=kn(c===t?i.length-1:c,0),function(){for(var S=arguments,D=-1,K=kn(S.length-c,0),G=be(K);++D<K;)G[D]=S[c+D];D=-1;for(var ee=be(c+1);++D<c;)ee[D]=S[D];return ee[c]=C(G),nr(i,this,ee)}}function Lg(i,c){return c.length<2?i:Cs(i,xr(c,0,-1))}function gx(i,c){for(var C=i.length,S=Un(c.length,C),D=Qn(i);S--;){var K=c[S];i[S]=go(K,C)?D[K]:t}return i}function Dd(i,c){if(!(c==="constructor"&&typeof i[c]=="function")&&c!="__proto__")return i[c]}var Ng=jg($p),Ji=Ny||function(i,c){return Pn.setTimeout(i,c)},Pd=jg(_3);function Rg(i,c,C){var S=c+"";return Pd(i,ix(S,mx(rx(S),C)))}function jg(i){var c=0,C=0;return function(){var S=Oy(),D=j-(S-C);if(C=S,D>0){if(++c>=N)return arguments[0]}else c=0;return i.apply(t,arguments)}}function Pl(i,c){var C=-1,S=i.length,D=S-1;for(c=c===t?S:c;++C<c;){var K=Ad(C,D),G=i[K];i[K]=i[C],i[C]=G}return i.length=c,i}var Ig=dx(function(i){var c=[];return i.charCodeAt(0)===46&&c.push(""),i.replace(ot,function(C,S,D,K){c.push(D?K.replace(Dt,"$1"):S||C)}),c});function $r(i){if(typeof i=="string"||sr(i))return i;var c=i+"";return c=="0"&&1/i==-Z?"-0":c}function bs(i){if(i!=null){try{return dl.call(i)}catch{}try{return i+""}catch{}}return""}function mx(i,c){return Cr(Re,function(C){var S="_."+C[0];c&C[1]&&!il(i,S)&&i.push(S)}),i.sort()}function Og(i){if(i instanceof Nt)return i.clone();var c=new br(i.__wrapped__,i.__chain__);return c.__actions__=Qn(i.__actions__),c.__index__=i.__index__,c.__values__=i.__values__,c}function Cx(i,c,C){(C?Gn(i,c,C):c===t)?c=1:c=kn(bt(c),0);var S=i==null?0:i.length;if(!S||c<1)return[];for(var D=0,K=0,G=be(Al(S/c));D<S;)G[K++]=xr(i,D,D+=c);return G}function Ax(i){for(var c=-1,C=i==null?0:i.length,S=0,D=[];++c<C;){var K=i[c];K&&(D[S++]=K)}return D}function bx(){var i=arguments.length;if(!i)return[];for(var c=be(i-1),C=arguments[0],S=i;S--;)c[S-1]=arguments[S];return Do(At(C)?Qn(C):[C],Bn(c,1))}var yx=Et(function(i,c){return dn(i)?Yi(i,Bn(c,1,dn,!0)):[]}),xx=Et(function(i,c){var C=vr(c);return dn(C)&&(C=t),dn(i)?Yi(i,Bn(c,1,dn,!0),it(C,2)):[]}),vx=Et(function(i,c){var C=vr(c);return dn(C)&&(C=t),dn(i)?Yi(i,Bn(c,1,dn,!0),t,C):[]});function wx(i,c,C){var S=i==null?0:i.length;return S?(c=C||c===t?1:bt(c),xr(i,c<0?0:c,S)):[]}function kx(i,c,C){var S=i==null?0:i.length;return S?(c=C||c===t?1:bt(c),c=S-c,xr(i,0,c<0?0:c)):[]}function Sx(i,c){return i&&i.length?Tl(i,it(c,3),!0,!0):[]}function Ex(i,c){return i&&i.length?Tl(i,it(c,3),!0):[]}function Mx(i,c,C,S){var D=i==null?0:i.length;return D?(C&&typeof C!="number"&&Gn(i,c,C)&&(C=0,S=D),b3(i,c,C,S)):[]}function Dg(i,c,C){var S=i==null?0:i.length;if(!S)return-1;var D=C==null?0:bt(C);return D<0&&(D=kn(S+D,0)),al(i,it(c,3),D)}function Pg(i,c,C){var S=i==null?0:i.length;if(!S)return-1;var D=S-1;return C!==t&&(D=bt(C),D=C<0?kn(S+D,0):Un(D,S-1)),al(i,it(c,3),D,!0)}function Bg(i){var c=i==null?0:i.length;return c?Bn(i,1):[]}function Tx(i){var c=i==null?0:i.length;return c?Bn(i,Z):[]}function Lx(i,c){var C=i==null?0:i.length;return C?(c=c===t?1:bt(c),Bn(i,c)):[]}function Nx(i){for(var c=-1,C=i==null?0:i.length,S={};++c<C;){var D=i[c];S[D[0]]=D[1]}return S}function _g(i){return i&&i.length?i[0]:t}function Rx(i,c,C){var S=i==null?0:i.length;if(!S)return-1;var D=C==null?0:bt(C);return D<0&&(D=kn(S+D,0)),Us(i,c,D)}function jx(i){var c=i==null?0:i.length;return c?xr(i,0,-1):[]}var Ix=Et(function(i){var c=tn(i,wd);return c.length&&c[0]===i[0]?hd(c):[]}),Ox=Et(function(i){var c=vr(i),C=tn(i,wd);return c===vr(C)?c=t:C.pop(),C.length&&C[0]===i[0]?hd(C,it(c,2)):[]}),Dx=Et(function(i){var c=vr(i),C=tn(i,wd);return c=typeof c=="function"?c:t,c&&C.pop(),C.length&&C[0]===i[0]?hd(C,t,c):[]});function Px(i,c){return i==null?"":jy.call(i,c)}function vr(i){var c=i==null?0:i.length;return c?i[c-1]:t}function Bx(i,c,C){var S=i==null?0:i.length;if(!S)return-1;var D=S;return C!==t&&(D=bt(C),D=D<0?kn(S+D,0):Un(D,S-1)),c===c?my(i,c,D):al(i,Ap,D,!0)}function _x(i,c){return i&&i.length?qp(i,bt(c)):t}var Fx=Et(Fg);function Fg(i,c){return i&&i.length&&c&&c.length?Cd(i,c):i}function Wx(i,c,C){return i&&i.length&&c&&c.length?Cd(i,c,it(C,2)):i}function zx(i,c,C){return i&&i.length&&c&&c.length?Cd(i,c,t,C):i}var Ux=po(function(i,c){var C=i==null?0:i.length,S=cd(i,c);return Xp(i,tn(c,function(D){return go(D,C)?+D:D}).sort(lg)),S});function Kx(i,c){var C=[];if(!(i&&i.length))return C;var S=-1,D=[],K=i.length;for(c=it(c,3);++S<K;){var G=i[S];c(G,S,i)&&(C.push(G),D.push(S))}return Xp(i,D),C}function Bd(i){return i==null?i:Py.call(i)}function Hx(i,c,C){var S=i==null?0:i.length;return S?(C&&typeof C!="number"&&Gn(i,c,C)?(c=0,C=S):(c=c==null?0:bt(c),C=C===t?S:bt(C)),xr(i,c,C)):[]}function Yx(i,c){return Ml(i,c)}function Zx(i,c,C){return yd(i,c,it(C,2))}function Gx(i,c){var C=i==null?0:i.length;if(C){var S=Ml(i,c);if(S<C&&Br(i[S],c))return S}return-1}function Vx(i,c){return Ml(i,c,!0)}function qx(i,c,C){return yd(i,c,it(C,2),!0)}function Qx(i,c){var C=i==null?0:i.length;if(C){var S=Ml(i,c,!0)-1;if(Br(i[S],c))return S}return-1}function Jx(i){return i&&i.length?eg(i):[]}function Xx(i,c){return i&&i.length?eg(i,it(c,2)):[]}function $x(i){var c=i==null?0:i.length;return c?xr(i,1,c):[]}function e6(i,c,C){return i&&i.length?(c=C||c===t?1:bt(c),xr(i,0,c<0?0:c)):[]}function t6(i,c,C){var S=i==null?0:i.length;return S?(c=C||c===t?1:bt(c),c=S-c,xr(i,c<0?0:c,S)):[]}function n6(i,c){return i&&i.length?Tl(i,it(c,3),!1,!0):[]}function r6(i,c){return i&&i.length?Tl(i,it(c,3)):[]}var o6=Et(function(i){return Fo(Bn(i,1,dn,!0))}),s6=Et(function(i){var c=vr(i);return dn(c)&&(c=t),Fo(Bn(i,1,dn,!0),it(c,2))}),i6=Et(function(i){var c=vr(i);return c=typeof c=="function"?c:t,Fo(Bn(i,1,dn,!0),t,c)});function a6(i){return i&&i.length?Fo(i):[]}function l6(i,c){return i&&i.length?Fo(i,it(c,2)):[]}function c6(i,c){return c=typeof c=="function"?c:t,i&&i.length?Fo(i,t,c):[]}function _d(i){if(!(i&&i.length))return[];var c=0;return i=Oo(i,function(C){if(dn(C))return c=kn(C.length,c),!0}),td(c,function(C){return tn(i,Xu(C))})}function Wg(i,c){if(!(i&&i.length))return[];var C=_d(i);return c==null?C:tn(C,function(S){return nr(c,t,S)})}var u6=Et(function(i,c){return dn(i)?Yi(i,c):[]}),d6=Et(function(i){return vd(Oo(i,dn))}),f6=Et(function(i){var c=vr(i);return dn(c)&&(c=t),vd(Oo(i,dn),it(c,2))}),h6=Et(function(i){var c=vr(i);return c=typeof c=="function"?c:t,vd(Oo(i,dn),t,c)}),p6=Et(_d);function g6(i,c){return og(i||[],c||[],Hi)}function m6(i,c){return og(i||[],c||[],Vi)}var C6=Et(function(i){var c=i.length,C=c>1?i[c-1]:t;return C=typeof C=="function"?(i.pop(),C):t,Wg(i,C)});function zg(i){var c=z(i);return c.__chain__=!0,c}function A6(i,c){return c(i),i}function Bl(i,c){return c(i)}var b6=po(function(i){var c=i.length,C=c?i[0]:0,S=this.__wrapped__,D=function(K){return cd(K,i)};return c>1||this.__actions__.length||!(S instanceof Nt)||!go(C)?this.thru(D):(S=S.slice(C,+C+(c?1:0)),S.__actions__.push({func:Bl,args:[D],thisArg:t}),new br(S,this.__chain__).thru(function(K){return c&&!K.length&&K.push(t),K}))});function y6(){return zg(this)}function x6(){return new br(this.value(),this.__chain__)}function v6(){this.__values__===t&&(this.__values__=tm(this.value()));var i=this.__index__>=this.__values__.length,c=i?t:this.__values__[this.__index__++];return{done:i,value:c}}function w6(){return this}function k6(i){for(var c,C=this;C instanceof vl;){var S=Og(C);S.__index__=0,S.__values__=t,c?D.__wrapped__=S:c=S;var D=S;C=C.__wrapped__}return D.__wrapped__=i,c}function S6(){var i=this.__wrapped__;if(i instanceof Nt){var c=i;return this.__actions__.length&&(c=new Nt(this)),c=c.reverse(),c.__actions__.push({func:Bl,args:[Bd],thisArg:t}),new br(c,this.__chain__)}return this.thru(Bd)}function E6(){return rg(this.__wrapped__,this.__actions__)}var M6=Ll(function(i,c,C){Wt.call(i,C)?++i[C]:fo(i,C,1)});function T6(i,c,C){var S=At(i)?mp:A3;return C&&Gn(i,c,C)&&(c=t),S(i,it(c,3))}function L6(i,c){var C=At(i)?Oo:Wp;return C(i,it(c,3))}var N6=pg(Dg),R6=pg(Pg);function j6(i,c){return Bn(_l(i,c),1)}function I6(i,c){return Bn(_l(i,c),Z)}function O6(i,c,C){return C=C===t?1:bt(C),Bn(_l(i,c),C)}function Ug(i,c){var C=At(i)?Cr:_o;return C(i,it(c,3))}function Kg(i,c){var C=At(i)?$5:Fp;return C(i,it(c,3))}var D6=Ll(function(i,c,C){Wt.call(i,C)?i[C].push(c):fo(i,C,[c])});function P6(i,c,C,S){i=Jn(i)?i:ei(i),C=C&&!S?bt(C):0;var D=i.length;return C<0&&(C=kn(D+C,0)),Kl(i)?C<=D&&i.indexOf(c,C)>-1:!!D&&Us(i,c,C)>-1}var B6=Et(function(i,c,C){var S=-1,D=typeof c=="function",K=Jn(i)?be(i.length):[];return _o(i,function(G){K[++S]=D?nr(c,G,C):Zi(G,c,C)}),K}),_6=Ll(function(i,c,C){fo(i,C,c)});function _l(i,c){var C=At(i)?tn:Zp;return C(i,it(c,3))}function F6(i,c,C,S){return i==null?[]:(At(c)||(c=c==null?[]:[c]),C=S?t:C,At(C)||(C=C==null?[]:[C]),Qp(i,c,C))}var W6=Ll(function(i,c,C){i[C?0:1].push(c)},function(){return[[],[]]});function z6(i,c,C){var S=At(i)?Qu:yp,D=arguments.length<3;return S(i,it(c,4),C,D,_o)}function U6(i,c,C){var S=At(i)?ey:yp,D=arguments.length<3;return S(i,it(c,4),C,D,Fp)}function K6(i,c){var C=At(i)?Oo:Wp;return C(i,zl(it(c,3)))}function H6(i){var c=At(i)?Dp:P3;return c(i)}function Y6(i,c,C){(C?Gn(i,c,C):c===t)?c=1:c=bt(c);var S=At(i)?h3:B3;return S(i,c)}function Z6(i){var c=At(i)?p3:F3;return c(i)}function G6(i){if(i==null)return 0;if(Jn(i))return Kl(i)?Hs(i):i.length;var c=Kn(i);return c==J||c==Pe?i.size:gd(i).length}function V6(i,c,C){var S=At(i)?Ju:W3;return C&&Gn(i,c,C)&&(c=t),S(i,it(c,3))}var q6=Et(function(i,c){if(i==null)return[];var C=c.length;return C>1&&Gn(i,c[0],c[1])?c=[]:C>2&&Gn(c[0],c[1],c[2])&&(c=[c[0]]),Qp(i,Bn(c,1),[])}),Fl=Ly||function(){return Pn.Date.now()};function Q6(i,c){if(typeof c!="function")throw new Ar(l);return i=bt(i),function(){if(--i<1)return c.apply(this,arguments)}}function Hg(i,c,C){return c=C?t:c,c=i&&c==null?i.length:c,ho(i,M,t,t,t,t,c)}function Yg(i,c){var C;if(typeof c!="function")throw new Ar(l);return i=bt(i),function(){return--i>0&&(C=c.apply(this,arguments)),i<=1&&(c=t),C}}var Fd=Et(function(i,c,C){var S=w;if(C.length){var D=Po(C,Xs(Fd));S|=R}return ho(i,S,c,C,D)}),Zg=Et(function(i,c,C){var S=w|k;if(C.length){var D=Po(C,Xs(Zg));S|=R}return ho(c,S,i,C,D)});function Gg(i,c,C){c=C?t:c;var S=ho(i,O,t,t,t,t,t,c);return S.placeholder=Gg.placeholder,S}function Vg(i,c,C){c=C?t:c;var S=ho(i,T,t,t,t,t,t,c);return S.placeholder=Vg.placeholder,S}function qg(i,c,C){var S,D,K,G,ee,le,Se=0,Ee=!1,je=!1,ze=!0;if(typeof i!="function")throw new Ar(l);c=wr(c)||0,on(C)&&(Ee=!!C.leading,je="maxWait"in C,K=je?kn(wr(C.maxWait)||0,c):K,ze="trailing"in C?!!C.trailing:ze);function Xe(fn){var _r=S,Ao=D;return S=D=t,Se=fn,G=i.apply(Ao,_r),G}function lt(fn){return Se=fn,ee=Ji(Lt,c),Ee?Xe(fn):G}function vt(fn){var _r=fn-le,Ao=fn-Se,pm=c-_r;return je?Un(pm,K-Ao):pm}function ct(fn){var _r=fn-le,Ao=fn-Se;return le===t||_r>=c||_r<0||je&&Ao>=K}function Lt(){var fn=Fl();if(ct(fn))return jt(fn);ee=Ji(Lt,vt(fn))}function jt(fn){return ee=t,ze&&S?Xe(fn):(S=D=t,G)}function ir(){ee!==t&&sg(ee),Se=0,S=le=D=ee=t}function Vn(){return ee===t?G:jt(Fl())}function ar(){var fn=Fl(),_r=ct(fn);if(S=arguments,D=this,le=fn,_r){if(ee===t)return lt(le);if(je)return sg(ee),ee=Ji(Lt,c),Xe(le)}return ee===t&&(ee=Ji(Lt,c)),G}return ar.cancel=ir,ar.flush=Vn,ar}var J6=Et(function(i,c){return _p(i,1,c)}),X6=Et(function(i,c,C){return _p(i,wr(c)||0,C)});function $6(i){return ho(i,I)}function Wl(i,c){if(typeof i!="function"||c!=null&&typeof c!="function")throw new Ar(l);var C=function(){var S=arguments,D=c?c.apply(this,S):S[0],K=C.cache;if(K.has(D))return K.get(D);var G=i.apply(this,S);return C.cache=K.set(D,G)||K,G};return C.cache=new(Wl.Cache||uo),C}Wl.Cache=uo;function zl(i){if(typeof i!="function")throw new Ar(l);return function(){var c=arguments;switch(c.length){case 0:return!i.call(this);case 1:return!i.call(this,c[0]);case 2:return!i.call(this,c[0],c[1]);case 3:return!i.call(this,c[0],c[1],c[2])}return!i.apply(this,c)}}function ev(i){return Yg(2,i)}var tv=z3(function(i,c){c=c.length==1&&At(c[0])?tn(c[0],rr(it())):tn(Bn(c,1),rr(it()));var C=c.length;return Et(function(S){for(var D=-1,K=Un(S.length,C);++D<K;)S[D]=c[D].call(this,S[D]);return nr(i,this,S)})}),Wd=Et(function(i,c){var C=Po(c,Xs(Wd));return ho(i,R,t,c,C)}),Qg=Et(function(i,c){var C=Po(c,Xs(Qg));return ho(i,E,t,c,C)}),nv=po(function(i,c){return ho(i,P,t,t,t,c)});function rv(i,c){if(typeof i!="function")throw new Ar(l);return c=c===t?c:bt(c),Et(i,c)}function ov(i,c){if(typeof i!="function")throw new Ar(l);return c=c==null?0:kn(bt(c),0),Et(function(C){var S=C[c],D=zo(C,0,c);return S&&Do(D,S),nr(i,this,D)})}function sv(i,c,C){var S=!0,D=!0;if(typeof i!="function")throw new Ar(l);return on(C)&&(S="leading"in C?!!C.leading:S,D="trailing"in C?!!C.trailing:D),qg(i,c,{leading:S,maxWait:c,trailing:D})}function iv(i){return Hg(i,1)}function av(i,c){return Wd(kd(c),i)}function lv(){if(!arguments.length)return[];var i=arguments[0];return At(i)?i:[i]}function cv(i){return yr(i,y)}function uv(i,c){return c=typeof c=="function"?c:t,yr(i,y,c)}function dv(i){return yr(i,m|y)}function fv(i,c){return c=typeof c=="function"?c:t,yr(i,m|y,c)}function hv(i,c){return c==null||Bp(i,c,Ln(c))}function Br(i,c){return i===c||i!==i&&c!==c}var pv=Il(fd),gv=Il(function(i,c){return i>=c}),ys=Kp((function(){return arguments})())?Kp:function(i){return an(i)&&Wt.call(i,"callee")&&!Lp.call(i,"callee")},At=be.isArray,mv=up?rr(up):k3;function Jn(i){return i!=null&&Ul(i.length)&&!mo(i)}function dn(i){return an(i)&&Jn(i)}function Cv(i){return i===!0||i===!1||an(i)&&Zn(i)==ce}var Uo=Ry||Jd,Av=dp?rr(dp):S3;function bv(i){return an(i)&&i.nodeType===1&&!Xi(i)}function yv(i){if(i==null)return!0;if(Jn(i)&&(At(i)||typeof i=="string"||typeof i.splice=="function"||Uo(i)||$s(i)||ys(i)))return!i.length;var c=Kn(i);if(c==J||c==Pe)return!i.size;if(Qi(i))return!gd(i).length;for(var C in i)if(Wt.call(i,C))return!1;return!0}function xv(i,c){return Gi(i,c)}function vv(i,c,C){C=typeof C=="function"?C:t;var S=C?C(i,c):t;return S===t?Gi(i,c,t,C):!!S}function zd(i){if(!an(i))return!1;var c=Zn(i);return c==H||c==ne||typeof i.message=="string"&&typeof i.name=="string"&&!Xi(i)}function wv(i){return typeof i=="number"&&Rp(i)}function mo(i){if(!on(i))return!1;var c=Zn(i);return c==X||c==Y||c==q||c==Fe}function Jg(i){return typeof i=="number"&&i==bt(i)}function Ul(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Q}function on(i){var c=typeof i;return i!=null&&(c=="object"||c=="function")}function an(i){return i!=null&&typeof i=="object"}var Xg=fp?rr(fp):M3;function kv(i,c){return i===c||pd(i,c,Rd(c))}function Sv(i,c,C){return C=typeof C=="function"?C:t,pd(i,c,Rd(c),C)}function Ev(i){return $g(i)&&i!=+i}function Mv(i){if(ux(i))throw new mt(s);return Hp(i)}function Tv(i){return i===null}function Lv(i){return i==null}function $g(i){return typeof i=="number"||an(i)&&Zn(i)==$}function Xi(i){if(!an(i)||Zn(i)!=me)return!1;var c=gl(i);if(c===null)return!0;var C=Wt.call(c,"constructor")&&c.constructor;return typeof C=="function"&&C instanceof C&&dl.call(C)==Sy}var Ud=hp?rr(hp):T3;function Nv(i){return Jg(i)&&i>=-Q&&i<=Q}var em=pp?rr(pp):L3;function Kl(i){return typeof i=="string"||!At(i)&&an(i)&&Zn(i)==Ue}function sr(i){return typeof i=="symbol"||an(i)&&Zn(i)==Ze}var $s=gp?rr(gp):N3;function Rv(i){return i===t}function jv(i){return an(i)&&Kn(i)==Mt}function Iv(i){return an(i)&&Zn(i)==Gt}var Ov=Il(md),Dv=Il(function(i,c){return i<=c});function tm(i){if(!i)return[];if(Jn(i))return Kl(i)?Dr(i):Qn(i);if(Fi&&i[Fi])return hy(i[Fi]());var c=Kn(i),C=c==J?rd:c==Pe?ll:ei;return C(i)}function Co(i){if(!i)return i===0?i:0;if(i=wr(i),i===Z||i===-Z){var c=i<0?-1:1;return c*re}return i===i?i:0}function bt(i){var c=Co(i),C=c%1;return c===c?C?c-C:c:0}function nm(i){return i?ms(bt(i),0,Ce):0}function wr(i){if(typeof i=="number")return i;if(sr(i))return oe;if(on(i)){var c=typeof i.valueOf=="function"?i.valueOf():i;i=on(c)?c+"":c}if(typeof i!="string")return i===0?i:+i;i=xp(i);var C=Vt.test(i);return C||Ct.test(i)?Q5(i.slice(2),C?2:8):Ht.test(i)?oe:+i}function rm(i){return Xr(i,Xn(i))}function Pv(i){return i?ms(bt(i),-Q,Q):i===0?i:0}function zt(i){return i==null?"":or(i)}var Bv=Qs(function(i,c){if(Qi(c)||Jn(c)){Xr(c,Ln(c),i);return}for(var C in c)Wt.call(c,C)&&Hi(i,C,c[C])}),om=Qs(function(i,c){Xr(c,Xn(c),i)}),Hl=Qs(function(i,c,C,S){Xr(c,Xn(c),i,S)}),_v=Qs(function(i,c,C,S){Xr(c,Ln(c),i,S)}),Fv=po(cd);function Wv(i,c){var C=qs(i);return c==null?C:Pp(C,c)}var zv=Et(function(i,c){i=Yt(i);var C=-1,S=c.length,D=S>2?c[2]:t;for(D&&Gn(c[0],c[1],D)&&(S=1);++C<S;)for(var K=c[C],G=Xn(K),ee=-1,le=G.length;++ee<le;){var Se=G[ee],Ee=i[Se];(Ee===t||Br(Ee,Zs[Se])&&!Wt.call(i,Se))&&(i[Se]=K[Se])}return i}),Uv=Et(function(i){return i.push(t,xg),nr(sm,t,i)});function Kv(i,c){return Cp(i,it(c,3),Jr)}function Hv(i,c){return Cp(i,it(c,3),dd)}function Yv(i,c){return i==null?i:ud(i,it(c,3),Xn)}function Zv(i,c){return i==null?i:zp(i,it(c,3),Xn)}function Gv(i,c){return i&&Jr(i,it(c,3))}function Vv(i,c){return i&&dd(i,it(c,3))}function qv(i){return i==null?[]:Sl(i,Ln(i))}function Qv(i){return i==null?[]:Sl(i,Xn(i))}function Kd(i,c,C){var S=i==null?t:Cs(i,c);return S===t?C:S}function Jv(i,c){return i!=null&&kg(i,c,y3)}function Hd(i,c){return i!=null&&kg(i,c,x3)}var Xv=mg(function(i,c,C){c!=null&&typeof c.toString!="function"&&(c=fl.call(c)),i[c]=C},Zd($n)),$v=mg(function(i,c,C){c!=null&&typeof c.toString!="function"&&(c=fl.call(c)),Wt.call(i,c)?i[c].push(C):i[c]=[C]},it),e4=Et(Zi);function Ln(i){return Jn(i)?Op(i):gd(i)}function Xn(i){return Jn(i)?Op(i,!0):R3(i)}function t4(i,c){var C={};return c=it(c,3),Jr(i,function(S,D,K){fo(C,c(S,D,K),S)}),C}function n4(i,c){var C={};return c=it(c,3),Jr(i,function(S,D,K){fo(C,D,c(S,D,K))}),C}var r4=Qs(function(i,c,C){El(i,c,C)}),sm=Qs(function(i,c,C,S){El(i,c,C,S)}),o4=po(function(i,c){var C={};if(i==null)return C;var S=!1;c=tn(c,function(K){return K=Wo(K,i),S||(S=K.length>1),K}),Xr(i,Ld(i),C),S&&(C=yr(C,m|A|y,X3));for(var D=c.length;D--;)xd(C,c[D]);return C});function s4(i,c){return im(i,zl(it(c)))}var i4=po(function(i,c){return i==null?{}:I3(i,c)});function im(i,c){if(i==null)return{};var C=tn(Ld(i),function(S){return[S]});return c=it(c),Jp(i,C,function(S,D){return c(S,D[0])})}function a4(i,c,C){c=Wo(c,i);var S=-1,D=c.length;for(D||(D=1,i=t);++S<D;){var K=i==null?t:i[$r(c[S])];K===t&&(S=D,K=C),i=mo(K)?K.call(i):K}return i}function l4(i,c,C){return i==null?i:Vi(i,c,C)}function c4(i,c,C,S){return S=typeof S=="function"?S:t,i==null?i:Vi(i,c,C,S)}var am=bg(Ln),lm=bg(Xn);function u4(i,c,C){var S=At(i),D=S||Uo(i)||$s(i);if(c=it(c,4),C==null){var K=i&&i.constructor;D?C=S?new K:[]:on(i)?C=mo(K)?qs(gl(i)):{}:C={}}return(D?Cr:Jr)(i,function(G,ee,le){return c(C,G,ee,le)}),C}function d4(i,c){return i==null?!0:xd(i,c)}function f4(i,c,C){return i==null?i:ng(i,c,kd(C))}function h4(i,c,C,S){return S=typeof S=="function"?S:t,i==null?i:ng(i,c,kd(C),S)}function ei(i){return i==null?[]:nd(i,Ln(i))}function p4(i){return i==null?[]:nd(i,Xn(i))}function g4(i,c,C){return C===t&&(C=c,c=t),C!==t&&(C=wr(C),C=C===C?C:0),c!==t&&(c=wr(c),c=c===c?c:0),ms(wr(i),c,C)}function m4(i,c,C){return c=Co(c),C===t?(C=c,c=0):C=Co(C),i=wr(i),v3(i,c,C)}function C4(i,c,C){if(C&&typeof C!="boolean"&&Gn(i,c,C)&&(c=C=t),C===t&&(typeof c=="boolean"?(C=c,c=t):typeof i=="boolean"&&(C=i,i=t)),i===t&&c===t?(i=0,c=1):(i=Co(i),c===t?(c=i,i=0):c=Co(c)),i>c){var S=i;i=c,c=S}if(C||i%1||c%1){var D=jp();return Un(i+D*(c-i+q5("1e-"+((D+"").length-1))),c)}return Ad(i,c)}var A4=Js(function(i,c,C){return c=c.toLowerCase(),i+(C?cm(c):c)});function cm(i){return Yd(zt(i).toLowerCase())}function um(i){return i=zt(i),i&&i.replace(Dn,ly).replace(F5,"")}function b4(i,c,C){i=zt(i),c=or(c);var S=i.length;C=C===t?S:ms(bt(C),0,S);var D=C;return C-=c.length,C>=0&&i.slice(C,D)==c}function y4(i){return i=zt(i),i&&Je.test(i)?i.replace(Be,cy):i}function x4(i){return i=zt(i),i&&dt.test(i)?i.replace(ft,"\\$&"):i}var v4=Js(function(i,c,C){return i+(C?"-":"")+c.toLowerCase()}),w4=Js(function(i,c,C){return i+(C?" ":"")+c.toLowerCase()}),k4=hg("toLowerCase");function S4(i,c,C){i=zt(i),c=bt(c);var S=c?Hs(i):0;if(!c||S>=c)return i;var D=(c-S)/2;return jl(bl(D),C)+i+jl(Al(D),C)}function E4(i,c,C){i=zt(i),c=bt(c);var S=c?Hs(i):0;return c&&S<c?i+jl(c-S,C):i}function M4(i,c,C){i=zt(i),c=bt(c);var S=c?Hs(i):0;return c&&S<c?jl(c-S,C)+i:i}function T4(i,c,C){return C||c==null?c=0:c&&(c=+c),Dy(zt(i).replace(Ye,""),c||0)}function L4(i,c,C){return(C?Gn(i,c,C):c===t)?c=1:c=bt(c),bd(zt(i),c)}function N4(){var i=arguments,c=zt(i[0]);return i.length<3?c:c.replace(i[1],i[2])}var R4=Js(function(i,c,C){return i+(C?"_":"")+c.toLowerCase()});function j4(i,c,C){return C&&typeof C!="number"&&Gn(i,c,C)&&(c=C=t),C=C===t?Ce:C>>>0,C?(i=zt(i),i&&(typeof c=="string"||c!=null&&!Ud(c))&&(c=or(c),!c&&Ks(i))?zo(Dr(i),0,C):i.split(c,C)):[]}var I4=Js(function(i,c,C){return i+(C?" ":"")+Yd(c)});function O4(i,c,C){return i=zt(i),C=C==null?0:ms(bt(C),0,i.length),c=or(c),i.slice(C,C+c.length)==c}function D4(i,c,C){var S=z.templateSettings;C&&Gn(i,c,C)&&(c=t),i=zt(i),c=Hl({},c,S,yg);var D=Hl({},c.imports,S.imports,yg),K=Ln(D),G=nd(D,K),ee,le,Se=0,Ee=c.interpolate||gr,je="__p += '",ze=od((c.escape||gr).source+"|"+Ee.source+"|"+(Ee===gt?rn:gr).source+"|"+(c.evaluate||gr).source+"|$","g"),Xe="//# sourceURL="+(Wt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++H5+"]")+`
210
+ `;i.replace(ze,function(ct,Lt,jt,ir,Vn,ar){return jt||(jt=ir),je+=i.slice(Se,ar).replace(tr,uy),Lt&&(ee=!0,je+=`' +
211
+ __e(`+Lt+`) +
212
+ '`),Vn&&(le=!0,je+=`';
213
+ `+Vn+`;
214
+ __p += '`),jt&&(je+=`' +
215
+ ((__t = (`+jt+`)) == null ? '' : __t) +
216
+ '`),Se=ar+ct.length,ct}),je+=`';
217
+ `;var lt=Wt.call(c,"variable")&&c.variable;if(!lt)je=`with (obj) {
218
+ `+je+`
219
+ }
220
+ `;else if(en.test(lt))throw new mt(u);je=(le?je.replace(qe,""):je).replace($e,"$1").replace(Ve,"$1;"),je="function("+(lt||"obj")+`) {
221
+ `+(lt?"":`obj || (obj = {});
222
+ `)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(le?`, __j = Array.prototype.join;
223
+ function print() { __p += __j.call(arguments, '') }
224
+ `:`;
225
+ `)+je+`return __p
226
+ }`;var vt=fm(function(){return Pt(K,Xe+"return "+je).apply(t,G)});if(vt.source=je,zd(vt))throw vt;return vt}function P4(i){return zt(i).toLowerCase()}function B4(i){return zt(i).toUpperCase()}function _4(i,c,C){if(i=zt(i),i&&(C||c===t))return xp(i);if(!i||!(c=or(c)))return i;var S=Dr(i),D=Dr(c),K=vp(S,D),G=wp(S,D)+1;return zo(S,K,G).join("")}function F4(i,c,C){if(i=zt(i),i&&(C||c===t))return i.slice(0,Sp(i)+1);if(!i||!(c=or(c)))return i;var S=Dr(i),D=wp(S,Dr(c))+1;return zo(S,0,D).join("")}function W4(i,c,C){if(i=zt(i),i&&(C||c===t))return i.replace(Ye,"");if(!i||!(c=or(c)))return i;var S=Dr(i),D=vp(S,Dr(c));return zo(S,D).join("")}function z4(i,c){var C=F,S=_;if(on(c)){var D="separator"in c?c.separator:D;C="length"in c?bt(c.length):C,S="omission"in c?or(c.omission):S}i=zt(i);var K=i.length;if(Ks(i)){var G=Dr(i);K=G.length}if(C>=K)return i;var ee=C-Hs(S);if(ee<1)return S;var le=G?zo(G,0,ee).join(""):i.slice(0,ee);if(D===t)return le+S;if(G&&(ee+=le.length-ee),Ud(D)){if(i.slice(ee).search(D)){var Se,Ee=le;for(D.global||(D=od(D.source,zt(Ft.exec(D))+"g")),D.lastIndex=0;Se=D.exec(Ee);)var je=Se.index;le=le.slice(0,je===t?ee:je)}}else if(i.indexOf(or(D),ee)!=ee){var ze=le.lastIndexOf(D);ze>-1&&(le=le.slice(0,ze))}return le+S}function U4(i){return i=zt(i),i&&Ne.test(i)?i.replace(nt,Cy):i}var K4=Js(function(i,c,C){return i+(C?" ":"")+c.toUpperCase()}),Yd=hg("toUpperCase");function dm(i,c,C){return i=zt(i),c=C?t:c,c===t?fy(i)?yy(i):ry(i):i.match(c)||[]}var fm=Et(function(i,c){try{return nr(i,t,c)}catch(C){return zd(C)?C:new mt(C)}}),H4=po(function(i,c){return Cr(c,function(C){C=$r(C),fo(i,C,Fd(i[C],i))}),i});function Y4(i){var c=i==null?0:i.length,C=it();return i=c?tn(i,function(S){if(typeof S[1]!="function")throw new Ar(l);return[C(S[0]),S[1]]}):[],Et(function(S){for(var D=-1;++D<c;){var K=i[D];if(nr(K[0],this,S))return nr(K[1],this,S)}})}function Z4(i){return C3(yr(i,m))}function Zd(i){return function(){return i}}function G4(i,c){return i==null||i!==i?c:i}var V4=gg(),q4=gg(!0);function $n(i){return i}function Gd(i){return Yp(typeof i=="function"?i:yr(i,m))}function Q4(i){return Gp(yr(i,m))}function J4(i,c){return Vp(i,yr(c,m))}var X4=Et(function(i,c){return function(C){return Zi(C,i,c)}}),$4=Et(function(i,c){return function(C){return Zi(i,C,c)}});function Vd(i,c,C){var S=Ln(c),D=Sl(c,S);C==null&&!(on(c)&&(D.length||!S.length))&&(C=c,c=i,i=this,D=Sl(c,Ln(c)));var K=!(on(C)&&"chain"in C)||!!C.chain,G=mo(i);return Cr(D,function(ee){var le=c[ee];i[ee]=le,G&&(i.prototype[ee]=function(){var Se=this.__chain__;if(K||Se){var Ee=i(this.__wrapped__),je=Ee.__actions__=Qn(this.__actions__);return je.push({func:le,args:arguments,thisArg:i}),Ee.__chain__=Se,Ee}return le.apply(i,Do([this.value()],arguments))})}),i}function e9(){return Pn._===this&&(Pn._=Ey),this}function qd(){}function t9(i){return i=bt(i),Et(function(c){return qp(c,i)})}var n9=Ed(tn),r9=Ed(mp),o9=Ed(Ju);function hm(i){return Id(i)?Xu($r(i)):O3(i)}function s9(i){return function(c){return i==null?t:Cs(i,c)}}var i9=Cg(),a9=Cg(!0);function Qd(){return[]}function Jd(){return!1}function l9(){return{}}function c9(){return""}function u9(){return!0}function d9(i,c){if(i=bt(i),i<1||i>Q)return[];var C=Ce,S=Un(i,Ce);c=it(c),i-=Ce;for(var D=td(S,c);++C<i;)c(C);return D}function f9(i){return At(i)?tn(i,$r):sr(i)?[i]:Qn(Ig(zt(i)))}function h9(i){var c=++ky;return zt(i)+c}var p9=Rl(function(i,c){return i+c},0),g9=Md("ceil"),m9=Rl(function(i,c){return i/c},1),C9=Md("floor");function A9(i){return i&&i.length?kl(i,$n,fd):t}function b9(i,c){return i&&i.length?kl(i,it(c,2),fd):t}function y9(i){return bp(i,$n)}function x9(i,c){return bp(i,it(c,2))}function v9(i){return i&&i.length?kl(i,$n,md):t}function w9(i,c){return i&&i.length?kl(i,it(c,2),md):t}var k9=Rl(function(i,c){return i*c},1),S9=Md("round"),E9=Rl(function(i,c){return i-c},0);function M9(i){return i&&i.length?ed(i,$n):0}function T9(i,c){return i&&i.length?ed(i,it(c,2)):0}return z.after=Q6,z.ary=Hg,z.assign=Bv,z.assignIn=om,z.assignInWith=Hl,z.assignWith=_v,z.at=Fv,z.before=Yg,z.bind=Fd,z.bindAll=H4,z.bindKey=Zg,z.castArray=lv,z.chain=zg,z.chunk=Cx,z.compact=Ax,z.concat=bx,z.cond=Y4,z.conforms=Z4,z.constant=Zd,z.countBy=M6,z.create=Wv,z.curry=Gg,z.curryRight=Vg,z.debounce=qg,z.defaults=zv,z.defaultsDeep=Uv,z.defer=J6,z.delay=X6,z.difference=yx,z.differenceBy=xx,z.differenceWith=vx,z.drop=wx,z.dropRight=kx,z.dropRightWhile=Sx,z.dropWhile=Ex,z.fill=Mx,z.filter=L6,z.flatMap=j6,z.flatMapDeep=I6,z.flatMapDepth=O6,z.flatten=Bg,z.flattenDeep=Tx,z.flattenDepth=Lx,z.flip=$6,z.flow=V4,z.flowRight=q4,z.fromPairs=Nx,z.functions=qv,z.functionsIn=Qv,z.groupBy=D6,z.initial=jx,z.intersection=Ix,z.intersectionBy=Ox,z.intersectionWith=Dx,z.invert=Xv,z.invertBy=$v,z.invokeMap=B6,z.iteratee=Gd,z.keyBy=_6,z.keys=Ln,z.keysIn=Xn,z.map=_l,z.mapKeys=t4,z.mapValues=n4,z.matches=Q4,z.matchesProperty=J4,z.memoize=Wl,z.merge=r4,z.mergeWith=sm,z.method=X4,z.methodOf=$4,z.mixin=Vd,z.negate=zl,z.nthArg=t9,z.omit=o4,z.omitBy=s4,z.once=ev,z.orderBy=F6,z.over=n9,z.overArgs=tv,z.overEvery=r9,z.overSome=o9,z.partial=Wd,z.partialRight=Qg,z.partition=W6,z.pick=i4,z.pickBy=im,z.property=hm,z.propertyOf=s9,z.pull=Fx,z.pullAll=Fg,z.pullAllBy=Wx,z.pullAllWith=zx,z.pullAt=Ux,z.range=i9,z.rangeRight=a9,z.rearg=nv,z.reject=K6,z.remove=Kx,z.rest=rv,z.reverse=Bd,z.sampleSize=Y6,z.set=l4,z.setWith=c4,z.shuffle=Z6,z.slice=Hx,z.sortBy=q6,z.sortedUniq=Jx,z.sortedUniqBy=Xx,z.split=j4,z.spread=ov,z.tail=$x,z.take=e6,z.takeRight=t6,z.takeRightWhile=n6,z.takeWhile=r6,z.tap=A6,z.throttle=sv,z.thru=Bl,z.toArray=tm,z.toPairs=am,z.toPairsIn=lm,z.toPath=f9,z.toPlainObject=rm,z.transform=u4,z.unary=iv,z.union=o6,z.unionBy=s6,z.unionWith=i6,z.uniq=a6,z.uniqBy=l6,z.uniqWith=c6,z.unset=d4,z.unzip=_d,z.unzipWith=Wg,z.update=f4,z.updateWith=h4,z.values=ei,z.valuesIn=p4,z.without=u6,z.words=dm,z.wrap=av,z.xor=d6,z.xorBy=f6,z.xorWith=h6,z.zip=p6,z.zipObject=g6,z.zipObjectDeep=m6,z.zipWith=C6,z.entries=am,z.entriesIn=lm,z.extend=om,z.extendWith=Hl,Vd(z,z),z.add=p9,z.attempt=fm,z.camelCase=A4,z.capitalize=cm,z.ceil=g9,z.clamp=g4,z.clone=cv,z.cloneDeep=dv,z.cloneDeepWith=fv,z.cloneWith=uv,z.conformsTo=hv,z.deburr=um,z.defaultTo=G4,z.divide=m9,z.endsWith=b4,z.eq=Br,z.escape=y4,z.escapeRegExp=x4,z.every=T6,z.find=N6,z.findIndex=Dg,z.findKey=Kv,z.findLast=R6,z.findLastIndex=Pg,z.findLastKey=Hv,z.floor=C9,z.forEach=Ug,z.forEachRight=Kg,z.forIn=Yv,z.forInRight=Zv,z.forOwn=Gv,z.forOwnRight=Vv,z.get=Kd,z.gt=pv,z.gte=gv,z.has=Jv,z.hasIn=Hd,z.head=_g,z.identity=$n,z.includes=P6,z.indexOf=Rx,z.inRange=m4,z.invoke=e4,z.isArguments=ys,z.isArray=At,z.isArrayBuffer=mv,z.isArrayLike=Jn,z.isArrayLikeObject=dn,z.isBoolean=Cv,z.isBuffer=Uo,z.isDate=Av,z.isElement=bv,z.isEmpty=yv,z.isEqual=xv,z.isEqualWith=vv,z.isError=zd,z.isFinite=wv,z.isFunction=mo,z.isInteger=Jg,z.isLength=Ul,z.isMap=Xg,z.isMatch=kv,z.isMatchWith=Sv,z.isNaN=Ev,z.isNative=Mv,z.isNil=Lv,z.isNull=Tv,z.isNumber=$g,z.isObject=on,z.isObjectLike=an,z.isPlainObject=Xi,z.isRegExp=Ud,z.isSafeInteger=Nv,z.isSet=em,z.isString=Kl,z.isSymbol=sr,z.isTypedArray=$s,z.isUndefined=Rv,z.isWeakMap=jv,z.isWeakSet=Iv,z.join=Px,z.kebabCase=v4,z.last=vr,z.lastIndexOf=Bx,z.lowerCase=w4,z.lowerFirst=k4,z.lt=Ov,z.lte=Dv,z.max=A9,z.maxBy=b9,z.mean=y9,z.meanBy=x9,z.min=v9,z.minBy=w9,z.stubArray=Qd,z.stubFalse=Jd,z.stubObject=l9,z.stubString=c9,z.stubTrue=u9,z.multiply=k9,z.nth=_x,z.noConflict=e9,z.noop=qd,z.now=Fl,z.pad=S4,z.padEnd=E4,z.padStart=M4,z.parseInt=T4,z.random=C4,z.reduce=z6,z.reduceRight=U6,z.repeat=L4,z.replace=N4,z.result=a4,z.round=S9,z.runInContext=se,z.sample=H6,z.size=G6,z.snakeCase=R4,z.some=V6,z.sortedIndex=Yx,z.sortedIndexBy=Zx,z.sortedIndexOf=Gx,z.sortedLastIndex=Vx,z.sortedLastIndexBy=qx,z.sortedLastIndexOf=Qx,z.startCase=I4,z.startsWith=O4,z.subtract=E9,z.sum=M9,z.sumBy=T9,z.template=D4,z.times=d9,z.toFinite=Co,z.toInteger=bt,z.toLength=nm,z.toLower=P4,z.toNumber=wr,z.toSafeInteger=Pv,z.toString=zt,z.toUpper=B4,z.trim=_4,z.trimEnd=F4,z.trimStart=W4,z.truncate=z4,z.unescape=U4,z.uniqueId=h9,z.upperCase=K4,z.upperFirst=Yd,z.each=Ug,z.eachRight=Kg,z.first=_g,Vd(z,(function(){var i={};return Jr(z,function(c,C){Wt.call(z.prototype,C)||(i[C]=c)}),i})(),{chain:!1}),z.VERSION=r,Cr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){z[i].placeholder=z}),Cr(["drop","take"],function(i,c){Nt.prototype[i]=function(C){C=C===t?1:kn(bt(C),0);var S=this.__filtered__&&!c?new Nt(this):this.clone();return S.__filtered__?S.__takeCount__=Un(C,S.__takeCount__):S.__views__.push({size:Un(C,Ce),type:i+(S.__dir__<0?"Right":"")}),S},Nt.prototype[i+"Right"]=function(C){return this.reverse()[i](C).reverse()}}),Cr(["filter","map","takeWhile"],function(i,c){var C=c+1,S=C==U||C==B;Nt.prototype[i]=function(D){var K=this.clone();return K.__iteratees__.push({iteratee:it(D,3),type:C}),K.__filtered__=K.__filtered__||S,K}}),Cr(["head","last"],function(i,c){var C="take"+(c?"Right":"");Nt.prototype[i]=function(){return this[C](1).value()[0]}}),Cr(["initial","tail"],function(i,c){var C="drop"+(c?"":"Right");Nt.prototype[i]=function(){return this.__filtered__?new Nt(this):this[C](1)}}),Nt.prototype.compact=function(){return this.filter($n)},Nt.prototype.find=function(i){return this.filter(i).head()},Nt.prototype.findLast=function(i){return this.reverse().find(i)},Nt.prototype.invokeMap=Et(function(i,c){return typeof i=="function"?new Nt(this):this.map(function(C){return Zi(C,i,c)})}),Nt.prototype.reject=function(i){return this.filter(zl(it(i)))},Nt.prototype.slice=function(i,c){i=bt(i);var C=this;return C.__filtered__&&(i>0||c<0)?new Nt(C):(i<0?C=C.takeRight(-i):i&&(C=C.drop(i)),c!==t&&(c=bt(c),C=c<0?C.dropRight(-c):C.take(c-i)),C)},Nt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Nt.prototype.toArray=function(){return this.take(Ce)},Jr(Nt.prototype,function(i,c){var C=/^(?:filter|find|map|reject)|While$/.test(c),S=/^(?:head|last)$/.test(c),D=z[S?"take"+(c=="last"?"Right":""):c],K=S||/^find/.test(c);D&&(z.prototype[c]=function(){var G=this.__wrapped__,ee=S?[1]:arguments,le=G instanceof Nt,Se=ee[0],Ee=le||At(G),je=function(Lt){var jt=D.apply(z,Do([Lt],ee));return S&&ze?jt[0]:jt};Ee&&C&&typeof Se=="function"&&Se.length!=1&&(le=Ee=!1);var ze=this.__chain__,Xe=!!this.__actions__.length,lt=K&&!ze,vt=le&&!Xe;if(!K&&Ee){G=vt?G:new Nt(this);var ct=i.apply(G,ee);return ct.__actions__.push({func:Bl,args:[je],thisArg:t}),new br(ct,ze)}return lt&&vt?i.apply(this,ee):(ct=this.thru(je),lt?S?ct.value()[0]:ct.value():ct)})}),Cr(["pop","push","shift","sort","splice","unshift"],function(i){var c=cl[i],C=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",S=/^(?:pop|shift)$/.test(i);z.prototype[i]=function(){var D=arguments;if(S&&!this.__chain__){var K=this.value();return c.apply(At(K)?K:[],D)}return this[C](function(G){return c.apply(At(G)?G:[],D)})}}),Jr(Nt.prototype,function(i,c){var C=z[c];if(C){var S=C.name+"";Wt.call(Vs,S)||(Vs[S]=[]),Vs[S].push({name:c,func:C})}}),Vs[Nl(t,k).name]=[{name:"wrapper",func:t}],Nt.prototype.clone=Uy,Nt.prototype.reverse=Ky,Nt.prototype.value=Hy,z.prototype.at=b6,z.prototype.chain=y6,z.prototype.commit=x6,z.prototype.next=v6,z.prototype.plant=k6,z.prototype.reverse=S6,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=E6,z.prototype.first=z.prototype.head,Fi&&(z.prototype[Fi]=w6),z}),Ys=xy();fs?((fs.exports=Ys)._=Ys,Gu._=Ys):Pn._=Ys}).call(oI)})(aa,aa.exports)),aa.exports}var iI=sI();function aI(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 lI(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 cI=iI.throttle((e,n)=>{e.preventDefault(),lI(e,n)},16);let cc=null;function uI(e){return e?e.classList.contains("dsd__theme__table-scrollable-wrapper")?e.firstElementChild:e:null}function dI(e,n,t){const r=g.useRef(null),o=g.useRef(null),s=g.useRef(!1),l=g.useRef(!1),u=g.useRef(null),d=g.useRef({htmlElement:null,lexicalNode:null,isBottom:!1}),f=g.useRef(null),h=g.useRef(()=>{}),m=g.useCallback(ae=>{h.current(ae)},[]),[A,y]=g.useState(null),{disable:b}=g.useContext(at),[x,w]=g.useState(!1),[k,L]=g.useState({opened:!1}),[O,T]=g.useState(""),[R,E]=g.useState(null),[M,P]=g.useState(!1),[I,F]=g.useState({left:!1,right:!1}),[_,N]=g.useState(null),{t:j}=He.useTranslation(),U=Pi(ae=>{const te=ae.target;l.current||lc(te)&&(oE(te)||e.read(()=>{var H;const q=te.className.includes("content-editable-wrapper"),ce=q?p.$getRoot():p.$getNearestNodeFromDOMNode(te),{htmlElement:ie,lexicalNode:ne}=Mm(ce,e,{root:!0,"layout-container":!0,"layout-item":!0,callout:!0,"collapsible-content":!0},ae);if((ne==null?void 0:ne.__type)==="callout"||(ne==null?void 0:ne.__type)==="callout-image"||((H=ne==null?void 0:ne.getParent())==null?void 0:H.__type)==="callout"&&(ne==null?void 0:ne.getPreviousSibling())===null){y(null);return}if(!(q&&ne instanceof Vr||q&&!ne)&&ne!=null&&ne.__key){if(ne.__type==="layout-container"||ne.__type==="layout-item"||ne.__type==="collapsible-content"){y(null);return}ie&&(d.current.htmlElement=ie,d.current.lexicalNode=ne),(ne==null?void 0:ne.__type)==="collapsible-title"&&(d.current.htmlElement=(ie==null?void 0:ie.parentElement)||ie,d.current.lexicalNode=ne.getParent()),E(null),y(d.current.htmlElement)}}))},20,50);g.useEffect(()=>()=>{cc=null},[]),g.useEffect(()=>{function ae(){l.current||y(null)}function te(ce){if(!s.current)return!1;const[ie]=cn.eventFiles(ce);if(ie)return!1;const{target:ne,dataTransfer:H}=ce,X=(H==null?void 0:H.getData(l0))||"";if(!X)return!1;ce.preventDefault(),e.update(()=>{var Pe;let Y=p.$getNodeByKey(X);if(!Y||!(lc(ne)||ne.closest(".resizable-container")))return!1;const{htmlElement:J,lexicalNode:$,isBottom:Ae}=d.current;let me=$,ke=null;if(me!=null&&me.__key&&(ke=J),!ke||!me)return!1;if(me===Y)return!0;if(o.current&&$S(o.current,e,me,Y))return!1;if(Y.__type==="layout-divider"){if(Y=Y.getParent(),$&&(Y!=null&&Y.isParentOf($)))return!1;WA(e,Y)}if(Y.getParent()instanceof jn&&((Pe=Y.getParent())==null?void 0:Pe.getChildren().length)===2){const Ue=Y.getParent(),Ze=Ue.getParent();vi(e,Ue,Ze)}if(J!=null&&J.classList.contains("selected-block"))return;let Fe;const De=e._rootElement;Ae?Fe=Array.from(De.querySelectorAll(".selected-block")).reverse():Fe=Array.from(De.querySelectorAll(".selected-block")),Fe.length?Fe.forEach(Ue=>{let Ze=p.$getNearestNodeFromDOMNode(Ue);Ae?me==null||me.insertAfter(Ze):me==null||me.insertBefore(Ze)}):Ae?me.insertAfter(Y):me.insertBefore(Y),y(null)})}function q(ce){const{target:ie}=ce;lc(ie)&&ie.className==="ContentEditable__root"&&h0(o.current)}return n==null||n.addEventListener("mousemove",U),n==null||n.addEventListener("drop",te),n==null||n.addEventListener("mouseleave",ae),n==null||n.addEventListener("dragleave",q),()=>{n==null||n.removeEventListener("mousemove",U),n==null||n.removeEventListener("drop",te),n==null||n.removeEventListener("mouseleave",ae),n==null||n.removeEventListener("dragleave",q)}},[n,e]),g.useEffect(()=>{if(r.current){if(l.current||k.opened)return;d0(A,r.current,n,k.opened)}},[n,A,l.current,k.opened]),g.useEffect(()=>(h.current=ae=>{if(!s.current)return;const[te]=cn.eventFiles(ae);if(te)return;cc||(cc=aI(ae.target)),cI(ae,cc),ae.preventDefault(),ae.dataTransfer&&(ae.dataTransfer.dropEffect="move");const{clientY:q,clientX:ce,target:ie}=ae;lc(ie)&&e.read(()=>{var $,Ae;const ne=p.$getNearestNodeFromDOMNode(ie)||p.$getRoot(),{htmlElement:H,lexicalNode:X}=Mm(ne,e,{root:!0,"layout-container":!0,"layout-item":!0,"callout-wrapper":!0,callout:!0,"collapsible-content":!0,"collapsible-container":!0},ae);if((X==null?void 0:X.__type)==="callout"||(X==null?void 0:X.__type)==="collapsible-content"||zA(f.current,X==null?void 0:X.getParent())||(X==null?void 0:X.__type)==="layout-item"&&ne.__type!=="root")return;H&&(d.current.htmlElement=H,d.current.lexicalNode=X);let Y=null;Y=d.current.htmlElement||H,Y!=null&&Y.closest(".dsd__theme__layoutContainer")&&ne.__type==="root"&&X&&((X==null?void 0:X.__type)==="layout-item"&&ne.__type==="root"?(Y=Y==null?void 0:Y.parentElement,d.current.htmlElement=Y,d.current.lexicalNode=X==null?void 0:X.getParent()):(Y=($=Y.parentElement)==null?void 0:$.parentElement,d.current.htmlElement=Y,d.current.lexicalNode=(Ae=X.getParent())==null?void 0:Ae.getParent()));const J=o.current;if(!Y&&J){J.style.background="transparent";return}Y===null||J===null||Y!=null&&Y.classList.contains("selected-block")||iE(J,Y,q,ce,n,ae,d)})},ye.mergeRegister(e.registerCommand(Xo,ae=>ae==="hide_menu"?(nE(r.current),setTimeout(()=>{l.current=!0},0),!1):ae==="show_menu"?(l.current=!1,!1):(ae===!0&&!l.current&&y(null),l.current=!1,!1),p.COMMAND_PRIORITY_LOW),e.registerCommand(eA,ae=>((ae==null?void 0:ae.target)instanceof HTMLElement&&r.current instanceof HTMLElement&&(Q(ae,!0),d0(ae.target,r.current,n,k.opened)),!1),p.COMMAND_PRIORITY_LOW),e.registerCommand(p.KEY_ARROW_DOWN_COMMAND,()=>(e.dispatchCommand(Xo,!0),!1),p.COMMAND_PRIORITY_LOW),e.registerCommand(p.KEY_ARROW_UP_COMMAND,()=>(e.dispatchCommand(Xo,!0),!1),p.COMMAND_PRIORITY_LOW))),[n,e]),g.useEffect(()=>()=>{n==null||n.removeEventListener("dragover",m,!0)},[n,m]);function W(ae){var ne;const te=ae.dataTransfer;(ne=o.current)==null||ne.setAttribute("data-index-start","");const q=A||d.current.htmlElement;if(!te||!q)return;const ce=e._rootElement;if(q!=null&&q.classList.contains("selected-block")){const H=e._rootElement,X=Array.from(H.querySelectorAll(".selected-block"));sE(ae.dataTransfer,X)}else Zl(ce),q.className.includes("_layoutDivider")&&q.parentElement?f0(te,q.parentElement):f0(te,q);let ie="";e.read(()=>{var X,Y;const H=p.$getNearestNodeFromDOMNode(q);if(H&&(ie=H.getKey()),H instanceof Vr){const J=Ba((X=q.parentElement)==null?void 0:X.parentElement,q.parentElement);(Y=o.current)==null||Y.setAttribute("data-index-start",J.toString())}}),r.current&&(w(!0),r.current.style.opacity="0"),s.current=!0,f.current=ie,te.setData(l0,ie),ae.stopPropagation(),n==null||n.removeEventListener("dragover",m,!0),n==null||n.addEventListener("dragover",m,!0)}function B(){n==null||n.removeEventListener("dragover",m,!0),s.current=!1,h0(o.current),w(!1)}if(b)return a.jsx("div",{});function Z(){var q;const ae=d.current.htmlElement,te=(q=ae==null?void 0:ae.parentElement)==null?void 0:q.parentElement;if(te!=null&&te.classList.contains("dsd__theme__layoutContainer")&&(te.children.length===4?P(!0):P(!1),ae!=null&&ae.parentElement)){const ce=Ba(te,ae==null?void 0:ae.parentElement);ce?ce===te.children.length-1?F({left:!1,right:!0}):F({left:!1,right:!1}):F({left:!0,right:!1})}}function Q(ae,te=!1){l.current=!0;const q=uI((ae==null?void 0:ae.target)??d.current.htmlElement);if(!q)return;const ce=e._rootElement;Z(),q.classList.contains("selected-block")||Zl(ce),e.update(()=>{let ne=p.$getSelection();!ne&&u.current&&(ne=u.current),e.__savedDragHandleSelection=u.current,u.current=null;const X=((ne==null?void 0:ne.getNodes())??[]).filter(De=>!p.$isTextNode(De)&&De.__parent==="root"),Y=X.map(De=>{const Pe=e.getElementByKey(De.getKey());return De.getType()==="table"?Pe==null?void 0:Pe.firstElementChild:Pe}).filter(De=>De!==null),J=X.length&&Y.includes(q)?Y:[q];if(J.length===1){const De=p.$getNearestNodeFromDOMNode(q);if(!De)return;te||(p.$isElementNode(De)?De.select(0):qr.$isDecoratorBlockNode(De)||De.selectStart(),e.__savedDragHandleSelection=p.$getSelection()),N(De)}else N(null);const $=document.querySelector(".selected-all-document"),Ae=!!$;Ae||J.forEach(De=>{n1(e,{block:De,isCreateEventListener:!1})});const ke=Array.from(Ae?$.children:document.querySelectorAll(".selected-block")).reduce((De,Pe)=>{const Ue=p.$getNearestNodeFromDOMNode(Pe);return Ue&&De.push(Ue),De},[]),Fe=ke.length>0&&ke.every(De=>ao(De)||xt(De)||dr(De)?!1:p.$isElementNode(De)||p.$isTextNode(De));T(Fe?"text":"block")}),Qa();const ie=Number(ae==null?void 0:ae.y)+240>window.innerHeight?Number(ae==null?void 0:ae.y)-200:ae==null?void 0:ae.y;L({opened:!0,x:(ae==null?void 0:ae.x)??0,y:ie??0}),e.dispatchCommand(Kf,!0)}const re=()=>{e.update(()=>{const ae=Qt();if(l.current=!1,L(te=>({opened:!1,x:te.x,y:te.y})),(ae==null?void 0:ae.__key)==="root"){const te=p.$createParagraphNode();ae.append(te)}p.$setSelection(null)})},oe=t?"hide-add-button":"",Ce=k.x!==0?{position:"fixed",top:0,left:0,transform:`translate(${k.x}px, ${k.y}px)`}:{},Te=()=>{var ae;re(),Ja(),Zl(e._rootElement),(ae=e._rootElement)==null||ae.classList.remove("selected-all-document")},Me=(ae=!1)=>{if(!ae){setTimeout(()=>{Te()},100);return}Te()},Re=g.useCallback(ae=>{const te=document.querySelector(".draggable-menu");if(!k&&ae.button!==2)return;const q=ae.target;if(q.closest(".mantine-Menu-dropdown"))return;!((te==null?void 0:te.contains(q))&&q.closest("div.custom-menu-item"))&&ae.button!==2&&k.opened&&(ae.stopPropagation(),ae.preventDefault())},[e,k]);return g.useEffect(()=>(k.opened?document.addEventListener("mousedown",Re):document.removeEventListener("mousedown",Re),()=>{document.removeEventListener("mousedown",Re)}),[k.opened,Re]),Ir.createPortal(a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:`draggable-block-container ${oe} ${A?"visible":""}`,ref:r,onMouseEnter:()=>{var ae;k.opened||E("both"),(ae=r.current)!=null&&ae.style&&(r.current.style.opacity="1")},onMouseLeave:()=>{E(null)},children:[a.jsx(Qj,{hoveredButton:R,insertNewParagraph:u0,currentDraggableBlockRef:d,setHoveredButton:E,isClickedBlockRef:l,setDraggableBlockElem:y,editor:e,t:j}),a.jsxs(v.Menu,{onOpen:Q,opened:k.opened,styles:{dropdown:Ce},position:"left-start",width:320,shadow:"md",withinPortal:!0,onClose:()=>{Me()},transitionProps:zn,children:[a.jsx(v.Menu.Target,{children:a.jsx("div",{className:"icon draggable-block-menu",draggable:!0,onDragStart:W,onDragEnd:B,onMouseEnter:()=>{k.opened||E("both")},onMouseDown:ae=>{ae.stopPropagation();const te=e.getEditorState();u.current=te._selection},children:a.jsx(v.Tooltip,{openDelay:300,multiline:!0,disabled:x||l.current,label:a.jsxs(a.Fragment,{children:[a.jsxs("span",{children:[a.jsx("strong",{children:j("editor.hoverOptions.drag")}),","," ",j("editor.hoverOptions.dragAction")]}),a.jsx("br",{}),a.jsxs("span",{children:[a.jsx("strong",{children:j("editor.hoverOptions.click")}),","," ",j("editor.hoverOptions.clickAction")]})]}),position:"bottom-start",children:a.jsx(v.ActionIcon,{radius:"sm",color:"gray",size:"sm",bd:"none",variant:"subtle","aria-label":"Settings",children:a.jsx(xe.IconGripVertical,{size:20})})})})}),a.jsx(qj,{hoveredButton:R,insertNewParagraph:u0,currentDraggableBlockRef:d,setHoveredButton:E,isClickedBlockRef:l,setDraggableBlockElem:y,editor:e,t:j}),a.jsx(v.Menu.Dropdown,{className:"draggable-menu",children:a.jsx(nI,{onChange:ae=>{var te;if(ae==="comment"){L(q=>({opened:!1,x:q.x,y:q.y})),Zl(e._rootElement),(te=e._rootElement)==null||te.classList.remove("selected-all-document");return}Me(!0),bi(e)},t:j,textBlock:O,currentEditorNode:_,editor:e,isDisabledAddColumnButton:M,disabledMoveColumnButtons:I})})]})]}),a.jsx("div",{className:"draggable-block-target-line",ref:o})]}),n)}function fI({anchorElem:e=document.body,isShowAddButton:n=!1}){const[t]=tt.useLexicalComposerContext();return dI(t,e,n)}const Kb=/(^|\s):([a-z0-9_+-]+)$/i,hI=/(^|\s)(:\)|:-\)|:d|:-d|;\)|;-\)|:\(|:-\(|:\*|<3)$/i,pI=/(^|\s):$/,gI=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","Escape","Enter","Tab"]);function mI(e,n){return{leadOffset:n.index+n[1].length,matchingString:"",replaceableString:":"}}const CI=e=>gI.has(e),AI=e=>e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&!e.isComposing;function bI(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 l2(e,n){const t=n.index+n[1].length,r=n[0].slice(n[1].length),o=n===e.match(Kb)?n[2]??"":r;return{leadOffset:t,matchingString:o,replaceableString:r}}function yI(){const[e]=tt.useLexicalComposerContext(),{t:n}=He.useTranslation(),[t,r]=g.useState(!1),[o,s]=g.useState({top:0,left:0}),l=g.useRef(""),u=g.useRef({key:null,offset:null}),d=g.useRef({nodeKey:null,colonOffset:null,expectNextAt:null,active:!1,ts:0}),f=m=>{if(!d.current.active||m.length<1)return null;const A=m.match(pI);if(A)return mI(m,A);const y=m.match(Kb);if(y)return l2(m,y);const b=m.match(hI);return b?l2(m,b):null};g.useEffect(()=>e.registerCommand(tA,()=>(e.update(()=>{let m=p.$getSelection();if(!p.$isRangeSelection(m)&&(p.$getRoot().selectEnd(),m=p.$getSelection(),!p.$isRangeSelection(m)))return!1;let A=m.anchor.getNode();if(p.$isElementNode(A)){const R=p.$createTextNode("");A.append(R),R.select(),A=R}const y=m.anchor.getNode();if(!Fn(y))return;const b=y.getTextContent(),x=m.anchor.offset,w=x>0?b[x-1]:"",L=(x>0&&!/\s/.test(w)?" ":"")+":",O=b.slice(0,x)+L+b.slice(x);y.setTextContent(O);const T=x+L.length;m.anchor.set(y.getKey(),T,"text"),m.focus.set(y.getKey(),T,"text"),d.current={nodeKey:y.getKey(),colonOffset:T-1,expectNextAt:T,active:!0,ts:Date.now()},l.current=":",t&&r(!1)}),!1),p.COMMAND_PRIORITY_LOW),[e,t]),g.useEffect(()=>e.registerUpdateListener(({editorState:m})=>{m.read(()=>{const A=p.$getSelection();if(p.$isRangeSelection(A)&&A.isCollapsed()?u.current={key:A.anchor.getNode().getKey(),offset:A.anchor.offset}:u.current={key:null,offset:null},!t&&!d.current.active)return;if(!p.$isRangeSelection(A)||!A.isCollapsed()){t&&r(!1),d.current.active=!1;return}const y=A.anchor.getNode().getKey(),b=A.anchor.offset,x=u.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]),g.useEffect(()=>e.registerCommand(p.CLICK_COMMAND,()=>(t&&r(!1),d.current.active=!1,!1),p.COMMAND_PRIORITY_LOW),[e,t]),g.useEffect(()=>e.registerCommand(p.KEY_DOWN_COMMAND,m=>CI(m.key)?(m.key==="Escape"&&t&&r(!1),d.current.active=!1,!1):(AI(m)&&e.getEditorState().read(()=>{const A=p.$getSelection();if(!p.$isRangeSelection(A)||!A.isCollapsed()){d.current.active=!1;return}const y=A.anchor.getNode(),b=y.getKey(),x=A.anchor.offset;if(m.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:L,expectAt:O}=bI(w,x);if(k){d.current={nodeKey:b,colonOffset:L,expectNextAt:O,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=g.useCallback(m=>{e.update(()=>{const A=p.$getSelection();if(!p.$isRangeSelection(A)||!A.isCollapsed())return;const y=A.anchor.getNode(),b=A.anchor.offset,w=(N=>typeof(N==null?void 0:N.getTextContent)=="function"?N.getTextContent():"")(y),k=Math.max(0,b-1);let L=d.current.active&&d.current.colonOffset!=null?d.current.colonOffset:-1;if(L===-1){const N=w.lastIndexOf(":",k),j=w.lastIndexOf(";",k),U=w.lastIndexOf("<",k);L=Math.max(N,j,U)}if(L===-1)return;const O=w[L],T=L>0?w[L-1]:null;if(T&&!/\s/.test(T))return;const R=w.slice(L),E=/^(?:\:\)|\:\-\)|\:d|\:\-d|\;\)|\;\-\)|\:\(|\:\-\(|\:\*|<3)/i;let M=L,P=null;const I=R.match(E);if(I)P=L+I[0].length;else if(O===":"){const N=U=>/[a-z0-9_+\-]/i.test(U);let j=L+1;for(;j<w.length&&N(w[j]);)j++;j===L+1?P=L+1:P=j}else if(O===";"){const N=R.match(/^(?:\;\)|\;\-\))/);if(N)P=L+N[0].length;else return}else if(O==="<"){const N=R.match(/^(?:<3)/);if(N)P=L+N[0].length;else return}if(P==null)return;const F=w.slice(0,M)+m+w.slice(P);y.setTextContent(F);const _=M+m.length;A.anchor.set(y.getKey(),_,"text"),A.focus.set(y.getKey(),_,"text"),t&&r(!1),d.current.active=!1})},[e,t]);return a.jsx(Sa.LexicalTypeaheadMenuPlugin,{onSelectOption:()=>{},triggerFn:f,onQueryChange:m=>{l.current=m},options:[],onClose:()=>{t&&r(!1),d.current.active=!1},onOpen:()=>{d.current.active&&e.update(()=>{const m=Qt();if(!m)return;const A=e.getElementByKey(m.getKey());A&&requestAnimationFrame(()=>{const y=A.getBoundingClientRect();s({top:y.bottom,left:y.left}),r(!0)})})},menuRenderFn:()=>a.jsx(v.Portal,{target:document.body,children:t&&a.jsx("div",{style:{position:"fixed",top:`${o.top}px`,left:`${o.left}px`,zIndex:1e4},children:a.jsx(Bt.EmojiPicker,{onChange:m=>{var A;h(((A=Bt.IconEntity.parse(m))==null?void 0:A.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:zn,withinPortal:!0,onClose:()=>{t&&r(!1),d.current.active=!1}},children:a.jsx(a.Fragment,{})})})})})}const Hb=new Set(["http:","https:","mailto:","sms:","tel:"]);function ba(e){try{const n=new URL(e);if(!Hb.has(n.protocol))return"about:blank"}catch{return e}return e}function xI(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 c2(e){const n=/^(https?:\/\/)?[\w-]+(\.[\w-]+)+/,t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return n.test(e)||t.test(e)}function vI(){const[e]=tt.useLexicalComposerContext();g.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(Kt.$isCodeNode(r)||Kt.$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],u=o.lastIndexOf(l),d=u>0?o[u-1]:"";if((d===""||d===" ")&&c2(l)){const f=sn.$createLinkNode(l,{rel:"noopener noreferrer",target:"_blank"}),h=p.$createTextNode(l);f.append(h);const m=u,A=m+l.length;n.anchor.set(r.__key,m,"text"),n.focus.set(r.__key,A,"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]),g.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 u=l.anchor.getNode();return Kt.$isCodeNode(u)||Kt.$isCodeNode(u.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||!c2(r)||dA(r)||setTimeout(()=>{xI(e,r.length),e.dispatchCommand(sn.TOGGLE_LINK_COMMAND,ba(r)),e.update(()=>{const l=Qt();p.$getSelection()&&p.$setSelection(null),l==null||l.selectEnd()})},10),!1},p.COMMAND_PRIORITY_CRITICAL),[e])}function wI(){return vI(),null}function pi(e){const n=e.anchor,t=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?ln.$isAtNodeEnd(t)?r:o:ln.$isAtNodeEnd(n)?r:o}function kI(e){switch(e){case"phone":return"tel:";case"email":return"mailto:";case"sms":return"sms:";case"web":default:return"https://"}}function SI(e,n){if(!e)return!1;try{if(n==="phone"){const u=e.startsWith("tel:")?e.substring(4):e;return/^\+?[\d\s\-\(\)]+$/.test(u)&&/\d/.test(u)}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 u=e.startsWith("mailto:")?e.substring(7):e;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(u)}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(!Hb.has(s.protocol))return!1;const l=s.hostname;return l?l==="localhost"||l.includes(".")&&l.split(".").every(u=>u.length>0):!1}catch{return!1}}function u2(e,n){return!e||e.includes("://")||e.startsWith("tel:")||e.startsWith("mailto:")||e.startsWith("sms:")?e:kI(n)+e}function d2(e){return e?e.startsWith("tel:")?"phone":e.startsWith("mailto:")?"email":e.startsWith("sms:")?"sms":(e.startsWith("http://")||e.startsWith("https://"),"web"):"web"}function uc(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 f2(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 h2(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 EI(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 MI(e){return e==="phone"||e==="sms"?"tel":e==="email"?"email":"text"}function TI(e){return e==="email"?"email":e==="phone"||e==="sms"?"tel":"url"}function LI(e){return(e==null?void 0:e.closest(".doc-space-editor-wrapper"))??null}function xf(e){return(e==null?void 0:e.closest(".dsd__theme__link"))??null}function hh(e){return e?!!(e.closest('[data-test-id="floating-link-dropdown"]')||e.closest(".floating-link-type-combobox-dropdown")):!1}function NI(e){return{top:e.y,left:e.x}}function RI(e){const n=e.getBoundingClientRect();return{top:n.y,left:n.x+n.width/2}}function jI(){const e=window.getSelection();return!e||e.rangeCount===0?null:e.getRangeAt(0).getBoundingClientRect()}function II(){const e=window.getSelection();return!e||e.rangeCount===0?null:e.getRangeAt(0).startContainer.parentElement}function OI(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 DI(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function PI({showTextToolbar:e,updateLink:n}){const t=g.useRef(null),r=g.useRef(!1),o=g.useRef(!1),s=g.useRef(null),l=g.useRef(null),u=g.useRef(null),d=g.useRef(null),[f,h]=g.useState(""),[m,A]=g.useState(""),[y,b]=g.useState(""),[x,w]=g.useState(""),[k,L]=g.useState(!1),[O,T]=g.useState(!1),[R,E]=g.useState("preview"),[M,P]=g.useState({top:0,left:0}),[I,F]=g.useState("web"),_=g.useRef({linkUrl:f,messageText:x,textUrl:y,linkType:I});_.current={linkUrl:f,messageText:x,textUrl:y,linkType:I};const[N]=tt.useLexicalComposerContext();g.useEffect(()=>{if(O&&!(R!=="edit"&&R!=="create"))return Qa(),()=>Ja()},[O,R]);const j=g.useCallback(()=>{r.current=!1,E("preview"),h(""),A(""),w(""),L(!1),T(!1),F("web"),P({top:0,left:-999}),u.current=null,s.current=null,d.current=null},[]),U=g.useCallback(()=>{const q=d.current;if(!q)return!1;const ce=_.current;return q.linkUrl!==ce.linkUrl||q.messageText!==ce.messageText||q.textUrl!==ce.textUrl||q.linkType!==ce.linkType},[]);g.useEffect(()=>{if(!O)return;const q=()=>j();return window.addEventListener("resize",q,{passive:!0}),()=>window.removeEventListener("resize",q)},[O,j]);const W=g.useCallback(q=>{if(!q||r.current||!LI(q))return;const ie=xf(q);if(!ie||s.current===ie)return;const ne=N.getRootElement();if(!(ne!=null&&ne.contains(ie)))return;const H=ie.getAttribute("href");if(P(RI(ie)),H){const X=d2(H);if(F(X),X==="sms"){const{phone:Y,body:J}=f2(H);h(Y),w(J),A(Y)}else h(uc(H)),w(""),A(X==="web"?H:uc(H))}else h(""),w(""),A("");T(!0),s.current=ie},[N]),B=g.useCallback(q=>{const ce=p.$getSelection();q==="create"&&(E("create"),r.current=!0,F("web"),h(""),w(""),d.current={linkUrl:"",messageText:"",textUrl:"",linkType:"web"});const ie=H=>{const X=d2(H);if(F(X),X==="sms"){const{phone:Y,body:J}=f2(H);h(Y),w(J),A(Y)}else h(uc(H)),w(""),A(X==="web"?H:uc(H))};if(p.$isRangeSelection(ce)){const H=pi(ce),X=ye.$findMatchingParent(H,sn.$isLinkNode);u.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},X?ie(X.getURL()):sn.$isLinkNode(H)&&ie(H.getURL())}const ne=ce?jI():null;return ne&&P(NI(ne)),T(!0),!0},[]);g.useEffect(()=>{n.current&&(n.current.updateLinkEditor=()=>{const q=II();r.current=!1,W(q),r.current=!0,E("edit")})},[W,n]),g.useEffect(()=>{if(Tn)return;const q=ce=>{if(e.current)return;const ie=ce.target;ie instanceof HTMLElement&&W(ie)};return document.body.addEventListener("mouseover",q,{passive:!0}),()=>{document.body.removeEventListener("mouseover",q)}},[W,e]),g.useEffect(()=>{if(!Tn)return;const q=ce=>{if(e.current)return;const ie=ce.target;if(!(ie instanceof HTMLElement)||hh(ie))return;if(xf(ie)){if(!N.isEditable()||(ce.preventDefault(),ce.stopPropagation(),r.current))return;W(ie);return}r.current||j()};return document.addEventListener("click",q,{capture:!0}),document.addEventListener("touchend",q,{capture:!0,passive:!1}),()=>{document.removeEventListener("click",q,{capture:!0}),document.removeEventListener("touchend",q,{capture:!0})}},[N,W,j,e]),g.useEffect(()=>{if(Tn)return;const q=cu.debounce(ce=>{if(r.current)return;if(e.current){j();return}const ie=ce.target;if(!(ie instanceof HTMLElement))return;const ne=xf(ie)!==null,H=hh(ie);ne||H||j()},300,{maxWait:600});return document.addEventListener("mousemove",q,{passive:!0}),()=>{document.removeEventListener("mousemove",q),q.cancel()}},[j,e]),g.useEffect(()=>ye.mergeRegister(N.registerCommand(gu,q=>(B(q),!0),p.COMMAND_PRIORITY_LOW)),[N,B]),g.useEffect(()=>{if(!R)return;const q=requestAnimationFrame(()=>{t.current&&(t.current.focus(),t.current.select()),N.read(()=>{const ce=p.$getSelection();if(p.$isRangeSelection(ce)){l.current=Qt();const ie=pi(ce);if(ye.$findMatchingParent(ie,sn.$isLinkNode)&&ie){const H=ie.getTextContent();b(H),R==="edit"&&(d.current={linkUrl:_.current.linkUrl,messageText:_.current.messageText,textUrl:H,linkType:_.current.linkType})}}})});return()=>cancelAnimationFrame(q)},[N,R]);const Z=g.useCallback(()=>{const q=p.$getSelection();if(p.$isRangeSelection(q))return!0;const ce=(H,X,Y)=>Y==="text"&&p.$isTextNode(H)?Math.max(0,Math.min(X,H.getTextContentSize())):Y==="element"&&p.$isElementNode(H)?Math.max(0,Math.min(X,H.getChildrenSize())):Math.max(0,X),ie=u.current;if(ie){const H=p.$getNodeByKey(ie.anchorKey),X=p.$getNodeByKey(ie.focusKey);if(H&&X){const Y=p.$createRangeSelection();return Y.anchor.set(ie.anchorKey,ce(H,ie.anchorOffset,ie.anchorType),ie.anchorType),Y.focus.set(ie.focusKey,ce(X,ie.focusOffset,ie.focusType),ie.focusType),p.$setSelection(Y),!0}}const ne=l.current;if(!ne)return!1;if(p.$isTextNode(ne))return ne.select(0,ne.getTextContentSize()),!0;if(p.$isElementNode(ne)){const H=ne.getFirstDescendant();if(p.$isTextNode(H))return H.select(0,H.getTextContentSize()),!0}return!1},[]),Q=g.useCallback(()=>{if(o.current)return;const q=I==="sms"?h2(f,x):u2(f,I);if(SI(q,I)&&q)L(!1);else{L(!0);return}o.current=!0;try{N.update(()=>{if(!Z())return;const ce=p.$getSelection();if(!p.$isRangeSelection(ce))return;const ie=pi(ce),ne=ie?ie.getParent():null,H=(sn.$isAutoLinkNode(ie)?ie:null)??(sn.$isAutoLinkNode(ne)?ne:null);if(!H)N.dispatchCommand(sn.TOGGLE_LINK_COMMAND,ba(q)),R==="edit"&&ie&&Fn(ie)&&(ie.setTextContent(y),ie.selectEnd());else{const X=p.$createTextNode(y),Y=H.getParent();Y&&(H.remove(),Y.append(X),N.dispatchCommand(sn.TOGGLE_LINK_COMMAND,ba(q)),X.selectEnd())}}),j()}catch(ce){console.error("[FloatingLink] submit failed",ce)}finally{o.current=!1}},[N,R,f,x,I,j,Z,y]),re=g.useCallback(q=>{if((q.metaKey||q.ctrlKey)&&(q.code==="KeyZ"||q.code==="KeyY")){q.stopPropagation();return}q.code==="Enter"?(q.preventDefault(),Q()):q.code==="Escape"&&(q.preventDefault(),j())},[Q,j]),oe=q=>{k&&L(!1),h(q)},Ce=q=>{k&&L(!1),F(q),h(""),q!=="sms"&&w("")},Te=R==="edit",Me=ba(I==="sms"?h2(f,x):u2(f,I));return{inputRef:t,isOpen:O,position:M,linkUrl:f,displayLinkUrl:m,textUrl:y,setTextUrl:b,messageText:x,setMessageText:w,error:k,isLinkEditMode:R,isShowEditTextLink:Te,safeLinkUrl:Me,linkType:I,reset:j,isDirty:U,onUrlInputChange:oe,onLinkTypeChange:Ce,onUrlInputKeyDown:re,onSubmit:Q,onEditClick:()=>{setTimeout(()=>{const q=s.current;q&&document.contains(q)&&OI(q),N.read(()=>{const ce=p.$getSelection();p.$isRangeSelection(ce)&&(u.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:()=>{Me&&DI(Me)},onRemoveClick:()=>{const q=s.current;if(!q||!document.contains(q)){j();return}N.update(()=>{const ce=p.$getNearestNodeFromDOMNode(q);if(!ce)return;const ie=ye.$findMatchingParent(ce,J=>sn.$isLinkNode(J)||sn.$isAutoLinkNode(J));if(!ie)return;if(sn.$isAutoLinkNode(ie)){ie.setIsUnlinked(!0),ie.markDirty();const J=ie.getFirstDescendant();p.$isTextNode(J)&&J.selectEnd();return}const ne=ie.getFirstDescendant(),H=ie.getLastDescendant();if(!p.$isTextNode(ne)||!p.$isTextNode(H))return;const X=p.$createRangeSelection();X.anchor.set(ne.getKey(),0,"text"),X.focus.set(H.getKey(),H.getTextContentSize(),"text"),p.$setSelection(X),sn.$toggleLink(null);const Y=p.$getSelection();p.$isRangeSelection(Y)&&Y.anchor.getNode().selectEnd()}),j()}}}function Yb({inputRef:e,linkUrl:n,linkType:t,error:r,onLinkTypeChange:o,onUrlInputChange:s,onUrlInputKeyDown:l}){const{t:u}=He.useTranslation();return a.jsxs(v.Group,{wrap:"nowrap",gap:0,w:"100%",className:"floating-link-group","data-error":r||void 0,children:[a.jsx(Ya,{data:[{value:"web",label:u("editor.link.type.web")},{value:"phone",label:u("editor.link.type.phone")},{value:"email",label:u("editor.link.type.email")},{value:"sms",label:u("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:u("editor.link.type.web"),"data-test-id":"floating-link-type-select",inputClassName:"editor-select__input--create-mode"}),a.jsx(v.Input,{ref:e,value:n,error:r,type:MI(t),name:TI(t),size:"sm",className:"floating-link-url-input",placeholder:EI(t),"data-test-id":"floating-link-url-input",onChange:d=>{s(d.target.value)},onKeyDown:l})]})}function BI({inputRef:e,linkUrl:n,linkType:t,error:r,mobile:o,onLinkTypeChange:s,onUrlInputChange:l,onUrlInputKeyDown:u,onCancel:d,onSave:f}){const{t:h}=He.useTranslation();return a.jsxs(v.Box,{className:"floating-link-form",children:[a.jsxs(v.Stack,{gap:5,children:[a.jsx(v.Text,{fw:500,size:"xs",c:"var(--mantine-color-text)",children:h("editor.link.link")}),a.jsx(Yb,{inputRef:e,linkUrl:n,linkType:t,error:r,onLinkTypeChange:s,onUrlInputChange:l,onUrlInputKeyDown:u})]}),o?a.jsxs(v.Stack,{gap:4,mt:16,children:[a.jsx(v.Button,{h:36,fullWidth:!0,onClick:f,disabled:!n.trim(),"data-test-id":"floating-link-save",children:h("editor.link.save")}),a.jsx(v.Button,{h:36,fullWidth:!0,variant:"subtle",color:"gray",onClick:d,"data-test-id":"floating-link-cancel",children:h("editor.cancel")})]}):a.jsxs(v.Group,{justify:"flex-end",mt:16,gap:8,children:[a.jsx(v.Button,{h:30,variant:"subtle",color:"gray",onClick:d,"data-test-id":"floating-link-cancel",children:h("editor.cancel")}),a.jsx(v.Button,{h:30,type:"submit",onClick:f,disabled:!n.trim(),"data-test-id":"floating-link-save",children:h("editor.link.save")})]})]})}function _I({inputRef:e,textUrl:n,linkUrl:t,linkType:r,error:o,mobile:s,setTextUrl:l,onLinkTypeChange:u,onUrlInputChange:d,onUrlInputKeyDown:f,onCancel:h,onSave:m}){const{t:A}=He.useTranslation();return a.jsxs(v.Box,{className:"floating-link-form",children:[a.jsxs(v.Stack,{gap:10,children:[a.jsxs(v.Stack,{gap:5,children:[a.jsx(v.Text,{fw:500,size:"xs",c:"var(--mantine-color-text)",children:A("editor.link.link")}),a.jsx(Yb,{inputRef:e,linkUrl:t,linkType:r,error:o,onLinkTypeChange:u,onUrlInputChange:d,onUrlInputKeyDown:f})]}),a.jsxs(v.Stack,{gap:5,children:[a.jsx(v.Text,{fw:500,size:"xs",c:"var(--mantine-color-text)",children:A("editor.link.name")}),a.jsx(v.Input,{value:n,size:"sm",placeholder:A("editor.link.linkName"),"data-test-id":"floating-link-text-input",onChange:y=>{l(y.target.value)},onKeyDown:f})]})]}),s?a.jsxs(v.Stack,{gap:4,mt:16,children:[a.jsx(v.Button,{h:36,fullWidth:!0,onClick:m,disabled:!t.trim(),"data-test-id":"floating-link-save",children:A("editor.link.save")}),a.jsx(v.Button,{h:36,fullWidth:!0,variant:"subtle",color:"gray",onClick:h,"data-test-id":"floating-link-cancel",children:A("editor.cancel")})]}):a.jsxs(v.Group,{justify:"flex-end",mt:16,gap:8,children:[a.jsx(v.Button,{h:30,variant:"subtle",color:"gray",onClick:h,"data-test-id":"floating-link-cancel",children:A("editor.cancel")}),a.jsx(v.Button,{h:30,type:"submit",onClick:m,disabled:!t.trim(),"data-test-id":"floating-link-save",children:A("editor.link.save")})]})]})}const FI={web:Yh,phone:ek,email:K8,sms:H8};function WI({linkUrl:e,href:n,linkType:t,messageText:r,onEditClick:o,onCopyClick:s,onRemoveClick:l}){const{t:u}=He.useTranslation(),d=Au(),f=FI[t],h=()=>{s(),d(u("editor.link.copied"))};return a.jsxs(v.Box,{className:`floating-link-card floating-link-card--${t}`,children:[a.jsxs(v.Group,{className:"floating-link-card__top",wrap:"nowrap",children:[a.jsxs(v.Group,{className:"floating-link-card__info",wrap:"nowrap",gap:6,children:[a.jsx(ue,{icon:f,size:16,color:"currentColor"}),a.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:m=>m.stopPropagation(),"data-test-id":"floating-link-anchor",children:e})]}),a.jsxs(v.Group,{className:"floating-link-card__actions",gap:2,wrap:"nowrap",children:[a.jsx(v.ActionIcon,{variant:"subtle",color:"gray",size:24,radius:"md",onMouseDown:m=>m.preventDefault(),onClick:o,"aria-label":u("editor.link.edit"),"data-test-id":"floating-link-edit",children:a.jsx(ue,{icon:IC,size:16,color:"currentColor"})}),a.jsx(v.ActionIcon,{variant:"subtle",color:"gray",size:24,radius:"md",onMouseDown:m=>m.preventDefault(),onClick:h,"aria-label":u("editor.link.copy"),"data-test-id":"floating-link-copy",children:a.jsx(ue,{icon:Fh,size:16,color:"currentColor"})}),a.jsx(v.ActionIcon,{variant:"subtle",color:"red",size:24,radius:"md",onMouseDown:m=>m.preventDefault(),onClick:l,"aria-label":u("editor.link.remove"),"data-test-id":"floating-link-remove",children:a.jsx(ue,{icon:_n,size:16,color:"currentColor"})})]})]}),t==="sms"&&r&&a.jsx(v.Text,{className:"floating-link-card__sms-body",size:"xs",children:r})]})}function zI({showTextToolbar:e,updateLink:n}){const{t}=He.useTranslation(),[r,o]=g.useState(!1),{inputRef:s,isOpen:l,position:u,linkUrl:d,displayLinkUrl:f,textUrl:h,setTextUrl:m,messageText:A,error:y,isLinkEditMode:b,isShowEditTextLink:x,safeLinkUrl:w,linkType:k,reset:L,isDirty:O,onUrlInputChange:T,onLinkTypeChange:R,onUrlInputKeyDown:E,onSubmit:M,onEditClick:P,onCopyClick:I,onRemoveClick:F}=PI({showTextToolbar:e,updateLink:n}),_=()=>{if((b==="create"||b==="edit")&&O()){o(!0);return}L()},N=Yn.useClickOutside(re=>{const oe=re.target;hh(oe)||_()}),j=()=>{o(!1),L()},U=b==="preview"?"preview":x?"edit":"create",W=re=>U==="create"?a.jsx(BI,{inputRef:s,linkUrl:d,linkType:k,error:y,mobile:re,onLinkTypeChange:R,onUrlInputChange:T,onUrlInputKeyDown:E,onCancel:L,onSave:M}):U==="edit"?a.jsx(_I,{inputRef:s,textUrl:h,linkUrl:d,linkType:k,error:y,mobile:re,setTextUrl:m,onLinkTypeChange:R,onUrlInputChange:T,onUrlInputKeyDown:E,onCancel:L,onSave:M}):a.jsx(WI,{linkUrl:f,href:w,linkType:k,messageText:A,onEditClick:P,onCopyClick:I,onRemoveClick:F}),B=t(U==="edit"?"editor.link.editLink":"editor.link.addLink"),Z=a.jsxs(v.Modal,{opened:r,onClose:()=>o(!1),centered:!0,title:t("editor.unsavedChanges.title"),size:"sm",zIndex:Sc+10,children:[a.jsx(v.Text,{mb:"md",children:t("editor.unsavedChanges.message")}),a.jsxs(v.Flex,{justify:"flex-end",gap:"sm",children:[a.jsx(v.Button,{variant:"default",onClick:()=>o(!1),children:t("editor.unsavedChanges.cancel")}),a.jsx(v.Button,{color:"red",onClick:j,children:t("editor.unsavedChanges.closeWithoutSaving")})]})]}),Q=a.jsxs(v.Popover,{width:U==="preview"?312:380,opened:l,onChange:re=>{re||L()},closeOnClickOutside:!1,position:"bottom",offset:10,transitionProps:zn,zIndex:Sc,children:[a.jsx(v.Popover.Target,{children:a.jsx("div",{style:{position:"fixed",left:u.left,top:u.top+8,width:10,height:10,background:"transparent",pointerEvents:"none"}})}),a.jsx(v.Popover.Dropdown,{className:`floating-link-dropdown floating-link-dropdown--${b}-mode`,"data-test-id":"floating-link-dropdown",children:a.jsx("div",{ref:N,children:W(!1)})})]});if(Tn){const re=U==="create"||U==="edit";return a.jsxs(a.Fragment,{children:[re?a.jsx(Ur,{opened:l,onClose:_,title:B,zIndex:Sc,children:W(!0)}):Q,Z]})}return a.jsxs(a.Fragment,{children:[Q,Z]})}function UI(e){const{disable:n}=g.useContext(at),t=g.useRef({updateLinkEditor:()=>{}});return n?null:a.jsxs(a.Fragment,{children:[a.jsx(wI,{}),Ir.createPortal(a.jsx(zI,{showTextToolbar:e,updateLink:t}),document.body)]})}function KI({showTextToolbar:e}){return UI(e)}function HI(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();return r}const p2=()=>{var t;const e=(t=window.getSelection())==null?void 0:t.toString().trim();return e==null?void 0:e.replace(/\s+/g,"")},YI=10,ZI=5;function na(e,n,t,r=!1,o=YI,s=ZI){const l=t.parentElement,u=document.querySelector(".ai-editor-menu");if(e===null||!l||u){n.style.opacity="0",n.style.transform="translate(-10000px, -10000px)";return}const d=n.getBoundingClientRect(),f=l.getBoundingClientRect();let h=e.top-d.height-o;h<0&&(h=10);let m=e.left-s;if(h<f.top&&(h+=d.height+e.height+o*2),m+d.width>f.right&&(m=f.right-d.width-s),e.bottom-e.height>f.bottom){n.style.transform="translate(-1000px, -1000px)";return}if(e.bottom+e.height<f.top){n.style.transform="translate(-1000px, -1000px)";return}let A=h;d.top>=f.bottom&&(A=f.bottom),n.style.transform=`translate(${m}px, ${A}px)`,n.style.opacity="1"}function GI({editor:e,anchorElem:n,isLink:t,isBold:r,isItalic:o,isUnderline:s,isCode:l,isStrikethrough:u,isSubscript:d,isSuperscript:f,component:h,isText:m}){const A=g.useRef(null),y=g.useRef(!1),b=g.useRef(null),x=g.useCallback(()=>{e.dispatchCommand(gu,"create")},[e,t]);function w(){var L,O;A.current&&(y.current=!0,na(((L=b.current)==null?void 0:L.rect)||null,A==null?void 0:A.current,n,(O=b.current)==null?void 0:O.isLink))}g.useEffect(()=>{const L=p2();if(!m&&!(L!=null&&L.length)){let O=function(M){return M instanceof HTMLElement};const T=A.current,R=window.getSelection();let E=!1;R!=null&&R.anchorNode&&O(R.anchorNode)&&R.anchorNode.className==="toolbar"&&(E=!0),T&&!E&&(b.current={rect:null,floatingElem:T,anchorElem:n,isLink:t},na(null,T,n,t),y.current=!1)}},[m,e]),g.useEffect(()=>{if(A!=null&&A.current){const L=()=>{const O=window.getSelection();if(!O||O.isCollapsed)return;const T=e.getRootElement();!T||!O.anchorNode||T.contains(O.anchorNode)&&w()};return document.addEventListener("mouseup",w),document.addEventListener("keyup",L),()=>{document.removeEventListener("mouseup",w),document.removeEventListener("keyup",L)}}},[e,A]),g.useEffect(()=>{e.registerCommand(p.KEY_DOWN_COMMAND,L=>{var O;return(L.metaKey||L.ctrlKey)&&L.code==="KeyA"?(L.preventDefault(),vk(e),Qt(!0)&&(kk()&&(A!=null&&A.current)?(na(null,A==null?void 0:A.current,n,(O=b.current)==null?void 0:O.isLink),p.$selectAll(),n1(e)):setTimeout(()=>{w()})),!0):!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(Kf,()=>(setTimeout(()=>{var L;A!=null&&A.current&&na(null,A==null?void 0:A.current,n,(L=b.current)==null?void 0:L.isLink)},100),!1),p.COMMAND_PRIORITY_LOW)},[e]);const k=g.useCallback(()=>{const L=p.$getSelection(),O=A.current,T=window.getSelection();if(O===null)return;const R=e.getRootElement();let E=!1;const M=p2();if(M&&M.length>0&&(E=!0),L!==null&&T!==null&&!T.isCollapsed&&R!==null&&R.contains(T.anchorNode)&&E){const P=HI(T,R);if(b.current={rect:P,floatingElem:O,anchorElem:n,isLink:t},p.$isRangeSelection(L)){const F=pi(L).getParent(),_=F==null?void 0:F.getFormatType();y.current&&_&&A&&e.registerCommand(Kf,N=>(N||setTimeout(()=>{var j,U;na(((j=b.current)==null?void 0:j.rect)||null,O,n,(U=b.current)==null?void 0:U.isLink)},100),!1),p.COMMAND_PRIORITY_LOW)}}else b.current={rect:null,floatingElem:O,anchorElem:n,isLink:t}},[e,n,t]);return g.useEffect(()=>{const L=n.parentElement,O=()=>{e.getEditorState().read(()=>{k()})};return window.addEventListener("resize",O),L&&L.addEventListener("scroll",O),()=>{window.removeEventListener("resize",O),L&&L.removeEventListener("scroll",O)}},[e,k,n]),g.useEffect(()=>(e.getEditorState().read(()=>{k()}),ye.mergeRegister(e.registerUpdateListener(({editorState:L})=>{L.read(()=>{k()})}),e.registerCommand(p.SELECTION_CHANGE_COMMAND,()=>(k(),!1),p.COMMAND_PRIORITY_LOW))),[e,k]),a.jsx("div",{ref:A,className:`floating-text-format-popup doc-space-editor-wrapper ${m?"":"floating-text-format-popup-hidden"}`,onMouseDown:L=>L.preventDefault(),children:a.jsx("div",{children:e.isEditable()&&(h||a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"bold")},className:"popup-item spaced "+(r?"active":""),"data-test-id":"toolbar-bold",children:a.jsx(Mn,{name:"bold",stroke:r?3:2})}),a.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"italic")},className:"popup-item spaced "+(o?"active":""),"data-test-id":"toolbar-italic",children:a.jsx(Mn,{name:"italic",stroke:o?3:2})}),a.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"underline")},className:"popup-item spaced "+(s?"active":""),"data-test-id":"toolbar-underline",children:a.jsx(Mn,{name:"underline",stroke:s?3:2})}),a.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"strikethrough")},className:"popup-item spaced "+(u?"active":""),"data-test-id":"toolbar-strikethrough",children:a.jsx(Mn,{name:"strikethrough",stroke:u?3:2})}),a.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"subscript")},className:"popup-item spaced "+(d?"active":""),"data-test-id":"toolbar-subscript",children:a.jsx(Mn,{name:"subscript",stroke:d?3:2})}),a.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"superscript")},className:"popup-item spaced "+(f?"active":""),"data-test-id":"toolbar-superscript",children:a.jsx(Mn,{name:"superscript",stroke:f?3:2})}),a.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"code")},className:"popup-item spaced "+(l?"active":""),"data-test-id":"toolbar-code",children:a.jsx(Mn,{name:"code"})}),a.jsx("button",{type:"button",onClick:x,className:"popup-item spaced "+(t?"active":""),"data-test-id":"toolbar-link",children:a.jsx(Mn,{name:"link"})})]}))})})}function VI(e,n,t){const[r,o]=g.useState(!1),[s,l]=g.useState(!1),[u,d]=g.useState(!1),[f,h]=g.useState(!1),[m,A]=g.useState(!1),[y,b]=g.useState(!1),[x,w]=g.useState(!1),[k,L]=g.useState(!1),[O,T]=g.useState(!1),[R,E]=g.useState(!1),M=M1(),{disable:P}=g.useContext(at),I=g.useCallback(()=>{e.getEditorState().read(()=>{var oe,Ce,Te;if(e.isComposing())return;const _=p.$getSelection(),N=window.getSelection(),j=e.getRootElement();if(N!==null&&(!p.$isRangeSelection(_)||j===null||!j.contains(N.anchorNode))){o(!1);return}if(!p.$isRangeSelection(_))return;const U=pi(_),W=ye.$findMatchingParent(U,xt);l(xt(W)),h(_.hasFormat("bold")),A(_.hasFormat("italic")),b(_.hasFormat("underline")),w(_.hasFormat("strikethrough")),L(_.hasFormat("subscript")),T(_.hasFormat("superscript")),E(_.hasFormat("code"));const B=U.getParent();sn.$isLinkNode(B)||sn.$isLinkNode(U)?d(!0):d(!1);const Z=Kt.$isCodeHighlightNode(_.anchor.getNode()),Q=(Te=(Ce=(oe=e.getElementByKey(U.__key))==null?void 0:oe.parentElement)==null?void 0:Ce.parentElement)==null?void 0:Te.classList.contains("Collapsible__title");!Z&&_.getTextContent()!==""&&!Q?o(Fn(U)||p.$isParagraphNode(U)||cn.$isHeadingNode(U)||cn.$isQuoteNode(U)||Rt(U)):o(!1);const re=_.getTextContent().replace(/\n/g,"");if(!_.isCollapsed()&&re===""){o(!1);return}})},[e]);if(g.useEffect(()=>(document.addEventListener("selectionchange",I),()=>{document.removeEventListener("selectionchange",I)}),[I]),g.useEffect(()=>ye.mergeRegister(e.registerUpdateListener(()=>{I()}),e.registerRootListener(()=>{e.getRootElement()===null&&o(!1)})),[e,I]),P)return null;const F=s?null:t;return Ir.createPortal(a.jsx(GI,{editor:e,anchorElem:n,isLink:u,isBold:f,isItalic:m,isStrikethrough:x,isSubscript:k,isSuperscript:O,isUnderline:y,isCode:R,component:F,isText:r&&!M}),document.body)}function g2({anchorElem:e=document.body,component:n}){const[t]=tt.useLexicalComposerContext();return VI(t,e,n)}function qI(){const[e]=tt.useLexicalComposerContext(),{maxHeight:n}=g.useContext(at),t=()=>{XC(e)};return n?null:a.jsx("div",{className:"new-paragraph",onClick:t})}function QI({hover:e,menuRef:n,onCopy:t,onDuplicate:r,isEmpty:o}){const{t:s}=He.useTranslation(),l=e.type==="code"?e.label||s("editor.menu.main.code.name"):s("editor.menu.other.equation.overlayTitle");return a.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:[a.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:a.jsx(v.Text,{className:"preview-code-equation-menu__label",size:"sm",c:"var(--mantine-color-dark-0)",children:l})}),a.jsx(Qh,{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 C2(e){if(!e)return!1;try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function JI(e){const{disable:n}=g.useContext(at),[t]=tt.useLexicalComposerContext(),[r,o]=g.useState(null),s=g.useRef(null),l=n&&!!e,u=g.useMemo(()=>A=>{if(!l||!e)return;const{lexicalDOMNode:y,isOutside:b}=Ou(A,"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:L}=e.getBoundingClientRect(),{y:O,right:T}=y.getBoundingClientRect(),R=O-k+4,E=L-T+4;let M=null;t.getEditorState().read(()=>{const P=p.$getNearestNodeFromDOMNode(y);if(!P)return;const I=x?qc(P):vc(P);M=(I==null?void 0:I.getKey())??null}),o({type:x?"code":"equation",label:w,target:y,wrapperKey:M,position:{top:`${R}px`,right:`${E}px`}})},[e,l,t]),d=Pi(u,50,300);if(g.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"?C2((r.target.textContent||"").trim()):C2(m2(r.target).trim()):!1,h=r.type==="code"?!(r.target.textContent||"").trim():!m2(r.target).trim(),m=()=>{const A=r.wrapperKey;A&&t.update(()=>{const y=p.$getNodeByKey(A);!rs(y)&&!yu(y)||y.insertAfter(Lr(y))})};return g.createElement(QI,{hover:r,menuRef:s,onCopy:f,onDuplicate:m,isEmpty:h})}function XI({anchorElem:e=document.body}){return JI(e)}var $I="function",eO="object",tO="string",nO="undefined",rO=typeof document!==nO&&document,oO=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],zr=1e-7,dc={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 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,u=s.length;l<u;l++,o++)r[o]=s[l];return r}function as(e){return e&&typeof e===eO}function nu(e){return Array.isArray(e)}function Wa(e){return typeof e===tO}function O1(e){return typeof e===$I}function iO(e,n){var t=e===""||e==" ",r=n===""||n==" ";return r&&t||e===n}function Zb(e,n,t,r,o){var s=D1(e,n,t);return s?t:aO(e,n,t+1,r,o)}function D1(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 aO(e,n,t,r,o){for(var s=function(f){var h=n[f].trim();if(h===e.close&&!D1(e,n,f))return{value:f};var m=f,A=za(o,function(y){var b=y.open;return b===h});if(A&&(m=Zb(A,n,f,r,o)),m===-1)return l=f,"break";f=m,l=f},l,u=t;u<r;++u){var d=s(u);if(u=l,typeof d=="object")return d.value;if(d==="break")break}return-1}function P1(e,n){var t=Wa(n)?{separator:n}:n,r=t.separator,o=r===void 0?",":r,s=t.isSeparateFirst,l=t.isSeparateOnlyOpenClose,u=t.isSeparateOpenClose,d=u===void 0?l:u,f=t.openCloseCharacters,h=f===void 0?oO:f,m=h.map(function(M){var P=M.open,I=M.close;return P===I?P:P+"|"+I}).join("|"),A="(\\s*"+o+"\\s*|"+m+"|\\s+)",y=new RegExp(A,"g"),b=e.split(y).filter(function(M){return M&&M!=="undefined"}),x=b.length,w=[],k=[];function L(){return k.length?(w.push(k.join("")),k=[],!0):!1}for(var O=function(M){var P=b[M].trim(),I=M,F=za(h,function(j){var U=j.open;return U===P}),_=za(h,function(j){var U=j.close;return U===P});if(F){if(I=Zb(F,b,M,x,h),I!==-1&&d)return L()&&s||(w.push(b.slice(M,I+1).join("")),M=I,s)?(T=M,"break"):(T=M,"continue")}else if(_&&!D1(_,b,M)){var N=sO(h);return N.splice(h.indexOf(_),1),{value:P1(e,{separator:o,isSeparateFirst:s,isSeparateOnlyOpenClose:l,isSeparateOpenClose:d,openCloseCharacters:N})}}else if(iO(P,o)&&!l)return L(),s?(T=M,"break"):(T=M,"continue");I===-1&&(I=x-1),k.push(b.slice(M,I+1).join("")),M=I,T=M},T,R=0;R<x;++R){var E=O(R);if(R=T,typeof E=="object")return E.value;if(E==="break")break}return k.length&&w.push(k.join("")),w}function lO(e){return P1(e,"")}function la(e){return P1(e,",")}function cO(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 ru(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 ph(e){return e.replace(/[\s-_]+([^\s-_])/g,function(n,t){return t.toUpperCase()})}function gh(){return Date.now?Date.now():new Date().getTime()}function ou(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 za(e,n,t){var r=ou(e,n);return r>-1?e[r]:t}function A2(e,n){var t=ru(e),r=t.value,o=t.unit;if(as(n)){var s=n[o];if(s){if(O1(s))return s(r);if(dc[o])return dc[o](r,s)}}else if(o==="%")return r*n/100;return dc[o]?dc[o](r):r}function Gb(e,n,t){return Math.max(n,Math.min(e,t))}function b2(e,n,t,r){return r===void 0&&(r=e[0]/e[1]),[[vo(n[0],zr),vo(n[0]/r,zr)],[vo(n[1]*r,zr),vo(n[1],zr)]].filter(function(o){return o.every(function(s,l){var u=n[l],d=vo(u,zr);return t?s<=u||s<=d:s>=u||s>=d})})[0]||e}function uO(e,n,t,r){if(!r)return e.map(function(y,b){return Gb(y,n[b],t[b])});var o=e[0],s=e[1],l=r===!0?o/s:r,u=b2(e,n,!1,l),d=u[0],f=u[1],h=b2(e,t,!0,l),m=h[0],A=h[1];return o<d||s<f?(o=d,s=f):(o>m||s>A)&&(o=m,s=A),[o,s]}function dO(e){for(var n=e.length,t=0,r=n-1;r>=0;--r)t+=e[r];return t}function fO(e){for(var n=e.length,t=0,r=n-1;r>=0;--r)t+=e[r];return n?t/n:0}function y2(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 hO(e){return[0,1].map(function(n){return fO(e.map(function(t){return t[n]}))})}function x2(e){var n=hO(e),t=y2(n,e[0]),r=y2(n,e[1]);return t<r&&r-t<Math.PI||t>r&&r-t<-Math.PI?1:-1}function mh(e,n){return Math.sqrt(Math.pow((n?n[0]:0)-e[0],2)+Math.pow((n?n[1]:0)-e[1],2))}function vo(e,n){var t=1/n;return Math.round(e/n)/t}function pO(e,n){return e.classList?e.classList.contains(n):!!e.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)"))}function gO(e,n){e.classList?e.classList.add(n):e.className+=" "+n}function vn(e,n,t,r){e.addEventListener(n,t,r)}function hn(e,n,t,r){e.removeEventListener(n,t,r)}function yo(e){return(e==null?void 0:e.ownerDocument)||rO}function Es(e){var n;return((n=e==null?void 0:e.ownerDocument)===null||n===void 0?void 0:n.defaultView)||window}function mO(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function v2(e){return as(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 Ch=function(){return Ch=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},Ch.apply(this,arguments)};function CO(){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,u=s.length;l<u;l++,o++)r[o]=s[l];return r}var Du=(function(){function e(){this._events={}}var n=e.prototype;return n.on=function(t,r){if(as(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(as(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=ou(s,function(u){return u.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,CO(s).forEach(function(u){u.listener(r),u.once&&o.off(t,u.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(Ch({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 Ah=function(e,n){return Ah=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])},Ah(e,n)};function AO(e,n){Ah(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var yn=function(){return yn=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},yn.apply(this,arguments)};function bO(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 vf(e){return bO([e[0].clientX,e[0].clientY],[e[1].clientX,e[1].clientY])/Math.PI*180}function yO(e){return e.touches&&e.touches.length>=2}function fc(e){return e?e.touches?vO(e.touches):[Vb(e)]:[]}function xO(e){return e&&(e.type.indexOf("mouse")>-1||"button"in e)}function w2(e,n,t){var r=t.length,o=ya(e,r),s=o.clientX,l=o.clientY,u=o.originalClientX,d=o.originalClientY,f=ya(n,r),h=f.clientX,m=f.clientY,A=ya(t,r),y=A.clientX,b=A.clientY,x=s-h,w=l-m,k=s-y,L=l-b;return{clientX:u,clientY:d,deltaX:x,deltaY:w,distX:k,distY:L}}function wf(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function vO(e){for(var n=Math.min(e.length,2),t=[],r=0;r<n;++r)t.push(Vb(e[r]));return t}function Vb(e){return{clientX:e.clientX,clientY:e.clientY}}function ya(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 kf=(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),vf(n)},e.prototype.getRotation=function(n){return n===void 0&&(n=this.prevClients),vf(n)-vf(this.startClients)},e.prototype.getPosition=function(n,t){n===void 0&&(n=this.prevClients);var r=w2(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]=w2([n[l]],[t[l]],[r[l]]);return s},e.prototype.getMovement=function(n){var t=this.movement;if(!n)return t;var r=ya(n,this.length),o=ya(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),wf(n)},e.prototype.getScale=function(n){return n===void 0&&(n=this.prevClients),wf(n)/wf(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})(),k2=["textarea","input"],wO=(function(e){AO(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(A,y){if(y===void 0&&(y=!0),!(!o.flag&&A.cancelable===!1)){var b=A.type.indexOf("drag")>=-1;if(!(o.flag&&b)){o._isDragAPI=!0;var x=o.options,w=x.container,k=x.pinchOutside,L=x.preventWheelClick,O=x.preventRightClick,T=x.preventDefault,R=x.checkInput,E=x.dragFocusedInput,M=x.preventClickEventOnDragStart,P=x.preventClickEventOnDrag,I=x.preventClickEventByCondition,F=o._useTouch,_=!o.flag;if(o._isSecondaryButton=A.which===3||A.button===2,L&&(A.which===2||A.button===1)||O&&(A.which===3||A.button===2))return o.stop(),!1;if(_){var N=o._window.document.activeElement,j=A.target;if(j){var U=j.tagName.toLowerCase(),W=k2.indexOf(U)>-1,B=j.isContentEditable;if(W||B){if(R||!E&&N===j)return!1;if(N&&(N===j||B&&N.isContentEditable&&N.contains(j)))if(E)j.blur();else return!1}else if((T||A.type==="touchstart")&&N){var Z=N.tagName.toLowerCase();(N.isContentEditable||k2.indexOf(Z)>-1)&&N.blur()}(M||P||I)&&vn(o._window,"click",o._onClick,!0)}o.clientStores=[new kf(fc(A))],o._isIdle=!1,o.flag=!0,o.isDrag=!1,o._isTrusted=y,o._dragFlag=!0,o._prevInputEvent=A,o.data={},o.doubleFlag=gh()-o.prevTime<200,o._isMouseEvent=xO(A),!o._isMouseEvent&&o._preventMouseEvent&&o._allowMouseEvent();var Q=o._preventMouseEvent||o.emit("dragStart",yn(yn({data:o.data,datas:o.data,inputEvent:A,isMouseEvent:o._isMouseEvent,isSecondaryButton:o._isSecondaryButton,isTrusted:y,isDouble:o.doubleFlag},o.getCurrentStore().getPosition()),{preventDefault:function(){A.preventDefault()},preventDrag:function(){o._dragFlag=!1}}));Q===!1&&o.stop(),o._isMouseEvent&&o.flag&&T&&A.preventDefault()}if(!o.flag)return!1;var re=0;if(_?(o._attchDragEvent(),F&&k&&(re=setTimeout(function(){vn(w,"touchstart",o.onDragStart,{passive:!1})}))):F&&k&&hn(w,"touchstart",o.onDragStart),o.flag&&yO(A)){if(clearTimeout(re),_&&A.touches.length!==A.changedTouches.length)return;o.pinchFlag||o.onPinchStart(A)}}}},o.onDrag=function(A,y){if(o.flag){var b=o.options.preventDefault;!o._isMouseEvent&&b&&A.preventDefault(),o._prevInputEvent=A;var x=fc(A),w=o.moveClients(x,A,!1);if(o._dragFlag){if(o.pinchFlag||w.deltaX||w.deltaY){var k=o._preventMouseEvent||o.emit("drag",yn(yn({},w),{isScroll:!!y,inputEvent:A}));if(k===!1){o.stop();return}}o.pinchFlag&&o.onPinch(A,x)}o.getCurrentStore().getPosition(x,!0)}},o.onDragEnd=function(A){if(o.flag){var y=o.options,b=y.pinchOutside,x=y.container,w=y.preventClickEventOnDrag,k=y.preventClickEventOnDragStart,L=y.preventClickEventByCondition,O=o.isDrag;(w||k||L)&&requestAnimationFrame(function(){o._allowClickEvent()}),!L&&!k&&w&&!O&&o._allowClickEvent(),o._useTouch&&b&&hn(x,"touchstart",o.onDragStart),o.pinchFlag&&o.onPinchEnd(A);var T=A!=null&&A.touches?fc(A):[],R=T.length;R===0||!o.options.keepDragging?o.flag=!1:o._addStore(new kf(T));var E=o._getPosition(),M=gh(),P=!O&&o.doubleFlag;o._prevInputEvent=null,o.prevTime=O||P?0:M,o.flag||(o._dettachDragEvent(),o._preventMouseEvent||o.emit("dragEnd",yn({data:o.data,datas:o.data,isDouble:P,isDrag:O,isClick:!O,isMouseEvent:o._isMouseEvent,isSecondaryButton:o._isSecondaryButton,inputEvent:A,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(){hn(o._window,"click",o._onClick,!0)},o._onClick=function(A){o._allowClickEvent(),o._allowMouseEvent();var y=o.options.preventClickEventByCondition;y!=null&&y(A)||(A.stopPropagation(),A.preventDefault())},o._onContextMenu=function(A){var y=o.options;y.preventRightClick?o.onDragEnd(A):A.preventDefault()},o._passCallback=function(){};var s=[].concat(t),l=s[0];o._window=mO(l)?l:Es(l),o.options=yn({checkInput:!1,container:l&&!("document"in l)?Es(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 u=o.options,d=u.container,f=u.events,h=u.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(A){vn(A,"dragstart",o.onDragStart)}),o._useMouse&&(s.forEach(function(A){vn(A,"mousedown",o.onDragStart),vn(A,"mousemove",o._passCallback)}),vn(d,"contextmenu",o._onContextMenu)),h&&vn(Es(),"blur",o.onBlur),o._useTouch){var m={passive:!1};s.forEach(function(A){vn(A,"touchstart",o.onDragStart,m),vn(A,"touchmove",o._passCallback,m)})}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(),u=l.prevClients;return this.moveClients(u.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),yn(yn({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(),hn(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(s){hn(s,"dragstart",t.onDragStart)}),this._useMouse&&(r.forEach(function(s){hn(s,"mousedown",t.onDragStart)}),hn(o,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(s){hn(s,"touchstart",t.onDragStart)}),hn(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 kf(fc(t));this.pinchFlag=!0,this._addStore(s);var l=this.emit("pinchStart",yn(yn({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",yn(yn({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",yn(yn({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 u=!1;return!l&&this.isDrag&&(u=!0),yn(yn({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:u})},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 m=h.getPosition();return f.distX+=m.distX,f.distY+=m.distY,f},s),u=l.distX,d=l.distY;return yn(yn({},s),{distX:u,distY:d})},n.prototype._attchDragEvent=function(){var t=this._window,r=this.options.container,o={passive:!1};this._isDragAPI&&(vn(r,"dragover",this.onDrag,o),vn(t,"dragend",this.onDragEnd)),this._useMouse&&(vn(r,"mousemove",this.onDrag),vn(t,"mouseup",this.onDragEnd)),this._useTouch&&(vn(r,"touchmove",this.onDrag,o),vn(t,"touchend",this.onDragEnd,o),vn(t,"touchcancel",this.onDragEnd,o))},n.prototype._dettachDragEvent=function(){var t=this._window,r=this.options.container;this._isDragAPI&&(hn(r,"dragover",this.onDrag),hn(t,"dragend",this.onDragEnd)),this._useMouse&&(hn(r,"mousemove",this.onDrag),hn(t,"mouseup",this.onDragEnd)),this._useTouch&&(hn(r,"touchstart",this.onDragStart),hn(r,"touchmove",this.onDrag),hn(t,"touchend",this.onDragEnd),hn(t,"touchcancel",this.onDragEnd))},n.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},n})(Du);function kO(e,n){return function(t){t&&(e[n]=t)}}function SO(e,n){return function(t){var r=t.prototype;e.forEach(function(o){n(r,o)})}}function EO(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,u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var f=(l=this[r])[o].apply(l,u);return f===this[r]?this:f})})}}var MO=(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),u=l===-1?o.length:l;o[u]=t,s[u]=r},e})(),TO=(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})(),LO=typeof Map=="function",NO=(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 RO(e,n){var t=[],r=[];return e.forEach(function(o){var s=o[0],l=o[1],u=new NO;t[s]=u,r[l]=u}),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],u=o[1];if(l===u)return[0,0];var d=t[l],f=r[u-1],h=d.getIndex();d.disconnect(),f?d.connect(f,f.next):d.connect(void 0,t[0]);var m=d.getIndex();return[h,m]})}var jO=(function(){function e(t,r,o,s,l,u,d,f){this.prevList=t,this.list=r,this.added=o,this.removed=s,this.changed=l,this.maintained=u,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=RO(this.changedBeforeAdded,this.fixed),r=this.changed,o=[];this.cacheOrdered=t.filter(function(s,l){var u=s[0],d=s[1],f=r[l],h=f[0],m=f[1];if(u!==d)return o.push([h,m]),!0}),this.cachePureChanged=o},e})();function IO(e,n,t){var r=LO?Map:t?TO:MO,o=t||function(L){return L},s=[],l=[],u=[],d=e.map(o),f=n.map(o),h=new r,m=new r,A=[],y=[],b={},x=[],w=0,k=0;return d.forEach(function(L,O){h.set(L,O)}),f.forEach(function(L,O){m.set(L,O)}),d.forEach(function(L,O){var T=m.get(L);typeof T>"u"?(++k,l.push(O)):b[T]=k}),f.forEach(function(L,O){var T=h.get(L);typeof T>"u"?(s.push(O),++w):(u.push([T,O]),k=b[O]||0,A.push([T-k,O-w]),y.push(O===T),T!==O&&x.push([T,O]))}),l.reverse(),new jO(e,n,s,l,x,u,A,y)}var OO=typeof Map=="function"?void 0:(function(){var e=0;return function(n){return n.__DIFF_KEY__||(n.__DIFF_KEY__=++e)}})();function ca(e,n){return IO(e,n,OO)}/*! *****************************************************************************
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 bh=function(e,n){return bh=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])},bh(e,n)};function DO(e,n){bh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var ai=function(){return ai=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},ai.apply(this,arguments)};function PO(e){var n=e.container;return n===document.body?[n.scrollLeft||document.documentElement.scrollLeft,n.scrollTop||document.documentElement.scrollTop]:[n.scrollLeft,n.scrollTop]}function S2(e,n){return e.addEventListener("scroll",n),function(){e.removeEventListener("scroll",n)}}function hc(e){if(e){if(Wa(e))return document.querySelector(e)}else return null;if(O1(e))return e();if(e instanceof Element)return e;if("current"in e)return e.current;if("value"in e)return e.value}var BO=(function(e){DO(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=hc(o.container);if(!s){this._flag=!1;return}var l=0,u=0,d=0,f=0;if(s===document.body)d=window.innerWidth,f=window.innerHeight;else{var h=s.getBoundingClientRect();l=h.top,u=h.left,d=h.width,f=h.height}this._flag=!0,this._startPos=[r.clientX,r.clientY],this._startRect={top:l,left:u,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,u=o.threshold,d=u===void 0?0:u,f=this,h=f._startRect,m=f._startPos;this._currentOptions=o;var A=[0,0];return h.top>l-d?(m[1]>h.top||l<m[1])&&(A[1]=-1):h.top+h.height<l+d&&(m[1]<h.top+h.height||l>m[1])&&(A[1]=1),h.left>s-d?(m[0]>h.left||s<m[0])&&(A[0]=-1):h.left+h.width<s+d&&(m[0]<h.left+h.width||s>m[0])&&(A[0]=1),!A[0]&&!A[1]?!1:this._continueDrag(ai(ai({},o),{direction:A,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,u=r.direction,d=r.throttleTime,f=d===void 0?0:d,h=r.inputEvent,m=r.isDrag,A=this._getScrollPosition(u||[0,0],r),y=A[0]-l[0],b=A[1]-l[1],x=u||[y?Math.abs(y)/y:0,b?Math.abs(b)/b:0];return this._prevScrollPos=A,this._lock=!1,!y&&!b?!1:(this.emit("move",{offsetX:x[0]?y:0,offsetY:x[1]?b:0,inputEvent:h}),f&&m&&(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,u=l===void 0?PO:l;return u({container:hc(s),direction:r})},t._continueDrag=function(r){var o=this,s,l=r.container,u=r.direction,d=r.throttleTime,f=r.useScroll,h=r.isDrag,m=r.inputEvent;if(!(!this._flag||h&&this._isWait)){var A=gh(),y=Math.max(d+this._prevTime-A,0);if(y>0)return clearTimeout(this._timer),this._timer=window.setTimeout(function(){o._continueDrag(r)},y),!1;this._prevTime=A;var b=this._getScrollPosition(u,r);this._prevScrollPos=b,h&&(this._isWait=!0),f||(this._lock=!0);var x={container:hc(l),direction:u,inputEvent:m};return(s=r.requestScroll)===null||s===void 0||s.call(r,x),this.emit("scroll",x),this._isWait=!1,f||this.checkScroll(ai(ai({},r),{prevScrollPos:b,direction:u,inputEvent:m}))}},t._registerScrollEvent=function(r){this._unregisterScrollEvent();var o=r.checkScrollEvent;if(o){var s=o===!0?S2:o,l=hc(r.container);o===!0&&(l===document.body||l===document.documentElement)?this._unregister=S2(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})(Du),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)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},yh(e,n)};function _O(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");yh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function FO(e,n){return n={exports:{}},e(n,n.exports),n.exports}var rl=FO(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),m=r[h.toLowerCase()];if(m)return m;var m=o[h.toLowerCase()];if(m)return m;if(h.length===1)return h.charCodeAt(0)}t.isEventKey=function(f,h){if(f&&typeof f=="object"){var m=f.which||f.keyCode||f.charCode;if(m==null)return!1;if(typeof h=="string"){var A=r[h.toLowerCase()];if(A)return A===m;var A=o[h.toLowerCase()];if(A)return A===m}else if(typeof h=="number")return h===m;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 u in o)r[u]=o[u]});rl.code;rl.codes;rl.aliases;var WO=rl.names;rl.title;var E2={"+":"plus","left command":"meta","right command":"meta"},M2={shift:1,ctrl:2,alt:3,meta:4};function qb(e,n){var t=(WO[e]||n||"").toLowerCase();for(var r in E2)t=t.replace(r,E2[r]);return t.replace(/\s/g,"")}function Qb(e,n){n===void 0&&(n=qb(e.keyCode,e.key));var t=zO(e);return t.indexOf(n)===-1&&t.push(n),t.filter(Boolean)}function zO(e){var n=[e.shiftKey&&"shift",e.ctrlKey&&"ctrl",e.altKey&&"alt",e.metaKey&&"meta"];return n.filter(Boolean)}function T2(e){var n=e.slice();return n.sort(function(t,r){var o=M2[t]||5,s=M2[r]||5;return o-s}),n}var L2,UO=(function(e){_O(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")},vn(r,"blur",o.blur),vn(r,"keydown",o.keydownEvent),vn(r,"keyup",o.keyupEvent),o}var t=n.prototype;return Object.defineProperty(n,"global",{get:function(){return L2||(L2=new n)},enumerable:!1,configurable:!0}),n.setGlobal=function(){return this.global},t.destroy=function(){var r=this.container;this.clear(),this.off(),hn(r,"blur",this.blur),hn(r,"keydown",this.keydownEvent),hn(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 nu(o)?this.on("".concat(r,".").concat(T2(o).join(".")),s):Wa(o)?this.on("".concat(r,".").concat(o),s):this.on(r,o),this},t.removeEvent=function(r,o,s){return nu(o)?this.off("".concat(r,".").concat(T2(o).join(".")),s):Wa(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=qb(o.keyCode,o.key),l=s==="ctrl"||s==="shift"||s==="meta"||s==="alt",u={key:s,isToggle:l,inputEvent:o,keyCode:o.keyCode,ctrlKey:o.ctrlKey,altKey:o.altKey,shiftKey:o.shiftKey,metaKey:o.metaKey};this.trigger(r,u),this.trigger("".concat(r,".").concat(s),u);var d=Qb(o,s);d.length>1&&this.trigger("".concat(r,".").concat(d.join(".")),u)},n})(Du);/*! *****************************************************************************
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 KO(){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,u=s.length;l<u;l++,o++)r[o]=s[l];return r}function er(e){return vo(e,zr)}function HO(e,n){return e.every(function(t,r){return er(t-n[r])===0})}function YO(e,n){return!er(e[0]-n[0])&&!er(e[1]-n[1])}function Sf(e){return e.length<3?0:Math.abs(dO(e.map(function(n,t){var r=e[t+1]||e[0];return n[0]*r[1]-r[0]*n[1]})))/2}function ZO(e,n){var t=n.width,r=n.height,o=n.left,s=n.top,l=Jb(e),u=l.minX,d=l.minY,f=l.maxX,h=l.maxY,m=t/(f-u),A=r/(h-d);return e.map(function(y){return[o+(y[0]-u)*m,s+(y[1]-d)*A]})}function Jb(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 xh(e,n,t){var r=e[0],o=e[1],s=Jb(n),l=s.minX,u=s.maxX,d=[[l,o],[u,o]],f=su(d[0],d[1]),h=vh(n),m=[];if(h.forEach(function(b){var x=su(b[0],b[1]),w=b[0];if(HO(f,x))m.push({pos:e,line:b,type:"line"});else{var k=$b(Xb(f,x),[d,b]);k.forEach(function(L){b.some(function(O){return YO(O,L)})?m.push({pos:L,line:b,type:"point"}):er(w[1]-o)!==0&&m.push({pos:L,line:b,type:"intersection"})})}}),za(m,function(b){return b[0]===r}))return!0;var A=0,y={};return m.forEach(function(b){var x=b.pos,w=b.type,k=b.line;if(!(x[0]>r))if(w==="intersection")++A;else{if(w==="line")return;if(w==="point"){var L=za(k,function(R){return R[1]!==o}),O=y[x[0]],T=L[1]>o?1:-1;O?O!==T&&++A:y[x[0]]=T}}}),A%2===1}function su(e,n){var t=e[0],r=e[1],o=n[0],s=n[1],l=o-t,u=s-r;Math.abs(l)<zr&&(l=0),Math.abs(u)<zr&&(u=0);var d=0,f=0,h=0;return l?u?(d=-u/l,f=1,h=-d*t-r):(f=1,h=-r):u&&(d=-1,h=t),[d,f,h]}function Xb(e,n){var t=e[0],r=e[1],o=e[2],s=n[0],l=n[1],u=n[2],d=t===0&&s===0,f=r===0&&l===0,h=[];if(d&&f)return[];if(d){var m=-o/r,A=-u/l;return m!==A?[]:[[-1/0,m],[1/0,m]]}else if(f){var y=-o/t,b=-u/s;return y!==b?[]:[[y,-1/0],[y,1/0]]}else if(t===0){var x=-o/r,w=-(l*x+u)/s;h=[[w,x]]}else if(s===0){var x=-u/l,w=-(r*x+o)/t;h=[[w,x]]}else if(r===0){var w=-o/t,x=-(s*w+u)/l;h=[[w,x]]}else if(l===0){var w=-u/s,x=-(t*w+o)/r;h=[[w,x]]}else{var w=(r*u-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 $b(e,n){var t=n.map(function(m){return[0,1].map(function(A){return[Math.min(m[0][A],m[1][A]),Math.max(m[0][A],m[1][A])]})}),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(m){return m[0][0]})),h=Math.min.apply(Math,t.map(function(m){return m[0][1]}));if(er(f-h)>0)return[];r=[[f,l],[h,l]]}}else{var u=Math.max.apply(Math,t.map(function(m){return m[1][0]})),d=Math.min.apply(Math,t.map(function(m){return m[1][1]}));if(er(u-d)>0)return[];r=[[s,u],[s,d]]}}return r.length||(r=e.filter(function(m){var A=m[0],y=m[1];return t.every(function(b){return 0<=er(A-b[0][0])&&0<=er(b[0][1]-A)&&0<=er(y-b[1][0])&&0<=er(b[1][1]-y)})})),r.map(function(m){return[er(m[0]),er(m[1])]})}function vh(e){return KO(e.slice(1),[e[0]]).map(function(n,t){return[e[t],n]})}function GO(e,n){var t=e.slice(),r=n.slice();x2(t)===-1&&t.reverse(),x2(r)===-1&&r.reverse();var o=vh(t),s=vh(r),l=o.map(function(h){return su(h[0],h[1])}),u=s.map(function(h){return su(h[0],h[1])}),d=[];l.forEach(function(h,m){var A=o[m],y=[];u.forEach(function(b,x){var w=Xb(h,b),k=$b(w,[A,s[x]]);y.push.apply(y,k.map(function(L){return{index1:m,index2:x,pos:L,type:"intersection"}}))}),y.sort(function(b,x){return mh(A[0],b.pos)-mh(A[0],x.pos)}),d.push.apply(d,y),xh(A[1],r)&&d.push({index1:m,index2:-1,pos:A[1],type:"inside"})}),s.forEach(function(h,m){if(xh(h[1],t)){var A=!1,y=ou(d,function(b){var x=b.index2;return x===m?(A=!0,!1):!!A});y===-1&&(A=!1,y=ou(d,function(b){var x=b.index1,w=b.index2;return x===-1&&w+1===m?(A=!0,!1):!!A})),y===-1?d.push({index1:-1,index2:m,pos:h[1],type:"inside"}):d.splice(y,0,{index1:-1,index2:m,pos:h[1],type:"inside"})}});var f={};return d.filter(function(h){var m=h.pos,A=m[0]+"x"+m[1];return f[A]?!1:(f[A]=!0,!0)})}function N2(e,n){var t=GO(e,n);return t.map(function(r){var o=r.pos;return o})}function VO(e,n,t,r,o,s){for(var l=0;l<o;++l){var u=t+l*o,d=r+l*o;e[u]+=e[d]*s,n[u]+=n[d]*s}}function qO(e,n,t,r,o){for(var s=0;s<o;++s){var l=t+s*o,u=r+s*o,d=e[l],f=n[l];e[l]=e[u],e[u]=d,n[l]=n[u],n[u]=f}}function QO(e,n,t,r,o){for(var s=0;s<r;++s){var l=t+s*r;e[l]/=o,n[l]/=o}}function JO(e,n){for(var t=e.slice(),r=e5(n),o=0;o<n;++o){var s=n*o+o;if(!vo(t[s],zr)){for(var l=o+1;l<n;++l)if(t[n*o+l]){qO(t,r,o,l,n);break}}if(!vo(t[s],zr))return[];QO(t,r,o,n,t[s]);for(var l=0;l<n;++l){var u=l,d=l+o*n,f=t[d];!vo(f,zr)||o===l||VO(t,r,u,o,n,-f)}}return r}function Ws(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 u=0;u<s;++u){r[u*t+l]=0;for(var d=0;d<o;++d)r[u*t+l]+=e[d*t+l]*n[u*o+d]}return r}function XO(e,n,t){var r=Ws(e,n,t),o=r[t-1];return r.map(function(s){return s/o})}function $O(e,n){return Ws(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 eD(e,n){return Ws(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 tD(e,n){return Ws(e,nD(n,4))}function pc(e,n){var t=n[0],r=t===void 0?1:t,o=n[1],s=o===void 0?1:o,l=n[2],u=l===void 0?1:l;return Ws(e,[r,0,0,0,0,s,0,0,0,0,u,0,0,0,0,1],4)}function Ef(e,n){var t=n[0],r=t===void 0?0:t,o=n[1],s=o===void 0?0:o,l=n[2],u=l===void 0?0:l;return Ws(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,s,u,1],4)}function wh(e,n){return Ws(e,n,4)}function nD(e,n){var t=Math.cos(e),r=Math.sin(e),o=e5(n);return o[0]=t,o[1]=r,o[n]=-r,o[n+1]=t,o}function e5(e){for(var n=e*e,t=[],r=0;r<n;++r)t[r]=r%(e+1)?0:1;return t}var xa=function(){return xa=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},xa.apply(this,arguments)};function B1(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function rD(e,n){return n===void 0&&(n=0),sD(iD(e,n))}function Mf(e,n){var t=XO(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 oD(e,n){n===void 0&&(n=document.body);for(var t=e,r=B1();t;){var o=getComputedStyle(t).transform;if(r=wh(rD(o),r),t===n)break;t=t.parentElement}return r=JO(r,4),r[12]=0,r[13]=0,r[14]=0,r}function sD(e){var n=B1();return e.forEach(function(t){var r=t.matrixFunction,o=t.functionValue;r&&(n=r(n,o))}),n}function iD(e,n){n===void 0&&(n=0);var t=nu(e)?e:lO(e);return t.map(function(r){var o=cO(r),s=o.prefix,l=o.value,u=null,d=s,f="";if(s==="translate"||s==="translateX"||s==="translate3d"){var h=as(n)?xa(xa({},n),{"o%":n["%"]}):{"%":n,"o%":n},m=la(l).map(function(j,U){return U===0&&"x%"in h?h["%"]=n["x%"]:U===1&&"y%"in h?h["%"]=n["y%"]:h["%"]=n["o%"],A2(j,h)}),A=m[0],y=m[1],b=y===void 0?0:y,x=m[2],w=x===void 0?0:x;u=Ef,f=[A,b,w]}else if(s==="translateY"){var k=as(n)?xa({"%":n["y%"]},n):{"%":n},b=A2(l,k);u=Ef,f=[0,b,0]}else if(s==="translateZ"){var w=parseFloat(l);u=Ef,f=[0,0,w]}else if(s==="scale"||s==="scale3d"){var L=la(l).map(function(j){return parseFloat(j)}),O=L[0],T=L[1],R=T===void 0?O:T,E=L[2],M=E===void 0?1:E;u=pc,f=[O,R,M]}else if(s==="scaleX"){var O=parseFloat(l);u=pc,f=[O,1,1]}else if(s==="scaleY"){var R=parseFloat(l);u=pc,f=[1,R,1]}else if(s==="scaleZ"){var M=parseFloat(l);u=pc,f=[1,1,M]}else if(s==="rotate"||s==="rotateZ"||s==="rotateX"||s==="rotateY"){var P=ru(l),I=P.unit,F=P.value,_=I==="rad"?F:F*Math.PI/180;s==="rotate"||s==="rotateZ"?(d="rotateZ",u=tD):s==="rotateX"?u=$O:s==="rotateY"&&(u=eD),f=_}else if(s==="matrix3d")u=wh,f=la(l).map(function(j){return parseFloat(j)});else if(s==="matrix"){var N=la(l).map(function(j){return parseFloat(j)});u=wh,f=[N[0],N[1],0,0,N[2],N[3],0,0,0,0,1,0,N[4],N[5],0,1]}else d="";return{name:s,functionName:d,value:l,matrixFunction:u,functionValue:f}})}function aD(e){for(var n=5381,t=e.length;t;)n=n*33^e.charCodeAt(--t);return n>>>0}var lD=aD;function cD(e){return lD(e).toString(36)}function uD(e){if(e&&e.getRootNode){var n=e.getRootNode();if(n.nodeType===11)return n}}function dD(e,n,t){return t.original?n:n.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(r,o){var s=o.trim();return(s?la(s):[""]).map(function(l){var u=l.trim();return u.indexOf("@")===0?u:u.indexOf(":global")>-1?u.replace(/\:global/g,""):u.indexOf(":host")>-1?"".concat(u.replace(/\:host/g,".".concat(e))):u?".".concat(e," ").concat(u):".".concat(e)}).join(", ")+" {"})}function fD(e,n,t,r,o){var s=yo(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=dD(e,n,t),(o||s.head||s.body).appendChild(l),l}function hD(e){var n="rCS"+cD(e);return{className:n,inject:function(t,r){r===void 0&&(r={});var o=uD(t),s=(o||t.ownerDocument||document).querySelector('style[data-styled-id="'.concat(n,'"]'));if(!s)s=fD(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 u,d=parseFloat(s.getAttribute("data-styled-count"))||0;d<=1?(s.remove?s.remove():(u=s.parentNode)===null||u===void 0||u.removeChild(s),s=null):s.setAttribute("data-styled-count","".concat(d-1))}}}}}var kh=function(e,n){return kh=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])},kh(e,n)};function t5(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");kh(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 pD(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 gD(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 u=e.length-1;u>=0;u--)(l=e[u])&&(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 va(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 mD(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 CD(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 AD(e,n,t){var r=yo(e);return r.elementFromPoint&&r.elementFromPoint(n,t)||null}function n5(e,n,t){var r=e.tag,o=e.children,s=e.attributes,l=e.className,u=e.style,d=n||yo(t).createElement(r);for(var f in s)d.setAttribute(f,s[f]);var h=d.children;if(o.forEach(function(A,y){n5(A,h[y],d)}),l&&l.split(/\s+/g).forEach(function(A){A&&!pO(d,A)&&gO(d,A)}),u){var m=d.style;for(var f in u)m[f]=u[f]}return!n&&t&&t.appendChild(d),d}function bD(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,u=o.style,d=u===void 0?{}:u,f=pD(o,["className","style"]);return{tag:e,className:l,style:d,attributes:f,children:t}}function Tf(e,n,t){e!==n&&t(e,n)}function R2(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,u=l===void 0?0:l,d=e.data,f=d.startX,h=d.startY;if(n>0){var m=Math.sqrt((s*s+u*u)/(1+n*n)),A=n*m;s=(s>=0?1:-1)*A,u=(u>=0?1:-1)*m}var y=Math.abs(s),b=Math.abs(u),x=s<0?f-t.left:t.right-f,w=u<0?h-t.top:t.bottom-h;r=uO([y,b],[0,0],[x,w],!!n),y=r[0],b=r[1],s=(s>=0?1:-1)*y,u=(u>=0?1:-1)*b;var k=Math.min(0,s),L=Math.min(0,u),O=f+k,T=h+L;return{left:O,top:T,right:O+y,bottom:T+b,width:y,height:b}}function gc(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 j2(e,n,t){var r=ca(e,n),o=r.list,s=r.prevList,l=r.added,u=r.removed,d=r.maintained;return va(va(va([],l.map(function(f){return o[f]}),!0),u.map(function(f){return s[f]}),!0),t?d.map(function(f){var h=f[1];return o[h]}):[])}function I2(e){for(var n=0,t=e.length,r=1;r<t;++r)n=Math.max(mh(e[r],e[r-1]),n);return n}var r5=hD(`
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
+ `),Sh="selecto-selection ".concat(r5.className),_1=["className","boundContainer","selectableTargets","selectByClick","selectFromInside","continueSelect","continueSelectWithoutDeselect","toggleContinueSelect","toggleContinueSelectWithoutDeselect","keyContainer","hitRate","scrollOptions","checkInput","preventDefault","ratio","getElementRect","preventDragFromInside","rootContainer","dragCondition","clickBySelectEnd","checkOverflow","innerScrollOptions"],yD=va(["dragContainer","cspNonce","preventClickEventOnDrag","preventClickEventOnDragStart","preventRightClick"],_1),o5=["dragStart","drag","dragEnd","selectStart","select","selectEnd","keydown","keyup","scroll","innerScroll"],xD=["clickTarget","getSelectableElements","setSelectedTargets","getElementPoints","getSelectedTargets","findSelectableTargets","triggerDragStart","checkScroll","selectTargetsByPoints","setSelectedTargetsByPoints"],vD=(function(e){t5(n,e);function n(r){r===void 0&&(r={});var o=e.call(this)||this;o.selectedTargets=[],o.dragScroll=new BO,o._onDragStart=function(u,d){var f=u.data,h=u.clientX,m=u.clientY,A=u.inputEvent,y=o.options,b=y.selectFromInside,x=y.selectByClick,w=y.rootContainer,k=y.boundContainer,L=y.preventDragFromInside,O=L===void 0?!0:L,T=y.clickBySelectEnd,R=y.dragCondition;if(R&&!R(u)){u.stop();return}f.data={};var E=Es(o.container);f.innerWidth=E.innerWidth,f.innerHeight=E.innerHeight,o.findSelectableTargets(f),f.startSelectedTargets=o.selectedTargets,f.scaleMatrix=B1(),f.containerX=0,f.containerY=0;var M=o.container,P={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=oD(o.container,w)}if(k){var F=as(k)&&"element"in k?xn({left:!0,top:!0,bottom:!0,right:!0},k):{element:k,left:!0,top:!0,bottom:!0,right:!0},_=F.element,N=void 0;if(_){Wa(_)?N=yo(M).querySelector(_):_===!0?N=o.container:N=_;var j=N.getBoundingClientRect();F.left&&(P.left=j.left),F.top&&(P.top=j.top),F.right&&(P.right=j.right),F.bottom&&(P.bottom=j.bottom)}}f.boundArea=P;var U={left:h,top:m,right:h,bottom:m,width:0,height:0},W=[],B=x&&!T,Z=!1;if(!b||B){var Q=o._findElement(d||A.target,f.selectableTargets);Z=!!Q,B&&(W=Q?[Q]:[])}var re=!b&&Z;if(re&&!x)return u.stop(),!1;var oe=A.type,Ce=oe==="mousedown"||oe==="touchstart",Te=!u.isClick&&Ce?o.emit("dragStart",xn(xn({},u),{data:f.data})):!0;if(!Te)return u.stop(),!1;if(o.continueSelect?(W=j2(o.selectedTargets,W,o.continueSelectWithoutDeselect),f.startPassedTargets=o.selectedTargets):f.startPassedTargets=[],o._select(W,U,u,!0,re&&x&&!T&&O),f.startX=h,f.startY=m,f.selectFlag=!1,f.preventDragFromInside=!1,A.target){var Me=Mf(f.scaleMatrix,[h-f.containerX,m-f.containerY]);o.target.style.cssText+="position: ".concat(w?"absolute":"fixed",";")+"left:0px;top:0px;"+"transform: translate(".concat(Me[0],"px, ").concat(Me[1],"px)")}if(re&&x&&!T)A.preventDefault(),O&&(o._selectEnd(f.startSelectedTargets,f.startPassedTargets,U,u,!0),f.preventDragFromInside=!0);else{f.selectFlag=!0;var Re=o.options,ae=Re.scrollOptions,te=Re.innerScrollOptions,q=!1;if(te){for(var ce=u.inputEvent,ie=ce.target,ne=null,H=ie;H&&H!==yo(M).body;){var X=getComputedStyle(H).overflow!=="visible";if(X){ne=H;break}H=H.parentElement}ne&&(f.innerScrollOptions=xn({container:ne,checkScrollEvent:!0},te===!0?{}:te),o.dragScroll.dragStart(u,f.innerScrollOptions),q=!0)}!q&&ae&&ae.container&&o.dragScroll.dragStart(u,ae),re&&x&&T&&(f.selectFlag=!1,u.preventDrag())}return!0},o._onDrag=function(u){if(u.data.selectFlag){var d=o.scrollOptions,f=u.data.innerScrollOptions,h=f||(d==null?void 0:d.container);if(h&&!u.isScroll&&o.dragScroll.drag(u,f||d))return}o._checkSelected(u)},o._onDragEnd=function(u){var d=u.data,f=u.inputEvent,h=R2(u,o.options.ratio),m=d.selectFlag,A=o.container;if(f&&o.emit("dragEnd",xn(xn({isDouble:!!u.isDouble,isClick:!!u.isClick,isDrag:!1,isSelect:m},u),{data:d.data,rect:h})),o.target.style.cssText+="display: none;",m)d.selectFlag=!1,o.dragScroll.dragEnd();else if(o.selectByClick&&o.clickBySelectEnd){var y=o._findElement((f==null?void 0:f.target)||AD(A,u.clientX,u.clientY),d.selectableTargets);o._select(y?[y]:[],h,u)}d.preventDragFromInside||o._selectEnd(d.startSelectedTargets,d.startPassedTargets,h,u)},o._onKeyDown=function(u){var d=o.options,f=!1;if(!o._keydownContinueSelect){var h=o._sameCombiKey(u,d.toggleContinueSelect);o._keydownContinueSelect=h,f||(f=h)}if(!o._keydownContinueSelectWithoutDeselection){var h=o._sameCombiKey(u,d.toggleContinueSelectWithoutDeselect);o._keydownContinueSelectWithoutDeselection=h,f||(f=h)}f&&o.emit("keydown",{keydownContinueSelect:o._keydownContinueSelect,keydownContinueSelectWithoutDeselection:o._keydownContinueSelectWithoutDeselection})},o._onKeyUp=function(u){var d=o.options,f=!1;if(o._keydownContinueSelect){var h=o._sameCombiKey(u,d.toggleContinueSelect,!0);o._keydownContinueSelect=!h,f||(f=h)}if(o._keydownContinueSelectWithoutDeselection){var h=o._sameCombiKey(u,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(u){var d=yo(o.container);if(o.gesto.isFlag()){var f=o.dragContainer;f===Es(o.container)&&(f=d.documentElement);var h=v2(f)?[f]:[].slice.call(f),m=u.target;h.some(function(A){if(A===m||A.contains(m))return u.preventDefault(),!0})}},o.target=r.portalContainer;var s=r.container;o.options=xn({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:gc,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=ca(o,r),l=s.added,u=s.removed,d=s.prevList,f=s.list;return this.selectedTargets=r,{added:l.map(function(h){return f[h]}),removed:u.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]),u=Math.max(r[0],o[0]),d=Math.max(r[1],o[1]),f={left:s,top:l,right:u,bottom:d,width:u-s,height:d-l},h={ignoreClick:!0};this.findSelectableTargets(h);var m=this.hitTest(f,h,!0,null),A=this.setSelectedTargets(m);return xn(xn({},A),{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}),u=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(u))},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(),hn(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||gc,s=o(r),l=[s.pos1,s.pos2,s.pos4,s.pos3];if(o!==gc){var u=r.getBoundingClientRect();return ZO(l,u)}return l},t.getSelectableElements=function(){var r=this.container,o=[];return this.options.selectableTargets.forEach(function(s){if(O1(s)){var l=s();l&&o.push.apply(o,[].slice.call(l))}else if(v2(s))o.push(s);else if(as(s))o.push(s.value||s.current);else{var u=[].slice.call(yo(r).querySelectorAll(s));o.push.apply(o,u)}}),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(xn({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(m){return o.getElementPoints(m)});r.selectableTargets=s,r.selectablePoints=l,r.selectableParentMap=null;var u=this.options,d=u.checkOverflow||u.innerScrollOptions,f=yo(this.container);if(d){var h=new Map;r.selectableInnerScrollParentMap=h,r.selectableInnerScrollPathsList=s.map(function(m,A){for(var y=m.parentElement,b=[],x=[],w=function(){var k=h.get(y);if(!k){var L=getComputedStyle(y).overflow!=="visible";if(L){var O=gc(y);k={parentElement:y,indexes:[],points:[O.pos1,O.pos2,O.pos4,O.pos3],paths:va([],x)},b.push(y),b.forEach(function(T){h.set(T,k)}),b=[]}}k?(y=k.parentElement,h.get(y).indexes.push(A),x.push(y)):b.push(y),y=y.parentElement};y&&y!==f.body;)w();return x})}return u.checkOverflow||(r.selectableInners=s.map(function(){return!0})),this._refreshGroups(r),s},t.clickTarget=function(r,o){var s=mD(r),l=s.clientX,u=s.clientY,d={data:{selectFlag:!1},clientX:l,clientY:u,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 UO(o||Es(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(Sh," ").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;Tf(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;Tf(s.toggleContinueSelect,r,function(){s.toggleContinueSelect=r,o.setKeyEvent()})},t.setToggleContinueSelectWithoutDeselect=function(r){var o=this,s=this.options;Tf(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,u=r.preventClickEventOnDragStart,d=r.preventClickEventOnDrag,f=r.preventClickEventByCondition,h=r.preventRightClick,m=h===void 0?!0:h,A=r.className,y=this.container;this.target=n5(bD("div",{className:"".concat(Sh," ").concat(A||"")}),this.target,y);var b=this.target;this.dragContainer=typeof o=="string"?[].slice.call(yo(y).querySelectorAll(o)):o||this.target.parentNode,this.gesto=new wO(this.dragContainer,{checkWindowBlur:!0,container:Es(y),checkInput:s,preventDefault:l,preventClickEventOnDragStart:u,preventClickEventOnDrag:d,preventClickEventByCondition:f,preventRightClick:m}).on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd}),vn(document,"selectstart",this._onDocumentSelectStart),this.injectResult=r5.inject(b,{nonce:this.options.cspNonce})},t.hitTest=function(r,o,s,l){var u=this.options,d=u.hitRate,f=u.selectByClick,h=r.left,m=r.top,A=r.right,y=r.bottom,b=o.innerGroups,x=o.innerWidth,w=o.innerHeight,k=l==null?void 0:l.clientX,L=l==null?void 0:l.clientY,O=o.ignoreClick,T=[[h,m],[A,m],[A,y],[h,y]],R=function(Q,re){var oe=ru(typeof d=="function"?"".concat(d(re)):"".concat(d)),Ce=O?!1:xh([k,L],Q);if(!s&&f&&Ce)return!0;var Te=N2(T,Q);if(!Te.length)return!1;var Me=Sf(Te),Re=0;if(Me===0&&Sf(Q)===0?(Re=I2(Q),Me=I2(Te)):Re=Sf(Q),oe.unit==="px")return Me>=oe.value;var ae=Gb(Math.round(Me/Re*100),0,100);return ae>=Math.min(100,oe.value)},E=o.selectableTargets,M=o.selectablePoints,P=o.selectableInners;if(!b)return E.filter(function(Q,re){return P[re]?R(M[re],E[re]):!1});for(var I=[],F=Math.floor(h/x),_=Math.floor(A/x),N=Math.floor(m/w),j=Math.floor(y/w),U=F;U<=_;++U){var W=b[U];if(W)for(var B=N;B<=j;++B){var Z=W[B];Z&&Z.forEach(function(Q){var re=M[Q],oe=P[Q],Ce=E[Q];oe&&R(re,Ce)&&I.push(Ce)})}}return CD(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,u=r.gesto.getEventData().innerScrollOptions;u?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,u=o.inputEvent,d=r.gesto;if(!(!d||!d.isFlag())){var f=r.gesto.getEventData(),h=f.boundArea;f.startX-=s,f.startY-=l;var m=r.gesto.getEventData().innerScrollOptions,A=m==null?void 0:m.container,y=!1;if(A){var b=f.selectableInnerScrollParentMap,x=b.get(A);x&&(x.paths.forEach(function(w){var k=b.get(w);k.points.forEach(function(L){L[0]-=s,L[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,u.inputEvent),r._checkSelected(r.gesto.getCurrentEvent())}})},t._select=function(r,o,s,l,u){u===void 0&&(u=!1);var d=s.inputEvent,f=s.data,h=this.setSelectedTargets(r),m=ca(f.startSelectedTargets,r),A=m.added,y=m.removed,b=m.prevList,x=m.list,w={startSelected:b,startAdded:A.map(function(k){return x[k]}),startRemoved:y.map(function(k){return b[k]})};l&&this.emit("selectStart",xn(xn(xn({},h),w),{rect:o,inputEvent:d,data:f.data,isTrusted:s.isTrusted,isDragStartEnd:u})),(h.added.length||h.removed.length)&&this.emit("select",xn(xn(xn({},h),w),{rect:o,inputEvent:d,data:f.data,isTrusted:s.isTrusted,isDragStartEnd:u}))},t._selectEnd=function(r,o,s,l,u){u===void 0&&(u=!1);var d=l.inputEvent,f=l.isDouble,h=l.data,m=d&&d.type,A=m==="mousedown"||m==="touchstart",y=ca(r,this.selectedTargets),b=y.added,x=y.removed,w=y.prevList,k=y.list,L=ca(o,this.selectedTargets),O=L.added,T=L.removed,R=L.prevList,E=L.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:O.map(function(M){return E[M]}),afterRemoved:T.map(function(M){return R[M]}),isDragStart:A&&u,isDragStartEnd:A&&u,isClick:!!l.isClick,isDouble:!!f,rect:s,inputEvent:d,data:h.data,isTrusted:l.isTrusted})},t._checkSelected=function(r,o){o===void 0&&(o=R2(r,this.options.ratio));var s=r.data,l=o.top,u=o.left,d=o.width,f=o.height,h=s.selectFlag,m=s.containerX,A=s.containerY,y=s.scaleMatrix,b=Mf(y,[u-m,l-A]),x=Mf(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=j2(s.startPassedTargets,k,this.continueSelect&&this.continueSelectWithoutDeselect)}var L=this.emit("drag",xn(xn({},r),{data:s.data,isSelect:h,rect:o}));if(L===!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=Qb(r.inputEvent,r.key),u=[].concat(o),d=nu(u[0])?u:[u];if(s){var f=r.key;return d.some(function(h){return h.some(function(m){return m===f})})}return d.some(function(h){return h.every(function(m){return l.indexOf(m)>-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,u=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 L=u[b],O=k.points,T=N2(L,O);if(!T.length)return!1}return!0})})}if(!s||!l)r.innerGroups=null;else{var m=r.selectablePoints,A={};m.forEach(function(y,b){var x=1/0,w=-1/0,k=1/0,L=-1/0;y.forEach(function(R){var E=Math.floor(R[0]/s),M=Math.floor(R[1]/l);x=Math.min(E,x),w=Math.max(E,w),k=Math.min(M,k),L=Math.max(M,L)});for(var O=x;O<=w;++O)for(var T=k;T<=L;++T)A[O]=A[O]||{},A[O][T]=A[O][T]||[],A[O][T].push(b)}),r.innerGroups=A}},n=gD([SO(_1,function(r,o){var s={enumerable:!0,configurable:!0,get:function(){return this.options[o]}},l=ph("get ".concat(o));r[l]?s.get=function(){return this[l]()}:s.get=function(){return this.options[o]};var u=ph("set ".concat(o));r[u]?s.set=function(d){this[u](d)}:s.set=function(d){this.options[o]=d},Object.defineProperty(r,o,s)})],n),n})(Du),wD=(function(e){t5(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n})(vD),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 kD(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 iu=function(){return iu=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},iu.apply(this,arguments)};function SD(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 u=e.length-1;u>=0;u--)(l=e[u])&&(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 O2=o5.map(function(e){return ph("on ".concat(e))}),ED=(function(e){kD(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}var t=n.prototype;return t.render=function(){return g.createElement("div",{className:Sh,ref:kO(this,"selectionElement")})},t.componentDidMount=function(){var r=this,o=this.props,s={};yD.forEach(function(l){l in o&&(s[l]=o[l])}),this.selecto=new wD(iu(iu({},s),{portalContainer:this.selectionElement})),o5.forEach(function(l,u){r.selecto.on(l,function(d){var f=r.props,h=f[O2[u]]&&f[O2[u]](d);h===!1&&d.stop()})})},t.componentDidUpdate=function(r){var o=this.props,s=this.selecto;_1.forEach(function(l){r[l]!==o[l]&&(s[l]=o[l])})},t.componentWillUnmount=function(){this.selecto.destroy()},SD([EO(xD)],n.prototype,"selecto",void 0),n})(g.PureComponent);const MD=({editor:e})=>{const{disable:n}=g.useContext(at),t=g.useRef(null),[r,o]=g.useState({depth:0,targets:qf});return g.useEffect(()=>{const s=()=>{var l;return(l=t.current)==null?void 0:l.checkScroll()};return window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[e]),g.useEffect(()=>{let s=null;const l=()=>{s=ye.mergeRegister(e.registerCommand(p.KEY_ESCAPE_COMMAND,()=>{var A;const f=((A=t.current)==null?void 0:A.getSelectedTargets())||[],{hasSelectedBlock:h,selectedAllDocument:m}=qo();if(h)f.forEach(y=>us(y));else if(m){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:m}=qo();if(_7(e,f,t.current))return!0;if((f.metaKey||f.ctrlKey)&&(f.code==="KeyX"||f.code==="KeyC")&&m){f.preventDefault();const x=p.$getRoot(),w=p.$createNodeSelection(),k=T=>{w.add(T.getKey()),p.$isElementNode(T)&&T.getChildren().forEach(k)};x.getChildren().forEach(k);const L=ka.$getClipboardDataFromSelection(w),O=f.code==="KeyX";if(O){const T=document.querySelector("div.ContentEditable__root");T==null||T.classList.remove("selected-all-document")}return setTimeout(()=>{ka.copyToClipboard(e,null,L).then(()=>{O&&(e.update(()=>{const T=p.$getRoot();T.getChildren().forEach(R=>R.remove()),T.getChildrenSize()===0&&T.append(p.$createParagraphNode())},{tag:"historic"}),e.dispatchCommand(Xo,!0))})},0),!0}const y=f.ctrlKey||f.metaKey||f.altKey;return y?!1:f.key.length===1&&!y&&(h||m)?(f.preventDefault(),!0):!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(p.CUT_COMMAND,()=>{const{selectedAllDocument:f}=qo();if(f){const h=document.querySelector("div.ContentEditable__root");h==null||h.classList.remove("selected-all-document")}return!1},p.COMMAND_PRIORITY_NORMAL))},u=e.registerUpdateListener(()=>{const{hasSelectedBlock:f,selectedAllDocument:h}=qo(),m=f||h;m&&!s?l():!m&&s&&(s(),s=null)}),d=f=>{const h=f.target;if(h.closest(".video-container"))return;const m=t.current;if(!m)return;const A=h.closest(".resizable-container__inner")||h.closest("iframe");A instanceof HTMLElement&&(A.classList.contains("selected-block")||(A.classList.add("selected-block"),m.setSelectedTargets([A]),setTimeout(()=>{var y,b;(b=(y=m.props).onSelectEnd)==null||b.call(y,e)},100)))};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d),s&&s(),u()}},[e]),n?null:a.jsx(ED,{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:()=>{D7(e),o({targets:qf,depth:0})},onSelect:s=>W7(s,e,r,o,t.current),scrollOptions:F7,onScroll:s=>{document.documentElement.scrollBy(s.direction[0]*10,s.direction[1]*10)}})};function TD({editor:e,value:n,disabled:t=!1,setElementFormat:r}){const{t:o,i18n:s}=He.useTranslation(),l=g.useMemo(()=>Db(o),[s.language]),u=g.useMemo(()=>n==="start"||n==="end"?l.left:l[n||"left"],[n,l]),d=A=>{r(A),e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,A)},f=n==="start"||n==="end"?"left":n||"left",[h,m]=g.useState(!1);return a.jsxs(v.Menu,{transitionProps:zn,shadow:"md",position:"bottom-start",classNames:{dropdown:"toolbar-dark-dropdown"},styles:{dropdown:{zIndex:1e3},item:{gap:"var(--mantine-spacing-sm)"}},onChange:m,children:[a.jsx(v.Menu.Target,{children:a.jsx(v.Tooltip,{label:o("editor.toolbar.align"),children:a.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:[a.jsx("span",{className:"toolbar-light-btn__icon",children:a.jsx(ue,{icon:u.icon,size:20,color:"currentColor"})}),a.jsx("span",{className:`toolbar-light-btn__chevron${h?" toolbar-light-btn__chevron--open":""}`,children:a.jsx(ue,{icon:mi,size:16,color:"currentColor"})})]})})}),a.jsx(v.Menu.Dropdown,{onMouseDown:A=>A.preventDefault(),children:a.jsx("div",{className:"toolbar-dropdown-list",children:a.jsx(Pb,{effectiveValue:f,onAlignmentSelect:d,showShortcuts:!0,testScope:"toolbar"})})})]})}function LD(e,n=40){const[t,r]=g.useState(""),o=g.useRef(0),s=g.useRef(null),l=g.useRef(null);return g.useEffect(()=>{if(s.current&&clearInterval(s.current),r(""),o.current=0,!!e)return s.current=window.setInterval(()=>{r(u=>{const d=e[o.current];return o.current+=1,o.current>=e.length&&clearInterval(s.current),u+(d||"")})},n),()=>{s.current&&clearInterval(s.current)}},[e,n]),g.useEffect(()=>{l.current&&(l.current.scrollTop=l.current.scrollHeight)},[t]),{displayedText:t,containerRef:l}}const ND=(e,n,t,r)=>{e.update(()=>{if(p.$isRangeSelection(t)){const o=p.$createTextNode(n);t.insertNodes([o]),r()}})},RD=(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()}}})},jD=(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()})},ID=(e,n)=>{e.update(()=>{const t=p.$getSelection();if(p.$isRangeSelection(t)){const r=t.getTextContent();n(r)}})},OD=({editor:e,response:n,onSubmit:t,setTypeMenu:r,onClose:o,t:s,selection:l})=>a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Item,{"data-test-id":"ai-answer-back",leftSection:a.jsx(xe.IconArrowNarrowLeft,{size:14}),onClick:()=>r("main"),children:s("editor.ai.back")}),a.jsx(v.Menu.Item,{"data-test-id":"ai-answer-replace",onClick:()=>{ND(e,n,l,o)},leftSection:a.jsx(xe.IconReplace,{size:14}),children:s("editor.ai.menu.answer.replaceSelection")}),a.jsx(v.Menu.Item,{"data-test-id":"ai-answer-add-inline",onClick:()=>{RD(e,` ${n}`,l,o)},leftSection:a.jsx(xe.IconTextPlus,{size:14}),children:s("editor.ai.menu.answer.addTextInline")}),a.jsx(v.Menu.Item,{"data-test-id":"ai-answer-add-below",onClick:()=>{jD(e,n,l,o),o()},leftSection:a.jsx(xe.IconIndentIncrease,{size:14}),children:s("editor.ai.menu.answer.addBelowParagraph")}),a.jsx(v.Menu.Divider,{}),a.jsx(v.Menu.Label,{children:s("editor.ai.menu.answer.modifyFurther")}),a.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:a.jsx(xe.IconPlayerPlay,{size:14}),children:s("editor.ai.menu.answer.continueWriting")}),a.jsx(v.Menu.Item,{"data-test-id":"ai-answer-regenerate",onClick:()=>{t("Regenerate this text with another way: ")},leftSection:a.jsx(xe.IconReload,{size:14}),children:s("editor.ai.menu.answer.regenerate")}),a.jsx(v.Menu.Item,{"data-test-id":"ai-answer-discard",onClick:o,leftSection:a.jsx(xe.IconTrash,{size:14}),children:s("editor.ai.menu.answer.discard")})]}),DD=["arabic","bengali","chinese","dutch","english","french","german","hindi","japanese","korean","nepali","portuguese","spanish"],PD=["professional","straightforward","friendly","poetic","passiveAggressive","pirate"],BD=[{title:"modifySelection",options:[{title:"improveWriting",prompt:"Improve the quality of the text",icon:a.jsx(xe.IconWand,{size:14})},{title:"fixMistakes",prompt:"Fix any typos or general errors in the text",icon:a.jsx(xe.IconTextSpellcheck,{size:14})},{title:"simplify",prompt:"Shorten the text, simplifying it",icon:a.jsx(xe.IconSortAscending,{size:14})},{title:"addMoreDetail",prompt:"Lengthen the text, going into more detail",icon:a.jsx(xe.IconSortDescending,{size:14})}]},{title:"generate",options:[{title:"summarise",prompt:"Summarise the text",icon:a.jsx(xe.IconNotes,{size:14})},{title:"translate",icon:a.jsx(xe.IconLanguage,{size:14}),type:"language"},{title:"changeStyle",icon:a.jsx(xe.IconScript,{size:14}),type:"style"},{title:"explain",prompt:"Explain what the text is about",icon:a.jsx(xe.IconHelpOctagon,{size:14})}]}],_D=({setTypeMenu:e,onSubmit:n,t})=>a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Item,{"data-test-id":"ai-lang-back",leftSection:a.jsx(xe.IconArrowNarrowLeft,{size:14}),onClick:()=>e("main"),children:t("editor.ai.back")}),DD.map(r=>a.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))]}),FD=({setTypeMenu:e,onSubmit:n,t})=>a.jsx(a.Fragment,{children:BD.map(r=>a.jsxs("div",{children:[a.jsx(v.Menu.Label,{children:t(`editor.ai.menu.main.${r.title}`)}),r.options.map(o=>a.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))}),WD=({setTypeMenu:e,onSubmit:n,t})=>a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Item,{"data-test-id":"ai-style-back",leftSection:a.jsx(xe.IconArrowNarrowLeft,{size:14}),onClick:()=>e("main"),children:t("editor.ai.back")}),PD.map(r=>a.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))]}),zD=({keyType:e,setTypeMenu:n,editor:t,onSubmit:r,response:o,onClose:s,t:l,selection:u})=>{switch(e){case"main":return a.jsx(FD,{t:l,setTypeMenu:n,onSubmit:r});case"answer":return a.jsx(OD,{t:l,onSubmit:r,editor:t,response:o,setTypeMenu:n,onClose:s,selection:u});case"language":return a.jsx(_D,{t:l,onSubmit:r,setTypeMenu:n});case"style":return a.jsx(WD,{t:l,onSubmit:r,setTypeMenu:n});default:return null}},UD=()=>{var U;const[e,n]=g.useState({top:"0px",bottom:"auto"}),[t,r]=g.useState(!1),[o,s]=g.useState(!1),[l]=tt.useLexicalComposerContext(),[u,d]=g.useState("main"),[f,h]=g.useState(""),[m,A]=g.useState(""),[y,b]=g.useState(""),[x,w]=g.useState(null),[k,L]=g.useState(!1),{fetchPromptResult:O,onTrack:T}=g.useContext(at),{t:R}=He.useTranslation(),[E,M]=Yn.useResizeObserver(),P=()=>{r(!1),s(!1),b(""),d("main"),setTimeout(()=>{n({top:"0px",bottom:"auto"})},200)},I=Yn.useClickOutside(()=>{P()});g.useEffect(()=>{t?(ID(l,A),document.documentElement.style.overflow="hidden",l.update(()=>{const W=p.$getSelection();W&&w(W)}),setTimeout(()=>{var W;(W=N.current)==null||W.focus()},400)):(d("main"),document.documentElement.style.overflow="auto",b(""))},[t]);const{displayedText:F,containerRef:_}=LD(y,10),N=g.useRef(null),j=(W,B=!0)=>{const Z=W+` "${B?m:""}"Only return the modified text. Do not include any explanations, introductions, or formatting.`;L(!0),O&&O(Z,Q=>{b(Q),L(!1),d("answer"),h("")},()=>{L(!1)})};return g.useEffect(()=>{var B,Z,Q;const{bottom:W}=((B=E.current)==null?void 0:B.getBoundingClientRect())||{bottom:0};if(W>window.innerHeight){const re=(((Q=(Z=l._rootElement)==null?void 0:Z.getBoundingClientRect())==null?void 0:Q.bottom)||0)-window.innerHeight;n({...e,top:"auto",bottom:`${re}px`})}},[M.height,t,E.current]),(U=l._rootElement)!=null&&U.parentElement?a.jsxs(a.Fragment,{children:[e.top?Ir.createPortal(a.jsx(v.Transition,{mounted:!!t,transition:"scale-x",duration:300,timingFunction:"ease",children:W=>a.jsx(v.Box,{ref:I,"data-test-id":"ai-menu",style:{position:"absolute",...e,...W},className:"ai-editor-menu",children:a.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:Z}){requestAnimationFrame(()=>{Object.assign(Z.floating.style,{maxHeight:`${B>=425?425:B}px`})})}}},disabled:k,children:[a.jsx(v.Menu.Target,{children:a.jsxs(v.Paper,{withBorder:!0,ref:E,shadow:"lg",radius:"md",p:"0",px:"xs",children:[y&&a.jsxs(a.Fragment,{children:[a.jsxs(v.Group,{"data-test-id":"ai-response",gap:3,align:"flex-start",style:{overflowY:"auto"},mah:120,ref:_,children:[a.jsx(v.Box,{style:{flex:1},w:"auto",py:"xs",children:F}),a.jsx(v.Box,{w:"auto",mt:"xs",children:a.jsx(v.CopyButton,{value:y,timeout:2e3,children:({copied:B,copy:Z})=>a.jsx(v.Tooltip,{label:B?"Copied":"Copy",withArrow:!0,position:"right",children:a.jsx(v.ActionIcon,{"data-test-id":"ai-copy-button",color:B?"teal":"gray",variant:"subtle",onClick:Z,children:B?a.jsx(xe.IconCheck,{size:16}):a.jsx(xe.IconCopy,{size:16})})})})})]}),a.jsx(v.Divider,{my:"0"})]}),a.jsx(v.Box,{onMouseDown:B=>B.stopPropagation(),onClick:B=>B.stopPropagation(),children:a.jsx(v.Input,{ref:N,"data-test-id":"ai-input",size:"md",placeholder:R("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:a.jsx(a.Fragment,{children:k?a.jsx(v.Loader,{"data-test-id":"ai-loader",color:"violet",size:"16",mr:"xs"}):a.jsx(v.ActionIcon,{"data-test-id":"ai-submit",color:"violet",disabled:!f,variant:"subtle",onClick:()=>{j(f)},children:a.jsx(xe.IconSparkles,{size:16})})})})})]})}),a.jsx(v.Menu.Dropdown,{"data-test-id":"ai-menu-dropdown",className:"menu-dropdown-ai",onMouseDown:B=>{B.stopPropagation()},children:a.jsx(zD,{keyType:u,setTypeMenu:d,editor:l,onSubmit:j,response:y,onClose:P,t:R,selection:x})})]})})}),l._rootElement.parentElement):null,a.jsx("svg",{width:"0",height:"0","aria-hidden":"true",style:{position:"absolute"},children:a.jsx("defs",{children:a.jsxs("linearGradient",{id:"ai-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[a.jsx("stop",{offset:"0%",stopColor:"#e599f7"}),a.jsx("stop",{offset:"36%",stopColor:"#f783ac"}),a.jsx("stop",{offset:"99%",stopColor:"#fab005"})]})})}),a.jsxs("button",{disabled:!1,className:"toolbar-light-btn toolbar-light-btn--ai","aria-label":R("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(),re=document.querySelector(".content-editable-wrapper"),oe=re.getBoundingClientRect(),Ce=Q.top-oe.top+re.scrollTop+Q.height+"px";n({top:Ce,bottom:"auto"}),T==null||T("ai_menu_opened"),setTimeout(()=>{r(!0)},0),setTimeout(()=>{s(!0)},100)}}},children:[a.jsx("span",{className:"toolbar-light-btn__icon toolbar-ai-icon",children:a.jsx(ue,{icon:g8,size:20})}),a.jsx("span",{className:"toolbar-light-btn__text toolbar-ai-text",children:R("editor.toolbar.ai","Improve writing")})]})]}):null},s5=({children:e,inline:n=!1,nodeKey:t,popoverProps:r,defaultTabValue:o,onWriteTabToNode:s,galleryCollection:l,...u})=>{var R;const{imagePickerSettings:d,maxFileSize:f}=g.useContext(at),{giphyToken:h,unsplashClientId:m,maxUploadFiles:A}=d,y=n&&!!t,b=(R=d.galleryCollection)!=null&&R.length?d.galleryCollection:l,w=Array.isArray(b)&&b.length>0||n,{showTabKeys:k,visibleInFilePicker:L}=g.useMemo(()=>Gk(d,{hasOnUpload:!!u.onUpload,hasGalleryInPicker:w}),[d,w,u.onUpload]),O=g.useMemo(()=>Dm(o,L),[o,L]);g.useLayoutEffect(()=>{if(!y||!s)return;const E=Dm(o,L);E!==o&&s(E)},[y,o,s,L]);const T={showTabs:k,dropZoneProps:{maxFiles:A||1,maxSize:f*1024*1024},giphyToken:h,unsplashClientId:m,inline:n,tab:O,popoverProps:n?{...r,opened:!0}:r,children:n?null:e,...u,galleryCollection:b??[]};return a.jsx(Bt.FilePicker,{...T})},KD=({editor:e,isEditable:n,t})=>{const{fetchUploadMedia:r,imperativeHandleRef:o}=g.useContext(at),[s,l]=g.useState(!1);return r?a.jsx(s5,{popoverProps:{opened:s,position:"bottom",onChange:l},onUpload:u=>{var d,f;!r||!u.length||(l(!1),(d=o==null?void 0:o.current)!=null&&d.insertImages&&((f=o.current)==null||f.insertImages(u)))},onChange:u=>{e.dispatchCommand(A1,{altText:"",src:u}),l(!1)},children:a.jsx(v.Tooltip,{label:t("editor.image.add_photo"),children:a.jsx("button",{disabled:!n,type:"button",onClick:()=>l(u=>!u),className:"toolbar-item spaced","data-test-id":"toolbar-insert-image",children:a.jsx(Mn,{name:"photo"})})})}):null},HD={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"},YD={paragraph:du,h1:zh,h2:Uh,h3:Kh,h4:pa,h5:pa,h6:pa,bullet:Oc,number:Hh,check:_h,code:Na,quote:Gh};function D2({mode:e,isFloating:n}){const[t]=tt.useLexicalComposerContext(),[r,o]=g.useState(t),[s,l]=g.useState("paragraph"),[u,d]=g.useState("root"),[f,h]=g.useState(null),[m,A]=g.useState("#000"),[y,b]=g.useState("#fff"),[x,w]=g.useState("left"),[k,L]=g.useState(!1),[O,T]=g.useState(!1),[R,E]=g.useState(!1),[M,P]=g.useState(!1),[I,F]=g.useState(!1),[_,N]=g.useState(!1),[j,U]=g.useState(!1),[W,B]=g.useState(!1),[Z,Q]=g.useState(!1),[re,oe]=g.useState(!1),[Ce]=I1(),[Te,Me]=g.useState(!1),[Re,ae]=g.useState(!0),[te,q]=g.useState(!0),[ce,ie]=g.useState(0),[ne,H]=g.useState(()=>t.isEditable()),X=e||"default",{excludeNodes:Y,fetchUploadMedia:J,fetchPromptResult:$,commentController:Ae,onTrack:me}=g.useContext(at),{t:ke}=He.useTranslation(),Fe=g.useCallback(()=>{const he=p.$getSelection();if(p.$isRangeSelection(he)){const Le=he.anchor.getNode(),Oe=he.focus.getNode(),fe=p.$isRootNode(Le)?null:Le.getTopLevelElementOrThrow(),ge=p.$isRootNode(Oe)?null:Oe.getTopLevelElementOrThrow();let pe=Le.getKey()==="root"?Le:ye.$findMatchingParent(Le,Ne=>{const Je=Ne.getParent();return Je!==null&&p.$isRootOrShadowRoot(Je)});he.getNodes().length===1?ae(!0):ae(!1),pe===null&&(pe=Le.getTopLevelElementOrThrow());const _e=pe.getKey(),qe=r.getElementByKey(_e);t.update(()=>{T(he.hasFormat("bold")),E(he.hasFormat("italic")),P(he.hasFormat("underline")),F(he.hasFormat("strikethrough")),N(he.hasFormat("subscript")),U(he.hasFormat("superscript")),B(he.hasFormat("code"))});const $e=pi(he),Ve=$e.getParent();sn.$isLinkNode(Ve)||sn.$isLinkNode($e)?L(!0):L(!1),A(ln.$getSelectionStyleValueForProperty(he,"color","inherit")),b(ln.$getSelectionStyleValueForProperty(he,"background-color","inherit"));let nt;sn.$isLinkNode(Ve)&&(nt=ye.$findMatchingParent($e,Ne=>p.$isElementNode(Ne)&&!Ne.isInline())),w(p.$isElementNode(nt)?nt.getFormatType():p.$isElementNode($e)?$e.getFormatType():(Ve==null?void 0:Ve.getFormatType())||"left");const Be=ye.$findMatchingParent($e,xt);if(xt(Be)?d("table"):d("root"),qe!==null&&(fe==null?void 0:fe.getKey())===(ge==null?void 0:ge.getKey()))if(h(_e),pt(pe)){const Ne=ye.$getNearestNodeOfType(Le,hr),Je=Ne?Ne.getListType():pe.getListType();l(Je)}else{const Ne=cn.$isHeadingNode(pe)?pe.getTag():pe.getType();Ne in HD&&l(Ne)}else l("")}},[r,ae]);g.useEffect(()=>t.registerCommand(p.SELECTION_CHANGE_COMMAND,(he,Le)=>(Fe(),o(Le),!1),p.COMMAND_PRIORITY_CRITICAL),[t,Fe]),g.useEffect(()=>ye.mergeRegister(t.registerEditableListener(he=>{H(he)}),r.registerUpdateListener(({editorState:he})=>{he.read(()=>{Fe()})}),r.registerCommand(p.CAN_UNDO_COMMAND,he=>(Q(he),!1),p.COMMAND_PRIORITY_CRITICAL),r.registerCommand(p.CAN_REDO_COMMAND,he=>(oe(he),!1),p.COMMAND_PRIORITY_CRITICAL)),[Fe,r,t]),g.useEffect(()=>ye.mergeRegister(r.registerCommand(p.KEY_MODIFIER_COMMAND,he=>{const Le=he,{code:Oe,metaKey:fe}=Le;if(Oe==="KeyK"&&fe){Le.preventDefault();let ge;return k?ge=null:ge=ba("https://"),r.dispatchCommand(sn.TOGGLE_LINK_COMMAND,ge)}return!1},p.COMMAND_PRIORITY_NORMAL),r.registerCommand(p.CLICK_COMMAND,()=>{const he=p.$getSelection();if(p.$isRangeSelection(he)){const Le=he.getNodes(),Oe=Le.length>0&&Le.every(fe=>ao(fe)||xt(fe)||dr(fe)?!1:p.$isElementNode(fe)||p.$isTextNode(fe));q(!Oe)}return!1},p.COMMAND_PRIORITY_NORMAL)),[r,k]),g.useEffect(()=>{const he=Le=>{var pe,We;const Oe=t.getRootElement();if(!Oe||Oe.contains(document.activeElement)||!(Le.ctrlKey||Le.metaKey)&&!Le.altKey||!!!((pe=document.activeElement)!=null&&pe.closest(".toolbar-dark-dropdown")||(We=document.activeElement)!=null&&We.closest(".toolbar-wrapper")))return;t.dispatchCommand(p.KEY_DOWN_COMMAND,Le)&&(Le.preventDefault(),t.focus())};return document.addEventListener("keydown",he,!0),()=>document.removeEventListener("keydown",he,!0)},[t]),g.useCallback((he,Le)=>{r.update(()=>{const Oe=p.$getSelection();Oe!==null&&ln.$patchStyleText(Oe,he)},Le?{tag:"historic"}:{})},[r]);const De=g.useCallback(()=>{me==null||me("text_formatting_cleared"),setTimeout(()=>{r.dispatchCommand(p.FORMAT_TEXT_COMMAND,"")}),r.update(()=>{const he=p.$getSelection();if(p.$isRangeSelection(he)){const Le=he.anchor,Oe=he.focus,fe=he.getNodes(),ge=he.extract();if(Le.key===Oe.key&&Le.offset===Oe.offset)return;fe.forEach((pe,We)=>{if(Fn(pe)){let _e=pe;We===0&&Le.offset!==0&&(_e=_e.splitText(Le.offset)[1]||_e),We===fe.length-1&&(_e=_e.splitText(Oe.offset)[0]||_e);const qe=ge[0];fe.length===1&&Fn(qe)&&(_e=qe),_e.__style!==""&&_e.setStyle(""),_e.__format!==0&&_e.setFormat(0);const $e=ye.$getNearestBlockElementAncestorOrThrow(_e);$e.__format!==0&&$e.setFormat(""),$e.__indent!==0&&$e.setIndent(0),pe=_e}else cn.$isHeadingNode(pe)||cn.$isQuoteNode(pe)?pe.replace(p.$createParagraphNode(),!0):qr.$isDecoratorBlockNode(pe)&&pe.setFormat("")})}})},[r]),Pe=g.useCallback(()=>{me==null||me("block_link_inserted"),t.dispatchCommand(gu,"create"),setTimeout(()=>{H(!0)},1e3)},[t]),Ue=()=>{me==null||me("block_comment_added"),t.dispatchCommand(ju,void 0),ie(he=>he+1)},Ze=YD[s]??du,It=!m||m==="inherit"||m==="",Mt=!y||y==="inherit"||y==="",Gt=!It,_t=!Mt,[V,de]=g.useState(!1);return a.jsx("div",{className:"toolbar-wrapper",tabIndex:-1,children:a.jsxs("div",{className:"toolbar",children:[e==="editor"&&!0&&$&&a.jsx("div",{className:"toolbar-section",children:a.jsx(g.Suspense,{fallback:null,children:a.jsx(UD,{})})}),a.jsx("div",{className:"toolbar-section",children:a.jsx(Ub,{disabled:te,blockType:s,rootType:u,editor:t,mode:X,fetchUploadMedia:J,excludeNodes:Y,children:a.jsx(v.Tooltip,{label:ke("editor.toolbar.turnInto"),children:a.jsxs("button",{disabled:te,className:"toolbar-light-btn toolbar-light-btn--compact","aria-label":"Formatting options for text style",type:"button","data-test-id":"toolbar-block-controls",children:[a.jsx("span",{className:"toolbar-light-btn__icon",children:a.jsx(ue,{icon:Ze,size:20,color:"currentColor"})}),a.jsx("span",{className:"toolbar-light-btn__chevron",children:a.jsx(ue,{icon:mi,size:16,color:"currentColor"})})]})})})}),a.jsxs("div",{className:"toolbar-section",children:[a.jsx(v.Tooltip,{label:ke("editor.toolbar.bold"),children:a.jsx("button",{disabled:!ne,onClick:()=>{r.dispatchCommand(p.FORMAT_TEXT_COMMAND,"bold")},className:"toolbar-item"+(O?" active":""),type:"button","data-test-id":"toolbar-bold",children:a.jsx(ue,{icon:UC,size:20,color:"currentColor"})})}),a.jsx(v.Tooltip,{label:ke("editor.toolbar.italic"),children:a.jsx("button",{disabled:!ne,onClick:()=>{r.dispatchCommand(p.FORMAT_TEXT_COMMAND,"italic")},className:"toolbar-item"+(R?" active":""),type:"button","data-test-id":"toolbar-italic",children:a.jsx(ue,{icon:KC,size:20,color:"currentColor"})})}),a.jsx(v.Tooltip,{label:ke("editor.toolbar.underline"),children:a.jsx("button",{disabled:!ne,"data-test-id":"toolbar-underline",onClick:()=>{r.dispatchCommand(p.FORMAT_TEXT_COMMAND,"underline")},className:"toolbar-item"+(M?" active":""),type:"button",children:a.jsx(ue,{icon:YC,size:20,color:"currentColor"})})}),a.jsx(v.Tooltip,{label:ke("editor.toolbar.strike"),children:a.jsx("button",{disabled:!ne,className:"toolbar-item"+(I?" active":""),"data-test-id":"toolbar-strikethrough",onClick:()=>{r.dispatchCommand(p.FORMAT_TEXT_COMMAND,"strikethrough")},children:a.jsx(ue,{icon:HC,size:20,color:"currentColor"})})}),a.jsx(v.Tooltip,{disabled:!ne,label:ke("editor.toolbar.link"),children:a.jsx("button",{onClick:Pe,className:"toolbar-item"+(k?" active":""),onMouseDown:()=>{H(!1)},type:"button","data-test-id":"toolbar-link",children:a.jsx(ue,{icon:Ta,size:20,color:"currentColor"})})}),a.jsx(v.Tooltip,{label:ke("editor.toolbar.code"),children:a.jsx("button",{disabled:!ne,onClick:()=>{me==null||me("text_code_toggled"),r.dispatchCommand(p.FORMAT_TEXT_COMMAND,"code")},className:"toolbar-item"+(W?" active":""),type:"button","data-test-id":"toolbar-code",children:a.jsx(ue,{icon:Na,size:20,color:"currentColor"})})}),a.jsx(v.Tooltip,{label:ke("editor.toolbar.equation","Inline equation"),children:a.jsx("button",{disabled:!ne,className:"toolbar-item",onClick:()=>{me==null||me("block_inline_equation_inserted"),r.dispatchCommand(Ra,"inline")},"data-test-id":"toolbar-inline-equation",children:a.jsx(ue,{icon:La,size:20,color:"currentColor"})})}),a.jsx(eu,{fontColor:m,bgColor:y,disabled:!ne,onOpenChange:de,onChange:he=>{A(he.color),b(he["background-color"]),r.update(()=>{const Le=p.$getSelection();Le!==null&&ln.$patchStyleText(Le,he)})},children:a.jsx(v.Tooltip,{label:ke("editor.toolbar.color","Text color"),children:a.jsxs("button",{disabled:!ne,className:"toolbar-light-btn toolbar-light-btn--compact"+(_t?" toolbar-light-btn--color-active":""),style:_t?{backgroundColor:`color-mix(in srgb, ${y} 85%, transparent)`}:void 0,type:"button","data-test-id":"toolbar-color-picker",children:[a.jsx("span",{className:"toolbar-light-btn__icon",children:a.jsx(R1,{size:20,color:Gt?m:"#FFFFFF",showBorder:!Gt&&!_t})}),a.jsx("span",{className:`toolbar-light-btn__chevron${V?" toolbar-light-btn__chevron--open":""}`,children:a.jsx(ue,{icon:mi,size:16,color:"currentColor"})})]})})})]}),a.jsx("div",{className:"toolbar-section",children:a.jsx(TD,{disabled:!ne,value:x,editor:t,isRTL:Te,setElementFormat:w})}),Ae&&a.jsx("div",{className:"toolbar-section",children:a.jsx(v.Tooltip,{label:ke("editor.toolbar.comment"),children:a.jsxs("button",{onClick:Ue,className:"toolbar-light-btn",type:"button","data-test-id":"toolbar-comment",children:[a.jsx("span",{className:"toolbar-light-btn__icon",children:a.jsx(ue,{icon:N8,size:20,color:"currentColor"})}),a.jsx("span",{className:"toolbar-light-btn__text",children:ke("editor.toolbar.comment")})]})},ce)}),e==="default"&&a.jsx("div",{className:"toolbar-section",children:a.jsx(KD,{editor:t,t:ke,isEditable:ne})}),a.jsx("div",{className:"toolbar-section",children:a.jsxs(v.Menu,{transitionProps:zn,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:[a.jsx(v.Menu.Target,{children:a.jsx(v.Tooltip,{label:ke("editor.toolbar.more"),children:a.jsx(v.UnstyledButton,{className:"toolbar-item",type:"button","data-test-id":"toolbar-more","aria-label":ke("editor.toolbar.more"),children:a.jsx(v.Flex,{align:"center",justify:"center",children:a.jsx(ue,{icon:so,size:20,color:"currentColor"})})})})}),a.jsxs(v.Menu.Dropdown,{onMouseDown:he=>he.preventDefault(),children:[a.jsxs(v.Stack,{gap:2,children:[a.jsx(v.Menu.Item,{leftSection:a.jsx(v.Flex,{align:"center",justify:"center",c:"gray.6",children:a.jsx(ue,{icon:ak,size:16})}),rightSection:a.jsx(v.Text,{size:"xs",c:"dimmed",children:Rs?"(⌘Z)":"(Ctrl+Z)"}),disabled:!Z,onClick:()=>{r.dispatchCommand(p.UNDO_COMMAND,void 0)},"data-test-id":"toolbar-undo",children:"Undo"}),a.jsx(v.Menu.Item,{leftSection:a.jsx(v.Flex,{align:"center",justify:"center",c:"gray.6",children:a.jsx(ue,{icon:q8,size:16})}),rightSection:a.jsx(v.Text,{size:"xs",c:"dimmed",children:Rs?"(⌘⇧Z)":"(Ctrl+Shift+Z)"}),disabled:!re,onClick:()=>{r.dispatchCommand(p.REDO_COMMAND,void 0)},"data-test-id":"toolbar-redo",children:"Redo"})]}),a.jsx(v.Menu.Divider,{}),a.jsx(v.Stack,{gap:2,children:a.jsx(v.Menu.Item,{leftSection:a.jsx(v.Flex,{align:"center",justify:"center",c:"gray.6",children:a.jsx(ue,{icon:ZC,size:16})}),disabled:!ne,onClick:De,"data-test-id":"toolbar-more-clear-format",children:"Clear format"})})]})]})}),Ce]})})}function P2(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 ZD(){const[e]=tt.useLexicalComposerContext(),[n,t]=g.useState("tree"),[r,o]=g.useState(""),[s,l]=g.useState(!1);g.useEffect(()=>{if(n==="dom"){const d=()=>{const f=e.getRootElement();f&&o(f.innerHTML)};return d(),e.registerUpdateListener(d)}},[n,e]);const u=async(d=!1)=>{try{const f=d?P2(r):r;await navigator.clipboard.writeText(f),l(!0),setTimeout(()=>l(!1),2e3)}catch(f){console.error("Failed to copy:",f)}};return a.jsxs("div",{className:"tree-view-output",children:[a.jsxs("div",{style:{display:"flex",gap:"4px",padding:"8px",borderBottom:"1px solid #333",background:"#1e1e1e"},children:[a.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"}),a.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"&&a.jsx(X9.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"&&a.jsxs("div",{style:{padding:"16px",background:"#1e1e1e",height:"100%",overflow:"auto"},children:[a.jsx("div",{style:{display:"flex",gap:"8px",marginBottom:"16px",position:"sticky",top:0,background:"#1e1e1e",paddingBottom:"8px",zIndex:10},children:a.jsx("button",{onClick:()=>u(!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"})}),a.jsx("div",{style:{padding:"12px",background:"#252526",borderRadius:"4px",border:"1px solid #3e3e42"},children:a.jsx("pre",{style:{margin:0,whiteSpace:"pre",color:"#9cdcfe",fontFamily:"monospace",fontSize:"11px",lineHeight:"1.4"},children:P2(r)})})]})]})}function B2({className:e}){return a.jsx($9.ContentEditable,{className:e||"ContentEditable__root"})}const GD="_listContainer_1l5sq_1",VD="_list_1l5sq_1",qD="_text_1l5sq_55",Lf={listContainer:GD,list:VD,text:qD},QD=({editor:e})=>{var h;const[n,t]=g.useState(!1),{t:r,i18n:o}=He.useTranslation(),{excludeNodes:s,disable:l}=g.useContext(at),u=m=>{const A=document.querySelector(".editor-container");if(m){A.classList.add("empty-editor");return}A.classList.remove("empty-editor")};g.useEffect(()=>{e.update(()=>{Uf()&&(t(!0),u(!0))}),ye.mergeRegister(e.registerCommand(p.BLUR_COMMAND,()=>{const m=!!Uf();return t(m),u(m),!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(p.FOCUS_COMMAND,()=>(t(!1),u(!1),!1),p.COMMAND_PRIORITY_LOW))},[]);const d=(m,A)=>{m==null||m.update(()=>{m.focus();const b=p.$getRoot().getFirstChild();b&&A&&(A(b),t(!1))})},f=g.useMemo(()=>[{title:r("editor.emptyPageOptions.heading"),icon:a.jsx(xe.IconH1,{stroke:2,size:18}),onSelect:()=>d(e,m=>{m.replace(cn.$createHeadingNode("h1"))})},{title:r("editor.emptyPageOptions.grid"),icon:a.jsx(xe.IconColumns2,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(j1,d1)})}},{title:r("editor.emptyPageOptions.list"),icon:a.jsx(xe.IconListNumbers,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(xu,void 0)})}},{title:r("editor.emptyPageOptions.code"),icon:a.jsx(xe.IconCode,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(wb,void 0)})}},{title:r("editor.menu.media.excalidraw.hint.description"),icon:a.jsx(xe.IconPalette,{stroke:2,size:18}),onSelect:()=>{Promise.resolve().then(()=>require("./layers.C4P7Q4ju.js")).then(({INSERT_EXCALIDRAW_COMMAND:m})=>{d(e,()=>{e.dispatchCommand(m,void 0)})})}},s.template?{title:r("editor.emptyPageOptions.template"),icon:a.jsx(xe.IconTemplate,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand($C,void 0)})}}:null,{title:r("editor.emptyPageOptions.callout"),icon:a.jsx(xe.IconBaseline,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{setTimeout(()=>{e==null||e.dispatchCommand(pu,"success")})})}},{title:r("editor.emptyPageOptions.table"),icon:a.jsx(xe.IconTable,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{setTimeout(()=>{e==null||e.dispatchCommand(vu,{columns:"4",includeHeaders:!1,rows:"3"})})})}},{title:r("editor.emptyPageOptions.integrations"),icon:a.jsx(xe.IconApps,{stroke:2,size:18}),onSelect:()=>{}}],[o.language]);return!n||l?null:a.jsx(v.Portal,{target:((h=e==null?void 0:e._rootElement)==null?void 0:h.parentElement)||document.body,children:a.jsx("ul",{className:`${Lf.listContainer} empty-page-options`,children:f.map((m,A)=>m?a.jsxs(v.Menu,{disabled:A!==f.length-1,position:"bottom-start",shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},middlewares:Fb,width:200,transitionProps:zn,children:[a.jsx(v.Menu.Target,{children:a.jsxs("li",{className:Lf.list,onClick:m.onSelect,children:[m.icon," ",a.jsx("span",{className:Lf.text,children:m.title})]})}),a.jsx(v.Menu.Dropdown,{children:Ii.map(y=>a.jsx(v.Menu.Item,{className:"item "+Bj(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(Vc,y.platform),t(!1)})})},children:y.name},y.name))})]},m.title):null)})})};function F1(e,n){try{return wa.$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 u=wa.$generateNodesFromDOM(e,l);o.push(...u)}catch{}return o}throw t}}function JD({editor:e,outputFormat:n,debounceMs:t=500,onChange:r,onBlur:o,isCommentVariant:s,checkIsEmpty:l,onChangeCommand:u}){const d=Yn.useDebouncedCallback(m=>{u&&m.dispatchCommand(u,!0)},100),f=Yn.useDebouncedCallback((m,A)=>{if(n==="html")m.read(()=>{let b=wa.$generateHtmlFromNodes(A,null);const x=p.$getRoot();x&&(l()&&(b=""),x.getChildrenSize()===0&&(A.update(()=>{x.append(p.$createParagraphNode())}),b=""));const w=p.$getRoot().getTextContent();r(b,w)});else{const y=m.toJSON();r(y)}},t),h=(m,A)=>{if(o)if(n==="html")A.update(()=>{const y=wa.$generateHtmlFromNodes(A,null);o(y)});else{const y=m.toJSON();o(y)}};return g.useEffect(()=>e.registerCommand(p.PASTE_COMMAND,A=>{if(!s)return!1;try{const y=A.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"),L=F1(e,k);return p.$insertNodes(L),!0}catch{return!1}},p.COMMAND_PRIORITY_LOW),[e,s]),{triggerOnChangeCommand:d,onChangeValue:f,onBlurValue:h}}const XD={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}},$D={images:"photo",codeHighlight:"code",checkList:"check",listMaxIndent:"list",collapsible:"caret-right",horizontalRule:"horizontal-rule",clickableLink:"link",floatingLinkEditor:"link",previewCodeEquation:"previewCodeEquation"};function eP(e,n){return t=>{if(!XD[t][e])return!1;const o=$D[t];return o?!n[o]:!(t in n&&n[t])}}const i5={comment:!1,default:!0,editor:!0};function tP(e,n,t,r,o){return n.filter(l=>(l.modes??i5)[r]&&!t[l.key]).map(l=>l.Provider).reduceRight((l,u)=>a.jsx(u,{imperativeHandleRef:o,children:l}),a.jsx(a.Fragment,{children:e}))}const _2=g.lazy(()=>Promise.resolve().then(()=>require("./layers.C4P7Q4ju.js")).then(e=>({default:e.ExcalidrawPlugin})));function nP(e){const{onRef:n,floatingAnchorElem:t,maxHeight:r,showTextToolbar:o,mode:s,isLoading:l,editor:u,onBlur:d,onFocus:f,onChange:h,outputFormat:m,debounceMs:A}=e,y=s==="editor",b=s==="comment",[x,w]=g.useState(!1),{excludeNodes:k,plugins:L,imperativeHandleRef:O,disable:T}=g.useContext(at),R=Tn,E=eP(s,k),{settings:{isRichText:M,showTreeView:P,isMaxLength:I}}=b1(),{historyState:F}=y1(),{triggerOnChangeCommand:_,onChangeValue:N,onBlurValue:j}=JD({editor:u,outputFormat:m,debounceMs:A,onChange:h,onBlur:d,isCommentVariant:b,checkIsEmpty:Uf,onChangeCommand:Xo});let U={};r?U={maxHeight:r}:y&&(U={overflowY:"hidden"});const W=y?a.jsx("div",{className:"editor-scroller",style:U,children:a.jsx("div",{className:"editor",ref:n,children:a.jsx("div",{className:"content-editable-wrapper",children:a.jsx("div",{children:a.jsx(B2,{})})})})}):a.jsx("div",{className:"editor-scroller",style:U,children:a.jsx("div",{className:"editor",ref:n,children:a.jsx(B2,{})})}),B=a.jsxs(a.Fragment,{children:[E("toolbar")&&!y&&a.jsx(D2,{mode:s}),E("componentPicker")&&a.jsx(Vj,{mode:s,opened:x,setOpenedMenu:w}),E("history")&&a.jsx(Nh.HistoryPlugin,{externalHistoryState:F}),E("floatingTextToolbar")&&t&&!R&&(y?a.jsx(g2,{anchorElem:t,component:a.jsx(D2,{mode:s,isFloating:!0})}):a.jsx(g2,{anchorElem:t})),a.jsxs("div",{className:`editor-container ${M?"":"plain-text"}`,children:[E("placeholder")&&a.jsx(eT,{}),E("autoFocus")&&a.jsx(qM,{isLoading:l}),E("emoji")&&a.jsx(yI,{}),E("hashtag")&&a.jsx(z9.HashtagPlugin,{}),E("clearEditor")&&a.jsx(_9.ClearEditorPlugin,{}),E("richText")&&a.jsx(H9.RichTextPlugin,{contentEditable:W,ErrorBoundary:W9.LexicalErrorBoundary}),(E("extendCode")||E("equation"))&&!T&&a.jsx(C7,{}),E("markdownShortcut")&&a.jsx(xT,{}),E("shortcuts")&&a.jsx(sL,{editor:u,setIsLinkEditMode:()=>{}}),E("extendCode")&&!T&&a.jsx(BN,{}),E("equation")&&!T&&a.jsx(RN,{}),E("codeHighlight")&&a.jsx(VM,{}),E("list")&&a.jsx(iT,{}),E("checkList")&&a.jsx(TN,{}),E("listMaxIndent")&&a.jsx(uT,{maxDepth:7}),!T&&a.jsx(rT,{}),E("link")&&a.jsx(oT,{}),E("comment")&&a.jsx(ET,{}),_2&&E("excalidraw")&&a.jsx(g.Suspense,{children:a.jsx(_2,{})}),E("swagger")&&a.jsx(ER,{}),E("childDocs")&&a.jsx(zS,{}),E("pageLink")&&a.jsx(kR,{}),E("newParagraph")&&!P&&a.jsx(qI,{}),E("form")&&a.jsx(FN,{}),L==null?void 0:L.map(Z=>{const{key:Q,Plugin:re,modes:oe}=Z;return!(oe??i5)[s]||k[Q]?null:a.jsx(re,{},Q)}),E("audio")&&a.jsx(lR,{}),E("file")&&a.jsx(BM,{}),E("embed")&&a.jsx(LN,{}),E("images")&&a.jsx(OM,{}),E("onChange")&&a.jsx(K9.OnChangePlugin,{ignoreSelectionChange:!0,onChange:(Z,Q)=>{N(Z,Q),_(Q)}}),E("maxLength")&&I&&a.jsx(vT,{maxLength:30}),E("blur")&&a.jsx(GM,{onBlur:j}),E("focus")&&a.jsx(tT,{onFocus:f}),E("treeView")&&P&&a.jsx(ZD,{}),E("actionsInspector")&&P&&a.jsx(pj,{isRichText:!0,shouldPreserveNewLinesInMarkdown:!0}),E("select")&&a.jsx(MD,{editor:u}),E("smartPaste")&&a.jsx(pN,{containerSelector:"main[data-app-container]"}),E("clickableLink")&&a.jsx(F9.ClickableLinkPlugin,{}),E("horizontalRule")&&a.jsx(U9.HorizontalRulePlugin,{}),E("tabFocus")&&a.jsx(bN,{}),E("tabIndentation")&&a.jsx(vN,{}),E("collapsible")&&a.jsx(ZS,{}),E("callout")&&a.jsx(kN,{}),E("layout")&&a.jsx(iR,{anchorElem:t}),E("table")&&t&&(y||!R)&&a.jsx(ej,{floatingAnchorElem:t}),E("draggableBlock")&&t&&a.jsx(fI,{isShowAddButton:!R,anchorElem:t}),t&&a.jsxs(a.Fragment,{children:[E("floatingLinkEditor")&&a.jsx(KI,{showTextToolbar:o}),E("actionMenu")&&a.jsx(oj,{anchorElem:t}),E("mediaActions")&&a.jsx(YN,{anchorElem:t}),E("previewCodeEquation")&&a.jsx(XI,{anchorElem:t})]})]}),E("tableOfContents")&&(y?k.contents&&a.jsx(fh,{}):(k.contents||k.contents===void 0)&&a.jsx(fh,{})),E("emptyPage")&&y&&a.jsx(QD,{editor:u})]});return!L||L.length===0?a.jsx(a.Fragment,{children:B}):tP(B,L,k,s,O)}const rP=()=>{const e=p.$getSelection(),n=Qt(),t=n==null?void 0:n.getParent(),r=t==null?void 0:t.getParent();if(n){if(M1())return p.$getRoot().clear(),e.insertParagraph(),!0;if(r instanceof No||r instanceof ss)return lE();if(t instanceof qn)return jN()}return!1},oP=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},sP=/\.(mp4|webm|ogg|mov|avi|mkv|flv|wmv|m4v|3gp|mpg|mpeg|ts|mts|m2ts|vob)$/i;function a5(e){return e.type.includes("video")||sP.test(e.name)}function iP(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 aP=(e,n)=>{var t,r,o,s,l,u;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];a5(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):(u=n.current)!=null&&u.insertFiles&&(n==null||n.current.insertFiles(d))}return!0}}return!1},F2=()=>{const e=Qt(),n=e==null?void 0:e.getParent();return e&&os(n)?uE():!1},W2=()=>{const e=Qt(),n=e==null?void 0:e.getParent();return e&&So(n)?cE():!1},lP=(e,n,t)=>{var s,l;const r=Qt(),o=r==null?void 0:r.getParent();if(r){if(So(o))return dE(e);if(cs(o))(l=(s=t.current)==null?void 0:s.onDeleteCallout)==null||l.call(s,n);else{if(Mr(o))return rR(e);if(Rt(o))return oP(n);if(rs(o))return ON(e)}}return!1},cP=(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},uP=(e,n,t,r,o)=>{var u,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 jn)return nR(e);if(l instanceof No)return aE(e);if(l instanceof Bs)return CS(e);if(l instanceof Kr)return MR(e);if(l instanceof hr||jn)return SN()}return(d=(u=t.current)==null?void 0:u.decoratorEnterAction)==null||d.call(u),!1};function dP(e,n){var t,r,o,s,l,u,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),m=h[0];return a5(m)&&((o=n.current)!=null&&o.insertVideos)?n.current.insertVideos(h):m.type.includes("image")&&((s=n.current)!=null&&s.insertImages)?n.current.insertImages(h):m.type.includes("audio")&&((l=n.current)!=null&&l.insertMusics)?n.current.insertMusics(h):(u=n.current)!=null&&u.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(iP(h))return!0}return!1}function fP(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 hP(e){const{mode:n,maxHeight:t,disable:r,isErrorWs:o,content:s,isLoading:l,imperativeHandleRef:u,editorRef:d,onBlur:f,onFocus:h,onChange:m,outputFormat:A,debounceMs:y}=e,[b,x]=g.useState(null),w=g.useRef(!1),[k,...L]=tt.useLexicalComposerContext(),{shiftEnterInsertNewLine:O}=g.useContext(at);_M({editor:k}),g.useEffect(()=>{k&&k.setEditable(!r)},[k,r]),g.useEffect(()=>{k&&(k.setEditable(!r),d&&(d.current=k),o&&k.update(()=>{if(typeof s=="string"){p.$getRoot().clear();const P=new DOMParser().parseFromString(s,"text/html"),I=F1(k,P);p.$getRoot().select(),p.$insertNodes(I)}else{const E=k.parseEditorState(JSON.stringify(s));k.setEditorState(E)}}))},[o]),g.useEffect(()=>{function E(){k.dispatchCommand(Hf,!0)}function M(I){const F=I.target,N=(F.tagName.toLowerCase()==="img"?F.closest("div.resizable-container__inner"):null)||fP(F);if(!N||F.classList.contains("dsd__theme__table-scrollable-wrapper"))return;(N.classList.contains("selected-block")||N.querySelector(".selected-block"))&&(I.preventDefault(),k.dispatchCommand(eA,{x:I.clientX,y:I.clientY,target:N}))}window.addEventListener("scroll",E);const P=k.getRootElement();return P==null||P.addEventListener("contextmenu",M),()=>{window.removeEventListener("scroll",E),P==null||P.removeEventListener("contextmenu",M)}},[k]);const T=E=>{E!==null&&x(E)};g.useEffect(()=>{const E=M=>{const P=document.activeElement;if(P&&P!==document.body&&P!==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 ye.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]),g.useEffect(()=>ye.mergeRegister(k.registerCommand(p.KEY_ENTER_COMMAND,E=>{const M=p.$getSelection();return uP(k,M,u,E,O)},p.COMMAND_PRIORITY_LOW),k.registerCommand(p.DELETE_CHARACTER_COMMAND,()=>rP(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ESCAPE_COMMAND,E=>p.$getSelection()?(k.blur(),p.$setSelection(null),xo(E),!0):!1,p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_DOWN_COMMAND,E=>cP(k,E),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ARROW_UP_COMMAND,()=>W2(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ARROW_LEFT_COMMAND,()=>W2(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ARROW_DOWN_COMMAND,()=>F2(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.PASTE_COMMAND,E=>dP(E,u),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.DROP_COMMAND,E=>aP(E,u),p.COMMAND_PRIORITY_HIGH),k.registerCommand(p.KEY_ARROW_RIGHT_COMMAND,()=>F2(),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=>lP(k,E,u),p.COMMAND_PRIORITY_HIGH)),[k]);const R={onRef:T,floatingAnchorElem:b,maxHeight:t,showTextToolbar:w,mode:n,isLoading:l,editor:k,onBlur:f,onFocus:h,onChange:m,outputFormat:A,debounceMs:y};return a.jsx(nP,{...R})}function pP(e){const n=new URL(e),t=`${n.origin}${n.pathname}`,r=n.searchParams.get("token");return{baseUrl:t,token:r}}function gP(e,n,t="http://localhost"){const r=mP(e,n),{baseUrl:o,token:s}=pP(t);let l={};return s&&(l={params:{token:s}}),new MC(o,e,r,{connect:!1,...l})}function mP(e,n){let t=n.get(e);return t===void 0?(t=new rC.Doc,n.set(e,t)):t.load(),t}const CP=Rs?"":"os-windows",l5=({children:e})=>a.jsx("div",{className:`doc-space-styles-provider ${CP}`,children:e}),at=g.createContext({maxFileSize:5,disable:!1,excludeNodes:{},imagePickerSettings:{},pages:[],plugins:[]}),c5=({initialContent:e,onChange:n,outputFormat:t,mode:r,maxHeight:o,onBlur:s,onFocus:l,fetchUploadMedia:u,fileChunkUploadApi:d,fetchPromptResult:f,fetchSmartPastePrompt:h,fetchSmartPasteStreamPrompt:m,fetchDeleteMedia:A,fetchRestoreMedia:y,pageId:b,commentController:x,maxFileSize:w,contentModalUploadImage:k,maxImageSizeError:L,debounce:O,disable:T,ws:R,excludeNodes:E={},imagePickerSettings:M={},childPages:P,linkablePages:I,language:F,shiftEnterInsertNewLine:_,editorRef:N,placeholder:j,plugins:U=[],onTrack:W})=>{const B=r||"default",Z=e||"<p></p>";let Q=!!(R!=null&&R.url);const{historyState:re}=y1(),oe=g.useRef({}),Ce=g.useRef(null),[Te,Me]=g.useState("initial"),[Re,ae]=g.useState(null),te=g.useCallback(Y=>{Y.update(()=>{if(typeof Z=="string"){const $=new DOMParser().parseFromString(Z,"text/html"),Ae=F1(Y,$);p.$insertNodes(Ae),p.$setSelection(null)}})},[]),q=g.useMemo(()=>{window.editorAppVersion=`version @layers-app/editor:${s8.version}`,B==="comment"&&document.body.setAttribute("mode","true");const Y=RM(B,U),J=T?Y.filter($=>$!==In&&$!==Qr):Y;return{editable:!T,editorState:null,namespace:"layers",nodes:J,onError:$=>{throw $},theme:f8(B)}},[U,T,B]);g.useEffect(()=>{F&&Df.changeLanguage(F)},[F]);const ce=()=>typeof Z=="string"?te:JSON.stringify(Z),ie=g.useCallback((Y,J)=>{const $=gP(Y,J,R==null?void 0:R.url);return $.on("status",Ae=>{Ae.status==="connecting"&&Me(Ae.status)}),setTimeout(()=>ae($),0),$},[]),ne=g.useCallback(()=>{var Ae;const Y=Re.awareness,$=Array.from(Y.getStates().entries()).map(([me,ke])=>({id:String(me),userId:me,name:ke.name,color:ke.color,awarenessData:ke.awarenessData})).filter((me,ke,Fe)=>ke===Fe.findIndex(De=>De.name===me.name));(Ae=R==null?void 0:R.getActiveUsers)==null||Ae.call(R,$)},[Re]);g.useEffect(()=>{if(Re!=null)return Re.awareness.on("update",ne),()=>Re.awareness.off("update",ne)},[Re,ne]),g.useEffect(()=>{if(Re!=null&&Re.ws){const Y=Re.ws;let J=0;Y?(Y.addEventListener("message",$=>{if(typeof $.data!="string"){J===1&&Me("connected"),J++;return}const Ae=JSON.parse($.data);Ae["active-users"]&&console.log("message",Ae["active-users"]),Ae.error&&(Ae.error==="Unauthorized"?(console.error("Connection unauthorized: You are not authorized to access this WebSocket."),Re.disconnect()):Ae.error==="No token provided"?(console.error("No token provided: You must provide a token."),Re.disconnect()):(console.error("Unknown error:",Ae.error),Re.disconnect()),Me("error"))}),Y.addEventListener("close",$=>{console.error("WebSocket connection closed:",$),Me("error")})):console.error("WebSocket is not initialized yet.")}},[Re==null?void 0:Re.ws]),g.useEffect(()=>()=>{Re instanceof MC&&(Re.destroy(),Re.disconnect())},[Re]),Q||(q.editorState=ce());const H=Te==="connecting"&&Q,X=g.useMemo(()=>{const Y={...E};return u||(Y.photo=!0,Y.video=!0,Y.audio=!0,Y.file=!0),r!=="editor"&&(Y.childDocs=!0),T||(Y.previewCodeEquation=!0),{fetchDeleteMedia:A,fetchUploadMedia:u,fileChunkUploadApi:d,fetchRestoreMedia:y,fetchPromptResult:f,fetchSmartPastePrompt:h,fetchSmartPasteStreamPrompt:m,onTrack:W,maxFileSize:w||5,contentModalUploadImage:k,maxImageSizeError:L,shiftEnterInsertNewLine:_,commentController:x,disable:T||!1,pageId:b,mode:B,excludeNodes:Y,imagePickerSettings:M,imperativeHandleRef:oe,maxHeight:o,pages:(P==null?void 0:P.items)??[],childPagesLoading:(P==null?void 0:P.isLoading)??!1,linkablePages:I,placeholder:j,plugins:U}},[P,b,x,j,U,I,E,u,d,A,y,f,W,w,k,L,_,T,B,M,o]);return a.jsx(at.Provider,{value:X,children:a.jsx(He.I18nextProvider,{i18n:Df,children:a.jsx(l5,{children:a.jsxs(e7,{children:[a.jsx("div",{ref:Ce}),a.jsxs("div",{className:`doc-space-editor-wrapper ${B}${T?" disabled":""}`,children:[a.jsx(v.LoadingOverlay,{visible:H,overlayProps:{radius:"sm",blur:2}}),a.jsx(HM,{children:a.jsx(R9.LexicalCollaboration,{children:a.jsxs(I9.LexicalComposer,{initialConfig:q,children:[R&&Te!=="error"?a.jsx(j9.CollaborationPlugin,{id:R.id,providerFactory:ie,username:R.user.name,cursorColor:R.user.color,awarenessData:R.user.awarenessData,shouldBootstrap:!0,cursorsContainerRef:Ce,initialEditorState:ce()}):a.jsx(Nh.HistoryPlugin,{externalHistoryState:re}),a.jsx(YM,{children:a.jsx(XR,{children:a.jsx(kT,{children:a.jsx(lS,{children:a.jsx("div",{className:"editor-shell",children:a.jsx(hP,{editorRef:N,maxHeight:o,mode:B,disable:T||!1,isErrorWs:Te==="error",content:Z,isLoading:H,imperativeHandleRef:oe,onBlur:s,onFocus:l,onChange:n,outputFormat:t,debounceMs:O})})})})})})]})})})]})]})})})})},u5=g.createContext(null);function AP({config:e,children:n,imperativeHandleRef:t}){const[r,o]=g.useState(0),s=g.useRef(new Set),l=g.useCallback(h=>{var m;if(!s.current.has(h)){s.current.add(h);const A=s.current.size;o(A),(m=e.onUploadStateChange)==null||m.call(e,A>0,A)}},[e]),u=g.useCallback(h=>{var m;if(s.current.has(h)){s.current.delete(h);const A=s.current.size;o(A),(m=e.onUploadStateChange)==null||m.call(e,A>0,A)}},[e]),d=g.useCallback((h,m,A)=>{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:m,videoId:A}}else h instanceof Error?y={status:0,statusText:"Error",message:h.message,source:m,videoId:A}:y={status:0,statusText:"Unknown Error",message:String(h),source:m,videoId:A};e.onError(y)},[e]),f=g.useMemo(()=>({pageId:e.pageId,maxFileSize:e.maxFileSize??5,imperativeHandleRef:t,registerUpload:l,unregisterUpload:u,isUploading:r>0,uploadingCount:r,reportError:d,onTrack:e.onTrack}),[e.pageId,e.maxFileSize,e.onTrack,t,l,u,r,d]);return a.jsx(u5.Provider,{value:f,children:n})}function W1(){const e=g.useContext(u5);if(!e)throw new Error("useVideoContext must be used within a VideoConfigProvider");return e}const Mh=p.createCommand("INSERT_VIDEO_COMMAND"),d5=p.createCommand("UPLOAD_VIDEO_COMMAND");function f5(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 u=r[1]||r[3],d=r[2]||r[4];return{platform:"vk",id:`${u}-${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 Qo(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 z2({children:e,className:n}){const t=["media-actions",n].filter(Boolean).join(" ");return a.jsx("div",{className:t,children:e})}function z1({size:e=32}){return a.jsx("div",{className:"stars-animation",style:{width:e,height:e},children:a.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:[a.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"}),a.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"}),a.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"}),a.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 U1({size:e="sm",w:n=150,comboboxProps:t,rightSection:r,renderOption:o,data:s,value:l,defaultValue:u,onChange:d,inputClassName:f,...h}){var B;const{onClick:m,type:A,onCopy:y,onCut:b,onPaste:x,classNames:w,allowDeselect:k,...L}=h,T=[typeof w=="object"&&w&&"input"in w?w.input:void 0,f].filter(Boolean).join(" ")||void 0,R=T?{...typeof w=="object"&&w?w:{},input:T}:w,[E,M]=g.useState(""),P=v.useCombobox({onDropdownClose:()=>{P.resetSelectedOption(),P.focusTarget(),M("")},onDropdownOpen:()=>{P.focusSearchInput()}}),I=g.useMemo(()=>(Array.isArray(s)?s:[]).map(Z=>typeof Z=="string"?{value:Z,label:Z}:Z),[s]),F=l??u??null,_=((B=I.find(Z=>Z.value===F))==null?void 0:B.label)??"",N=(Z,Q,re)=>o?o({option:{value:Z,label:Q},checked:re}):a.jsxs(v.Group,{justify:"space-between",wrap:"nowrap",w:"100%",children:[Q,re&&a.jsx(ue,{icon:Or,size:16,color:"var(--primary-color-text, #4C6EF5)"})]}),{width:j,...U}=t||{},W=j??"target";return a.jsxs(v.Combobox,{store:P,withinPortal:!0,onOptionSubmit:Z=>{const Q=I.find(re=>re.value===Z)??{value:Z,label:Z};d==null||d(Z,Q),P.closeDropdown()},width:W,...U,children:[a.jsx(v.Combobox.Target,{children:a.jsx(v.InputBase,{component:"button",size:e,w:n,classNames:R,pointer:!0,rightSection:r??a.jsx(ue,{icon:mi,size:16,className:"editor-select__chevron"}),rightSectionPointerEvents:"none",onClick:Z=>{m==null||m(Z),P.toggleDropdown()},...L,children:_})}),a.jsx(v.Combobox.Dropdown,{children:a.jsx(v.Combobox.Options,{style:{maxHeight:396,overflowY:"auto"},children:I.length>0?I.map(Z=>{const Q=Z.value===F;return a.jsx(v.Combobox.Option,{value:Z.value,children:N(Z.value,Z.label,Q)},Z.value)}):a.jsx(v.Combobox.Empty,{children:"Nothing found"})})})]})}function Pu(){return""}function yP(){return typeof window<"u"&&window.location.hostname==="dev-app.layers.md"?"https://api.layers.md":""}function ol(){return{}}async function xP(e,n,t,r,o,s,l,u){return new Promise((d,f)=>{const h=yP()+`/v1/videos/${e}/upload`,m=n.slice(t,r+1),A=`bytes ${t}-${r}/${o}`,y=new XMLHttpRequest;if(u(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":A,...ol()};Object.keys(b).forEach(x=>y.setRequestHeader(x,b[x])),y.withCredentials=!0,y.send(m)})}async function Bu(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 vP(e,n,t="PAGE",r,o){const s=Pu()+"/v1/videos/init",l={"Content-Type":"application/json",...ol()},u={parentId:n,parentType:t,file:{originalFileName:e.name,contentType:e.type||"application/octet-stream",bytesTotal:e.size}};try{const d=await Bu(s,{method:"POST",headers:l,body:JSON.stringify(u),credentials:r?void 0:"include"},3e4);if(!d.ok){let h={};try{const A=await d.text();A&&(h=JSON.parse(A))}catch{h={message:"Unknown error"}}const m={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:u}),m}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 Mi(e,n,t){const r=(n||Pu())+`/v1/videos/${e}/status`,o={...t||ol()};try{const s=await Bu(r,{method:"GET",headers:o,credentials:n?void 0:"include"},1e4);if(!s.ok){const u=await s.json().catch(()=>({}));throw console.error("fetchStatus API error:",{url:r,status:s.status,statusText:s.statusText,data:u}),{status:s.status,statusText:s.statusText,data:u}}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 wP(e,n,t,r){const o=Pu()+`/v1/videos/${e}/cover`,s=new FormData;s.append("file",n);const l=await Bu(o,{method:"POST",headers:ol(),body:s,credentials:"include"},3e4);if(!l.ok){const u=await l.json().catch(()=>({}));throw{status:l.status,statusText:l.statusText,data:u}}return l.json()}async function kP(e,n,t){const r=Pu()+`/v1/videos/${e}/retry`,o={...ol()};try{const s=await Bu(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 SP=2e3;function EP(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 MP(e){return!e||e.playable!==!0?null:e.rawPlayable&&e.rawUrl?e.rawUrl:e.proxyReady&&e.primaryUrl?e.primaryUrl:null}function TP({videoId:e,baseUrl:n,authHeaders:t,enabled:r=!0}){const[o,s]=g.useState(null),[l,u]=g.useState(!0),d=g.useRef(null),f=g.useCallback(()=>{d.current&&(clearInterval(d.current),d.current=null)},[]),h=g.useCallback(()=>{if(f(),!e||!r)return;u(!0);const k=e,L=async()=>{var O;if(k)try{const T=await Mi(k,n,t);if(s(T),T.failure){f();return}if(((O=T.playback)==null?void 0:O.optimizedReady)===!0){f();return}}catch(T){if((T==null?void 0:T.status)===404||(T==null?void 0:T.statusText)==="Not Found"){u(!1),f();return}console.error("Video status polling error:",(T==null?void 0:T.message)||T)}};d.current=setInterval(L,SP),L()},[e,r,n,t,f]);g.useEffect(()=>(r&&e?h():(f(),u(!0)),()=>{f()}),[r,e,h,f]);const m=(o==null?void 0:o.playback)||null,A=EP(m),y=(m==null?void 0:m.primaryUrl)||null,b=(m==null?void 0:m.optimizedReady)===!0,x=(m==null?void 0:m.rawPlayable)===!0,w=MP(m);return{status:o,playback:m,videoUrl:A,primaryUrl:y,optimizedReady:b,nativeVideoUrl:w,rawPlayable:x,isStatusAvailable:l}}const LP=18e4;function NP(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 RP({videoId:e,status:n,onAnalysisComplete:t,onConversionComplete:r,onError:o}){const[s,l]=g.useState({percent:0,stage:"analysis",remaining:void 0}),[u,d]=g.useState(!1),[f,h]=g.useState(!1),m=g.useRef(!1),A=g.useRef(""),y=g.useRef(0),b=g.useRef(!1),x=g.useRef(!1),w=g.useRef(!1),k=g.useRef(0),L=g.useRef(t),O=g.useRef(r),T=g.useRef(o);L.current=t,O.current=r,T.current=o,g.useEffect(()=>{var j,U,W,B,Z,Q;if(!u||f||!n)return;if(n.failure){const re=n.failure,oe=(re==null?void 0:re.message)||(re==null?void 0:re.reason)||"Unknown error";console.error("Video processing failed:",oe),d(!1),(j=T.current)==null||j.call(T);return}const F=n.playback||null,_=(F==null?void 0:F.playable)===!0,N=(F==null?void 0:F.optimizedReady)===!0;if(_&&!x.current&&(x.current=!0,(U=L.current)==null||U.call(L)),_&&!w.current&&(w.current=!0,(W=O.current)==null||W.call(O)),N){x.current||(x.current=!0,(B=L.current)==null||B.call(L)),w.current||(w.current=!0,(Z=O.current)==null||Z.call(O)),d(!1);return}if(n.processing){const re=n.processing,oe=re.percent!=null?re.percent:0,Ce=NP(re.stage),Te=JSON.stringify({stage:re.stage,percent:oe});Te!==A.current&&(A.current=Te,y.current=Date.now(),b.current=!1,Ce==="conversion"&&!x.current&&(x.current=!0,(Q=L.current)==null||Q.call(L)));const Me=Date.now();!b.current&&y.current>0&&Me-y.current>LP&&(b.current=!0);const Re=Math.max(k.current,oe);k.current=Re,l({percent:Re,stage:Ce,remaining:Re<100?Math.ceil((100-Re)/5):void 0})}},[u,f,n]);const R=g.useCallback(()=>{e&&(d(!0),m.current=!1,h(!1),x.current=!1,k.current=0,l({percent:0,stage:"analysis",remaining:void 0}),A.current="",y.current=0,b.current=!1,w.current=!1)},[e]),E=g.useCallback(()=>{e&&(d(!0),m.current=!1,h(!1),l({percent:0,stage:"conversion",remaining:void 0}))},[e]),M=g.useCallback(()=>{m.current=!0,h(!0)},[]),P=g.useCallback(()=>{m.current=!1,h(!1)},[]),I=g.useCallback(()=>{d(!1),h(!1),m.current=!1,k.current=0,l({percent:0,stage:"analysis",remaining:void 0}),x.current=!1,A.current="",y.current=0,b.current=!1,w.current=!1},[]);return{transcodingProgress:s,isTranscoding:u,isPaused:f,startAnalysis:R,startConversion:E,handlePause:M,handleResume:P,handleCancel:I}}function jP({onError:e,parentId:n,parentType:t="PAGE"}){const r=g.useMemo(()=>({init:async(s,l,u)=>{var f,h;const d=await vP(s,l,u);return{id:d.videoId,startOffset:(h=(f=d.status)==null?void 0:f.upload)==null?void 0:h.nextOffset}},uploadChunk:xP,fetchOffset:async s=>{var u;const l=await Mi(s);return{nextOffset:(u=l==null?void 0:l.upload)==null?void 0:u.nextOffset}}}),[]),o=nA({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 h5({size:e=32}){return a.jsxs("div",{className:"video-analysis-animation",style:{width:e,height:e,display:"flex",alignItems:"center",justifyContent:"center"},children:[a.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:[a.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"}),a.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"}),a.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"}),a.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"}),a.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"})]}),a.jsx("div",{className:"video-analysis-animation__line"})]})}function IP({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){const{t:s}=He.useTranslation();return a.jsxs(v.Paper,{p:"xl",withBorder:!0,radius:12,style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg)",alignItems:"center"},children:[a.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:[a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs)",alignItems:"center"},children:[o?a.jsx(h5,{size:32}):a.jsx(z1,{size:32}),a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,alignItems:"center"},children:[a.jsx(v.Text,{size:"md",fw:500,children:s("editor.video.transcoding.title")}),a.jsx(v.Text,{size:"sm",c:"dimmed",children:s("editor.video.transcoding.analysis")})]})]}),a.jsx("div",{style:{width:"100%"},children:a.jsx(mu,{progress:{percent:e.percent,uploaded:0,total:100,speed:0,remaining:e.remaining||0},showSpeed:!1,showRemaining:!1,showInfo:!1})})]}),a.jsx(Za,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})}function OP({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){const{t:s}=He.useTranslation();return a.jsxs(v.Paper,{p:"xl",withBorder:!0,radius:12,style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg)",alignItems:"center"},children:[a.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:[a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs)",alignItems:"center"},children:[o?a.jsx(h5,{size:32}):a.jsx(z1,{size:32}),a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,alignItems:"center"},children:[a.jsx(v.Text,{size:"md",fw:500,children:s("editor.video.transcoding.title")}),a.jsx(v.Text,{size:"sm",c:"dimmed",children:s("editor.video.transcoding.conversion")})]})]}),a.jsx("div",{style:{width:"100%"},children:a.jsx(mu,{progress:{percent:e.percent,uploaded:0,total:100,speed:0,remaining:e.remaining||0},showSpeed:!1,showRemaining:!!e.remaining,showInfo:!1})})]}),a.jsx(Za,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})}function U2({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 a.jsx(Bt.FilePicker,{...t})}function DP({errorType:e,onRetry:n,onCancel:t,maxFileSize:r}){const{t:o}=He.useTranslation(),s=u=>u>=1024?`${(u/1024).toFixed(1)} GB`:`${u} MB`,l=()=>{switch(e){case"size-limit":return o("editor.video.errors.sizeLimit",{size:s(r)});case"format":return a.jsxs(a.Fragment,{children:[o("editor.video.errors.format"),a.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 a.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:[a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center",width:"100%"},children:[a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center"},children:[a.jsx(ue,{icon:Bh,size:32,color:"var(--mantine-color-red-filled)",className:"video-upload-error-icon"}),a.jsx(v.Text,{size:"md",fw:500,c:"var(--mantine-color-bright)",style:{lineHeight:1.55},children:o("editor.video.errors.uploadFailed")})]}),a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center",justifyContent:"center",width:"100%"},children:[e==="interrupted"&&a.jsx("div",{style:{width:"100%"},children:a.jsx(v.Progress,{value:100,color:"red",size:6,radius:"md"})}),a.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"?a.jsx(Za,{onRetry:n,onCancel:t,showRetry:!0}):a.jsx(v.Button,{variant:"default",size:"sm",onClick:n,style:{height:36,padding:"6px 18px"},children:o("editor.video.actions.selectAnotherFile")})]})}function PP({value:e,disabled:n=!1,error:t,onChange:r,onSubmit:o}){const{t:s}=He.useTranslation(),l=g.useCallback(d=>{d.stopPropagation()},[]),u=g.useCallback(d=>{d.stopPropagation()},[]);return a.jsxs("div",{className:"video-upload-link",style:{pointerEvents:"auto",position:"relative",zIndex:10},onClick:l,onMouseDown:l,onMouseUp:l,onPointerDown:u,onPointerUp:u,children:[a.jsx("div",{className:"video-upload-link-input",children:a.jsx(v.TextInput,{value:e,type:"url",variant:"filled",size:"sm",placeholder:s("editor.video.link.placeholder"),disabled:n,error:!!t,w:"100%",leftSection:a.jsx(ue,{icon:Vh,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:u})}),t?a.jsx(v.Text,{size:"xs",className:"video-upload-link-error",children:t}):null,a.jsx("div",{className:"video-upload-link-actions",children:a.jsx(v.Button,{size:"sm",radius:"md",onClick:o,disabled:n||e.trim().length===0,children:s("editor.video.link.save")})})]})}function K2(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 p5(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 BP(e,n){const r=p5(e,n).split("/");return r.pop(),r.join("/")}function _P(e,n,t){const r=e.split(/\r?\n/),o=[],s=BP(n,t);let l=0;for(;l<r.length;){const u=r[l].trim();if(u.includes("-->")){const[d,f]=u.split("-->").map(b=>b.trim()),h=K2(d),m=K2(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]),L=Number(y[5]),O=`${s}/${b}`;o.push({start:h,end:m,sheetUrl:O,x,y:w,w:k,h:L})}l+=2;continue}l+=1}return o}function H2(e,n){return p5(e,n)}function FP(e){return Math.min(1,Math.max(0,e))}function WP({storyboard:e,baseUrl:n,authHeaders:t,enabled:r=!0}){const[o,s]=g.useState([]),[l,u]=g.useState(0),[d,f]=g.useState(!1),[h,m]=g.useState(()=>new Map),A=g.useRef(new Set),y=r&&(e==null?void 0:e.ready)&&e.vttUrl&&e.metaUrl;g.useEffect(()=>{if(!y){f(!1),s([]),u(0);return}let k=!0;return(async()=>{const O=H2(e.vttUrl,n),T=H2(e.metaUrl,n),E={method:"GET",headers:t||{},credentials:n?void 0:"include"},[M,P]=await Promise.all([fetch(O,E),fetch(T,E)]);if(!M.ok||!P.ok){k&&f(!1);return}const[I,F]=await Promise.all([M.text(),P.json().catch(()=>({}))]);if(!k)return;const _=_P(I,O,n),N=Number(F.durationSec||0);s(_),u(N),f(_.length>0&&N>0)})().catch(()=>{k&&f(!1)}),()=>{k=!1}},[y,e==null?void 0:e.vttUrl,e==null?void 0:e.metaUrl,n,t]);const b=g.useCallback(async k=>{if(h.has(k)||A.current.has(k))return h.get(k);A.current.add(k);const L=new Image,O=await new Promise(T=>{L.onload=()=>T({width:L.naturalWidth,height:L.naturalHeight}),L.onerror=()=>T(null),L.src=k});return A.current.delete(k),O?(m(T=>{const R=new Map(T);return R.set(k,O),R}),O):null},[h]),x=g.useCallback(k=>{if(!d||!l||o.length===0)return null;const L=FP(k),O=Math.min(o.length-1,Math.max(0,Math.floor(L*o.length))),T=o[O],R=h.get(T.sheetUrl);return{...T,sheetWidth:R==null?void 0:R.width,sheetHeight:R==null?void 0:R.height}},[d,l,o,h]),w=g.useMemo(()=>o.map(k=>k.sheetUrl),[o]);return g.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 zP=120,UP=64;function KP({frame:e,left:n,width:t=zP}){const r=g.useMemo(()=>{const o=t/e.w,s=UP,l=e.sheetWidth&&e.sheetHeight?`${e.sheetWidth*o}px ${e.sheetHeight*o}px`:void 0,u=`-${e.x*o}px -${e.y*o}px`;return{container:{left:n,width:t,height:s},image:{backgroundImage:`url('${e.sheetUrl}')`,backgroundSize:l,backgroundPosition:u}}},[e,n,t]);return a.jsx("div",{className:"video-player-storyboard-preview","data-test-id":"video-storyboard-preview",style:r.container,children:a.jsx("div",{className:"video-player-storyboard-preview-image",style:r.image})})}function pr(e){return function({size:t=20,color:r="currentColor"}){return a.jsx(ue,{icon:e,size:t,color:r})}}function g5({size:e=20,color:n="currentColor"}){return a.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:a.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 HP({size:e=20,color:n="currentColor"}){return a.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:[a.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}),a.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 YP=pr(VC),ZP=pr(qC),Y2=pr(J8),$o=pr(Ns),GP=pr(D8),VP=pr(V8),gi=pr(NC),wo=pr(Or),m5=pr(nk),C5=pr(j8),A5=pr($8),K1=pr(yc),mc=pr(Zh);function qP({size:e=32}){return a.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:[a.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)"}),a.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 _u(e,n){return e.startsWith("http://")||e.startsWith("https://")?e:`${n||(typeof window<"u"?window.location.origin:"")}${e}`}function Fu(e){return e?{Authorization:`Bearer ${e}`}:{}}async function Z2(e){const n=await e.text();if(!n)return null;try{return JSON.parse(n)}catch{return n}}async function Wu(e){if(!e.ok){const n=await Z2(e),t=(n&&typeof n=="object"&&"message"in n?n.message:null)||e.statusText||"Request failed";throw new Error(t)}return Z2(e)}function Ti(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",u=!!((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,m=typeof(e==null?void 0:e.fileName)=="string"?e.fileName:void 0,A=!!((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:u,isDisabled:d,url:f,createdAt:h,fileName:m,status:"ready",auto:A}}function au(e){return e.label.length<=3}async function G2(e,n={}){const t=_u(`/v1/videos/${e}/subtitles`,n.baseUrl),r=await fetch(t,{method:"GET",credentials:"include",headers:{...Fu(n.authToken)}}),o=await Wu(r);return(Array.isArray(o)?o:Array.isArray(o==null?void 0:o.tracks)?o.tracks:[]).map(Ti).filter(l=>l.id)}async function QP(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=_u(`/v1/videos/${e}/subtitles?${o.toString()}`,r.baseUrl),l=new FormData;l.append("file",n);const u=await fetch(s,{method:"POST",credentials:"include",headers:{...Fu(r.authToken)},body:l,signal:t.signal}),d=await Wu(u);return d?Ti(d):null}async function JP(e,n,t,r={}){const o=_u(`/v1/videos/${e}/subtitles/${n}/disabled`,r.baseUrl),s=await fetch(o,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...Fu(r.authToken)},body:JSON.stringify({isDisabled:t})});await Wu(s)}async function XP(e,n,t={}){const r=_u(`/v1/videos/${e}/subtitles/${n}`,t.baseUrl),o=await fetch(r,{method:"DELETE",credentials:"include",headers:{...Fu(t.authToken)}});await Wu(o)}const $P={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 eB({opened:e,onClose:n,settings:t,isSettingsDisabled:r,onSubtitlesOpen:o,onSpeedClick:s,onQualityClick:l,onSubtitleSelect:u,optimisticSpeed:d,setOptimisticSpeed:f}){var T,R;const{t:h}=He.useTranslation(),[m,A]=g.useState("main"),y=()=>{n(),A("main")},b=(d??t.currentSpeed)===1?h("editor.video.settings.normal"):`${d??t.currentSpeed}x`,x=((T=t.qualities.find(E=>E.id===t.currentQualityId))==null?void 0:T.label)||h("editor.video.settings.auto"),w=((R=t.subtitles.find(E=>E.id===t.currentSubtitleId))==null?void 0:R.label)||h("editor.video.settings.off"),k=E=>E===1?h("editor.video.settings.normal"):E.toString(),L=d??t.currentSpeed,O=h("editor.video.settingsModal.autoGenerated");return a.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:a.jsxs("div",{className:"video-mobile-settings-drawer__inner",children:[m==="main"&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"video-mobile-settings-drawer__header",children:[a.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.player.settings")}),a.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:y,children:a.jsx(mc,{size:16})})]}),a.jsx("div",{className:"video-mobile-settings-drawer__divider"}),a.jsxs("div",{className:"video-mobile-settings-drawer__list",children:[a.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__item",disabled:r,onClick:()=>{r||(o==null||o(),A("subtitles"))},children:[a.jsx("span",{className:"video-mobile-settings-drawer__item-icon",children:a.jsx(m5,{size:16})}),a.jsx("span",{className:"video-mobile-settings-drawer__item-label",children:h("editor.video.settings.subtitlesCc")}),a.jsx("span",{className:"video-mobile-settings-drawer__item-value",children:w}),a.jsx("span",{className:"video-mobile-settings-drawer__item-chevron",children:a.jsx($o,{size:16})})]}),a.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__item",disabled:r||!t.hasRealSpeeds,onClick:()=>{t.hasRealSpeeds&&A("speed")},children:[a.jsx("span",{className:"video-mobile-settings-drawer__item-icon",children:a.jsx(C5,{size:16})}),a.jsx("span",{className:"video-mobile-settings-drawer__item-label",children:h("editor.video.settings.speed")}),a.jsx("span",{className:"video-mobile-settings-drawer__item-value",children:b}),a.jsx("span",{className:"video-mobile-settings-drawer__item-chevron",children:a.jsx($o,{size:16})})]}),a.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__item",disabled:r||!t.hasRealQualities,onClick:()=>{t.hasRealQualities&&A("quality")},children:[a.jsx("span",{className:"video-mobile-settings-drawer__item-icon",children:a.jsx(A5,{size:16})}),a.jsx("span",{className:"video-mobile-settings-drawer__item-label",children:h("editor.video.settings.quality")}),a.jsx("span",{className:"video-mobile-settings-drawer__item-value",children:x}),a.jsx("span",{className:"video-mobile-settings-drawer__item-chevron",children:a.jsx($o,{size:16})})]})]})]}),m==="subtitles"&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub",children:[a.jsx("button",{type:"button",className:"video-mobile-settings-drawer__back",onClick:()=>A("main"),children:a.jsx(gi,{size:16})}),a.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.settings.subtitlesCc")}),a.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:y,children:a.jsx(mc,{size:16})})]}),a.jsx("div",{className:"video-mobile-settings-drawer__divider"}),a.jsx("div",{className:"video-mobile-settings-drawer__scroll-list",children:t.subtitles.map(E=>{const M=E.id===t.currentSubtitleId;let P=E.label;if(au({label:P})){const I=E.lang?$P[E.lang.toLowerCase()]:null;I&&(P=I),P=`${P} (${O})`}return a.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{u(E.id),y()},children:[a.jsx("span",{className:"video-mobile-settings-drawer__option-label",children:P}),M&&a.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:a.jsx(wo,{size:16})})]},`subtitle-${E.id??"off"}`)})})]}),m==="speed"&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub",children:[a.jsx("button",{type:"button",className:"video-mobile-settings-drawer__back",onClick:()=>A("main"),children:a.jsx(gi,{size:16})}),a.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.settings.speed")}),a.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:y,children:a.jsx(mc,{size:16})})]}),a.jsx("div",{className:"video-mobile-settings-drawer__divider"}),a.jsx("div",{className:"video-mobile-settings-drawer__scroll-list",children:t.speeds.map(E=>{const M=E===L;return a.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{f(E),s(E),y()},children:[a.jsx("span",{className:"video-mobile-settings-drawer__option-label",children:k(E)}),M&&a.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:a.jsx(wo,{size:16})})]},`speed-${E}`)})})]}),m==="quality"&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub",children:[a.jsx("button",{type:"button",className:"video-mobile-settings-drawer__back",onClick:()=>A("main"),children:a.jsx(gi,{size:16})}),a.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.settings.quality")}),a.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:y,children:a.jsx(mc,{size:16})})]}),a.jsx("div",{className:"video-mobile-settings-drawer__divider"}),a.jsxs("div",{className:"video-mobile-settings-drawer__scroll-list",children:[t.qualities.map(E=>{var I;const M=E.id===t.currentQualityId,P=(I=E.label)==null?void 0:I.includes("1080");return a.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{l(E.id),y()},children:[a.jsxs("span",{className:"video-mobile-settings-drawer__option-label",children:[E.label,P&&a.jsx("sup",{className:"video-mobile-settings-drawer__hd-badge",children:"HD"})]}),M&&a.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:a.jsx(wo,{size:16})})]},`quality-${E.id}`)}),t.hasRealQualities&&a.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{l(null),y()},children:[a.jsx("span",{className:"video-mobile-settings-drawer__option-label",children:h("editor.video.settings.auto")}),t.currentQualityId==null&&a.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:a.jsx(wo,{size:16})})]})]})]})]})})}function zu({header:e,items:n,width:t=300,maxHeight:r}){return a.jsxs(v.Menu.Dropdown,{w:t,mah:r,style:r?{overflowY:"auto"}:void 0,onClick:o=>{o.stopPropagation()},children:[e&&a.jsxs(a.Fragment,{children:[a.jsx(v.Menu.Item,{onClick:o=>{o.stopPropagation(),e.onClick()},disabled:e.disabled,leftSection:e.leftSection,closeMenuOnClick:!1,className:"video-menu-item",children:a.jsxs("div",{className:"video-menu-row",children:[a.jsx(v.Text,{className:"video-menu-header",children:e.label}),e.rightSection&&a.jsx("span",{className:"video-menu-icon",onClick:o=>{o.stopPropagation()},children:e.rightSection})]})}),a.jsx(v.Menu.Divider,{})]}),n.map(o=>a.jsx(v.Menu.Item,{onClick:s=>{s.stopPropagation(),o.onClick()},disabled:o.disabled,closeMenuOnClick:!1,className:"video-menu-item",children:a.jsxs("div",{className:"video-menu-row",children:[a.jsxs("div",{className:"video-menu-left",children:[o.leftIcon&&a.jsx("span",{className:"video-menu-icon",children:o.leftIcon}),a.jsx(v.Text,{className:"video-menu-item-text",children:o.leftLabel})]}),a.jsxs("div",{className:"video-menu-right",children:[a.jsx(v.Text,{className:"video-menu-item-text video-menu-value",children:o.centerLabel??""}),o.rightSection?a.jsx("span",{className:"video-menu-chevron",children:o.rightSection}):null]})]})},o.key))]})}function tB({disabled:e,settings:n,onBack:t,onSelect:r}){const{t:o}=He.useTranslation(),s=[...n.qualities.map(l=>{var f;const u=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?a.jsxs("span",{children:[l.label," ",a.jsx("sup",{className:"video-menu-hd-badge",children:"HD"})]}):l.label,rightSection:u?a.jsx(wo,{size:16}):null}}),...n.hasRealQualities?[{key:"quality-auto",onClick:()=>r(null),disabled:e,leftLabel:o("editor.video.settings.auto"),rightSection:n.currentQualityId==null?a.jsx(wo,{size:16}):null}]:[]];return a.jsx(zu,{width:264,header:{label:o("editor.video.settings.quality"),onClick:t,disabled:e,leftSection:a.jsx(gi,{size:16})},items:s})}function nB({disabled:e,settings:n,onSpeedClick:t,onQualityClick:r,onSubtitlesClick:o}){var h,m;const{t:s}=He.useTranslation(),l=n.currentSpeed===1?s("editor.video.settings.normal"):`${n.currentSpeed}x`,u=((h=n.qualities.find(A=>A.id===n.currentQualityId))==null?void 0:h.label)||s("editor.video.settings.auto"),d=((m=n.subtitles.find(A=>A.id===n.currentSubtitleId))==null?void 0:m.label)||s("editor.video.settings.off"),f=[{key:"subtitles",onClick:o,disabled:e,leftIcon:a.jsx(m5,{size:16}),leftLabel:s("editor.video.settings.subtitlesCc"),centerLabel:d,rightSection:a.jsx($o,{size:16})},{key:"speed",onClick:t,disabled:e||!n.hasRealSpeeds,leftIcon:a.jsx(C5,{size:16}),leftLabel:s("editor.video.settings.speed"),centerLabel:l,rightSection:a.jsx($o,{size:16})},{key:"quality",onClick:r,disabled:e||!n.hasRealQualities,leftIcon:a.jsx(A5,{size:16}),leftLabel:s("editor.video.settings.quality"),centerLabel:u,rightSection:a.jsx($o,{size:16})}];return a.jsx(zu,{width:300,items:f})}function rB({disabled:e,settings:n,currentSpeed:t,onBack:r,onSelect:o}){const{t:s}=He.useTranslation(),l=f=>f===1?s("editor.video.settings.normal"):f.toString(),u=t??n.currentSpeed,d=n.speeds.map(f=>{const h=f===u;return{key:`speed-${f}`,onClick:()=>o(f),disabled:e,leftLabel:l(f),rightSection:h?a.jsx(wo,{size:16}):null}});return a.jsx(zu,{width:264,maxHeight:244,header:{label:s("editor.video.settings.speed"),onClick:r,disabled:e,leftSection:a.jsx(gi,{size:16})},items:d})}const oB={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 sB({disabled:e,settings:n,onBack:t,onSelect:r}){const{t:o}=He.useTranslation(),s=o("editor.video.settingsModal.autoGenerated"),l=n.subtitles.map(u=>{const d=u.id===n.currentSubtitleId;let f=u.label;if(au({label:f})){const h=u.lang?oB[u.lang.toLowerCase()]:null;h&&(f=h),f=`${f} (${s})`}return{key:`subtitle-${u.id??"off"}`,onClick:()=>r(u.id),disabled:e,leftLabel:f,rightSection:d?a.jsx(wo,{size:16}):null}});return a.jsx(zu,{width:264,header:{label:o("editor.video.settings.subtitlesCc"),onClick:t,disabled:e,leftSection:a.jsx(gi,{size:16})},items:l})}function iB({text:e}){const n=g.useRef(null),[t,r]=g.useState(!1),o=g.useCallback(()=>{const s=n.current;s&&r(s.scrollWidth>s.clientWidth)},[]);return a.jsx(v.Tooltip,{label:e,openDelay:300,withinPortal:!0,disabled:!t,children:a.jsx("span",{ref:n,className:"video-player-chapters-item-title",onMouseEnter:o,children:e})})}function aB({video:e,containerRef:n,title:t,settings:r,isSettingsDisabled:o,onSubtitlesOpen:s,onSpeedClick:l,onQualityClick:u,onSubtitleSelect:d,storyboard:f,baseUrl:h,authHeaders:m,chapters:A=[],isProcessing:y=!1}){const{t:b}=He.useTranslation(),[x,w]=g.useState(0),[k,L]=g.useState(0),[O,T]=g.useState(!1),[R,E]=g.useState(1),[M,P]=g.useState(!1),[I,F]=g.useState([]),[_,N]=g.useState(!1),[j,U]=g.useState(!1),[W,B]=g.useState(!1),[Z,Q]=g.useState(!1),re=g.useRef(null),[oe,Ce]=g.useState(null),[Te,Me]=g.useState(null),[Re,ae]=g.useState(!1),[te,q]=g.useState("main"),[ce,ie]=g.useState(null),ne=WP({storyboard:f,baseUrl:h,authHeaders:m,enabled:!!f}),H=g.useMemo(()=>oe==null?null:ne.getFrameAtRatio(oe),[oe,ne]);g.useEffect(()=>{H!=null&&H.sheetUrl&&ne.ensureSheetDimensions(H.sheetUrl).catch(()=>{})},[H,ne]),g.useEffect(()=>{if(!e)return;const V=()=>{w(e.currentTime||0)},de=()=>{L(e.duration||0),F(Pm(e))},he=()=>{T(!0)},Le=()=>{T(!1)},Oe=()=>{E(e.volume??1),P(e.muted)},fe=()=>{F(Pm(e))};return V(),de(),Oe(),T(!e.paused),e.addEventListener("timeupdate",V),e.addEventListener("durationchange",de),e.addEventListener("loadedmetadata",de),e.addEventListener("play",he),e.addEventListener("pause",Le),e.addEventListener("volumechange",Oe),e.addEventListener("progress",fe),()=>{e.removeEventListener("timeupdate",V),e.removeEventListener("durationchange",de),e.removeEventListener("loadedmetadata",de),e.removeEventListener("play",he),e.removeEventListener("pause",Le),e.removeEventListener("volumechange",Oe),e.removeEventListener("progress",fe)}},[e]),g.useEffect(()=>{const V=()=>{U(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",V),V(),()=>{document.removeEventListener("fullscreenchange",V)}},[]),g.useEffect(()=>{if(!e)return;const V=()=>B(!0),de=()=>B(!1);return e.addEventListener("enterpictureinpicture",V),e.addEventListener("leavepictureinpicture",de),B(document.pictureInPictureElement===e&&!!document.pictureInPictureElement),()=>{e.removeEventListener("enterpictureinpicture",V),e.removeEventListener("leavepictureinpicture",de)}},[e]),g.useEffect(()=>{if(!_)return;const V=he=>{var ge;if(!e||!k)return;const Le=(ge=re.current)==null?void 0:ge.getBoundingClientRect();if(!Le)return;const fe=Fr((he.clientX-Le.left)/Le.width,0,1)*k;e.currentTime=fe,w(fe)},de=()=>{N(!1)};return window.addEventListener("pointermove",V),window.addEventListener("pointerup",de),()=>{window.removeEventListener("pointermove",V),window.removeEventListener("pointerup",de)}},[_,e,k]),g.useEffect(()=>{ie(null)},[r.currentSpeed]);const X=k>0?Fr(x/k,0,1):0,Y=y?[]:I,J=g.useMemo(()=>!A||A.length===0?[]:[...A].filter(V=>k>0&&V.startSec<=k).sort((V,de)=>V.startSec-de.startSec),[A,k]),$=g.useMemo(()=>{if(J.length===0||k<=0)return[];const V=[],de=Fr(J[0].startSec/k,0,1);de>0&&V.push({chapter:null,startRatio:0,endRatio:de});for(let he=0;he<J.length;he++){const Le=J[he],Oe=Fr(Le.startSec/k,0,1),fe=J[he+1],ge=fe?Fr(fe.startSec/k,0,1):1;V.push({chapter:Le,startRatio:Oe,endRatio:ge})}return V},[J,k]),Ae=g.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]),me=g.useMemo(()=>{if(oe==null||J.length===0||k<=0)return null;const V=oe*k;for(let de=J.length-1;de>=0;de--)if(V>=J[de].startSec)return J[de];return J[0]},[oe,J,k]),ke=V=>{e&&(e.currentTime=V.startSec,w(V.startSec))},Fe=()=>{e&&(e.paused?e.play().catch(()=>{}):e.pause())},De=()=>{e&&(e.muted=!e.muted,P(e.muted))},Pe=V=>{e&&(e.volume=V,V===0?e.muted=!0:e.muted&&(e.muted=!1),E(V),P(e.muted))},Ue=()=>{var de,he;const V=(n==null?void 0:n.current)||e;V&&(document.fullscreenElement?(de=document.exitFullscreen)==null||de.call(document):(he=V.requestFullscreen)==null||he.call(V))},Ze=async()=>{if(!(!e||!document.pictureInPictureEnabled))try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch{return}},It=V=>{var Oe;if(!e||!k)return;const de=(Oe=re.current)==null?void 0:Oe.getBoundingClientRect();if(!de)return;const Le=Fr((V.clientX-de.left)/de.width,0,1)*k;e.currentTime=Le,w(Le),N(!0)},Mt=V=>{var Le;if(!k)return;const de=(Le=re.current)==null?void 0:Le.getBoundingClientRect();if(!de)return;const he=Fr((V.clientX-de.left)/de.width,0,1);Ce(he),Me(he*de.width)},Gt=()=>{Ce(null),Me(null)},_t=$.length>0;return a.jsxs("div",{className:`video-player-controls ${_t?"video-player-controls--with-chapters":"video-player-controls--no-chapters"}`,style:{"--video-subtitles-offset":_t?"48px":"16px"},children:[a.jsxs("div",{className:"video-player-timeline",ref:re,"data-test-id":"video-player-timeline",children:[a.jsx("div",{className:"video-player-timeline-hitbox",onPointerDown:It,onPointerMove:Mt,onPointerLeave:Gt,role:"presentation",children:a.jsxs("div",{className:`video-player-timeline-track ${_t?"video-player-timeline-track--chapters":""}`,children:[_t?a.jsx("div",{className:"video-player-chapter-segments",children:$.map((V,de)=>{const he=V.endRatio-V.startRatio,Le=X<=V.startRatio?0:X>=V.endRatio?1:(X-V.startRatio)/he;return a.jsxs("div",{className:"video-player-chapter-segment",style:{flex:`${he*100} 0 0`},children:[a.jsx("div",{className:"video-player-chapter-segment-progress",style:{width:`${Le*100}%`}}),Y.map((Oe,fe)=>{const ge=Fr((Oe.start-V.startRatio)/he,0,1),pe=Fr((Oe.end-V.startRatio)/he,0,1);return pe<=0||ge>=1?null:a.jsx("span",{className:"video-player-chapter-segment-buffered",style:{left:`${ge*100}%`,width:`${(pe-ge)*100}%`}},`buf-${de}-${fe}`)})]},`chapter-${de}`)})}):a.jsxs(a.Fragment,{children:[Y.map((V,de)=>a.jsx("span",{className:"video-player-buffered",style:{left:`${V.start*100}%`,width:`${(V.end-V.start)*100}%`}},`${V.start}-${V.end}-${de}`)),a.jsx("span",{className:"video-player-progress",style:{width:`${X*100}%`}})]}),a.jsx("span",{className:"video-player-knob",style:{left:`${X*100}%`}})]})}),Te!=null&&a.jsxs("div",{"data-test-id":"video-player-hover-preview",className:"video-player-hover-preview",style:{left:Te,transform:"translateX(-50%)"},children:[H&&ne.ready&&a.jsx(KP,{frame:H,left:0}),oe!=null&&a.jsxs("div",{className:"video-player-hover-preview-info",children:[a.jsx("span",{className:"video-player-hover-preview-time",children:oi(oe*k)}),((me==null?void 0:me.title)||t)&&a.jsx("span",{className:"video-player-hover-preview-title",children:(me==null?void 0:me.title)??t})]})]})]}),a.jsxs("div",{className:"video-player-controls-row",children:[a.jsxs("div",{className:"video-player-left",children:[a.jsx("button",{className:"video-player-button",type:"button",onClick:Fe,"aria-label":b(O?"editor.video.player.pause":"editor.video.player.play"),children:O?a.jsx(HP,{size:20}):a.jsx(g5,{size:20})}),a.jsxs(v.Box,{onMouseEnter:()=>Q(!0),onMouseLeave:()=>Q(!1),style:{display:"inline-flex",alignItems:"center",height:28,borderRadius:8,padding:Z?"0 8px":0,gap:6,background:Z?"rgba(134, 142, 150, 0.15)":"transparent",backdropFilter:Z?"blur(4px)":"none",transition:"padding 120ms ease, background 120ms ease, backdrop-filter 120ms ease"},children:[a.jsx("button",{type:"button",className:Z?void 0:"video-player-button",onClick:De,"aria-label":b(M||R===0?"editor.video.player.unmute":"editor.video.player.mute"),style:Z?{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||R===0?a.jsx(ZP,{size:Z?16:20}):a.jsx(YP,{size:Z?16:20})}),a.jsx(v.Box,{className:"video-player-volume-slider",style:{width:Z?57:0,opacity:Z?1:0,overflow:Z?"visible":"hidden",pointerEvents:Z?"auto":"none",transition:"width 120ms ease, opacity 120ms ease",display:"flex",alignItems:"center"},children:a.jsx(v.Slider,{w:57,min:0,max:1,step:.01,value:M?0:R,onChange:Pe,label:null,"aria-label":b("editor.video.player.volume"),size:3})})]}),a.jsxs("div",{className:"video-player-time",children:[oi(x)," / ",oi(k)]}),Ae&&a.jsxs("div",{className:"video-player-chapter-title",children:[a.jsx("span",{children:Ae.title}),a.jsx($o,{size:16})]}),!Ae&&t&&a.jsxs("div",{className:"video-player-title",children:[a.jsx("span",{children:t}),a.jsx($o,{size:16})]})]}),a.jsxs("div",{className:"video-player-right",children:[Tn?a.jsxs(a.Fragment,{children:[a.jsx("button",{className:"video-player-button",type:"button","aria-label":b("editor.video.player.settings"),onClick:()=>ae(!0),children:a.jsx(Y2,{size:20})}),a.jsx(eB,{opened:Re,onClose:()=>{ae(!1)},settings:r,isSettingsDisabled:o,onSubtitlesOpen:s,onSpeedClick:l,onQualityClick:u,onSubtitleSelect:d,optimisticSpeed:ce,setOptimisticSpeed:ie})]}):a.jsxs(v.Menu,{opened:Re,onChange:V=>{ae(V),V||q("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:[a.jsx(v.Menu.Target,{children:a.jsx("button",{className:"video-player-button",type:"button","aria-label":b("editor.video.player.settings"),children:a.jsx(Y2,{size:20})})}),te==="main"&&a.jsx(nB,{isOpen:!0,disabled:o,settings:r,onSpeedClick:()=>{r.hasRealSpeeds&&q("speed")},onQualityClick:()=>{r.hasRealQualities&&q("quality")},onSubtitlesClick:()=>{o||(s==null||s(),q("subtitles"))}}),te==="speed"&&a.jsx(rB,{disabled:o,settings:r,currentSpeed:ce??r.currentSpeed,onBack:()=>q("main"),onSelect:V=>{ie(V),l(V),ae(!1)}}),te==="subtitles"&&a.jsx(sB,{disabled:o,settings:r,onBack:()=>q("main"),onSelect:V=>{d(V),ae(!1)}}),te==="quality"&&a.jsx(tB,{disabled:o,settings:r,onBack:()=>q("main"),onSelect:V=>{u(V),ae(!1)}})]}),a.jsx("button",{className:"video-player-button",type:"button","aria-label":b("editor.video.player.pictureInPicture"),onClick:Ze,disabled:!document.pictureInPictureEnabled,"aria-pressed":W,children:a.jsx(VP,{size:20})}),a.jsx("button",{className:"video-player-button",type:"button",onClick:Ue,"aria-label":b(j?"editor.video.player.exitFullscreen":"editor.video.player.enterFullscreen"),children:a.jsx(GP,{size:20})})]})]}),J.length>0&&a.jsx("div",{className:"video-player-chapters-list",children:J.map((V,de)=>{const he=Ae===V;return a.jsxs("button",{type:"button",className:`video-player-chapters-item ${he?"video-player-chapters-item--active":""}`,onClick:()=>ke(V),children:[a.jsx("span",{className:"video-player-chapters-item-time",children:oi(V.startSec)}),a.jsx(iB,{text:V.title})]},`chapter-list-${de}`)})})]})}const V2=[.25,.5,.75,1,1.25,1.5,2],q2=[{id:1,label:"English (Automatic)"},{id:2,label:"Русский (Автоматические)"},{id:3,label:"Spanish (automatic)"}],lB=e=>e.height?`${e.height}p`:e.bandwidth?`${(e.bandwidth/1e6).toFixed(1)} Mbps`:"Auto",b5=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=b5(n),k=w.length>0,L=w.findIndex(T=>T.mode==="showing"),O=k?[{id:null,label:"Off"},...w.map((T,R)=>({id:R,label:T.label||T.language||"Unknown",lang:T.language||void 0,isDefault:T.default??!1}))]:[{id:null,label:"Off"},...q2];return{speeds:V2,currentSpeed:(n==null?void 0:n.playbackRate)??1,hasRealSpeeds:!0,qualities:[],currentQualityId:null,hasRealQualities:!1,subtitles:O,currentSubtitleId:L>=0?L:null,hasRealSubtitles:k}}const t=V2,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:lB(w)})),u=s.find(w=>w.active),d=l.length>0,f=((x=e.getTextTracks)==null?void 0:x.call(e))??[],h=f.length>0,m=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"},...q2],A=f.find(w=>w.active);return{speeds:t,currentSpeed:r,hasRealSpeeds:o,qualities:l,currentQualityId:(u==null?void 0:u.id)??null,hasRealQualities:d,subtitles:m,currentSubtitleId:(A==null?void 0:A.id)??null,hasRealSubtitles:h}},cB=(e,n)=>{var t;(t=e==null?void 0:e.setPlaybackRate)==null||t.call(e,n)},uB=(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))},Cc=(e,n,t)=>{var o,s,l,u;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),(u=e.setTextTrackVisibility)==null||u.call(e,!0));return}if(!t)return;const r=b5(t);if(n===null){r.forEach(d=>{d.mode="disabled"});return}r.forEach((d,f)=>{d.mode=f===n?"showing":"disabled"})};function bo(e,n){return e?e.startsWith("http://")||e.startsWith("https://")?e:e.startsWith("/")?`${n||window.location.origin}${e}`:e:null}function dB(e){return Array.from(e.textTracks||[]).filter(n=>n.kind==="subtitles"||n.kind==="captions")}function Nf(e,n){return e.url?bo(e.url,n):null}function fB({videoId:e,language:n,baseUrl:t,videoUrl:r,primaryUrl:o,optimizedReady:s,nativeVideoUrl:l,rawUrl:u,storyboard:d,chapters:f,subtitles:h,isProcessing:m=!1,posterUrl:A,onPlayerInfo:y,onFallback:b}){const{t:x,i18n:w}=He.useTranslation(),[k,L]=g.useState(null),[O,T]=g.useState(null),[R,E]=g.useState(null),[M,P]=g.useState(!1),I=g.useRef(null),F=g.useRef(null),_=g.useRef(null),[N,j]=g.useState(null),[U,W]=g.useState(()=>lr(null,null)),[B,Z]=g.useState(!0),[Q,re]=g.useState([]),[oe,Ce]=g.useState([{id:null,label:x("editor.video.settings.off")}]),[Te,Me]=g.useState(null),[Re,ae]=g.useState(null),[te,q]=g.useState(!0),[ce,ie]=g.useState(0),ne=g.useRef(null),H=g.useRef(null),X=g.useRef(null),Y=g.useRef(null),J=g.useRef([]),$=g.useRef(!1),Ae=g.useRef(new Set),me=g.useRef(null),ke=g.useRef(!1);g.useEffect(()=>{n&&w.changeLanguage(n).catch(()=>{})},[n]),g.useEffect(()=>{if(!e){re([]);return}if(h!=null){const V=(h||[]).map(Ti).filter(de=>de.id&&!de.isDisabled);re(V)}},[e,h]),g.useEffect(()=>{Z(!0),me.current=null},[e]);const Fe=g.useCallback(()=>{if(!e||h==null)return;const V=(h||[]).map(Ti).filter(de=>de.id&&!de.isDisabled);re(V)},[e,h]);g.useEffect(()=>{if(Q.length===0){Ce([{id:null,label:x("editor.video.settings.off")}]),Me(null);return}const V=[{id:null,label:x("editor.video.settings.off")},...Q.map((de,he)=>({id:he,label:de.label||de.lang||"Unknown",lang:de.lang||void 0,isDefault:de.isDefault||!1}))];Ce(V),Me(de=>de!=null&&de>=0&&de<Q.length?de:null)},[Q,x]),g.useEffect(()=>{var Oe;let V=!1;const de=((Oe=I.current)==null?void 0:Oe.player)||null;return s?(async()=>{var $e,Ve,nt;if(!de)return;if(Te==null){Cc(de,null),W(lr(de,N));return}const fe=Q[Te],ge=(fe==null?void 0:fe.label)||(fe==null?void 0:fe.lang)||"und",pe=(fe==null?void 0:fe.lang)||"und",We=(fe==null?void 0:fe.kind)||"subtitles",_e=(($e=de.getTextTracks)==null?void 0:$e.call(de))||[];let qe=_e.find(Be=>(Be.language||"")===pe&&(Be.label||"")===ge&&(Be.kind||"subtitles")===We);if(!qe&&Re&&(qe=_e.find(Be=>(Be.language||"")===Re.lang&&(Be.label||"")===Re.label&&(Be.kind||"subtitles")===Re.kind)),!qe){const Be=Re&&Q.length>0&&Q.find(st=>(st.lang||"und")===Re.lang&&(st.label||st.lang||"und")===Re.label&&(st.kind||"subtitles")===Re.kind)||null,Ne=fe||Be,Je=Ne?Nf(Ne,t):null;if(!Je||typeof de.addTextTrackAsync!="function")return;let Qe=null;Qe=await de.addTextTrackAsync(Je,(Ne==null?void 0:Ne.lang)||pe,(Ne==null?void 0:Ne.kind)||We,"text/vtt",void 0,(Ne==null?void 0:Ne.label)||ge),Qe&&typeof Qe.id=="number"&&(qe=Qe)}V||qe&&((Ve=de.selectTextTrack)==null||Ve.call(de,qe),(nt=de.setTextTrackVisibility)==null||nt.call(de,!0),W(lr(de,N)))})().catch(()=>{}):(()=>{N&&(Cc(null,Te,N),W(lr(null,N)))})(),()=>{V=!0}},[Te,Q,s,N,t,e,Re]),g.useEffect(()=>{if(!k)return;let V=!1,de=null;const he=ge=>{if(V)return;bo(l,t)||bo(u??null,t)?(P(!0),b==null||b(!0)):E(x("editor.video.player.playbackError",{code:ge.code}))},Le=ge=>{const pe=ge.detail;if(pe.severity===2)he(pe);else try{de==null||de.recover()}catch{}},Oe=()=>{var ge;if(de=(ge=I.current)==null?void 0:ge.player,!de){const pe=requestAnimationFrame(Oe);return()=>cancelAnimationFrame(pe)}if(X.current)try{de.removeEventListener("error",X.current)}catch{}X.current=Le,de.addEventListener("error",Le),de.load(k).catch(pe=>{V||pe.code!==7e3&&he(pe)})},fe=requestAnimationFrame(Oe);return()=>{if(V=!0,cancelAnimationFrame(fe),de&&X.current)try{de.removeEventListener("error",X.current)}catch{}}},[k,l,u,t,b]),g.useEffect(()=>{let V=!1,de=null;if(s&&o){const he=bo(o,t);if(he){if(!O&&u){const We=bo(u,t);We&&T(We)}if(me.current===he)return;const Le=F.current;Le&&Le.currentTime>0&&(H.current={time:Le.currentTime,paused:Le.paused},ke.current=!0);const Oe=We=>{V||fetch(he,{method:"HEAD",credentials:"include"}).then(_e=>{V||(me.current=he,_e.ok?(L(he),E(null),P(!1),b==null||b(!1),Ae.current.clear()):(Ae.current.clear(),P(!0),b==null||b(!0),pe(We)))}).catch(_e=>{V||(Ae.current.clear(),P(!0),b==null||b(!0),pe(We))})},fe=10,ge=5e3,pe=We=>{V||We>=fe||(de=setTimeout(()=>Oe(We+1),ge))};Oe(0)}}else if(l){const he=bo(l,t);if(he){if(ne.current===he)return;const Le=F.current;if(Le&&Le.readyState>0&&!Le.error&&Le.src){ne.current=he;return}ne.current&&Le&&Le.currentTime>0&&(H.current={time:Le.currentTime,paused:Le.paused}),T(he),L(null),ne.current=he}}return()=>{V=!0,de&&clearTimeout(de)}},[o,t,s,l]),g.useEffect(()=>{if(s&&k&&I.current){const V=I.current.videoElement;if(V){const de=()=>{V.readyState>=1&&(H.current&&(V.currentTime=H.current.time,H.current.paused||V.play().catch(()=>{}),H.current=null),ke.current=!1)};if(V.readyState>=1)de();else{const he=()=>{de()},Le=()=>{de()};return V.addEventListener("loadedmetadata",he,{once:!0}),V.addEventListener("canplay",Le,{once:!0}),()=>{V.removeEventListener("loadedmetadata",he),V.removeEventListener("canplay",Le)}}}}},[s,k]),g.useEffect(()=>{const V=F.current;V&&k&&!M&&(V.currentTime>0&&(H.current={time:V.currentTime,paused:V.paused}),V.paused||V.pause())},[k,M]),g.useEffect(()=>{var V;if(k&&!M){const de=((V=I.current)==null?void 0:V.videoElement)||null;if(de&&de.readyState>=1)j(de);else if(de){const he=()=>j(de);return de.addEventListener("loadedmetadata",he,{once:!0}),()=>de.removeEventListener("loadedmetadata",he)}}else j(F.current)},[s,M,k,O]),g.useEffect(()=>{if(!N)return;const V=()=>{q(N.paused)};return V(),N.addEventListener("play",V),N.addEventListener("pause",V),N.addEventListener("ended",V),()=>{N.removeEventListener("play",V),N.removeEventListener("pause",V),N.removeEventListener("ended",V)}},[N]),g.useEffect(()=>{const V=_.current;if(!V)return;const de=new ResizeObserver(he=>{const Le=he[0];Le&&ie(Math.round(Le.contentRect.width))});return de.observe(V),()=>de.disconnect()},[]),g.useEffect(()=>{var fe,ge;if(!y)return;const V=((fe=I.current)==null?void 0:fe.player)||null,de=F.current||null,he=_.current||null,Le=k&&!M&&V?"shaka":"native";let Oe=null;try{const pe=(ge=V==null?void 0:V.seekRange)==null?void 0:ge.call(V);pe&&Number.isFinite(pe.end)&&pe.end>0&&(Oe=pe.end)}catch{}if(Oe==null&&N){const pe=N.duration;Number.isFinite(pe)&&pe>0&&(Oe=pe)}y({shakaPlayer:V,nativeVideo:de,mode:Le,containerEl:he,videoDuration:Oe})},[y,s,M,k,O,N]),g.useEffect(()=>{var he;const V=F.current;V&&(V.poster=A||"");const de=(he=I.current)==null?void 0:he.videoElement;de&&(de.poster=A||"")},[A,k,O]),g.useEffect(()=>{var de;const V=((de=I.current)==null?void 0:de.player)||null;if(!s||!V){W(lr(null,N));return}W(lr(V,N))},[s,k,N]),g.useEffect(()=>{var Le;const V=((Le=I.current)==null?void 0:Le.player)||null;if(!s||!V)return;const de=()=>{W(lr(V,N))},he=["variantchanged","adaptation","trackschanged"];return he.forEach(Oe=>{var fe;(fe=V.addEventListener)==null||fe.call(V,Oe,de)}),()=>{he.forEach(Oe=>{var fe;(fe=V.removeEventListener)==null||fe.call(V,Oe,de)})}},[s,k,N]),g.useEffect(()=>{if(!N)return;const V=()=>{var he;const de=((he=I.current)==null?void 0:he.player)||null;W(lr(de,N))};return N.addEventListener("ratechange",V),()=>{N.removeEventListener("ratechange",V)}},[N]),g.useEffect(()=>()=>{var fe,ge;const V=document.pictureInPictureElement;if(!V)return;const de=((fe=I.current)==null?void 0:fe.videoElement)||null,he=F.current||null,Le=_.current||null,Oe=V instanceof HTMLVideoElement&&(he&&he.currentSrc===V.currentSrc||de&&de.currentSrc===V.currentSrc);(V===de||V===he||Le&&Le.contains(V)||Oe)&&((ge=document.exitPictureInPicture)==null||ge.call(document).catch(()=>{}))},[]),g.useEffect(()=>{const V=F.current;if(!V||!O)return;const de=()=>{H.current&&(V.currentTime=H.current.time,H.current.paused||V.play().catch(()=>{}),ke.current=!1)};V.readyState>=1?de():V.addEventListener("loadedmetadata",de,{once:!0});const he=()=>{ke.current||(Y.current&&clearTimeout(Y.current),Y.current=setTimeout(()=>{ke.current||(H.current||(H.current={time:0,paused:!0}),H.current.time=V.currentTime)},100))},Le=()=>{ke.current||(H.current?H.current.paused=!1:H.current={time:0,paused:!1})},Oe=()=>{ke.current||(H.current?H.current.paused=!0:H.current={time:V.currentTime,paused:!0})};return V.addEventListener("timeupdate",he),V.addEventListener("play",Le),V.addEventListener("pause",Oe),()=>{V.removeEventListener("loadedmetadata",de),V.removeEventListener("timeupdate",he),V.removeEventListener("play",Le),V.removeEventListener("pause",Oe),Y.current&&clearTimeout(Y.current),V.currentTime>0&&(H.current={time:V.currentTime,paused:V.paused})}},[O]),g.useEffect(()=>{if(s)return;const V=F.current;if(!V)return;V.querySelectorAll('track[data-subtitle-track="managed"]').forEach(Oe=>Oe.remove()),e&&Q.forEach(Oe=>{const fe=Nf(Oe,t);if(!fe)return;const ge=document.createElement("track");ge.setAttribute("data-subtitle-track","managed"),ge.kind=Oe.kind||"subtitles",ge.label=Oe.label||Oe.lang||"und",ge.srclang=Oe.lang||"und",ge.src=fe,ge.setAttribute("crossorigin","use-credentials"),ge.default=!1,V.appendChild(ge)});try{V.textTracks}catch{}const he=dB(V);he.some(Oe=>Oe.mode==="showing")&&he.forEach(Oe=>{Oe.mode="disabled"}),W(lr(null,V))},[s,O,Q,e,t]),g.useEffect(()=>{var fe,ge,pe,We;if(!s){J.current=[];return}const V=((fe=I.current)==null?void 0:fe.player)||null;if(!V)return;const de=(ge=V.getNetworkingEngine)==null?void 0:ge.call(V);de&&!$.current&&((pe=de.registerRequestFilter)==null||pe.call(de,(_e,qe)=>{qe.allowCrossSiteCredentials=!0}),$.current=!0),(((We=V.getTextTracks)==null?void 0:We.call(V))||[]).forEach(_e=>{var qe;J.current.includes(_e.id)&&((qe=V.removeTextTrack)==null||qe.call(V,_e))}),J.current=[];let Le=!1;return(async()=>{var qe,$e;const _e=((qe=V.getTextTracks)==null?void 0:qe.call(V))||[];if(e)for(const Ve of Q){const nt=Nf(Ve,t);if(!nt||typeof V.addTextTrackAsync!="function")continue;const Be=Ve.label||Ve.lang||"und",Ne=Ve.lang||"und",Je=Ve.kind||"subtitles";if(_e.some(gt=>(gt.language||"")===Ne&&(gt.label||"")===Be&&(gt.kind||"subtitles")===Je))continue;let st=null;if(st=await V.addTextTrackAsync(nt,Ne,Je,"text/vtt",void 0,Be),Le)return;st&&typeof st.id=="number"&&(J.current.push(st.id),_e.push(st))}($e=V.setTextTrackVisibility)==null||$e.call(V,!1),W(lr(V,N))})().catch(()=>{}),()=>{Le=!0}},[s,k,Q,e,t,N]);const De=g.useMemo(()=>({...U,subtitles:oe,currentSubtitleId:Te,currentQualityId:B?null:U.currentQualityId,hasRealSubtitles:oe.length>1}),[U,oe,Te,B]),Pe=V=>{if(!N)return;V.target.closest(".video-player-controls")!==null||(N.paused?N.play().catch(()=>{}):N.pause())};if(R)return a.jsx(v.Flex,{justify:"center",align:"center",styles:{root:{height:"100%",width:"100%",minHeight:200,padding:16}},children:a.jsx("div",{style:{textAlign:"center",color:"red"},children:R})});const Ue=bo(u??null,t)||O,Ze=!!(k&&!M),It=ce>0&&ce<500,Mt=ce>0&&ce<380,_t=((f==null?void 0:f.length)??0)>0&&!Mt?"48px":"16px";return a.jsx(v.Flex,{justify:"center",align:"center",styles:{root:{height:"100%",width:"100%",minHeight:200,position:"relative"}},children:a.jsxs("div",{"data-test-id":"video-player-container",className:`video-player-container video-player-container--with-player ${It?"video-player--compact":""} ${Mt?"video-player--narrow":""}`,style:{"--video-subtitles-offset":_t},ref:_,onClick:Pe,children:[a.jsx("video",{ref:F,src:O||(M?Ue:null)||void 0,className:"video-player-media",style:Ze?{display:"none"}:void 0,poster:A||void 0,onError:V=>{const de=V.currentTarget,he=de.currentSrc||de.src;if(!he||!de.error)return;Ae.current.add(he);const Oe=[bo(u??null,t),bo(l,t)].filter(fe=>!!fe&&!Ae.current.has(fe));Oe.length>0&&(de.src=Oe[0],de.load())}}),Ze&&a.jsx(V9,{ref:I,autoPlay:!1,className:"video-player-media"}),(O||k||o||M&&Ue)&&a.jsxs(a.Fragment,{children:[te&&!It&&a.jsx("button",{className:"video-player-center-play",type:"button","aria-label":x("editor.video.player.play"),onClick:V=>{V.stopPropagation(),N==null||N.play().catch(()=>{})},children:a.jsx(g5,{size:32})}),a.jsxs("div",{className:"video-player-overlay",children:[a.jsx("div",{className:"video-player-gradient"}),a.jsx(aB,{video:N,containerRef:_,settings:De,isSettingsDisabled:!1,onSubtitlesOpen:Fe,storyboard:d,chapters:s?f:void 0,isProcessing:m,baseUrl:t,onSpeedClick:V=>{var he;const de=((he=I.current)==null?void 0:he.player)||null;W(Le=>({...Le,currentSpeed:V})),de&&cB(de,V),N&&(N.playbackRate=V)},onQualityClick:V=>{var Le,Oe,fe;const de=((Le=I.current)==null?void 0:Le.player)||null;if(!de||U.qualities.length===0)return;if(V==null){(Oe=de.configure)==null||Oe.call(de,{abr:{enabled:!0}}),Z(!0),W(lr(de,N));return}(fe=de.configure)==null||fe.call(de,{abr:{enabled:!1}});const he=U.qualities.find(ge=>ge.id===V)||null;he&&uB(de,he.id),Z(!1),W(ge=>({...ge,currentQualityId:V}))},onSubtitleSelect:V=>{var Le,Oe;const de=((Le=I.current)==null?void 0:Le.player)||null,he=typeof V=="number"?V:null;if(Me(he),de){const fe=((Oe=de.getTextTracks)==null?void 0:Oe.call(de))??[];if(he==null)ae(null);else{const pe=fe.find(We=>We.id===he);if(pe)ae({lang:pe.language||"und",label:pe.label||"und",kind:pe.kind||"subtitles"});else{const We=Q[he];We&&ae({lang:We.lang||"und",label:We.label||We.lang||"und",kind:We.kind||"subtitles"})}}let ge=he;if(typeof he=="number"&&!fe.find(pe=>pe.id===he)){const pe=Q[he];if(pe){const We=pe.label||pe.lang||"und",_e=pe.lang||"und",qe=fe.find($e=>($e.language||"")===_e&&($e.label||"")===We);qe&&(ge=qe.id)}}Cc(de,ge),W(lr(de,N));return}if(N){if(he==null)ae(null);else{const fe=Q[he];fe&&ae({lang:fe.lang||"und",label:fe.label||fe.lang||"und",kind:fe.kind||"subtitles"})}Cc(null,he,N),W(lr(null,N))}}})]})]})]})})}const Ac=e=>e==="link"||e==="youtube"||e==="vk"||e==="rutube",hB=e=>e==="upload"||e==="download";function pB({className:e,format:n,nodeKey:t,onUploadComplete:r,initialVideoId:o,initialVideoState:s,onStateChange:l,posterUrl:u,chaptersOverride:d,subtitlesOverride:f,platform:h,fallbackNativeVideoUrl:m,onStatusAvailabilityChange:A,onOptimizedReadyChange:y,onStatusChange:b,onPlayerInfo:x}){var Ht,Vt;const[w]=tt.useLexicalComposerContext(),{t:k,i18n:L}=He.useTranslation(),{pageId:O,maxFileSize:T,registerUpload:R,unregisterUpload:E,reportError:M}=W1(),P=U1,[I,F]=g.useState(s??"default"),[_,N]=g.useState(()=>Ac(h)?"link":"upload"),[j,U]=g.useState(null),[W,B]=g.useState(o??null),[Z,Q]=g.useState(""),[re,oe]=g.useState(null),[Ce,Te]=g.useState(!1),Me=g.useRef(null),Re=g.useRef(!1),ae=g.useRef(null),{uploadProgress:te,isUploading:q,isPaused:ce,handleUpload:ie,handlePause:ne,handleResume:H,handleCancel:X,uploadVideoId:Y}=jP({parentId:O,parentType:"PAGE",onError:(rt,Ct,Jt)=>{U(rt),F(`error-${rt}`),Ct!=null&&B(Ct),Jt&&M(Jt,"upload",Ct??void 0)}});g.useEffect(()=>{if(q){const rt=`upload-${t}-${Date.now()}`;ae.current=rt,R(rt)}else ae.current&&(E(ae.current),ae.current=null);return()=>{ae.current&&E(ae.current)}},[q,t,R,E]),g.useEffect(()=>{Y&&B(Y)},[Y]),g.useEffect(()=>{Ac(h)?N("link"):hB(h)&&N("upload")},[h]),g.useEffect(()=>{Re.current=!1},[W]),g.useEffect(()=>{if(_==="link"&&!(Z.trim().length>0)&&!(!h||!W)){if(h==="link"){Q(W);return}Ac(h)&&Q(Qo(h,W))}},[_,Z,h,W]);const{status:J,playback:$,videoUrl:Ae,primaryUrl:me,optimizedReady:ke,nativeVideoUrl:Fe,rawPlayable:De,isStatusAvailable:Pe}=TP({videoId:W,enabled:_==="upload"&&!q}),Ue=_==="upload"?J:null,Ze=_==="upload"?$:null,It=_==="upload"?Ae:null,Mt=_==="upload"?me:null,Gt=_==="upload"?ke:!1,_t=_==="upload"?De:!1,V=_==="upload"?Pe:!1,de=d??(Ue==null?void 0:Ue.chapters)??void 0,he=f??(Ue==null?void 0:Ue.subtitles)??void 0,Le=g.useRef(he),Oe=g.useMemo(()=>he===Le.current||JSON.stringify(he)===JSON.stringify(Le.current)?Le.current:(Le.current=he,he),[he]),fe=g.useMemo(()=>{if(m)return m;if(h==="link"){const rt=W??o;if(rt)return Qo(h,rt)}return null},[m,h,W,o]),ge=(_==="upload"?Fe:null)??fe??null,pe=(Ze==null?void 0:Ze.rawUrl)??null;g.useEffect(()=>{A==null||A(V)},[V,A]),g.useEffect(()=>{y==null||y(Gt)},[Gt,y]),g.useEffect(()=>{b==null||b(Ue)},[Ue,b]),g.useEffect(()=>{if(_!=="upload")return;const rt=W?Qo("download",W):null,Ct=Mt??pe??It??ge??rt;!Re.current&&Ct&&W&&!q&&(Re.current=!0,r(Ct,W))},[Mt,pe,It,ge,W,q,r,_]),g.useEffect(()=>{h!=="download"||!Mt||RB(w,t,Mt)},[w,t,h,Mt]),g.useEffect(()=>{if(!q)return;const rt=Ct=>{Ct.preventDefault(),Ct.returnValue=""};return window.addEventListener("beforeunload",rt),()=>{window.removeEventListener("beforeunload",rt)}},[q]),g.useEffect(()=>{I==="upload"&&!q&&W&&F("analysis")},[I,q,W]);const{transcodingProgress:We,isTranscoding:_e,isPaused:qe,startAnalysis:$e,startConversion:Ve,handlePause:nt,handleResume:Be,handleCancel:Ne}=RP({videoId:W,status:Ue,onAnalysisComplete:()=>{F("conversion"),Ve()},onConversionComplete:()=>{F("video-preview")},onError:()=>{U("interrupted"),F("error-interrupted")}}),Je=q||_e||I==="upload"||I==="analysis"||I==="conversion",st=I==="video-preview"&&(_==="link"?!0:V?Gt:Gt||_t||(!!ge||!!It)),gt=(Ue==null?void 0:Ue.state)==="PROCESSING"||(Ue==null?void 0:Ue.state)==="UPLOADING",ut=typeof((Ht=Ue==null?void 0:Ue.processing)==null?void 0:Ht.percent)=="number",Ke=I==="video-preview"&&_==="upload"&&!!ge&&V&&!Gt&&!Ce&&(gt||ut),ot=g.useRef(0),ft=Math.max(0,Math.min(100,((Vt=Ue==null?void 0:Ue.processing)==null?void 0:Vt.percent)??0));ft>ot.current&&(ot.current=ft),Ke||(ot.current=0);const dt=ot.current,Ye=rt=>{if(_!=="upload")return;const Ct=T*1024*1024;if(rt.size>Ct){U("size-limit"),F("error-size-limit");return}if(!rt.type.startsWith("video/")&&!rt.name.match(/\.(mp4|webm|ogg|mov|avi|mkv|flv|wmv|m4v|3gp|mpg|mpeg|ts|mts|m2ts|vob|asf|rm|rmvb|divx|xvid)$/i)){U("format"),F("error-format");return}F("upload"),Me.current=rt,ie(rt)},ht=Je,nn=rt=>{N(rt),U(null),oe(null),F("default")},kt=()=>{const rt=Z.trim();if(!rt||!bP(rt)){oe(k("editor.video.link.invalid"));return}if(!x5(w,t,{url:rt,isLink:!0})){oe(k("editor.video.link.invalid"));return}oe(null),F("video-preview")},St=g.useRef(W);St.current=W;const Tt=g.useRef(Y);Tt.current=Y,g.useEffect(()=>w.registerCommand(d5,rt=>_==="upload"&&rt.length>0&&!St.current&&!Tt.current?(Ye(rt[0]),!0):!1,p.COMMAND_PRIORITY_LOW),[w,_,Ye]);const en=async()=>{const rt=W??Y;if(j==="interrupted"&&rt)try{await kP(rt),U(null),F("analysis")}catch(Ct){M(Ct,"retry",rt)}else Me.current?(U(null),F("upload"),ie(Me.current)):(U(null),F("default"))},Dt=()=>{X(),Me.current=null,F("default"),B(null)},rn=()=>{Ne(),Me.current=null,F("default"),B(null)};g.useEffect(()=>{I==="analysis"&&W&&!_e&&$e()},[I,W,_e,$e]),g.useEffect(()=>{o&&B(o),s&&F(s)},[o,s]),g.useEffect(()=>{l==null||l(I)},[I,l]);const Ft=()=>{var rt;if(_==="link"&&I!=="video-preview")return a.jsx(PP,{value:Z,disabled:ht,error:re,onChange:Ct=>{Q(Ct),re&&oe(null)},onSubmit:kt});switch(I){case"default":case"hover":case"focus":return a.jsx(U2,{onFileSelect:Ye,maxFileSize:T});case"upload":return a.jsx(lA,{progress:te,onPause:ne,onResume:H,onCancel:Dt,isPaused:ce});case"error-size-limit":case"error-format":case"error-interrupted":case"error-offset-mismatch":case"error-stall":return a.jsx(DP,{errorType:j||"interrupted",onRetry:en,onCancel:Dt,maxFileSize:T});case"analysis":return a.jsx(IP,{progress:We,onPause:nt,onResume:Be,onCancel:rn,isPaused:qe});case"conversion":return a.jsx(OP,{progress:We,onPause:nt,onResume:Be,onCancel:rn,isPaused:qe});case"video-preview":if(!W)return null;if(h&&Ac(h)&&h!=="link")return a.jsx("div",{className:"video-embed-container",children:a.jsx("iframe",{src:Qo(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 Ct=u??((rt=Ue==null?void 0:Ue.cover)==null?void 0:rt.url)??null;return a.jsx(fB,{videoId:W,language:L.resolvedLanguage||L.language,videoUrl:It,primaryUrl:Mt,optimizedReady:Gt,nativeVideoUrl:ge,rawUrl:pe,storyboard:(Ue==null?void 0:Ue.storyboard)??null,chapters:Ke?void 0:de,isProcessing:Ke,subtitles:Oe,posterUrl:Ct,onPlayerInfo:x,onFallback:Te});default:return a.jsx(U2,{onFileSelect:Ye,maxFileSize:T})}};return a.jsx(Vo.BlockWithAlignableContents,{className:e,format:n,nodeKey:t,children:a.jsxs(v.Box,{className:"video-upload-container","data-state":I,"data-ready":st?"true":"false",children:[I!=="video-preview"?a.jsx("div",{className:"video-upload-header",onClick:rt=>rt.stopPropagation(),onMouseDown:rt=>rt.stopPropagation(),onPointerDown:rt=>rt.stopPropagation(),children:a.jsx(P,{data:[{value:"upload",label:k("editor.video.source.uploadVideo")},{value:"link",label:k("editor.video.source.embedLink")}],value:_,w:"max-content",disabled:ht,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:rt=>{rt&&nn(rt)}})}):null,Ke?a.jsxs("div",{className:"video-upload-processing-banner",children:[a.jsx(z1,{size:20}),a.jsx(v.Text,{className:"video-upload-processing-text",children:k("editor.video.upload.processed",{percent:Math.round(dt)})})]}):null,a.jsx("div",{className:"video-upload-plugin",children:Ft()})]})})}function ua(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 Q2(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 gB(e,n){return e.startsWith("http://")||e.startsWith("https://")?e:`${n||(typeof window<"u"?window.location.origin:"")}${e}`}function mB(e){return e?{Authorization:`Bearer ${e}`}:{}}async function J2(e){const n=await e.text();if(!n)return null;try{return JSON.parse(n)}catch{return n}}async function CB(e){if(!e.ok){const n=await J2(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 J2(e)}async function AB(e,n,t={}){const r=gB(`/v1/videos/${e}/chapters`,t.baseUrl),o=await fetch(r,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json",...mB(t.authToken)},body:JSON.stringify({chapters:n})});await CB(o)}function y5(){try{return crypto.randomUUID()}catch{return`${Date.now()}-${Math.random().toString(16).slice(2)}`}}function bB(e){return e.map(n=>({id:y5(),startSec:n.startSec??0,title:(n.title??"").trim()})).sort((n,t)=>n.startSec-t.startSec)}function yB({chapter:e,index:n,startSec:t,endSec:r,isLast:o,disabled:s,startTimePlaceholder:l,endTimePlaceholder:u,titlePlaceholder:d,deleteChapterLabel:f,startMin:h,startMax:m,endMin:A,endMax:y,onStartSecChange:b,onEndSecChange:x,onTitleChange:w,onRemove:k}){const[L,O]=g.useState(()=>ua(t)),[T,R]=g.useState(()=>r==null?"":ua(r)),[E,M]=g.useState(!1),[P,I]=g.useState(!1),[F,_]=g.useState(!1),[N,j]=g.useState(!1);g.useEffect(()=>{F||O(ua(t))},[t,F]),g.useEffect(()=>{N||R(r==null?"":ua(r))},[r,N]);const U=B=>{O(B);const Z=Q2(B);if(Z!==null){const Q=Math.floor(Number(Z)||0),re=Q<h,oe=m!=null&&Q>m;if(re||oe){M(!0);return}M(!1),b(n,Q)}else if(B.trim()===""){const re=0<h,oe=m!=null&&0>m;if(re||oe){M(!0);return}M(!1),b(n,0)}else M(!0)},W=B=>{if(R(B),o)return;const Z=Q2(B);if(Z!==null){const Q=Math.floor(Number(Z)||0),oe=Q<(A??-1/0),Ce=y!=null&&Q>y;if(oe||Ce){I(!0);return}I(!1),x(n,Q)}else B.trim()===""?I(!1):I(!0)};return a.jsxs(v.Group,{gap:10,align:"flex-start",wrap:"nowrap",className:"video-settings-modal-chapter-row",style:{maxWidth:"100%"},children:[a.jsxs(v.Stack,{className:"video-settings-modal-chapter-times",children:[a.jsx(v.TextInput,{size:"sm",radius:8,variant:"default",placeholder:l,value:L,onChange:B=>U(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)}),a.jsx(v.TextInput,{size:"sm",radius:8,variant:"default",placeholder:u,value:T,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:P,disabled:s||o||r==null,onFocus:()=>j(!0),onBlur:()=>j(!1)})]}),a.jsx(v.Flex,{className:"video-settings-modal-chapter-title",children:a.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})}),a.jsx(v.Flex,{className:"video-settings-modal-chapter-actions",children:a.jsxs(v.Menu,{position:"bottom-end",children:[a.jsx(v.Menu.Target,{children:a.jsx(v.ActionIcon,{size:36,variant:"subtle",color:"gray","aria-label":"Chapter actions",disabled:s,radius:8,children:a.jsx(K1,{size:20})})}),a.jsx(v.Menu.Dropdown,{children:a.jsx(v.Menu.Item,{color:"red",onClick:()=>k(n),children:f})})]})})]})}function xB({videoId:e,initialChapters:n,nativeVideo:t,shakaPlayer:r,videoDuration:o,baseUrl:s,authToken:l,title:u,customLabel:d,dontShowLabel:f,chaptersDisabled:h,onChaptersDisabledChange:m,onSave:A,timePlaceholder:y,endTimePlaceholder:b,titlePlaceholder:x,addChapterLabel:w,deleteChapterLabel:k,emptyLabel:L,errorLabel:O,invalidRangeLabel:T,addTranscriptManuallyLabel:R}){const E=U1,[M,P]=g.useState([]),[I,F]=g.useState(null),[_,N]=g.useState(null),[j,U]=g.useState(!1),[W,B]=g.useState(!1),[Z,Q]=g.useState(null),re=g.useRef(!1),oe=g.useRef(!1),Ce=g.useMemo(()=>({baseUrl:s,authToken:l}),[s,l]),Te=g.useCallback(ne=>{oe.current||re.current||P(bB(ne))},[]);g.useEffect(()=>{var ne;if(o!=null&&o>0){Q(o);return}try{const H=(ne=r==null?void 0:r.seekRange)==null?void 0:ne.call(r);if(H&&Number.isFinite(H.end)&&H.end>0){Q(H.end);return}}catch{}if(t){const H=t.duration;if(Number.isFinite(H)&&H>0){Q(H);return}}},[o,r,t]);const Me=g.useCallback(()=>Z==null?null:Math.floor(Z),[Z]);g.useCallback(()=>{const ne=[...M].filter(X=>X.title.trim()).sort((X,Y)=>X.startSec-Y.startSec),H=Me();for(let X=0;X<ne.length;X++){const Y=Math.floor(Number(ne[X].startSec)||0),J=X<ne.length-1?Math.floor(Number(ne[X+1].startSec)||0):null;if(Y<0||J!=null&&Y>=J||H!=null&&Y>=H)return!1;const $=J??H??null;if($!=null&&Y>=$||H!=null&&$!=null&&$>H)return!1}return!0},[M,Me]);const Re=g.useCallback(async()=>{if(!e)return null;N(null),B(!0),oe.current=!0,F(null);try{const ne=M.filter(H=>H.title.trim()).filter(H=>Z==null||H.startSec<Z).sort((H,X)=>H.startSec-X.startSec).map(({startSec:H,title:X})=>({startSec:H,title:X}));return await AB(e,ne,Ce),re.current=!1,ne}catch(ne){const H=ne instanceof Error?ne.message:O;return/exceeds/i.test(H)||F(H),null}finally{B(!1),oe.current=!1}},[e,M,Ce,O,Me]);g.useEffect(()=>{A==null||A(Re)},[Re,A]);const ae=g.useCallback(()=>{re.current=!0,N(null),P(ne=>{const H=Z!=null?Math.floor(Z):null,X=[...ne].sort((Ae,me)=>Ae.startSec-me.startSec),Y=X.length>0?Math.floor(X[X.length-1].startSec):-1,J=Math.max(0,Y+1),$=H!=null?Math.min(J,Math.max(0,H-1)):J;return[...X,{id:y5(),startSec:$,title:""}]})},[Z]),te=g.useCallback((ne,H)=>{re.current=!0,P(X=>{const J=[...[...X].sort((Ae,me)=>Ae.startSec-me.startSec)],$=J[ne];return $?(J[ne]={...$,title:H},J):X})},[]),q=g.useCallback((ne,H)=>{re.current=!0,N(null),P(X=>{const Y=[...X].sort((Ae,me)=>Ae.startSec-me.startSec),J=Y[ne];if(!J)return X;const $=[...Y];return $[ne]={...J,startSec:H},$.sort((Ae,me)=>Ae.startSec-me.startSec)})},[]),ce=g.useCallback((ne,H)=>{re.current=!0,N(null),P(X=>{const Y=[...X].sort((Ae,me)=>Ae.startSec-me.startSec);if(ne>=Y.length-1)return X;const J=Y[ne+1];if(!J)return X;const $=[...Y];return $[ne+1]={...J,startSec:H},$.sort((Ae,me)=>Ae.startSec-me.startSec)})},[]),ie=g.useCallback(ne=>{re.current=!0,N(null),P(H=>[...H].sort((Y,J)=>Y.startSec-J.startSec).filter((Y,J)=>J!==ne))},[]);return g.useEffect(()=>{if(!e){P([]),F(null),re.current=!1;return}oe.current||re.current||Array.isArray(n)&&Te(n)},[e,n,Te]),a.jsxs(v.Stack,{gap:"xs",children:[a.jsx(v.Text,{className:"video-settings-modal-section-title",children:u}),a.jsx(E,{size:"sm",radius:8,allowDeselect:!1,value:h?"disabled":"custom",data:[{value:"custom",label:d},{value:"disabled",label:f}],onChange:ne=>{m(ne==="disabled")},classNames:{root:"video-settings-modal-select-fullwidth",input:"video-settings-modal-language-select"},comboboxProps:{position:"bottom-start",width:"target"}}),!h&&a.jsxs(a.Fragment,{children:[a.jsx(v.Divider,{my:4}),R&&a.jsx(v.Text,{size:"sm",fw:500,className:"video-settings-modal-text-label",children:R}),I&&a.jsx(v.Text,{size:"sm",c:"red",mb:"xs",children:I}),_&&a.jsx(v.Text,{size:"sm",c:"red",mb:"xs",children:_}),a.jsx(v.Stack,{gap:12,children:[...M].sort((ne,H)=>ne.startSec-H.startSec).map((ne,H,X)=>{const Y=X[H+1]||null,J=X[H+2]||null,$=Z!=null?Math.floor(Z):null,Ae=Y!=null?Math.floor(Y.startSec):$??null,me=Math.floor(ne.startSec),ke=H>0?Math.floor(X[H-1].startSec):null,Fe=Y!=null?Math.floor(Y.startSec):null,De=ke!=null?ke+1:0,Pe=Fe!=null?Fe-1:null,Ue=$!=null?$-1:null,Ze=Pe!=null&&Ue!=null?Math.min(Pe,Ue):Pe??Ue,It=H<X.length-1?me+1:null,Mt=J!=null?Math.floor(J.startSec):null,Gt=Mt!=null?Mt-1:null,_t=$??null,V=Gt!=null&&_t!=null?Math.min(Gt,_t):Gt??_t;return a.jsx(yB,{chapter:ne,index:H,startSec:me,endSec:Ae,isLast:H===X.length-1,startMin:De,startMax:Ze,endMin:It,endMax:V,disabled:!1,startTimePlaceholder:y,endTimePlaceholder:Z!=null?ua(Math.floor(Z)):b,titlePlaceholder:x,deleteChapterLabel:k,onStartSecChange:q,onEndSecChange:ce,onTitleChange:te,onRemove:ie},ne.id)})}),a.jsx(v.Text,{component:"button",type:"button",className:"video-settings-modal-link",onClick:ae,children:w}),M.length===0&&!j&&a.jsx(v.Text,{size:"xs",c:"dimmed",children:L})]})]})}function vB({opened:e,videoId:n,initialStatus:t,title:r,uploadLabel:o,cropLabel:s,emptyCoverLabel:l,loadErrorLabel:u,retryLabel:d,onCoverUpload:f,onCropCover:h,onPosterChange:m,onSelectedPosterChange:A,selectedPosterUrl:y}){var Re,ae;const[b,x]=g.useState(null),[w,k]=g.useState(null),[L,O]=g.useState(!1),[T,R]=g.useState(!1),[E,M]=g.useState(new Set),[P,I]=g.useState(new Set),[F,_]=g.useState(null),N=g.useRef(null),j=g.useRef(!1),U=g.useMemo(()=>{const te=(b==null?void 0:b.previews)??[];return F?[...te,{id:"uploaded",url:F,order:te.length}]:te},[b==null?void 0:b.previews,F]),W=g.useMemo(()=>{var te,q;return((te=b==null?void 0:b.cover)==null?void 0:te.previewId)??((q=U[0])==null?void 0:q.id)??null},[(Re=b==null?void 0:b.cover)==null?void 0:Re.previewId,U]),B=w??W;U.length>0;const Z=U.length+1,Q=Z>3,re=g.useCallback(te=>{M(q=>{const ce=new Set(q);return ce.delete(te),ce}),I(q=>{const ce=new Set(q);return ce.delete(te),ce})},[]),oe=g.useCallback(te=>{M(q=>{const ce=new Set(q);return ce.delete(te),ce}),I(q=>new Set(q).add(te))},[]),Ce=g.useCallback(async()=>{var te,q,ce;if(n){O(!0),R(!1);try{const ie=await Mi(n);x(ie);const ne=((q=(te=ie==null?void 0:ie.previews)==null?void 0:te[0])==null?void 0:q.id)??null,H=((ce=ie==null?void 0:ie.cover)==null?void 0:ce.previewId)??ne;k(H),M(new Set),I(new Set)}catch(ie){console.error("cover status fetch failed",ie instanceof Error?ie.message:ie),R(!0)}finally{O(!1)}}},[n]),Te=g.useCallback(async te=>{var ie,ne,H,X;const q=te[0];if(!q||!f)return;const ce=URL.createObjectURL(q);_(ce),M(new Set(["uploaded"])),k("uploaded"),A==null||A(ce);try{const Y=await Promise.resolve(f(q));_(null),ce&&URL.revokeObjectURL(ce);const J=Y==null?void 0:Y.previews,$=Array.isArray(J)&&J.length>0;if(Y&&$&&J){j.current=!0,x(Y);const Ae=((ie=J[J.length-1])==null?void 0:ie.id)??((ne=Y==null?void 0:Y.cover)==null?void 0:ne.previewId)??((H=J[0])==null?void 0:H.id);if(k(Ae??"uploaded"),Ae){const me=(X=J.find(ke=>ke.id===Ae))==null?void 0:X.url;me&&(A==null||A(me))}M(new Set),I(new Set)}else Ce()}catch(Y){_(null),ce&&URL.revokeObjectURL(ce),k(null),console.error("cover upload failed",Y instanceof Error?Y.message:Y),Ce()}},[f,Ce,A]),Me=g.useMemo(()=>{var te,q;return y||(((te=U.find(ce=>ce.id===B))==null?void 0:te.url)??((q=b==null?void 0:b.cover)==null?void 0:q.url)??null)},[y,U,B,(ae=b==null?void 0:b.cover)==null?void 0:ae.url]);return g.useEffect(()=>{var te,q,ce;if(!(!e||!n))if(t){x(t);const ie=((q=(te=t==null?void 0:t.previews)==null?void 0:te[0])==null?void 0:q.id)??null,ne=((ce=t==null?void 0:t.cover)==null?void 0:ce.previewId)??ie;k(ne),M(new Set),I(new Set),O(!1),R(!1)}else Ce()},[e,n]),g.useEffect(()=>{if(!F||!N.current)return;const q=requestAnimationFrame(()=>{var ne;const ie=((b==null?void 0:b.previews)??[]).length+1;(ne=N.current)==null||ne.scrollTo(ie)});return()=>cancelAnimationFrame(q)},[F,b==null?void 0:b.previews]),g.useEffect(()=>{if(!j.current)return;j.current=!1;const te=N.current;if(!te)return;const ce=((b==null?void 0:b.previews)??[]).length;requestAnimationFrame(()=>te.scrollTo(ce))},[b==null?void 0:b.previews]),g.useEffect(()=>()=>{N.current=null},[]),a.jsxs(v.Stack,{gap:"xs",children:[a.jsx(v.Text,{className:"video-settings-modal-section-title",children:r}),T&&a.jsxs(v.Group,{gap:"xs",mb:"xs",children:[a.jsx(v.Text,{size:"sm",c:"red",children:u}),d&&a.jsx(v.Button,{variant:"light",size:"xs",onClick:Ce,children:d})]}),a.jsxs(Xd.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:Z>1,nextControlIcon:a.jsx(ue,{icon:Ns,size:20,color:"currentColor"}),previousControlIcon:a.jsx(ue,{icon:NC,size:20,color:"currentColor"}),getEmblaApi:te=>{N.current=te},children:[a.jsx(Xd.Carousel.Slide,{children:a.jsx(v.Box,{className:"video-settings-modal-cover-cell",children:a.jsx(gm.Dropzone,{className:"video-settings-modal-cover-upload",onDrop:Te,accept:gm.IMAGE_MIME_TYPE,maxFiles:1,disabled:!f,style:f?void 0:{opacity:.7,pointerEvents:"none"},children:a.jsxs(v.Box,{className:"video-settings-modal-cover-upload-inner",children:[a.jsx(ue,{icon:OC,size:20,color:"var(--mantine-color-bright)"}),a.jsx(v.Text,{size:"sm",fw:500,className:"video-settings-modal-cover-upload-label",children:o})]})})})}),U.map(te=>{const q=Me!=null?te.url===Me:B!=null&&te.id===B,ce=E.has(te.id),ie=P.has(te.id);return a.jsx(Xd.Carousel.Slide,{children:a.jsxs(v.Box,{className:`video-settings-modal-cover-cell video-settings-modal-cover-thumb ${q&&!ie?"selected":""} ${ce?"loading":""} ${ie?"error":""}`,onClick:()=>{ie||(k(te.id),A==null||A(te.url))},role:"button",tabIndex:0,onKeyDown:ne=>ne.key==="Enter"&&!ie&&(()=>{k(te.id),A==null||A(te.url)})(),children:[a.jsx("img",{src:te.url,alt:"",onLoad:()=>re(te.id),onError:()=>oe(te.id)}),ce&&a.jsx("span",{className:"video-settings-modal-cover-spinner","aria-hidden":!0,children:a.jsx(v.Loader,{size:"sm",color:"gray"})}),ie&&a.jsx("span",{className:"video-settings-modal-cover-error-icon","aria-hidden":!0,children:a.jsx(ue,{icon:Bh,size:24,color:"#fff"})}),q&&!ie&&a.jsx("span",{className:"video-settings-modal-cover-check","aria-hidden":!0,children:a.jsx(qP,{size:32})})]})},te.id)})]})]})}function wB({cancelLabel:e,saveLabel:n,onCancel:t,onSave:r,isSaving:o}){return a.jsxs(v.Group,{justify:"flex-end",gap:8,children:[a.jsx(v.Button,{size:"sm",variant:"subtle",color:"gray",radius:"md",onClick:t,disabled:o,children:e}),a.jsx(v.Button,{size:"sm",radius:"md",onClick:r,loading:o,children:n})]})}const lu=[{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ă"}],X2="ru",Th=lu.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}=He.useTranslation(),{reportError:u}=W1(),d=U1,[f,h]=g.useState([]),[m,A]=g.useState([]),y=g.useRef(new Map),[b,x]=g.useState(!1),w=g.useMemo(()=>f.find(au)??null,[f]);g.useEffect(()=>{w&&x(w.isDisabled)},[w]);const k=g.useMemo(()=>({baseUrl:n,authToken:t}),[n,t]),L=g.useCallback(N=>{w&&(x(N),h(j=>j.map(U=>U.id===w.id?{...U,isDisabled:N}:U)))},[w]),O=g.useRef(null);g.useEffect(()=>{w&&O.current===null&&(O.current=w.isDisabled)},[w]);const T=g.useCallback(async(N=!1)=>{if(e){if(N||r==null)try{const j=await G2(e,k);h(j);return}catch{}try{const j=await G2(e,k);h(j)}catch{if(r!=null){const j=(r||[]).map(Ti).filter(U=>U.id);h(j)}else try{const j=await Mi(e),U=((j==null?void 0:j.subtitles)||[]).map(Ti).filter(W=>W.id);h(U)}catch(j){u(j,"subtitles",e)}}}},[e,k,u,r]);g.useEffect(()=>{if(!e){h([]),A([]);return}T().catch(()=>{})},[e,T]),g.useEffect(()=>{o==null||o(f)},[f,o]),g.useEffect(()=>{s==null||s(async()=>{!e||!w||b!==O.current&&(await JP(e,w.id,b,k),O.current=b)})},[s,e,w,b,k]);const R=g.useMemo(()=>{const N=f.filter(U=>!au(U)),j=new Map;for(const U of N)j.set(U.lang,U);return Array.from(j.values())},[f]),E=g.useMemo(()=>{const N=new Set(R.map(j=>j.lang));return m.forEach(j=>{j.lang&&N.add(j.lang)}),N},[R,m]),M=g.useCallback(()=>{var U;const N=((U=lu.find(W=>!E.has(W.value)))==null?void 0:U.value)??(E.has(X2)?null:X2),j=N?Th[N]||N:null;A(W=>[...W,{id:crypto.randomUUID(),lang:N,label:j,status:"draft"}])},[E]),P=g.useCallback((N,j)=>{A(U=>U.map(W=>W.id===N?{...W,...j}:W))},[]),I=g.useCallback(async(N,j)=>{if(!e)return;const U=m.find(B=>B.id===N);if(!(U!=null&&U.lang))return;const W=new AbortController;y.current.set(N,W),P(N,{status:"uploading",fileName:j.name});try{const B=await QP(e,j,{lang:U.lang,label:U.label||Th[U.lang]||U.lang,kind:"subtitles",default:!1,signal:W.signal},k);y.current.delete(N),A(Z=>Z.filter(Q=>Q.id!==N)),B?h(Z=>Z.find(Q=>Q.id===B.id)?Z:[...Z,B]):await T(!0)}catch(B){y.current.delete(N),P(N,{status:"error"}),u(B,"subtitles",e)}},[e,m,k,T,P,u]),F=g.useCallback(async N=>{e&&(h(j=>j.filter(U=>U.id!==N)),await XP(e,N,k))},[e,k]),_=g.useCallback(N=>{A(j=>j.filter(U=>U.id!==N))},[]);return a.jsxs("div",{className:"video-settings-modal-subtitles",children:[w&&a.jsxs(v.Flex,{align:"center",gap:"md",className:"video-settings-modal-subtitles-auto-toggle",children:[a.jsx(v.Text,{size:"sm",fw:500,c:"var(--mantine-color-bright)",flex:1,children:l("editor.video.settingsModal.hideAutoSubtitles")}),a.jsx(v.Switch,{size:"sm",checked:b,onChange:N=>L(N.currentTarget.checked)})]}),w&&a.jsx(v.Divider,{my:4}),a.jsx(v.Text,{size:"sm",mb:0,className:"video-settings-modal-subtitles-label video-settings-modal-text-label",children:l("editor.video.settingsModal.uploadSubtitlesManually")}),R.map(N=>a.jsxs(v.Flex,{align:"center",gap:"xs",wrap:"nowrap",className:"video-settings-modal-subtitles-row",children:[a.jsx(d,{size:"sm",data:lu,value:N.lang,disabled:!0,flex:1,miw:140,w:"auto",comboboxProps:{width:"target"},classNames:{input:"video-settings-modal-language-select"}}),a.jsxs(v.Flex,{align:"center",gap:6,flex:1,children:[a.jsx(wo,{size:20,color:"var(--mantine-color-green-6)"}),a.jsx(v.Text,{size:"sm",children:l("editor.video.settingsModal.successfullyLoaded")})]}),a.jsxs(v.Menu,{position:"bottom-end",children:[a.jsx(v.Menu.Target,{children:a.jsx(v.ActionIcon,{size:36,variant:"subtle",color:"gray","aria-label":"Subtitle actions",children:a.jsx(K1,{size:20})})}),a.jsx(v.Menu.Dropdown,{children:a.jsx(v.Menu.Item,{color:"red",onClick:()=>F(N.id),children:l("editor.video.settingsModal.deleteSubtitle")})})]})]},N.id)),m.map(N=>a.jsx(SB,{draft:N,usedLanguages:E,onChange:j=>P(N.id,j),onUpload:j=>I(N.id,j),onRemove:()=>_(N.id),SelectComponent:d},N.id)),a.jsx(v.Text,{component:"button",type:"button",className:"video-settings-modal-link",onClick:M,children:l("editor.video.settingsModal.addSubtitleTrack")})]})}function SB({draft:e,usedLanguages:n,onChange:t,onUpload:r,onRemove:o,SelectComponent:s}){const{t:l}=He.useTranslation(),u=g.useRef(null),d=g.useMemo(()=>lu.filter(h=>h.value===e.lang||!n.has(h.value)),[n,e.lang]),f=h=>{var A;const m=(A=h.target.files)==null?void 0:A[0];h.target.value="",m&&r(m)};return a.jsx(v.Box,{children:a.jsxs(v.Flex,{align:"center",wrap:"nowrap",className:"video-settings-modal-subtitles-row",children:[a.jsx(s,{size:"sm",placeholder:l("editor.video.settingsModal.selectLanguage"),data:d,value:e.lang,onChange:h=>t({lang:h,label:h?Th[h]:null}),flex:1,miw:140,w:"auto",comboboxProps:{width:"target"},inputClassName:"video-settings-modal-language-select"}),a.jsx(v.Flex,{align:"center",gap:6,flex:1,children:e.status==="uploading"?a.jsx(v.Loader,{size:22}):a.jsxs(a.Fragment,{children:[a.jsx("input",{ref:u,type:"file",accept:".srt,.vtt",hidden:!0,onChange:f}),a.jsx(v.Button,{variant:"light",size:"sm",className:"video-settings-modal-upload-button",disabled:!e.lang,onClick:()=>{var h;return(h=u.current)==null?void 0:h.click()},children:l("editor.video.settingsModal.uploadFile")})]})}),a.jsxs(v.Menu,{position:"bottom-end",children:[a.jsx(v.Menu.Target,{children:a.jsx(v.ActionIcon,{size:36,variant:"subtle",color:"gray","aria-label":"Subtitle actions",children:a.jsx(K1,{size:20})})}),a.jsx(v.Menu.Dropdown,{children:a.jsx(v.Menu.Item,{color:"red",onClick:o,children:l("editor.video.settingsModal.deleteSubtitle")})})]}),e.status==="error"&&a.jsx(v.Text,{size:"sm",c:"red",children:l("editor.video.settingsModal.uploadError")})]})})}function $2({opened:e,onClose:n,videoId:t,initialStatus:r,onStatusChange:o,onPosterChange:s,onChaptersSaved:l,onChaptersDisabledChange:u,onSubtitlesSaved:d,posterUrl:f,chaptersDisabled:h=!1,shakaPlayer:m,nativeVideo:A,videoDuration:y,playerMode:b="native"}){const{t:x}=He.useTranslation(),[w,k]=g.useState(h),[L,O]=g.useState(null),[T,R]=g.useState(r??null),[E,M]=g.useState([]),P=g.useRef(null),I=g.useRef(null),[F,_]=g.useState(!1),N=g.useCallback(B=>{O(B)},[]);g.useEffect(()=>{r&&R(r)},[r]),g.useEffect(()=>{!e||!t||Mi(t).then(B=>{B&&(R(B),o==null||o(B))}).catch(()=>{})},[e,t]),g.useEffect(()=>{e&&k(h)},[e,h]);const j=g.useCallback(async B=>{if(t)return wP(t,B)},[t]),U=g.useCallback(async()=>{_(!0);try{if(P.current){const B=await P.current();Array.isArray(B)&&(l==null||l(B))}if(u==null||u(w),I.current&&await I.current(),d==null||d(E),L!==null&&(s==null||s(L)),t){const B=await Mi(t);o==null||o(B)}n()}finally{_(!1)}},[t,w,u,l,n,s,o,d,L,E]),W=a.jsxs(a.Fragment,{children:[a.jsx(v.Box,{className:"video-settings-modal-body",children:a.jsxs(v.Stack,{gap:32,children:[a.jsx(vB,{opened:e,videoId:t,initialStatus:T,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:N,selectedPosterUrl:L??f??null}),a.jsxs(v.Stack,{gap:"xs",children:[a.jsxs(v.Flex,{align:"center",gap:6,children:[a.jsx(v.Text,{className:"video-settings-modal-section-title",children:x("editor.video.settingsModal.subtitles")}),a.jsx(v.Tooltip,{label:x("editor.video.settingsModal.subtitlesFormatHint"),position:"right",withArrow:!0,children:a.jsx(ue,{icon:P8,size:16,color:"var(--mantine-color-dimmed)"})})]}),a.jsx(kB,{videoId:t,mode:b,shakaPlayer:m,nativeVideo:A,statusSubtitles:T==null?void 0:T.subtitles,onTracksChange:M,onSave:B=>{I.current=B}})]}),a.jsx(xB,{videoId:t,initialChapters:T==null?void 0:T.chapters,nativeVideo:A,shakaPlayer:m,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=>{P.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")})]})}),a.jsx(v.Box,{className:"video-settings-modal-footer",children:a.jsx(wB,{cancelLabel:x("editor.video.settingsModal.cancel"),saveLabel:x("editor.video.settingsModal.save"),onCancel:n,onSave:U,isSaving:F})})]});return Tn?a.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}):a.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 eC(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 EB({className:e,format:n,platform:t,videoID:r,editor:o,nodeKey:s,width:l,height:u,alignment:d}){const f=L1,[h,{open:m,close:A}]=Yn.useDisclosure(!1),[,y]=g.useState(!1),[b,x]=g.useState(!0),[w,k]=g.useState(!1),[L,O]=g.useState(!1),[T,R]=g.useState(null),[E,M]=g.useState(!1),[P,I]=g.useState(null),[F,_]=g.useState(null),[N,j]=g.useState(null),[U,W]=g.useState(!0),[B,Z]=g.useState(!1),[Q,re]=g.useState({shakaPlayer:null,nativeVideo:null,mode:"native",containerEl:null,videoDuration:null}),oe=g.useMemo(()=>t==="download"||t==="link"?Qo(t,r):null,[t,r]),{t:Ce}=He.useTranslation(),Te=(H,X=!1,Y,J)=>{x5(o,s,{url:H,isLink:X,platformOverride:Y,overrideId:J})||y(!0)},Me=(H,X)=>{LB(o,s,H,X)},Re=H=>{x(["video-preview"].includes(H))},ae=()=>{var X,Y,J;const H=document.pictureInPictureElement;if(H){const $=((Y=(X=Q.shakaPlayer)==null?void 0:X.getMediaElement)==null?void 0:Y.call(X))||null,Ae=Q.nativeVideo||null,me=Q.containerEl||null,ke=H instanceof HTMLVideoElement&&(Ae&&Ae.currentSrc===H.currentSrc||$&&$.currentSrc===H.currentSrc);(H===$||H===Ae||me&&me.contains(H)||ke)&&((J=document.exitPictureInPicture)==null||J.call(document).catch(()=>{}))}IB(o,s)},te=g.useCallback(H=>{R(H),NB(o,s,H)},[o,s]),q=g.useCallback(H=>{M(H),jB(o,s,H)},[o,s]),ce=g.useCallback(H=>{re(H)},[]);g.useEffect(()=>{o.getEditorState().read(()=>{const H=p.$getNodeByKey(s);Bi(H)&&(R(H.getPosterUrl()||null),M(H.getChaptersDisabled()))})},[o,s]);const ie=E?[]:P,ne={className:e,format:n,nodeKey:s,onUploadComplete:(H,X)=>{Te(H,!1,"download",X)},onStateChange:Re,initialVideoState:r&&(t==="download"||t==="link"||t==="youtube"||t==="vk"||t==="rutube")?"video-preview":void 0};return a.jsx(h1,{editor:o,isIcon:!1,isEmbed:!0,width:eC(l),height:eC(u),onResizeEnd:Me,alignment:d,type:"video",disableInteractions:!b||L,children:a.jsxs("div",{className:"media-wrapper",children:[Tn?a.jsxs(a.Fragment,{children:[a.jsx(z2,{className:"visible",children:a.jsx(Cn,{label:Ce("editor.video.mobile.actions"),tooltipDisabled:!0,icon:so,iconColor:"var(--mantine-color-gray-text)","aria-label":Ce("editor.video.mobile.actions"),className:"media-action",onClick:H=>{H.stopPropagation(),m()}})}),a.jsx(Ur,{opened:h,onClose:A,title:Ce("editor.video.mobile.actions"),children:a.jsxs(v.Stack,{gap:4,p:0,children:[U&&B&&a.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:()=>{A(),O(!0)},leftSection:a.jsx(ue,{icon:Sm,size:16,color:"var(--mantine-color-dimmed)"}),children:Ce("editor.video.player.settings")}),a.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:()=>{A(),ae()},leftSection:a.jsx(ue,{icon:_n,size:16,color:"var(--mantine-color-red-6)"}),children:Ce("editor.video.delete")})]})}),U&&B&&a.jsx($2,{opened:L,onClose:()=>O(!1),videoId:r,initialStatus:N,onStatusChange:j,posterUrl:T,onPosterChange:te,onChaptersSaved:H=>I(H),onSubtitlesSaved:H=>_(H),chaptersDisabled:E,onChaptersDisabledChange:q,shakaPlayer:Q.shakaPlayer,nativeVideo:Q.nativeVideo,playerMode:Q.mode,videoDuration:Q.videoDuration})]}):a.jsxs(z2,{children:[U&&B&&a.jsxs(a.Fragment,{children:[a.jsx(Cn,{label:Ce("editor.video.player.settings"),"aria-label":"Settings",className:"media-action",icon:Sm,iconColor:"var(--mantine-color-gray-text)",onClick:H=>{H.stopPropagation(),O(!0)}}),a.jsx($2,{opened:L,onClose:()=>O(!1),videoId:r,initialStatus:N,onStatusChange:j,posterUrl:T,onPosterChange:te,onChaptersSaved:H=>I(H),onSubtitlesSaved:H=>_(H),chaptersDisabled:E,onChaptersDisabledChange:q,shakaPlayer:Q.shakaPlayer,nativeVideo:Q.nativeVideo,playerMode:Q.mode,videoDuration:Q.videoDuration})]}),f&&a.jsx(f,{opened:w,setOpened:k,t:Ce,editor:o,nodeKey:s}),a.jsx(Cn,{label:Ce("editor.video.delete"),"aria-label":"Delete",className:"media-action",icon:_n,iconColor:"var(--mantine-color-red-outline)",onClick:ae})]}),a.jsx(pB,{...ne,initialVideoId:r,posterUrl:T,chaptersOverride:ie,subtitlesOverride:F,platform:t,fallbackNativeVideoUrl:oe,onStatusChange:j,onStatusAvailabilityChange:W,onOptimizedReadyChange:Z,onPlayerInfo:ce})]})})}function MB(e){return a.jsx(EB,{...e})}function tC(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%"),u=parseFloat(e.getAttribute("height")??"100%"),d=e.getAttribute("data-lexical-alignment")||e.style.justifyContent||"left";if(n==="upload"||n==="unknown"&&!t&&!r){const A=Lh("upload",l,u,d,!0);return o&&A.setPosterUrl(o),s&&A.setChaptersDisabled(!0),{node:A}}const h=n||null,m=(typeof t=="string"&&t.length>0?t:null)||r||null;if(h&&m){const A=Lh(Qo(h,m),l,u,d);return h==="download"&&r&&A.setUrl(r),o&&A.setPosterUrl(o),s&&A.setChaptersDisabled(!0),{node:A}}return{node:null}}class Ps extends p.DecoratorNode{constructor(t,r,o,s,l,u,d="left",f){super(u);we(this,"__platform");we(this,"__id");we(this,"__url");we(this,"__posterUrl");we(this,"__chaptersDisabled");we(this,"__create");we(this,"__width");we(this,"__height");we(this,"__alignment");we(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 Ps(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 Ps(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:tC,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:tC,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=Qo(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 u=document.createElement("span");return u.setAttribute("data-src",l),u.className="video-container",u.style.justifyContent=this.__alignment||"left",r.style.justifyContent=this.__alignment||"left",u.appendChild(r),{element:u}}decorate(t,r){const s={base:(r.theme.embedBlock||{}).base||"",focus:""};return g.createElement(MB,{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 Qo(this.__platform,t)}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}}function Lh(e,n,t,r,o){const s=e.startsWith("https")||e.startsWith("http"),{platform:l,id:u}=f5(e,s);return new Ps(l,u||"",void 0,n,t,void 0,r,o)}function Bi(e){return e instanceof Ps}function TB(e,n){e.update(()=>{const t=Lh(n,"100%","100%","left",n==="upload");t.setChaptersDisabled(!0),ki(t)},{tag:"skip-scroll-into-view"})}function x5(e,n,{url:t,isLink:r=!1,platformOverride:o,overrideId:s}){const{platform:l,id:u}=o&&s?{platform:o,id:s}:f5(t,r);if(!u&&l!=="upload")return!1;const d=u??"";return e.update(()=>{const f=p.$getNodeByKey(n);if(!f||!Bi(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 LB(e,n,t,r){e.update(()=>{const o=p.$getNodeByKey(n);!o||!Bi(o)||o.setWidthAndHeight(t,r)},{tag:"skip-scroll-into-view"})}function NB(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);!r||!Bi(r)||r.setPosterUrl(t||"")},{tag:"skip-scroll-into-view"})}function RB(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);!r||!Bi(r)||r.setUrl(t)},{tag:"skip-scroll-into-view"})}function jB(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);!r||!Bi(r)||r.setChaptersDisabled(t)},{tag:"skip-scroll-into-view"})}function IB(e,n){hu(e,n)}function OB(){const[e]=tt.useLexicalComposerContext(),{t:n}=He.useTranslation(),{imperativeHandleRef:t,maxFileSize:r,onTrack:o}=W1();return g.useEffect(()=>{if(!e.hasNodes([Ps]))throw new Error("VideoPlugin: VideoNode not registered on editor");const s=l=>{if(l.length>1){Bt.showErrorNotification({message:n("editor.validation.doNotUploadMoreThanSingleFile")});return}const u=l[0];if(!u)return;if(!(u.type.includes("video/")||u.name.match(/\.(mp4|webm|ogg|mov|avi|mkv|flv|wmv|m4v|3gp|mpg|mpeg|ts|mts|m2ts|vob|asf|rm|rmvb|divx|xvid)$/i))){Bt.showErrorNotification({message:n("editor.video.errors.format")});return}if(u.size>r*1024*1024){Bt.showErrorNotification({message:n("editor.validation.shouldNotExceed",{maxSize:r})});return}o==null||o("media_video_added",{source:"upload"}),e.dispatchCommand(Mh,"upload"),setTimeout(()=>{e.dispatchCommand(d5,l)})};return t!=null&&t.current&&(t.current.insertVideos=s),e.registerCommand(Mh,l=>(TB(e,l),!1),p.COMMAND_PRIORITY_LOW)},[e,t,r,n,o]),null}function DB(e){return{key:"video",node:Ps,Plugin:OB,modes:{comment:!1,default:!0,editor:!0},Provider:({children:t,imperativeHandleRef:r})=>a.jsx(AP,{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:a.jsx(ue,{icon:lk,size:16}),command:Mh,commandPayload:"upload"}}}function PB(e,n=!0){const t=n?"rootStart":"rootEnd";e.focus(()=>{},{defaultSelection:t})}exports.$createExcalidrawNode=g1;exports.$createNewParagraph=XC;exports.$isEquationNode=Ro;exports.$isExcalidrawNode=uM;exports.$isImageNode=jr;exports.$tr=La;exports.$writeImagePickerTabToNode=iA;exports.ActionIcon=Cn;exports.AlignmentImage=L1;exports.AlignmentMenu=UA;exports.CREATE_TEMPLATE=$C;exports.Context=at;exports.Editor=c5;exports.ExcalidrawNode=is;exports.HugeiconsIcon=ue;exports.INSERT_EXCALIDRAW_COMMAND=qA;exports.IS_TOUCH_DEVICE=Tn;exports.Icon=Mn;exports.ImageNode=ur;exports.ImagePicker=s5;exports.MobileDrawer=Ur;exports.OPEN_EQUATION_POPUP_COMMAND=Dc;exports.ResizableContainer=h1;exports.StylesProvider=l5;exports.UPLOAD_IMAGE_COMMAND=XA;exports.blockScroll=Qa;exports.commonjsGlobal=ia;exports.createMediaComponent=ki;exports.createPopupKeyDownHandler=jb;exports.deleteNode=hu;exports.focusEditor=PB;exports.getDefaultExportFromCjs=rI;exports.lg=_n;exports.mediaMap=kr;exports.parseContainerSize=HA;exports.tf=IC;exports.unblockScroll=Ja;exports.useCancelUpload=aA;exports.useExcalidrawBehaviour=dM;exports.useSettings=b1;exports.useSharedHistoryContext=y1;exports.videoPlugin=DB;