@searchstax-inc/searchstudio-ux-react 4.1.66 → 4.1.68
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/CHANGELOG.md +5 -0
- package/dist/@searchstax-inc/components/SearchstaxWrapper.d.ts +2 -2
- package/dist/@searchstax-inc/searchstudio-ux-react.cjs +11 -11
- package/dist/@searchstax-inc/searchstudio-ux-react.iife.js +7 -7
- package/dist/@searchstax-inc/searchstudio-ux-react.mjs +276 -263
- package/package.json +2 -2
|
@@ -50,13 +50,13 @@ function ri() {
|
|
|
50
50
|
if (L == null)
|
|
51
51
|
return null;
|
|
52
52
|
if (typeof L == "function")
|
|
53
|
-
return L.$$typeof ===
|
|
53
|
+
return L.$$typeof === H ? null : L.displayName || L.name || null;
|
|
54
54
|
if (typeof L == "string")
|
|
55
55
|
return L;
|
|
56
56
|
switch (L) {
|
|
57
57
|
case w:
|
|
58
58
|
return "Fragment";
|
|
59
|
-
case
|
|
59
|
+
case j:
|
|
60
60
|
return "Profiler";
|
|
61
61
|
case S:
|
|
62
62
|
return "StrictMode";
|
|
@@ -80,9 +80,9 @@ function ri() {
|
|
|
80
80
|
case O:
|
|
81
81
|
var A = L.render;
|
|
82
82
|
return L = L.displayName, L || (L = A.displayName || A.name || "", L = L !== "" ? "ForwardRef(" + L + ")" : "ForwardRef"), L;
|
|
83
|
-
case
|
|
83
|
+
case R:
|
|
84
84
|
return A = L.displayName || null, A !== null ? A : i(L.type) || "Memo";
|
|
85
|
-
case
|
|
85
|
+
case B:
|
|
86
86
|
A = L._payload, L = L._init;
|
|
87
87
|
try {
|
|
88
88
|
return i(L(A));
|
|
@@ -114,7 +114,7 @@ function ri() {
|
|
|
114
114
|
function a(L) {
|
|
115
115
|
if (L === w)
|
|
116
116
|
return "<>";
|
|
117
|
-
if (typeof L == "object" && L !== null && L.$$typeof ===
|
|
117
|
+
if (typeof L == "object" && L !== null && L.$$typeof === B)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
120
120
|
var A = i(L);
|
|
@@ -156,15 +156,15 @@ function ri() {
|
|
|
156
156
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
157
157
|
)), L = this.props.ref, L !== void 0 ? L : null;
|
|
158
158
|
}
|
|
159
|
-
function c(L, A, I, J,
|
|
160
|
-
var
|
|
159
|
+
function c(L, A, I, J, Q, Se) {
|
|
160
|
+
var q = I.ref;
|
|
161
161
|
return L = {
|
|
162
162
|
$$typeof: x,
|
|
163
163
|
type: L,
|
|
164
164
|
key: A,
|
|
165
165
|
props: I,
|
|
166
166
|
_owner: J
|
|
167
|
-
}, (
|
|
167
|
+
}, (q !== void 0 ? q : null) !== null ? Object.defineProperty(L, "ref", {
|
|
168
168
|
enumerable: !1,
|
|
169
169
|
get: l
|
|
170
170
|
}) : Object.defineProperty(L, "ref", { enumerable: !1, value: null }), L._store = {}, Object.defineProperty(L._store, "validated", {
|
|
@@ -181,7 +181,7 @@ function ri() {
|
|
|
181
181
|
configurable: !1,
|
|
182
182
|
enumerable: !1,
|
|
183
183
|
writable: !0,
|
|
184
|
-
value:
|
|
184
|
+
value: Q
|
|
185
185
|
}), Object.defineProperty(L, "_debugTask", {
|
|
186
186
|
configurable: !1,
|
|
187
187
|
enumerable: !1,
|
|
@@ -189,26 +189,26 @@ function ri() {
|
|
|
189
189
|
value: Se
|
|
190
190
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
191
191
|
}
|
|
192
|
-
function g(L, A, I, J,
|
|
193
|
-
var
|
|
194
|
-
if (
|
|
192
|
+
function g(L, A, I, J, Q, Se) {
|
|
193
|
+
var q = A.children;
|
|
194
|
+
if (q !== void 0)
|
|
195
195
|
if (J)
|
|
196
|
-
if (
|
|
197
|
-
for (J = 0; J <
|
|
198
|
-
f(
|
|
199
|
-
Object.freeze && Object.freeze(
|
|
196
|
+
if (Re(q)) {
|
|
197
|
+
for (J = 0; J < q.length; J++)
|
|
198
|
+
f(q[J]);
|
|
199
|
+
Object.freeze && Object.freeze(q);
|
|
200
200
|
} else
|
|
201
201
|
console.error(
|
|
202
202
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
203
203
|
);
|
|
204
204
|
else
|
|
205
|
-
f(
|
|
205
|
+
f(q);
|
|
206
206
|
if (Ce.call(A, "key")) {
|
|
207
|
-
|
|
207
|
+
q = i(L);
|
|
208
208
|
var re = Object.keys(A).filter(function(at) {
|
|
209
209
|
return at !== "key";
|
|
210
210
|
});
|
|
211
|
-
J = 0 < re.length ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}", st[
|
|
211
|
+
J = 0 < re.length ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}", st[q + J] || (re = 0 < re.length ? "{" + re.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
212
212
|
`A props object containing a "key" prop is being spread into JSX:
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s {...props} />
|
|
@@ -216,36 +216,36 @@ React keys must be passed directly to JSX without using spread:
|
|
|
216
216
|
let props = %s;
|
|
217
217
|
<%s key={someKey} {...props} />`,
|
|
218
218
|
J,
|
|
219
|
-
|
|
219
|
+
q,
|
|
220
220
|
re,
|
|
221
|
-
|
|
222
|
-
), st[
|
|
221
|
+
q
|
|
222
|
+
), st[q + J] = !0);
|
|
223
223
|
}
|
|
224
|
-
if (
|
|
224
|
+
if (q = null, I !== void 0 && (t(I), q = "" + I), o(A) && (t(A.key), q = "" + A.key), "key" in A) {
|
|
225
225
|
I = {};
|
|
226
226
|
for (var _e in A)
|
|
227
227
|
_e !== "key" && (I[_e] = A[_e]);
|
|
228
228
|
} else
|
|
229
229
|
I = A;
|
|
230
|
-
return
|
|
230
|
+
return q && n(
|
|
231
231
|
I,
|
|
232
232
|
typeof L == "function" ? L.displayName || L.name || "Unknown" : L
|
|
233
233
|
), c(
|
|
234
234
|
L,
|
|
235
|
-
|
|
235
|
+
q,
|
|
236
236
|
I,
|
|
237
237
|
s(),
|
|
238
|
-
|
|
238
|
+
Q,
|
|
239
239
|
Se
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
function f(L) {
|
|
243
|
-
p(L) ? L._store && (L._store.validated = 1) : typeof L == "object" && L !== null && L.$$typeof ===
|
|
243
|
+
p(L) ? L._store && (L._store.validated = 1) : typeof L == "object" && L !== null && L.$$typeof === B && (L._payload.status === "fulfilled" ? p(L._payload.value) && L._payload.value._store && (L._payload.value._store.validated = 1) : L._store && (L._store.validated = 1));
|
|
244
244
|
}
|
|
245
245
|
function p(L) {
|
|
246
246
|
return typeof L == "object" && L !== null && L.$$typeof === x;
|
|
247
247
|
}
|
|
248
|
-
var y = si, x = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"),
|
|
248
|
+
var y = si, x = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), P = Symbol.for("react.consumer"), k = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), de = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), ie = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ce = Object.prototype.hasOwnProperty, Re = Array.isArray, et = console.createTask ? console.createTask : function() {
|
|
249
249
|
return null;
|
|
250
250
|
};
|
|
251
251
|
y = {
|
|
@@ -298,8 +298,8 @@ function _(i, e = "") {
|
|
|
298
298
|
}, getRegex: () => new RegExp(t, e) };
|
|
299
299
|
return a;
|
|
300
300
|
}
|
|
301
|
-
var le = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (i) => new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}#`), htmlBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}<(?:[a-z].*>|!--)`, "i") }, li = /^(?:[ \t]*(?:\n|$))+/, ci = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, hi = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Mt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ui = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Is = /(?:[*+-]|\d{1,9}[.)])/, Ia = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
302
|
-
]`).replace("lheading",
|
|
301
|
+
var le = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (i) => new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}#`), htmlBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}<(?:[a-z].*>|!--)`, "i") }, li = /^(?:[ \t]*(?:\n|$))+/, ci = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, hi = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Mt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ui = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Is = /(?:[*+-]|\d{1,9}[.)])/, Ia = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ra = _(Ia).replace(/bull/g, Is).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), di = _(Ia).replace(/bull/g, Is).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Rs = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, gi = /^[^\n]+/, Ds = /(?!\s*\])(?:\\.|[^\[\]\\])+/, pi = _(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ds).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), mi = _(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Is).getRegex(), Ut = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ns = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, fi = _("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Ns).replace("tag", Ut).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Da = _(Rs).replace("hr", Mt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ut).getRegex(), Li = _(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Da).getRegex(), Os = { blockquote: Li, code: ci, def: pi, fences: hi, heading: ui, hr: Mt, html: fi, lheading: Ra, list: mi, newline: li, paragraph: Da, table: yt, text: gi }, oa = _("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Mt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ut).getRegex(), yi = { ...Os, lheading: di, table: oa, paragraph: _(Rs).replace("hr", Mt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", oa).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ut).getRegex() }, xi = { ...Os, html: _(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Ns).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: yt, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: _(Rs).replace("hr", Mt).replace("heading", ` *#{1,6} *[^
|
|
302
|
+
]`).replace("lheading", Ra).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, wi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, vi = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Na = /^( {2,}|\\)\n(?!\s*$)/, bi = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yt = /[\p{P}\p{S}]/u, Ps = /[\s\p{P}\p{S}]/u, Oa = /[^\s\p{P}\p{S}]/u, Mi = _(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ps).getRegex(), Pa = /(?!~)[\p{P}\p{S}]/u, Ci = /(?!~)[\s\p{P}\p{S}]/u, Si = /(?:[^\s\p{P}\p{S}]|~)/u, ki = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Fa = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ti = _(Fa, "u").replace(/punct/g, Yt).getRegex(), Ei = _(Fa, "u").replace(/punct/g, Pa).getRegex(), $a = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ji = _($a, "gu").replace(/notPunctSpace/g, Oa).replace(/punctSpace/g, Ps).replace(/punct/g, Yt).getRegex(), Ai = _($a, "gu").replace(/notPunctSpace/g, Si).replace(/punctSpace/g, Ci).replace(/punct/g, Pa).getRegex(), Ii = _("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Oa).replace(/punctSpace/g, Ps).replace(/punct/g, Yt).getRegex(), Ri = _(/\\(punct)/, "gu").replace(/punct/g, Yt).getRegex(), Di = _(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ni = _(Ns).replace("(?:-->|$)", "-->").getRegex(), Oi = _("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ni).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ht = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Pi = _(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Ht).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), za = _(/^!?\[(label)\]\[(ref)\]/).replace("label", Ht).replace("ref", Ds).getRegex(), _a = _(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ds).getRegex(), Fi = _("reflink|nolink(?!\\()", "g").replace("reflink", za).replace("nolink", _a).getRegex(), Fs = { _backpedal: yt, anyPunctuation: Ri, autolink: Di, blockSkip: ki, br: Na, code: vi, del: yt, emStrongLDelim: Ti, emStrongRDelimAst: ji, emStrongRDelimUnd: Ii, escape: wi, link: Pi, nolink: _a, punctuation: Mi, reflink: za, reflinkSearch: Fi, tag: Oi, text: bi, url: yt }, $i = { ...Fs, link: _(/^!?\[(label)\]\((.*?)\)/).replace("label", Ht).getRegex(), reflink: _(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Ht).getRegex() }, fs = { ...Fs, emStrongRDelimAst: Ai, emStrongLDelim: Ei, url: _(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, zi = { ...fs, br: _(Na).replace("{2,}", "*").getRegex(), text: _(fs.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Nt = { normal: Os, gfm: yi, pedantic: xi }, lt = { normal: Fs, gfm: fs, breaks: zi, pedantic: $i }, _i = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, la = (i) => _i[i];
|
|
303
303
|
function be(i, e) {
|
|
304
304
|
if (e) {
|
|
305
305
|
if (le.escapeTest.test(i))
|
|
@@ -385,7 +385,7 @@ function Vi(i, e, t) {
|
|
|
385
385
|
}).join(`
|
|
386
386
|
`);
|
|
387
387
|
}
|
|
388
|
-
var
|
|
388
|
+
var Qt = class {
|
|
389
389
|
constructor(i) {
|
|
390
390
|
h(this, "options"), h(this, "rules"), h(this, "lexer"), this.options = i || ze;
|
|
391
391
|
}
|
|
@@ -493,18 +493,18 @@ ${g}` : g;
|
|
|
493
493
|
`, 1)[0], y = !f.trim(), x = 0;
|
|
494
494
|
if (this.options.pedantic ? (x = 2, g = f.trimStart()) : y ? x = e[1].length + 1 : (x = e[2].search(this.rules.other.nonSpaceChar), x = x > 4 ? 1 : x, g = f.slice(x), x += e[1].length), y && this.rules.other.blankLine.test(p) && (c += p + `
|
|
495
495
|
`, i = i.substring(p.length + 1), l = !0), !l) {
|
|
496
|
-
const S = this.rules.other.nextBulletRegex(x),
|
|
496
|
+
const S = this.rules.other.nextBulletRegex(x), j = this.rules.other.hrRegex(x), P = this.rules.other.fencesBeginRegex(x), k = this.rules.other.headingBeginRegex(x), O = this.rules.other.htmlBeginRegex(x);
|
|
497
497
|
for (; i; ) {
|
|
498
498
|
const $ = i.split(`
|
|
499
499
|
`, 1)[0];
|
|
500
500
|
let T;
|
|
501
|
-
if (p = $, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), T = p) : T = p.replace(this.rules.other.tabCharGlobal, " "), P.test(p) || k.test(p) || O.test(p) || S.test(p) ||
|
|
501
|
+
if (p = $, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), T = p) : T = p.replace(this.rules.other.tabCharGlobal, " "), P.test(p) || k.test(p) || O.test(p) || S.test(p) || j.test(p))
|
|
502
502
|
break;
|
|
503
503
|
if (T.search(this.rules.other.nonSpaceChar) >= x || !p.trim())
|
|
504
504
|
g += `
|
|
505
505
|
` + T.slice(x);
|
|
506
506
|
else {
|
|
507
|
-
if (y || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || P.test(f) || k.test(f) ||
|
|
507
|
+
if (y || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || P.test(f) || k.test(f) || j.test(f))
|
|
508
508
|
break;
|
|
509
509
|
g += `
|
|
510
510
|
` + p;
|
|
@@ -710,12 +710,12 @@ ${g}` : g;
|
|
|
710
710
|
}
|
|
711
711
|
}, Ae = class Ls {
|
|
712
712
|
constructor(e) {
|
|
713
|
-
h(this, "tokens"), h(this, "options"), h(this, "state"), h(this, "tokenizer"), h(this, "inlineQueue"), this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ze, this.options.tokenizer = this.options.tokenizer || new
|
|
714
|
-
const t = { other: le, block:
|
|
715
|
-
this.options.pedantic ? (t.block =
|
|
713
|
+
h(this, "tokens"), h(this, "options"), h(this, "state"), h(this, "tokenizer"), h(this, "inlineQueue"), this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ze, this.options.tokenizer = this.options.tokenizer || new Qt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
|
|
714
|
+
const t = { other: le, block: Nt.normal, inline: lt.normal };
|
|
715
|
+
this.options.pedantic ? (t.block = Nt.pedantic, t.inline = lt.pedantic) : this.options.gfm && (t.block = Nt.gfm, this.options.breaks ? t.inline = lt.breaks : t.inline = lt.gfm), this.tokenizer.rules = t;
|
|
716
716
|
}
|
|
717
717
|
static get rules() {
|
|
718
|
-
return { block:
|
|
718
|
+
return { block: Nt, inline: lt };
|
|
719
719
|
}
|
|
720
720
|
static lex(e, t) {
|
|
721
721
|
return new Ls(t).lex(e);
|
|
@@ -918,7 +918,7 @@ ${g}` : g;
|
|
|
918
918
|
}
|
|
919
919
|
return t;
|
|
920
920
|
}
|
|
921
|
-
},
|
|
921
|
+
}, Bt = class {
|
|
922
922
|
constructor(i) {
|
|
923
923
|
h(this, "options"), h(this, "parser"), this.options = i || ze;
|
|
924
924
|
}
|
|
@@ -1072,7 +1072,7 @@ ${i}</tr>
|
|
|
1072
1072
|
}
|
|
1073
1073
|
}, Ie = class ys {
|
|
1074
1074
|
constructor(e) {
|
|
1075
|
-
h(this, "options"), h(this, "renderer"), h(this, "textRenderer"), this.options = e || ze, this.options.renderer = this.options.renderer || new
|
|
1075
|
+
h(this, "options"), h(this, "renderer"), h(this, "textRenderer"), this.options = e || ze, this.options.renderer = this.options.renderer || new Bt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $s();
|
|
1076
1076
|
}
|
|
1077
1077
|
static parse(e, t) {
|
|
1078
1078
|
return new ys(t).parse(e);
|
|
@@ -1231,9 +1231,9 @@ ${i}</tr>
|
|
|
1231
1231
|
provideParser() {
|
|
1232
1232
|
return this.block ? Ie.parse : Ie.parseInline;
|
|
1233
1233
|
}
|
|
1234
|
-
}, h(rs, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), rs),
|
|
1234
|
+
}, h(rs, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), rs), Hi = class {
|
|
1235
1235
|
constructor(...i) {
|
|
1236
|
-
h(this, "defaults", As()), h(this, "options", this.setOptions), h(this, "parse", this.parseMarkdown(!0)), h(this, "parseInline", this.parseMarkdown(!1)), h(this, "Parser", Ie), h(this, "Renderer",
|
|
1236
|
+
h(this, "defaults", As()), h(this, "options", this.setOptions), h(this, "parse", this.parseMarkdown(!0)), h(this, "parseInline", this.parseMarkdown(!1)), h(this, "Parser", Ie), h(this, "Renderer", Bt), h(this, "TextRenderer", $s), h(this, "Lexer", Ae), h(this, "Tokenizer", Qt), h(this, "Hooks", $t), this.use(...i);
|
|
1237
1237
|
}
|
|
1238
1238
|
walkTokens(i, e) {
|
|
1239
1239
|
var t, a;
|
|
@@ -1286,7 +1286,7 @@ ${i}</tr>
|
|
|
1286
1286
|
}
|
|
1287
1287
|
"childTokens" in s && s.childTokens && (e.childTokens[s.name] = s.childTokens);
|
|
1288
1288
|
}), a.extensions = e), t.renderer) {
|
|
1289
|
-
const s = this.defaults.renderer || new
|
|
1289
|
+
const s = this.defaults.renderer || new Bt(this.defaults);
|
|
1290
1290
|
for (const r in t.renderer) {
|
|
1291
1291
|
if (!(r in s))
|
|
1292
1292
|
throw new Error(`renderer '${r}' does not exist`);
|
|
@@ -1301,7 +1301,7 @@ ${i}</tr>
|
|
|
1301
1301
|
a.renderer = s;
|
|
1302
1302
|
}
|
|
1303
1303
|
if (t.tokenizer) {
|
|
1304
|
-
const s = this.defaults.tokenizer || new
|
|
1304
|
+
const s = this.defaults.tokenizer || new Qt(this.defaults);
|
|
1305
1305
|
for (const r in t.tokenizer) {
|
|
1306
1306
|
if (!(r in s))
|
|
1307
1307
|
throw new Error(`tokenizer '${r}' does not exist`);
|
|
@@ -1390,7 +1390,7 @@ Please report this to https://github.com/markedjs/marked.`, i) {
|
|
|
1390
1390
|
throw t;
|
|
1391
1391
|
};
|
|
1392
1392
|
}
|
|
1393
|
-
}, Fe = new
|
|
1393
|
+
}, Fe = new Hi();
|
|
1394
1394
|
function z(i, e) {
|
|
1395
1395
|
return Fe.parse(i, e);
|
|
1396
1396
|
}
|
|
@@ -1400,9 +1400,9 @@ z.options = z.setOptions = function(i) {
|
|
|
1400
1400
|
return Fe.use(...i), z.defaults = Fe.defaults, na(z.defaults), z;
|
|
1401
1401
|
}, z.walkTokens = function(i, e) {
|
|
1402
1402
|
return Fe.walkTokens(i, e);
|
|
1403
|
-
}, z.parseInline = Fe.parseInline, z.Parser = Ie, z.parser = Ie.parse, z.Renderer =
|
|
1404
|
-
/*! @license DOMPurify 3.3.
|
|
1405
|
-
const { entries: Wa, setPrototypeOf: da, isFrozen:
|
|
1403
|
+
}, z.parseInline = Fe.parseInline, z.Parser = Ie, z.parser = Ie.parse, z.Renderer = Bt, z.TextRenderer = $s, z.Lexer = Ae, z.lexer = Ae.lex, z.Tokenizer = Qt, z.Hooks = $t, z.parse = z, z.options, z.setOptions, z.use, z.walkTokens, z.parseInline, Ie.parse, Ae.lex;
|
|
1404
|
+
/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
|
|
1405
|
+
const { entries: Wa, setPrototypeOf: da, isFrozen: Qi, getPrototypeOf: Bi, getOwnPropertyDescriptor: qi } = Object;
|
|
1406
1406
|
let { freeze: ce, seal: me, create: zt } = Object, { apply: xs, construct: ws } = typeof Reflect < "u" && Reflect;
|
|
1407
1407
|
ce || (ce = function(i) {
|
|
1408
1408
|
return i;
|
|
@@ -1433,7 +1433,7 @@ function Ki(i) {
|
|
|
1433
1433
|
return ws(i, t);
|
|
1434
1434
|
};
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function D(i, e) {
|
|
1437
1437
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _t;
|
|
1438
1438
|
da && da(i, null);
|
|
1439
1439
|
let a = e.length;
|
|
@@ -1441,7 +1441,7 @@ function N(i, e) {
|
|
|
1441
1441
|
let s = e[a];
|
|
1442
1442
|
if (typeof s == "string") {
|
|
1443
1443
|
const r = t(s);
|
|
1444
|
-
r !== s && (
|
|
1444
|
+
r !== s && (Qi(e) || (e[a] = r), s = r);
|
|
1445
1445
|
}
|
|
1446
1446
|
i[s] = !0;
|
|
1447
1447
|
}
|
|
@@ -1460,22 +1460,22 @@ function Me(i) {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
function gt(i, e) {
|
|
1462
1462
|
for (; i !== null; ) {
|
|
1463
|
-
const a =
|
|
1463
|
+
const a = qi(i, e);
|
|
1464
1464
|
if (a) {
|
|
1465
1465
|
if (a.get)
|
|
1466
1466
|
return he(a.get);
|
|
1467
1467
|
if (typeof a.value == "function")
|
|
1468
1468
|
return he(a.value);
|
|
1469
1469
|
}
|
|
1470
|
-
i =
|
|
1470
|
+
i = Bi(i);
|
|
1471
1471
|
}
|
|
1472
1472
|
function t() {
|
|
1473
1473
|
return null;
|
|
1474
1474
|
}
|
|
1475
1475
|
return t;
|
|
1476
1476
|
}
|
|
1477
|
-
const pa = ce(["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"]), ls = ce(["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"]), cs = ce(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Xi = ce(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), hs = ce(["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"]), er = ce(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ma = ce(["#text"]), fa = ce(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "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", "slot"]), us = ce(["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"]), La = ce(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Pt = ce(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), tr = me(/\{\{[\w\W]*|[\w\W]*\}\}/gm), sr = me(/<%[\w\W]*|[\w\W]*%>/gm), ar = me(/\$\{[\w\W]*/gm), ir = me(/^data-[\-\w.\u00B7-\uFFFF]+$/), rr = me(/^aria-[\-\w]+$/), Va = me(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), nr = me(/^(?:\w+script|data):/i), or = me(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),
|
|
1478
|
-
var ya = Object.freeze({ __proto__: null, ARIA_ATTR: rr, ATTR_WHITESPACE: or, CUSTOM_ELEMENT: lr, DATA_ATTR: ir, DOCTYPE_NAME:
|
|
1477
|
+
const pa = ce(["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"]), ls = ce(["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"]), cs = ce(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Xi = ce(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), hs = ce(["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"]), er = ce(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ma = ce(["#text"]), fa = ce(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "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", "slot"]), us = ce(["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"]), La = ce(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Pt = ce(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), tr = me(/\{\{[\w\W]*|[\w\W]*\}\}/gm), sr = me(/<%[\w\W]*|[\w\W]*%>/gm), ar = me(/\$\{[\w\W]*/gm), ir = me(/^data-[\-\w.\u00B7-\uFFFF]+$/), rr = me(/^aria-[\-\w]+$/), Va = me(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), nr = me(/^(?:\w+script|data):/i), or = me(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ha = me(/^html$/i), lr = me(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
1478
|
+
var ya = Object.freeze({ __proto__: null, ARIA_ATTR: rr, ATTR_WHITESPACE: or, CUSTOM_ELEMENT: lr, DATA_ATTR: ir, DOCTYPE_NAME: Ha, ERB_EXPR: sr, IS_ALLOWED_URI: Va, IS_SCRIPT_OR_DATA: nr, MUSTACHE_EXPR: tr, TMPLIT_EXPR: ar });
|
|
1479
1479
|
const pt = { element: 1, attribute: 2, text: 3, cdataSection: 4, entityReference: 5, entityNode: 6, progressingInstruction: 7, comment: 8, document: 9, documentType: 10, documentFragment: 11, notation: 12 }, cr = function() {
|
|
1480
1480
|
return typeof window > "u" ? null : window;
|
|
1481
1481
|
}, hr = function(i, e) {
|
|
@@ -1497,49 +1497,49 @@ const pt = { element: 1, attribute: 2, text: 3, cdataSection: 4, entityReference
|
|
|
1497
1497
|
}, xa = function() {
|
|
1498
1498
|
return { afterSanitizeAttributes: [], afterSanitizeElements: [], afterSanitizeShadowDOM: [], beforeSanitizeAttributes: [], beforeSanitizeElements: [], beforeSanitizeShadowDOM: [], uponSanitizeAttribute: [], uponSanitizeElement: [], uponSanitizeShadowNode: [] };
|
|
1499
1499
|
};
|
|
1500
|
-
function
|
|
1500
|
+
function Qa() {
|
|
1501
1501
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : cr();
|
|
1502
|
-
const e = (d) =>
|
|
1503
|
-
if (e.version = "3.3.
|
|
1502
|
+
const e = (d) => Qa(d);
|
|
1503
|
+
if (e.version = "3.3.3", e.removed = [], !i || !i.document || i.document.nodeType !== pt.document || !i.Element)
|
|
1504
1504
|
return e.isSupported = !1, e;
|
|
1505
1505
|
let { document: t } = i;
|
|
1506
|
-
const a = t, s = a.currentScript, { DocumentFragment: r, HTMLTemplateElement: o, Node: n, Element: l, NodeFilter: c, NamedNodeMap: g = i.NamedNodeMap || i.MozNamedAttrMap, HTMLFormElement: f, DOMParser: p, trustedTypes: y } = i, x = l.prototype, m = gt(x, "cloneNode"), w = gt(x, "remove"), S = gt(x, "nextSibling"),
|
|
1506
|
+
const a = t, s = a.currentScript, { DocumentFragment: r, HTMLTemplateElement: o, Node: n, Element: l, NodeFilter: c, NamedNodeMap: g = i.NamedNodeMap || i.MozNamedAttrMap, HTMLFormElement: f, DOMParser: p, trustedTypes: y } = i, x = l.prototype, m = gt(x, "cloneNode"), w = gt(x, "remove"), S = gt(x, "nextSibling"), j = gt(x, "childNodes"), P = gt(x, "parentNode");
|
|
1507
1507
|
if (typeof o == "function") {
|
|
1508
1508
|
const d = t.createElement("template");
|
|
1509
1509
|
d.content && d.content.ownerDocument && (t = d.content.ownerDocument);
|
|
1510
1510
|
}
|
|
1511
1511
|
let k, O = "";
|
|
1512
|
-
const { implementation: $, createNodeIterator: T, createDocumentFragment:
|
|
1513
|
-
let
|
|
1512
|
+
const { implementation: $, createNodeIterator: T, createDocumentFragment: R, getElementsByTagName: B } = t, { importNode: de } = a;
|
|
1513
|
+
let H = xa();
|
|
1514
1514
|
e.isSupported = typeof Wa == "function" && typeof P == "function" && $ && $.createHTMLDocument !== void 0;
|
|
1515
|
-
const { MUSTACHE_EXPR: ie, ERB_EXPR: Ce, TMPLIT_EXPR:
|
|
1515
|
+
const { MUSTACHE_EXPR: ie, ERB_EXPR: Ce, TMPLIT_EXPR: Re, DATA_ATTR: et, ARIA_ATTR: Ct, IS_SCRIPT_OR_DATA: St, ATTR_WHITESPACE: tt, CUSTOM_ELEMENT: kt } = ya;
|
|
1516
1516
|
let { IS_ALLOWED_URI: st } = ya, L = null;
|
|
1517
|
-
const A =
|
|
1517
|
+
const A = D({}, [...pa, ...ls, ...cs, ...hs, ...ma]);
|
|
1518
1518
|
let I = null;
|
|
1519
|
-
const J =
|
|
1520
|
-
let
|
|
1519
|
+
const J = D({}, [...fa, ...us, ...La, ...Pt]);
|
|
1520
|
+
let Q = Object.seal(zt(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), Se = null, q = null;
|
|
1521
1521
|
const re = Object.seal(zt(null, { tagCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeCheck: { writable: !0, configurable: !1, enumerable: !0, value: null } }));
|
|
1522
|
-
let _e = !0, at = !0, _s = !1, Ws = !0, We = !1, Tt = !0,
|
|
1522
|
+
let _e = !0, at = !0, _s = !1, Ws = !0, We = !1, Tt = !0, Ne = !1, Jt = !1, Gt = !1, Ve = !1, Et = !1, jt = !1, Vs = !0, Hs = !1;
|
|
1523
1523
|
const Ua = "user-content-";
|
|
1524
|
-
let Kt = !0, it = !1,
|
|
1525
|
-
const Zt =
|
|
1526
|
-
let
|
|
1527
|
-
const
|
|
1524
|
+
let Kt = !0, it = !1, He = {}, ve = null;
|
|
1525
|
+
const Zt = D({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
1526
|
+
let Qs = null;
|
|
1527
|
+
const Bs = D({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1528
1528
|
let Xt = null;
|
|
1529
|
-
const
|
|
1530
|
-
let
|
|
1531
|
-
const Ya =
|
|
1532
|
-
let
|
|
1533
|
-
const Ja =
|
|
1529
|
+
const qs = D({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), At = "http://www.w3.org/1998/Math/MathML", It = "http://www.w3.org/2000/svg", ke = "http://www.w3.org/1999/xhtml";
|
|
1530
|
+
let Qe = ke, es = !1, ts = null;
|
|
1531
|
+
const Ya = D({}, [At, It, ke], ns);
|
|
1532
|
+
let Rt = D({}, ["mi", "mo", "mn", "ms", "mtext"]), Dt = D({}, ["annotation-xml"]);
|
|
1533
|
+
const Ja = D({}, ["title", "style", "font", "a", "script"]);
|
|
1534
1534
|
let rt = null;
|
|
1535
1535
|
const Ga = ["application/xhtml+xml", "text/html"], Ka = "text/html";
|
|
1536
|
-
let Z = null,
|
|
1536
|
+
let Z = null, Be = null;
|
|
1537
1537
|
const Za = t.createElement("form"), Us = function(d) {
|
|
1538
1538
|
return d instanceof RegExp || d instanceof Function;
|
|
1539
1539
|
}, ss = function() {
|
|
1540
1540
|
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1541
|
-
if (!(
|
|
1542
|
-
if ((!d || typeof d != "object") && (d = {}), d = Me(d), rt = Ga.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? Ka : d.PARSER_MEDIA_TYPE, Z = rt === "application/xhtml+xml" ? ns : _t, L = ge(d, "ALLOWED_TAGS") ?
|
|
1541
|
+
if (!(Be && Be === d)) {
|
|
1542
|
+
if ((!d || typeof d != "object") && (d = {}), d = Me(d), rt = Ga.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? Ka : d.PARSER_MEDIA_TYPE, Z = rt === "application/xhtml+xml" ? ns : _t, L = ge(d, "ALLOWED_TAGS") ? D({}, d.ALLOWED_TAGS, Z) : A, I = ge(d, "ALLOWED_ATTR") ? D({}, d.ALLOWED_ATTR, Z) : J, ts = ge(d, "ALLOWED_NAMESPACES") ? D({}, d.ALLOWED_NAMESPACES, ns) : Ya, Xt = ge(d, "ADD_URI_SAFE_ATTR") ? D(Me(qs), d.ADD_URI_SAFE_ATTR, Z) : qs, Qs = ge(d, "ADD_DATA_URI_TAGS") ? D(Me(Bs), d.ADD_DATA_URI_TAGS, Z) : Bs, ve = ge(d, "FORBID_CONTENTS") ? D({}, d.FORBID_CONTENTS, Z) : Zt, Se = ge(d, "FORBID_TAGS") ? D({}, d.FORBID_TAGS, Z) : Me({}), q = ge(d, "FORBID_ATTR") ? D({}, d.FORBID_ATTR, Z) : Me({}), He = ge(d, "USE_PROFILES") ? d.USE_PROFILES : !1, _e = d.ALLOW_ARIA_ATTR !== !1, at = d.ALLOW_DATA_ATTR !== !1, _s = d.ALLOW_UNKNOWN_PROTOCOLS || !1, Ws = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, We = d.SAFE_FOR_TEMPLATES || !1, Tt = d.SAFE_FOR_XML !== !1, Ne = d.WHOLE_DOCUMENT || !1, Ve = d.RETURN_DOM || !1, Et = d.RETURN_DOM_FRAGMENT || !1, jt = d.RETURN_TRUSTED_TYPE || !1, Gt = d.FORCE_BODY || !1, Vs = d.SANITIZE_DOM !== !1, Hs = d.SANITIZE_NAMED_PROPS || !1, Kt = d.KEEP_CONTENT !== !1, it = d.IN_PLACE || !1, st = d.ALLOWED_URI_REGEXP || Va, Qe = d.NAMESPACE || ke, Rt = d.MATHML_TEXT_INTEGRATION_POINTS || Rt, Dt = d.HTML_INTEGRATION_POINTS || Dt, Q = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && Us(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && Us(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), We && (at = !1), Et && (Ve = !0), He && (L = D({}, ma), I = zt(null), He.html === !0 && (D(L, pa), D(I, fa)), He.svg === !0 && (D(L, ls), D(I, us), D(I, Pt)), He.svgFilters === !0 && (D(L, cs), D(I, us), D(I, Pt)), He.mathMl === !0 && (D(L, hs), D(I, La), D(I, Pt))), ge(d, "ADD_TAGS") || (re.tagCheck = null), ge(d, "ADD_ATTR") || (re.attributeCheck = null), d.ADD_TAGS && (typeof d.ADD_TAGS == "function" ? re.tagCheck = d.ADD_TAGS : (L === A && (L = Me(L)), D(L, d.ADD_TAGS, Z))), d.ADD_ATTR && (typeof d.ADD_ATTR == "function" ? re.attributeCheck = d.ADD_ATTR : (I === J && (I = Me(I)), D(I, d.ADD_ATTR, Z))), d.ADD_URI_SAFE_ATTR && D(Xt, d.ADD_URI_SAFE_ATTR, Z), d.FORBID_CONTENTS && (ve === Zt && (ve = Me(ve)), D(ve, d.FORBID_CONTENTS, Z)), d.ADD_FORBID_CONTENTS && (ve === Zt && (ve = Me(ve)), D(ve, d.ADD_FORBID_CONTENTS, Z)), Kt && (L["#text"] = !0), Ne && D(L, ["html", "head", "body"]), L.table && (D(L, ["tbody"]), delete Se.tbody), d.TRUSTED_TYPES_POLICY) {
|
|
1543
1543
|
if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1544
1544
|
throw dt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1545
1545
|
if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -1547,13 +1547,13 @@ function qa() {
|
|
|
1547
1547
|
k = d.TRUSTED_TYPES_POLICY, O = k.createHTML("");
|
|
1548
1548
|
} else
|
|
1549
1549
|
k === void 0 && (k = hr(y, s)), k !== null && typeof O == "string" && (O = k.createHTML(""));
|
|
1550
|
-
ce && ce(d),
|
|
1550
|
+
ce && ce(d), Be = d;
|
|
1551
1551
|
}
|
|
1552
|
-
}, Ys =
|
|
1552
|
+
}, Ys = D({}, [...ls, ...cs, ...Xi]), Js = D({}, [...hs, ...er]), Xa = function(d) {
|
|
1553
1553
|
let M = P(d);
|
|
1554
|
-
(!M || !M.tagName) && (M = { namespaceURI:
|
|
1554
|
+
(!M || !M.tagName) && (M = { namespaceURI: Qe, tagName: "template" });
|
|
1555
1555
|
const v = _t(d.tagName), W = _t(M.tagName);
|
|
1556
|
-
return ts[d.namespaceURI] ? d.namespaceURI === It ? M.namespaceURI === ke ? v === "svg" : M.namespaceURI === At ? v === "svg" && (W === "annotation-xml" ||
|
|
1556
|
+
return ts[d.namespaceURI] ? d.namespaceURI === It ? M.namespaceURI === ke ? v === "svg" : M.namespaceURI === At ? v === "svg" && (W === "annotation-xml" || Rt[W]) : !!Ys[v] : d.namespaceURI === At ? M.namespaceURI === ke ? v === "math" : M.namespaceURI === It ? v === "math" && Dt[W] : !!Js[v] : d.namespaceURI === ke ? M.namespaceURI === It && !Dt[W] || M.namespaceURI === At && !Rt[W] ? !1 : !Js[v] && (Ja[v] || !Ys[v]) : !!(rt === "application/xhtml+xml" && ts[d.namespaceURI]) : !1;
|
|
1557
1557
|
}, Oe = function(d) {
|
|
1558
1558
|
ht(e.removed, { element: d });
|
|
1559
1559
|
try {
|
|
@@ -1568,7 +1568,7 @@ function qa() {
|
|
|
1568
1568
|
ht(e.removed, { attribute: null, from: M });
|
|
1569
1569
|
}
|
|
1570
1570
|
if (M.removeAttribute(d), d === "is")
|
|
1571
|
-
if (Ve ||
|
|
1571
|
+
if (Ve || Et)
|
|
1572
1572
|
try {
|
|
1573
1573
|
Oe(M);
|
|
1574
1574
|
} catch {
|
|
@@ -1586,22 +1586,22 @@ function qa() {
|
|
|
1586
1586
|
const Y = os(d, /^[\r\n\t ]+/);
|
|
1587
1587
|
v = Y && Y[0];
|
|
1588
1588
|
}
|
|
1589
|
-
rt === "application/xhtml+xml" &&
|
|
1589
|
+
rt === "application/xhtml+xml" && Qe === ke && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
|
|
1590
1590
|
const W = k ? k.createHTML(d) : d;
|
|
1591
|
-
if (
|
|
1591
|
+
if (Qe === ke)
|
|
1592
1592
|
try {
|
|
1593
1593
|
M = new p().parseFromString(W, rt);
|
|
1594
1594
|
} catch {
|
|
1595
1595
|
}
|
|
1596
1596
|
if (!M || !M.documentElement) {
|
|
1597
|
-
M = $.createDocument(
|
|
1597
|
+
M = $.createDocument(Qe, "template", null);
|
|
1598
1598
|
try {
|
|
1599
1599
|
M.documentElement.innerHTML = es ? O : W;
|
|
1600
1600
|
} catch {
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
const se = M.body || M.documentElement;
|
|
1604
|
-
return d && v && se.insertBefore(t.createTextNode(v), se.childNodes[0] || null),
|
|
1604
|
+
return d && v && se.insertBefore(t.createTextNode(v), se.childNodes[0] || null), Qe === ke ? B.call(M, Ne ? "html" : "body")[0] : Ne ? M.documentElement : se;
|
|
1605
1605
|
}, Ks = function(d) {
|
|
1606
1606
|
return T.call(d.ownerDocument || d, d, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
1607
1607
|
}, as = function(d) {
|
|
@@ -1611,58 +1611,58 @@ function qa() {
|
|
|
1611
1611
|
};
|
|
1612
1612
|
function Te(d, M, v) {
|
|
1613
1613
|
Ot(d, (W) => {
|
|
1614
|
-
W.call(e, M, v,
|
|
1614
|
+
W.call(e, M, v, Be);
|
|
1615
1615
|
});
|
|
1616
1616
|
}
|
|
1617
1617
|
const Xs = function(d) {
|
|
1618
1618
|
let M = null;
|
|
1619
|
-
if (Te(
|
|
1619
|
+
if (Te(H.beforeSanitizeElements, d, null), as(d))
|
|
1620
1620
|
return Oe(d), !0;
|
|
1621
1621
|
const v = Z(d.nodeName);
|
|
1622
|
-
if (Te(
|
|
1622
|
+
if (Te(H.uponSanitizeElement, d, { tagName: v, allowedTags: L }), Tt && d.hasChildNodes() && !Zs(d.firstElementChild) && ne(/<[/\w!]/g, d.innerHTML) && ne(/<[/\w!]/g, d.textContent) || d.nodeType === pt.progressingInstruction || Tt && d.nodeType === pt.comment && ne(/<[/\w]/g, d.data))
|
|
1623
1623
|
return Oe(d), !0;
|
|
1624
1624
|
if (!(re.tagCheck instanceof Function && re.tagCheck(v)) && (!L[v] || Se[v])) {
|
|
1625
|
-
if (!Se[v] && ta(v) && (
|
|
1625
|
+
if (!Se[v] && ta(v) && (Q.tagNameCheck instanceof RegExp && ne(Q.tagNameCheck, v) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(v)))
|
|
1626
1626
|
return !1;
|
|
1627
1627
|
if (Kt && !ve[v]) {
|
|
1628
|
-
const W = P(d) || d.parentNode, se =
|
|
1628
|
+
const W = P(d) || d.parentNode, se = j(d) || d.childNodes;
|
|
1629
1629
|
if (se && W) {
|
|
1630
1630
|
const Y = se.length;
|
|
1631
|
-
for (let
|
|
1632
|
-
const fe = m(se[
|
|
1631
|
+
for (let Ee = Y - 1; Ee >= 0; --Ee) {
|
|
1632
|
+
const fe = m(se[Ee], !0);
|
|
1633
1633
|
fe.__removalCount = (d.__removalCount || 0) + 1, W.insertBefore(fe, S(d));
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
1637
|
return Oe(d), !0;
|
|
1638
1638
|
}
|
|
1639
|
-
return d instanceof l && !Xa(d) || (v === "noscript" || v === "noembed" || v === "noframes") && ne(/<\/no(script|embed|frames)/i, d.innerHTML) ? (Oe(d), !0) : (We && d.nodeType === pt.text && (M = d.textContent, Ot([ie, Ce,
|
|
1639
|
+
return d instanceof l && !Xa(d) || (v === "noscript" || v === "noembed" || v === "noframes") && ne(/<\/no(script|embed|frames)/i, d.innerHTML) ? (Oe(d), !0) : (We && d.nodeType === pt.text && (M = d.textContent, Ot([ie, Ce, Re], (W) => {
|
|
1640
1640
|
M = ut(M, W, " ");
|
|
1641
|
-
}), d.textContent !== M && (ht(e.removed, { element: d.cloneNode() }), d.textContent = M)), Te(
|
|
1641
|
+
}), d.textContent !== M && (ht(e.removed, { element: d.cloneNode() }), d.textContent = M)), Te(H.afterSanitizeElements, d, null), !1);
|
|
1642
1642
|
}, ea = function(d, M, v) {
|
|
1643
|
-
if (
|
|
1643
|
+
if (q[M] || Vs && (M === "id" || M === "name") && (v in t || v in Za))
|
|
1644
1644
|
return !1;
|
|
1645
|
-
if (!(at && !
|
|
1646
|
-
if (!I[M] ||
|
|
1647
|
-
if (!(ta(d) && (
|
|
1645
|
+
if (!(at && !q[M] && ne(et, M)) && !(_e && ne(Ct, M)) && !(re.attributeCheck instanceof Function && re.attributeCheck(M, d))) {
|
|
1646
|
+
if (!I[M] || q[M]) {
|
|
1647
|
+
if (!(ta(d) && (Q.tagNameCheck instanceof RegExp && ne(Q.tagNameCheck, d) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(d)) && (Q.attributeNameCheck instanceof RegExp && ne(Q.attributeNameCheck, M) || Q.attributeNameCheck instanceof Function && Q.attributeNameCheck(M, d)) || M === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && ne(Q.tagNameCheck, v) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(v))))
|
|
1648
1648
|
return !1;
|
|
1649
|
-
} else if (!Xt[M] && !ne(st, ut(v, tt, "")) && !((M === "src" || M === "xlink:href" || M === "href") && d !== "script" && Ji(v, "data:") === 0 &&
|
|
1649
|
+
} else if (!Xt[M] && !ne(st, ut(v, tt, "")) && !((M === "src" || M === "xlink:href" || M === "href") && d !== "script" && Ji(v, "data:") === 0 && Qs[d]) && !(_s && !ne(St, ut(v, tt, ""))) && v)
|
|
1650
1650
|
return !1;
|
|
1651
1651
|
}
|
|
1652
1652
|
return !0;
|
|
1653
1653
|
}, ta = function(d) {
|
|
1654
1654
|
return d !== "annotation-xml" && os(d, kt);
|
|
1655
1655
|
}, sa = function(d) {
|
|
1656
|
-
Te(
|
|
1656
|
+
Te(H.beforeSanitizeAttributes, d, null);
|
|
1657
1657
|
const { attributes: M } = d;
|
|
1658
1658
|
if (!M || as(d))
|
|
1659
1659
|
return;
|
|
1660
1660
|
const v = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: I, forceKeepAttr: void 0 };
|
|
1661
1661
|
let W = M.length;
|
|
1662
1662
|
for (; W--; ) {
|
|
1663
|
-
const se = M[W], { name: Y, namespaceURI:
|
|
1663
|
+
const se = M[W], { name: Y, namespaceURI: Ee, value: fe } = se, Le = Z(Y), is = fe;
|
|
1664
1664
|
let ae = Y === "value" ? is : Gi(is);
|
|
1665
|
-
if (v.attrName = Le, v.attrValue = ae, v.keepAttr = !0, v.forceKeepAttr = void 0, Te(
|
|
1665
|
+
if (v.attrName = Le, v.attrValue = ae, v.keepAttr = !0, v.forceKeepAttr = void 0, Te(H.uponSanitizeAttribute, d, v), ae = v.attrValue, Hs && (Le === "id" || Le === "name") && (Pe(Y, d), ae = Ua + ae), Tt && ne(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, ae)) {
|
|
1666
1666
|
Pe(Y, d);
|
|
1667
1667
|
continue;
|
|
1668
1668
|
}
|
|
@@ -1680,7 +1680,7 @@ function qa() {
|
|
|
1680
1680
|
Pe(Y, d);
|
|
1681
1681
|
continue;
|
|
1682
1682
|
}
|
|
1683
|
-
We && Ot([ie, Ce,
|
|
1683
|
+
We && Ot([ie, Ce, Re], (ti) => {
|
|
1684
1684
|
ae = ut(ae, ti, " ");
|
|
1685
1685
|
});
|
|
1686
1686
|
const aa = Z(d.nodeName);
|
|
@@ -1688,7 +1688,7 @@ function qa() {
|
|
|
1688
1688
|
Pe(Y, d);
|
|
1689
1689
|
continue;
|
|
1690
1690
|
}
|
|
1691
|
-
if (k && typeof y == "object" && typeof y.getAttributeType == "function" && !
|
|
1691
|
+
if (k && typeof y == "object" && typeof y.getAttributeType == "function" && !Ee)
|
|
1692
1692
|
switch (y.getAttributeType(aa, Le)) {
|
|
1693
1693
|
case "TrustedHTML": {
|
|
1694
1694
|
ae = k.createHTML(ae);
|
|
@@ -1701,18 +1701,18 @@ function qa() {
|
|
|
1701
1701
|
}
|
|
1702
1702
|
if (ae !== is)
|
|
1703
1703
|
try {
|
|
1704
|
-
|
|
1704
|
+
Ee ? d.setAttributeNS(Ee, Y, ae) : d.setAttribute(Y, ae), as(d) ? Oe(d) : ga(e.removed);
|
|
1705
1705
|
} catch {
|
|
1706
1706
|
Pe(Y, d);
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
|
-
Te(
|
|
1709
|
+
Te(H.afterSanitizeAttributes, d, null);
|
|
1710
1710
|
}, ei = function d(M) {
|
|
1711
1711
|
let v = null;
|
|
1712
1712
|
const W = Ks(M);
|
|
1713
|
-
for (Te(
|
|
1714
|
-
Te(
|
|
1715
|
-
Te(
|
|
1713
|
+
for (Te(H.beforeSanitizeShadowDOM, M, null); v = W.nextNode(); )
|
|
1714
|
+
Te(H.uponSanitizeShadowNode, v, null), Xs(v), sa(v), v.content instanceof r && d(v.content);
|
|
1715
|
+
Te(H.afterSanitizeShadowDOM, M, null);
|
|
1716
1716
|
};
|
|
1717
1717
|
return e.sanitize = function(d) {
|
|
1718
1718
|
let M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, v = null, W = null, se = null, Y = null;
|
|
@@ -1733,54 +1733,54 @@ function qa() {
|
|
|
1733
1733
|
} else if (d instanceof n)
|
|
1734
1734
|
v = Gs("<!---->"), W = v.ownerDocument.importNode(d, !0), W.nodeType === pt.element && W.nodeName === "BODY" || W.nodeName === "HTML" ? v = W : v.appendChild(W);
|
|
1735
1735
|
else {
|
|
1736
|
-
if (!Ve && !We && !
|
|
1737
|
-
return k &&
|
|
1736
|
+
if (!Ve && !We && !Ne && d.indexOf("<") === -1)
|
|
1737
|
+
return k && jt ? k.createHTML(d) : d;
|
|
1738
1738
|
if (v = Gs(d), !v)
|
|
1739
|
-
return Ve ? null :
|
|
1739
|
+
return Ve ? null : jt ? O : "";
|
|
1740
1740
|
}
|
|
1741
1741
|
v && Gt && Oe(v.firstChild);
|
|
1742
|
-
const
|
|
1743
|
-
for (; se =
|
|
1742
|
+
const Ee = Ks(it ? d : v);
|
|
1743
|
+
for (; se = Ee.nextNode(); )
|
|
1744
1744
|
Xs(se), sa(se), se.content instanceof r && ei(se.content);
|
|
1745
1745
|
if (it)
|
|
1746
1746
|
return d;
|
|
1747
1747
|
if (Ve) {
|
|
1748
|
-
if (
|
|
1749
|
-
for (Y =
|
|
1748
|
+
if (Et)
|
|
1749
|
+
for (Y = R.call(v.ownerDocument); v.firstChild; )
|
|
1750
1750
|
Y.appendChild(v.firstChild);
|
|
1751
1751
|
else
|
|
1752
1752
|
Y = v;
|
|
1753
1753
|
return (I.shadowroot || I.shadowrootmode) && (Y = de.call(a, Y, !0)), Y;
|
|
1754
1754
|
}
|
|
1755
|
-
let fe =
|
|
1756
|
-
return
|
|
1757
|
-
` + fe), We && Ot([ie, Ce,
|
|
1755
|
+
let fe = Ne ? v.outerHTML : v.innerHTML;
|
|
1756
|
+
return Ne && L["!doctype"] && v.ownerDocument && v.ownerDocument.doctype && v.ownerDocument.doctype.name && ne(Ha, v.ownerDocument.doctype.name) && (fe = "<!DOCTYPE " + v.ownerDocument.doctype.name + `>
|
|
1757
|
+
` + fe), We && Ot([ie, Ce, Re], (Le) => {
|
|
1758
1758
|
fe = ut(fe, Le, " ");
|
|
1759
|
-
}), k &&
|
|
1759
|
+
}), k && jt ? k.createHTML(fe) : fe;
|
|
1760
1760
|
}, e.setConfig = function() {
|
|
1761
1761
|
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1762
1762
|
ss(d), Jt = !0;
|
|
1763
1763
|
}, e.clearConfig = function() {
|
|
1764
|
-
|
|
1764
|
+
Be = null, Jt = !1;
|
|
1765
1765
|
}, e.isValidAttribute = function(d, M, v) {
|
|
1766
|
-
|
|
1766
|
+
Be || ss({});
|
|
1767
1767
|
const W = Z(d), se = Z(M);
|
|
1768
1768
|
return ea(W, se, v);
|
|
1769
1769
|
}, e.addHook = function(d, M) {
|
|
1770
|
-
typeof M == "function" && ht(
|
|
1770
|
+
typeof M == "function" && ht(H[d], M);
|
|
1771
1771
|
}, e.removeHook = function(d, M) {
|
|
1772
1772
|
if (M !== void 0) {
|
|
1773
|
-
const v = Ui(
|
|
1774
|
-
return v === -1 ? void 0 : Yi(
|
|
1773
|
+
const v = Ui(H[d], M);
|
|
1774
|
+
return v === -1 ? void 0 : Yi(H[d], v, 1)[0];
|
|
1775
1775
|
}
|
|
1776
|
-
return ga(
|
|
1776
|
+
return ga(H[d]);
|
|
1777
1777
|
}, e.removeHooks = function(d) {
|
|
1778
|
-
|
|
1778
|
+
H[d] = [];
|
|
1779
1779
|
}, e.removeAllHooks = function() {
|
|
1780
|
-
|
|
1780
|
+
H = xa();
|
|
1781
1781
|
}, e;
|
|
1782
1782
|
}
|
|
1783
|
-
var wa =
|
|
1783
|
+
var wa = Qa();
|
|
1784
1784
|
class ur {
|
|
1785
1785
|
constructor(e) {
|
|
1786
1786
|
h(this, "dataLayer"), this.dataLayer = e;
|
|
@@ -1953,7 +1953,7 @@ class pe {
|
|
|
1953
1953
|
return e != null && typeof e == "object";
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
|
-
class
|
|
1956
|
+
class E {
|
|
1957
1957
|
constructor(e) {
|
|
1958
1958
|
h(this, "value"), h(this, "observers", {}), this.value = e, this.observers = {};
|
|
1959
1959
|
}
|
|
@@ -2047,7 +2047,7 @@ class te {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
class dr {
|
|
2049
2049
|
constructor(e, t) {
|
|
2050
|
-
h(this, "$searchTermChange", new
|
|
2050
|
+
h(this, "$searchTermChange", new E("")), h(this, "$searchLocationChange", new E("")), h(this, "$searchLocationCoordinatesDecoded", new E("")), h(this, "$searchLatChange", new E("")), h(this, "$searchLongChange", new E("")), h(this, "$searchRadiusChange", new E(void 0)), h(this, "$loadingChange", new E(!1)), h(this, "$locationError", new E(!1)), h(this, "$searchResults", new E(null)), h(this, "$searchResultsMetadata", new E(null)), h(this, "$searchAutosuggest", new E(null)), h(this, "$searchFacets", new E(null)), h(this, "$searchFacetsCached", new E(null)), h(this, "$searchFacetsCachedTabs", new E(null)), h(this, "$searchstaxConfig", new E(null)), h(this, "$autosuggestResults", new E(null)), h(this, "$itemsPerPage", new E(void 0)), h(this, "$searchObject", new E({ query: "", itemsPerPage: void 0, page: 99999999, order: "", facets: [], additionalProps: [], location: { term: void 0, radius: void 0, lat: void 0, lon: void 0 }, model: "" })), h(this, "$searchRelatedSearches", new E(null)), h(this, "$searchInputConfig", new E(null)), h(this, "$searchLocationConfig", new E(null)), h(this, "$searchExternalPromotions", new E(null)), h(this, "$facetsTemplateData", new E(null)), h(this, "$selectedFacetsTemplateData", new E(null)), h(this, "$paginationData", new E(null)), h(this, "$answerData", new E(null)), h(this, "$searchFeedbackData", new E(null)), h(this, "$inputWidgetTemplateData", new E(null)), h(this, "$locationWidgetTemplateData", new E(null)), h(this, "$searchSortingData", new E(null)), h(this, "$searchRelatedSearchesData", new E(null)), h(this, "$searchExternalPromotionsData", new E(null)), h(this, "$cookiesDisabled", new E(null)), h(this, "$locationDecodingLoading", new E(!1)), h(this, "$answer", new E("")), h(this, "$language", new E("en")), h(this, "$model", new E("")), h(this, "$answerLoading", new E(!1)), h(this, "$locationEnabled", new E(null)), h(this, "$answerError", new E(!1)), h(this, "$answerErrorMessage", new E("")), h(this, "$isQuestion", new E(!1)), h(this, "$inputTemplateRendered", new E(!1)), h(this, "currentPageValue", 1), h(this, "isAnswerWidgetCreatedValue", !1), h(this, "renderingEngineValue", G.mustache), h(this, "parsedData", new ur(this)), h(this, "sessionId"), h(this, "sessionIdValue", null), h(this, "autoCorrect", !0), h(this, "forceNotCorrect", !1), h(this, "lastSearchValue", ""), h(this, "turnAIAnswerGenerationOn", !1), h(this, "questionURL", ""), h(this, "isInfiniteScroll", !1), h(this, "firstSearchHappened", !1), h(this, "facetsWereSet", !1), h(this, "answerWidgetShowMoreLimit", 100), h(this, "searchHelper"), h(this, "searchResultUnparsed"), this.sessionId = e, t && (this.sessionIdValue = t), this.cookieHandlingCallback(t), this.$cookiesDisabled.subscribe(() => {
|
|
2051
2051
|
this.cookieHandlingCallback(t);
|
|
2052
2052
|
});
|
|
2053
2053
|
}
|
|
@@ -2197,6 +2197,9 @@ class dr {
|
|
|
2197
2197
|
setLocationEnabled(e) {
|
|
2198
2198
|
this.$locationEnabled.setValue(e);
|
|
2199
2199
|
}
|
|
2200
|
+
setSearchResultUnparsedData(e) {
|
|
2201
|
+
this.searchResultUnparsed = e;
|
|
2202
|
+
}
|
|
2200
2203
|
get getAnswerData() {
|
|
2201
2204
|
return this.$answer.getValue();
|
|
2202
2205
|
}
|
|
@@ -2338,6 +2341,9 @@ class dr {
|
|
|
2338
2341
|
get locationEnabled() {
|
|
2339
2342
|
return this.$locationEnabled.getValue();
|
|
2340
2343
|
}
|
|
2344
|
+
get searchResultUnparsedData() {
|
|
2345
|
+
return this.searchResultUnparsed;
|
|
2346
|
+
}
|
|
2341
2347
|
}
|
|
2342
2348
|
class mt {
|
|
2343
2349
|
static combineResultsWithMetadata(e) {
|
|
@@ -2529,10 +2535,10 @@ function pr(i) {
|
|
|
2529
2535
|
const { onEvent: e = gs, onError: t = gs, onRetry: a = gs, onComment: s } = i;
|
|
2530
2536
|
let r = "", o = !0, n, l = "", c = "";
|
|
2531
2537
|
function g(m) {
|
|
2532
|
-
const w = o ? m.replace(/^\xEF\xBB\xBF/, "") : m, [S,
|
|
2538
|
+
const w = o ? m.replace(/^\xEF\xBB\xBF/, "") : m, [S, j] = mr(`${r}${w}`);
|
|
2533
2539
|
for (const P of S)
|
|
2534
2540
|
f(P);
|
|
2535
|
-
r =
|
|
2541
|
+
r = j, o = !1;
|
|
2536
2542
|
}
|
|
2537
2543
|
function f(m) {
|
|
2538
2544
|
if (m === "") {
|
|
@@ -2545,7 +2551,7 @@ function pr(i) {
|
|
|
2545
2551
|
}
|
|
2546
2552
|
const w = m.indexOf(":");
|
|
2547
2553
|
if (w !== -1) {
|
|
2548
|
-
const S = m.slice(0, w),
|
|
2554
|
+
const S = m.slice(0, w), j = m[w + 1] === " " ? 2 : 1, P = m.slice(w + j);
|
|
2549
2555
|
p(S, P, m);
|
|
2550
2556
|
return;
|
|
2551
2557
|
}
|
|
@@ -2620,52 +2626,52 @@ function vs(i) {
|
|
|
2620
2626
|
function Ca(i) {
|
|
2621
2627
|
return { type: i.type, message: i.message, code: i.code, defaultPrevented: i.defaultPrevented, cancelable: i.cancelable, timeStamp: i.timeStamp };
|
|
2622
2628
|
}
|
|
2623
|
-
var
|
|
2629
|
+
var Ba = (i) => {
|
|
2624
2630
|
throw TypeError(i);
|
|
2625
|
-
}, zs = (i, e, t) => e.has(i) ||
|
|
2631
|
+
}, zs = (i, e, t) => e.has(i) || Ba("Cannot " + t), N = (i, e, t) => (zs(i, e, "read from private field"), t ? t.call(i) : e.get(i)), X = (i, e, t) => e.has(i) ? Ba("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), U = (i, e, t, a) => (zs(i, e, "write to private field"), e.set(i, t), t), je = (i, e, t) => (zs(i, e, "access private method"), t), ue, $e, qe, Wt, qt, xt, Ge, wt, De, Ue, Ze, Ye, ft, ye, bs, Ms, Cs, Sa, Ss, ks, Lt, Ts, Es;
|
|
2626
2632
|
class Vt extends EventTarget {
|
|
2627
2633
|
constructor(e, t) {
|
|
2628
2634
|
var a, s;
|
|
2629
|
-
super(), X(this, ye), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, X(this, ue), X(this, $e), X(this,
|
|
2635
|
+
super(), X(this, ye), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, X(this, ue), X(this, $e), X(this, qe), X(this, Wt), X(this, qt), X(this, xt), X(this, Ge), X(this, wt, null), X(this, De), X(this, Ue), X(this, Ze, null), X(this, Ye, null), X(this, ft, null), X(this, Ms, async (r) => {
|
|
2630
2636
|
var o;
|
|
2631
|
-
|
|
2637
|
+
N(this, Ue).reset();
|
|
2632
2638
|
const { body: n, redirected: l, status: c, headers: g } = r;
|
|
2633
2639
|
if (c === 204) {
|
|
2634
|
-
|
|
2640
|
+
je(this, ye, Lt).call(this, "Server sent HTTP 204, not reconnecting", 204), this.close();
|
|
2635
2641
|
return;
|
|
2636
2642
|
}
|
|
2637
|
-
if (l ? U(this,
|
|
2638
|
-
|
|
2643
|
+
if (l ? U(this, qe, new URL(r.url)) : U(this, qe, void 0), c !== 200) {
|
|
2644
|
+
je(this, ye, Lt).call(this, `Non-200 status code (${c})`, c);
|
|
2639
2645
|
return;
|
|
2640
2646
|
}
|
|
2641
2647
|
if (!(g.get("content-type") || "").startsWith("text/event-stream")) {
|
|
2642
|
-
|
|
2648
|
+
je(this, ye, Lt).call(this, 'Invalid content type, expected "text/event-stream"', c);
|
|
2643
2649
|
return;
|
|
2644
2650
|
}
|
|
2645
|
-
if (
|
|
2651
|
+
if (N(this, ue) === this.CLOSED)
|
|
2646
2652
|
return;
|
|
2647
2653
|
U(this, ue, this.OPEN);
|
|
2648
2654
|
const f = new Event("open");
|
|
2649
|
-
if ((o =
|
|
2650
|
-
|
|
2655
|
+
if ((o = N(this, ft)) == null || o.call(this, f), this.dispatchEvent(f), typeof n != "object" || !n || !("getReader" in n)) {
|
|
2656
|
+
je(this, ye, Lt).call(this, "Invalid response body, expected a web ReadableStream", c), this.close();
|
|
2651
2657
|
return;
|
|
2652
2658
|
}
|
|
2653
2659
|
const p = new TextDecoder(), y = n.getReader();
|
|
2654
2660
|
let x = !0;
|
|
2655
2661
|
do {
|
|
2656
2662
|
const { done: m, value: w } = await y.read();
|
|
2657
|
-
w &&
|
|
2663
|
+
w && N(this, Ue).feed(p.decode(w, { stream: !m })), m && (x = !1, N(this, Ue).reset(), je(this, ye, Ts).call(this));
|
|
2658
2664
|
} while (x);
|
|
2659
2665
|
}), X(this, Cs, (r) => {
|
|
2660
|
-
U(this,
|
|
2666
|
+
U(this, De, void 0), !(r.name === "AbortError" || r.type === "aborted") && je(this, ye, Ts).call(this, vs(r));
|
|
2661
2667
|
}), X(this, Ss, (r) => {
|
|
2662
2668
|
typeof r.id == "string" && U(this, wt, r.id);
|
|
2663
|
-
const o = new MessageEvent(r.event || "message", { data: r.data, origin:
|
|
2664
|
-
|
|
2669
|
+
const o = new MessageEvent(r.event || "message", { data: r.data, origin: N(this, qe) ? N(this, qe).origin : N(this, $e).origin, lastEventId: r.id || "" });
|
|
2670
|
+
N(this, Ye) && (!r.event || r.event === "message") && N(this, Ye).call(this, o), this.dispatchEvent(o);
|
|
2665
2671
|
}), X(this, ks, (r) => {
|
|
2666
2672
|
U(this, xt, r);
|
|
2667
|
-
}), X(this,
|
|
2668
|
-
U(this, Ge, void 0),
|
|
2673
|
+
}), X(this, Es, () => {
|
|
2674
|
+
U(this, Ge, void 0), N(this, ue) === this.CONNECTING && je(this, ye, bs).call(this);
|
|
2669
2675
|
});
|
|
2670
2676
|
try {
|
|
2671
2677
|
if (e instanceof URL)
|
|
@@ -2677,31 +2683,31 @@ class Vt extends EventTarget {
|
|
|
2677
2683
|
} catch {
|
|
2678
2684
|
throw fr("An invalid or illegal string was specified");
|
|
2679
2685
|
}
|
|
2680
|
-
U(this, Ue, pr({ onEvent:
|
|
2686
|
+
U(this, Ue, pr({ onEvent: N(this, Ss), onRetry: N(this, ks) })), U(this, ue, this.CONNECTING), U(this, xt, 3e3), U(this, qt, (a = t == null ? void 0 : t.fetch) != null ? a : globalThis.fetch), U(this, Wt, (s = t == null ? void 0 : t.withCredentials) != null ? s : !1), je(this, ye, bs).call(this);
|
|
2681
2687
|
}
|
|
2682
2688
|
get readyState() {
|
|
2683
|
-
return
|
|
2689
|
+
return N(this, ue);
|
|
2684
2690
|
}
|
|
2685
2691
|
get url() {
|
|
2686
|
-
return
|
|
2692
|
+
return N(this, $e).href;
|
|
2687
2693
|
}
|
|
2688
2694
|
get withCredentials() {
|
|
2689
|
-
return
|
|
2695
|
+
return N(this, Wt);
|
|
2690
2696
|
}
|
|
2691
2697
|
get onerror() {
|
|
2692
|
-
return
|
|
2698
|
+
return N(this, Ze);
|
|
2693
2699
|
}
|
|
2694
2700
|
set onerror(e) {
|
|
2695
2701
|
U(this, Ze, e);
|
|
2696
2702
|
}
|
|
2697
2703
|
get onmessage() {
|
|
2698
|
-
return
|
|
2704
|
+
return N(this, Ye);
|
|
2699
2705
|
}
|
|
2700
2706
|
set onmessage(e) {
|
|
2701
2707
|
U(this, Ye, e);
|
|
2702
2708
|
}
|
|
2703
2709
|
get onopen() {
|
|
2704
|
-
return
|
|
2710
|
+
return N(this, ft);
|
|
2705
2711
|
}
|
|
2706
2712
|
set onopen(e) {
|
|
2707
2713
|
U(this, ft, e);
|
|
@@ -2715,28 +2721,28 @@ class Vt extends EventTarget {
|
|
|
2715
2721
|
super.removeEventListener(e, s, a);
|
|
2716
2722
|
}
|
|
2717
2723
|
close() {
|
|
2718
|
-
|
|
2724
|
+
N(this, Ge) && clearTimeout(N(this, Ge)), N(this, ue) !== this.CLOSED && (N(this, De) && N(this, De).abort(), U(this, ue, this.CLOSED), U(this, De, void 0));
|
|
2719
2725
|
}
|
|
2720
2726
|
}
|
|
2721
|
-
ue = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(),
|
|
2722
|
-
U(this, ue, this.CONNECTING), U(this,
|
|
2727
|
+
ue = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakSet(), bs = function() {
|
|
2728
|
+
U(this, ue, this.CONNECTING), U(this, De, new AbortController()), N(this, qt)(N(this, $e), je(this, ye, Sa).call(this)).then(N(this, Ms)).catch(N(this, Cs));
|
|
2723
2729
|
}, Ms = /* @__PURE__ */ new WeakMap(), Cs = /* @__PURE__ */ new WeakMap(), Sa = function() {
|
|
2724
2730
|
var i;
|
|
2725
|
-
const e = { mode: "cors", redirect: "follow", headers: { Accept: "text/event-stream", ...
|
|
2731
|
+
const e = { mode: "cors", redirect: "follow", headers: { Accept: "text/event-stream", ...N(this, wt) ? { "Last-Event-ID": N(this, wt) } : void 0 }, cache: "no-store", signal: (i = N(this, De)) == null ? void 0 : i.signal };
|
|
2726
2732
|
return "window" in globalThis && (e.credentials = this.withCredentials ? "include" : "same-origin"), e;
|
|
2727
2733
|
}, Ss = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), Lt = function(i, e) {
|
|
2728
2734
|
var t;
|
|
2729
|
-
|
|
2735
|
+
N(this, ue) !== this.CLOSED && U(this, ue, this.CLOSED);
|
|
2730
2736
|
const a = new Ma("error", { code: e, message: i });
|
|
2731
|
-
(t =
|
|
2737
|
+
(t = N(this, Ze)) == null || t.call(this, a), this.dispatchEvent(a);
|
|
2732
2738
|
}, Ts = function(i, e) {
|
|
2733
2739
|
var t;
|
|
2734
|
-
if (
|
|
2740
|
+
if (N(this, ue) === this.CLOSED)
|
|
2735
2741
|
return;
|
|
2736
2742
|
U(this, ue, this.CONNECTING);
|
|
2737
2743
|
const a = new Ma("error", { code: e, message: i });
|
|
2738
|
-
(t =
|
|
2739
|
-
},
|
|
2744
|
+
(t = N(this, Ze)) == null || t.call(this, a), this.dispatchEvent(a), U(this, Ge, setTimeout(N(this, Es), N(this, xt)));
|
|
2745
|
+
}, Es = /* @__PURE__ */ new WeakMap(), Vt.CONNECTING = 0, Vt.OPEN = 1, Vt.CLOSED = 2;
|
|
2740
2746
|
function Lr() {
|
|
2741
2747
|
const i = "document" in globalThis ? globalThis.document : void 0;
|
|
2742
2748
|
return i && typeof i == "object" && "baseURI" in i && typeof i.baseURI == "string" ? i.baseURI : void 0;
|
|
@@ -2928,7 +2934,7 @@ class yr {
|
|
|
2928
2934
|
var xr = Object.prototype.toString, Ke = Array.isArray || function(i) {
|
|
2929
2935
|
return xr.call(i) === "[object Array]";
|
|
2930
2936
|
};
|
|
2931
|
-
function
|
|
2937
|
+
function js(i) {
|
|
2932
2938
|
return typeof i == "function";
|
|
2933
2939
|
}
|
|
2934
2940
|
function wr(i) {
|
|
@@ -2957,8 +2963,8 @@ function Tr(i) {
|
|
|
2957
2963
|
return kr[e];
|
|
2958
2964
|
});
|
|
2959
2965
|
}
|
|
2960
|
-
var
|
|
2961
|
-
function
|
|
2966
|
+
var Er = /\s*/, jr = /\s+/, Ta = /\s*=/, Ar = /\s*\}/, Ir = /#|\^|\/|>|\{|&|=|!/;
|
|
2967
|
+
function Rr(i, e) {
|
|
2962
2968
|
if (!i)
|
|
2963
2969
|
return [];
|
|
2964
2970
|
var t = !1, a = [], s = [], r = [], o = !1, n = !1, l = "", c = 0;
|
|
@@ -2971,41 +2977,41 @@ function Dr(i, e) {
|
|
|
2971
2977
|
o = !1, n = !1;
|
|
2972
2978
|
}
|
|
2973
2979
|
var f, p, y;
|
|
2974
|
-
function x(
|
|
2975
|
-
if (typeof
|
|
2976
|
-
throw new Error("Invalid tags: " +
|
|
2977
|
-
f = new RegExp(ps(
|
|
2980
|
+
function x(R) {
|
|
2981
|
+
if (typeof R == "string" && (R = R.split(jr, 2)), !Ke(R) || R.length !== 2)
|
|
2982
|
+
throw new Error("Invalid tags: " + R);
|
|
2983
|
+
f = new RegExp(ps(R[0]) + "\\s*"), p = new RegExp("\\s*" + ps(R[1])), y = new RegExp("\\s*" + ps("}" + R[1]));
|
|
2978
2984
|
}
|
|
2979
2985
|
x(e || F.tags);
|
|
2980
|
-
for (var m = new vt(i), w, S,
|
|
2981
|
-
if (w = m.pos,
|
|
2982
|
-
for (var $ = 0, T =
|
|
2983
|
-
P =
|
|
2986
|
+
for (var m = new vt(i), w, S, j, P, k, O; !m.eos(); ) {
|
|
2987
|
+
if (w = m.pos, j = m.scanUntil(f), j)
|
|
2988
|
+
for (var $ = 0, T = j.length; $ < T; ++$)
|
|
2989
|
+
P = j.charAt($), Sr(P) ? (r.push(s.length), l += P) : (n = !0, t = !0, l += " "), s.push(["text", P, w, w + 1]), w += 1, P === `
|
|
2984
2990
|
` && (g(), l = "", c = 0, t = !1);
|
|
2985
2991
|
if (!m.scan(f))
|
|
2986
2992
|
break;
|
|
2987
|
-
if (o = !0, S = m.scan(Ir) || "name", m.scan(
|
|
2993
|
+
if (o = !0, S = m.scan(Ir) || "name", m.scan(Er), S === "=" ? (j = m.scanUntil(Ta), m.scan(Ta), m.scanUntil(p)) : S === "{" ? (j = m.scanUntil(y), m.scan(Ar), m.scanUntil(p), S = "&") : j = m.scanUntil(p), !m.scan(p))
|
|
2988
2994
|
throw new Error("Unclosed tag at " + m.pos);
|
|
2989
|
-
if (S == ">" ? k = [S,
|
|
2995
|
+
if (S == ">" ? k = [S, j, w, m.pos, l, c, t] : k = [S, j, w, m.pos], c++, s.push(k), S === "#" || S === "^")
|
|
2990
2996
|
a.push(k);
|
|
2991
2997
|
else if (S === "/") {
|
|
2992
2998
|
if (O = a.pop(), !O)
|
|
2993
|
-
throw new Error('Unopened section "' +
|
|
2994
|
-
if (O[1] !==
|
|
2999
|
+
throw new Error('Unopened section "' + j + '" at ' + w);
|
|
3000
|
+
if (O[1] !== j)
|
|
2995
3001
|
throw new Error('Unclosed section "' + O[1] + '" at ' + w);
|
|
2996
3002
|
} else
|
|
2997
|
-
S === "name" || S === "{" || S === "&" ? n = !0 : S === "=" && x(
|
|
3003
|
+
S === "name" || S === "{" || S === "&" ? n = !0 : S === "=" && x(j);
|
|
2998
3004
|
}
|
|
2999
3005
|
if (g(), O = a.pop(), O)
|
|
3000
3006
|
throw new Error('Unclosed section "' + O[1] + '" at ' + m.pos);
|
|
3001
|
-
return
|
|
3007
|
+
return Nr(Dr(s));
|
|
3002
3008
|
}
|
|
3003
|
-
function
|
|
3009
|
+
function Dr(i) {
|
|
3004
3010
|
for (var e = [], t, a, s = 0, r = i.length; s < r; ++s)
|
|
3005
3011
|
t = i[s], t && (t[0] === "text" && a && a[0] === "text" ? (a[1] += t[1], a[3] = t[3]) : (e.push(t), a = t));
|
|
3006
3012
|
return e;
|
|
3007
3013
|
}
|
|
3008
|
-
function
|
|
3014
|
+
function Nr(i) {
|
|
3009
3015
|
for (var e = [], t = e, a = [], s, r, o = 0, n = i.length; o < n; ++o)
|
|
3010
3016
|
switch (s = i[o], s[0]) {
|
|
3011
3017
|
case "#":
|
|
@@ -3069,7 +3075,7 @@ Xe.prototype.push = function(i) {
|
|
|
3069
3075
|
}
|
|
3070
3076
|
e[i] = t;
|
|
3071
3077
|
}
|
|
3072
|
-
return
|
|
3078
|
+
return js(t) && (t = t.call(this.view)), t;
|
|
3073
3079
|
};
|
|
3074
3080
|
function oe() {
|
|
3075
3081
|
this.templateCache = { _cache: {}, set: function(i, e) {
|
|
@@ -3084,7 +3090,7 @@ oe.prototype.clearCache = function() {
|
|
|
3084
3090
|
typeof this.templateCache < "u" && this.templateCache.clear();
|
|
3085
3091
|
}, oe.prototype.parse = function(i, e) {
|
|
3086
3092
|
var t = this.templateCache, a = i + ":" + (e || F.tags).join(":"), s = typeof t < "u", r = s ? t.get(a) : void 0;
|
|
3087
|
-
return r == null && (r =
|
|
3093
|
+
return r == null && (r = Rr(i, e), s && t.set(a, r)), r;
|
|
3088
3094
|
}, oe.prototype.render = function(i, e, t, a) {
|
|
3089
3095
|
var s = this.getConfigTags(a), r = this.parse(i, s), o = e instanceof Xe ? e : new Xe(e, void 0);
|
|
3090
3096
|
return this.renderTokens(r, o, t, i, a);
|
|
@@ -3103,7 +3109,7 @@ oe.prototype.clearCache = function() {
|
|
|
3103
3109
|
o += this.renderTokens(i[4], e.push(n[c]), t, a, s);
|
|
3104
3110
|
else if (typeof n == "object" || typeof n == "string" || typeof n == "number")
|
|
3105
3111
|
o += this.renderTokens(i[4], e.push(n), t, a, s);
|
|
3106
|
-
else if (
|
|
3112
|
+
else if (js(n)) {
|
|
3107
3113
|
if (typeof a != "string")
|
|
3108
3114
|
throw new Error("Cannot use higher-order sections without the original template");
|
|
3109
3115
|
n = n.call(e.view, a.slice(i[3], i[5]), l), n != null && (o += n);
|
|
@@ -3123,7 +3129,7 @@ oe.prototype.clearCache = function() {
|
|
|
3123
3129
|
`);
|
|
3124
3130
|
}, oe.prototype.renderPartial = function(i, e, t, a) {
|
|
3125
3131
|
if (t) {
|
|
3126
|
-
var s = this.getConfigTags(a), r =
|
|
3132
|
+
var s = this.getConfigTags(a), r = js(t) ? t(i[1]) : t[i[1]];
|
|
3127
3133
|
if (r != null) {
|
|
3128
3134
|
var o = i[6], n = i[5], l = i[4], c = r;
|
|
3129
3135
|
n == 0 && l && (c = this.indentPartial(r, l, o));
|
|
@@ -3357,7 +3363,7 @@ const Or = { main: { template: `
|
|
|
3357
3363
|
{{/shouldShowLocationDistanceDropdown}}
|
|
3358
3364
|
</div>
|
|
3359
3365
|
</div>
|
|
3360
|
-
`, locationInputId: "searchstax-location-input", radiusInputId: "searchstax-location-radius-select", currentLocationActionButtonId: "searchstax-location-get-current-location" } },
|
|
3366
|
+
`, locationInputId: "searchstax-location-input", radiusInputId: "searchstax-location-radius-select", currentLocationActionButtonId: "searchstax-location-get-current-location" } }, Hr = { mainTemplate: { template: `
|
|
3361
3367
|
<section aria-label="search results container" tabindex="0">
|
|
3362
3368
|
<div class="searchstax-search-results-container" id="searchstax-search-results-container" data-test-id="searchstax-search-results-container">
|
|
3363
3369
|
<div class="searchstax-search-results" id="searchstax-search-results"></div>
|
|
@@ -3429,7 +3435,7 @@ const Or = { main: { template: `
|
|
|
3429
3435
|
</ul>
|
|
3430
3436
|
</div>
|
|
3431
3437
|
{{/searchExecuted}}
|
|
3432
|
-
` } },
|
|
3438
|
+
` } }, Qr = { main: { template: `
|
|
3433
3439
|
{{#searchExecuted}}
|
|
3434
3440
|
{{#hasResultsOrExternalPromotions}}
|
|
3435
3441
|
{{#sortOptions.length}}
|
|
@@ -3532,8 +3538,8 @@ const Or = { main: { template: `
|
|
|
3532
3538
|
`, thumbsUpButtonClass: "searchstax-lightweight-widget-thumbs-up", thumbsDownButtonClass: "searchstax-lightweight-widget-thumbs-down" } };
|
|
3533
3539
|
class C {
|
|
3534
3540
|
}
|
|
3535
|
-
h(C, "answer", Or), h(C, "externalPromotions", Pr), h(C, "facets", Fr), h(C, "pagination", $r), h(C, "relatedSearches", zr), h(C, "searchFeedback", _r), h(C, "searchInput", Wr), h(C, "location", Vr), h(C, "searchResults",
|
|
3536
|
-
class
|
|
3541
|
+
h(C, "answer", Or), h(C, "externalPromotions", Pr), h(C, "facets", Fr), h(C, "pagination", $r), h(C, "relatedSearches", zr), h(C, "searchFeedback", _r), h(C, "searchInput", Wr), h(C, "location", Vr), h(C, "searchResults", Hr), h(C, "sorting", Qr), h(C, "feedback", K);
|
|
3542
|
+
class Br {
|
|
3537
3543
|
constructor(e) {
|
|
3538
3544
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "externalPromotionsContainerId"), h(this, "searchExternalPromotionsMainContainer", null);
|
|
3539
3545
|
var t, a;
|
|
@@ -3595,7 +3601,7 @@ class ee {
|
|
|
3595
3601
|
}, t ?? 100);
|
|
3596
3602
|
}
|
|
3597
3603
|
}
|
|
3598
|
-
class
|
|
3604
|
+
class qr {
|
|
3599
3605
|
constructor(e, t) {
|
|
3600
3606
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "routerHelper"), h(this, "cachedPhrase", ""), h(this, "cachedANDFacets", ""), h(this, "isCached", !1), h(this, "overlayOpened", !1), h(this, "facetPaginationStep"), h(this, "facetPaginationStepMobile"), h(this, "searchFacetsMainContainer", null), h(this, "searchFacetsMobileContainer", null), h(this, "searchFacetsDesktopContainer", null), h(this, "facetLimits", {}), h(this, "facetLimitsMobile", {}), h(this, "deactivatedFacets", {}), h(this, "focusedElement", null), h(this, "cachedData", null), h(this, "cacheFacets"), h(this, "onFacetSelect", (a, s, r, o, n) => {
|
|
3601
3607
|
if (a.stopPropagation(), !s.disabled) {
|
|
@@ -3660,7 +3666,7 @@ class Br {
|
|
|
3660
3666
|
}
|
|
3661
3667
|
}
|
|
3662
3668
|
createFacetItem(e, t, a) {
|
|
3663
|
-
var s, r, o, n, l, c, g, f, p, y, x, m, w, S,
|
|
3669
|
+
var s, r, o, n, l, c, g, f, p, y, x, m, w, S, j, P;
|
|
3664
3670
|
if (typeof document < "u") {
|
|
3665
3671
|
const k = document == null ? void 0 : document.createElement("div");
|
|
3666
3672
|
k.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || k.classList.add("active");
|
|
@@ -3669,18 +3675,18 @@ class Br {
|
|
|
3669
3675
|
const $ = k.querySelector("." + (((g = (c = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : c.facetItemContainerTemplate) == null ? void 0 : g.facetListTitleContainerClass) || ((f = C.facets.facetItemContainerTemplate) == null ? void 0 : f.facetListTitleContainerClass)));
|
|
3670
3676
|
$ == null || $.addEventListener("click", () => {
|
|
3671
3677
|
k.classList.toggle("active");
|
|
3672
|
-
const
|
|
3673
|
-
|
|
3674
|
-
}), (m = $ == null ? void 0 : $.querySelector("." + ((x = (y = (p = this.config) == null ? void 0 : p.templates) == null ? void 0 : y.facetItemContainerTemplate) == null ? void 0 : x.facetListTitleContainerInner))) == null || m.addEventListener("keydown", (
|
|
3675
|
-
if (
|
|
3676
|
-
|
|
3677
|
-
const
|
|
3678
|
-
de && de.setAttribute("aria-expanded", String(
|
|
3678
|
+
const R = k.classList.contains("active"), B = $.querySelector(".searchstax-facet-title");
|
|
3679
|
+
B && B.setAttribute("aria-expanded", String(R));
|
|
3680
|
+
}), (m = $ == null ? void 0 : $.querySelector("." + ((x = (y = (p = this.config) == null ? void 0 : p.templates) == null ? void 0 : y.facetItemContainerTemplate) == null ? void 0 : x.facetListTitleContainerInner))) == null || m.addEventListener("keydown", (R) => {
|
|
3681
|
+
if (R.code === "Enter" || R.code === "Space") {
|
|
3682
|
+
R.preventDefault(), k.classList.toggle("active");
|
|
3683
|
+
const B = k.classList.contains("active"), de = $.querySelector(".searchstax-facet-title");
|
|
3684
|
+
de && de.setAttribute("aria-expanded", String(B));
|
|
3679
3685
|
}
|
|
3680
3686
|
});
|
|
3681
|
-
const T = k.querySelector("." + (((
|
|
3682
|
-
T && (e.values.forEach((
|
|
3683
|
-
this.createFacetListItem(
|
|
3687
|
+
const T = k.querySelector("." + (((j = (S = (w = this.config) == null ? void 0 : w.templates) == null ? void 0 : S.facetItemContainerTemplate) == null ? void 0 : j.facetListContainerClass) || ((P = C.facets.facetItemContainerTemplate) == null ? void 0 : P.facetListContainerClass)));
|
|
3688
|
+
T && (e.values.forEach((R) => {
|
|
3689
|
+
this.createFacetListItem(R, T, e.name);
|
|
3684
3690
|
}), e.hasMoreFacets && this.createHasMoreComponent(e, T, a));
|
|
3685
3691
|
}
|
|
3686
3692
|
}
|
|
@@ -3693,8 +3699,8 @@ class Br {
|
|
|
3693
3699
|
if (typeof document < "u") {
|
|
3694
3700
|
const w = document == null ? void 0 : document.createElement("div");
|
|
3695
3701
|
w.classList.add("searchstax-facet-value-container"), e.disabled && w.classList.add("searchstax-facet-value-disabled");
|
|
3696
|
-
const S = this.isChecked(e),
|
|
3697
|
-
w.innerHTML = F.render(
|
|
3702
|
+
const S = this.isChecked(e), j = ((o = (r = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : r.facetItemTemplate) == null ? void 0 : o.template) || ((n = C.facets.facetItemTemplate) == null ? void 0 : n.template);
|
|
3703
|
+
w.innerHTML = F.render(j, { ...e, isChecked: S });
|
|
3698
3704
|
let P = (l = C.facets.facetItemTemplate) == null ? void 0 : l.checkTriggerClasses;
|
|
3699
3705
|
P = ((f = (g = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : g.facetItemTemplate) == null ? void 0 : f.checkTriggerClasses) || P, P.forEach((O) => {
|
|
3700
3706
|
const $ = w.querySelector("." + O);
|
|
@@ -3756,8 +3762,8 @@ class Br {
|
|
|
3756
3762
|
k instanceof HTMLElement && k.focus(), this.focusedElement = null;
|
|
3757
3763
|
return;
|
|
3758
3764
|
}
|
|
3759
|
-
const S = this.focusedElement.getAttribute("data-test-value"),
|
|
3760
|
-
|
|
3765
|
+
const S = this.focusedElement.getAttribute("data-test-value"), j = this.searchFacetsMainContainer.querySelector(`[data-test-value="${S}"]`);
|
|
3766
|
+
j instanceof HTMLInputElement && j.focus(), this.focusedElement = null;
|
|
3761
3767
|
}
|
|
3762
3768
|
}
|
|
3763
3769
|
}
|
|
@@ -3846,7 +3852,7 @@ class Br {
|
|
|
3846
3852
|
ee.setAccessibilityText("Facet overlay closed"), this.overlayOpened = !1, this.searchFacetsMainContainer && (typeof document < "u" && document.body.classList.toggle("searchstax-no-scroll"), (e = this.searchFacetsMainContainer.querySelector(".searchstax-facets-mobile-overlay")) == null || e.classList.remove("searchstax-show"));
|
|
3847
3853
|
}
|
|
3848
3854
|
renderMobileTemplate(e) {
|
|
3849
|
-
var t, a, s, r, o, n, l, c, g, f, p, y, x, m, w, S,
|
|
3855
|
+
var t, a, s, r, o, n, l, c, g, f, p, y, x, m, w, S, j, P, k;
|
|
3850
3856
|
if (e && typeof document < "u") {
|
|
3851
3857
|
const O = document == null ? void 0 : document.createElement("div");
|
|
3852
3858
|
O.classList.add("searchstax-facets-container-mobile");
|
|
@@ -3854,27 +3860,27 @@ class Br {
|
|
|
3854
3860
|
if (this.dataLayer.renderingEngine === G.mustache) {
|
|
3855
3861
|
if (O.innerHTML = F.render($, { ...e, overlayOpened: this.overlayOpened }), (o = this.searchFacetsMainContainer) == null || o.appendChild(O), (l = (n = this.config) == null ? void 0 : n.templates) != null && l.mainTemplateMobile)
|
|
3856
3862
|
for (const de of ((f = (g = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : g.mainTemplateMobile) == null ? void 0 : f.closeOverlayTriggerClasses) || []) {
|
|
3857
|
-
const
|
|
3858
|
-
|
|
3863
|
+
const H = O.querySelector("." + de);
|
|
3864
|
+
H && (H.addEventListener("click", this.closeOverlay.bind(this)), H.addEventListener("keyup", (ie) => {
|
|
3859
3865
|
(ie.code === "Space" || ie.code === "Enter") && this.closeOverlay();
|
|
3860
3866
|
}));
|
|
3861
3867
|
}
|
|
3862
3868
|
else
|
|
3863
3869
|
for (const de of C.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
|
|
3864
|
-
const
|
|
3865
|
-
|
|
3870
|
+
const H = O.querySelector("." + de);
|
|
3871
|
+
H && (H.addEventListener("click", this.closeOverlay.bind(this)), H.addEventListener("keyup", (ie) => {
|
|
3866
3872
|
(ie.code === "Space" || ie.code === "Enter") && this.closeOverlay();
|
|
3867
3873
|
}));
|
|
3868
3874
|
}
|
|
3869
3875
|
const T = O.querySelector("." + (((x = (y = (p = this.config) == null ? void 0 : p.templates) == null ? void 0 : y.mainTemplateMobile) == null ? void 0 : x.filterByContainerClass) || C.facets.mainTemplateMobile.filterByContainerClass));
|
|
3870
3876
|
T && this.createFilterByComponent(T);
|
|
3871
|
-
const
|
|
3872
|
-
|
|
3873
|
-
const
|
|
3874
|
-
if (
|
|
3875
|
-
|
|
3877
|
+
const R = O.querySelector("." + (((S = (w = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : w.mainTemplateMobile) == null ? void 0 : S.selectedFacetsContainerClass) || C.facets.mainTemplateMobile.selectedFacetsContainerClass));
|
|
3878
|
+
R && (this.createSelectedFacetsComponents(R), this.createClearFacetsComponents(R));
|
|
3879
|
+
const B = O.querySelector("." + (((k = (P = (j = this.config) == null ? void 0 : j.templates) == null ? void 0 : P.mainTemplateMobile) == null ? void 0 : k.facetsContainerClass) || C.facets.mainTemplateMobile.facetsContainerClass));
|
|
3880
|
+
if (B) {
|
|
3881
|
+
B.innerHTML = "";
|
|
3876
3882
|
for (const de of e.facets)
|
|
3877
|
-
this.createFacetItem(de,
|
|
3883
|
+
this.createFacetItem(de, B, !0);
|
|
3878
3884
|
}
|
|
3879
3885
|
}
|
|
3880
3886
|
}
|
|
@@ -3905,7 +3911,14 @@ class Ur {
|
|
|
3905
3911
|
}
|
|
3906
3912
|
goToPage(e, t) {
|
|
3907
3913
|
const a = this.dataLayer.searchObject;
|
|
3908
|
-
a && (a.page = e, this.dataLayer.setSearchObject(a))
|
|
3914
|
+
a && (a.page = e, this.dataLayer.setSearchObject(a));
|
|
3915
|
+
const s = document.querySelector(".searchstax-page-layout-result-container");
|
|
3916
|
+
if (s instanceof HTMLElement) {
|
|
3917
|
+
const r = s.querySelector('[tabindex="0"]');
|
|
3918
|
+
r instanceof HTMLElement && r.focus();
|
|
3919
|
+
} else
|
|
3920
|
+
document.body.tabIndex = -1, document.body.focus();
|
|
3921
|
+
t || (s instanceof HTMLElement ? s.scrollIntoView({ block: "start", behavior: "auto" }) : window == null || window.scrollTo(0, 0));
|
|
3909
3922
|
}
|
|
3910
3923
|
nextPage(e) {
|
|
3911
3924
|
var t;
|
|
@@ -4521,7 +4534,7 @@ class en {
|
|
|
4521
4534
|
return this.config.testString && (e.searchExecuted = !0), this.dataLayer.setAnswerFullData(e), e;
|
|
4522
4535
|
}
|
|
4523
4536
|
}
|
|
4524
|
-
class
|
|
4537
|
+
class Ea {
|
|
4525
4538
|
constructor(e) {
|
|
4526
4539
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "currentSelectValue", ""), h(this, "locationInput"), h(this, "radiusInput"), h(this, "locationDecode"), h(this, "locationDecodeCoordinatesToAddress");
|
|
4527
4540
|
var t, a;
|
|
@@ -4546,8 +4559,8 @@ class ja {
|
|
|
4546
4559
|
throw new Error("Input not found");
|
|
4547
4560
|
const m = ((o = (r = this.config.templates) == null ? void 0 : r.mainTemplate) == null ? void 0 : o.radiusInputId) || C.location.mainTemplate.radiusInputId, w = document == null ? void 0 : document.querySelector(`#${m}`);
|
|
4548
4561
|
w instanceof HTMLSelectElement && (this.radiusInput = w, w.addEventListener("change", this.radiusSelectChangeEvent.bind(this)));
|
|
4549
|
-
const S = ((l = (n = this.config.templates) == null ? void 0 : n.mainTemplate) == null ? void 0 : l.currentLocationActionButtonId) || C.location.mainTemplate.currentLocationActionButtonId,
|
|
4550
|
-
|
|
4562
|
+
const S = ((l = (n = this.config.templates) == null ? void 0 : n.mainTemplate) == null ? void 0 : l.currentLocationActionButtonId) || C.location.mainTemplate.currentLocationActionButtonId, j = document == null ? void 0 : document.querySelector(`#${S}`);
|
|
4563
|
+
j && j.addEventListener("click", this.getCurrentLocation.bind(this));
|
|
4551
4564
|
}
|
|
4552
4565
|
}
|
|
4553
4566
|
}
|
|
@@ -4608,7 +4621,7 @@ class tn {
|
|
|
4608
4621
|
handleHooks() {
|
|
4609
4622
|
var e, t;
|
|
4610
4623
|
(t = (e = this.dataLayer.searchstaxConfig) == null ? void 0 : e.hooks) != null && t.afterSearch && this.dataLayer.$searchResults.subscribe((a) => {
|
|
4611
|
-
this.dataLayer.searchstaxConfig.hooks.afterSearch(a);
|
|
4624
|
+
this.dataLayer.searchstaxConfig.hooks.afterSearch(a, this.dataLayer.searchResultUnparsedData);
|
|
4612
4625
|
}), setTimeout(() => {
|
|
4613
4626
|
this.dataLayer.$searchObject.subscribe((a) => {
|
|
4614
4627
|
var s, r, o, n, l, c;
|
|
@@ -4671,7 +4684,7 @@ class tn {
|
|
|
4671
4684
|
var t, a;
|
|
4672
4685
|
this.handleRouter(), this.dataLayer.setItemsPerPage(parseInt(e.responseHeader.params.rows)), this.dataLayer.setModel(e.responseHeader.params.model);
|
|
4673
4686
|
let s = mt.combineResultsWithMetadata(e), r = mt.extractFacets(e);
|
|
4674
|
-
this.dataLayer.setSearchFacets(r), (a = (t = this.dataLayer.searchstaxConfig) == null ? void 0 : t.hooks) != null && a.afterSearch && (s = this.dataLayer.searchstaxConfig.hooks.afterSearch(s)), this.dataLayer.setSearchExternalPromotions(e.externalLinks ?? []), this.parseSearchResultsResponseMetadata(e), this.dataLayer.setSearchResults(s);
|
|
4687
|
+
this.dataLayer.setSearchFacets(r), (a = (t = this.dataLayer.searchstaxConfig) == null ? void 0 : t.hooks) != null && a.afterSearch && (s = this.dataLayer.searchstaxConfig.hooks.afterSearch(s, e)), this.dataLayer.setSearchExternalPromotions(e.externalLinks ?? []), this.parseSearchResultsResponseMetadata(e), this.dataLayer.setSearchResultUnparsedData(e), this.dataLayer.setSearchResults(s);
|
|
4675
4688
|
}
|
|
4676
4689
|
parseAnswerResultsResponse(e) {
|
|
4677
4690
|
this.handleRouter(), e !== Je.question && e !== Je.notQuestion && (this.dataLayer.setAnswerLoading(!0), this.dataLayer.setAnswerData(this.dataLayer.getAnswerData + e));
|
|
@@ -4700,8 +4713,8 @@ class tn {
|
|
|
4700
4713
|
}
|
|
4701
4714
|
addSearchLocationWidget(e, t) {
|
|
4702
4715
|
var a, s;
|
|
4703
|
-
this.dataLayer.searchLocationConfig || (t.locationSearchEnabled ? (this.dataLayer.setLocationEnabled(!0), this.dataLayer.setSearchLocationConfig(t), t.locationValuesOverride ? (this.searchLocationWidget = new
|
|
4704
|
-
this.searchLocationWidget = new
|
|
4716
|
+
this.dataLayer.searchLocationConfig || (t.locationSearchEnabled ? (this.dataLayer.setLocationEnabled(!0), this.dataLayer.setSearchLocationConfig(t), t.locationValuesOverride ? (this.searchLocationWidget = new Ea({ containerId: e, config: t, dataLayer: this.dataLayer }), (a = t == null ? void 0 : t.locationValuesOverride) != null && a.locationFilterDefaultValue && this.dataLayer.setSearchRadius((s = t == null ? void 0 : t.locationValuesOverride) == null ? void 0 : s.locationFilterDefaultValue)) : this.dataLayer.$searchResultsMetadata.subscribeUntilHasValue(() => {
|
|
4717
|
+
this.searchLocationWidget = new Ea({ containerId: e, config: t, dataLayer: this.dataLayer });
|
|
4705
4718
|
}, 0)) : this.dataLayer.setLocationEnabled(!1));
|
|
4706
4719
|
}
|
|
4707
4720
|
addAnswerWidget(e, t) {
|
|
@@ -4725,10 +4738,10 @@ class tn {
|
|
|
4725
4738
|
}, 0);
|
|
4726
4739
|
}
|
|
4727
4740
|
addExternalPromotionsWidget(e, t) {
|
|
4728
|
-
this.externalPromotionsConfig = t, this.externalPromotionsWidget = new
|
|
4741
|
+
this.externalPromotionsConfig = t, this.externalPromotionsWidget = new Br({ containerId: e, config: t, dataLayer: this.dataLayer });
|
|
4729
4742
|
}
|
|
4730
4743
|
addFacetsWidget(e, t) {
|
|
4731
|
-
this.searchFacetsConfig = t, this.searchFacetsWidget = new
|
|
4744
|
+
this.searchFacetsConfig = t, this.searchFacetsWidget = new qr({ containerId: e, config: t, dataLayer: this.dataLayer, routerHelper: this.routerHelper }, this.cacheFacets.bind(this));
|
|
4732
4745
|
}
|
|
4733
4746
|
executeSearch(e, t) {
|
|
4734
4747
|
const a = { ...this.dataLayer.searchObject };
|
|
@@ -4773,7 +4786,7 @@ const b = {
|
|
|
4773
4786
|
//@ts-ignore
|
|
4774
4787
|
searchstax: new tn("react")
|
|
4775
4788
|
};
|
|
4776
|
-
function
|
|
4789
|
+
function qa(i, e, t, a, s, r, o, n) {
|
|
4777
4790
|
return /* @__PURE__ */ u.jsx(u.Fragment, { children: i && /* @__PURE__ */ u.jsx(
|
|
4778
4791
|
"div",
|
|
4779
4792
|
{
|
|
@@ -4867,11 +4880,11 @@ function sn(i) {
|
|
|
4867
4880
|
r(m), (w = b.searchstax.searchLocationWidget) == null || w.triggerGeocoder(m);
|
|
4868
4881
|
}
|
|
4869
4882
|
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "search-location-container" + g, children: [
|
|
4870
|
-
!i.searchLocationTemplate && t && /* @__PURE__ */ u.jsx(u.Fragment, { children:
|
|
4883
|
+
!i.searchLocationTemplate && t && /* @__PURE__ */ u.jsx(u.Fragment, { children: qa(t, r, x, y, p, s, l, o) }),
|
|
4871
4884
|
i.searchLocationTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchLocationTemplate(t, r, x, y, p, s, l, o) })
|
|
4872
4885
|
] }) });
|
|
4873
4886
|
}
|
|
4874
|
-
const
|
|
4887
|
+
const ja = {
|
|
4875
4888
|
appId: "APP_ID",
|
|
4876
4889
|
relatedSearchesAPIKey: "KEY"
|
|
4877
4890
|
}, Ft = {
|
|
@@ -4905,11 +4918,11 @@ const Ea = {
|
|
|
4905
4918
|
}),
|
|
4906
4919
|
locationDecodeCoordinatesToAddress: (i, e) => new Promise((t) => {
|
|
4907
4920
|
fetch(
|
|
4908
|
-
`https://geocoding-staging.searchstax.co/reverse?location=${i},${e}&components=country:US&app_id=${
|
|
4921
|
+
`https://geocoding-staging.searchstax.co/reverse?location=${i},${e}&components=country:US&app_id=${ja.appId}`,
|
|
4909
4922
|
{
|
|
4910
4923
|
method: "GET",
|
|
4911
4924
|
headers: {
|
|
4912
|
-
Authorization: `Token ${
|
|
4925
|
+
Authorization: `Token ${ja.relatedSearchesAPIKey}`
|
|
4913
4926
|
}
|
|
4914
4927
|
}
|
|
4915
4928
|
).then((a) => a.json()).then((a) => {
|
|
@@ -4992,7 +5005,7 @@ function an(i, e, t, a) {
|
|
|
4992
5005
|
/* @__PURE__ */ u.jsx(
|
|
4993
5006
|
sn,
|
|
4994
5007
|
{
|
|
4995
|
-
searchLocationTemplate:
|
|
5008
|
+
searchLocationTemplate: qa,
|
|
4996
5009
|
hooks: {
|
|
4997
5010
|
locationDecode: Ft.locationDecode,
|
|
4998
5011
|
locationDecodeCoordinatesToAddress: Ft.locationDecodeCoordinatesToAddress
|
|
@@ -5868,14 +5881,14 @@ function Mn(i) {
|
|
|
5868
5881
|
), b.searchstax.dataLayer.$selectedFacetsTemplateData.subscribe(
|
|
5869
5882
|
(T) => {
|
|
5870
5883
|
o(
|
|
5871
|
-
(T ?? []).filter((
|
|
5884
|
+
(T ?? []).filter((B) => B.type === "checkbox")
|
|
5872
5885
|
);
|
|
5873
5886
|
}
|
|
5874
5887
|
), f = !0);
|
|
5875
5888
|
}
|
|
5876
5889
|
function y(T) {
|
|
5877
|
-
var
|
|
5878
|
-
(
|
|
5890
|
+
var R;
|
|
5891
|
+
(R = b.searchstax.searchFacetsWidget) == null || R.unselectFacet(T);
|
|
5879
5892
|
}
|
|
5880
5893
|
function x() {
|
|
5881
5894
|
var T;
|
|
@@ -5888,33 +5901,33 @@ function Mn(i) {
|
|
|
5888
5901
|
m(T) ? l({ ...n, [T]: !0 }) : l({ ...n, [T]: !1 });
|
|
5889
5902
|
}
|
|
5890
5903
|
function S(T) {
|
|
5891
|
-
var
|
|
5892
|
-
return (
|
|
5893
|
-
}
|
|
5894
|
-
function
|
|
5895
|
-
var
|
|
5896
|
-
const ie =
|
|
5897
|
-
Ce[0] && ((
|
|
5898
|
-
|
|
5899
|
-
|
|
5904
|
+
var R;
|
|
5905
|
+
return (R = b.searchstax.searchFacetsWidget) == null ? void 0 : R.isChecked(T);
|
|
5906
|
+
}
|
|
5907
|
+
function j(T, R, B, de, H) {
|
|
5908
|
+
var Re;
|
|
5909
|
+
const ie = H ? "mobile-" : "desktop-", Ce = document.getElementsByClassName(ie + T);
|
|
5910
|
+
Ce[0] && ((Re = b.searchstax.searchFacetsWidget) == null || Re.onFacetSelect(
|
|
5911
|
+
R,
|
|
5912
|
+
B,
|
|
5900
5913
|
Ce[0],
|
|
5901
5914
|
!1,
|
|
5902
|
-
S(
|
|
5915
|
+
S(B)
|
|
5903
5916
|
));
|
|
5904
5917
|
}
|
|
5905
|
-
function P(T,
|
|
5906
|
-
var
|
|
5907
|
-
(
|
|
5918
|
+
function P(T, R) {
|
|
5919
|
+
var B;
|
|
5920
|
+
(B = b.searchstax.searchFacetsWidget) == null || B.onShowMoreLessClick(
|
|
5908
5921
|
T,
|
|
5909
|
-
|
|
5922
|
+
R,
|
|
5910
5923
|
!1
|
|
5911
5924
|
);
|
|
5912
5925
|
}
|
|
5913
|
-
function k(T,
|
|
5914
|
-
var
|
|
5915
|
-
(
|
|
5926
|
+
function k(T, R) {
|
|
5927
|
+
var B;
|
|
5928
|
+
(B = b.searchstax.searchFacetsWidget) == null || B.onShowMoreLessClick(
|
|
5916
5929
|
T,
|
|
5917
|
-
|
|
5930
|
+
R,
|
|
5918
5931
|
!0
|
|
5919
5932
|
);
|
|
5920
5933
|
}
|
|
@@ -5927,24 +5940,24 @@ function Mn(i) {
|
|
|
5927
5940
|
(T = b.searchstax.searchFacetsWidget) == null || T.closeOverlay();
|
|
5928
5941
|
}
|
|
5929
5942
|
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-facets-container" + g, children: [
|
|
5930
|
-
(e == null ? void 0 : e.hasResultsOrExternalPromotions) && !i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: un(e, c, m, w,
|
|
5943
|
+
(e == null ? void 0 : e.hasResultsOrExternalPromotions) && !i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: un(e, c, m, w, j, S, P) }),
|
|
5931
5944
|
i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.facetsTemplateDesktop(
|
|
5932
5945
|
e,
|
|
5933
5946
|
c,
|
|
5934
5947
|
m,
|
|
5935
5948
|
w,
|
|
5936
|
-
|
|
5949
|
+
j,
|
|
5937
5950
|
S,
|
|
5938
5951
|
P
|
|
5939
5952
|
) }),
|
|
5940
|
-
(a == null ? void 0 : a.hasResultsOrExternalPromotions) && !i.facetsTemplateMobile && /* @__PURE__ */ u.jsx(u.Fragment, { children: dn(a, r, c, m, w,
|
|
5953
|
+
(a == null ? void 0 : a.hasResultsOrExternalPromotions) && !i.facetsTemplateMobile && /* @__PURE__ */ u.jsx(u.Fragment, { children: dn(a, r, c, m, w, j, S, y, k, O, $, x) }),
|
|
5941
5954
|
i.facetsTemplateMobile && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.facetsTemplateMobile(
|
|
5942
5955
|
a,
|
|
5943
5956
|
r,
|
|
5944
5957
|
c,
|
|
5945
5958
|
m,
|
|
5946
5959
|
w,
|
|
5947
|
-
|
|
5960
|
+
j,
|
|
5948
5961
|
S,
|
|
5949
5962
|
y,
|
|
5950
5963
|
k,
|