@velkymx/vibeui 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/{src/components → components}/VibeAlert.vue.d.ts +4 -4
  2. package/dist/{src/components → components}/VibeButton.vue.d.ts +2 -2
  3. package/dist/{src/components → components}/VibeDataTable.vue.d.ts +5 -1
  4. package/dist/components/VibeFormErrorSummary.vue.d.ts +17 -0
  5. package/dist/{src/components → components}/VibeFormInput.vue.d.ts +38 -2
  6. package/dist/{src/components → components}/VibeHero.vue.d.ts +9 -0
  7. package/dist/{src/components → components}/VibeModal.vue.d.ts +18 -0
  8. package/dist/{src/components → components}/VibeSortable.vue.d.ts +1 -1
  9. package/dist/{src/components → components}/VibeToast.vue.d.ts +3 -3
  10. package/dist/{src/components → components}/index.d.ts +2 -1
  11. package/dist/{src/injectionKeys.d.ts → injectionKeys.d.ts} +6 -0
  12. package/dist/purify.es-eYghtX9j.mjs +735 -0
  13. package/dist/{src/types.d.ts → types.d.ts} +2 -0
  14. package/dist/utils/routeKey.d.ts +11 -0
  15. package/dist/vibeui.css +1 -1
  16. package/dist/vibeui.es.js +1240 -982
  17. package/dist/vibeui.umd.js +3 -3
  18. package/docs/components/advanced/popover.md +1 -1
  19. package/docs/components/advanced/scrollspy.md +2 -2
  20. package/docs/components/advanced/tooltip.md +1 -1
  21. package/docs/components/core/button.md +19 -1
  22. package/docs/components/core/close-button.md +1 -1
  23. package/docs/components/data/datatable.md +3 -1
  24. package/docs/components/hero/hero.md +1 -0
  25. package/docs/components/interactive/modal.md +8 -0
  26. package/docs/components/navigation/navbar.md +6 -0
  27. package/docs/components/navigation/pagination.md +1 -0
  28. package/docs/forms/form-error-summary.md +96 -0
  29. package/docs/forms/form-group.md +4 -1
  30. package/docs/forms/form-input.md +28 -0
  31. package/llms.txt +24 -5
  32. package/package.json +1 -1
  33. package/dist/purify.es-1D-VntFD.mjs +0 -679
  34. package/dist/{src/App.vue.d.ts → App.vue.d.ts} +0 -0
  35. package/dist/{src/components → components}/HelloWorld.vue.d.ts +0 -0
  36. package/dist/{src/components → components}/VibeAccordion.vue.d.ts +0 -0
  37. package/dist/{src/components → components}/VibeAutocomplete.vue.d.ts +0 -0
  38. package/dist/{src/components → components}/VibeBadge.vue.d.ts +0 -0
  39. package/dist/{src/components → components}/VibeBreadcrumb.vue.d.ts +0 -0
  40. package/dist/{src/components → components}/VibeButtonGroup.vue.d.ts +1 -1
  41. package/dist/{src/components → components}/VibeCard.vue.d.ts +0 -0
  42. package/dist/{src/components → components}/VibeCarousel.vue.d.ts +1 -1
  43. package/dist/{src/components → components}/VibeChartBar.vue.d.ts +0 -0
  44. package/dist/{src/components → components}/VibeChartLine.vue.d.ts +0 -0
  45. package/dist/{src/components → components}/VibeChartPie.vue.d.ts +0 -0
  46. package/dist/{src/components → components}/VibeCloseButton.vue.d.ts +0 -0
  47. package/dist/{src/components → components}/VibeCol.vue.d.ts +0 -0
  48. package/dist/{src/components → components}/VibeCollapse.vue.d.ts +1 -1
  49. package/dist/{src/components → components}/VibeContainer.vue.d.ts +0 -0
  50. package/dist/{src/components → components}/VibeDatePicker.vue.d.ts +1 -1
  51. package/dist/{src/components → components}/VibeDraggable.vue.d.ts +0 -0
  52. package/dist/{src/components → components}/VibeDropdown.vue.d.ts +0 -0
  53. package/dist/{src/components → components}/VibeDroppable.vue.d.ts +0 -0
  54. package/dist/{src/components → components}/VibeFileInput.vue.d.ts +1 -1
  55. package/dist/{src/components → components}/VibeFormCheckbox.vue.d.ts +1 -1
  56. package/dist/{src/components → components}/VibeFormDatepicker.vue.d.ts +1 -1
  57. package/dist/{src/components → components}/VibeFormGroup.vue.d.ts +0 -0
  58. package/dist/{src/components → components}/VibeFormRadio.vue.d.ts +1 -1
  59. package/dist/{src/components → components}/VibeFormSelect.vue.d.ts +1 -1
  60. package/dist/{src/components → components}/VibeFormSpinbutton.vue.d.ts +1 -1
  61. package/dist/{src/components → components}/VibeFormSwitch.vue.d.ts +1 -1
  62. package/dist/{src/components → components}/VibeFormTextarea.vue.d.ts +1 -1
  63. package/dist/{src/components → components}/VibeFormWysiwyg.vue.d.ts +1 -1
  64. package/dist/{src/components → components}/VibeIcon.vue.d.ts +1 -1
  65. package/dist/{src/components → components}/VibeInputGroup.vue.d.ts +1 -1
  66. /package/dist/{src/components → components}/VibeLink.vue.d.ts +0 -0
  67. /package/dist/{src/components → components}/VibeListGroup.vue.d.ts +0 -0
  68. /package/dist/{src/components → components}/VibeNav.vue.d.ts +0 -0
  69. /package/dist/{src/components → components}/VibeNavbar.vue.d.ts +0 -0
  70. /package/dist/{src/components → components}/VibeNavbarBrand.vue.d.ts +0 -0
  71. /package/dist/{src/components → components}/VibeNavbarNav.vue.d.ts +0 -0
  72. /package/dist/{src/components → components}/VibeNavbarToggle.vue.d.ts +0 -0
  73. /package/dist/{src/components → components}/VibeOffcanvas.vue.d.ts +0 -0
  74. /package/dist/{src/components → components}/VibePagination.vue.d.ts +0 -0
  75. /package/dist/{src/components → components}/VibePlaceholder.vue.d.ts +0 -0
  76. /package/dist/{src/components → components}/VibePopover.vue.d.ts +0 -0
  77. /package/dist/{src/components → components}/VibeProgress.vue.d.ts +0 -0
  78. /package/dist/{src/components → components}/VibeResizable.vue.d.ts +0 -0
  79. /package/dist/{src/components → components}/VibeRow.vue.d.ts +0 -0
  80. /package/dist/{src/components → components}/VibeScrollspy.vue.d.ts +0 -0
  81. /package/dist/{src/components → components}/VibeSkeleton.vue.d.ts +0 -0
  82. /package/dist/{src/components → components}/VibeSlider.vue.d.ts +0 -0
  83. /package/dist/{src/components → components}/VibeSpinner.vue.d.ts +0 -0
  84. /package/dist/{src/components → components}/VibeStepper.vue.d.ts +0 -0
  85. /package/dist/{src/components → components}/VibeTab.vue.d.ts +0 -0
  86. /package/dist/{src/components → components}/VibeTabContent.vue.d.ts +0 -0
  87. /package/dist/{src/components → components}/VibeTabs.vue.d.ts +0 -0
  88. /package/dist/{src/components → components}/VibeToastHost.vue.d.ts +0 -0
  89. /package/dist/{src/components → components}/VibeTooltip.vue.d.ts +0 -0
  90. /package/dist/{src/components → components}/chart/chartColors.d.ts +0 -0
  91. /package/dist/{src/components → components}/chart/chartResize.d.ts +0 -0
  92. /package/dist/{src/components → components}/chart/chartTooltip.d.ts +0 -0
  93. /package/dist/{src/components → components}/chart/chartTypes.d.ts +0 -0
  94. /package/dist/{src/components → components}/chart/drawBar.d.ts +0 -0
  95. /package/dist/{src/components → components}/chart/drawLine.d.ts +0 -0
  96. /package/dist/{src/components → components}/chart/drawPie.d.ts +0 -0
  97. /package/dist/{src/components → components}/dndStore.d.ts +0 -0
  98. /package/dist/{src/composables → composables}/useBackButton.d.ts +0 -0
  99. /package/dist/{src/composables → composables}/useBreakpoints.d.ts +0 -0
  100. /package/dist/{src/composables → composables}/useColorMode.d.ts +0 -0
  101. /package/dist/{src/composables → composables}/useForm.d.ts +0 -0
  102. /package/dist/{src/composables → composables}/useFormValidation.d.ts +0 -0
  103. /package/dist/{src/composables → composables}/useId.d.ts +0 -0
  104. /package/dist/{src/composables → composables}/usePosition.d.ts +0 -0
  105. /package/dist/{src/composables → composables}/useToast.d.ts +0 -0
  106. /package/dist/{src/directives → directives}/vTooltip.d.ts +0 -0
  107. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
  108. /package/dist/{src/main.d.ts → main.d.ts} +0 -0
  109. /package/dist/{src/utils → utils}/safeCss.d.ts +0 -0
  110. /package/dist/{src/utils → utils}/safeHref.d.ts +0 -0
  111. /package/dist/{src/utils → utils}/sanitizeHtml.d.ts +0 -0
