@leaflink/stash 50.11.0 → 50.12.1

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 (204) hide show
  1. package/dist/Accordion.js +30 -31
  2. package/dist/Accordion.js.map +1 -1
  3. package/dist/Accordion.vue.d.ts +6 -1
  4. package/dist/ActionsDropdown.js +2 -2
  5. package/dist/AddressSelect.js +2 -2
  6. package/dist/Alert.js +6 -6
  7. package/dist/AppNavigationItem.js +8 -8
  8. package/dist/AppNavigationItem.vue.d.ts +5 -0
  9. package/dist/AppSidebar.js +9 -9
  10. package/dist/AppSidebar.js.map +1 -1
  11. package/dist/AppTopbar.js +3 -3
  12. package/dist/Avatar.js +3 -3
  13. package/dist/Backdrop.js +2 -2
  14. package/dist/Badge.js +2 -2
  15. package/dist/Box.js +1 -1
  16. package/dist/{Box.vue_vue_type_script_setup_true_lang-DgJHq-09.js → Box.vue_vue_type_script_setup_true_lang-rFnvwLVY.js} +3 -3
  17. package/dist/{Box.vue_vue_type_script_setup_true_lang-DgJHq-09.js.map → Box.vue_vue_type_script_setup_true_lang-rFnvwLVY.js.map} +1 -1
  18. package/dist/Button.js +3 -3
  19. package/dist/ButtonGroup.js +4 -4
  20. package/dist/Card.js +7 -7
  21. package/dist/CardContent.js +2 -2
  22. package/dist/CardFooter.js +2 -2
  23. package/dist/CardHeader.js +4 -4
  24. package/dist/CardMedia.js +6 -6
  25. package/dist/Carousel.js +33 -33
  26. package/dist/Carousel.js.map +1 -1
  27. package/dist/Checkbox.js +7 -7
  28. package/dist/ChevronToggle.js +1 -1
  29. package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-DuvluoTi.js → ChevronToggle.vue_vue_type_script_setup_true_lang-Ce_qOXfR.js} +3 -3
  30. package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-DuvluoTi.js.map → ChevronToggle.vue_vue_type_script_setup_true_lang-Ce_qOXfR.js.map} +1 -1
  31. package/dist/Chip.js +7 -7
  32. package/dist/ConfirmationCodeInput.js +6 -6
  33. package/dist/ContextSwitcher.js +1 -1
  34. package/dist/Copy.js +1 -1
  35. package/dist/CurrencyInput.js +115 -111
  36. package/dist/CurrencyInput.js.map +1 -1
  37. package/dist/DataView.js +102 -98
  38. package/dist/DataView.js.map +1 -1
  39. package/dist/{DataView.keys-C7eaZg2G.js → DataView.keys-aSOnA4AD.js} +2 -1
  40. package/dist/DataView.keys-aSOnA4AD.js.map +1 -0
  41. package/dist/DataView.vue.d.ts +11 -0
  42. package/dist/DataViewFilters.js +4 -4
  43. package/dist/DataViewSortButton.js +11 -11
  44. package/dist/DataViewToolbar.js +61 -60
  45. package/dist/DataViewToolbar.js.map +1 -1
  46. package/dist/DatePicker.js +1080 -1037
  47. package/dist/DatePicker.js.map +1 -1
  48. package/dist/DescriptionList.js +2 -2
  49. package/dist/DescriptionListDetail.js +2 -2
  50. package/dist/DescriptionListGroup.js +2 -2
  51. package/dist/DescriptionListTerm.js +3 -3
  52. package/dist/Dialog.js +1 -1
  53. package/dist/Divider.js +2 -2
  54. package/dist/Dropdown.js +19 -19
  55. package/dist/Dropdown.js.map +1 -1
  56. package/dist/EmptyState.js +2 -2
  57. package/dist/Expand.js +1 -1
  58. package/dist/{Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js → Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js} +5 -5
  59. package/dist/{Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js.map → Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js.map} +1 -1
  60. package/dist/Field.js +1 -1
  61. package/dist/{Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js → Field.vue_vue_type_script_setup_true_lang-DRaKs9Lm.js} +6 -6
  62. package/dist/Field.vue_vue_type_script_setup_true_lang-DRaKs9Lm.js.map +1 -0
  63. package/dist/FileUpload.js +7 -7
  64. package/dist/FilterChip.js +1 -1
  65. package/dist/FilterDrawerItem.js +9 -9
  66. package/dist/FilterDropdown.js +2 -2
  67. package/dist/FilterSelect.js +4 -4
  68. package/dist/Filters.js +18 -18
  69. package/dist/Filters.js.map +1 -1
  70. package/dist/HttpError.js +9 -9
  71. package/dist/Icon.js +2 -2
  72. package/dist/Icon.js.map +1 -1
  73. package/dist/Icon.vue.d.ts +5 -0
  74. package/dist/IconLabel.js +2 -2
  75. package/dist/IconLabel.vue.d.ts +5 -0
  76. package/dist/Illustration.js +2 -2
  77. package/dist/{Illustration.vue_vue_type_script_setup_true_lang-CYddAFtS.js → Illustration.vue_vue_type_script_setup_true_lang-BBqgoJO8.js} +3 -3
  78. package/dist/{Illustration.vue_vue_type_script_setup_true_lang-CYddAFtS.js.map → Illustration.vue_vue_type_script_setup_true_lang-BBqgoJO8.js.map} +1 -1
  79. package/dist/Image.js +2 -2
  80. package/dist/{Image.vue_vue_type_script_setup_true_lang-YUNunj71.js → Image.vue_vue_type_script_setup_true_lang-D5u4av0_.js} +3 -3
  81. package/dist/{Image.vue_vue_type_script_setup_true_lang-YUNunj71.js.map → Image.vue_vue_type_script_setup_true_lang-D5u4av0_.js.map} +1 -1
  82. package/dist/InlineEdit.js +5 -5
  83. package/dist/InlineEdit.js.map +1 -1
  84. package/dist/Input.js +2 -2
  85. package/dist/InputOptions.js +2 -2
  86. package/dist/InputOptions.js.map +1 -1
  87. package/dist/IntegrationIcon.js +2 -2
  88. package/dist/Label.js +1 -1
  89. package/dist/{Label.vue_vue_type_script_setup_true_lang-C4JKdqvC.js → Label.vue_vue_type_script_setup_true_lang-DPnNUfc6.js} +3 -3
  90. package/dist/{Label.vue_vue_type_script_setup_true_lang-C4JKdqvC.js.map → Label.vue_vue_type_script_setup_true_lang-DPnNUfc6.js.map} +1 -1
  91. package/dist/LicenseChip.js +2 -2
  92. package/dist/ListItem.js +1 -1
  93. package/dist/ListItemCell.js +2 -2
  94. package/dist/ListView.js +11 -11
  95. package/dist/ListView.js.map +1 -1
  96. package/dist/ListView.vue.d.ts +38 -13
  97. package/dist/Loading.js +2 -2
  98. package/dist/Logo.js +1 -1
  99. package/dist/{Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js → Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js} +4 -4
  100. package/dist/{Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js.map → Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js.map} +1 -1
  101. package/dist/Menu.js +2 -2
  102. package/dist/MenuItem.js +2 -2
  103. package/dist/Metric.js +5 -5
  104. package/dist/Modal.js +20 -20
  105. package/dist/Modals.js +12 -12
  106. package/dist/Modals.js.map +1 -1
  107. package/dist/Module.js +3 -3
  108. package/dist/ModuleContent.js +3 -3
  109. package/dist/ModuleFooter.js +2 -2
  110. package/dist/ModuleHeader.js +2 -2
  111. package/dist/ModuleHeader.js.map +1 -1
  112. package/dist/ObfuscateText.js +7 -7
  113. package/dist/PageContent.js +3 -3
  114. package/dist/PageHeader.js +6 -6
  115. package/dist/PageNavigation.js +1 -1
  116. package/dist/Paginate.js +73 -55
  117. package/dist/Paginate.js.map +1 -1
  118. package/dist/Paginate.vue.d.ts +12 -1
  119. package/dist/PlaidLink.js +2 -2
  120. package/dist/QuickAction.js +2 -2
  121. package/dist/QuickAction.vue.d.ts +5 -0
  122. package/dist/Radio.js +2 -2
  123. package/dist/RadioGroup.js +2 -2
  124. package/dist/RadioNew.js +1 -1
  125. package/dist/RangeInput.js +2 -2
  126. package/dist/SearchBar.js +4 -4
  127. package/dist/SearchBar.js.map +1 -1
  128. package/dist/Select.js +7 -7
  129. package/dist/Select.js.map +1 -1
  130. package/dist/SelectStatus.js +19 -19
  131. package/dist/SelectStatus.js.map +1 -1
  132. package/dist/SelectStatus.vue.d.ts +5 -0
  133. package/dist/Skeleton.js +4 -4
  134. package/dist/Step.js +19 -19
  135. package/dist/Step.js.map +1 -1
  136. package/dist/Stepper.js +9 -9
  137. package/dist/Switch.js +7 -7
  138. package/dist/Tab.js +4 -4
  139. package/dist/TabPanel.js +2 -2
  140. package/dist/Table.js +6 -6
  141. package/dist/Table.js.map +1 -1
  142. package/dist/TableCell.js +7 -7
  143. package/dist/TableHeaderCell.js +4 -4
  144. package/dist/TableHeaderRow.js +5 -5
  145. package/dist/TableRow.js +5 -5
  146. package/dist/TableRow.js.map +1 -1
  147. package/dist/TableRow.vue.d.ts +12 -8
  148. package/dist/Tabs.js +2 -2
  149. package/dist/{Tabs.vue_vue_type_script_setup_true_lang-NZm1OrRT.js → Tabs.vue_vue_type_script_setup_true_lang-CmnBP4i1.js} +4 -4
  150. package/dist/{Tabs.vue_vue_type_script_setup_true_lang-NZm1OrRT.js.map → Tabs.vue_vue_type_script_setup_true_lang-CmnBP4i1.js.map} +1 -1
  151. package/dist/TextEditor.js +3314 -3291
  152. package/dist/TextEditor.js.map +1 -1
  153. package/dist/TextEditor.vue.d.ts +5 -0
  154. package/dist/Textarea.js +3 -3
  155. package/dist/Textarea.js.map +1 -1
  156. package/dist/Thumbnail.js +7 -7
  157. package/dist/Thumbnail.js.map +1 -1
  158. package/dist/ThumbnailEmpty.js +3 -3
  159. package/dist/ThumbnailGroup.js +6 -6
  160. package/dist/ThumbnailGroup.js.map +1 -1
  161. package/dist/{ThumbnailGroup.keys-D6WL5xQ5.js → ThumbnailGroup.keys-EJ4qFNhx.js} +2 -2
  162. package/dist/{ThumbnailGroup.keys-D6WL5xQ5.js.map → ThumbnailGroup.keys-EJ4qFNhx.js.map} +1 -1
  163. package/dist/Timeline.js +2 -2
  164. package/dist/TimelineItem.js +3 -3
  165. package/dist/Toast.js +277 -280
  166. package/dist/Toast.js.map +1 -1
  167. package/dist/Toasts.js +1 -1
  168. package/dist/Tooltip.js +1 -1
  169. package/dist/components.css +1 -1
  170. package/dist/directives/autofocus.js +2 -2
  171. package/dist/directives/autofocus.js.map +1 -1
  172. package/dist/directives/sticky.js.map +1 -1
  173. package/dist/{formatDateTime-C8CYECpd.js → formatDateTime-Dz8bXV0R.js} +98 -12
  174. package/dist/{formatDateTime-C8CYECpd.js.map → formatDateTime-Dz8bXV0R.js.map} +1 -1
  175. package/dist/index.js +2 -2
  176. package/dist/index.js.map +1 -1
  177. package/dist/locale.js +3 -2
  178. package/dist/locale.js.map +1 -1
  179. package/dist/searchFuzzy-DRasJ33G.js +409 -0
  180. package/dist/{searchFuzzy-DKooyZM8.js.map → searchFuzzy-DRasJ33G.js.map} +1 -1
  181. package/dist/storage.js +3 -3
  182. package/dist/tailwind-base.js +0 -2
  183. package/dist/tailwind-base.js.map +1 -1
  184. package/dist/{toTimeZone-CVE1ZmsS.js → toTimeZone-Coq1oPTt.js} +7 -9
  185. package/dist/{toTimeZone-CVE1ZmsS.js.map → toTimeZone-Coq1oPTt.js.map} +1 -1
  186. package/dist/useModals.js.map +1 -1
  187. package/dist/usePaginationStats-d_q39naC.js +12 -0
  188. package/dist/usePaginationStats-d_q39naC.js.map +1 -0
  189. package/dist/useSearch.js +1 -1
  190. package/dist/useSelection.js +4 -1
  191. package/dist/useSelection.js.map +1 -1
  192. package/dist/useValidation.js +39 -36
  193. package/dist/useValidation.js.map +1 -1
  194. package/dist/utils/formatDateTime.js +2 -2
  195. package/dist/utils/helpers.js +29 -29
  196. package/dist/utils/helpers.js.map +1 -1
  197. package/dist/utils/searchFuzzy.js +1 -1
  198. package/dist/utils/toTimeZone.js +1 -1
  199. package/package.json +42 -20
  200. package/tailwind-base.ts +0 -2
  201. package/types/jsonApi.ts +8 -8
  202. package/dist/DataView.keys-C7eaZg2G.js.map +0 -1
  203. package/dist/Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js.map +0 -1
  204. package/dist/searchFuzzy-DKooyZM8.js +0 -407
