@burdenoff/microfe-bigconsole 2026.1031.1 → 2026.1031.3

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 (290) hide show
  1. package/dist/bigconsole/BigConsoleRoot.js +6 -4
  2. package/dist/bigconsole/assistant/assistantApi.js +1 -1
  3. package/dist/bigconsole/assistant/assistantProduct.js +70 -70
  4. package/dist/bigconsole/assistant/assistantRunPersistence.js +1 -1
  5. package/dist/bigconsole/assistant/assistantRuntime.js +1 -1
  6. package/dist/bigconsole/assistant/attachmentExtract.js +1 -1
  7. package/dist/bigconsole/assistant/conversationHistoryApi.js +1 -1
  8. package/dist/bigconsole/assistant/createSandboxAssistantTransport.js +5 -4
  9. package/dist/bigconsole/assistant/pageContext.js +1 -1
  10. package/dist/bigconsole/assistant/pageControls.js +1 -1
  11. package/dist/bigconsole/assistant/previewController.js +1 -1
  12. package/dist/bigconsole/assistant/recordAdapters.js +1 -1
  13. package/dist/bigconsole/components/DrilldownDashboardRenderer.js +2 -2
  14. package/dist/bigconsole/components/DrilldownModal.js +1 -1
  15. package/dist/bigconsole/components/builder/WidgetInspector.js +1 -1
  16. package/dist/bigconsole/components/builder/index.js +5 -4
  17. package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +7 -7
  18. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +2 -2
  19. package/dist/bigconsole/components/builder/inspector/LayoutSection.js +1 -1
  20. package/dist/bigconsole/components/builder/inspector/index.js +6 -5
  21. package/dist/bigconsole/components/common/index.js +4 -3
  22. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +3 -3
  23. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +9 -9
  24. package/dist/bigconsole/components/dashboard/DashboardGrid.js +2 -2
  25. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +1 -1
  26. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +2 -2
  27. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +4 -3
  28. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +1 -1
  29. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +1 -1
  30. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +1 -1
  31. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +1 -1
  32. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +4 -4
  33. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/index.js +2 -1
  34. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +1 -1
  35. package/dist/bigconsole/components/dashboard/LiveBoardBanner.js +1 -1
  36. package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
  37. package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js +1 -1
  38. package/dist/bigconsole/components/dashboard/PageTabsManager/index.js +2 -1
  39. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +1 -1
  40. package/dist/bigconsole/components/dashboard/QuotaLimitNotice.js +1 -1
  41. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +1 -1
  42. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/index.js +2 -1
  43. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +152 -152
  44. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +2 -2
  45. package/dist/bigconsole/components/dashboard/ShareDialog/index.js +2 -1
  46. package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js +1 -1
  47. package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js +1 -1
  48. package/dist/bigconsole/components/dashboard/WidgetPalette.js +2 -2
  49. package/dist/bigconsole/components/dashboard/index.js +6 -5
  50. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +2 -2
  51. package/dist/bigconsole/components/datasink/DataSinkCard.js +2 -2
  52. package/dist/bigconsole/components/datasink/DataSinkDataViewer.js +1 -1
  53. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +1 -1
  54. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +1 -1
  55. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +1 -1
  56. package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +1 -1
  57. package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +1 -1
  58. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +1 -1
  59. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +1 -1
  60. package/dist/bigconsole/components/datasink/LinkedParsersPanel.js +1 -1
  61. package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js +1 -1
  62. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +1 -1
  63. package/dist/bigconsole/components/datasink/SetupStateBadge.js +1 -1
  64. package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js +1 -1
  65. package/dist/bigconsole/components/embed/widgets/CalendarEmbed.js +1 -1
  66. package/dist/bigconsole/components/embed/widgets/ChartEmbed.js +9 -9
  67. package/dist/bigconsole/components/embed/widgets/FormEmbed.js +2 -2
  68. package/dist/bigconsole/components/embed/widgets/GaugeEmbed.js +1 -1
  69. package/dist/bigconsole/components/embed/widgets/HeatmapEmbed.js +1 -1
  70. package/dist/bigconsole/components/embed/widgets/KanbanEmbed.js +2 -2
  71. package/dist/bigconsole/components/embed/widgets/ProgressEmbed.js +1 -1
  72. package/dist/bigconsole/components/embed/widgets/RetentionEmbed.js +1 -1
  73. package/dist/bigconsole/components/embed/widgets/TimelineEmbed.js +1 -1
  74. package/dist/bigconsole/components/overview/DashboardGuide.js +1 -1
  75. package/dist/bigconsole/components/overview/DataHealthCard.js +2 -2
  76. package/dist/bigconsole/components/overview/OverviewQuickActions.js +1 -1
  77. package/dist/bigconsole/components/overview/OverviewStatCard.js +1 -1
  78. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +2 -2
  79. package/dist/bigconsole/components/overview/index.js +9 -8
  80. package/dist/bigconsole/components/overview/overviewModel.js +1 -1
  81. package/dist/bigconsole/components/parser/DataSinkSelector.js +2 -2
  82. package/dist/bigconsole/components/parser/ExportParserDialog.js +1 -1
  83. package/dist/bigconsole/components/parser/ExpressionEditor.js +1 -1
  84. package/dist/bigconsole/components/parser/ImportParserDialog.js +10 -10
  85. package/dist/bigconsole/components/parser/ParserCard.js +3 -3
  86. package/dist/bigconsole/components/parser/ParserSelector.js +3 -3
  87. package/dist/bigconsole/components/parser/ParserStatusBadge.js +1 -1
  88. package/dist/bigconsole/components/parser/ParserTypeBadge.js +1 -1
  89. package/dist/bigconsole/components/pipeline/PipelineCard.js +2 -2
  90. package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js +1 -1
  91. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +1 -1
  92. package/dist/bigconsole/components/preview/AiPreviewContent.js +3 -3
  93. package/dist/bigconsole/components/preview/confirmedPreviewWidgets.js +10 -12
  94. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +314 -314
  95. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +3 -2
  96. package/dist/bigconsole/components/widgets/PropertiesPanel.js +37 -22
  97. package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js +1 -1
  98. package/dist/bigconsole/components/widgets/WidgetHeader.js +2 -2
  99. package/dist/bigconsole/components/widgets/WidgetMenu.js +1 -1
  100. package/dist/bigconsole/components/widgets/WidgetRegistry.js +1 -1
  101. package/dist/bigconsole/components/widgets/WidgetWrapper.js +16 -16
  102. package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js +1 -1
  103. package/dist/bigconsole/components/widgets/adaptive-card/index.js +1 -1
  104. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +1 -1
  105. package/dist/bigconsole/components/widgets/calendar/CalendarView.js +1 -1
  106. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +9 -9
  107. package/dist/bigconsole/components/widgets/calendar/index.js +1 -1
  108. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +1 -1
  109. package/dist/bigconsole/components/widgets/chart/ChartLegend.js +1 -1
  110. package/dist/bigconsole/components/widgets/chart/ChartTooltip.js +1 -1
  111. package/dist/bigconsole/components/widgets/chart/ChartWidget.js +10 -10
  112. package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js +2 -2
  113. package/dist/bigconsole/components/widgets/chart/charts/BarChart.js +2 -2
  114. package/dist/bigconsole/components/widgets/chart/charts/ComboChart.js +2 -2
  115. package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.js +2 -2
  116. package/dist/bigconsole/components/widgets/chart/charts/LineChart.js +2 -2
  117. package/dist/bigconsole/components/widgets/chart/charts/PieChart.js +2 -2
  118. package/dist/bigconsole/components/widgets/chart/charts/ScatterChart.js +2 -2
  119. package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.js +1 -1
  120. package/dist/bigconsole/components/widgets/chart/charts/index.js +6 -5
  121. package/dist/bigconsole/components/widgets/chart/charts/numericSeries.js +4 -2
  122. package/dist/bigconsole/components/widgets/chart/index.js +9 -9
  123. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  124. package/dist/bigconsole/components/widgets/custom/CustomWidget.js +1 -1
  125. package/dist/bigconsole/components/widgets/custom/index.js +1 -1
  126. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +1 -1
  127. package/dist/bigconsole/components/widgets/event-logs/index.js +2 -1
  128. package/dist/bigconsole/components/widgets/form/FormWidget.js +2 -2
  129. package/dist/bigconsole/components/widgets/form/index.js +1 -1
  130. package/dist/bigconsole/components/widgets/funnel/index.js +1 -1
  131. package/dist/bigconsole/components/widgets/gauge/CircularGauge.js +1 -1
  132. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +1 -1
  133. package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js +3 -3
  134. package/dist/bigconsole/components/widgets/gauge/LinearGauge.js +1 -1
  135. package/dist/bigconsole/components/widgets/gauge/index.js +4 -4
  136. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +1 -1
  137. package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.js +1 -1
  138. package/dist/bigconsole/components/widgets/heatmap/index.js +2 -2
  139. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +1 -1
  140. package/dist/bigconsole/components/widgets/iframe-widget/index.js +1 -1
  141. package/dist/bigconsole/components/widgets/index.js +2 -1
  142. package/dist/bigconsole/components/widgets/kanban/KanbanView.js +1 -1
  143. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +2 -2
  144. package/dist/bigconsole/components/widgets/kanban/index.js +1 -1
  145. package/dist/bigconsole/components/widgets/kpi/KPIWidget.js +1 -1
  146. package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js +3 -3
  147. package/dist/bigconsole/components/widgets/kpi-comparison/index.js +1 -1
  148. package/dist/bigconsole/components/widgets/list/ListConfig.js +1 -1
  149. package/dist/bigconsole/components/widgets/list/ListItem.js +1 -1
  150. package/dist/bigconsole/components/widgets/list/ListWidget.js +2 -2
  151. package/dist/bigconsole/components/widgets/list/index.js +3 -3
  152. package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +1 -1
  153. package/dist/bigconsole/components/widgets/map-widget/index.js +1 -1
  154. package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.js +2 -2
  155. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +1 -1
  156. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +4 -4
  157. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +1 -1
  158. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +1 -1
  159. package/dist/bigconsole/components/widgets/metric-card/index.js +5 -5
  160. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +3 -3
  161. package/dist/bigconsole/components/widgets/pivot-table/index.js +1 -1
  162. package/dist/bigconsole/components/widgets/progress/ProgressBar.js +1 -1
  163. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +6 -4
  164. package/dist/bigconsole/components/widgets/progress/ProgressWidget.js +2 -2
  165. package/dist/bigconsole/components/widgets/progress/index.js +3 -3
  166. package/dist/bigconsole/components/widgets/retention/RetentionWidget.js +1 -1
  167. package/dist/bigconsole/components/widgets/retention/index.js +1 -1
  168. package/dist/bigconsole/components/widgets/states/EmptyState.js +1 -1
  169. package/dist/bigconsole/components/widgets/states/ErrorState.js +1 -1
  170. package/dist/bigconsole/components/widgets/states/LoadingState.js +1 -1
  171. package/dist/bigconsole/components/widgets/table/TableCell.js +2 -2
  172. package/dist/bigconsole/components/widgets/table/TableConfig.js +12 -8
  173. package/dist/bigconsole/components/widgets/table/TableHeader.js +1 -1
  174. package/dist/bigconsole/components/widgets/table/TablePagination.js +1 -1
  175. package/dist/bigconsole/components/widgets/table/TableWidget.js +12 -10
  176. package/dist/bigconsole/components/widgets/table/index.js +5 -5
  177. package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +1 -1
  178. package/dist/bigconsole/components/widgets/text-widget/index.js +1 -1
  179. package/dist/bigconsole/components/widgets/text-widget/textData.js +2 -2
  180. package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js +1 -1
  181. package/dist/bigconsole/components/widgets/timeline/index.js +1 -1
  182. package/dist/bigconsole/components/widgets/utils/conditionalFormat.js +1 -1
  183. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +1 -1
  184. package/dist/bigconsole/components/widgets/webhook-config/index.js +2 -1
  185. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +1 -1
  186. package/dist/bigconsole/components/widgets/widget-actions/index.js +2 -1
  187. package/dist/bigconsole/components/workflow/WorkflowCard.js +2 -2
  188. package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js +1 -1
  189. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +1 -1
  190. package/dist/bigconsole/context/BigConsoleContext.js +2 -1
  191. package/dist/bigconsole/context/index.js +2 -1
  192. package/dist/bigconsole/contexts/CrossFilterContext.js +1 -1
  193. package/dist/bigconsole/contexts/NavigationContext.js +2 -1
  194. package/dist/bigconsole/contexts/index.js +3 -2
  195. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +2 -2
  196. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +6 -5
  197. package/dist/bigconsole/customWidget/index.js +2 -1
  198. package/dist/bigconsole/customWidget/proposalContract.js +1 -1
  199. package/dist/bigconsole/graphql/storeTemplates.js +5 -5
  200. package/dist/bigconsole/graphql/widgetCapabilities.js +1 -1
  201. package/dist/bigconsole/hooks/index.js +24 -23
  202. package/dist/bigconsole/hooks/useActivePage.js +1 -1
  203. package/dist/bigconsole/hooks/useAutoRefresh.js +1 -1
  204. package/dist/bigconsole/hooks/useBigConsoleAnalytics.js +1 -1
  205. package/dist/bigconsole/hooks/useCrossFilter.js +1 -1
  206. package/dist/bigconsole/hooks/useDashboardEmbedPolicy.js +1 -1
  207. package/dist/bigconsole/hooks/useDashboardImageExport.js +1 -1
  208. package/dist/bigconsole/hooks/useDashboardOperations.js +14 -6
  209. package/dist/bigconsole/hooks/useDashboardSharing.js +15 -8
  210. package/dist/bigconsole/hooks/useDashboardViews.js +15 -8
  211. package/dist/bigconsole/hooks/useDataSinkAlerts.js +11 -8
  212. package/dist/bigconsole/hooks/useDataSinkOperations.js +19 -10
  213. package/dist/bigconsole/hooks/useDataSinkSubscription.js +1 -1
  214. package/dist/bigconsole/hooks/useDrilldown.js +2 -2
  215. package/dist/bigconsole/hooks/useDrilldownOperations.js +1 -1
  216. package/dist/bigconsole/hooks/useEventLogs.js +1 -1
  217. package/dist/bigconsole/hooks/useEventWebhooks.js +1 -1
  218. package/dist/bigconsole/hooks/useExportDashboard.js +7 -3
  219. package/dist/bigconsole/hooks/useExportDataSink.js +5 -3
  220. package/dist/bigconsole/hooks/useExportParser.js +5 -3
  221. package/dist/bigconsole/hooks/useFilterPresets.js +1 -1
  222. package/dist/bigconsole/hooks/useFilterUrlSync.js +1 -1
  223. package/dist/bigconsole/hooks/useGlobalFilters.js +11 -6
  224. package/dist/bigconsole/hooks/useImportDashboard.js +4 -2
  225. package/dist/bigconsole/hooks/useImportDataSink.js +3 -2
  226. package/dist/bigconsole/hooks/useImportParser.js +3 -2
  227. package/dist/bigconsole/hooks/useInstalledWidgets.js +1 -1
  228. package/dist/bigconsole/hooks/useModalFocusTrap.js +1 -1
  229. package/dist/bigconsole/hooks/usePageOperations.js +9 -5
  230. package/dist/bigconsole/hooks/useParserOperations.js +15 -8
  231. package/dist/bigconsole/hooks/usePipelineOperations.js +25 -13
  232. package/dist/bigconsole/hooks/useStoreDashboardTemplates.js +1 -1
  233. package/dist/bigconsole/hooks/useWidgetActions.js +1 -1
  234. package/dist/bigconsole/hooks/useWidgetCatalog.js +5 -5
  235. package/dist/bigconsole/hooks/useWidgetComments.js +1 -1
  236. package/dist/bigconsole/hooks/useWidgetConfigPersist.js +1 -1
  237. package/dist/bigconsole/hooks/useWidgetData.js +1 -1
  238. package/dist/bigconsole/hooks/useWidgetEvents.js +1 -1
  239. package/dist/bigconsole/hooks/useWidgetExport.js +1 -1
  240. package/dist/bigconsole/hooks/useWidgetOperations.js +28 -16
  241. package/dist/bigconsole/hooks/useWorkflowOperations.js +19 -10
  242. package/dist/bigconsole/index.js +9 -8
  243. package/dist/bigconsole/pages/DashboardBuilderPage.js +44 -35
  244. package/dist/bigconsole/pages/DashboardViewPage.js +23 -16
  245. package/dist/bigconsole/pages/DashboardsPage.js +4 -4
  246. package/dist/bigconsole/pages/DataParsersPage.js +2 -2
  247. package/dist/bigconsole/pages/DataSinkBuilderPage.js +12 -7
  248. package/dist/bigconsole/pages/DataSinkViewPage.js +8 -8
  249. package/dist/bigconsole/pages/DataSinksPage.js +6 -6
  250. package/dist/bigconsole/pages/OverviewPage.js +5 -5
  251. package/dist/bigconsole/pages/ParserBuilderPage.js +1 -1
  252. package/dist/bigconsole/pages/ParserViewPage.js +4 -4
  253. package/dist/bigconsole/pages/PipelineBuilderPage.js +1 -1
  254. package/dist/bigconsole/pages/PipelineViewPage.js +7 -3
  255. package/dist/bigconsole/pages/PipelinesPage.js +2 -2
  256. package/dist/bigconsole/pages/WidgetDemoPage.js +1 -1
  257. package/dist/bigconsole/pages/WorkflowViewPage.js +7 -14
  258. package/dist/bigconsole/pages/WorkflowsPage.js +3 -3
  259. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +4 -4
  260. package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js +1 -1
  261. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +1 -1
  262. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +13 -12
  263. package/dist/bigconsole/renderers/factory/WidgetRendererFactory.js +1 -1
  264. package/dist/bigconsole/renderers/registry/RendererRegistry.js +5 -5
  265. package/dist/bigconsole/store/drilldownStore.js +1 -1
  266. package/dist/bigconsole/store/index.js +4 -3
  267. package/dist/bigconsole/store/parserStore.js +1 -1
  268. package/dist/bigconsole/store/pipelineStore.js +1 -1
  269. package/dist/bigconsole/utils/advancedWidgetCapabilities.js +1 -1
  270. package/dist/bigconsole/utils/backendError.js +21 -22
  271. package/dist/bigconsole/utils/createDialogParam.js +2 -2
  272. package/dist/bigconsole/utils/csv.js +34 -36
  273. package/dist/bigconsole/utils/dataSinkPayload.js +12 -14
  274. package/dist/bigconsole/utils/drilldownParams.js +1 -1
  275. package/dist/bigconsole/utils/formDirty.js +3 -3
  276. package/dist/bigconsole/utils/layoutBaseline.js +1 -1
  277. package/dist/bigconsole/utils/quota.js +4 -4
  278. package/dist/bigconsole/utils/safeUrl.js +35 -33
  279. package/dist/bigconsole/utils/sanitizeHtml.js +2 -2
  280. package/dist/bigconsole/utils/templateGalleryFilter.js +2 -2
  281. package/dist/bigconsole/utils/widgetBinding.js +2 -2
  282. package/dist/bigconsole/utils/widgetDisplayData.js +1 -1
  283. package/dist/bigconsole/utils/widgetTypeMapping.js +3 -3
  284. package/dist/bigconsole/workflowOpen.js +2 -2
  285. package/dist/index.js +1 -1
  286. package/dist/node_modules/@e965/xlsx/xlsx.js +19 -19
  287. package/dist/node_modules/dompurify/dist/purify.es.js +454 -361
  288. package/dist/node_modules/pdfjs-dist/build/pdf.js +16 -16
  289. package/dist/shared/hooks/useTr.js +1 -1
  290. package/package.json +16 -15
