@templatical/editor 0.60.3 → 0.60.4

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 (193) hide show
  1. package/dist/{AiChatPanel-DPoq2Til.js → AiChatPanel-CjUnhJGB.js} +8 -8
  2. package/dist/{AiPanels-UdfhAzzu.js → AiPanels-DwI9KjjI.js} +1 -1
  3. package/dist/{AiRewriteMenu-DOreXB10.js → AiRewriteMenu-Bh1cIX8F.js} +6 -6
  4. package/dist/{BlockIssueBadge-DQ_6NI4p.js → BlockIssueBadge-Bug5iqcK.js} +2 -2
  5. package/dist/{BlockPreviewCanvas-YaFum01Z.js → BlockPreviewCanvas-C_N6f_FS.js} +3 -3
  6. package/dist/{CloudPanels-Bxv7vUYr.js → CloudPanels-BS49EsuN.js} +3 -3
  7. package/dist/{CollaborationNotices-PqWv0q8W.js → CollaborationNotices-BM35YG72.js} +1 -1
  8. package/dist/{CollaboratorBar-p-_PWqXW.js → CollaboratorBar-DMsEOndt.js} +1 -1
  9. package/dist/{CommentsPanel-BUo-YhSX.js → CommentsPanel-BSLk23YP.js} +1 -1
  10. package/dist/{CommentsSidebar-D_Pz7FPz.js → CommentsSidebar-L-DgP_kM.js} +10 -10
  11. package/dist/{CountdownToolbar-BQdhVNaK.js → CountdownToolbar-B6erqTbz.js} +3 -3
  12. package/dist/{IssuesPanel-C7mBrK6a.js → IssuesPanel-CeCvUfa7.js} +8 -8
  13. package/dist/{LanguageMenu-wS43Ck1x.js → LanguageMenu-DsfCHdVi.js} +8 -8
  14. package/dist/{LocaleNotices-CAvDAawJ.js → LocaleNotices-BxR3xcLl.js} +2 -2
  15. package/dist/{LogicTagInsertButton-Clc3JTg_.js → LogicTagInsertButton-BzEZUTRZ.js} +3 -3
  16. package/dist/{MediaEditModal-YXOL0d_y.js → MediaEditModal-Bg-7RojG.js} +1 -1
  17. package/dist/{MediaPanels-VCv5epgs.js → MediaPanels-E9gLZ1Qb.js} +1 -1
  18. package/dist/{MergeTagInput-B5a9noTB.js → MergeTagInput-By2FSStk.js} +1 -1
  19. package/dist/{MergeTagModeToggle-D1r2aH5x.js → MergeTagModeToggle-DtjOZhoD.js} +3 -3
  20. package/dist/{MergeTagTextarea-CA9dPfMH.js → MergeTagTextarea-q6eeDD2l.js} +2 -2
  21. package/dist/{ParagraphEditor-zMOqNnmx.js → ParagraphEditor-25SNi_8O.js} +23 -23
  22. package/dist/{RestoreVersionDialog-DdPpilBS.js → RestoreVersionDialog-BXtCxJF1.js} +3 -3
  23. package/dist/{RichTextEditorContent-gnRxu4-L.js → RichTextEditorContent-B1p7Ykq8.js} +4 -4
  24. package/dist/{SaveBlockDialog-CQzccFIM.js → SaveBlockDialog-k1lxEBVW.js} +7 -7
  25. package/dist/{SavedBlocksBrowserModal-8cZ9z-pL.js → SavedBlocksBrowserModal-CV-8mDPj.js} +9 -9
  26. package/dist/{SavedBlocksPanels-C9Oztudc.js → SavedBlocksPanels-9nZj1jG_.js} +1 -1
  27. package/dist/{SavedBlocksPickBar-udG0wuTf.js → SavedBlocksPickBar-Dy6NN9tm.js} +2 -2
  28. package/dist/{TemplateSettings-DsaSsCC8.js → TemplateSettings-DWxdUdM5.js} +6 -6
  29. package/dist/{TestEmailModal-BP6954nj.js → TestEmailModal-BAkkZTaZ.js} +7 -7
  30. package/dist/{TestEmailPanel-5YlcWwPJ.js → TestEmailPanel-ccT2E3em.js} +1 -1
  31. package/dist/{TitleEditor-Cy-6WZuK.js → TitleEditor-B19dYnER.js} +9 -9
  32. package/dist/{Toolbar-Br0W6NE0.js → Toolbar-DxlZq_36.js} +27 -27
  33. package/dist/{TplModal-DnytM7wO.js → TplModal-Bp2qPmQw.js} +1 -1
  34. package/dist/{VersionHistoryMenu-D-RCk3oB.js → VersionHistoryMenu-B3-xJ7GO.js} +5 -5
  35. package/dist/{VersionHistoryPanels-DIqWP71K.js → VersionHistoryPanels-wAVDmhnP.js} +1 -1
  36. package/dist/{VersionPreviewBanner-DMg2sw3V.js → VersionPreviewBanner-DLAB4ZbS.js} +1 -1
  37. package/dist/{WrapperBlock-DoNQX0Ml.js → WrapperBlock-DHnD6Exl.js} +2 -2
  38. package/dist/{blockTypeIcons-BePGuX0b.js → blockTypeIcons-C691ZY1l.js} +3 -3
  39. package/dist/bundle-stats.json +6 -6
  40. package/dist/cdn/chunks/{AiChatPanel-cIT2haLo.js → AiChatPanel-DTYmFRwb.js} +4 -4
  41. package/dist/cdn/chunks/{AiChatPanel-cIT2haLo.js.map → AiChatPanel-DTYmFRwb.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiPanels-B4GG8w3J.js → AiPanels-BW9ze-6O.js} +2 -2
  43. package/dist/cdn/chunks/{AiPanels-B4GG8w3J.js.map → AiPanels-BW9ze-6O.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiRewriteMenu-BqwwNUzj.js → AiRewriteMenu-B9b92d0R.js} +4 -4
  45. package/dist/cdn/chunks/{AiRewriteMenu-BqwwNUzj.js.map → AiRewriteMenu-B9b92d0R.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-C50pmOMZ.js → BlockIssueBadge-fYeNnepj.js} +2 -2
  47. package/dist/cdn/chunks/{BlockIssueBadge-C50pmOMZ.js.map → BlockIssueBadge-fYeNnepj.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockPreviewCanvas-T13OIi1f.js → BlockPreviewCanvas-CLid1x0c.js} +4 -4
  49. package/dist/cdn/chunks/{BlockPreviewCanvas-T13OIi1f.js.map → BlockPreviewCanvas-CLid1x0c.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-DDNWZ7ET.js → CloudPanels-D4dslsyk.js} +3 -3
  51. package/dist/cdn/chunks/{CloudPanels-DDNWZ7ET.js.map → CloudPanels-D4dslsyk.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaborationNotices-CTmjjbHv.js → CollaborationNotices-COkmBmps.js} +2 -2
  53. package/dist/cdn/chunks/{CollaborationNotices-CTmjjbHv.js.map → CollaborationNotices-COkmBmps.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-CzHjawjF.js → CollaboratorBar-BSzI8YIU.js} +2 -2
  55. package/dist/cdn/chunks/{CollaboratorBar-CzHjawjF.js.map → CollaboratorBar-BSzI8YIU.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-Dh0_eRBe.js → CommentsPanel-BynxXJ-F.js} +2 -2
  57. package/dist/cdn/chunks/{CommentsPanel-Dh0_eRBe.js.map → CommentsPanel-BynxXJ-F.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-JxZ-O2mY.js → CommentsSidebar-C81N5Hwr.js} +2 -2
  59. package/dist/cdn/chunks/{CommentsSidebar-JxZ-O2mY.js.map → CommentsSidebar-C81N5Hwr.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownToolbar-D16RWxkh.js → CountdownToolbar-f1aqEba0.js} +4 -4
  61. package/dist/cdn/chunks/{CountdownToolbar-D16RWxkh.js.map → CountdownToolbar-f1aqEba0.js.map} +1 -1
  62. package/dist/cdn/chunks/{IssuesPanel-BtAn12hl.js → IssuesPanel-DgxiS3hF.js} +2 -2
  63. package/dist/cdn/chunks/{IssuesPanel-BtAn12hl.js.map → IssuesPanel-DgxiS3hF.js.map} +1 -1
  64. package/dist/cdn/chunks/{LanguageMenu-D71nO6LO.js → LanguageMenu-CJp7XdfG.js} +3 -3
  65. package/dist/cdn/chunks/{LanguageMenu-D71nO6LO.js.map → LanguageMenu-CJp7XdfG.js.map} +1 -1
  66. package/dist/cdn/chunks/{LocaleNotices-CzrNKR-N.js → LocaleNotices-D5vZzcUj.js} +2 -2
  67. package/dist/cdn/chunks/{LocaleNotices-CzrNKR-N.js.map → LocaleNotices-D5vZzcUj.js.map} +1 -1
  68. package/dist/cdn/chunks/{LogicTagInsertButton-B4wuPoMa.js → LogicTagInsertButton-DGg1Wvhp.js} +2 -2
  69. package/dist/cdn/chunks/{LogicTagInsertButton-B4wuPoMa.js.map → LogicTagInsertButton-DGg1Wvhp.js.map} +1 -1
  70. package/dist/cdn/chunks/{MediaEditModal-DJ2wxInt.js → MediaEditModal-BQO6ggJK.js} +2 -2
  71. package/dist/cdn/chunks/{MediaEditModal-DJ2wxInt.js.map → MediaEditModal-BQO6ggJK.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaPanels-BJawNjr9.js → MediaPanels-Ciahwsyt.js} +2 -2
  73. package/dist/cdn/chunks/{MediaPanels-BJawNjr9.js.map → MediaPanels-Ciahwsyt.js.map} +1 -1
  74. package/dist/cdn/chunks/{MergeTagInput-DZD-p4nR.js → MergeTagInput-BVfTwujW.js} +2 -2
  75. package/dist/cdn/chunks/{MergeTagInput-DZD-p4nR.js.map → MergeTagInput-BVfTwujW.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagModeToggle-DGuJCgqO.js → MergeTagModeToggle-BoI0C1Y6.js} +2 -2
  77. package/dist/cdn/chunks/{MergeTagModeToggle-DGuJCgqO.js.map → MergeTagModeToggle-BoI0C1Y6.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagTextarea-BRiaRBr_.js → MergeTagTextarea-DMXZgGUF.js} +3 -3
  79. package/dist/cdn/chunks/{MergeTagTextarea-BRiaRBr_.js.map → MergeTagTextarea-DMXZgGUF.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-BClN3WxA.js → ParagraphEditor-Ce7_Ix0K.js} +24 -24
  81. package/dist/cdn/chunks/{ParagraphEditor-BClN3WxA.js.map → ParagraphEditor-Ce7_Ix0K.js.map} +1 -1
  82. package/dist/cdn/chunks/{RestoreVersionDialog-CVfKIT1K.js → RestoreVersionDialog-JmMLhN6G.js} +3 -3
  83. package/dist/cdn/chunks/{RestoreVersionDialog-CVfKIT1K.js.map → RestoreVersionDialog-JmMLhN6G.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-CtV0Q0SO.js → RichTextEditorContent-D3ihUF8v.js} +4 -4
  85. package/dist/cdn/chunks/{RichTextEditorContent-CtV0Q0SO.js.map → RichTextEditorContent-D3ihUF8v.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-Cy6mI_xB.js → SaveBlockDialog-B-2amBN5.js} +6 -6
  87. package/dist/cdn/chunks/{SaveBlockDialog-Cy6mI_xB.js.map → SaveBlockDialog-B-2amBN5.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DW917QDB.js → SavedBlocksBrowserModal-BR6fQ222.js} +6 -6
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DW917QDB.js.map → SavedBlocksBrowserModal-BR6fQ222.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-Cyzerpxs.js → SavedBlocksPanels-DVNNshfr.js} +2 -2
  91. package/dist/cdn/chunks/{SavedBlocksPanels-Cyzerpxs.js.map → SavedBlocksPanels-DVNNshfr.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-D6n86773.js → SavedBlocksPickBar-BfxLHLQV.js} +3 -3
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-D6n86773.js.map → SavedBlocksPickBar-BfxLHLQV.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateSettings--_ZfbhnU.js → TemplateSettings-TMFrRV2c.js} +4 -4
  95. package/dist/cdn/chunks/{TemplateSettings--_ZfbhnU.js.map → TemplateSettings-TMFrRV2c.js.map} +1 -1
  96. package/dist/cdn/chunks/{TestEmailModal-V_UFUIaf.js → TestEmailModal-tTU35BKZ.js} +6 -6
  97. package/dist/cdn/chunks/{TestEmailModal-V_UFUIaf.js.map → TestEmailModal-tTU35BKZ.js.map} +1 -1
  98. package/dist/cdn/chunks/{TestEmailPanel-CBfqsO2u.js → TestEmailPanel-BNJBVwx0.js} +2 -2
  99. package/dist/cdn/chunks/{TestEmailPanel-CBfqsO2u.js.map → TestEmailPanel-BNJBVwx0.js.map} +1 -1
  100. package/dist/cdn/chunks/{TitleEditor-CimWOQVn.js → TitleEditor-BbscL_C1.js} +8 -8
  101. package/dist/cdn/chunks/{TitleEditor-CimWOQVn.js.map → TitleEditor-BbscL_C1.js.map} +1 -1
  102. package/dist/cdn/chunks/{Toolbar-czJfutfE.js → Toolbar-BxzyS69X.js} +16 -16
  103. package/dist/cdn/chunks/{Toolbar-czJfutfE.js.map → Toolbar-BxzyS69X.js.map} +1 -1
  104. package/dist/cdn/chunks/{TplModal-BtJJ5-En.js → TplModal-Bzhc_l8y.js} +2 -2
  105. package/dist/cdn/chunks/{TplModal-BtJJ5-En.js.map → TplModal-Bzhc_l8y.js.map} +1 -1
  106. package/dist/cdn/chunks/{VersionHistoryMenu-CVGlUPwS.js → VersionHistoryMenu-DTDO48HI.js} +2 -2
  107. package/dist/cdn/chunks/{VersionHistoryMenu-CVGlUPwS.js.map → VersionHistoryMenu-DTDO48HI.js.map} +1 -1
  108. package/dist/cdn/chunks/{VersionHistoryPanels-BS0USHsp.js → VersionHistoryPanels-Bbb1xUJs.js} +2 -2
  109. package/dist/cdn/chunks/{VersionHistoryPanels-BS0USHsp.js.map → VersionHistoryPanels-Bbb1xUJs.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionPreviewBanner-5RFz4AQx.js → VersionPreviewBanner-C1H_fYAr.js} +2 -2
  111. package/dist/cdn/chunks/{VersionPreviewBanner-5RFz4AQx.js.map → VersionPreviewBanner-C1H_fYAr.js.map} +1 -1
  112. package/dist/cdn/chunks/{WrapperBlock-CSjYFYUT.js → WrapperBlock-BboijK5T.js} +3 -3
  113. package/dist/cdn/chunks/{WrapperBlock-CSjYFYUT.js.map → WrapperBlock-BboijK5T.js.map} +1 -1
  114. package/dist/cdn/chunks/{blockTypeIcons-BOonB9gK.js → blockTypeIcons-ZKw-Eiu0.js} +2 -2
  115. package/dist/cdn/chunks/{blockTypeIcons-BOonB9gK.js.map → blockTypeIcons-ZKw-Eiu0.js.map} +1 -1
  116. package/dist/cdn/chunks/{composables-BHsV8gkq.js → composables-C77dGo-I.js} +7 -7
  117. package/dist/cdn/chunks/{composables-BHsV8gkq.js.map → composables-C77dGo-I.js.map} +1 -1
  118. package/dist/cdn/chunks/dompurify-BflADeuH.js +850 -0
  119. package/dist/cdn/chunks/dompurify-BflADeuH.js.map +1 -0
  120. package/dist/cdn/chunks/{editor-modal-BVM_0uoL.js → editor-modal-BlSmX9Ch.js} +4 -4
  121. package/dist/cdn/chunks/{editor-modal-BVM_0uoL.js.map → editor-modal-BlSmX9Ch.js.map} +1 -1
  122. package/dist/cdn/chunks/en-jObtIVCp.js +1 -0
  123. package/dist/cdn/chunks/{extensions-BeGvJ6f0.js → extensions-Bq9nXmBP.js} +3 -3
  124. package/dist/cdn/chunks/{extensions-BeGvJ6f0.js.map → extensions-Bq9nXmBP.js.map} +1 -1
  125. package/dist/cdn/chunks/{icons-CWEBTtbR.js → icons-DdVB-5WO.js} +28 -28
  126. package/dist/cdn/chunks/{icons-CWEBTtbR.js.map → icons-DdVB-5WO.js.map} +1 -1
  127. package/dist/cdn/chunks/{sanitizeHtml-Db0S2JVP.js → sanitizeHtml-Plkmw1Qt.js} +2 -2
  128. package/dist/cdn/chunks/{sanitizeHtml-Db0S2JVP.js.map → sanitizeHtml-Plkmw1Qt.js.map} +1 -1
  129. package/dist/cdn/chunks/{socialIcons-DMelHF3p.js → socialIcons-CSe4YJ52.js} +2 -2
  130. package/dist/cdn/chunks/{socialIcons-DMelHF3p.js.map → socialIcons-CSe4YJ52.js.map} +1 -1
  131. package/dist/cdn/chunks/{src-B32tyank.js → src-1MSPRtI8.js} +16 -14
  132. package/dist/cdn/chunks/src-1MSPRtI8.js.map +1 -0
  133. package/dist/cdn/chunks/{tiptap-LIEsAVOF.js → tiptap-DDhueoan.js} +15 -7
  134. package/dist/cdn/chunks/{tiptap-LIEsAVOF.js.map → tiptap-DDhueoan.js.map} +1 -1
  135. package/dist/cdn/editor.js +16 -16
  136. package/dist/{check-C82yyyf1.js → check-8ZykoWzl.js} +1 -1
  137. package/dist/{chevron-down-BaBVjNbM.js → chevron-down-D_CUJHwi.js} +1 -1
  138. package/dist/{chevron-right-DkS-bw8X.js → chevron-right-B2WYkQtG.js} +1 -1
  139. package/dist/{chevron-up-C1KzUIK4.js → chevron-up-L-H27use.js} +1 -1
  140. package/dist/{circle-exclamation-point-DsmqtTUQ.js → circle-exclamation-point-BCx1tR91.js} +1 -1
  141. package/dist/{clock-dpIs7vo0.js → clock-DOOnNINY.js} +1 -1
  142. package/dist/{composables-DG_CMpuY.js → composables-Bu_OmyjT.js} +13 -13
  143. package/dist/{createLucideIcon-BSam2AUu.js → createLucideIcon-BKeRiObH.js} +5 -5
  144. package/dist/{dist-CRcnmuxb.js → dist-B1bGGOA0.js} +2 -2
  145. package/dist/{dist-DRbuXmjl.js → dist-C3ZVR_pd.js} +2 -2
  146. package/dist/{dist-BvNveHdP.js → dist-C8aVVj28.js} +2 -2
  147. package/dist/dist-CTzstDyz.js +4 -0
  148. package/dist/{dist-xc8l1i2C.js → dist-CcxrHURm.js} +786 -778
  149. package/dist/{dist-LrtNpIZD.js → dist-D41-1sSL.js} +6 -6
  150. package/dist/{dist-BKFfCbrD.js → dist-DRJhbfT9.js} +2 -2
  151. package/dist/{dist-DCGVHlXC.js → dist-DkQutATU.js} +2 -2
  152. package/dist/{dist-BMULQVZF.js → dist-DyrUc7rM.js} +2 -2
  153. package/dist/{dist-CiOtB5na.js → dist-p_84-Inl.js} +2 -2
  154. package/dist/{dist-Bsg1RBUb.js → dist-tG9_FTOs.js} +2 -2
  155. package/dist/dist-zQ8L1LNg.js +4 -0
  156. package/dist/{editor-modal-odubnc9x.js → editor-modal-CRtEWHbQ.js} +15 -15
  157. package/dist/en-CMswCXqE.js +1 -0
  158. package/dist/{extensions-Cao-H_tB.js → extensions-zHf8YFRw.js} +4 -4
  159. package/dist/{eye-CxCHEszj.js → eye-BjZOVab7.js} +1 -1
  160. package/dist/{image-DvXPzqNd.js → image-g47lDP0J.js} +1 -1
  161. package/dist/{info-2KHWaZ2L.js → info-DXij4QjB.js} +1 -1
  162. package/dist/{link-_OmrcJMv.js → link-BFJF0mWz.js} +1 -1
  163. package/dist/{list-Dekd7JE8.js → list-Cso9vnLq.js} +1 -1
  164. package/dist/{loader-circle-D_hT5mFS.js → loader-circle-uLY01591.js} +1 -1
  165. package/dist/{message-circle-DDbiG-jz.js → message-circle-amY03UMa.js} +1 -1
  166. package/dist/{package-cORUe57D.js → package-DnjoSQa1.js} +1 -1
  167. package/dist/{pencil-D67H4fxq.js → pencil-D1HBG4pb.js} +1 -1
  168. package/dist/{plus-BpTZAx28.js → plus-PzFvtj-Z.js} +1 -1
  169. package/dist/{refresh-cw-B4T0IFwI.js → refresh-cw-BPDv-S-4.js} +1 -1
  170. package/dist/{rotate-ccw-BDQgjpuo.js → rotate-ccw-DQZVEj1V.js} +1 -1
  171. package/dist/sanitizeHtml-DxmFirMi.js +945 -0
  172. package/dist/{search-Dp9pkaVt.js → search-BUBeKVdD.js} +1 -1
  173. package/dist/{send-DO9GhgCH.js → send-BJEuoIc2.js} +1 -1
  174. package/dist/{smartphone-CPW3I3hV.js → smartphone-DZ5xyNU4.js} +1 -1
  175. package/dist/{socialIcons-DXOO2y7u.js → socialIcons-mWE33bOn.js} +3 -3
  176. package/dist/{sparkles-CIBjNfij.js → sparkles-zWGR8hrs.js} +1 -1
  177. package/dist/{square-3W65qrrH.js → square--3H462TJ.js} +1 -1
  178. package/dist/templatical-editor.js +30 -30
  179. package/dist/{text-align-start-Bs70tpRU.js → text-align-start-B5Dx2Ylg.js} +13 -13
  180. package/dist/{trash-CTzhAm1o.js → trash-CJsobpw0.js} +1 -1
  181. package/dist/{triangle-exclamation-point-D_13CuJY.js → triangle-exclamation-point-Bi7ZKTZU.js} +1 -1
  182. package/dist/{upload-DFxkP9MI.js → upload-DZ_-FNJ4.js} +1 -1
  183. package/dist/{useScrollToBlock-194ePl4q.js → useScrollToBlock-eZXiGa8o.js} +1 -1
  184. package/dist/{x-D7L8mLHJ.js → x-CuyPLm0U.js} +1 -1
  185. package/package.json +23 -23
  186. package/dist/cdn/chunks/dompurify-JVtr5-B1.js +0 -872
  187. package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +0 -1
  188. package/dist/cdn/chunks/en-DlDEofnd.js +0 -1
  189. package/dist/cdn/chunks/src-B32tyank.js.map +0 -1
  190. package/dist/dist-BnPPgVlu.js +0 -4
  191. package/dist/dist-zAzcxDCA.js +0 -4
  192. package/dist/en-CAImT1hl.js +0 -1
  193. package/dist/sanitizeHtml-Ru5_-IbM.js +0 -973
