import { r as Xt, j as Oe } from "./index-CsBCemCF.js";
import { memo as jt, useMemo as Jt } from "react";
const {
  entries: At,
  setPrototypeOf: mt,
  isFrozen: qt,
  getPrototypeOf: Kt,
  getOwnPropertyDescriptor: Qt
} = Object;
let {
  freeze: b,
  seal: y,
  create: ke
} = Object, {
  apply: Pe,
  construct: Ue
} = typeof Reflect < "u" && Reflect;
b || (b = function(n) {
  return n;
});
y || (y = function(n) {
  return n;
});
Pe || (Pe = function(n, l) {
  for (var r = arguments.length, c = new Array(r > 2 ? r - 2 : 0), I = 2; I < r; I++)
    c[I - 2] = arguments[I];
  return n.apply(l, c);
});
Ue || (Ue = function(n) {
  for (var l = arguments.length, r = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
    r[c - 1] = arguments[c];
  return new n(...r);
});
const ce = S(Array.prototype.forEach), $t = S(Array.prototype.lastIndexOf), pt = S(Array.prototype.pop), J = S(Array.prototype.push), en = S(Array.prototype.splice), fe = S(String.prototype.toLowerCase), Me = S(String.prototype.toString), Ce = S(String.prototype.match), q = S(String.prototype.replace), tn = S(String.prototype.indexOf), nn = S(String.prototype.trim), L = S(Object.prototype.hasOwnProperty), A = S(RegExp.prototype.test), K = on(TypeError);
function S(a) {
  return function(n) {
    n instanceof RegExp && (n.lastIndex = 0);
    for (var l = arguments.length, r = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
      r[c - 1] = arguments[c];
    return Pe(a, n, r);
  };
}
function on(a) {
  return function() {
    for (var n = arguments.length, l = new Array(n), r = 0; r < n; r++)
      l[r] = arguments[r];
    return Ue(a, l);
  };
}
function s(a, n) {
  let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe;
  mt && mt(a, null);
  let r = n.length;
  for (; r--; ) {
    let c = n[r];
    if (typeof c == "string") {
      const I = l(c);
      I !== c && (qt(n) || (n[r] = I), c = I);
    }
    a[c] = !0;
  }
  return a;
}
function an(a) {
  for (let n = 0; n < a.length; n++)
    L(a, n) || (a[n] = null);
  return a;
}
function D(a) {
  const n = ke(null);
  for (const [l, r] of At(a))
    L(a, l) && (Array.isArray(r) ? n[l] = an(r) : r && typeof r == "object" && r.constructor === Object ? n[l] = D(r) : n[l] = r);
  return n;
}
function Q(a, n) {
  for (; a !== null; ) {
    const r = Qt(a, n);
    if (r) {
      if (r.get)
        return S(r.get);
      if (typeof r.value == "function")
        return S(r.value);
    }
    a = Kt(a);
  }
  function l() {
    return null;
  }
  return l;
}
const dt = b(["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"]), De = b(["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"]), we = b(["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"]), rn = b(["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"]), xe = b(["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"]), ln = b(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), gt = b(["#text"]), Tt = b(["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"]), ve = b(["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"]), Et = b(["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"]), ue = b(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), sn = y(/\{\{[\w\W]*|[\w\W]*\}\}/gm), cn = y(/<%[\w\W]*|[\w\W]*%>/gm), un = y(/\$\{[\w\W]*/gm), fn = y(/^data-[\-\w.\u00B7-\uFFFF]+$/), mn = y(/^aria-[\-\w]+$/), bt = y(
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
  // eslint-disable-line no-useless-escape
), pn = y(/^(?:\w+script|data):/i), dn = y(
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
  // eslint-disable-line no-control-regex
), St = y(/^html$/i), gn = y(/^[a-z][.\w]*(-[.\w]+)+$/i);
var ht = /* @__PURE__ */ Object.freeze({
  __proto__: null,
  ARIA_ATTR: mn,
  ATTR_WHITESPACE: dn,
  CUSTOM_ELEMENT: gn,
  DATA_ATTR: fn,
  DOCTYPE_NAME: St,
  ERB_EXPR: cn,
  IS_ALLOWED_URI: bt,
  IS_SCRIPT_OR_DATA: pn,
  MUSTACHE_EXPR: sn,
  TMPLIT_EXPR: un
});
const $ = {
  element: 1,
  text: 3,
  // Deprecated
  progressingInstruction: 7,
  comment: 8,
  document: 9
}, Tn = function() {
  return typeof window > "u" ? null : window;
}, En = function(n, l) {
  if (typeof n != "object" || typeof n.createPolicy != "function")
    return null;
  let r = null;
  const c = "data-tt-policy-suffix";
  l && l.hasAttribute(c) && (r = l.getAttribute(c));
  const I = "dompurify" + (r ? "#" + r : "");
  try {
    return n.createPolicy(I, {
      createHTML(v) {
        return v;
      },
      createScriptURL(v) {
        return v;
      }
    });
  } catch {
    return console.warn("TrustedTypes policy " + I + " could not be created."), null;
  }
}, _t = function() {
  return {
    afterSanitizeAttributes: [],
    afterSanitizeElements: [],
    afterSanitizeShadowDOM: [],
    beforeSanitizeAttributes: [],
    beforeSanitizeElements: [],
    beforeSanitizeShadowDOM: [],
    uponSanitizeAttribute: [],
    uponSanitizeElement: [],
    uponSanitizeShadowNode: []
  };
};
function It() {
  let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Tn();
  const n = (i) => It(i);
  if (n.version = "3.3.0", n.removed = [], !a || !a.document || a.document.nodeType !== $.document || !a.Element)
    return n.isSupported = !1, n;
  let {
    document: l
  } = a;
  const r = l, c = r.currentScript, {
    DocumentFragment: I,
    HTMLTemplateElement: v,
    Node: me,
    Element: He,
    NodeFilter: B,
    NamedNodeMap: Rt = a.NamedNodeMap || a.MozNamedAttrMap,
    HTMLFormElement: yt,
    DOMParser: Lt,
    trustedTypes: ee
  } = a, V = He.prototype, Nt = Q(V, "cloneNode"), Ot = Q(V, "remove"), Mt = Q(V, "nextSibling"), Ct = Q(V, "childNodes"), te = Q(V, "parentNode");
  if (typeof v == "function") {
    const i = l.createElement("template");
    i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
  }
  let h, Y = "";
  const {
    implementation: pe,
    createNodeIterator: Dt,
    createDocumentFragment: wt,
    getElementsByTagName: xt
  } = l, {
    importNode: vt
  } = r;
  let _ = _t();
  n.isSupported = typeof At == "function" && typeof te == "function" && pe && pe.createHTMLDocument !== void 0;
  const {
    MUSTACHE_EXPR: de,
    ERB_EXPR: ge,
    TMPLIT_EXPR: Te,
    DATA_ATTR: kt,
    ARIA_ATTR: Pt,
    IS_SCRIPT_OR_DATA: Ut,
    ATTR_WHITESPACE: We,
    CUSTOM_ELEMENT: Ft
  } = ht;
  let {
    IS_ALLOWED_URI: ze
  } = ht, p = null;
  const Be = s({}, [...dt, ...De, ...we, ...xe, ...gt]);
  let g = null;
  const Ve = s({}, [...Tt, ...ve, ...Et, ...ue]);
  let f = Object.seal(ke(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
    }
  })), Z = null, Ee = null;
  const k = Object.seal(ke(null, {
    tagCheck: {
      writable: !0,
      configurable: !1,
      enumerable: !0,
      value: null
    },
    attributeCheck: {
      writable: !0,
      configurable: !1,
      enumerable: !0,
      value: null
    }
  }));
  let Ye = !0, he = !0, Ze = !1, Xe = !0, P = !1, ne = !0, w = !1, _e = !1, Ae = !1, U = !1, oe = !1, ie = !1, je = !0, Je = !1;
  const Gt = "user-content-";
  let be = !0, X = !1, F = {}, G = null;
  const qe = s({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
  let Ke = null;
  const Qe = s({}, ["audio", "video", "img", "source", "image", "track"]);
  let Se = null;
  const $e = s({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ae = "http://www.w3.org/1998/Math/MathML", re = "http://www.w3.org/2000/svg", O = "http://www.w3.org/1999/xhtml";
  let H = O, Ie = !1, Re = null;
  const Ht = s({}, [ae, re, O], Me);
  let le = s({}, ["mi", "mo", "mn", "ms", "mtext"]), se = s({}, ["annotation-xml"]);
  const Wt = s({}, ["title", "style", "font", "a", "script"]);
  let j = null;
  const zt = ["application/xhtml+xml", "text/html"], Bt = "text/html";
  let d = null, W = null;
  const Vt = l.createElement("form"), et = function(e) {
    return e instanceof RegExp || e instanceof Function;
  }, ye = function() {
    let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
    if (!(W && W === e)) {
      if ((!e || typeof e != "object") && (e = {}), e = D(e), j = // eslint-disable-next-line unicorn/prefer-includes
      zt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Bt : e.PARSER_MEDIA_TYPE, d = j === "application/xhtml+xml" ? Me : fe, p = L(e, "ALLOWED_TAGS") ? s({}, e.ALLOWED_TAGS, d) : Be, g = L(e, "ALLOWED_ATTR") ? s({}, e.ALLOWED_ATTR, d) : Ve, Re = L(e, "ALLOWED_NAMESPACES") ? s({}, e.ALLOWED_NAMESPACES, Me) : Ht, Se = L(e, "ADD_URI_SAFE_ATTR") ? s(D($e), e.ADD_URI_SAFE_ATTR, d) : $e, Ke = L(e, "ADD_DATA_URI_TAGS") ? s(D(Qe), e.ADD_DATA_URI_TAGS, d) : Qe, G = L(e, "FORBID_CONTENTS") ? s({}, e.FORBID_CONTENTS, d) : qe, Z = L(e, "FORBID_TAGS") ? s({}, e.FORBID_TAGS, d) : D({}), Ee = L(e, "FORBID_ATTR") ? s({}, e.FORBID_ATTR, d) : D({}), F = L(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Ye = e.ALLOW_ARIA_ATTR !== !1, he = e.ALLOW_DATA_ATTR !== !1, Ze = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, ne = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, U = e.RETURN_DOM || !1, oe = e.RETURN_DOM_FRAGMENT || !1, ie = e.RETURN_TRUSTED_TYPE || !1, Ae = e.FORCE_BODY || !1, je = e.SANITIZE_DOM !== !1, Je = e.SANITIZE_NAMED_PROPS || !1, be = e.KEEP_CONTENT !== !1, X = e.IN_PLACE || !1, ze = e.ALLOWED_URI_REGEXP || bt, H = e.NAMESPACE || O, le = e.MATHML_TEXT_INTEGRATION_POINTS || le, se = e.HTML_INTEGRATION_POINTS || se, f = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (f.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (f.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (f.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (he = !1), oe && (U = !0), F && (p = s({}, gt), g = [], F.html === !0 && (s(p, dt), s(g, Tt)), F.svg === !0 && (s(p, De), s(g, ve), s(g, ue)), F.svgFilters === !0 && (s(p, we), s(g, ve), s(g, ue)), F.mathMl === !0 && (s(p, xe), s(g, Et), s(g, ue))), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? k.tagCheck = e.ADD_TAGS : (p === Be && (p = D(p)), s(p, e.ADD_TAGS, d))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? k.attributeCheck = e.ADD_ATTR : (g === Ve && (g = D(g)), s(g, e.ADD_ATTR, d))), e.ADD_URI_SAFE_ATTR && s(Se, e.ADD_URI_SAFE_ATTR, d), e.FORBID_CONTENTS && (G === qe && (G = D(G)), s(G, e.FORBID_CONTENTS, d)), be && (p["#text"] = !0), w && s(p, ["html", "head", "body"]), p.table && (s(p, ["tbody"]), delete Z.tbody), e.TRUSTED_TYPES_POLICY) {
        if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
          throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
        if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
          throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
        h = e.TRUSTED_TYPES_POLICY, Y = h.createHTML("");
      } else
        h === void 0 && (h = En(ee, c)), h !== null && typeof Y == "string" && (Y = h.createHTML(""));
      b && b(e), W = e;
    }
  }, tt = s({}, [...De, ...we, ...rn]), nt = s({}, [...xe, ...ln]), Yt = function(e) {
    let t = te(e);
    (!t || !t.tagName) && (t = {
      namespaceURI: H,
      tagName: "template"
    });
    const o = fe(e.tagName), u = fe(t.tagName);
    return Re[e.namespaceURI] ? e.namespaceURI === re ? t.namespaceURI === O ? o === "svg" : t.namespaceURI === ae ? o === "svg" && (u === "annotation-xml" || le[u]) : !!tt[o] : e.namespaceURI === ae ? t.namespaceURI === O ? o === "math" : t.namespaceURI === re ? o === "math" && se[u] : !!nt[o] : e.namespaceURI === O ? t.namespaceURI === re && !se[u] || t.namespaceURI === ae && !le[u] ? !1 : !nt[o] && (Wt[o] || !tt[o]) : !!(j === "application/xhtml+xml" && Re[e.namespaceURI]) : !1;
  }, N = function(e) {
    J(n.removed, {
      element: e
    });
    try {
      te(e).removeChild(e);
    } catch {
      Ot(e);
    }
  }, x = function(e, t) {
    try {
      J(n.removed, {
        attribute: t.getAttributeNode(e),
        from: t
      });
    } catch {
      J(n.removed, {
        attribute: null,
        from: t
      });
    }
    if (t.removeAttribute(e), e === "is")
      if (U || oe)
        try {
          N(t);
        } catch {
        }
      else
        try {
          t.setAttribute(e, "");
        } catch {
        }
  }, ot = function(e) {
    let t = null, o = null;
    if (Ae)
      e = "<remove></remove>" + e;
    else {
      const m = Ce(e, /^[\r\n\t ]+/);
      o = m && m[0];
    }
    j === "application/xhtml+xml" && H === O && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
    const u = h ? h.createHTML(e) : e;
    if (H === O)
      try {
        t = new Lt().parseFromString(u, j);
      } catch {
      }
    if (!t || !t.documentElement) {
      t = pe.createDocument(H, "template", null);
      try {
        t.documentElement.innerHTML = Ie ? Y : u;
      } catch {
      }
    }
    const E = t.body || t.documentElement;
    return e && o && E.insertBefore(l.createTextNode(o), E.childNodes[0] || null), H === O ? xt.call(t, w ? "html" : "body")[0] : w ? t.documentElement : E;
  }, it = function(e) {
    return Dt.call(
      e.ownerDocument || e,
      e,
      // eslint-disable-next-line no-bitwise
      B.SHOW_ELEMENT | B.SHOW_COMMENT | B.SHOW_TEXT | B.SHOW_PROCESSING_INSTRUCTION | B.SHOW_CDATA_SECTION,
      null
    );
  }, Le = function(e) {
    return e instanceof yt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof Rt) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
  }, at = function(e) {
    return typeof me == "function" && e instanceof me;
  };
  function M(i, e, t) {
    ce(i, (o) => {
      o.call(n, e, t, W);
    });
  }
  const rt = function(e) {
    let t = null;
    if (M(_.beforeSanitizeElements, e, null), Le(e))
      return N(e), !0;
    const o = d(e.nodeName);
    if (M(_.uponSanitizeElement, e, {
      tagName: o,
      allowedTags: p
    }), ne && e.hasChildNodes() && !at(e.firstElementChild) && A(/<[/\w!]/g, e.innerHTML) && A(/<[/\w!]/g, e.textContent) || e.nodeType === $.progressingInstruction || ne && e.nodeType === $.comment && A(/<[/\w]/g, e.data))
      return N(e), !0;
    if (!(k.tagCheck instanceof Function && k.tagCheck(o)) && (!p[o] || Z[o])) {
      if (!Z[o] && st(o) && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, o) || f.tagNameCheck instanceof Function && f.tagNameCheck(o)))
        return !1;
      if (be && !G[o]) {
        const u = te(e) || e.parentNode, E = Ct(e) || e.childNodes;
        if (E && u) {
          const m = E.length;
          for (let R = m - 1; R >= 0; --R) {
            const C = Nt(E[R], !0);
            C.__removalCount = (e.__removalCount || 0) + 1, u.insertBefore(C, Mt(e));
          }
        }
      }
      return N(e), !0;
    }
    return e instanceof He && !Yt(e) || (o === "noscript" || o === "noembed" || o === "noframes") && A(/<\/no(script|embed|frames)/i, e.innerHTML) ? (N(e), !0) : (P && e.nodeType === $.text && (t = e.textContent, ce([de, ge, Te], (u) => {
      t = q(t, u, " ");
    }), e.textContent !== t && (J(n.removed, {
      element: e.cloneNode()
    }), e.textContent = t)), M(_.afterSanitizeElements, e, null), !1);
  }, lt = function(e, t, o) {
    if (je && (t === "id" || t === "name") && (o in l || o in Vt))
      return !1;
    if (!(he && !Ee[t] && A(kt, t))) {
      if (!(Ye && A(Pt, t))) {
        if (!(k.attributeCheck instanceof Function && k.attributeCheck(t, e))) {
          if (!g[t] || Ee[t]) {
            if (
              // First condition does a very basic check if a) it's basically a valid custom element tagname AND
              // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
              // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
              !(st(e) && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, e) || f.tagNameCheck instanceof Function && f.tagNameCheck(e)) && (f.attributeNameCheck instanceof RegExp && A(f.attributeNameCheck, t) || f.attributeNameCheck instanceof Function && f.attributeNameCheck(t, e)) || // Alternative, second condition checks if it's an `is`-attribute, AND
              // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
              t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, o) || f.tagNameCheck instanceof Function && f.tagNameCheck(o)))
            ) return !1;
          } else if (!Se[t]) {
            if (!A(ze, q(o, We, ""))) {
              if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && tn(o, "data:") === 0 && Ke[e])) {
                if (!(Ze && !A(Ut, q(o, We, "")))) {
                  if (o)
                    return !1;
                }
              }
            }
          }
        }
      }
    }
    return !0;
  }, st = function(e) {
    return e !== "annotation-xml" && Ce(e, Ft);
  }, ct = function(e) {
    M(_.beforeSanitizeAttributes, e, null);
    const {
      attributes: t
    } = e;
    if (!t || Le(e))
      return;
    const o = {
      attrName: "",
      attrValue: "",
      keepAttr: !0,
      allowedAttributes: g,
      forceKeepAttr: void 0
    };
    let u = t.length;
    for (; u--; ) {
      const E = t[u], {
        name: m,
        namespaceURI: R,
        value: C
      } = E, z = d(m), Ne = C;
      let T = m === "value" ? Ne : nn(Ne);
      if (o.attrName = z, o.attrValue = T, o.keepAttr = !0, o.forceKeepAttr = void 0, M(_.uponSanitizeAttribute, e, o), T = o.attrValue, Je && (z === "id" || z === "name") && (x(m, e), T = Gt + T), ne && A(/((--!?|])>)|<\/(style|title|textarea)/i, T)) {
        x(m, e);
        continue;
      }
      if (z === "attributename" && Ce(T, "href")) {
        x(m, e);
        continue;
      }
      if (o.forceKeepAttr)
        continue;
      if (!o.keepAttr) {
        x(m, e);
        continue;
      }
      if (!Xe && A(/\/>/i, T)) {
        x(m, e);
        continue;
      }
      P && ce([de, ge, Te], (ft) => {
        T = q(T, ft, " ");
      });
      const ut = d(e.nodeName);
      if (!lt(ut, z, T)) {
        x(m, e);
        continue;
      }
      if (h && typeof ee == "object" && typeof ee.getAttributeType == "function" && !R)
        switch (ee.getAttributeType(ut, z)) {
          case "TrustedHTML": {
            T = h.createHTML(T);
            break;
          }
          case "TrustedScriptURL": {
            T = h.createScriptURL(T);
            break;
          }
        }
      if (T !== Ne)
        try {
          R ? e.setAttributeNS(R, m, T) : e.setAttribute(m, T), Le(e) ? N(e) : pt(n.removed);
        } catch {
          x(m, e);
        }
    }
    M(_.afterSanitizeAttributes, e, null);
  }, Zt = function i(e) {
    let t = null;
    const o = it(e);
    for (M(_.beforeSanitizeShadowDOM, e, null); t = o.nextNode(); )
      M(_.uponSanitizeShadowNode, t, null), rt(t), ct(t), t.content instanceof I && i(t.content);
    M(_.afterSanitizeShadowDOM, e, null);
  };
  return n.sanitize = function(i) {
    let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, o = null, u = null, E = null;
    if (Ie = !i, Ie && (i = "<!-->"), typeof i != "string" && !at(i))
      if (typeof i.toString == "function") {
        if (i = i.toString(), typeof i != "string")
          throw K("dirty is not a string, aborting");
      } else
        throw K("toString is not a function");
    if (!n.isSupported)
      return i;
    if (_e || ye(e), n.removed = [], typeof i == "string" && (X = !1), X) {
      if (i.nodeName) {
        const C = d(i.nodeName);
        if (!p[C] || Z[C])
          throw K("root node is forbidden and cannot be sanitized in-place");
      }
    } else if (i instanceof me)
      t = ot("<!---->"), o = t.ownerDocument.importNode(i, !0), o.nodeType === $.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? t = o : t.appendChild(o);
    else {
      if (!U && !P && !w && // eslint-disable-next-line unicorn/prefer-includes
      i.indexOf("<") === -1)
        return h && ie ? h.createHTML(i) : i;
      if (t = ot(i), !t)
        return U ? null : ie ? Y : "";
    }
    t && Ae && N(t.firstChild);
    const m = it(X ? i : t);
    for (; u = m.nextNode(); )
      rt(u), ct(u), u.content instanceof I && Zt(u.content);
    if (X)
      return i;
    if (U) {
      if (oe)
        for (E = wt.call(t.ownerDocument); t.firstChild; )
          E.appendChild(t.firstChild);
      else
        E = t;
      return (g.shadowroot || g.shadowrootmode) && (E = vt.call(r, E, !0)), E;
    }
    let R = w ? t.outerHTML : t.innerHTML;
    return w && p["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(St, t.ownerDocument.doctype.name) && (R = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
` + R), P && ce([de, ge, Te], (C) => {
      R = q(R, C, " ");
    }), h && ie ? h.createHTML(R) : R;
  }, n.setConfig = function() {
    let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
    ye(i), _e = !0;
  }, n.clearConfig = function() {
    W = null, _e = !1;
  }, n.isValidAttribute = function(i, e, t) {
    W || ye({});
    const o = d(i), u = d(e);
    return lt(o, u, t);
  }, n.addHook = function(i, e) {
    typeof e == "function" && J(_[i], e);
  }, n.removeHook = function(i, e) {
    if (e !== void 0) {
      const t = $t(_[i], e);
      return t === -1 ? void 0 : en(_[i], t, 1)[0];
    }
    return pt(_[i]);
  }, n.removeHooks = function(i) {
    _[i] = [];
  }, n.removeAllHooks = function() {
    _ = _t();
  }, n;
}
var Ge = It();
function hn() {
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
}
const _n = /* @__PURE__ */ Xt("div", process.env.NODE_ENV === "production" ? {
  target: "e18540fl0"
} : {
  target: "e18540fl0",
  label: "StyledHtml"
})(process.env.NODE_ENV === "production" ? {
  name: "1d3w5wq",
  styles: "width:100%"
} : {
  name: "1d3w5wq",
  styles: "width:100%/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3N0bGl0ZS9zdGxpdGUvc3RyZWFtbGl0L2Zyb250ZW5kL2xpYi9zcmMvY29tcG9uZW50cy9lbGVtZW50cy9IdG1sL3N0eWxlZC1jb21wb25lbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtCMEIiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvc3RsaXRlL3N0bGl0ZS9zdHJlYW1saXQvZnJvbnRlbmQvbGliL3NyYy9jb21wb25lbnRzL2VsZW1lbnRzL0h0bWwvc3R5bGVkLWNvbXBvbmVudHMudHMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgU3RyZWFtbGl0IEluYy4gKDIwMTgtMjAyMikgU25vd2ZsYWtlIEluYy4gKDIwMjItMjAyNSlcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHA6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCJcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEh0bWwgPSBzdHlsZWQuZGl2KHtcbiAgd2lkdGg6IFwiMTAwJVwiLFxufSlcbiJdfQ== */",
  toString: hn
}), Fe = "data-temp-href-target";
Ge.addHook("beforeSanitizeAttributes", function(a) {
  a instanceof HTMLElement && a.hasAttribute("target") && a.getAttribute("target") === "_blank" && a.setAttribute(Fe, "_blank");
});
Ge.addHook("afterSanitizeAttributes", function(a) {
  a instanceof HTMLElement && a.hasAttribute(Fe) && (a.setAttribute("target", "_blank"), a.setAttribute("rel", "noopener noreferrer"), a.removeAttribute(Fe));
});
const An = (a) => {
  const n = {
    // Default to permit HTML, SVG and MathML, this limits to HTML only
    USE_PROFILES: {
      html: !0
    },
    // glue elements like style, script or others to document.body and prevent unintuitive browser behavior in several edge-cases
    FORCE_BODY: !0
  };
  return Ge.sanitize(a, n);
};
function bn({
  element: a
}) {
  const {
    body: n
  } = a, l = Jt(() => An(n), [n]);
  return /* @__PURE__ */ Oe.jsx(Oe.Fragment, { children: l && /* @__PURE__ */ Oe.jsx(
    _n,
    {
      className: "stHtml",
      "data-testid": "stHtml",
      dangerouslySetInnerHTML: {
        __html: l
      }
    }
  ) });
}
const Rn = jt(bn);
export {
  Rn as default
};
//# sourceMappingURL=index-C4pwXyLd.js.map
