@templatical/editor 0.51.1 → 0.52.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 (361) hide show
  1. package/THIRD_PARTY_NOTICES.md +208 -0
  2. package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-Cm11CsKH.js} +7 -8
  3. package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-DE8t8Rud.js} +8 -9
  4. package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-7ftS7d40.js} +18 -20
  5. package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-CxGp6klr.js} +5 -7
  6. package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-DNI-5CUj.js} +21 -22
  7. package/dist/{BlockIssueBadge-CKwZ1Vgn.js → BlockIssueBadge-6Ri2FfX-.js} +6 -7
  8. package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-Df9iz7sK.js} +10 -11
  9. package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-CsgyNNV1.js} +3 -4
  10. package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BDV4XQ_l.js} +8 -9
  11. package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-JQ3vQoqO.js} +4 -5
  12. package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-EeqqWcX6.js} +4 -5
  13. package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-BuftXc0U.js} +3 -5
  14. package/dist/{CommentsSidebar-Ca3DyFOX.js → CommentsSidebar-Co3x4uH0.js} +16 -17
  15. package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-BT3ZTH1F.js} +5 -6
  16. package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-CrL4WKy9.js} +8 -9
  17. package/dist/{IssuesPanel-C8nMUccy.js → IssuesPanel-BHFQ3wrP.js} +12 -13
  18. package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DZA5AoP9.js} +3 -4
  19. package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CSD9cfJB.js} +23 -30
  20. package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-DQl5w44r.js} +7 -10
  21. package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BFWYuJot.js} +3 -5
  22. package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-DE7kWwXx.js} +5 -6
  23. package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DvD0ne7N.js} +7 -8
  24. package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-DVPQkiYY.js} +3 -4
  25. package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-D-nqs82g.js} +55 -58
  26. package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-DqUPsLB9.js} +7 -8
  27. package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-Xq9D0Zs3.js} +9 -10
  28. package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-DAPv70p4.js} +13 -14
  29. package/dist/{SavedBlocksBrowserModal-wnkvxpm_.js → SavedBlocksBrowserModal-SRtN5h9q.js} +17 -18
  30. package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-ChbL9v9x.js} +3 -5
  31. package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-hRaiLNdu.js} +6 -7
  32. package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-D0XcH32O.js} +14 -15
  33. package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-Cb5t0yB2.js} +16 -18
  34. package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-COJQa2A9.js} +3 -5
  35. package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-BYk_9SpQ.js} +14 -15
  36. package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-poGWbduy.js} +2 -3
  37. package/dist/{Toolbar-CZSPZYbj.js → Toolbar-Dku_pZni.js} +134 -142
  38. package/dist/{TplModal-DCzBzicE.js → TplModal-9IndEYk5.js} +6 -7
  39. package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BG5qayvg.js} +12 -13
  40. package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-hPg7Q5-f.js} +3 -5
  41. package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-CSs7zum_.js} +5 -6
  42. package/dist/{WrapperBlock-BO619LAb.js → WrapperBlock-DwjK_IdJ.js} +6 -7
  43. package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  44. package/dist/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +3 -5
  45. package/dist/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +2 -3
  46. package/dist/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +1 -2
  47. package/dist/{blockTypeIcons-NzaYvAI4.js → blockTypeIcons-yt7SLzub.js} +3 -4
  48. package/dist/bundle-stats.json +6 -6
  49. package/dist/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +1 -2
  50. package/dist/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +1 -2
  51. package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js → AiAltTextPopover-DjMoJCgU.js} +7 -8
  52. package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-DjMoJCgU.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BafAtBoA.js} +8 -9
  54. package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BafAtBoA.js.map} +1 -1
  55. package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DXeZgc7D.js} +15 -17
  56. package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DXeZgc7D.js.map} +1 -1
  57. package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-B4uAVRoO.js} +5 -7
  58. package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-B4uAVRoO.js.map} +1 -1
  59. package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-4F6vwhJ5.js} +21 -22
  60. package/dist/cdn/chunks/AiRewriteMenu-4F6vwhJ5.js.map +1 -0
  61. package/dist/cdn/chunks/{BlockIssueBadge-DAn2vsMJ.js → BlockIssueBadge-DIJDqqcY.js} +6 -7
  62. package/dist/cdn/chunks/{BlockIssueBadge-DAn2vsMJ.js.map → BlockIssueBadge-DIJDqqcY.js.map} +1 -1
  63. package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-Ny1X_mee.js} +9 -10
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-Ny1X_mee.js.map} +1 -1
  65. package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-DtMORiLS.js} +4 -5
  66. package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-DtMORiLS.js.map} +1 -1
  67. package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-BkmLc2Fl.js} +7 -8
  68. package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-BkmLc2Fl.js.map} +1 -1
  69. package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Hf8r08Sw.js} +5 -6
  70. package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Hf8r08Sw.js.map} +1 -1
  71. package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-II8eYtKu.js} +6 -7
  72. package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-II8eYtKu.js.map} +1 -1
  73. package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-CAiwilM2.js} +4 -6
  74. package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-CAiwilM2.js.map} +1 -1
  75. package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-Dj8sDiLN.js} +18 -19
  76. package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js.map → CommentsSidebar-Dj8sDiLN.js.map} +1 -1
  77. package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-Dyr5P0IP.js} +6 -7
  78. package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-Dyr5P0IP.js.map} +1 -1
  79. package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-CguFJdqn.js} +9 -10
  80. package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-CguFJdqn.js.map} +1 -1
  81. package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-pr7_nuLI.js} +9 -10
  82. package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-pr7_nuLI.js.map} +1 -1
  83. package/dist/cdn/chunks/LoadingTrack-DfJ_C33G.js +11 -0
  84. package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-DfJ_C33G.js.map} +1 -1
  85. package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-B_ldj3TO.js} +18 -25
  86. package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-B_ldj3TO.js.map} +1 -1
  87. package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-CGfzcHwP.js} +7 -10
  88. package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-CGfzcHwP.js.map} +1 -1
  89. package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-D0BdxdqP.js} +4 -6
  90. package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-D0BdxdqP.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-CFu9VXPS.js} +6 -7
  92. package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-CFu9VXPS.js.map} +1 -1
  93. package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BFpK5dxg.js} +7 -8
  94. package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BFpK5dxg.js.map} +1 -1
  95. package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-Zo0mYWbf.js} +4 -5
  96. package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-Zo0mYWbf.js.map} +1 -1
  97. package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-DsPLVAgm.js} +35 -38
  98. package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js.map → ParagraphEditor-DsPLVAgm.js.map} +1 -1
  99. package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-B866zFP0.js} +9 -10
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-B866zFP0.js.map} +1 -1
  101. package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DaY63kye.js} +9 -10
  102. package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DaY63kye.js.map} +1 -1
  103. package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-B7nftAAS.js} +11 -12
  104. package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-B7nftAAS.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js → SavedBlocksBrowserModal-B9XCjDfm.js} +13 -14
  106. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-B9XCjDfm.js.map} +1 -1
  107. package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C3nK90pz.js} +4 -6
  108. package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C3nK90pz.js.map} +1 -1
  109. package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-B166Mek9.js} +7 -8
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-B166Mek9.js.map} +1 -1
  111. package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-jWpmuWDR.js} +13 -14
  112. package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-jWpmuWDR.js.map} +1 -1
  113. package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-DcwKhFnI.js} +15 -17
  114. package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-DcwKhFnI.js.map} +1 -1
  115. package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-BDBAvAfI.js} +4 -6
  116. package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-BDBAvAfI.js.map} +1 -1
  117. package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-R2lQw6WA.js} +15 -16
  118. package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js.map → TitleEditor-R2lQw6WA.js.map} +1 -1
  119. package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-BDMugNES.js} +3 -4
  120. package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-BDMugNES.js.map} +1 -1
  121. package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CnvfW72e.js} +156 -164
  122. package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CnvfW72e.js.map} +1 -1
  123. package/dist/cdn/chunks/{TplModal-BXQzmsJX.js → TplModal-BDyeS69p.js} +6 -7
  124. package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-BDyeS69p.js.map} +1 -1
  125. package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-CmpgUI4Q.js} +13 -14
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-CmpgUI4Q.js.map} +1 -1
  127. package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-DB_FZyyg.js} +4 -6
  128. package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-DB_FZyyg.js.map} +1 -1
  129. package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-CZ--HOoa.js} +6 -7
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-CZ--HOoa.js.map} +1 -1
  131. package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-D3obNGab.js} +7 -8
  132. package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-D3obNGab.js.map} +1 -1
  133. package/dist/cdn/chunks/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  134. package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +4 -6
  135. package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js.map → aiErrors-C3QEMB0x.js.map} +1 -1
  136. package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +3 -4
  137. package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js.map → aiImageContext-BQ5mQ6B5.js.map} +1 -1
  138. package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +2 -3
  139. package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js.map → aiRewritePreview-DlMyx6Si.js.map} +1 -1
  140. package/dist/cdn/chunks/{blockTypeIcons-ikZAmd6U.js → blockTypeIcons-DFf7AyqI.js} +3 -4
  141. package/dist/cdn/chunks/{blockTypeIcons-ikZAmd6U.js.map → blockTypeIcons-DFf7AyqI.js.map} +1 -1
  142. package/dist/cdn/chunks/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +2 -3
  143. package/dist/cdn/chunks/{ca-C7mTzW1r.js.map → ca-CD-Kt1qz.js.map} +1 -1
  144. package/dist/cdn/chunks/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +2 -3
  145. package/dist/cdn/chunks/{ca-CYQH3J0b.js.map → ca-Cc6eL0ZS.js.map} +1 -1
  146. package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js → createCloudRuntime-D6niZ2Rc.js} +27 -46
  147. package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-D6niZ2Rc.js.map} +1 -1
  148. package/dist/cdn/chunks/{de-DBOTcDj2.js → de-6M4JoHoD.js} +2 -3
  149. package/dist/cdn/chunks/{de-DBOTcDj2.js.map → de-6M4JoHoD.js.map} +1 -1
  150. package/dist/cdn/chunks/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +2 -3
  151. package/dist/cdn/chunks/{de-DNuYQTmS.js.map → de-CeFJ6wbM.js.map} +1 -1
  152. package/dist/cdn/chunks/{de-JvCTMJPy.js → de-DtrXVcuY.js} +2 -3
  153. package/dist/cdn/chunks/{de-JvCTMJPy.js.map → de-DtrXVcuY.js.map} +1 -1
  154. package/dist/cdn/chunks/{dist-Bo8Thh8v.js → dist-C2epoAwW.js} +3 -4
  155. package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-C2epoAwW.js.map} +1 -1
  156. package/dist/cdn/chunks/{dist-S-rLGqax.js → dist-CONcGNwy.js} +4 -5
  157. package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-CONcGNwy.js.map} +1 -1
  158. package/dist/cdn/chunks/dompurify-JVtr5-B1.js +872 -0
  159. package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +1 -0
  160. package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js → draggable-B8hTTYFO.js} +19 -22
  161. package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js.map → draggable-B8hTTYFO.js.map} +1 -1
  162. package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js → editor-modal-cvYkpbHD.js} +66 -81
  163. package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-cvYkpbHD.js.map} +1 -1
  164. package/dist/cdn/chunks/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +2 -3
  165. package/dist/cdn/chunks/{emojiData-6m0DBh7O.js.map → emojiData-CBNuCfum.js.map} +1 -1
  166. package/dist/cdn/chunks/en-CKAXAo3Z.js +1 -0
  167. package/dist/cdn/chunks/{en-CW71OK66.js → en-D14i5nFh.js} +2 -3
  168. package/dist/cdn/chunks/{en-CW71OK66.js.map → en-D14i5nFh.js.map} +1 -1
  169. package/dist/cdn/chunks/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +2 -3
  170. package/dist/cdn/chunks/{en-CDhWRrF_.js.map → en-FzUuJ8HW.js.map} +1 -1
  171. package/dist/cdn/chunks/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +2 -3
  172. package/dist/cdn/chunks/{es-CAv-Vldw.js.map → es-Dw_h7Oll.js.map} +1 -1
  173. package/dist/cdn/chunks/{es-DdK7zQfi.js → es-zDacbMhs.js} +2 -3
  174. package/dist/cdn/chunks/{es-DdK7zQfi.js.map → es-zDacbMhs.js.map} +1 -1
  175. package/dist/cdn/chunks/{extensions-taJTZlLK.js → extensions-ClDhn88e.js} +12 -17
  176. package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-ClDhn88e.js.map} +1 -1
  177. package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +2 -3
  178. package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js.map → formatAbsoluteDateTime-Ck2_zXra.js.map} +1 -1
  179. package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +1 -2
  180. package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js.map → formatRelativeTime-BTD8Ktt-.js.map} +1 -1
  181. package/dist/cdn/chunks/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +2 -3
  182. package/dist/cdn/chunks/{fr-DVPtxpR6.js.map → fr-BJaeKu_8.js.map} +1 -1
  183. package/dist/cdn/chunks/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +2 -3
  184. package/dist/cdn/chunks/{fr-Dz5Bgb7-.js.map → fr-CSgYtjOd.js.map} +1 -1
  185. package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js → htmlparser-hu3YnNQU.js} +6 -11
  186. package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js.map → htmlparser-hu3YnNQU.js.map} +1 -1
  187. package/dist/cdn/chunks/{icons-DNX6StSs.js → icons-HCBP93Ch.js} +50 -55
  188. package/dist/cdn/chunks/{icons-DNX6StSs.js.map → icons-HCBP93Ch.js.map} +1 -1
  189. package/dist/cdn/chunks/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +2 -3
  190. package/dist/cdn/chunks/{ja-Di-zJiT8.js.map → ja-B7H3ID8O.js.map} +1 -1
  191. package/dist/cdn/chunks/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +2 -3
  192. package/dist/cdn/chunks/{ja-dcWzjStz.js.map → ja-Cu2HdYaK.js.map} +1 -1
  193. package/dist/cdn/chunks/{keys-BTpmg2Tt.js → keys-BF9gazbd.js} +3 -4
  194. package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-BF9gazbd.js.map} +1 -1
  195. package/dist/cdn/chunks/{liquid.browser-Bbt17cVz.js → liquid.browser-DkLBNrft.js} +705 -687
  196. package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +1 -0
  197. package/dist/cdn/chunks/{logger-Tj0RPskW.js → logger-CqQTfJGx.js} +2 -3
  198. package/dist/cdn/chunks/{logger-Tj0RPskW.js.map → logger-CqQTfJGx.js.map} +1 -1
  199. package/dist/cdn/chunks/{nl-CvVuHYFL.js → nl-176ySmc5.js} +2 -3
  200. package/dist/cdn/chunks/{nl-CvVuHYFL.js.map → nl-176ySmc5.js.map} +1 -1
  201. package/dist/cdn/chunks/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +2 -3
  202. package/dist/cdn/chunks/{nl-LZNqQgE4.js.map → nl-1Ai2NykB.js.map} +1 -1
  203. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js → normalizeMergeTagMarkup-DpHCSESZ.js} +3 -4
  204. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-DpHCSESZ.js.map} +1 -1
  205. package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-D-dsBq5t.js} +6 -7
  206. package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-D-dsBq5t.js.map} +1 -1
  207. package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +2 -3
  208. package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js.map → pt-BR-Bp92Fc6J.js.map} +1 -1
  209. package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +2 -3
  210. package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js.map → pt-BR-CIbp__Z7.js.map} +1 -1
  211. package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +2 -3
  212. package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js.map → pt-BR-dDlTwX18.js.map} +1 -1
  213. package/dist/cdn/chunks/{pusher-Cs4GGEtd.js → pusher-x9rNqzon.js} +3 -4
  214. package/dist/cdn/chunks/{pusher-Cs4GGEtd.js.map → pusher-x9rNqzon.js.map} +1 -1
  215. package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +2 -3
  216. package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js.map → readableTextColor-BfZUGnVj.js.map} +1 -1
  217. package/dist/cdn/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
  218. package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js +72 -0
  219. package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js.map +1 -0
  220. package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-rJoqO1TJ.js} +167 -191
  221. package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-rJoqO1TJ.js.map} +1 -1
  222. package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-BKpAis_q.js} +502 -537
  223. package/dist/cdn/chunks/src-BKpAis_q.js.map +1 -0
  224. package/dist/cdn/chunks/{src-BNFnxfrA.js → src-C9DTvn1H.js} +207 -171
  225. package/dist/cdn/chunks/src-C9DTvn1H.js.map +1 -0
  226. package/dist/cdn/chunks/src-CUH_EI7k.js +647 -0
  227. package/dist/cdn/chunks/src-CUH_EI7k.js.map +1 -0
  228. package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +2 -3
  229. package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js.map → styleConstants-B8xVRiwX.js.map} +1 -1
  230. package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +2 -3
  231. package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js.map → templateSettingsFields-cjlP-jdw.js.map} +1 -1
  232. package/dist/cdn/chunks/{tiptap-CtVrAViq.js → tiptap-ChSZybTi.js} +3364 -3240
  233. package/dist/cdn/chunks/tiptap-ChSZybTi.js.map +1 -0
  234. package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-RJXyVnIf.js} +4 -5
  235. package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-RJXyVnIf.js.map} +1 -1
  236. package/dist/cdn/chunks/{useEditorCore-CCVFi1YZ.js → useEditorCore-CjaEV_01.js} +534 -586
  237. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +1 -0
  238. package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +9 -0
  239. package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-BT3c9CXj.js.map} +1 -1
  240. package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-11iqzC6m.js} +4 -5
  241. package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-11iqzC6m.js.map} +1 -1
  242. package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js → useLogicTag-vy5KGg5D.js} +5 -6
  243. package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-vy5KGg5D.js.map} +1 -1
  244. package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js → useMergeTag-BFBBjnwh.js} +5 -6
  245. package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-BFBBjnwh.js.map} +1 -1
  246. package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js → usePopoverPosition-AnVIwiVv.js} +7 -11
  247. package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-AnVIwiVv.js.map} +1 -1
  248. package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-C0dawxGr.js} +5 -7
  249. package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-C0dawxGr.js.map} +1 -1
  250. package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-C3CquBQN.js} +3 -4
  251. package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-C3CquBQN.js.map} +1 -1
  252. package/dist/cdn/editor.js +221 -242
  253. package/dist/cdn/editor.js.map +1 -1
  254. package/dist/{check-yYsp5Xpk.js → check-N3x4z_rH.js} +1 -2
  255. package/dist/{chevron-down-DTmD06_j.js → chevron-down-gXu9qNwO.js} +1 -2
  256. package/dist/{chevron-right-BSeYZOxc.js → chevron-right-rL0ayGk5.js} +1 -2
  257. package/dist/{chevron-up-BOApwrxi.js → chevron-up-0ugh8HnW.js} +1 -2
  258. package/dist/{circle-alert-BMszY8im.js → circle-alert-B9Ls75B5.js} +1 -2
  259. package/dist/{clock-HADxnl6-.js → clock-BqHBaCLm.js} +1 -2
  260. package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-B5VIdnwz.js} +11 -17
  261. package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-BV7Gwz_Z.js} +6 -11
  262. package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
  263. package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
  264. package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
  265. package/dist/{dist-DI4_YSnG.js → dist-BA-jTQgw.js} +3 -4
  266. package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
  267. package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
  268. package/dist/{dist-C7EtxNCb.js → dist-CEdyyDn7.js} +2 -3
  269. package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
  270. package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
  271. package/dist/{dist-DtOF3bDW.js → dist-CzrLYq2s.js} +398 -344
  272. package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
  273. package/dist/{dist-C_dV9QAx.js → dist-DDN7yR-w.js} +7 -7
  274. package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
  275. package/dist/dist-DyFArF_G.js +4 -0
  276. package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
  277. package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
  278. package/dist/dist-pA3ooG6N.js +4 -0
  279. package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
  280. package/dist/{editor-modal-Bzhl-PgI.js → editor-modal-Du9VI9q4.js} +203 -218
  281. package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
  282. package/dist/en-CyEE7FPY.js +1 -0
  283. package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
  284. package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
  285. package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
  286. package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
  287. package/dist/{extensions-CdyweA50.js → extensions-FRYhx7qa.js} +59 -68
  288. package/dist/{eye-DWkSvYpj.js → eye-BKj9Tfnc.js} +1 -2
  289. package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
  290. package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
  291. package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
  292. package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
  293. package/dist/{image-DesWjcZ4.js → image-DNdvdTla.js} +1 -2
  294. package/dist/index.d.ts +6 -6
  295. package/dist/{info-ClWJGoZy.js → info-Bx-kBkbH.js} +1 -2
  296. package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
  297. package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
  298. package/dist/{keys-Zd9KWRD1.js → keys-DBjrQkYH.js} +2 -3
  299. package/dist/{link-BqRicFTA.js → link-D8-rYdIQ.js} +1 -2
  300. package/dist/{liquid.browser-Ct2-EezB.js → liquid.browser-D1RxawkY.js} +704 -686
  301. package/dist/{list-bojQr9bn.js → list-BneisA27.js} +1 -2
  302. package/dist/{loader-circle-B2B8LbUu.js → loader-circle-DBEXphyx.js} +1 -2
  303. package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
  304. package/dist/{message-circle-BEuiNsyZ.js → message-circle-Bg4xInCM.js} +1 -2
  305. package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
  306. package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
  307. package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-IH8COHzd.js} +30 -31
  308. package/dist/{package-DCROB4aM.js → package-B40Vkfsp.js} +1 -2
  309. package/dist/{pencil-CEotCKbf.js → pencil-CYdAHTds.js} +1 -2
  310. package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks-AbZArwkR.js} +4 -5
  311. package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
  312. package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
  313. package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
  314. package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
  315. package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-Bb1FWrU0.js} +1 -2
  316. package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
  317. package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-CLGymEyk.js} +7 -8
  318. package/dist/sanitizeHtml-CnOA1efV.js +942 -0
  319. package/dist/{search-Cy99zPYf.js → search-BZEo08gi.js} +1 -2
  320. package/dist/{send-BDLJFsf3.js → send-DHtrnXQs.js} +1 -2
  321. package/dist/{smartphone-CVvQaNA4.js → smartphone-dlN3vpA3.js} +1 -2
  322. package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-B_d52_eS.js} +256 -267
  323. package/dist/{sparkles-Ce0Qz0ox.js → sparkles-NOttoDnJ.js} +1 -2
  324. package/dist/{square-BWlolnXe.js → square-B1CJgdt2.js} +1 -2
  325. package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
  326. package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
  327. package/dist/templatical-editor.js +245 -265
  328. package/dist/{text-align-start-D1V5gPTy.js → text-align-start-zpoXmb-Z.js} +1 -2
  329. package/dist/{trash-CZfiUFmw.js → trash-CGbk4Sgt.js} +1 -2
  330. package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-CKLMyGVp.js} +1 -2
  331. package/dist/{upload-BJfvdIrD.js → upload-DQoackAn.js} +1 -2
  332. package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DcLtxOQZ.js} +3 -4
  333. package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-DG9UvWUm.js} +931 -984
  334. package/dist/useEditorRoot-BKr6nNkC.js +7 -0
  335. package/dist/{useI18n-BdoY7xDE.js → useI18n-CeTm777E.js} +3 -4
  336. package/dist/{useLogicTag-DKLZ1T9H.js → useLogicTag-DFDYJeMN.js} +4 -5
  337. package/dist/{useMergeTag-Bhdx7AKk.js → useMergeTag-B46vACAG.js} +4 -5
  338. package/dist/{usePopoverPosition-BZea45XK.js → usePopoverPosition-C42kD7zt.js} +6 -10
  339. package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-C-NzvjeO.js} +4 -6
  340. package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CrlI8j5R.js} +14 -18
  341. package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-v_a4Oso8.js} +2 -3
  342. package/dist/{x-CZ0Js0hA.js → x-zcrnmcmU.js} +1 -2
  343. package/package.json +24 -22
  344. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
  345. package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
  346. package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
  347. package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
  348. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
  349. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
  350. package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
  351. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
  352. package/dist/cdn/chunks/src-YGkzYyu0.js +0 -649
  353. package/dist/cdn/chunks/src-YGkzYyu0.js.map +0 -1
  354. package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
  355. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
  356. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
  357. package/dist/dist-BPFcLKTw.js +0 -5
  358. package/dist/dist-D7Yj7E-F.js +0 -5
  359. package/dist/en-DwV15ltA.js +0 -1
  360. package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
  361. package/dist/useEditorRoot-DUy67lJu.js +0 -8
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/index.js
1
+ // ../types/dist/index.js
2
2
  var e = [
3
3
  "top",
4
4
  "right",
@@ -82,7 +82,7 @@ function ne(e) {
82
82
  }
83
83
  return t;
84
84
  }