@@ -1,872 +0,0 @@
1
- // ../../node_modules/.pnpm/dompurify@3.4.17/node_modules/dompurify/dist/purify.es.mjs
2
- function e(e, t) {
3
- this.v = e, this.k = t;
4
- }
5
- function t(e, t) {
6
- (t == null || t > e.length) && (t = e.length);
7
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
8
- return r;
9
- }
10
- function n(e) {
11
- if (Array.isArray(e)) return e;
12
- }
13
- function r(e, t) {
14
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
15
- if (n != null) {
16
- var r, i, a, o, s = [], c = !0, l = !1;
17
- try {
18
- if (a = (n = n.call(e)).next, t === 0) {
19
- if (Object(n) !== n) return;
20
- c = !1;
21
- } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
22
- } catch (e) {
23
- l = !0, i = e;
24
- } finally {
25
- try {
26
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
27
- } finally {
28
- if (l) throw i;
29
- }
30
- }
31
- return s;
32
- }
33
- }
34
- function i() {
35
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
36
- }
37
- function a(e, t) {
38
- return n(e) || r(e, t) || o(e, t) || i();
39
- }
40
- function o(e, n) {
41
- if (e) {
42
- if (typeof e == "string") return t(e, n);
43
- var r = {}.toString.call(e).slice(8, -1);
44
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? t(e, n) : void 0;
45
- }
46
- }
47
- function s(t) {
48
- var n, r;
49
- function i(n, r) {
50
- try {
51
- var o = t[n](r), s = o.value, c = s instanceof e;
52
- Promise.resolve(c ? s.v : s).then(function(e) {
53
- if (c) {
54
- var r = n === "return" && s.k ? n : "next";
55
- if (!s.k || e.done) return i(r, e);
56
- e = t[r](e).value;
57
- }
58
- a(!!o.done, e);
59
- }, function(e) {
60
- i("throw", e);
61
- });
62
- } catch (e) {
63
- a(2, e);
64
- }
65
- }
66
- function a(e, t) {
67
- e === 2 ? n.reject(t) : n.resolve({
68
- value: t,
69
- done: e
70
- }), (n = n.next) ? i(n.key, n.arg) : r = null;
71
- }
72
- this._invoke = function(e, t) {
73
- return new Promise(function(a, o) {
74
- var s = {
75
- key: e,
76
- arg: t,
77
- resolve: a,
78
- reject: o,
79
- next: null
80
- };
81
- r ? r = r.next = s : (n = r = s, i(e, t));
82
- });
83
- }, typeof t.return != "function" && (this.return = void 0);
84
- }
85
- s.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
86
- return this;
87
- }, s.prototype.next = function(e) {
88
- return this._invoke("next", e);
89
- }, s.prototype.throw = function(e) {
90
- return this._invoke("throw", e);
91
- }, s.prototype.return = function(e) {
92
- return this._invoke("return", e);
93
- };
94
- var c = Object.entries, l = Object.setPrototypeOf, u = Object.isFrozen, d = Object.getPrototypeOf, f = Object.getOwnPropertyDescriptor, p = Object.freeze, m = Object.seal, h = Object.create, ee = typeof Reflect < "u" && Reflect, te = ee.apply, ne = ee.construct;
95
- p ||= function(e) {
96
- return e;
97
- }, m ||= function(e) {
98
- return e;
99
- }, te ||= function(e, t) {
100
- var n = [...arguments].slice(2);
101
- return e.apply(t, n);
102
- }, ne ||= function(e) {
103
- return new e(...[...arguments].slice(1));
104
- };
105
- var g = T(Array.prototype.forEach), re = T(Array.prototype.lastIndexOf), ie = T(Array.prototype.pop), ae = T(Array.prototype.push), oe = T(Array.prototype.slice), se = T(Array.prototype.splice), _ = Array.isArray, ce = E(Set), le = T(Set.prototype.add), ue = T(Set.prototype.has), v = T(String.prototype.toLowerCase), de = T(String.prototype.toString), fe = T(String.prototype.match), pe = T(String.prototype.replace), me = T(String.prototype.indexOf), he = T(String.prototype.trim), ge = T(Number.prototype.toString), y = T(Boolean.prototype.toString), b = typeof BigInt > "u" ? null : T(BigInt.prototype.toString), _e = typeof Symbol > "u" ? null : T(Symbol.prototype.toString), x = T(Object.prototype.hasOwnProperty), S = T(Object.prototype.toString), C = T(RegExp.prototype.test), w = E(TypeError);
106
- function T(e) {
107
- return function(t) {
108
- t instanceof RegExp && (t.lastIndex = 0);
109
- var n = [...arguments].slice(1);
110
- return te(e, t, n);
111
- };
112
- }
113
- function E(e) {
114
- return function() {
115
- return ne(e, [...arguments]);
116
- };
117
- }
118
- function D(e, t) {
119
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : v;
120
- if (l && l(e, null), !_(t)) return e;
121
- let r = t.length;
122
- for (; r--;) {
123
- let i = t[r];
124
- if (typeof i == "string") {
125
- let e = n(i);
126
- e !== i && (u(t) || (t[r] = e), i = e);
127
- }
128
- e[i] = !0;
129
- }
130
- return e;
131
- }
132
- function ve(e) {
133
- for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
134
- return e;
135
- }
136
- function O(e) {
137
- let t = h(null);
138
- for (let r of c(e)) {
139
- var n = a(r, 2);
140
- let i = n[0], o = n[1];
141
- x(e, i) && (t[i] = _(o) ? ve(o) : o && typeof o == "object" && o.constructor === Object ? O(o) : o);
142
- }
143
- return t;
144
- }
145
- function ye(e) {
146
- switch (typeof e) {
147
- case "string": return e;
148
- case "number": return ge(e);
149
- case "boolean": return y(e);
150
- case "bigint": return b ? b(e) : "0";
151
- case "symbol": return _e ? _e(e) : "Symbol()";
152
- case "undefined": return S(e);
153
- case "function":
154
- case "object": {
155
- if (e === null) return S(e);
156
- let t = e, n = k(t, "toString");
157
- if (typeof n == "function") {
158
- let e = n(t);
159
- return typeof e == "string" ? e : S(e);
160
- }
161
- return S(e);
162
- }
163
- default: return S(e);
164
- }
165
- }
166
- function k(e, t) {
167
- for (; e !== null;) {
168
- let n = f(e, t);
169
- if (n) {
170
- if (n.get) return T(n.get);
171
- if (typeof n.value == "function") return T(n.value);
172
- }
173
- e = d(e);
174
- }
175
- function n() {
176
- return null;
177
- }
178
- return n;
179
- }
180
- function be(e, t) {
181
- for (; e !== null;) {
182
- let n = f(e, t);
183
- if (n) return n.get ? T(n.get) : null;
184
- e = d(e);
185
- }
186
- return null;
187
- }
188
- function xe(e) {
189
- try {
190
- return C(e, ""), !0;
191
- } catch {
192
- return !1;
193
- }
194
- }
195
- var Se = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Ce = p(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), we = p([
196
- "feBlend",
197
- "feColorMatrix",
198
- "feComponentTransfer",
199
- "feComposite",
200
- "feConvolveMatrix",
201
- "feDiffuseLighting",
202
- "feDisplacementMap",
203
- "feDistantLight",
204
- "feDropShadow",
205
- "feFlood",
206
- "feFuncA",
207
- "feFuncB",
208
- "feFuncG",
209
- "feFuncR",
210
- "feGaussianBlur",
211
- "feImage",
212
- "feMerge",
213
- "feMergeNode",
214
- "feMorphology",
215
- "feOffset",
216
- "fePointLight",
217
- "feSpecularLighting",
218
- "feSpotLight",
219
- "feTile",
220
- "feTurbulence"
221
- ]), Te = p([
222
- "animate",
223
- "color-profile",
224
- "cursor",
225
- "discard",
226
- "font-face",
227
- "font-face-format",
228
- "font-face-name",
229
- "font-face-src",
230
- "font-face-uri",
231
- "foreignobject",
232
- "hatch",
233
- "hatchpath",
234
- "mesh",
235
- "meshgradient",
236
- "meshpatch",
237
- "meshrow",
238
- "missing-glyph",
239
- "script",
240
- "set",
241
- "solidcolor",
242
- "unknown",
243
- "use"
244
- ]), Ee = p(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), De = p([
245
- "maction",
246
- "maligngroup",
247
- "malignmark",
248
- "mlongdiv",
249
- "mscarries",
250
- "mscarry",
251
- "msgroup",
252
- "mstack",
253
- "msline",
254
- "msrow",
255
- "semantics",
256
- "annotation",
257
- "annotation-xml",
258
- "mprescripts",
259
- "none"
260
- ]), Oe = p(["#text"]), ke = p(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Ae = p(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), je = p(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Me = p([
261
- "xlink:href",
262
- "xml:id",
263
- "xlink:title",
264
- "xml:space",
265
- "xmlns:xlink"
266
- ]), Ne = m(/{{[\w\W]*|^[\w\W]*}}/g), Pe = m(/<%[\w\W]*|^[\w\W]*%>/g), Fe = m(/\${[\w\W]*/g), Ie = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), Le = m(/^aria-[\-\w]+$/), Re = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), ze = m(/^(?:\w+script|data):/i), Be = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ve = m(/^html$/i), He = m(/^[a-z][.\w]*(-[.\w]+)+$/i), Ue = m(/<[/\w!]/g), We = m(/<[/\w]/g), Ge = m(/<\/no(script|embed|frames)/i), Ke = m(/\/>/i), A = {
267
- element: 1,
268
- attribute: 2,
269
- text: 3,
270
- cdataSection: 4,
271
- entityReference: 5,
272
- entityNode: 6,
273
- processingInstruction: 7,
274
- comment: 8,
275
- document: 9,
276
- documentType: 10,
277
- documentFragment: 11,
278
- notation: 12
279
- }, qe = p(D({}, [
280
- "style",
281
- "script",
282
- "xmp",
283
- "iframe",
284
- "noembed",
285
- "noframes",
286
- "plaintext",
287
- "noscript"
288
- ])), Je = function() {
289
- return typeof window > "u" ? null : window;
290
- }, Ye = function(e, t) {
291
- if (typeof e != "object" || typeof e.createPolicy != "function") return null;
292
- let n = null, r = "data-tt-policy-suffix";
293
- t && t.hasAttribute(r) && (n = t.getAttribute(r));
294
- let i = "dompurify" + (n ? "#" + n : "");
295
- try {
296
- return e.createPolicy(i, {
297
- createHTML(e) {
298
- return e;
299
- },
300
- createScriptURL(e) {
301
- return e;
302
- }
303
- });
304
- } catch {
305
- return console.warn("TrustedTypes policy " + i + " could not be created."), null;
306
- }
307
- }, Xe = function() {
308
- return {
309
- afterSanitizeAttributes: [],
310
- afterSanitizeElements: [],
311
- afterSanitizeShadowDOM: [],
312
- beforeSanitizeAttributes: [],
313
- beforeSanitizeElements: [],
314
- beforeSanitizeShadowDOM: [],
315
- uponSanitizeAttribute: [],
316
- uponSanitizeElement: [],
317
- uponSanitizeShadowNode: []
318
- };
319
- }, j = function(e, t, n, r) {
320
- return x(e, t) && _(e[t]) ? D(r.base ? O(r.base) : {}, e[t], r.transform) : n;
321
- }, Ze = function(e, t, n) {
322
- let r = x(e, t) ? e[t] : void 0;
323
- return r && typeof r == "object" ? O(r) : n();
324
- };
325
- function Qe() {
326
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Je(), t = (e) => Qe(e);
327
- if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== A.document || !e.Element) return t.isSupported = !1, t;
328
- let n = e.document, r = n, i = r.currentScript, a = e.HTMLTemplateElement, o = e.Node, s = e.Element, l = e.NodeFilter, u = e.DOMParser, d = e.trustedTypes, f = s.prototype, ee = k(f, "cloneNode"), te = k(f, "remove"), ne = k(f, "removeAttributeNode"), ge = k(f, "nextSibling"), y = k(f, "childNodes"), b = k(f, "parentNode"), _e = k(f, "shadowRoot"), S = k(f, "attributes"), T = o && o.prototype ? k(o.prototype, "nodeType") : null, E = o && o.prototype ? k(o.prototype, "nodeName") : null, ve = o && o.prototype ? k(o.prototype, "ownerDocument") : null, M = function(e) {
329
- return T ? T(e) : e.nodeType;
330
- }, $e = function(e) {
331
- return E ? E(e) : e.nodeName;
332
- }, et = be(f, "namespaceURI"), tt = function(e) {
333
- return et ? et(e) : e.namespaceURI;
334
- };
335
- if (typeof a == "function") {
336
- let e = n.createElement("template");
337
- e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
338
- }
339
- let N, P = "", nt, rt = !1, it = 0, at = function() {
340
- if (it > 0) throw w("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
341
- }, F = function(e) {
342
- at(), it++;
343
- try {
344
- return N.createHTML(e);
345
- } finally {
346
- it--;
347
- }
348
- }, ot = function(e) {
349
- at(), it++;
350
- try {
351
- return N.createScriptURL(e);
352
- } finally {
353
- it--;
354
- }
355
- }, st = function() {
356
- return rt ||= (nt = Ye(d, i), !0), nt;
357
- }, ct = n, lt = ct.implementation, ut = ct.createNodeIterator, dt = ct.createDocumentFragment, ft = ct.getElementsByTagName, pt = r.importNode, I = Xe();
358
- t.isSupported = typeof c == "function" && typeof b == "function" && lt && lt.createHTMLDocument !== void 0;
359
- let mt = Ne, ht = Pe, gt = Fe, _t = Ie, vt = Le, yt = ze, bt = Be, xt = He, St = Re, L = null, Ct = D({}, [
360
- ...Se,
361
- ...Ce,
362
- ...we,
363
- ...Ee,
364
- ...Oe
365
- ]), R = null, wt = D({}, [
366
- ...ke,
367
- ...Ae,
368
- ...je,
369
- ...Me
370
- ]), z = Object.seal(h(null, {
371
- tagNameCheck: {
372
- writable: !0,
373
- configurable: !1,
374
- enumerable: !0,
375
- value: null
376
- },
377
- attributeNameCheck: {
378
- writable: !0,
379
- configurable: !1,
380
- enumerable: !0,
381
- value: null
382
- },
383
- allowCustomizedBuiltInElements: {
384
- writable: !0,
385
- configurable: !1,
386
- enumerable: !0,
387
- value: !1
388
- }
389
- })), Tt = null, Et = null, B = Object.seal(h(null, {
390
- tagCheck: {
391
- writable: !0,
392
- configurable: !1,
393
- enumerable: !0,
394
- value: null
395
- },
396
- attributeCheck: {
397
- writable: !0,
398
- configurable: !1,
399
- enumerable: !0,
400
- value: null
401
- }
402
- })), Dt = !0, Ot = !0, kt = !1, At = !0, V = !1, H = !0, U = !1, jt = !1, Mt = null, Nt = null, Pt = !1, W = !1, Ft = !1, It = !1, Lt = !0, Rt = !1, zt = "user-content-", Bt = !0, Vt = !1, G = null, K = {}, q = null, Ht = D({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ut = null, Wt = D({}, [
403
- "audio",
404
- "video",
405
- "img",
406
- "source",
407
- "image",
408
- "track"
409
- ]), Gt = null, Kt = D({}, [
410
- "alt",
411
- "class",
412
- "for",
413
- "id",
414
- "label",
415
- "name",
416
- "pattern",
417
- "placeholder",
418
- "role",
419
- "summary",
420
- "title",
421
- "value",
422
- "style",
423
- "xmlns"
424
- ]), qt = "http://www.w3.org/1998/Math/MathML", Jt = "http://www.w3.org/2000/svg", J = "http://www.w3.org/1999/xhtml", Y = J, Yt = !1, Xt = null, Zt = D({}, [
425
- qt,
426
- Jt,
427
- J
428
- ], de), Qt = p([
429
- "mi",
430
- "mo",
431
- "mn",
432
- "ms",
433
- "mtext"
434
- ]), $t = D({}, Qt), en = p(["annotation-xml"]), tn = D({}, en), nn = D({}, [
435
- "title",
436
- "style",
437
- "font",
438
- "a",
439
- "script"
440
- ]), rn = null, an = ["application/xhtml+xml", "text/html"], X = null, on = null, sn = n.createElement("form"), cn = function(e) {
441
- return e instanceof RegExp || e instanceof Function;
442
- }, ln = function() {
443
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
444
- if (on && on === e) return;
445
- e && typeof e == "object" || (e = {}), e = O(e), rn = an.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = rn === "application/xhtml+xml" ? de : v, L = j(e, "ALLOWED_TAGS", Ct, { transform: X }), R = j(e, "ALLOWED_ATTR", wt, { transform: X }), Xt = j(e, "ALLOWED_NAMESPACES", Zt, { transform: de }), Gt = j(e, "ADD_URI_SAFE_ATTR", Kt, {
446
- transform: X,
447
- base: Kt
448
- }), Ut = j(e, "ADD_DATA_URI_TAGS", Wt, {
449
- transform: X,
450
- base: Wt
451
- }), q = j(e, "FORBID_CONTENTS", Ht, { transform: X }), Tt = j(e, "FORBID_TAGS", O({}), { transform: X }), Et = j(e, "FORBID_ATTR", O({}), { transform: X }), K = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? O(e.USE_PROFILES) : e.USE_PROFILES : !1, Dt = e.ALLOW_ARIA_ATTR !== !1, Ot = e.ALLOW_DATA_ATTR !== !1, kt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, At = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, H = e.SAFE_FOR_XML !== !1, U = e.WHOLE_DOCUMENT || !1, W = e.RETURN_DOM || !1, Ft = e.RETURN_DOM_FRAGMENT || !1, It = e.RETURN_TRUSTED_TYPE || !1, Pt = e.FORCE_BODY || !1, Lt = e.SANITIZE_DOM !== !1, Rt = e.SANITIZE_NAMED_PROPS || !1, Bt = e.KEEP_CONTENT !== !1, Vt = e.IN_PLACE || !1, St = xe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Re, Y = typeof e.NAMESPACE == "string" ? e.NAMESPACE : J, $t = Ze(e, "MATHML_TEXT_INTEGRATION_POINTS", () => D({}, Qt)), tn = Ze(e, "HTML_INTEGRATION_POINTS", () => D({}, en));
452
- let t = Ze(e, "CUSTOM_ELEMENT_HANDLING", () => h(null));
453
- if (z = h(null), x(t, "tagNameCheck") && cn(t.tagNameCheck) && (z.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && cn(t.attributeNameCheck) && (z.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), m(z), V && (Ot = !1), Ft && (W = !0), K && (L = D({}, Oe), R = h(null), K.html === !0 && (D(L, Se), D(R, ke)), K.svg === !0 && (D(L, Ce), D(R, Ae), D(R, Me)), K.svgFilters === !0 && (D(L, we), D(R, Ae), D(R, Me)), K.mathMl === !0 && (D(L, Ee), D(R, je), D(R, Me))), B.tagCheck = null, B.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (L === Ct && (L = O(L)), D(L, e.ADD_TAGS, X))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (R === wt && (R = O(R)), D(R, e.ADD_ATTR, X))), x(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (q === Ht && (q = O(q)), D(q, e.ADD_FORBID_CONTENTS, X)), Bt && (L["#text"] = !0), U && D(L, [
454
- "html",
455
- "head",
456
- "body"
457
- ]), L.table && (D(L, ["tbody"]), delete Tt.tbody), e.TRUSTED_TYPES_POLICY) {
458
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw w("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
459
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw w("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
460
- let t = N;
461
- N = e.TRUSTED_TYPES_POLICY;
462
- try {
463
- P = F("");
464
- } catch (e) {
465
- throw N = t, e;
466
- }
467
- } else e.TRUSTED_TYPES_POLICY === null ? (N = void 0, P = "") : (N === void 0 && (N = st()), N && typeof P == "string" && (P = F("")));
468
- p && p(e), on = e;
469
- }, un = D({}, [
470
- ...Ce,
471
- ...we,
472
- ...Te
473
- ]), dn = D({}, [...Ee, ...De]), fn = function(e, t, n) {
474
- return t.namespaceURI === J ? e === "svg" : t.namespaceURI === qt ? e === "svg" && (n === "annotation-xml" || $t[n]) : !!un[e];
475
- }, pn = function(e, t, n) {
476
- return t.namespaceURI === J ? e === "math" : t.namespaceURI === Jt ? e === "math" && tn[n] : !!dn[e];
477
- }, mn = function(e, t, n) {
478
- return t.namespaceURI === Jt && !tn[n] || t.namespaceURI === qt && !$t[n] ? !1 : !dn[e] && (nn[e] || !un[e]);
479
- }, hn = function(e) {
480
- let t = tt(e), n = v($e(e)), r = b(e), i, a;
481
- return r && M(r) === A.element ? (i = { namespaceURI: tt(r) }, a = v($e(r))) : (i = { namespaceURI: Y }, a = "template"), Xt[t] ? t === Jt ? fn(n, i, a) : t === qt ? pn(n, i, a) : t === J ? mn(n, i, a) : !!(rn === "application/xhtml+xml" && Xt[t]) : !1;
482
- }, Z = function(e) {
483
- ae(t.removed, { element: e });
484
- try {
485
- b(e).removeChild(e);
486
- } catch {
487
- if (te(e), !b(e)) throw w("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
488
- }
489
- }, gn = function(e, t, n) {
490
- try {
491
- ne(e, t);
492
- } catch {
493
- try {
494
- e.removeAttribute(n);
495
- } catch {}
496
- }
497
- }, _n = function(e) {
498
- xn(e);
499
- let t = y(e);
500
- t && g(oe(t), (e) => {
501
- try {
502
- te(e);
503
- } catch {}
504
- });
505
- let n = M(e) === A.element ? S(e) : null;
506
- if (n) for (let t = n.length - 1; t >= 0; --t) {
507
- let r = n[t], i = r && r.name;
508
- typeof i == "string" && gn(e, r, i);
509
- }
510
- }, vn = function(e, n, r) {
511
- if (!r) try {
512
- r = n.getAttributeNode(e);
513
- } catch {
514
- r = null;
515
- }
516
- ae(t.removed, {
517
- attribute: r || null,
518
- from: n
519
- });
520
- try {
521
- r ? ne(n, r) : n.removeAttribute(e);
522
- } catch {
523
- try {
524
- n.removeAttribute(e);
525
- } catch {}
526
- }
527
- if (e === "is") {
528
- if (W || Ft) try {
529
- Z(n);
530
- } catch {}
531
- else try {
532
- n.setAttribute(e, "");
533
- } catch {}
534
- }
535
- }, yn = function(e) {
536
- let t = S(e);
537
- if (t) for (let n = t.length - 1; n >= 0; --n) {
538
- let r = t[n], i = r && r.name;
539
- typeof i != "string" || R[X(i)] || gn(e, r, i);
540
- }
541
- }, bn = function(e, t) {
542
- let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
543
- for (; r.length > 0;) {
544
- let e = r.pop();
545
- if (t(e) === !1) continue;
546
- if (n && M(e) === A.element) {
547
- let t = _e(e);
548
- Q(t) && r.push(t);
549
- }
550
- let i = y(e);
551
- if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
552
- }
553
- }, xn = function(e) {
554
- bn(e, (e) => {
555
- M(e) === A.element && yn(e);
556
- });
557
- }, Sn = function(e) {
558
- let t = [];
559
- return bn(e, (e) => {
560
- t.push(e);
561
- }, !0), t;
562
- }, Cn = function(e, t) {
563
- let n = ce();
564
- g(Sn(e), (e) => {
565
- M(e) === A.element && le(n, e);
566
- }), g(t, (e) => {
567
- M(e) === A.element && !ue(n, e) && yn(e);
568
- });
569
- }, wn = function(e, n) {
570
- let r = !1;
571
- return g(t.removed, (t) => {
572
- t.element && (r ||= t.element === e, xn(t.element));
573
- }), Cn(e, n), r;
574
- }, Tn = function(e, t) {
575
- let n = G, r = null, i = () => (r || (r = ce(), g(t, (e) => {
576
- le(r, e);
577
- })), r);
578
- for (let t = 0;; t++) {
579
- let r = Sn(e), a = [e], o = !1;
580
- if (g(r, (e) => {
581
- M(e) === A.documentFragment ? ae(a, e) : !o && !ue(n, e) && (o = ue(i(), e));
582
- }), !o) return;
583
- if (t >= 8) throw w("the tree kept changing during in-place sanitization; refusing to return it");
584
- g(a, (t, n) => {
585
- En(t, n > 0, e, i());
586
- });
587
- }
588
- }, En = function(e, t, n, r) {
589
- let i = jn(e), a;
590
- for (; a = i.nextNode();) ue(r, a) && !ue(G, a) && (t && $(I.uponSanitizeShadowNode, a, null), Hn(a, n), Yn(a, n), Q(a.content) && Xn(a.content));
591
- }, Dn = function(e) {
592
- G && le(G, e);
593
- }, On = function(e, t) {
594
- return H ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
595
- }, kn = function(e) {
596
- H && bn(e, (e) => {
597
- let t = M(e);
598
- if (t === A.processingInstruction || t === A.comment && C(We, e.data)) {
599
- try {
600
- te(e);
601
- } catch {}
602
- return !1;
603
- }
604
- if (t === A.element) {
605
- let t = e, n = X($e(e));
606
- try {
607
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && On("for", n) && t.removeAttribute("for");
608
- } catch {}
609
- }
610
- return !0;
611
- });
612
- }, An = function(e) {
613
- let t = null, r = null;
614
- if (Pt) e = "<remove></remove>" + e;
615
- else {
616
- let t = fe(e, /^[\r\n\t ]+/);
617
- r = t && t[0];
618
- }
619
- rn === "application/xhtml+xml" && Y === J && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
620
- let i = N ? F(e) : e;
621
- if (Y === J) try {
622
- t = new u().parseFromString(i, rn);
623
- } catch {}
624
- if (!t || !t.documentElement) {
625
- t = lt.createDocument(Y, "template", null);
626
- try {
627
- t.documentElement.innerHTML = Yt ? P : i;
628
- } catch {}
629
- }
630
- let a = t.body || t.documentElement;
631
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Y === J ? ft.call(t, U ? "html" : "body")[0] : U ? t.documentElement : a;
632
- }, jn = function(e) {
633
- let t = ve ? ve(e) : e.ownerDocument;
634
- return ut.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
635
- }, Mn = function(e) {
636
- return e = pe(e, mt, " "), e = pe(e, ht, " "), e = pe(e, gt, " "), e;
637
- }, Nn = function(e) {
638
- Pn(e);
639
- let t = e.querySelectorAll?.call(e, "template");
640
- t && g(t, (e) => {
641
- Q(e.content) && Nn(e.content);
642
- });
643
- }, Pn = function(e) {
644
- e.normalize();
645
- let t = ve ? ve(e) : e.ownerDocument, n = ut.call(t || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
646
- for (; r;) r.data = Mn(r.data), r = n.nextNode();
647
- }, Fn = function(e) {
648
- let t = E ? E(e) : null;
649
- return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== S(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== T(e) || e.childNodes !== y(e);
650
- }, Q = function(e) {
651
- if (!T || typeof e != "object" || !e) return !1;
652
- try {
653
- return T(e) === A.documentFragment;
654
- } catch {
655
- return !1;
656
- }
657
- }, In = function(e) {
658
- if (!T || typeof e != "object" || !e) return !1;
659
- try {
660
- return typeof T(e) == "number";
661
- } catch {
662
- return !1;
663
- }
664
- };
665
- function $(e, n, r) {
666
- e.length !== 0 && g(e, (e) => {
667
- e.call(t, n, r, on);
668
- });
669
- }
670
- let Ln = function(e, t) {
671
- return !!(H && e.hasChildNodes() && !In(e.firstElementChild) && C(Ue, e.textContent) && C(Ue, e.innerHTML) || H && qe[t] && M(e) === A.element && tt(e) === J && (In(e.firstElementChild) || typeof e.textContent == "string" && C(Ue, e.textContent)) || e.nodeType === A.processingInstruction || H && e.nodeType === A.comment && C(We, e.data));
672
- }, Rn = function(e, t) {
673
- return e instanceof RegExp ? C(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
674
- }, zn = function(e, t, n) {
675
- if (!Tt[t] && Gn(t) && Rn(z.tagNameCheck, t)) return !1;
676
- if (Bt && !q[t] && !q[v(t)]) {
677
- let t = b(e), r = y(e);
678
- if (r && t) {
679
- let i = r.length;
680
- for (let a = i - 1; a >= 0; --a) {
681
- let i = e === n ? ee(r[a], !0) : r[a];
682
- t.insertBefore(i, ge(e));
683
- }
684
- }
685
- }
686
- return Z(e), !0;
687
- }, Bn = function(e, t, n, r) {
688
- return e.length === 0 ? t : t === n || t === r ? O(t) : t;
689
- }, Vn = function(e, t) {
690
- return e === t || b(e) !== null ? !1 : (Vt && xn(e), !0);
691
- }, Hn = function(e, n) {
692
- if (Dn(e), $(I.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
693
- if (Fn(e)) return Z(e), !0;
694
- let r = X($e(e));
695
- if (L = Bn(I.uponSanitizeElement, L, Ct, Mt), $(I.uponSanitizeElement, e, {
696
- tagName: r,
697
- allowedTags: L
698
- }), Vn(e, n)) return !0;
699
- if (Ln(e, r)) return Z(e), !0;
700
- if (Tt[r] || !(B.tagCheck instanceof Function && B.tagCheck(r)) && !L[r]) {
701
- let t = zn(e, r, n);
702
- return t === !1 && ($(I.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
703
- }
704
- if (M(e) === A.element && !hn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && C(Ge, e.innerHTML)) return Z(e), !0;
705
- if (V && e.nodeType === A.text) {
706
- let n = Mn(e.textContent);
707
- e.textContent !== n && (ae(t.removed, { element: e.cloneNode() }), e.textContent = n);
708
- }
709
- return $(I.afterSanitizeElements, e, null), Vn(e, n);
710
- }, Un = function(e, t, r) {
711
- if (Et[t] || On(t, e) || Lt && (t === "id" || t === "name") && (r in n || r in sn)) return !1;
712
- let i = R[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
713
- return Ot && C(_t, t) || Dt && C(vt, t) ? !0 : i ? Gt[t] || C(St, pe(r, bt, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && me(r, "data:") === 0 && Ut[e] || kt && !C(yt, pe(r, bt, "")) ? !0 : !r : Gn(e) && Rn(z.tagNameCheck, e) && Rn(z.attributeNameCheck, t, e) || t === "is" && z.allowCustomizedBuiltInElements && Rn(z.tagNameCheck, r);
714
- }, Wn = D({}, [
715
- "annotation-xml",
716
- "color-profile",
717
- "font-face",
718
- "font-face-format",
719
- "font-face-name",
720
- "font-face-src",
721
- "font-face-uri",
722
- "missing-glyph"
723
- ]), Gn = function(e) {
724
- return !Wn[v(e)] && C(xt, e);
725
- }, Kn = function(e, t, n, r) {
726
- if (N && typeof d == "object" && typeof d.getAttributeType == "function" && !n) switch (d.getAttributeType(e, t)) {
727
- case "TrustedHTML": return F(r);
728
- case "TrustedScriptURL": return ot(r);
729
- }
730
- return r;
731
- }, qn = function(e, t, n, r) {
732
- try {
733
- return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Fn(e) || (Z(e), !1);
734
- } catch {
735
- return vn(t, e), !1;
736
- }
737
- }, Jn = function(e, t) {
738
- return H && C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : v(e) === "attributename" && fe(t, "href") !== null;
739
- }, Yn = function(e, n) {
740
- if ($(I.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
741
- let r = e.attributes;
742
- if (!r || Fn(e)) return;
743
- R = Bn(I.uponSanitizeAttribute, R, wt, Nt);
744
- let i = {
745
- attrName: "",
746
- attrValue: "",
747
- keepAttr: !0,
748
- allowedAttributes: R,
749
- forceKeepAttr: void 0
750
- }, a = r.length, o = X(e.nodeName);
751
- for (; a--;) {
752
- let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = X(s), d = l, f = s === "value" ? d : he(d), p = !1;
753
- i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(I.uponSanitizeAttribute, e, i), f = i.attrValue, Rt && (u === "id" || u === "name") && me(f, zt) !== 0 && (vn(s, e, n), f = zt + f, p = !0), Jn(s, f) ? vn(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !At && C(Ke, f) ? vn(s, e, n) : (V && (f = Mn(f)), Un(o, u, f) ? (f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && p && ie(t.removed)) : vn(s, e, n)) : vn(s, e, n));
754
- }
755
- $(I.afterSanitizeAttributes, e, null), Vn(e, n);
756
- }, Xn = function(e) {
757
- let t = null, n = jn(e);
758
- for ($(I.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(I.uponSanitizeShadowNode, t, null), Hn(t, e), Yn(t, e), Q(t.content) && Xn(t.content), M(t) === A.element) {
759
- let e = _e(t);
760
- Q(e) && (Zn(e), Xn(e));
761
- }
762
- V && Pn(e), $(I.afterSanitizeShadowDOM, e, null);
763
- }, Zn = function(e) {
764
- let t = [{
765
- node: e,
766
- shadow: null
767
- }];
768
- for (; t.length > 0;) {
769
- let e = t.pop();
770
- if (e.shadow) {
771
- Xn(e.shadow);
772
- continue;
773
- }
774
- let n = e.node, r = M(n) === A.element, i = y(n);
775
- if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
776
- node: i[e],
777
- shadow: null
778
- });
779
- if (r) {
780
- let e = E ? E(n) : null;
781
- if (typeof e == "string" && X(e) === "template") {
782
- let e = n.content;
783
- Q(e) && t.push({
784
- node: e,
785
- shadow: null
786
- });
787
- }
788
- }
789
- if (r) {
790
- let e = _e(n);
791
- Q(e) && t.push({
792
- node: null,
793
- shadow: e
794
- }, {
795
- node: e,
796
- shadow: null
797
- });
798
- }
799
- }
800
- };
801
- return t.sanitize = function(e) {
802
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
803
- if (Yt = !e, Yt && (e = "<!-->"), typeof e != "string" && !In(e) && (e = ye(e), typeof e != "string")) throw w("dirty is not a string, aborting");
804
- if (!t.isSupported) return e;
805
- jt ? (L = Mt, R = Nt) : ln(n), (I.uponSanitizeElement.length > 0 || I.uponSanitizeAttribute.length > 0) && (L = O(L)), I.uponSanitizeAttribute.length > 0 && (R = O(R)), t.removed = [];
806
- let c = Vt && typeof e != "string" && In(e), l = [], u = G;
807
- if (c) {
808
- kn(e);
809
- let t = $e(e);
810
- if (typeof t == "string") {
811
- let n = X(t);
812
- if (!L[n] || Tt[n]) throw _n(e), w("root node is forbidden and cannot be sanitized in-place");
813
- }
814
- if (Fn(e)) throw _n(e), w("root node is clobbered and cannot be sanitized in-place");
815
- l = Sn(e), G = ce();
816
- } else if (In(e)) i = An("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === A.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Zn(i);
817
- else {
818
- if (!W && !V && !U && e.indexOf("<") === -1) return N && It ? F(e) : e;
819
- if (i = An(e), !i) return W ? null : It ? P : "";
820
- }
821
- i && Pt && Z(i.firstChild);
822
- let d = c ? e : i;
823
- try {
824
- c && Zn(e);
825
- let t = jn(d);
826
- for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Q(o.content) && Xn(o.content);
827
- c && Tn(e, l);
828
- } catch (t) {
829
- throw c && (_n(e), wn(e, l)), t;
830
- } finally {
831
- G = u;
832
- }
833
- if (c) {
834
- if (wn(e, l)) throw w("a node selected for removal could not be safely returned; refusing to sanitize in place");
835
- return V && Nn(e), e;
836
- }
837
- if (W) {
838
- if (V && Nn(i), Ft) for (s = dt.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
839
- else s = i;
840
- return (R.shadowroot || R.shadowrootmode) && (s = pt.call(r, s, !0)), s;
841
- }
842
- let f = U ? i.outerHTML : i.innerHTML;
843
- return U && L["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && C(Ve, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), V && (f = Mn(f)), N && It ? F(f) : f;
844
- }, t.setConfig = function() {
845
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
846
- ln(e), jt = !0, Mt = L, Nt = R;
847
- }, t.clearConfig = function() {
848
- on = null, jt = !1, Mt = null, Nt = null, N = nt, P = "";
849
- }, t.isValidAttribute = function(e, t, n) {
850
- on || ln({});
851
- let r = X(e), i = X(t);
852
- return typeof n == "string" && (Jn(t, n) || !At && C(Ke, n)) ? !1 : Un(r, i, n);
853
- }, t.addHook = function(e, t) {
854
- typeof t == "function" && x(I, e) && ae(I[e], t);
855
- }, t.removeHook = function(e, t) {
856
- if (x(I, e)) {
857
- if (t !== void 0) {
858
- let n = re(I[e], t);
859
- return n === -1 ? void 0 : se(I[e], n, 1)[0];
860
- }
861
- return ie(I[e]);
862
- }
863
- }, t.removeHooks = function(e) {
864
- x(I, e) && (I[e] = []);
865
- }, t.removeAllHooks = function() {
866
- I = Xe();
867
- }, t;
868
- }
869
- var M = Qe();
870
- export { M as t };
871
-
872
- //# sourceMappingURL=dompurify-JVtr5-B1.js.map