@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/src/blocks.ts
1
+ // ../types/src/blocks.ts
2
2
  var e = [
3
3
  "top",
4
4
  "right",
@@ -93,8 +93,7 @@ function re(e) {
93
93
  repeat: e.repeat ? "repeat" : "no-repeat"
94
94
  };
95
95
  }
96
- //#endregion
97
- //#region ../types/src/hero.ts
96
+ // ../types/src/hero.ts
98
97
  var ie = [
99
98
  "top",
100
99
  "middle",
@@ -131,8 +130,7 @@ function se(e) {
131
130
  let t = e?.naturalWidth, n = e?.naturalHeight;
132
131
  return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
133
132
  }
134
- //#endregion
135
- //#region ../types/src/social.ts
133
+ // ../types/src/social.ts
136
134
  var ce = {
137
135
  facebook: {
138
136
  color: "#1877F2",
@@ -230,8 +228,7 @@ function de(e, t) {
230
228
  function fe(e) {
231
229
  return e === "plain" ? .84 : .6;
232
230
  }
233
- //#endregion
234
- //#region ../types/src/clone.ts
231
+ // ../types/src/clone.ts
235
232
  function m(e) {
236
233
  let t = [];
237
234
  return JSON.parse(JSON.stringify(e, function(e, n) {
@@ -240,8 +237,7 @@ function m(e) {
240
237
  if (!t.includes(n)) return t.push(n), n;
241
238
  }));
242
239
  }
243
- //#endregion
244
- //#region ../types/src/deep-equal.ts
240
+ // ../types/src/deep-equal.ts
245
241
  function pe(e) {
246
242
  return typeof e == "object" && !!e && !Array.isArray(e);
247
243
  }
@@ -256,8 +252,7 @@ function h(e, t) {
256
252
  }
257
253
  return !1;
258
254
  }
259
- //#endregion
260
- //#region ../types/src/operations.ts
255
+ // ../types/src/operations.ts
261
256
  var g = class extends Error {
262
257
  code;
263
258
  opIndex;
@@ -360,7 +355,7 @@ function T(e, t) {
360
355
  }
361
356
  function E(e, t, n) {
362
357
  let r = e.set ?? null, i = e.unset ?? [];
363
- (r !== null && !y(r) || !Array.isArray(i) || !i.every((e) => typeof e == "string")) && v("invalid_operation", t, "set must be an object and unset a list of keys.");
358
+ (r === null || y(r)) && Array.isArray(i) && i.every((e) => typeof e == "string") || v("invalid_operation", t, "set must be an object and unset a list of keys.");
364
359
  let a = r === null ? {} : r, o = Object.keys(a).filter((e) => a[e] !== void 0);
365
360
  o.length === 0 && i.length === 0 && v("invalid_operation", t, "Set or unset at least one key.");
366
361
  for (let e of [...o, ...i]) n.has(e) && v("invalid_operation", t, `"${e}" can't be set or unset.`);
@@ -371,10 +366,10 @@ function E(e, t, n) {
371
366
  };
372
367
  }
373
368
  function D(e, t, n) {
374
- if ((!y(e) || typeof e.id != "string" || e.id === "" || typeof e.type != "string") && v("invalid_operation", t, "A block needs a non-empty string id and a string type."), !b(e)) return;
369
+ if (y(e) && typeof e.id == "string" && e.id !== "" && typeof e.type == "string" || v("invalid_operation", t, "A block needs a non-empty string id and a string type."), !b(e)) return;
375
370
  n && v("invalid_operation", t, "Sections can only be placed at the top level.");
376
371
  let r = e.children;
377
- (!Array.isArray(r) || !r.every((e) => Array.isArray(e))) && v("invalid_operation", t, "A section needs children: a list of columns, each a list of blocks.");
372
+ Array.isArray(r) && r.every((e) => Array.isArray(e)) || v("invalid_operation", t, "A section needs children: a list of columns, each a list of blocks.");
378
373
  for (let e of r) for (let n of e) D(n, t, !0);
379
374
  }
380
375
  function O(e, t) {
@@ -421,7 +416,7 @@ function N(e, t, n) {
421
416
  }
422
417
  function Ce(e, t, n, r) {
423
418
  let i = t;
424
- switch ((!y(i) || typeof i.op != "string") && v("invalid_operation", n, "Each operation must be an object with an \"op\"."), i.op) {
419
+ switch (y(i) && typeof i.op == "string" || v("invalid_operation", n, "Each operation must be an object with an \"op\"."), i.op) {
425
420
  case "addBlock": return we(e, i, n);
426
421
  case "moveBlock": return Te(e, i, n, r);
427
422
  case "deleteBlock": return Ee(e, i, n, r);
@@ -444,7 +439,7 @@ function Te(e, t, n, r) {
444
439
  if (!c) return v("block_missing", n, `No block with id "${i}".`, i);
445
440
  if (k(r, S(c.block), n), s) {
446
441
  let e = c.index > 0 ? c.list[c.index - 1] : null, t = y(e) ? e.id ?? null : null;
447
- (!h(c.parent, s.parent ?? null) || !h(t, s.after ?? null)) && v("precondition_failed", n, `Block "${i}" has moved since.`, i);
442
+ h(c.parent, s.parent ?? null) && h(t, s.after ?? null) || v("precondition_failed", n, `Block "${i}" has moved since.`, i);
448
443
  }
449
444
  b(c.block) && a !== null && v("invalid_operation", n, "Sections can only be placed at the top level."), o === i && v("invalid_operation", n, "A block can't be placed after itself.");
450
445
  let l = j(e, a, n);
@@ -473,8 +468,7 @@ function ke(e, t, n, r) {
473
468
  let a = r.locks.find((e) => O(r, e));
474
469
  a && v("locked_by_others", n, "Other sessions hold locks on this template.", a.blockId), e.blocks = m(i.blocks), e.settings = m(i.settings);
475
470
  }
476
- //#endregion
477
- //#region ../types/src/invert-operations.ts
471
+ // ../types/src/invert-operations.ts
478
472
  function Ae(e) {
479
473
  let t = e.children;
480
474
  return e.type === "section" && Array.isArray(t) ? t : [];
@@ -586,8 +580,7 @@ function Ne(e, t) {
586
580
  }
587
581
  }), r.reverse();
588
582
  }
589
- //#endregion
590
- //#region ../types/src/config.ts
583
+ // ../types/src/config.ts
591
584
  var Pe = class extends Error {
592
585
  statusCode;
593
586
  code;
@@ -604,8 +597,7 @@ var Pe = class extends Error {
604
597
  return this.statusCode !== void 0 && this.statusCode >= 500;
605
598
  }
606
599
  };
607
- //#endregion
608
- //#region ../types/src/collaboration.ts
600
+ // ../types/src/collaboration.ts
609
601
  function Fe(e) {
610
602
  return e === "invalid_operation" ? 422 : e === "content_too_large" ? 413 : 409;
611
603
  }
@@ -617,8 +609,7 @@ var Ie = class extends Pe {
617
609
  super(e, t.status ?? Fe(t.code), t.code), this.name = "CollaborationConflict", t.opIndex !== void 0 && (this.opIndex = t.opIndex), t.holder !== void 0 && (this.holder = t.holder), t.holders !== void 0 && (this.holders = t.holders);
618
610
  }
619
611
  };
620
- //#endregion
621
- //#region ../types/src/guards.ts
612
+ // ../types/src/guards.ts
622
613
  function I(e) {
623
614
  return e.type === "section";
624
615
  }
@@ -667,8 +658,7 @@ function L(e) {
667
658
  function R(e) {
668
659
  return e.type === "wrapper";
669
660
  }
670
- //#endregion
671
- //#region ../types/src/defaults.ts
661
+ // ../types/src/defaults.ts
672
662
  var Xe = {
673
663
  content: "<p>Enter your title</p>",
674
664
  level: 2,
@@ -678,7 +668,7 @@ var Xe = {
678
668
  alt: "",
679
669
  width: "full",
680
670
  align: "center"
681
- }, z = {
671
+ }, $e = {
682
672
  text: "Click Here",
683
673
  url: "",
684
674
  backgroundColor: "#333333",
@@ -692,18 +682,18 @@ var Xe = {
692
682
  left: 24
693
683
  },
694
684
  align: "center"
695
- }, $e = {
685
+ }, et = {
696
686
  lineStyle: "solid",
697
687
  color: "#e0e0e0",
698
688
  thickness: 1,
699
689
  width: "full"
700
- }, et = { columns: "1" }, tt = {
690
+ }, tt = { columns: "1" }, nt = {
701
691
  url: "",
702
692
  thumbnailUrl: "",
703
693
  alt: "Video",
704
694
  width: "full",
705
695
  align: "center"
706
- }, nt = {
696
+ }, z = {
707
697
  iconStyle: "solid",
708
698
  iconSize: "medium",
709
699
  spacing: 10,
@@ -745,11 +735,11 @@ var Xe = {
745
735
  title: Xe,
746
736
  paragraph: Ze,
747
737
  image: Qe,
748
- button: z,
749
- divider: $e,
750
- section: et,
751
- video: tt,
752
- social: nt,
738
+ button: $e,
739
+ divider: et,
740
+ section: tt,
741
+ video: nt,
742
+ social: z,
753
743
  spacer: rt,
754
744
  html: it,
755
745
  menu: at,
@@ -774,8 +764,7 @@ function B(e, t) {
774
764
  }
775
765
  return n;
776
766
  }
777
- //#endregion
778
- //#region ../types/src/template.ts
767
+ // ../types/src/template.ts
779
768
  function dt(e = "Arial", t) {
780
769
  return {
781
770
  blocks: [],
@@ -786,8 +775,7 @@ function dt(e = "Arial", t) {
786
775
  }
787
776
  };
788
777
  }
789
- //#endregion
790
- //#region ../types/src/direction.ts
778
+ // ../types/src/direction.ts
791
779
  var ft = [
792
780
  "ar",
793
781
  "he",
@@ -809,8 +797,35 @@ function pt(e) {
809
797
  function mt(e) {
810
798
  return e.direction === "ltr" || e.direction === "rtl" ? e.direction : pt(e.locale) ? "rtl" : "ltr";
811
799
  }
812
- //#endregion
813
- //#region ../types/src/factory.ts
800
+ // ../types/src/custom-block-liquid.ts
801
+ function ht(e) {
802
+ let { CycleTag: t, Liquid: n, Tag: r, Value: i, toValue: a } = e, o = new n({
803
+ strictVariables: !1,
804
+ strictFilters: !1,
805
+ outputEscape: "escape",
806
+ templates: {}
807
+ }), s = new i("'' | escape", o).filters[0];
808
+ class c extends r {
809
+ value;
810
+ constructor(e, t, n) {
811
+ 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));
812
+ }
813
+ *render(e, t) {
814
+ this.value && t.write(a(yield this.value.value(e, !1)));
815
+ }
816
+ *arguments() {
817
+ this.value && (yield this.value);
818
+ }
819
+ }
820
+ class l extends t {
821
+ *render(e, t) {
822
+ let n = yield* super.render(e, t);
823
+ return n && a(yield s.render(n, e));
824
+ }
825
+ }
826
+ return o.registerTag("echo", c), o.registerTag("cycle", l), o;
827
+ }
828
+ // ../types/src/factory.ts
814
829
  function V(e, t) {
815
830
  let n = m(e);
816
831
  return !t || Object.keys(t).length === 0 ? n : B(n, t);
@@ -821,7 +836,7 @@ function H(e) {
821
836
  function U() {
822
837
  return crypto.randomUUID();
823
838
  }
824
- function ht(e = 0) {
839
+ function gt(e = 0) {
825
840
  return {
826
841
  top: e,
827
842
  right: e,
@@ -830,9 +845,9 @@ function ht(e = 0) {
830
845
  };
831
846
  }
832
847
  function W(e = 10) {
833
- return { padding: ht(e) };
848
+ return { padding: gt(e) };
834
849
  }
835
- function gt(e = {}) {
850
+ function _t(e = {}) {
836
851
  return V({
837
852
  id: U(),
838
853
  type: "title",
@@ -840,7 +855,7 @@ function gt(e = {}) {
840
855
  styles: W()
841
856
  }, e);
842
857
  }
843
- function _t(e = {}) {
858
+ function vt(e = {}) {
844
859
  return V({
845
860
  id: U(),
846
861
  type: "paragraph",
@@ -848,7 +863,7 @@ function _t(e = {}) {
848
863
  styles: W()
849
864
  }, e);
850
865
  }
851
- function vt(e = {}) {
866
+ function yt(e = {}) {
852
867
  return V({
853
868
  id: U(),
854
869
  type: "image",
@@ -856,49 +871,49 @@ function vt(e = {}) {
856
871
  styles: W()
857
872
  }, e);
858
873
  }
859
- function yt(e = {}) {
874
+ function bt(e = {}) {
860
875
  return V({
861
876
  id: U(),
862
877
  type: "button",
863
- ...z,
878
+ ...$e,
864
879
  styles: W()
865
880
  }, e);
866
881
  }
867
- function bt(e = {}) {
882
+ function xt(e = {}) {
868
883
  return V({
869
884
  id: U(),
870
885
  type: "divider",
871
- ...$e,
886
+ ...et,
872
887
  styles: W(20)
873
888
  }, e);
874
889
  }
875
- function xt(e = {}) {
890
+ function St(e = {}) {
876
891
  return V({
877
892
  id: U(),
878
893
  type: "section",
879
- ...et,
894
+ ...tt,
880
895
  children: [[]],
881
896
  styles: W(20)
882
897
  }, e);
883
898
  }
884
- function St(e = {}) {
899
+ function Ct(e = {}) {
885
900
  return V({
886
901
  id: U(),
887
902
  type: "video",
888
- ...tt,
903
+ ...nt,
889
904
  styles: W()
890
905
  }, e);
891
906
  }
892
- function Ct(e = {}) {
907
+ function wt(e = {}) {
893
908
  return V({
894
909
  id: U(),
895
910
  type: "social",
896
911
  icons: [],
897
- ...nt,
912
+ ...z,
898
913
  styles: W()
899
914
  }, e);
900
915
  }
901
- function wt(e = {}) {
916
+ function Tt(e = {}) {
902
917
  return V({
903
918
  id: U(),
904
919
  type: "spacer",
@@ -906,7 +921,7 @@ function wt(e = {}) {
906
921
  styles: W(0)
907
922
  }, e);
908
923
  }
909
- function Tt(e = {}) {
924
+ function Et(e = {}) {
910
925
  return V({
911
926
  id: U(),
912
927
  type: "html",
@@ -914,7 +929,7 @@ function Tt(e = {}) {
914
929
  styles: W()
915
930
  }, e);
916
931
  }
917
- function Et(e = {}) {
932
+ function Dt(e = {}) {
918
933
  return V({
919
934
  id: U(),
920
935
  type: "menu",
@@ -923,7 +938,7 @@ function Et(e = {}) {
923
938
  styles: W()
924
939
  }, e);
925
940
  }
926
- function Dt(e, t) {
941
+ function Ot(e, t) {
927
942
  return Array.from({ length: t }, () => ({
928
943
  id: U(),
929
944
  cells: Array.from({ length: e }, () => ({
@@ -932,16 +947,16 @@ function Dt(e, t) {
932
947
  }))
933
948
  }));
934
949
  }
935
- function Ot(e = {}) {
950
+ function kt(e = {}) {
936
951
  return V({
937
952
  id: U(),
938
953
  type: "table",
939
- rows: Dt(3, 3),
954
+ rows: Ot(3, 3),
940
955
  ...ot,
941
956
  styles: W()
942
957
  }, e);
943
958
  }
944
- function kt(e = {}) {
959
+ function At(e = {}) {
945
960
  return V({
946
961
  id: U(),
947
962
  type: "countdown",
@@ -949,12 +964,12 @@ function kt(e = {}) {
949
964
  styles: W()
950
965
  }, e);
951
966
  }
952
- function At(e) {
967
+ function jt(e) {
953
968
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
954
969
  }
955
- function jt(e) {
970
+ function Mt(e) {
956
971
  let t = {};
957
- for (let n of e.fields) t[n.key] = H(At(n));
972
+ for (let n of e.fields) t[n.key] = H(jt(n));
958
973
  let n = V(W(), H(e.defaultStyles));
959
974
  return {
960
975
  id: U(),
@@ -965,14 +980,14 @@ function jt(e) {
965
980
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
966
981
  };
967
982
  }
968
- function Mt() {
983
+ function Nt() {
969
984
  return {
970
985
  id: U(),
971
986
  type: "slot",
972
987
  styles: W(0)
973
988
  };
974
989
  }
975
- function Nt(e = {}) {
990
+ function Pt(e = {}) {
976
991
  return V({
977
992
  id: U(),
978
993
  type: "wrapper",
@@ -980,21 +995,21 @@ function Nt(e = {}) {
980
995
  styles: W(0)
981
996
  }, e);
982
997
  }
983
- function Pt(e, t) {
998
+ function Ft(e, t) {
984
999
  switch (e) {
985
- case "section": return xt(H(t?.section));
986
- case "title": return gt(H(t?.title));
987
- case "paragraph": return _t(H(t?.paragraph));
988
- case "image": return vt(H(t?.image));
989
- case "button": return yt(H(t?.button));
990
- case "divider": return bt(H(t?.divider));
991
- case "video": return St(H(t?.video));
992
- case "social": return Ct(H(t?.social));
993
- case "spacer": return wt(H(t?.spacer));
994
- case "html": return Tt(H(t?.html));
995
- case "menu": return Et(H(t?.menu));
996
- case "table": return Ot(H(t?.table));
997
- case "countdown": return kt(H(t?.countdown));
1000
+ case "section": return St(H(t?.section));
1001
+ case "title": return _t(H(t?.title));
1002
+ case "paragraph": return vt(H(t?.paragraph));
1003
+ case "image": return yt(H(t?.image));
1004
+ case "button": return bt(H(t?.button));
1005
+ case "divider": return xt(H(t?.divider));
1006
+ case "video": return Ct(H(t?.video));
1007
+ case "social": return wt(H(t?.social));
1008
+ case "spacer": return Tt(H(t?.spacer));
1009
+ case "html": return Et(H(t?.html));
1010
+ case "menu": return Dt(H(t?.menu));
1011
+ case "table": return kt(H(t?.table));
1012
+ case "countdown": return At(H(t?.countdown));
998
1013
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
999
1014
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
1000
1015
  default: throw Error(`Unknown block type: ${e}`);
@@ -1010,51 +1025,50 @@ function G(e) {
1010
1025
  if (t.type === "social") for (let e of t.icons) e.id = U();
1011
1026
  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;
1012
1027
  }
1013
- //#endregion
1014
- //#region ../types/src/layout.ts
1015
- var Ft = "[Templatical] layout: must contain exactly one slot block", It = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Lt = "[Templatical] layout: a wrapper cannot contain a wrapper", Rt = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", zt = "[Templatical] slot is not a valid content block", Bt = "[Templatical] wrapper is not a valid content block";
1028
+ // ../types/src/layout.ts
1029
+ var It = "[Templatical] layout: must contain exactly one slot block", Lt = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Rt = "[Templatical] layout: a wrapper cannot contain a wrapper", zt = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Bt = "[Templatical] slot is not a valid content block", Vt = "[Templatical] wrapper is not a valid content block";
1016
1030
  function K(e, t, n = null, r = !1) {
1017
1031
  for (let i of e) if (t(i, n, r), I(i)) for (let e of i.children) K(e, t, i, !0);
1018
1032
  else R(i) && K(i.children, t, i, r);
1019
1033
  }
1020
- function Vt(e) {
1034
+ function Ht(e) {
1021
1035
  let t = 0;
1022
1036
  if (K(e.blocks, (e, n, r) => {
1023
- if (L(e) && (t += 1, r)) throw Error(It);
1037
+ if (L(e) && (t += 1, r)) throw Error(Lt);
1024
1038
  if (R(e)) {
1025
- if (r) throw Error(It);
1026
- if (e.children.some(R)) throw Error(Lt);
1039
+ if (r) throw Error(Lt);
1040
+ if (e.children.some(R)) throw Error(Rt);
1027
1041
  }
1028
- }), t !== 1) throw Error(Ft);
1042
+ }), t !== 1) throw Error(It);
1029
1043
  }
1030
- function Ht(e) {
1044
+ function Ut(e) {
1031
1045
  K(e.blocks, (e) => {
1032
- if (L(e)) throw Error(zt);
1046
+ if (L(e)) throw Error(Bt);
1033
1047
  });
1034
1048
  }
1035
- function Ut(e) {
1049
+ function Wt(e) {
1036
1050
  K(e.blocks, (e) => {
1037
- if (R(e)) throw Error(Bt);
1051
+ if (R(e)) throw Error(Vt);
1038
1052
  });
1039
1053
  }
1040
- function Wt(e) {
1054
+ function Gt(e) {
1041
1055
  let t = !1;
1042
1056
  return K(e.blocks, (e, n) => {
1043
1057
  L(e) && n !== null && R(n) && (t = !0);
1044
1058
  }), t;
1045
1059
  }
1046
- function Gt(e) {
1060
+ function Kt(e) {
1047
1061
  if (L(e)) return e;
1048
1062
  if (R(e)) {
1049
1063
  let t = G({
1050
1064
  ...e,
1051
1065
  children: []
1052
1066
  });
1053
- return t.children = e.children.map(Gt), t;
1067
+ return t.children = e.children.map(Kt), t;
1054
1068
  }
1055
1069
  return G(e);
1056
1070
  }
1057
- function Kt(e) {
1071
+ function qt(e) {
1058
1072
  for (let t = 0; t < e.length; t++) {
1059
1073
  let n = e[t];
1060
1074
  if (L(n)) return {
@@ -1062,23 +1076,23 @@ function Kt(e) {
1062
1076
  index: t
1063
1077
  };
1064
1078
  if (R(n)) {
1065
- let e = Kt(n.children);
1079
+ let e = qt(n.children);
1066
1080
  if (e) return e;
1067
1081
  }
1068
1082
  }
1069
1083
  return null;
1070
1084
  }
1071
- function qt(e) {
1085
+ function Jt(e) {
1072
1086
  for (let t of e) if (I(t)) {
1073
1087
  if (t.wrapper) return !0;
1074
- for (let e of t.children) if (qt(e)) return !0;
1088
+ for (let e of t.children) if (Jt(e)) return !0;
1075
1089
  }
1076
1090
  return !1;
1077
1091
  }
1078
- function Jt(e, t) {
1079
- if (Vt(e), Ht(t), Ut(t), Wt(e) && qt(t.blocks)) throw Error(Rt);
1080
- let n = e.blocks.map(Gt), r = Kt(n);
1081
- if (!r) throw Error(Ft);
1092
+ function Yt(e, t) {
1093
+ if (Ht(e), Ut(t), Wt(t), Gt(e) && Jt(t.blocks)) throw Error(zt);
1094
+ let n = e.blocks.map(Kt), r = qt(n);
1095
+ if (!r) throw Error(It);
1082
1096
  return r.parent.splice(r.index, 1, ...m(t.blocks)), {
1083
1097
  blocks: n,
1084
1098
  settings: {
@@ -1087,26 +1101,53 @@ function Jt(e, t) {
1087
1101
  }
1088
1102
  };
1089
1103
  }
1090
- //#endregion
1091
- //#region ../types/src/html-scan.ts
1092
- var Yt = /* @__PURE__ */ new Set(["\"", "'"]);
1093
- function Xt(e, t) {
1104
+ // ../types/src/url-policy.ts
1105
+ var Xt = Object.freeze([
1106
+ "http",
1107
+ "https",
1108
+ "mailto",
1109
+ "tel",
1110
+ "ftp",
1111
+ "ftps",
1112
+ "sms",
1113
+ "xmpp",
1114
+ "cid"
1115
+ ]), Zt = Object.freeze([
1116
+ "javascript",
1117
+ "data",
1118
+ "vbscript"
1119
+ ]);
1120
+ function Qt(e) {
1121
+ return e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
1122
+ }
1123
+ function $t(e) {
1124
+ let t = /^([a-z][a-z0-9+.-]*):/i.exec(Qt(e));
1125
+ return t ? t[1].toLowerCase() : null;
1126
+ }
1127
+ var en = /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i;
1128
+ function tn(e, t) {
1129
+ let n = Qt(e), r = $t(n);
1130
+ return r === null || Xt.some((e) => e === r) ? !0 : t.toLowerCase() === "src" && en.test(n);
1131
+ }
1132
+ // ../types/src/html-scan.ts
1133
+ var nn = /* @__PURE__ */ new Set(["\"", "'"]);
1134
+ function rn(e, t) {
1094
1135
  let n = null;
1095
1136
  for (let r = t; r < e.length; r++) {
1096
1137
  let t = e[r];
1097
1138
  if (n !== null) t === n && (n = null);
1098
- else if (Yt.has(t)) n = t;
1139
+ else if (nn.has(t)) n = t;
1099
1140
  else if (t === ">") return r;
1100
1141
  }
1101
1142
  return -1;
1102
1143
  }
1103
- function Zt(e) {
1144
+ function an(e) {
1104
1145
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
1105
1146
  }
1106
1147
  function q(e) {
1107
1148
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
1108
1149
  }
1109
- var Qt = {
1150
+ var on = {
1110
1151
  amp: "&",
1111
1152
  lt: "<",
1112
1153
  gt: ">",
@@ -1114,22 +1155,22 @@ var Qt = {
1114
1155
  apos: "'",
1115
1156
  nbsp: "\xA0"
1116
1157
  };
1117
- function $t(e) {
1158
+ function sn(e) {
1118
1159
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
1119
1160
  if (t[0] === "#") {
1120
1161
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
1121
1162
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
1122
1163
  }
1123
- return Qt[t.toLowerCase()] ?? e;
1164
+ return on[t.toLowerCase()] ?? e;
1124
1165
  }) : e;
1125
1166
  }
1126
- function en(e, t) {
1167
+ function cn(e, t) {
1127
1168
  let n = t.toLowerCase(), r = 0;
1128
1169
  for (; r < e.length;) {
1129
1170
  for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
1130
1171
  if (r >= e.length) break;
1131
1172
  let t = r;
1132
- for (; r < e.length && Zt(e[r]);) r++;
1173
+ for (; r < e.length && an(e[r]);) r++;
1133
1174
  let i = e.substring(t, r).toLowerCase();
1134
1175
  if (i === "") {
1135
1176
  r++;
@@ -1139,31 +1180,29 @@ function en(e, t) {
1139
1180
  if (e[r] !== "=") continue;
1140
1181
  for (r++; r < e.length && q(e[r]);) r++;
1141
1182
  let a = e[r];
1142
- if (Yt.has(a)) {
1183
+ if (nn.has(a)) {
1143
1184
  let t = r + 1, o = e.indexOf(a, t);
1144
1185
  if (o === -1) return null;
1145
- if (i === n) return $t(e.substring(t, o));
1186
+ if (i === n) return sn(e.substring(t, o));
1146
1187
  r = o + 1;
1147
1188
  continue;
1148
1189
  }
1149
1190
  let o = r;
1150
1191
  for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
1151
- if (i === n) return $t(e.substring(o, r));
1192
+ if (i === n) return sn(e.substring(o, r));
1152
1193
  }
1153
1194
  return null;
1154
1195
  }
1155
- //#endregion
1156
- //#region ../types/src/rich-text.ts
1157
- var tn = /<\/?p\b[^<>]*>/gi, nn = /<p\b([^<>]*)>\s*<\/p>/gi;
1158
- function rn(e) {
1159
- return e.replace(tn, "").trim() === "";
1196
+ // ../types/src/rich-text.ts
1197
+ var ln = /<\/?p\b[^<>]*>/gi, un = /<p\b([^<>]*)>\s*<\/p>/gi;
1198
+ function dn(e) {
1199
+ return e.replace(ln, "").trim() === "";
1160
1200
  }
1161
- function an(e) {
1162
- return rn(e) ? e : e.replace(nn, "<p$1>&nbsp;</p>");
1201
+ function fn(e) {
1202
+ return dn(e) ? e : e.replace(un, "<p$1>&nbsp;</p>");
1163
1203
  }
1164
- //#endregion
1165
- //#region ../types/src/fonts.ts
1166
- var on = {
1204
+ // ../types/src/fonts.ts
1205
+ var pn = {
1167
1206
  arial: "Arial, sans-serif",
1168
1207
  helvetica: "Helvetica, sans-serif",
1169
1208
  georgia: "Georgia, serif",
@@ -1172,13 +1211,13 @@ var on = {
1172
1211
  "trebuchet ms": "'Trebuchet MS', sans-serif",
1173
1212
  "courier new": "'Courier New', monospace",
1174
1213
  tahoma: "Tahoma, sans-serif"
1175
- }, sn = /* @__PURE__ */ new Set([
1214
+ }, mn = /* @__PURE__ */ new Set([
1176
1215
  "inherit",
1177
1216
  "initial",
1178
1217
  "unset",
1179
1218
  "revert",
1180
1219
  "revert-layer"
1181
- ]), cn = /* @__PURE__ */ new Set([
1220
+ ]), hn = /* @__PURE__ */ new Set([
1182
1221
  "serif",
1183
1222
  "sans-serif",
1184
1223
  "monospace",
@@ -1193,14 +1232,14 @@ var on = {
1193
1232
  "math",
1194
1233
  "fangsong"
1195
1234
  ]);
1196
- function ln(e) {
1235
+ function gn(e) {
1197
1236
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
1198
1237
  }
1199
1238
  function J(e) {
1200
1239
  if (typeof e != "string") return [];
1201
1240
  let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
1202
1241
  for (;;) {
1203
- for (; r < t.length && ln(t[r]);) r++;
1242
+ for (; r < t.length && gn(t[r]);) r++;
1204
1243
  if (r >= t.length) return [];
1205
1244
  let e = t[r];
1206
1245
  if (e === "\"" || e === "'") {
@@ -1217,7 +1256,7 @@ function J(e) {
1217
1256
  }
1218
1257
  }
1219
1258
  if (!o) return [];
1220
- for (; a < t.length && ln(t[a]);) a++;
1259
+ for (; a < t.length && gn(t[a]);) a++;
1221
1260
  if (a < t.length && t[a] !== ",") return [];
1222
1261
  n.push({
1223
1262
  name: i,
@@ -1225,7 +1264,7 @@ function J(e) {
1225
1264
  }), r = a;
1226
1265
  } else {
1227
1266
  let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
1228
- if (a === "" || a.includes("\"") || a.includes("'") || sn.has(a.toLowerCase())) return [];
1267
+ if (a === "" || a.includes("\"") || a.includes("'") || mn.has(a.toLowerCase())) return [];
1229
1268
  n.push({
1230
1269
  name: a,
1231
1270
  quoted: !1
@@ -1235,25 +1274,24 @@ function J(e) {
1235
1274
  r++;
1236
1275
  }
1237
1276
  }
1238
- function un(e) {
1277
+ function _n(e) {
1239
1278
  return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
1240
1279
  }
1241
- function dn(e) {
1242
- return !e.quoted && cn.has(e.name.toLowerCase());
1280
+ function vn(e) {
1281
+ return !e.quoted && hn.has(e.name.toLowerCase());
1243
1282
  }
1244
- function fn(e) {
1283
+ function yn(e) {
1245
1284
  return J(e)[0]?.name ?? "";
1246
1285
  }
1247
- function pn(e, t) {
1248
- let n = (e) => `${un(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
1286
+ function bn(e, t) {
1287
+ let n = (e) => `${_n(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
1249
1288
  if (i) return n(i);
1250
1289
  let a = J(e);
1251
1290
  if (a.length !== 1) return e;
1252
1291
  let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
1253
- return c ? n(c) : on[s] || (dn(o) ? e : `${un(o.name)}, ${t.defaultFallback}`);
1292
+ return c ? n(c) : pn[s] || (vn(o) ? e : `${_n(o.name)}, ${t.defaultFallback}`);
1254
1293
  }
1255
- //#endregion
1256
- //#region ../types/src/merge-tags.ts
1294
+ // ../types/src/merge-tags.ts
1257
1295
  var Y = {
1258
1296
  liquid: {
1259
1297
  value: /\{\{.+?\}\}/g,
@@ -1280,26 +1318,26 @@ var Y = {
1280
1318
  closer: "=%%"
1281
1319
  }
1282
1320
  };
1283
- function mn(e) {
1321
+ function xn(e) {
1284
1322
  return typeof e == "string" && e.trim() !== "" ? e : null;
1285
1323
  }
1286
- function hn(e) {
1324
+ function Sn(e) {
1287
1325
  return Object.values(Y).find((t) => t.value.source === e.value.source) ?? null;
1288
1326
  }
1289
- function gn(e) {
1290
- return mn(e.opener) ?? hn(e)?.opener ?? null;
1327
+ function Cn(e) {
1328
+ return xn(e.opener) ?? Sn(e)?.opener ?? null;
1291
1329
  }
1292
- function _n(e) {
1293
- return mn(e.closer) ?? hn(e)?.closer ?? null;
1330
+ function wn(e) {
1331
+ return xn(e.closer) ?? Sn(e)?.closer ?? null;
1294
1332
  }
1295
- function vn(e) {
1333
+ function Tn(e) {
1296
1334
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
1297
1335
  }
1298
1336
  function X(e) {
1299
1337
  let t = e.source, n = e.flags.replace("g", "");
1300
1338
  return RegExp(`^${t}$`, n);
1301
1339
  }
1302
- function yn(e, t) {
1340
+ function En(e, t) {
1303
1341
  let n = e?.trim() || "";
1304
1342
  return !X(t.logic).test(n) && X(t.value).test(n);
1305
1343
  }
@@ -1307,41 +1345,41 @@ function Z(e, t) {
1307
1345
  let n = t.find((t) => t.value === e);
1308
1346
  return n ? n.label : e;
1309
1347
  }
1310
- function bn(e, t) {
1348
+ function Dn(e, t) {
1311
1349
  return $(e, "data-merge-tag", (e) => Z(e, t));
1312
1350
  }
1313
1351
  function Q(e, t) {
1314
1352
  return t.find((t) => t.value === e)?.sample;
1315
1353
  }
1316
- function xn(e, t) {
1317
- return $(e, "data-merge-tag", (e) => wn(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
1354
+ function On(e, t) {
1355
+ return $(e, "data-merge-tag", (e) => jn(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
1318
1356
  }
1319
- function Sn(e) {
1357
+ function kn(e) {
1320
1358
  return e.some((e) => e.sample !== void 0);
1321
1359
  }
1322
- function Cn(e, t) {
1360
+ function An(e, t) {
1323
1361
  if (!e) return e;
1324
1362
  let n = e;
1325
1363
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
1326
1364
  return n;
1327
1365
  }
1328
- function wn(e) {
1366
+ function jn(e) {
1329
1367
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
1330
1368
  }
1331
- function Tn(e, t) {
1369
+ function Mn(e, t) {
1332
1370
  if (!e) return !1;
1333
1371
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
1334
1372
  return n.test(e) || r.test(e);
1335
1373
  }
1336
- function En(e, t) {
1374
+ function Nn(e, t) {
1337
1375
  return X(t.logic).test(e?.trim() || "");
1338
1376
  }
1339
- function Dn(e, t) {
1377
+ function Pn(e, t) {
1340
1378
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
1341
1379
  return r && r[1] ? r[1].toUpperCase() : e;
1342
1380
  }
1343
- function On(e, t) {
1344
- return $(e, "data-logic-merge-tag", (e) => Dn(e, t));
1381
+ function Fn(e, t) {
1382
+ return $(e, "data-logic-merge-tag", (e) => Pn(e, t));
1345
1383
  }
1346
1384
  function $(e, t, n, r) {
1347
1385
  let i = "", a = 0;
@@ -1356,7 +1394,7 @@ function $(e, t, n, r) {
1356
1394
  i += e.substring(a, o + 5), a = o + 5;
1357
1395
  continue;
1358
1396
  }
1359
- let c = Xt(e, o + 5);
1397
+ let c = rn(e, o + 5);
1360
1398
  if (c === -1) {
1361
1399
  i += e.substring(a);
1362
1400
  break;
@@ -1366,7 +1404,7 @@ function $(e, t, n, r) {
1366
1404
  i += e.substring(a);
1367
1405
  break;
1368
1406
  }
1369
- let u = en(e.substring(o + 5, c), t);
1407
+ let u = cn(e.substring(o + 5, c), t);
1370
1408
  if (u === null) {
1371
1409
  i += e.substring(a, o + 5), a = o + 5;
1372
1410
  continue;
@@ -1376,12 +1414,10 @@ function $(e, t, n, r) {
1376
1414
  }
1377
1415
  return i;
1378
1416
  }
1379
- //#endregion
1380
- //#region ../types/src/preview-resolution.ts
1381
- function kn(e) {
1417
+ // ../types/src/preview-resolution.ts
1418
+ function In(e) {
1382
1419
  return typeof e != "object" || !e ? !1 : Array.isArray(e.blocks);
1383
1420
  }
1384
- //#endregion
1385
- export { Be as $, Pt as A, ae as At, Mt as B, c as Bt, en as C, m as Ct, Wt as D, fe as Dt, Ut as E, le as Et, Tt as F, re as Ft, St as G, wt as H, r as Ht, vt as I, i as It, mt as J, Nt as K, Et as L, e as Lt, kt as M, ee as Mt, jt as N, te as Nt, Vt as O, de as Ot, bt as P, ne as Pt, B as Q, _t as R, s as Rt, Xt as S, h as St, Ht as T, ue as Tt, Ot as U, o as Ut, Ct as V, n as Vt, gt as W, t as Wt, ct as X, dt as Y, lt as Z, fn as _, Ne as _t, Z as a, Ke as at, an as b, _ as bt, gn as c, L as ct, yn as d, qe as dt, Je as et, On as f, Le as ft, Cn as g, Pe as gt, xn as h, Ie as ht, Dn as i, ze as it, yt as j, d as jt, G as k, se as kt, Sn as l, Ue as lt, vn as m, R as mt, Y as n, Ve as nt, Q as o, Re as ot, bn as p, He as pt, U as q, Tn as r, Ge as rt, _n as s, I as st, kn as t, Ye as tt, En as u, We as ut, J as v, g as vt, Jt as w, ce as wt, rn as x, me as xt, pn as y, he as yt, xt as z, l as zt };
1421
+ export { mt as $, Wt as A, ue as At, yt as B, re as Bt, cn as C, g as Ct, tn as D, h as Dt, $t as E, me as Et, bt as F, ae as Ft, wt as G, c as Gt, vt as H, e as Ht, At as I, d as It, _t as J, o as Jt, Tt as K, n as Kt, Mt as L, ee as Lt, Ht as M, fe as Mt, G as N, de as Nt, Yt as O, m as Ot, Ft as P, se as Pt, ht as Q, xt as R, te as Rt, rn as S, Ne as St, Xt as T, _ as Tt, St as U, s as Ut, Dt as V, i as Vt, Nt as W, l as Wt, Pt as X, Ct as Y, t as Yt, U as Z, yn as _, Le as _t, Z as a, Je as at, fn as b, Ie as bt, Cn as c, Ge as ct, En as d, Re as dt, dt as et, Fn as f, I as ft, An as g, qe as gt, On as h, We as ht, Pn as i, Be as it, Gt as j, le as jt, Ut as k, ce as kt, kn as l, ze as lt, Tn as m, Ue as mt, Y as n, lt as nt, Q as o, Ye as ot, Dn as p, L as pt, kt as q, r as qt, Mn as r, B as rt, wn as s, Ve as st, In as t, ct as tt, Nn as u, Ke as ut, J as v, He as vt, Zt as w, he as wt, dn as x, Pe as xt, bn as y, R as yt, Et as z, ne as zt };
1386
1422
 
1387
- //# sourceMappingURL=src-BNFnxfrA.js.map
1423
+ //# sourceMappingURL=src-C9DTvn1H.js.map