@@ -1,18 +1,24 @@
1
1
  //#region node_modules/dompurify/dist/purify.es.mjs
2
2
  function e(e, t) {
3
+ this.v = e, this.k = t;
4
+ }
5
+ function t(e, t) {
3
6
  (t == null || t > e.length) && (t = e.length);
4
7
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
5
8
  return r;
6
9
  }
7
- function t(e) {
10
+ function n(e) {
8
11
  if (Array.isArray(e)) return e;
9
12
  }
10
- function n(e, t) {
13
+ function r(e, t) {
11
14
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
12
15
  if (n != null) {
13
16
  var r, i, a, o, s = [], c = !0, l = !1;
14
17
  try {
15
- if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
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);
16
22
  } catch (e) {
17
23
  l = !0, i = e;
18
24
  } finally {
@@ -25,113 +31,170 @@ function n(e, t) {
25
31
  return s;
26
32
  }
27
33
  }
28
- function r() {
34
+ function i() {
29
35
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
30
36
  }
31
- function i(e, i) {
32
- return t(e) || n(e, i) || a(e, i) || r();
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
+ }
33
46
  }
34
- function a(t, n) {
35
- if (t) {
36
- if (typeof t == "string") return e(t, n);
37
- var r = {}.toString.call(t).slice(8, -1);
38
- return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? e(t, n) : void 0;
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
+ }
39
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);
40
84
  }
41
- var o = Object.entries, s = Object.setPrototypeOf, c = Object.isFrozen, l = Object.getPrototypeOf, u = Object.getOwnPropertyDescriptor, d = Object.freeze, f = Object.seal, p = Object.create, m = typeof Reflect < "u" && Reflect, h = m.apply, ee = m.construct;
42
- d ||= function(e) {
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) {
43
96
  return e;
44
- }, f ||= function(e) {
97
+ }, m ||= function(e) {
45
98
  return e;
46
- }, h ||= function(e, t) {
99
+ }, te ||= function(e, t) {
47
100
  var n = [...arguments].slice(2);
48
101
  return e.apply(t, n);
49
- }, ee ||= function(e) {
102
+ }, ne ||= function(e) {
50
103
  return new e(...[...arguments].slice(1));
51
104
  };
52
- var g = w(Array.prototype.forEach), te = w(Array.prototype.lastIndexOf), ne = w(Array.prototype.pop), re = w(Array.prototype.push), ie = w(Array.prototype.splice), _ = Array.isArray, ae = w(String.prototype.toLowerCase), oe = w(String.prototype.toString), se = w(String.prototype.match), v = w(String.prototype.replace), ce = w(String.prototype.indexOf), le = w(String.prototype.trim), ue = w(Number.prototype.toString), de = w(Boolean.prototype.toString), fe = typeof BigInt > "u" ? null : w(BigInt.prototype.toString), y = typeof Symbol > "u" ? null : w(Symbol.prototype.toString), b = w(Object.prototype.hasOwnProperty), x = w(Object.prototype.toString), S = w(RegExp.prototype.test), C = pe(TypeError);
53
- function w(e) {
105
+ var g = T(Array.prototype.forEach);
106
+ Array.prototype.indexOf;
107
+ var 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);
108
+ function T(e) {
54
109
  return function(t) {
55
110
  t instanceof RegExp && (t.lastIndex = 0);
56
111
  var n = [...arguments].slice(1);
57
- return h(e, t, n);
112
+ return te(e, t, n);
58
113
  };
59
114
  }
60
- function pe(e) {
115
+ function E(e) {
61
116
  return function() {
62
- return ee(e, [...arguments]);
117
+ return ne(e, [...arguments]);
63
118
  };
64
119
  }
65
- function T(e, t) {
66
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ae;
67
- if (s && s(e, null), !_(t)) return e;
120
+ function D(e, t) {
121
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : v;
122
+ if (l && l(e, null), !_(t)) return e;
68
123
  let r = t.length;
69
124
  for (; r--;) {
70
125
  let i = t[r];
71
126
  if (typeof i == "string") {
72
127
  let e = n(i);
73
- e !== i && (c(t) || (t[r] = e), i = e);
128
+ e !== i && (u(t) || (t[r] = e), i = e);
74
129
  }
75
130
  e[i] = !0;
76
131
  }
77
132
  return e;
78
133
  }
79
- function E(e) {
80
- for (let t = 0; t < e.length; t++) b(e, t) || (e[t] = null);
134
+ function ve(e) {
135
+ for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
81
136
  return e;
82
137
  }
83
- function D(e) {
84
- let t = p(null);
85
- for (let r of o(e)) {
86
- var n = i(r, 2);
87
- let a = n[0], o = n[1];
88
- b(e, a) && (_(o) ? t[a] = E(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = D(o) : t[a] = o);
138
+ function O(e) {
139
+ let t = h(null);
140
+ for (let r of c(e)) {
141
+ var n = a(r, 2);
142
+ let i = n[0], o = n[1];
143
+ x(e, i) && (_(o) ? t[i] = ve(o) : o && typeof o == "object" && o.constructor === Object ? t[i] = O(o) : t[i] = o);
89
144
  }
90
145
  return t;
91
146
  }
92
- function me(e) {
147
+ function ye(e) {
93
148
  switch (typeof e) {
94
149
  case "string": return e;
95
- case "number": return ue(e);
96
- case "boolean": return de(e);
97
- case "bigint": return fe ? fe(e) : "0";
98
- case "symbol": return y ? y(e) : "Symbol()";
99
- case "undefined": return x(e);
150
+ case "number": return ge(e);
151
+ case "boolean": return y(e);
152
+ case "bigint": return b ? b(e) : "0";
153
+ case "symbol": return _e ? _e(e) : "Symbol()";
154
+ case "undefined": return S(e);
100
155
  case "function":
101
156
  case "object": {
102
- if (e === null) return x(e);
103
- let t = e, n = O(t, "toString");
157
+ if (e === null) return S(e);
158
+ let t = e, n = k(t, "toString");
104
159
  if (typeof n == "function") {
105
160
  let e = n(t);
106
- return typeof e == "string" ? e : x(e);
161
+ return typeof e == "string" ? e : S(e);
107
162
  }
108
- return x(e);
163
+ return S(e);
109
164
  }
110
- default: return x(e);
165
+ default: return S(e);
111
166
  }
112
167
  }
113
- function O(e, t) {
168
+ function k(e, t) {
114
169
  for (; e !== null;) {
115
- let n = u(e, t);
170
+ let n = f(e, t);
116
171
  if (n) {
117
- if (n.get) return w(n.get);
118
- if (typeof n.value == "function") return w(n.value);
172
+ if (n.get) return T(n.get);
173
+ if (typeof n.value == "function") return T(n.value);
119
174
  }
120
- e = l(e);
175
+ e = d(e);
121
176
  }
122
177
  function n() {
123
178
  return null;
124
179
  }
125
180
  return n;
126
181
  }
127
- function he(e) {
182
+ function be(e, t) {
183
+ for (; e !== null;) {
184
+ let n = f(e, t);
185
+ if (n) return n.get ? T(n.get) : null;
186
+ e = d(e);
187
+ }
188
+ return null;
189
+ }
190
+ function xe(e) {
128
191
  try {
129
- return S(e, ""), !0;
192
+ return C(e, ""), !0;
130
193
  } catch {
131
194
  return !1;
132
195
  }
133
196
  }
134
- var ge = d(/* @__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(".")), _e = d(/* @__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(".")), ve = d([
197
+ 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([
135
198
  "feBlend",
136
199
  "feColorMatrix",
137
200
  "feComponentTransfer",
@@ -157,7 +220,7 @@ var ge = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
157
220
  "feSpotLight",
158
221
  "feTile",
159
222
  "feTurbulence"
160
- ]), ye = d([
223
+ ]), Te = p([
161
224
  "animate",
162
225
  "color-profile",
163
226
  "cursor",
@@ -180,7 +243,7 @@ var ge = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
180
243
  "solidcolor",
181
244
  "unknown",
182
245
  "use"
183
- ]), be = d(/* @__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(".")), xe = d([
246
+ ]), 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([
184
247
  "maction",
185
248
  "maligngroup",
186
249
  "malignmark",
@@ -196,13 +259,13 @@ var ge = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
196
259
  "annotation-xml",
197
260
  "mprescripts",
198
261
  "none"
199
- ]), Se = d(["#text"]), Ce = d(/* @__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(".")), we = d(/* @__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(".")), Te = d(/* @__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(".")), Ee = d([
262
+ ]), 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([
200
263
  "xlink:href",
201
264
  "xml:id",
202
265
  "xlink:title",
203
266
  "xml:space",
204
267
  "xmlns:xlink"
205
- ]), De = f(/{{[\w\W]*|^[\w\W]*}}/g), Oe = f(/<%[\w\W]*|^[\w\W]*%>/g), ke = f(/\${[\w\W]*/g), Ae = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), je = f(/^aria-[\-\w]+$/), Me = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ne = f(/^(?:\w+script|data):/i), Pe = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Fe = f(/^html$/i), Ie = f(/^[a-z][.\w]*(-[.\w]+)+$/i), Le = f(/<[/\w!]/g), Re = f(/<[/\w]/g), ze = f(/<\/no(script|embed|frames)/i), Be = f(/\/>/i), k = {
268
+ ]), 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 = {
206
269
  element: 1,
207
270
  attribute: 2,
208
271
  text: 3,
@@ -215,7 +278,7 @@ var ge = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
215
278
  documentType: 10,
216
279
  documentFragment: 11,
217
280
  notation: 12
218
- }, A = [
281
+ }, qe = p(D({}, [
219
282
  "style",
220
283
  "script",
221
284
  "xmp",
@@ -224,14 +287,9 @@ var ge = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
224
287
  "noframes",
225
288
  "plaintext",
226
289
  "noscript"
227
- ], Ve = d(T({}, A)), He = function() {
228
- let e = {};
229
- return g(A, (t) => {
230
- e[t] = f(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
231
- }), d(e);
232
- }(), Ue = function() {
290
+ ])), Je = function() {
233
291
  return typeof window > "u" ? null : window;
234
- }, We = function(e, t) {
292
+ }, Ye = function(e, t) {
235
293
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
236
294
  let n = null, r = "data-tt-policy-suffix";
237
295
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -248,7 +306,7 @@ var ge = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
248
306
  } catch {
249
307
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
250
308
  }
251
- }, Ge = function() {
309
+ }, Xe = function() {
252
310
  return {
253
311
  afterSanitizeAttributes: [],
254
312
  afterSanitizeElements: [],
@@ -261,59 +319,61 @@ var ge = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
261
319
  uponSanitizeShadowNode: []
262
320
  };
263
321
  }, j = function(e, t, n, r) {
264
- return b(e, t) && _(e[t]) ? T(r.base ? D(r.base) : {}, e[t], r.transform) : n;
265
- }, Ke = function(e, t, n) {
266
- let r = b(e, t) ? e[t] : void 0;
267
- return r && typeof r == "object" ? D(r) : n();
322
+ return x(e, t) && _(e[t]) ? D(r.base ? O(r.base) : {}, e[t], r.transform) : n;
323
+ }, Ze = function(e, t, n) {
324
+ let r = x(e, t) ? e[t] : void 0;
325
+ return r && typeof r == "object" ? O(r) : n();
268
326
  };
269
- function qe() {
270
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ue(), t = (e) => qe(e);
271
- if (t.version = "3.4.15", t.removed = [], !e || !e.document || e.document.nodeType !== k.document || !e.Element) return t.isSupported = !1, t;
327
+ function Qe() {
328
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Je(), t = (e) => Qe(e);
329
+ if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== A.document || !e.Element) return t.isSupported = !1, t;
272
330
  let n = e.document, r = n, i = r.currentScript;
273
331
  e.DocumentFragment;
274
- let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
332
+ let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, l = e.NodeFilter;
275
333
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
276
- let u = e.DOMParser, m = e.trustedTypes, h = c.prototype, ee = O(h, "cloneNode"), ue = O(h, "remove"), de = O(h, "removeAttributeNode"), fe = O(h, "nextSibling"), y = O(h, "childNodes"), x = O(h, "parentNode"), w = O(h, "shadowRoot"), pe = O(h, "attributes"), E = s && s.prototype ? O(s.prototype, "nodeType") : null, A = s && s.prototype ? O(s.prototype, "nodeName") : null, Je = s && s.prototype ? O(s.prototype, "ownerDocument") : null, Ye = function(e) {
277
- return E ? E(e) : e.nodeType;
278
- }, Xe = function(e) {
279
- return A ? A(e) : e.nodeName;
334
+ let 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) {
335
+ return T ? T(e) : e.nodeType;
336
+ }, $e = function(e) {
337
+ return E ? E(e) : e.nodeName;
338
+ }, et = be(f, "namespaceURI"), tt = function(e) {
339
+ return et ? et(e) : e.namespaceURI;
280
340
  };
281
341
  if (typeof a == "function") {
282
342
  let e = n.createElement("template");
283
343
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
284
344
  }
285
- let M, N = "", Ze, Qe = !1, $e = 0, et = function() {
286
- if ($e > 0) throw C("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.");
287
- }, P = function(e) {
288
- et(), $e++;
345
+ let N, P = "", nt, rt = !1, it = 0, at = function() {
346
+ 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.");
347
+ }, F = function(e) {
348
+ at(), it++;
289
349
  try {
290
- return M.createHTML(e);
350
+ return N.createHTML(e);
291
351
  } finally {
292
- $e--;
352
+ it--;
293
353
  }
294
- }, tt = function(e) {
295
- et(), $e++;
354
+ }, ot = function(e) {
355
+ at(), it++;
296
356
  try {
297
- return M.createScriptURL(e);
357
+ return N.createScriptURL(e);
298
358
  } finally {
299
- $e--;
300
- }
301
- }, nt = function() {
302
- return Qe ||= (Ze = We(m, i), !0), Ze;
303
- }, rt = n, it = rt.implementation, at = rt.createNodeIterator, ot = rt.createDocumentFragment, st = rt.getElementsByTagName, ct = r.importNode, F = Ge();
304
- t.isSupported = typeof o == "function" && typeof x == "function" && it && it.createHTMLDocument !== void 0;
305
- let lt = De, ut = Oe, dt = ke, ft = Ae, pt = je, mt = Ne, ht = Pe, gt = Ie, _t = Me, I = null, vt = T({}, [
306
- ...ge,
307
- ..._e,
308
- ...ve,
309
- ...be,
310
- ...Se
311
- ]), L = null, yt = T({}, [
359
+ it--;
360
+ }
361
+ }, st = function() {
362
+ return rt ||= (nt = Ye(d, i), !0), nt;
363
+ }, ct = n, lt = ct.implementation, ut = ct.createNodeIterator, dt = ct.createDocumentFragment, ft = ct.getElementsByTagName, pt = r.importNode, I = Xe();
364
+ t.isSupported = typeof c == "function" && typeof b == "function" && lt && lt.createHTMLDocument !== void 0;
365
+ let mt = Ne, ht = Pe, gt = Fe, _t = Ie, vt = Le, yt = ze, bt = Be, xt = He, St = Re, L = null, Ct = D({}, [
366
+ ...Se,
312
367
  ...Ce,
313
368
  ...we,
314
- ...Te,
315
- ...Ee
316
- ]), R = Object.seal(p(null, {
369
+ ...Ee,
370
+ ...Oe
371
+ ]), R = null, wt = D({}, [
372
+ ...ke,
373
+ ...Ae,
374
+ ...je,
375
+ ...Me
376
+ ]), z = Object.seal(h(null, {
317
377
  tagNameCheck: {
318
378
  writable: !0,
319
379
  configurable: !1,
@@ -332,7 +392,7 @@ function qe() {
332
392
  enumerable: !0,
333
393
  value: !1
334
394
  }
335
- })), bt = null, xt = null, z = Object.seal(p(null, {
395
+ })), Tt = null, Et = null, B = Object.seal(h(null, {
336
396
  tagCheck: {
337
397
  writable: !0,
338
398
  configurable: !1,
@@ -345,14 +405,14 @@ function qe() {
345
405
  enumerable: !0,
346
406
  value: null
347
407
  }
348
- })), St = !0, Ct = !0, wt = !1, Tt = !0, B = !1, V = !0, H = !1, Et = !1, Dt = null, Ot = null, kt = !1, U = !1, At = !1, jt = !1, Mt = !0, Nt = !1, Pt = "user-content-", Ft = !0, It = !1, W = {}, G = null, Lt = T({}, /* @__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(".")), Rt = null, zt = T({}, [
408
+ })), 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({}, [
349
409
  "audio",
350
410
  "video",
351
411
  "img",
352
412
  "source",
353
413
  "image",
354
414
  "track"
355
- ]), Bt = null, Vt = T({}, [
415
+ ]), Gt = null, Kt = D({}, [
356
416
  "alt",
357
417
  "class",
358
418
  "for",
@@ -367,262 +427,295 @@ function qe() {
367
427
  "value",
368
428
  "style",
369
429
  "xmlns"
370
- ]), Ht = "http://www.w3.org/1998/Math/MathML", Ut = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, Wt = !1, Gt = null, Kt = T({}, [
371
- Ht,
372
- Ut,
373
- K
374
- ], oe), qt = d([
430
+ ]), 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({}, [
431
+ qt,
432
+ Jt,
433
+ J
434
+ ], de), Qt = p([
375
435
  "mi",
376
436
  "mo",
377
437
  "mn",
378
438
  "ms",
379
439
  "mtext"
380
- ]), Jt = T({}, qt), Yt = d(["annotation-xml"]), Xt = T({}, Yt), Zt = T({}, [
440
+ ]), $t = D({}, Qt), en = p(["annotation-xml"]), tn = D({}, en), nn = D({}, [
381
441
  "title",
382
442
  "style",
383
443
  "font",
384
444
  "a",
385
445
  "script"
386
- ]), Qt = null, $t = ["application/xhtml+xml", "text/html"], J = null, Y = null, en = n.createElement("form"), tn = function(e) {
446
+ ]), rn = null, an = ["application/xhtml+xml", "text/html"], X = null, on = null, sn = n.createElement("form"), cn = function(e) {
387
447
  return e instanceof RegExp || e instanceof Function;
388
- }, nn = function() {
448
+ }, ln = function() {
389
449
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
390
- if (Y && Y === e) return;
391
- (!e || typeof e != "object") && (e = {}), e = D(e), Qt = $t.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Qt === "application/xhtml+xml" ? oe : ae, I = j(e, "ALLOWED_TAGS", vt, { transform: J }), L = j(e, "ALLOWED_ATTR", yt, { transform: J }), Gt = j(e, "ALLOWED_NAMESPACES", Kt, { transform: oe }), Bt = j(e, "ADD_URI_SAFE_ATTR", Vt, {
392
- transform: J,
393
- base: Vt
394
- }), Rt = j(e, "ADD_DATA_URI_TAGS", zt, {
395
- transform: J,
396
- base: zt
397
- }), G = j(e, "FORBID_CONTENTS", Lt, { transform: J }), bt = j(e, "FORBID_TAGS", D({}), { transform: J }), xt = j(e, "FORBID_ATTR", D({}), { transform: J }), W = b(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? D(e.USE_PROFILES) : e.USE_PROFILES : !1, St = e.ALLOW_ARIA_ATTR !== !1, Ct = e.ALLOW_DATA_ATTR !== !1, wt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Tt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, V = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, U = e.RETURN_DOM || !1, At = e.RETURN_DOM_FRAGMENT || !1, jt = e.RETURN_TRUSTED_TYPE || !1, kt = e.FORCE_BODY || !1, Mt = e.SANITIZE_DOM !== !1, Nt = e.SANITIZE_NAMED_PROPS || !1, Ft = e.KEEP_CONTENT !== !1, It = e.IN_PLACE || !1, _t = he(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Me, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Jt = Ke(e, "MATHML_TEXT_INTEGRATION_POINTS", () => T({}, qt)), Xt = Ke(e, "HTML_INTEGRATION_POINTS", () => T({}, Yt));
398
- let t = Ke(e, "CUSTOM_ELEMENT_HANDLING", () => p(null));
399
- if (R = p(null), b(t, "tagNameCheck") && tn(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), b(t, "attributeNameCheck") && tn(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), b(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(R), B && (Ct = !1), At && (U = !0), W && (I = T({}, Se), L = p(null), W.html === !0 && (T(I, ge), T(L, Ce)), W.svg === !0 && (T(I, _e), T(L, we), T(L, Ee)), W.svgFilters === !0 && (T(I, ve), T(L, we), T(L, Ee)), W.mathMl === !0 && (T(I, be), T(L, Te), T(L, Ee))), z.tagCheck = null, z.attributeCheck = null, b(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (I === vt && (I = D(I)), T(I, e.ADD_TAGS, J))), b(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (L === yt && (L = D(L)), T(L, e.ADD_ATTR, J))), b(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (G === Lt && (G = D(G)), T(G, e.ADD_FORBID_CONTENTS, J)), Ft && (I["#text"] = !0), H && T(I, [
450
+ if (on && on === e) return;
451
+ (!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, {
452
+ transform: X,
453
+ base: Kt
454
+ }), Ut = j(e, "ADD_DATA_URI_TAGS", Wt, {
455
+ transform: X,
456
+ base: Wt
457
+ }), 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));
458
+ let t = Ze(e, "CUSTOM_ELEMENT_HANDLING", () => h(null));
459
+ 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, [
400
460
  "html",
401
461
  "head",
402
462
  "body"
403
- ]), I.table && (T(I, ["tbody"]), delete bt.tbody), e.TRUSTED_TYPES_POLICY) {
404
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
405
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
406
- let t = M;
407
- M = e.TRUSTED_TYPES_POLICY;
463
+ ]), L.table && (D(L, ["tbody"]), delete Tt.tbody), e.TRUSTED_TYPES_POLICY) {
464
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw w("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
465
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw w("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
466
+ let t = N;
467
+ N = e.TRUSTED_TYPES_POLICY;
408
468
  try {
409
- N = P("");
469
+ P = F("");
410
470
  } catch (e) {
411
- throw M = t, e;
471
+ throw N = t, e;
412
472
  }
413
- } else e.TRUSTED_TYPES_POLICY === null ? (M = void 0, N = "") : (M === void 0 && (M = nt()), M && typeof N == "string" && (N = P("")));
414
- d && d(e), Y = e;
415
- }, rn = T({}, [
416
- ..._e,
417
- ...ve,
418
- ...ye
419
- ]), an = T({}, [...be, ...xe]), on = function(e, t, n) {
420
- return t.namespaceURI === K ? e === "svg" : t.namespaceURI === Ht ? e === "svg" && (n === "annotation-xml" || Jt[n]) : !!rn[e];
421
- }, sn = function(e, t, n) {
422
- return t.namespaceURI === K ? e === "math" : t.namespaceURI === Ut ? e === "math" && Xt[n] : !!an[e];
423
- }, cn = function(e, t, n) {
424
- return t.namespaceURI === Ut && !Xt[n] || t.namespaceURI === Ht && !Jt[n] ? !1 : !an[e] && (Zt[e] || !rn[e]);
425
- }, ln = function(e) {
426
- let t = x(e);
427
- (!t || !t.tagName) && (t = {
428
- namespaceURI: q,
429
- tagName: "template"
430
- });
431
- let n = ae(e.tagName), r = ae(t.tagName);
432
- return Gt[e.namespaceURI] ? e.namespaceURI === Ut ? on(n, t, r) : e.namespaceURI === Ht ? sn(n, t, r) : e.namespaceURI === K ? cn(n, t, r) : !!(Qt === "application/xhtml+xml" && Gt[e.namespaceURI]) : !1;
433
- }, X = function(e) {
434
- re(t.removed, { element: e });
473
+ } else e.TRUSTED_TYPES_POLICY === null ? (N = void 0, P = "") : (N === void 0 && (N = st()), N && typeof P == "string" && (P = F("")));
474
+ p && p(e), on = e;
475
+ }, un = D({}, [
476
+ ...Ce,
477
+ ...we,
478
+ ...Te
479
+ ]), dn = D({}, [...Ee, ...De]), fn = function(e, t, n) {
480
+ return t.namespaceURI === J ? e === "svg" : t.namespaceURI === qt ? e === "svg" && (n === "annotation-xml" || $t[n]) : !!un[e];
481
+ }, pn = function(e, t, n) {
482
+ return t.namespaceURI === J ? e === "math" : t.namespaceURI === Jt ? e === "math" && tn[n] : !!dn[e];
483
+ }, mn = function(e, t, n) {
484
+ return t.namespaceURI === Jt && !tn[n] || t.namespaceURI === qt && !$t[n] ? !1 : !dn[e] && (nn[e] || !un[e]);
485
+ }, hn = function(e) {
486
+ let t = tt(e), n = v($e(e)), r = b(e), i, a;
487
+ 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;
488
+ }, Z = function(e) {
489
+ ae(t.removed, { element: e });
435
490
  try {
436
- x(e).removeChild(e);
491
+ b(e).removeChild(e);
437
492
  } catch {
438
- if (ue(e), !x(e)) throw C("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
493
+ 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");
439
494
  }
440
- }, un = function(e, t, n) {
495
+ }, gn = function(e, t, n) {
441
496
  try {
442
- de(e, t);
497
+ ne(e, t);
443
498
  } catch {
444
499
  try {
445
500
  e.removeAttribute(n);
446
501
  } catch {}
447
502
  }
448
- }, dn = function(e) {
449
- pn(e);
503
+ }, _n = function(e) {
504
+ xn(e);
450
505
  let t = y(e);
451
- if (t) {
452
- let e = [];
453
- g(t, (t) => {
454
- re(e, t);
455
- }), g(e, (e) => {
456
- try {
457
- ue(e);
458
- } catch {}
459
- });
460
- }
461
- let n = pe(e);
506
+ t && g(oe(t), (e) => {
507
+ try {
508
+ te(e);
509
+ } catch {}
510
+ });
511
+ let n = M(e) === A.element ? S(e) : null;
462
512
  if (n) for (let t = n.length - 1; t >= 0; --t) {
463
513
  let r = n[t], i = r && r.name;
464
- typeof i == "string" && un(e, r, i);
514
+ typeof i == "string" && gn(e, r, i);
465
515
  }
466
- }, Z = function(e, n, r) {
516
+ }, vn = function(e, n, r) {
467
517
  if (!r) try {
468
518
  r = n.getAttributeNode(e);
469
519
  } catch {
470
520
  r = null;
471
521
  }
472
- re(t.removed, {
522
+ ae(t.removed, {
473
523
  attribute: r || null,
474
524
  from: n
475
525
  });
476
526
  try {
477
- r ? de(n, r) : n.removeAttribute(e);
527
+ r ? ne(n, r) : n.removeAttribute(e);
478
528
  } catch {
479
529
  try {
480
530
  n.removeAttribute(e);
481
531
  } catch {}
482
532
  }
483
- if (e === "is") if (U || At) try {
484
- X(n);
533
+ if (e === "is") if (W || Ft) try {
534
+ Z(n);
485
535
  } catch {}
486
536
  else try {
487
537
  n.setAttribute(e, "");
488
538
  } catch {}
489
- }, fn = function(e) {
490
- let t = pe(e);
539
+ }, yn = function(e) {
540
+ let t = S(e);
491
541
  if (t) for (let n = t.length - 1; n >= 0; --n) {
492
542
  let r = t[n], i = r && r.name;
493
- typeof i != "string" || L[J(i)] || un(e, r, i);
543
+ typeof i != "string" || R[X(i)] || gn(e, r, i);
544
+ }
545
+ }, bn = function(e, t) {
546
+ let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
547
+ for (; r.length > 0;) {
548
+ let e = r.pop();
549
+ if (t(e) === !1) continue;
550
+ if (n && M(e) === A.element) {
551
+ let t = _e(e);
552
+ Q(t) && r.push(t);
553
+ }
554
+ let i = y(e);
555
+ if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
494
556
  }
495
- }, pn = function(e) {
496
- let t = [e];
497
- for (; t.length > 0;) {
498
- let e = t.pop();
499
- Ye(e) === k.element && fn(e);
500
- let n = y(e);
501
- if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
557
+ }, xn = function(e) {
558
+ bn(e, (e) => {
559
+ M(e) === A.element && yn(e);
560
+ });
561
+ }, Sn = function(e) {
562
+ let t = [];
563
+ return bn(e, (e) => {
564
+ t.push(e);
565
+ }, !0), t;
566
+ }, Cn = function(e, t) {
567
+ let n = ce();
568
+ g(Sn(e), (e) => {
569
+ M(e) === A.element && le(n, e);
570
+ }), g(t, (e) => {
571
+ M(e) === A.element && !ue(n, e) && yn(e);
572
+ });
573
+ }, wn = function(e, n) {
574
+ let r = !1;
575
+ return g(t.removed, (t) => {
576
+ t.element && (r ||= t.element === e, xn(t.element));
577
+ }), Cn(e, n), r;
578
+ }, Tn = function(e, t) {
579
+ let n = G, r = null, i = () => (r || (r = ce(), g(t, (e) => {
580
+ le(r, e);
581
+ })), r);
582
+ for (let t = 0;; t++) {
583
+ let r = Sn(e), a = [e], o = !1;
584
+ if (g(r, (e) => {
585
+ M(e) === A.documentFragment ? ae(a, e) : !o && !ue(n, e) && (o = ue(i(), e));
586
+ }), !o) return;
587
+ if (t >= 8) throw w("the tree kept changing during in-place sanitization; refusing to return it");
588
+ g(a, (t, n) => {
589
+ En(t, n > 0, e, i());
590
+ });
502
591
  }
503
- }, mn = function(e, t) {
504
- return V ? e === "patchsrc" ? !0 : e === "for" && t !== "label" && t !== "output" : !1;
505
- }, hn = function(e) {
506
- if (!V) return;
507
- let t = [e];
508
- for (; t.length > 0;) {
509
- let e = t.pop(), n = Ye(e);
510
- if (n === k.processingInstruction || n === k.comment && S(Re, e.data)) {
592
+ }, En = function(e, t, n, r) {
593
+ let i = jn(e), a;
594
+ 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));
595
+ }, Dn = function(e) {
596
+ G && le(G, e);
597
+ }, On = function(e, t) {
598
+ return H ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
599
+ }, kn = function(e) {
600
+ H && bn(e, (e) => {
601
+ let t = M(e);
602
+ if (t === A.processingInstruction || t === A.comment && C(We, e.data)) {
511
603
  try {
512
- ue(e);
604
+ te(e);
513
605
  } catch {}
514
- continue;
606
+ return !1;
515
607
  }
516
- if (n === k.element) {
517
- let t = e, n = J(Xe(e));
608
+ if (t === A.element) {
609
+ let t = e, n = X($e(e));
518
610
  try {
519
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && mn("for", n) && t.removeAttribute("for");
611
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && On("for", n) && t.removeAttribute("for");
520
612
  } catch {}
521
613
  }
522
- let r = y(e);
523
- if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
524
- }
525
- }, gn = function(e) {
614
+ return !0;
615
+ });
616
+ }, An = function(e) {
526
617
  let t = null, r = null;
527
- if (kt) e = "<remove></remove>" + e;
618
+ if (Pt) e = "<remove></remove>" + e;
528
619
  else {
529
- let t = se(e, /^[\r\n\t ]+/);
620
+ let t = fe(e, /^[\r\n\t ]+/);
530
621
  r = t && t[0];
531
622
  }
532
- Qt === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
533
- let i = M ? P(e) : e;
534
- if (q === K) try {
535
- t = new u().parseFromString(i, Qt);
623
+ rn === "application/xhtml+xml" && Y === J && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
624
+ let i = N ? F(e) : e;
625
+ if (Y === J) try {
626
+ t = new u().parseFromString(i, rn);
536
627
  } catch {}
537
628
  if (!t || !t.documentElement) {
538
- t = it.createDocument(q, "template", null);
629
+ t = lt.createDocument(Y, "template", null);
539
630
  try {
540
- t.documentElement.innerHTML = Wt ? N : i;
631
+ t.documentElement.innerHTML = Yt ? P : i;
541
632
  } catch {}
542
633
  }
543
634
  let a = t.body || t.documentElement;
544
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? st.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
545
- }, _n = function(e) {
546
- let t = Je ? Je(e) : e.ownerDocument;
547
- return at.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
548
- }, vn = function(e) {
549
- return e = v(e, lt, " "), e = v(e, ut, " "), e = v(e, dt, " "), e;
550
- }, yn = function(e) {
551
- e.normalize();
552
- let t = Je ? Je(e) : e.ownerDocument, n = at.call(t || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
553
- for (; r;) r.data = vn(r.data), r = n.nextNode();
554
- let i = e.querySelectorAll?.call(e, "template");
555
- i && g(i, (e) => {
556
- Q(e.content) && yn(e.content);
635
+ 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;
636
+ }, jn = function(e) {
637
+ let t = ve ? ve(e) : e.ownerDocument;
638
+ return ut.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
639
+ }, Mn = function(e) {
640
+ return e = pe(e, mt, " "), e = pe(e, ht, " "), e = pe(e, gt, " "), e;
641
+ }, Nn = function(e) {
642
+ Pn(e);
643
+ let t = e.querySelectorAll?.call(e, "template");
644
+ t && g(t, (e) => {
645
+ Q(e.content) && Nn(e.content);
557
646
  });
558
- }, bn = function(e) {
559
- let t = A ? A(e) : null;
560
- return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== pe(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 !== E(e) || e.childNodes !== y(e);
647
+ }, Pn = function(e) {
648
+ e.normalize();
649
+ 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();
650
+ for (; r;) r.data = Mn(r.data), r = n.nextNode();
651
+ }, Fn = function(e) {
652
+ let t = E ? E(e) : null;
653
+ 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);
561
654
  }, Q = function(e) {
562
- if (!E || typeof e != "object" || !e) return !1;
655
+ if (!T || typeof e != "object" || !e) return !1;
563
656
  try {
564
- return E(e) === k.documentFragment;
657
+ return T(e) === A.documentFragment;
565
658
  } catch {
566
659
  return !1;
567
660
  }
568
- }, xn = function(e) {
569
- if (!E || typeof e != "object" || !e) return !1;
661
+ }, In = function(e) {
662
+ if (!T || typeof e != "object" || !e) return !1;
570
663
  try {
571
- return typeof E(e) == "number";
664
+ return typeof T(e) == "number";
572
665
  } catch {
573
666
  return !1;
574
667
  }
575
668
  };
576
669
  function $(e, n, r) {
577
670
  e.length !== 0 && g(e, (e) => {
578
- e.call(t, n, r, Y);
671
+ e.call(t, n, r, on);
579
672
  });
580
673
  }
581
- let Sn = function(e, t) {
582
- return !!(V && e.hasChildNodes() && !xn(e.firstElementChild) && S(Le, e.textContent) && S(Le, e.innerHTML) || V && e.namespaceURI === K && Ve[t] && (xn(e.firstElementChild) || typeof e.textContent == "string" && S(He[t], e.textContent)) || e.nodeType === k.processingInstruction || V && e.nodeType === k.comment && S(Re, e.data));
583
- }, Cn = function(e, t) {
584
- return e instanceof RegExp ? S(e, t) : e instanceof Function ? !!e(t, ...[...arguments].slice(2)) : !1;
585
- }, wn = function(e, t, n) {
586
- if (!bt[t] && An(t) && Cn(R.tagNameCheck, t)) return !1;
587
- if (Ft && !G[t]) {
588
- let t = x(e), r = y(e);
674
+ let Ln = function(e, t) {
675
+ 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));
676
+ }, Rn = function(e, t) {
677
+ return e instanceof RegExp ? C(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
678
+ }, zn = function(e, t, n) {
679
+ if (!Tt[t] && Gn(t) && Rn(z.tagNameCheck, t)) return !1;
680
+ if (Bt && !q[t] && !q[v(t)]) {
681
+ let t = b(e), r = y(e);
589
682
  if (r && t) {
590
683
  let i = r.length;
591
684
  for (let a = i - 1; a >= 0; --a) {
592
685
  let i = e === n ? ee(r[a], !0) : r[a];
593
- t.insertBefore(i, fe(e));
686
+ t.insertBefore(i, ge(e));
594
687
  }
595
688
  }
596
689
  }
597
- return X(e), !0;
598
- }, Tn = function(e, t, n, r) {
599
- return e.length === 0 ? t : t === n || t === r ? D(t) : t;
600
- }, En = function(e, t) {
601
- return e === t || x(e) !== null ? !1 : (It && pn(e), !0);
602
- }, Dn = function(e, n) {
603
- if ($(F.beforeSanitizeElements, e, null), En(e, n)) return !0;
604
- if (bn(e)) return X(e), !0;
605
- let r = J(Xe(e));
606
- if (I = Tn(F.uponSanitizeElement, I, vt, Dt), $(F.uponSanitizeElement, e, {
690
+ return Z(e), !0;
691
+ }, Bn = function(e, t, n, r) {
692
+ return e.length === 0 ? t : t === n || t === r ? O(t) : t;
693
+ }, Vn = function(e, t) {
694
+ return e === t || b(e) !== null ? !1 : (Vt && xn(e), !0);
695
+ }, Hn = function(e, n) {
696
+ if (Dn(e), $(I.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
697
+ if (Fn(e)) return Z(e), !0;
698
+ let r = X($e(e));
699
+ if (L = Bn(I.uponSanitizeElement, L, Ct, Mt), $(I.uponSanitizeElement, e, {
607
700
  tagName: r,
608
- allowedTags: I
609
- }), En(e, n)) return !0;
610
- if (Sn(e, r)) return X(e), !0;
611
- if (bt[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !I[r]) {
612
- let t = wn(e, r, n);
613
- return t === !1 && $(F.afterSanitizeElements, e, null), t;
614
- }
615
- if (Ye(e) === k.element && !ln(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(ze, e.innerHTML)) return X(e), !0;
616
- if (B && e.nodeType === k.text) {
617
- let n = vn(e.textContent);
618
- e.textContent !== n && (re(t.removed, { element: e.cloneNode() }), e.textContent = n);
619
- }
620
- return $(F.afterSanitizeElements, e, null), !1;
621
- }, On = function(e, t, r) {
622
- if (xt[t] || mn(t, e) || Mt && (t === "id" || t === "name") && (r in n || r in en)) return !1;
623
- let i = L[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
624
- return Ct && S(ft, t) || St && S(pt, t) ? !0 : i ? Bt[t] || S(_t, v(r, ht, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ce(r, "data:") === 0 && Rt[e] || wt && !S(mt, v(r, ht, "")) ? !0 : !r : An(e) && Cn(R.tagNameCheck, e) && Cn(R.attributeNameCheck, t, e) || t === "is" && R.allowCustomizedBuiltInElements && Cn(R.tagNameCheck, r);
625
- }, kn = T({}, [
701
+ allowedTags: L
702
+ }), Vn(e, n)) return !0;
703
+ if (Ln(e, r)) return Z(e), !0;
704
+ if (Tt[r] || !(B.tagCheck instanceof Function && B.tagCheck(r)) && !L[r]) {
705
+ let t = zn(e, r, n);
706
+ return t === !1 && ($(I.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
707
+ }
708
+ if (M(e) === A.element && !hn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && C(Ge, e.innerHTML)) return Z(e), !0;
709
+ if (V && e.nodeType === A.text) {
710
+ let n = Mn(e.textContent);
711
+ e.textContent !== n && (ae(t.removed, { element: e.cloneNode() }), e.textContent = n);
712
+ }
713
+ return $(I.afterSanitizeElements, e, null), Vn(e, n);
714
+ }, Un = function(e, t, r) {
715
+ if (Et[t] || On(t, e) || Lt && (t === "id" || t === "name") && (r in n || r in sn)) return !1;
716
+ let i = R[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
717
+ 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);
718
+ }, Wn = D({}, [
626
719
  "annotation-xml",
627
720
  "color-profile",
628
721
  "font-face",
@@ -631,67 +724,65 @@ function qe() {
631
724
  "font-face-src",
632
725
  "font-face-uri",
633
726
  "missing-glyph"
634
- ]), An = function(e) {
635
- return !kn[ae(e)] && S(gt, e);
636
- }, jn = function(e, t, n, r) {
637
- if (M && typeof m == "object" && typeof m.getAttributeType == "function" && !n) switch (m.getAttributeType(e, t)) {
638
- case "TrustedHTML": return P(r);
639
- case "TrustedScriptURL": return tt(r);
727
+ ]), Gn = function(e) {
728
+ return !Wn[v(e)] && C(xt, e);
729
+ }, Kn = function(e, t, n, r) {
730
+ if (N && typeof d == "object" && typeof d.getAttributeType == "function" && !n) switch (d.getAttributeType(e, t)) {
731
+ case "TrustedHTML": return F(r);
732
+ case "TrustedScriptURL": return ot(r);
640
733
  }
641
734
  return r;
642
- }, Mn = function(e, t, n, r) {
735
+ }, qn = function(e, t, n, r) {
643
736
  try {
644
- return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), bn(e) ? (X(e), !1) : !0;
737
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), Fn(e) ? (Z(e), !1) : !0;
645
738
  } catch {
646
- return Z(t, e), !1;
647
- }
648
- }, Nn = function(e) {
649
- $(F.beforeSanitizeAttributes, e, null);
650
- let n = e.attributes;
651
- if (!n || bn(e)) return;
652
- L = Tn(F.uponSanitizeAttribute, L, yt, Ot);
653
- let r = {
739
+ return vn(t, e), !1;
740
+ }
741
+ }, Jn = function(e, t) {
742
+ return H && C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : v(e) === "attributename" && fe(t, "href") !== null;
743
+ }, Yn = function(e, n) {
744
+ if ($(I.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
745
+ let r = e.attributes;
746
+ if (!r || Fn(e)) return;
747
+ R = Bn(I.uponSanitizeAttribute, R, wt, Nt);
748
+ let i = {
654
749
  attrName: "",
655
750
  attrValue: "",
656
751
  keepAttr: !0,
657
- allowedAttributes: L,
752
+ allowedAttributes: R,
658
753
  forceKeepAttr: void 0
659
- }, i = n.length, a = J(e.nodeName);
660
- for (; i--;) {
661
- let o = n[i], s = o.name, c = o.namespaceURI, l = o.value, u = J(s), d = l, f = s === "value" ? d : le(d), p = !1;
662
- if (r.attrName = u, r.attrValue = f, r.keepAttr = !0, r.forceKeepAttr = void 0, $(F.uponSanitizeAttribute, e, r), f = r.attrValue, Nt && (u === "id" || u === "name") && ce(f, Pt) !== 0 && (Z(s, e, o), f = Pt + f, p = !0), V && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
663
- Z(s, e, o);
664
- continue;
665
- }
666
- if (u === "attributename" && se(f, "href")) {
667
- Z(s, e, o);
754
+ }, a = r.length, o = X(e.nodeName);
755
+ for (; a--;) {
756
+ 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;
757
+ if (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)) {
758
+ vn(s, e, n);
668
759
  continue;
669
760
  }
670
- if (!r.forceKeepAttr) {
671
- if (!r.keepAttr) {
672
- Z(s, e, o);
761
+ if (!i.forceKeepAttr) {
762
+ if (!i.keepAttr) {
763
+ vn(s, e, n);
673
764
  continue;
674
765
  }
675
- if (!Tt && S(Be, f)) {
676
- Z(s, e, o);
766
+ if (!At && C(Ke, f)) {
767
+ vn(s, e, n);
677
768
  continue;
678
769
  }
679
- if (B && (f = vn(f)), !On(a, u, f)) {
680
- Z(s, e, o);
770
+ if (V && (f = Mn(f)), !Un(o, u, f)) {
771
+ vn(s, e, n);
681
772
  continue;
682
773
  }
683
- f = jn(a, u, c, f), f !== d && Mn(e, s, c, f) && p && ne(t.removed);
774
+ f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && p && ie(t.removed);
684
775
  }
685
776
  }
686
- $(F.afterSanitizeAttributes, e, null);
687
- }, Pn = function(e) {
688
- let t = null, n = _n(e);
689
- for ($(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(F.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t), Q(t.content) && Pn(t.content), Ye(t) === k.element) {
690
- let e = w(t);
691
- Q(e) && (Fn(e), Pn(e));
777
+ $(I.afterSanitizeAttributes, e, null), Vn(e, n);
778
+ }, Xn = function(e) {
779
+ let t = null, n = jn(e);
780
+ 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) {
781
+ let e = _e(t);
782
+ Q(e) && (Zn(e), Xn(e));
692
783
  }
693
- $(F.afterSanitizeShadowDOM, e, null);
694
- }, Fn = function(e) {
784
+ V && Pn(e), $(I.afterSanitizeShadowDOM, e, null);
785
+ }, Zn = function(e) {
695
786
  let t = [{
696
787
  node: e,
697
788
  shadow: null
@@ -699,17 +790,17 @@ function qe() {
699
790
  for (; t.length > 0;) {
700
791
  let e = t.pop();
701
792
  if (e.shadow) {
702
- Pn(e.shadow);
793
+ Xn(e.shadow);
703
794
  continue;
704
795
  }
705
- let n = e.node, r = Ye(n) === k.element, i = y(n);
796
+ let n = e.node, r = M(n) === A.element, i = y(n);
706
797
  if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
707
798
  node: i[e],
708
799
  shadow: null
709
800
  });
710
801
  if (r) {
711
- let e = A ? A(n) : null;
712
- if (typeof e == "string" && J(e) === "template") {
802
+ let e = E ? E(n) : null;
803
+ if (typeof e == "string" && X(e) === "template") {
713
804
  let e = n.content;
714
805
  Q(e) && t.push({
715
806
  node: e,
@@ -718,7 +809,7 @@ function qe() {
718
809
  }
719
810
  }
720
811
  if (r) {
721
- let e = w(n);
812
+ let e = _e(n);
722
813
  Q(e) && t.push({
723
814
  node: null,
724
815
  shadow: e
@@ -731,70 +822,72 @@ function qe() {
731
822
  };
732
823
  return t.sanitize = function(e) {
733
824
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
734
- if (Wt = !e, Wt && (e = "<!-->"), typeof e != "string" && !xn(e) && (e = me(e), typeof e != "string")) throw C("dirty is not a string, aborting");
825
+ if (Yt = !e, Yt && (e = "<!-->"), typeof e != "string" && !In(e) && (e = ye(e), typeof e != "string")) throw w("dirty is not a string, aborting");
735
826
  if (!t.isSupported) return e;
736
- Et ? (I = Dt, L = Ot) : nn(n), (F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && (I = D(I)), F.uponSanitizeAttribute.length > 0 && (L = D(L)), t.removed = [];
737
- let c = It && typeof e != "string" && xn(e);
827
+ 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 = [];
828
+ let c = Vt && typeof e != "string" && In(e), l = [], u = G;
738
829
  if (c) {
739
- hn(e);
740
- let t = Xe(e);
830
+ kn(e);
831
+ let t = $e(e);
741
832
  if (typeof t == "string") {
742
- let n = J(t);
743
- if (!I[n] || bt[n]) throw dn(e), C("root node is forbidden and cannot be sanitized in-place");
744
- }
745
- if (bn(e)) throw dn(e), C("root node is clobbered and cannot be sanitized in-place");
746
- try {
747
- Fn(e);
748
- } catch (t) {
749
- throw dn(e), t;
833
+ let n = X(t);
834
+ if (!L[n] || Tt[n]) throw _n(e), w("root node is forbidden and cannot be sanitized in-place");
750
835
  }
751
- } else if (xn(e)) i = gn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === k.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
836
+ if (Fn(e)) throw _n(e), w("root node is clobbered and cannot be sanitized in-place");
837
+ l = Sn(e), G = ce();
838
+ } 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);
752
839
  else {
753
- if (!U && !B && !H && e.indexOf("<") === -1) return M && jt ? P(e) : e;
754
- if (i = gn(e), !i) return U ? null : jt ? N : "";
840
+ if (!W && !V && !U && e.indexOf("<") === -1) return N && It ? F(e) : e;
841
+ if (i = An(e), !i) return W ? null : It ? P : "";
755
842
  }
756
- i && kt && X(i.firstChild);
757
- let l = c ? e : i;
843
+ i && Pt && Z(i.firstChild);
844
+ let d = c ? e : i;
758
845
  try {
759
- let e = _n(l);
760
- for (; o = e.nextNode();) Dn(o, l), Nn(o), Q(o.content) && Pn(o.content);
761
- } catch (n) {
762
- throw c && (dn(e), g(t.removed, (e) => {
763
- e.element && pn(e.element);
764
- })), n;
765
- }
766
- if (c) return g(t.removed, (e) => {
767
- e.element && pn(e.element);
768
- }), B && yn(e), e;
769
- if (U) {
770
- if (B && yn(i), At) for (s = ot.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
846
+ c && Zn(e);
847
+ let t = jn(d);
848
+ for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Q(o.content) && Xn(o.content);
849
+ c && Tn(e, l);
850
+ } catch (t) {
851
+ throw c && (_n(e), wn(e, l)), t;
852
+ } finally {
853
+ G = u;
854
+ }
855
+ if (c) {
856
+ if (wn(e, l)) throw w("a node selected for removal could not be safely returned; refusing to sanitize in place");
857
+ return V && Nn(e), e;
858
+ }
859
+ if (W) {
860
+ if (V && Nn(i), Ft) for (s = dt.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
771
861
  else s = i;
772
- return (L.shadowroot || L.shadowrootmode) && (s = ct.call(r, s, !0)), s;
862
+ return (R.shadowroot || R.shadowrootmode) && (s = pt.call(r, s, !0)), s;
773
863
  }
774
- let u = H ? i.outerHTML : i.innerHTML;
775
- return H && I["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Fe, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = vn(u)), M && jt ? P(u) : u;
864
+ let f = U ? i.outerHTML : i.innerHTML;
865
+ 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;
776
866
  }, t.setConfig = function() {
777
- nn(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Et = !0, Dt = I, Ot = L;
867
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
868
+ ln(e), jt = !0, Mt = L, Nt = R;
778
869
  }, t.clearConfig = function() {
779
- Y = null, Et = !1, Dt = null, Ot = null, M = Ze, N = "";
870
+ on = null, jt = !1, Mt = null, Nt = null, N = nt, P = "";
780
871
  }, t.isValidAttribute = function(e, t, n) {
781
- return Y || nn({}), On(J(e), J(t), n);
872
+ on || ln({});
873
+ let r = X(e), i = X(t);
874
+ return typeof n == "string" && (Jn(t, n) || !At && C(Ke, n)) ? !1 : Un(r, i, n);
782
875
  }, t.addHook = function(e, t) {
783
- typeof t == "function" && b(F, e) && re(F[e], t);
876
+ typeof t == "function" && x(I, e) && ae(I[e], t);
784
877
  }, t.removeHook = function(e, t) {
785
- if (b(F, e)) {
878
+ if (x(I, e)) {
786
879
  if (t !== void 0) {
787
- let n = te(F[e], t);
788
- return n === -1 ? void 0 : ie(F[e], n, 1)[0];
880
+ let n = re(I[e], t);
881
+ return n === -1 ? void 0 : se(I[e], n, 1)[0];
789
882
  }
790
- return ne(F[e]);
883
+ return ie(I[e]);
791
884
  }
792
885
  }, t.removeHooks = function(e) {
793
- b(F, e) && (F[e] = []);
886
+ x(I, e) && (I[e] = []);
794
887
  }, t.removeAllHooks = function() {
795
- F = Ge();
888
+ I = Xe();
796
889
  }, t;
797
890
  }
798
- var Je = qe();
891
+ var M = Qe();
799
892
  //#endregion
800
- export { Je as purify };
893
+ export { M as default };