@layers-app/editor 0.7.93 → 0.7.95

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 (227) hide show
  1. package/README.md +831 -831
  2. package/dist/index.cjs +2 -2
  3. package/dist/index.d.ts +5 -65
  4. package/dist/index.js +12 -14
  5. package/dist/{layers.yFxcgyah.js → layers.-E5ZL8uG.js} +2 -2
  6. package/dist/{layers._ram0v-H.js → layers.13yQCoaW.js} +1 -1
  7. package/dist/{layers.BPni5cr6.js → layers.2SbhtZ-F.js} +2 -2
  8. package/dist/{layers.l9IaJ8Na.js → layers.2kEY3VsX.js} +1 -1
  9. package/dist/{layers.sFmfgHo4.js → layers.2mP7D5Gk.js} +3 -3
  10. package/dist/layers.3Q8u36mg.js +76 -0
  11. package/dist/layers.4AD4x-dG.js +1 -0
  12. package/dist/{layers.DDQgSWZM.js → layers.4DlTMioA.js} +4 -4
  13. package/dist/{layers.Daizjhsk.js → layers.6yAkjn3_.js} +3 -3
  14. package/dist/{layers.4vqpsuc3.js → layers.75v9_J7l.js} +1 -1
  15. package/dist/{layers.DzZ61AN4.js → layers.93L1Omwe.js} +1 -1
  16. package/dist/{layers.zW7UNB56.js → layers.98qn79XI.js} +1 -1
  17. package/dist/{layers.DEkU827U.js → layers.9YdRm5Ps.js} +1 -1
  18. package/dist/layers.9naw7mjQ.js +276 -0
  19. package/dist/{layers.CNUJb-Qd.js → layers.Aw93WAhu.js} +1 -1
  20. package/dist/{layers.BDiPbruK.js → layers.B-jCO_Ab.js} +1 -1
  21. package/dist/{layers.DTCgqxVH.js → layers.B0JlC05E.js} +1 -1
  22. package/dist/{layers._TXR7_BW.js → layers.B0NJNWRr.js} +1 -1
  23. package/dist/{layers.Lm3yzugI.js → layers.B0YMRqML.js} +1 -1
  24. package/dist/{layers.BLpNviKk.js → layers.B17FuWom.js} +1 -1
  25. package/dist/{layers.BnBIaczk.js → layers.B18E95WW.js} +1 -1
  26. package/dist/layers.B3RezEDU.js +1 -0
  27. package/dist/{layers.BzoSDIc-.js → layers.B4PQefTU.js} +1 -1
  28. package/dist/{layers.DM5FQGwH.js → layers.B5UtlMbi.js} +1 -1
  29. package/dist/{layers.BGJFkxfG.js → layers.B79K0gu0.js} +1 -1
  30. package/dist/{layers.BHnL_Uok.js → layers.B7bFm27p.js} +1 -1
  31. package/dist/{layers.GsD0_GxX.js → layers.B8cRjTv5.js} +8 -8
  32. package/dist/{layers.CC44ZlQZ.js → layers.BFTJjwZU.js} +24 -24
  33. package/dist/{layers.DHzGmamJ.js → layers.BFxVLejv.js} +1 -1
  34. package/dist/{layers.DAvGftUZ.js → layers.BH4Gwh3Q.js} +4 -4
  35. package/dist/{layers.iCGkfdqe.js → layers.BMlZJCFk.js} +1 -1
  36. package/dist/{layers.D_CVQ8_U.js → layers.BNCzrHwP.js} +1 -1
  37. package/dist/{layers.vvoHMkog.js → layers.BQMnzD02.js} +1 -1
  38. package/dist/{layers.CRV0BKlE.js → layers.BRJqlys_.js} +1 -1
  39. package/dist/layers.BRj8XDiJ.js +6 -0
  40. package/dist/{layers.iYPrW38K.js → layers.BRkx-I0n.js} +1 -1
  41. package/dist/{layers.BalFy4Pd.js → layers.BSC2_swu.js} +1 -1
  42. package/dist/{layers.D0l4OEP1.js → layers.BTEq-3Ng.js} +1 -1
  43. package/dist/{layers.DxYNx_WJ.js → layers.BTcW771z.js} +1 -1
  44. package/dist/layers.BV7jD_UG.js +300 -0
  45. package/dist/layers.BVu5YqDM.js +1 -0
  46. package/dist/layers.BWOY5x_s.js +215 -0
  47. package/dist/layers.BXcX2RSV.js +295 -0
  48. package/dist/{layers.Bcb3CJTF.js → layers.BXoWrkcs.js} +2 -2
  49. package/dist/{layers.OFbtrZYp.js → layers.BY-BtZXU.js} +3 -3
  50. package/dist/{layers.Fp2xKhlB.js → layers.BYsTLzE6.js} +1 -1
  51. package/dist/{layers.UWbJSE_q.js → layers.BZb38RRY.js} +1 -1
  52. package/dist/{layers.DRGSxBgi.js → layers.BaOjlgv_.js} +1 -1
  53. package/dist/{layers.DTkHkrLG.js → layers.BaT31SFJ.js} +5 -5
  54. package/dist/layers.BbKbad0b.js +1 -0
  55. package/dist/{layers.DWAnuPjJ.js → layers.BcJegCaI.js} +1 -1
  56. package/dist/{layers.BaDwWFkk.js → layers.BdHWNfs-.js} +1 -1
  57. package/dist/{layers.mCNNRzMK.js → layers.BePEn0X4.js} +1 -1
  58. package/dist/{layers.D5ldRac_.js → layers.BerJ0Pg3.js} +1 -1
  59. package/dist/{layers.-qD_IlHz.js → layers.Bfe9Pp9D.js} +1 -1
  60. package/dist/{layers.B6rOc-Ti.js → layers.BgySFLMk.js} +1 -1
  61. package/dist/{layers.D1UqHxFG.js → layers.BhvHH_Ju.js} +1 -1
  62. package/dist/{layers.IkYeHNd-.js → layers.Bi9ySoON.js} +1 -1
  63. package/dist/{layers.CsqTB_b0.js → layers.Bkv9fsTk.js} +1 -1
  64. package/dist/{layers.CxiX7XmH.js → layers.Blxnf5Vj.js} +1 -1
  65. package/dist/{layers.GVr5uU5W.js → layers.BpFBNir0.js} +1 -1
  66. package/dist/{layers.DkwDMTq9.js → layers.BpbSyRnx.js} +1 -1
  67. package/dist/{layers.kpBucBt1.js → layers.BpsE8-NY.js} +1 -1
  68. package/dist/{layers.D_1KCN2L.js → layers.BqGHT5wm.js} +1 -1
  69. package/dist/layers.Br2e9Qz-.js +1 -0
  70. package/dist/{layers.CfocA5Re.js → layers.BrNQmBHb.js} +1 -1
  71. package/dist/{layers.Dyd9_aH-.js → layers.BrVjD0OE.js} +1 -1
  72. package/dist/{layers.BEKTKoir.js → layers.BrsLij4r.js} +1 -1
  73. package/dist/{layers.VBselTAE.js → layers.BtdZ-A8x.js} +1 -1
  74. package/dist/{layers.BLCWQ59V.js → layers.BvnrNMBr.js} +1 -1
  75. package/dist/{layers.DuqUo0oU.js → layers.BzeRvcdG.js} +1 -1
  76. package/dist/{layers.jI-GVlXe.js → layers.BzlLEXPU.js} +1 -1
  77. package/dist/{layers.Y7kZzQzI.js → layers.C0SzQIIy.js} +1 -1
  78. package/dist/{layers.VjAp6vpG.js → layers.C16hyb_d.js} +1 -1
  79. package/dist/{layers.Qr2h1-VC.js → layers.C25rwqWq.js} +1 -1
  80. package/dist/{layers.BtJnQ0mI.js → layers.C4sZy2bH.js} +1 -1
  81. package/dist/{layers.C-Q16oCj.js → layers.C8KnrbJP.js} +1 -1
  82. package/dist/{layers.QnTzffzI.js → layers.C8Vg5nct.js} +1 -1
  83. package/dist/{layers.DcVK6qgi.js → layers.C8s-IpyV.js} +1 -1
  84. package/dist/{layers.CM5hqLt_.js → layers.C9ylISWH.js} +1 -1
  85. package/dist/{layers.CBaBV2iZ.js → layers.CC1bWKza.js} +1 -1
  86. package/dist/{layers.CV9JMOd0.js → layers.CClda9ub.js} +1 -1
  87. package/dist/{layers.vU738QAp.js → layers.CDPzHrZq.js} +1 -1
  88. package/dist/{layers.BkHV48yv.js → layers.CDlXOuYY.js} +1 -1
  89. package/dist/{layers.czDrchz1.js → layers.CE1Ndc4E.js} +1 -1
  90. package/dist/{layers.B0R-ifEH.js → layers.CFDWiiQA.js} +1 -1
  91. package/dist/{layers.CWjT_Kbq.js → layers.CGavCtyF.js} +1 -1
  92. package/dist/{layers.BoOiKUQt.js → layers.CGqJjyC3.js} +65 -65
  93. package/dist/{layers.CjgXNJBg.js → layers.CKAQZ-0D.js} +1 -1
  94. package/dist/{layers.DNoj8uH2.js → layers.CMpczyu-.js} +1 -1
  95. package/dist/{layers.ChEJ2zyQ.js → layers.CMuPbUPi.js} +1 -1
  96. package/dist/{layers.Brrg4jj_.js → layers.CMuo3nXh.js} +1 -1
  97. package/dist/{layers.CjvUFr5W.js → layers.COJrFB7F.js} +1 -1
  98. package/dist/{layers.aZyt0ZhK.js → layers.COKgTzFb.js} +4 -4
  99. package/dist/{layers.FuV5aVfW.js → layers.COWvbQVp.js} +1 -1
  100. package/dist/{layers.fsKnbvfV.js → layers.CQ6la2e9.js} +1 -1
  101. package/dist/{layers.C8DpC6Mn.js → layers.CQfNfZlg.js} +1 -1
  102. package/dist/{layers.CGwmNznF.js → layers.CRHKyZqs.js} +5 -5
  103. package/dist/{layers.CWuSuPfS.js → layers.CTJeDsBu.js} +1 -1
  104. package/dist/{layers.5usI25Xs.js → layers.CV24J_Mp.js} +1 -1
  105. package/dist/{layers.JabcC5VX.js → layers.CVM7K8J4.js} +1 -1
  106. package/dist/{layers.CFZqbydb.js → layers.Ca7SArHb.js} +3 -3
  107. package/dist/{layers.C_ZG_NmP.js → layers.CbfcnlO3.js} +1 -1
  108. package/dist/{layers.CTGsC808.js → layers.Ce9XkdTw.js} +1 -1
  109. package/dist/{layers.D_gH0Is5.js → layers.Cewl7lsR.js} +1 -1
  110. package/dist/{layers.zE2Ag_LD.js → layers.Cmz7hc2R.js} +1 -1
  111. package/dist/{layers.9iTOFkOz.js → layers.Cnk5pS5i.js} +1 -1
  112. package/dist/{layers.Bzd_kEIv.js → layers.CoRn3fKC.js} +1 -1
  113. package/dist/{layers._LRYHSJ0.js → layers.Colb3gh6.js} +1 -1
  114. package/dist/{layers.CN2AORSh.js → layers.CpJXQf84.js} +1 -1
  115. package/dist/{layers.CmFR2uKv.js → layers.CquKLVv1.js} +1 -1
  116. package/dist/{layers.C01LyZL_.js → layers.CrkcoIS9.js} +1 -1
  117. package/dist/{layers.I1SLD0UK.js → layers.CtqVlJjA.js} +1 -1
  118. package/dist/{layers.BEGCfKQE.js → layers.CuxC1Aal.js} +1 -1
  119. package/dist/{layers.CXoinSNf.js → layers.D0Ggmjob.js} +4 -4
  120. package/dist/{layers.DTBSutEB.js → layers.D1Ji033n.js} +1 -1
  121. package/dist/{layers.CmNwAjIw.js → layers.D1oWAK49.js} +1 -1
  122. package/dist/{layers.CRgtKhyz.js → layers.D2GOeQIy.js} +1 -1
  123. package/dist/{layers.D4BL-_g4.js → layers.D2gAypcS.js} +1 -1
  124. package/dist/{layers.msmp08Xf.js → layers.D3_1Ua0e.js} +4 -4
  125. package/dist/{layers.Chx21Noj.js → layers.D41K-b5z.js} +1 -1
  126. package/dist/{layers.PvxtC1eC.js → layers.D4mim_ow.js} +1 -1
  127. package/dist/layers.D6gRryL0.js +1 -0
  128. package/dist/{layers.DYnnh-09.js → layers.D7NR5knE.js} +1 -1
  129. package/dist/{layers.B7ml1wOj.js → layers.D7WjeTgf.js} +3 -3
  130. package/dist/{layers.Dzvv_LWT.js → layers.D86lQuXS.js} +3 -3
  131. package/dist/layers.D8k8DGNi.js +1 -0
  132. package/dist/{layers.CF7penQ9.js → layers.D9VyZLzg.js} +2 -2
  133. package/dist/{layers.BufejxmY.js → layers.D9qkyzx8.js} +1 -1
  134. package/dist/{layers.DryQJgTf.js → layers.DASXYyHC.js} +1 -1
  135. package/dist/{layers.D4QdQ1B8.js → layers.DAszBVfh.js} +1 -1
  136. package/dist/{layers.BKTJE34P.js → layers.DBCBDR3b.js} +1 -1
  137. package/dist/{layers.DmvODDQ0.js → layers.DH_mqaBo.js} +4 -4
  138. package/dist/{layers.D9BOJQ5y.js → layers.DHetpaGH.js} +1 -1
  139. package/dist/{layers.CfDwsZU0.js → layers.DJoZHH64.js} +1 -1
  140. package/dist/layers.DL2tuvoX.js +32090 -0
  141. package/dist/{layers.DDZzHO2e.js → layers.DLcN8PIe.js} +1 -1
  142. package/dist/{layers.CeI3w2iY.js → layers.DMFI38mY.js} +1 -1
  143. package/dist/{layers.MqC_9V6k.js → layers.DN34PNqI.js} +1 -1
  144. package/dist/{layers.Csi-9lrm.js → layers.DQ2wvSLl.js} +1 -1
  145. package/dist/{layers.DOTdJgPv.js → layers.DU9HGoz0.js} +1 -1
  146. package/dist/{layers.Cz_0Xe5w.js → layers.DVCmLI6u.js} +1 -1
  147. package/dist/{layers.Bk7jKmXI.js → layers.DVuJFeFE.js} +1 -1
  148. package/dist/{layers.BUhQr1my.js → layers.D_jnzZSL.js} +1 -1
  149. package/dist/{layers.DFmZFu4s.js → layers.Da7oE5mU.js} +1 -1
  150. package/dist/{layers.D6sxU8A2.js → layers.Dad7Lsnl.js} +2 -2
  151. package/dist/{layers.cYc9Mkkl.js → layers.Dci5QVDS.js} +1 -1
  152. package/dist/{layers.CpvsNStS.js → layers.DdbTq5aA.js} +1 -1
  153. package/dist/{layers.BcCelUDj.js → layers.DeIv1hll.js} +1 -1
  154. package/dist/layers.DeprR50W.js +1 -0
  155. package/dist/{layers.DGh8drOs.js → layers.DjWDEJ8X.js} +1 -1
  156. package/dist/{layers.BUFOBCMy.js → layers.DnE2GcHE.js} +3 -3
  157. package/dist/{layers.CKJZJ_ts.js → layers.Dnqr53bm.js} +1 -1
  158. package/dist/{layers.Bksq8_Qt.js → layers.DoP3fAoc.js} +1 -1
  159. package/dist/{layers.7jwh_MfI.js → layers.DrM9csiN.js} +1 -1
  160. package/dist/{layers.Stx3Iboc.js → layers.DszQIpo4.js} +1 -1
  161. package/dist/{layers.DXe2VR26.js → layers.Dt6tiPdm.js} +1 -1
  162. package/dist/{layers.BV-g-xzT.js → layers.Dwrzi8nh.js} +1 -1
  163. package/dist/{layers.CNcMdVwf.js → layers.DxJaSE64.js} +1 -1
  164. package/dist/{layers.CWTCSE0f.js → layers.DzMwdIk6.js} +1 -1
  165. package/dist/{layers.CZ4Y6y3c.js → layers.DzRpsx95.js} +1 -1
  166. package/dist/{layers.D_m-25Ic.js → layers.Fum9dFUj.js} +3 -3
  167. package/dist/{layers.DFuWTxaW.js → layers.ISpgzsWD.js} +1 -1
  168. package/dist/{layers.qRe_lZMu.js → layers.JLbefGlL.js} +1 -1
  169. package/dist/{layers.268NfhIX.js → layers.JfTTob86.js} +1 -1
  170. package/dist/{layers.C2fhjYrc.js → layers.KGrV8VX2.js} +1 -1
  171. package/dist/{layers.rulLZ93L.js → layers.KK7ljVw5.js} +1 -1
  172. package/dist/layers.MxJMzalS.js +304 -0
  173. package/dist/{layers.ve-b1iUI.js → layers.N8mnQie3.js} +1 -1
  174. package/dist/{layers.DqwY2YKL.js → layers.NgClHNlL.js} +1 -1
  175. package/dist/{layers.DwFHPFXW.js → layers.O8nidRfN.js} +1 -1
  176. package/dist/{layers.BpnHi2Sm.js → layers.PI9aySDS.js} +1 -1
  177. package/dist/{layers.mRg6Wxq7.js → layers.PYM0IMGs.js} +1 -1
  178. package/dist/{layers.orgRZ2V9.js → layers.RxFUv3Bx.js} +1 -1
  179. package/dist/{layers.V9lJ9Ccb.js → layers.V3nYpF_O.js} +1 -1
  180. package/dist/{layers.SWM1KY20.js → layers.VvK0SOcd.js} +1 -1
  181. package/dist/{layers.811TSpOY.js → layers.WIreiaYt.js} +1 -1
  182. package/dist/{layers.DhR_eZa8.js → layers.WrlUzNAW.js} +1 -1
  183. package/dist/{layers.XxXB7ixR.js → layers.Y0NPe355.js} +1 -1
  184. package/dist/{layers.nltEsUBo.js → layers._9wKr3L_.js} +4 -4
  185. package/dist/{layers.yasiEV95.js → layers.atxKDiCs.js} +1 -1
  186. package/dist/{layers.DTUuZqOa.js → layers.ayZrrBx5.js} +3 -3
  187. package/dist/{layers.CDOF7D2m.js → layers.b4rn0Atm.js} +4 -4
  188. package/dist/{layers.LQ0WKJCL.js → layers.bBh5bzLb.js} +1 -1
  189. package/dist/{layers.hmEL7VCj.js → layers.c2Is_p3D.js} +1 -1
  190. package/dist/{layers.DFmhjbPv.js → layers.cJw8uJHc.js} +3 -3
  191. package/dist/{layers.DVTq8SE9.js → layers.g0SmonNN.js} +1 -1
  192. package/dist/{layers.gCS_1NW6.js → layers.hI4w-_CI.js} +1 -1
  193. package/dist/{layers.DUlvtU8P.js → layers.hYb_RCe5.js} +1 -1
  194. package/dist/{layers.DhwgnsWZ.js → layers.iivRqxRU.js} +1 -1
  195. package/dist/{layers.mCqe-cvO.js → layers.jO4OWeX_.js} +1 -1
  196. package/dist/layers.jx_O1wUV.js +8 -0
  197. package/dist/{layers.C94ZEZX8.js → layers.kVp2pqJH.js} +1 -1
  198. package/dist/{layers.BeIbAvhr.js → layers.nvOqxz3c.js} +1 -1
  199. package/dist/layers.o-pm_2Rk.js +271 -0
  200. package/dist/{layers.M4h6tkxO.js → layers.osawo8PK.js} +1 -1
  201. package/dist/{layers.BZp78mT0.js → layers.qKOcmQPG.js} +1 -1
  202. package/dist/{layers.Dhtl9hTt.js → layers.r7BDo2cG.js} +1 -1
  203. package/dist/{layers.igq8-CrV.js → layers.rZOTpVnw.js} +6 -6
  204. package/dist/{layers.CLVPhrnI.js → layers.sZGMBfa4.js} +7 -7
  205. package/dist/{layers.BRP3PhII.js → layers.smouwFHe.js} +3 -3
  206. package/dist/{layers.B5LuOdoA.js → layers.soKSk4Tf.js} +1 -1
  207. package/dist/{layers.DSzKKGJF.js → layers.xLYLKZWw.js} +1 -1
  208. package/dist/{layers.CFML777f.js → layers.yikAnJS7.js} +1 -1
  209. package/dist/{layers.BfyTGtGq.js → layers.ym_97Wes.js} +1 -1
  210. package/dist/{layers.CG4NZuoY.js → layers.yo62u_-M.js} +1 -1
  211. package/package.json +20 -46
  212. package/dist/layers.-tiwgsIy.js +0 -17
  213. package/dist/layers.BF5czbZm.js +0 -310
  214. package/dist/layers.Brbunzgb.js +0 -1
  215. package/dist/layers.C8scOXtX.js +0 -46873
  216. package/dist/layers.CNASfKEr.js +0 -1
  217. package/dist/layers.Ce5d3c4K.js +0 -1
  218. package/dist/layers.CmmYt3Ou.js +0 -1
  219. package/dist/layers.CnCND_tm.js +0 -533
  220. package/dist/layers.DBe4vr1J.js +0 -6
  221. package/dist/layers.DGYg3grQ.js +0 -346
  222. package/dist/layers.DH0uo8fs.js +0 -1
  223. package/dist/layers.Dh7vm0BH.js +0 -500
  224. package/dist/layers.DilA0qnM.js +0 -54
  225. package/dist/layers.Dybb-MrJ.js +0 -1
  226. package/dist/layers.UyyKG0j1.js +0 -8
  227. package/dist/layers.vgzUgI4K.js +0 -1
