import {
    b7 as Kt,
    O as Zt,
    bM as Jt,
    bN as Qt,
    c as en,
    aY as tn,
    aT as nn,
    aX as on
} from "./index-xnhGKCfe.js";
import {
    d as rn
} from "./common-D-vNz206.js";
import {
    u as an
} from "./useAgentL3-BE3dvTAU.js"; /*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
const {
    entries: yt,
    setPrototypeOf: mt,
    isFrozen: sn,
    getPrototypeOf: ln,
    getOwnPropertyDescriptor: cn
} = Object;
let {
    freeze: y,
    seal: N,
    create: X
} = Object, {
    apply: Ue,
    construct: He
} = typeof Reflect < "u" && Reflect;
y || (y = function(n) {
    return n
});
N || (N = function(n) {
    return n
});
Ue || (Ue = function(n, l) {
    for (var a = arguments.length, c = new Array(a > 2 ? a - 2 : 0), b = 2; b < a; b++) c[b - 2] = arguments[b];
    return n.apply(l, c)
});
He || (He = function(n) {
    for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++) a[c - 1] = arguments[c];
    return new n(...a)
});
const ee = T(Array.prototype.forEach),
    fn = T(Array.prototype.lastIndexOf),
    pt = T(Array.prototype.pop),
    te = T(Array.prototype.push),
    un = T(Array.prototype.splice),
    O = Array.isArray,
    ie = T(String.prototype.toLowerCase),
    xe = T(String.prototype.toString),
    Tt = T(String.prototype.match),
    Y = T(String.prototype.replace),
    dt = T(String.prototype.indexOf),
    mn = T(String.prototype.trim),
    pn = T(Number.prototype.toString),
    Tn = T(Boolean.prototype.toString),
    _t = typeof BigInt > "u" ? null : T(BigInt.prototype.toString),
    Et = typeof Symbol > "u" ? null : T(Symbol.prototype.toString),
    u = T(Object.prototype.hasOwnProperty),
    ne = T(Object.prototype.toString),
    g = T(RegExp.prototype.test),
    de = dn(TypeError);

function T(i) {
    return function(n) {
        n instanceof RegExp && (n.lastIndex = 0);
        for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++) a[c - 1] = arguments[c];
        return Ue(i, n, a)
    }
}

function dn(i) {
    return function() {
        for (var n = arguments.length, l = new Array(n), a = 0; a < n; a++) l[a] = arguments[a];
        return He(i, l)
    }
}

function s(i, n) {
    let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ie;
    if (mt && mt(i, null), !O(n)) return i;
    let a = n.length;
    for (; a--;) {
        let c = n[a];
        if (typeof c == "string") {
            const b = l(c);
            b !== c && (sn(n) || (n[a] = b), c = b)
        }
        i[c] = !0
    }
    return i
}

function _n(i) {
    for (let n = 0; n < i.length; n++) u(i, n) || (i[n] = null);
    return i
}

function I(i) {
    const n = X(null);
    for (const [l, a] of yt(i)) u(i, l) && (O(a) ? n[l] = _n(a) : a && typeof a == "object" && a.constructor === Object ? n[l] = I(a) : n[l] = a);
    return n
}

function En(i) {
    switch (typeof i) {
        case "string":
            return i;
        case "number":
            return pn(i);
        case "boolean":
            return Tn(i);
        case "bigint":
            return _t ? _t(i) : "0";
        case "symbol":
            return Et ? Et(i) : "Symbol()";
        case "undefined":
            return ne(i);
        case "function":
        case "object":
            {
                if (i === null) return ne(i);
                const n = i,
                    l = j(n, "toString");
                if (typeof l == "function") {
                    const a = l(n);
                    return typeof a == "string" ? a : ne(a)
                }
                return ne(i)
            }
        default:
            return ne(i)
    }
}

function j(i, n) {
    for (; i !== null;) {
        const a = cn(i, n);
        if (a) {
            if (a.get) return T(a.get);
            if (typeof a.value == "function") return T(a.value)
        }
        i = ln(i)
    }

    function l() {
        return null
    }
    return l
}

function An(i) {
    try {
        return g(i, ""), !0
    } catch {
        return !1
    }
}
const At = y(["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"]),
    Pe = y(["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"]),
    ke = y(["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"]),
    gn = y(["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"]),
    ve = y(["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"]),
    hn = y(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]),
    gt = y(["#text"]),
    ht = y(["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"]),
    Fe = y(["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"]),
    St = y(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]),
    _e = y(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]),
    Sn = N(/\{\{[\w\W]*|[\w\W]*\}\}/gm),
    Rn = N(/<%[\w\W]*|[\w\W]*%>/gm),
    On = N(/\$\{[\w\W]*/gm),
    yn = N(/^data-[\-\w.\u00B7-\uFFFF]+$/),
    bn = N(/^aria-[\-\w]+$/),
    bt = N(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),
    Dn = N(/^(?:\w+script|data):/i),
    In = N(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),
    Dt = N(/^html$/i),
    Ln = N(/^[a-z][.\w]*(-[.\w]+)+$/i);
