@pie-qti/player-elements 0.1.22 → 0.1.24
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.
- package/dist/ar-SA-BDmOol_3.js +854 -0
- package/dist/ar-SA-BDmOol_3.js.map +1 -0
- package/dist/{define-Bkc2UFCK.js → define-D7_K0JFy.js} +4057 -2664
- package/dist/define-D7_K0JFy.js.map +1 -0
- package/dist/dist-BRTWr852.js +5809 -0
- package/dist/dist-BRTWr852.js.map +1 -0
- package/dist/{dist-CPyrAOfS.js → dist-BaQdJU08.js} +210 -130
- package/dist/dist-BaQdJU08.js.map +1 -0
- package/dist/{dist-C0bIgnik.js → dist-DwvskOs6.js} +4 -4
- package/dist/{dist-C0bIgnik.js.map → dist-DwvskOs6.js.map} +1 -1
- package/dist/{dist-_mWRIrTg.js → dist-ffJZTPTU.js} +2440 -2658
- package/dist/dist-ffJZTPTU.js.map +1 -0
- package/dist/{element-BrpUrZI4.js → element-DSCNeDLu.js} +2 -2
- package/dist/{element-BrpUrZI4.js.map → element-DSCNeDLu.js.map} +1 -1
- package/dist/{element-class-DWoLXp_r-ms67Krq-.js → element-class-DQy2cIPM-CldZrSRR.js} +3717 -3464
- package/dist/element-class-DQy2cIPM-CldZrSRR.js.map +1 -0
- package/dist/elements/BaseSvelteMountElement.d.ts +1 -0
- package/dist/elements/QtiAssessmentPlayerElement.d.ts +1 -0
- package/dist/elements.js +3 -3
- package/dist/es-ES-C98YtDtb.js +802 -0
- package/dist/es-ES-C98YtDtb.js.map +1 -0
- package/dist/fr-FR-CrmmiRPf.js +802 -0
- package/dist/fr-FR-CrmmiRPf.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/item-toolbar-element-BW9Y_n5x.js +1990 -0
- package/dist/item-toolbar-element-BW9Y_n5x.js.map +1 -0
- package/dist/{tag-names-DV56RHJk.js → language-tags-DVlRltrl.js} +25 -22
- package/dist/language-tags-DVlRltrl.js.map +1 -0
- package/dist/nl-NL-BeQBX6yq.js +505 -0
- package/dist/nl-NL-BeQBX6yq.js.map +1 -0
- package/dist/nl-NL-CAR7pgVz.js +802 -0
- package/dist/nl-NL-CAR7pgVz.js.map +1 -0
- package/dist/pie-assessment-toolkit-element-CpiB3twr.js +8573 -0
- package/dist/pie-assessment-toolkit-element-CpiB3twr.js.map +1 -0
- package/dist/pie-tool-calculator-BiWMTJe7.js +2992 -0
- package/dist/pie-tool-calculator-BiWMTJe7.js.map +1 -0
- package/dist/provider-Y5PhmTAu.js +58 -0
- package/dist/provider-Y5PhmTAu.js.map +1 -0
- package/dist/register-players.js +1 -1
- package/dist/register.js +7285 -9569
- package/dist/register.js.map +1 -1
- package/dist/{resolveItems-XtUnsftV.js → resolveItems-D8DJkv-4.js} +2 -2
- package/dist/{resolveItems-XtUnsftV.js.map → resolveItems-D8DJkv-4.js.map} +1 -1
- package/dist/ro-RO-DTZbhL0e.js +802 -0
- package/dist/ro-RO-DTZbhL0e.js.map +1 -0
- package/dist/root-DSkIM1v3.js +47 -0
- package/dist/root-DSkIM1v3.js.map +1 -0
- package/dist/th-TH-aqlT_oK3.js +802 -0
- package/dist/th-TH-aqlT_oK3.js.map +1 -0
- package/dist/tool-tts-inline-B71NTBbb.js +4435 -0
- package/dist/tool-tts-inline-B71NTBbb.js.map +1 -0
- package/dist/zh-CN-DCqaRRhU.js +802 -0
- package/dist/zh-CN-DCqaRRhU.js.map +1 -0
- package/package.json +8 -8
- package/dist/define-Bkc2UFCK.js.map +0 -1
- package/dist/dist-CPyrAOfS.js.map +0 -1
- package/dist/dist-DU1nH3y8.js +0 -1247
- package/dist/dist-DU1nH3y8.js.map +0 -1
- package/dist/dist-_mWRIrTg.js.map +0 -1
- package/dist/element-class-DWoLXp_r-ms67Krq-.js.map +0 -1
- package/dist/item-toolbar-element-DFppTi_H.js +0 -6015
- package/dist/item-toolbar-element-DFppTi_H.js.map +0 -1
- package/dist/pie-assessment-toolkit-element-DlSFT_I2.js +0 -28479
- package/dist/pie-assessment-toolkit-element-DlSFT_I2.js.map +0 -1
- package/dist/pie-tool-calculator-BGp3etqJ.js +0 -2226
- package/dist/pie-tool-calculator-BGp3etqJ.js.map +0 -1
- package/dist/root-DBWhDxjY.js +0 -98
- package/dist/root-DBWhDxjY.js.map +0 -1
- package/dist/tag-names-DV56RHJk.js.map +0 -1
- package/dist/tool-tts-inline-DVUYjVnD.js +0 -2574
- package/dist/tool-tts-inline-DVUYjVnD.js.map +0 -1
package/dist/dist-DU1nH3y8.js
DELETED
|
@@ -1,1247 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.bun/dompurify@3.4.13/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, ee = typeof Reflect < "u" && Reflect, m = ee.apply, te = ee.construct;
|
|
42
|
-
d ||= function(e) {
|
|
43
|
-
return e;
|
|
44
|
-
}, f ||= function(e) {
|
|
45
|
-
return e;
|
|
46
|
-
}, m ||= 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 ne = S(Array.prototype.forEach), re = S(Array.prototype.lastIndexOf), ie = S(Array.prototype.pop), ae = S(Array.prototype.push), oe = S(Array.prototype.splice), h = Array.isArray, se = S(String.prototype.toLowerCase), ce = S(String.prototype.toString), le = S(String.prototype.match), ue = S(String.prototype.replace), de = S(String.prototype.indexOf), fe = S(String.prototype.trim), pe = S(Number.prototype.toString), me = S(Boolean.prototype.toString), g = typeof BigInt > "u" ? null : S(BigInt.prototype.toString), _ = typeof Symbol > "u" ? null : S(Symbol.prototype.toString), v = S(Object.prototype.hasOwnProperty), y = S(Object.prototype.toString), b = S(RegExp.prototype.test), x = C(TypeError);
|
|
53
|
-
function S(e) {
|
|
54
|
-
return function(t) {
|
|
55
|
-
t instanceof RegExp && (t.lastIndex = 0);
|
|
56
|
-
var n = [...arguments].slice(1);
|
|
57
|
-
return m(e, t, n);
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function C(e) {
|
|
61
|
-
return function() {
|
|
62
|
-
return te(e, [...arguments]);
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function w(e, t) {
|
|
66
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : se;
|
|
67
|
-
if (s && s(e, null), !h(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 T(e) {
|
|
80
|
-
for (let t = 0; t < e.length; t++) v(e, t) || (e[t] = null);
|
|
81
|
-
return e;
|
|
82
|
-
}
|
|
83
|
-
function E(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
|
-
v(e, a) && (t[a] = h(o) ? T(o) : o && typeof o == "object" && o.constructor === Object ? E(o) : o);
|
|
89
|
-
}
|
|
90
|
-
return t;
|
|
91
|
-
}
|
|
92
|
-
function he(e) {
|
|
93
|
-
switch (typeof e) {
|
|
94
|
-
case "string": return e;
|
|
95
|
-
case "number": return pe(e);
|
|
96
|
-
case "boolean": return me(e);
|
|
97
|
-
case "bigint": return g ? g(e) : "0";
|
|
98
|
-
case "symbol": return _ ? _(e) : "Symbol()";
|
|
99
|
-
case "undefined": return y(e);
|
|
100
|
-
case "function":
|
|
101
|
-
case "object": {
|
|
102
|
-
if (e === null) return y(e);
|
|
103
|
-
let t = e, n = D(t, "toString");
|
|
104
|
-
if (typeof n == "function") {
|
|
105
|
-
let e = n(t);
|
|
106
|
-
return typeof e == "string" ? e : y(e);
|
|
107
|
-
}
|
|
108
|
-
return y(e);
|
|
109
|
-
}
|
|
110
|
-
default: return y(e);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
function D(e, t) {
|
|
114
|
-
for (; e !== null;) {
|
|
115
|
-
let n = u(e, t);
|
|
116
|
-
if (n) {
|
|
117
|
-
if (n.get) return S(n.get);
|
|
118
|
-
if (typeof n.value == "function") return S(n.value);
|
|
119
|
-
}
|
|
120
|
-
e = l(e);
|
|
121
|
-
}
|
|
122
|
-
function n() {
|
|
123
|
-
return null;
|
|
124
|
-
}
|
|
125
|
-
return n;
|
|
126
|
-
}
|
|
127
|
-
function ge(e) {
|
|
128
|
-
try {
|
|
129
|
-
return b(e, ""), !0;
|
|
130
|
-
} catch {
|
|
131
|
-
return !1;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
var _e = 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(".")), ve = 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(".")), ye = 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
|
-
]), be = 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
|
-
]), xe = 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(".")), Se = 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
|
-
]), Ce = d(["#text"]), we = 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(".")), Te = d(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.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(".")), Ee = 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(".")), De = d([
|
|
200
|
-
"xlink:href",
|
|
201
|
-
"xml:id",
|
|
202
|
-
"xlink:title",
|
|
203
|
-
"xml:space",
|
|
204
|
-
"xmlns:xlink"
|
|
205
|
-
]), Oe = f(/{{[\w\W]*|^[\w\W]*}}/g), ke = f(/<%[\w\W]*|^[\w\W]*%>/g), Ae = f(/\${[\w\W]*/g), je = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), Me = f(/^aria-[\-\w]+$/), Ne = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Pe = f(/^(?:\w+script|data):/i), Fe = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ie = f(/^html$/i), Le = f(/^[a-z][.\w]*(-[.\w]+)+$/i), Re = f(/<[/\w!]/g), ze = f(/<[/\w]/g), Be = f(/<\/no(script|embed|frames)/i), Ve = f(/\/>/i), O = {
|
|
206
|
-
element: 1,
|
|
207
|
-
attribute: 2,
|
|
208
|
-
text: 3,
|
|
209
|
-
cdataSection: 4,
|
|
210
|
-
entityReference: 5,
|
|
211
|
-
entityNode: 6,
|
|
212
|
-
processingInstruction: 7,
|
|
213
|
-
comment: 8,
|
|
214
|
-
document: 9,
|
|
215
|
-
documentType: 10,
|
|
216
|
-
documentFragment: 11,
|
|
217
|
-
notation: 12
|
|
218
|
-
}, He = function() {
|
|
219
|
-
return typeof window > "u" ? null : window;
|
|
220
|
-
}, Ue = 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
|
-
}, We = function() {
|
|
238
|
-
return {
|
|
239
|
-
afterSanitizeAttributes: [],
|
|
240
|
-
afterSanitizeElements: [],
|
|
241
|
-
afterSanitizeShadowDOM: [],
|
|
242
|
-
beforeSanitizeAttributes: [],
|
|
243
|
-
beforeSanitizeElements: [],
|
|
244
|
-
beforeSanitizeShadowDOM: [],
|
|
245
|
-
uponSanitizeAttribute: [],
|
|
246
|
-
uponSanitizeElement: [],
|
|
247
|
-
uponSanitizeShadowNode: []
|
|
248
|
-
};
|
|
249
|
-
}, k = function(e, t, n, r) {
|
|
250
|
-
return v(e, t) && h(e[t]) ? w(r.base ? E(r.base) : {}, e[t], r.transform) : n;
|
|
251
|
-
};
|
|
252
|
-
function Ge() {
|
|
253
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : He(), t = (e) => Ge(e);
|
|
254
|
-
if (t.version = "3.4.13", t.removed = [], !e || !e.document || e.document.nodeType !== O.document || !e.Element) return t.isSupported = !1, t;
|
|
255
|
-
let n = e.document, r = n, i = r.currentScript;
|
|
256
|
-
e.DocumentFragment;
|
|
257
|
-
let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
|
|
258
|
-
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
259
|
-
let u = e.DOMParser, ee = e.trustedTypes, m = c.prototype, te = D(m, "cloneNode"), pe = D(m, "remove"), me = D(m, "nextSibling"), g = D(m, "childNodes"), _ = D(m, "parentNode"), y = D(m, "shadowRoot"), S = D(m, "attributes"), C = s && s.prototype ? D(s.prototype, "nodeType") : null, T = s && s.prototype ? D(s.prototype, "nodeName") : null, Ke = s && s.prototype ? D(s.prototype, "ownerDocument") : null;
|
|
260
|
-
if (typeof a == "function") {
|
|
261
|
-
let e = n.createElement("template");
|
|
262
|
-
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
263
|
-
}
|
|
264
|
-
let A, j = "", qe, Je = !1, M = 0, Ye = function() {
|
|
265
|
-
if (M > 0) throw x("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
266
|
-
}, N = function(e) {
|
|
267
|
-
Ye(), M++;
|
|
268
|
-
try {
|
|
269
|
-
return A.createHTML(e);
|
|
270
|
-
} finally {
|
|
271
|
-
M--;
|
|
272
|
-
}
|
|
273
|
-
}, Xe = function(e) {
|
|
274
|
-
Ye(), M++;
|
|
275
|
-
try {
|
|
276
|
-
return A.createScriptURL(e);
|
|
277
|
-
} finally {
|
|
278
|
-
M--;
|
|
279
|
-
}
|
|
280
|
-
}, Ze = function() {
|
|
281
|
-
return Je ||= (qe = Ue(ee, i), !0), qe;
|
|
282
|
-
}, Qe = n, $e = Qe.implementation, et = Qe.createNodeIterator, tt = Qe.createDocumentFragment, nt = Qe.getElementsByTagName, rt = r.importNode, P = We();
|
|
283
|
-
t.isSupported = typeof o == "function" && typeof _ == "function" && $e && $e.createHTMLDocument !== void 0;
|
|
284
|
-
let it = Oe, at = ke, ot = Ae, F = je, I = Me, st = Pe, ct = Fe, lt = Le, ut = Ne, L = null, dt = w({}, [
|
|
285
|
-
..._e,
|
|
286
|
-
...ve,
|
|
287
|
-
...ye,
|
|
288
|
-
...xe,
|
|
289
|
-
...Ce
|
|
290
|
-
]), R = null, ft = w({}, [
|
|
291
|
-
...we,
|
|
292
|
-
...Te,
|
|
293
|
-
...Ee,
|
|
294
|
-
...De
|
|
295
|
-
]), z = Object.seal(p(null, {
|
|
296
|
-
tagNameCheck: {
|
|
297
|
-
writable: !0,
|
|
298
|
-
configurable: !1,
|
|
299
|
-
enumerable: !0,
|
|
300
|
-
value: null
|
|
301
|
-
},
|
|
302
|
-
attributeNameCheck: {
|
|
303
|
-
writable: !0,
|
|
304
|
-
configurable: !1,
|
|
305
|
-
enumerable: !0,
|
|
306
|
-
value: null
|
|
307
|
-
},
|
|
308
|
-
allowCustomizedBuiltInElements: {
|
|
309
|
-
writable: !0,
|
|
310
|
-
configurable: !1,
|
|
311
|
-
enumerable: !0,
|
|
312
|
-
value: !1
|
|
313
|
-
}
|
|
314
|
-
})), B = null, pt = null, V = Object.seal(p(null, {
|
|
315
|
-
tagCheck: {
|
|
316
|
-
writable: !0,
|
|
317
|
-
configurable: !1,
|
|
318
|
-
enumerable: !0,
|
|
319
|
-
value: null
|
|
320
|
-
},
|
|
321
|
-
attributeCheck: {
|
|
322
|
-
writable: !0,
|
|
323
|
-
configurable: !1,
|
|
324
|
-
enumerable: !0,
|
|
325
|
-
value: null
|
|
326
|
-
}
|
|
327
|
-
})), mt = !0, ht = !0, gt = !1, _t = !0, H = !1, U = !0, W = !1, vt = !1, G = null, K = null, yt = !1, q = !1, bt = !1, xt = !1, St = !0, Ct = !1, wt = "user-content-", Tt = !0, Et = !1, Dt = {}, J = null, Ot = w({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), kt = null, At = w({}, [
|
|
328
|
-
"audio",
|
|
329
|
-
"video",
|
|
330
|
-
"img",
|
|
331
|
-
"source",
|
|
332
|
-
"image",
|
|
333
|
-
"track"
|
|
334
|
-
]), jt = null, Mt = w({}, [
|
|
335
|
-
"alt",
|
|
336
|
-
"class",
|
|
337
|
-
"for",
|
|
338
|
-
"id",
|
|
339
|
-
"label",
|
|
340
|
-
"name",
|
|
341
|
-
"pattern",
|
|
342
|
-
"placeholder",
|
|
343
|
-
"role",
|
|
344
|
-
"summary",
|
|
345
|
-
"title",
|
|
346
|
-
"value",
|
|
347
|
-
"style",
|
|
348
|
-
"xmlns"
|
|
349
|
-
]), Nt = "http://www.w3.org/1998/Math/MathML", Pt = "http://www.w3.org/2000/svg", Y = "http://www.w3.org/1999/xhtml", Ft = Y, It = !1, Lt = null, Rt = w({}, [
|
|
350
|
-
Nt,
|
|
351
|
-
Pt,
|
|
352
|
-
Y
|
|
353
|
-
], ce), zt = d([
|
|
354
|
-
"mi",
|
|
355
|
-
"mo",
|
|
356
|
-
"mn",
|
|
357
|
-
"ms",
|
|
358
|
-
"mtext"
|
|
359
|
-
]), Bt = w({}, zt), Vt = d(["annotation-xml"]), Ht = w({}, Vt), Ut = w({}, [
|
|
360
|
-
"title",
|
|
361
|
-
"style",
|
|
362
|
-
"font",
|
|
363
|
-
"a",
|
|
364
|
-
"script"
|
|
365
|
-
]), Wt = null, Gt = ["application/xhtml+xml", "text/html"], X = null, Kt = null, qt = n.createElement("form"), Jt = function(e) {
|
|
366
|
-
return e instanceof RegExp || e instanceof Function;
|
|
367
|
-
}, Yt = function() {
|
|
368
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
369
|
-
if (Kt && Kt === e) return;
|
|
370
|
-
(!e || typeof e != "object") && (e = {}), e = E(e), Wt = Gt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = Wt === "application/xhtml+xml" ? ce : se, L = k(e, "ALLOWED_TAGS", dt, { transform: X }), R = k(e, "ALLOWED_ATTR", ft, { transform: X }), Lt = k(e, "ALLOWED_NAMESPACES", Rt, { transform: ce }), jt = k(e, "ADD_URI_SAFE_ATTR", Mt, {
|
|
371
|
-
transform: X,
|
|
372
|
-
base: Mt
|
|
373
|
-
}), kt = k(e, "ADD_DATA_URI_TAGS", At, {
|
|
374
|
-
transform: X,
|
|
375
|
-
base: At
|
|
376
|
-
}), J = k(e, "FORBID_CONTENTS", Ot, { transform: X }), B = k(e, "FORBID_TAGS", E({}), { transform: X }), pt = k(e, "FORBID_ATTR", E({}), { transform: X }), Dt = v(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? E(e.USE_PROFILES) : e.USE_PROFILES : !1, mt = e.ALLOW_ARIA_ATTR !== !1, ht = e.ALLOW_DATA_ATTR !== !1, gt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = e.SAFE_FOR_TEMPLATES || !1, U = e.SAFE_FOR_XML !== !1, W = e.WHOLE_DOCUMENT || !1, q = e.RETURN_DOM || !1, bt = e.RETURN_DOM_FRAGMENT || !1, xt = e.RETURN_TRUSTED_TYPE || !1, yt = e.FORCE_BODY || !1, St = e.SANITIZE_DOM !== !1, Ct = e.SANITIZE_NAMED_PROPS || !1, Tt = e.KEEP_CONTENT !== !1, Et = e.IN_PLACE || !1, ut = ge(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ne, Ft = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Y, Bt = v(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? E(e.MATHML_TEXT_INTEGRATION_POINTS) : w({}, zt), Ht = v(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? E(e.HTML_INTEGRATION_POINTS) : w({}, Vt);
|
|
377
|
-
let t = v(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? E(e.CUSTOM_ELEMENT_HANDLING) : p(null);
|
|
378
|
-
if (z = p(null), v(t, "tagNameCheck") && Jt(t.tagNameCheck) && (z.tagNameCheck = t.tagNameCheck), v(t, "attributeNameCheck") && Jt(t.attributeNameCheck) && (z.attributeNameCheck = t.attributeNameCheck), v(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(z), H && (ht = !1), bt && (q = !0), Dt && (L = w({}, Ce), R = p(null), Dt.html === !0 && (w(L, _e), w(R, we)), Dt.svg === !0 && (w(L, ve), w(R, Te), w(R, De)), Dt.svgFilters === !0 && (w(L, ye), w(R, Te), w(R, De)), Dt.mathMl === !0 && (w(L, xe), w(R, Ee), w(R, De))), V.tagCheck = null, V.attributeCheck = null, v(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? V.tagCheck = e.ADD_TAGS : h(e.ADD_TAGS) && (L === dt && (L = E(L)), w(L, e.ADD_TAGS, X))), v(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? V.attributeCheck = e.ADD_ATTR : h(e.ADD_ATTR) && (R === ft && (R = E(R)), w(R, e.ADD_ATTR, X))), v(e, "ADD_URI_SAFE_ATTR") && h(e.ADD_URI_SAFE_ATTR) && w(jt, e.ADD_URI_SAFE_ATTR, X), v(e, "FORBID_CONTENTS") && h(e.FORBID_CONTENTS) && (J === Ot && (J = E(J)), w(J, e.FORBID_CONTENTS, X)), v(e, "ADD_FORBID_CONTENTS") && h(e.ADD_FORBID_CONTENTS) && (J === Ot && (J = E(J)), w(J, e.ADD_FORBID_CONTENTS, X)), Tt && (L["#text"] = !0), W && w(L, [
|
|
379
|
-
"html",
|
|
380
|
-
"head",
|
|
381
|
-
"body"
|
|
382
|
-
]), L.table && (w(L, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
383
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw x("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
384
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw x("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
385
|
-
let t = A;
|
|
386
|
-
A = e.TRUSTED_TYPES_POLICY;
|
|
387
|
-
try {
|
|
388
|
-
j = N("");
|
|
389
|
-
} catch (e) {
|
|
390
|
-
throw A = t, e;
|
|
391
|
-
}
|
|
392
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (A = void 0, j = "") : (A === void 0 && (A = Ze()), A && typeof j == "string" && (j = N("")));
|
|
393
|
-
d && d(e), Kt = e;
|
|
394
|
-
}, Xt = w({}, [
|
|
395
|
-
...ve,
|
|
396
|
-
...ye,
|
|
397
|
-
...be
|
|
398
|
-
]), Zt = w({}, [...xe, ...Se]), Qt = function(e, t, n) {
|
|
399
|
-
return t.namespaceURI === Y ? e === "svg" : t.namespaceURI === Nt ? e === "svg" && (n === "annotation-xml" || Bt[n]) : !!Xt[e];
|
|
400
|
-
}, $t = function(e, t, n) {
|
|
401
|
-
return t.namespaceURI === Y ? e === "math" : t.namespaceURI === Pt ? e === "math" && Ht[n] : !!Zt[e];
|
|
402
|
-
}, en = function(e, t, n) {
|
|
403
|
-
return t.namespaceURI === Pt && !Ht[n] || t.namespaceURI === Nt && !Bt[n] ? !1 : !Zt[e] && (Ut[e] || !Xt[e]);
|
|
404
|
-
}, tn = function(e) {
|
|
405
|
-
let t = _(e);
|
|
406
|
-
(!t || !t.tagName) && (t = {
|
|
407
|
-
namespaceURI: Ft,
|
|
408
|
-
tagName: "template"
|
|
409
|
-
});
|
|
410
|
-
let n = se(e.tagName), r = se(t.tagName);
|
|
411
|
-
return Lt[e.namespaceURI] ? e.namespaceURI === Pt ? Qt(n, t, r) : e.namespaceURI === Nt ? $t(n, t, r) : e.namespaceURI === Y ? en(n, t, r) : !!(Wt === "application/xhtml+xml" && Lt[e.namespaceURI]) : !1;
|
|
412
|
-
}, Z = function(e) {
|
|
413
|
-
ae(t.removed, { element: e });
|
|
414
|
-
try {
|
|
415
|
-
_(e).removeChild(e);
|
|
416
|
-
} catch {
|
|
417
|
-
if (pe(e), !_(e)) throw x("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
418
|
-
}
|
|
419
|
-
}, nn = function(e) {
|
|
420
|
-
an(e);
|
|
421
|
-
let t = g(e);
|
|
422
|
-
if (t) {
|
|
423
|
-
let e = [];
|
|
424
|
-
ne(t, (t) => {
|
|
425
|
-
ae(e, t);
|
|
426
|
-
}), ne(e, (e) => {
|
|
427
|
-
try {
|
|
428
|
-
pe(e);
|
|
429
|
-
} catch {}
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
let n = S(e);
|
|
433
|
-
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
434
|
-
let r = n[t], i = r && r.name;
|
|
435
|
-
if (typeof i == "string") try {
|
|
436
|
-
e.removeAttribute(i);
|
|
437
|
-
} catch {}
|
|
438
|
-
}
|
|
439
|
-
}, Q = function(e, n) {
|
|
440
|
-
try {
|
|
441
|
-
ae(t.removed, {
|
|
442
|
-
attribute: n.getAttributeNode(e),
|
|
443
|
-
from: n
|
|
444
|
-
});
|
|
445
|
-
} catch {
|
|
446
|
-
ae(t.removed, {
|
|
447
|
-
attribute: null,
|
|
448
|
-
from: n
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
if (n.removeAttribute(e), e === "is") {
|
|
452
|
-
if (q || bt) try {
|
|
453
|
-
Z(n);
|
|
454
|
-
} catch {}
|
|
455
|
-
else try {
|
|
456
|
-
n.setAttribute(e, "");
|
|
457
|
-
} catch {}
|
|
458
|
-
}
|
|
459
|
-
}, rn = function(e) {
|
|
460
|
-
let t = S(e);
|
|
461
|
-
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
462
|
-
let r = t[n], i = r && r.name;
|
|
463
|
-
if (!(typeof i != "string" || R[X(i)])) try {
|
|
464
|
-
e.removeAttribute(i);
|
|
465
|
-
} catch {}
|
|
466
|
-
}
|
|
467
|
-
}, an = function(e) {
|
|
468
|
-
let t = [e];
|
|
469
|
-
for (; t.length > 0;) {
|
|
470
|
-
let e = t.pop();
|
|
471
|
-
(C ? C(e) : e.nodeType) === O.element && rn(e);
|
|
472
|
-
let n = g(e);
|
|
473
|
-
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
474
|
-
}
|
|
475
|
-
}, on = function(e) {
|
|
476
|
-
if (!U) return;
|
|
477
|
-
let t = [e];
|
|
478
|
-
for (; t.length > 0;) {
|
|
479
|
-
let e = t.pop(), n = C ? C(e) : e.nodeType;
|
|
480
|
-
if (n === O.processingInstruction || n === O.comment && b(ze, e.data)) {
|
|
481
|
-
try {
|
|
482
|
-
pe(e);
|
|
483
|
-
} catch {}
|
|
484
|
-
continue;
|
|
485
|
-
}
|
|
486
|
-
if (n === O.element) {
|
|
487
|
-
let t = e, n = X(T ? T(e) : e.nodeName);
|
|
488
|
-
try {
|
|
489
|
-
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
|
|
490
|
-
} catch {}
|
|
491
|
-
}
|
|
492
|
-
let r = g(e);
|
|
493
|
-
if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
|
|
494
|
-
}
|
|
495
|
-
}, sn = function(e) {
|
|
496
|
-
let t = null, r = null;
|
|
497
|
-
if (yt) e = "<remove></remove>" + e;
|
|
498
|
-
else {
|
|
499
|
-
let t = le(e, /^[\r\n\t ]+/);
|
|
500
|
-
r = t && t[0];
|
|
501
|
-
}
|
|
502
|
-
Wt === "application/xhtml+xml" && Ft === Y && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
503
|
-
let i = A ? N(e) : e;
|
|
504
|
-
if (Ft === Y) try {
|
|
505
|
-
t = new u().parseFromString(i, Wt);
|
|
506
|
-
} catch {}
|
|
507
|
-
if (!t || !t.documentElement) {
|
|
508
|
-
t = $e.createDocument(Ft, "template", null);
|
|
509
|
-
try {
|
|
510
|
-
t.documentElement.innerHTML = It ? j : i;
|
|
511
|
-
} catch {}
|
|
512
|
-
}
|
|
513
|
-
let a = t.body || t.documentElement;
|
|
514
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Ft === Y ? nt.call(t, W ? "html" : "body")[0] : W ? t.documentElement : a;
|
|
515
|
-
}, cn = function(e) {
|
|
516
|
-
let t = Ke ? Ke(e) : e.ownerDocument;
|
|
517
|
-
return et.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
|
|
518
|
-
}, ln = function(e) {
|
|
519
|
-
return e = ue(e, it, " "), e = ue(e, at, " "), e = ue(e, ot, " "), e;
|
|
520
|
-
}, un = function(e) {
|
|
521
|
-
e.normalize();
|
|
522
|
-
let t = Ke ? Ke(e) : e.ownerDocument, n = et.call(t || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
523
|
-
for (; r;) r.data = ln(r.data), r = n.nextNode();
|
|
524
|
-
let i = e.querySelectorAll?.call(e, "template");
|
|
525
|
-
i && ne(i, (e) => {
|
|
526
|
-
fn(e.content) && un(e.content);
|
|
527
|
-
});
|
|
528
|
-
}, dn = function(e) {
|
|
529
|
-
let t = T ? T(e) : null;
|
|
530
|
-
return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== S(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== C(e) || e.childNodes !== g(e);
|
|
531
|
-
}, fn = function(e) {
|
|
532
|
-
if (!C || typeof e != "object" || !e) return !1;
|
|
533
|
-
try {
|
|
534
|
-
return C(e) === O.documentFragment;
|
|
535
|
-
} catch {
|
|
536
|
-
return !1;
|
|
537
|
-
}
|
|
538
|
-
}, pn = function(e) {
|
|
539
|
-
if (!C || typeof e != "object" || !e) return !1;
|
|
540
|
-
try {
|
|
541
|
-
return typeof C(e) == "number";
|
|
542
|
-
} catch {
|
|
543
|
-
return !1;
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
function $(e, n, r) {
|
|
547
|
-
e.length !== 0 && ne(e, (e) => {
|
|
548
|
-
e.call(t, n, r, Kt);
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
let mn = function(e, t) {
|
|
552
|
-
return !!(U && e.hasChildNodes() && !pn(e.firstElementChild) && b(Re, e.textContent) && b(Re, e.innerHTML) || U && e.namespaceURI === Y && t === "style" && pn(e.firstElementChild) || e.nodeType === O.processingInstruction || U && e.nodeType === O.comment && b(ze, e.data));
|
|
553
|
-
}, hn = function(e, t, n) {
|
|
554
|
-
if (!B[t] && bn(t) && (z.tagNameCheck instanceof RegExp && b(z.tagNameCheck, t) || z.tagNameCheck instanceof Function && z.tagNameCheck(t))) return !1;
|
|
555
|
-
if (Tt && !J[t]) {
|
|
556
|
-
let t = _(e), r = g(e);
|
|
557
|
-
if (r && t) {
|
|
558
|
-
let i = r.length;
|
|
559
|
-
for (let a = i - 1; a >= 0; --a) {
|
|
560
|
-
let i = e === n ? te(r[a], !0) : r[a];
|
|
561
|
-
t.insertBefore(i, me(e));
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
return Z(e), !0;
|
|
566
|
-
}, gn = function(e, t, n, r) {
|
|
567
|
-
return e.length === 0 ? t : t === n || t === r ? E(t) : t;
|
|
568
|
-
}, _n = function(e, n) {
|
|
569
|
-
if ($(P.beforeSanitizeElements, e, null), e !== n && _(e) === null) return Et && an(e), !0;
|
|
570
|
-
if (dn(e)) return Z(e), !0;
|
|
571
|
-
let r = X(T ? T(e) : e.nodeName);
|
|
572
|
-
if (L = gn(P.uponSanitizeElement, L, dt, G), $(P.uponSanitizeElement, e, {
|
|
573
|
-
tagName: r,
|
|
574
|
-
allowedTags: L
|
|
575
|
-
}), e !== n && _(e) === null) return Et && an(e), !0;
|
|
576
|
-
if (mn(e, r)) return Z(e), !0;
|
|
577
|
-
if (B[r] || !(V.tagCheck instanceof Function && V.tagCheck(r)) && !L[r]) {
|
|
578
|
-
let t = hn(e, r, n);
|
|
579
|
-
return t === !1 && $(P.afterSanitizeElements, e, null), t;
|
|
580
|
-
}
|
|
581
|
-
if ((C ? C(e) : e.nodeType) === O.element && !tn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && b(Be, e.innerHTML)) return Z(e), !0;
|
|
582
|
-
if (H && e.nodeType === O.text) {
|
|
583
|
-
let n = ln(e.textContent);
|
|
584
|
-
e.textContent !== n && (ae(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
585
|
-
}
|
|
586
|
-
return $(P.afterSanitizeElements, e, null), !1;
|
|
587
|
-
}, vn = function(e, t, r) {
|
|
588
|
-
if (pt[t] || U && t === "patchsrc" || U && t === "for" && e !== "label" && e !== "output" || St && (t === "id" || t === "name") && (r in n || r in qt)) return !1;
|
|
589
|
-
let i = R[t] || V.attributeCheck instanceof Function && V.attributeCheck(t, e);
|
|
590
|
-
if (!(ht && b(F, t)) && !(mt && b(I, t))) {
|
|
591
|
-
if (!i) {
|
|
592
|
-
if (!(bn(e) && (z.tagNameCheck instanceof RegExp && b(z.tagNameCheck, e) || z.tagNameCheck instanceof Function && z.tagNameCheck(e)) && (z.attributeNameCheck instanceof RegExp && b(z.attributeNameCheck, t) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(t, e)) || t === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && b(z.tagNameCheck, r) || z.tagNameCheck instanceof Function && z.tagNameCheck(r)))) return !1;
|
|
593
|
-
} else if (!jt[t] && !b(ut, ue(r, ct, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && de(r, "data:") === 0 && kt[e]) && !(gt && !b(st, ue(r, ct, ""))) && r) return !1;
|
|
594
|
-
}
|
|
595
|
-
return !0;
|
|
596
|
-
}, yn = w({}, [
|
|
597
|
-
"annotation-xml",
|
|
598
|
-
"color-profile",
|
|
599
|
-
"font-face",
|
|
600
|
-
"font-face-format",
|
|
601
|
-
"font-face-name",
|
|
602
|
-
"font-face-src",
|
|
603
|
-
"font-face-uri",
|
|
604
|
-
"missing-glyph"
|
|
605
|
-
]), bn = function(e) {
|
|
606
|
-
return !yn[se(e)] && b(lt, e);
|
|
607
|
-
}, xn = function(e, t, n, r) {
|
|
608
|
-
if (A && typeof ee == "object" && typeof ee.getAttributeType == "function" && !n) switch (ee.getAttributeType(e, t)) {
|
|
609
|
-
case "TrustedHTML": return N(r);
|
|
610
|
-
case "TrustedScriptURL": return Xe(r);
|
|
611
|
-
}
|
|
612
|
-
return r;
|
|
613
|
-
}, Sn = function(e, n, r, i) {
|
|
614
|
-
try {
|
|
615
|
-
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? Z(e) : ie(t.removed);
|
|
616
|
-
} catch {
|
|
617
|
-
Q(n, e);
|
|
618
|
-
}
|
|
619
|
-
}, Cn = function(e) {
|
|
620
|
-
$(P.beforeSanitizeAttributes, e, null);
|
|
621
|
-
let t = e.attributes;
|
|
622
|
-
if (!t || dn(e)) return;
|
|
623
|
-
R = gn(P.uponSanitizeAttribute, R, ft, K);
|
|
624
|
-
let n = {
|
|
625
|
-
attrName: "",
|
|
626
|
-
attrValue: "",
|
|
627
|
-
keepAttr: !0,
|
|
628
|
-
allowedAttributes: R,
|
|
629
|
-
forceKeepAttr: void 0
|
|
630
|
-
}, r = t.length, i = X(e.nodeName);
|
|
631
|
-
for (; r--;) {
|
|
632
|
-
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = X(o), u = c, d = o === "value" ? u : fe(u);
|
|
633
|
-
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(P.uponSanitizeAttribute, e, n), d = n.attrValue, Ct && (l === "id" || l === "name") && de(d, wt) !== 0 && (Q(o, e), d = wt + d), U && b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
634
|
-
Q(o, e);
|
|
635
|
-
continue;
|
|
636
|
-
}
|
|
637
|
-
if (l === "attributename" && le(d, "href")) {
|
|
638
|
-
Q(o, e);
|
|
639
|
-
continue;
|
|
640
|
-
}
|
|
641
|
-
if (!n.forceKeepAttr) {
|
|
642
|
-
if (!n.keepAttr) {
|
|
643
|
-
Q(o, e);
|
|
644
|
-
continue;
|
|
645
|
-
}
|
|
646
|
-
if (!_t && b(Ve, d)) {
|
|
647
|
-
Q(o, e);
|
|
648
|
-
continue;
|
|
649
|
-
}
|
|
650
|
-
if (H && (d = ln(d)), !vn(i, l, d)) {
|
|
651
|
-
Q(o, e);
|
|
652
|
-
continue;
|
|
653
|
-
}
|
|
654
|
-
d = xn(i, l, s, d), d !== u && Sn(e, o, s, d);
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
$(P.afterSanitizeAttributes, e, null);
|
|
658
|
-
}, wn = function(e) {
|
|
659
|
-
let t = null, n = cn(e);
|
|
660
|
-
for ($(P.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(P.uponSanitizeShadowNode, t, null), _n(t, e), Cn(t), fn(t.content) && wn(t.content), (C ? C(t) : t.nodeType) === O.element) {
|
|
661
|
-
let e = y(t);
|
|
662
|
-
fn(e) && (Tn(e), wn(e));
|
|
663
|
-
}
|
|
664
|
-
$(P.afterSanitizeShadowDOM, e, null);
|
|
665
|
-
}, Tn = function(e) {
|
|
666
|
-
let t = [{
|
|
667
|
-
node: e,
|
|
668
|
-
shadow: null
|
|
669
|
-
}];
|
|
670
|
-
for (; t.length > 0;) {
|
|
671
|
-
let e = t.pop();
|
|
672
|
-
if (e.shadow) {
|
|
673
|
-
wn(e.shadow);
|
|
674
|
-
continue;
|
|
675
|
-
}
|
|
676
|
-
let n = e.node, r = (C ? C(n) : n.nodeType) === O.element, i = g(n);
|
|
677
|
-
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
678
|
-
node: i[e],
|
|
679
|
-
shadow: null
|
|
680
|
-
});
|
|
681
|
-
if (r) {
|
|
682
|
-
let e = T ? T(n) : null;
|
|
683
|
-
if (typeof e == "string" && X(e) === "template") {
|
|
684
|
-
let e = n.content;
|
|
685
|
-
fn(e) && t.push({
|
|
686
|
-
node: e,
|
|
687
|
-
shadow: null
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
if (r) {
|
|
692
|
-
let e = y(n);
|
|
693
|
-
fn(e) && t.push({
|
|
694
|
-
node: null,
|
|
695
|
-
shadow: e
|
|
696
|
-
}, {
|
|
697
|
-
node: e,
|
|
698
|
-
shadow: null
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
return t.sanitize = function(e) {
|
|
704
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
705
|
-
if (It = !e, It && (e = "<!-->"), typeof e != "string" && !pn(e) && (e = he(e), typeof e != "string")) throw x("dirty is not a string, aborting");
|
|
706
|
-
if (!t.isSupported) return e;
|
|
707
|
-
vt ? (L = G, R = K) : Yt(n), (P.uponSanitizeElement.length > 0 || P.uponSanitizeAttribute.length > 0) && (L = E(L)), P.uponSanitizeAttribute.length > 0 && (R = E(R)), t.removed = [];
|
|
708
|
-
let c = Et && typeof e != "string" && pn(e);
|
|
709
|
-
if (c) {
|
|
710
|
-
on(e);
|
|
711
|
-
let t = T ? T(e) : e.nodeName;
|
|
712
|
-
if (typeof t == "string") {
|
|
713
|
-
let n = X(t);
|
|
714
|
-
if (!L[n] || B[n]) throw nn(e), x("root node is forbidden and cannot be sanitized in-place");
|
|
715
|
-
}
|
|
716
|
-
if (dn(e)) throw nn(e), x("root node is clobbered and cannot be sanitized in-place");
|
|
717
|
-
try {
|
|
718
|
-
Tn(e);
|
|
719
|
-
} catch (t) {
|
|
720
|
-
throw nn(e), t;
|
|
721
|
-
}
|
|
722
|
-
} else if (pn(e)) i = sn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === O.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Tn(a);
|
|
723
|
-
else {
|
|
724
|
-
if (!q && !H && !W && e.indexOf("<") === -1) return A && xt ? N(e) : e;
|
|
725
|
-
if (i = sn(e), !i) return q ? null : xt ? j : "";
|
|
726
|
-
}
|
|
727
|
-
i && yt && Z(i.firstChild);
|
|
728
|
-
let l = c ? e : i;
|
|
729
|
-
try {
|
|
730
|
-
let e = cn(l);
|
|
731
|
-
for (; o = e.nextNode();) _n(o, l), Cn(o), fn(o.content) && wn(o.content);
|
|
732
|
-
} catch (n) {
|
|
733
|
-
throw c && (nn(e), ne(t.removed, (e) => {
|
|
734
|
-
e.element && an(e.element);
|
|
735
|
-
})), n;
|
|
736
|
-
}
|
|
737
|
-
if (c) return ne(t.removed, (e) => {
|
|
738
|
-
e.element && an(e.element);
|
|
739
|
-
}), H && un(e), e;
|
|
740
|
-
if (q) {
|
|
741
|
-
if (H && un(i), bt) for (s = tt.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
742
|
-
else s = i;
|
|
743
|
-
return (R.shadowroot || R.shadowrootmode) && (s = rt.call(r, s, !0)), s;
|
|
744
|
-
}
|
|
745
|
-
let u = W ? i.outerHTML : i.innerHTML;
|
|
746
|
-
return W && L["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && b(Ie, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), H && (u = ln(u)), A && xt ? N(u) : u;
|
|
747
|
-
}, t.setConfig = function() {
|
|
748
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
749
|
-
Yt(e), vt = !0, G = L, K = R;
|
|
750
|
-
}, t.clearConfig = function() {
|
|
751
|
-
Kt = null, vt = !1, G = null, K = null, A = qe, j = "";
|
|
752
|
-
}, t.isValidAttribute = function(e, t, n) {
|
|
753
|
-
Kt || Yt({});
|
|
754
|
-
let r = X(e), i = X(t);
|
|
755
|
-
return vn(r, i, n);
|
|
756
|
-
}, t.addHook = function(e, t) {
|
|
757
|
-
typeof t == "function" && v(P, e) && ae(P[e], t);
|
|
758
|
-
}, t.removeHook = function(e, t) {
|
|
759
|
-
if (v(P, e)) {
|
|
760
|
-
if (t !== void 0) {
|
|
761
|
-
let n = re(P[e], t);
|
|
762
|
-
return n === -1 ? void 0 : oe(P[e], n, 1)[0];
|
|
763
|
-
}
|
|
764
|
-
return ie(P[e]);
|
|
765
|
-
}
|
|
766
|
-
}, t.removeHooks = function(e) {
|
|
767
|
-
v(P, e) && (P[e] = []);
|
|
768
|
-
}, t.removeAllHooks = function() {
|
|
769
|
-
P = We();
|
|
770
|
-
}, t;
|
|
771
|
-
}
|
|
772
|
-
var Ke = Ge(), A = null;
|
|
773
|
-
function j() {
|
|
774
|
-
if (A) return A;
|
|
775
|
-
if (typeof window > "u" || !window.document) return null;
|
|
776
|
-
let e = Ke;
|
|
777
|
-
return A = typeof e == "function" ? e(window) : Ke, A;
|
|
778
|
-
}
|
|
779
|
-
var qe = [
|
|
780
|
-
"script",
|
|
781
|
-
"foreignobject",
|
|
782
|
-
"iframe",
|
|
783
|
-
"object",
|
|
784
|
-
"embed",
|
|
785
|
-
"base",
|
|
786
|
-
"form"
|
|
787
|
-
], Je = [
|
|
788
|
-
"onerror",
|
|
789
|
-
"onload",
|
|
790
|
-
"onclick",
|
|
791
|
-
"onmouseover",
|
|
792
|
-
"onmouseout",
|
|
793
|
-
"onmouseenter",
|
|
794
|
-
"onmouseleave",
|
|
795
|
-
"onfocus",
|
|
796
|
-
"onblur",
|
|
797
|
-
"onkeydown",
|
|
798
|
-
"onkeyup",
|
|
799
|
-
"onkeypress",
|
|
800
|
-
"formaction",
|
|
801
|
-
"xlink:href"
|
|
802
|
-
], M = /* @__PURE__ */ new Map(), Ye = 64;
|
|
803
|
-
function N(e) {
|
|
804
|
-
if (typeof e != "string" || e.length === 0 || !e.trimStart().toLowerCase().startsWith("<svg")) return "";
|
|
805
|
-
let t = M.get(e);
|
|
806
|
-
if (t !== void 0) return t;
|
|
807
|
-
let n = j();
|
|
808
|
-
if (!n) return "";
|
|
809
|
-
let r = n.sanitize(e, {
|
|
810
|
-
USE_PROFILES: {
|
|
811
|
-
svg: !0,
|
|
812
|
-
svgFilters: !0
|
|
813
|
-
},
|
|
814
|
-
FORBID_TAGS: qe,
|
|
815
|
-
FORBID_ATTR: Je,
|
|
816
|
-
ALLOW_UNKNOWN_PROTOCOLS: !1,
|
|
817
|
-
RETURN_TRUSTED_TYPE: !1
|
|
818
|
-
}), i = typeof r == "string" ? r : String(r ?? "");
|
|
819
|
-
if (M.size >= Ye) {
|
|
820
|
-
let e = [...M.keys()];
|
|
821
|
-
for (let t = 0; t < e.length / 2; t += 1) M.delete(e[t]);
|
|
822
|
-
}
|
|
823
|
-
return M.set(e, i), i;
|
|
824
|
-
}
|
|
825
|
-
function Xe(e) {
|
|
826
|
-
try {
|
|
827
|
-
let t = {
|
|
828
|
-
BASE_URL: "/",
|
|
829
|
-
DEV: !1,
|
|
830
|
-
MODE: "production",
|
|
831
|
-
PROD: !0,
|
|
832
|
-
SSR: !1
|
|
833
|
-
}[e];
|
|
834
|
-
if (typeof t == "string" && t.length > 0) return t;
|
|
835
|
-
} catch {}
|
|
836
|
-
}
|
|
837
|
-
typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || Xe("PUBLIC_BUILDER_ORIGIN_URL"), typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || Xe("PUBLIC_BUILDER_BUNDLE_URL");
|
|
838
|
-
var Ze = class {
|
|
839
|
-
initialized = !1;
|
|
840
|
-
config;
|
|
841
|
-
trackError(e, t) {
|
|
842
|
-
if (!this.guardedOperation("trackError", e, t) || !this.applyErrorFilter(e, t)) return;
|
|
843
|
-
let n = this.transformAttributes(t);
|
|
844
|
-
try {
|
|
845
|
-
this.doTrackError(e, n), this.config?.debug && console.log(`[${this.providerName}] Tracked error:`, e, n);
|
|
846
|
-
} catch (e) {
|
|
847
|
-
console.error(`[${this.providerName}] Error tracking error:`, e);
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
trackEvent(e, t) {
|
|
851
|
-
if (!this.guardedOperation("trackEvent", e, t) || !this.applyEventFilter(e, t) || !this.applySampling(e)) return;
|
|
852
|
-
let n = this.transformAttributes(t);
|
|
853
|
-
n.timestamp || (n = {
|
|
854
|
-
...n,
|
|
855
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
856
|
-
});
|
|
857
|
-
try {
|
|
858
|
-
this.doTrackEvent(e, n), this.config?.debug && console.log(`[${this.providerName}] Tracked event:`, e, n);
|
|
859
|
-
} catch (e) {
|
|
860
|
-
console.error(`[${this.providerName}] Error tracking event:`, e);
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
trackMetric(e, t, n) {
|
|
864
|
-
this.trackEvent(`metric:${e}`, {
|
|
865
|
-
...n,
|
|
866
|
-
metricValue: t,
|
|
867
|
-
metricName: e
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
setUserContext(e, t) {
|
|
871
|
-
if (this.guardedOperation("setUserContext", e, t)) try {
|
|
872
|
-
this.doSetUserContext(e, t), this.config?.debug && console.log(`[${this.providerName}] Set user context:`, e, t);
|
|
873
|
-
} catch (e) {
|
|
874
|
-
console.error(`[${this.providerName}] Error setting user context:`, e);
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
setGlobalAttributes(e) {
|
|
878
|
-
if (this.guardedOperation("setGlobalAttributes", e)) try {
|
|
879
|
-
this.doSetGlobalAttributes(e), this.config?.debug && console.log(`[${this.providerName}] Set global attributes:`, e);
|
|
880
|
-
} catch (e) {
|
|
881
|
-
console.error(`[${this.providerName}] Error setting global attributes:`, e);
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
guardedOperation(e, ...t) {
|
|
885
|
-
return this.isReady() ? !0 : (this.config?.debug && console.warn(`[${this.providerName}] Attempted to ${e} but provider not ready:`, ...t), !1);
|
|
886
|
-
}
|
|
887
|
-
applyErrorFilter(e, t) {
|
|
888
|
-
return this.config?.errorFilter && !this.config.errorFilter(e, t) ? (this.config?.debug && console.log(`[${this.providerName}] Error filtered out:`, e, t), !1) : !0;
|
|
889
|
-
}
|
|
890
|
-
applyEventFilter(e, t) {
|
|
891
|
-
return this.config?.eventFilter && !this.config.eventFilter(e, t) ? (this.config?.debug && console.log(`[${this.providerName}] Event filtered out:`, e, t), !1) : !0;
|
|
892
|
-
}
|
|
893
|
-
applySampling(e) {
|
|
894
|
-
return this.config?.sampleRate !== void 0 && this.config.sampleRate < 1 && Math.random() > this.config.sampleRate ? (this.config?.debug && console.log(`[${this.providerName}] Event sampled out:`, e), !1) : !0;
|
|
895
|
-
}
|
|
896
|
-
transformAttributes(e) {
|
|
897
|
-
return this.config?.attributeTransformer ? this.config.attributeTransformer(e) : e;
|
|
898
|
-
}
|
|
899
|
-
}, Qe = class extends Ze {
|
|
900
|
-
providerId = "newrelic";
|
|
901
|
-
providerName = "New Relic";
|
|
902
|
-
async initialize(e) {
|
|
903
|
-
this.config = e, typeof window < "u" && window.newrelic ? (this.initialized = !0, this.config?.debug && console.log("[NewRelicProvider] Initialized successfully")) : (this.config?.debug && console.warn("[NewRelicProvider] New Relic not available (window.newrelic not found)"), this.initialized = !1);
|
|
904
|
-
}
|
|
905
|
-
isReady() {
|
|
906
|
-
return this.initialized && typeof window < "u" && !!window.newrelic;
|
|
907
|
-
}
|
|
908
|
-
destroy() {
|
|
909
|
-
this.initialized = !1, this.config?.debug && console.log("[NewRelicProvider] Destroyed");
|
|
910
|
-
}
|
|
911
|
-
doTrackError(e, t) {
|
|
912
|
-
window.newrelic.noticeError(e, t);
|
|
913
|
-
}
|
|
914
|
-
doTrackEvent(e, t) {
|
|
915
|
-
window.newrelic.addPageAction(e, t);
|
|
916
|
-
}
|
|
917
|
-
doSetUserContext(e, t) {
|
|
918
|
-
let n = window.newrelic;
|
|
919
|
-
if (n.setUserId && n.setUserId(e), t && n.setCustomAttribute) for (let [e, r] of Object.entries(t)) n.setCustomAttribute(e, r);
|
|
920
|
-
}
|
|
921
|
-
doSetGlobalAttributes(e) {
|
|
922
|
-
let t = window.newrelic;
|
|
923
|
-
if (t.setCustomAttribute) for (let [n, r] of Object.entries(e)) t.setCustomAttribute(n, r);
|
|
924
|
-
}
|
|
925
|
-
};
|
|
926
|
-
//#endregion
|
|
927
|
-
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/instrumentation/provider-guards.js
|
|
928
|
-
function $e(e) {
|
|
929
|
-
if (!e || typeof e != "object") return !1;
|
|
930
|
-
let t = e;
|
|
931
|
-
return typeof t.providerId == "string" && typeof t.providerName == "string" && typeof t.initialize == "function" && typeof t.trackError == "function" && typeof t.trackEvent == "function" && typeof t.destroy == "function" && typeof t.isReady == "function";
|
|
932
|
-
}
|
|
933
|
-
//#endregion
|
|
934
|
-
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/loader-config.js
|
|
935
|
-
var et = {
|
|
936
|
-
retryDelayMs: 3e3,
|
|
937
|
-
timeoutMs: 12e4
|
|
938
|
-
}, tt;
|
|
939
|
-
(function(e) {
|
|
940
|
-
e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js";
|
|
941
|
-
})(tt ||= {});
|
|
942
|
-
var nt;
|
|
943
|
-
(function(e) {
|
|
944
|
-
e.loading = "loading", e.loaded = "loaded";
|
|
945
|
-
})(nt ||= {}), et.timeoutMs;
|
|
946
|
-
//#endregion
|
|
947
|
-
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/types/index.js
|
|
948
|
-
var rt;
|
|
949
|
-
(function(e) {
|
|
950
|
-
e.SAVE = "save", e.MODEL = "model", e.SCORE = "score", e.MANUAL_SCORE = "manual-score";
|
|
951
|
-
})(rt ||= {});
|
|
952
|
-
var P;
|
|
953
|
-
(function(e) {
|
|
954
|
-
e.AUTO = "auto", e.MANUAL = "manual";
|
|
955
|
-
})(P ||= {});
|
|
956
|
-
var it;
|
|
957
|
-
(function(e) {
|
|
958
|
-
e.GATHER = "gather", e.VIEW = "view", e.EVALUATE = "evaluate";
|
|
959
|
-
})(it ||= {});
|
|
960
|
-
var at;
|
|
961
|
-
(function(e) {
|
|
962
|
-
e.PENDING = "pending", e.IN_PROGRESS = "in_progress", e.COMPLETED = "completed", e.FAILED = "failed";
|
|
963
|
-
})(at ||= {});
|
|
964
|
-
var ot;
|
|
965
|
-
(function(e) {
|
|
966
|
-
e[e.ROOT = 0] = "ROOT", e[e.SUBJECT = 1] = "SUBJECT", e[e.LEVEL = 2] = "LEVEL", e[e.STANDARD = 3] = "STANDARD";
|
|
967
|
-
})(ot ||= {});
|
|
968
|
-
//#endregion
|
|
969
|
-
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/logger.js
|
|
970
|
-
function F(e, t) {
|
|
971
|
-
let n = `[${e}]`;
|
|
972
|
-
return {
|
|
973
|
-
debug: (e, ...r) => {
|
|
974
|
-
t() && console.debug(n, e, ...r);
|
|
975
|
-
},
|
|
976
|
-
info: (e, ...t) => console.info(n, e, ...t),
|
|
977
|
-
warn: (e, ...t) => console.warn(n, e, ...t),
|
|
978
|
-
error: (e, ...t) => console.error(n, e, ...t)
|
|
979
|
-
};
|
|
980
|
-
}
|
|
981
|
-
function I() {
|
|
982
|
-
return typeof window < "u" && window.PIE_DEBUG === !0;
|
|
983
|
-
}
|
|
984
|
-
F("math-rendering", () => I()), F("pie-scoring", () => I()), F("pie-updates", () => I()), F("pie-initialization", () => I()), tt.player, F("asset-handler", () => I()), F("authoring", () => I());
|
|
985
|
-
//#endregion
|
|
986
|
-
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/instrumentation-event-bridge.js
|
|
987
|
-
var st = F("instrumentation-event-bridge", () => I());
|
|
988
|
-
function ct(e) {
|
|
989
|
-
return e && typeof e == "object" ? e : e === void 0 ? {} : { value: e };
|
|
990
|
-
}
|
|
991
|
-
function lt(e) {
|
|
992
|
-
st.warn(`[InstrumentationEventBridge:${e}] Ignoring invalid instrumentation provider; expected InstrumentationProvider contract`);
|
|
993
|
-
}
|
|
994
|
-
function ut(e) {
|
|
995
|
-
try {
|
|
996
|
-
e.provider.trackError(e.error instanceof Error ? e.error : Error(String(e.error ?? "Unknown instrumentation bridge error")), {
|
|
997
|
-
component: e.component,
|
|
998
|
-
errorType: "InstrumentationBridgeError",
|
|
999
|
-
sourceEventName: e.sourceEventName
|
|
1000
|
-
});
|
|
1001
|
-
} catch {}
|
|
1002
|
-
}
|
|
1003
|
-
function L(e) {
|
|
1004
|
-
if (!e.host || !e.eventMap.length || !e.instrumentationProvider) return () => {};
|
|
1005
|
-
if (!$e(e.instrumentationProvider)) return e.debug && lt(e.component), () => {};
|
|
1006
|
-
let t = e.instrumentationProvider, n = [], r = Math.max(0, e.dedupeWindowMs ?? 0), i = /* @__PURE__ */ new Map(), a = (e, t) => {
|
|
1007
|
-
let n = [
|
|
1008
|
-
t.assessmentId,
|
|
1009
|
-
t.sectionId,
|
|
1010
|
-
t.attemptId,
|
|
1011
|
-
t.itemId,
|
|
1012
|
-
t.canonicalItemId,
|
|
1013
|
-
t.sourceRuntimeId
|
|
1014
|
-
].map((e) => String(e ?? "")).join("|");
|
|
1015
|
-
return `${e.instrumentationEventName}|${n}`;
|
|
1016
|
-
};
|
|
1017
|
-
for (let o of e.eventMap) {
|
|
1018
|
-
let s = (n) => {
|
|
1019
|
-
try {
|
|
1020
|
-
if (!t.isReady() || e.shouldTrackEvent && !e.shouldTrackEvent(n)) return;
|
|
1021
|
-
let s = ct(n.detail), c = (/* @__PURE__ */ new Date()).toISOString(), l = {
|
|
1022
|
-
...s,
|
|
1023
|
-
...e.staticAttributes,
|
|
1024
|
-
component: e.component,
|
|
1025
|
-
sourceEventName: o.sourceEventName,
|
|
1026
|
-
timestamp: c
|
|
1027
|
-
};
|
|
1028
|
-
if (r > 0) {
|
|
1029
|
-
let e = Date.now(), t = a(o, l), n = i.get(t);
|
|
1030
|
-
if (typeof n == "number" && e - n < r) return;
|
|
1031
|
-
i.set(t, e);
|
|
1032
|
-
}
|
|
1033
|
-
t.trackEvent(o.instrumentationEventName, { ...l });
|
|
1034
|
-
} catch (n) {
|
|
1035
|
-
ut({
|
|
1036
|
-
provider: t,
|
|
1037
|
-
component: e.component,
|
|
1038
|
-
error: n,
|
|
1039
|
-
sourceEventName: o.sourceEventName
|
|
1040
|
-
});
|
|
1041
|
-
}
|
|
1042
|
-
};
|
|
1043
|
-
e.host.addEventListener(o.sourceEventName, s), n.push(() => {
|
|
1044
|
-
e.host?.removeEventListener(o.sourceEventName, s);
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
|
-
return () => {
|
|
1048
|
-
for (let e of n) e();
|
|
1049
|
-
};
|
|
1050
|
-
}
|
|
1051
|
-
//#endregion
|
|
1052
|
-
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/instrumentation-provider-resolution.js
|
|
1053
|
-
function dt(e) {
|
|
1054
|
-
return e && typeof e == "object" ? e : {};
|
|
1055
|
-
}
|
|
1056
|
-
function R(e) {
|
|
1057
|
-
let t = dt(dt(e).loaderConfig);
|
|
1058
|
-
return Object.keys(t).length > 0 ? t : null;
|
|
1059
|
-
}
|
|
1060
|
-
function ft(e) {
|
|
1061
|
-
if (!e || !("instrumentationProvider" in e)) return { kind: "unset" };
|
|
1062
|
-
let t = e.instrumentationProvider;
|
|
1063
|
-
return t === null ? { kind: "null" } : t === void 0 ? { kind: "unset" } : {
|
|
1064
|
-
kind: "value",
|
|
1065
|
-
value: t
|
|
1066
|
-
};
|
|
1067
|
-
}
|
|
1068
|
-
function z(e) {
|
|
1069
|
-
if (!e || !("trackPageActions" in e)) return;
|
|
1070
|
-
let t = e.trackPageActions;
|
|
1071
|
-
return typeof t == "boolean" ? t : void 0;
|
|
1072
|
-
}
|
|
1073
|
-
function B(e, t) {
|
|
1074
|
-
return e.kind === "value" || e.kind === "null" ? e : t;
|
|
1075
|
-
}
|
|
1076
|
-
var pt, V = F("instrumentation-provider-resolution", () => I());
|
|
1077
|
-
function mt() {
|
|
1078
|
-
return pt || (pt = new Qe(), pt.initialize()), pt;
|
|
1079
|
-
}
|
|
1080
|
-
function ht(e) {
|
|
1081
|
-
let t = R(e.runtimePlayer), n = R(e.player), r = z(t), i = z(n), a = r ?? i ?? !1, o = B(ft(t), ft(n));
|
|
1082
|
-
if (o.kind !== "null") {
|
|
1083
|
-
if (o.kind === "unset") return a ? mt() : void 0;
|
|
1084
|
-
if ($e(o.value)) return o.value;
|
|
1085
|
-
if (e.debug) {
|
|
1086
|
-
let t = e.component ? `[${e.component}] ` : "";
|
|
1087
|
-
V.warn(`${t}Ignoring invalid instrumentation provider; expected InstrumentationProvider contract`);
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
//#endregion
|
|
1092
|
-
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/stages.js
|
|
1093
|
-
var gt = Object.freeze([
|
|
1094
|
-
"composed",
|
|
1095
|
-
"engine-ready",
|
|
1096
|
-
"interactive",
|
|
1097
|
-
"disposed"
|
|
1098
|
-
]);
|
|
1099
|
-
function _t(e) {
|
|
1100
|
-
return gt;
|
|
1101
|
-
}
|
|
1102
|
-
function H(e) {
|
|
1103
|
-
let t = gt.indexOf(e);
|
|
1104
|
-
if (t === -1) throw Error(`Unknown stage \`${e}\``);
|
|
1105
|
-
return t;
|
|
1106
|
-
}
|
|
1107
|
-
//#endregion
|
|
1108
|
-
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/stage-tracker.js
|
|
1109
|
-
var U = !1;
|
|
1110
|
-
function W(e) {
|
|
1111
|
-
U || (U = !0, typeof console < "u" && console.warn && console.warn(`[pie-stage-tracker] Unexpected ${e.reason} stage transition from \`${e.from ?? "<none>"}\` to \`${e.to}\`. Stage transitions are expected to be monotonic within a cohort; call \`reset()\` when \`(sectionId, attemptId)\` changes.`));
|
|
1112
|
-
}
|
|
1113
|
-
function vt(e) {
|
|
1114
|
-
let t = _t(e.sourceCeShape), n = new Set(t), r = e.now ?? (() => (/* @__PURE__ */ new Date()).toISOString()), i = e.onUnexpectedTransition ?? W, a = null, o = e.sectionId, s = e.attemptId, c = /* @__PURE__ */ new Set();
|
|
1115
|
-
function l(t, n) {
|
|
1116
|
-
e.emit({
|
|
1117
|
-
stage: t,
|
|
1118
|
-
status: n,
|
|
1119
|
-
runtimeId: e.runtimeId,
|
|
1120
|
-
sectionId: o,
|
|
1121
|
-
attemptId: s,
|
|
1122
|
-
timestamp: r(),
|
|
1123
|
-
sourceCe: e.sourceCe
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
function u(e) {
|
|
1127
|
-
let t = H(e), r = a === null ? 0 : H(a) + 1;
|
|
1128
|
-
for (let e = r; e < t; e += 1) {
|
|
1129
|
-
let t = gt[e];
|
|
1130
|
-
n.has(t) || c.has(t) || (c.add(t), l(t, "skipped"));
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
function d(e, t = "entered") {
|
|
1134
|
-
let r = H(e), o = a === null ? -1 : H(a);
|
|
1135
|
-
if (t === "entered") {
|
|
1136
|
-
if (c.has(e)) {
|
|
1137
|
-
i({
|
|
1138
|
-
from: a,
|
|
1139
|
-
to: e,
|
|
1140
|
-
reason: "duplicate"
|
|
1141
|
-
});
|
|
1142
|
-
return;
|
|
1143
|
-
}
|
|
1144
|
-
if (r < o) {
|
|
1145
|
-
i({
|
|
1146
|
-
from: a,
|
|
1147
|
-
to: e,
|
|
1148
|
-
reason: "backward"
|
|
1149
|
-
});
|
|
1150
|
-
return;
|
|
1151
|
-
}
|
|
1152
|
-
if (!n.has(e)) {
|
|
1153
|
-
if (c.has(e)) return;
|
|
1154
|
-
c.add(e), l(e, "skipped");
|
|
1155
|
-
return;
|
|
1156
|
-
}
|
|
1157
|
-
u(e), c.add(e), a = e, l(e, "entered");
|
|
1158
|
-
return;
|
|
1159
|
-
}
|
|
1160
|
-
if (t === "failed") {
|
|
1161
|
-
u(e), c.add(e), a = e, l(e, "failed");
|
|
1162
|
-
return;
|
|
1163
|
-
}
|
|
1164
|
-
c.has(e) || (c.add(e), l(e, "skipped"));
|
|
1165
|
-
}
|
|
1166
|
-
function f(e) {
|
|
1167
|
-
a = null, c.clear(), e && (o = e.sectionId, s = e.attemptId);
|
|
1168
|
-
}
|
|
1169
|
-
function p() {
|
|
1170
|
-
return a;
|
|
1171
|
-
}
|
|
1172
|
-
return {
|
|
1173
|
-
enter: d,
|
|
1174
|
-
reset: f,
|
|
1175
|
-
getCurrent: p
|
|
1176
|
-
};
|
|
1177
|
-
}
|
|
1178
|
-
[.../* @__PURE__ */ new Set([
|
|
1179
|
-
"complete",
|
|
1180
|
-
"component",
|
|
1181
|
-
"timestamp",
|
|
1182
|
-
"sourceRuntimeId"
|
|
1183
|
-
])], F("pie-overrides", () => I());
|
|
1184
|
-
//#endregion
|
|
1185
|
-
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/ui/first-focusable.js
|
|
1186
|
-
var G = [
|
|
1187
|
-
"a[href]",
|
|
1188
|
-
"button:not([disabled])",
|
|
1189
|
-
"input:not([disabled]):not([type='hidden'])",
|
|
1190
|
-
"select:not([disabled])",
|
|
1191
|
-
"textarea:not([disabled])",
|
|
1192
|
-
"[contenteditable]:not([contenteditable='false'])",
|
|
1193
|
-
"[tabindex]:not([tabindex='-1'])"
|
|
1194
|
-
].join(",");
|
|
1195
|
-
function K(e) {
|
|
1196
|
-
return !e.matches(G) || e.hasAttribute("disabled") || e.closest("[inert]") ? !1 : e.offsetParent !== null || e.getClientRects().length > 0;
|
|
1197
|
-
}
|
|
1198
|
-
//#endregion
|
|
1199
|
-
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/ui/focus-trap.js
|
|
1200
|
-
function yt(e) {
|
|
1201
|
-
return Array.from(e.querySelectorAll(G)).filter((e) => K(e));
|
|
1202
|
-
}
|
|
1203
|
-
function q(e, t) {
|
|
1204
|
-
try {
|
|
1205
|
-
if (t && e.contains(t)) {
|
|
1206
|
-
t.focus();
|
|
1207
|
-
return;
|
|
1208
|
-
}
|
|
1209
|
-
let n = yt(e);
|
|
1210
|
-
if (n.length > 0) {
|
|
1211
|
-
n[0].focus();
|
|
1212
|
-
return;
|
|
1213
|
-
}
|
|
1214
|
-
e.focus?.();
|
|
1215
|
-
} catch {}
|
|
1216
|
-
}
|
|
1217
|
-
function bt(e, t = {}) {
|
|
1218
|
-
let n = typeof document < "u" ? document.activeElement : null, r = t.wrap ?? !0, i = (n) => {
|
|
1219
|
-
if (n.key === "Escape") {
|
|
1220
|
-
t.onEscape?.();
|
|
1221
|
-
return;
|
|
1222
|
-
}
|
|
1223
|
-
if (n.key !== "Tab") return;
|
|
1224
|
-
let i = yt(e);
|
|
1225
|
-
if (!i.length) {
|
|
1226
|
-
if (!r) return;
|
|
1227
|
-
n.preventDefault(), e.focus?.();
|
|
1228
|
-
return;
|
|
1229
|
-
}
|
|
1230
|
-
let a = document.activeElement, o = i.indexOf(a || i[0]);
|
|
1231
|
-
if (n.shiftKey) {
|
|
1232
|
-
o <= 0 && (r ? (n.preventDefault(), i[i.length - 1].focus()) : t.onTabExit?.("backward", n));
|
|
1233
|
-
return;
|
|
1234
|
-
}
|
|
1235
|
-
o === i.length - 1 && (r ? (n.preventDefault(), i[0].focus()) : t.onTabExit?.("forward", n));
|
|
1236
|
-
};
|
|
1237
|
-
return queueMicrotask(() => q(e, t.initialFocus)), e.addEventListener("keydown", i), () => {
|
|
1238
|
-
e.removeEventListener("keydown", i);
|
|
1239
|
-
try {
|
|
1240
|
-
n?.focus?.();
|
|
1241
|
-
} catch {}
|
|
1242
|
-
};
|
|
1243
|
-
}
|
|
1244
|
-
//#endregion
|
|
1245
|
-
export { ht as a, N as c, vt as i, G as n, L as o, K as r, $e as s, bt as t };
|
|
1246
|
-
|
|
1247
|
-
//# sourceMappingURL=dist-DU1nH3y8.js.map
|