package/dist/Toast.js CHANGED
@@ -1,203 +1,206 @@
1
- import { defineComponent as $t, useCssModule as qt, computed as lt, openBlock as ye, createElementBlock as Le, normalizeClass as Kt, unref as Oe, createVNode as ct, isVNode as Zt } from "vue";
1
+ import { defineComponent as qt, useCssModule as Kt, computed as lt, createElementBlock as Ne, openBlock as be, normalizeClass as Zt, unref as De, createVNode as ct, isVNode as Jt } from "vue";
2
2
  import ut from "@leaflink/snitch";
3
- import Jt from "lodash-es/capitalize";
4
- import { S as ft, b as Qt } from "./statusLevels-D8EgtE_L.js";
5
- import en from "./CustomRender.js";
6
- import tn from "./Icon.js";
7
- import { _ as nn } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
3
+ import Qt from "lodash-es/capitalize";
4
+ import { S as ft, b as en } from "./statusLevels-D8EgtE_L.js";
5
+ import tn from "./CustomRender.js";
6
+ import nn from "./Icon.js";
7
+ import { _ as on } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ /*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
9
9
  const {
10
- entries: At,
10
+ entries: St,
11
11
  setPrototypeOf: mt,
12
- isFrozen: on,
13
- getPrototypeOf: rn,
14
- getOwnPropertyDescriptor: an
12
+ isFrozen: rn,
13
+ getPrototypeOf: an,
14
+ getOwnPropertyDescriptor: sn
15
15
  } = Object;
16
16
  let {
17
- freeze: A,
18
- seal: y,
19
- create: St
17
+ freeze: S,
18
+ seal: O,
19
+ create: Rt
20
20
  } = Object, {
21
- apply: Me,
22
- construct: we
21
+ apply: Pe,
22
+ construct: ve
23
23
  } = typeof Reflect < "u" && Reflect;
24
- A || (A = function(o) {
24
+ S || (S = function(o) {
25
25
  return o;
26
26
  });
27
- y || (y = function(o) {
27
+ O || (O = function(o) {
28
28
  return o;
29
29
  });
30
- Me || (Me = function(o, r, a) {
31
- return o.apply(r, a);
30
+ Pe || (Pe = function(o, r, s) {
31
+ return o.apply(r, s);
32
32
  });
33
- we || (we = function(o, r) {
33
+ ve || (ve = function(o, r) {
34
34
  return new o(...r);
35
35
  });
36
- const ae = R(Array.prototype.forEach), pt = R(Array.prototype.pop), j = R(Array.prototype.push), le = R(String.prototype.toLowerCase), Ne = R(String.prototype.toString), dt = R(String.prototype.match), $ = R(String.prototype.replace), sn = R(String.prototype.indexOf), ln = R(String.prototype.trim), N = R(Object.prototype.hasOwnProperty), h = R(RegExp.prototype.test), q = cn(TypeError);
37
- function R(l) {
36
+ const le = R(Array.prototype.forEach), ln = R(Array.prototype.lastIndexOf), pt = R(Array.prototype.pop), $ = R(Array.prototype.push), cn = R(Array.prototype.splice), ue = R(String.prototype.toLowerCase), Ie = R(String.prototype.toString), dt = R(String.prototype.match), j = R(String.prototype.replace), un = R(String.prototype.indexOf), fn = R(String.prototype.trim), b = R(Object.prototype.hasOwnProperty), A = R(RegExp.prototype.test), q = mn(TypeError);
37
+ function R(a) {
38
38
  return function(o) {
39
- for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), f = 1; f < r; f++)
40
- a[f - 1] = arguments[f];
41
- return Me(l, o, a);
39
+ for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0), f = 1; f < r; f++)
40
+ s[f - 1] = arguments[f];
41
+ return Pe(a, o, s);
42
42
  };
43
43
  }
44
- function cn(l) {
44
+ function mn(a) {
45
45
  return function() {
46
- for (var o = arguments.length, r = new Array(o), a = 0; a < o; a++)
47
- r[a] = arguments[a];
48
- return we(l, r);
46
+ for (var o = arguments.length, r = new Array(o), s = 0; s < o; s++)
47
+ r[s] = arguments[s];
48
+ return ve(a, r);
49
49
  };
50
50
  }
51
- function s(l, o) {
52
- let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : le;
53
- mt && mt(l, null);
54
- let a = o.length;
55
- for (; a--; ) {
56
- let f = o[a];
51
+ function l(a, o) {
52
+ let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ue;
53
+ mt && mt(a, null);
54
+ let s = o.length;
55
+ for (; s--; ) {
56
+ let f = o[s];
57
57
  if (typeof f == "string") {
58
58
  const L = r(f);
59
- L !== f && (on(o) || (o[a] = L), f = L);
59
+ L !== f && (rn(o) || (o[s] = L), f = L);
60
60
  }
61
- l[f] = !0;
61
+ a[f] = !0;
62
62
  }
63
- return l;
63
+ return a;
64
64
  }
65
- function un(l) {
66
- for (let o = 0; o < l.length; o++)
67
- N(l, o) || (l[o] = null);
68
- return l;
65
+ function pn(a) {
66
+ for (let o = 0; o < a.length; o++)
67
+ b(a, o) || (a[o] = null);
68
+ return a;
69
69
  }
70
- function x(l) {
71
- const o = St(null);
72
- for (const [r, a] of At(l))
73
- N(l, r) && (Array.isArray(a) ? o[r] = un(a) : a && typeof a == "object" && a.constructor === Object ? o[r] = x(a) : o[r] = a);
70
+ function x(a) {
71
+ const o = Rt(null);
72
+ for (const [r, s] of St(a))
73
+ b(a, r) && (Array.isArray(s) ? o[r] = pn(s) : s && typeof s == "object" && s.constructor === Object ? o[r] = x(s) : o[r] = s);
74
74
  return o;
75
75
  }
76
- function K(l, o) {
77
- for (; l !== null; ) {
78
- const a = an(l, o);
79
- if (a) {
80
- if (a.get)
81
- return R(a.get);
82
- if (typeof a.value == "function")
83
- return R(a.value);
76
+ function K(a, o) {
77
+ for (; a !== null; ) {
78
+ const s = sn(a, o);
79
+ if (s) {
80
+ if (s.get)
81
+ return R(s.get);
82
+ if (typeof s.value == "function")
83
+ return R(s.value);
84
84
  }
85
- l = rn(l);
85
+ a = an(a);
86
86
  }
87
87
  function r() {
88
88
  return null;
89
89
  }
90
90
  return r;
91
91
  }
92
- const _t = A(["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", "section", "select", "shadow", "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"]), De = A(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), be = A(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), fn = A(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ce = A(["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"]), mn = A(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Tt = A(["#text"]), Et = A(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "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", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ie = A(["accent-height", "accumulate", "additive", "alignment-baseline", "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", "dur", "edgemode", "elevation", "end", "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", "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", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "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", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "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"]), gt = A(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "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"]), se = A(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), pn = y(/\{\{[\w\W]*|[\w\W]*\}\}/gm), dn = y(/<%[\w\W]*|[\w\W]*%>/gm), _n = y(/\${[\w\W]*}/gm), Tn = y(/^data-[\-\w.\u00B7-\uFFFF]/), En = y(/^aria-[\-\w]+$/), Rt = y(
92
+ const _t = S(["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", "section", "select", "shadow", "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"]), Me = S(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ce = S(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), dn = S(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), we = S(["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"]), _n = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Tt = S(["#text"]), Et = S(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "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", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), xe = S(["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", "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", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "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-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "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"]), gt = S(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "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"]), ce = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Tn = O(/\{\{[\w\W]*|[\w\W]*\}\}/gm), En = O(/<%[\w\W]*|[\w\W]*%>/gm), gn = O(/\$\{[\w\W]*/gm), hn = O(/^data-[\-\w.\u00B7-\uFFFF]+$/), An = O(/^aria-[\-\w]+$/), yt = O(
93
93
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
94
94
  // eslint-disable-line no-useless-escape
95
- ), gn = y(/^(?:\w+script|data):/i), hn = y(
95
+ ), Sn = O(/^(?:\w+script|data):/i), Rn = O(
96
96
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
97
97
  // eslint-disable-line no-control-regex
98
- ), yt = y(/^html$/i), An = y(/^[a-z][.\w]*(-[.\w]+)+$/i);
98
+ ), Ot = O(/^html$/i), yn = O(/^[a-z][.\w]*(-[.\w]+)+$/i);
99
99
  var ht = /* @__PURE__ */ Object.freeze({
100
100
  __proto__: null,
101
- MUSTACHE_EXPR: pn,
102
- ERB_EXPR: dn,
103
- TMPLIT_EXPR: _n,
104
- DATA_ATTR: Tn,
105
- ARIA_ATTR: En,
106
- IS_ALLOWED_URI: Rt,
107
- IS_SCRIPT_OR_DATA: gn,
108
- ATTR_WHITESPACE: hn,
109
- DOCTYPE_NAME: yt,
110
- CUSTOM_ELEMENT: An
101
+ ARIA_ATTR: An,
102
+ ATTR_WHITESPACE: Rn,
103
+ CUSTOM_ELEMENT: yn,
104
+ DATA_ATTR: hn,
105
+ DOCTYPE_NAME: Ot,
106
+ ERB_EXPR: En,
107
+ IS_ALLOWED_URI: yt,
108
+ IS_SCRIPT_OR_DATA: Sn,
109
+ MUSTACHE_EXPR: Tn,
110
+ TMPLIT_EXPR: gn
111
111
  });