var Rt = Object.freeze({
    __proto__: null,
    ARIA_ATTR: bn,
    ATTR_WHITESPACE: In,
    CUSTOM_ELEMENT: Ln,
    DATA_ATTR: yn,
    DOCTYPE_NAME: Dt,
    ERB_EXPR: Rn,
    IS_ALLOWED_URI: bt,
    IS_SCRIPT_OR_DATA: Dn,
    MUSTACHE_EXPR: Sn,
    TMPLIT_EXPR: On
});
const oe = {
        element: 1,
        text: 3,
        progressingInstruction: 7,
        comment: 8,
        document: 9
    },
    Nn = function() {
        return typeof window > "u" ? null : window
    },
    Cn = function(n, l) {
        if (typeof n != "object" || typeof n.createPolicy != "function") return null;
        let a = null;
        const c = "data-tt-policy-suffix";
        l && l.hasAttribute(c) && (a = l.getAttribute(c));
        const b = "dompurify" + (a ? "#" + a : "");
        try {
            return n.createPolicy(b, {
                createHTML(k) {
                    return k
                },
                createScriptURL(k) {
                    return k
                }
            })
        } catch {
            return null
        }
    },
    Ot = function() {
        return {
            afterSanitizeAttributes: [],
            afterSanitizeElements: [],
            afterSanitizeShadowDOM: [],
            beforeSanitizeAttributes: [],
            beforeSanitizeElements: [],
            beforeSanitizeShadowDOM: [],
            uponSanitizeAttribute: [],
            uponSanitizeElement: [],
            uponSanitizeShadowNode: []
        }
    };

