@everymatrix/general-navigation-bar 1.88.9 → 1.88.10

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.
@@ -0,0 +1,705 @@
1
+ import { S as Kt, i as Zt, f as $, s as Jt, c as Qt, a as $t, n as dt, d as Ot, b as Nt, e as Dt, g as H, o as en, h as tn, j as _t, k as nn, l as on, m as rn, p as an } from "./GeneralNavigationBar-DldhffL6.js";
2
+ /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
3
+ const {
4
+ entries: Ct,
5
+ setPrototypeOf: Tt,
6
+ isFrozen: sn,
7
+ getPrototypeOf: ln,
8
+ getOwnPropertyDescriptor: cn
9
+ } = Object;
10
+ let {
11
+ freeze: S,
12
+ seal: N,
13
+ create: It
14
+ } = Object, {
15
+ apply: He,
16
+ construct: ze
17
+ } = typeof Reflect < "u" && Reflect;
18
+ S || (S = function(t) {
19
+ return t;
20
+ });
21
+ N || (N = function(t) {
22
+ return t;
23
+ });
24
+ He || (He = function(t, i, r) {
25
+ return t.apply(i, r);
26
+ });
27
+ ze || (ze = function(t, i) {
28
+ return new t(...i);
29
+ });
30
+ const _e = L(Array.prototype.forEach), ht = L(Array.prototype.pop), oe = L(Array.prototype.push), he = L(String.prototype.toLowerCase), Pe = L(String.prototype.toString), Et = L(String.prototype.match), re = L(String.prototype.replace), un = L(String.prototype.indexOf), fn = L(String.prototype.trim), I = L(Object.prototype.hasOwnProperty), A = L(RegExp.prototype.test), ae = mn(TypeError);
31
+ function L(s) {
32
+ return function(t) {
33
+ for (var i = arguments.length, r = new Array(i > 1 ? i - 1 : 0), c = 1; c < i; c++)
34
+ r[c - 1] = arguments[c];
35
+ return He(s, t, r);
36
+ };
37
+ }
38
+ function mn(s) {
39
+ return function() {
40
+ for (var t = arguments.length, i = new Array(t), r = 0; r < t; r++)
41
+ i[r] = arguments[r];
42
+ return ze(s, i);
43
+ };
44
+ }
45
+ function l(s, t) {
46
+ let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : he;
47
+ Tt && Tt(s, null);
48
+ let r = t.length;
49
+ for (; r--; ) {
50
+ let c = t[r];
51
+ if (typeof c == "string") {
52
+ const y = i(c);
53
+ y !== c && (sn(t) || (t[r] = y), c = y);
54
+ }
55
+ s[c] = !0;
56
+ }
57
+ return s;
58
+ }
59
+ function pn(s) {
60
+ for (let t = 0; t < s.length; t++)
61
+ I(s, t) || (s[t] = null);
62
+ return s;
63
+ }
64
+ function B(s) {
65
+ const t = It(null);
66
+ for (const [i, r] of Ct(s))
67
+ I(s, i) && (Array.isArray(r) ? t[i] = pn(r) : r && typeof r == "object" && r.constructor === Object ? t[i] = B(r) : t[i] = r);
68
+ return t;
69
+ }
70
+ function se(s, t) {
71
+ for (; s !== null; ) {
72
+ const r = cn(s, t);
73
+ if (r) {
74
+ if (r.get)
75
+ return L(r.get);
76
+ if (typeof r.value == "function")
77
+ return L(r.value);
78
+ }
79
+ s = ln(s);
80
+ }
81
+ function i() {
82
+ return null;
83
+ }
84
+ return i;
85
+ }
86
+ const At = S(["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", "section", "select", "shadow", "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"]), ve = S(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ke = S(["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 = S(["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"]), Ue = S(["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"]), dn = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), St = S(["#text"]), yt = S(["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", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "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", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Fe = S(["accent-height", "accumulate", "additive", "alignment-baseline", "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", "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", "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", "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", "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", "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"]), Rt = S(["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"]), Te = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), _n = N(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Tn = N(/<%[\w\W]*|[\w\W]*%>/gm), hn = N(/\${[\w\W]*}/gm), En = N(/^data-[\-\w.\u00B7-\uFFFF]/), An = N(/^aria-[\-\w]+$/), Mt = N(
87
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
88
+ // eslint-disable-line no-useless-escape
89
+ ), Sn = N(/^(?:\w+script|data):/i), yn = N(
90
+ /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
91
+ // eslint-disable-line no-control-regex
92
+ ), wt = N(/^html$/i), Rn = N(/^[a-z][.\w]*(-[.\w]+)+$/i);
93
+ var bt = /* @__PURE__ */ Object.freeze({
94
+ __proto__: null,
95
+ MUSTACHE_EXPR: _n,
96
+ ERB_EXPR: Tn,
97
+ TMPLIT_EXPR: hn,
98
+ DATA_ATTR: En,
99
+ ARIA_ATTR: An,
100
+ IS_ALLOWED_URI: Mt,
101
+ IS_SCRIPT_OR_DATA: Sn,
102
+ ATTR_WHITESPACE: yn,
103
+ DOCTYPE_NAME: wt,
104
+ CUSTOM_ELEMENT: Rn
105
+ });
106
+ const le = {
107
+ element: 1,
108
+ text: 3,
109
+ // Deprecated
110
+ progressingInstruction: 7,
111
+ comment: 8,
112
+ document: 9
113
+ }, bn = function() {
114
+ return typeof window > "u" ? null : window;
115
+ }, Ln = function(t, i) {
116
+ if (typeof t != "object" || typeof t.createPolicy != "function")
117
+ return null;
118
+ let r = null;
119
+ const c = "data-tt-policy-suffix";
120
+ i && i.hasAttribute(c) && (r = i.getAttribute(c));
121
+ const y = "dompurify" + (r ? "#" + r : "");
122
+ try {
123
+ return t.createPolicy(y, {
124
+ createHTML(D) {
125
+ return D;
126
+ },
127
+ createScriptURL(D) {
128
+ return D;
129
+ }
130
+ });
131
+ } catch {
132
+ return console.warn("TrustedTypes policy " + y + " could not be created."), null;
133
+ }
134
+ };
135
+ function xt() {
136
+ let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : bn();
137
+ const t = (a) => xt(a);
138
+ if (t.version = "3.1.6", t.removed = [], !s || !s.document || s.document.nodeType !== le.document)
139
+ return t.isSupported = !1, t;
140
+ let {
141
+ document: i
142
+ } = s;
143
+ const r = i, c = r.currentScript, {
144
+ DocumentFragment: y,
145
+ HTMLTemplateElement: D,
146
+ Node: U,
147
+ Element: z,
148
+ NodeFilter: M,
149
+ NamedNodeMap: O = s.NamedNodeMap || s.MozNamedAttrMap,
150
+ HTMLFormElement: Y,
151
+ DOMParser: b,
152
+ trustedTypes: j
153
+ } = s, G = z.prototype, Ee = se(G, "cloneNode"), Ae = se(G, "remove"), f = se(G, "nextSibling"), C = se(G, "childNodes"), F = se(G, "parentNode");
154
+ if (typeof D == "function") {
155
+ const a = i.createElement("template");
156
+ a.content && a.content.ownerDocument && (i = a.content.ownerDocument);
157
+ }
158
+ let _, X = "";
159
+ const {
160
+ implementation: ce,
161
+ createNodeIterator: ue,
162
+ createDocumentFragment: Pt,
163
+ getElementsByTagName: vt
164
+ } = i, {
165
+ importNode: kt
166
+ } = r;
167
+ let w = {};
168
+ t.isSupported = typeof Ct == "function" && typeof F == "function" && ce && ce.createHTMLDocument !== void 0;
169
+ const {
170
+ MUSTACHE_EXPR: Se,
171
+ ERB_EXPR: ye,
172
+ TMPLIT_EXPR: Re,
173
+ DATA_ATTR: Ut,
174
+ ARIA_ATTR: Ft,
175
+ IS_SCRIPT_OR_DATA: Ht,
176
+ ATTR_WHITESPACE: Ge,
177
+ CUSTOM_ELEMENT: zt
178
+ } = bt;
179
+ let {
180
+ IS_ALLOWED_URI: We
181
+ } = bt, p = null;
182
+ const Be = l({}, [...At, ...ve, ...ke, ...Ue, ...St]);
183
+ let g = null;
184
+ const Ye = l({}, [...yt, ...Fe, ...Rt, ...Te]);
185
+ let m = Object.seal(It(null, {
186
+ tagNameCheck: {
187
+ writable: !0,
188
+ configurable: !1,
189
+ enumerable: !0,
190
+ value: null
191
+ },
192
+ attributeNameCheck: {
193
+ writable: !0,
194
+ configurable: !1,
195
+ enumerable: !0,
196
+ value: null
197
+ },
198
+ allowCustomizedBuiltInElements: {
199
+ writable: !0,
200
+ configurable: !1,
201
+ enumerable: !0,
202
+ value: !1
203
+ }
204
+ })), ee = null, be = null, je = !0, Le = !0, Xe = !1, Ve = !0, V = !1, Oe = !0, W = !1, Ne = !1, De = !1, q = !1, fe = !1, me = !1, qe = !0, Ke = !1;
205
+ const Gt = "user-content-";
206
+ let Ce = !0, te = !1, K = {}, Z = null;
207
+ const Ze = l({}, ["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"]);
208
+ let Je = null;
209
+ const Qe = l({}, ["audio", "video", "img", "source", "image", "track"]);
210
+ let Ie = null;
211
+ const $e = l({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), pe = "http://www.w3.org/1998/Math/MathML", ge = "http://www.w3.org/2000/svg", v = "http://www.w3.org/1999/xhtml";
212
+ let J = v, Me = !1, we = null;
213
+ const Wt = l({}, [pe, ge, v], Pe);
214
+ let ne = null;
215
+ const Bt = ["application/xhtml+xml", "text/html"], Yt = "text/html";
216
+ let d = null, Q = null;
217
+ const jt = i.createElement("form"), et = function(e) {
218
+ return e instanceof RegExp || e instanceof Function;
219
+ }, xe = function() {
220
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
221
+ if (!(Q && Q === e)) {
222
+ if ((!e || typeof e != "object") && (e = {}), e = B(e), ne = // eslint-disable-next-line unicorn/prefer-includes
223
+ Bt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Yt : e.PARSER_MEDIA_TYPE, d = ne === "application/xhtml+xml" ? Pe : he, p = I(e, "ALLOWED_TAGS") ? l({}, e.ALLOWED_TAGS, d) : Be, g = I(e, "ALLOWED_ATTR") ? l({}, e.ALLOWED_ATTR, d) : Ye, we = I(e, "ALLOWED_NAMESPACES") ? l({}, e.ALLOWED_NAMESPACES, Pe) : Wt, Ie = I(e, "ADD_URI_SAFE_ATTR") ? l(
224
+ B($e),
225
+ // eslint-disable-line indent
226
+ e.ADD_URI_SAFE_ATTR,
227
+ // eslint-disable-line indent
228
+ d
229
+ // eslint-disable-line indent
230
+ ) : $e, Je = I(e, "ADD_DATA_URI_TAGS") ? l(
231
+ B(Qe),
232
+ // eslint-disable-line indent
233
+ e.ADD_DATA_URI_TAGS,
234
+ // eslint-disable-line indent
235
+ d
236
+ // eslint-disable-line indent
237
+ ) : Qe, Z = I(e, "FORBID_CONTENTS") ? l({}, e.FORBID_CONTENTS, d) : Ze, ee = I(e, "FORBID_TAGS") ? l({}, e.FORBID_TAGS, d) : {}, be = I(e, "FORBID_ATTR") ? l({}, e.FORBID_ATTR, d) : {}, K = I(e, "USE_PROFILES") ? e.USE_PROFILES : !1, je = e.ALLOW_ARIA_ATTR !== !1, Le = e.ALLOW_DATA_ATTR !== !1, Xe = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ve = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, Oe = e.SAFE_FOR_XML !== !1, W = e.WHOLE_DOCUMENT || !1, q = e.RETURN_DOM || !1, fe = e.RETURN_DOM_FRAGMENT || !1, me = e.RETURN_TRUSTED_TYPE || !1, De = e.FORCE_BODY || !1, qe = e.SANITIZE_DOM !== !1, Ke = e.SANITIZE_NAMED_PROPS || !1, Ce = e.KEEP_CONTENT !== !1, te = e.IN_PLACE || !1, We = e.ALLOWED_URI_REGEXP || Mt, J = e.NAMESPACE || v, m = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (m.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (m.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (m.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), V && (Le = !1), fe && (q = !0), K && (p = l({}, St), g = [], K.html === !0 && (l(p, At), l(g, yt)), K.svg === !0 && (l(p, ve), l(g, Fe), l(g, Te)), K.svgFilters === !0 && (l(p, ke), l(g, Fe), l(g, Te)), K.mathMl === !0 && (l(p, Ue), l(g, Rt), l(g, Te))), e.ADD_TAGS && (p === Be && (p = B(p)), l(p, e.ADD_TAGS, d)), e.ADD_ATTR && (g === Ye && (g = B(g)), l(g, e.ADD_ATTR, d)), e.ADD_URI_SAFE_ATTR && l(Ie, e.ADD_URI_SAFE_ATTR, d), e.FORBID_CONTENTS && (Z === Ze && (Z = B(Z)), l(Z, e.FORBID_CONTENTS, d)), Ce && (p["#text"] = !0), W && l(p, ["html", "head", "body"]), p.table && (l(p, ["tbody"]), delete ee.tbody), e.TRUSTED_TYPES_POLICY) {
238
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
239
+ throw ae('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
240
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
241
+ throw ae('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
242
+ _ = e.TRUSTED_TYPES_POLICY, X = _.createHTML("");
243
+ } else
244
+ _ === void 0 && (_ = Ln(j, c)), _ !== null && typeof X == "string" && (X = _.createHTML(""));
245
+ S && S(e), Q = e;
246
+ }
247
+ }, tt = l({}, ["mi", "mo", "mn", "ms", "mtext"]), nt = l({}, ["foreignobject", "annotation-xml"]), Xt = l({}, ["title", "style", "font", "a", "script"]), it = l({}, [...ve, ...ke, ...gn]), ot = l({}, [...Ue, ...dn]), Vt = function(e) {
248
+ let n = F(e);
249
+ (!n || !n.tagName) && (n = {
250
+ namespaceURI: J,
251
+ tagName: "template"
252
+ });
253
+ const o = he(e.tagName), u = he(n.tagName);
254
+ return we[e.namespaceURI] ? e.namespaceURI === ge ? n.namespaceURI === v ? o === "svg" : n.namespaceURI === pe ? o === "svg" && (u === "annotation-xml" || tt[u]) : !!it[o] : e.namespaceURI === pe ? n.namespaceURI === v ? o === "math" : n.namespaceURI === ge ? o === "math" && nt[u] : !!ot[o] : e.namespaceURI === v ? n.namespaceURI === ge && !nt[u] || n.namespaceURI === pe && !tt[u] ? !1 : !ot[o] && (Xt[o] || !it[o]) : !!(ne === "application/xhtml+xml" && we[e.namespaceURI]) : !1;
255
+ }, x = function(e) {
256
+ oe(t.removed, {
257
+ element: e
258
+ });
259
+ try {
260
+ F(e).removeChild(e);
261
+ } catch {
262
+ Ae(e);
263
+ }
264
+ }, de = function(e, n) {
265
+ try {
266
+ oe(t.removed, {
267
+ attribute: n.getAttributeNode(e),
268
+ from: n
269
+ });
270
+ } catch {
271
+ oe(t.removed, {
272
+ attribute: null,
273
+ from: n
274
+ });
275
+ }
276
+ if (n.removeAttribute(e), e === "is" && !g[e])
277
+ if (q || fe)
278
+ try {
279
+ x(n);
280
+ } catch {
281
+ }
282
+ else
283
+ try {
284
+ n.setAttribute(e, "");
285
+ } catch {
286
+ }
287
+ }, rt = function(e) {
288
+ let n = null, o = null;
289
+ if (De)
290
+ e = "<remove></remove>" + e;
291
+ else {
292
+ const T = Et(e, /^[\r\n\t ]+/);
293
+ o = T && T[0];
294
+ }
295
+ ne === "application/xhtml+xml" && J === v && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
296
+ const u = _ ? _.createHTML(e) : e;
297
+ if (J === v)
298
+ try {
299
+ n = new b().parseFromString(u, ne);
300
+ } catch {
301
+ }
302
+ if (!n || !n.documentElement) {
303
+ n = ce.createDocument(J, "template", null);
304
+ try {
305
+ n.documentElement.innerHTML = Me ? X : u;
306
+ } catch {
307
+ }
308
+ }
309
+ const h = n.body || n.documentElement;
310
+ return e && o && h.insertBefore(i.createTextNode(o), h.childNodes[0] || null), J === v ? vt.call(n, W ? "html" : "body")[0] : W ? n.documentElement : h;
311
+ }, at = function(e) {
312
+ return ue.call(
313
+ e.ownerDocument || e,
314
+ e,
315
+ // eslint-disable-next-line no-bitwise
316
+ M.SHOW_ELEMENT | M.SHOW_COMMENT | M.SHOW_TEXT | M.SHOW_PROCESSING_INSTRUCTION | M.SHOW_CDATA_SECTION,
317
+ null
318
+ );
319
+ }, st = function(e) {
320
+ return e instanceof Y && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof O) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
321
+ }, lt = function(e) {
322
+ return typeof U == "function" && e instanceof U;
323
+ }, k = function(e, n, o) {
324
+ w[e] && _e(w[e], (u) => {
325
+ u.call(t, n, o, Q);
326
+ });
327
+ }, ct = function(e) {
328
+ let n = null;
329
+ if (k("beforeSanitizeElements", e, null), st(e))
330
+ return x(e), !0;
331
+ const o = d(e.nodeName);
332
+ if (k("uponSanitizeElement", e, {
333
+ tagName: o,
334
+ allowedTags: p
335
+ }), e.hasChildNodes() && !lt(e.firstElementChild) && A(/<[/\w]/g, e.innerHTML) && A(/<[/\w]/g, e.textContent) || e.nodeType === le.progressingInstruction || Oe && e.nodeType === le.comment && A(/<[/\w]/g, e.data))
336
+ return x(e), !0;
337
+ if (!p[o] || ee[o]) {
338
+ if (!ee[o] && ft(o) && (m.tagNameCheck instanceof RegExp && A(m.tagNameCheck, o) || m.tagNameCheck instanceof Function && m.tagNameCheck(o)))
339
+ return !1;
340
+ if (Ce && !Z[o]) {
341
+ const u = F(e) || e.parentNode, h = C(e) || e.childNodes;
342
+ if (h && u) {
343
+ const T = h.length;
344
+ for (let R = T - 1; R >= 0; --R) {
345
+ const P = Ee(h[R], !0);
346
+ P.__removalCount = (e.__removalCount || 0) + 1, u.insertBefore(P, f(e));
347
+ }
348
+ }
349
+ }
350
+ return x(e), !0;
351
+ }
352
+ return e instanceof z && !Vt(e) || (o === "noscript" || o === "noembed" || o === "noframes") && A(/<\/no(script|embed|frames)/i, e.innerHTML) ? (x(e), !0) : (V && e.nodeType === le.text && (n = e.textContent, _e([Se, ye, Re], (u) => {
353
+ n = re(n, u, " ");
354
+ }), e.textContent !== n && (oe(t.removed, {
355
+ element: e.cloneNode()
356
+ }), e.textContent = n)), k("afterSanitizeElements", e, null), !1);
357
+ }, ut = function(e, n, o) {
358
+ if (qe && (n === "id" || n === "name") && (o in i || o in jt))
359
+ return !1;
360
+ if (!(Le && !be[n] && A(Ut, n))) {
361
+ if (!(je && A(Ft, n))) {
362
+ if (!g[n] || be[n]) {
363
+ if (
364
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
365
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
366
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
367
+ !(ft(e) && (m.tagNameCheck instanceof RegExp && A(m.tagNameCheck, e) || m.tagNameCheck instanceof Function && m.tagNameCheck(e)) && (m.attributeNameCheck instanceof RegExp && A(m.attributeNameCheck, n) || m.attributeNameCheck instanceof Function && m.attributeNameCheck(n)) || // Alternative, second condition checks if it's an `is`-attribute, AND
368
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
369
+ n === "is" && m.allowCustomizedBuiltInElements && (m.tagNameCheck instanceof RegExp && A(m.tagNameCheck, o) || m.tagNameCheck instanceof Function && m.tagNameCheck(o)))
370
+ )
371
+ return !1;
372
+ } else if (!Ie[n]) {
373
+ if (!A(We, re(o, Ge, ""))) {
374
+ if (!((n === "src" || n === "xlink:href" || n === "href") && e !== "script" && un(o, "data:") === 0 && Je[e])) {
375
+ if (!(Xe && !A(Ht, re(o, Ge, "")))) {
376
+ if (o)
377
+ return !1;
378
+ }
379
+ }
380
+ }
381
+ }
382
+ }
383
+ }
384
+ return !0;
385
+ }, ft = function(e) {
386
+ return e !== "annotation-xml" && Et(e, zt);
387
+ }, mt = function(e) {
388
+ k("beforeSanitizeAttributes", e, null);
389
+ const {
390
+ attributes: n
391
+ } = e;
392
+ if (!n)
393
+ return;
394
+ const o = {
395
+ attrName: "",
396
+ attrValue: "",
397
+ keepAttr: !0,
398
+ allowedAttributes: g
399
+ };
400
+ let u = n.length;
401
+ for (; u--; ) {
402
+ const h = n[u], {
403
+ name: T,
404
+ namespaceURI: R,
405
+ value: P
406
+ } = h, ie = d(T);
407
+ let E = T === "value" ? P : fn(P);
408
+ if (o.attrName = ie, o.attrValue = E, o.keepAttr = !0, o.forceKeepAttr = void 0, k("uponSanitizeAttribute", e, o), E = o.attrValue, Oe && A(/((--!?|])>)|<\/(style|title)/i, E)) {
409
+ de(T, e);
410
+ continue;
411
+ }
412
+ if (o.forceKeepAttr || (de(T, e), !o.keepAttr))
413
+ continue;
414
+ if (!Ve && A(/\/>/i, E)) {
415
+ de(T, e);
416
+ continue;
417
+ }
418
+ V && _e([Se, ye, Re], (gt) => {
419
+ E = re(E, gt, " ");
420
+ });
421
+ const pt = d(e.nodeName);
422
+ if (ut(pt, ie, E)) {
423
+ if (Ke && (ie === "id" || ie === "name") && (de(T, e), E = Gt + E), _ && typeof j == "object" && typeof j.getAttributeType == "function" && !R)
424
+ switch (j.getAttributeType(pt, ie)) {
425
+ case "TrustedHTML": {
426
+ E = _.createHTML(E);
427
+ break;
428
+ }
429
+ case "TrustedScriptURL": {
430
+ E = _.createScriptURL(E);
431
+ break;
432
+ }
433
+ }
434
+ try {
435
+ R ? e.setAttributeNS(R, T, E) : e.setAttribute(T, E), st(e) ? x(e) : ht(t.removed);
436
+ } catch {
437
+ }
438
+ }
439
+ }
440
+ k("afterSanitizeAttributes", e, null);
441
+ }, qt = function a(e) {
442
+ let n = null;
443
+ const o = at(e);
444
+ for (k("beforeSanitizeShadowDOM", e, null); n = o.nextNode(); )
445
+ k("uponSanitizeShadowNode", n, null), !ct(n) && (n.content instanceof y && a(n.content), mt(n));
446
+ k("afterSanitizeShadowDOM", e, null);
447
+ };
448
+ return t.sanitize = function(a) {
449
+ let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = null, o = null, u = null, h = null;
450
+ if (Me = !a, Me && (a = "<!-->"), typeof a != "string" && !lt(a))
451
+ if (typeof a.toString == "function") {
452
+ if (a = a.toString(), typeof a != "string")
453
+ throw ae("dirty is not a string, aborting");
454
+ } else
455
+ throw ae("toString is not a function");
456
+ if (!t.isSupported)
457
+ return a;
458
+ if (Ne || xe(e), t.removed = [], typeof a == "string" && (te = !1), te) {
459
+ if (a.nodeName) {
460
+ const P = d(a.nodeName);
461
+ if (!p[P] || ee[P])
462
+ throw ae("root node is forbidden and cannot be sanitized in-place");
463
+ }
464
+ } else if (a instanceof U)
465
+ n = rt("<!---->"), o = n.ownerDocument.importNode(a, !0), o.nodeType === le.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? n = o : n.appendChild(o);
466
+ else {
467
+ if (!q && !V && !W && // eslint-disable-next-line unicorn/prefer-includes
468
+ a.indexOf("<") === -1)
469
+ return _ && me ? _.createHTML(a) : a;
470
+ if (n = rt(a), !n)
471
+ return q ? null : me ? X : "";
472
+ }
473
+ n && De && x(n.firstChild);
474
+ const T = at(te ? a : n);
475
+ for (; u = T.nextNode(); )
476
+ ct(u) || (u.content instanceof y && qt(u.content), mt(u));
477
+ if (te)
478
+ return a;
479
+ if (q) {
480
+ if (fe)
481
+ for (h = Pt.call(n.ownerDocument); n.firstChild; )
482
+ h.appendChild(n.firstChild);
483
+ else
484
+ h = n;
485
+ return (g.shadowroot || g.shadowrootmode) && (h = kt.call(r, h, !0)), h;
486
+ }
487
+ let R = W ? n.outerHTML : n.innerHTML;
488
+ return W && p["!doctype"] && n.ownerDocument && n.ownerDocument.doctype && n.ownerDocument.doctype.name && A(wt, n.ownerDocument.doctype.name) && (R = "<!DOCTYPE " + n.ownerDocument.doctype.name + `>
489
+ ` + R), V && _e([Se, ye, Re], (P) => {
490
+ R = re(R, P, " ");
491
+ }), _ && me ? _.createHTML(R) : R;
492
+ }, t.setConfig = function() {
493
+ let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
494
+ xe(a), Ne = !0;
495
+ }, t.clearConfig = function() {
496
+ Q = null, Ne = !1;
497
+ }, t.isValidAttribute = function(a, e, n) {
498
+ Q || xe({});
499
+ const o = d(a), u = d(e);
500
+ return ut(o, u, n);
501
+ }, t.addHook = function(a, e) {
502
+ typeof e == "function" && (w[a] = w[a] || [], oe(w[a], e));
503
+ }, t.removeHook = function(a) {
504
+ if (w[a])
505
+ return ht(w[a]);
506
+ }, t.removeHooks = function(a) {
507
+ w[a] && (w[a] = []);
508
+ }, t.removeAllHooks = function() {
509
+ w = {};
510
+ }, t;
511
+ }
512
+ var On = xt();
513
+ function Nn(s) {
514
+ $t(s, "svelte-88v9np", ".InlineSvgContainer{display:inline-flex}");
515
+ }
516
+ function Lt(s) {
517
+ let t, i;
518
+ return {
519
+ c() {
520
+ t = Dt("img"), _t(t.src, i = /*src*/
521
+ s[0]) || H(t, "src", i), H(
522
+ t,
523
+ "class",
524
+ /*className*/
525
+ s[1]
526
+ ), H(
527
+ t,
528
+ "alt",
529
+ /*ariaLabel*/
530
+ s[2]
531
+ );
532
+ },
533
+ m(r, c) {
534
+ Nt(r, t, c);
535
+ },
536
+ p(r, c) {
537
+ c & /*src*/
538
+ 1 && !_t(t.src, i = /*src*/
539
+ r[0]) && H(t, "src", i), c & /*className*/
540
+ 2 && H(
541
+ t,
542
+ "class",
543
+ /*className*/
544
+ r[1]
545
+ ), c & /*ariaLabel*/
546
+ 4 && H(
547
+ t,
548
+ "alt",
549
+ /*ariaLabel*/
550
+ r[2]
551
+ );
552
+ },
553
+ d(r) {
554
+ r && Ot(t);
555
+ }
556
+ };
557
+ }
558
+ function Dn(s) {
559
+ let t, i = (
560
+ /*failed*/
561
+ s[4] && Lt(s)
562
+ );
563
+ return {
564
+ c() {
565
+ t = Dt("span"), i && i.c(), H(t, "class", "InlineSvgContainer"), H(t, "part", "svg-container");
566
+ },
567
+ m(r, c) {
568
+ Nt(r, t, c), i && i.m(t, null), s[8](t);
569
+ },
570
+ p(r, [c]) {
571
+ /*failed*/
572
+ r[4] ? i ? i.p(r, c) : (i = Lt(r), i.c(), i.m(t, null)) : i && (i.d(1), i = null);
573
+ },
574
+ i: dt,
575
+ o: dt,
576
+ d(r) {
577
+ r && Ot(t), i && i.d(), s[8](null);
578
+ }
579
+ };
580
+ }
581
+ function Cn(s, t, i) {
582
+ let { src: r } = t, { className: c = "" } = t, { ariaLabel: y = "" } = t, { clientstyling: D = "" } = t, { clientstylingurl: U = "" } = t, { mbsource: z } = t, M = !1, O = null, Y, b, j;
583
+ async function G(f) {
584
+ if (f) {
585
+ if (i(4, M = !1), Y?.abort(), Y = new AbortController(), !f.toLowerCase().endsWith(".svg")) {
586
+ i(4, M = !0);
587
+ return;
588
+ }
589
+ try {
590
+ const C = await fetch(f, { signal: Y.signal });
591
+ if (!C.ok)
592
+ throw new Error("Fetch failed");
593
+ const F = await C.text(), _ = On.sanitize(F, {
594
+ USE_PROFILES: { svg: !0, svgFilters: !0 },
595
+ FORBID_TAGS: ["foreignObject"],
596
+ FORBID_ATTR: ["onload", "onerror", "onclick", "onmouseover"]
597
+ }), ue = new DOMParser().parseFromString(_, "image/svg+xml").querySelector("svg");
598
+ if (!ue)
599
+ throw new Error("No SVG element found");
600
+ if (O = ue, y ? (O.setAttribute("role", "img"), O.setAttribute("aria-label", y)) : O.setAttribute("aria-hidden", "true"), O.setAttribute("part", "svg-icon"), !b)
601
+ return;
602
+ b.replaceChildren(O);
603
+ } catch (C) {
604
+ if (C.name === "AbortError")
605
+ return;
606
+ console.error("Inline SVG error:", C), i(4, M = !0);
607
+ }
608
+ }
609
+ }
610
+ function Ee(f) {
611
+ if (!O)
612
+ return;
613
+ const C = f?.trim() ?? "", F = O.getAttribute("class") ?? "";
614
+ C !== F && (C ? O.setAttribute("class", C) : O.removeAttribute("class"));
615
+ }
616
+ en(() => () => {
617
+ }), tn(() => {
618
+ Y?.abort();
619
+ });
620
+ function Ae(f) {
621
+ nn[f ? "unshift" : "push"](() => {
622
+ b = f, i(3, b);
623
+ });
624
+ }
625
+ return s.$$set = (f) => {
626
+ "src" in f && i(0, r = f.src), "className" in f && i(1, c = f.className), "ariaLabel" in f && i(2, y = f.ariaLabel), "clientstyling" in f && i(5, D = f.clientstyling), "clientstylingurl" in f && i(6, U = f.clientstylingurl), "mbsource" in f && i(7, z = f.mbsource);
627
+ }, s.$$.update = () => {
628
+ s.$$.dirty & /*src*/
629
+ 1 && r && G(r), s.$$.dirty & /*className*/
630
+ 2 && Ee(c), s.$$.dirty & /*clientstyling, customStylingContainer*/
631
+ 40 && D && b && on(b, D), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
632
+ 72 && U && b && rn(b, U), s.$$.dirty & /*mbsource, customStylingContainer*/
633
+ 136 && z && b && an(b, `${z}.Style`, j);
634
+ }, [
635
+ r,
636
+ c,
637
+ y,
638
+ b,
639
+ M,
640
+ D,
641
+ U,
642
+ z,
643
+ Ae
644
+ ];
645
+ }
646
+ class In extends Kt {
647
+ constructor(t) {
648
+ super(), Zt(
649
+ this,
650
+ t,
651
+ Cn,
652
+ Dn,
653
+ Jt,
654
+ {
655
+ src: 0,
656
+ className: 1,
657
+ ariaLabel: 2,
658
+ clientstyling: 5,
659
+ clientstylingurl: 6,
660
+ mbsource: 7
661
+ },
662
+ Nn
663
+ );
664
+ }
665
+ get src() {
666
+ return this.$$.ctx[0];
667
+ }
668
+ set src(t) {
669
+ this.$$set({ src: t }), $();
670
+ }
671
+ get className() {
672
+ return this.$$.ctx[1];
673
+ }
674
+ set className(t) {
675
+ this.$$set({ className: t }), $();
676
+ }
677
+ get ariaLabel() {
678
+ return this.$$.ctx[2];
679
+ }
680
+ set ariaLabel(t) {
681
+ this.$$set({ ariaLabel: t }), $();
682
+ }
683
+ get clientstyling() {
684
+ return this.$$.ctx[5];
685
+ }
686
+ set clientstyling(t) {
687
+ this.$$set({ clientstyling: t }), $();
688
+ }
689
+ get clientstylingurl() {
690
+ return this.$$.ctx[6];
691
+ }
692
+ set clientstylingurl(t) {
693
+ this.$$set({ clientstylingurl: t }), $();
694
+ }
695
+ get mbsource() {
696
+ return this.$$.ctx[7];
697
+ }
698
+ set mbsource(t) {
699
+ this.$$set({ mbsource: t }), $();
700
+ }
701
+ }
702
+ Qt(In, { src: {}, className: {}, ariaLabel: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
703
+ export {
704
+ In as default
705
+ };