@jackuait/blok 0.11.1 → 0.12.0

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 (1220) hide show
  1. package/LICENSE +13 -1
  2. package/NOTICE +10 -0
  3. package/README.md +7 -1
  4. package/codemod/migrate-editorjs-to-blok.js +51 -1
  5. package/codemod/test.js +95 -0
  6. package/dist/blok.cjs +1 -1
  7. package/dist/blok.iife.js +31 -30
  8. package/dist/blok.mjs +2 -2
  9. package/dist/chunks/_basePickBy-CLCgPLk_.cjs +1 -0
  10. package/dist/chunks/_basePickBy-cIM18c5w.mjs +166 -0
  11. package/dist/chunks/_baseUniq-C3lUNj_l.mjs +682 -0
  12. package/dist/chunks/_baseUniq-Cm3XBb1f.cjs +1 -0
  13. package/dist/chunks/arc-BSr2jl4o.mjs +80 -0
  14. package/dist/chunks/arc-C-l7V0ww.cjs +1 -0
  15. package/dist/chunks/architecture-YZFGNWBL-C5uKTSqd.mjs +3 -0
  16. package/dist/chunks/architecture-YZFGNWBL-DopZbt9d.cjs +1 -0
  17. package/dist/chunks/architectureDiagram-Q4EWVU46-B3EkmUoA.cjs +36 -0
  18. package/dist/chunks/architectureDiagram-Q4EWVU46-DL5lPOq_.mjs +4066 -0
  19. package/dist/chunks/blockDiagram-DXYQGD6D-ChnytJiO.cjs +132 -0
  20. package/dist/chunks/blockDiagram-DXYQGD6D-DjFfRgP_.mjs +3074 -0
  21. package/dist/chunks/blok-Cxcy7G7v.mjs +13801 -0
  22. package/dist/chunks/blok-qY4LDF7A.cjs +17 -0
  23. package/dist/chunks/c4Diagram-AHTNJAMY-D9cwQ5dP.cjs +10 -0
  24. package/dist/chunks/c4Diagram-AHTNJAMY-DDydXzN1.mjs +2956 -0
  25. package/dist/chunks/channel-1VaVTmSI.mjs +5 -0
  26. package/dist/chunks/channel-DTKWBt5v.cjs +1 -0
  27. package/dist/chunks/chunk-2KRD3SAO-Dcv71dz8.cjs +1 -0
  28. package/dist/chunks/chunk-2KRD3SAO-DslQvmzC.mjs +20 -0
  29. package/dist/chunks/chunk-336JU56O-CUNPhOYK.mjs +49 -0
  30. package/dist/chunks/chunk-336JU56O-DsJvvQpB.cjs +1 -0
  31. package/dist/chunks/chunk-426QAEUC-Ciny2-Rz.mjs +13 -0
  32. package/dist/chunks/chunk-426QAEUC-DEYJ0OiL.cjs +1 -0
  33. package/dist/chunks/chunk-4BX2VUAB-D1dKBLiS.cjs +1 -0
  34. package/dist/chunks/chunk-4BX2VUAB-ljY9_i7D.mjs +19 -0
  35. package/dist/chunks/chunk-4TB4RGXK-C-eXrWWX.cjs +206 -0
  36. package/dist/chunks/chunk-4TB4RGXK-orLiGd4g.mjs +3250 -0
  37. package/dist/chunks/chunk-55IACEB6-BOy3ofgp.cjs +1 -0
  38. package/dist/chunks/chunk-55IACEB6-BPnDY27B.mjs +8 -0
  39. package/dist/chunks/chunk-5FUZZQ4R-D3UGwLBL.cjs +62 -0
  40. package/dist/chunks/chunk-5FUZZQ4R-D5gG1Dk4.mjs +3786 -0
  41. package/dist/chunks/chunk-5PVQY5BW-BCwqe25T.cjs +2 -0
  42. package/dist/chunks/chunk-5PVQY5BW-DVKx7m4a.mjs +1122 -0
  43. package/dist/chunks/chunk-67CJDMHE-BU_rrdV4.mjs +20 -0
  44. package/dist/chunks/chunk-67CJDMHE-VKwQfp25.cjs +1 -0
  45. package/dist/chunks/chunk-7N4EOEYR-BpM-QbmS.cjs +1 -0
  46. package/dist/chunks/chunk-7N4EOEYR-Cx6N1y9w.mjs +29 -0
  47. package/dist/chunks/chunk-AA7GKIK3-DCAy6uIg.mjs +24 -0
  48. package/dist/chunks/chunk-AA7GKIK3-RcaBhHiZ.cjs +1 -0
  49. package/dist/chunks/chunk-BSJP7CBP-BHijZ5f8.mjs +83 -0
  50. package/dist/chunks/chunk-BSJP7CBP-wiZ2ll8-.cjs +1 -0
  51. package/dist/chunks/chunk-CIAEETIT-0sn8TZoo.cjs +1 -0
  52. package/dist/chunks/chunk-CIAEETIT-BWpztfre.mjs +20 -0
  53. package/dist/chunks/chunk-EDXVE4YY-BJAhHZ3a.mjs +26 -0
  54. package/dist/chunks/chunk-EDXVE4YY-CXhcVSEI.cjs +1 -0
  55. package/dist/chunks/chunk-ENJZ2VHE-BgpbBBSF.cjs +10 -0
  56. package/dist/chunks/chunk-ENJZ2VHE-COIAdqL4.mjs +566 -0
  57. package/dist/chunks/chunk-FMBD7UC4-CUTvay8e.mjs +5 -0
  58. package/dist/chunks/chunk-FMBD7UC4-DCJ-fphu.cjs +15 -0
  59. package/dist/chunks/chunk-FOC6F5B3-3FOtyf3P.mjs +20 -0
  60. package/dist/chunks/chunk-FOC6F5B3-C2-FyqYn.cjs +1 -0
  61. package/dist/chunks/chunk-ICPOFSXX-BUWZvUuu.cjs +122 -0
  62. package/dist/chunks/chunk-ICPOFSXX-Dn5WbEeN.mjs +3290 -0
  63. package/dist/chunks/chunk-K5T4RW27-CX5gsk1T.cjs +94 -0
  64. package/dist/chunks/chunk-K5T4RW27-De7GqZCP.mjs +16372 -0
  65. package/dist/chunks/chunk-KGLVRYIC-Cwvjry7S.cjs +1 -0
  66. package/dist/chunks/chunk-KGLVRYIC-sDQUxLS7.mjs +20 -0
  67. package/dist/chunks/chunk-LIHQZDEY-BC8om0l2.cjs +1 -0
  68. package/dist/chunks/chunk-LIHQZDEY-BoY9X2Wj.mjs +55 -0
  69. package/dist/chunks/chunk-ORNJ4GCN-CYLjqcXc.mjs +25 -0
  70. package/dist/chunks/chunk-ORNJ4GCN-CoC7A1vn.cjs +1 -0
  71. package/dist/chunks/chunk-OYMX7WX6-Bbwq_g2w.mjs +2038 -0
  72. package/dist/chunks/chunk-OYMX7WX6-D3csU8-J.cjs +231 -0
  73. package/dist/chunks/chunk-QZHKN3VN-Bs3XaH0U.mjs +12 -0
  74. package/dist/chunks/chunk-QZHKN3VN-Db_x7kn8.cjs +1 -0
  75. package/dist/chunks/chunk-U2HBQHQK-CEwYxA8R.cjs +70 -0
  76. package/dist/chunks/chunk-U2HBQHQK-DLyzqElq.mjs +1875 -0
  77. package/dist/chunks/chunk-X2U36JSP-BY9JBwLQ.cjs +1 -0
  78. package/dist/chunks/chunk-X2U36JSP-UKGkP2m1.mjs +68 -0
  79. package/dist/chunks/chunk-XPW4576I-2i_ZgZLs.mjs +1146 -0
  80. package/dist/chunks/chunk-XPW4576I-Ym5mFsxv.cjs +32 -0
  81. package/dist/chunks/chunk-YZCP3GAM-C2GbOoUx.mjs +60 -0
  82. package/dist/chunks/chunk-YZCP3GAM-WMeXt5aH.cjs +1 -0
  83. package/dist/chunks/chunk-ZZ45TVLE-CeD1lNAB.cjs +1 -0
  84. package/dist/chunks/chunk-ZZ45TVLE-DyYus02Y.mjs +33 -0
  85. package/dist/chunks/classDiagram-6PBFFD2Q-DNHZ3qE5.mjs +30 -0
  86. package/dist/chunks/classDiagram-6PBFFD2Q-DWcC9USb.cjs +1 -0
  87. package/dist/chunks/classDiagram-v2-HSJHXN6E-BXKTiJNh.cjs +1 -0
  88. package/dist/chunks/classDiagram-v2-HSJHXN6E-GgfA5-jG.mjs +30 -0
  89. package/dist/chunks/clone-DeEumpiC.mjs +8 -0
  90. package/dist/chunks/clone-gX2HWen_.cjs +1 -0
  91. package/dist/chunks/constants-BYCpx4v_.cjs +457 -0
  92. package/dist/chunks/constants-Bhk7u_hm.mjs +3432 -0
  93. package/dist/chunks/cose-bilkent-S5V4N54A-BuQ-Gx1y.mjs +2246 -0
  94. package/dist/chunks/cose-bilkent-S5V4N54A-CdxjlgEx.cjs +1 -0
  95. package/dist/chunks/dagre-BVQ5RQE_.mjs +1483 -0
  96. package/dist/chunks/dagre-D9QEFKwC.cjs +1 -0
  97. package/dist/chunks/dagre-KV5264BT-BxQkkVxZ.mjs +298 -0
  98. package/dist/chunks/dagre-KV5264BT-Dz_FEBZU.cjs +4 -0
  99. package/dist/chunks/diagram-5BDNPKRD-Cf9AymAx.cjs +10 -0
  100. package/dist/chunks/diagram-5BDNPKRD-joiZwmh1.mjs +112 -0
  101. package/dist/chunks/diagram-G4DWMVQ6-3CAnipxw.cjs +24 -0
  102. package/dist/chunks/diagram-G4DWMVQ6-DrvbpYBX.mjs +546 -0
  103. package/dist/chunks/diagram-MMDJMWI5-B3CwY62T.mjs +234 -0
  104. package/dist/chunks/diagram-MMDJMWI5-DMrk0xwH.cjs +43 -0
  105. package/dist/chunks/diagram-TYMM5635-B3g66i1E.mjs +144 -0
  106. package/dist/chunks/diagram-TYMM5635-BAuYHtjV.cjs +24 -0
  107. package/dist/chunks/erDiagram-SMLLAGMA-4Ks-44BH.cjs +85 -0
  108. package/dist/chunks/erDiagram-SMLLAGMA-Bw6U_hHz.mjs +1712 -0
  109. package/dist/chunks/flowDiagram-DWJPFMVM-D2yMfIFs.mjs +4175 -0
  110. package/dist/chunks/flowDiagram-DWJPFMVM-O6dDtont.cjs +162 -0
  111. package/dist/chunks/ganttDiagram-T4ZO3ILL-D-ymktbJ.cjs +292 -0
  112. package/dist/chunks/ganttDiagram-T4ZO3ILL-SEs0Ez0p.mjs +3083 -0
  113. package/dist/chunks/gitGraph-7Q5UKJZL-BLhgGqhG.cjs +1 -0
  114. package/dist/chunks/gitGraph-7Q5UKJZL-DbRxS8Lo.mjs +3 -0
  115. package/dist/chunks/gitGraphDiagram-UUTBAWPF-BSuqMw-A.cjs +106 -0
  116. package/dist/chunks/gitGraphDiagram-UUTBAWPF-BpVIPN2N.mjs +792 -0
  117. package/dist/chunks/graphlib-C2L_nEcM.cjs +1 -0
  118. package/dist/chunks/graphlib-Cpp6Todw.mjs +225 -0
  119. package/dist/chunks/i18next-loader-BJAXtkt3.cjs +1 -0
  120. package/dist/chunks/i18next-loader-dnJtS6Nb.mjs +35 -0
  121. package/dist/chunks/info-OMHHGYJF-BRxQdcvB.mjs +3 -0
  122. package/dist/chunks/info-OMHHGYJF-Cb4wPKNP.cjs +1 -0
  123. package/dist/chunks/infoDiagram-42DDH7IO-BNAE_Dp2.cjs +2 -0
  124. package/dist/chunks/infoDiagram-42DDH7IO-JYmpv-Gn.mjs +29 -0
  125. package/dist/chunks/isEmpty-BYDpYNyM.cjs +1 -0
  126. package/dist/chunks/isEmpty-Bgy1eL0m.mjs +35 -0
  127. package/dist/chunks/ishikawaDiagram-UXIWVN3A-Ca_1igMn.cjs +70 -0
  128. package/dist/chunks/ishikawaDiagram-UXIWVN3A-ClkZz1Tc.mjs +719 -0
  129. package/dist/chunks/journeyDiagram-VCZTEJTY-BTzeo896.mjs +885 -0
  130. package/dist/chunks/journeyDiagram-VCZTEJTY-D69nfb5v.cjs +139 -0
  131. package/dist/chunks/kanban-definition-6JOO6SKY-BTSuFyjj.cjs +89 -0
  132. package/dist/chunks/kanban-definition-6JOO6SKY-C2Jk5rDA.mjs +980 -0
  133. package/dist/chunks/lightweight-i18n-T_Nc45AF.cjs +1 -0
  134. package/dist/chunks/lightweight-i18n-qpzXlOVm.mjs +344 -0
  135. package/dist/chunks/line-CjJKN63i.cjs +1 -0
  136. package/dist/chunks/line-zarcRAiW.mjs +34 -0
  137. package/dist/chunks/linear-CDUWrVHa.cjs +1 -0
  138. package/dist/chunks/linear-CXe29GGg.mjs +289 -0
  139. package/dist/chunks/mdast-util-math-BfFBcnFx.cjs +5 -0
  140. package/dist/chunks/mdast-util-math-CqPx3t0S.mjs +151 -0
  141. package/dist/chunks/mermaid-parser.core-BXANIhlc.mjs +57 -0
  142. package/dist/chunks/mermaid-parser.core-DMmP6uoD.cjs +3 -0
  143. package/dist/chunks/mermaid.core-A4e6ZJqs.mjs +977 -0
  144. package/dist/chunks/mermaid.core-C66G0J-z.cjs +10 -0
  145. package/dist/chunks/messages--BWLKiOP2.mjs +319 -0
  146. package/dist/chunks/messages--LI6Qp0h.mjs +319 -0
  147. package/dist/chunks/messages-4TiLLTpr2.cjs +1 -0
  148. package/dist/chunks/messages-7ul_s8GB2.mjs +319 -0
  149. package/dist/chunks/messages-8BZGqPD1.cjs +1 -0
  150. package/dist/chunks/messages-96ztlozp.cjs +1 -0
  151. package/dist/chunks/messages-B-_ZQLp5.mjs +319 -0
  152. package/dist/chunks/messages-B1YSYW3Y.cjs +1 -0
  153. package/dist/chunks/messages-B3E33lPt2.mjs +319 -0
  154. package/dist/chunks/messages-BABN8cuN.mjs +319 -0
  155. package/dist/chunks/messages-BDAXqxYw.cjs +1 -0
  156. package/dist/chunks/messages-BE0YZo6f.cjs +1 -0
  157. package/dist/chunks/messages-BIg9D7T52.cjs +1 -0
  158. package/dist/chunks/messages-BKtPvquH2.mjs +319 -0
  159. package/dist/chunks/messages-BMKq6Ps12.cjs +1 -0
  160. package/dist/chunks/messages-BMqvMau_2.mjs +319 -0
  161. package/dist/chunks/messages-BNmaVDtf.mjs +319 -0
  162. package/dist/chunks/messages-BRRMkfZY2.cjs +1 -0
  163. package/dist/chunks/messages-BUg0EGM6.cjs +1 -0
  164. package/dist/chunks/messages-BV88VXs-2.mjs +319 -0
  165. package/dist/chunks/messages-BVAjj_W_2.mjs +319 -0
  166. package/dist/chunks/messages-BWd6mmTm.mjs +319 -0
  167. package/dist/chunks/messages-BXce9Dbm.mjs +319 -0
  168. package/dist/chunks/messages-B_OU8dr_.mjs +319 -0
  169. package/dist/chunks/messages-B_VpqVFy.mjs +319 -0
  170. package/dist/chunks/messages-B_t9669l.mjs +319 -0
  171. package/dist/chunks/messages-Begh-7SQ.cjs +1 -0
  172. package/dist/chunks/messages-BfTeMiOT.cjs +1 -0
  173. package/dist/chunks/messages-BguYUD04.cjs +1 -0
  174. package/dist/chunks/messages-Bi5NKhkL.cjs +1 -0
  175. package/dist/chunks/messages-BliJJjNK2.cjs +1 -0
  176. package/dist/chunks/messages-BmSnovX9.cjs +1 -0
  177. package/dist/chunks/messages-BoZAdwRU2.mjs +319 -0
  178. package/dist/chunks/messages-Bp-PMdAJ.mjs +319 -0
  179. package/dist/chunks/messages-BphoNqXl2.mjs +319 -0
  180. package/dist/chunks/messages-Bs5HM4rw2.cjs +1 -0
  181. package/dist/chunks/messages-BtZSlvVR.cjs +1 -0
  182. package/dist/chunks/messages-Btg_N5Nj2.cjs +1 -0
  183. package/dist/chunks/messages-C67MLHmh.cjs +1 -0
  184. package/dist/chunks/messages-C6RXCX1D2.mjs +319 -0
  185. package/dist/chunks/messages-C6Zo4thu.mjs +319 -0
  186. package/dist/chunks/messages-C7QEUxQf2.cjs +1 -0
  187. package/dist/chunks/messages-CB-RDoMj2.cjs +1 -0
  188. package/dist/chunks/messages-CBOtPEE5.cjs +1 -0
  189. package/dist/chunks/messages-CBoKI_4k2.mjs +319 -0
  190. package/dist/chunks/messages-CCMMPgcH.mjs +319 -0
  191. package/dist/chunks/messages-CFvaU-9Q2.mjs +319 -0
  192. package/dist/chunks/messages-CHDxRwD8.mjs +319 -0
  193. package/dist/chunks/messages-CJWSRA8r.cjs +1 -0
  194. package/dist/chunks/messages-CJaj0WrV.mjs +319 -0
  195. package/dist/chunks/messages-CLnZAk7s.mjs +319 -0
  196. package/dist/chunks/messages-CNWWk9zU.cjs +1 -0
  197. package/dist/chunks/messages-CO4IPaU22.mjs +319 -0
  198. package/dist/chunks/messages-CQii-Hly.mjs +319 -0
  199. package/dist/chunks/messages-CSPoZeJd.cjs +1 -0
  200. package/dist/chunks/messages-CThWJOaj2.cjs +1 -0
  201. package/dist/chunks/messages-CWbag2W1.mjs +319 -0
  202. package/dist/chunks/messages-CWfPtitC.mjs +319 -0
  203. package/dist/chunks/messages-CYh8BT-U2.cjs +1 -0
  204. package/dist/chunks/messages-CZAwmrBN2.mjs +319 -0
  205. package/dist/chunks/messages-CcmzbJED2.mjs +319 -0
  206. package/dist/chunks/messages-Cdp2ao16.cjs +1 -0
  207. package/dist/chunks/messages-CeSGFPaX.mjs +319 -0
  208. package/dist/chunks/messages-CfmN_C_V2.cjs +1 -0
  209. package/dist/chunks/messages-CgTWiYXl.mjs +319 -0
  210. package/dist/chunks/messages-CiqFmj282.mjs +319 -0
  211. package/dist/chunks/messages-Cj1I1bdS.mjs +319 -0
  212. package/dist/chunks/messages-CktwPONk2.cjs +1 -0
  213. package/dist/chunks/messages-ClMbt_082.cjs +1 -0
  214. package/dist/chunks/messages-ClfpoVLB.cjs +1 -0
  215. package/dist/chunks/messages-CmcpUpmY2.cjs +1 -0
  216. package/dist/chunks/messages-CnNUiCOF2.cjs +1 -0
  217. package/dist/chunks/messages-Cq-tyBQ7.cjs +1 -0
  218. package/dist/chunks/messages-Cqs6tnMT.mjs +319 -0
  219. package/dist/chunks/messages-CrPQatEP.cjs +1 -0
  220. package/dist/chunks/messages-CtNhn2A72.cjs +1 -0
  221. package/dist/chunks/messages-Cw-JQsbB.cjs +1 -0
  222. package/dist/chunks/messages-CxLZNPP22.mjs +319 -0
  223. package/dist/chunks/messages-D2to7PFh.mjs +319 -0
  224. package/dist/chunks/messages-D7GNxw46.cjs +1 -0
  225. package/dist/chunks/messages-DDqbUQPS2.cjs +1 -0
  226. package/dist/chunks/messages-DIsfRggy.mjs +319 -0
  227. package/dist/chunks/messages-DLvqdeVe.mjs +319 -0
  228. package/dist/chunks/messages-DMukq8ei2.cjs +1 -0
  229. package/dist/chunks/messages-DOJ7TGKc.mjs +319 -0
  230. package/dist/chunks/messages-DPpKBEMV.mjs +319 -0
  231. package/dist/chunks/messages-DWDt4hEW.mjs +319 -0
  232. package/dist/chunks/messages-DYPc3t5L.cjs +1 -0
  233. package/dist/chunks/messages-DYRRi1JW.mjs +319 -0
  234. package/dist/chunks/messages-DYbP7_iL.cjs +1 -0
  235. package/dist/chunks/messages-D_gbD8W22.mjs +319 -0
  236. package/dist/chunks/messages-DaQ1XgNk.mjs +319 -0
  237. package/dist/chunks/messages-DjW1_-Ba2.mjs +319 -0
  238. package/dist/chunks/messages-Dop11yxi.mjs +319 -0
  239. package/dist/chunks/messages-DoyFY1Ye.mjs +319 -0
  240. package/dist/chunks/messages-DpjZ6YjX.cjs +1 -0
  241. package/dist/chunks/messages-DprfonW1.mjs +319 -0
  242. package/dist/chunks/messages-Dq8w46wu.cjs +1 -0
  243. package/dist/chunks/messages-DqbBTg1F2.mjs +319 -0
  244. package/dist/chunks/messages-DsGOj3A62.cjs +1 -0
  245. package/dist/chunks/messages-Dt6sbdaY.mjs +319 -0
  246. package/dist/chunks/messages-Dv3xqn-c.mjs +319 -0
  247. package/dist/chunks/messages-DwZCK3WR2.cjs +1 -0
  248. package/dist/chunks/messages-G-grLA6L2.cjs +1 -0
  249. package/dist/chunks/messages-HmyGBKiy2.cjs +1 -0
  250. package/dist/chunks/messages-IsKrH6md2.mjs +319 -0
  251. package/dist/chunks/messages-L1H9KlM8.cjs +1 -0
  252. package/dist/chunks/messages-OwCNaUA2.cjs +1 -0
  253. package/dist/chunks/messages-Q1fgq2tw.cjs +1 -0
  254. package/dist/chunks/messages-RLMDvD9N.mjs +319 -0
  255. package/dist/chunks/messages-SGrUP3jU2.mjs +319 -0
  256. package/dist/chunks/messages-TET2HqbJ.mjs +319 -0
  257. package/dist/chunks/messages-UR9AknuE.cjs +1 -0
  258. package/dist/chunks/messages-UXbrSqP4.mjs +319 -0
  259. package/dist/chunks/messages-UlQUIo4t.cjs +1 -0
  260. package/dist/chunks/messages-VO5bBaDw2.cjs +1 -0
  261. package/dist/chunks/messages-Vz-ouTEN.mjs +319 -0
  262. package/dist/chunks/messages-Z5hg0_Dz2.mjs +319 -0
  263. package/dist/chunks/messages-bBZDrpto2.mjs +319 -0
  264. package/dist/chunks/messages-ipwQdTtE.cjs +1 -0
  265. package/dist/chunks/messages-jXbN1DEs.mjs +319 -0
  266. package/dist/chunks/messages-kon7ablY2.cjs +1 -0
  267. package/dist/chunks/messages-oeTrLt0-.cjs +1 -0
  268. package/dist/chunks/messages-qga5_rrO.cjs +1 -0
  269. package/dist/chunks/messages-sEnNaZIo.cjs +1 -0
  270. package/dist/chunks/messages-szOBKu5g.cjs +1 -0
  271. package/dist/chunks/messages-tZ7nZ7qL.cjs +1 -0
  272. package/dist/chunks/messages-u_dR89Qy.mjs +319 -0
  273. package/dist/chunks/messages-wDo4f3f9.cjs +1 -0
  274. package/dist/chunks/messages-wxVdFEgz2.mjs +319 -0
  275. package/dist/chunks/messages-x3ljzuuQ2.cjs +1 -0
  276. package/dist/chunks/messages-x6wDbfws2.mjs +319 -0
  277. package/dist/chunks/messages-ygmjC_Dc.cjs +1 -0
  278. package/dist/chunks/messages-zPVJyoxM.cjs +1 -0
  279. package/dist/chunks/micromark-extension-math-Cm8w3ABm.cjs +1 -0
  280. package/dist/chunks/micromark-extension-math-cDSPzUWY.mjs +169 -0
  281. package/dist/chunks/mindmap-definition-QFDTVHPH-DLO594eM.cjs +96 -0
  282. package/dist/chunks/mindmap-definition-QFDTVHPH-QxqvL96A.mjs +1013 -0
  283. package/dist/chunks/notifier-CfO3Icvp.cjs +1 -0
  284. package/dist/chunks/notifier-DMdYq9FS.mjs +73 -0
  285. package/dist/chunks/ordinal-DgAmiD5I.mjs +65 -0
  286. package/dist/chunks/ordinal-mgpK7IL3.cjs +1 -0
  287. package/dist/chunks/packet-4T2RLAQJ-BQYK4Pey.cjs +1 -0
  288. package/dist/chunks/packet-4T2RLAQJ-BwgNXqij.mjs +3 -0
  289. package/dist/chunks/pie-ZZUOXDRM-BLh1-ocA.cjs +1 -0
  290. package/dist/chunks/pie-ZZUOXDRM-CrDtyZu4.mjs +3 -0
  291. package/dist/chunks/pieDiagram-DEJITSTG-CGduyUgA.mjs +179 -0
  292. package/dist/chunks/pieDiagram-DEJITSTG-Do5jGsL7.cjs +30 -0
  293. package/dist/chunks/prism-bash-OGjZLOVe.cjs +1 -0
  294. package/dist/chunks/prism-bash-oISNNULp.mjs +175 -0
  295. package/dist/chunks/prism-c-1g9CdJOp.cjs +1 -0
  296. package/dist/chunks/prism-c-MtM8JocP.mjs +54 -0
  297. package/dist/chunks/prism-cpp-CORR584T.cjs +1 -0
  298. package/dist/chunks/prism-cpp-DswQJFJz.mjs +63 -0
  299. package/dist/chunks/prism-csharp-BqZp_TTb.cjs +1 -0
  300. package/dist/chunks/prism-csharp-GIfQrsqe.mjs +236 -0
  301. package/dist/chunks/prism-css-BLyqeHZR.mjs +55 -0
  302. package/dist/chunks/prism-css-DmF38Kcs.cjs +1 -0
  303. package/dist/chunks/prism-dart-CFseeodJ.cjs +1 -0
  304. package/dist/chunks/prism-dart-DbCi1QVI.mjs +52 -0
  305. package/dist/chunks/prism-docker-BOsXo4aW.cjs +1 -0
  306. package/dist/chunks/prism-docker-CUCbqggk.mjs +75 -0
  307. package/dist/chunks/prism-go-DVHXGmKb.mjs +20 -0
  308. package/dist/chunks/prism-go-DsEyoP6D.cjs +1 -0
  309. package/dist/chunks/prism-graphql-DGEYZFbw.mjs +114 -0
  310. package/dist/chunks/prism-graphql-DqXh7GRP.cjs +1 -0
  311. package/dist/chunks/prism-java-CzQtfd6W.mjs +99 -0
  312. package/dist/chunks/prism-java-DQn4zrh0.cjs +1 -0
  313. package/dist/chunks/prism-javascript-CAkVOGaq.mjs +101 -0
  314. package/dist/chunks/prism-javascript-UQPp4ffL.cjs +1 -0
  315. package/dist/chunks/prism-json-B-63BF6R.cjs +1 -0
  316. package/dist/chunks/prism-json-BSGjg8pt.mjs +25 -0
  317. package/dist/chunks/prism-kotlin-D9r_epW6.mjs +64 -0
  318. package/dist/chunks/prism-kotlin-DmCIViWe.cjs +1 -0
  319. package/dist/chunks/prism-latex-Bcpg2uQr.cjs +1 -0
  320. package/dist/chunks/prism-latex-o70KNu9w.mjs +43 -0
  321. package/dist/chunks/prism-lua-7od8jpGg.mjs +17 -0
  322. package/dist/chunks/prism-lua-DyMxrgA_.cjs +1 -0
  323. package/dist/chunks/prism-markdown-BY8dZr_8.cjs +1 -0
  324. package/dist/chunks/prism-markdown-CI62y6qt.mjs +251 -0
  325. package/dist/chunks/prism-markup-DFqZi51m.mjs +116 -0
  326. package/dist/chunks/prism-markup-OdaHxDBn.cjs +1 -0
  327. package/dist/chunks/prism-markup-templating-Cnde-rJf.cjs +1 -0
  328. package/dist/chunks/prism-markup-templating-DTIDwO2f.mjs +39 -0
  329. package/dist/chunks/prism-php-BFUaOiLc.mjs +277 -0
  330. package/dist/chunks/prism-php-D8NgAYtH.cjs +1 -0
  331. package/dist/chunks/prism-python-CTRSlrPP.mjs +59 -0
  332. package/dist/chunks/prism-python-vAqxHcox.cjs +1 -0
  333. package/dist/chunks/prism-r-AA_ZuQPX.mjs +19 -0
  334. package/dist/chunks/prism-r-BsUW1w_m.cjs +1 -0
  335. package/dist/chunks/prism-ruby-BttDevO3.mjs +156 -0
  336. package/dist/chunks/prism-ruby-D7wGSPCx.cjs +1 -0
  337. package/dist/chunks/prism-rust-1wrW82hd.mjs +92 -0
  338. package/dist/chunks/prism-rust-C65Pn3Oc.cjs +1 -0
  339. package/dist/chunks/prism-scala-C26iL30s.mjs +43 -0
  340. package/dist/chunks/prism-scala-DuAsLUh6.cjs +1 -0
  341. package/dist/chunks/prism-sql-CSv-2hNx.mjs +29 -0
  342. package/dist/chunks/prism-sql-DHhl_Wd1.cjs +1 -0
  343. package/dist/chunks/prism-swift-2HH6IALG.cjs +1 -0
  344. package/dist/chunks/prism-swift-ik83oO-E.mjs +94 -0
  345. package/dist/chunks/prism-typescript-ChaS5gh3.mjs +38 -0
  346. package/dist/chunks/prism-typescript-Cuqi9QKv.cjs +1 -0
  347. package/dist/chunks/prism-yaml-BT2oArqa.cjs +1 -0
  348. package/dist/chunks/prism-yaml-YI3VZVAw.mjs +68 -0
  349. package/dist/chunks/quadrantDiagram-34T5L4WZ-BdwmsqYk.cjs +7 -0
  350. package/dist/chunks/quadrantDiagram-34T5L4WZ-BiqiWPbj.mjs +1960 -0
  351. package/dist/chunks/radar-PYXPWWZC-CYtB39az.mjs +3 -0
  352. package/dist/chunks/radar-PYXPWWZC-Drac9aGm.cjs +1 -0
  353. package/dist/chunks/requirementDiagram-MS252O5E-Cko4AhA2.mjs +2224 -0
  354. package/dist/chunks/requirementDiagram-MS252O5E-DBRLVWVl.cjs +84 -0
  355. package/dist/chunks/sankeyDiagram-XADWPNL6-BFWIr9AZ.mjs +909 -0
  356. package/dist/chunks/sankeyDiagram-XADWPNL6-Dq3Fi6gG.cjs +10 -0
  357. package/dist/chunks/sequenceDiagram-FGHM5R23-BKKZAG9O.cjs +157 -0
  358. package/dist/chunks/sequenceDiagram-FGHM5R23-DHFzzYeT.mjs +4181 -0
  359. package/dist/chunks/stateDiagram-FHFEXIEX-B1vJTyiJ.mjs +218 -0
  360. package/dist/chunks/stateDiagram-FHFEXIEX-DsHbgVAE.cjs +1 -0
  361. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DC206QSk.mjs +28 -0
  362. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DzkxV3pL.cjs +1 -0
  363. package/dist/chunks/timeline-definition-GMOUNBTQ-BlXvHIKp.mjs +1084 -0
  364. package/dist/chunks/timeline-definition-GMOUNBTQ-durCMWAX.cjs +120 -0
  365. package/dist/chunks/tools-Bc4e0xmz.mjs +13848 -0
  366. package/dist/chunks/tools-DaOdAh89.cjs +115 -0
  367. package/dist/chunks/treeView-SZITEDCU-BpLDxB8w.cjs +1 -0
  368. package/dist/chunks/treeView-SZITEDCU-DIbHFtMw.mjs +3 -0
  369. package/dist/chunks/treemap-W4RFUUIX-4t60SvLo.mjs +3 -0
  370. package/dist/chunks/treemap-W4RFUUIX-jpjSZokO.cjs +1 -0
  371. package/dist/chunks/vennDiagram-DHZGUBPP-BVxAvXiG.mjs +1876 -0
  372. package/dist/chunks/vennDiagram-DHZGUBPP-Dtpe6giP.cjs +34 -0
  373. package/dist/chunks/wardley-RL74JXVD-CBBTKC3H.cjs +1 -0
  374. package/dist/chunks/wardley-RL74JXVD-g5DNBeQ1.mjs +3 -0
  375. package/dist/chunks/wardleyDiagram-NUSXRM2D-BGORQqtQ.mjs +594 -0
  376. package/dist/chunks/wardleyDiagram-NUSXRM2D-ClsU-9PV.cjs +20 -0
  377. package/dist/chunks/xychartDiagram-5P7HB3ND-DplTzQI6.mjs +2017 -0
  378. package/dist/chunks/xychartDiagram-5P7HB3ND-EO18s7Fo.cjs +7 -0
  379. package/dist/full.cjs +1 -1
  380. package/dist/full.mjs +9 -9
  381. package/dist/locales.mjs +175 -68
  382. package/dist/markdown.cjs +2 -2
  383. package/dist/markdown.mjs +392 -384
  384. package/dist/messages-28LGzsNB.mjs +319 -0
  385. package/dist/messages-35X8GsGw2.mjs +319 -0
  386. package/dist/messages-5ygX-4B92.mjs +319 -0
  387. package/dist/messages-83AcZNii.mjs +319 -0
  388. package/dist/messages-B-OvX3Vz2.mjs +319 -0
  389. package/dist/messages-B56oJj_X2.mjs +319 -0
  390. package/dist/messages-B7peBJXJ2.mjs +319 -0
  391. package/dist/messages-BGwTNk0S2.mjs +319 -0
  392. package/dist/messages-BH-SS-wY.mjs +319 -0
  393. package/dist/messages-BPX8V6tu.mjs +319 -0
  394. package/dist/messages-BUp8P-0d.mjs +319 -0
  395. package/dist/messages-BX3WM02N2.mjs +319 -0
  396. package/dist/messages-BZrMZvRb2.mjs +319 -0
  397. package/dist/messages-B_0akf3T.mjs +319 -0
  398. package/dist/messages-BaE65Wtr.mjs +319 -0
  399. package/dist/messages-BdSGtvzM.mjs +319 -0
  400. package/dist/messages-BerXSWcD.mjs +319 -0
  401. package/dist/messages-BqKaz7yB2.mjs +319 -0
  402. package/dist/messages-BrqBJ6W_2.mjs +319 -0
  403. package/dist/messages-BvgGIpxE2.mjs +319 -0
  404. package/dist/messages-BxSe3rKx.mjs +319 -0
  405. package/dist/messages-ByD9AIJL2.mjs +319 -0
  406. package/dist/messages-CDJS_Tu2.mjs +319 -0
  407. package/dist/messages-CF9R29jb.mjs +319 -0
  408. package/dist/messages-CIbK29nM.mjs +319 -0
  409. package/dist/messages-CMD0tgb2.mjs +319 -0
  410. package/dist/messages-CMW0tO_d2.mjs +319 -0
  411. package/dist/messages-CMrYQJ5x2.mjs +319 -0
  412. package/dist/messages-CQZJnkss2.mjs +319 -0
  413. package/dist/messages-CRnolvNg.mjs +319 -0
  414. package/dist/messages-CS74u2hS2.mjs +319 -0
  415. package/dist/messages-CTxao0S32.mjs +319 -0
  416. package/dist/messages-CZl83L7T.mjs +319 -0
  417. package/dist/messages-C_kloJSr.mjs +319 -0
  418. package/dist/messages-Cfe_CPBW.mjs +319 -0
  419. package/dist/messages-Ch0oiQp5.mjs +319 -0
  420. package/dist/messages-Cigiz7tI.mjs +319 -0
  421. package/dist/messages-Cjac781Z.mjs +319 -0
  422. package/dist/messages-CqVFa1ZA.mjs +319 -0
  423. package/dist/messages-CwDgZL5-.mjs +319 -0
  424. package/dist/messages-Czd64cAx.mjs +319 -0
  425. package/dist/messages-CzxMz1wI.mjs +319 -0
  426. package/dist/messages-D2SkVxgV.mjs +319 -0
  427. package/dist/messages-D4ZsN52E2.mjs +319 -0
  428. package/dist/messages-DG0aBs1m2.mjs +319 -0
  429. package/dist/messages-DIkQAMxZ2.mjs +319 -0
  430. package/dist/messages-DJBc5_b_2.mjs +319 -0
  431. package/dist/messages-DN8oOcrS.mjs +319 -0
  432. package/dist/messages-DV5yhL0q.mjs +319 -0
  433. package/dist/messages-DVI1iDTn2.mjs +319 -0
  434. package/dist/messages-DVzrCNrY.mjs +319 -0
  435. package/dist/messages-DXwJOr-H2.mjs +319 -0
  436. package/dist/messages-D_edVQrv.mjs +319 -0
  437. package/dist/messages-DbODRieP.mjs +319 -0
  438. package/dist/messages-KMQrhAva.mjs +319 -0
  439. package/dist/messages-L4NsHX-g.mjs +319 -0
  440. package/dist/messages-PPuF4CRy.mjs +319 -0
  441. package/dist/messages-UTJEPSiL.mjs +319 -0
  442. package/dist/messages-Wa5EXypv2.mjs +319 -0
  443. package/dist/messages-Wfxn9jZh.mjs +319 -0
  444. package/dist/messages-XieI4326.mjs +319 -0
  445. package/dist/messages-ZASZzduy.mjs +319 -0
  446. package/dist/messages-Z_3X1FJJ2.mjs +319 -0
  447. package/dist/messages-huyV3ICu.mjs +319 -0
  448. package/dist/messages-rd6zBwaX2.mjs +319 -0
  449. package/dist/messages-sBpTj74Q.mjs +319 -0
  450. package/dist/messages-twD0eDdc.mjs +319 -0
  451. package/dist/react.cjs +1 -1
  452. package/dist/react.mjs +25 -26
  453. package/dist/tools.cjs +1 -1
  454. package/dist/tools.mjs +3 -3
  455. package/dist/vendor.LICENSE.txt +141 -899
  456. package/package.json +12 -6
  457. package/src/components/constants/data-attributes.ts +2 -0
  458. package/src/components/dom.ts +4 -2
  459. package/src/components/i18n/locales/am/messages.json +109 -1
  460. package/src/components/i18n/locales/ar/messages.json +109 -1
  461. package/src/components/i18n/locales/az/messages.json +109 -1
  462. package/src/components/i18n/locales/bg/messages.json +109 -1
  463. package/src/components/i18n/locales/bn/messages.json +109 -1
  464. package/src/components/i18n/locales/bs/messages.json +109 -1
  465. package/src/components/i18n/locales/cs/messages.json +109 -1
  466. package/src/components/i18n/locales/da/messages.json +109 -1
  467. package/src/components/i18n/locales/de/messages.json +110 -2
  468. package/src/components/i18n/locales/dv/messages.json +109 -1
  469. package/src/components/i18n/locales/el/messages.json +109 -1
  470. package/src/components/i18n/locales/en/messages.json +108 -1
  471. package/src/components/i18n/locales/es/messages.json +109 -1
  472. package/src/components/i18n/locales/et/messages.json +109 -1
  473. package/src/components/i18n/locales/fa/messages.json +109 -1
  474. package/src/components/i18n/locales/fi/messages.json +109 -1
  475. package/src/components/i18n/locales/fil/messages.json +109 -1
  476. package/src/components/i18n/locales/fr/messages.json +110 -2
  477. package/src/components/i18n/locales/gu/messages.json +109 -1
  478. package/src/components/i18n/locales/he/messages.json +109 -1
  479. package/src/components/i18n/locales/hi/messages.json +109 -1
  480. package/src/components/i18n/locales/hr/messages.json +109 -1
  481. package/src/components/i18n/locales/hu/messages.json +109 -1
  482. package/src/components/i18n/locales/hy/messages.json +109 -1
  483. package/src/components/i18n/locales/id/messages.json +109 -1
  484. package/src/components/i18n/locales/it/messages.json +109 -1
  485. package/src/components/i18n/locales/ja/messages.json +109 -1
  486. package/src/components/i18n/locales/ka/messages.json +109 -1
  487. package/src/components/i18n/locales/km/messages.json +109 -1
  488. package/src/components/i18n/locales/kn/messages.json +109 -1
  489. package/src/components/i18n/locales/ko/messages.json +109 -1
  490. package/src/components/i18n/locales/ku/messages.json +109 -1
  491. package/src/components/i18n/locales/lo/messages.json +109 -1
  492. package/src/components/i18n/locales/lt/messages.json +109 -1
  493. package/src/components/i18n/locales/lv/messages.json +109 -1
  494. package/src/components/i18n/locales/mk/messages.json +109 -1
  495. package/src/components/i18n/locales/ml/messages.json +109 -1
  496. package/src/components/i18n/locales/mn/messages.json +109 -1
  497. package/src/components/i18n/locales/mr/messages.json +109 -1
  498. package/src/components/i18n/locales/ms/messages.json +109 -1
  499. package/src/components/i18n/locales/my/messages.json +109 -1
  500. package/src/components/i18n/locales/ne/messages.json +109 -1
  501. package/src/components/i18n/locales/nl/messages.json +110 -2
  502. package/src/components/i18n/locales/no/messages.json +109 -1
  503. package/src/components/i18n/locales/pa/messages.json +109 -1
  504. package/src/components/i18n/locales/pl/messages.json +109 -1
  505. package/src/components/i18n/locales/ps/messages.json +109 -1
  506. package/src/components/i18n/locales/pt/messages.json +109 -1
  507. package/src/components/i18n/locales/ro/messages.json +109 -1
  508. package/src/components/i18n/locales/ru/messages.json +109 -1
  509. package/src/components/i18n/locales/sd/messages.json +109 -1
  510. package/src/components/i18n/locales/si/messages.json +109 -1
  511. package/src/components/i18n/locales/sk/messages.json +109 -1
  512. package/src/components/i18n/locales/sl/messages.json +109 -1
  513. package/src/components/i18n/locales/sq/messages.json +109 -1
  514. package/src/components/i18n/locales/sr/messages.json +109 -1
  515. package/src/components/i18n/locales/sv/messages.json +109 -1
  516. package/src/components/i18n/locales/sw/messages.json +109 -1
  517. package/src/components/i18n/locales/ta/messages.json +109 -1
  518. package/src/components/i18n/locales/te/messages.json +109 -1
  519. package/src/components/i18n/locales/th/messages.json +109 -1
  520. package/src/components/i18n/locales/tr/messages.json +109 -1
  521. package/src/components/i18n/locales/ug/messages.json +109 -1
  522. package/src/components/i18n/locales/uk/messages.json +109 -1
  523. package/src/components/i18n/locales/ur/messages.json +109 -1
  524. package/src/components/i18n/locales/vi/messages.json +109 -1
  525. package/src/components/i18n/locales/yi/messages.json +109 -1
  526. package/src/components/i18n/locales/zh/messages.json +109 -1
  527. package/src/components/icons/index.ts +59 -0
  528. package/src/components/inline-tools/inline-tool-code.ts +1 -1
  529. package/src/components/modules/api/toolbar.ts +6 -4
  530. package/src/components/modules/blockEvents/index.ts +9 -0
  531. package/src/components/modules/blockManager/operations.ts +14 -1
  532. package/src/components/modules/drag/DragController.ts +24 -3
  533. package/src/components/modules/paste/handlers/files-handler.ts +41 -4
  534. package/src/components/modules/paste/index.ts +5 -1
  535. package/src/components/modules/paste/tool-registry.ts +22 -12
  536. package/src/components/modules/toolbar/blockSettings.ts +14 -2
  537. package/src/components/modules/toolbar/index.ts +49 -16
  538. package/src/components/modules/toolbar/inline/selection-validator.ts +17 -0
  539. package/src/components/modules/toolbar/plus-button.ts +4 -2
  540. package/src/components/modules/toolbar/positioning.ts +27 -0
  541. package/src/components/modules/toolbar/settings-toggler.ts +16 -5
  542. package/src/components/modules/toolbar/tooltip.ts +59 -15
  543. package/src/components/modules/ui.ts +23 -8
  544. package/src/components/ui/toolbox.ts +92 -7
  545. package/src/components/utils/data-model-transform.ts +71 -1
  546. package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.const.ts +5 -4
  547. package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.ts +1 -0
  548. package/src/components/utils/popover/components/popover-item/popover-item-separator/popover-item-separator.const.ts +1 -1
  549. package/src/components/utils/popover/components/search-input/search-input.const.ts +3 -3
  550. package/src/components/utils/popover/popover-abstract.ts +137 -2
  551. package/src/components/utils/popover/popover-desktop.ts +260 -14
  552. package/src/components/utils/popover/popover-inline.ts +3 -2
  553. package/src/components/utils/popover/popover-nested-position.ts +132 -0
  554. package/src/components/utils/popover/popover-position.ts +46 -5
  555. package/src/components/utils/popover/popover.const.ts +6 -3
  556. package/src/components/utils/tooltip.ts +52 -8
  557. package/src/components/utils/top-layer.ts +137 -0
  558. package/src/playground/block-states-gallery.ts +123 -0
  559. package/src/playground/icon-gallery.ts +346 -0
  560. package/src/styles/checklist.css +70 -0
  561. package/src/styles/colors.css +666 -0
  562. package/src/styles/database.css +1176 -0
  563. package/src/styles/emoji-picker.css +58 -0
  564. package/src/styles/fonts.css +33 -0
  565. package/src/styles/image.css +1111 -0
  566. package/src/styles/isolation.css +204 -0
  567. package/src/styles/keyframes.css +62 -0
  568. package/src/styles/main.css +28 -2566
  569. package/src/styles/popover-animation.css +34 -0
  570. package/src/styles/preflight.css +283 -0
  571. package/src/styles/slash-search.css +52 -0
  572. package/src/styles/tables.css +154 -0
  573. package/src/styles/tokens.css +127 -0
  574. package/src/tools/callout/emoji-picker/index.ts +4 -2
  575. package/src/tools/code/code-keyboard.ts +70 -8
  576. package/src/tools/code/constants.ts +3 -9
  577. package/src/tools/code/dom-builder.ts +5 -1
  578. package/src/tools/code/index.ts +185 -25
  579. package/src/tools/code/language-detector.ts +47 -52
  580. package/src/tools/code/prism-applier.ts +183 -0
  581. package/src/tools/code/prism-loader.ts +197 -0
  582. package/src/tools/database/database-board-view.ts +3 -1
  583. package/src/tools/image/alt-popover.css +42 -0
  584. package/src/tools/image/alt-popover.ts +104 -0
  585. package/src/tools/image/constants.ts +25 -0
  586. package/src/tools/image/crop-editor.css +513 -0
  587. package/src/tools/image/crop-editor.ts +331 -0
  588. package/src/tools/image/crop-math.ts +117 -0
  589. package/src/tools/image/crop-modal.css +105 -0
  590. package/src/tools/image/crop-modal.ts +92 -0
  591. package/src/tools/image/empty-state.ts +407 -0
  592. package/src/tools/image/error-state.ts +69 -0
  593. package/src/tools/image/errors.ts +18 -0
  594. package/src/tools/image/i18n.ts +8 -0
  595. package/src/tools/image/index.ts +755 -0
  596. package/src/tools/image/resizer.ts +119 -0
  597. package/src/tools/image/spring.ts +16 -0
  598. package/src/tools/image/ui.ts +921 -0
  599. package/src/tools/image/uploader.ts +61 -0
  600. package/src/tools/image/uploading-state.ts +117 -0
  601. package/src/tools/index.ts +2 -0
  602. package/src/tools/toggle/constants.ts +3 -1
  603. package/src/types-internal/prismjs-components.d.ts +9 -0
  604. package/types/api/toolbar.d.ts +14 -1
  605. package/types/configs/blok-config.d.ts +24 -0
  606. package/types/tools/image.d.ts +72 -0
  607. package/types/utils/popover/popover.d.ts +27 -0
  608. package/dist/chunks/_basePickBy-6gOwWeg0.mjs +0 -166
  609. package/dist/chunks/_basePickBy-mUHvTE6c.cjs +0 -1
  610. package/dist/chunks/_baseUniq-BP5sM8qF.cjs +0 -1
  611. package/dist/chunks/_baseUniq-BcOWmEX6.mjs +0 -682
  612. package/dist/chunks/arc-kVpio4JL.mjs +0 -80
  613. package/dist/chunks/arc-lSzOinJz.cjs +0 -1
  614. package/dist/chunks/architecture-YZFGNWBL-BFcrDSEW.mjs +0 -3
  615. package/dist/chunks/architecture-YZFGNWBL-D91d5pcl.cjs +0 -1
  616. package/dist/chunks/architectureDiagram-Q4EWVU46-CN6p4Aji.mjs +0 -4066
  617. package/dist/chunks/architectureDiagram-Q4EWVU46-CyW5N5Ic.cjs +0 -36
  618. package/dist/chunks/blockDiagram-DXYQGD6D-BvZWa5Rv.mjs +0 -3074
  619. package/dist/chunks/blockDiagram-DXYQGD6D-DmhBCLgd.cjs +0 -132
  620. package/dist/chunks/blok-CNEP3LpI.cjs +0 -16
  621. package/dist/chunks/blok-DNvzyOYn.mjs +0 -13679
  622. package/dist/chunks/c-CQrSye6K.mjs +0 -5
  623. package/dist/chunks/c-DNJHkQXQ.cjs +0 -1
  624. package/dist/chunks/c4Diagram-AHTNJAMY-Cmc2PsEs.mjs +0 -2956
  625. package/dist/chunks/c4Diagram-AHTNJAMY-DU2IYTXY.cjs +0 -10
  626. package/dist/chunks/ccount-B7is2MU0.mjs +0 -10
  627. package/dist/chunks/ccount-DtzbJUOh.cjs +0 -1
  628. package/dist/chunks/channel-BTWFNzkv.mjs +0 -5
  629. package/dist/chunks/channel-BqhnS5zl.cjs +0 -1
  630. package/dist/chunks/chunk-2KRD3SAO-COfwt0om.cjs +0 -1
  631. package/dist/chunks/chunk-2KRD3SAO-DWLzBIZw.mjs +0 -20
  632. package/dist/chunks/chunk-336JU56O-CqWDeAp1.cjs +0 -1
  633. package/dist/chunks/chunk-336JU56O-DbaX7hyp.mjs +0 -49
  634. package/dist/chunks/chunk-426QAEUC-MjtXwzdI.cjs +0 -1
  635. package/dist/chunks/chunk-426QAEUC-pmH9mm_X.mjs +0 -13
  636. package/dist/chunks/chunk-4BX2VUAB-B1LZI9QZ.mjs +0 -19
  637. package/dist/chunks/chunk-4BX2VUAB-Zs4zJRk9.cjs +0 -1
  638. package/dist/chunks/chunk-4TB4RGXK-BC8qRYSD.mjs +0 -3250
  639. package/dist/chunks/chunk-4TB4RGXK-Bq0teBqe.cjs +0 -206
  640. package/dist/chunks/chunk-55IACEB6-CaLO8kWA.mjs +0 -8
  641. package/dist/chunks/chunk-55IACEB6-DyTTYuc2.cjs +0 -1
  642. package/dist/chunks/chunk-5FUZZQ4R-6rlcIGG-.cjs +0 -62
  643. package/dist/chunks/chunk-5FUZZQ4R-DAWdfx4J.mjs +0 -3786
  644. package/dist/chunks/chunk-5PVQY5BW-7Voh8aPS.mjs +0 -1122
  645. package/dist/chunks/chunk-5PVQY5BW-DmATt7Fz.cjs +0 -2
  646. package/dist/chunks/chunk-67CJDMHE-DSEGOn_f.mjs +0 -20
  647. package/dist/chunks/chunk-67CJDMHE-zWcmgvwZ.cjs +0 -1
  648. package/dist/chunks/chunk-7N4EOEYR-CAuNhdG9.cjs +0 -1
  649. package/dist/chunks/chunk-7N4EOEYR-CnSg1Hfu.mjs +0 -29
  650. package/dist/chunks/chunk-AA7GKIK3-BmatWFnp.mjs +0 -24
  651. package/dist/chunks/chunk-AA7GKIK3-YMbh5HEs.cjs +0 -1
  652. package/dist/chunks/chunk-BSJP7CBP-BtFfqv7R.mjs +0 -83
  653. package/dist/chunks/chunk-BSJP7CBP-CjkEoJDh.cjs +0 -1
  654. package/dist/chunks/chunk-CIAEETIT-BP9BiKe5.cjs +0 -1
  655. package/dist/chunks/chunk-CIAEETIT-nVgPUEW1.mjs +0 -20
  656. package/dist/chunks/chunk-EDXVE4YY-Bw1v2mUF.cjs +0 -1
  657. package/dist/chunks/chunk-EDXVE4YY-e7599cf4.mjs +0 -26
  658. package/dist/chunks/chunk-ENJZ2VHE-9fAN50L-.cjs +0 -10
  659. package/dist/chunks/chunk-ENJZ2VHE-DaMNdqfV.mjs +0 -566
  660. package/dist/chunks/chunk-FMBD7UC4-CH_SSwhS.cjs +0 -15
  661. package/dist/chunks/chunk-FMBD7UC4-xT5c0WSd.mjs +0 -5
  662. package/dist/chunks/chunk-FOC6F5B3-AxSG6qaj.mjs +0 -20
  663. package/dist/chunks/chunk-FOC6F5B3-ScFIigAO.cjs +0 -1
  664. package/dist/chunks/chunk-ICPOFSXX-DQ4NxQTM.cjs +0 -122
  665. package/dist/chunks/chunk-ICPOFSXX-DbL0YBQf.mjs +0 -3290
  666. package/dist/chunks/chunk-K5T4RW27-BdGvq1o8.cjs +0 -94
  667. package/dist/chunks/chunk-K5T4RW27-CYdwJMQV.mjs +0 -16372
  668. package/dist/chunks/chunk-KGLVRYIC-BwOmLwqF.mjs +0 -20
  669. package/dist/chunks/chunk-KGLVRYIC-uzPiXgAg.cjs +0 -1
  670. package/dist/chunks/chunk-LIHQZDEY-ChgbfPTz.cjs +0 -1
  671. package/dist/chunks/chunk-LIHQZDEY-Csx8-523.mjs +0 -55
  672. package/dist/chunks/chunk-ORNJ4GCN-CCDHRflI.mjs +0 -25
  673. package/dist/chunks/chunk-ORNJ4GCN-HF28XIop.cjs +0 -1
  674. package/dist/chunks/chunk-OYMX7WX6-BAoDgMPF.mjs +0 -2038
  675. package/dist/chunks/chunk-OYMX7WX6-CGUpemDb.cjs +0 -231
  676. package/dist/chunks/chunk-QZHKN3VN-D1myzhE_.mjs +0 -12
  677. package/dist/chunks/chunk-QZHKN3VN-d_ESXyai.cjs +0 -1
  678. package/dist/chunks/chunk-U2HBQHQK-BXyrI_xP.mjs +0 -1875
  679. package/dist/chunks/chunk-U2HBQHQK-D62A_XCV.cjs +0 -70
  680. package/dist/chunks/chunk-X2U36JSP-BEHpYlmW.cjs +0 -1
  681. package/dist/chunks/chunk-X2U36JSP-CXhWYelJ.mjs +0 -68
  682. package/dist/chunks/chunk-XPW4576I-BidQL50C.cjs +0 -32
  683. package/dist/chunks/chunk-XPW4576I-DOztVf6t.mjs +0 -1146
  684. package/dist/chunks/chunk-YZCP3GAM-DrkjtME-.mjs +0 -60
  685. package/dist/chunks/chunk-YZCP3GAM-DuLQPyT4.cjs +0 -1
  686. package/dist/chunks/chunk-ZZ45TVLE-CSFFLvxb.mjs +0 -33
  687. package/dist/chunks/chunk-ZZ45TVLE-CZOUDLGO.cjs +0 -1
  688. package/dist/chunks/classDiagram-6PBFFD2Q-Ci3S9iu3.mjs +0 -30
  689. package/dist/chunks/classDiagram-6PBFFD2Q-GDkPRBlp.cjs +0 -1
  690. package/dist/chunks/classDiagram-v2-HSJHXN6E-B4vt694Q.cjs +0 -1
  691. package/dist/chunks/classDiagram-v2-HSJHXN6E-BkaFKbgJ.mjs +0 -30
  692. package/dist/chunks/clone-WSLD7bVs.mjs +0 -8
  693. package/dist/chunks/clone-_XTzxdN3.cjs +0 -1
  694. package/dist/chunks/constants-DJjFgioo.cjs +0 -451
  695. package/dist/chunks/constants-DMsOCPcF.mjs +0 -3268
  696. package/dist/chunks/core-C8BHLAAO.cjs +0 -12
  697. package/dist/chunks/core-D2KrVz4a.mjs +0 -4501
  698. package/dist/chunks/cose-bilkent-S5V4N54A-BXBidSxC.mjs +0 -2246
  699. package/dist/chunks/cose-bilkent-S5V4N54A-RkR02HV4.cjs +0 -1
  700. package/dist/chunks/cpp-DVBevX-J.cjs +0 -1
  701. package/dist/chunks/cpp-DnMQuZPn.mjs +0 -16
  702. package/dist/chunks/csharp-ByiKf6DR.mjs +0 -3
  703. package/dist/chunks/csharp-CHUT4JOq.cjs +0 -1
  704. package/dist/chunks/css-BqsWMbBt.mjs +0 -3
  705. package/dist/chunks/css-QEheyxtB.cjs +0 -1
  706. package/dist/chunks/dagre-C7z2UZ4M.mjs +0 -1483
  707. package/dist/chunks/dagre-KV5264BT-B5pZgbkN.cjs +0 -4
  708. package/dist/chunks/dagre-KV5264BT-Ct6qUqKI.mjs +0 -298
  709. package/dist/chunks/dagre-VHP8Ngkv.cjs +0 -1
  710. package/dist/chunks/dart-aYsezAEv.mjs +0 -3
  711. package/dist/chunks/dart-jPH5d8ma.cjs +0 -1
  712. package/dist/chunks/diagram-5BDNPKRD-B9hNG7ht.mjs +0 -112
  713. package/dist/chunks/diagram-5BDNPKRD-C1llOHQP.cjs +0 -10
  714. package/dist/chunks/diagram-G4DWMVQ6-9_YOaVXe.mjs +0 -546
  715. package/dist/chunks/diagram-G4DWMVQ6-CLdEGHkn.cjs +0 -24
  716. package/dist/chunks/diagram-MMDJMWI5-CnbiCUM3.cjs +0 -43
  717. package/dist/chunks/diagram-MMDJMWI5-DmStUoNk.mjs +0 -234
  718. package/dist/chunks/diagram-TYMM5635-BtMB4AKf.cjs +0 -24
  719. package/dist/chunks/diagram-TYMM5635-DmrkkW85.mjs +0 -144
  720. package/dist/chunks/dockerfile-1GBIWF66.mjs +0 -3
  721. package/dist/chunks/dockerfile-B2jMQOes.cjs +0 -1
  722. package/dist/chunks/engine-javascript-CYa8VRAu.mjs +0 -2373
  723. package/dist/chunks/engine-javascript-HHRWd9yA.cjs +0 -141
  724. package/dist/chunks/erDiagram-SMLLAGMA-5vkZ5DwJ.mjs +0 -1712
  725. package/dist/chunks/erDiagram-SMLLAGMA-luvZB3lF.cjs +0 -85
  726. package/dist/chunks/flowDiagram-DWJPFMVM-BpYbAeYP.cjs +0 -162
  727. package/dist/chunks/flowDiagram-DWJPFMVM-CGTiQBd7.mjs +0 -4175
  728. package/dist/chunks/ganttDiagram-T4ZO3ILL-BNtXyM0I.mjs +0 -3083
  729. package/dist/chunks/ganttDiagram-T4ZO3ILL-BaWZufgI.cjs +0 -292
  730. package/dist/chunks/gitGraph-7Q5UKJZL-Ds_Z9h4o.cjs +0 -1
  731. package/dist/chunks/gitGraph-7Q5UKJZL-DxMmuJIv.mjs +0 -3
  732. package/dist/chunks/gitGraphDiagram-UUTBAWPF-CmQR-xZp.mjs +0 -792
  733. package/dist/chunks/gitGraphDiagram-UUTBAWPF-DjMU1Vyg.cjs +0 -106
  734. package/dist/chunks/go-4mRqLTld.mjs +0 -3
  735. package/dist/chunks/go-BX-cNLGO.cjs +0 -1
  736. package/dist/chunks/graphlib-BfwqhpXp.mjs +0 -225
  737. package/dist/chunks/graphlib-CYv_-0LK.cjs +0 -1
  738. package/dist/chunks/graphql-4Htarzhp.mjs +0 -11
  739. package/dist/chunks/graphql-BnxAS09v.cjs +0 -1
  740. package/dist/chunks/html-CAN0GHkJ.cjs +0 -1
  741. package/dist/chunks/html-DW39yhuS.mjs +0 -10
  742. package/dist/chunks/i18next-loader-CyDs2NKf.mjs +0 -35
  743. package/dist/chunks/i18next-loader-cGwOOjK3.cjs +0 -1
  744. package/dist/chunks/info-OMHHGYJF-ChWZqC0a.mjs +0 -3
  745. package/dist/chunks/info-OMHHGYJF-u0RRQ9Uo.cjs +0 -1
  746. package/dist/chunks/infoDiagram-42DDH7IO-BbV_tozh.mjs +0 -29
  747. package/dist/chunks/infoDiagram-42DDH7IO-DOYkYMWg.cjs +0 -2
  748. package/dist/chunks/isEmpty-BHdznGlG.cjs +0 -1
  749. package/dist/chunks/isEmpty-jlCmuYeg.mjs +0 -35
  750. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CbqoivFu.cjs +0 -70
  751. package/dist/chunks/ishikawaDiagram-UXIWVN3A-DJBG3b-A.mjs +0 -719
  752. package/dist/chunks/java-DD_iwrM-.mjs +0 -5
  753. package/dist/chunks/java-O-rzZ2Bn.cjs +0 -1
  754. package/dist/chunks/javascript-CJBlE5PB.mjs +0 -3
  755. package/dist/chunks/javascript-z9G2vOAZ.cjs +0 -1
  756. package/dist/chunks/journeyDiagram-VCZTEJTY-B5Peb7wS.cjs +0 -139
  757. package/dist/chunks/journeyDiagram-VCZTEJTY-BdMsFn3r.mjs +0 -885
  758. package/dist/chunks/json-C_epQRuA.cjs +0 -1
  759. package/dist/chunks/json-yRGZVu2_.mjs +0 -3
  760. package/dist/chunks/kanban-definition-6JOO6SKY-CwmSo6Ve.cjs +0 -89
  761. package/dist/chunks/kanban-definition-6JOO6SKY-ncNaxcxH.mjs +0 -980
  762. package/dist/chunks/kotlin-BmkhKZGf.mjs +0 -3
  763. package/dist/chunks/kotlin-Dj7KFgV1.cjs +0 -1
  764. package/dist/chunks/latex-BeVX0E4Z.mjs +0 -5
  765. package/dist/chunks/latex-u7qVP95p.cjs +0 -1
  766. package/dist/chunks/lightweight-i18n-Bb_VS9v5.mjs +0 -237
  767. package/dist/chunks/lightweight-i18n-CGBjC2TJ.cjs +0 -1
  768. package/dist/chunks/line-B7XG48Uf.cjs +0 -1
  769. package/dist/chunks/line-CWJNfvdn.mjs +0 -34
  770. package/dist/chunks/linear-BU4OjSPS.mjs +0 -289
  771. package/dist/chunks/linear-D5j5Vgij.cjs +0 -1
  772. package/dist/chunks/lua-6ceNckPi.cjs +0 -1
  773. package/dist/chunks/lua-CPnWrc7C.mjs +0 -5
  774. package/dist/chunks/markdown-DSiOSAsn.mjs +0 -3
  775. package/dist/chunks/markdown-Vce1p-mO.cjs +0 -1
  776. package/dist/chunks/mdast-util-math-B9OHoBuN.cjs +0 -5
  777. package/dist/chunks/mdast-util-math-D42zbZda.mjs +0 -151
  778. package/dist/chunks/mermaid-C2y_3PIg.mjs +0 -3
  779. package/dist/chunks/mermaid-Cu5vPKfS.cjs +0 -1
  780. package/dist/chunks/mermaid-parser.core-BrZQFEht.cjs +0 -3
  781. package/dist/chunks/mermaid-parser.core-DBhkcRo7.mjs +0 -57
  782. package/dist/chunks/mermaid.core-GiTRPJLF.cjs +0 -10
  783. package/dist/chunks/mermaid.core-uSzF9nF1.mjs +0 -977
  784. package/dist/chunks/messages--CbdZY2w.cjs +0 -1
  785. package/dist/chunks/messages--c74ihtM.mjs +0 -212
  786. package/dist/chunks/messages-041mNyU42.mjs +0 -212
  787. package/dist/chunks/messages-1hpCmcb5.cjs +0 -1
  788. package/dist/chunks/messages-44SP7ajI.mjs +0 -212
  789. package/dist/chunks/messages-4_3WFJMy2.cjs +0 -1
  790. package/dist/chunks/messages-7NvouWKA2.mjs +0 -212
  791. package/dist/chunks/messages-ADxG1iWK2.cjs +0 -1
  792. package/dist/chunks/messages-AnuHiDPc2.mjs +0 -212
  793. package/dist/chunks/messages-B1V7UT9I.mjs +0 -212
  794. package/dist/chunks/messages-B2Q9NH4D.mjs +0 -212
  795. package/dist/chunks/messages-B3MONaxw2.cjs +0 -1
  796. package/dist/chunks/messages-B3tNgyxG2.cjs +0 -1
  797. package/dist/chunks/messages-B6j77WNV2.mjs +0 -212
  798. package/dist/chunks/messages-B91FdwB0.cjs +0 -1
  799. package/dist/chunks/messages-B9igXgiw.cjs +0 -1
  800. package/dist/chunks/messages-BB1xM_oB.cjs +0 -1
  801. package/dist/chunks/messages-BEV0lzGv2.mjs +0 -212
  802. package/dist/chunks/messages-BG749_88.mjs +0 -212
  803. package/dist/chunks/messages-BGZLiYrQ.cjs +0 -1
  804. package/dist/chunks/messages-BGpGj8nJ2.mjs +0 -212
  805. package/dist/chunks/messages-BK6gK3wu.cjs +0 -1
  806. package/dist/chunks/messages-BKmAFG9Z.cjs +0 -1
  807. package/dist/chunks/messages-BMVJq-1T.cjs +0 -1
  808. package/dist/chunks/messages-BMsqJNz0.cjs +0 -1
  809. package/dist/chunks/messages-BNYDShPm2.mjs +0 -212
  810. package/dist/chunks/messages-BSVhckNg.cjs +0 -1
  811. package/dist/chunks/messages-BUaHDggs.cjs +0 -1
  812. package/dist/chunks/messages-BUaJv5qS.cjs +0 -1
  813. package/dist/chunks/messages-BW--wNis.mjs +0 -212
  814. package/dist/chunks/messages-BXcSH14N.cjs +0 -1
  815. package/dist/chunks/messages-BYOYrUOu.cjs +0 -1
  816. package/dist/chunks/messages-BYSE1Iq2.cjs +0 -1
  817. package/dist/chunks/messages-B_Mqw9Dl2.mjs +0 -212
  818. package/dist/chunks/messages-Bb225KE6.cjs +0 -1
  819. package/dist/chunks/messages-BbYwT3FH2.mjs +0 -212
  820. package/dist/chunks/messages-Bda8jwos2.mjs +0 -212
  821. package/dist/chunks/messages-BdpFAZGZ.mjs +0 -212
  822. package/dist/chunks/messages-BiDR95AW.cjs +0 -1
  823. package/dist/chunks/messages-BkAoxm6t.cjs +0 -1
  824. package/dist/chunks/messages-BmNLNUz_.mjs +0 -212
  825. package/dist/chunks/messages-BnGtg6t4.mjs +0 -212
  826. package/dist/chunks/messages-BnXkEkD_.mjs +0 -212
  827. package/dist/chunks/messages-BpUasRQ3.cjs +0 -1
  828. package/dist/chunks/messages-BwtU06Ax.mjs +0 -212
  829. package/dist/chunks/messages-BxV8K7y42.cjs +0 -1
  830. package/dist/chunks/messages-Bxhns4Ui.cjs +0 -1
  831. package/dist/chunks/messages-ByRcwLIO.mjs +0 -212
  832. package/dist/chunks/messages-C0sxGmLV2.cjs +0 -1
  833. package/dist/chunks/messages-C5nqE8O42.cjs +0 -1
  834. package/dist/chunks/messages-C7il6l-S.cjs +0 -1
  835. package/dist/chunks/messages-CFyGEGXM2.cjs +0 -1
  836. package/dist/chunks/messages-CHBH3EQG.mjs +0 -212
  837. package/dist/chunks/messages-CIYU5iEj.mjs +0 -212
  838. package/dist/chunks/messages-CJGOmFxi.mjs +0 -212
  839. package/dist/chunks/messages-CN2yjHzW.cjs +0 -1
  840. package/dist/chunks/messages-CP7Ncgaf.mjs +0 -212
  841. package/dist/chunks/messages-CP8YKa4F.mjs +0 -212
  842. package/dist/chunks/messages-CTy_3-mw2.cjs +0 -1
  843. package/dist/chunks/messages-CUxaqK8t2.mjs +0 -212
  844. package/dist/chunks/messages-CXDk_Rlr2.mjs +0 -212
  845. package/dist/chunks/messages-CYZxR91M.mjs +0 -212
  846. package/dist/chunks/messages-C_ogasse2.cjs +0 -1
  847. package/dist/chunks/messages-CbFuceEb.cjs +0 -1
  848. package/dist/chunks/messages-CbbYb7cc.cjs +0 -1
  849. package/dist/chunks/messages-CfO5kKI72.cjs +0 -1
  850. package/dist/chunks/messages-Cgv5DuNV.cjs +0 -1
  851. package/dist/chunks/messages-Cjm7Nj1C.mjs +0 -212
  852. package/dist/chunks/messages-CjzZ6nxv.mjs +0 -212
  853. package/dist/chunks/messages-CkBrRFY02.cjs +0 -1
  854. package/dist/chunks/messages-CpVtcYqo.mjs +0 -212
  855. package/dist/chunks/messages-CpppvIiu.cjs +0 -1
  856. package/dist/chunks/messages-CumomgDd2.mjs +0 -212
  857. package/dist/chunks/messages-CvCb4dCy.mjs +0 -212
  858. package/dist/chunks/messages-D3DNj1jh.mjs +0 -212
  859. package/dist/chunks/messages-D7d2U-tx.mjs +0 -212
  860. package/dist/chunks/messages-D8-vyZ2V.cjs +0 -1
  861. package/dist/chunks/messages-DFWhnXF12.mjs +0 -212
  862. package/dist/chunks/messages-DIpVfyX-2.cjs +0 -1
  863. package/dist/chunks/messages-DJBeEI7G.cjs +0 -1
  864. package/dist/chunks/messages-DJr1x1i2.mjs +0 -212
  865. package/dist/chunks/messages-DN7PU5Un2.mjs +0 -212
  866. package/dist/chunks/messages-DR8nFHdw2.cjs +0 -1
  867. package/dist/chunks/messages-DT5Ux3el.cjs +0 -1
  868. package/dist/chunks/messages-DVh_Bwwq.mjs +0 -212
  869. package/dist/chunks/messages-DVwHxslb.mjs +0 -212
  870. package/dist/chunks/messages-DZ1Pfnl0.mjs +0 -212
  871. package/dist/chunks/messages-Da2SYMf52.cjs +0 -1
  872. package/dist/chunks/messages-DaaqkvOz2.cjs +0 -1
  873. package/dist/chunks/messages-DdiqfVCc.cjs +0 -1
  874. package/dist/chunks/messages-DfZe7SKZ.cjs +0 -1
  875. package/dist/chunks/messages-DkJ0bcqu.cjs +0 -1
  876. package/dist/chunks/messages-DkmG49t8.cjs +0 -1
  877. package/dist/chunks/messages-Do3QV7QW.mjs +0 -212
  878. package/dist/chunks/messages-Do4o9ckW.cjs +0 -1
  879. package/dist/chunks/messages-DrbTe09r.cjs +0 -1
  880. package/dist/chunks/messages-Drxwphbg2.mjs +0 -212
  881. package/dist/chunks/messages-DtgIZDlN.cjs +0 -1
  882. package/dist/chunks/messages-DtloGH1v2.mjs +0 -212
  883. package/dist/chunks/messages-Du0zg7UM.mjs +0 -212
  884. package/dist/chunks/messages-DuA_D23n.mjs +0 -212
  885. package/dist/chunks/messages-DwKRw3jP2.mjs +0 -212
  886. package/dist/chunks/messages-DxCaGN-Q2.cjs +0 -1
  887. package/dist/chunks/messages-DxpBJ5ZY.cjs +0 -1
  888. package/dist/chunks/messages-DyWu9_0D.cjs +0 -1
  889. package/dist/chunks/messages-DzAYvMm72.mjs +0 -212
  890. package/dist/chunks/messages-Dzmge-lj.mjs +0 -212
  891. package/dist/chunks/messages-ETNAE7WV.mjs +0 -212
  892. package/dist/chunks/messages-F4r6ruTX2.mjs +0 -212
  893. package/dist/chunks/messages-FNQdT9Da.mjs +0 -212
  894. package/dist/chunks/messages-FYGyC6zk2.mjs +0 -212
  895. package/dist/chunks/messages-Hg0BECWK.cjs +0 -1
  896. package/dist/chunks/messages-JlduXweH2.cjs +0 -1
  897. package/dist/chunks/messages-Km2PU_o7.cjs +0 -1
  898. package/dist/chunks/messages-MgJnGL9X2.cjs +0 -1
  899. package/dist/chunks/messages-PIoKW4js2.cjs +0 -1
  900. package/dist/chunks/messages-VEm9mp5H.cjs +0 -1
  901. package/dist/chunks/messages-WgwkG5PL2.cjs +0 -1
  902. package/dist/chunks/messages-X46KAUoI.cjs +0 -1
  903. package/dist/chunks/messages-ZS1Ro8ZB.mjs +0 -212
  904. package/dist/chunks/messages-ZZd1ckSO2.cjs +0 -1
  905. package/dist/chunks/messages-dyhHlgE9.mjs +0 -212
  906. package/dist/chunks/messages-fAEKtYXO.mjs +0 -212
  907. package/dist/chunks/messages-hhptyJO3.mjs +0 -212
  908. package/dist/chunks/messages-hk4dinYI.mjs +0 -212
  909. package/dist/chunks/messages-knSLxvI6.mjs +0 -212
  910. package/dist/chunks/messages-lORohDgW2.mjs +0 -212
  911. package/dist/chunks/messages-mvnz8DvU.mjs +0 -212
  912. package/dist/chunks/messages-pHWKsrcZ.mjs +0 -212
  913. package/dist/chunks/messages-q2McAyOz.mjs +0 -212
  914. package/dist/chunks/messages-r62SI44r.mjs +0 -212
  915. package/dist/chunks/messages-uFdMhLbJ.mjs +0 -212
  916. package/dist/chunks/messages-vRqPeNM_.cjs +0 -1
  917. package/dist/chunks/messages-vhq442qv.cjs +0 -1
  918. package/dist/chunks/micromark-extension-math-BXJknrtf.cjs +0 -1
  919. package/dist/chunks/micromark-extension-math-x3wvkKaN.mjs +0 -169
  920. package/dist/chunks/mindmap-definition-QFDTVHPH-6O8s-b35.cjs +0 -96
  921. package/dist/chunks/mindmap-definition-QFDTVHPH-BfOyKFtC.mjs +0 -1013
  922. package/dist/chunks/notifier-B-wErJJB.mjs +0 -73
  923. package/dist/chunks/notifier-CwnFVNdD.cjs +0 -1
  924. package/dist/chunks/objectWithoutProperties-BbzyiphF.cjs +0 -1
  925. package/dist/chunks/objectWithoutProperties-Dci1-l7D.mjs +0 -23
  926. package/dist/chunks/one-light-D2mpnHEP.cjs +0 -1
  927. package/dist/chunks/one-light-bqnXiA0I.mjs +0 -4
  928. package/dist/chunks/ordinal-CN3SDQau.mjs +0 -65
  929. package/dist/chunks/ordinal-DFFZs5-y.cjs +0 -1
  930. package/dist/chunks/packet-4T2RLAQJ-7DW35MGl.mjs +0 -3
  931. package/dist/chunks/packet-4T2RLAQJ-B5XvZd2W.cjs +0 -1
  932. package/dist/chunks/php-BMavm1CR.cjs +0 -1
  933. package/dist/chunks/php-Dejkjxb5.mjs +0 -18
  934. package/dist/chunks/pie-ZZUOXDRM-Dtuq0w2k.mjs +0 -3
  935. package/dist/chunks/pie-ZZUOXDRM-SOG0aDPa.cjs +0 -1
  936. package/dist/chunks/pieDiagram-DEJITSTG-B1sjciNi.mjs +0 -179
  937. package/dist/chunks/pieDiagram-DEJITSTG-BkEwYBz9.cjs +0 -30
  938. package/dist/chunks/python-Dcoit5Q5.cjs +0 -1
  939. package/dist/chunks/python-tdu-oDWx.mjs +0 -3
  940. package/dist/chunks/quadrantDiagram-34T5L4WZ-CV838wf-.mjs +0 -1960
  941. package/dist/chunks/quadrantDiagram-34T5L4WZ-RJme4lkz.cjs +0 -7
  942. package/dist/chunks/r-BdDCwgEs.cjs +0 -1
  943. package/dist/chunks/r-D8fCyoTl.mjs +0 -5
  944. package/dist/chunks/radar-PYXPWWZC-Bz4lwSbg.mjs +0 -3
  945. package/dist/chunks/radar-PYXPWWZC-Doch8Lt3.cjs +0 -1
  946. package/dist/chunks/requirementDiagram-MS252O5E-CA3LUAVZ.mjs +0 -2224
  947. package/dist/chunks/requirementDiagram-MS252O5E-CMqFsK_K.cjs +0 -84
  948. package/dist/chunks/ruby-DHm8_lqY.cjs +0 -1
  949. package/dist/chunks/ruby-Z7wCYjey.mjs +0 -33
  950. package/dist/chunks/rust-Cdm0j4IC.cjs +0 -1
  951. package/dist/chunks/rust-D5IQAarB.mjs +0 -3
  952. package/dist/chunks/sankeyDiagram-XADWPNL6-BPaUkDQv.cjs +0 -10
  953. package/dist/chunks/sankeyDiagram-XADWPNL6-Cw8wB2YO.mjs +0 -909
  954. package/dist/chunks/scala-CbcMYkuq.mjs +0 -3
  955. package/dist/chunks/scala-Tb1u_9W3.cjs +0 -1
  956. package/dist/chunks/sequenceDiagram-FGHM5R23-DbM-gyMR.cjs +0 -157
  957. package/dist/chunks/sequenceDiagram-FGHM5R23-pm0MaeXC.mjs +0 -4181
  958. package/dist/chunks/shellscript-CZefq5l_.mjs +0 -3
  959. package/dist/chunks/shellscript-D6KsENaG.cjs +0 -1
  960. package/dist/chunks/sql-BlpbD7FB.cjs +0 -1
  961. package/dist/chunks/sql-C4ibVEDs.mjs +0 -3
  962. package/dist/chunks/stateDiagram-FHFEXIEX-CEcLtV9Z.cjs +0 -1
  963. package/dist/chunks/stateDiagram-FHFEXIEX-CMcsvm0M.mjs +0 -218
  964. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-C4nZGNBm.mjs +0 -28
  965. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-aa692V81.cjs +0 -1
  966. package/dist/chunks/swift-Drpgj9J0.mjs +0 -3
  967. package/dist/chunks/swift-DubrdZus.cjs +0 -1
  968. package/dist/chunks/timeline-definition-GMOUNBTQ-DwHKPj3j.mjs +0 -1084
  969. package/dist/chunks/timeline-definition-GMOUNBTQ-ceXDJGg_.cjs +0 -120
  970. package/dist/chunks/tools-DPov06L-.mjs +0 -11458
  971. package/dist/chunks/tools-NAqHj-Cy.cjs +0 -9
  972. package/dist/chunks/treeView-SZITEDCU-BUuSm_Hn.cjs +0 -1
  973. package/dist/chunks/treeView-SZITEDCU-DPG9FJ6Q.mjs +0 -3
  974. package/dist/chunks/treemap-W4RFUUIX-BerKlw0i.cjs +0 -1
  975. package/dist/chunks/treemap-W4RFUUIX-N4tZJR1-.mjs +0 -3
  976. package/dist/chunks/typescript-BKtlqLze.cjs +0 -1
  977. package/dist/chunks/typescript-Bnpf4OG6.mjs +0 -5
  978. package/dist/chunks/vennDiagram-DHZGUBPP-BzOeMJe8.cjs +0 -34
  979. package/dist/chunks/vennDiagram-DHZGUBPP-Gfy0QWtB.mjs +0 -1876
  980. package/dist/chunks/vitesse-dark-BSL-cCXL.cjs +0 -1
  981. package/dist/chunks/vitesse-dark-dflHsflb.mjs +0 -4
  982. package/dist/chunks/wardley-RL74JXVD-BzKtPJ3g.cjs +0 -1
  983. package/dist/chunks/wardley-RL74JXVD-C7Hzc5y2.mjs +0 -3
  984. package/dist/chunks/wardleyDiagram-NUSXRM2D-ChZiL3a0.mjs +0 -594
  985. package/dist/chunks/wardleyDiagram-NUSXRM2D-qo6LFohO.cjs +0 -20
  986. package/dist/chunks/xml-C1PUeKuL.mjs +0 -5
  987. package/dist/chunks/xml-CwiH0x4E.cjs +0 -1
  988. package/dist/chunks/xychartDiagram-5P7HB3ND-CH1Z2Cbf.cjs +0 -7
  989. package/dist/chunks/xychartDiagram-5P7HB3ND-t_dhLiOA.mjs +0 -2017
  990. package/dist/chunks/yaml-CecI9urB.mjs +0 -3
  991. package/dist/chunks/yaml-CkVxfQ4c.cjs +0 -1
  992. package/dist/messages--zgIPYtb.mjs +0 -212
  993. package/dist/messages-4jULpVvw.mjs +0 -212
  994. package/dist/messages-AbwSlRf_.mjs +0 -212
  995. package/dist/messages-B-dl7Pwb2.mjs +0 -212
  996. package/dist/messages-B3rCRhb1.mjs +0 -212
  997. package/dist/messages-B73L8nKc2.mjs +0 -212
  998. package/dist/messages-BAjsD2Vm2.mjs +0 -212
  999. package/dist/messages-BBodSb5B2.mjs +0 -212
  1000. package/dist/messages-BTpn6H9x2.mjs +0 -212
  1001. package/dist/messages-BWb0GjTj2.mjs +0 -212
  1002. package/dist/messages-BbCgnri12.mjs +0 -212
  1003. package/dist/messages-Bfon_Y3q.mjs +0 -212
  1004. package/dist/messages-BhOtow9J2.mjs +0 -212
  1005. package/dist/messages-BoB7m0uu2.mjs +0 -212
  1006. package/dist/messages-BsOZPjeg.mjs +0 -212
  1007. package/dist/messages-BuzKUYPV.mjs +0 -212
  1008. package/dist/messages-BzOKMdMQ.mjs +0 -212
  1009. package/dist/messages-C2H3PeQW2.mjs +0 -212
  1010. package/dist/messages-C5KNzSTk.mjs +0 -212
  1011. package/dist/messages-CIDYjE6l.mjs +0 -212
  1012. package/dist/messages-CJmyF5ye.mjs +0 -212
  1013. package/dist/messages-CTwiYb2a2.mjs +0 -212
  1014. package/dist/messages-CUHoJaDO.mjs +0 -212
  1015. package/dist/messages-CVeuqUjQ2.mjs +0 -212
  1016. package/dist/messages-CW75b4sz.mjs +0 -212
  1017. package/dist/messages-CXd7YeWV.mjs +0 -212
  1018. package/dist/messages-CjlYkunD.mjs +0 -212
  1019. package/dist/messages-CrGx64yd.mjs +0 -212
  1020. package/dist/messages-Ct0jbgHd.mjs +0 -212
  1021. package/dist/messages-CtKrCYD1.mjs +0 -212
  1022. package/dist/messages-Cu2eLjfJ.mjs +0 -212
  1023. package/dist/messages-CvwQ-fK_2.mjs +0 -212
  1024. package/dist/messages-Cy6UYN9b.mjs +0 -212
  1025. package/dist/messages-D01vnfA9.mjs +0 -212
  1026. package/dist/messages-D0BAV45W.mjs +0 -212
  1027. package/dist/messages-D5LGpdga.mjs +0 -212
  1028. package/dist/messages-DATK4ftv.mjs +0 -212
  1029. package/dist/messages-DEl77Urv2.mjs +0 -212
  1030. package/dist/messages-DHNjM2nv2.mjs +0 -212
  1031. package/dist/messages-DMW8b_sO.mjs +0 -212
  1032. package/dist/messages-DNmgANKr.mjs +0 -212
  1033. package/dist/messages-DQaa3cEM.mjs +0 -212
  1034. package/dist/messages-DSlD4bV9.mjs +0 -212
  1035. package/dist/messages-DTzbkXFt.mjs +0 -212
  1036. package/dist/messages-DbZihxtV.mjs +0 -212
  1037. package/dist/messages-DeE8fyKQ.mjs +0 -212
  1038. package/dist/messages-Dg-TpO2S2.mjs +0 -212
  1039. package/dist/messages-DgP82LzF.mjs +0 -212
  1040. package/dist/messages-Dh3Vt7WC.mjs +0 -212
  1041. package/dist/messages-DiVVyZD22.mjs +0 -212
  1042. package/dist/messages-DpRnGjoe.mjs +0 -212
  1043. package/dist/messages-DqZmrFaa2.mjs +0 -212
  1044. package/dist/messages-Dra9Fz5Q.mjs +0 -212
  1045. package/dist/messages-DuPBRgEF2.mjs +0 -212
  1046. package/dist/messages-DuxEyAY-2.mjs +0 -212
  1047. package/dist/messages-FmJD6lHR2.mjs +0 -212
  1048. package/dist/messages-ONielGl92.mjs +0 -212
  1049. package/dist/messages-RzgUqCGb2.mjs +0 -212
  1050. package/dist/messages-U22AKGKs.mjs +0 -212
  1051. package/dist/messages-XufeeRfO.mjs +0 -212
  1052. package/dist/messages-fprUm7SO2.mjs +0 -212
  1053. package/dist/messages-gFNdz3Tn2.mjs +0 -212
  1054. package/dist/messages-h_n5GBm6.mjs +0 -212
  1055. package/dist/messages-oOogIpsL2.mjs +0 -212
  1056. package/dist/messages-otwg3KcK.mjs +0 -212
  1057. package/dist/messages-rDDoBMWb.mjs +0 -212
  1058. package/dist/messages-trQPxZIu.mjs +0 -212
  1059. package/src/tools/code/highlight-applier.ts +0 -229
  1060. package/src/tools/code/shiki-loader.ts +0 -135
  1061. /package/dist/chunks/{am-CyXvGFRE.cjs → am-CGgVs8Sg.cjs} +0 -0
  1062. /package/dist/chunks/{am-JTszxMum.mjs → am-TVbhxPdQ.mjs} +0 -0
  1063. /package/dist/chunks/{ar-CME8m7Ug.mjs → ar-ClSvzRAM.mjs} +0 -0
  1064. /package/dist/chunks/{ar-BbusVfTp.cjs → ar-nFMIw80i.cjs} +0 -0
  1065. /package/dist/chunks/{array-BMXfsgb2.cjs → array-B193TMZz.cjs} +0 -0
  1066. /package/dist/chunks/{array-B4E6ednJ.mjs → array-ChMzkF5S.mjs} +0 -0
  1067. /package/dist/chunks/{az-D7MMnw6r.cjs → az-Cb6l6ydx.cjs} +0 -0
  1068. /package/dist/chunks/{az-CU1BXEnK.mjs → az-Df0rChHp.mjs} +0 -0
  1069. /package/dist/chunks/{bg-C3H2Qh_2.cjs → bg-BdZUTRFn.cjs} +0 -0
  1070. /package/dist/chunks/{bg-C1QKbOOv.mjs → bg-DLJ0oZ8E.mjs} +0 -0
  1071. /package/dist/chunks/{bn-BGOycYTM.cjs → bn-CneGelWq.cjs} +0 -0
  1072. /package/dist/chunks/{bn-DbDE4DPn.mjs → bn-rM6ek4mO.mjs} +0 -0
  1073. /package/dist/chunks/{bs-5jPxlF97.mjs → bs-16ZwjsQl.mjs} +0 -0
  1074. /package/dist/chunks/{bs-C7amuK1D.cjs → bs-XAmTKQeJ.cjs} +0 -0
  1075. /package/dist/chunks/{cs-BEZB2qcc.mjs → cs-C-zvdtZ-.mjs} +0 -0
  1076. /package/dist/chunks/{cs-BUD3Muxp.cjs → cs-DKYguxBC.cjs} +0 -0
  1077. /package/dist/chunks/{cytoscape.esm-CWkCAUzT.mjs → cytoscape.esm-BsvVxiuI.mjs} +0 -0
  1078. /package/dist/chunks/{cytoscape.esm-CjWrb5SM.cjs → cytoscape.esm-gv01QJ5y.cjs} +0 -0
  1079. /package/dist/chunks/{da-DXZ2uOgL.mjs → da-D1HzIKpF.mjs} +0 -0
  1080. /package/dist/chunks/{da-CO2FYbLa.cjs → da-DiLbdYqu.cjs} +0 -0
  1081. /package/dist/chunks/{de-B8nkOjfD.cjs → de-ClyUjm_W.cjs} +0 -0
  1082. /package/dist/chunks/{de-D4FxC1Yq.mjs → de-Dpmwqjaw.mjs} +0 -0
  1083. /package/dist/chunks/{default-DPWNu2LM.mjs → default-D5Eal3bU.mjs} +0 -0
  1084. /package/dist/chunks/{default-DP8dtTxC.cjs → default-D9azvkQ_.cjs} +0 -0
  1085. /package/dist/chunks/{defaultLocale-BxWls4I1.cjs → defaultLocale-CSsowJXG.cjs} +0 -0
  1086. /package/dist/chunks/{defaultLocale-BYV2aVaI.mjs → defaultLocale-DiiR34KB.mjs} +0 -0
  1087. /package/dist/chunks/{dist-CKM-fjTE.mjs → dist-BFuUZzlT.mjs} +0 -0
  1088. /package/dist/chunks/{dist-CxdzFxpy.cjs → dist-DS4hv48u.cjs} +0 -0
  1089. /package/dist/chunks/{el-D2ILhp1-.cjs → el-CFVhJTIb.cjs} +0 -0
  1090. /package/dist/chunks/{el-DwIVDdku.mjs → el-DQ-dU1wp.mjs} +0 -0
  1091. /package/dist/chunks/{es-DXxnOS9P.cjs → es-BlajxX2r.cjs} +0 -0
  1092. /package/dist/chunks/{es-DlO4MePt.mjs → es-Dhzgzei6.mjs} +0 -0
  1093. /package/dist/chunks/{et-BBSbb8pL.mjs → et-CnhEwclb.mjs} +0 -0
  1094. /package/dist/chunks/{et-mT4xnDc7.cjs → et-ggACA1d9.cjs} +0 -0
  1095. /package/dist/chunks/{fa-DsJou-pw.mjs → fa-B4zSY96K.mjs} +0 -0
  1096. /package/dist/chunks/{fa-D9CUFSHX.cjs → fa-DuYd0CQw.cjs} +0 -0
  1097. /package/dist/chunks/{fi-CsMgo7Wk.mjs → fi-B525ro09.mjs} +0 -0
  1098. /package/dist/chunks/{fi-DpCqdl_1.cjs → fi-D3-4SL4-.cjs} +0 -0
  1099. /package/dist/chunks/{fil-BjeZREJI.cjs → fil-Cs84dmNe.cjs} +0 -0
  1100. /package/dist/chunks/{fil-Dlw8sEta.mjs → fil-DPB6Byn0.mjs} +0 -0
  1101. /package/dist/chunks/{fr-DYmwW1y1.cjs → fr-C8Z2PE7u.cjs} +0 -0
  1102. /package/dist/chunks/{fr-DeapG5NH.mjs → fr-CbMgtPHe.mjs} +0 -0
  1103. /package/dist/chunks/{gu-klAnA_ns.mjs → gu-BDs1p7Uo.mjs} +0 -0
  1104. /package/dist/chunks/{gu-4g6NA9h8.cjs → gu-CPQY3Iyq.cjs} +0 -0
  1105. /package/dist/chunks/{he-2H5DcbO0.cjs → he-BkMGwSM7.cjs} +0 -0
  1106. /package/dist/chunks/{he-9TdyXc1J.mjs → he-DWa_-C46.mjs} +0 -0
  1107. /package/dist/chunks/{hi-DVOss_Zp.mjs → hi-Buu8Rua9.mjs} +0 -0
  1108. /package/dist/chunks/{hi-Dvb4O5oj.cjs → hi-ClQSrRZz.cjs} +0 -0
  1109. /package/dist/chunks/{hr-CXo-QFLf.mjs → hr-WosECnFF.mjs} +0 -0
  1110. /package/dist/chunks/{hr-B4Y5vULZ.cjs → hr-wrh48ogh.cjs} +0 -0
  1111. /package/dist/chunks/{hu-D3Pi7CJx.cjs → hu-BSVMkfs2.cjs} +0 -0
  1112. /package/dist/chunks/{hu-B6uKq-NU.mjs → hu-CeBjtxCd.mjs} +0 -0
  1113. /package/dist/chunks/{hy-DZ74SDlC.cjs → hy-CwF59lJj.cjs} +0 -0
  1114. /package/dist/chunks/{hy-B7CWqbUW.mjs → hy-DwfBE3Yt.mjs} +0 -0
  1115. /package/dist/chunks/{i18next-CkovSPO7.cjs → i18next-C14J6E5L.cjs} +0 -0
  1116. /package/dist/chunks/{i18next-BFvS_Rnh.mjs → i18next-DjO-l2Ee.mjs} +0 -0
  1117. /package/dist/chunks/{id-C5d2QGEQ.mjs → id-CBV5ivYd.mjs} +0 -0
  1118. /package/dist/chunks/{id-WfjZeYKN.cjs → id-DN2KcAmG.cjs} +0 -0
  1119. /package/dist/chunks/{init-C3Dyaaly.mjs → init-C2Iht9jH.mjs} +0 -0
  1120. /package/dist/chunks/{init-BvlcnoG2.cjs → init-DMaknHdL.cjs} +0 -0
  1121. /package/dist/chunks/{isArrayLikeObject-CnaR8YJm.cjs → isArrayLikeObject-Bk7ImDHR.cjs} +0 -0
  1122. /package/dist/chunks/{isArrayLikeObject-B-1mfvNK.mjs → isArrayLikeObject-CyB7POJY.mjs} +0 -0
  1123. /package/dist/chunks/{it-hqsqt6f7.cjs → it-CSt1S7SQ.cjs} +0 -0
  1124. /package/dist/chunks/{it-BgPXC2_F.mjs → it-CU5gg8BZ.mjs} +0 -0
  1125. /package/dist/chunks/{ja-BwLgKsdH.cjs → ja-BbwATm6F.cjs} +0 -0
  1126. /package/dist/chunks/{ja-CQ7ujOz3.mjs → ja-khPKQhMG.mjs} +0 -0
  1127. /package/dist/chunks/{ka-xoKako16.cjs → ka-Cqnq4zZT.cjs} +0 -0
  1128. /package/dist/chunks/{ka-DAPmSm_-.mjs → ka-DN17rDOq.mjs} +0 -0
  1129. /package/dist/chunks/{katex-_C7fvrbX.cjs → katex-D_RH6O9V.cjs} +0 -0
  1130. /package/dist/chunks/{katex-Bbz34ZLq.mjs → katex-thO7aa9b.mjs} +0 -0
  1131. /package/dist/chunks/{km-BJ9H-RbD.mjs → km-BbS9HEwx.mjs} +0 -0
  1132. /package/dist/chunks/{km-D7Fl8wAA.cjs → km-COh3mhzp.cjs} +0 -0
  1133. /package/dist/chunks/{kn-CthdB8vH.mjs → kn-7TPoJJQt.mjs} +0 -0
  1134. /package/dist/chunks/{kn-Ckju1oeq.cjs → kn-CX062fVg.cjs} +0 -0
  1135. /package/dist/chunks/{ko-DbEA41LU.mjs → ko-CDI2MnWL.mjs} +0 -0
  1136. /package/dist/chunks/{ko-Dt1tQEjC.cjs → ko-gSw_U9kC.cjs} +0 -0
  1137. /package/dist/chunks/{ku-B_j9qSrv.mjs → ku-DONc_aap.mjs} +0 -0
  1138. /package/dist/chunks/{ku-_i2C5XD5.cjs → ku-DnvmAkID.cjs} +0 -0
  1139. /package/dist/chunks/{lo-DfEpgG9m.cjs → lo-BrwlEjmE.cjs} +0 -0
  1140. /package/dist/chunks/{lo-DSklR1Zs.mjs → lo-PtNU87QX.mjs} +0 -0
  1141. /package/dist/chunks/{lt-BwLILIED.cjs → lt-Bw969G31.cjs} +0 -0
  1142. /package/dist/chunks/{lt-C9aVbfRt.mjs → lt-CV9PgETS.mjs} +0 -0
  1143. /package/dist/chunks/{lv-DLwMSEc0.mjs → lv-CFPT5CoC.mjs} +0 -0
  1144. /package/dist/chunks/{lv-DdrYab3x.cjs → lv-DhwZOfiA.cjs} +0 -0
  1145. /package/dist/chunks/{micromark-factory-space-BnsBDplI.cjs → micromark-factory-space-CsUhZvC1.cjs} +0 -0
  1146. /package/dist/chunks/{micromark-factory-space-C6wz33de.mjs → micromark-factory-space-y4SDWQKm.mjs} +0 -0
  1147. /package/dist/chunks/{mk-D96bSjMK.mjs → mk-5waYEn6e.mjs} +0 -0
  1148. /package/dist/chunks/{mk-CsPHE4cO.cjs → mk-vuwbN_RA.cjs} +0 -0
  1149. /package/dist/chunks/{ml-CAsiw8BP.cjs → ml-DQZZm6v3.cjs} +0 -0
  1150. /package/dist/chunks/{ml-D1Ek94RG.mjs → ml-iK4LpGaW.mjs} +0 -0
  1151. /package/dist/chunks/{mn-Db6DwHPv.cjs → mn-Dz3r2r3T.cjs} +0 -0
  1152. /package/dist/chunks/{mn-CyNCFOYP.mjs → mn-nfQCBqsj.mjs} +0 -0
  1153. /package/dist/chunks/{mr-CaA3xXVf.mjs → mr-8ddBHqrW.mjs} +0 -0
  1154. /package/dist/chunks/{mr-BBAuoEIQ.cjs → mr-BDjve7Md.cjs} +0 -0
  1155. /package/dist/chunks/{ms-Cfv7BOEG.cjs → ms-2boGmWFn.cjs} +0 -0
  1156. /package/dist/chunks/{ms-IZU-A3Qk.mjs → ms-BRxHmUVO.mjs} +0 -0
  1157. /package/dist/chunks/{my-C-AQLGIp.mjs → my-Bq-MP3br.mjs} +0 -0
  1158. /package/dist/chunks/{my-DOLHceI8.cjs → my-BtRZdE5q.cjs} +0 -0
  1159. /package/dist/chunks/{native-DbFHGXp1.cjs → native-Bok_u8yD.cjs} +0 -0
  1160. /package/dist/chunks/{native-CarRLbbJ.mjs → native-DIGOFhyn.mjs} +0 -0
  1161. /package/dist/chunks/{ne-LaymXAjm.mjs → ne-B6JfM08W.mjs} +0 -0
  1162. /package/dist/chunks/{ne-B2gHspK_.cjs → ne-C9oc_I3v.cjs} +0 -0
  1163. /package/dist/chunks/{nl-C5ezxTkA.cjs → nl-CkIGPyM6.cjs} +0 -0
  1164. /package/dist/chunks/{nl-Dm1eVwTA.mjs → nl-NuO8CW66.mjs} +0 -0
  1165. /package/dist/chunks/{no-B2WicGhz.mjs → no-BtwrqS-b.mjs} +0 -0
  1166. /package/dist/chunks/{no-D4hjenPs.cjs → no-De7tM2WX.cjs} +0 -0
  1167. /package/dist/chunks/{pa-CemLebw7.cjs → pa-Bm15OLTz.cjs} +0 -0
  1168. /package/dist/chunks/{pa-ry61xHq9.mjs → pa-ClSxjHFF.mjs} +0 -0
  1169. /package/dist/chunks/{path-CLcQoP7n.cjs → path-CFQyJ4S5.cjs} +0 -0
  1170. /package/dist/chunks/{path-Crax6eds.mjs → path-iPyWZTLQ.mjs} +0 -0
  1171. /package/dist/chunks/{pl-DzCnx7eR.mjs → pl-C-aTCeRd.mjs} +0 -0
  1172. /package/dist/chunks/{pl-D_sFAkCs.cjs → pl-D80QrSlq.cjs} +0 -0
  1173. /package/dist/chunks/{ps-DKXG6JHY.mjs → ps-B8wPRrcC.mjs} +0 -0
  1174. /package/dist/chunks/{ps-ygHHO68A.cjs → ps-ySfeV5NE.cjs} +0 -0
  1175. /package/dist/chunks/{pt-e09B0rEd.mjs → pt-8tijWt3B.mjs} +0 -0
  1176. /package/dist/chunks/{pt-x_mmaTtD.cjs → pt-Bigoi5oj.cjs} +0 -0
  1177. /package/dist/chunks/{ro-HNnYR5pB.mjs → ro-BiUSkkwp.mjs} +0 -0
  1178. /package/dist/chunks/{ro-CLGSgHzJ.cjs → ro-Dvtjmd-W.cjs} +0 -0
  1179. /package/dist/chunks/{rough.esm-BaIXPgTh.cjs → rough.esm-DC-UFdM0.cjs} +0 -0
  1180. /package/dist/chunks/{rough.esm-CChKUjNP.mjs → rough.esm-buj-m5wB.mjs} +0 -0
  1181. /package/dist/chunks/{ru-LpaLXWmO.cjs → ru-dq73Ra3e.cjs} +0 -0
  1182. /package/dist/chunks/{ru-D_jTWgK8.mjs → ru-qkCthz2J.mjs} +0 -0
  1183. /package/dist/chunks/{sd-B5PS8K1I.cjs → sd-BhtQCaFq.cjs} +0 -0
  1184. /package/dist/chunks/{sd-B7bgXBin.mjs → sd-DfoXSEBK.mjs} +0 -0
  1185. /package/dist/chunks/{si-BjMoO5xu.cjs → si-CWG8h4tD.cjs} +0 -0
  1186. /package/dist/chunks/{si-aQCsTBIp.mjs → si-RPCp-GrG.mjs} +0 -0
  1187. /package/dist/chunks/{sk-pQPYnDDU.cjs → sk-Bkag9oKD.cjs} +0 -0
  1188. /package/dist/chunks/{sk-Bjrct9rr.mjs → sk-CVRHQjYN.mjs} +0 -0
  1189. /package/dist/chunks/{sl-B_yalM3h.cjs → sl-BhupPCcO.cjs} +0 -0
  1190. /package/dist/chunks/{sl-DvS57kCB.mjs → sl-Clf3YXji.mjs} +0 -0
  1191. /package/dist/chunks/{sq-gzZkHXFJ.cjs → sq-Bosym4Xb.cjs} +0 -0
  1192. /package/dist/chunks/{sq-BexoWiW2.mjs → sq-C-nwTgWs.mjs} +0 -0
  1193. /package/dist/chunks/{sr-CXir4bLq.mjs → sr-BiElo1CU.mjs} +0 -0
  1194. /package/dist/chunks/{sr-O4v1KJY1.cjs → sr-DFPGZJ0s.cjs} +0 -0
  1195. /package/dist/chunks/{src-d9yswOqA.cjs → src-al3Kn9PA.cjs} +0 -0
  1196. /package/dist/chunks/{src-yreeH1hr.mjs → src-gZQLeVvM.mjs} +0 -0
  1197. /package/dist/chunks/{sv-D0tEFwN7.cjs → sv-CiYmSxqX.cjs} +0 -0
  1198. /package/dist/chunks/{sv-B_Owhjrs.mjs → sv-DVztafBI.mjs} +0 -0
  1199. /package/dist/chunks/{sw-DE8oPVEt.cjs → sw-CMbHoINv.cjs} +0 -0
  1200. /package/dist/chunks/{sw-B4p84FCO.mjs → sw-CgJk20G2.mjs} +0 -0
  1201. /package/dist/chunks/{ta-BCVLtFMU.cjs → ta-BrC1o95Z.cjs} +0 -0
  1202. /package/dist/chunks/{ta-BU_-jQ33.mjs → ta-rqChn3y2.mjs} +0 -0
  1203. /package/dist/chunks/{te-BISdOeGS.cjs → te-DAKpWpi8.cjs} +0 -0
  1204. /package/dist/chunks/{te-5FGke4TK.mjs → te-LIsqeDyD.mjs} +0 -0
  1205. /package/dist/chunks/{th-DFyekAQ3.mjs → th-Bm6lDr_S.mjs} +0 -0
  1206. /package/dist/chunks/{th-CJXhSA-L.cjs → th-D0CG2M2k.cjs} +0 -0
  1207. /package/dist/chunks/{tr-BjTvmhJt.cjs → tr-Bw_nVU1b.cjs} +0 -0
  1208. /package/dist/chunks/{tr-C7Zj3lX4.mjs → tr-g8oLvvcP.mjs} +0 -0
  1209. /package/dist/chunks/{types-BNvlbr9u.mjs → types-DrdCPGbk.mjs} +0 -0
  1210. /package/dist/chunks/{types-BQX8SD8Q.cjs → types-GPfn5gE2.cjs} +0 -0
  1211. /package/dist/chunks/{ug-DsQjxbOa.cjs → ug-DvC-UnxD.cjs} +0 -0
  1212. /package/dist/chunks/{ug-DJwD0iui.mjs → ug-zVaKVoWE.mjs} +0 -0
  1213. /package/dist/chunks/{uk-BPzbNIjw.cjs → uk-Cx32rUi7.cjs} +0 -0
  1214. /package/dist/chunks/{uk-hkOj8kWN.mjs → uk-DGVBUwum.mjs} +0 -0
  1215. /package/dist/chunks/{ur-Cy5A8nFG.mjs → ur-7wbChoVl.mjs} +0 -0
  1216. /package/dist/chunks/{ur-Do8k1hR-.cjs → ur-BMh2seDu.cjs} +0 -0
  1217. /package/dist/chunks/{vi-CCTEx9XR.cjs → vi-4TUS0GSi.cjs} +0 -0
  1218. /package/dist/chunks/{vi-CEt0cTzQ.mjs → vi-CLg1e4-a.mjs} +0 -0
  1219. /package/dist/chunks/{zh-Ive4on8E.cjs → zh-DZtmJNDR.cjs} +0 -0
  1220. /package/dist/chunks/{zh-BwQjLCGO.mjs → zh-LvpOPMNT.mjs} +0 -0