function It() {
    let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Nn();
    const n = r => It(r);
    if (n.version = "3.4.2", n.removed = [], !i || !i.document || i.document.nodeType !== oe.document || !i.Element) return n.isSupported = !1, n;
    let {
        document: l
    } = i;
    const a = l,
        c = a.currentScript,
        {
            DocumentFragment: b,
            HTMLTemplateElement: k,
            Node: Ee,
            Element: ze,
            NodeFilter: V,
            NamedNodeMap: Lt = i.NamedNodeMap || i.MozNamedAttrMap,
            HTMLFormElement: Nt,
            DOMParser: Ct,
            trustedTypes: re
        } = i,
        $ = ze.prototype,
        Mt = j($, "cloneNode"),
        wt = j($, "remove"),
        xt = j($, "nextSibling"),
        Pt = j($, "childNodes"),
        ae = j($, "parentNode");
    if (typeof k == "function") {
        const r = l.createElement("template");
        r.content && r.content.ownerDocument && (l = r.content.ownerDocument)
    }
    let S, q = "";
    const {
        implementation: Ae,
        createNodeIterator: kt,
        createDocumentFragment: vt,
        getElementsByTagName: Ft
    } = l, {
        importNode: Ut
    } = a;
    let R = Ot();
    n.isSupported = typeof yt == "function" && typeof ae == "function" && Ae && Ae.createHTMLDocument !== void 0;
    const {
        MUSTACHE_EXPR: se,
        ERB_EXPR: le,
        TMPLIT_EXPR: ce,
        DATA_ATTR: Ht,
        ARIA_ATTR: zt,
        IS_SCRIPT_OR_DATA: Gt,
        ATTR_WHITESPACE: Ge,
        CUSTOM_ELEMENT: Bt
    } = Rt;
    let {
        IS_ALLOWED_URI: Be
    } = Rt, _ = null;
    const We = s({}, [...At, ...Pe, ...ke, ...ve, ...gt]);
    let A = null;
    const Ye = s({}, [...ht, ...Fe, ...St, ..._e]);
    let m = Object.seal(X(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
            }
        })),
        K = null,
        fe = null;
    const v = Object.seal(X(null, {
        tagCheck: {
            writable: !0,
            configurable: !1,
            enumerable: !0,
            value: null
        },
        attributeCheck: {
            writable: !0,
            configurable: !1,
            enumerable: !0,
            value: null
        }
    }));
    let Xe = !0,
        ge = !0,
        je = !1,
        Ve = !0,
        F = !1,
        Z = !0,
        U = !1,
        he = !1,
        Se = !1,
        z = !1,
        ue = !1,
        me = !1,
        $e = !0,
        qe = !1;
    const Ke = "user-content-";
    let Re = !0,
        J = !1,
        G = {},
        w = null;
    const Oe = 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 Ze = null;
    const Je = s({}, ["audio", "video", "img", "source", "image", "track"]);
    let ye = null;
    const Qe = s({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
        pe = "http://www.w3.org/1998/Math/MathML",
        Te = "http://www.w3.org/2000/svg",
        x = "http://www.w3.org/1999/xhtml";
    let B = x,
        be = !1,
        De = null;
    const Wt = s({}, [pe, Te, x], xe);
    let Ie = s({}, ["mi", "mo", "mn", "ms", "mtext"]),
        Le = s({}, ["annotation-xml"]);
    const Yt = s({}, ["title", "style", "font", "a", "script"]);
    let Q = null;
    const Xt = ["application/xhtml+xml", "text/html"],
        jt = "text/html";
    let d = null,
        W = null;
    const Vt = l.createElement("form"),
        et = function(e) {
            return e instanceof RegExp || e instanceof Function
        },
        Ne = function() {
            let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
            if (W && W === e) return;
            (!e || typeof e != "object") && (e = {}), e = I(e), Q = Xt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? jt : e.PARSER_MEDIA_TYPE, d = Q === "application/xhtml+xml" ? xe : ie, _ = u(e, "ALLOWED_TAGS") && O(e.ALLOWED_TAGS) ? s({}, e.ALLOWED_TAGS, d) : We, A = u(e, "ALLOWED_ATTR") && O(e.ALLOWED_ATTR) ? s({}, e.ALLOWED_ATTR, d) : Ye, De = u(e, "ALLOWED_NAMESPACES") && O(e.ALLOWED_NAMESPACES) ? s({}, e.ALLOWED_NAMESPACES, xe) : Wt, ye = u(e, "ADD_URI_SAFE_ATTR") && O(e.ADD_URI_SAFE_ATTR) ? s(I(Qe), e.ADD_URI_SAFE_ATTR, d) : Qe, Ze = u(e, "ADD_DATA_URI_TAGS") && O(e.ADD_DATA_URI_TAGS) ? s(I(Je), e.ADD_DATA_URI_TAGS, d) : Je, w = u(e, "FORBID_CONTENTS") && O(e.FORBID_CONTENTS) ? s({}, e.FORBID_CONTENTS, d) : Oe, K = u(e, "FORBID_TAGS") && O(e.FORBID_TAGS) ? s({}, e.FORBID_TAGS, d) : I({}), fe = u(e, "FORBID_ATTR") && O(e.FORBID_ATTR) ? s({}, e.FORBID_ATTR, d) : I({}), G = u(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? I(e.USE_PROFILES) : e.USE_PROFILES : !1, Xe = e.ALLOW_ARIA_ATTR !== !1, ge = e.ALLOW_DATA_ATTR !== !1, je = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ve = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, F = e.SAFE_FOR_TEMPLATES || !1, Z = e.SAFE_FOR_XML !== !1, U = e.WHOLE_DOCUMENT || !1, z = e.RETURN_DOM || !1, ue = e.RETURN_DOM_FRAGMENT || !1, me = e.RETURN_TRUSTED_TYPE || !1, Se = e.FORCE_BODY || !1, $e = e.SANITIZE_DOM !== !1, qe = e.SANITIZE_NAMED_PROPS || !1, Re = e.KEEP_CONTENT !== !1, J = e.IN_PLACE || !1, Be = An(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : bt, B = typeof e.NAMESPACE == "string" ? e.NAMESPACE : x, Ie = u(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? I(e.MATHML_TEXT_INTEGRATION_POINTS) : s({}, ["mi", "mo", "mn", "ms", "mtext"]), Le = u(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? I(e.HTML_INTEGRATION_POINTS) : s({}, ["annotation-xml"]);
            const t = u(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? I(e.CUSTOM_ELEMENT_HANDLING) : X(null);
            if (m = X(null), u(t, "tagNameCheck") && et(t.tagNameCheck) && (m.tagNameCheck = t.tagNameCheck), u(t, "attributeNameCheck") && et(t.attributeNameCheck) && (m.attributeNameCheck = t.attributeNameCheck), u(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (m.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), F && (ge = !1), ue && (z = !0), G && (_ = s({}, gt), A = X(null), G.html === !0 && (s(_, At), s(A, ht)), G.svg === !0 && (s(_, Pe), s(A, Fe), s(A, _e)), G.svgFilters === !0 && (s(_, ke), s(A, Fe), s(A, _e)), G.mathMl === !0 && (s(_, ve), s(A, St), s(A, _e))), v.tagCheck = null, v.attributeCheck = null, u(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? v.tagCheck = e.ADD_TAGS : O(e.ADD_TAGS) && (_ === We && (_ = I(_)), s(_, e.ADD_TAGS, d))), u(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? v.attributeCheck = e.ADD_ATTR : O(e.ADD_ATTR) && (A === Ye && (A = I(A)), s(A, e.ADD_ATTR, d))), u(e, "ADD_URI_SAFE_ATTR") && O(e.ADD_URI_SAFE_ATTR) && s(ye, e.ADD_URI_SAFE_ATTR, d), u(e, "FORBID_CONTENTS") && O(e.FORBID_CONTENTS) && (w === Oe && (w = I(w)), s(w, e.FORBID_CONTENTS, d)), u(e, "ADD_FORBID_CONTENTS") && O(e.ADD_FORBID_CONTENTS) && (w === Oe && (w = I(w)), s(w, e.ADD_FORBID_CONTENTS, d)), Re && (_["#text"] = !0), U && s(_, ["html", "head", "body"]), _.table && (s(_, ["tbody"]), delete K.tbody), e.TRUSTED_TYPES_POLICY) {
                if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
                if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
                S = e.TRUSTED_TYPES_POLICY, q = S.createHTML("")
            } else S === void 0 && (S = Cn(re, c)), S !== null && typeof q == "string" && (q = S.createHTML(""));
            y && y(e), W = e
        },
        tt = s({}, [...Pe, ...ke, ...gn]),
        nt = s({}, [...ve, ...hn]),
        $t = function(e) {
            let t = ae(e);
            (!t || !t.tagName) && (t = {
                namespaceURI: B,
                tagName: "template"
            });
            const o = ie(e.tagName),
                f = ie(t.tagName);
            return De[e.namespaceURI] ? e.namespaceURI === Te ? t.namespaceURI === x ? o === "svg" : t.namespaceURI === pe ? o === "svg" && (f === "annotation-xml" || Ie[f]) : !!tt[o] : e.namespaceURI === pe ? t.namespaceURI === x ? o === "math" : t.namespaceURI === Te ? o === "math" && Le[f] : !!nt[o] : e.namespaceURI === x ? t.namespaceURI === Te && !Le[f] || t.namespaceURI === pe && !Ie[f] ? !1 : !nt[o] && (Yt[o] || !tt[o]) : !!(Q === "application/xhtml+xml" && De[e.namespaceURI]) : !1
        },
        C = function(e) {
            te(n.removed, {
                element: e
            });
            try {
                ae(e).removeChild(e)
            } catch {
                wt(e)
            }
        },
        H = function(e, t) {
            try {
                te(n.removed, {
                    attribute: t.getAttributeNode(e),
                    from: t
                })
            } catch {
                te(n.removed, {
                    attribute: null,
                    from: t
                })
            }
            if (t.removeAttribute(e), e === "is")
                if (z || ue) try {
                    C(t)
                } catch {} else try {
                    t.setAttribute(e, "")
                } catch {}
        },
        ot = function(e) {
            let t = null,
                o = null;
            if (Se) e = "<remove></remove>" + e;
            else {
                const p = Tt(e, /^[\r\n\t ]+/);
                o = p && p[0]
            }
            Q === "application/xhtml+xml" && B === x && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
            const f = S ? S.createHTML(e) : e;
            if (B === x) try {
                t = new Ct().parseFromString(f, Q)
            } catch {}
            if (!t || !t.documentElement) {
                t = Ae.createDocument(B, "template", null);
                try {
                    t.documentElement.innerHTML = be ? q : f
                } catch {}
            }
            const h = t.body || t.documentElement;
            return e && o && h.insertBefore(l.createTextNode(o), h.childNodes[0] || null), B === x ? Ft.call(t, U ? "html" : "body")[0] : U ? t.documentElement : h
        },
        it = function(e) {
            return kt.call(e.ownerDocument || e, e, V.SHOW_ELEMENT | V.SHOW_COMMENT | V.SHOW_TEXT | V.SHOW_PROCESSING_INSTRUCTION | V.SHOW_CDATA_SECTION, null)
        },
        Ce = function(e) {
            return e instanceof Nt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof Lt) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function")
        },
        Me = function(e) {
            return typeof Ee == "function" && e instanceof Ee
        };

    function P(r, e, t) {
        ee(r, o => {
            o.call(n, e, t, W)
        })
    }
    const rt = function(e) {
            let t = null;
            if (P(R.beforeSanitizeElements, e, null), Ce(e)) return C(e), !0;
            const o = d(e.nodeName);
            if (P(R.uponSanitizeElement, e, {
                    tagName: o,
                    allowedTags: _
                }), Z && e.hasChildNodes() && !Me(e.firstElementChild) && g(/<[/\w!]/g, e.innerHTML) && g(/<[/\w!]/g, e.textContent) || Z && e.namespaceURI === x && o === "style" && Me(e.firstElementChild) || e.nodeType === oe.progressingInstruction || Z && e.nodeType === oe.comment && g(/<[/\w]/g, e.data)) return C(e), !0;
            if (K[o] || !(v.tagCheck instanceof Function && v.tagCheck(o)) && !_[o]) {
                if (!K[o] && st(o) && (m.tagNameCheck instanceof RegExp && g(m.tagNameCheck, o) || m.tagNameCheck instanceof Function && m.tagNameCheck(o))) return !1;
                if (Re && !w[o]) {
                    const f = ae(e) || e.parentNode,
                        h = Pt(e) || e.childNodes;
                    if (h && f) {
                        const p = h.length;
                        for (let D = p - 1; D >= 0; --D) {
                            const L = Mt(h[D], !0);
                            f.insertBefore(L, xt(e))
                        }
                    }
                }
                return C(e), !0
            }
            return e instanceof ze && !$t(e) || (o === "noscript" || o === "noembed" || o === "noframes") && g(/<\/no(script|embed|frames)/i, e.innerHTML) ? (C(e), !0) : (F && e.nodeType === oe.text && (t = e.textContent, ee([se, le, ce], f => {
                t = Y(t, f, " ")
            }), e.textContent !== t && (te(n.removed, {
                element: e.cloneNode()
            }), e.textContent = t)), P(R.afterSanitizeElements, e, null), !1)
        },
        at = function(e, t, o) {
            if (fe[t] || $e && (t === "id" || t === "name") && (o in l || o in Vt)) return !1;
            const f = A[t] || v.attributeCheck instanceof Function && v.attributeCheck(t, e);
            if (!(ge && !fe[t] && g(Ht, t))) {
                if (!(Xe && g(zt, t))) {
                    if (!f || fe[t]) {
                        if (!(st(e) && (m.tagNameCheck instanceof RegExp && g(m.tagNameCheck, e) || m.tagNameCheck instanceof Function && m.tagNameCheck(e)) && (m.attributeNameCheck instanceof RegExp && g(m.attributeNameCheck, t) || m.attributeNameCheck instanceof Function && m.attributeNameCheck(t, e)) || t === "is" && m.allowCustomizedBuiltInElements && (m.tagNameCheck instanceof RegExp && g(m.tagNameCheck, o) || m.tagNameCheck instanceof Function && m.tagNameCheck(o)))) return !1
                    } else if (!ye[t]) {
                        if (!g(Be, Y(o, Ge, ""))) {
                            if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && dt(o, "data:") === 0 && Ze[e])) {
                                if (!(je && !g(Gt, Y(o, Ge, "")))) {
                                    if (o) return !1
                                }
                            }
                        }
                    }
                }
            }
            return !0
        },
        qt = s({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]),
        st = function(e) {
            return !qt[ie(e)] && g(Bt, e)
        },
        lt = function(e) {
            P(R.beforeSanitizeAttributes, e, null);
            const {
                attributes: t
            } = e;
            if (!t || Ce(e)) return;
            const o = {
                attrName: "",
                attrValue: "",
                keepAttr: !0,
                allowedAttributes: A,
                forceKeepAttr: void 0
            };
            let f = t.length;
            for (; f--;) {
                const h = t[f],
                    {
                        name: p,
                        namespaceURI: D,
                        value: L
                    } = h,
                    M = d(p),
                    we = L;
                let E = p === "value" ? we : mn(we);
                if (o.attrName = M, o.attrValue = E, o.keepAttr = !0, o.forceKeepAttr = void 0, P(R.uponSanitizeAttribute, e, o), E = o.attrValue, qe && (M === "id" || M === "name") && dt(E, Ke) !== 0 && (H(p, e), E = Ke + E), Z && g(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, E)) {
                    H(p, e);
                    continue
                }
                if (M === "attributename" && Tt(E, "href")) {
                    H(p, e);
                    continue
                }
                if (o.forceKeepAttr) continue;
                if (!o.keepAttr) {
                    H(p, e);
                    continue
                }
                if (!Ve && g(/\/>/i, E)) {
                    H(p, e);
                    continue
                }
                F && ee([se, le, ce], ut => {
                    E = Y(E, ut, " ")
                });
                const ft = d(e.nodeName);
                if (!at(ft, M, E)) {
                    H(p, e);
                    continue
                }
                if (S && typeof re == "object" && typeof re.getAttributeType == "function" && !D) switch (re.getAttributeType(ft, M)) {
                    case "TrustedHTML":
                        {
                            E = S.createHTML(E);
                            break
                        }
                    case "TrustedScriptURL":
                        {
                            E = S.createScriptURL(E);
                            break
                        }
                }
                if (E !== we) try {
                    D ? e.setAttributeNS(D, p, E) : e.setAttribute(p, E), Ce(e) ? C(e) : pt(n.removed)
                } catch {
                    H(p, e)
                }
            }
            P(R.afterSanitizeAttributes, e, null)
        },
        ct = function(e) {
            let t = null;
            const o = it(e);
            for (P(R.beforeSanitizeShadowDOM, e, null); t = o.nextNode();) P(R.uponSanitizeShadowNode, t, null), rt(t), lt(t), t.content instanceof b && ct(t.content);
            P(R.afterSanitizeShadowDOM, e, null)
        };
    return n.sanitize = function(r) {
        let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
            t = null,
            o = null,
            f = null,
            h = null;
        if (be = !r, be && (r = "<!-->"), typeof r != "string" && !Me(r) && (r = En(r), typeof r != "string")) throw de("dirty is not a string, aborting");
        if (!n.isSupported) return r;
        if (he || Ne(e), n.removed = [], typeof r == "string" && (J = !1), J) {
            const L = r.nodeName;
            if (typeof L == "string") {
                const M = d(L);
                if (!_[M] || K[M]) throw de("root node is forbidden and cannot be sanitized in-place")
            }
        } else if (r instanceof Ee) t = ot("<!---->"), o = t.ownerDocument.importNode(r, !0), o.nodeType === oe.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? t = o : t.appendChild(o);
        else {
            if (!z && !F && !U && r.indexOf("<") === -1) return S && me ? S.createHTML(r) : r;
            if (t = ot(r), !t) return z ? null : me ? q : ""
        }
        t && Se && C(t.firstChild);
        const p = it(J ? r : t);
        for (; f = p.nextNode();) rt(f), lt(f), f.content instanceof b && ct(f.content);
        if (J) return r;
        if (z) {
            if (F) {
                t.normalize();
                let L = t.innerHTML;
                ee([se, le, ce], M => {
                    L = Y(L, M, " ")
                }), t.innerHTML = L
            }
            if (ue)
                for (h = vt.call(t.ownerDocument); t.firstChild;) h.appendChild(t.firstChild);
            else h = t;
            return (A.shadowroot || A.shadowrootmode) && (h = Ut.call(a, h, !0)), h
        }
        let D = U ? t.outerHTML : t.innerHTML;
        return U && _["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && g(Dt, t.ownerDocument.doctype.name) && (D = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
` + D), F && ee([se, le, ce], L => {
            D = Y(D, L, " ")
        }), S && me ? S.createHTML(D) : D
    }, n.setConfig = function() {
        let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
        Ne(r), he = !0
    }, n.clearConfig = function() {
        W = null, he = !1
    }, n.isValidAttribute = function(r, e, t) {
        W || Ne({});
        const o = d(r),
            f = d(e);
        return at(o, f, t)
    }, n.addHook = function(r, e) {
        typeof e == "function" && te(R[r], e)
    }, n.removeHook = function(r, e) {
        if (e !== void 0) {
            const t = fn(R[r], e);
            return t === -1 ? void 0 : un(R[r], t, 1)[0]
        }
        return pt(R[r])
    }, n.removeHooks = function(r) {
        R[r] = []
    }, n.removeAllHooks = function() {
        R = Ot()
    }, n
}
var Mn = It();
const wn = {
        class: "content ar-ua-html"
    },
    xn = Kt({
        __name: "index",
        setup(i) {
            const {
                getFrontdeskProtocolFn: n,
                rule: l
            } = an(), a = en(() => {
                const c = rn(l.value);
                return Mn.sanitize(c)
            });
            return Zt(async () => {
                await n(6)
            }), (c, b) => {
                const k = Jt("safe-html");
                return Qt((nn(), tn("div", wn, null, 512)), [
                    [k, a.value]
                ])
            }
        }
    }),
    Fn = on(xn, [
        ["__scopeId", "data-v-e78af78c"]
    ]);
export {
    Fn as r
};