@@ -1,500 +0,0 @@
1
- import { jsxs as k, jsx as o, Fragment as re } from "react/jsx-runtime";
2
- import { useState as w, useCallback as b, useMemo as le, useContext as J, useRef as se, useEffect as T } from "react";
3
- import { useTranslation as F } from "react-i18next";
4
- import { useLexicalComposerContext as H } from "@lexical/react/LexicalComposerContext";
5
- import { Stack as de, Button as _, Box as ce, LoadingOverlay as ge } from "@mantine/core";
6
- import { $getNodeByKey as C, COMMAND_PRIORITY_LOW as ue, $setSelection as me } from "lexical";
7
- import { AttachmentsGalleryModal as he, showErrorNotification as fe } from "@layers-app/shared";
8
- import { i as x, j as Q, k as K, P as pe, A as ve, l as we, m as Ie, n as be, M as ye, H as L, o as Ce, T as xe, p as Ne, C as ee, q as Te, r as Ae, s as R, t as De, v as Se, w as Oe, U as Pe, x as ke, g as Ee, R as Me, y as X, b as ze, z as We } from "./layers.C8scOXtX.js";
9
- import { useDisclosure as Y } from "@mantine/hooks";
10
- const Ue = () => {
11
- };
12
- function _e({ nodeKey: e, src: n, id: i }) {
13
- const { t: r } = F(), [g] = H(), [u, m] = w(!1), [s, h] = w(!1), f = b(() => {
14
- g.update(() => {
15
- const v = C(e);
16
- x(v) && v.remove();
17
- });
18
- }, [g, e]), N = b(async () => {
19
- if (n)
20
- try {
21
- await Q(n, K(n));
22
- } catch {
23
- }
24
- }, [n]);
25
- return /* @__PURE__ */ k(
26
- "div",
27
- {
28
- className: "media-actions visible",
29
- style: {
30
- position: "absolute",
31
- top: 10,
32
- right: 10,
33
- zIndex: 10,
34
- pointerEvents: "auto",
35
- display: "flex",
36
- gap: 4
37
- },
38
- onClick: (v) => v.stopPropagation(),
39
- children: [
40
- /* @__PURE__ */ o(pe, { t: r, src: n, setShown: Ue, id: i }),
41
- /* @__PURE__ */ o(
42
- ve,
43
- {
44
- opened: u,
45
- setOpened: m,
46
- t: r,
47
- editor: g,
48
- nodeKey: e
49
- }
50
- ),
51
- /* @__PURE__ */ o(
52
- we,
53
- {
54
- opened: s,
55
- onOpenChange: h,
56
- t: r,
57
- onDownload: () => void N(),
58
- onDelete: f
59
- }
60
- )
61
- ]
62
- }
63
- );
64
- }
65
- function Le({ nodeKey: e, src: n, id: i }) {
66
- const { t: r } = F(), [g] = H(), [u, { open: m, close: s }] = Y(!1), [h, { open: f, close: N }] = Y(!1), v = le(
67
- () => [
68
- {
69
- id: !i || i === "0" ? "" : i,
70
- Url: n ?? "",
71
- contentType: "",
72
- originalFileName: "",
73
- fileSize: 0,
74
- storageType: "",
75
- storagePath: "",
76
- fileName: "",
77
- parentType: "",
78
- parentId: "",
79
- ownerId: "",
80
- createdAt: /* @__PURE__ */ new Date(),
81
- updatedAt: /* @__PURE__ */ new Date(),
82
- version: 0,
83
- deleted: !1,
84
- deletedAt: /* @__PURE__ */ new Date()
85
- }
86
- ],
87
- [n, i]
88
- ), A = () => {
89
- s(), f();
90
- }, D = b(async () => {
91
- if (s(), !!n)
92
- try {
93
- await Q(n, K(n));
94
- } catch {
95
- }
96
- }, [n, s]), I = b(() => {
97
- s(), g.update(() => {
98
- const a = C(e);
99
- x(a) && a.remove();
100
- });
101
- }, [g, e, s]);
102
- return /* @__PURE__ */ k(re, { children: [
103
- /* @__PURE__ */ o(
104
- "div",
105
- {
106
- className: "image-touch-actions",
107
- style: {
108
- position: "absolute",
109
- top: 8,
110
- right: 8,
111
- zIndex: 10,
112
- pointerEvents: "auto"
113
- },
114
- onClick: (a) => a.stopPropagation(),
115
- children: /* @__PURE__ */ o(
116
- Ie,
117
- {
118
- label: r("editor.toolbar.more"),
119
- icon: be,
120
- iconColor: "var(--mantine-color-gray-text)",
121
- "aria-label": r("editor.toolbar.more"),
122
- onClick: m
123
- }
124
- )
125
- }
126
- ),
127
- /* @__PURE__ */ o(
128
- he,
129
- {
130
- opened: h,
131
- onOpenChange: (a) => a ? f() : N(),
132
- attachments: v
133
- }
134
- ),
135
- /* @__PURE__ */ o(
136
- ye,
137
- {
138
- opened: u,
139
- onClose: s,
140
- title: r("editor.image.mobileActions"),
141
- children: /* @__PURE__ */ k(de, { gap: 4, p: 0, children: [
142
- /* @__PURE__ */ o(
143
- _,
144
- {
145
- type: "button",
146
- variant: "subtle",
147
- color: "gray",
148
- fullWidth: !0,
149
- justify: "flex-start",
150
- bg: "light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",
151
- onClick: A,
152
- leftSection: /* @__PURE__ */ o(
153
- L,
154
- {
155
- icon: Ce,
156
- size: 16,
157
- color: "var(--mantine-color-dimmed)"
158
- }
159
- ),
160
- children: r("editor.image.previewFullScreen")
161
- }
162
- ),
163
- /* @__PURE__ */ o(
164
- _,
165
- {
166
- type: "button",
167
- variant: "subtle",
168
- color: "gray",
169
- fullWidth: !0,
170
- justify: "flex-start",
171
- bg: "light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",
172
- onClick: () => void D(),
173
- leftSection: /* @__PURE__ */ o(
174
- L,
175
- {
176
- icon: xe,
177
- size: 16,
178
- color: "var(--mantine-color-dimmed)"
179
- }
180
- ),
181
- children: r("editor.gallery.download")
182
- }
183
- ),
184
- /* @__PURE__ */ o(
185
- _,
186
- {
187
- type: "button",
188
- variant: "subtle",
189
- color: "red",
190
- fullWidth: !0,
191
- justify: "flex-start",
192
- bg: "light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",
193
- onClick: I,
194
- leftSection: /* @__PURE__ */ o(
195
- L,
196
- {
197
- icon: Ne,
198
- size: 16,
199
- color: "var(--mantine-color-red-6)"
200
- }
201
- ),
202
- children: r("editor.actions.delete")
203
- }
204
- )
205
- ] })
206
- }
207
- )
208
- ] });
209
- }
210
- const Z = (e) => {
211
- const {
212
- width: n,
213
- height: i,
214
- isLoading: r,
215
- isError: g,
216
- src: u,
217
- id: m,
218
- altText: s,
219
- imageRef: h,
220
- maxWidth: f
221
- } = e;
222
- return /* @__PURE__ */ k(
223
- "div",
224
- {
225
- className: "media-wrapper",
226
- style: {
227
- width: n,
228
- height: i,
229
- display: "inline-flex",
230
- position: "relative"
231
- },
232
- children: [
233
- /* @__PURE__ */ o(
234
- ge,
235
- {
236
- visible: r,
237
- zIndex: 1e3,
238
- overlayProps: { backgroundOpacity: 0.5 },
239
- loaderProps: { size: 24, color: "black" }
240
- }
241
- ),
242
- /* @__PURE__ */ o(
243
- Re,
244
- {
245
- className: null,
246
- src: u,
247
- altText: s,
248
- imageRef: h,
249
- width: "inherit",
250
- height: "inherit",
251
- maxWidth: f || "auto",
252
- id: m
253
- }
254
- ),
255
- ze && /* @__PURE__ */ o(Le, { nodeKey: e.nodeKey, src: u, id: m }),
256
- We && /* @__PURE__ */ o(_e, { nodeKey: e.nodeKey, src: u, id: m })
257
- ]
258
- }
259
- );
260
- };
261
- function Re({
262
- altText: e,
263
- className: n,
264
- imageRef: i,
265
- src: r,
266
- width: g,
267
- height: u,
268
- maxWidth: m,
269
- id: s
270
- }) {
271
- const [h, f] = w(!1);
272
- return /* @__PURE__ */ o(
273
- "img",
274
- {
275
- className: `${n || void 0} ${h ? "" : "loading"}`,
276
- src: r,
277
- alt: e,
278
- ref: i,
279
- style: {
280
- height: u,
281
- maxWidth: m,
282
- width: g
283
- },
284
- onLoad: () => {
285
- r.includes("splash") ? setTimeout(() => {
286
- f(!0);
287
- }, 100) : f(!0);
288
- },
289
- draggable: "false",
290
- "data-id": s
291
- }
292
- );
293
- }
294
- function Ke(e) {
295
- const { disable: n } = J(ee);
296
- return n && Te.isPlaceholderSrc(e.src) ? null : /* @__PURE__ */ o(Fe, { ...e });
297
- }
298
- function Fe({
299
- src: e,
300
- altText: n,
301
- nodeKey: i,
302
- width: r,
303
- height: g,
304
- maxWidth: u,
305
- showCaption: m,
306
- caption: s,
307
- id: h,
308
- create: f,
309
- alignment: N,
310
- imagePickerTab: v
311
- }) {
312
- var G, q;
313
- const A = se(null), [D, I] = w(!0), [a] = H(), [y, E] = w(!0), [p, M] = w({
314
- width: 0,
315
- height: 0
316
- }), { start: j } = Ae(), [He, z] = w(0), { fetchUploadMedia: S, fetchDeleteMedia: $, maxFileSize: je } = J(ee), O = R.has(e) && (((G = R.get(e)) == null ? void 0 : G.mediaNodeKeys.length) === 0 || ((q = R.get(e)) == null ? void 0 : q.mediaNodeKeys.length) === void 0 || e.trim() === ""), { t: P } = F(), [$e, te] = w(0);
317
- T(() => a.registerDecoratorListener(() => {
318
- te((t) => t + 1);
319
- }), [O]), T(() => {
320
- if (!e || e.startsWith("data:image/") || !e.trim()) {
321
- I(!1);
322
- return;
323
- }
324
- const t = new Image();
325
- t.src = e, t.onload = () => I(!1), t.onerror = () => {
326
- I(!1);
327
- };
328
- }, [e, O]);
329
- const oe = (t, d) => {
330
- a.update(() => {
331
- me(null);
332
- const l = C(i);
333
- x(l) && l.setWidthAndHeight(t, d);
334
- });
335
- }, { historyState: B } = De(), {
336
- settings: { showNestedEditorTreeView: V }
337
- } = Se();
338
- function ie(t) {
339
- return t.endsWith(".svg") || t.includes("image/svg+xml");
340
- }
341
- function ne(t) {
342
- return new Promise((d, l) => {
343
- if (ie(t)) {
344
- d(0);
345
- return;
346
- }
347
- const c = new Image();
348
- c.src = t, c.onload = () => {
349
- d(c.width);
350
- }, c.onerror = () => {
351
- l(new Error("Failed to load image"));
352
- };
353
- });
354
- }
355
- T(() => {
356
- let t = r, d = g, l = 100;
357
- (e.includes("unsplash") ? e.trim() : !O && e.trim() || e.includes("upload-src-editor")) && e !== "upload" && ne(e).then((c) => {
358
- typeof t == "number" && t < l && c < l ? (E(!0), M({
359
- width: t,
360
- height: d
361
- })) : c < l ? (E(!0), M({
362
- width: "auto",
363
- height: "auto"
364
- })) : (M({
365
- width: c,
366
- height: c
367
- }), E(!1));
368
- }).catch((c) => {
369
- console.warn("Ошибка при загрузке изображения:", c.message);
370
- });
371
- }, [e, O]), T(() => {
372
- p.width && p.height && y && a.update(() => {
373
- const t = C(i);
374
- x(t) && t.setWidthAndHeight(p.width, p.height);
375
- });
376
- }, [p.width, p.height, y]);
377
- const ae = b(
378
- (t) => Oe(a, i, t),
379
- [a, i]
380
- ), W = b(
381
- (t, d) => {
382
- I(!1), a.update(() => {
383
- const l = C(i);
384
- x(l) && (l.setSrc(t), l.setId(d));
385
- });
386
- },
387
- [a, i]
388
- ), U = b(
389
- (t) => {
390
- I(!0);
391
- const d = j();
392
- S && S(
393
- t[0],
394
- (l, c) => {
395
- W(l, c), z(0);
396
- },
397
- (l) => {
398
- l && fe({
399
- message: P("editor.gallery.errorFile")
400
- }), z(0), W("", "");
401
- },
402
- d,
403
- (l) => {
404
- z(l);
405
- }
406
- );
407
- },
408
- [S, j, P, W]
409
- );
410
- return T(() => a.registerCommand(
411
- Pe,
412
- (t) => e !== "upload" || t.targetNodeKey !== i ? !1 : (U(t.files), !0),
413
- ue
414
- ), [a, U, i, e]), !e || e === "upload" ? /* @__PURE__ */ o(ce, { "data-editor-image-picker-drop-root": !0, w: "100%", children: /* @__PURE__ */ o(
415
- ke,
416
- {
417
- inline: !0,
418
- nodeKey: i,
419
- defaultTabValue: v,
420
- onWriteTabToNode: ae,
421
- uploading: !1,
422
- onUpload: (t) => {
423
- !S || !t.length || U(t);
424
- },
425
- popoverProps: {
426
- opened: !0,
427
- position: "bottom",
428
- zIndex: Ee
429
- },
430
- onChange: (t) => {
431
- a.update(() => {
432
- const d = C(i);
433
- x(d) && d.setSrc(t);
434
- });
435
- }
436
- }
437
- ) }) : y ? /* @__PURE__ */ o(
438
- Z,
439
- {
440
- width: p.width,
441
- height: p.height,
442
- isLoading: D,
443
- isError: !1,
444
- isIcon: y,
445
- src: e,
446
- id: h,
447
- editor: a,
448
- nodeKey: i,
449
- fetchDeleteMedia: $,
450
- altText: n,
451
- imageRef: A,
452
- maxWidth: u,
453
- showCaption: m,
454
- caption: s,
455
- isCollabActive: !1,
456
- historyState: B,
457
- showNestedEditorTreeView: V,
458
- t: P
459
- }
460
- ) : /* @__PURE__ */ o(
461
- Me,
462
- {
463
- editor: a,
464
- isIcon: y,
465
- width: X(r),
466
- height: X(g),
467
- initialWidth: p.width || "",
468
- initialHeight: p.height || "",
469
- onResizeEnd: oe,
470
- alignment: N,
471
- children: /* @__PURE__ */ o(
472
- Z,
473
- {
474
- width: "inherit",
475
- height: "inherit",
476
- isLoading: D,
477
- isError: !1,
478
- isIcon: y,
479
- src: e,
480
- id: h,
481
- editor: a,
482
- nodeKey: i,
483
- fetchDeleteMedia: $,
484
- altText: n,
485
- imageRef: A,
486
- maxWidth: u,
487
- showCaption: m,
488
- caption: s,
489
- isCollabActive: !1,
490
- historyState: B,
491
- showNestedEditorTreeView: V,
492
- t: P
493
- }
494
- )
495
- }
496
- );
497
- }
498
- export {
499
- Ke as default
500
- };
@@ -1,54 +0,0 @@
1
- const t = {
2
- elements: [],
3
- files: {},
4
- appState: {},
5
- previewSVG: null
6
- }, a = (r) => {
7
- try {
8
- const e = JSON.parse(r);
9
- if (Array.isArray(e))
10
- return { ...t, elements: e };
11
- if (e && typeof e == "object")
12
- return {
13
- elements: Array.isArray(e.elements) ? e.elements : [],
14
- files: e.files && typeof e.files == "object" ? e.files : {},
15
- appState: e.appState && typeof e.appState == "object" ? e.appState : {},
16
- previewSVG: typeof e.previewSVG == "string" ? e.previewSVG : typeof e.previewSvg == "string" ? e.previewSvg : null
17
- };
18
- } catch {
19
- }
20
- return { ...t };
21
- }, p = {
22
- en: "en-US",
23
- ru: "ru-RU",
24
- fr: "fr-FR",
25
- de: "de-DE",
26
- es: "es-ES",
27
- it: "it-IT",
28
- pt: "pt-BR",
29
- zh: "zh-CN",
30
- ja: "ja-JP",
31
- ko: "ko-KR",
32
- ar: "ar-SA",
33
- hi: "hi-IN",
34
- nl: "nl-NL",
35
- tr: "tr-TR",
36
- pl: "pl-PL",
37
- sv: "sv-SE",
38
- cs: "cs-CZ",
39
- uk: "uk-UA",
40
- ro: "ro-RO",
41
- fi: "fi-FI",
42
- da: "da-DK",
43
- no: "no-NO",
44
- el: "el-GR",
45
- he: "he-IL",
46
- th: "th-TH",
47
- id: "id-ID",
48
- ms: "ms-MY",
49
- vi: "vi-VN"
50
- };
51
- export {
52
- p as l,
53
- a as p
54
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),r=require("react"),se=require("react-dom"),ae=require("react-i18next"),c=require("./layers.BF5czbZm.js"),ce=require("@lexical/react/LexicalComposerContext"),M=require("@lexical/react/LexicalErrorBoundary"),ie=require("@lexical/react/useLexicalEditable"),A=require("@mantine/core"),T=require("lexical"),le=require("./layers.R8mPlCA0.js");function H({equation:u,inline:a,onDoubleClick:l}){const s=r.useRef(null);return r.useEffect(()=>{const m=s.current;m!==null&&le.default.render(u,m,{displayMode:!a,errorColor:"#cc0000",output:"html",strict:"warn",throwOnError:!1,trust:!1})},[u,a]),n.jsxs(n.Fragment,{children:[n.jsx("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",width:0,height:0,alt:""}),n.jsx("span",{role:"button",tabIndex:-1,onDoubleClick:l,ref:s}),n.jsx("img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",width:0,height:0,alt:""})]})}const X=18,ue=8,Y=20,Z=25,J=20;let K=!1;const V=new Map;function de(u){K||(K=!0,u.registerCommand(c.OPEN_EQUATION_POPUP_COMMAND,a=>{const l=V.get(a);return l?(l(),!0):!1},T.COMMAND_PRIORITY_EDITOR))}function pe({equation:u,inline:a,nodeKey:l}){const[s]=ce.useLexicalComposerContext(),m=ie.useLexicalEditable(),{t:_}=ae.useTranslation(),b=r.useRef(null),B=r.useRef(null),L=r.useRef(null),[E,R]=r.useState(u),[d,h]=r.useState(!1),[F,Q]=r.useState({top:0,left:0}),[S,$]=r.useState(!1),j=r.useCallback(()=>{const t=b.current;if(!t)return;const i=(t.closest(".editor-equation")||t).getBoundingClientRect(),o=X-(a?J:0);Q({top:i.bottom+o-Y+Z,left:i.left}),$(!0)},[a]),z=r.useCallback(()=>{const t=b.current,e=B.current;if(!t||!e)return;const o=(t.closest(".editor-equation")||t).getBoundingClientRect(),I=e.getBoundingClientRect(),g=I.height,G=I.width,C=window.visualViewport,N=(C==null?void 0:C.height)??window.innerHeight,W=(C==null?void 0:C.width)??window.innerWidth,p=ue,O=X-(a?J:0),D=o.bottom+O,U=o.top-O-g,te=D+g<=N-p,ne=U>=p;let f,P;if(te)f=D,P=!0;else if(ne)f=U,P=!1;else{const oe=N-p-(o.bottom+O),re=o.top-O-p;P=oe>=re,f=P?D:U,f=Math.max(p,Math.min(f,N-g-p))}let q=o.left;q+G>W-p&&(q=W-G-p),q=Math.max(p,q),f-=Y,P&&(f+=Z),f=Math.max(p,Math.min(f,N-g-p)),Q({top:f,left:q})},[a]);r.useLayoutEffect(()=>{if(!d||c.IS_TOUCH_DEVICE||!S)return;const t=B.current;if(!t)return;const e=()=>{z()};e();const i=new ResizeObserver(e);i.observe(t);const o=window.visualViewport;return window.addEventListener("scroll",e,!0),o==null||o.addEventListener("resize",e),o==null||o.addEventListener("scroll",e),()=>{i.disconnect(),window.removeEventListener("scroll",e,!0),o==null||o.removeEventListener("resize",e),o==null||o.removeEventListener("scroll",e)}},[S,d,z]),r.useEffect(()=>{de(s)},[s]),r.useEffect(()=>{const t=()=>{m&&h(!0)};return V.set(l,t),()=>{V.delete(l)}},[m,l]);const w=r.useCallback(()=>{if(m){if(d){h(!1);return}j(),h(!0)}},[m,d,j]),y=r.useCallback(()=>{const t=E.trim();s.update(()=>{const e=T.$getNodeByKey(l);if(c.$isEquationNode(e)){if(e.isInline&&e.isInline()&&t===""){e.remove();return}e.setEquation(t)}}),h(!1)},[s,l,E]),k=r.useCallback(()=>{if(!u&&a){s.update(()=>{const t=T.$getNodeByKey(l);c.$isEquationNode(t)&&t.remove()}),h(!1);return}R(u),h(!1)},[s,u,a,l]);r.useEffect(()=>{d||R(u)},[u,d]),r.useEffect(()=>{if(!d||c.IS_TOUCH_DEVICE){c.unblockScroll(),c.IS_TOUCH_DEVICE||$(!1);return}c.blockScroll(),j();const t=window.requestAnimationFrame(()=>{const e=L.current;if(!e)return;const i=e.value.length;e.focus(),e.setSelectionRange(i,i)});return()=>{window.cancelAnimationFrame(t),c.unblockScroll()}},[d,j]),r.useEffect(()=>{if(!d||c.IS_TOUCH_DEVICE)return;const t=e=>{const i=e.target,o=b.current,I=document.querySelector(".equation-block__popup");i&&(o!=null&&o.contains(i)||I instanceof HTMLElement&&I.contains(i))||(a&&!E.trim()&&s.update(()=>{const g=T.$getNodeByKey(l);c.$isEquationNode(g)&&g.remove()}),h(!1))};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[s,a,d,l,E]);const x=(d?E:u).trim(),v=x.length>0;r.useEffect(()=>{const t=b.current;if(!t)return;const e=t.closest(".editor-equation");if(e){if(!x){e.removeAttribute("data-lexical-equation");return}try{const i=btoa(unescape(encodeURIComponent(x)));e.setAttribute("data-lexical-equation",i)}catch{e.setAttribute("data-lexical-equation",x)}}},[x]);const ee=a&&!m?n.jsx("span",{className:"equation-inline-trigger",children:n.jsx(M.LexicalErrorBoundary,{onError:t=>{var e;return(e=s._onError)==null?void 0:e.call(s,t)},children:n.jsx(H,{equation:u,inline:a,onDoubleClick:w})})}):a?n.jsx("span",{className:`equation-inline-trigger${v?"":" equation-inline-trigger--empty"}`,onClick:w,ref:b,children:v?n.jsx(M.LexicalErrorBoundary,{onError:t=>{var e;return(e=s._onError)==null?void 0:e.call(s,t)},children:n.jsx(H,{equation:x,inline:a,onDoubleClick:w})}):n.jsxs("span",{className:"equation-inline-placeholder",children:[n.jsx(c.HugeiconsIcon,{icon:c.$tr,size:24}),n.jsx("span",{children:"New equation"})]})}):n.jsx("div",{className:"equation-block",ref:b,children:n.jsx("div",{className:"equation-block__container",onClick:w,style:{cursor:m?"pointer":"default"},children:v?n.jsx(M.LexicalErrorBoundary,{onError:t=>{var e;return(e=s._onError)==null?void 0:e.call(s,t)},children:n.jsx(H,{equation:x,inline:a,onDoubleClick:w})}):n.jsx("div",{className:"equation-block__placeholder",children:_("editor.menu.equation.placeholder.block")})})});return n.jsxs(n.Fragment,{children:[ee,c.IS_TOUCH_DEVICE?n.jsx(c.MobileDrawer,{opened:d,onClose:k,title:_("editor.menu.other.equation.mobileTitle"),classNames:{content:"equation-mobile-drawer__content"},children:n.jsxs(A.Stack,{gap:"md",children:[n.jsx(A.Textarea,{autosize:!0,minRows:1,variant:"unstyled",value:E,onChange:t=>{t.stopPropagation(),R(t.currentTarget.value)},placeholder:"x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}",classNames:{wrapper:"equation-block__textarea-wrapper",input:"equation-mobile__textarea-input"},autoFocus:!0,ref:L}),n.jsxs(A.Stack,{gap:8,children:[n.jsx(A.Button,{fullWidth:!0,onClick:y,children:_("editor.link.save")}),n.jsx(A.Button,{variant:"subtle",color:"gray",fullWidth:!0,onClick:k,children:_("editor.cancel")})]})]})}):d&&S&&se.createPortal(n.jsx("div",{ref:B,className:"equation-block__popup",style:{position:"fixed",top:F.top,left:F.left,zIndex:c.EDITOR_UI_MIN_Z_INDEX},children:n.jsxs("div",{className:"equation-block__editor",children:[n.jsx(A.Textarea,{autosize:!0,minRows:2,variant:"unstyled",value:E,onChange:t=>{t.stopPropagation(),R(t.currentTarget.value)},onKeyDown:c.createPopupKeyDownHandler({onConfirm:y,onCancel:k}),placeholder:"x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}",classNames:{wrapper:"equation-block__textarea-wrapper"},autoFocus:!0,ref:L}),n.jsxs(A.Group,{justify:"flex-end",gap:"sm",children:[n.jsx(A.Button,{variant:"subtle",color:"gray",onClick:k,children:_("editor.cancel")}),n.jsx(A.Button,{onClick:y,children:_("editor.link.save")})]})]})}),document.body)]})}exports.default=pe;
@@ -1,8 +0,0 @@
1
- import { C as e, Q as t, N as m, A as r } from "./layers.czDrchz1.js";
2
- import "./layers.GsD0_GxX.js";
3
- export {
4
- e as Commands,
5
- t as subsetToBase64,
6
- m as subsetToBinary,
7
- r as toBase64
8
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./layers.kpBucBt1.js");require("./layers.CLVPhrnI.js");exports.Commands=e.CB;exports.subsetToBase64=e.QB;exports.subsetToBinary=e.NQ;exports.toBase64=e.AI;