@@ -1,3268 +0,0 @@
1
- import { o as e, t } from "./chunk-D6kmoKXy.mjs";
2
- import { t as n } from "./objectSpread2-CWwMYL_U.mjs";
3
- import { n as r, t as i } from "./tw-CqxBf-1Y.mjs";
4
- //#region src/components/constants/data-attributes.ts
5
- var a = {
6
- interface: "data-blok-interface",
7
- element: "data-blok-element",
8
- elementContent: "data-blok-element-content",
9
- editor: "data-blok-editor",
10
- redactor: "data-blok-redactor",
11
- id: "data-blok-id",
12
- component: "data-blok-component",
13
- tool: "data-blok-tool",
14
- depth: "data-blok-depth",
15
- hidden: "data-blok-hidden",
16
- disabled: "data-blok-disabled",
17
- focused: "data-blok-focused",
18
- selected: "data-blok-selected",
19
- stretched: "data-blok-stretched",
20
- empty: "data-blok-empty",
21
- contentAlign: "data-blok-content-align",
22
- rtl: "data-blok-rtl",
23
- dragging: "data-blok-dragging",
24
- draggingMulti: "data-blok-dragging-multi",
25
- duplicating: "data-blok-duplicating",
26
- dragHandle: "data-blok-drag-handle",
27
- toolbar: "data-blok-toolbar",
28
- settingsToggler: "data-blok-settings-toggler",
29
- toolboxOpened: "data-blok-toolbox-opened",
30
- blockSettingsOpened: "data-blok-block-settings-opened",
31
- opened: "data-blok-opened",
32
- popover: "data-blok-popover",
33
- popoverContainer: "data-blok-popover-container",
34
- popoverItems: "data-blok-popover-items",
35
- popoverOverlay: "data-blok-popover-overlay",
36
- popoverCustomContent: "data-blok-popover-custom-content",
37
- popoverCustomClass: "data-blok-popover-custom-class",
38
- popoverInline: "data-blok-popover-inline",
39
- popoverOpened: "data-blok-popover-opened",
40
- popoverOpenTop: "data-blok-popover-open-top",
41
- popoverOpenLeft: "data-blok-popover-open-left",
42
- nested: "data-blok-nested",
43
- nestedLevel: "data-blok-nested-level",
44
- promotedGroupLabel: "data-blok-promoted-group-label",
45
- popoverHeader: "data-blok-popover-header",
46
- popoverHeaderText: "data-blok-popover-header-text",
47
- popoverHeaderBackButton: "data-blok-popover-header-back-button",
48
- popoverItem: "data-blok-popover-item",
49
- popoverItemIcon: "data-blok-popover-item-icon",
50
- popoverItemIconChevronRight: "data-blok-popover-item-icon-chevron-right",
51
- popoverItemTitle: "data-blok-popover-item-title",
52
- popoverItemSecondaryTitle: "data-blok-popover-item-secondary-title",
53
- popoverItemActive: "data-blok-popover-item-active",
54
- popoverItemConfirmation: "data-blok-popover-item-confirmation",
55
- popoverItemNoHover: "data-blok-popover-item-no-hover",
56
- popoverItemNoFocus: "data-blok-popover-item-no-focus",
57
- popoverItemDestructive: "data-blok-popover-item-destructive",
58
- popoverItemSeparator: "data-blok-popover-item-separator",
59
- popoverItemSeparatorLine: "data-blok-popover-item-separator-line",
60
- popoverItemHtml: "data-blok-popover-item-html",
61
- hasChildren: "data-blok-has-children",
62
- itemName: "data-blok-item-name",
63
- nothingFoundDisplayed: "data-blok-nothing-found-displayed",
64
- overlay: "data-blok-overlay",
65
- overlayContainer: "data-blok-overlay-container",
66
- overlayRectangle: "data-blok-overlay-rectangle",
67
- overlayHidden: "data-blok-overlay-hidden",
68
- fakeCursor: "data-blok-fake-cursor",
69
- fakeBackground: "data-blok-fake-background",
70
- scrollZone: "data-blok-scroll-zone",
71
- scrollLocked: "data-blok-scroll-locked",
72
- scrollLockedHard: "data-blok-scroll-locked-hard",
73
- shadowCaret: "data-blok-shadow-caret",
74
- placeholder: "data-blok-placeholder",
75
- placeholderActive: "data-blok-placeholder-active",
76
- nestedBlocks: "data-blok-nested-blocks",
77
- mutationFree: "data-blok-mutation-free",
78
- navigationFocused: "data-blok-navigation-focused",
79
- flipperNavigationTarget: "data-blok-flipper-navigation-target",
80
- inlineToolbar: "data-blok-inline-toolbar",
81
- linkToolActive: "data-blok-link-tool-active",
82
- linkToolUnlink: "data-blok-link-tool-unlink",
83
- linkToolInputOpened: "data-blok-link-tool-input-opened",
84
- boldCollapsedLength: "data-blok-bold-collapsed-length",
85
- boldCollapsedActive: "data-blok-bold-collapsed-active",
86
- boldPrevLength: "data-blok-bold-prev-length",
87
- boldLeadingWs: "data-blok-bold-leading-ws",
88
- boldMarker: "data-blok-bold-marker",
89
- shown: "data-blok-shown",
90
- placement: "data-blok-placement",
91
- bounceIn: "data-blok-bounce-in",
92
- announcer: "data-blok-announcer",
93
- stub: "data-blok-stub",
94
- stubInfo: "data-blok-stub-info",
95
- stubTitle: "data-blok-stub-title",
96
- stubSubtitle: "data-blok-stub-subtitle",
97
- slashSearch: "data-blok-slash-search",
98
- testid: "data-blok-testid",
99
- forceHover: "data-blok-force-hover"
100
- }, o = (e, t) => t === void 0 ? `[${e}]` : `[${e}="${t}"]`, s = {
101
- BACKSPACE: 8,
102
- TAB: 9,
103
- ENTER: 13,
104
- SHIFT: 16,
105
- CTRL: 17,
106
- ALT: 18,
107
- ESC: 27,
108
- SPACE: 32,
109
- LEFT: 37,
110
- UP: 38,
111
- DOWN: 40,
112
- RIGHT: 39,
113
- DELETE: 46,
114
- NUMBER_KEY_MIN: 47,
115
- NUMBER_KEY_MAX: 58,
116
- LETTER_KEY_MIN: 64,
117
- LETTER_KEY_MAX: 91,
118
- META: 91,
119
- NUMPAD_KEY_MIN: 95,
120
- NUMPAD_KEY_MAX: 112,
121
- PUNCTUATION_KEY_MIN: 185,
122
- PUNCTUATION_KEY_MAX: 193,
123
- BRACKET_KEY_MIN: 218,
124
- BRACKET_KEY_MAX: 223,
125
- PROCESSING_KEY: 229,
126
- SLASH: 191
127
- }, c = {
128
- LEFT: 0,
129
- WHEEL: 1,
130
- RIGHT: 2,
131
- BACKWARD: 3,
132
- FORWARD: 4
133
- }, l = () => "0.11.1", u = /* @__PURE__ */ function(e) {
134
- return e.VERBOSE = "VERBOSE", e.INFO = "INFO", e.WARN = "WARN", e.ERROR = "ERROR", e;
135
- }({}), d = (e, t, n = "log", r, i = "color: inherit") => {
136
- let a = typeof console > "u" ? void 0 : console;
137
- if (!a || typeof a[n] != "function") return;
138
- let o = [
139
- "info",
140
- "log",
141
- "warn",
142
- "error"
143
- ].includes(n), s = [];
144
- switch (d.logLevel) {
145
- case u.VERBOSE: break;
146
- case u.ERROR:
147
- if (n !== "error") return;
148
- break;
149
- case u.WARN:
150
- if (!["error", "warn"].includes(n)) return;
151
- break;
152
- case u.INFO:
153
- if (!o || e) return;
154
- break;
155
- }
156
- r && s.push(r);
157
- let c = `Blok ${l()}`, f = e ? o ? (s.unshift("line-height: 1em;\n color: #006FEA;\n display: inline-block;\n font-size: 11px;\n line-height: 1em;\n background-color: #fff;\n padding: 4px 9px;\n border-radius: 30px;\n border: 1px solid rgba(56, 138, 229, 0.16);\n margin: 4px 5px 4px 0;", i), `%c${c}%c ${t}`) : `( ${c} )${t}` : t, p = o ? r === void 0 ? [f, ...s] : [`${f} %o`, ...s] : [f];
158
- try {
159
- a[n](...p);
160
- } catch (e) {}
161
- };
162
- d.logLevel = u.VERBOSE;
163
- var f = (e) => {
164
- d.logLevel = e;
165
- }, p = (e, t = "log", n, r) => {
166
- d(!1, e, t, n, r);
167
- }, m = (e, t = "log", n, r) => {
168
- d(!0, e, t, n, r);
169
- }, h = (e) => typeof e == "function", g = (e) => {
170
- if (typeof e != "object" || !e) return !1;
171
- let t = Object.getPrototypeOf(e);
172
- return t === null || t === Object.prototype;
173
- }, _ = (e) => typeof e == "string", v = (e) => typeof e == "boolean", y = (e) => typeof e == "number", ee = function(e) {
174
- return e === void 0;
175
- }, b = (e) => e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, te = (e, t) => function(...n) {
176
- setTimeout(() => e.apply(this, n), t);
177
- }, ne = (e, t, n) => {
178
- let r = { timeoutId: null };
179
- return function(...i) {
180
- let a = () => {
181
- r.timeoutId = null, n !== !0 && e.apply(this, i);
182
- }, o = n === !0 && r.timeoutId === null;
183
- r.timeoutId !== null && clearTimeout(r.timeoutId), r.timeoutId = setTimeout(a, t), o && e.apply(this, i);
184
- };
185
- }, re = (e, t, n) => {
186
- let r = (n == null ? void 0 : n.leading) !== !1, i = (n == null ? void 0 : n.trailing) !== !1, a = {
187
- lastCallTime: void 0,
188
- lastInvokeTime: 0,
189
- timerId: void 0,
190
- lastArgs: void 0,
191
- lastThis: void 0
192
- }, o = (t) => {
193
- a.lastInvokeTime = t;
194
- let n = a.lastArgs, r = a.lastThis;
195
- return a.lastArgs = void 0, a.lastThis = void 0, e.apply(r, n == null ? [] : n);
196
- }, s = (e) => {
197
- var n;
198
- let r = e - ((n = a.lastCallTime) == null ? 0 : n), o = e - a.lastInvokeTime, s = t - r;
199
- return i ? Math.min(s, t - o) : s;
200
- }, c = (e) => {
201
- var n;
202
- let r = e - ((n = a.lastCallTime) == null ? 0 : n), i = e - a.lastInvokeTime;
203
- return a.lastCallTime === void 0 || r >= t || r < 0 || i >= t;
204
- }, l = () => {
205
- let e = Date.now();
206
- if (!c(e)) {
207
- a.timerId = setTimeout(l, s(e));
208
- return;
209
- }
210
- a.timerId = void 0, i && a.lastArgs !== void 0 && o(e), a.lastArgs = void 0, a.lastThis = void 0;
211
- };
212
- return function(...e) {
213
- let n = Date.now(), i = c(n);
214
- if (a.lastArgs = e, a.lastThis = this, a.lastCallTime = n, i && a.timerId === void 0) return a.lastInvokeTime = n, a.timerId = setTimeout(l, t), r ? o(n) : void 0;
215
- };
216
- }, x = (() => {
217
- try {
218
- return Function("return this")();
219
- } catch (e) {
220
- return;
221
- }
222
- })();
223
- x && x.window === void 0 && (x.window = x);
224
- var S = () => {
225
- if (x != null && x.window) return x.window;
226
- }, ie = () => {
227
- if (x != null && x.navigator) return x.navigator;
228
- let e = S();
229
- return e == null ? void 0 : e.navigator;
230
- }, ae = (e) => /^[-\w]+\/([-+\w]+|\*)$/.test(e), oe = () => {
231
- var e, t;
232
- let n = {
233
- win: !1,
234
- mac: !1,
235
- x11: !1,
236
- linux: !1
237
- }, r = ie(), i = (e = r == null || (t = r.userAgent) == null ? void 0 : t.toLowerCase()) == null ? "" : e, a = i ? Object.keys(n).find((e) => i.indexOf(e) !== -1) : void 0;
238
- return a === void 0 || (n[a] = !0), n;
239
- }, se = () => {
240
- let e = S();
241
- return !e || typeof e.matchMedia != "function" ? !1 : e.matchMedia("(max-width: 650px)").matches;
242
- }, ce = (() => {
243
- var e;
244
- let t = ie();
245
- if (!t) return !1;
246
- let n = t.userAgent || "", r = t.userAgentData, i = r == null ? void 0 : r.platform;
247
- if (/iP(ad|hone|od)/.test(n) || i !== void 0 && i !== "" && /iP(ad|hone|od)/.test(i)) return !0;
248
- let a = ((e = t.maxTouchPoints) == null ? 0 : e) > 1, o = () => t.platform, s = i !== void 0 && i !== "" ? i : void 0;
249
- return (a ? s == null ? o() : s : void 0) === "MacIntel";
250
- })(), le = (e) => {
251
- try {
252
- return new URL(e).href;
253
- } catch (e) {}
254
- let t = S();
255
- return e.substring(0, 2) === "//" ? t ? `${t.location.protocol}${e}` : e : t ? `${t.location.origin}${e}` : e;
256
- }, ue = (e) => {
257
- let t = S();
258
- t && t.open(e, "_blank");
259
- }, de = (e) => e && e.slice(0, 1).toUpperCase() + e.slice(1), fe = (e) => {
260
- let t = oe(), n = e.replace(/shift/gi, "⇧").replace(/backspace/gi, "⌫").replace(/enter/gi, "⏎").replace(/up/gi, "↑").replace(/left/gi, "→").replace(/down/gi, "↓").replace(/right/gi, "←").replace(/escape/gi, "⎋").replace(/insert/gi, "Ins").replace(/delete/gi, "␡").replace(/\+/gi, " + ");
261
- return t.mac ? n.replace(/ctrl|cmd/gi, "⌘").replace(/alt/gi, "⌥") : n.replace(/cmd/gi, "Ctrl").replace(/windows/gi, "WIN");
262
- }, pe = (e, t) => {
263
- let r = n({}, e);
264
- return Object.keys(t).forEach((e) => {
265
- let n = r[e], i = t[e];
266
- if (i !== void 0) {
267
- if (g(i) && g(n) && !Array.isArray(i)) {
268
- r[e] = pe(n, i);
269
- return;
270
- }
271
- r[e] = i;
272
- }
273
- }), r;
274
- }, C = (e, ...t) => {
275
- if (!g(e) || t.length === 0) return e;
276
- let n = t.reduce((e, t) => g(t) ? pe(e, t) : e, e);
277
- return Object.assign(e, n), e;
278
- }, me = (e, t) => e.length === t.length ? e.every((e, n) => w(e, t[n])) : !1, w = (e, t) => {
279
- if (e === t) return !0;
280
- if (e === null || t === null || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t)) return !1;
281
- if (Array.isArray(e) && Array.isArray(t)) return me(e, t);
282
- let n = Object.keys(e), r = Object.keys(t);
283
- return n.length === r.length ? n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && w(e[n], t[n])) : !1;
284
- }, he = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ge = (e = 21) => {
285
- let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
286
- for (; e--;) t += he[n[e] & 63];
287
- return t;
288
- }, _e = 1e8, ve = 16, ye = () => ge(10), be = (e = "") => `${e}${Math.floor(Math.random() * _e).toString(ve)}`, T = class e {
289
- static isSingleTag(e) {
290
- return !!e.tagName && [
291
- "AREA",
292
- "BASE",
293
- "BR",
294
- "COL",
295
- "COMMAND",
296
- "EMBED",
297
- "HR",
298
- "IMG",
299
- "INPUT",
300
- "KEYGEN",
301
- "LINK",
302
- "META",
303
- "PARAM",
304
- "SOURCE",
305
- "TRACK",
306
- "WBR"
307
- ].includes(e.tagName);
308
- }
309
- static isLineBreakTag(e) {
310
- return ["BR", "WBR"].includes(e.tagName);
311
- }
312
- static isValidClassName(e) {
313
- if (e === "" || /\s/.test(e)) return !1;
314
- try {
315
- return document.createElement("div").classList.add(e), !0;
316
- } catch (e) {
317
- return !1;
318
- }
319
- }
320
- static safelyAddClasses(t, n) {
321
- let r = [], i = [];
322
- for (let t of n) e.isValidClassName(t) ? r.push(t) : i.push(t);
323
- if (r.length > 0 && t.classList.add(...r), i.length > 0) {
324
- let e = t.className, n = e ? `${e} ${i.join(" ")}` : i.join(" ");
325
- t.setAttribute("class", n);
326
- }
327
- }
328
- static make(t, n = null, r = {}) {
329
- let i = document.createElement(t);
330
- if (Array.isArray(n)) {
331
- let t = n.filter((e) => e !== void 0 && e !== "").flatMap((e) => e.split(" ")).filter((e) => e !== "");
332
- e.safelyAddClasses(i, t);
333
- }
334
- if (typeof n == "string" && n !== "") {
335
- let t = n.split(" ").filter((e) => e !== "");
336
- e.safelyAddClasses(i, t);
337
- }
338
- for (let e in r) {
339
- if (!Object.prototype.hasOwnProperty.call(r, e)) continue;
340
- let t = r[e];
341
- if (t != null) {
342
- if (e in i) {
343
- i[e] = t;
344
- continue;
345
- }
346
- i.setAttribute(e, String(t));
347
- }
348
- }
349
- return i;
350
- }
351
- static text(e) {
352
- return document.createTextNode(e);
353
- }
354
- static append(e, t) {
355
- Array.isArray(t) ? t.forEach((t) => e.appendChild(t)) : e.appendChild(t);
356
- }
357
- static prepend(e, t) {
358
- Array.isArray(t) ? [...t].reverse().forEach((t) => e.prepend(t)) : e.prepend(t);
359
- }
360
- static find(e = document, t) {
361
- return e.querySelector(t);
362
- }
363
- static get(e) {
364
- return document.getElementById(e);
365
- }
366
- static findAll(e = document, t) {
367
- return e.querySelectorAll(t);
368
- }
369
- static get allInputsSelector() {
370
- return "[contenteditable=true], textarea, input:not([type]), " + [
371
- "text",
372
- "password",
373
- "email",
374
- "number",
375
- "search",
376
- "tel",
377
- "url"
378
- ].map((e) => `input[type="${e}"]`).join(", ");
379
- }
380
- static findAllInputs(t) {
381
- let n = Array.from(t.querySelectorAll(e.allInputsSelector)), r = [];
382
- for (let e of n) e instanceof HTMLElement && r.push(e);
383
- return r.reduce((t, n) => e.isNativeInput(n) || e.containsOnlyInlineElements(n) ? [...t, n] : [...t, ...e.getDeepestBlockElements(n)], []);
384
- }
385
- static getDeepestNode(t, n = !1) {
386
- var r;
387
- let i = n ? "lastChild" : "firstChild", a = n ? "previousSibling" : "nextSibling";
388
- if (t === null || t.nodeType !== Node.ELEMENT_NODE) return t;
389
- let o = t[i];
390
- if (o === null) return t;
391
- let s = o;
392
- if (!(e.isSingleTag(s) && !e.isNativeInput(s) && !e.isLineBreakTag(s))) return this.getDeepestNode(s, n);
393
- let c = s[a];
394
- if (c) return this.getDeepestNode(c, n);
395
- let l = (r = s.parentNode) == null ? void 0 : r[a];
396
- return l ? this.getDeepestNode(l, n) : s.parentNode;
397
- }
398
- static isElement(e) {
399
- return y(e) ? !1 : typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
400
- }
401
- static isFragment(e) {
402
- return y(e) ? !1 : typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
403
- }
404
- static isContentEditable(e) {
405
- return e.contentEditable === "true";
406
- }
407
- static isNativeInput(e) {
408
- return typeof e == "object" && e && "tagName" in e && typeof e.tagName == "string" ? ["INPUT", "TEXTAREA"].includes(e.tagName) : !1;
409
- }
410
- static canSetCaret(t) {
411
- return e.isNativeInput(t) ? !new Set([
412
- "file",
413
- "checkbox",
414
- "radio",
415
- "hidden",
416
- "submit",
417
- "button",
418
- "image",
419
- "reset"
420
- ]).has(t.type) : e.isContentEditable(t);
421
- }
422
- static isNodeEmpty(e, t) {
423
- var n, r;
424
- if (this.isSingleTag(e) && !this.isLineBreakTag(e)) return !1;
425
- let i = this.isElement(e) && this.isNativeInput(e) ? e.value : (n = e.textContent) == null ? void 0 : n.replace("​", ""), a = t ? i == null ? void 0 : i.replace(new RegExp(t, "g"), "") : i;
426
- return ((r = a == null ? void 0 : a.length) == null ? 0 : r) === 0;
427
- }
428
- static isLeaf(e) {
429
- return e.childNodes.length === 0;
430
- }
431
- static isEmpty(e, t) {
432
- let n = [e];
433
- for (; n.length > 0;) {
434
- let e = n.shift();
435
- if (e) {
436
- if (this.isLeaf(e) && !this.isNodeEmpty(e, t)) return !1;
437
- n.push(...Array.from(e.childNodes));
438
- }
439
- }
440
- return !0;
441
- }
442
- static isHTMLString(t) {
443
- let n = e.make("div");
444
- return n.innerHTML = t, n.childElementCount > 0;
445
- }
446
- static getContentLength(t) {
447
- var n, r;
448
- return e.isNativeInput(t) ? t.value.length : t.nodeType === Node.TEXT_NODE ? t.length : (n = (r = t.textContent) == null ? void 0 : r.length) == null ? 0 : n;
449
- }
450
- static get blockElements() {
451
- return /* @__PURE__ */ "address.article.aside.blockquote.canvas.div.dl.dt.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.noscript.ol.output.p.pre.ruby.section.table.tbody.thead.tr.tfoot.ul.video".split(".");
452
- }
453
- static containsOnlyInlineElements(t) {
454
- let n = _(t) ? (() => {
455
- let e = document.createElement("div");
456
- return e.innerHTML = t, e;
457
- })() : t, r = (t) => !e.blockElements.includes(t.tagName.toLowerCase()) && Array.from(t.children).every(r);
458
- return Array.from(n.children).every(r);
459
- }
460
- static getDeepestBlockElements(t) {
461
- return e.containsOnlyInlineElements(t) ? [t] : Array.from(t.children).reduce((t, n) => [...t, ...e.getDeepestBlockElements(n)], []);
462
- }
463
- static getHolder(e) {
464
- if (!_(e)) return e;
465
- let t = document.getElementById(e);
466
- if (t !== null) return t;
467
- throw Error(`Element with id "${e}" not found`);
468
- }
469
- static isAnchor(e) {
470
- return e.tagName.toLowerCase() === "a";
471
- }
472
- static offset(e) {
473
- let t = e.getBoundingClientRect(), n = window.scrollX || document.documentElement.scrollLeft, r = window.scrollY || document.documentElement.scrollTop, i = t.top + r, a = t.left + n;
474
- return {
475
- top: i,
476
- left: a,
477
- bottom: i + t.height,
478
- right: a + t.width
479
- };
480
- }
481
- static getNodeByOffset(e, t) {
482
- let n = document.createTreeWalker(e, NodeFilter.SHOW_TEXT, null), r = (e, i, a, o) => {
483
- var s;
484
- if (!e && a) {
485
- let e = i - o, n = Math.max(t - e, 0);
486
- return {
487
- node: a,
488
- offset: Math.min(n, o)
489
- };
490
- }
491
- if (!e) return {
492
- node: null,
493
- offset: 0
494
- };
495
- let c = ((s = e.textContent) == null ? "" : s).length;
496
- return i + c >= t ? {
497
- node: e,
498
- offset: Math.min(t - i, c)
499
- } : r(n.nextNode(), i + c, e, c);
500
- }, { node: i, offset: a } = r(n.nextNode(), 0, null, 0);
501
- if (!i) return {
502
- node: null,
503
- offset: 0
504
- };
505
- let o = i.textContent;
506
- return !o || o.length === 0 ? {
507
- node: null,
508
- offset: 0
509
- } : {
510
- node: i,
511
- offset: a
512
- };
513
- }
514
- }, xe = (e) => !/[^\t\n\r \u200B]/.test(e), Se = (e) => {
515
- e.setAttribute("data-blok-empty", T.isEmpty(e) ? "true" : "false");
516
- }, Ce = ["header", "table"], E = /* @__PURE__ */ new Map(), we = (e) => {
517
- let t = [...new Set(e)];
518
- for (let e of t) {
519
- var n;
520
- let t = (n = E.get(e)) == null ? 0 : n;
521
- E.set(e, t + 1);
522
- }
523
- let r = { cleanedUp: !1 };
524
- return () => {
525
- if (!r.cleanedUp) {
526
- r.cleanedUp = !0;
527
- for (let e of t) {
528
- let t = E.get(e);
529
- t !== void 0 && (t <= 1 ? E.delete(e) : E.set(e, t - 1));
530
- }
531
- }
532
- };
533
- }, Te = () => [...Ce, ...E.keys()], Ee = (e) => e ? (e instanceof HTMLElement ? e : e.holder).closest("[data-blok-table-cell-blocks]") !== null : !1, De = (e) => Ce.includes(e) || E.has(e), Oe = class {
534
- constructor() {
535
- this.allListeners = [];
536
- }
537
- on(e, t, n, r = !1) {
538
- if (this.findOne(e, t, n, r)) return;
539
- let i = be("l"), a = {
540
- id: i,
541
- element: e,
542
- eventType: t,
543
- handler: n,
544
- options: r
545
- };
546
- return this.allListeners.push(a), e.addEventListener(t, n, r), i;
547
- }
548
- off(e, t, n, r) {
549
- let i = this.findAll(e, t, n, r);
550
- i.forEach((e, t) => {
551
- let n = this.allListeners.indexOf(i[t]);
552
- n > -1 && (this.allListeners.splice(n, 1), e.element.removeEventListener(e.eventType, e.handler, e.options));
553
- });
554
- }
555
- offById(e) {
556
- let t = this.findById(e);
557
- if (!t) return;
558
- t.element.removeEventListener(t.eventType, t.handler, t.options);
559
- let n = this.allListeners.indexOf(t);
560
- n > -1 && this.allListeners.splice(n, 1);
561
- }
562
- findOne(e, t, n, r) {
563
- var i;
564
- return (i = this.findAll(e, t, n, r)[0]) == null ? null : i;
565
- }
566
- findAll(e, t, n, r) {
567
- return e ? this.findByEventTarget(e).filter((e) => {
568
- let i = t === void 0 || e.eventType === t, a = n === void 0 || e.handler === n, o = this.areOptionsEqual(e.options, r);
569
- return i && a && o;
570
- }) : [];
571
- }
572
- removeAll() {
573
- this.allListeners.forEach((e) => {
574
- e.element.removeEventListener(e.eventType, e.handler, e.options);
575
- }), this.allListeners = [];
576
- }
577
- destroy() {
578
- this.removeAll();
579
- }
580
- findByEventTarget(e) {
581
- return this.allListeners.filter((t) => t.element === e);
582
- }
583
- findByType(e) {
584
- return this.allListeners.filter((t) => t.eventType === e);
585
- }
586
- findByHandler(e) {
587
- return this.allListeners.filter((t) => t.handler === e);
588
- }
589
- findById(e) {
590
- return this.allListeners.find((t) => t.id === e);
591
- }
592
- normalizeListenerOptions(e) {
593
- var t, n, r;
594
- return typeof e == "boolean" ? {
595
- capture: e,
596
- once: !1,
597
- passive: !1
598
- } : e ? {
599
- capture: (t = e.capture) == null ? !1 : t,
600
- once: (n = e.once) == null ? !1 : n,
601
- passive: (r = e.passive) == null ? !1 : r,
602
- signal: e.signal
603
- } : {
604
- capture: !1,
605
- once: !1,
606
- passive: !1
607
- };
608
- }
609
- areOptionsEqual(e, t) {
610
- if (t === void 0) return !0;
611
- let n = this.normalizeListenerOptions(e), r = this.normalizeListenerOptions(t);
612
- return n.capture === r.capture && n.once === r.once && n.passive === r.passive && n.signal === r.signal;
613
- }
614
- }, D = (e, t) => {
615
- if (!e.conversionConfig) return !1;
616
- let n = e.conversionConfig[t];
617
- return h(n) || _(n);
618
- }, O = (e, t) => {
619
- let n = t.includes(".") ? t : `toolNames.${t}`;
620
- return e.has(n) ? e.t(n) : void 0;
621
- }, ke = (e, t, n = "") => {
622
- let r = t.titleKey ? O(e, t.titleKey) : void 0;
623
- if (r !== void 0) return r;
624
- let i = t.title ? O(e, t.title) : void 0;
625
- if (i !== void 0) return i;
626
- if (t.title) return t.title;
627
- let a = n ? O(e, n) : void 0;
628
- return a == null ? n : a;
629
- }, Ae = (e, t, n) => {
630
- let r = t ? O(e, t) : void 0;
631
- if (r !== void 0) return r;
632
- let i = O(e, n);
633
- return i == null ? n : i;
634
- }, je = (e, t) => D(e.tool, t), Me = (e, t) => Object.entries(e).some((([e, n]) => t[e] && w(t[e], n))), Ne = async (e, t) => {
635
- let r = (await e.save()).data, i = t.find((t) => t.name === e.name);
636
- return i !== void 0 && !D(i, "export") ? [] : t.reduce((t, i) => {
637
- if (!D(i, "import") || i.toolbox === void 0) return t;
638
- let a = new Set(i.toolbox.map((e) => e.data).filter((e) => e !== void 0).flatMap((e) => Object.keys(e))), o = i.toolbox.filter((t) => {
639
- if (b(t) || t.icon === void 0) return !1;
640
- let n = t.data !== void 0;
641
- return !(n && t.data !== void 0 && [...a].every((e) => {
642
- let n = t.data === void 0 ? void 0 : t.data[e], i = r[e];
643
- return w(n, i);
644
- }) || !n && i.name === e.name);
645
- });
646
- return o.length > 0 && t.push(n(n({}, i), {}, { toolbox: o })), t;
647
- }, []);
648
- }, Pe = (e, t) => e.mergeable ? e.name === t.name ? !0 : je(t, "export") && je(e, "import") : !1, Fe = async (e, t) => {
649
- if (e.length === 0) return [];
650
- if (e.length === 1) return Ne(e[0], t);
651
- for (let n of e) {
652
- let e = t.find((e) => e.name === n.name);
653
- if (e !== void 0 && !D(e, "export")) return [];
654
- }
655
- let r = new Set(e.map((e) => e.name));
656
- return t.reduce((e, t) => {
657
- if (!D(t, "import") || t.toolbox === void 0) return e;
658
- let i = t.toolbox.filter((e) => !(b(e) || e.icon === void 0 || e.data === void 0 && r.size === 1 && r.has(t.name)));
659
- return i.length > 0 && e.push(n(n({}, t), {}, { toolbox: i })), e;
660
- }, []);
661
- }, Ie = (e, t) => {
662
- let n = t == null ? void 0 : t.export;
663
- return h(n) ? n(e) : _(n) ? e[n] : (n !== void 0 && p("Conversion «export» property must be a string or function. String means key of saved data object to export. Function should export processed string to export."), "");
664
- }, Le = (e, t, n) => {
665
- let r = t == null ? void 0 : t.import;
666
- return h(r) ? r(e, n) : _(r) ? { [r]: e } : (r !== void 0 && p("Conversion «import» property must be a string or function. String means key of tool data to import. Function accepts a imported string and return composed tool data."), {});
667
- }, Re = class {
668
- constructor() {
669
- this.subscribers = {};
670
- }
671
- on(e, t) {
672
- e in this.subscribers || (this.subscribers[e] = []), this.subscribers[e].push(t);
673
- }
674
- once(e, t) {
675
- e in this.subscribers || (this.subscribers[e] = []);
676
- let n = (r) => {
677
- let i = t(r), a = this.subscribers[e].indexOf(n);
678
- return a !== -1 && this.subscribers[e].splice(a, 1), i;
679
- };
680
- this.subscribers[e].push(n);
681
- }
682
- emit(e, t) {
683
- b(this.subscribers) || !this.subscribers[e] || this.subscribers[e].reduce((e, t) => {
684
- let n = t(e);
685
- return n === void 0 ? e : n;
686
- }, t);
687
- }
688
- off(e, t) {
689
- let n = this.subscribers[e];
690
- if (n === void 0) {
691
- console.warn(`EventDispatcher .off(): there is no subscribers for event "${e.toString()}". Probably, .off() called before .on()`);
692
- return;
693
- }
694
- let r = n.indexOf(t);
695
- r !== -1 && n.splice(r, 1);
696
- }
697
- destroy() {
698
- this.subscribers = {};
699
- }
700
- }, ze = "blok", Be = "inline-toolbar", Ve = "tooltip", He = "[data-blok-interface=inline-toolbar]", Ue = typeof process < "u" ? process.platform === "darwin" ? "Meta" : "Control" : typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("mac") ? "Meta" : "Control", k = class {
701
- static getAnchorNode() {
702
- let e = window.getSelection();
703
- return e ? e.anchorNode : null;
704
- }
705
- static getAnchorElement() {
706
- let e = window.getSelection();
707
- if (!e) return null;
708
- let t = e.anchorNode;
709
- return t ? T.isElement(t) ? t : t.parentElement : null;
710
- }
711
- static getAnchorOffset() {
712
- let e = window.getSelection();
713
- return e ? e.anchorOffset : null;
714
- }
715
- static getIsCollapsed() {
716
- let e = window.getSelection();
717
- return e ? e.isCollapsed : null;
718
- }
719
- static isSelectionAtBlok(e) {
720
- if (!e) return !1;
721
- let t = e.anchorNode || e.focusNode, n = t && t.nodeType === Node.TEXT_NODE ? t.parentNode : t, r = n && n instanceof Element ? n.closest(o(a.redactor)) : null;
722
- return r ? r.nodeType === Node.ELEMENT_NODE : !1;
723
- }
724
- static getIsAtBlok() {
725
- return this.isSelectionAtBlok(this.get());
726
- }
727
- static isRangeAtBlok(e) {
728
- if (!e) return;
729
- let t = e.startContainer && e.startContainer.nodeType === Node.TEXT_NODE ? e.startContainer.parentNode : e.startContainer, n = t && t instanceof Element ? t.closest(o(a.redactor)) : null;
730
- return n ? n.nodeType === Node.ELEMENT_NODE : !1;
731
- }
732
- static getIsSelectionExists() {
733
- let e = this.get();
734
- return !!(e != null && e.anchorNode);
735
- }
736
- static get() {
737
- return window.getSelection();
738
- }
739
- static getRange() {
740
- return this.getRangeFromSelection(this.get());
741
- }
742
- static getRangeFromSelection(e) {
743
- return e && e.rangeCount ? e.getRangeAt(0) : null;
744
- }
745
- static getRect() {
746
- let e = {
747
- x: 0,
748
- y: 0,
749
- width: 0,
750
- height: 0
751
- }, t = window.getSelection();
752
- if (!t) return p("Method window.getSelection returned null", "warn"), e;
753
- if (t.rangeCount === null || Number.isNaN(t.rangeCount)) return p("Method SelectionUtils.rangeCount is not supported", "warn"), e;
754
- if (t.rangeCount === 0) return e;
755
- let n = t.getRangeAt(0).cloneRange(), r = n.getBoundingClientRect();
756
- if (r.x === 0 && r.y === 0) {
757
- let e = document.createElement("span");
758
- e.appendChild(document.createTextNode("​")), n.insertNode(e);
759
- let t = e.getBoundingClientRect(), r = e.parentNode;
760
- return r == null || r.removeChild(e), r == null || r.normalize(), t;
761
- }
762
- return r;
763
- }
764
- static getText() {
765
- var e;
766
- let t = window.getSelection();
767
- return (e = t == null ? void 0 : t.toString()) == null ? "" : e;
768
- }
769
- }, We = class {
770
- static setCursor(e, t = 0) {
771
- var n, r;
772
- let i = document.createRange(), a = window.getSelection(), o = T.isNativeInput(e);
773
- if (o && !T.canSetCaret(e)) return e.getBoundingClientRect();
774
- if (o) return e.focus(), e.selectionStart = t, e.selectionEnd = t, e.getBoundingClientRect();
775
- if (i.setStart(e, t), i.setEnd(e, t), !a) return e.getBoundingClientRect();
776
- a.removeAllRanges(), a.addRange(i);
777
- let s = T.isContentEditable(e) ? e : (n = (r = e.parentElement) == null ? void 0 : r.closest("[contenteditable=\"true\"]")) == null ? null : n;
778
- return s !== null && document.activeElement !== s && s.focus(), i.getBoundingClientRect();
779
- }
780
- static isRangeInsideContainer(e) {
781
- let t = k.getRange();
782
- return t === null ? !1 : e.contains(t.startContainer);
783
- }
784
- static collapseToEnd() {
785
- let e = window.getSelection();
786
- if (!e || !e.focusNode) return;
787
- let t = document.createRange();
788
- t.selectNodeContents(e.focusNode), t.collapse(!1), e.removeAllRanges(), e.addRange(t);
789
- }
790
- }, Ge, A = class {
791
- static applyBoxShadowToWrapper(e) {
792
- let t = e.parentElement;
793
- if (!t) return;
794
- let n = window.getComputedStyle(t), r = window.getComputedStyle(e), i = parseFloat(n.lineHeight), a = parseFloat(r.fontSize), o = Number.isNaN(i) ? a * 1.2 : i, s = e.getBoundingClientRect(), c = Math.max(0, (o - s.height) / 2);
795
- c > 0 && (e.style.boxShadow = `0 ${c}px 0 ${this.BG_COLOR}, 0 -${c}px 0 ${this.BG_COLOR}`);
796
- }
797
- static applyLineHeightExtensions(e) {
798
- let t = this.collectAllLineRects(e);
799
- if (t.length === 0) return;
800
- t.sort((e, t) => e.top - t.top);
801
- let n = this.groupRectsByLine(t);
802
- e.forEach((e) => {
803
- this.applyMultiLineBoxShadow(e, n);
804
- });
805
- }
806
- static collectAllLineRects(e) {
807
- let t = [];
808
- return e.forEach((e) => {
809
- let n = e.getClientRects();
810
- Array.from(n).forEach((n) => {
811
- t.push({
812
- top: n.top,
813
- bottom: n.bottom,
814
- span: e
815
- });
816
- });
817
- }), t;
818
- }
819
- static groupRectsByLine(e) {
820
- let t = [];
821
- return e.forEach((e) => {
822
- let n = t.find((t) => Math.abs(t.top - e.top) < 2);
823
- n ? (n.top = Math.min(n.top, e.top), n.bottom = Math.max(n.bottom, e.bottom)) : t.push({
824
- top: e.top,
825
- bottom: e.bottom
826
- });
827
- }), t.sort((e, t) => e.top - t.top), t;
828
- }
829
- static applyMultiLineBoxShadow(e, t) {
830
- let n = e.getClientRects();
831
- if (n.length === 0) return;
832
- let r = e.parentElement;
833
- if (!r) return;
834
- let i = window.getComputedStyle(r), a = parseFloat(i.lineHeight), o = parseFloat(window.getComputedStyle(e).fontSize), s = Number.isNaN(a) ? o * 1.2 : a, c = n[0], l = n[n.length - 1], u = this.findLineIndex(c.top, t), d = this.findLineIndex(l.top, t), f = n.length > 1 && u !== d, p = u === 0, m = d === t.length - 1, h = Math.max(0, (s - c.height) / 2), g = f ? this.calculateLineTopExtension(h, p, t, u) : h, _ = f ? this.calculateLineBottomExtension(h, m, t, d) : h, v = this.buildBoxShadow(g, _);
835
- e.style.boxShadow = v;
836
- }
837
- static findLineIndex(e, t) {
838
- let n = t.findIndex((t) => Math.abs(t.top - e) < 5);
839
- return n >= 0 ? n : 0;
840
- }
841
- static calculateLineTopExtension(e, t, n, r) {
842
- return e;
843
- }
844
- static calculateLineBottomExtension(e, t, n, r) {
845
- if (t) return e;
846
- let i = n[r], a = n[r + 1].top - i.bottom, o = e;
847
- return e + Math.max(0, a - o);
848
- }
849
- static buildBoxShadow(e, t) {
850
- let n = [];
851
- return n.push(`inset 0 0 0 9999px ${this.BG_COLOR}`), t > 0 && n.push(`0 ${t}px 0 ${this.BG_COLOR}`), e > 0 && n.push(`0 -${e}px 0 ${this.BG_COLOR}`), n.join(", ");
852
- }
853
- };
854
- Ge = A, Ge.BG_COLOR = "rgba(0, 0, 0, 0.08)";
855
- //#endregion
856
- //#region src/components/selection/fake-background/text-nodes.ts
857
- var Ke = class {
858
- static collectTextNodes(e) {
859
- let t = [], { commonAncestorContainer: n } = e;
860
- if (n.nodeType === Node.TEXT_NODE) return t.push(n), t;
861
- let r = document.createTreeWalker(n, NodeFilter.SHOW_TEXT, { acceptNode: (t) => e.intersectsNode(t) && t.textContent && t.textContent.length > 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT });
862
- for (; r.nextNode();) t.push(r.currentNode);
863
- return t;
864
- }
865
- static findLineBreakPositions(e, t) {
866
- let n = e.textContent || "", r = document.createRange();
867
- return Array.from({ length: n.length }, (e, t) => t).reduce((n, i) => {
868
- if (n.positions.length >= t - 1) return n;
869
- r.setStart(e, i), r.setEnd(e, i + 1);
870
- let a = r.getBoundingClientRect();
871
- return n.lastTop !== -1 && Math.abs(a.top - n.lastTop) > 5 && n.positions.push(i), {
872
- positions: n.positions,
873
- lastTop: a.top
874
- };
875
- }, {
876
- positions: [],
877
- lastTop: -1
878
- }).positions;
879
- }
880
- static splitTextAtPositions(e, t) {
881
- let n = [
882
- 0,
883
- ...t,
884
- e.length
885
- ];
886
- return n.slice(0, -1).map((t, r) => e.substring(t, n[r + 1])).filter((e) => e.length > 0);
887
- }
888
- }, j = class {
889
- static wrapRangeWithHighlight(e) {
890
- if (e.collapsed) return null;
891
- let t = T.make("span");
892
- t.setAttribute("data-blok-testid", "fake-background"), t.setAttribute("data-blok-fake-background", "true"), t.setAttribute("data-blok-mutation-free", "true"), t.style.color = "inherit", t.style.boxDecorationBreak = "clone", t.style["-webkit-box-decoration-break"] = "clone", t.style.whiteSpace = "pre-wrap";
893
- let n = e.extractContents();
894
- return n.childNodes.length === 0 ? null : (t.appendChild(n), e.insertNode(t), t);
895
- }
896
- static postProcessHighlightWrappers(e) {
897
- let t = [];
898
- return e.forEach((e) => {
899
- let n = this.splitMultiLineWrapper(e);
900
- t.push(...n);
901
- }), t;
902
- }
903
- static splitMultiLineWrapper(e) {
904
- let t = e.getClientRects();
905
- if (t.length <= 1) return A.applyBoxShadowToWrapper(e), [e];
906
- let n = e.textContent || "", r = e.parentNode;
907
- if (!r || !n) return A.applyBoxShadowToWrapper(e), [e];
908
- let i = [], a = e.firstChild;
909
- if (!a || a.nodeType !== Node.TEXT_NODE) return A.applyBoxShadowToWrapper(e), [e];
910
- let o = Ke.findLineBreakPositions(a, t.length);
911
- if (o.length === 0) return A.applyBoxShadowToWrapper(e), [e];
912
- let s = Ke.splitTextAtPositions(n, o), c = document.createDocumentFragment();
913
- return s.forEach((e) => {
914
- if (e.length === 0) return;
915
- let t = T.make("span");
916
- t.setAttribute("data-blok-testid", "fake-background"), t.setAttribute("data-blok-fake-background", "true"), t.setAttribute("data-blok-mutation-free", "true"), t.style.color = "inherit", t.style.boxDecorationBreak = "clone", t.style["-webkit-box-decoration-break"] = "clone", t.style.whiteSpace = "pre-wrap", t.textContent = e, c.appendChild(t), i.push(t);
917
- }), r.replaceChild(c, e), i;
918
- }
919
- static unwrapFakeBackground(e) {
920
- let t = e.parentNode;
921
- if (t) {
922
- for (; e.firstChild;) t.insertBefore(e.firstChild, e);
923
- t.removeChild(e);
924
- }
925
- }
926
- }, qe = class {
927
- constructor(e) {
928
- this.selectionUtils = e;
929
- }
930
- setFakeBackground() {
931
- this.removeFakeBackground();
932
- let e = window.getSelection();
933
- if (!e || e.rangeCount === 0) return;
934
- let t = e.getRangeAt(0);
935
- if (t.collapsed) return;
936
- let n = Ke.collectTextNodes(t);
937
- if (n.length === 0) return;
938
- let r = t.startContainer, i = t.startOffset, a = t.endContainer, o = t.endOffset, s = [];
939
- if (n.forEach((e) => {
940
- var t, n;
941
- let c = document.createRange(), l = e === r, u = e === a, d = l ? i : 0, f = (t = (n = e.textContent) == null ? void 0 : n.length) == null ? 0 : t, p = u ? o : f;
942
- if (d === p) return;
943
- c.setStart(e, d), c.setEnd(e, p);
944
- let m = j.wrapRangeWithHighlight(c);
945
- m && s.push(m);
946
- }), s.length === 0) return;
947
- let c = j.postProcessHighlightWrappers(s);
948
- A.applyLineHeightExtensions(c);
949
- let l = document.createRange();
950
- l.setStartBefore(c[0]), l.setEndAfter(c[c.length - 1]), this.selectionUtils.savedSelectionRange = l.cloneRange();
951
- let u = window.getSelection();
952
- u && (u.removeAllRanges(), u.addRange(l)), this.selectionUtils.isFakeBackgroundEnabled = !0;
953
- }
954
- removeFakeBackground() {
955
- this.selectionUtils.isFakeBackgroundEnabled && (this.removeHighlightSpans(), this.selectionUtils.isFakeBackgroundEnabled = !1), this.removeOrphanedFakeBackgroundElements();
956
- }
957
- removeOrphanedFakeBackgroundElements() {
958
- document.querySelectorAll("[data-blok-fake-background=\"true\"]").forEach((e) => {
959
- j.unwrapFakeBackground(e);
960
- });
961
- }
962
- clearFakeBackground() {
963
- this.removeOrphanedFakeBackgroundElements(), this.selectionUtils.isFakeBackgroundEnabled = !1;
964
- }
965
- removeHighlightSpans() {
966
- let e = document.querySelectorAll("[data-blok-fake-background=\"true\"]");
967
- if (e.length === 0) return;
968
- let t = e[0], n = e[e.length - 1], r = t.firstChild, i = n.lastChild;
969
- if (e.forEach((e) => {
970
- j.unwrapFakeBackground(e);
971
- }), r && i) {
972
- var a;
973
- let e = document.createRange();
974
- e.setStart(r, 0), e.setEnd(i, ((a = i.textContent) == null ? void 0 : a.length) || 0), this.selectionUtils.savedSelectionRange = e;
975
- }
976
- }
977
- }, Je = class {
978
- static addFakeCursor() {
979
- let e = k.getRange();
980
- if (e === null) return;
981
- let t = T.make("span");
982
- t.setAttribute(a.fakeCursor, ""), t.setAttribute("data-blok-mutation-free", "true"), e.collapse(), e.insertNode(t);
983
- }
984
- static isFakeCursorInsideContainer(e) {
985
- return T.find(e, o(a.fakeCursor)) !== null;
986
- }
987
- static removeFakeCursor(e = document.body) {
988
- let t = T.find(e, o(a.fakeCursor));
989
- t && t.remove();
990
- }
991
- }, Ye = class {
992
- static findParentTag(e, t, n = 10) {
993
- let r = window.getSelection();
994
- if (!r || !r.anchorNode || !r.focusNode) return null;
995
- let i = [r.anchorNode, r.focusNode], a = (r) => {
996
- let i = (n, r) => {
997
- if (r <= 0 || !n) return null;
998
- let a = n.nodeType === Node.ELEMENT_NODE && n.tagName === e, o = !t || n.classList && n.classList.contains(t);
999
- if (a && o) return n;
1000
- if (!n.parentNode) return null;
1001
- let s = n.parentNode, c = !t || s.classList && s.classList.contains(t);
1002
- return s.tagName === e && c ? s : i(s, r - 1);
1003
- };
1004
- return i(r, n);
1005
- };
1006
- for (let e of i) {
1007
- let t = a(e);
1008
- if (t) return t;
1009
- }
1010
- return null;
1011
- }
1012
- static expandToTag(e) {
1013
- let t = window.getSelection();
1014
- if (!t) return;
1015
- t.removeAllRanges();
1016
- let n = document.createRange();
1017
- n.selectNodeContents(e), t.addRange(n);
1018
- }
1019
- }, Xe = class {
1020
- constructor() {
1021
- this.instance = null, this.selection = null, this.savedSelectionRange = null, this.isFakeBackgroundEnabled = !1, this.fakeBackgroundManager = new qe(this);
1022
- }
1023
- static get anchorNode() {
1024
- return k.getAnchorNode();
1025
- }
1026
- static get anchorElement() {
1027
- return k.getAnchorElement();
1028
- }
1029
- static get anchorOffset() {
1030
- return k.getAnchorOffset();
1031
- }
1032
- static get isCollapsed() {
1033
- return k.getIsCollapsed();
1034
- }
1035
- static get isAtBlok() {
1036
- return k.getIsAtBlok();
1037
- }
1038
- static isSelectionAtBlok(e) {
1039
- return k.isSelectionAtBlok(e);
1040
- }
1041
- static isRangeAtBlok(e) {
1042
- return k.isRangeAtBlok(e);
1043
- }
1044
- static get isSelectionExists() {
1045
- return k.getIsSelectionExists();
1046
- }
1047
- static get range() {
1048
- return k.getRange();
1049
- }
1050
- static getRangeFromSelection(e) {
1051
- return k.getRangeFromSelection(e);
1052
- }
1053
- static get rect() {
1054
- return k.getRect();
1055
- }
1056
- static get text() {
1057
- return k.getText();
1058
- }
1059
- static get() {
1060
- return k.get();
1061
- }
1062
- static setCursor(e, t = 0) {
1063
- return We.setCursor(e, t);
1064
- }
1065
- static isRangeInsideContainer(e) {
1066
- return We.isRangeInsideContainer(e);
1067
- }
1068
- static addFakeCursor() {
1069
- Je.addFakeCursor();
1070
- }
1071
- static isFakeCursorInsideContainer(e) {
1072
- return Je.isFakeCursorInsideContainer(e);
1073
- }
1074
- static removeFakeCursor(e = document.body) {
1075
- Je.removeFakeCursor(e);
1076
- }
1077
- removeFakeBackground() {
1078
- this.fakeBackgroundManager.removeFakeBackground();
1079
- }
1080
- removeOrphanedFakeBackgroundElements() {
1081
- this.fakeBackgroundManager.removeOrphanedFakeBackgroundElements();
1082
- }
1083
- clearFakeBackground() {
1084
- this.fakeBackgroundManager.clearFakeBackground();
1085
- }
1086
- setFakeBackground() {
1087
- this.fakeBackgroundManager.setFakeBackground();
1088
- }
1089
- save() {
1090
- this.savedSelectionRange = k.getRange();
1091
- }
1092
- restore() {
1093
- if (!this.savedSelectionRange) return;
1094
- let e = window.getSelection();
1095
- e && (e.removeAllRanges(), e.addRange(this.savedSelectionRange));
1096
- }
1097
- clearSaved() {
1098
- this.savedSelectionRange = null;
1099
- }
1100
- collapseToEnd() {
1101
- We.collapseToEnd();
1102
- }
1103
- findParentTag(e, t, n = 10) {
1104
- return Ye.findParentTag(e, t, n);
1105
- }
1106
- expandToTag(e) {
1107
- Ye.expandToTag(e);
1108
- }
1109
- }, M = /* @__PURE__ */ function(e) {
1110
- return e.Default = "default", e.Separator = "separator", e.Html = "html", e;
1111
- }({}), Ze = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
1112
- (function(n, r) {
1113
- typeof define == "function" && define.amd ? define("html-janitor", r) : typeof e == "object" ? t.exports = r() : n.HTMLJanitor = r();
1114
- })(e, function() {
1115
- function e(e) {
1116
- var t = e.tags;
1117
- if (!Object.keys(t).map(function(e) {
1118
- return typeof t[e];
1119
- }).every(function(e) {
1120
- return e === "object" || e === "boolean" || e === "function";
1121
- })) throw Error("The configuration was invalid");
1122
- this.config = e;
1123
- }
1124
- var t = [
1125
- "P",
1126
- "LI",
1127
- "TD",
1128
- "TH",
1129
- "DIV",
1130
- "H1",
1131
- "H2",
1132
- "H3",
1133
- "H4",
1134
- "H5",
1135
- "H6",
1136
- "PRE"
1137
- ];
1138
- function n(e) {
1139
- return t.indexOf(e.nodeName) !== -1;
1140
- }
1141
- var r = [
1142
- "A",
1143
- "B",
1144
- "STRONG",
1145
- "I",
1146
- "EM",
1147
- "SUB",
1148
- "SUP",
1149
- "U",
1150
- "STRIKE"
1151
- ];
1152
- function i(e) {
1153
- return r.indexOf(e.nodeName) !== -1;
1154
- }
1155
- e.prototype.clean = function(e) {
1156
- let t = document.implementation.createHTMLDocument(), n = t.createElement("div");
1157
- return n.innerHTML = e, this._sanitize(t, n), n.innerHTML;
1158
- }, e.prototype._sanitize = function(e, t) {
1159
- var r = a(e, t), l = r.firstChild();
1160
- if (l) do {
1161
- if (l.nodeType === Node.TEXT_NODE) if (l.data.trim() === "" && (l.previousElementSibling && n(l.previousElementSibling) || l.nextElementSibling && n(l.nextElementSibling))) {
1162
- t.removeChild(l), this._sanitize(e, t);
1163
- break;
1164
- } else continue;
1165
- if (l.nodeType === Node.COMMENT_NODE) {
1166
- t.removeChild(l), this._sanitize(e, t);
1167
- break;
1168
- }
1169
- var u = i(l), d;
1170
- u && (d = Array.prototype.some.call(l.childNodes, n));
1171
- var f = !!t.parentNode, p = n(t) && n(l) && f, m = l.nodeName.toLowerCase(), h = o(this.config, m, l);
1172
- if (u && d || s(l, h) || !this.config.keepNestedBlockElements && p) {
1173
- if (!(l.nodeName === "SCRIPT" || l.nodeName === "STYLE")) for (; l.childNodes.length > 0;) t.insertBefore(l.childNodes[0], l);
1174
- t.removeChild(l), this._sanitize(e, t);
1175
- break;
1176
- }
1177
- for (var g = 0; g < l.attributes.length; g += 1) {
1178
- var _ = l.attributes[g];
1179
- c(_, h, l) && (l.removeAttribute(_.name), --g);
1180
- }
1181
- this._sanitize(e, l);
1182
- } while (l = r.nextSibling());
1183
- };
1184
- function a(e, t) {
1185
- return e.createTreeWalker(t, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT, null, !1);
1186
- }
1187
- function o(e, t, n) {
1188
- return typeof e.tags[t] == "function" ? e.tags[t](n) : e.tags[t];
1189
- }
1190
- function s(e, t) {
1191
- return t === void 0 ? !0 : typeof t == "boolean" ? !t : !1;
1192
- }
1193
- function c(e, t, n) {
1194
- var r = e.name.toLowerCase();
1195
- return t === !0 ? !1 : typeof t[r] == "function" ? !t[r](e.value, n) : t[r] === void 0 || t[r] === !1 ? !0 : typeof t[r] == "string" ? t[r] !== e.value : !1;
1196
- }
1197
- return e;
1198
- });
1199
- })))()), Qe = /^\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)/i, $e = /\s*(?:href|src)\s*=\s*(?:"\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^"]*"|'\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^']*|(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^ \t\r\n>]*)/gi, et = (e, t, r = {}) => e.map((e) => {
1200
- let i = h(t) ? t(e.tool) : t, a = i == null ? {} : i;
1201
- return g(a) && b(a) && b(r) ? e : n(n({}, e), {}, { data: tt(e.data, a, r) });
1202
- }), N = (e, t = {}) => new Ze.default({ tags: t }).clean(e), tt = (e, t, n) => Array.isArray(e) ? nt(e, t, n) : g(e) ? rt(e, t, n) : _(e) ? it(e, t, n) : e, nt = (e, t, n) => e.map((e) => tt(e, t, n)), rt = (e, t, n) => {
1203
- let r = {}, i = e;
1204
- for (let a in e) {
1205
- if (!Object.prototype.hasOwnProperty.call(e, a)) continue;
1206
- let o = i[a], s = g(t) ? t : void 0, c = s == null ? void 0 : s[a];
1207
- r[a] = tt(o, c !== void 0 && at(c) ? c : t, n);
1208
- }
1209
- return r;
1210
- }, it = (e, t, n) => {
1211
- let r = mt(t, n);
1212
- return r ? st(gt(N(e, r), r)) : b(n) ? st(e) : st(gt(N(e, n), n));
1213
- }, at = (e) => g(e) || v(e) || h(e), ot = (e) => e ? Qe.test(e) : !1, st = (e) => {
1214
- if (!e || e.indexOf("<") === -1) return e;
1215
- if (typeof document < "u") {
1216
- let t = document.createElement("template");
1217
- return t.innerHTML = e, t.content.querySelectorAll("[href],[src]").forEach((e) => {
1218
- ["href", "src"].forEach((t) => {
1219
- ot(e.getAttribute(t)) && e.removeAttribute(t);
1220
- });
1221
- }), t.innerHTML;
1222
- }
1223
- return e.replace($e, "");
1224
- }, ct = (e) => {
1225
- if (b(e)) return {};
1226
- let t = {};
1227
- for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = P(e[n]));
1228
- return t;
1229
- }, lt = (e) => function(t) {
1230
- let n = e.call(this, t);
1231
- return n == null ? {} : n;
1232
- }, ut = new Set([
1233
- "class",
1234
- "id",
1235
- "title",
1236
- "role",
1237
- "dir",
1238
- "lang"
1239
- ]), dt = (e) => {
1240
- let t = e.toLowerCase();
1241
- return t.startsWith("data-") || t.startsWith("aria-") || ut.has(t);
1242
- }, ft = (e) => {
1243
- let t = {};
1244
- return Array.from(e.attributes).forEach((e) => {
1245
- dt(e.name) && (t[e.name] = !0);
1246
- }), t;
1247
- }, P = (e) => e === !0 ? lt(ft) : e === !1 ? !1 : h(e) ? lt(e) : _(e) ? e : g(e) ? C({}, e) : e, pt = (e, t) => {
1248
- if (b(e)) return ct(t);
1249
- let n = {};
1250
- for (let r in e) {
1251
- if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
1252
- let i = e[r], a = t ? t[r] : void 0;
1253
- if (h(a)) {
1254
- n[r] = P(a);
1255
- continue;
1256
- }
1257
- if (h(i)) {
1258
- n[r] = P(i);
1259
- continue;
1260
- }
1261
- if (g(i) && g(a)) {
1262
- n[r] = C({}, a, i);
1263
- continue;
1264
- }
1265
- if (a !== void 0) {
1266
- n[r] = P(a);
1267
- continue;
1268
- }
1269
- n[r] = P(i);
1270
- }
1271
- if (!t) return n;
1272
- for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Object.prototype.hasOwnProperty.call(n, e) || (n[e] = P(t[e])));
1273
- return n;
1274
- }, mt = (e, t) => g(e) && !h(e) ? pt(t, e) : e === !1 ? {} : b(t) ? null : ct(t), ht = (e, ...t) => {
1275
- if (b(e)) return Object.assign({}, ...t);
1276
- let n = ct(e);
1277
- return t.forEach((e) => {
1278
- if (e) for (let t in e) {
1279
- if (!Object.prototype.hasOwnProperty.call(e, t)) continue;
1280
- let r = e[t];
1281
- if (!Object.prototype.hasOwnProperty.call(n, t)) continue;
1282
- let i = n[t];
1283
- if (h(r)) {
1284
- n[t] = r;
1285
- continue;
1286
- }
1287
- if (!(r === !0 && h(i))) {
1288
- if (r === !0) {
1289
- n[t] = g(i) && !h(i) ? C({}, i) : P(r);
1290
- continue;
1291
- }
1292
- if (g(r) && g(i)) {
1293
- n[t] = C({}, i, r);
1294
- continue;
1295
- }
1296
- n[t] = P(r);
1297
- }
1298
- }
1299
- }), n;
1300
- }, gt = (e, t) => {
1301
- if (typeof document > "u" || !e || e.indexOf("<") === -1) return e;
1302
- let n = Object.entries(t).filter(([, e]) => h(e));
1303
- if (n.length === 0) return e;
1304
- let r = document.createElement("template");
1305
- return r.innerHTML = e, n.forEach(([e, t]) => {
1306
- r.content.querySelectorAll(e).forEach((e) => {
1307
- let n = t(e);
1308
- if (!(v(n) || h(n) || n == null)) for (let [t, r] of Object.entries(n)) {
1309
- if (r === !1) {
1310
- e.removeAttribute(t);
1311
- continue;
1312
- }
1313
- r !== !0 && _(r) && e.setAttribute(t, r);
1314
- }
1315
- });
1316
- }), r.innerHTML;
1317
- }, _t, vt = 10, yt = "tooltip", bt = "aria-hidden", xt = "false", St = "true", Ct = "visibility", wt = "visible", Tt = "hidden", Et = class e {
1318
- get CSS() {
1319
- return {
1320
- tooltip: i("absolute z-overlay top-0 left-0", "bg-tooltip-bg opacity-0", "select-none pointer-events-none", "rounded-lg shadow-tooltip", "before:content-[''] before:absolute before:inset-0 before:bg-tooltip-bg before:-z-10 before:rounded-lg", "mobile:hidden").split(" "),
1321
- tooltipContent: i("px-2.5 py-1.5", "text-tooltip-font text-xs text-center", "tracking-[0.02em] leading-[1em]").split(" "),
1322
- tooltipShown: ["opacity-100"]
1323
- };
1324
- }
1325
- static getInstance() {
1326
- return e.instance || (e.instance = new e()), e.instance;
1327
- }
1328
- constructor() {
1329
- this.nodes = {
1330
- wrapper: null,
1331
- content: null
1332
- }, this.showed = !1, this.offsetTop = vt, this.offsetLeft = vt, this.offsetRight = vt, this.showingTimeout = null, this.ariaObserver = null, this.handleWindowScroll = () => {
1333
- this.showed && this.hide();
1334
- }, this.prepare(), window.addEventListener("scroll", this.handleWindowScroll, { passive: !0 });
1335
- }
1336
- show(e, t, n = {}) {
1337
- this.nodes.wrapper || this.prepare(), this.showingTimeout && (clearTimeout(this.showingTimeout), this.showingTimeout = null);
1338
- let r = Object.assign({
1339
- placement: "bottom",
1340
- marginTop: 0,
1341
- marginLeft: 0,
1342
- marginRight: 0,
1343
- marginBottom: 0,
1344
- delay: 0
1345
- }, n);
1346
- if (this.nodes.content && (this.nodes.content.innerHTML = "", this.nodes.content.appendChild(this.createContentNode(t)), this.nodes.wrapper)) {
1347
- switch (r.placement) {
1348
- case "top":
1349
- this.placeTop(e, r);
1350
- break;
1351
- case "left":
1352
- this.placeLeft(e, r);
1353
- break;
1354
- case "right":
1355
- this.placeRight(e, r);
1356
- break;
1357
- default:
1358
- this.placeBottom(e, r);
1359
- break;
1360
- }
1361
- if (r && r.delay) {
1362
- this.showingTimeout = setTimeout(() => {
1363
- if (this.showingTimeout = null, this.nodes.wrapper) {
1364
- let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown : [this.CSS.tooltipShown];
1365
- this.nodes.wrapper.classList.add(...e), this.updateTooltipVisibility();
1366
- }
1367
- this.showed = !0;
1368
- }, r.delay);
1369
- return;
1370
- }
1371
- if (this.nodes.wrapper) {
1372
- let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown : [this.CSS.tooltipShown];
1373
- this.nodes.wrapper.classList.add(...e), this.updateTooltipVisibility();
1374
- }
1375
- this.showed = !0;
1376
- }
1377
- }
1378
- createContentNode(e) {
1379
- if (typeof e == "string") return document.createTextNode(e);
1380
- if (e instanceof Node) return e;
1381
- throw Error("[Blok Tooltip] Wrong type of «content» passed. It should be an instance of Node or String. But " + typeof e + " given.");
1382
- }
1383
- hide() {
1384
- if (this.showingTimeout && (clearTimeout(this.showingTimeout), this.showingTimeout = null), this.nodes.wrapper) {
1385
- let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown : [this.CSS.tooltipShown];
1386
- this.nodes.wrapper.classList.remove(...e), this.updateTooltipVisibility();
1387
- }
1388
- this.showed = !1;
1389
- }
1390
- onHover(e, t, n = {}) {
1391
- e.addEventListener("mouseenter", () => {
1392
- let r = document.querySelector("[data-blok-popover-opened=\"true\"]");
1393
- r !== null && !r.contains(e) || this.show(e, t, n);
1394
- }), e.addEventListener("mouseleave", () => {
1395
- this.hide();
1396
- });
1397
- }
1398
- destroy() {
1399
- var t;
1400
- (t = this.ariaObserver) == null || t.disconnect(), this.ariaObserver = null, this.nodes.wrapper && this.nodes.wrapper.remove(), window.removeEventListener("scroll", this.handleWindowScroll), e.instance = null;
1401
- }
1402
- prepare() {
1403
- this.nodes.wrapper = this.make("div", this.CSS.tooltip), this.nodes.wrapper.setAttribute(a.interface, Ve), this.nodes.wrapper.setAttribute("data-blok-testid", "tooltip"), this.nodes.content = this.make("div", this.CSS.tooltipContent), this.nodes.content.setAttribute("data-blok-testid", "tooltip-content"), this.nodes.wrapper && this.nodes.content && (this.append(this.nodes.wrapper, this.nodes.content), this.append(document.body, this.nodes.wrapper), this.ensureTooltipAttributes());
1404
- }
1405
- updateTooltipVisibility() {
1406
- if (!this.nodes.wrapper) return;
1407
- let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown[0] : this.CSS.tooltipShown, t = this.nodes.wrapper.classList.contains(e);
1408
- this.nodes.wrapper.style.setProperty(Ct, t ? wt : Tt, t ? "" : "important"), this.nodes.wrapper.setAttribute(bt, t ? xt : St), this.nodes.wrapper.setAttribute("data-blok-shown", t ? "true" : "false");
1409
- }
1410
- watchTooltipVisibility() {
1411
- var e;
1412
- this.nodes.wrapper && ((e = this.ariaObserver) == null || e.disconnect(), this.updateTooltipVisibility(), this.ariaObserver = new MutationObserver(() => {
1413
- this.updateTooltipVisibility();
1414
- }), this.ariaObserver.observe(this.nodes.wrapper, {
1415
- attributes: !0,
1416
- attributeFilter: ["class"]
1417
- }));
1418
- }
1419
- ensureTooltipAttributes() {
1420
- this.nodes.wrapper && ((!this.nodes.wrapper.hasAttribute(a.interface) || this.nodes.wrapper.getAttribute(a.interface) !== "tooltip") && this.nodes.wrapper.setAttribute(a.interface, Ve), this.nodes.wrapper.setAttribute("role", yt), this.watchTooltipVisibility());
1421
- }
1422
- placeBottom(e, t) {
1423
- var n;
1424
- if (!this.nodes.wrapper) return;
1425
- let r = e.getBoundingClientRect(), i = r.left + e.clientWidth / 2 - this.nodes.wrapper.offsetWidth / 2, a = r.bottom + this.getScrollTop() + this.offsetTop + ((n = t.marginTop) == null ? 0 : n);
1426
- this.applyPlacement("bottom", i, a);
1427
- }
1428
- placeTop(e, t) {
1429
- if (!this.nodes.wrapper) return;
1430
- let n = e.getBoundingClientRect(), r = n.left + e.clientWidth / 2 - this.nodes.wrapper.offsetWidth / 2, i = n.top + this.getScrollTop() - this.nodes.wrapper.clientHeight - this.offsetTop;
1431
- this.applyPlacement("top", r, i);
1432
- }
1433
- placeLeft(e, t) {
1434
- var n;
1435
- if (!this.nodes.wrapper) return;
1436
- let r = e.getBoundingClientRect(), i = r.left - this.nodes.wrapper.offsetWidth - this.offsetLeft - ((n = t.marginLeft) == null ? 0 : n), a = r.top + this.getScrollTop() + e.clientHeight / 2 - this.nodes.wrapper.offsetHeight / 2;
1437
- this.applyPlacement("left", i, a);
1438
- }
1439
- placeRight(e, t) {
1440
- var n;
1441
- if (!this.nodes.wrapper) return;
1442
- let r = e.getBoundingClientRect(), i = r.right + this.offsetRight + ((n = t.marginRight) == null ? 0 : n), a = r.top + this.getScrollTop() + e.clientHeight / 2 - this.nodes.wrapper.offsetHeight / 2;
1443
- this.applyPlacement("right", i, a);
1444
- }
1445
- applyPlacement(e, t, n) {
1446
- this.nodes.wrapper && (this.nodes.wrapper.setAttribute("data-blok-placement", e), this.nodes.wrapper.style.left = `${t}px`, this.nodes.wrapper.style.top = `${n}px`);
1447
- }
1448
- getScrollTop() {
1449
- var e, t, n;
1450
- return typeof window.scrollY == "number" ? window.scrollY : (e = (t = (n = document.documentElement) == null ? void 0 : n.scrollTop) == null ? document.body.scrollTop : t) == null ? 0 : e;
1451
- }
1452
- make(e, t = null, n = {}) {
1453
- let r = document.createElement(e);
1454
- Array.isArray(t) && r.classList.add(...t), typeof t == "string" && r.classList.add(t);
1455
- for (let e in n) Object.prototype.hasOwnProperty.call(n, e) && (r[e] = n[e]);
1456
- return r;
1457
- }
1458
- append(e, t) {
1459
- Array.isArray(t) ? t.forEach((t) => e.appendChild(t)) : e.appendChild(t);
1460
- }
1461
- };
1462
- _t = Et, _t.instance = null;
1463
- var F = () => Et.getInstance(), Dt = (e, t, n) => {
1464
- F().show(e, t, n == null ? {} : n);
1465
- }, Ot = () => {
1466
- F().hide();
1467
- }, kt = (e, t, n) => {
1468
- F().onHover(e, t, n == null ? {} : n);
1469
- }, At = () => {
1470
- F().destroy();
1471
- }, jt = () => {
1472
- var e, t;
1473
- let n = window.getSelection();
1474
- if (n === null) return [null, 0];
1475
- let r = n.focusNode, i = n.focusOffset;
1476
- if (r === null) return [null, 0];
1477
- if (r.nodeType === Node.TEXT_NODE || r.childNodes.length === 0) return [r, i];
1478
- let a = r.childNodes[i];
1479
- if (a !== void 0) return [a, 0];
1480
- let o = (e = r.childNodes[i - 1]) == null ? null : e, s = (t = o == null ? void 0 : o.textContent) == null ? null : t;
1481
- return [o, s === null ? 0 : s.length];
1482
- }, Mt = (e) => {
1483
- var t;
1484
- let n = window.getSelection();
1485
- if (n === null || n.rangeCount === 0) return 0;
1486
- let r = n.getRangeAt(0), i = e == null ? (t = r.startContainer.parentElement) == null ? void 0 : t.closest("[contenteditable=\"true\"]") : e;
1487
- if (i == null) return 0;
1488
- let a = document.createRange();
1489
- return a.selectNodeContents(i), a.setEnd(r.startContainer, r.startOffset), a.toString().length;
1490
- }, Nt = (e, t, n, r) => {
1491
- let i = document.createRange();
1492
- r === "left" ? (i.selectNodeContents(e), i.setEnd(t, n)) : (i.selectNodeContents(e), i.setStart(t, n));
1493
- let a = i.cloneContents(), o = document.createElement("div");
1494
- o.appendChild(a);
1495
- let s = o.textContent || "";
1496
- if (o.querySelectorAll("img, br, hr, input, area, base, col, embed, link, meta, param, source, track, wbr").length > 0 && !(r === "right" && o.querySelectorAll("img, hr, input, area, base, col, embed, link, meta, param, source, track, wbr").length === 0 && s.trim() === "")) return !1;
1497
- let c = s.includes("\xA0") || o.innerHTML.includes("&nbsp;") || i.toString().includes("\xA0"), l = t.nodeType === Node.TEXT_NODE && (r === "left" ? (t.textContent || "").slice(0, n) : (t.textContent || "").slice(n)).includes("\xA0");
1498
- if (c || l) return !1;
1499
- o.style.position = "absolute", o.style.visibility = "hidden", o.style.height = "auto", o.style.width = "auto", o.style.whiteSpace = window.getComputedStyle(e).whiteSpace, document.body.appendChild(o);
1500
- let u = o.getBoundingClientRect().width;
1501
- return document.body.removeChild(o), !(u > 0 || !xe(s) || window.getComputedStyle(e).whiteSpace.startsWith("pre") && s.length > 0);
1502
- }, Pt = (e) => {
1503
- var t;
1504
- let n = T.getDeepestNode(e);
1505
- if (n === null || T.isEmpty(e)) return !0;
1506
- if (T.isNativeInput(n)) return n.selectionEnd === 0;
1507
- if (T.isEmpty(e)) return !0;
1508
- let [r, i] = jt();
1509
- if (r === null) return !1;
1510
- let a = window.getSelection(), o = (t = a == null ? void 0 : a.focusNode) == null ? null : t;
1511
- return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 : Nt(e, r, i, "left");
1512
- }, Ft = (e) => {
1513
- let t = T.getDeepestNode(e, !0);
1514
- if (t === null) return !0;
1515
- if (T.isNativeInput(t)) return t.selectionEnd === t.value.length;
1516
- let [n, r] = jt();
1517
- return n === null ? !1 : Nt(e, n, r, "right");
1518
- }, It, I = class e {
1519
- constructor(e, t) {
1520
- this.cursor = -1, this.items = [], this.items = e == null ? [] : e, this.focusedCssClass = t;
1521
- }
1522
- get currentItem() {
1523
- return this.cursor === -1 ? null : this.items[this.cursor];
1524
- }
1525
- setCursor(e) {
1526
- e < this.items.length && e >= -1 && (this.dropCursor(), this.cursor = e, this.items[this.cursor].classList.add(this.focusedCssClass), this.items[this.cursor].setAttribute("data-blok-focused", "true"));
1527
- }
1528
- setItems(e) {
1529
- this.items = e;
1530
- }
1531
- hasItems() {
1532
- return this.items.length > 0;
1533
- }
1534
- next() {
1535
- this.cursor = this.leafNodesAndReturnIndex(e.directions.RIGHT);
1536
- }
1537
- previous() {
1538
- this.cursor = this.leafNodesAndReturnIndex(e.directions.LEFT);
1539
- }
1540
- dropCursor() {
1541
- this.cursor !== -1 && (this.items[this.cursor].classList.remove(this.focusedCssClass), this.items[this.cursor].removeAttribute("data-blok-focused"), this.cursor = -1);
1542
- }
1543
- leafNodesAndReturnIndex(t) {
1544
- if (this.items.length === 0) return this.cursor;
1545
- let n = t === e.directions.RIGHT ? -1 : 0, r = this.cursor === -1 ? n : this.cursor;
1546
- r !== -1 && (this.items[r].classList.remove(this.focusedCssClass), this.items[r].removeAttribute("data-blok-focused"));
1547
- let i = t === e.directions.RIGHT ? (r + 1) % this.items.length : (this.items.length + r - 1) % this.items.length;
1548
- return T.canSetCaret(this.items[i]) && te(() => Xe.setCursor(this.items[i]), 50)(), this.items[i].classList.add(this.focusedCssClass), this.items[i].setAttribute("data-blok-focused", "true"), i;
1549
- }
1550
- };
1551
- It = I, It.directions = {
1552
- RIGHT: "right",
1553
- LEFT: "left"
1554
- };
1555
- //#endregion
1556
- //#region src/components/flipper.ts
1557
- var Lt = class e {
1558
- get isActivated() {
1559
- return this.activated;
1560
- }
1561
- constructor(t) {
1562
- var n, r;
1563
- this.iterator = null, this.activated = !1, this.skipNextTabFocus = !1, this.flipCallbacks = [], this.onKeyDown = (t) => {
1564
- var n;
1565
- let r = t.target;
1566
- if (this.shouldSkipTarget(r, t)) return;
1567
- let i = this.getKeyCode(t), a = i === s.LEFT || i === s.RIGHT || i === s.UP || i === s.DOWN;
1568
- if (!(t.shiftKey && a) && this.isEventReadyForHandling(t) && !(i === s.ENTER && !((n = this.iterator) != null && n.currentItem))) switch (t.stopPropagation(), t.stopImmediatePropagation(), i !== null && e.usedKeys.includes(i) && t.preventDefault(), i) {
1569
- case s.TAB:
1570
- this.handleTabPress(t);
1571
- break;
1572
- case s.LEFT:
1573
- this.onArrowLeftCallback && this.onArrowLeftCallback();
1574
- break;
1575
- case s.UP:
1576
- this.flipLeft();
1577
- break;
1578
- case s.RIGHT:
1579
- var o;
1580
- (o = this.iterator) != null && o.currentItem && this.currentItemHasChildren() && this.handleEnterPress(t);
1581
- break;
1582
- case s.DOWN:
1583
- this.flipRight();
1584
- break;
1585
- case s.ENTER:
1586
- this.handleEnterPress(t);
1587
- break;
1588
- case null: break;
1589
- }
1590
- }, this.iterator = new I(t.items || [], (n = t.focusedItemClass) == null ? "" : n), this.activateCallback = t.activateCallback, this.allowedKeys = t.allowedKeys || e.usedKeys, this.handleContentEditableTargets = (r = t.handleContentEditableTargets) == null ? !1 : r, this.onArrowLeftCallback = t.onArrowLeft;
1591
- }
1592
- static get usedKeys() {
1593
- return [
1594
- s.TAB,
1595
- s.LEFT,
1596
- s.RIGHT,
1597
- s.ENTER,
1598
- s.UP,
1599
- s.DOWN
1600
- ];
1601
- }
1602
- activate(e, t) {
1603
- if (this.activated = !0, e) {
1604
- var n;
1605
- (n = this.iterator) == null || n.setItems(e);
1606
- }
1607
- if (t !== void 0) {
1608
- var r;
1609
- (r = this.iterator) == null || r.setCursor(t);
1610
- }
1611
- document.addEventListener("keydown", this.onKeyDown, !0), window.addEventListener("keydown", this.onKeyDown, !0);
1612
- }
1613
- deactivate() {
1614
- this.activated = !1, this.dropCursor(), this.skipNextTabFocus = !1, document.removeEventListener("keydown", this.onKeyDown, !0), window.removeEventListener("keydown", this.onKeyDown, !0);
1615
- }
1616
- focusFirst() {
1617
- this.dropCursor(), this.flipRight();
1618
- }
1619
- focusItem(e, t) {
1620
- var n;
1621
- let r = this.iterator;
1622
- if (r && r.hasItems()) {
1623
- if (e < 0) {
1624
- r.dropCursor();
1625
- return;
1626
- }
1627
- ((n = t == null ? void 0 : t.skipNextTab) == null ? !r.currentItem && e === 0 : n) && (this.skipNextTabFocus = !0), r.setCursor(e);
1628
- }
1629
- }
1630
- flipLeft() {
1631
- var e;
1632
- (e = this.iterator) == null || e.previous(), this.flipCallback();
1633
- }
1634
- flipRight() {
1635
- var e;
1636
- (e = this.iterator) == null || e.next(), this.flipCallback();
1637
- }
1638
- hasFocus() {
1639
- var e;
1640
- return !!((e = this.iterator) != null && e.currentItem);
1641
- }
1642
- currentItemHasChildren() {
1643
- var e;
1644
- let t = (e = this.iterator) == null ? void 0 : e.currentItem;
1645
- return t ? t.hasAttribute("data-blok-has-children") : !1;
1646
- }
1647
- onFlip(e) {
1648
- this.flipCallbacks.push(e);
1649
- }
1650
- removeOnFlip(e) {
1651
- this.flipCallbacks = this.flipCallbacks.filter((t) => t !== e);
1652
- }
1653
- dropCursor() {
1654
- var e;
1655
- (e = this.iterator) == null || e.dropCursor();
1656
- }
1657
- getKeyCode(e) {
1658
- var t;
1659
- return (t = {
1660
- Tab: s.TAB,
1661
- Enter: s.ENTER,
1662
- ArrowLeft: s.LEFT,
1663
- ArrowRight: s.RIGHT,
1664
- ArrowUp: s.UP,
1665
- ArrowDown: s.DOWN
1666
- }[e.key]) == null ? null : t;
1667
- }
1668
- isEventReadyForHandling(e) {
1669
- let t = this.getKeyCode(e);
1670
- return this.activated && t !== null && this.allowedKeys.includes(t);
1671
- }
1672
- setHandleContentEditableTargets(e) {
1673
- this.handleContentEditableTargets = e;
1674
- }
1675
- getHandleContentEditableTargets() {
1676
- return this.handleContentEditableTargets;
1677
- }
1678
- handleTabPress(e) {
1679
- let t = e.shiftKey ? I.directions.LEFT : I.directions.RIGHT;
1680
- if (this.skipNextTabFocus) {
1681
- this.skipNextTabFocus = !1;
1682
- return;
1683
- }
1684
- switch (t) {
1685
- case I.directions.RIGHT:
1686
- this.flipRight();
1687
- break;
1688
- case I.directions.LEFT:
1689
- this.flipLeft();
1690
- break;
1691
- }
1692
- }
1693
- handleExternalKeydown(e) {
1694
- this.onKeyDown(e);
1695
- }
1696
- handleEnterPress(e) {
1697
- var t, n;
1698
- this.activated && ((t = this.iterator) != null && t.currentItem && (e.stopPropagation(), e.preventDefault(), this.iterator.currentItem.click()), h(this.activateCallback) && (n = this.iterator) != null && n.currentItem && this.activateCallback(this.iterator.currentItem));
1699
- }
1700
- scrollElementIntoView(e) {
1701
- let t = e;
1702
- if (typeof t.scrollIntoViewIfNeeded == "function") {
1703
- t.scrollIntoViewIfNeeded();
1704
- return;
1705
- }
1706
- t.scrollIntoView({ block: "nearest" });
1707
- }
1708
- flipCallback() {
1709
- var e;
1710
- (e = this.iterator) != null && e.currentItem && this.scrollElementIntoView(this.iterator.currentItem), this.flipCallbacks.forEach((e) => e());
1711
- }
1712
- shouldSkipTarget(e, t) {
1713
- if (!e) return !1;
1714
- let n = e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement, r = t.key === "Tab" || t.key === "ArrowUp" || t.key === "ArrowDown" || t.key === "Enter" || t.key === "ArrowRight" || t.key === "ArrowLeft", i = e.getAttribute("data-blok-flipper-navigation-target") === "true" && r, a = e.isContentEditable, o = e.closest("[data-blok-link-tool-input-opened=\"true\"]") !== null, s = a && !this.handleContentEditableTargets;
1715
- return n && !i || s || o;
1716
- }
1717
- }, Rt = [
1718
- {
1719
- name: "gray",
1720
- text: "#787774",
1721
- bg: "#f1f1ef"
1722
- },
1723
- {
1724
- name: "brown",
1725
- text: "#9f6b53",
1726
- bg: "#f4eeee"
1727
- },
1728
- {
1729
- name: "orange",
1730
- text: "#d9730d",
1731
- bg: "#fbecdd"
1732
- },
1733
- {
1734
- name: "yellow",
1735
- text: "#cb9b00",
1736
- bg: "#fbf3db"
1737
- },
1738
- {
1739
- name: "green",
1740
- text: "#448361",
1741
- bg: "#edf3ec"
1742
- },
1743
- {
1744
- name: "blue",
1745
- text: "#337ea9",
1746
- bg: "#e7f3f8"
1747
- },
1748
- {
1749
- name: "purple",
1750
- text: "#9065b0",
1751
- bg: "#f6f3f9"
1752
- },
1753
- {
1754
- name: "pink",
1755
- text: "#c14c8a",
1756
- bg: "#f9f0f5"
1757
- },
1758
- {
1759
- name: "red",
1760
- text: "#d44c47",
1761
- bg: "#fdebec"
1762
- }
1763
- ], zt = [
1764
- {
1765
- name: "gray",
1766
- text: "#9b9b9b",
1767
- bg: "#2f2f2f"
1768
- },
1769
- {
1770
- name: "brown",
1771
- text: "#c59177",
1772
- bg: "#452a1c"
1773
- },
1774
- {
1775
- name: "orange",
1776
- text: "#dc8c47",
1777
- bg: "#4d2f14"
1778
- },
1779
- {
1780
- name: "yellow",
1781
- text: "#d4ab49",
1782
- bg: "#544012"
1783
- },
1784
- {
1785
- name: "green",
1786
- text: "#5db184",
1787
- bg: "#1e432f"
1788
- },
1789
- {
1790
- name: "blue",
1791
- text: "#5c9fcc",
1792
- bg: "#123a54"
1793
- },
1794
- {
1795
- name: "purple",
1796
- text: "#a67dca",
1797
- bg: "#341d49"
1798
- },
1799
- {
1800
- name: "pink",
1801
- text: "#d45e99",
1802
- bg: "#4b1b33"
1803
- },
1804
- {
1805
- name: "red",
1806
- text: "#dd5e5a",
1807
- bg: "#4e1a18"
1808
- }
1809
- ];
1810
- function Bt(e, t) {
1811
- return `var(--blok-color-${e}-${t})`;
1812
- }
1813
- //#endregion
1814
- //#region src/components/utils/color-mapping.ts
1815
- function Vt(e, t, n) {
1816
- let r = t / 100, i = n / 100;
1817
- if (r === 0) {
1818
- let e = Math.round(i * 255);
1819
- return [
1820
- e,
1821
- e,
1822
- e
1823
- ];
1824
- }
1825
- let a = (e) => e < 0 ? e + 1 : e > 1 ? e - 1 : e, o = (e, t, n) => {
1826
- let r = a(n);
1827
- return r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
1828
- }, s = i < .5 ? i * (1 + r) : i + r - i * r, c = 2 * i - s, l = e / 360;
1829
- return [
1830
- Math.round(o(c, s, l + 1 / 3) * 255),
1831
- Math.round(o(c, s, l) * 255),
1832
- Math.round(o(c, s, l - 1 / 3) * 255)
1833
- ];
1834
- }
1835
- function L(e) {
1836
- let t = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);
1837
- if (t) return [
1838
- parseInt(t[1], 16),
1839
- parseInt(t[2], 16),
1840
- parseInt(t[3], 16)
1841
- ];
1842
- let n = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})[0-9a-f]{2}$/i.exec(e);
1843
- if (n) return [
1844
- parseInt(n[1], 16),
1845
- parseInt(n[2], 16),
1846
- parseInt(n[3], 16)
1847
- ];
1848
- let r = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e);
1849
- if (r) return [
1850
- parseInt(r[1] + r[1], 16),
1851
- parseInt(r[2] + r[2], 16),
1852
- parseInt(r[3] + r[3], 16)
1853
- ];
1854
- let i = /^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]$/i.exec(e);
1855
- if (i) return [
1856
- parseInt(i[1] + i[1], 16),
1857
- parseInt(i[2] + i[2], 16),
1858
- parseInt(i[3] + i[3], 16)
1859
- ];
1860
- let a = /^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);
1861
- if (a) return [
1862
- Number(a[1]),
1863
- Number(a[2]),
1864
- Number(a[3])
1865
- ];
1866
- let o = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);
1867
- return o ? Vt(Number(o[1]), Number(o[2]), Number(o[3])) : null;
1868
- }
1869
- var Ht = .1;
1870
- function R(e) {
1871
- let t = e[0] / 255, n = e[1] / 255, r = e[2] / 255, i = Math.max(t, n, r), a = Math.min(t, n, r), o = (i + a) / 2;
1872
- if (i === a) return [
1873
- 0,
1874
- 0,
1875
- o
1876
- ];
1877
- let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
1878
- return [
1879
- ((e) => e === t ? ((n - r) / s + (n < r ? 6 : 0)) / 6 : e === n ? ((r - t) / s + 2) / 6 : ((t - n) / s + 4) / 6)(i) * 360,
1880
- c,
1881
- o
1882
- ];
1883
- }
1884
- function Ut(e, t) {
1885
- let n = e[1] < Ht, r = t[1] < Ht;
1886
- if (n && r) {
1887
- let n = Math.abs(e[2] - t[2]);
1888
- return n * n;
1889
- }
1890
- if (n !== r) return 1e3;
1891
- let i = Math.abs(e[0] - t[0]), a = Math.min(i, 360 - i) / 180, o = Math.abs(e[1] - t[1]), s = Math.abs(e[2] - t[2]);
1892
- return 8 * a * a + 1 * o * o + 1 * s * s;
1893
- }
1894
- function z(e, t) {
1895
- let n = L(e);
1896
- if (n === null) return e;
1897
- let r = R(n);
1898
- return Rt.reduce((e, n) => {
1899
- let i = L(n[t]);
1900
- if (i === null) return e;
1901
- let a = Ut(r, R(i));
1902
- return a < e.distance ? {
1903
- color: n[t],
1904
- distance: a
1905
- } : e;
1906
- }, {
1907
- color: e,
1908
- distance: Infinity
1909
- }).color;
1910
- }
1911
- function Wt(e, t) {
1912
- var n;
1913
- let r = L(e);
1914
- if (r === null) return null;
1915
- let i = R(r), a = [...Rt, ...zt].reduce((e, n) => {
1916
- let r = L(n[t]);
1917
- if (r === null) return e;
1918
- let a = Ut(i, R(r));
1919
- return e === null || a < e.distance ? {
1920
- name: n.name,
1921
- distance: a
1922
- } : e;
1923
- }, null);
1924
- return (n = a == null ? void 0 : a.name) == null ? null : n;
1925
- }
1926
- //#endregion
1927
- //#region src/tools/table/table-cell-clipboard.ts
1928
- var B = "data-blok-table-cells";
1929
- function Gt(e, t, n) {
1930
- return e ? `background-color: ${n}` : t ? "background-color: transparent" : "";
1931
- }
1932
- function Kt(e) {
1933
- if (e.length === 0) return {
1934
- rows: 0,
1935
- cols: 0,
1936
- cells: []
1937
- };
1938
- let t = Math.min(...e.map((e) => e.row)), n = Math.min(...e.map((e) => e.col)), r = Math.max(...e.map((e) => e.row)), i = Math.max(...e.map((e) => e.col)), a = r - t + 1, o = i - n + 1, s = Array.from({ length: a }, () => Array.from({ length: o }, () => ({ blocks: [] })));
1939
- for (let r of e) {
1940
- let e = r.row - t, i = r.col - n;
1941
- s[e][i] = { blocks: r.blocks }, r.color !== void 0 && (s[e][i].color = r.color), r.textColor !== void 0 && (s[e][i].textColor = r.textColor), r.placement !== void 0 && (s[e][i].placement = r.placement);
1942
- }
1943
- return {
1944
- rows: a,
1945
- cols: o,
1946
- cells: s
1947
- };
1948
- }
1949
- function qt(e) {
1950
- let { data: t } = e;
1951
- return typeof t.text == "string" ? t.text : Array.isArray(t.items) ? t.items.filter((e) => typeof e == "string").join(" ") : "";
1952
- }
1953
- function Jt(e) {
1954
- var t;
1955
- let n = document.createElement("div");
1956
- return n.innerHTML = e, (t = n.textContent) == null ? "" : t;
1957
- }
1958
- function Yt(e) {
1959
- return Jt(qt(e));
1960
- }
1961
- function Xt(e) {
1962
- return `<table ${B}='${JSON.stringify(e).replace(/'/g, "&#39;")}'>${e.cells.map((e) => `<tr>${e.map((e) => {
1963
- let t = e.blocks.map(qt).join(" "), n = [e.color ? `background-color: ${e.color}` : "", e.textColor ? `color: ${e.textColor}` : ""].filter(Boolean).join("; ");
1964
- return `<td${n ? ` style="${n}"` : ""}>${t}</td>`;
1965
- }).join("")}</tr>`).join("")}</table>`;
1966
- }
1967
- function Zt(e) {
1968
- return e.cells.map((e) => e.map((e) => e.blocks.map(Yt).join(" ")).join(" ")).join("\n");
1969
- }
1970
- var Qt = new Set(["color", "background-color"]), $t = {
1971
- b: !0,
1972
- strong: !0,
1973
- i: !0,
1974
- em: !0,
1975
- br: !0,
1976
- a: {
1977
- href: !0,
1978
- target: "_blank",
1979
- rel: "nofollow"
1980
- },
1981
- mark: (e) => {
1982
- let t = e.style, n = Array.from({ length: t.length }, (e, n) => t.item(n));
1983
- for (let e of n) Qt.has(e) || t.removeProperty(e);
1984
- return t.length > 0 ? { style: !0 } : {};
1985
- }
1986
- };
1987
- function V(e) {
1988
- let t = e.replace(/\s/g, "");
1989
- return t === "rgb(0,0,0)" || t === "#000000";
1990
- }
1991
- function en(e) {
1992
- let t = e.cloneNode(!0);
1993
- for (let e of Array.from(t.querySelectorAll("span"))) {
1994
- var n, r, i;
1995
- let t = (n = e.getAttribute("style")) == null ? "" : n, a = /font-weight\s*:\s*(700|bold)/i.test(t), o = /font-style\s*:\s*italic/i.test(t), s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(t), c = /background-color\s*:\s*([^;]+)/i.exec(t), l = s == null || (r = s[1]) == null ? void 0 : r.trim(), u = c == null || (i = c[1]) == null ? void 0 : i.trim(), d = l !== void 0 && !V(l), f = u !== void 0 && u !== "transparent";
1996
- if (!a && !o && !d && !f) continue;
1997
- let p = d ? z(l, "text") : "", m = f ? z(u, "bg") : "", h = [d ? `color: ${p}` : "", Gt(f, d, m)].filter(Boolean).join("; "), g = e.innerHTML, _ = h ? `<mark style="${h};">${g}</mark>` : g, v = o ? `<i>${_}</i>` : _, y = a ? `<b>${v}</b>` : v;
1998
- e.replaceWith(document.createRange().createContextualFragment(y));
1999
- }
2000
- for (let e of Array.from(t.querySelectorAll("a[style]"))) {
2001
- var a, o, s;
2002
- let t = (a = e.getAttribute("style")) == null ? "" : a, n = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(t), r = /background-color\s*:\s*([^;]+)/i.exec(t), i = n == null || (o = n[1]) == null ? void 0 : o.trim(), c = r == null || (s = r[1]) == null ? void 0 : s.trim(), l = i !== void 0 && !V(i) && i !== "inherit", u = c !== void 0 && c !== "transparent" && c !== "inherit";
2003
- if (!l && !u) continue;
2004
- let d = l ? z(i, "text") : "", f = u ? z(c, "bg") : "", p = [l ? `color: ${d}` : "", Gt(u, l, f)].filter(Boolean).join("; "), m = e;
2005
- m.innerHTML = `<mark style="${p};">${m.innerHTML}</mark>`, m.style.removeProperty("color"), m.style.removeProperty("background-color");
2006
- }
2007
- for (let e of Array.from(t.querySelectorAll("p"))) {
2008
- let t = document.createRange().createContextualFragment(e.innerHTML + "<br>");
2009
- e.replaceWith(t);
2010
- }
2011
- return N(t.innerHTML, $t).replace(/(<br\s*\/?>|\s)+$/i, "").trim();
2012
- }
2013
- function tn(e) {
2014
- if (!e) return null;
2015
- let t = new DOMParser().parseFromString(e, "text/html").querySelector("table");
2016
- if (!t || t.hasAttribute(B)) return null;
2017
- let n = t.querySelectorAll("tr");
2018
- if (n.length === 0) return null;
2019
- let r = [];
2020
- n.forEach((e) => {
2021
- let t = e.querySelectorAll("td, th"), n = [];
2022
- t.forEach((e) => {
2023
- var t;
2024
- let r = en(e).split(/<br\s*\/?>/i).map((e) => e.trim()).filter(Boolean), i = { blocks: r.length > 0 ? r.map((e) => ({
2025
- tool: "paragraph",
2026
- data: { text: e }
2027
- })) : [{
2028
- tool: "paragraph",
2029
- data: { text: "" }
2030
- }] }, a = (t = e.getAttribute("style")) == null ? "" : t, o = /background-color\s*:\s*([^;]+)/i.exec(a);
2031
- o != null && o[1] && (i.color = z(o[1].trim(), "bg"));
2032
- let s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(a);
2033
- s != null && s[1] && !V(s[1].trim()) && (i.textColor = z(s[1].trim(), "text")), n.push(i);
2034
- }), r.push(n);
2035
- });
2036
- let i = Math.max(0, ...r.map((e) => e.length));
2037
- if (r.length === 0 || i === 0) return null;
2038
- for (let e of r) for (; e.length < i;) e.push({ blocks: [{
2039
- tool: "paragraph",
2040
- data: { text: "" }
2041
- }] });
2042
- return {
2043
- rows: r.length,
2044
- cols: i,
2045
- cells: r
2046
- };
2047
- }
2048
- function nn(e) {
2049
- let t = RegExp(`${B}='([^']*)'|${B}="([^"]*)"`, "s").exec(e);
2050
- if (!t) return null;
2051
- try {
2052
- var n;
2053
- let e = (n = t[1]) == null ? t[2] : n;
2054
- if (e === void 0) return null;
2055
- let r = e.replace(/&#39;/g, "'").replace(/&quot;/g, "\"").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
2056
- return JSON.parse(r);
2057
- } catch (e) {
2058
- return null;
2059
- }
2060
- }
2061
- //#endregion
2062
- //#region src/components/icons/index.ts
2063
- var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m4.5 10.5 4 4 7-8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", an = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 2 Q10 10 18 10 Q10 10 10 18 Q10 10 2 10 Q10 10 10 2Z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", on = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m5 15 10-10m0 10L5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", sn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n transform=\"translate(0,-1)\"\n d=\"M6 11h4.9231c.6528 0 1.2789-.3161 1.7405-.8787.4617-.56259.721-1.32565.721-2.1213 0-.79565-.2593-1.55871-.721-2.12132C12.202 5.31607 11.5759 5 10.9231 5H6v6Zm0 0h5.5385c.6528 0 1.2789.3161 1.7405.8787.4617.5626.721 1.3257.721 2.1213 0 .7956-.2593 1.5587-.721 2.1213-.4616.5626-1.0877.8787-1.7405.8787H6v-6Z\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8.5 4h6m-10 12h6m1-12-4 12\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.5 11.5a3.5 3.5 0 0 0 5 0l2-2a3.536 3.536 0 0 0-5-5l-1 1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11.5 8.5a3.5 3.5 0 0 0-5 0l-2 2a3.536 3.536 0 0 0 5 5l1-1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"1.25\" y=\"1.25\" width=\"17.5\" height=\"17.5\" rx=\"4.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M6.5 14.5L10 5.5l3.5 9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8.5 11h3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", dn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.5 3.5v7.5a4.5 4.5 0 0 0 9 0V3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M3.5 18.5h13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", fn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10h12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M8.2 10c-1-.5-1.8-1.27-1.8-2.4 0-1.99 1.61-3.6 3.6-3.6s3.6 1.61 3.6 3.6\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11.8 10c1 .5 1.8 1.27 1.8 2.4 0 1.99-1.61 3.6-3.6 3.6s-3.6-1.61-3.6-3.6\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", pn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14.5 6.5l2-2-2-2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16.5 4.5h-4a5 5 0 0 0-5 5v1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M5.5 13.5l-2 2 2 2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M3.5 15.5h4a5 5 0 0 0 5-5v-1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", mn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"7.5\" cy=\"5.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"5.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"7.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"7.5\" cy=\"14.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"14.5\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", hn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 10h11M10 4.5v11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", gn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m6 8 4 4 4-4\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", _n = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m12 5-5 5 5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", vn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m8 5 5 5-5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", yn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"9\" cy=\"9\" r=\"4.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"m12.5 12.5 3.5 3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", bn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 5 2.5-1.66667V15\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", xn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m7.5 10h-3.3333c0-3.3333 3.3333-2.5 3.3333-5 0-1.25-1.6667-2.08333-3.3333-.83333\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Sn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.5833 3.75C16 7.91667 17.5 8.75 17.5 10c0 .442-.1756.866-.4882 1.1785-.3125.3126-.7364.4882-1.1785.4882.4421 0 .866.1756 1.1785.4881.3126.3126.4882.7365.4882 1.1785 0 1.5-1.6667 2.5-3.3333 1.25\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 15V5M14.1667 8.33333V10.8333C14.1667 11.0543 14.2545 11.2663 14.4107 11.4226C14.567 11.5789 14.779 11.6667 15 11.6667H17.5M17.5 8.33333V15M3.33334 10H10M3.33334 15V5\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", wn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10M3.33334 15V5M10 15V5M17.5 8.33333H14.1667V10.8333H15.25C16.5 10.8333 17.5 11.75 17.5 12.9167C17.5 14.0833 16.5 15 15.25 15C14.8333 15 14.5 14.9167 14.1667 14.75\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Tn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 8.3333c0 .9205.7462 1.6667 1.6666 1.6667.9205 0 1.6667-.7462 1.6667-1.6667 0-.9204-.7462-1.6666-1.6667-1.6666-.9204 0-1.6666.7462-1.6666 1.6666Zm0 0c0-2.0833.8333-3.3333 2.5-4.99997\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", En = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.5 7.28571V6h-9v1.28571M10 6v9m0 0H8.71429M10 15h1.2857\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Dn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4 3 16h14Z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M10 8.5v3.5m0 2v.01\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", On = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3 3l3 2-3 2M9 5h8M6 10h11M6 15h11\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", kn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8 5h9M8 10h9M8 15h9\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n />\n <circle cx=\"4\" cy=\"5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4\" cy=\"15\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", An = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8 5h9M8 10h9M8 15h9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <text x=\"4\" y=\"6\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">1</text>\n <text x=\"4\" y=\"11\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">2</text>\n <text x=\"4\" y=\"16\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">3</text>\n</svg>\n", jn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 5h7M10 10h7M10 15h7M3 5l1 1 2-2M3 10l1 1 2-2M3 15l1 1 2-2\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Mn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 4h11A1.5 1.5 0 0 1 17 5.5V8H3V5.5A1.5 1.5 0 0 1 4.5 4Z\" fill=\"currentColor\"/>\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Pn = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"/>\n <circle cx=\"12\" cy=\"12\" r=\"3\"/>\n</svg>\n", Fn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 4H7.5v12H4.5A1.5 1.5 0 0 1 3 14.5v-9A1.5 1.5 0 0 1 4.5 4Z\" fill=\"currentColor\"/>\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", In = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4l-3 3m3-3l3 3M10 4v7M5 16h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 16l-3-3m3 3l3-3M10 16V9M5 4h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10l3-3M4 10l3 3M4 10h7M16 5v10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", zn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16 10l-3-3m3 3l-3 3M16 10H9M4 5v10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Bn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"7\" y=\"7\" width=\"9\" height=\"9\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M5 13h-.5A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h7A1.5 1.5 0 0 1 13 4.5V5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Vn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12.5 5.5l2 2M4.5 13.5l8-8 2 2-8 8H4.5v-2z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Hn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 6.5h11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M8 6.5V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M6.5 6.5l.5 8.5a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1l.5-8.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8.5 9.5v3.5M11.5 9.5v3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"5\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"15\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n</svg>\n", Wn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5m3.5 5 2-1.5V15\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Gn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5m7 10h-3c0-3 3-2.25 3-4.5 0-1.125-1.5-1.875-3-.75\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Kn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11 8.5c1.25-.75 2.5-.25 2.5.75 0 .75-1 1.25-1 1.25s1 .5 1 1.25c0 1-1.25 1.5-2.5.75\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", qn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M10 4C8 6 7.5 8 7.5 10C7.5 12 8 14 10 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M10 4C12 6 12.5 8 12.5 10C12.5 12 12 14 10 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M4 10H16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Jn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"5.5\" width=\"14\" height=\"9\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M3 8L10 10L17 8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Yn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M7.5 4L7.5 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M12.5 4L12.5 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M4 8H16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M4 12H16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Xn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 4v12\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\"/>\n <path d=\"M9 6h7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M9 10h7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M9 14h5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Zn = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\"/><line x1=\"9\" y1=\"10\" x2=\"15\" y2=\"10\"/><line x1=\"12\" y1=\"7\" x2=\"12\" y2=\"13\"/></svg>", Qn = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\n <rect x=\"2.5\" y=\"3\" width=\"12\" height=\"6\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M14.5 6H16a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-6a1 1 0 0 0-1 1V14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <rect x=\"8\" y=\"14\" width=\"3\" height=\"3.5\" rx=\"0.75\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>", $n = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10h12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", er = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m7 6-4 4 4 4m6-8 4 4-4 4\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", tr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m6 7-3 3 3 3m8-6 3 3-3 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"m12 5-4 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", nr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 3l2.2 4.4 4.8.7-3.5 3.4.8 4.8L10 14l-4.3 2.3.8-4.8L3 8.1l4.8-.7L10 3z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", rr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <circle cx=\"7.5\" cy=\"8.5\" r=\"0.75\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"8.5\" r=\"0.75\" fill=\"currentColor\"/>\n <path d=\"M7.5 12a3 3 0 0 0 5 0\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", ir = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 17v-7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M10 13c-3 0-6-2-6-5 3 0 6 2 6 5z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M10 10c3 0 6-2.5 6-5.5-3 0-6 2.5-6 5.5z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", ar = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 3v4c0 1.1.9 2 2 2v8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M9 3v4c0 1.1-.9 2-2 2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M7 3v3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M13 3v14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M13 3c1.7 0 3 1.5 3 3.5S13 10 13 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", or = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M10 7.5l2.4 1.7-.9 2.8h-3l-.9-2.8z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M10 7.5V4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M12.4 9.2l3.1-1.1\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M11.5 12l2 2.6\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M8.5 12l-2 2.6\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M7.6 9.2l-3.1-1.1\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", sr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <ellipse cx=\"10\" cy=\"10\" rx=\"2.75\" ry=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3.5 10h13\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", cr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8 13.5c-.25-1.5-1.5-3.5-2.5-5.5a4.5 4.5 0 0 1 9 0c-1 2-2.25 4-2.5 5.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8 13.5v1.75c0 .41.34.75.75.75h2.5c.41 0 .75-.34.75-.75V13.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M8 14.75h4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M9.25 11l.75-3 .75 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <circle cx=\"10\" cy=\"7\" r=\"1\" stroke=\"currentColor\" stroke-width=\"1\"/>\n</svg>\n", lr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.5 5l-1 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M12.5 5l-1 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M5 8h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M5 12h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", ur = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 17V3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M5 3c2 0 3 1.5 5 1.5S14 3 16 3v8c-2 0-3 1.5-5 1.5S7 11 5 11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", dr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <ellipse cx=\"10\" cy=\"5.5\" rx=\"6\" ry=\"2.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M4 5.5v4c0 1.38 2.69 2.5 6 2.5s6-1.12 6-2.5v-4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M4 9.5v4c0 1.38 2.69 2.5 6 2.5s6-1.12 6-2.5v-4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", fr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"4.5\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"4.5\" y=\"9\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"9\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"14\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n</svg>\n", pr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"4.5\" cy=\"6.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4.5\" cy=\"13.5\" r=\"1\" fill=\"currentColor\"/>\n <path d=\"M7.5 6.5h9M7.5 10h9M7.5 13.5h9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", mr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4.5\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8.5h14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M7 3v3M13 3v3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <circle cx=\"7\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"13\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", hr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-dasharray=\"1.5 2\"/>\n <path d=\"M5.5 7 8.5 10 5.5 13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M14.5 7 11.5 10 14.5 13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", gr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><path d=\"M12 3v18\"/><path d=\"M8 8l4 4-4 4\"/><path d=\"M16 8l-4 4 4 4\"/></svg>", _r = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"6\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"11\" y=\"4\" width=\"6\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", vr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"6\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"6\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"6\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n</svg>\n", yr = {
2064
- "⌘": "⌘",
2065
- "⇧": "⇧",
2066
- "⌥": "⌥",
2067
- "⌃": "⌃",
2068
- "⌫": "⌫",
2069
- "⏎": "⏎",
2070
- "⎋": "⎋",
2071
- "␡": "⌦",
2072
- "↑": "↑",
2073
- "↓": "↓",
2074
- "←": "←",
2075
- "→": "→",
2076
- ctrl: "⌃",
2077
- alt: "⌥",
2078
- shift: "⇧",
2079
- enter: "↵",
2080
- backspace: "⌫",
2081
- escape: "⎋",
2082
- esc: "⎋",
2083
- delete: "⌦",
2084
- del: "Del",
2085
- tab: "⇥",
2086
- ins: "Ins",
2087
- win: "⊞"
2088
- };
2089
- function br(e) {
2090
- var t, n;
2091
- let r = e.trim();
2092
- return (t = (n = yr[r.toLowerCase()]) == null ? yr[r] : n) == null ? r : t;
2093
- }
2094
- function xr(e) {
2095
- let t = /([⌘⇧⌥⌃⌫⏎⎋⌦↑↓←→↵⇥])|([^⌘⇧⌥⌃⌫⏎⎋⌦↑↓←→↵⇥]+)/gu, n = [];
2096
- for (let r of e.matchAll(t)) {
2097
- let e = r[0].trim();
2098
- e && n.push(e);
2099
- }
2100
- return n;
2101
- }
2102
- function Sr(e) {
2103
- let t = e.length === 1, n = t ? 13 : 11, r = t ? 13 : 7.5, i = Math.ceil(e.length * r);
2104
- return `<svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="16" viewBox="0 0 ${i} 16" style="display:inline-block;vertical-align:middle;flex-shrink:0" aria-hidden="true"><text x="${i / 2}" y="9" text-anchor="middle" dominant-baseline="middle" font-family="-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',sans-serif" font-size="${n}" font-weight="400" fill="currentColor">${e}</text></svg>`;
2105
- }
2106
- function H(e) {
2107
- let t = e.split(" + ").flatMap(xr);
2108
- return t.length === 0 ? e : `<span style="display:inline-flex;align-items:center;line-height:1">${t.map((e) => Sr(br(e))).join("")}</span>`;
2109
- }
2110
- var Cr = {
2111
- "⌘": "Command",
2112
- "⇧": "Shift",
2113
- "⌥": "Option",
2114
- "⌃": "Control",
2115
- "⌫": "Backspace",
2116
- "⌦": "Delete",
2117
- "⏎": "Return",
2118
- "↵": "Return",
2119
- "⎋": "Escape",
2120
- "⇥": "Tab",
2121
- "↑": "Up",
2122
- "↓": "Down",
2123
- "←": "Left",
2124
- "→": "Right",
2125
- del: "Delete",
2126
- ins: "Insert",
2127
- "⊞": "Win"
2128
- };
2129
- function wr(e) {
2130
- let t = e.split(" + ").flatMap(xr);
2131
- return t.length === 0 ? e : t.map((e) => {
2132
- var t, n;
2133
- let r = e.trim(), i = r.toLowerCase();
2134
- return (t = (n = Cr[r]) == null ? Cr[i] : n) == null ? r.toUpperCase() : t;
2135
- }).join("+");
2136
- }
2137
- //#endregion
2138
- //#region src/components/utils/popover/components/hint/hint.const.ts
2139
- var U = {
2140
- root: "",
2141
- alignedStart: "text-start",
2142
- alignedCenter: "text-center",
2143
- title: "",
2144
- description: "opacity-60 mt-[3px]"
2145
- }, Tr = class {
2146
- constructor(e) {
2147
- let t = e.alignment === "center" ? "center" : "start";
2148
- this.nodes = {
2149
- root: T.make("div", [U.root, t === "center" ? U.alignedCenter : U.alignedStart]),
2150
- title: T.make("div", U.title, { textContent: e.title })
2151
- }, this.nodes.root.setAttribute("data-alignment", t), this.nodes.root.appendChild(this.nodes.title), e.description !== void 0 && (this.nodes.description = T.make("div", U.description), this.nodes.description.innerHTML = H(e.description), this.nodes.root.appendChild(this.nodes.description));
2152
- }
2153
- getElement() {
2154
- return this.nodes.root;
2155
- }
2156
- }, Er = class {
2157
- constructor(e) {
2158
- this.params = e;
2159
- }
2160
- get name() {
2161
- if (this.params !== void 0 && "name" in this.params) return this.params.name;
2162
- }
2163
- destroy() {
2164
- Ot();
2165
- }
2166
- onChildrenOpen() {
2167
- var e;
2168
- this.params !== void 0 && "children" in this.params && typeof ((e = this.params.children) == null ? void 0 : e.onOpen) == "function" && this.params.children.onOpen();
2169
- }
2170
- onChildrenClose() {
2171
- var e;
2172
- this.params !== void 0 && "children" in this.params && typeof ((e = this.params.children) == null ? void 0 : e.onClose) == "function" && this.params.children.onClose();
2173
- }
2174
- handleClick() {
2175
- var e, t;
2176
- this.params !== void 0 && "onActivate" in this.params && ((e = (t = this.params).onActivate) == null || e.call(t, this.params));
2177
- }
2178
- addHint(e, t) {
2179
- kt(e, new Tr(t).getElement(), { placement: t.position });
2180
- }
2181
- getMountElement() {
2182
- return this.getElement();
2183
- }
2184
- get children() {
2185
- var e;
2186
- return this.params !== void 0 && "children" in this.params && ((e = this.params.children) == null ? void 0 : e.items) !== void 0 ? this.params.children.items : [];
2187
- }
2188
- get hasChildren() {
2189
- return this.children.length > 0;
2190
- }
2191
- get isChildrenOpen() {
2192
- var e;
2193
- return this.params !== void 0 && "children" in this.params && ((e = this.params.children) == null ? void 0 : e.isOpen) === !0;
2194
- }
2195
- get isChevronHidden() {
2196
- var e;
2197
- return this.params !== void 0 && "children" in this.params && ((e = this.params.children) == null ? void 0 : e.hideChevron) === !0;
2198
- }
2199
- get isChildrenFlippable() {
2200
- var e;
2201
- return !(this.params === void 0 || !("children" in this.params) || ((e = this.params.children) == null ? void 0 : e.isFlippable) === !1);
2202
- }
2203
- get isChildrenSearchable() {
2204
- var e;
2205
- return this.params !== void 0 && "children" in this.params && ((e = this.params.children) == null ? void 0 : e.searchable) === !0;
2206
- }
2207
- get childrenWidth() {
2208
- var e;
2209
- if (!(this.params === void 0 || !("children" in this.params))) return (e = this.params.children) == null ? void 0 : e.width;
2210
- }
2211
- get childrenMinWidth() {
2212
- var e;
2213
- if (!(this.params === void 0 || !("children" in this.params))) return (e = this.params.children) == null ? void 0 : e.minWidth;
2214
- }
2215
- get closeOnActivate() {
2216
- return this.params !== void 0 && "closeOnActivate" in this.params && this.params.closeOnActivate;
2217
- }
2218
- get isActive() {
2219
- return this.params === void 0 || !("isActive" in this.params) ? !1 : typeof this.params.isActive == "function" ? this.params.isActive() : this.params.isActive === !0;
2220
- }
2221
- }, W = {
2222
- item: "flex items-center select-none border-none bg-transparent rounded-lg px-2 py-1 text-text-primary mb-px outline-hidden max-h-9 overflow-hidden data-blok-popover-item-active:bg-icon-active-bg data-blok-popover-item-active:text-icon-active-text can-hover:hover:cursor-pointer can-hover:hover:bg-item-hover-bg data-blok-force-hover:cursor-pointer data-blok-force-hover:bg-item-hover-bg data-[blok-focused=\"true\"]:bg-item-focus-bg data-blok-popover-item-no-hover:hover:bg-transparent data-blok-popover-item-no-hover:cursor-default can-hover:data-blok-popover-item-destructive:hover:text-item-destructive-text can-hover:data-blok-popover-item-destructive:hover:bg-item-destructive-hover-bg [&[data-blok-popover-item-destructive][data-blok-force-hover]]:text-item-destructive-text [&[data-blok-popover-item-destructive][data-blok-force-hover]]:bg-item-destructive-hover-bg [&[data-blok-popover-item-destructive][data-blok-focused=\"true\"]]:text-item-destructive-text [&[data-blok-popover-item-destructive][data-blok-focused=\"true\"]]:bg-item-destructive-hover-bg",
2223
- itemDisabled: "cursor-default pointer-events-none text-text-secondary",
2224
- icon: "flex items-center justify-center w-7 h-7 shrink-0 rounded-lg bg-popover-icon-bg [&_svg]:w-icon [&_svg]:h-icon",
2225
- focused: "is-focused"
2226
- }, Dr = {
2227
- item: "rounded-lg p-1",
2228
- itemIconOnly: "aspect-square justify-center"
2229
- }, Or = { item: "rounded p-[3px] mobile:p-1" }, G = class extends Er {
2230
- get isDisabled() {
2231
- return this.params.isDisabled === !0;
2232
- }
2233
- get toggle() {
2234
- return this.params.toggle;
2235
- }
2236
- get title() {
2237
- return this.params.title;
2238
- }
2239
- get englishTitle() {
2240
- return this.params.englishTitle;
2241
- }
2242
- get searchTerms() {
2243
- return this.params.searchTerms;
2244
- }
2245
- get isConfirmationStateEnabled() {
2246
- return this.confirmationState !== null;
2247
- }
2248
- get isFocused() {
2249
- return this.nodes.root === null ? !1 : this.nodes.root.hasAttribute(a.focused);
2250
- }
2251
- constructor(e, t) {
2252
- super(e), this.params = e, this.nodes = {
2253
- root: null,
2254
- icon: null,
2255
- titleEl: null,
2256
- secondaryLabelEl: null,
2257
- chevron: null
2258
- }, this.confirmationState = null, this.removeSpecialFocusBehavior = () => {
2259
- this.setNoFocus(!1);
2260
- }, this.removeSpecialHoverBehavior = () => {
2261
- this.setNoHover(!1);
2262
- }, this.renderParams = t, this.nodes.root = this.createRootElement(e, t);
2263
- }
2264
- getElement() {
2265
- return this.nodes.root;
2266
- }
2267
- handleClick() {
2268
- if (this.isConfirmationStateEnabled && this.confirmationState !== null) {
2269
- this.activateOrEnableConfirmationMode(this.confirmationState);
2270
- return;
2271
- }
2272
- this.activateOrEnableConfirmationMode(this.params);
2273
- }
2274
- toggleActive(e) {
2275
- if (this.nodes.root === null) return;
2276
- let t = this.nodes.root.hasAttribute(a.popoverItemActive), n = e === void 0 ? !t : e;
2277
- this.setActive(n);
2278
- }
2279
- toggleHidden(e) {
2280
- this.setHidden(e);
2281
- }
2282
- reset() {
2283
- this.isConfirmationStateEnabled && this.disableConfirmationMode();
2284
- }
2285
- onFocus() {
2286
- this.disableSpecialHoverAndFocusBehavior();
2287
- }
2288
- createRootElement(e, t) {
2289
- var r, i;
2290
- let o = (r = t == null ? void 0 : t.wrapperTag) == null ? "div" : r, s = document.createElement(o);
2291
- if (o === "button" && s.setAttribute("type", "button"), s.className = this.getContainerClass(), s.setAttribute(a.popoverItem, ""), s.setAttribute("data-blok-testid", "popover-item"), e.name && s.setAttribute("data-blok-item-name", e.name), e.dataset && Object.entries(e.dataset).forEach(([e, t]) => {
2292
- s.setAttribute(`data-${e}`, t);
2293
- }), e.isDisabled && s.setAttribute(a.disabled, "true"), "isDestructive" in e && e.isDestructive && s.setAttribute(a.popoverItemDestructive, "true"), this.isActive && s.setAttribute(a.popoverItemActive, "true"), this.hasChildren && s.setAttribute(a.hasChildren, "true"), this.createContentElements(s, e, t), e.hint !== void 0 && (t == null || (i = t.hint) == null ? void 0 : i.enabled) !== !1 && e.hint !== void 0) {
2294
- var c, l;
2295
- this.addHint(s, n(n({}, e.hint), {}, {
2296
- position: (t == null || (c = t.hint) == null ? void 0 : c.position) || "right",
2297
- alignment: (t == null || (l = t.hint) == null ? void 0 : l.alignment) || "center"
2298
- }));
2299
- }
2300
- return s;
2301
- }
2302
- createContentElements(e, t, n) {
2303
- var r, i, o;
2304
- let s = (r = n == null ? void 0 : n.iconWithGap) == null ? !0 : r, c = (i = n == null ? void 0 : n.isInline) == null ? !1 : i, l = (o = n == null ? void 0 : n.isNestedInline) == null ? !1 : o, u = t.title;
2305
- if (t.icon && (this.nodes.icon = this.createIconElement(t.icon, s, c, l), e.appendChild(this.nodes.icon)), u !== void 0) {
2306
- let n = document.createElement("div");
2307
- n.className = t.secondaryLabel ? "grow whitespace-nowrap text-[13px] font-medium leading-5" : "mr-auto whitespace-nowrap text-[13px] font-medium leading-5", n.setAttribute(a.popoverItemTitle, ""), n.setAttribute("data-blok-testid", "popover-item-title"), n.textContent = u, e.appendChild(n), this.nodes.titleEl = n;
2308
- }
2309
- if (t.secondaryLabel) {
2310
- let n = document.createElement("div");
2311
- if (n.className = "ml-auto shrink-0 inline-flex items-center whitespace-nowrap pl-20 leading-none text-text-secondary/60", n.setAttribute(a.popoverItemSecondaryTitle, ""), n.setAttribute("data-blok-testid", "popover-item-secondary-title"), n.innerHTML = H(t.secondaryLabel), e.appendChild(n), this.nodes.secondaryLabelEl = n, t.title !== void 0) {
2312
- var d;
2313
- kt((d = n.firstElementChild) == null ? n : d, wr(t.secondaryLabel), { placement: "top" });
2314
- }
2315
- }
2316
- if (t.trailingIcon) {
2317
- let n = document.createElement("div");
2318
- n.className = "ml-auto shrink-0 flex items-center justify-center [&_svg]:w-icon [&_svg]:h-icon", n.setAttribute("data-blok-testid", "popover-item-trailing-icon"), n.innerHTML = t.trailingIcon, e.appendChild(n);
2319
- }
2320
- if (this.hasChildren && !this.isChevronHidden) {
2321
- let t = document.createElement("div");
2322
- t.className = this.getChevronClass(c), t.setAttribute(a.popoverItemIcon, ""), t.setAttribute(a.popoverItemIconChevronRight, ""), t.setAttribute("data-blok-testid", "popover-item-chevron-right"), t.innerHTML = vn, e.appendChild(t), this.nodes.chevron = t;
2323
- }
2324
- }
2325
- createIconElement(e, t, n, r) {
2326
- let i = document.createElement("div");
2327
- return i.className = this.getIconClass(t, n, r), i.setAttribute(a.popoverItemIcon, ""), i.setAttribute("data-blok-testid", "popover-item-icon"), i.innerHTML = e, t && i.setAttribute(a.tool, ""), i;
2328
- }
2329
- getContainerClass() {
2330
- var e, t, n, i;
2331
- let a = (e = (t = this.renderParams) == null ? void 0 : t.isInline) == null ? !1 : e, o = (n = (i = this.renderParams) == null ? void 0 : i.isNestedInline) == null ? !1 : n;
2332
- return r(W.item, !a && !o && "pl-2 pr-3", a && Dr.item, a && this.params.icon && Dr.itemIconOnly, o && Or.item, this.params.isDisabled && W.itemDisabled);
2333
- }
2334
- getIconClass(e, t, n) {
2335
- return r(W.icon, t && "w-auto h-auto bg-transparent [&_svg]:w-icon [&_svg]:h-icon mobile:[&_svg]:w-icon-mobile mobile:[&_svg]:h-icon-mobile", n && "w-toolbox-btn h-toolbox-btn", e && "mr-3", e && t && "shadow-none mr-0!", e && n && "mr-2!");
2336
- }
2337
- getChevronClass(e) {
2338
- return r(W.icon, "w-5 h-5 bg-transparent", e && "rotate-90");
2339
- }
2340
- setActive(e) {
2341
- this.nodes.root && (e ? this.nodes.root.setAttribute(a.popoverItemActive, "true") : this.nodes.root.removeAttribute(a.popoverItemActive));
2342
- }
2343
- setHidden(e) {
2344
- this.nodes.root && (e ? (this.nodes.root.setAttribute(a.hidden, "true"), this.nodes.root.classList.add("opacity-0", "max-h-0!", "py-0!", "mb-0!")) : (this.nodes.root.removeAttribute(a.hidden), this.nodes.root.classList.remove("opacity-0", "max-h-0!", "py-0!", "mb-0!")));
2345
- }
2346
- setFocused(e) {
2347
- this.nodes.root && (e ? (this.nodes.root.setAttribute(a.focused, "true"), this.nodes.root.classList.add("bg-item-focus-bg!")) : (this.nodes.root.removeAttribute(a.focused), this.nodes.root.classList.remove("bg-item-focus-bg!")));
2348
- }
2349
- setNoHover(e) {
2350
- this.nodes.root && (e ? this.nodes.root.setAttribute(a.popoverItemNoHover, "true") : this.nodes.root.removeAttribute(a.popoverItemNoHover));
2351
- }
2352
- setNoFocus(e) {
2353
- this.nodes.root && (e ? this.nodes.root.setAttribute(a.popoverItemNoFocus, "true") : this.nodes.root.removeAttribute(a.popoverItemNoFocus));
2354
- }
2355
- enableConfirmationMode(e) {
2356
- if (this.nodes.root === null) return;
2357
- let t = n(n(n({}, this.params), e), {}, { confirmation: "confirmation" in e ? e.confirmation : void 0 });
2358
- this.setConfirmation(t), this.confirmationState = e, this.enableSpecialHoverAndFocusBehavior();
2359
- }
2360
- setConfirmation(e) {
2361
- if (this.nodes.root) {
2362
- if (e === null) {
2363
- this.clearConfirmationState();
2364
- return;
2365
- }
2366
- this.applyConfirmationState(e);
2367
- }
2368
- }
2369
- clearConfirmationState() {
2370
- this.nodes.root && (this.nodes.root.removeAttribute(a.popoverItemConfirmation), this.nodes.root.classList.remove("bg-item-confirm-bg!", "text-white!"), this.restoreOriginalIcon(), this.restoreOriginalTitle(), this.restoreOriginalSecondaryLabel());
2371
- }
2372
- applyConfirmationState(e) {
2373
- this.nodes.root && (this.nodes.root.setAttribute(a.popoverItemConfirmation, "true"), this.nodes.root.classList.add("bg-item-confirm-bg!", "text-white!"), this.updateIcon(e.icon), this.updateTitle(e), this.updateSecondaryLabel(e.secondaryLabel));
2374
- }
2375
- restoreOriginalIcon() {
2376
- !this.nodes.icon || !this.params.icon || (this.nodes.icon.innerHTML = this.params.icon);
2377
- }
2378
- restoreOriginalTitle() {
2379
- !this.nodes.titleEl || this.params.title === void 0 || (this.nodes.titleEl.textContent = this.params.title);
2380
- }
2381
- restoreOriginalSecondaryLabel() {
2382
- if (!this.nodes.secondaryLabelEl) return;
2383
- let e = this.params.secondaryLabel;
2384
- this.nodes.secondaryLabelEl.innerHTML = e ? H(e) : "", this.nodes.secondaryLabelEl.style.display = e ? "" : "none";
2385
- }
2386
- updateIcon(e) {
2387
- !this.nodes.icon || !e || (this.nodes.icon.innerHTML = e);
2388
- }
2389
- updateTitle(e) {
2390
- !this.nodes.titleEl || e.title === void 0 || (this.nodes.titleEl.textContent = e.title);
2391
- }
2392
- updateSecondaryLabel(e) {
2393
- this.nodes.secondaryLabelEl && (this.nodes.secondaryLabelEl.innerHTML = e ? H(e) : "", this.nodes.secondaryLabelEl.style.display = e ? "" : "none");
2394
- }
2395
- disableConfirmationMode() {
2396
- this.nodes.root !== null && (this.setConfirmation(null), this.confirmationState = null, this.disableSpecialHoverAndFocusBehavior());
2397
- }
2398
- enableSpecialHoverAndFocusBehavior() {
2399
- var e;
2400
- this.setNoHover(!0), this.setNoFocus(!0), (e = this.nodes.root) == null || e.addEventListener("mouseleave", this.removeSpecialHoverBehavior, { once: !0 });
2401
- }
2402
- disableSpecialHoverAndFocusBehavior() {
2403
- var e;
2404
- this.removeSpecialFocusBehavior(), this.removeSpecialHoverBehavior(), (e = this.nodes.root) == null || e.removeEventListener("mouseleave", this.removeSpecialHoverBehavior);
2405
- }
2406
- activateOrEnableConfirmationMode(e) {
2407
- if (!("confirmation" in e) || e.confirmation === void 0) try {
2408
- var t;
2409
- (t = e.onActivate) == null || t.call(e, e), this.disableConfirmationMode();
2410
- } catch (e) {}
2411
- else this.enableConfirmationMode(e.confirmation);
2412
- }
2413
- getIconElement() {
2414
- return this.nodes.icon;
2415
- }
2416
- }, K = {
2417
- container: "py-1.5 px-2 max-h-5 overflow-hidden",
2418
- containerHidden: "opacity-0 max-h-0! py-0!",
2419
- line: "h-px w-full bg-popover-border/60"
2420
- }, q = {
2421
- container: "px-1 py-0 max-h-none",
2422
- line: "h-full w-px",
2423
- nestedContainer: "py-1 px-[3px]",
2424
- nestedLine: "w-full h-px"
2425
- }, kr = class extends Er {
2426
- constructor(e) {
2427
- var t, n;
2428
- super(), this.nodes = {
2429
- root: null,
2430
- line: null
2431
- }, this.isInline = (t = e == null ? void 0 : e.isInline) == null ? !1 : t, this.isNestedInline = (n = e == null ? void 0 : e.isNestedInline) == null ? !1 : n, this.nodes.root = this.createRootElement();
2432
- }
2433
- getElement() {
2434
- return this.nodes.root;
2435
- }
2436
- toggleHidden(e) {
2437
- if (!this.nodes.root) return;
2438
- let t = this.getContainerClass(!1), n = this.getContainerClass(!0);
2439
- this.nodes.root.className = e ? n : t, e ? this.nodes.root.setAttribute(a.hidden, "true") : this.nodes.root.removeAttribute(a.hidden);
2440
- }
2441
- getContainerClass(e) {
2442
- let t = K.container;
2443
- return this.isNestedInline ? r(t, q.nestedContainer, e && K.containerHidden) : this.isInline ? r(t, q.container, e && K.containerHidden) : r(t, e && K.containerHidden);
2444
- }
2445
- getLineClass() {
2446
- return this.isNestedInline ? r(K.line, q.nestedLine) : this.isInline ? r(K.line, q.line) : K.line;
2447
- }
2448
- createRootElement() {
2449
- let e = document.createElement("div");
2450
- e.className = this.getContainerClass(!1), e.setAttribute(a.popoverItemSeparator, ""), e.setAttribute("data-blok-testid", "popover-item-separator");
2451
- let t = document.createElement("div");
2452
- return t.className = this.getLineClass(), t.setAttribute(a.popoverItemSeparatorLine, ""), e.appendChild(t), this.nodes.line = t, e;
2453
- }
2454
- }, Ar = {
2455
- root: "",
2456
- rootHidden: "hidden"
2457
- }, jr = { root: "flex items-center" }, J = class extends Er {
2458
- constructor(e, t) {
2459
- var n;
2460
- super(e), this.nodes = { root: null }, this.isHidden = !1, this.isInline = (n = t == null ? void 0 : t.isInline) == null ? !1 : n, this.nodes.root = this.createRootElement(e, t);
2461
- }
2462
- getElement() {
2463
- return this.nodes.root;
2464
- }
2465
- toggleHidden(e) {
2466
- this.isHidden = e, this.updateRootClasses(), this.nodes.root && (e ? this.nodes.root.setAttribute(a.hidden, "true") : this.nodes.root.removeAttribute(a.hidden));
2467
- }
2468
- getControls() {
2469
- if (!this.nodes.root) return [];
2470
- let e = this.nodes.root.querySelectorAll(`button, ${T.allInputsSelector}`);
2471
- return Array.from(e);
2472
- }
2473
- updateRootClasses() {
2474
- this.nodes.root && (this.nodes.root.className = r(Ar.root, this.isInline && jr.root, this.isHidden && Ar.rootHidden));
2475
- }
2476
- createRootElement(e, t) {
2477
- var i;
2478
- let o = document.createElement("div");
2479
- if (o.className = r(Ar.root, this.isInline && jr.root), o.setAttribute(a.popoverItemHtml, ""), o.setAttribute("data-blok-testid", "popover-item-html"), e.name && o.setAttribute("data-blok-item-name", e.name), o.appendChild(e.element), e.hint !== void 0 && (t == null || (i = t.hint) == null ? void 0 : i.enabled) !== !1) {
2480
- var s, c;
2481
- this.addHint(o, n(n({}, e.hint), {}, {
2482
- position: (t == null || (s = t.hint) == null ? void 0 : s.position) || "right",
2483
- alignment: (t == null || (c = t.hint) == null ? void 0 : c.alignment) || "center"
2484
- }));
2485
- }
2486
- return o;
2487
- }
2488
- }, Mr = {
2489
- wrapper: "bg-search-input-bg border border-search-input-border rounded-lg p-1 grid grid-cols-[auto_1fr] grid-rows-[auto] focus-within:border-search-input-focus-border focus-within:shadow-[0_0_0_2px_rgba(35,131,226,0.15)]",
2490
- icon: "w-toolbox-btn h-toolbox-btn flex items-center justify-center mr-2 [&_svg]:w-icon [&_svg]:h-icon [&_svg]:text-gray-text",
2491
- input: "text-sm outline-hidden font-medium font-inherit border-0 bg-transparent m-0 p-0 leading-[22px] min-w-[calc(100%-(--spacing(6))-10px)] text-text-primary placeholder:text-gray-text/80 placeholder:font-normal"
2492
- }, Nr = (e, t) => {
2493
- if (e.length === 0) return t.length;
2494
- if (t.length === 0) return e.length;
2495
- let n = Array.from({ length: t.length + 1 }, (e, t) => t), r = Array(t.length + 1);
2496
- for (let [i, a] of [...e].entries()) {
2497
- r[0] = i + 1;
2498
- for (let [e, i] of [...t].entries()) {
2499
- let t = e + 1, o = a === i ? 0 : 1;
2500
- r[t] = Math.min(n[t] + 1, r[t - 1] + 1, n[t - 1] + o);
2501
- }
2502
- n.splice(0, n.length, ...r);
2503
- }
2504
- return n[t.length];
2505
- }, Pr = (e, t) => [...e].reduce((e, n) => e < t.length && n === t[e] ? e + 1 : e, 0) === t.length, Fr = (e, t) => [...e].reduce((n, r, i) => {
2506
- let a = i === 0 || e[i - 1] === " " || e[i - 1] === "-" || e[i - 1] === "_";
2507
- return n < t.length && a && r === t[n] ? n + 1 : n;
2508
- }, 0) === t.length, Ir = (e, t) => {
2509
- if (e === t) return 100;
2510
- if (e.startsWith(t)) return 90;
2511
- if (e.includes(t)) return 75;
2512
- if (t.length >= 2 && Fr(e, t)) return 55;
2513
- if (t.length >= 2 && Pr(e, t)) return 35;
2514
- if (t.length >= 3) {
2515
- let n = Math.floor(t.length / 3);
2516
- if (Nr(e, t) <= n) return 15;
2517
- }
2518
- return 0;
2519
- }, Y = (e, t) => {
2520
- if (t === "") return 100;
2521
- let n = t.toLowerCase(), r = [];
2522
- if (e.title !== void 0 && r.push(e.title.toLowerCase()), e.englishTitle !== void 0 && r.push(e.englishTitle.toLowerCase()), e.searchTerms !== void 0) for (let t of e.searchTerms) r.push(t.toLowerCase());
2523
- return r.reduce((e, t) => {
2524
- let r = Ir(t, n);
2525
- return r > e ? r : e;
2526
- }, 0);
2527
- }, Lr = /* @__PURE__ */ function(e) {
2528
- return e.Search = "search", e;
2529
- }({}), Rr = class extends Re {
2530
- constructor({ items: e, placeholder: t }) {
2531
- super(), this.searchQuery = "", this.handleValueChange = () => {
2532
- this.applySearch(this.input.value);
2533
- }, this.listeners = new Oe(), this.items = e, this.wrapper = T.make("div", Mr.wrapper), this.wrapper.setAttribute("data-blok-testid", "popover-search-field");
2534
- let n = T.make("div", Mr.icon, { innerHTML: yn });
2535
- this.input = T.make("input", Mr.input, {
2536
- type: "search",
2537
- placeholder: t,
2538
- tabIndex: -1
2539
- }), this.input.setAttribute("data-blok-flipper-navigation-target", "true"), this.input.setAttribute("data-blok-testid", "popover-search-input"), this.wrapper.appendChild(n), this.wrapper.appendChild(this.input), this.overrideValueProperty(), [
2540
- "input",
2541
- "keyup",
2542
- "search",
2543
- "change"
2544
- ].forEach((e) => {
2545
- this.listeners.on(this.input, e, this.handleValueChange);
2546
- });
2547
- }
2548
- getElement() {
2549
- return this.wrapper;
2550
- }
2551
- focus() {
2552
- this.input.focus();
2553
- }
2554
- clear() {
2555
- this.input.value = "";
2556
- }
2557
- applySearch(e) {
2558
- this.searchQuery !== e && (this.searchQuery = e, this.emit(Lr.Search, {
2559
- query: e,
2560
- items: this.foundItems
2561
- }));
2562
- }
2563
- overrideValueProperty() {
2564
- var e, t;
2565
- let n = Object.getPrototypeOf(this.input), r = Object.getOwnPropertyDescriptor(n, "value");
2566
- if ((r == null ? void 0 : r.set) === void 0 || r.get === void 0) return;
2567
- let i = this.applySearch.bind(this), a = r.get, o = r.set;
2568
- Object.defineProperty(this.input, "value", {
2569
- configurable: (e = r.configurable) == null ? !0 : e,
2570
- enumerable: (t = r.enumerable) == null ? !1 : t,
2571
- get() {
2572
- let e = a == null ? void 0 : a.call(this);
2573
- return typeof e == "string" ? e : "";
2574
- },
2575
- set(e) {
2576
- o == null || o.call(this, e), i(e);
2577
- }
2578
- });
2579
- }
2580
- destroy() {
2581
- this.listeners.removeAll();
2582
- }
2583
- get foundItems() {
2584
- return this.items.map((e) => ({
2585
- item: e,
2586
- score: Y(e, this.searchQuery)
2587
- })).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score).map(({ item: e }) => e);
2588
- }
2589
- }, zr, X = class e {
2590
- constructor() {
2591
- this.stack = [], this.boundPointerDown = null;
2592
- }
2593
- static get instance() {
2594
- return e._instance === null && (e._instance = new e()), e._instance;
2595
- }
2596
- static resetForTests() {
2597
- var t;
2598
- return (t = e._instance) == null || t.destroy(), e._instance = new e(), e._instance;
2599
- }
2600
- register(e, t) {
2601
- let n = [...this.stack];
2602
- for (let t of n) t.popover !== e && (t.popover.hide(), this.removeFromStack(t.popover));
2603
- this.stack.push({
2604
- popover: e,
2605
- triggerElement: t
2606
- }), this.ensureDocumentListener();
2607
- }
2608
- unregister(e) {
2609
- this.removeFromStack(e), this.stack.length === 0 && this.removeDocumentListener();
2610
- }
2611
- closeTopmost() {
2612
- return this.stack.length === 0 ? !1 : (this.stack[this.stack.length - 1].popover.hide(), !0);
2613
- }
2614
- hasOpenPopovers() {
2615
- return this.stack.length > 0;
2616
- }
2617
- destroy() {
2618
- this.removeDocumentListener(), this.stack = [];
2619
- }
2620
- handleDocumentPointerDown(e) {
2621
- let t = e.target;
2622
- if (!(t instanceof Node)) return;
2623
- let n = [];
2624
- for (let e of [...this.stack].reverse()) {
2625
- if (e.popover.hasNode(t) || e.triggerElement.contains(t)) break;
2626
- n.push(e);
2627
- }
2628
- for (let e of n) e.popover.hide();
2629
- }
2630
- ensureDocumentListener() {
2631
- this.boundPointerDown === null && (this.boundPointerDown = (e) => this.handleDocumentPointerDown(e), document.addEventListener("pointerdown", this.boundPointerDown));
2632
- }
2633
- removeDocumentListener() {
2634
- this.boundPointerDown !== null && (document.removeEventListener("pointerdown", this.boundPointerDown), this.boundPointerDown = null);
2635
- }
2636
- removeFromStack(e) {
2637
- let t = this.stack.findIndex((t) => t.popover === e);
2638
- t !== -1 && this.stack.splice(t, 1);
2639
- }
2640
- };
2641
- zr = X, zr._instance = null;
2642
- //#endregion
2643
- //#region src/components/utils/popover/popover.const.ts
2644
- var Z = {
2645
- popoverContainer: "absolute flex flex-col overflow-hidden box-border opacity-0 pointer-events-none p-0 border-none z-4 max-h-0 min-w-(--width) w-(--width) rounded-xl text-sm left-(--popover-left) top-(--popover-top) bg-popover-bg",
2646
- popoverContainerMobile: "fixed max-w-none rounded-[10px] min-w-[calc(100%-var(--offset)*2)] left-auto top-auto inset-[auto_var(--offset)_calc(var(--offset)+env(safe-area-inset-bottom))_var(--offset)]",
2647
- popoverContainerOpened: "opacity-100 pointer-events-auto p-1.5 max-h-(--max-height) border-none",
2648
- popoverOverlay: "hidden bg-dark",
2649
- items: "overflow-y-auto overscroll-contain",
2650
- scrollHaze: "absolute inset-x-0 h-6 pointer-events-none z-1 transition-opacity duration-300 ease-in-out"
2651
- }, Br = {
2652
- popover: "relative",
2653
- popoverContainer: "flex-row top-0 min-w-max w-max p-1 mobile:absolute"
2654
- }, Vr = (e) => `level-${e}`, Q = /* @__PURE__ */ function(e) {
2655
- return e.NestingLevel = "--nesting-level", e.PopoverHeight = "--popover-height", e.InlinePopoverWidth = "--inline-popover-width", e.PopoverTop = "--popover-top", e.PopoverLeft = "--popover-left", e.TriggerItemLeft = "--trigger-item-left", e.TriggerItemTop = "--trigger-item-top", e;
2656
- }({}), $ = /* @__PURE__ */ function(e) {
2657
- return e.Closed = "closed", e.ClosedOnActivate = "closed-on-activate", e;
2658
- }({}), Hr = class extends Re {
2659
- get itemsDefault() {
2660
- return this.items.filter((e) => e instanceof G);
2661
- }
2662
- constructor(e, t = {}) {
2663
- super(), this.params = e, this.itemsRenderParams = t, this.listeners = new Oe(), this.messages = {
2664
- nothingFound: "Nothing found",
2665
- search: "Search"
2666
- }, this.permanentlyHiddenNames = /* @__PURE__ */ new Set(), this.items = this.buildItems(e.items), e.messages && (this.messages = n(n({}, this.messages), e.messages)), this.nodes = this.createPopoverDOM(), this.appendItemElements(), this.nodes.popoverContainer && this.listeners.on(this.nodes.popoverContainer, "click", (e) => this.handleClick(e)), this.nodes.items && this.listeners.on(this.nodes.items, "scroll", () => this.updateScrollHazes());
2667
- }
2668
- getElement() {
2669
- return this.nodes.popover;
2670
- }
2671
- getMountElement() {
2672
- return this.nodes.popover;
2673
- }
2674
- get isShown() {
2675
- return this.nodes.popover.hasAttribute(a.popoverOpened);
2676
- }
2677
- show() {
2678
- var e;
2679
- let t = this.nodes.popover;
2680
- t !== null && !t.isConnected && document.body.appendChild(t), this.nodes.popover.setAttribute(a.popoverOpened, "true"), this.nodes.popoverContainer.className = r(this.nodes.popoverContainer.className, Z.popoverContainerOpened), this.itemsDefault.forEach((e) => this.refreshItemActiveState(e)), this.search !== void 0 && this.search.focus(), this.nodes.scrollHazeTop.style.transition = "none", this.nodes.scrollHazeBottom.style.transition = "none", this.updateScrollHazes(), requestAnimationFrame(() => {
2681
- this.nodes.scrollHazeTop.style.transition = "", this.nodes.scrollHazeBottom.style.transition = "";
2682
- });
2683
- let { trigger: n } = this.params;
2684
- ((e = this.params.nestingLevel) == null ? 0 : e) === 0 && n !== void 0 && X.instance.register(this, n);
2685
- }
2686
- hide() {
2687
- this.nodes.popover.removeAttribute(a.popoverOpened), this.nodes.popover.removeAttribute(a.popoverOpenTop), this.nodes.popover.removeAttribute(a.popoverOpenLeft), this.nodes.popoverContainer.className = Z.popoverContainer, this.itemsDefault.forEach((e) => e.reset()), this.nodes.scrollHazeTop.style.opacity = "0", this.nodes.scrollHazeBottom.style.opacity = "0", this.search !== void 0 && this.search.clear(), X.instance.unregister(this), this.emit($.Closed);
2688
- }
2689
- destroy() {
2690
- var e, t;
2691
- this.items.forEach((e) => e.destroy()), (e = this.nodes.popover) == null || e.remove(), this.listeners.removeAll(), (t = this.search) == null || t.destroy();
2692
- }
2693
- filterItems(e) {}
2694
- toggleItemHiddenByName(e, t) {
2695
- this.items.filter((t) => t.name === e).forEach((e) => e.toggleHidden(t)), t ? this.permanentlyHiddenNames.add(e) : this.permanentlyHiddenNames.delete(e);
2696
- }
2697
- isNamePermanentlyHidden(e) {
2698
- return this.permanentlyHiddenNames.has(e);
2699
- }
2700
- activateItemByName(e) {
2701
- let t = this.items.find((t) => t.name === e);
2702
- t !== void 0 && this.handleItemClick(t);
2703
- }
2704
- buildItems(e) {
2705
- return e.map((e) => {
2706
- switch (e.type) {
2707
- case M.Separator: return new kr(this.itemsRenderParams[M.Separator]);
2708
- case M.Html: return new J(e, this.itemsRenderParams[M.Html]);
2709
- case M.Default:
2710
- case void 0: return new G(e, this.itemsRenderParams[M.Default]);
2711
- }
2712
- });
2713
- }
2714
- getTargetItem(e) {
2715
- return this.items.filter((e) => e instanceof G || e instanceof J).find((t) => {
2716
- let n = t.getElement();
2717
- return n === null ? !1 : e.composedPath().includes(n);
2718
- });
2719
- }
2720
- handleItemClick(e) {
2721
- if (!(e instanceof G && e.isDisabled)) {
2722
- if (e.hasChildren) {
2723
- this.showNestedItems(e), this.callHandleClickIfPresent(e);
2724
- return;
2725
- }
2726
- this.itemsDefault.filter((t) => t !== e).forEach((e) => e.reset()), this.callHandleClickIfPresent(e), this.toggleItemActivenessIfNeeded(e), this.refreshItemActiveState(e), e.closeOnActivate === !0 && (this.hide(), this.emit($.ClosedOnActivate));
2727
- }
2728
- }
2729
- handleClick(e) {
2730
- let t = this.getTargetItem(e);
2731
- t !== void 0 && this.handleItemClick(t);
2732
- }
2733
- toggleItemActivenessIfNeeded(e) {
2734
- if (!(e instanceof G) || (e.toggle === !0 && e.toggleActive(), typeof e.toggle != "string")) return;
2735
- let t = this.itemsDefault.filter((t) => t.toggle === e.toggle);
2736
- if (t.length === 1) {
2737
- e.toggleActive();
2738
- return;
2739
- }
2740
- t.forEach((t) => {
2741
- t.toggleActive(t === e);
2742
- });
2743
- }
2744
- refreshItemActiveState(e) {
2745
- e instanceof G && e.toggle === void 0 && e.toggleActive(e.isActive);
2746
- }
2747
- callHandleClickIfPresent(e) {
2748
- "handleClick" in e && typeof e.handleClick == "function" && e.handleClick();
2749
- }
2750
- toggleNothingFoundMessage(e) {
2751
- e ? (this.nodes.nothingFoundMessage.classList.remove("hidden"), this.nodes.nothingFoundMessage.setAttribute(a.nothingFoundDisplayed, "true")) : (this.nodes.nothingFoundMessage.classList.add("hidden"), this.nodes.nothingFoundMessage.removeAttribute(a.nothingFoundDisplayed));
2752
- }
2753
- setOpenTop(e) {
2754
- e ? this.nodes.popover.setAttribute(a.popoverOpenTop, "true") : this.nodes.popover.removeAttribute(a.popoverOpenTop);
2755
- }
2756
- setOpenLeft(e) {
2757
- e ? this.nodes.popover.setAttribute(a.popoverOpenLeft, "true") : this.nodes.popover.removeAttribute(a.popoverOpenLeft);
2758
- }
2759
- updateScrollHazes() {
2760
- let { items: e, scrollHazeTop: t, scrollHazeBottom: n } = this.nodes, r = e.scrollHeight > e.clientHeight, i = e.scrollTop <= 0, a = e.scrollTop + e.clientHeight >= e.scrollHeight - 1;
2761
- t.style.opacity = r && !i ? "1" : "0", n.style.opacity = r && !a ? "1" : "0", t.style.top = `${e.offsetTop}px`, n.style.top = `${e.offsetTop + e.clientHeight - n.offsetHeight}px`;
2762
- }
2763
- hasNode(e) {
2764
- return this.nodes.popover.contains(e);
2765
- }
2766
- createPopoverDOM() {
2767
- var e, t;
2768
- let n = document.createElement("div");
2769
- this.params.class && (n.className = this.params.class), n.setAttribute(a.popover, ""), this.params.class && n.setAttribute("data-blok-popover-custom-class", this.params.class), n.setAttribute("data-blok-testid", "popover"), n.style.setProperty("--width", (e = this.params.width) == null ? "auto" : e), n.style.setProperty("--item-padding", "4px"), n.style.setProperty("--item-height", "calc(1.75rem + 2 * var(--item-padding))"), n.style.setProperty("--popover-top", "calc(100% + 0.5rem)"), n.style.setProperty("--popover-left", "0"), n.style.setProperty("--nested-popover-overlap", "0.25rem"), n.style.setProperty("--max-height", "400px");
2770
- let i = document.createElement("div");
2771
- i.className = Z.popoverContainer, i.style.boxShadow = "var(--blok-popover-box-shadow)", i.setAttribute(a.popoverContainer, ""), i.setAttribute("data-blok-testid", "popover-container");
2772
- let o = document.createElement("div");
2773
- o.className = r("cursor-default text-[13px] leading-5 font-normal whitespace-nowrap overflow-hidden text-ellipsis text-gray-text px-3 py-4 text-center", "hidden"), o.setAttribute("data-blok-testid", "popover-nothing-found"), o.textContent = (t = this.messages.nothingFound) == null ? "Nothing found" : t;
2774
- let s = document.createElement("div");
2775
- s.className = Z.items, s.setAttribute(a.popoverItems, ""), s.setAttribute("data-blok-testid", "popover-items");
2776
- let c = document.createElement("div");
2777
- c.className = Z.scrollHaze, c.style.background = "linear-gradient(to bottom, var(--blok-popover-bg), transparent)", c.style.opacity = "0";
2778
- let l = document.createElement("div");
2779
- return l.className = Z.scrollHaze, l.style.background = "linear-gradient(to top, var(--blok-popover-bg), transparent)", l.style.opacity = "0", i.appendChild(o), i.appendChild(s), i.appendChild(c), i.appendChild(l), n.appendChild(i), {
2780
- popover: n,
2781
- popoverContainer: i,
2782
- nothingFoundMessage: o,
2783
- items: s,
2784
- scrollHazeTop: c,
2785
- scrollHazeBottom: l
2786
- };
2787
- }
2788
- appendItemElements() {
2789
- this.items.forEach((e) => {
2790
- var t, n, r;
2791
- let i = (t = (n = e.getMountElement) == null ? void 0 : n.call(e)) == null ? e.getElement() : t;
2792
- i !== null && ((r = this.nodes.items) == null || r.appendChild(i));
2793
- });
2794
- }
2795
- };
2796
- //#endregion
2797
- //#region src/components/utils/popover/popover-position.ts
2798
- function Ur(e, t, n) {
2799
- return e <= t ? !1 : e <= n;
2800
- }
2801
- function Wr(e) {
2802
- var t;
2803
- let { anchor: n, popoverSize: r, scopeBounds: i, viewportSize: a, scrollOffset: o, offset: s = 8, leftAlignRect: c } = e, l = Math.min(a.height, i.bottom), u = Math.max(0, i.top), d = l - n.bottom - s, f = n.top - s - u, p = Ur(r.height, d, f), m = p ? n.top - s - r.height + o.y : n.bottom + s + o.y, h = i.top + o.y, g = m < h ? h : m, _ = Math.min(a.width, i.right), v = Math.max(0, i.left), y = ((t = c == null ? void 0 : c.left) == null ? n.left : t) + o.x, ee = n.right + o.x, b = _ + o.x - y, te = ee - v - o.x, ne = Ur(r.width, b, te), re = ne ? Math.max(v + o.x, n.right - r.width + o.x) : y;
2804
- return {
2805
- top: g,
2806
- left: re + r.width > _ + o.x ? Math.max(v + o.x, _ + o.x - r.width) : re,
2807
- openTop: p,
2808
- openLeft: ne
2809
- };
2810
- }
2811
- //#endregion
2812
- //#region src/components/utils/popover/popover-desktop.ts
2813
- var Gr = class e extends Hr {
2814
- setLeftAlignElement(e) {
2815
- this.leftAlignElement = e;
2816
- }
2817
- constructor(e, t) {
2818
- var n;
2819
- if (super(e, t), this.nestingLevel = 0, this.nestedPopoverTriggerItem = null, this.previouslyHoveredItem = null, this.scopeElement = document.body, this.promotedItemCache = null, this.promotedSeparators = [], this.hide = () => {
2820
- var e;
2821
- this.cleanupPromotedItems(), super.hide(), this.destroyNestedPopoverIfExists(), (e = this.flipper) == null || e.deactivate(), this.previouslyHoveredItem = null, this.params.position = void 0, this.nodes.popover.style.top = "", this.nodes.popover.style.left = "";
2822
- }, this.onFlip = () => {
2823
- let e = this.itemsDefault.find((e) => e.isFocused);
2824
- e == null || e.onFocus();
2825
- }, this.onSearch = (e) => {
2826
- var t;
2827
- let n = e.query === "", r = e.topLevelItems, i = !n && e.promotedItems.length > 0 ? this.deduplicateAgainstPromoted(r, e.promotedItems) : r, o = i.length === 0 && e.promotedItems.length === 0;
2828
- this.items.forEach((e) => {
2829
- let t = e instanceof G, r = e instanceof kr || e instanceof J, a = t ? !i.includes(e) || e.name !== void 0 && this.isNamePermanentlyHidden(e.name) : r && (o || !n);
2830
- e.toggleHidden(a);
2831
- }), this._size = void 0, !n && i.length > 0 ? this.reorderItemsByRank(i) : n && this.originalItemOrder !== void 0 && this.restoreOriginalItemOrder();
2832
- for (let e of this.promotedSeparators) e.remove();
2833
- if (this.promotedSeparators = [], this.promotedItemCache !== null) for (let e of this.promotedItemCache.items) {
2834
- var s;
2835
- (s = e.getElement()) == null || s.remove();
2836
- }
2837
- if (e.promotedItems.length > 0) {
2838
- let t = /* @__PURE__ */ new Map();
2839
- for (let n of e.promotedItems) {
2840
- let e = n.chain.join(" › "), r = t.get(e);
2841
- r === void 0 ? t.set(e, [{
2842
- item: n.item,
2843
- score: n.score
2844
- }]) : r.push({
2845
- item: n.item,
2846
- score: n.score
2847
- });
2848
- }
2849
- let n = [...t.entries()].sort((e, t) => {
2850
- let n = Math.max(...e[1].map((e) => e.score));
2851
- return Math.max(...t[1].map((e) => e.score)) - n;
2852
- });
2853
- for (let [e, t] of n) {
2854
- var c;
2855
- let n = this.createGroupSeparator(e);
2856
- this.promotedSeparators.push(n), (c = this.nodes.items) == null || c.appendChild(n), this.appendPromotedGroupElements(t);
2857
- }
2858
- }
2859
- if (this.toggleNothingFoundMessage(o), this.updateScrollHazes(), this.trigger && this.nodes.popover.hasAttribute(a.popoverOpened)) {
2860
- let { top: e, left: t, openTop: n, openLeft: r } = this.calculatePosition();
2861
- this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.setOpenTop(n), this.setOpenLeft(r);
2862
- }
2863
- let l = n ? this.flippableElements : i.map((e) => e.getElement()), u = e.promotedItems.map(({ item: e }) => e.getElement()), d = [...l, ...u].filter((e) => e !== null);
2864
- (t = this.flipper) != null && t.isActivated && (this.flipper.deactivate(), this.flipper.activate(d), d.length > 0 && this.flipper.focusItem(0, { skipNextTab: !0 }));
2865
- }, e.trigger && (this.trigger = e.trigger), e.leftAlignElement && (this.leftAlignElement = e.leftAlignElement), e.nestingLevel !== void 0 && (this.nestingLevel = e.nestingLevel), this.nestingLevel > 0 && this.nodes.popover.setAttribute(a.nested, "true"), e.scopeElement !== void 0 && (this.scopeElement = e.scopeElement), this.nodes.popoverContainer !== null && (this.listeners.on(this.nodes.popoverContainer, "mouseover", (e) => this.handleHover(e)), this.listeners.on(this.nodes.popoverContainer, "mouseleave", (e) => this.handleMouseLeave(e))), e.searchable && this.addSearch(), e.flippable === !1) return;
2866
- let r = e.flipper;
2867
- r === void 0 ? this.flipper = new Lt({
2868
- items: this.flippableElements,
2869
- focusedItemClass: W.focused,
2870
- allowedKeys: [
2871
- s.TAB,
2872
- s.UP,
2873
- s.DOWN,
2874
- s.ENTER,
2875
- s.RIGHT,
2876
- s.LEFT
2877
- ],
2878
- onArrowLeft: e.onNavigateBack,
2879
- handleContentEditableTargets: e.handleContentEditableNavigation
2880
- }) : (r.deactivate(), r.removeOnFlip(this.onFlip), this.flipper = r), (n = this.flipper) == null || n.onFlip(this.onFlip);
2881
- }
2882
- hasFocus() {
2883
- return this.flipper === void 0 ? !1 : this.flipper.hasFocus();
2884
- }
2885
- toggleItemHiddenByName(e, t) {
2886
- super.toggleItemHiddenByName(e, t), this._size = void 0;
2887
- }
2888
- get scrollTop() {
2889
- return this.nodes.items === null ? 0 : this.nodes.items.scrollTop;
2890
- }
2891
- get offsetTop() {
2892
- return this.nodes.popoverContainer === null ? 0 : this.nodes.popoverContainer.offsetTop;
2893
- }
2894
- show() {
2895
- var e;
2896
- let t = this.getMountElement();
2897
- if (this.trigger && t && document.body.appendChild(t), this.trigger) {
2898
- let { top: e, left: t, openTop: n, openLeft: r } = this.calculatePosition();
2899
- this.nodes.popover.style.position = "absolute", this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.nodes.popover.style.setProperty(Q.PopoverTop, "0px"), this.nodes.popover.style.setProperty(Q.PopoverLeft, "0px"), this.setOpenTop(n), this.setOpenLeft(r);
2900
- }
2901
- let n = this.size;
2902
- if (this.nodes.popover.style.setProperty(Q.PopoverHeight, n.height + "px"), this.params.width === void 0 || this.params.width === "auto") {
2903
- let e = this.params.minWidth === void 0 ? 0 : parseFloat(this.params.minWidth), t = Math.max(n.width, e);
2904
- this.nodes.popover.style.setProperty("--width", t + "px");
2905
- }
2906
- if (!this.trigger) {
2907
- let { openTop: e, openLeft: t } = Wr({
2908
- anchor: this.nodes.popoverContainer.getBoundingClientRect(),
2909
- popoverSize: n,
2910
- scopeBounds: this.scopeElement.getBoundingClientRect(),
2911
- viewportSize: {
2912
- width: window.innerWidth,
2913
- height: window.innerHeight
2914
- },
2915
- scrollOffset: {
2916
- x: window.scrollX,
2917
- y: window.scrollY
2918
- },
2919
- offset: 0
2920
- });
2921
- e && (this.setOpenTop(!0), this.nodes.popover.style.setProperty(Q.PopoverTop, "calc(-1 * (0.5rem + var(--popover-height)))")), t && (this.setOpenLeft(!0), this.nodes.popover.style.setProperty(Q.PopoverLeft, "calc(-1 * var(--width) + 100%)"));
2922
- }
2923
- super.show(), (e = this.flipper) == null || e.activate(this.flippableElements), queueMicrotask(() => {
2924
- this.focusInitialElement();
2925
- });
2926
- }
2927
- focusInitialElement() {
2928
- var e;
2929
- if (this.search) {
2930
- this.search.focus();
2931
- return;
2932
- }
2933
- this.params.autoFocusFirstItem !== !1 && ((e = this.flipper) == null || e.focusItem(0, { skipNextTab: !0 }));
2934
- }
2935
- updatePosition(e) {
2936
- if (this.params.position = e, this.nodes.popover.hasAttribute("data-blok-popover-opened")) {
2937
- let { top: e, left: t, openTop: n, openLeft: r } = this.calculatePosition();
2938
- this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.setOpenTop(n), this.setOpenLeft(r);
2939
- }
2940
- }
2941
- calculatePosition() {
2942
- var e, t;
2943
- let n = this.params.position, r = n == null ? (e = this.trigger) == null ? void 0 : e.getBoundingClientRect() : n;
2944
- if (!r) return {
2945
- top: 0,
2946
- left: 0,
2947
- openTop: !1,
2948
- openLeft: !1
2949
- };
2950
- let i = n === void 0 ? (t = this.leftAlignElement) == null ? void 0 : t.getBoundingClientRect() : void 0;
2951
- return Wr({
2952
- anchor: r,
2953
- popoverSize: this.size,
2954
- scopeBounds: this.scopeElement.getBoundingClientRect(),
2955
- viewportSize: {
2956
- width: window.innerWidth,
2957
- height: window.innerHeight
2958
- },
2959
- scrollOffset: {
2960
- x: window.scrollX,
2961
- y: window.scrollY
2962
- },
2963
- offset: 8,
2964
- leftAlignRect: i
2965
- });
2966
- }
2967
- destroy() {
2968
- this.hide(), super.destroy();
2969
- }
2970
- hasNode(e) {
2971
- return super.hasNode(e) ? !0 : this.nestedPopover !== void 0 && this.nestedPopover !== null ? this.nestedPopover.hasNode(e) : !1;
2972
- }
2973
- showNestedItems(e) {
2974
- this.nestedPopover !== null && this.nestedPopover !== void 0 || (this.nestedPopoverTriggerItem = e, this.showNestedPopoverForItem(e));
2975
- }
2976
- handleHover(e) {
2977
- let t = this.getTargetItem(e);
2978
- t !== void 0 && this.previouslyHoveredItem !== t && (this.nestedPopover !== void 0 && this.nestedPopover !== null && e.target instanceof Node && this.nestedPopover.hasNode(e.target) || (this.destroyNestedPopoverIfExists(!1), this.previouslyHoveredItem = t, t.hasChildren && this.showNestedPopoverForItem(t)));
2979
- }
2980
- handleMouseLeave(e) {
2981
- let t = e.relatedTarget;
2982
- t instanceof Node && this.nestedPopover !== void 0 && this.nestedPopover !== null && this.nestedPopover.hasNode(t) || (this.destroyNestedPopoverIfExists(!1), this.previouslyHoveredItem = null);
2983
- }
2984
- getTargetItem(e) {
2985
- return (this.promotedItemCache === null ? this.items : [...this.items, ...this.promotedItemCache.items]).filter((e) => e instanceof G || e instanceof J).find((t) => {
2986
- let n = t.getElement();
2987
- return n === null ? !1 : e.composedPath().includes(n);
2988
- });
2989
- }
2990
- setTriggerItemPosition(e, t) {
2991
- let n = t.getElement(), r = (n ? n.offsetTop : 0) - this.scrollTop, i = this.offsetTop + r, o = e.querySelector(`[${a.popover}]`);
2992
- (o instanceof HTMLElement ? o : e).style.setProperty(Q.TriggerItemTop, i + "px");
2993
- }
2994
- destroyNestedPopoverIfExists(e = !0) {
2995
- var t, n, r;
2996
- if (this.nestedPopover === void 0 || this.nestedPopover === null) return;
2997
- let i = (t = this.nestedPopoverTriggerItem) == null ? void 0 : t.getElement(), a = this.nestedPopover.getElement();
2998
- this.nestedPopover.off($.ClosedOnActivate, this.hide), this.nestedPopover.hide(), this.nestedPopover.destroy(), a.remove(), this.nestedPopover = null, (n = this.flipper) == null || n.activate(this.flippableElements), e && this.focusAfterNestedPopoverClose(i), (r = this.nestedPopoverTriggerItem) == null || r.onChildrenClose(), this.nestedPopoverTriggerItem = null;
2999
- }
3000
- focusAfterNestedPopoverClose(e) {
3001
- if (!e || !this.flipper) {
3002
- var t;
3003
- (t = this.flipper) == null || t.focusFirst();
3004
- return;
3005
- }
3006
- let n = this.flippableElements.indexOf(e);
3007
- if (n !== -1) {
3008
- this.flipper.focusItem(n, { skipNextTab: !1 });
3009
- return;
3010
- }
3011
- this.flipper.focusFirst();
3012
- }
3013
- showNestedPopoverForItem(t) {
3014
- var n, r;
3015
- let i = (n = this.flipper) == null ? void 0 : n.getHandleContentEditableTargets();
3016
- this.nestedPopover = new e({
3017
- searchable: t.isChildrenSearchable,
3018
- items: t.children,
3019
- nestingLevel: this.nestingLevel + 1,
3020
- flippable: t.isChildrenFlippable,
3021
- messages: this.messages,
3022
- onNavigateBack: this.destroyNestedPopoverIfExists.bind(this),
3023
- width: t.childrenWidth,
3024
- minWidth: t.childrenMinWidth,
3025
- handleContentEditableNavigation: i,
3026
- autoFocusFirstItem: this.params.autoFocusFirstItem
3027
- }), t.onChildrenOpen(), this.nestedPopover.on($.ClosedOnActivate, this.hide);
3028
- let a = this.nestedPopover.getMountElement(), o = this.nestedPopover.getElement();
3029
- return this.nodes.popover.appendChild(a), this.setTriggerItemPosition(a, t), o.style.setProperty(Q.NestingLevel, this.nestedPopover.nestingLevel.toString()), this.applyNestedPopoverPositioning(a), this.listeners.on(a, "click", () => {
3030
- this.nestedPopoverTriggerItem !== null && this.refreshItemActiveState(this.nestedPopoverTriggerItem);
3031
- }), this.nestedPopover.show(), (r = this.flipper) == null || r.deactivate(), this.nestedPopover;
3032
- }
3033
- applyNestedPopoverPositioning(e) {
3034
- let t = e.querySelector(`[${a.popoverContainer}]`);
3035
- if (!(t instanceof HTMLElement)) return;
3036
- let n = t, r = e.querySelector(`[${a.popover}]`), i = r instanceof HTMLElement ? r : e;
3037
- this.nodes.popover.hasAttribute(a.popoverOpenTop);
3038
- let o = this.nodes.popover.hasAttribute(a.popoverOpenLeft);
3039
- n.style.position = "absolute";
3040
- let s = this.params.width === void 0 || this.params.width === "auto" ? `${this.nodes.popoverContainer.offsetWidth}px` : "var(--width)";
3041
- o ? i.style.setProperty(Q.PopoverLeft, `calc(-1 * (var(--nesting-level) + 1) * ${s} + 100%)`) : i.style.setProperty(Q.PopoverLeft, `calc(var(--nesting-level) * (${s} - var(--nested-popover-overlap)))`), n.style.top = "calc(var(--trigger-item-top) - var(--popover-height) / 2 + var(--item-height) / 2)";
3042
- }
3043
- get size() {
3044
- var e;
3045
- if (this._size) return this._size;
3046
- let t = {
3047
- height: 0,
3048
- width: 0
3049
- };
3050
- if (this.nodes.popover === null) return t;
3051
- let n = this.nodes.popover.cloneNode(!0);
3052
- n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "-1000px", n.setAttribute(a.popoverOpened, "true"), (e = n.querySelector(`[${a.nested}]`)) == null || e.remove();
3053
- let i = n.querySelector(`[${a.popoverContainer}]`);
3054
- return i.className = r(i.className, Z.popoverContainerOpened), document.body.appendChild(n), t.height = i.offsetHeight, t.width = i.offsetWidth, n.remove(), this._size = t, t;
3055
- }
3056
- invalidateSizeCache() {
3057
- this._size = void 0;
3058
- }
3059
- get flippableElements() {
3060
- return this.items.flatMap((e) => this.getFlippableElementsForItem(e)).filter((e) => e != null);
3061
- }
3062
- getFlippableElementsForItem(e) {
3063
- if (e instanceof J) {
3064
- let t = e.getElement();
3065
- return t ? [t] : [];
3066
- }
3067
- if (!(e instanceof G) || e.isDisabled) return [];
3068
- let t = e.getElement();
3069
- return t ? [t] : [];
3070
- }
3071
- buildPromotedItemCache() {
3072
- let e = {
3073
- items: [],
3074
- parentChains: /* @__PURE__ */ new Map()
3075
- };
3076
- return this.collectPromotedChildren(this.items, [], e), e;
3077
- }
3078
- collectPromotedChildren(e, t, n) {
3079
- for (let a of e) {
3080
- var r, i;
3081
- if (!(a instanceof G) || !a.hasChildren) continue;
3082
- let e = (r = (i = a.title) == null ? a.name : i) == null ? "" : r, o = [...t, e];
3083
- this.collectDefaultChildren(a.children, o, n);
3084
- }
3085
- }
3086
- collectDefaultChildren(e, t, n) {
3087
- for (let r of e) {
3088
- if (r.type !== void 0 && r.type !== M.Default) continue;
3089
- let e = new G(r);
3090
- if (e.name !== void 0 && this.isNamePermanentlyHidden(e.name)) {
3091
- e.destroy();
3092
- continue;
3093
- }
3094
- n.items.push(e), n.parentChains.set(e, t), e.hasChildren && this.collectPromotedChildren([e], t, n);
3095
- }
3096
- }
3097
- cleanupPromotedItems() {
3098
- for (let e of this.promotedSeparators) e.remove();
3099
- if (this.promotedSeparators = [], this.promotedItemCache !== null) {
3100
- for (let t of this.promotedItemCache.items) {
3101
- var e;
3102
- (e = t.getElement()) == null || e.remove(), t.destroy();
3103
- }
3104
- this.promotedItemCache = null;
3105
- }
3106
- }
3107
- createGroupSeparator(e) {
3108
- let t = document.createElement("div");
3109
- return t.setAttribute(a.promotedGroupLabel, ""), t.setAttribute("role", "separator"), t.className = "px-3 pt-2.5 pb-1 text-[11px] font-medium uppercase tracking-wide text-gray-text/50 cursor-default", t.textContent = e, t;
3110
- }
3111
- appendPromotedGroupElements(e) {
3112
- for (let { item: n } of e) {
3113
- let e = n.getElement();
3114
- if (e !== null) {
3115
- var t;
3116
- (t = this.nodes.items) == null || t.appendChild(e);
3117
- }
3118
- }
3119
- }
3120
- deduplicateAgainstPromoted(e, t) {
3121
- let n = /* @__PURE__ */ new Set();
3122
- for (let { item: e } of t) e.title !== void 0 && n.add(e.title.toLowerCase());
3123
- return e.filter((e) => !(e instanceof G) || e.title === void 0 ? !0 : !n.has(e.title.toLowerCase()));
3124
- }
3125
- addSearch() {
3126
- this.search = new Rr({
3127
- items: this.itemsDefault,
3128
- placeholder: this.messages.search
3129
- }), this.search.on(Lr.Search, (e) => {
3130
- if (e.query === "") {
3131
- this.cleanupPromotedItems(), this.onSearch({
3132
- query: e.query,
3133
- topLevelItems: e.items,
3134
- promotedItems: []
3135
- });
3136
- return;
3137
- }
3138
- this.promotedItemCache === null && (this.promotedItemCache = this.buildPromotedItemCache());
3139
- let { parentChains: t } = this.promotedItemCache, n = this.promotedItemCache.items.map((n) => {
3140
- var r;
3141
- return {
3142
- item: n,
3143
- score: Y(n, e.query),
3144
- chain: (r = t.get(n)) == null ? [] : r
3145
- };
3146
- }).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score);
3147
- this.onSearch({
3148
- query: e.query,
3149
- topLevelItems: e.items,
3150
- promotedItems: n
3151
- });
3152
- });
3153
- let e = this.search.getElement();
3154
- e.classList.add("mb-1.5"), this.nodes.popoverContainer.insertBefore(e, this.nodes.popoverContainer.firstChild);
3155
- }
3156
- filterItems(e) {
3157
- if (e === "") {
3158
- this.cleanupPromotedItems(), this.onSearch({
3159
- query: e,
3160
- topLevelItems: this.itemsDefault,
3161
- promotedItems: []
3162
- });
3163
- return;
3164
- }
3165
- this.promotedItemCache === null && (this.promotedItemCache = this.buildPromotedItemCache());
3166
- let t = this.itemsDefault.map((t) => ({
3167
- item: t,
3168
- score: Y(t, e)
3169
- })).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score), { parentChains: n } = this.promotedItemCache, r = this.promotedItemCache.items.map((t) => {
3170
- var r;
3171
- return {
3172
- item: t,
3173
- score: Y(t, e),
3174
- chain: (r = n.get(t)) == null ? [] : r
3175
- };
3176
- }).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score);
3177
- this.onSearch({
3178
- query: e,
3179
- topLevelItems: t.map(({ item: e }) => e),
3180
- promotedItems: r
3181
- });
3182
- }
3183
- reorderItemsByRank(e) {
3184
- this.originalItemOrder === void 0 && this.nodes.items !== null && (this.originalItemOrder = Array.from(this.nodes.items.children));
3185
- let t = this.nodes.items;
3186
- if (t !== null) for (let n of e) {
3187
- let e = n.getElement();
3188
- e !== null && t.appendChild(e);
3189
- }
3190
- }
3191
- restoreOriginalItemOrder() {
3192
- let e = this.nodes.items;
3193
- if (!(e === null || this.originalItemOrder === void 0)) {
3194
- for (let t of this.originalItemOrder) e.appendChild(t);
3195
- this.originalItemOrder = void 0;
3196
- }
3197
- }
3198
- }, Kr = function(e) {
3199
- let t = T.make("div");
3200
- return t.style.display = "flex", t.style.flexDirection = "column", t.style.gap = "4px", e.forEach((e) => {
3201
- let n = T.make("div"), r = e.indexOf(" ");
3202
- if (r > 0) {
3203
- let t = e.substring(0, r), i = e.substring(r), a = T.make("span", null, { textContent: t });
3204
- a.style.color = "white", n.appendChild(a), n.appendChild(document.createTextNode(i));
3205
- } else n.appendChild(document.createTextNode(e));
3206
- t.appendChild(n);
3207
- }), t;
3208
- }, qr, Jr = class {
3209
- constructor({ api: e }) {
3210
- this.i18nAPI = e.i18n, this.blocksAPI = e.blocks, this.selectionAPI = e.selection, this.toolsAPI = e.tools, this.caretAPI = e.caret, this.i18nInstance = {
3211
- t: (e, t) => this.i18nAPI.t(e),
3212
- has: (e) => this.i18nAPI.t(e) !== e
3213
- };
3214
- }
3215
- async render() {
3216
- var e = this;
3217
- let t = Xe.get();
3218
- if (t === null) return [];
3219
- let n = e.blocksAPI.getBlockByElement(t.anchorNode);
3220
- if (n === void 0) return [];
3221
- let r = await Ne(n, e.toolsAPI.getBlockTools());
3222
- if (r.length === 0) return [];
3223
- let i = r.reduce((t, r) => {
3224
- var i;
3225
- return (i = r.toolbox) == null || i.forEach((i) => {
3226
- var a;
3227
- i.title !== void 0 && t.push({
3228
- icon: i.icon,
3229
- title: ke(e.i18nInstance, i, r.name),
3230
- name: (a = i.name) == null ? r.name : a,
3231
- closeOnActivate: !0,
3232
- onActivate: async () => {
3233
- let t = await e.blocksAPI.convert(n.id, r.name, i.data);
3234
- e.caretAPI.setToBlock(t, "end");
3235
- }
3236
- });
3237
- }), t;
3238
- }, []), a = await n.getActiveToolboxEntry(), o = a ? ke(e.i18nInstance, a, n.name) : Ae(e.i18nInstance, n.name, de(n.name)), s = !se();
3239
- return {
3240
- name: "convert-to",
3241
- title: o,
3242
- hint: { title: e.i18nAPI.t("popover.convertTo") },
3243
- children: {
3244
- items: i,
3245
- width: "auto",
3246
- onOpen: () => {
3247
- s && (e.selectionAPI.setFakeBackground(), e.selectionAPI.save());
3248
- },
3249
- onClose: () => {
3250
- s && (e.selectionAPI.restore(), e.selectionAPI.removeFakeBackground());
3251
- }
3252
- }
3253
- };
3254
- }
3255
- };
3256
- qr = Jr, qr.isInline = !0;
3257
- //#endregion
3258
- //#region src/tools/toggle/constants.ts
3259
- var Yr = "toggle", Xr = "tools.toggle.placeholder", Zr = "tools.toggle.bodyPlaceholder", Qr = "tools.toggle.ariaLabelCollapse", $r = "tools.toggle.ariaLabelExpand", ei = "outline-hidden py-[7px] mt-[2px] mb-px", ti = "outline-hidden pl-0.5 leading-[1.5] flex-1 min-w-0", ni = "flex items-center", ri = "flex-shrink-0 p-[8px] flex items-center justify-center cursor-pointer select-none rounded can-hover:hover:bg-item-hover-bg transition-colors duration-200 ease-in-out focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none in-data-[blok-toggle-empty=true]:text-gray-text", ii = "<svg aria-hidden=\"true\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.5 2.5L8.5 6L4.5 9.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", ai = "hidden pl-7 pt-[8px] pb-[8px] text-gray-text leading-[1.5] cursor-pointer select-none", oi = "pl-7", si = {
3260
- toggleOpen: "data-blok-toggle-open",
3261
- toggleArrow: "data-blok-toggle-arrow",
3262
- toggleContent: "data-blok-toggle-content",
3263
- toggleBodyPlaceholder: "data-blok-toggle-body-placeholder",
3264
- toggleChildren: "data-blok-toggle-children",
3265
- toggleEmpty: "data-blok-toggle-empty"
3266
- };
3267
- //#endregion
3268
- export { xn as $, h as $n, zt as $t, Zn as A, Te as An, _r as At, $n as B, w as Bn, an as Bt, X as C, Ne as Cn, vr as Ct, fr as D, Ae as Dn, pn as Dt, W as E, Me as En, Xn as Et, er as F, xe as Fn, Gn as Ft, lr as G, ce as Gn, V as Gt, or as H, de as Hn, Qt as Ht, tr as I, Se as In, Kn as It, ir as J, ue as Jn, Kt as Jt, cr as K, se as Kn, nn as Kt, Bn as L, ye as Ln, On as Lt, gn as M, De as Mn, Mn as Mt, _n as N, we as Nn, En as Nt, sn as O, ke as On, yn as Ot, vn as P, T as Pn, Wn as Pt, bn as Q, b as Qn, Rt as Qt, on as R, ge as Rn, Hn as Rt, Vr as S, Le as Sn, Vn as St, G as T, je as Tn, Pn as Tt, ur as U, oe as Un, Xt as Ut, Un as V, fe as Vn, Dn as Vt, sr as W, le as Wn, Zt as Wt, ar as X, te as Xn, Wt as Xt, nr as Y, ne as Yn, z as Yt, qn as Z, re as Zn, L as Zt, Hr as _, Be as _n, Jn as _t, ei as a, Mt as an, m as ar, Fn as at, Z as b, Pe as bn, hr as bt, ti as c, kt as cn, s as cr, Ln as ct, oi as d, ht as dn, o as dr, cn as dt, Bt as en, g as er, Sn as et, ni as f, et as fn, ln as ft, Gr as g, He as gn, An as gt, Kr as h, ze as hn, jn as ht, ri as i, jt as in, p as ir, Yn as it, rn as j, Ee as jn, fn as jt, mr as k, Oe as kn, gr as kt, Xr as l, Dt as ln, c as lr, Rn as lt, Jr as m, Xe as mn, kn as mt, $r as n, Ft as nn, ee as nr, wn as nt, Zr as o, At as on, f as or, Nn as ot, Yr as p, M as pn, pr as pt, rr as q, ae as qn, tn as qt, ii as r, Pt as rn, u as rr, Tn as rt, ai as s, Ot as sn, l as sr, In as st, Qr as t, Lt as tn, _ as tr, Cn as tt, si as u, N as un, a as ur, zn as ut, $ as v, Ue as vn, un as vt, J as w, Fe as wn, hn as wt, Br as x, Ie as xn, Qn as xt, Q as y, Re as yn, mn as yt, dr as z, C as zn, dn as zt };