@searchcraft/react-sdk 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  var wn = Object.defineProperty;
2
2
  var Sn = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var c = (e, t, r) => Sn(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsx as Oe } from "react/jsx-runtime";
5
- import Le from "react";
4
+ import { jsx as Le } from "react/jsx-runtime";
5
+ import Oe from "react";
6
6
  const Rn = "searchcraft-javascript-sdk", Et = (
7
7
  /* searchcraft-javascript-sdk */
8
8
  { experimentalSlotFixes: !1, hydratedSelectorName: "hydrated", lazyLoad: !1, shadowDom: !1, slotRelocation: !0, updatable: !0 }
@@ -47,7 +47,7 @@ var En = Object.defineProperty, Tn = (e, t) => {
47
47
  ael: (e, t, r, s) => e.addEventListener(t, r, s),
48
48
  rel: (e, t, r, s) => e.removeEventListener(t, r, s),
49
49
  ce: (e, t) => new CustomEvent(e, t)
50
- }, Mn = Et.shadowDom, On = (e) => Promise.resolve(e), Kr = !1, Ns = [], la = [], Ln = (e, t) => (r) => {
50
+ }, Mn = Et.shadowDom, Ln = (e) => Promise.resolve(e), Kr = !1, Ns = [], la = [], On = (e, t) => (r) => {
51
51
  e.push(r), Kr || (Kr = !0, Ce.$flags$ & 4 ? is(Xr) : Ce.raf(Xr));
52
52
  }, zs = (e) => {
53
53
  for (let t = 0; t < e.length; t++)
@@ -59,7 +59,7 @@ var En = Object.defineProperty, Tn = (e, t) => {
59
59
  e.length = 0;
60
60
  }, Xr = () => {
61
61
  zs(Ns), zs(la), (Kr = Ns.length > 0) && Ce.raf(Xr);
62
- }, is = (e) => On().then(e), Fn = /* @__PURE__ */ Ln(la), cs = (e) => (e = typeof e, e === "object" || e === "function"), Dn = {};
62
+ }, is = (e) => Ln().then(e), Fn = /* @__PURE__ */ On(la), cs = (e) => (e = typeof e, e === "object" || e === "function"), Dn = {};
63
63
  Tn(Dn, {
64
64
  err: () => ua,
65
65
  map: () => Nn,
@@ -368,12 +368,12 @@ var es, ls, yr = !1, kr = !1, us = !1, Se = !1, Cr = (e, t, r) => {
368
368
  {
369
369
  let _ = (s = C["s-ol"]) == null ? void 0 : s.previousSibling;
370
370
  for (; _; ) {
371
- let L = (a = _["s-nr"]) != null ? a : null;
372
- if (L && L["s-sn"] === C["s-sn"] && P === (L.__parentNode || L.parentNode)) {
373
- for (L = L.nextSibling; L === C || L != null && L["s-sr"]; )
374
- L = L == null ? void 0 : L.nextSibling;
375
- if (!L || !L["s-nr"]) {
376
- $ = L;
371
+ let O = (a = _["s-nr"]) != null ? a : null;
372
+ if (O && O["s-sn"] === C["s-sn"] && P === (O.__parentNode || O.parentNode)) {
373
+ for (O = O.nextSibling; O === C || O != null && O["s-sr"]; )
374
+ O = O == null ? void 0 : O.nextSibling;
375
+ if (!O || !O["s-nr"]) {
376
+ $ = O;
377
377
  break;
378
378
  }
379
379
  }
@@ -509,8 +509,8 @@ var es, ls, yr = !1, kr = !1, us = !1, Se = !1, Cr = (e, t, r) => {
509
509
  if (E == null) {
510
510
  const $ = st(this), U = $ == null ? void 0 : $.$flags$;
511
511
  if (U && !(U & 8) && U & 128 && p !== d) {
512
- const _ = this, L = (C = t.$watchers$) == null ? void 0 : C[l];
513
- L == null || L.forEach((V) => {
512
+ const _ = this, O = (C = t.$watchers$) == null ? void 0 : C[l];
513
+ O == null || O.forEach((V) => {
514
514
  _[V] != null && _[V].call(_, p, d, l);
515
515
  });
516
516
  }
@@ -674,7 +674,7 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
674
674
  }), C || (C = function(M, j) {
675
675
  return new M(...j);
676
676
  });
677
- const E = ne(Array.prototype.forEach), P = ne(Array.prototype.lastIndexOf), $ = ne(Array.prototype.pop), U = ne(Array.prototype.push), D = ne(Array.prototype.splice), _ = ne(String.prototype.toLowerCase), L = ne(String.prototype.toString), V = ne(String.prototype.match), ee = ne(String.prototype.replace), xe = ne(String.prototype.indexOf), at = ne(String.prototype.trim), we = ne(Object.prototype.hasOwnProperty), se = ne(RegExp.prototype.test), Qe = Tr(TypeError);
677
+ const E = ne(Array.prototype.forEach), P = ne(Array.prototype.lastIndexOf), $ = ne(Array.prototype.pop), U = ne(Array.prototype.push), D = ne(Array.prototype.splice), _ = ne(String.prototype.toLowerCase), O = ne(String.prototype.toString), V = ne(String.prototype.match), ee = ne(String.prototype.replace), xe = ne(String.prototype.indexOf), at = ne(String.prototype.trim), we = ne(Object.prototype.hasOwnProperty), se = ne(RegExp.prototype.test), Qe = Tr(TypeError);
678
678
  function ne(H) {
679
679
  return function(M) {
680
680
  for (var j = arguments.length, B = new Array(j > 1 ? j - 1 : 0), oe = 1; oe < j; oe++)
@@ -736,12 +736,12 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
736
736
  ), Mr = l(/^(?:\w+script|data):/i), Yt = l(
737
737
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
738
738
  // eslint-disable-line no-control-regex
739
- ), Qt = l(/^html$/i), Or = l(/^[a-z][.\w]*(-[.\w]+)+$/i);
739
+ ), Qt = l(/^html$/i), Lr = l(/^[a-z][.\w]*(-[.\w]+)+$/i);
740
740
  var Kt = /* @__PURE__ */ Object.freeze({
741
741
  __proto__: null,
742
742
  ARIA_ATTR: _t,
743
743
  ATTR_WHITESPACE: Yt,
744
- CUSTOM_ELEMENT: Or,
744
+ CUSTOM_ELEMENT: Lr,
745
745
  DATA_ATTR: gt,
746
746
  DOCTYPE_NAME: Qt,
747
747
  ERB_EXPR: Zt,
@@ -757,7 +757,7 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
757
757
  progressingInstruction: 7,
758
758
  comment: 8,
759
759
  document: 9
760
- }, Lr = function() {
760
+ }, Or = function() {
761
761
  return typeof window > "u" ? null : window;
762
762
  }, Fr = function(M, j) {
763
763
  if (typeof M != "object" || typeof M.createPolicy != "function")
@@ -792,8 +792,8 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
792
792
  };
793
793
  };
794
794
  function Xt() {
795
- let H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Lr();
796
- const M = (O) => Xt(O);
795
+ let H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Or();
796
+ const M = (L) => Xt(L);
797
797
  if (M.version = "3.2.4", M.removed = [], !H || !H.document || H.document.nodeType !== Xe.document || !H.Element)
798
798
  return M.isSupported = !1, M;
799
799
  let {
@@ -805,14 +805,14 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
805
805
  Node: bt,
806
806
  Element: Mt,
807
807
  NodeFilter: it,
808
- NamedNodeMap: Ot = H.NamedNodeMap || H.MozNamedAttrMap,
808
+ NamedNodeMap: Lt = H.NamedNodeMap || H.MozNamedAttrMap,
809
809
  HTMLFormElement: Nr,
810
- DOMParser: Lt,
810
+ DOMParser: Ot,
811
811
  trustedTypes: vt
812
812
  } = H, Ie = Mt.prototype, ct = nt(Ie, "cloneNode"), zr = nt(Ie, "remove"), Jt = nt(Ie, "nextSibling"), Re = nt(Ie, "childNodes"), lt = nt(Ie, "parentNode");
813
813
  if (typeof Je == "function") {
814
- const O = j.createElement("template");
815
- O.content && O.content.ownerDocument && (j = O.content.ownerDocument);
814
+ const L = j.createElement("template");
815
+ L.content && L.content.ownerDocument && (j = L.content.ownerDocument);
816
816
  }
817
817
  let ie, $e = "";
818
818
  const {
@@ -869,7 +869,7 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
869
869
  let je = null;
870
870
  const Ss = N({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ir = "http://www.w3.org/1998/Math/MathML", cr = "http://www.w3.org/2000/svg", Ve = "http://www.w3.org/1999/xhtml";
871
871
  let Ct = Ve, Br = !1, jr = null;
872
- const gn = N({}, [ir, cr, Ve], L);
872
+ const gn = N({}, [ir, cr, Ve], O);
873
873
  let lr = N({}, ["mi", "mo", "mn", "ms", "mtext"]), ur = N({}, ["annotation-xml"]);
874
874
  const bn = N({}, ["title", "style", "font", "a", "script"]);
875
875
  let Nt = null;
@@ -881,7 +881,7 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
881
881
  let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
882
882
  if (!(xt && xt === b)) {
883
883
  if ((!b || typeof b != "object") && (b = {}), b = Pe(b), Nt = // eslint-disable-next-line unicorn/prefer-includes
884
- vn.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? yn : b.PARSER_MEDIA_TYPE, ce = Nt === "application/xhtml+xml" ? L : _, te = we(b, "ALLOWED_TAGS") ? N({}, b.ALLOWED_TAGS, ce) : ar, ae = we(b, "ALLOWED_ATTR") ? N({}, b.ALLOWED_ATTR, ce) : nr, jr = we(b, "ALLOWED_NAMESPACES") ? N({}, b.ALLOWED_NAMESPACES, L) : gn, je = we(b, "ADD_URI_SAFE_ATTR") ? N(Pe(Ss), b.ADD_URI_SAFE_ATTR, ce) : Ss, or = we(b, "ADD_DATA_URI_TAGS") ? N(Pe(kt), b.ADD_DATA_URI_TAGS, ce) : kt, Be = we(b, "FORBID_CONTENTS") ? N({}, b.FORBID_CONTENTS, ce) : Dt, ze = we(b, "FORBID_TAGS") ? N({}, b.FORBID_TAGS, ce) : {}, f = we(b, "FORBID_ATTR") ? N({}, b.FORBID_ATTR, ce) : {}, Ue = we(b, "USE_PROFILES") ? b.USE_PROFILES : !1, i = b.ALLOW_ARIA_ATTR !== !1, h = b.ALLOW_DATA_ATTR !== !1, g = b.ALLOW_UNKNOWN_PROTOCOLS || !1, v = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, y = b.SAFE_FOR_TEMPLATES || !1, S = b.SAFE_FOR_XML !== !1, k = b.WHOLE_DOCUMENT || !1, w = b.RETURN_DOM || !1, W = b.RETURN_DOM_FRAGMENT || !1, I = b.RETURN_TRUSTED_TYPE || !1, x = b.FORCE_BODY || !1, re = b.SANITIZE_DOM !== !1, G = b.SANITIZE_NAMED_PROPS || !1, yt = b.KEEP_CONTENT !== !1, He = b.IN_PLACE || !1, sr = b.ALLOWED_URI_REGEXP || It, Ct = b.NAMESPACE || Ve, lr = b.MATHML_TEXT_INTEGRATION_POINTS || lr, ur = b.HTML_INTEGRATION_POINTS || ur, Y = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Rs(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Y.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Rs(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Y.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Y.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), y && (h = !1), W && (w = !0), Ue && (te = N({}, pt), ae = [], Ue.html === !0 && (N(te, Gt), N(ae, Pt)), Ue.svg === !0 && (N(te, Ke), N(ae, $t), N(ae, mt)), Ue.svgFilters === !0 && (N(te, ot), N(ae, $t), N(ae, mt)), Ue.mathMl === !0 && (N(te, dt), N(ae, Wt), N(ae, mt))), b.ADD_TAGS && (te === ar && (te = Pe(te)), N(te, b.ADD_TAGS, ce)), b.ADD_ATTR && (ae === nr && (ae = Pe(ae)), N(ae, b.ADD_ATTR, ce)), b.ADD_URI_SAFE_ATTR && N(je, b.ADD_URI_SAFE_ATTR, ce), b.FORBID_CONTENTS && (Be === Dt && (Be = Pe(Be)), N(Be, b.FORBID_CONTENTS, ce)), yt && (te["#text"] = !0), k && N(te, ["html", "head", "body"]), te.table && (N(te, ["tbody"]), delete ze.tbody), b.TRUSTED_TYPES_POLICY) {
884
+ vn.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? yn : b.PARSER_MEDIA_TYPE, ce = Nt === "application/xhtml+xml" ? O : _, te = we(b, "ALLOWED_TAGS") ? N({}, b.ALLOWED_TAGS, ce) : ar, ae = we(b, "ALLOWED_ATTR") ? N({}, b.ALLOWED_ATTR, ce) : nr, jr = we(b, "ALLOWED_NAMESPACES") ? N({}, b.ALLOWED_NAMESPACES, O) : gn, je = we(b, "ADD_URI_SAFE_ATTR") ? N(Pe(Ss), b.ADD_URI_SAFE_ATTR, ce) : Ss, or = we(b, "ADD_DATA_URI_TAGS") ? N(Pe(kt), b.ADD_DATA_URI_TAGS, ce) : kt, Be = we(b, "FORBID_CONTENTS") ? N({}, b.FORBID_CONTENTS, ce) : Dt, ze = we(b, "FORBID_TAGS") ? N({}, b.FORBID_TAGS, ce) : {}, f = we(b, "FORBID_ATTR") ? N({}, b.FORBID_ATTR, ce) : {}, Ue = we(b, "USE_PROFILES") ? b.USE_PROFILES : !1, i = b.ALLOW_ARIA_ATTR !== !1, h = b.ALLOW_DATA_ATTR !== !1, g = b.ALLOW_UNKNOWN_PROTOCOLS || !1, v = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, y = b.SAFE_FOR_TEMPLATES || !1, S = b.SAFE_FOR_XML !== !1, k = b.WHOLE_DOCUMENT || !1, w = b.RETURN_DOM || !1, W = b.RETURN_DOM_FRAGMENT || !1, I = b.RETURN_TRUSTED_TYPE || !1, x = b.FORCE_BODY || !1, re = b.SANITIZE_DOM !== !1, G = b.SANITIZE_NAMED_PROPS || !1, yt = b.KEEP_CONTENT !== !1, He = b.IN_PLACE || !1, sr = b.ALLOWED_URI_REGEXP || It, Ct = b.NAMESPACE || Ve, lr = b.MATHML_TEXT_INTEGRATION_POINTS || lr, ur = b.HTML_INTEGRATION_POINTS || ur, Y = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Rs(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Y.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Rs(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Y.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Y.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), y && (h = !1), W && (w = !0), Ue && (te = N({}, pt), ae = [], Ue.html === !0 && (N(te, Gt), N(ae, Pt)), Ue.svg === !0 && (N(te, Ke), N(ae, $t), N(ae, mt)), Ue.svgFilters === !0 && (N(te, ot), N(ae, $t), N(ae, mt)), Ue.mathMl === !0 && (N(te, dt), N(ae, Wt), N(ae, mt))), b.ADD_TAGS && (te === ar && (te = Pe(te)), N(te, b.ADD_TAGS, ce)), b.ADD_ATTR && (ae === nr && (ae = Pe(ae)), N(ae, b.ADD_ATTR, ce)), b.ADD_URI_SAFE_ATTR && N(je, b.ADD_URI_SAFE_ATTR, ce), b.FORBID_CONTENTS && (Be === Dt && (Be = Pe(Be)), N(Be, b.FORBID_CONTENTS, ce)), yt && (te["#text"] = !0), k && N(te, ["html", "head", "body"]), te.table && (N(te, ["tbody"]), delete ze.tbody), b.TRUSTED_TYPES_POLICY) {
885
885
  if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
886
886
  throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
887
887
  if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -943,7 +943,7 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
943
943
  const Z = ie ? ie.createHTML(b) : b;
944
944
  if (Ct === Ve)
945
945
  try {
946
- R = new Lt().parseFromString(Z, Nt);
946
+ R = new Ot().parseFromString(Z, Nt);
947
947
  } catch {
948
948
  }
949
949
  if (!R || !R.documentElement) {
@@ -964,12 +964,12 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
964
964
  null
965
965
  );
966
966
  }, qr = function(b) {
967
- return b instanceof Nr && (typeof b.nodeName != "string" || typeof b.textContent != "string" || typeof b.removeChild != "function" || !(b.attributes instanceof Ot) || typeof b.removeAttribute != "function" || typeof b.setAttribute != "function" || typeof b.namespaceURI != "string" || typeof b.insertBefore != "function" || typeof b.hasChildNodes != "function");
967
+ return b instanceof Nr && (typeof b.nodeName != "string" || typeof b.textContent != "string" || typeof b.removeChild != "function" || !(b.attributes instanceof Lt) || typeof b.removeAttribute != "function" || typeof b.setAttribute != "function" || typeof b.namespaceURI != "string" || typeof b.insertBefore != "function" || typeof b.hasChildNodes != "function");
968
968
  }, _s = function(b) {
969
969
  return typeof bt == "function" && b instanceof bt;
970
970
  };
971
- function qe(O, b, R) {
972
- E(O, (A) => {
971
+ function qe(L, b, R) {
972
+ E(L, (A) => {
973
973
  A.call(M, b, R, xt);
974
974
  });
975
975
  }
@@ -1032,7 +1032,7 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1032
1032
  return !0;
1033
1033
  }, Ms = function(b) {
1034
1034
  return b !== "annotation-xml" && V(b, Ur);
1035
- }, Os = function(b) {
1035
+ }, Ls = function(b) {
1036
1036
  qe(J.beforeSanitizeAttributes, b, null);
1037
1037
  const {
1038
1038
  attributes: R
@@ -1067,10 +1067,10 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1067
1067
  y && E([et, ve, De], (Fs) => {
1068
1068
  me = ee(me, Fs, " ");
1069
1069
  });
1070
- const Ls = ce(b.nodeName);
1071
- if (As(Ls, zt, me)) {
1070
+ const Os = ce(b.nodeName);
1071
+ if (As(Os, zt, me)) {
1072
1072
  if (ie && typeof vt == "object" && typeof vt.getAttributeType == "function" && !ye)
1073
- switch (vt.getAttributeType(Ls, zt)) {
1073
+ switch (vt.getAttributeType(Os, zt)) {
1074
1074
  case "TrustedHTML": {
1075
1075
  me = ie.createHTML(me);
1076
1076
  break;
@@ -1087,44 +1087,44 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1087
1087
  }
1088
1088
  }
1089
1089
  qe(J.afterSanitizeAttributes, b, null);
1090
- }, xn = function O(b) {
1090
+ }, xn = function L(b) {
1091
1091
  let R = null;
1092
1092
  const A = $s(b);
1093
1093
  for (qe(J.beforeSanitizeShadowDOM, b, null); R = A.nextNode(); )
1094
- qe(J.uponSanitizeShadowNode, R, null), Is(R), Os(R), R.content instanceof be && O(R.content);
1094
+ qe(J.uponSanitizeShadowNode, R, null), Is(R), Ls(R), R.content instanceof be && L(R.content);
1095
1095
  qe(J.afterSanitizeShadowDOM, b, null);
1096
1096
  };
1097
- return M.sanitize = function(O) {
1097
+ return M.sanitize = function(L) {
1098
1098
  let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, R = null, A = null, Z = null, de = null;
1099
- if (Br = !O, Br && (O = "<!-->"), typeof O != "string" && !_s(O))
1100
- if (typeof O.toString == "function") {
1101
- if (O = O.toString(), typeof O != "string")
1099
+ if (Br = !L, Br && (L = "<!-->"), typeof L != "string" && !_s(L))
1100
+ if (typeof L.toString == "function") {
1101
+ if (L = L.toString(), typeof L != "string")
1102
1102
  throw Qe("dirty is not a string, aborting");
1103
1103
  } else
1104
1104
  throw Qe("toString is not a function");
1105
1105
  if (!M.isSupported)
1106
- return O;
1107
- if (T || Vr(b), M.removed = [], typeof O == "string" && (He = !1), He) {
1108
- if (O.nodeName) {
1109
- const Me = ce(O.nodeName);
1106
+ return L;
1107
+ if (T || Vr(b), M.removed = [], typeof L == "string" && (He = !1), He) {
1108
+ if (L.nodeName) {
1109
+ const Me = ce(L.nodeName);
1110
1110
  if (!te[Me] || ze[Me])
1111
1111
  throw Qe("root node is forbidden and cannot be sanitized in-place");
1112
1112
  }
1113
- } else if (O instanceof bt)
1114
- R = Ps("<!---->"), A = R.ownerDocument.importNode(O, !0), A.nodeType === Xe.element && A.nodeName === "BODY" || A.nodeName === "HTML" ? R = A : R.appendChild(A);
1113
+ } else if (L instanceof bt)
1114
+ R = Ps("<!---->"), A = R.ownerDocument.importNode(L, !0), A.nodeType === Xe.element && A.nodeName === "BODY" || A.nodeName === "HTML" ? R = A : R.appendChild(A);
1115
1115
  else {
1116
1116
  if (!w && !y && !k && // eslint-disable-next-line unicorn/prefer-includes
1117
- O.indexOf("<") === -1)
1118
- return ie && I ? ie.createHTML(O) : O;
1119
- if (R = Ps(O), !R)
1117
+ L.indexOf("<") === -1)
1118
+ return ie && I ? ie.createHTML(L) : L;
1119
+ if (R = Ps(L), !R)
1120
1120
  return w ? null : I ? $e : "";
1121
1121
  }
1122
1122
  R && x && Ae(R.firstChild);
1123
- const le = $s(He ? O : R);
1123
+ const le = $s(He ? L : R);
1124
1124
  for (; Z = le.nextNode(); )
1125
- Is(Z), Os(Z), Z.content instanceof be && xn(Z.content);
1125
+ Is(Z), Ls(Z), Z.content instanceof be && xn(Z.content);
1126
1126
  if (He)
1127
- return O;
1127
+ return L;
1128
1128
  if (w) {
1129
1129
  if (W)
1130
1130
  for (de = Hr.call(R.ownerDocument); R.firstChild; )
@@ -1139,24 +1139,24 @@ var wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1139
1139
  ye = ee(ye, Me, " ");
1140
1140
  }), ie && I ? ie.createHTML(ye) : ye;
1141
1141
  }, M.setConfig = function() {
1142
- let O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1143
- Vr(O), T = !0;
1142
+ let L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1143
+ Vr(L), T = !0;
1144
1144
  }, M.clearConfig = function() {
1145
1145
  xt = null, T = !1;
1146
- }, M.isValidAttribute = function(O, b, R) {
1146
+ }, M.isValidAttribute = function(L, b, R) {
1147
1147
  xt || Vr({});
1148
- const A = ce(O), Z = ce(b);
1148
+ const A = ce(L), Z = ce(b);
1149
1149
  return As(A, Z, R);
1150
- }, M.addHook = function(O, b) {
1151
- typeof b == "function" && U(J[O], b);
1152
- }, M.removeHook = function(O, b) {
1150
+ }, M.addHook = function(L, b) {
1151
+ typeof b == "function" && U(J[L], b);
1152
+ }, M.removeHook = function(L, b) {
1153
1153
  if (b !== void 0) {
1154
- const R = P(J[O], b);
1155
- return R === -1 ? void 0 : D(J[O], R, 1)[0];
1154
+ const R = P(J[L], b);
1155
+ return R === -1 ? void 0 : D(J[L], R, 1)[0];
1156
1156
  }
1157
- return $(J[O]);
1158
- }, M.removeHooks = function(O) {
1159
- J[O] = [];
1157
+ return $(J[L]);
1158
+ }, M.removeHooks = function(L) {
1159
+ J[L] = [];
1160
1160
  }, M.removeAllHooks = function() {
1161
1161
  J = At();
1162
1162
  }, M;
@@ -2296,7 +2296,7 @@ function Ma() {
2296
2296
  }
2297
2297
  });
2298
2298
  }
2299
- const Oo = Aa, Oa = Ma, Lo = ds, Fo = /* @__PURE__ */ X(class extends K {
2299
+ const Lo = Aa, La = Ma, Oo = ds, Fo = /* @__PURE__ */ X(class extends K {
2300
2300
  constructor() {
2301
2301
  super();
2302
2302
  c(this, "label");
@@ -2308,7 +2308,7 @@ const Oo = Aa, Oa = Ma, Lo = ds, Fo = /* @__PURE__ */ X(class extends K {
2308
2308
  }, [0, "searchcraft-loading", {
2309
2309
  label: [1]
2310
2310
  }]);
2311
- function La() {
2311
+ function Oa() {
2312
2312
  if (typeof customElements > "u")
2313
2313
  return;
2314
2314
  ["searchcraft-loading"].forEach((t) => {
@@ -2319,7 +2319,7 @@ function La() {
2319
2319
  }
2320
2320
  });
2321
2321
  }
2322
- const Do = La, Fa = /* @__PURE__ */ X(class extends K {
2322
+ const Do = Oa, Fa = /* @__PURE__ */ X(class extends K {
2323
2323
  constructor() {
2324
2324
  super();
2325
2325
  /**
@@ -2668,8 +2668,8 @@ const qo = /* @__PURE__ */ X(class extends K {
2668
2668
  r.push(m("searchcraft-ad", { "searchcraft-id": this.searchcraftId, adSource: "Custom", key: `${D}-ad`, renderPosition: "top" }));
2669
2669
  u.forEach((D, _) => {
2670
2670
  if (s && _ % s === 0 && _ + s < u.length && _ >= s)
2671
- for (let L = 0; L < a; L++)
2672
- r.push(m("searchcraft-ad", { "searchcraft-id": this.searchcraftId, adSource: "Custom", key: `${D.id}-ad-${L}`, renderPosition: "interstitial" }));
2671
+ for (let O = 0; O < a; O++)
2672
+ r.push(m("searchcraft-ad", { "searchcraft-id": this.searchcraftId, adSource: "Custom", key: `${D.id}-ad-${O}`, renderPosition: "interstitial" }));
2673
2673
  r.push(m("searchcraft-popover-list-item", { "searchcraft-id": this.searchcraftId, item: D, key: D.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + _ }));
2674
2674
  });
2675
2675
  for (let D = 0; D < n; D++)
@@ -2677,8 +2677,8 @@ const qo = /* @__PURE__ */ X(class extends K {
2677
2677
  return m("div", { class: "searchcraft-popover-list-view" }, r);
2678
2678
  }
2679
2679
  renderWithNativoAds() {
2680
- var d, p, C, E, P, $, U, D, _, L;
2681
- const r = [], s = ((p = (d = this.config) == null ? void 0 : d.nativoConfig) == null ? void 0 : p.adInterstialStartIndex) || 0, a = ((E = (C = this.config) == null ? void 0 : C.nativoConfig) == null ? void 0 : E.adInterstitialInterval) || 0, o = (($ = (P = this.config) == null ? void 0 : P.nativoConfig) == null ? void 0 : $.adInterstitialQuantity) || 1, n = ((D = (U = this.config) == null ? void 0 : U.nativoConfig) == null ? void 0 : D.adStartQuantity) || 0, u = ((L = (_ = this.config) == null ? void 0 : _.nativoConfig) == null ? void 0 : L.adEndQuantity) || 0, l = this.searchClientResponseItems || [];
2680
+ var d, p, C, E, P, $, U, D, _, O;
2681
+ const r = [], s = ((p = (d = this.config) == null ? void 0 : d.nativoConfig) == null ? void 0 : p.adInterstialStartIndex) || 0, a = ((E = (C = this.config) == null ? void 0 : C.nativoConfig) == null ? void 0 : E.adInterstitialInterval) || 0, o = (($ = (P = this.config) == null ? void 0 : P.nativoConfig) == null ? void 0 : $.adInterstitialQuantity) || 1, n = ((D = (U = this.config) == null ? void 0 : U.nativoConfig) == null ? void 0 : D.adStartQuantity) || 0, u = ((O = (_ = this.config) == null ? void 0 : _.nativoConfig) == null ? void 0 : O.adEndQuantity) || 0, l = this.searchClientResponseItems || [];
2682
2682
  for (let V = 0; V < n; V++)
2683
2683
  r.push(m("searchcraft-ad", { "searchcraft-id": this.searchcraftId, adSource: "Nativo", key: `${V}-ad`, renderPosition: "top" }));
2684
2684
  l.forEach((V, ee) => {
@@ -3164,8 +3164,8 @@ const Xo = Wa, Za = /* @__PURE__ */ X(class extends K {
3164
3164
  r.push(m("searchcraft-ad", { "searchcraft-id": this.searchcraftId, adSource: "Custom", key: `${D}-ad`, renderPosition: "top" }));
3165
3165
  u.forEach((D, _) => {
3166
3166
  if (s && _ % s === 0 && _ + s < u.length && _ >= s)
3167
- for (let L = 0; L < a; L++)
3168
- r.push(m("searchcraft-ad", { "searchcraft-id": this.searchcraftId, adSource: "Custom", key: `${D.id}-ad-${L}`, renderPosition: "interstitial" }));
3167
+ for (let O = 0; O < a; O++)
3168
+ r.push(m("searchcraft-ad", { "searchcraft-id": this.searchcraftId, adSource: "Custom", key: `${D.id}-ad-${O}`, renderPosition: "interstitial" }));
3169
3169
  r.push(m("searchcraft-search-result", { "searchcraft-id": this.searchcraftId, key: D.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + _, index: _, item: D, template: this.template }));
3170
3170
  });
3171
3171
  for (let D = 0; D < n; D++)
@@ -3173,8 +3173,8 @@ const Xo = Wa, Za = /* @__PURE__ */ X(class extends K {
3173
3173
  return m("div", { class: "searchcraft-search-results" }, r);
3174
3174
  }
3175
3175
  renderWithNativoAds() {
3176
- var d, p, C, E, P, $, U, D, _, L;
3177
- const r = [], s = ((p = (d = this.config) == null ? void 0 : d.nativoConfig) == null ? void 0 : p.adInterstialStartIndex) || 0, a = ((E = (C = this.config) == null ? void 0 : C.nativoConfig) == null ? void 0 : E.adInterstitialInterval) || 0, o = (($ = (P = this.config) == null ? void 0 : P.nativoConfig) == null ? void 0 : $.adInterstitialQuantity) || 1, n = ((D = (U = this.config) == null ? void 0 : U.nativoConfig) == null ? void 0 : D.adStartQuantity) || 0, u = ((L = (_ = this.config) == null ? void 0 : _.nativoConfig) == null ? void 0 : L.adEndQuantity) || 0, l = this.searchClientResponseItems || [];
3176
+ var d, p, C, E, P, $, U, D, _, O;
3177
+ const r = [], s = ((p = (d = this.config) == null ? void 0 : d.nativoConfig) == null ? void 0 : p.adInterstialStartIndex) || 0, a = ((E = (C = this.config) == null ? void 0 : C.nativoConfig) == null ? void 0 : E.adInterstitialInterval) || 0, o = (($ = (P = this.config) == null ? void 0 : P.nativoConfig) == null ? void 0 : $.adInterstitialQuantity) || 1, n = ((D = (U = this.config) == null ? void 0 : U.nativoConfig) == null ? void 0 : D.adStartQuantity) || 0, u = ((O = (_ = this.config) == null ? void 0 : _.nativoConfig) == null ? void 0 : O.adEndQuantity) || 0, l = this.searchClientResponseItems || [];
3178
3178
  for (let V = 0; V < n; V++)
3179
3179
  r.push(m("searchcraft-ad", { "searchcraft-id": this.searchcraftId, adSource: "Nativo", key: `${V}-ad`, renderPosition: "top" }));
3180
3180
  l.forEach((V, ee) => {
@@ -3442,13 +3442,13 @@ var ss = { exports: {} };
3442
3442
  const g = {
3443
3443
  replace: (v, y) => {
3444
3444
  let S = typeof y == "string" ? y : y.source;
3445
- return S = S.replace(L.caret, "$1"), h = h.replace(v, S), g;
3445
+ return S = S.replace(O.caret, "$1"), h = h.replace(v, S), g;
3446
3446
  },
3447
3447
  getRegex: () => new RegExp(h, i)
3448
3448
  };
3449
3449
  return g;
3450
3450
  }
3451
- var L = {
3451
+ var O = {
3452
3452
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
3453
3453
  outputLinkReplace: /\\([\[\]])/g,
3454
3454
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -3541,12 +3541,12 @@ var ss = { exports: {} };
3541
3541
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
3542
3542
  paragraph: _(N).replace("hr", at).replace("heading", ` *#{1,6} *[^
3543
3543
  ]`).replace("lheading", ne).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
3544
- }, mt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ir = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Zt = /^( {2,}|\\)\n(?!\s*$)/, Ar = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, gt = /[\p{P}\p{S}]/u, _t = /[\s\p{P}\p{S}]/u, It = /[^\s\p{P}\p{S}]/u, Mr = _(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, _t).getRegex(), Yt = /(?!~)[\p{P}\p{S}]/u, Qt = /(?!~)[\s\p{P}\p{S}]/u, Or = /(?:[^\s\p{P}\p{S}]|~)/u, Kt = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Xe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Lr = _(Xe, "u").replace(/punct/g, gt).getRegex(), Fr = _(Xe, "u").replace(/punct/g, Yt).getRegex(), At = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Xt = _(At, "gu").replace(/notPunctSpace/g, It).replace(/punctSpace/g, _t).replace(/punct/g, gt).getRegex(), Dr = _(At, "gu").replace(/notPunctSpace/g, Or).replace(/punctSpace/g, Qt).replace(/punct/g, Yt).getRegex(), H = _(
3544
+ }, mt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ir = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Zt = /^( {2,}|\\)\n(?!\s*$)/, Ar = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, gt = /[\p{P}\p{S}]/u, _t = /[\s\p{P}\p{S}]/u, It = /[^\s\p{P}\p{S}]/u, Mr = _(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, _t).getRegex(), Yt = /(?!~)[\p{P}\p{S}]/u, Qt = /(?!~)[\s\p{P}\p{S}]/u, Lr = /(?:[^\s\p{P}\p{S}]|~)/u, Kt = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Xe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Or = _(Xe, "u").replace(/punct/g, gt).getRegex(), Fr = _(Xe, "u").replace(/punct/g, Yt).getRegex(), At = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Xt = _(At, "gu").replace(/notPunctSpace/g, It).replace(/punctSpace/g, _t).replace(/punct/g, gt).getRegex(), Dr = _(At, "gu").replace(/notPunctSpace/g, Lr).replace(/punctSpace/g, Qt).replace(/punct/g, Yt).getRegex(), H = _(
3545
3545
  "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
3546
3546
  "gu"
3547
3547
  ).replace(/notPunctSpace/g, It).replace(/punctSpace/g, _t).replace(/punct/g, gt).getRegex(), M = _(/\\(punct)/, "gu").replace(/punct/g, gt).getRegex(), j = _(/^<(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(), B = _(ot).replace("(?:-->|$)", "-->").getRegex(), oe = _(
3548
3548
  "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
3549
- ).replace("comment", B).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), be = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Je = _(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", be).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), bt = _(/^!?\[(label)\]\[(ref)\]/).replace("label", be).replace("ref", Pe).getRegex(), Mt = _(/^!?\[(ref)\](?:\[\])?/).replace("ref", Pe).getRegex(), it = _("reflink|nolink(?!\\()", "g").replace("reflink", bt).replace("nolink", Mt).getRegex(), Ot = {
3549
+ ).replace("comment", B).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), be = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Je = _(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", be).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), bt = _(/^!?\[(label)\]\[(ref)\]/).replace("label", be).replace("ref", Pe).getRegex(), Mt = _(/^!?\[(ref)\](?:\[\])?/).replace("ref", Pe).getRegex(), it = _("reflink|nolink(?!\\()", "g").replace("reflink", bt).replace("nolink", Mt).getRegex(), Lt = {
3550
3550
  _backpedal: D,
3551
3551
  // only used for GFM url
3552
3552
  anyPunctuation: M,
@@ -3555,7 +3555,7 @@ var ss = { exports: {} };
3555
3555
  br: Zt,
3556
3556
  code: Ir,
3557
3557
  del: D,
3558
- emStrongLDelim: Lr,
3558
+ emStrongLDelim: Or,
3559
3559
  emStrongRDelimAst: Xt,
3560
3560
  emStrongRDelimUnd: H,
3561
3561
  escape: mt,
@@ -3568,11 +3568,11 @@ var ss = { exports: {} };
3568
3568
  text: Ar,
3569
3569
  url: D
3570
3570
  }, Nr = {
3571
- ...Ot,
3571
+ ...Lt,
3572
3572
  link: _(/^!?\[(label)\]\((.*?)\)/).replace("label", be).getRegex(),
3573
3573
  reflink: _(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", be).getRegex()
3574
- }, Lt = {
3575
- ...Ot,
3574
+ }, Ot = {
3575
+ ...Lt,
3576
3576
  emStrongRDelimAst: Dr,
3577
3577
  emStrongLDelim: Fr,
3578
3578
  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(),
@@ -3580,16 +3580,16 @@ var ss = { exports: {} };
3580
3580
  del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
3581
3581
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
3582
3582
  }, vt = {
3583
- ...Lt,
3583
+ ...Ot,
3584
3584
  br: _(Zt).replace("{2,}", "*").getRegex(),
3585
- text: _(Lt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
3585
+ text: _(Ot.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
3586
3586
  }, Ie = {
3587
3587
  normal: pt,
3588
3588
  gfm: $t,
3589
3589
  pedantic: Wt
3590
3590
  }, ct = {
3591
- normal: Ot,
3592
- gfm: Lt,
3591
+ normal: Lt,
3592
+ gfm: Ot,
3593
3593
  breaks: vt,
3594
3594
  pedantic: Nr
3595
3595
  }, zr = {
@@ -3601,15 +3601,15 @@ var ss = { exports: {} };
3601
3601
  }, Jt = (f) => zr[f];
3602
3602
  function Re(f, i) {
3603
3603
  if (i) {
3604
- if (L.escapeTest.test(f))
3605
- return f.replace(L.escapeReplace, Jt);
3606
- } else if (L.escapeTestNoEncode.test(f))
3607
- return f.replace(L.escapeReplaceNoEncode, Jt);
3604
+ if (O.escapeTest.test(f))
3605
+ return f.replace(O.escapeReplace, Jt);
3606
+ } else if (O.escapeTestNoEncode.test(f))
3607
+ return f.replace(O.escapeReplaceNoEncode, Jt);
3608
3608
  return f;
3609
3609
  }
3610
3610
  function lt(f) {
3611
3611
  try {
3612
- f = encodeURI(f).replace(L.percentDecode, "%");
3612
+ f = encodeURI(f).replace(O.percentDecode, "%");
3613
3613
  } catch {
3614
3614
  return null;
3615
3615
  }
@@ -3617,11 +3617,11 @@ var ss = { exports: {} };
3617
3617
  }
3618
3618
  function ie(f, i) {
3619
3619
  var y;
3620
- const h = f.replace(L.findPipe, (S, k, T) => {
3620
+ const h = f.replace(O.findPipe, (S, k, T) => {
3621
3621
  let x = !1, w = k;
3622
3622
  for (; --w >= 0 && T[w] === "\\"; ) x = !x;
3623
3623
  return x ? "|" : " |";
3624
- }), g = h.split(L.splitPipe);
3624
+ }), g = h.split(O.splitPipe);
3625
3625
  let v = 0;
3626
3626
  if (g[0].trim() || g.shift(), g.length > 0 && !((y = g.at(-1)) != null && y.trim()) && g.pop(), i)
3627
3627
  if (g.length > i)
@@ -3629,7 +3629,7 @@ var ss = { exports: {} };
3629
3629
  else
3630
3630
  for (; g.length < i; ) g.push("");
3631
3631
  for (; v < g.length; v++)
3632
- g[v] = g[v].trim().replace(L.slashPipe, "|");
3632
+ g[v] = g[v].trim().replace(O.slashPipe, "|");
3633
3633
  return g;
3634
3634
  }
3635
3635
  function $e(f, i, h) {
@@ -4177,7 +4177,7 @@ ${w}` : w;
4177
4177
  top: !0
4178
4178
  };
4179
4179
  const h = {
4180
- other: L,
4180
+ other: O,
4181
4181
  block: Ie.normal,
4182
4182
  inline: ct.normal
4183
4183
  };
@@ -4208,7 +4208,7 @@ ${w}` : w;
4208
4208
  * Preprocessing
4209
4209
  */
4210
4210
  lex(i) {
4211
- i = i.replace(L.carriageReturn, `
4211
+ i = i.replace(O.carriageReturn, `
4212
4212
  `), this.blockTokens(i, this.tokens);
4213
4213
  for (let h = 0; h < this.inlineQueue.length; h++) {
4214
4214
  const g = this.inlineQueue[h];
@@ -4218,7 +4218,7 @@ ${w}` : w;
4218
4218
  }
4219
4219
  blockTokens(i, h = [], g = !1) {
4220
4220
  var v, y, S;
4221
- for (this.options.pedantic && (i = i.replace(L.tabCharGlobal, " ").replace(L.spaceLine, "")); i; ) {
4221
+ for (this.options.pedantic && (i = i.replace(O.tabCharGlobal, " ").replace(O.spaceLine, "")); i; ) {
4222
4222
  let k;
4223
4223
  if ((y = (v = this.options.extensions) == null ? void 0 : v.block) != null && y.some((x) => (k = x.call({ lexer: this }, i, h)) ? (i = i.substring(k.raw.length), h.push(k), !0) : !1))
4224
4224
  continue;
@@ -4420,7 +4420,7 @@ ${w}` : w;
4420
4420
  }
4421
4421
  code({ text: f, lang: i, escaped: h }) {
4422
4422
  var y;
4423
- const g = (y = (i || "").match(L.notSpaceStart)) == null ? void 0 : y[0], v = f.replace(L.endingNewline, "") + `
4423
+ const g = (y = (i || "").match(O.notSpaceStart)) == null ? void 0 : y[0], v = f.replace(O.endingNewline, "") + `
4424
4424
  `;
4425
4425
  return g ? '<pre><code class="language-' + Re(g) + '">' + (h ? v : Re(v, !0)) + `</code></pre>
4426
4426
  ` : "<pre><code>" + (h ? v : Re(v, !0)) + `</code></pre>
@@ -5009,7 +5009,7 @@ function oi() {
5009
5009
  customElements.get(t) || customElements.define(t, Ja);
5010
5010
  break;
5011
5011
  case "searchcraft-loading":
5012
- customElements.get(t) || La();
5012
+ customElements.get(t) || Oa();
5013
5013
  break;
5014
5014
  }
5015
5015
  });
@@ -5035,7 +5035,7 @@ function li() {
5035
5035
  });
5036
5036
  }
5037
5037
  const ui = tn, rn = li, hi = $a, fi = () => {
5038
- bo(), yo(), Co(), So(), Ia(), Oa(), Lo(), Do(), Da(), za(), jo(), Va(), Wo(), Zo(), Ga(), Xo(), Xa(), Ya(), ai(), ni(), en(), rn(), hi();
5038
+ bo(), yo(), Co(), So(), Ia(), La(), Oo(), Do(), Da(), za(), jo(), Va(), Wo(), Zo(), Ga(), Xo(), Xa(), Ya(), ai(), ni(), en(), rn(), hi();
5039
5039
  };
5040
5040
  globalThis.__scDefineCustomElements__ = fi;
5041
5041
  var ue;
@@ -5658,7 +5658,7 @@ class Ai extends gs {
5658
5658
  }
5659
5659
  }
5660
5660
  const Mi = 1e3;
5661
- class Oi extends gs {
5661
+ class Li extends gs {
5662
5662
  constructor(r) {
5663
5663
  super(r);
5664
5664
  c(this, "adCallTimeout");
@@ -5702,7 +5702,7 @@ class Oi extends gs {
5702
5702
  r && document.head.removeChild(r);
5703
5703
  }
5704
5704
  }
5705
- const Li = 600;
5705
+ const Oi = 600;
5706
5706
  class Fi {
5707
5707
  constructor(t, r, s) {
5708
5708
  c(this, "measureRequestTimeout");
@@ -5771,7 +5771,7 @@ class Fi {
5771
5771
  } catch (u) {
5772
5772
  throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:", u), u;
5773
5773
  }
5774
- }, Li);
5774
+ }, Oi);
5775
5775
  });
5776
5776
  this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId = ft(), this.sendMeasureEvent("sdk_initialized");
5777
5777
  }
@@ -6427,8 +6427,14 @@ class oc {
6427
6427
  const t = async () => {
6428
6428
  var l, d, p, C, E, P;
6429
6429
  const a = this.get(), o = (l = a.core) == null ? void 0 : l.config;
6430
- if (console.log(o), !o || !o.cortexURL)
6431
- throw new Error("cortexURL was not specified in the config.");
6430
+ if (!o) {
6431
+ console.error("Could not stream summary data, no config found.");
6432
+ return;
6433
+ }
6434
+ if (!o.cortexURL) {
6435
+ console.error("Could not stream summary data, cortexURL was not specified in the config.");
6436
+ return;
6437
+ }
6432
6438
  const n = (d = a.core) == null ? void 0 : d.config.indexName;
6433
6439
  if (!a.hasSummaryBox || !n)
6434
6440
  return;
@@ -6461,8 +6467,8 @@ class oc {
6461
6467
  const U = $.body.getReader(), D = new TextDecoder();
6462
6468
  let _ = !1;
6463
6469
  do {
6464
- const { done: L, value: V } = await U.read();
6465
- _ = L;
6470
+ const { done: O, value: V } = await U.read();
6471
+ _ = O;
6466
6472
  const ee = D.decode(V, { stream: !0 });
6467
6473
  this.set((xe) => ({
6468
6474
  isSummaryLoading: !1,
@@ -6553,9 +6559,9 @@ const na = {
6553
6559
  search: async () => {
6554
6560
  var p, C, E;
6555
6561
  const l = o();
6556
- if ((p = l.summaryClient) == null || p.streamSummaryData(), !l.core)
6562
+ if (!l.core)
6557
6563
  throw new Error("Searchcraft instance is not initialized.");
6558
- if (!l.searchTerm.trim()) {
6564
+ if (l.core.config.cortexURL && ((p = l.summaryClient) == null || p.streamSummaryData()), !l.searchTerm.trim()) {
6559
6565
  (E = (C = l.core) == null ? void 0 : C.searchClient) == null || E.abortRequests(), a({
6560
6566
  searchClientResponseItems: [
6561
6567
  ...l.cachedSearchClientResponseItems
@@ -6727,7 +6733,7 @@ class cc {
6727
6733
  }
6728
6734
  async initClients(t, r) {
6729
6735
  let s = this.config.measureUserIdentifier;
6730
- s || (s = await yi()), this.measureClient = new Fi(t, r, s), this.searchClient = new zi(this, t, s), t.customAdConfig ? this.adClient = new Ai(t) : t.nativoConfig ? this.adClient = new Oi(t) : t.admAdConfig && (this.adClient = new Ii(t)), this.emitEvent("initialized", {
6736
+ s || (s = await yi()), this.measureClient = new Fi(t, r, s), this.searchClient = new zi(this, t, s), t.customAdConfig ? this.adClient = new Ai(t) : t.nativoConfig ? this.adClient = new Li(t) : t.admAdConfig && (this.adClient = new Ii(t)), this.emitEvent("initialized", {
6731
6737
  name: "initialized"
6732
6738
  });
6733
6739
  }
@@ -6778,7 +6784,7 @@ class cc {
6778
6784
  }), (t = this.adClient) == null || t.onInputCleared();
6779
6785
  }
6780
6786
  }
6781
- const lc = "@searchcraft/react-sdk", uc = "0.11.0", oa = {
6787
+ const lc = "@searchcraft/react-sdk", uc = "0.11.1", oa = {
6782
6788
  name: lc,
6783
6789
  version: uc
6784
6790
  };
@@ -6820,77 +6826,77 @@ const hc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
6820
6826
  tagName: "searchcraft-filter-panel",
6821
6827
  elementClass: Ao,
6822
6828
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
6823
- react: Le,
6829
+ react: Oe,
6824
6830
  events: {},
6825
6831
  defineCustomElement: Ia
6826
6832
  }), pc = /* @__PURE__ */ Fe({
6827
6833
  tagName: "searchcraft-input-form",
6828
- elementClass: Oo,
6834
+ elementClass: Lo,
6829
6835
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
6830
- react: Le,
6836
+ react: Oe,
6831
6837
  events: {
6832
6838
  onInputFocus: "inputFocus",
6833
6839
  onInputBlur: "inputBlur",
6834
6840
  onInputInit: "inputInit"
6835
6841
  },
6836
- defineCustomElement: Oa
6842
+ defineCustomElement: La
6837
6843
  }), mc = /* @__PURE__ */ Fe({
6838
6844
  tagName: "searchcraft-pagination",
6839
6845
  elementClass: zo,
6840
6846
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
6841
- react: Le,
6847
+ react: Oe,
6842
6848
  events: {},
6843
6849
  defineCustomElement: Da
6844
6850
  }), gc = /* @__PURE__ */ Fe({
6845
6851
  tagName: "searchcraft-popover-button",
6846
6852
  elementClass: Uo,
6847
6853
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
6848
- react: Le,
6854
+ react: Oe,
6849
6855
  events: {},
6850
6856
  defineCustomElement: za
6851
6857
  }), bc = /* @__PURE__ */ Fe({
6852
6858
  tagName: "searchcraft-popover-form",
6853
6859
  elementClass: Go,
6854
6860
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
6855
- react: Le,
6861
+ react: Oe,
6856
6862
  events: {},
6857
6863
  defineCustomElement: Va
6858
6864
  }), vc = /* @__PURE__ */ Fe({
6859
6865
  tagName: "searchcraft-results-info",
6860
6866
  elementClass: Qo,
6861
6867
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
6862
- react: Le,
6868
+ react: Oe,
6863
6869
  events: {},
6864
6870
  defineCustomElement: Ga
6865
6871
  }), yc = /* @__PURE__ */ Fe({
6866
6872
  tagName: "searchcraft-search-results",
6867
6873
  elementClass: ei,
6868
6874
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
6869
- react: Le,
6875
+ react: Oe,
6870
6876
  events: {},
6871
6877
  defineCustomElement: Ya
6872
6878
  }), kc = /* @__PURE__ */ Fe({
6873
6879
  tagName: "searchcraft-search-results-per-page",
6874
6880
  elementClass: si,
6875
6881
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
6876
- react: Le,
6882
+ react: Oe,
6877
6883
  events: {},
6878
6884
  defineCustomElement: Xa
6879
6885
  }), Cc = /* @__PURE__ */ Fe({
6880
6886
  tagName: "searchcraft-summary-box",
6881
6887
  elementClass: ii,
6882
6888
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
6883
- react: Le,
6889
+ react: Oe,
6884
6890
  events: {},
6885
6891
  defineCustomElement: en
6886
6892
  }), xc = /* @__PURE__ */ Fe({
6887
6893
  tagName: "searchcraft-theme",
6888
6894
  elementClass: ui,
6889
6895
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
6890
- react: Le,
6896
+ react: Oe,
6891
6897
  events: {},
6892
6898
  defineCustomElement: rn
6893
- }), Yc = (e) => /* @__PURE__ */ Oe(dc, { ...e }), Qc = (e) => /* @__PURE__ */ Oe(pc, { ...e }), Kc = (e) => /* @__PURE__ */ Oe(gc, { ...e }), Xc = (e) => /* @__PURE__ */ Oe(bc, { ...e }), Jc = (e) => /* @__PURE__ */ Oe(vc, { ...e }), el = (e) => /* @__PURE__ */ Oe(xc, { ...e }), tl = (e) => /* @__PURE__ */ Oe(mc, { ...e }), rl = (e) => /* @__PURE__ */ Oe(kc, { ...e }), sl = (e) => /* @__PURE__ */ Oe(yc, { ...e }), al = (e) => /* @__PURE__ */ Oe(Cc, { ...e });
6899
+ }), Yc = (e) => /* @__PURE__ */ Le(dc, { ...e }), Qc = (e) => /* @__PURE__ */ Le(pc, { ...e }), Kc = (e) => /* @__PURE__ */ Le(gc, { ...e }), Xc = (e) => /* @__PURE__ */ Le(bc, { ...e }), Jc = (e) => /* @__PURE__ */ Le(vc, { ...e }), el = (e) => /* @__PURE__ */ Le(xc, { ...e }), tl = (e) => /* @__PURE__ */ Le(mc, { ...e }), rl = (e) => /* @__PURE__ */ Le(kc, { ...e }), sl = (e) => /* @__PURE__ */ Le(yc, { ...e }), al = (e) => /* @__PURE__ */ Le(Cc, { ...e });
6894
6900
  class nl extends cc {
6895
6901
  constructor(t, r = void 0) {
6896
6902
  super(