112
112
  const Z = {
113
113
  element: 1,
114
- attribute: 2,
115
114
  text: 3,
116
- cdataSection: 4,
117
- entityReference: 5,
118
- // Deprecated
119
- entityNode: 6,
120
115
  // Deprecated
121
116
  progressingInstruction: 7,
122
117
  comment: 8,
123
- document: 9,
124
- documentType: 10,
125
- documentFragment: 11,
126
- notation: 12
127
- // Deprecated
128
- }, Sn = function() {
118
+ document: 9
119
+ }, On = function() {
129
120
  return typeof window > "u" ? null : window;
130
- }, Rn = function(o, r) {
121
+ }, Ln = function(o, r) {
131
122
  if (typeof o != "object" || typeof o.createPolicy != "function")
132
123
  return null;
133
- let a = null;
124
+ let s = null;
134
125
  const f = "data-tt-policy-suffix";
135
- r && r.hasAttribute(f) && (a = r.getAttribute(f));
136
- const L = "dompurify" + (a ? "#" + a : "");
126
+ r && r.hasAttribute(f) && (s = r.getAttribute(f));
127
+ const L = "dompurify" + (s ? "#" + s : "");
137
128
  try {
138
129
  return o.createPolicy(L, {
139
- createHTML(O) {
140
- return O;
130
+ createHTML(N) {
131
+ return N;
141
132
  },
142
- createScriptURL(O) {
143
- return O;
133
+ createScriptURL(N) {
134
+ return N;
144
135
  }
145
136
  });
146
137
  } catch {
147
138
  return console.warn("TrustedTypes policy " + L + " could not be created."), null;
148
139
  }
140
+ }, At = function() {
141
+ return {
142
+ afterSanitizeAttributes: [],
143
+ afterSanitizeElements: [],
144
+ afterSanitizeShadowDOM: [],
145
+ beforeSanitizeAttributes: [],
146
+ beforeSanitizeElements: [],
147
+ beforeSanitizeShadowDOM: [],
148
+ uponSanitizeAttribute: [],
149
+ uponSanitizeElement: [],
150
+ uponSanitizeShadowNode: []
151
+ };
149
152
  };
150
153
  function Lt() {
151
- let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Sn();
154
+ let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : On();
152
155
  const o = (i) => Lt(i);
153
- if (o.version = "3.1.6", o.removed = [], !l || !l.document || l.document.nodeType !== Z.document)
156
+ if (o.version = "3.2.4", o.removed = [], !a || !a.document || a.document.nodeType !== Z.document || !a.Element)
154
157
  return o.isSupported = !1, o;
155
158
  let {
156
159
  document: r
157
- } = l;
158
- const a = r, f = a.currentScript, {
160
+ } = a;
161
+ const s = r, f = s.currentScript, {
159
162
  DocumentFragment: L,
160
- HTMLTemplateElement: O,
163
+ HTMLTemplateElement: N,
161
164
  Node: J,
162
- Element: xe,
165
+ Element: ke,
163
166
  NodeFilter: z,
164
- NamedNodeMap: Ot = l.NamedNodeMap || l.MozNamedAttrMap,
165
- HTMLFormElement: Nt,
167
+ NamedNodeMap: Nt = a.NamedNodeMap || a.MozNamedAttrMap,
168
+ HTMLFormElement: bt,
166
169
  DOMParser: Dt,
167
170
  trustedTypes: Q
168
- } = l, W = xe.prototype, bt = K(W, "cloneNode"), Ct = K(W, "remove"), It = K(W, "nextSibling"), Mt = K(W, "childNodes"), ee = K(W, "parentNode");
169
- if (typeof O == "function") {
171
+ } = a, G = ke.prototype, It = K(G, "cloneNode"), Mt = K(G, "remove"), Ct = K(G, "nextSibling"), wt = K(G, "childNodes"), ee = K(G, "parentNode");
172
+ if (typeof N == "function") {
170
173
  const i = r.createElement("template");
171
174
  i.content && i.content.ownerDocument && (r = i.content.ownerDocument);
172
175
  }
173
- let E, G = "";
176
+ let E, W = "";
174
177
  const {
175
- implementation: ce,
176
- createNodeIterator: wt,
177
- createDocumentFragment: xt,
178
- getElementsByTagName: Pt
178
+ implementation: fe,
179
+ createNodeIterator: xt,
180
+ createDocumentFragment: Pt,
181
+ getElementsByTagName: vt
179
182
  } = r, {
180
- importNode: vt
181
- } = a;
182
- let D = {};
183
- o.isSupported = typeof At == "function" && typeof ee == "function" && ce && ce.createHTMLDocument !== void 0;
183
+ importNode: kt
184
+ } = s;
185
+ let g = At();
186
+ o.isSupported = typeof St == "function" && typeof ee == "function" && fe && fe.createHTMLDocument !== void 0;
184
187
  const {
185
- MUSTACHE_EXPR: ue,
186
- ERB_EXPR: fe,
187
- TMPLIT_EXPR: me,
188
- DATA_ATTR: kt,
189
- ARIA_ATTR: Ut,
190
- IS_SCRIPT_OR_DATA: Ft,
191
- ATTR_WHITESPACE: Pe,
192
- CUSTOM_ELEMENT: Ht
188
+ MUSTACHE_EXPR: me,
189
+ ERB_EXPR: pe,
190
+ TMPLIT_EXPR: de,
191
+ DATA_ATTR: Ut,
192
+ ARIA_ATTR: Ft,
193
+ IS_SCRIPT_OR_DATA: Ht,
194
+ ATTR_WHITESPACE: Ue,
195
+ CUSTOM_ELEMENT: zt
193
196
  } = ht;
194
197
  let {
195
- IS_ALLOWED_URI: ve
198
+ IS_ALLOWED_URI: Fe
196
199
  } = ht, m = null;
197
- const ke = s({}, [..._t, ...De, ...be, ...Ce, ...Tt]);
198
- let p = null;
199
- const Ue = s({}, [...Et, ...Ie, ...gt, ...se]);
200
- let u = Object.seal(St(null, {
200
+ const He = l({}, [..._t, ...Me, ...Ce, ...we, ...Tt]);
201
+ let d = null;
202
+ const ze = l({}, [...Et, ...xe, ...gt, ...ce]);
203
+ let u = Object.seal(Rt(null, {
201
204
  tagNameCheck: {
202
205
  writable: !0,
203
206
  configurable: !1,
@@ -216,82 +219,70 @@ function Lt() {
216
219
  enumerable: !0,
217
220
  value: !1
218
221
  }
219
- })), B = null, pe = null, Fe = !0, de = !0, He = !1, ze = !0, P = !1, _e = !0, w = !1, Te = !1, Ee = !1, v = !1, te = !1, ne = !1, We = !0, Ge = !1;
220
- const zt = "user-content-";
221
- let ge = !0, Y = !1, k = {}, U = null;
222
- const Be = s({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
223
- let Ye = null;
224
- const Xe = s({}, ["audio", "video", "img", "source", "image", "track"]);
225
- let he = null;
226
- const Ve = s({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), oe = "http://www.w3.org/1998/Math/MathML", ie = "http://www.w3.org/2000/svg", I = "http://www.w3.org/1999/xhtml";
227
- let F = I, Ae = !1, Se = null;
228
- const Wt = s({}, [oe, ie, I], Ne);
222
+ })), B = null, _e = null, Ge = !0, Te = !0, We = !1, Be = !0, P = !1, Ee = !0, w = !1, ge = !1, he = !1, v = !1, te = !1, ne = !1, Ye = !0, Xe = !1;
223
+ const Gt = "user-content-";
224
+ let Ae = !0, Y = !1, k = {}, U = null;
225
+ const Ve = l({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
226
+ let $e = null;
227
+ const je = l({}, ["audio", "video", "img", "source", "image", "track"]);
228
+ let Se = null;
229
+ const qe = l({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), oe = "http://www.w3.org/1998/Math/MathML", ie = "http://www.w3.org/2000/svg", M = "http://www.w3.org/1999/xhtml";
230
+ let F = M, Re = !1, ye = null;
231
+ const Wt = l({}, [oe, ie, M], Ie);
232
+ let re = l({}, ["mi", "mo", "mn", "ms", "mtext"]), ae = l({}, ["annotation-xml"]);
233
+ const Bt = l({}, ["title", "style", "font", "a", "script"]);
229
234
  let X = null;
230
- const Gt = ["application/xhtml+xml", "text/html"], Bt = "text/html";
231
- let d = null, H = null;
232
- const Yt = r.createElement("form"), je = function(e) {
235
+ const Yt = ["application/xhtml+xml", "text/html"], Xt = "text/html";
236
+ let p = null, H = null;
237
+ const Vt = r.createElement("form"), Ke = function(e) {
233
238
  return e instanceof RegExp || e instanceof Function;
234
- }, Re = function() {
239
+ }, Oe = function() {
235
240
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
236
241
  if (!(H && H === e)) {
237
242
  if ((!e || typeof e != "object") && (e = {}), e = x(e), X = // eslint-disable-next-line unicorn/prefer-includes
238
- Gt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Bt : e.PARSER_MEDIA_TYPE, d = X === "application/xhtml+xml" ? Ne : le, m = N(e, "ALLOWED_TAGS") ? s({}, e.ALLOWED_TAGS, d) : ke, p = N(e, "ALLOWED_ATTR") ? s({}, e.ALLOWED_ATTR, d) : Ue, Se = N(e, "ALLOWED_NAMESPACES") ? s({}, e.ALLOWED_NAMESPACES, Ne) : Wt, he = N(e, "ADD_URI_SAFE_ATTR") ? s(
239
- x(Ve),
240
- // eslint-disable-line indent
241
- e.ADD_URI_SAFE_ATTR,
242
- // eslint-disable-line indent
243
- d
244
- // eslint-disable-line indent
245
- ) : Ve, Ye = N(e, "ADD_DATA_URI_TAGS") ? s(
246
- x(Xe),
247
- // eslint-disable-line indent
248
- e.ADD_DATA_URI_TAGS,
249
- // eslint-disable-line indent
250
- d
251
- // eslint-disable-line indent
252
- ) : Xe, U = N(e, "FORBID_CONTENTS") ? s({}, e.FORBID_CONTENTS, d) : Be, B = N(e, "FORBID_TAGS") ? s({}, e.FORBID_TAGS, d) : {}, pe = N(e, "FORBID_ATTR") ? s({}, e.FORBID_ATTR, d) : {}, k = N(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Fe = e.ALLOW_ARIA_ATTR !== !1, de = e.ALLOW_DATA_ATTR !== !1, He = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ze = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, _e = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, te = e.RETURN_DOM_FRAGMENT || !1, ne = e.RETURN_TRUSTED_TYPE || !1, Ee = e.FORCE_BODY || !1, We = e.SANITIZE_DOM !== !1, Ge = e.SANITIZE_NAMED_PROPS || !1, ge = e.KEEP_CONTENT !== !1, Y = e.IN_PLACE || !1, ve = e.ALLOWED_URI_REGEXP || Rt, F = e.NAMESPACE || I, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (de = !1), te && (v = !0), k && (m = s({}, Tt), p = [], k.html === !0 && (s(m, _t), s(p, Et)), k.svg === !0 && (s(m, De), s(p, Ie), s(p, se)), k.svgFilters === !0 && (s(m, be), s(p, Ie), s(p, se)), k.mathMl === !0 && (s(m, Ce), s(p, gt), s(p, se))), e.ADD_TAGS && (m === ke && (m = x(m)), s(m, e.ADD_TAGS, d)), e.ADD_ATTR && (p === Ue && (p = x(p)), s(p, e.ADD_ATTR, d)), e.ADD_URI_SAFE_ATTR && s(he, e.ADD_URI_SAFE_ATTR, d), e.FORBID_CONTENTS && (U === Be && (U = x(U)), s(U, e.FORBID_CONTENTS, d)), ge && (m["#text"] = !0), w && s(m, ["html", "head", "body"]), m.table && (s(m, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
243
+ Yt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Xt : e.PARSER_MEDIA_TYPE, p = X === "application/xhtml+xml" ? Ie : ue, m = b(e, "ALLOWED_TAGS") ? l({}, e.ALLOWED_TAGS, p) : He, d = b(e, "ALLOWED_ATTR") ? l({}, e.ALLOWED_ATTR, p) : ze, ye = b(e, "ALLOWED_NAMESPACES") ? l({}, e.ALLOWED_NAMESPACES, Ie) : Wt, Se = b(e, "ADD_URI_SAFE_ATTR") ? l(x(qe), e.ADD_URI_SAFE_ATTR, p) : qe, $e = b(e, "ADD_DATA_URI_TAGS") ? l(x(je), e.ADD_DATA_URI_TAGS, p) : je, U = b(e, "FORBID_CONTENTS") ? l({}, e.FORBID_CONTENTS, p) : Ve, B = b(e, "FORBID_TAGS") ? l({}, e.FORBID_TAGS, p) : {}, _e = b(e, "FORBID_ATTR") ? l({}, e.FORBID_ATTR, p) : {}, k = b(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Ge = e.ALLOW_ARIA_ATTR !== !1, Te = e.ALLOW_DATA_ATTR !== !1, We = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Be = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, Ee = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, te = e.RETURN_DOM_FRAGMENT || !1, ne = e.RETURN_TRUSTED_TYPE || !1, he = e.FORCE_BODY || !1, Ye = e.SANITIZE_DOM !== !1, Xe = e.SANITIZE_NAMED_PROPS || !1, Ae = e.KEEP_CONTENT !== !1, Y = e.IN_PLACE || !1, Fe = e.ALLOWED_URI_REGEXP || yt, F = e.NAMESPACE || M, re = e.MATHML_TEXT_INTEGRATION_POINTS || re, ae = e.HTML_INTEGRATION_POINTS || ae, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (Te = !1), te && (v = !0), k && (m = l({}, Tt), d = [], k.html === !0 && (l(m, _t), l(d, Et)), k.svg === !0 && (l(m, Me), l(d, xe), l(d, ce)), k.svgFilters === !0 && (l(m, Ce), l(d, xe), l(d, ce)), k.mathMl === !0 && (l(m, we), l(d, gt), l(d, ce))), e.ADD_TAGS && (m === He && (m = x(m)), l(m, e.ADD_TAGS, p)), e.ADD_ATTR && (d === ze && (d = x(d)), l(d, e.ADD_ATTR, p)), e.ADD_URI_SAFE_ATTR && l(Se, e.ADD_URI_SAFE_ATTR, p), e.FORBID_CONTENTS && (U === Ve && (U = x(U)), l(U, e.FORBID_CONTENTS, p)), Ae && (m["#text"] = !0), w && l(m, ["html", "head", "body"]), m.table && (l(m, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
253
244
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
254
245
  throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
255
246
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
256
247
  throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
257
- E = e.TRUSTED_TYPES_POLICY, G = E.createHTML("");
248
+ E = e.TRUSTED_TYPES_POLICY, W = E.createHTML("");
258
249
  } else
259
- E === void 0 && (E = Rn(Q, f)), E !== null && typeof G == "string" && (G = E.createHTML(""));
260
- A && A(e), H = e;
250
+ E === void 0 && (E = Ln(Q, f)), E !== null && typeof W == "string" && (W = E.createHTML(""));
251
+ S && S(e), H = e;
261
252
  }
262
- }, $e = s({}, ["mi", "mo", "mn", "ms", "mtext"]), qe = s({}, ["foreignobject", "annotation-xml"]), Xt = s({}, ["title", "style", "font", "a", "script"]), Ke = s({}, [...De, ...be, ...fn]), Ze = s({}, [...Ce, ...mn]), Vt = function(e) {
253
+ }, Ze = l({}, [...Me, ...Ce, ...dn]), Je = l({}, [...we, ..._n]), $t = function(e) {
263
254
  let t = ee(e);
264
255
  (!t || !t.tagName) && (t = {
265
256
  namespaceURI: F,
266
257
  tagName: "template"
267
258
  });
268
- const n = le(e.tagName), c = le(t.tagName);
269
- return Se[e.namespaceURI] ? e.namespaceURI === ie ? t.namespaceURI === I ? n === "svg" : t.namespaceURI === oe ? n === "svg" && (c === "annotation-xml" || $e[c]) : !!Ke[n] : e.namespaceURI === oe ? t.namespaceURI === I ? n === "math" : t.namespaceURI === ie ? n === "math" && qe[c] : !!Ze[n] : e.namespaceURI === I ? t.namespaceURI === ie && !qe[c] || t.namespaceURI === oe && !$e[c] ? !1 : !Ze[n] && (Xt[n] || !Ke[n]) : !!(X === "application/xhtml+xml" && Se[e.namespaceURI]) : !1;
270
- }, b = function(e) {
271
- j(o.removed, {
259
+ const n = ue(e.tagName), c = ue(t.tagName);
260
+ return ye[e.namespaceURI] ? e.namespaceURI === ie ? t.namespaceURI === M ? n === "svg" : t.namespaceURI === oe ? n === "svg" && (c === "annotation-xml" || re[c]) : !!Ze[n] : e.namespaceURI === oe ? t.namespaceURI === M ? n === "math" : t.namespaceURI === ie ? n === "math" && ae[c] : !!Je[n] : e.namespaceURI === M ? t.namespaceURI === ie && !ae[c] || t.namespaceURI === oe && !re[c] ? !1 : !Je[n] && (Bt[n] || !Ze[n]) : !!(X === "application/xhtml+xml" && ye[e.namespaceURI]) : !1;
261
+ }, D = function(e) {
262
+ $(o.removed, {
272
263
  element: e
273
264
  });
274
265
  try {
275
266
  ee(e).removeChild(e);
276
267
  } catch {
277
- Ct(e);
268
+ Mt(e);
278
269
  }
279
- }, re = function(e, t) {
270
+ }, se = function(e, t) {
280
271
  try {
281
- j(o.removed, {
272
+ $(o.removed, {
282
273
  attribute: t.getAttributeNode(e),
283
274
  from: t
284
275
  });
285
276
  } catch {
286
- j(o.removed, {
277
+ $(o.removed, {
287
278
  attribute: null,
288
279
  from: t
289
280
  });
290
281
  }
291
- if (t.removeAttribute(e), e === "is" && !p[e])
282
+ if (t.removeAttribute(e), e === "is")
292
283
  if (v || te)
293
284
  try {
294
- b(t);
285
+ D(t);
295
286
  } catch {
296
287
  }
297
288
  else
@@ -299,94 +290,96 @@ function Lt() {
299
290
  t.setAttribute(e, "");
300
291
  } catch {
301
292
  }
302
- }, Je = function(e) {
293
+ }, Qe = function(e) {
303
294
  let t = null, n = null;
304
- if (Ee)
295
+ if (he)
305
296
  e = "<remove></remove>" + e;
306
297
  else {
307
298
  const _ = dt(e, /^[\r\n\t ]+/);
308
299
  n = _ && _[0];
309
300
  }
310
- X === "application/xhtml+xml" && F === I && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
301
+ X === "application/xhtml+xml" && F === M && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
311
302
  const c = E ? E.createHTML(e) : e;
312
- if (F === I)
303
+ if (F === M)
313
304
  try {
314
305
  t = new Dt().parseFromString(c, X);
315
306
  } catch {
316
307
  }
317
308
  if (!t || !t.documentElement) {
318
- t = ce.createDocument(F, "template", null);
309
+ t = fe.createDocument(F, "template", null);
319
310
  try {
320
- t.documentElement.innerHTML = Ae ? G : c;
311
+ t.documentElement.innerHTML = Re ? W : c;
321
312
  } catch {
322
313
  }
323
314
  }
324
315
  const T = t.body || t.documentElement;
325
- return e && n && T.insertBefore(r.createTextNode(n), T.childNodes[0] || null), F === I ? Pt.call(t, w ? "html" : "body")[0] : w ? t.documentElement : T;
326
- }, Qe = function(e) {
327
- return wt.call(
316
+ return e && n && T.insertBefore(r.createTextNode(n), T.childNodes[0] || null), F === M ? vt.call(t, w ? "html" : "body")[0] : w ? t.documentElement : T;
317
+ }, et = function(e) {
318
+ return xt.call(
328
319
  e.ownerDocument || e,
329
320
  e,
330
321
  // eslint-disable-next-line no-bitwise
331
322
  z.SHOW_ELEMENT | z.SHOW_COMMENT | z.SHOW_TEXT | z.SHOW_PROCESSING_INSTRUCTION | z.SHOW_CDATA_SECTION,
332
323
  null
333
324
  );
334
- }, et = function(e) {
335
- return e instanceof Nt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof Ot) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
325
+ }, Le = function(e) {
326
+ return e instanceof bt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof Nt) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
336
327
  }, tt = function(e) {
337
328
  return typeof J == "function" && e instanceof J;
338
- }, M = function(e, t, n) {
339
- D[e] && ae(D[e], (c) => {
340
- c.call(o, t, n, H);
329
+ };
330
+ function C(i, e, t) {
331
+ le(i, (n) => {
332
+ n.call(o, e, t, H);
341
333
  });
342
- }, nt = function(e) {
334
+ }
335
+ const nt = function(e) {
343
336
  let t = null;
344
- if (M("beforeSanitizeElements", e, null), et(e))
345
- return b(e), !0;
346
- const n = d(e.nodeName);
347
- if (M("uponSanitizeElement", e, {
337
+ if (C(g.beforeSanitizeElements, e, null), Le(e))
338
+ return D(e), !0;
339
+ const n = p(e.nodeName);
340
+ if (C(g.uponSanitizeElement, e, {
348
341
  tagName: n,
349
342
  allowedTags: m
350
- }), e.hasChildNodes() && !tt(e.firstElementChild) && h(/<[/\w]/g, e.innerHTML) && h(/<[/\w]/g, e.textContent) || e.nodeType === Z.progressingInstruction || _e && e.nodeType === Z.comment && h(/<[/\w]/g, e.data))
351
- return b(e), !0;
343
+ }), e.hasChildNodes() && !tt(e.firstElementChild) && A(/<[/\w]/g, e.innerHTML) && A(/<[/\w]/g, e.textContent) || e.nodeType === Z.progressingInstruction || Ee && e.nodeType === Z.comment && A(/<[/\w]/g, e.data))
344
+ return D(e), !0;
352
345
  if (!m[n] || B[n]) {
353
- if (!B[n] && it(n) && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
346
+ if (!B[n] && it(n) && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
354
347
  return !1;
355
- if (ge && !U[n]) {
356
- const c = ee(e) || e.parentNode, T = Mt(e) || e.childNodes;
348
+ if (Ae && !U[n]) {
349
+ const c = ee(e) || e.parentNode, T = wt(e) || e.childNodes;
357
350
  if (T && c) {
358
351
  const _ = T.length;
359
- for (let S = _ - 1; S >= 0; --S) {
360
- const C = bt(T[S], !0);
361
- C.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(C, It(e));
352
+ for (let y = _ - 1; y >= 0; --y) {
353
+ const I = It(T[y], !0);
354
+ I.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(I, Ct(e));
362
355
  }
363
356
  }
364
357
  }
365
- return b(e), !0;
358
+ return D(e), !0;
366
359
  }
367
- return e instanceof xe && !Vt(e) || (n === "noscript" || n === "noembed" || n === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (b(e), !0) : (P && e.nodeType === Z.text && (t = e.textContent, ae([ue, fe, me], (c) => {
368
- t = $(t, c, " ");
369
- }), e.textContent !== t && (j(o.removed, {
360
+ return e instanceof ke && !$t(e) || (n === "noscript" || n === "noembed" || n === "noframes") && A(/<\/no(script|embed|frames)/i, e.innerHTML) ? (D(e), !0) : (P && e.nodeType === Z.text && (t = e.textContent, le([me, pe, de], (c) => {
361
+ t = j(t, c, " ");
362
+ }), e.textContent !== t && ($(o.removed, {
370
363
  element: e.cloneNode()
371
- }), e.textContent = t)), M("afterSanitizeElements", e, null), !1);
364
+ }), e.textContent = t)), C(g.afterSanitizeElements, e, null), !1);
372
365
  }, ot = function(e, t, n) {
373
- if (We && (t === "id" || t === "name") && (n in r || n in Yt))
366
+ if (Ye && (t === "id" || t === "name") && (n in r || n in Vt))
374
367
  return !1;
375
- if (!(de && !pe[t] && h(kt, t))) {
376
- if (!(Fe && h(Ut, t))) {
377
- if (!p[t] || pe[t]) {
368
+ if (!(Te && !_e[t] && A(Ut, t))) {
369
+ if (!(Ge && A(Ft, t))) {
370
+ if (!d[t] || _e[t]) {
378
371
  if (
379
372
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
380
373
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
381
374
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
382
- !(it(e) && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck, e) || u.tagNameCheck instanceof Function && u.tagNameCheck(e)) && (u.attributeNameCheck instanceof RegExp && h(u.attributeNameCheck, t) || u.attributeNameCheck instanceof Function && u.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
375
+ !(it(e) && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, e) || u.tagNameCheck instanceof Function && u.tagNameCheck(e)) && (u.attributeNameCheck instanceof RegExp && A(u.attributeNameCheck, t) || u.attributeNameCheck instanceof Function && u.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
383
376
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
384
- t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
377
+ t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
385
378
  ) return !1;
386
- } else if (!he[t]) {
387
- if (!h(ve, $(n, Pe, ""))) {
388
- if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && sn(n, "data:") === 0 && Ye[e])) {
389
- if (!(He && !h(Ft, $(n, Pe, "")))) {
379
+ } else if (!Se[t]) {
380
+ if (!A(Fe, j(n, Ue, ""))) {
381
+ if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && un(n, "data:") === 0 && $e[e])) {
382
+ if (!(We && !A(Ht, j(n, Ue, "")))) {
390
383
  if (n)
391
384
  return !1;
392
385
  }
@@ -397,71 +390,72 @@ function Lt() {
397
390
  }
398
391
  return !0;
399
392
  }, it = function(e) {
400
- return e !== "annotation-xml" && dt(e, Ht);
393
+ return e !== "annotation-xml" && dt(e, zt);
401
394
  }, rt = function(e) {
402
- M("beforeSanitizeAttributes", e, null);
395
+ C(g.beforeSanitizeAttributes, e, null);
403
396
  const {
404
397
  attributes: t
405
398
  } = e;
406
- if (!t)
399
+ if (!t || Le(e))
407
400
  return;
408
401
  const n = {
409
402
  attrName: "",
410
403
  attrValue: "",
411
404
  keepAttr: !0,
412
- allowedAttributes: p
405
+ allowedAttributes: d,
406
+ forceKeepAttr: void 0
413
407
  };
414
408
  let c = t.length;
415
409
  for (; c--; ) {
416
410
  const T = t[c], {
417
411
  name: _,
418
- namespaceURI: S,
419
- value: C
420
- } = T, V = d(_);
421
- let g = _ === "value" ? C : ln(C);
422
- if (n.attrName = V, n.attrValue = g, n.keepAttr = !0, n.forceKeepAttr = void 0, M("uponSanitizeAttribute", e, n), g = n.attrValue, _e && h(/((--!?|])>)|<\/(style|title)/i, g)) {
423
- re(_, e);
412
+ namespaceURI: y,
413
+ value: I
414
+ } = T, V = p(_);
415
+ let h = _ === "value" ? I : fn(I);
416
+ if (n.attrName = V, n.attrValue = h, n.keepAttr = !0, n.forceKeepAttr = void 0, C(g.uponSanitizeAttribute, e, n), h = n.attrValue, Xe && (V === "id" || V === "name") && (se(_, e), h = Gt + h), Ee && A(/((--!?|])>)|<\/(style|title)/i, h)) {
417
+ se(_, e);
424
418
  continue;
425
419
  }
426
- if (n.forceKeepAttr || (re(_, e), !n.keepAttr))
420
+ if (n.forceKeepAttr || (se(_, e), !n.keepAttr))
427
421
  continue;
428
- if (!ze && h(/\/>/i, g)) {
429
- re(_, e);
422
+ if (!Be && A(/\/>/i, h)) {
423
+ se(_, e);
430
424
  continue;
431
425
  }
432
- P && ae([ue, fe, me], (st) => {
433
- g = $(g, st, " ");
426
+ P && le([me, pe, de], (st) => {
427
+ h = j(h, st, " ");
434
428
  });
435
- const at = d(e.nodeName);
436
- if (ot(at, V, g)) {
437
- if (Ge && (V === "id" || V === "name") && (re(_, e), g = zt + g), E && typeof Q == "object" && typeof Q.getAttributeType == "function" && !S)
429
+ const at = p(e.nodeName);
430
+ if (ot(at, V, h)) {
431
+ if (E && typeof Q == "object" && typeof Q.getAttributeType == "function" && !y)
438
432
  switch (Q.getAttributeType(at, V)) {
439
433
  case "TrustedHTML": {
440
- g = E.createHTML(g);
434
+ h = E.createHTML(h);
441
435
  break;
442
436
  }
443
437
  case "TrustedScriptURL": {
444
- g = E.createScriptURL(g);
438
+ h = E.createScriptURL(h);
445
439
  break;
446
440
  }
447
441
  }
448
442
  try {
449
- S ? e.setAttributeNS(S, _, g) : e.setAttribute(_, g), et(e) ? b(e) : pt(o.removed);
443
+ y ? e.setAttributeNS(y, _, h) : e.setAttribute(_, h), Le(e) ? D(e) : pt(o.removed);
450
444
  } catch {
451
445
  }
452
446
  }
453
447
  }
454
- M("afterSanitizeAttributes", e, null);
448
+ C(g.afterSanitizeAttributes, e, null);
455
449
  }, jt = function i(e) {
456
450
  let t = null;
457
- const n = Qe(e);
458
- for (M("beforeSanitizeShadowDOM", e, null); t = n.nextNode(); )
459
- M("uponSanitizeShadowNode", t, null), !nt(t) && (t.content instanceof L && i(t.content), rt(t));
460
- M("afterSanitizeShadowDOM", e, null);
451
+ const n = et(e);
452
+ for (C(g.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
453
+ C(g.uponSanitizeShadowNode, t, null), nt(t), rt(t), t.content instanceof L && i(t.content);
454
+ C(g.afterSanitizeShadowDOM, e, null);
461
455
  };
462
456
  return o.sanitize = function(i) {
463
457
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, c = null, T = null;
464
- if (Ae = !i, Ae && (i = "<!-->"), typeof i != "string" && !tt(i))
458
+ if (Re = !i, Re && (i = "<!-->"), typeof i != "string" && !tt(i))
465
459
  if (typeof i.toString == "function") {
466
460
  if (i = i.toString(), typeof i != "string")
467
461
  throw q("dirty is not a string, aborting");
@@ -469,102 +463,105 @@ function Lt() {
469
463
  throw q("toString is not a function");
470
464
  if (!o.isSupported)
471
465
  return i;
472
- if (Te || Re(e), o.removed = [], typeof i == "string" && (Y = !1), Y) {
466
+ if (ge || Oe(e), o.removed = [], typeof i == "string" && (Y = !1), Y) {
473
467
  if (i.nodeName) {
474
- const C = d(i.nodeName);
475
- if (!m[C] || B[C])
468
+ const I = p(i.nodeName);
469
+ if (!m[I] || B[I])
476
470
  throw q("root node is forbidden and cannot be sanitized in-place");
477
471
  }
478
472
  } else if (i instanceof J)
479
- t = Je("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === Z.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
473
+ t = Qe("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === Z.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
480
474
  else {
481
475
  if (!v && !P && !w && // eslint-disable-next-line unicorn/prefer-includes
482
476
  i.indexOf("<") === -1)
483
477
  return E && ne ? E.createHTML(i) : i;
484
- if (t = Je(i), !t)
485
- return v ? null : ne ? G : "";
478
+ if (t = Qe(i), !t)
479
+ return v ? null : ne ? W : "";
486
480
  }
487
- t && Ee && b(t.firstChild);
488
- const _ = Qe(Y ? i : t);
481
+ t && he && D(t.firstChild);
482
+ const _ = et(Y ? i : t);
489
483
  for (; c = _.nextNode(); )
490
- nt(c) || (c.content instanceof L && jt(c.content), rt(c));
484
+ nt(c), rt(c), c.content instanceof L && jt(c.content);
491
485
  if (Y)
492
486
  return i;
493
487
  if (v) {
494
488
  if (te)
495
- for (T = xt.call(t.ownerDocument); t.firstChild; )
489
+ for (T = Pt.call(t.ownerDocument); t.firstChild; )
496
490
  T.appendChild(t.firstChild);
497
491
  else
498
492
  T = t;
499
- return (p.shadowroot || p.shadowrootmode) && (T = vt.call(a, T, !0)), T;
493
+ return (d.shadowroot || d.shadowrootmode) && (T = kt.call(s, T, !0)), T;
500
494
  }
501
- let S = w ? t.outerHTML : t.innerHTML;
502
- return w && m["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && h(yt, t.ownerDocument.doctype.name) && (S = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
503
- ` + S), P && ae([ue, fe, me], (C) => {
504
- S = $(S, C, " ");
505
- }), E && ne ? E.createHTML(S) : S;
495
+ let y = w ? t.outerHTML : t.innerHTML;
496
+ return w && m["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(Ot, t.ownerDocument.doctype.name) && (y = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
497
+ ` + y), P && le([me, pe, de], (I) => {
498
+ y = j(y, I, " ");
499
+ }), E && ne ? E.createHTML(y) : y;
506
500
  }, o.setConfig = function() {
507
501
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
508
- Re(i), Te = !0;
502
+ Oe(i), ge = !0;
509
503
  }, o.clearConfig = function() {
510
- H = null, Te = !1;
504
+ H = null, ge = !1;
511
505
  }, o.isValidAttribute = function(i, e, t) {
512
- H || Re({});
513
- const n = d(i), c = d(e);
506
+ H || Oe({});
507
+ const n = p(i), c = p(e);
514
508
  return ot(n, c, t);
515
509
  }, o.addHook = function(i, e) {
516
- typeof e == "function" && (D[i] = D[i] || [], j(D[i], e));
517
- }, o.removeHook = function(i) {
518
- if (D[i])
519
- return pt(D[i]);
510
+ typeof e == "function" && $(g[i], e);
511
+ }, o.removeHook = function(i, e) {
512
+ if (e !== void 0) {
513
+ const t = ln(g[i], e);
514
+ return t === -1 ? void 0 : cn(g[i], t, 1)[0];
515
+ }
516
+ return pt(g[i]);
520
517
  }, o.removeHooks = function(i) {
521
- D[i] && (D[i] = []);
518
+ g[i] = [];
522
519
  }, o.removeAllHooks = function() {
523
- D = {};
520
+ g = At();
524
521
  }, o;
525
522
  }
526
- var yn = Lt();
527
- const Ln = ["role"], On = ["innerHTML"], Nn = { key: 1 }, Dn = /* @__PURE__ */ $t({
523
+ var Nn = Lt();
524
+ const bn = ["role"], Dn = ["innerHTML"], In = { key: 1 }, Mn = /* @__PURE__ */ qt({
528
525
  __name: "Toast",
529
526
  props: {
530
527
  text: {},
531
528
  status: { default: "info" }
532
529
  },
533
- setup(l) {
534
- const o = qt(), r = l, a = lt(
535
- () => r.status ? ft[Jt(r.status)] : ft.Info
536
- ), f = lt(() => r.status === Qt.Error ? "alert" : "status"), L = () => {
530
+ setup(a) {
531
+ const o = Kt(), r = a, s = lt(
532
+ () => r.status ? ft[Qt(r.status)] : ft.Info
533
+ ), f = lt(() => r.status === en.Error ? "alert" : "status"), L = () => {
537
534
  if (typeof r.text != "function")
538
535
  return ut.error(
539
536
  `Toast: ${r.text} is not a valid text prop value. Must be either a render function or a string.`
540
537
  ), null;
541
- const O = r.text();
542
- return Zt(O) ? O : (ut.error("Toast: The text prop must return a VNode."), null);
538
+ const N = r.text();
539
+ return Jt(N) ? N : (ut.error("Toast: The text prop must return a VNode."), null);
543
540
  };
544
- return (O, J) => (ye(), Le("li", {
541
+ return (N, J) => (be(), Ne("li", {
545
542
  role: f.value,
546
- class: Kt([[Oe(o).root, Oe(o)[`status--${r.status}`]], "stash-toast"]),
543
+ class: Zt([[De(o).root, De(o)[`status--${r.status}`]], "stash-toast"]),
547
544
  "data-test": "stash-toast"
548
545
  }, [
549
- ct(tn, { name: a.value }, null, 8, ["name"]),
550
- typeof r.text == "string" ? (ye(), Le("div", {
546
+ ct(nn, { name: s.value }, null, 8, ["name"]),
547
+ typeof r.text == "string" ? (be(), Ne("div", {
551
548
  key: 0,
552
- innerHTML: Oe(yn).sanitize(O.text)
553
- }, null, 8, On)) : (ye(), Le("div", Nn, [
554
- ct(en, { render: L })
549
+ innerHTML: De(Nn).sanitize(N.text)
550
+ }, null, 8, Dn)) : (be(), Ne("div", In, [
551
+ ct(tn, { render: L })
555
552
  ]))
556
- ], 10, Ln));
553
+ ], 10, bn));
557
554
  }
558
- }), bn = "_root_p3yhd_2", Cn = {
559
- root: bn,
555
+ }), Cn = "_root_p3yhd_2", wn = {
556
+ root: Cn,
560
557
  "status--success": "_status--success_p3yhd_22",
561
558
  "status--error": "_status--error_p3yhd_31",
562
559
  "status--info": "_status--info_p3yhd_40",
563
560
  "status--warning": "_status--warning_p3yhd_49"
564
- }, In = {
565
- $style: Cn
566
- }, Fn = /* @__PURE__ */ nn(Dn, [["__cssModules", In]]);
561
+ }, xn = {
562
+ $style: wn
563
+ }, Gn = /* @__PURE__ */ on(Mn, [["__cssModules", xn]]);
567
564
  export {
568
- Fn as default
565
+ Gn as default
569
566
  };
570
567
  //# sourceMappingURL=Toast.js.map