85
- function re(e) {
85
+ function f(e) {
86
86
  let t = typeof e?.url == "string" ? e.url.trim() : "";
87
87
  if (!e || !t) return null;
88
88
  let n = u.includes(e.size) ? e.size : "cover", r = e.position, i = r && d.includes(r.x) ? r.x : "center", a = r && ee.includes(r.y) ? r.y : "center";
@@ -93,24 +93,24 @@ function re(e) {
93
93
  repeat: e.repeat ? "repeat" : "no-repeat"
94
94
  };
95
95
  }
96
- var ie = [
96
+ var re = [
97
97
  "top",
98
98
  "middle",
99
99
  "bottom"
100
100
  ];
101
- function ae(e) {
101
+ function ie(e) {
102
102
  let t = e.hero;
103
103
  if (!t || typeof t != "object") return null;
104
104
  if (e.columns !== "1") return {
105
105
  applied: !1,
106
106
  reason: "columns"
107
107
  };
108
- let n = re(e.backgroundImage);
108
+ let n = f(e.backgroundImage);
109
109
  if (n === null) return {
110
110
  applied: !1,
111
111
  reason: "image"
112
112
  };
113
- let r = se(e.backgroundImage), i = oe(t.height) ? Math.round(t.height) : "image";
113
+ let r = oe(e.backgroundImage), i = ae(t.height) ? Math.round(t.height) : "image";
114
114
  return i === "image" && r === null ? {
115
115
  applied: !1,
116
116
  reason: "size"
@@ -118,18 +118,18 @@ function ae(e) {
118
118
  applied: !0,
119
119
  image: n,
120
120
  height: i,
121
- verticalAlign: ie.includes(t.verticalAlign) ? t.verticalAlign : "middle",
121
+ verticalAlign: re.includes(t.verticalAlign) ? t.verticalAlign : "middle",
122
122
  aspectRatio: r
123
123
  };
124
124
  }
125
- function oe(e) {
125
+ function ae(e) {
126
126
  return typeof e == "number" && Number.isFinite(e) && e >= 1;
127
127
  }
128
- function se(e) {
128
+ function oe(e) {
129
129
  let t = e?.naturalWidth, n = e?.naturalHeight;
130
130
  return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
131
131
  }
132
- var ce = {
132
+ var p = {
133
133
  facebook: {
134
134
  color: "#1877F2",
135
135
  path: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
@@ -198,31 +198,31 @@ var ce = {
198
198
  color: "#1769FF",
199
199
  path: "M22 7h-7V5h7v2zm1.726 10c-.442 1.297-2.029 3-5.101 3-3.074 0-5.564-1.729-5.564-5.675 0-3.91 2.325-5.92 5.466-5.92 3.082 0 4.964 1.782 5.375 4.426.078.506.109 1.188.095 2.14H15.97c.13 3.211 3.483 3.312 4.588 2.029h3.168zm-7.686-4h4.965c-.105-1.547-1.136-2.219-2.477-2.219-1.466 0-2.277.768-2.488 2.219zm-9.574 6.988H0V5.021h6.953c5.476.081 5.58 5.444 2.72 6.906 3.461 1.26 3.577 8.061-3.207 8.061zM3 11h3.584c2.508 0 2.906-3-.312-3H3v3zm3.391 3H3v3.016h3.341c3.055 0 2.868-3.016.05-3.016z"
200
200
  }
201
- }, f = {
201
+ }, m = {
202
202
  dark: "#1f1f1f",
203
203
  light: "#ffffff"
204
204
  };
205
- function le(e) {
205
+ function se(e) {
206
206
  return e === "dark" || e === "light" ? e : void 0;
207
207
  }
208
- function ue(e, t) {
209
- let n = le(t);
208
+ function ce(e, t) {
209
+ let n = se(t);
210
210
  return {
211
- fill: n ? f[n] : ce[e].color,
212
- onFill: n === "light" ? f.dark : "#ffffff"
211
+ fill: n ? m[n] : p[e].color,
212
+ onFill: n === "light" ? m.dark : "#ffffff"
213
213
  };
214
214
  }
215
- function de(e, t) {
216
- if (le(t) === "dark" && (e === "plain" || e === "outlined")) return {
217
- color: f.light,
215
+ function le(e, t) {
216
+ if (se(t) === "dark" && (e === "plain" || e === "outlined")) return {
217
+ color: m.light,
218
218
  opacity: .6,
219
219
  width: 1.4
220
220
  };
221
221
  }
222
- function fe(e) {
222
+ function ue(e) {
223
223
  return e === "plain" ? .84 : .6;
224
224
  }
225
- function p(e) {
225
+ function h(e) {
226
226
  let t = [];
227
227
  return JSON.parse(JSON.stringify(e, function(e, n) {
228
228
  if (typeof n != "object" || !n) return n;
@@ -230,21 +230,21 @@ function p(e) {
230
230
  if (!t.includes(n)) return t.push(n), n;
231
231
  }));
232
232
  }
233
- function pe(e) {
233
+ function de(e) {
234
234
  return typeof e == "object" && !!e && !Array.isArray(e);
235
235
  }
236
- function m(e, t) {
236
+ function g(e, t) {
237
237
  if (e === t) return !0;
238
- if (Array.isArray(e)) return !Array.isArray(t) || e.length !== t.length ? !1 : e.every((e, n) => m(e, t[n]));
239
- if (pe(e)) {
240
- if (!pe(t)) return !1;
238
+ if (Array.isArray(e)) return !Array.isArray(t) || e.length !== t.length ? !1 : e.every((e, n) => g(e, t[n]));
239
+ if (de(e)) {
240
+ if (!de(t)) return !1;
241
241
  let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
242
- for (let r of n) if ((e[r] !== void 0 || t[r] !== void 0) && !m(e[r], t[r])) return !1;
242
+ for (let r of n) if ((e[r] !== void 0 || t[r] !== void 0) && !g(e[r], t[r])) return !1;
243
243
  return !0;
244
244
  }
245
245
  return !1;
246
246
  }
247
- var h = class extends Error {
247
+ var _ = class extends Error {
248
248
  code;
249
249
  opIndex;
250
250
  blockId;
@@ -252,59 +252,59 @@ var h = class extends Error {
252
252
  super(n), this.name = "OperationError", this.code = e, this.opIndex = t, r !== void 0 && (this.blockId = r);
253
253
  }
254
254
  };
255
- function me(e) {
255
+ function fe(e) {
256
256
  return e === "1" ? 1 : e === "3" ? 3 : 2;
257
257
  }
258
- function he(e, t, n = {}) {
259
- let r = p(e);
260
- return g(r, t, n), r;
258
+ function pe(e, t, n = {}) {
259
+ let r = h(e);
260
+ return v(r, t, n), r;
261
261
  }
262
- function g(e, t, n = {}) {
262
+ function v(e, t, n = {}) {
263
263
  let r = {
264
264
  locks: n.locks ?? [],
265
265
  session: n.session ?? null
266
266
  };
267
- t.forEach((t, n) => Ce(e, t, n, r));
267
+ t.forEach((t, n) => Se(e, t, n, r));
268
268
  }
269
- var ge = /* @__PURE__ */ new Set([
269
+ var me = /* @__PURE__ */ new Set([
270
270
  "id",
271
271
  "type",
272
272
  "children"
273
- ]), _e = /* @__PURE__ */ new Set();
274
- function _(e, t, n, r) {
275
- throw new h(e, t, n, r);
273
+ ]), he = /* @__PURE__ */ new Set();
274
+ function y(e, t, n, r) {
275
+ throw new _(e, t, n, r);
276
276
  }
277
- function v(e) {
277
+ function b(e) {
278
278
  return typeof e == "object" && !!e && !Array.isArray(e);
279
279
  }
280
- function y(e) {
280
+ function x(e) {
281
281
  return e.type === "section";
282
282
  }
283
- function ve(e) {
283
+ function ge(e) {
284
284
  return Array.isArray(e.blocks) ? e.blocks : [];
285
285
  }
286
- function ye(e) {
286
+ function _e(e) {
287
287
  let t = e.children;
288
288
  return Array.isArray(t) ? t.map((e) => Array.isArray(e) ? e : []) : [];
289
289
  }
290
- function b(e, t) {
291
- let n = ve(e);
290
+ function S(e, t) {
291
+ let n = ge(e);
292
292
  for (let e = 0; e < n.length; e++) {
293
293
  let r = n[e];
294
- if (!v(r)) continue;
294
+ if (!b(r)) continue;
295
295
  if (r.id === t) return {
296
296
  block: r,
297
297
  list: n,
298
298
  index: e,
299
299
  parent: null
300
300
  };
301
- if (!y(r) || typeof r.id != "string") continue;
301
+ if (!x(r) || typeof r.id != "string") continue;
302
302
  let i = r.children;
303
303
  if (Array.isArray(i)) for (let e = 0; e < i.length; e++) {
304
304
  let n = i[e];
305
305
  if (Array.isArray(n)) for (let i = 0; i < n.length; i++) {
306
306
  let a = n[i];
307
- if (v(a) && a.id === t) return {
307
+ if (b(a) && a.id === t) return {
308
308
  block: a,
309
309
  list: n,
310
310
  index: i,
@@ -318,152 +318,152 @@ function b(e, t) {
318
318
  }
319
319
  return null;
320
320
  }
321
- function x(e) {
321
+ function C(e) {
322
322
  let t = typeof e.id == "string" ? [e.id] : [];
323
- if (y(e)) for (let n of ye(e)) t.push(...be(n));
323
+ if (x(e)) for (let n of _e(e)) t.push(...ve(n));
324
324
  return t;
325
325
  }
326
- function be(e) {
327
- return e.flatMap((e) => v(e) ? x(e) : []);
326
+ function ve(e) {
327
+ return e.flatMap((e) => b(e) ? C(e) : []);
328
328
  }
329
- function S(e, t) {
330
- return typeof e.blockId != "string" || e.blockId === "" ? _("invalid_operation", t, "blockId must be a block id.") : e.blockId;
329
+ function w(e, t) {
330
+ return typeof e.blockId != "string" || e.blockId === "" ? y("invalid_operation", t, "blockId must be a block id.") : e.blockId;
331
331
  }
332
- function xe(e, t) {
332
+ function ye(e, t) {
333
333
  let n = e.parent;
334
- return n === null ? null : v(n) && typeof n.sectionId == "string" && typeof n.column == "number" && Number.isInteger(n.column) ? {
334
+ return n === null ? null : b(n) && typeof n.sectionId == "string" && typeof n.column == "number" && Number.isInteger(n.column) ? {
335
335
  sectionId: n.sectionId,
336
336
  column: n.column
337
- } : _("invalid_operation", t, "parent must be null or { \"sectionId\", \"column\" }.");
337
+ } : y("invalid_operation", t, "parent must be null or { \"sectionId\", \"column\" }.");
338
338
  }
339
- function C(e, t) {
339
+ function be(e, t) {
340
340
  let n = e.after;
341
- return n === null ? null : typeof n == "string" && n !== "" ? n : _("invalid_operation", t, "after must be null or a block id.");
341
+ return n === null ? null : typeof n == "string" && n !== "" ? n : y("invalid_operation", t, "after must be null or a block id.");
342
342
  }
343
- function w(e, t) {
343
+ function T(e, t) {
344
344
  let n = e.expect;
345
- return n == null ? null : v(n) ? n : _("invalid_operation", t, "expect must be an object.");
345
+ return n == null ? null : b(n) ? n : y("invalid_operation", t, "expect must be an object.");
346
346
  }
347
- function T(e, t, n) {
347
+ function E(e, t, n) {
348
348
  let r = e.set ?? null, i = e.unset ?? [];
349
- (r !== null && !v(r) || !Array.isArray(i) || !i.every((e) => typeof e == "string")) && _("invalid_operation", t, "set must be an object and unset a list of keys.");
349
+ (r === null || b(r)) && Array.isArray(i) && i.every((e) => typeof e == "string") || y("invalid_operation", t, "set must be an object and unset a list of keys.");
350
350
  let a = r === null ? {} : r, o = Object.keys(a).filter((e) => a[e] !== void 0);
351
- o.length === 0 && i.length === 0 && _("invalid_operation", t, "Set or unset at least one key.");
352
- for (let e of [...o, ...i]) n.has(e) && _("invalid_operation", t, `"${e}" can't be set or unset.`);
351
+ o.length === 0 && i.length === 0 && y("invalid_operation", t, "Set or unset at least one key.");
352
+ for (let e of [...o, ...i]) n.has(e) && y("invalid_operation", t, `"${e}" can't be set or unset.`);
353
353
  let s = i.find((e) => o.includes(e));
354
- return s !== void 0 && _("invalid_operation", t, `"${s}" is both set and unset.`), {
354
+ return s !== void 0 && y("invalid_operation", t, `"${s}" is both set and unset.`), {
355
355
  set: Object.fromEntries(o.map((e) => [e, a[e]])),
356
356
  unset: i
357
357
  };
358
358
  }
359
- function E(e, t, n) {
360
- if ((!v(e) || typeof e.id != "string" || e.id === "" || typeof e.type != "string") && _("invalid_operation", t, "A block needs a non-empty string id and a string type."), !y(e)) return;
361
- n && _("invalid_operation", t, "Sections can only be placed at the top level.");
359
+ function D(e, t, n) {
360
+ if (b(e) && typeof e.id == "string" && e.id !== "" && typeof e.type == "string" || y("invalid_operation", t, "A block needs a non-empty string id and a string type."), !x(e)) return;
361
+ n && y("invalid_operation", t, "Sections can only be placed at the top level.");
362
362
  let r = e.children;
363
- (!Array.isArray(r) || !r.every((e) => Array.isArray(e))) && _("invalid_operation", t, "A section needs children: a list of columns, each a list of blocks.");
364
- for (let e of r) for (let n of e) E(n, t, !0);
363
+ Array.isArray(r) && r.every((e) => Array.isArray(e)) || y("invalid_operation", t, "A section needs children: a list of columns, each a list of blocks.");
364
+ for (let e of r) for (let n of e) D(n, t, !0);
365
365
  }
366
- function D(e, t) {
366
+ function O(e, t) {
367
367
  return e.session === null || t.sessionId !== e.session;
368
368
  }
369
- function O(e, t, n) {
370
- let r = e.locks.find((n) => t.includes(n.blockId) && D(e, n));
371
- r && _("lock_held", n, `Block "${r.blockId}" is being edited in another session.`, r.blockId);
369
+ function k(e, t, n) {
370
+ let r = e.locks.find((n) => t.includes(n.blockId) && O(e, n));
371
+ r && y("lock_held", n, `Block "${r.blockId}" is being edited in another session.`, r.blockId);
372
372
  }
373
- function k(e, t, n, r) {
374
- for (let [i, a] of Object.entries(t)) a !== void 0 && (m(Object.hasOwn(e, i) && e[i] !== void 0 ? e[i] : null, a) || _("precondition_failed", n, r === void 0 ? `Setting "${i}" has changed since.` : `"${i}" of block "${r}" has changed since.`, r));
373
+ function A(e, t, n, r) {
374
+ for (let [i, a] of Object.entries(t)) a !== void 0 && (g(Object.hasOwn(e, i) && e[i] !== void 0 ? e[i] : null, a) || y("precondition_failed", n, r === void 0 ? `Setting "${i}" has changed since.` : `"${i}" of block "${r}" has changed since.`, r));
375
375
  }
376
- function A(e, t, n) {
376
+ function j(e, t, n) {
377
377
  if (t === null) return Array.isArray(e.blocks) || (e.blocks = []), e.blocks;
378
- let r = b(e, t.sectionId);
379
- if (!r) return _("block_missing", n, `No section with id "${t.sectionId}".`, t.sectionId);
380
- if (!y(r.block)) return _("invalid_operation", n, `Block "${t.sectionId}" isn't a section.`);
378
+ let r = S(e, t.sectionId);
379
+ if (!r) return y("block_missing", n, `No section with id "${t.sectionId}".`, t.sectionId);
380
+ if (!x(r.block)) return y("invalid_operation", n, `Block "${t.sectionId}" isn't a section.`);
381
381
  let i = r.block.children;
382
- return !Array.isArray(i) || t.column < 0 || t.column >= i.length ? _("invalid_operation", n, `Section "${t.sectionId}" has no column ${t.column}.`) : (Array.isArray(i[t.column]) || (i[t.column] = []), i[t.column]);
382
+ return !Array.isArray(i) || t.column < 0 || t.column >= i.length ? y("invalid_operation", n, `Section "${t.sectionId}" has no column ${t.column}.`) : (Array.isArray(i[t.column]) || (i[t.column] = []), i[t.column]);
383
383
  }
384
- function j(e, t, n) {
384
+ function M(e, t, n) {
385
385
  if (t === null) return 0;
386
- let r = e.findIndex((e) => v(e) && e.id === t);
387
- return r === -1 ? _("anchor_missing", n, `No block "${t}" in the target container.`, t) : r + 1;
386
+ let r = e.findIndex((e) => b(e) && e.id === t);
387
+ return r === -1 ? y("anchor_missing", n, `No block "${t}" in the target container.`, t) : r + 1;
388
388
  }
389
- function Se(e, t, n, r) {
390
- let i = me(t), a = Array.isArray(e.children) ? e.children : [];
389
+ function xe(e, t, n, r) {
390
+ let i = fe(t), a = Array.isArray(e.children) ? e.children : [];
391
391
  for (let e = i; e < a.length; e++) {
392
392
  let t = a[e];
393
- Array.isArray(t) && t.length > 0 && _("invalid_operation", n, `Column ${e} of section "${r}" still holds blocks, so the layout can't drop it.`);
393
+ Array.isArray(t) && t.length > 0 && y("invalid_operation", n, `Column ${e} of section "${r}" still holds blocks, so the layout can't drop it.`);
394
394
  }
395
395
  let o = a.slice(0, i);
396
396
  for (; o.length < i;) o.push([]);
397
397
  e.children = o;
398
398
  }
399
- function M(e, t, n) {
399
+ function N(e, t, n) {
400
400
  for (let [n, r] of Object.entries(t)) n === "__proto__" ? Object.defineProperty(e, n, {
401
- value: p(r),
401
+ value: h(r),
402
402
  writable: !0,
403
403
  enumerable: !0,
404
404
  configurable: !0
405
- }) : e[n] = p(r);
405
+ }) : e[n] = h(r);
406
406
  for (let t of n) delete e[t];
407
407
  }
408
- function Ce(e, t, n, r) {
408
+ function Se(e, t, n, r) {
409
409
  let i = t;
410
- switch ((!v(i) || typeof i.op != "string") && _("invalid_operation", n, "Each operation must be an object with an \"op\"."), i.op) {
411
- case "addBlock": return we(e, i, n);
412
- case "moveBlock": return Te(e, i, n, r);
413
- case "deleteBlock": return Ee(e, i, n, r);
414
- case "updateBlock": return De(e, i, n, r);
415
- case "updateSettings": return Oe(e, i, n);
416
- case "setContent": return ke(e, i, n, r);
417
- default: _("invalid_operation", n, `Unknown operation "${i.op}".`);
410
+ switch (b(i) && typeof i.op == "string" || y("invalid_operation", n, "Each operation must be an object with an \"op\"."), i.op) {
411
+ case "addBlock": return Ce(e, i, n);
412
+ case "moveBlock": return we(e, i, n, r);
413
+ case "deleteBlock": return Te(e, i, n, r);
414
+ case "updateBlock": return Ee(e, i, n, r);
415
+ case "updateSettings": return De(e, i, n);
416
+ case "setContent": return Oe(e, i, n, r);
417
+ default: y("invalid_operation", n, `Unknown operation "${i.op}".`);
418
418
  }
419
419
  }
420
- function we(e, t, n) {
421
- let r = xe(t, n), i = C(t, n), a = t.block;
422
- E(a, n, r !== null);
423
- let o = new Set(be(ve(e))), s = /* @__PURE__ */ new Set();
424
- for (let e of x(a)) (o.has(e) || s.has(e)) && _("block_exists", n, `A block with id "${e}" already exists.`, e), s.add(e);
425
- let c = A(e, r, n);
426
- c.splice(j(c, i, n), 0, p(a));
420
+ function Ce(e, t, n) {
421
+ let r = ye(t, n), i = be(t, n), a = t.block;
422
+ D(a, n, r !== null);
423
+ let o = new Set(ve(ge(e))), s = /* @__PURE__ */ new Set();
424
+ for (let e of C(a)) (o.has(e) || s.has(e)) && y("block_exists", n, `A block with id "${e}" already exists.`, e), s.add(e);
425
+ let c = j(e, r, n);
426
+ c.splice(M(c, i, n), 0, h(a));
427
+ }
428
+ function we(e, t, n, r) {
429
+ let i = w(t, n), a = ye(t, n), o = be(t, n), s = T(t, n), c = S(e, i);
430
+ if (!c) return y("block_missing", n, `No block with id "${i}".`, i);
431
+ if (k(r, C(c.block), n), s) {
432
+ let e = c.index > 0 ? c.list[c.index - 1] : null, t = b(e) ? e.id ?? null : null;
433
+ g(c.parent, s.parent ?? null) && g(t, s.after ?? null) || y("precondition_failed", n, `Block "${i}" has moved since.`, i);
434
+ }
435
+ x(c.block) && a !== null && y("invalid_operation", n, "Sections can only be placed at the top level."), o === i && y("invalid_operation", n, "A block can't be placed after itself.");
436
+ let l = j(e, a, n);
437
+ c.list.splice(c.index, 1), l.splice(M(l, o, n), 0, c.block);
427
438
  }
428
439
  function Te(e, t, n, r) {
429
- let i = S(t, n), a = xe(t, n), o = C(t, n), s = w(t, n), c = b(e, i);
430
- if (!c) return _("block_missing", n, `No block with id "${i}".`, i);
431
- if (O(r, x(c.block), n), s) {
432
- let e = c.index > 0 ? c.list[c.index - 1] : null, t = v(e) ? e.id ?? null : null;
433
- (!m(c.parent, s.parent ?? null) || !m(t, s.after ?? null)) && _("precondition_failed", n, `Block "${i}" has moved since.`, i);
434
- }
435
- y(c.block) && a !== null && _("invalid_operation", n, "Sections can only be placed at the top level."), o === i && _("invalid_operation", n, "A block can't be placed after itself.");
436
- let l = A(e, a, n);
437
- c.list.splice(c.index, 1), l.splice(j(l, o, n), 0, c.block);
440
+ let i = w(t, n), a = T(t, n), o = S(e, i);
441
+ if (!o) return y("block_missing", n, `No block with id "${i}".`, i);
442
+ k(r, C(o.block), n), a && !g(o.block, a.block ?? null) && y("precondition_failed", n, `Block "${i}" has changed since.`, i), o.list.splice(o.index, 1);
438
443
  }
439
444
  function Ee(e, t, n, r) {
440
- let i = S(t, n), a = w(t, n), o = b(e, i);
441
- if (!o) return _("block_missing", n, `No block with id "${i}".`, i);
442
- O(r, x(o.block), n), a && !m(o.block, a.block ?? null) && _("precondition_failed", n, `Block "${i}" has changed since.`, i), o.list.splice(o.index, 1);
443
- }
444
- function De(e, t, n, r) {
445
- let i = S(t, n), { set: a, unset: o } = T(t, n, ge), s = w(t, n), c = b(e, i);
446
- if (!c) return _("block_missing", n, `No block with id "${i}".`, i);
447
- let l = c.block, u = y(l);
448
- u && o.includes("columns") && _("invalid_operation", n, "A section's columns can't be unset; set another layout instead."), O(r, [i], n), s && k(l, s, n, i), u && Object.hasOwn(a, "columns") && Se(l, a.columns, n, i), M(l, a, o);
449
- }
450
- function Oe(e, t, n) {
451
- let { set: r, unset: i } = T(t, n, _e), a = w(t, n);
452
- v(e.settings) || (e.settings = {});
445
+ let i = w(t, n), { set: a, unset: o } = E(t, n, me), s = T(t, n), c = S(e, i);
446
+ if (!c) return y("block_missing", n, `No block with id "${i}".`, i);
447
+ let l = c.block, u = x(l);
448
+ u && o.includes("columns") && y("invalid_operation", n, "A section's columns can't be unset; set another layout instead."), k(r, [i], n), s && A(l, s, n, i), u && Object.hasOwn(a, "columns") && xe(l, a.columns, n, i), N(l, a, o);
449
+ }
450
+ function De(e, t, n) {
451
+ let { set: r, unset: i } = E(t, n, he), a = T(t, n);
452
+ b(e.settings) || (e.settings = {});
453
453
  let o = e.settings;
454
- a && k(o, a, n), M(o, r, i);
454
+ a && A(o, a, n), N(o, r, i);
455
455
  }
456
- function ke(e, t, n, r) {
456
+ function Oe(e, t, n, r) {
457
457
  let i = t.content;
458
- if (!v(i) || !Array.isArray(i.blocks) || !v(i.settings)) return _("invalid_operation", n, "setContent needs content with a blocks array and a settings object.");
459
- let a = r.locks.find((e) => D(r, e));
460
- a && _("locked_by_others", n, "Other sessions hold locks on this template.", a.blockId), e.blocks = p(i.blocks), e.settings = p(i.settings);
458
+ if (!b(i) || !Array.isArray(i.blocks) || !b(i.settings)) return y("invalid_operation", n, "setContent needs content with a blocks array and a settings object.");
459
+ let a = r.locks.find((e) => O(r, e));
460
+ a && y("locked_by_others", n, "Other sessions hold locks on this template.", a.blockId), e.blocks = h(i.blocks), e.settings = h(i.settings);
461
461
  }
462
- function Ae(e) {
462
+ function ke(e) {
463
463
  let t = e.children;
464
464
  return e.type === "section" && Array.isArray(t) ? t : [];
465
465
  }
466
- function N(e, t, n = null) {
466
+ function P(e, t, n = null) {
467
467
  for (let r = 0; r < e.length; r++) {
468
468
  let i = e[r];
469
469
  if (i.id === t) return {
@@ -471,10 +471,10 @@ function N(e, t, n = null) {
471
471
  parent: n,
472
472
  after: r > 0 ? e[r - 1].id : null
473
473
  };
474
- let a = Ae(i);
474
+ let a = ke(i);
475
475
  for (let e = 0; e < a.length; e++) {
476
476
  if (!Array.isArray(a[e])) continue;
477
- let n = N(a[e], t, {
477
+ let n = P(a[e], t, {
478
478
  sectionId: i.id,
479
479
  column: e
480
480
  });
@@ -483,18 +483,18 @@ function N(e, t, n = null) {
483
483
  }
484
484
  return null;
485
485
  }
486
- function P(e, t, n) {
487
- let r = N(e.blocks, t);
488
- if (!r) throw new h("block_missing", n, `No block with id "${t}".`, t);
486
+ function F(e, t, n) {
487
+ let r = P(e.blocks, t);
488
+ if (!r) throw new _("block_missing", n, `No block with id "${t}".`, t);
489
489
  return r;
490
490
  }
491
- function F(e, t, n) {
491
+ function Ae(e, t, n) {
492
492
  let r = {}, i = [], a = {}, o = [.../* @__PURE__ */ new Set([...Object.keys(t ?? {}), ...n ?? []])];
493
493
  for (let n of o) {
494
494
  let o = e[n];
495
- o === void 0 ? i.push(n) : r[n] = p(o);
495
+ o === void 0 ? i.push(n) : r[n] = h(o);
496
496
  let s = t && n in t ? t[n] : void 0;
497
- a[n] = s === void 0 ? null : p(s);
497
+ a[n] = s === void 0 ? null : h(s);
498
498
  }
499
499
  return {
500
500
  set: r,
@@ -507,19 +507,19 @@ function je(e, t, n) {
507
507
  case "addBlock": return {
508
508
  op: "deleteBlock",
509
509
  blockId: t.block.id,
510
- expect: { block: p(t.block) }
510
+ expect: { block: h(t.block) }
511
511
  };
512
512
  case "deleteBlock": {
513
- let r = P(e, t.blockId, n);
513
+ let r = F(e, t.blockId, n);
514
514
  return {
515
515
  op: "addBlock",
516
- block: p(r.block),
516
+ block: h(r.block),
517
517
  parent: r.parent,
518
518
  after: r.after
519
519
  };
520
520
  }
521
521
  case "moveBlock": {
522
- let r = P(e, t.blockId, n);
522
+ let r = F(e, t.blockId, n);
523
523
  return {
524
524
  op: "moveBlock",
525
525
  blockId: t.blockId,
@@ -532,7 +532,7 @@ function je(e, t, n) {
532
532
  };
533
533
  }
534
534
  case "updateBlock": {
535
- let r = P(e, t.blockId, n).block, { set: i, unset: a, expect: o } = F(r, t.set, t.unset);
535
+ let r = F(e, t.blockId, n).block, { set: i, unset: a, expect: o } = Ae(r, t.set, t.unset);
536
536
  return {
537
537
  op: "updateBlock",
538
538
  blockId: t.blockId,
@@ -542,7 +542,7 @@ function je(e, t, n) {
542
542
  };
543
543
  }
544
544
  case "updateSettings": {
545
- let { set: n, unset: r, expect: i } = F(e.settings, t.set, t.unset);
545
+ let { set: n, unset: r, expect: i } = Ae(e.settings, t.set, t.unset);
546
546
  return {
547
547
  op: "updateSettings",
548
548
  ...Object.keys(n).length > 0 ? { set: n } : {},
@@ -553,20 +553,20 @@ function je(e, t, n) {
553
553
  case "setContent": return {
554
554
  op: "setContent",
555
555
  content: {
556
- blocks: p(e.blocks),
557
- settings: p(e.settings)
556
+ blocks: h(e.blocks),
557
+ settings: h(e.settings)
558
558
  }
559
559
  };
560
560
  }
561
561
  }
562
562
  function Me(e, t) {
563
- let n = p(e), r = [];
563
+ let n = h(e), r = [];
564
564
  return t.forEach((e, t) => {
565
565
  r.push(je(n, e, t));
566
566
  try {
567
- g(n, [e]);
567
+ v(n, [e]);
568
568
  } catch (e) {
569
- throw e instanceof h ? new h(e.code, t, e.message, e.blockId) : e;
569
+ throw e instanceof _ ? new _(e.code, t, e.message, e.blockId) : e;
570
570
  }
571
571
  }), r.reverse();
572
572
  }
@@ -661,7 +661,7 @@ var Le = {
661
661
  cellPadding: 8,
662
662
  fontSize: 15,
663
663
  textAlign: "left"
664
- }, z = {
664
+ }, Ye = {
665
665
  targetDate: "",
666
666
  timezone: "UTC",
667
667
  showDays: !0,
@@ -681,7 +681,7 @@ var Le = {
681
681
  expiredMessage: "This offer has expired",
682
682
  expiredImageUrl: "",
683
683
  hideOnExpiry: !1
684
- }, Ye = {
684
+ }, Xe = {
685
685
  title: Le,
686
686
  paragraph: Re,
687
687
  image: ze,
@@ -694,8 +694,8 @@ var Le = {
694
694
  html: Ke,
695
695
  menu: qe,
696
696
  table: Je,
697
- countdown: z
698
- }, Xe = {
697
+ countdown: Ye
698
+ }, Ze = {
699
699
  width: 600,
700
700
  backgroundColor: "#ffffff",
701
701
  textColor: "#1a1a1a",
@@ -703,28 +703,28 @@ var Le = {
703
703
  fontFamily: "Arial",
704
704
  locale: "en"
705
705
  };
706
- function Ze(e) {
706
+ function Qe(e) {
707
707
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
708
708
  }
709
- function B(e, t) {
709
+ function z(e, t) {
710
710
  let n = { ...e };
711
711
  for (let r of Object.keys(t)) {
712
712
  let i = e[r], a = t[r];
713
- a !== void 0 && (n[r] = Ze(i) && Ze(a) ? B(i, a) : a);
713
+ a !== void 0 && (n[r] = Qe(i) && Qe(a) ? z(i, a) : a);
714
714
  }
715
715
  return n;
716
716
  }
717
- function Qe(e = "Arial", t) {
717
+ function $e(e = "Arial", t) {
718
718
  return {
719
719
  blocks: [],
720
720
  settings: {
721
- ...Xe,
721
+ ...Ze,
722
722
  fontFamily: e,
723
723
  ...t
724
724
  }
725
725
  };
726
726
  }
727
- var $e = [
727
+ var et = [
728
728
  "ar",
729
729
  "he",
730
730
  "iw",
@@ -738,24 +738,51 @@ var $e = [
738
738
  "ckb",
739
739
  "ks"
740
740
  ];
741
- function et(e) {
742
- let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
743
- return !!t && $e.includes(t);
744
- }
745
741
  function tt(e) {
746
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : et(e.locale) ? "rtl" : "ltr";
742
+ let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
743
+ return !!t && et.includes(t);
744
+ }
745
+ function nt(e) {
746
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : tt(e.locale) ? "rtl" : "ltr";
747
+ }
748
+ function rt(e) {
749
+ let { CycleTag: t, Liquid: n, Tag: r, Value: i, toValue: a } = e, o = new n({
750
+ strictVariables: !1,
751
+ strictFilters: !1,
752
+ outputEscape: "escape",
753
+ templates: {}
754
+ }), s = new i("'' | escape", o).filters[0];
755
+ class c extends r {
756
+ value;
757
+ constructor(e, t, n) {
758
+ super(e, t, n), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new i(this.tokenizer.readFilteredValue(), n), this.value.filters.at(-1)?.raw || this.value.filters.push(s));
759
+ }
760
+ *render(e, t) {
761
+ this.value && t.write(a(yield this.value.value(e, !1)));
762
+ }
763
+ *arguments() {
764
+ this.value && (yield this.value);
765
+ }
766
+ }
767
+ class l extends t {
768
+ *render(e, t) {
769
+ let n = yield* super.render(e, t);
770
+ return n && a(yield s.render(n, e));
771
+ }
772
+ }
773
+ return o.registerTag("echo", c), o.registerTag("cycle", l), o;
747
774
  }
748
- function V(e, t) {
749
- let n = p(e);
750
- return !t || Object.keys(t).length === 0 ? n : B(n, t);
775
+ function B(e, t) {
776
+ let n = h(e);
777
+ return !t || Object.keys(t).length === 0 ? n : z(n, t);
751
778
  }
752
- function H(e) {
753
- return e === void 0 ? void 0 : p(e);
779
+ function V(e) {
780
+ return e === void 0 ? void 0 : h(e);
754
781
  }
755
- function U() {
782
+ function H() {
756
783
  return crypto.randomUUID();
757
784
  }
758
- function nt(e = 0) {
785
+ function it(e = 0) {
759
786
  return {
760
787
  top: e,
761
788
  right: e,
@@ -763,135 +790,135 @@ function nt(e = 0) {
763
790
  left: e
764
791
  };
765
792
  }
766
- function W(e = 10) {
767
- return { padding: nt(e) };
793
+ function U(e = 10) {
794
+ return { padding: it(e) };
768
795
  }
769
- function rt(e = {}) {
770
- return V({
771
- id: U(),
796
+ function at(e = {}) {
797
+ return B({
798
+ id: H(),
772
799
  type: "title",
773
800
  ...Le,
774
- styles: W()
801
+ styles: U()
775
802
  }, e);
776
803
  }
777
- function it(e = {}) {
778
- return V({
779
- id: U(),
804
+ function ot(e = {}) {
805
+ return B({
806
+ id: H(),
780
807
  type: "paragraph",
781
808
  ...Re,
782
- styles: W()
809
+ styles: U()
783
810
  }, e);
784
811
  }
785
- function at(e = {}) {
786
- return V({
787
- id: U(),
812
+ function st(e = {}) {
813
+ return B({
814
+ id: H(),
788
815
  type: "image",
789
816
  ...ze,
790
- styles: W()
817
+ styles: U()
791
818
  }, e);
792
819
  }
793
- function ot(e = {}) {
794
- return V({
795
- id: U(),
820
+ function ct(e = {}) {
821
+ return B({
822
+ id: H(),
796
823
  type: "button",
797
824
  ...Be,
798
- styles: W()
825
+ styles: U()
799
826
  }, e);
800
827
  }
801
- function st(e = {}) {
802
- return V({
803
- id: U(),
828
+ function lt(e = {}) {
829
+ return B({
830
+ id: H(),
804
831
  type: "divider",
805
832
  ...Ve,
806
- styles: W(20)
833
+ styles: U(20)
807
834
  }, e);
808
835
  }
809
- function ct(e = {}) {
810
- return V({
811
- id: U(),
836
+ function W(e = {}) {
837
+ return B({
838
+ id: H(),
812
839
  type: "section",
813
840
  ...He,
814
841
  children: [[]],
815
- styles: W(20)
842
+ styles: U(20)
816
843
  }, e);
817
844
  }
818
- function lt(e = {}) {
819
- return V({
820
- id: U(),
845
+ function ut(e = {}) {
846
+ return B({
847
+ id: H(),
821
848
  type: "video",
822
849
  ...Ue,
823
- styles: W()
850
+ styles: U()
824
851
  }, e);
825
852
  }
826
- function ut(e = {}) {
827
- return V({
828
- id: U(),
853
+ function dt(e = {}) {
854
+ return B({
855
+ id: H(),
829
856
  type: "social",
830
857
  icons: [],
831
858
  ...We,
832
- styles: W()
859
+ styles: U()
833
860
  }, e);
834
861
  }
835
- function dt(e = {}) {
836
- return V({
837
- id: U(),
862
+ function ft(e = {}) {
863
+ return B({
864
+ id: H(),
838
865
  type: "spacer",
839
866
  ...Ge,
840
- styles: W(0)
867
+ styles: U(0)
841
868
  }, e);
842
869
  }
843
- function ft(e = {}) {
844
- return V({
845
- id: U(),
870
+ function pt(e = {}) {
871
+ return B({
872
+ id: H(),
846
873
  type: "html",
847
874
  ...Ke,
848
- styles: W()
875
+ styles: U()
849
876
  }, e);
850
877
  }
851
- function pt(e = {}) {
852
- return V({
853
- id: U(),
878
+ function mt(e = {}) {
879
+ return B({
880
+ id: H(),
854
881
  type: "menu",
855
882
  items: [],
856
883
  ...qe,
857
- styles: W()
884
+ styles: U()
858
885
  }, e);
859
886
  }
860
- function mt(e, t) {
887
+ function ht(e, t) {
861
888
  return Array.from({ length: t }, () => ({
862
- id: U(),
889
+ id: H(),
863
890
  cells: Array.from({ length: e }, () => ({
864
- id: U(),
891
+ id: H(),
865
892
  content: ""
866
893
  }))
867
894
  }));
868
895
  }
869
- function ht(e = {}) {
870
- return V({
871
- id: U(),
896
+ function gt(e = {}) {
897
+ return B({
898
+ id: H(),
872
899
  type: "table",
873
- rows: mt(3, 3),
900
+ rows: ht(3, 3),
874
901
  ...Je,
875
- styles: W()
902
+ styles: U()
876
903
  }, e);
877
904
  }
878
- function gt(e = {}) {
879
- return V({
880
- id: U(),
905
+ function _t(e = {}) {
906
+ return B({
907
+ id: H(),
881
908
  type: "countdown",
882
- ...z,
883
- styles: W()
909
+ ...Ye,
910
+ styles: U()
884
911
  }, e);
885
912
  }
886
- function _t(e) {
913
+ function vt(e) {
887
914
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
888
915
  }
889
- function vt(e) {
916
+ function yt(e) {
890
917
  let t = {};
891
- for (let n of e.fields) t[n.key] = H(_t(n));
892
- let n = V(W(), H(e.defaultStyles));
918
+ for (let n of e.fields) t[n.key] = V(vt(n));
919
+ let n = B(U(), V(e.defaultStyles));
893
920
  return {
894
- id: U(),
921
+ id: H(),
895
922
  type: "custom",
896
923
  customType: e.type,
897
924
  fieldValues: t,
@@ -899,36 +926,36 @@ function vt(e) {
899
926
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
900
927
  };
901
928
  }
902
- function yt() {
929
+ function bt() {
903
930
  return {
904
- id: U(),
931
+ id: H(),
905
932
  type: "slot",
906
- styles: W(0)
933
+ styles: U(0)
907
934
  };
908
935
  }
909
- function bt(e = {}) {
910
- return V({
911
- id: U(),
936
+ function xt(e = {}) {
937
+ return B({
938
+ id: H(),
912
939
  type: "wrapper",
913
940
  children: [],
914
- styles: W(0)
941
+ styles: U(0)
915
942
  }, e);
916
943
  }
917
- function xt(e, t) {
944
+ function St(e, t) {
918
945
  switch (e) {
919
- case "section": return ct(H(t?.section));
920
- case "title": return rt(H(t?.title));
921
- case "paragraph": return it(H(t?.paragraph));
922
- case "image": return at(H(t?.image));
923
- case "button": return ot(H(t?.button));
924
- case "divider": return st(H(t?.divider));
925
- case "video": return lt(H(t?.video));
926
- case "social": return ut(H(t?.social));
927
- case "spacer": return dt(H(t?.spacer));
928
- case "html": return ft(H(t?.html));
929
- case "menu": return pt(H(t?.menu));
930
- case "table": return ht(H(t?.table));
931
- case "countdown": return gt(H(t?.countdown));
946
+ case "section": return W(V(t?.section));
947
+ case "title": return at(V(t?.title));
948
+ case "paragraph": return ot(V(t?.paragraph));
949
+ case "image": return st(V(t?.image));
950
+ case "button": return ct(V(t?.button));
951
+ case "divider": return lt(V(t?.divider));
952
+ case "video": return ut(V(t?.video));
953
+ case "social": return dt(V(t?.social));
954
+ case "spacer": return ft(V(t?.spacer));
955
+ case "html": return pt(V(t?.html));
956
+ case "menu": return mt(V(t?.menu));
957
+ case "table": return gt(V(t?.table));
958
+ case "countdown": return _t(V(t?.countdown));
932
959
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
933
960
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
934
961
  default: throw Error(`Unknown block type: ${e}`);
@@ -936,57 +963,57 @@ function xt(e, t) {
936
963
  }
937
964
  function G(e) {
938
965
  let t = JSON.parse(JSON.stringify(e));
939
- if (t.id = U(), t.type === "table") for (let e of t.rows) {
940
- e.id = U();
941
- for (let t of e.cells) t.id = U();
966
+ if (t.id = H(), t.type === "table") for (let e of t.rows) {
967
+ e.id = H();
968
+ for (let t of e.cells) t.id = H();
942
969
  }
943
- if (t.type === "menu") for (let e of t.items) e.id = U();
944
- if (t.type === "social") for (let e of t.icons) e.id = U();
970
+ if (t.type === "menu") for (let e of t.items) e.id = H();
971
+ if (t.type === "social") for (let e of t.icons) e.id = H();
945
972
  return t.type === "section" && (t.children = t.children.map((e) => e.map((e) => G(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => G(e))), t;
946
973
  }
947
- var St = "[Templatical] layout: must contain exactly one slot block", Ct = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", wt = "[Templatical] layout: a wrapper cannot contain a wrapper", Tt = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Et = "[Templatical] slot is not a valid content block", Dt = "[Templatical] wrapper is not a valid content block";
974
+ var Ct = "[Templatical] layout: must contain exactly one slot block", wt = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Tt = "[Templatical] layout: a wrapper cannot contain a wrapper", Et = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Dt = "[Templatical] slot is not a valid content block", Ot = "[Templatical] wrapper is not a valid content block";
948
975
  function K(e, t, n = null, r = !1) {
949
976
  for (let i of e) if (t(i, n, r), I(i)) for (let e of i.children) K(e, t, i, !0);
950
977
  else R(i) && K(i.children, t, i, r);
951
978
  }
952
- function Ot(e) {
979
+ function kt(e) {
953
980
  let t = 0;
954
981
  if (K(e.blocks, (e, n, r) => {
955
- if (L(e) && (t += 1, r)) throw Error(Ct);
982
+ if (L(e) && (t += 1, r)) throw Error(wt);
956
983
  if (R(e)) {
957
- if (r) throw Error(Ct);
958
- if (e.children.some(R)) throw Error(wt);
984
+ if (r) throw Error(wt);
985
+ if (e.children.some(R)) throw Error(Tt);
959
986
  }
960
- }), t !== 1) throw Error(St);
987
+ }), t !== 1) throw Error(Ct);
961
988
  }
962
- function kt(e) {
989
+ function At(e) {
963
990
  K(e.blocks, (e) => {
964
- if (L(e)) throw Error(Et);
991
+ if (L(e)) throw Error(Dt);
965
992
  });
966
993
  }
967
- function At(e) {
994
+ function jt(e) {
968
995
  K(e.blocks, (e) => {
969
- if (R(e)) throw Error(Dt);
996
+ if (R(e)) throw Error(Ot);
970
997
  });
971
998
  }
972
- function jt(e) {
999
+ function Mt(e) {
973
1000
  let t = !1;
974
1001
  return K(e.blocks, (e, n) => {
975
1002
  L(e) && n !== null && R(n) && (t = !0);
976
1003
  }), t;
977
1004
  }
978
- function Mt(e) {
1005
+ function Nt(e) {
979
1006
  if (L(e)) return e;
980
1007
  if (R(e)) {
981
1008
  let t = G({
982
1009
  ...e,
983
1010
  children: []
984
1011
  });
985
- return t.children = e.children.map(Mt), t;
1012
+ return t.children = e.children.map(Nt), t;
986
1013
  }
987
1014
  return G(e);
988
1015
  }
989
- function Nt(e) {
1016
+ function Pt(e) {
990
1017
  for (let t = 0; t < e.length; t++) {
991
1018
  let n = e[t];
992
1019
  if (L(n)) return {
@@ -994,49 +1021,77 @@ function Nt(e) {
994
1021
  index: t
995
1022
  };
996
1023
  if (R(n)) {
997
- let e = Nt(n.children);
1024
+ let e = Pt(n.children);
998
1025
  if (e) return e;
999
1026
  }
1000
1027
  }
1001
1028
  return null;
1002
1029
  }
1003
- function Pt(e) {
1030
+ function Ft(e) {
1004
1031
  for (let t of e) if (I(t)) {
1005
1032
  if (t.wrapper) return !0;
1006
- for (let e of t.children) if (Pt(e)) return !0;
1033
+ for (let e of t.children) if (Ft(e)) return !0;
1007
1034
  }
1008
1035
  return !1;
1009
1036
  }
1010
- function Ft(e, t) {
1011
- if (Ot(e), kt(t), At(t), jt(e) && Pt(t.blocks)) throw Error(Tt);
1012
- let n = e.blocks.map(Mt), r = Nt(n);
1013
- if (!r) throw Error(St);
1014
- return r.parent.splice(r.index, 1, ...p(t.blocks)), {
1037
+ function It(e, t) {
1038
+ if (kt(e), At(t), jt(t), Mt(e) && Ft(t.blocks)) throw Error(Et);
1039
+ let n = e.blocks.map(Nt), r = Pt(n);
1040
+ if (!r) throw Error(Ct);
1041
+ return r.parent.splice(r.index, 1, ...h(t.blocks)), {
1015
1042
  blocks: n,
1016
1043
  settings: {
1017
- ...p(t.settings),
1044
+ ...h(t.settings),
1018
1045
  backgroundColor: e.settings.backgroundColor
1019
1046
  }
1020
1047
  };
1021
1048
  }
1022
- var It = /* @__PURE__ */ new Set(["\"", "'"]);
1023
- function Lt(e, t) {
1049
+ var Lt = Object.freeze([
1050
+ "http",
1051
+ "https",
1052
+ "mailto",
1053
+ "tel",
1054
+ "ftp",
1055
+ "ftps",
1056
+ "sms",
1057
+ "xmpp",
1058
+ "cid"
1059
+ ]);
1060
+ Object.freeze([
1061
+ "javascript",
1062
+ "data",
1063
+ "vbscript"
1064
+ ]);
1065
+ function Rt(e) {
1066
+ return e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
1067
+ }
1068
+ function zt(e) {
1069
+ let t = /^([a-z][a-z0-9+.-]*):/i.exec(Rt(e));
1070
+ return t ? t[1].toLowerCase() : null;
1071
+ }
1072
+ var Bt = /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i;
1073
+ function Vt(e, t) {
1074
+ let n = Rt(e), r = zt(n);
1075
+ return r === null || Lt.some((e) => e === r) ? !0 : t.toLowerCase() === "src" && Bt.test(n);
1076
+ }
1077
+ var Ht = /* @__PURE__ */ new Set(["\"", "'"]);
1078
+ function Ut(e, t) {
1024
1079
  let n = null;
1025
1080
  for (let r = t; r < e.length; r++) {
1026
1081
  let t = e[r];
1027
1082
  if (n !== null) t === n && (n = null);
1028
- else if (It.has(t)) n = t;
1083
+ else if (Ht.has(t)) n = t;
1029
1084
  else if (t === ">") return r;
1030
1085
  }
1031
1086
  return -1;
1032
1087
  }
1033
- function Rt(e) {
1088
+ function Wt(e) {
1034
1089
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
1035
1090
  }
1036
1091
  function q(e) {
1037
1092
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
1038
1093
  }
1039
- var zt = {
1094
+ var Gt = {
1040
1095
  amp: "&",
1041
1096
  lt: "<",
1042
1097
  gt: ">",
@@ -1044,22 +1099,22 @@ var zt = {
1044
1099
  apos: "'",
1045
1100
  nbsp: "\xA0"
1046
1101
  };
1047
- function Bt(e) {
1102
+ function Kt(e) {
1048
1103
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
1049
1104
  if (t[0] === "#") {
1050
1105
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
1051
1106
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
1052
1107
  }
1053
- return zt[t.toLowerCase()] ?? e;
1108
+ return Gt[t.toLowerCase()] ?? e;
1054
1109
  }) : e;
1055
1110
  }
1056
- function Vt(e, t) {
1111
+ function qt(e, t) {
1057
1112
  let n = t.toLowerCase(), r = 0;
1058
1113
  for (; r < e.length;) {
1059
1114
  for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
1060
1115
  if (r >= e.length) break;
1061
1116
  let t = r;
1062
- for (; r < e.length && Rt(e[r]);) r++;
1117
+ for (; r < e.length && Wt(e[r]);) r++;
1063
1118
  let i = e.substring(t, r).toLowerCase();
1064
1119
  if (i === "") {
1065
1120
  r++;
@@ -1069,27 +1124,27 @@ function Vt(e, t) {
1069
1124
  if (e[r] !== "=") continue;
1070
1125
  for (r++; r < e.length && q(e[r]);) r++;
1071
1126
  let a = e[r];
1072
- if (It.has(a)) {
1127
+ if (Ht.has(a)) {
1073
1128
  let t = r + 1, o = e.indexOf(a, t);
1074
1129
  if (o === -1) return null;
1075
- if (i === n) return Bt(e.substring(t, o));
1130
+ if (i === n) return Kt(e.substring(t, o));
1076
1131
  r = o + 1;
1077
1132
  continue;
1078
1133
  }
1079
1134
  let o = r;
1080
1135
  for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
1081
- if (i === n) return Bt(e.substring(o, r));
1136
+ if (i === n) return Kt(e.substring(o, r));
1082
1137
  }
1083
1138
  return null;
1084
1139
  }
1085
- var Ht = /<\/?p\b[^<>]*>/gi, Ut = /<p\b([^<>]*)>\s*<\/p>/gi;
1086
- function Wt(e) {
1087
- return e.replace(Ht, "").trim() === "";
1140
+ var Jt = /<\/?p\b[^<>]*>/gi, Yt = /<p\b([^<>]*)>\s*<\/p>/gi;
1141
+ function Xt(e) {
1142
+ return e.replace(Jt, "").trim() === "";
1088
1143
  }
1089
- function Gt(e) {
1090
- return Wt(e) ? e : e.replace(Ut, "<p$1>&nbsp;</p>");
1144
+ function Zt(e) {
1145
+ return Xt(e) ? e : e.replace(Yt, "<p$1>&nbsp;</p>");
1091
1146
  }
1092
- var Kt = {
1147
+ var Qt = {
1093
1148
  arial: "Arial, sans-serif",
1094
1149
  helvetica: "Helvetica, sans-serif",
1095
1150
  georgia: "Georgia, serif",
@@ -1098,13 +1153,13 @@ var Kt = {
1098
1153
  "trebuchet ms": "'Trebuchet MS', sans-serif",
1099
1154
  "courier new": "'Courier New', monospace",
1100
1155
  tahoma: "Tahoma, sans-serif"
1101
- }, qt = /* @__PURE__ */ new Set([
1156
+ }, $t = /* @__PURE__ */ new Set([
1102
1157
  "inherit",
1103
1158
  "initial",
1104
1159
  "unset",
1105
1160
  "revert",
1106
1161
  "revert-layer"
1107
- ]), Jt = /* @__PURE__ */ new Set([
1162
+ ]), en = /* @__PURE__ */ new Set([
1108
1163
  "serif",
1109
1164
  "sans-serif",
1110
1165
  "monospace",
@@ -1119,14 +1174,14 @@ var Kt = {
1119
1174
  "math",
1120
1175
  "fangsong"
1121
1176
  ]);
1122
- function Yt(e) {
1177
+ function tn(e) {
1123
1178
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
1124
1179
  }
1125
1180
  function J(e) {
1126
1181
  if (typeof e != "string") return [];
1127
1182
  let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
1128
1183
  for (;;) {
1129
- for (; r < t.length && Yt(t[r]);) r++;
1184
+ for (; r < t.length && tn(t[r]);) r++;
1130
1185
  if (r >= t.length) return [];
1131
1186
  let e = t[r];
1132
1187
  if (e === "\"" || e === "'") {
@@ -1143,7 +1198,7 @@ function J(e) {
1143
1198
  }
1144
1199
  }
1145
1200
  if (!o) return [];
1146
- for (; a < t.length && Yt(t[a]);) a++;
1201
+ for (; a < t.length && tn(t[a]);) a++;
1147
1202
  if (a < t.length && t[a] !== ",") return [];
1148
1203
  n.push({
1149
1204
  name: i,
@@ -1151,7 +1206,7 @@ function J(e) {
1151
1206
  }), r = a;
1152
1207
  } else {
1153
1208
  let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
1154
- if (a === "" || a.includes("\"") || a.includes("'") || qt.has(a.toLowerCase())) return [];
1209
+ if (a === "" || a.includes("\"") || a.includes("'") || $t.has(a.toLowerCase())) return [];
1155
1210
  n.push({
1156
1211
  name: a,
1157
1212
  quoted: !1
@@ -1161,22 +1216,22 @@ function J(e) {
1161
1216
  r++;
1162
1217
  }
1163
1218
  }
1164
- function Xt(e) {
1219
+ function nn(e) {
1165
1220
  return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
1166
1221
  }
1167
- function Zt(e) {
1168
- return !e.quoted && Jt.has(e.name.toLowerCase());
1222
+ function rn(e) {
1223
+ return !e.quoted && en.has(e.name.toLowerCase());
1169
1224
  }
1170
- function Qt(e) {
1225
+ function an(e) {
1171
1226
  return J(e)[0]?.name ?? "";
1172
1227
  }
1173
- function $t(e, t) {
1174
- let n = (e) => `${Xt(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
1228
+ function on(e, t) {
1229
+ let n = (e) => `${nn(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
1175
1230
  if (i) return n(i);
1176
1231
  let a = J(e);
1177
1232
  if (a.length !== 1) return e;
1178
1233
  let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
1179
- return c ? n(c) : Kt[s] || (Zt(o) ? e : `${Xt(o.name)}, ${t.defaultFallback}`);
1234
+ return c ? n(c) : Qt[s] || (rn(o) ? e : `${nn(o.name)}, ${t.defaultFallback}`);
1180
1235
  }
1181
1236
  var Y = {
1182
1237
  liquid: {
@@ -1204,26 +1259,26 @@ var Y = {
1204
1259
  closer: "=%%"
1205
1260
  }
1206
1261
  };
1207
- function en(e) {
1262
+ function sn(e) {
1208
1263
  return typeof e == "string" && e.trim() !== "" ? e : null;
1209
1264
  }
1210
- function tn(e) {
1265
+ function cn(e) {
1211
1266
  return Object.values(Y).find((t) => t.value.source === e.value.source) ?? null;
1212
1267
  }
1213
- function nn(e) {
1214
- return en(e.opener) ?? tn(e)?.opener ?? null;
1268
+ function ln(e) {
1269
+ return sn(e.opener) ?? cn(e)?.opener ?? null;
1215
1270
  }
1216
- function rn(e) {
1217
- return en(e.closer) ?? tn(e)?.closer ?? null;
1271
+ function un(e) {
1272
+ return sn(e.closer) ?? cn(e)?.closer ?? null;
1218
1273
  }
1219
- function an(e) {
1274
+ function dn(e) {
1220
1275
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
1221
1276
  }
1222
1277
  function X(e) {
1223
1278
  let t = e.source, n = e.flags.replace("g", "");
1224
1279
  return RegExp(`^${t}$`, n);
1225
1280
  }
1226
- function on(e, t) {
1281
+ function fn(e, t) {
1227
1282
  let n = e?.trim() || "";
1228
1283
  return !X(t.logic).test(n) && X(t.value).test(n);
1229
1284
  }
@@ -1231,41 +1286,41 @@ function Z(e, t) {
1231
1286
  let n = t.find((t) => t.value === e);
1232
1287
  return n ? n.label : e;
1233
1288
  }
1234
- function sn(e, t) {
1289
+ function pn(e, t) {
1235
1290
  return $(e, "data-merge-tag", (e) => Z(e, t));
1236
1291
  }
1237
1292
  function Q(e, t) {
1238
1293
  return t.find((t) => t.value === e)?.sample;
1239
1294
  }
1240
- function cn(e, t) {
1241
- return $(e, "data-merge-tag", (e) => dn(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
1295
+ function mn(e, t) {
1296
+ return $(e, "data-merge-tag", (e) => _n(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
1242
1297
  }
1243
- function ln(e) {
1298
+ function hn(e) {
1244
1299
  return e.some((e) => e.sample !== void 0);
1245
1300
  }
1246
- function un(e, t) {
1301
+ function gn(e, t) {
1247
1302
  if (!e) return e;
1248
1303
  let n = e;
1249
1304
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
1250
1305
  return n;
1251
1306
  }
1252
- function dn(e) {
1307
+ function _n(e) {
1253
1308
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
1254
1309
  }
1255
- function fn(e, t) {
1310
+ function vn(e, t) {
1256
1311
  if (!e) return !1;
1257
1312
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
1258
1313
  return n.test(e) || r.test(e);
1259
1314
  }
1260
- function pn(e, t) {
1315
+ function yn(e, t) {
1261
1316
  return X(t.logic).test(e?.trim() || "");
1262
1317
  }
1263
- function mn(e, t) {
1318
+ function bn(e, t) {
1264
1319
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
1265
1320
  return r && r[1] ? r[1].toUpperCase() : e;
1266
1321
  }
1267
- function hn(e, t) {
1268
- return $(e, "data-logic-merge-tag", (e) => mn(e, t));
1322
+ function xn(e, t) {
1323
+ return $(e, "data-logic-merge-tag", (e) => bn(e, t));
1269
1324
  }
1270
1325
  function $(e, t, n, r) {
1271
1326
  let i = "", a = 0;
@@ -1280,7 +1335,7 @@ function $(e, t, n, r) {
1280
1335
  i += e.substring(a, o + 5), a = o + 5;
1281
1336
  continue;
1282
1337
  }
1283
- let c = Lt(e, o + 5);
1338
+ let c = Ut(e, o + 5);
1284
1339
  if (c === -1) {
1285
1340
  i += e.substring(a);
1286
1341
  break;
@@ -1290,7 +1345,7 @@ function $(e, t, n, r) {
1290
1345
  i += e.substring(a);
1291
1346
  break;
1292
1347
  }
1293
- let u = Vt(e.substring(o + 5, c), t);
1348
+ let u = qt(e.substring(o + 5, c), t);
1294
1349
  if (u === null) {
1295
1350
  i += e.substring(a, o + 5), a = o + 5;
1296
1351
  continue;
@@ -1300,10 +1355,9 @@ function $(e, t, n, r) {
1300
1355
  }
1301
1356
  return i;
1302
1357
  }
1303
- function gn(e) {
1358
+ function Sn(e) {
1304
1359
  if (typeof e != "object" || !e) return !1;
1305
1360
  let t = e;
1306
1361
  return Array.isArray(t.blocks);
1307
1362
  }
1308
- //#endregion
1309
- export { ln as $, at as A, bt as B, xt as C, un as Ct, Qe as D, t as Dt, vt as E, o as Et, ut as F, Qt as G, B as H, dt as I, mn as J, U as K, ht as L, it as M, ct as N, st as O, Ot, yt as P, nn as Q, rt as R, te as S, cn as St, gt as T, r as Tt, ne as U, m as V, Gt as W, Q as X, Z as Y, rn as Z, g as _, an as _t, Fe as a, gn as at, G as b, fe as bt, s as c, R as ct, ce as d, re as dt, se as et, Y as f, tt as ft, he as g, sn as gt, Ft as h, hn as ht, e as i, on as it, pt as j, ft as k, h as l, jt as lt, c as m, ae as mt, ee as n, Ie as nt, Ye as o, I as ot, Ne as p, $t as pt, me as q, i as r, pn as rt, Xe as s, L as st, d as t, Me as tt, l as u, J as ut, kt as v, p as vt, ot as w, n as wt, fn as x, de as xt, At as y, ue as yt, lt as z };
1363
+ export { Q as $, lt as A, o as At, at as B, te as C, ce as Ct, yt as D, gn as Dt, _t as E, mn as Et, W as F, ne as G, xt as H, bt as I, an as J, zt as K, dt as L, st as M, kt as Mt, mt as N, rt as O, n as Ot, ot as P, Z as Q, ft as R, vn as S, h as St, ct as T, le as Tt, g as U, ut as V, z as W, fe as X, H as Y, bn as Z, pe as _, on as _t, Fe as a, Ie as at, jt as b, pn as bt, s as c, Sn as ct, Lt as d, L as dt, un as et, p as f, R as ft, It as g, nt as gt, c as h, f as ht, e as i, Me as it, pt as j, t as jt, $e as k, r as kt, _ as l, Vt as lt, Ne as m, J as mt, ee as n, hn as nt, Xe as o, yn as ot, Y as p, Mt as pt, Zt as q, i as r, oe as rt, Ze as s, fn as st, d as t, ln as tt, l as u, I as ut, v, ie as vt, St as w, ue as wt, G as x, dn as xt, At as y, xn as yt, gt as z };