@@ -1,679 +0,0 @@
1
- //#region node_modules/dompurify/dist/purify.es.mjs
2
- function e(e, t) {
3
- (t == null || t > e.length) && (t = e.length);
4
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
5
- return r;
6
- }
7
- function t(e) {
8
- if (Array.isArray(e)) return e;
9
- }
10
- function n(e, t) {
11
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
12
- if (n != null) {
13
- var r, i, a, o, s = [], c = !0, l = !1;
14
- 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);
16
- } catch (e) {
17
- l = !0, i = e;
18
- } finally {
19
- try {
20
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
21
- } finally {
22
- if (l) throw i;
23
- }
24
- }
25
- return s;
26
- }
27
- }
28
- function r() {
29
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
30
- }
31
- function i(e, i) {
32
- return t(e) || n(e, i) || a(e, i) || r();
33
- }
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;
39
- }
40
- }
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, ee = m.apply, te = m.construct;
42
- d ||= function(e) {
43
- return e;
44
- }, f ||= function(e) {
45
- return e;
46
- }, ee ||= function(e, t) {
47
- var n = [...arguments].slice(2);
48
- return e.apply(t, n);
49
- }, te ||= function(e) {
50
- return new e(...[...arguments].slice(1));
51
- };
52
- var h = E(Array.prototype.forEach), ne = E(Array.prototype.lastIndexOf), re = E(Array.prototype.pop), g = E(Array.prototype.push), ie = E(Array.prototype.splice), _ = Array.isArray, v = E(String.prototype.toLowerCase), ae = E(String.prototype.toString), oe = E(String.prototype.match), y = E(String.prototype.replace), se = E(String.prototype.indexOf), ce = E(String.prototype.trim), le = E(Number.prototype.toString), b = E(Boolean.prototype.toString), x = typeof BigInt > "u" ? null : E(BigInt.prototype.toString), S = typeof Symbol > "u" ? null : E(Symbol.prototype.toString), C = E(Object.prototype.hasOwnProperty), w = E(Object.prototype.toString), T = E(RegExp.prototype.test), ue = D(TypeError);
53
- function E(e) {
54
- return function(t) {
55
- t instanceof RegExp && (t.lastIndex = 0);
56
- var n = [...arguments].slice(1);
57
- return ee(e, t, n);
58
- };
59
- }
60
- function D(e) {
61
- return function() {
62
- return te(e, [...arguments]);
63
- };
64
- }
65
- function O(e, t) {
66
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : v;
67
- if (s && s(e, null), !_(t)) return e;
68
- let r = t.length;
69
- for (; r--;) {
70
- let i = t[r];
71
- if (typeof i == "string") {
72
- let e = n(i);
73
- e !== i && (c(t) || (t[r] = e), i = e);
74
- }
75
- e[i] = !0;
76
- }
77
- return e;
78
- }
79
- function k(e) {
80
- for (let t = 0; t < e.length; t++) C(e, t) || (e[t] = null);
81
- return e;
82
- }
83
- function A(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
- C(e, a) && (_(o) ? t[a] = k(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = A(o) : t[a] = o);
89
- }
90
- return t;
91
- }
92
- function de(e) {
93
- switch (typeof e) {
94
- case "string": return e;
95
- case "number": return le(e);
96
- case "boolean": return b(e);
97
- case "bigint": return x ? x(e) : "0";
98
- case "symbol": return S ? S(e) : "Symbol()";
99
- case "undefined": return w(e);
100
- case "function":
101
- case "object": {
102
- if (e === null) return w(e);
103
- let t = e, n = j(t, "toString");
104
- if (typeof n == "function") {
105
- let e = n(t);
106
- return typeof e == "string" ? e : w(e);
107
- }
108
- return w(e);
109
- }
110
- default: return w(e);
111
- }
112
- }
113
- function j(e, t) {
114
- for (; e !== null;) {
115
- let n = u(e, t);
116
- if (n) {
117
- if (n.get) return E(n.get);
118
- if (typeof n.value == "function") return E(n.value);
119
- }
120
- e = l(e);
121
- }
122
- function n() {
123
- return null;
124
- }
125
- return n;
126
- }
127
- function fe(e) {
128
- try {
129
- return T(e, ""), !0;
130
- } catch {
131
- return !1;
132
- }
133
- }
134
- var pe = 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(".")), me = 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(".")), he = d([
135
- "feBlend",
136
- "feColorMatrix",
137
- "feComponentTransfer",
138
- "feComposite",
139
- "feConvolveMatrix",
140
- "feDiffuseLighting",
141
- "feDisplacementMap",
142
- "feDistantLight",
143
- "feDropShadow",
144
- "feFlood",
145
- "feFuncA",
146
- "feFuncB",
147
- "feFuncG",
148
- "feFuncR",
149
- "feGaussianBlur",
150
- "feImage",
151
- "feMerge",
152
- "feMergeNode",
153
- "feMorphology",
154
- "feOffset",
155
- "fePointLight",
156
- "feSpecularLighting",
157
- "feSpotLight",
158
- "feTile",
159
- "feTurbulence"
160
- ]), ge = d([
161
- "animate",
162
- "color-profile",
163
- "cursor",
164
- "discard",
165
- "font-face",
166
- "font-face-format",
167
- "font-face-name",
168
- "font-face-src",
169
- "font-face-uri",
170
- "foreignobject",
171
- "hatch",
172
- "hatchpath",
173
- "mesh",
174
- "meshgradient",
175
- "meshpatch",
176
- "meshrow",
177
- "missing-glyph",
178
- "script",
179
- "set",
180
- "solidcolor",
181
- "unknown",
182
- "use"
183
- ]), _e = 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(".")), ve = d([
184
- "maction",
185
- "maligngroup",
186
- "malignmark",
187
- "mlongdiv",
188
- "mscarries",
189
- "mscarry",
190
- "msgroup",
191
- "mstack",
192
- "msline",
193
- "msrow",
194
- "semantics",
195
- "annotation",
196
- "annotation-xml",
197
- "mprescripts",
198
- "none"
199
- ]), ye = d(["#text"]), be = 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(".")), xe = 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.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.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".split(".")), Se = 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(".")), Ce = d([
200
- "xlink:href",
201
- "xml:id",
202
- "xlink:title",
203
- "xml:space",
204
- "xmlns:xlink"
205
- ]), we = f(/{{[\w\W]*|^[\w\W]*}}/g), Te = f(/<%[\w\W]*|^[\w\W]*%>/g), Ee = f(/\${[\w\W]*/g), De = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), Oe = f(/^aria-[\-\w]+$/), ke = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ae = f(/^(?:\w+script|data):/i), je = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Me = f(/^html$/i), Ne = f(/^[a-z][.\w]*(-[.\w]+)+$/i), M = {
206
- element: 1,
207
- attribute: 2,
208
- text: 3,
209
- cdataSection: 4,
210
- entityReference: 5,
211
- entityNode: 6,
212
- progressingInstruction: 7,
213
- comment: 8,
214
- document: 9,
215
- documentType: 10,
216
- documentFragment: 11,
217
- notation: 12
218
- }, Pe = function() {
219
- return typeof window > "u" ? null : window;
220
- }, Fe = function(e, t) {
221
- if (typeof e != "object" || typeof e.createPolicy != "function") return null;
222
- let n = null, r = "data-tt-policy-suffix";
223
- t && t.hasAttribute(r) && (n = t.getAttribute(r));
224
- let i = "dompurify" + (n ? "#" + n : "");
225
- try {
226
- return e.createPolicy(i, {
227
- createHTML(e) {
228
- return e;
229
- },
230
- createScriptURL(e) {
231
- return e;
232
- }
233
- });
234
- } catch {
235
- return console.warn("TrustedTypes policy " + i + " could not be created."), null;
236
- }
237
- }, Ie = function() {
238
- return {
239
- afterSanitizeAttributes: [],
240
- afterSanitizeElements: [],
241
- afterSanitizeShadowDOM: [],
242
- beforeSanitizeAttributes: [],
243
- beforeSanitizeElements: [],
244
- beforeSanitizeShadowDOM: [],
245
- uponSanitizeAttribute: [],
246
- uponSanitizeElement: [],
247
- uponSanitizeShadowNode: []
248
- };
249
- };
250
- function Le() {
251
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Pe(), t = (e) => Le(e);
252
- if (t.version = "3.4.7", t.removed = [], !e || !e.document || e.document.nodeType !== M.document || !e.Element) return t.isSupported = !1, t;
253
- let n = e.document, r = n, i = r.currentScript;
254
- e.DocumentFragment;
255
- let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
256
- e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
257
- let u = e.DOMParser, f = e.trustedTypes, m = c.prototype, ee = j(m, "cloneNode"), te = j(m, "remove"), le = j(m, "nextSibling"), b = j(m, "childNodes"), x = j(m, "parentNode"), S = j(m, "shadowRoot"), w = j(m, "attributes"), E = s && s.prototype ? j(s.prototype, "nodeType") : null, D = s && s.prototype ? j(s.prototype, "nodeName") : null;
258
- if (typeof a == "function") {
259
- let e = n.createElement("template");
260
- e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
261
- }
262
- let k, N = "", Re = n, ze = Re.implementation, Be = Re.createNodeIterator, Ve = Re.createDocumentFragment, He = Re.getElementsByTagName, Ue = r.importNode, P = Ie();
263
- t.isSupported = typeof o == "function" && typeof x == "function" && ze && ze.createHTMLDocument !== void 0;
264
- let We = we, Ge = Te, Ke = Ee, qe = De, Je = Oe, Ye = Ae, Xe = je, Ze = Ne, Qe = ke, F = null, $e = O({}, [
265
- ...pe,
266
- ...me,
267
- ...he,
268
- ..._e,
269
- ...ye
270
- ]), I = null, et = O({}, [
271
- ...be,
272
- ...xe,
273
- ...Se,
274
- ...Ce
275
- ]), L = Object.seal(p(null, {
276
- tagNameCheck: {
277
- writable: !0,
278
- configurable: !1,
279
- enumerable: !0,
280
- value: null
281
- },
282
- attributeNameCheck: {
283
- writable: !0,
284
- configurable: !1,
285
- enumerable: !0,
286
- value: null
287
- },
288
- allowCustomizedBuiltInElements: {
289
- writable: !0,
290
- configurable: !1,
291
- enumerable: !0,
292
- value: !1
293
- }
294
- })), R = null, tt = null, z = Object.seal(p(null, {
295
- tagCheck: {
296
- writable: !0,
297
- configurable: !1,
298
- enumerable: !0,
299
- value: null
300
- },
301
- attributeCheck: {
302
- writable: !0,
303
- configurable: !1,
304
- enumerable: !0,
305
- value: null
306
- }
307
- })), nt = !0, rt = !0, it = !1, at = !0, B = !1, V = !0, H = !1, ot = !1, st = !1, U = !1, ct = !1, lt = !1, ut = !0, dt = !1, ft = "user-content-", pt = !0, mt = !1, W = {}, G = null, ht = O({}, [
308
- "annotation-xml",
309
- "audio",
310
- "colgroup",
311
- "desc",
312
- "foreignobject",
313
- "head",
314
- "iframe",
315
- "math",
316
- "mi",
317
- "mn",
318
- "mo",
319
- "ms",
320
- "mtext",
321
- "noembed",
322
- "noframes",
323
- "noscript",
324
- "plaintext",
325
- "script",
326
- "style",
327
- "svg",
328
- "template",
329
- "thead",
330
- "title",
331
- "video",
332
- "xmp"
333
- ]), gt = null, _t = O({}, [
334
- "audio",
335
- "video",
336
- "img",
337
- "source",
338
- "image",
339
- "track"
340
- ]), vt = null, yt = O({}, [
341
- "alt",
342
- "class",
343
- "for",
344
- "id",
345
- "label",
346
- "name",
347
- "pattern",
348
- "placeholder",
349
- "role",
350
- "summary",
351
- "title",
352
- "value",
353
- "style",
354
- "xmlns"
355
- ]), bt = "http://www.w3.org/1998/Math/MathML", xt = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, St = !1, Ct = null, wt = O({}, [
356
- bt,
357
- xt,
358
- K
359
- ], ae), Tt = O({}, [
360
- "mi",
361
- "mo",
362
- "mn",
363
- "ms",
364
- "mtext"
365
- ]), Et = O({}, ["annotation-xml"]), Dt = O({}, [
366
- "title",
367
- "style",
368
- "font",
369
- "a",
370
- "script"
371
- ]), Ot = null, kt = ["application/xhtml+xml", "text/html"], J = null, Y = null, At = n.createElement("form"), jt = function(e) {
372
- return e instanceof RegExp || e instanceof Function;
373
- }, Mt = function() {
374
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
375
- if (Y && Y === e) return;
376
- (!e || typeof e != "object") && (e = {}), e = A(e), Ot = kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Ot === "application/xhtml+xml" ? ae : v, F = C(e, "ALLOWED_TAGS") && _(e.ALLOWED_TAGS) ? O({}, e.ALLOWED_TAGS, J) : $e, I = C(e, "ALLOWED_ATTR") && _(e.ALLOWED_ATTR) ? O({}, e.ALLOWED_ATTR, J) : et, Ct = C(e, "ALLOWED_NAMESPACES") && _(e.ALLOWED_NAMESPACES) ? O({}, e.ALLOWED_NAMESPACES, ae) : wt, vt = C(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) ? O(A(yt), e.ADD_URI_SAFE_ATTR, J) : yt, gt = C(e, "ADD_DATA_URI_TAGS") && _(e.ADD_DATA_URI_TAGS) ? O(A(_t), e.ADD_DATA_URI_TAGS, J) : _t, G = C(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) ? O({}, e.FORBID_CONTENTS, J) : ht, R = C(e, "FORBID_TAGS") && _(e.FORBID_TAGS) ? O({}, e.FORBID_TAGS, J) : A({}), tt = C(e, "FORBID_ATTR") && _(e.FORBID_ATTR) ? O({}, e.FORBID_ATTR, J) : A({}), W = C(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? A(e.USE_PROFILES) : e.USE_PROFILES : !1, nt = e.ALLOW_ARIA_ATTR !== !1, rt = e.ALLOW_DATA_ATTR !== !1, it = e.ALLOW_UNKNOWN_PROTOCOLS || !1, at = 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, ct = e.RETURN_DOM_FRAGMENT || !1, lt = e.RETURN_TRUSTED_TYPE || !1, st = e.FORCE_BODY || !1, ut = e.SANITIZE_DOM !== !1, dt = e.SANITIZE_NAMED_PROPS || !1, pt = e.KEEP_CONTENT !== !1, mt = e.IN_PLACE || !1, Qe = fe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : ke, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Tt = C(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? A(e.MATHML_TEXT_INTEGRATION_POINTS) : O({}, [
377
- "mi",
378
- "mo",
379
- "mn",
380
- "ms",
381
- "mtext"
382
- ]), Et = C(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? A(e.HTML_INTEGRATION_POINTS) : O({}, ["annotation-xml"]);
383
- let t = C(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? A(e.CUSTOM_ELEMENT_HANDLING) : p(null);
384
- if (L = p(null), C(t, "tagNameCheck") && jt(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), C(t, "attributeNameCheck") && jt(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), C(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), B && (rt = !1), ct && (U = !0), W && (F = O({}, ye), I = p(null), W.html === !0 && (O(F, pe), O(I, be)), W.svg === !0 && (O(F, me), O(I, xe), O(I, Ce)), W.svgFilters === !0 && (O(F, he), O(I, xe), O(I, Ce)), W.mathMl === !0 && (O(F, _e), O(I, Se), O(I, Ce))), z.tagCheck = null, z.attributeCheck = null, C(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (F === $e && (F = A(F)), O(F, e.ADD_TAGS, J))), C(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (I === et && (I = A(I)), O(I, e.ADD_ATTR, J))), C(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) && O(vt, e.ADD_URI_SAFE_ATTR, J), C(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) && (G === ht && (G = A(G)), O(G, e.FORBID_CONTENTS, J)), C(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (G === ht && (G = A(G)), O(G, e.ADD_FORBID_CONTENTS, J)), pt && (F["#text"] = !0), H && O(F, [
385
- "html",
386
- "head",
387
- "body"
388
- ]), F.table && (O(F, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
389
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw ue("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
390
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw ue("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
391
- k = e.TRUSTED_TYPES_POLICY, N = k.createHTML("");
392
- } else k === void 0 && (k = Fe(f, i)), k !== null && typeof N == "string" && (N = k.createHTML(""));
393
- (P.uponSanitizeElement.length > 0 || P.uponSanitizeAttribute.length > 0) && F === $e && (F = A(F)), P.uponSanitizeAttribute.length > 0 && I === et && (I = A(I)), d && d(e), Y = e;
394
- }, Nt = O({}, [
395
- ...me,
396
- ...he,
397
- ...ge
398
- ]), Pt = O({}, [..._e, ...ve]), Ft = function(e) {
399
- let t = x(e);
400
- (!t || !t.tagName) && (t = {
401
- namespaceURI: q,
402
- tagName: "template"
403
- });
404
- let n = v(e.tagName), r = v(t.tagName);
405
- return Ct[e.namespaceURI] ? e.namespaceURI === xt ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === bt ? n === "svg" && (r === "annotation-xml" || Tt[r]) : !!Nt[n] : e.namespaceURI === bt ? t.namespaceURI === K ? n === "math" : t.namespaceURI === xt ? n === "math" && Et[r] : !!Pt[n] : e.namespaceURI === K ? t.namespaceURI === xt && !Et[r] || t.namespaceURI === bt && !Tt[r] ? !1 : !Pt[n] && (Dt[n] || !Nt[n]) : !!(Ot === "application/xhtml+xml" && Ct[e.namespaceURI]) : !1;
406
- }, X = function(e) {
407
- g(t.removed, { element: e });
408
- try {
409
- x(e).removeChild(e);
410
- } catch {
411
- te(e);
412
- }
413
- }, Z = function(e, n) {
414
- try {
415
- g(t.removed, {
416
- attribute: n.getAttributeNode(e),
417
- from: n
418
- });
419
- } catch {
420
- g(t.removed, {
421
- attribute: null,
422
- from: n
423
- });
424
- }
425
- if (n.removeAttribute(e), e === "is") if (U || ct) try {
426
- X(n);
427
- } catch {}
428
- else try {
429
- n.setAttribute(e, "");
430
- } catch {}
431
- }, It = function(e) {
432
- let t = null, r = null;
433
- if (st) e = "<remove></remove>" + e;
434
- else {
435
- let t = oe(e, /^[\r\n\t ]+/);
436
- r = t && t[0];
437
- }
438
- Ot === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
439
- let i = k ? k.createHTML(e) : e;
440
- if (q === K) try {
441
- t = new u().parseFromString(i, Ot);
442
- } catch {}
443
- if (!t || !t.documentElement) {
444
- t = ze.createDocument(q, "template", null);
445
- try {
446
- t.documentElement.innerHTML = St ? N : i;
447
- } catch {}
448
- }
449
- let a = t.body || t.documentElement;
450
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? He.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
451
- }, Lt = function(e) {
452
- return Be.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
453
- }, Rt = function(e) {
454
- e.normalize();
455
- let t = Be.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
456
- for (; n;) {
457
- let e = n.data;
458
- h([
459
- We,
460
- Ge,
461
- Ke
462
- ], (t) => {
463
- e = y(e, t, " ");
464
- }), n.data = e, n = t.nextNode();
465
- }
466
- }, zt = function(e) {
467
- let t = D ? D(e) : null;
468
- return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== w(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== E(e) || e.childNodes !== b(e);
469
- }, Bt = function(e) {
470
- if (!E || typeof e != "object" || !e) return !1;
471
- try {
472
- return E(e) === M.documentFragment;
473
- } catch {
474
- return !1;
475
- }
476
- }, Vt = function(e) {
477
- if (!E || typeof e != "object" || !e) return !1;
478
- try {
479
- return typeof E(e) == "number";
480
- } catch {
481
- return !1;
482
- }
483
- };
484
- function Q(e, n, r) {
485
- h(e, (e) => {
486
- e.call(t, n, r, Y);
487
- });
488
- }
489
- let Ht = function(e) {
490
- let n = null;
491
- if (Q(P.beforeSanitizeElements, e, null), zt(e)) return X(e), !0;
492
- let r = J(e.nodeName);
493
- if (Q(P.uponSanitizeElement, e, {
494
- tagName: r,
495
- allowedTags: F
496
- }), V && e.hasChildNodes() && !Vt(e.firstElementChild) && T(/<[/\w!]/g, e.innerHTML) && T(/<[/\w!]/g, e.textContent) || V && e.namespaceURI === K && r === "style" && Vt(e.firstElementChild) || e.nodeType === M.progressingInstruction || V && e.nodeType === M.comment && T(/<[/\w]/g, e.data)) return X(e), !0;
497
- if (R[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !F[r]) {
498
- if (!R[r] && Gt(r) && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r))) return !1;
499
- if (pt && !G[r]) {
500
- let t = x(e), n = b(e);
501
- if (n && t) {
502
- let r = n.length;
503
- for (let i = r - 1; i >= 0; --i) {
504
- let r = ee(n[i], !0);
505
- t.insertBefore(r, le(e));
506
- }
507
- }
508
- }
509
- return X(e), !0;
510
- }
511
- return (E ? E(e) : e.nodeType) === M.element && !Ft(e) || (r === "noscript" || r === "noembed" || r === "noframes") && T(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (B && e.nodeType === M.text && (n = e.textContent, h([
512
- We,
513
- Ge,
514
- Ke
515
- ], (e) => {
516
- n = y(n, e, " ");
517
- }), e.textContent !== n && (g(t.removed, { element: e.cloneNode() }), e.textContent = n)), Q(P.afterSanitizeElements, e, null), !1);
518
- }, Ut = function(e, t, r) {
519
- if (tt[t] || ut && (t === "id" || t === "name") && (r in n || r in At)) return !1;
520
- let i = I[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
521
- if (!(rt && !tt[t] && T(qe, t)) && !(nt && T(Je, t))) {
522
- if (!i || tt[t]) {
523
- if (!(Gt(e) && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, e) || L.tagNameCheck instanceof Function && L.tagNameCheck(e)) && (L.attributeNameCheck instanceof RegExp && T(L.attributeNameCheck, t) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(t, e)) || t === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r)))) return !1;
524
- } else if (!vt[t] && !T(Qe, y(r, Xe, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && se(r, "data:") === 0 && gt[e]) && !(it && !T(Ye, y(r, Xe, ""))) && r) return !1;
525
- }
526
- return !0;
527
- }, Wt = O({}, [
528
- "annotation-xml",
529
- "color-profile",
530
- "font-face",
531
- "font-face-format",
532
- "font-face-name",
533
- "font-face-src",
534
- "font-face-uri",
535
- "missing-glyph"
536
- ]), Gt = function(e) {
537
- return !Wt[v(e)] && T(Ze, e);
538
- }, Kt = function(e) {
539
- Q(P.beforeSanitizeAttributes, e, null);
540
- let n = e.attributes;
541
- if (!n || zt(e)) return;
542
- let r = {
543
- attrName: "",
544
- attrValue: "",
545
- keepAttr: !0,
546
- allowedAttributes: I,
547
- forceKeepAttr: void 0
548
- }, i = n.length;
549
- for (; i--;) {
550
- let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : ce(u);
551
- if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, Q(P.uponSanitizeAttribute, e, r), d = r.attrValue, dt && (l === "id" || l === "name") && se(d, ft) !== 0 && (Z(o, e), d = ft + d), V && T(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
552
- Z(o, e);
553
- continue;
554
- }
555
- if (l === "attributename" && oe(d, "href")) {
556
- Z(o, e);
557
- continue;
558
- }
559
- if (r.forceKeepAttr) continue;
560
- if (!r.keepAttr) {
561
- Z(o, e);
562
- continue;
563
- }
564
- if (!at && T(/\/>/i, d)) {
565
- Z(o, e);
566
- continue;
567
- }
568
- B && h([
569
- We,
570
- Ge,
571
- Ke
572
- ], (e) => {
573
- d = y(d, e, " ");
574
- });
575
- let p = J(e.nodeName);
576
- if (!Ut(p, l, d)) {
577
- Z(o, e);
578
- continue;
579
- }
580
- if (k && typeof f == "object" && typeof f.getAttributeType == "function" && !s) switch (f.getAttributeType(p, l)) {
581
- case "TrustedHTML":
582
- d = k.createHTML(d);
583
- break;
584
- case "TrustedScriptURL":
585
- d = k.createScriptURL(d);
586
- break;
587
- }
588
- if (d !== u) try {
589
- s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), zt(e) ? X(e) : re(t.removed);
590
- } catch {
591
- Z(o, e);
592
- }
593
- }
594
- Q(P.afterSanitizeAttributes, e, null);
595
- }, qt = function(e) {
596
- let t = null, n = Lt(e);
597
- for (Q(P.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(P.uponSanitizeShadowNode, t, null), Ht(t), Kt(t), Bt(t.content) && qt(t.content), (E ? E(t) : t.nodeType) === M.element) {
598
- let e = S ? S(t) : t.shadowRoot;
599
- Bt(e) && ($(e), qt(e));
600
- }
601
- Q(P.afterSanitizeShadowDOM, e, null);
602
- }, $ = function(e) {
603
- let t = E ? E(e) : e.nodeType;
604
- if (t === M.element) {
605
- let t = S ? S(e) : e.shadowRoot;
606
- Bt(t) && ($(t), qt(t));
607
- }
608
- let n = b ? b(e) : e.childNodes;
609
- if (!n) return;
610
- let r = [];
611
- h(n, (e) => {
612
- g(r, e);
613
- });
614
- for (let e of r) $(e);
615
- if (t === M.element) {
616
- let t = D ? D(e) : null;
617
- if (typeof t == "string" && J(t) === "template") {
618
- let t = e.content;
619
- Bt(t) && $(t);
620
- }
621
- }
622
- };
623
- return t.sanitize = function(e) {
624
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
625
- if (St = !e, St && (e = "<!-->"), typeof e != "string" && !Vt(e) && (e = de(e), typeof e != "string")) throw ue("dirty is not a string, aborting");
626
- if (!t.isSupported) return e;
627
- if (ot || Mt(n), t.removed = [], typeof e == "string" && (mt = !1), mt) {
628
- let t = D ? D(e) : e.nodeName;
629
- if (typeof t == "string") {
630
- let e = J(t);
631
- if (!F[e] || R[e]) throw ue("root node is forbidden and cannot be sanitized in-place");
632
- }
633
- if (zt(e)) throw ue("root node is clobbered and cannot be sanitized in-place");
634
- $(e);
635
- } else if (Vt(e)) i = It("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === M.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), $(a);
636
- else {
637
- if (!U && !B && !H && e.indexOf("<") === -1) return k && lt ? k.createHTML(e) : e;
638
- if (i = It(e), !i) return U ? null : lt ? N : "";
639
- }
640
- i && st && X(i.firstChild);
641
- let c = Lt(mt ? e : i);
642
- for (; o = c.nextNode();) Ht(o), Kt(o), Bt(o.content) && qt(o.content);
643
- if (mt) return B && Rt(e), e;
644
- if (U) {
645
- if (B && Rt(i), ct) for (s = Ve.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
646
- else s = i;
647
- return (I.shadowroot || I.shadowrootmode) && (s = Ue.call(r, s, !0)), s;
648
- }
649
- let l = H ? i.outerHTML : i.innerHTML;
650
- return H && F["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && T(Me, i.ownerDocument.doctype.name) && (l = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + l), B && h([
651
- We,
652
- Ge,
653
- Ke
654
- ], (e) => {
655
- l = y(l, e, " ");
656
- }), k && lt ? k.createHTML(l) : l;
657
- }, t.setConfig = function() {
658
- Mt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), ot = !0;
659
- }, t.clearConfig = function() {
660
- Y = null, ot = !1;
661
- }, t.isValidAttribute = function(e, t, n) {
662
- return Y || Mt({}), Ut(J(e), J(t), n);
663
- }, t.addHook = function(e, t) {
664
- typeof t == "function" && g(P[e], t);
665
- }, t.removeHook = function(e, t) {
666
- if (t !== void 0) {
667
- let n = ne(P[e], t);
668
- return n === -1 ? void 0 : ie(P[e], n, 1)[0];
669
- }
670
- return re(P[e]);
671
- }, t.removeHooks = function(e) {
672
- P[e] = [];
673
- }, t.removeAllHooks = function() {
674
- P = Ie();
675
- }, t;
676
- }
677
- var N = Le();
678
- //#endregion
679
- export { N as default };
File without changes