@ranty/ranty-sdk 3.0.6-beta.6 → 3.0.6-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-3052cbac.js +85383 -0
- package/dist/index.es-c9935fd1.js +5744 -0
- package/dist/index.js +1 -1
- package/dist/{purify.es-DLMkvm8t.js → purify.es-7e874485.js} +37 -27
- package/package.json +6 -6
- package/dist/index-B4ClDNMx.js +0 -47316
- package/dist/index.es-V66M9J9e.js +0 -6636
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as n, am as o, ai as t, al as e, ab as r, ap as C, an as p, ao as A, ac as m, a9 as i, ah as l, ag as u, aa as d, l as c, ak as P, aj as F, ad as S, ae as y, af as I, R as M, B as O, a8 as k, X as H, U as L, a1 as f, T as g, a2 as D, a3 as v, a4 as b, h as x, f as E, a7 as h, a6 as B, V as Q, W as j, Y as w, Z as N, $ as q, C as z, k as G, x as J, a as K, d as R, a5 as T, D as U, a0 as V, E as W, e as X, m as Y, b as Z, F as $, I as _, M as aa, L as sa, N as na, P as oa, n as ta, z as ea, G as ra, y as Ca, O as pa, H as Aa, J as ma, K as ia, Q as la, S as ua, o as da, j as ca, p as Pa, q as Fa, r as Sa, i as ya, v as Ia, s as Ma, t as Oa, u as ka, w as Ha } from "./index-
|
|
1
|
+
import { A as n, am as o, ai as t, al as e, ab as r, ap as C, an as p, ao as A, ac as m, a9 as i, ah as l, ag as u, aa as d, l as c, ak as P, aj as F, ad as S, ae as y, af as I, R as M, B as O, a8 as k, X as H, U as L, a1 as f, T as g, a2 as D, a3 as v, a4 as b, h as x, f as E, a7 as h, a6 as B, V as Q, W as j, Y as w, Z as N, $ as q, C as z, k as G, x as J, a as K, d as R, a5 as T, D as U, a0 as V, E as W, e as X, m as Y, b as Z, F as $, I as _, M as aa, L as sa, N as na, P as oa, n as ta, z as ea, G as ra, y as Ca, O as pa, H as Aa, J as ma, K as ia, Q as la, S as ua, o as da, j as ca, p as Pa, q as Fa, r as Sa, i as ya, v as Ia, s as Ma, t as Oa, u as ka, w as Ha } from "./index-3052cbac.js";
|
|
2
2
|
export {
|
|
3
3
|
n as A2AAccountComponent,
|
|
4
4
|
o as A2AAccountDetails,
|
|
@@ -8,7 +8,7 @@ const {
|
|
|
8
8
|
} = Object;
|
|
9
9
|
let {
|
|
10
10
|
freeze: S,
|
|
11
|
-
seal:
|
|
11
|
+
seal: O,
|
|
12
12
|
create: Tt
|
|
13
13
|
} = Object, {
|
|
14
14
|
apply: Ce,
|
|
@@ -17,7 +17,7 @@ let {
|
|
|
17
17
|
S || (S = function(o) {
|
|
18
18
|
return o;
|
|
19
19
|
});
|
|
20
|
-
|
|
20
|
+
O || (O = function(o) {
|
|
21
21
|
return o;
|
|
22
22
|
});
|
|
23
23
|
Ce || (Ce = function(o, l, s) {
|
|
@@ -82,13 +82,13 @@ function K(r, o) {
|
|
|
82
82
|
}
|
|
83
83
|
return l;
|
|
84
84
|
}
|
|
85
|
-
const lt = 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"]), De = 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"]), be = 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"]), Zt = 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"]), Ie = 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"]), Jt = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ct = S(["#text"]), ft = 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"]), Me = S(["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", "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"]), ut = 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"]), le = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qt =
|
|
85
|
+
const lt = 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"]), De = 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"]), be = 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"]), Zt = 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"]), Ie = 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"]), Jt = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ct = S(["#text"]), ft = 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"]), Me = S(["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", "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"]), ut = 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"]), le = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qt = O(/\{\{[\w\W]*|[\w\W]*\}\}/gm), en = O(/<%[\w\W]*|[\w\W]*%>/gm), tn = O(/\$\{[\w\W]*/gm), nn = O(/^data-[\-\w.\u00B7-\uFFFF]+$/), on = O(/^aria-[\-\w]+$/), _t = O(
|
|
86
86
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
87
87
|
// eslint-disable-line no-useless-escape
|
|
88
|
-
), an =
|
|
88
|
+
), an = O(/^(?:\w+script|data):/i), rn = O(
|
|
89
89
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
90
90
|
// eslint-disable-line no-control-regex
|
|
91
|
-
), Et =
|
|
91
|
+
), Et = O(/^html$/i), sn = O(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
92
92
|
var mt = /* @__PURE__ */ Object.freeze({
|
|
93
93
|
__proto__: null,
|
|
94
94
|
ARIA_ATTR: on,
|
|
@@ -104,11 +104,20 @@ var mt = /* @__PURE__ */ Object.freeze({
|
|
|
104
104
|
});
|
|
105
105
|
const Z = {
|
|
106
106
|
element: 1,
|
|
107
|
+
attribute: 2,
|
|
107
108
|
text: 3,
|
|
109
|
+
cdataSection: 4,
|
|
110
|
+
entityReference: 5,
|
|
111
|
+
// Deprecated
|
|
112
|
+
entityNode: 6,
|
|
108
113
|
// Deprecated
|
|
109
114
|
progressingInstruction: 7,
|
|
110
115
|
comment: 8,
|
|
111
|
-
document: 9
|
|
116
|
+
document: 9,
|
|
117
|
+
documentType: 10,
|
|
118
|
+
documentFragment: 11,
|
|
119
|
+
notation: 12
|
|
120
|
+
// Deprecated
|
|
112
121
|
}, ln = function() {
|
|
113
122
|
return typeof window == "undefined" ? null : window;
|
|
114
123
|
}, cn = function(o, l) {
|
|
@@ -161,7 +170,7 @@ function gt() {
|
|
|
161
170
|
HTMLFormElement: At,
|
|
162
171
|
DOMParser: St,
|
|
163
172
|
trustedTypes: J
|
|
164
|
-
} = r, G = xe.prototype, Rt = K(G, "cloneNode"),
|
|
173
|
+
} = r, G = xe.prototype, Rt = K(G, "cloneNode"), yt = K(G, "remove"), Ot = K(G, "nextSibling"), Lt = K(G, "childNodes"), Q = K(G, "parentNode");
|
|
165
174
|
if (typeof x == "function") {
|
|
166
175
|
const i = l.createElement("template");
|
|
167
176
|
i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
|
|
@@ -220,7 +229,7 @@ function gt() {
|
|
|
220
229
|
const Xe = a({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
221
230
|
let Se = null;
|
|
222
231
|
const je = a({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ne = "http://www.w3.org/1998/Math/MathML", oe = "http://www.w3.org/2000/svg", I = "http://www.w3.org/1999/xhtml";
|
|
223
|
-
let F = I, Re = !1,
|
|
232
|
+
let F = I, Re = !1, ye = null;
|
|
224
233
|
const vt = a({}, [ne, oe, I], Ne);
|
|
225
234
|
let ie = a({}, ["mi", "mo", "mn", "ms", "mtext"]), ae = a({}, ["annotation-xml"]);
|
|
226
235
|
const kt = a({}, ["title", "style", "font", "a", "script"]);
|
|
@@ -229,11 +238,11 @@ function gt() {
|
|
|
229
238
|
let m = null, H = null;
|
|
230
239
|
const Ht = l.createElement("form"), Ve = function(e) {
|
|
231
240
|
return e instanceof RegExp || e instanceof Function;
|
|
232
|
-
},
|
|
241
|
+
}, Oe = function() {
|
|
233
242
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
234
243
|
if (!(H && H === e)) {
|
|
235
244
|
if ((!e || typeof e != "object") && (e = {}), e = w(e), X = // eslint-disable-next-line unicorn/prefer-includes
|
|
236
|
-
Ut.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Ft : e.PARSER_MEDIA_TYPE, m = X === "application/xhtml+xml" ? Ne : ce, u = L(e, "ALLOWED_TAGS") ? a({}, e.ALLOWED_TAGS, m) : ke, p = L(e, "ALLOWED_ATTR") ? a({}, e.ALLOWED_ATTR, m) : Ue,
|
|
245
|
+
Ut.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Ft : e.PARSER_MEDIA_TYPE, m = X === "application/xhtml+xml" ? Ne : ce, u = L(e, "ALLOWED_TAGS") ? a({}, e.ALLOWED_TAGS, m) : ke, p = L(e, "ALLOWED_ATTR") ? a({}, e.ALLOWED_ATTR, m) : Ue, ye = L(e, "ALLOWED_NAMESPACES") ? a({}, e.ALLOWED_NAMESPACES, Ne) : vt, Se = L(e, "ADD_URI_SAFE_ATTR") ? a(w(je), e.ADD_URI_SAFE_ATTR, m) : je, Ye = L(e, "ADD_DATA_URI_TAGS") ? a(w(Xe), e.ADD_DATA_URI_TAGS, m) : Xe, U = L(e, "FORBID_CONTENTS") ? a({}, e.FORBID_CONTENTS, m) : Be, B = L(e, "FORBID_TAGS") ? a({}, e.FORBID_TAGS, m) : {}, Te = L(e, "FORBID_ATTR") ? a({}, e.FORBID_ATTR, m) : {}, k = L(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Fe = e.ALLOW_ARIA_ATTR !== !1, _e = e.ALLOW_DATA_ATTR !== !1, He = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ze = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, Ee = e.SAFE_FOR_XML !== !1, C = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, ee = e.RETURN_DOM_FRAGMENT || !1, te = e.RETURN_TRUSTED_TYPE || !1, he = e.FORCE_BODY || !1, Ge = e.SANITIZE_DOM !== !1, We = e.SANITIZE_NAMED_PROPS || !1, Ae = e.KEEP_CONTENT !== !1, Y = e.IN_PLACE || !1, ve = e.ALLOWED_URI_REGEXP || _t, F = e.NAMESPACE || I, ie = e.MATHML_TEXT_INTEGRATION_POINTS || ie, ae = e.HTML_INTEGRATION_POINTS || ae, f = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ve(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (f.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ve(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 && (_e = !1), ee && (v = !0), k && (u = a({}, ct), p = [], k.html === !0 && (a(u, lt), a(p, ft)), k.svg === !0 && (a(u, De), a(p, Me), a(p, le)), k.svgFilters === !0 && (a(u, be), a(p, Me), a(p, le)), k.mathMl === !0 && (a(u, Ie), a(p, ut), a(p, le))), e.ADD_TAGS && (u === ke && (u = w(u)), a(u, e.ADD_TAGS, m)), e.ADD_ATTR && (p === Ue && (p = w(p)), a(p, e.ADD_ATTR, m)), e.ADD_URI_SAFE_ATTR && a(Se, e.ADD_URI_SAFE_ATTR, m), e.FORBID_CONTENTS && (U === Be && (U = w(U)), a(U, e.FORBID_CONTENTS, m)), Ae && (u["#text"] = !0), C && a(u, ["html", "head", "body"]), u.table && (a(u, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
237
246
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
238
247
|
throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
239
248
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -250,7 +259,7 @@ function gt() {
|
|
|
250
259
|
tagName: "template"
|
|
251
260
|
});
|
|
252
261
|
const n = ce(e.tagName), c = ce(t.tagName);
|
|
253
|
-
return
|
|
262
|
+
return ye[e.namespaceURI] ? e.namespaceURI === oe ? t.namespaceURI === I ? n === "svg" : t.namespaceURI === ne ? n === "svg" && (c === "annotation-xml" || ie[c]) : !!$e[n] : e.namespaceURI === ne ? t.namespaceURI === I ? n === "math" : t.namespaceURI === oe ? n === "math" && ae[c] : !!qe[n] : e.namespaceURI === I ? t.namespaceURI === oe && !ae[c] || t.namespaceURI === ne && !ie[c] ? !1 : !qe[n] && (kt[n] || !$e[n]) : !!(X === "application/xhtml+xml" && ye[e.namespaceURI]) : !1;
|
|
254
263
|
}, N = function(e) {
|
|
255
264
|
V(o.removed, {
|
|
256
265
|
element: e
|
|
@@ -258,7 +267,7 @@ function gt() {
|
|
|
258
267
|
try {
|
|
259
268
|
Q(e).removeChild(e);
|
|
260
269
|
} catch (t) {
|
|
261
|
-
|
|
270
|
+
yt(e);
|
|
262
271
|
}
|
|
263
272
|
}, re = function(e, t) {
|
|
264
273
|
try {
|
|
@@ -342,9 +351,9 @@ function gt() {
|
|
|
342
351
|
const c = Q(e) || e.parentNode, _ = Lt(e) || e.childNodes;
|
|
343
352
|
if (_ && c) {
|
|
344
353
|
const d = _.length;
|
|
345
|
-
for (let
|
|
346
|
-
const D = Rt(_[
|
|
347
|
-
D.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(D,
|
|
354
|
+
for (let y = d - 1; y >= 0; --y) {
|
|
355
|
+
const D = Rt(_[y], !0);
|
|
356
|
+
D.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(D, Ot(e));
|
|
348
357
|
}
|
|
349
358
|
}
|
|
350
359
|
}
|
|
@@ -368,7 +377,8 @@ function gt() {
|
|
|
368
377
|
!(tt(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)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
369
378
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
370
379
|
t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
|
|
371
|
-
)
|
|
380
|
+
)
|
|
381
|
+
return !1;
|
|
372
382
|
} else if (!Se[t]) {
|
|
373
383
|
if (!A(ve, $(n, Pe, ""))) {
|
|
374
384
|
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Vt(n, "data:") === 0 && Ye[e])) {
|
|
@@ -402,7 +412,7 @@ function gt() {
|
|
|
402
412
|
for (; c--; ) {
|
|
403
413
|
const _ = t[c], {
|
|
404
414
|
name: d,
|
|
405
|
-
namespaceURI:
|
|
415
|
+
namespaceURI: y,
|
|
406
416
|
value: D
|
|
407
417
|
} = _, j = m(d);
|
|
408
418
|
let h = d === "value" ? D : $t(D);
|
|
@@ -421,7 +431,7 @@ function gt() {
|
|
|
421
431
|
});
|
|
422
432
|
const ot = m(e.nodeName);
|
|
423
433
|
if (et(ot, j, h)) {
|
|
424
|
-
if (E && typeof J == "object" && typeof J.getAttributeType == "function" && !
|
|
434
|
+
if (E && typeof J == "object" && typeof J.getAttributeType == "function" && !y)
|
|
425
435
|
switch (J.getAttributeType(ot, j)) {
|
|
426
436
|
case "TrustedHTML": {
|
|
427
437
|
h = E.createHTML(h);
|
|
@@ -433,7 +443,7 @@ function gt() {
|
|
|
433
443
|
}
|
|
434
444
|
}
|
|
435
445
|
try {
|
|
436
|
-
|
|
446
|
+
y ? e.setAttributeNS(y, d, h) : e.setAttribute(d, h), Le(e) ? N(e) : rt(o.removed);
|
|
437
447
|
} catch (it) {
|
|
438
448
|
}
|
|
439
449
|
}
|
|
@@ -456,7 +466,7 @@ function gt() {
|
|
|
456
466
|
throw q("toString is not a function");
|
|
457
467
|
if (!o.isSupported)
|
|
458
468
|
return i;
|
|
459
|
-
if (ge ||
|
|
469
|
+
if (ge || Oe(e), o.removed = [], typeof i == "string" && (Y = !1), Y) {
|
|
460
470
|
if (i.nodeName) {
|
|
461
471
|
const D = m(i.nodeName);
|
|
462
472
|
if (!u[D] || B[D])
|
|
@@ -485,18 +495,18 @@ function gt() {
|
|
|
485
495
|
_ = t;
|
|
486
496
|
return (p.shadowroot || p.shadowrootmode) && (_ = It.call(s, _, !0)), _;
|
|
487
497
|
}
|
|
488
|
-
let
|
|
489
|
-
return C && u["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(Et, t.ownerDocument.doctype.name) && (
|
|
490
|
-
` +
|
|
491
|
-
|
|
492
|
-
}), E && te ? E.createHTML(
|
|
498
|
+
let y = C ? t.outerHTML : t.innerHTML;
|
|
499
|
+
return C && u["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(Et, t.ownerDocument.doctype.name) && (y = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
|
|
500
|
+
` + y), P && se([me, pe, de], (D) => {
|
|
501
|
+
y = $(y, D, " ");
|
|
502
|
+
}), E && te ? E.createHTML(y) : y;
|
|
493
503
|
}, o.setConfig = function() {
|
|
494
504
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
495
|
-
|
|
505
|
+
Oe(i), ge = !0;
|
|
496
506
|
}, o.clearConfig = function() {
|
|
497
507
|
H = null, ge = !1;
|
|
498
508
|
}, o.isValidAttribute = function(i, e, t) {
|
|
499
|
-
H ||
|
|
509
|
+
H || Oe({});
|
|
500
510
|
const n = m(i), c = m(e);
|
|
501
511
|
return et(n, c, t);
|
|
502
512
|
}, o.addHook = function(i, e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ranty/ranty-sdk",
|
|
3
|
-
"version": "3.0.6-beta.
|
|
3
|
+
"version": "3.0.6-beta.8",
|
|
4
4
|
"description": "Ranty sdk",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"license": "ISC",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@jest/globals": "^29.7.0",
|
|
46
|
-
"@storybook/addon-essentials": "^
|
|
46
|
+
"@storybook/addon-essentials": "^7.6.20",
|
|
47
47
|
"@storybook/addon-links": "^7.6.20",
|
|
48
|
-
"@storybook/blocks": "^
|
|
49
|
-
"@storybook/web-components": "^
|
|
50
|
-
"@storybook/web-components-vite": "^
|
|
48
|
+
"@storybook/blocks": "^7.6.20",
|
|
49
|
+
"@storybook/web-components": "^7.6.20",
|
|
50
|
+
"@storybook/web-components-vite": "^7.6.20",
|
|
51
51
|
"@types/jest": "^29.5.14",
|
|
52
52
|
"@types/luxon": "^3.4.2",
|
|
53
53
|
"@types/node": "^17.0.45",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"storybook": "^8.6.0",
|
|
69
69
|
"ts-jest": "^29.2.6",
|
|
70
70
|
"typescript": "^5.7.3",
|
|
71
|
-
"vite": "^
|
|
71
|
+
"vite": "^4.5.9"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@datadog/browser-logs": "^5.35.1",
|