@cartbot/plate-search 3.1.1 → 3.1.2
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/README.md +111 -0
- package/build/dist/js/plate-search.js +13 -13
- package/dist/js/plate-search.es.js +701 -652
- package/dist/js/plate-search.js +13 -13
- package/package.json +1 -1
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import Yt, { createContext as ya, useState as
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import Yt, { createContext as ya, useState as J, useRef as Me, useEffect as W, createElement as Ot } from "react";
|
|
3
3
|
import { createRoot as qt } from "react-dom/client";
|
|
4
4
|
const Ea = "/css/plate-search.css";
|
|
5
5
|
/*! @license DOMPurify 3.2.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.2.6/LICENSE */
|
|
6
6
|
const {
|
|
7
7
|
entries: Xt,
|
|
8
|
-
setPrototypeOf:
|
|
8
|
+
setPrototypeOf: It,
|
|
9
9
|
isFrozen: _a,
|
|
10
10
|
getPrototypeOf: Aa,
|
|
11
11
|
getOwnPropertyDescriptor: ka
|
|
12
12
|
} = Object;
|
|
13
13
|
let {
|
|
14
|
-
freeze:
|
|
15
|
-
seal:
|
|
14
|
+
freeze: U,
|
|
15
|
+
seal: V,
|
|
16
16
|
create: Kt
|
|
17
17
|
} = Object, {
|
|
18
|
-
apply:
|
|
19
|
-
construct:
|
|
18
|
+
apply: mt,
|
|
19
|
+
construct: ht
|
|
20
20
|
} = typeof Reflect < "u" && Reflect;
|
|
21
|
-
|
|
21
|
+
U || (U = function(r) {
|
|
22
22
|
return r;
|
|
23
23
|
});
|
|
24
|
-
|
|
24
|
+
V || (V = function(r) {
|
|
25
25
|
return r;
|
|
26
26
|
});
|
|
27
|
-
|
|
28
|
-
return r.apply(
|
|
27
|
+
mt || (mt = function(r, s, n) {
|
|
28
|
+
return r.apply(s, n);
|
|
29
29
|
});
|
|
30
|
-
|
|
31
|
-
return new r(...
|
|
30
|
+
ht || (ht = function(r, s) {
|
|
31
|
+
return new r(...s);
|
|
32
32
|
});
|
|
33
|
-
const
|
|
34
|
-
function
|
|
33
|
+
const Ve = z(Array.prototype.forEach), Ta = z(Array.prototype.lastIndexOf), Ht = z(Array.prototype.pop), Te = z(Array.prototype.push), Ra = z(Array.prototype.splice), Be = z(String.prototype.toLowerCase), nt = z(String.prototype.toString), Dt = z(String.prototype.match), Re = z(String.prototype.replace), Sa = z(String.prototype.indexOf), Ca = z(String.prototype.trim), B = z(Object.prototype.hasOwnProperty), P = z(RegExp.prototype.test), Se = La(TypeError);
|
|
34
|
+
function z(t) {
|
|
35
35
|
return function(r) {
|
|
36
36
|
r instanceof RegExp && (r.lastIndex = 0);
|
|
37
|
-
for (var
|
|
38
|
-
n[
|
|
39
|
-
return
|
|
37
|
+
for (var s = arguments.length, n = new Array(s > 1 ? s - 1 : 0), u = 1; u < s; u++)
|
|
38
|
+
n[u - 1] = arguments[u];
|
|
39
|
+
return mt(t, r, n);
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function La(t) {
|
|
43
43
|
return function() {
|
|
44
|
-
for (var r = arguments.length,
|
|
45
|
-
|
|
46
|
-
return
|
|
44
|
+
for (var r = arguments.length, s = new Array(r), n = 0; n < r; n++)
|
|
45
|
+
s[n] = arguments[n];
|
|
46
|
+
return ht(t, s);
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let
|
|
51
|
-
|
|
49
|
+
function g(t, r) {
|
|
50
|
+
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Be;
|
|
51
|
+
It && It(t, null);
|
|
52
52
|
let n = r.length;
|
|
53
53
|
for (; n--; ) {
|
|
54
|
-
let
|
|
55
|
-
if (typeof
|
|
56
|
-
const
|
|
57
|
-
|
|
54
|
+
let u = r[n];
|
|
55
|
+
if (typeof u == "string") {
|
|
56
|
+
const h = s(u);
|
|
57
|
+
h !== u && (_a(r) || (r[n] = h), u = h);
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
t[u] = !0;
|
|
60
60
|
}
|
|
61
|
-
return
|
|
61
|
+
return t;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
for (let r = 0; r <
|
|
65
|
-
|
|
66
|
-
return
|
|
63
|
+
function Ma(t) {
|
|
64
|
+
for (let r = 0; r < t.length; r++)
|
|
65
|
+
B(t, r) || (t[r] = null);
|
|
66
|
+
return t;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Q(t) {
|
|
69
69
|
const r = Kt(null);
|
|
70
|
-
for (const [
|
|
71
|
-
|
|
70
|
+
for (const [s, n] of Xt(t))
|
|
71
|
+
B(t, s) && (Array.isArray(n) ? r[s] = Ma(n) : n && typeof n == "object" && n.constructor === Object ? r[s] = Q(n) : r[s] = n);
|
|
72
72
|
return r;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
for (;
|
|
76
|
-
const n = ka(
|
|
74
|
+
function Ce(t, r) {
|
|
75
|
+
for (; t !== null; ) {
|
|
76
|
+
const n = ka(t, r);
|
|
77
77
|
if (n) {
|
|
78
78
|
if (n.get)
|
|
79
|
-
return
|
|
79
|
+
return z(n.get);
|
|
80
80
|
if (typeof n.value == "function")
|
|
81
|
-
return
|
|
81
|
+
return z(n.value);
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
t = Aa(t);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function s() {
|
|
86
86
|
return null;
|
|
87
87
|
}
|
|
88
|
-
return
|
|
88
|
+
return s;
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const Pt = U(["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"]), it = U(["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"]), lt = U(["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"]), Na = U(["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"]), ct = U(["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"]), Oa = U(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ut = U(["#text"]), zt = U(["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"]), st = U(["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"]), Ft = U(["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"]), je = U(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ia = V(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ha = V(/<%[\w\W]*|[\w\W]*%>/gm), Da = V(/\$\{[\w\W]*/gm), Pa = V(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ua = V(/^aria-[\-\w]+$/), Jt = V(
|
|
91
91
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
92
92
|
// eslint-disable-line no-useless-escape
|
|
93
|
-
), za =
|
|
93
|
+
), za = V(/^(?:\w+script|data):/i), Fa = V(
|
|
94
94
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
95
95
|
// eslint-disable-line no-control-regex
|
|
96
|
-
), Qt =
|
|
96
|
+
), Qt = V(/^html$/i), Za = V(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
97
97
|
var Zt = /* @__PURE__ */ Object.freeze({
|
|
98
98
|
__proto__: null,
|
|
99
99
|
ARIA_ATTR: Ua,
|
|
100
100
|
ATTR_WHITESPACE: Fa,
|
|
101
101
|
CUSTOM_ELEMENT: Za,
|
|
102
|
-
DATA_ATTR:
|
|
102
|
+
DATA_ATTR: Pa,
|
|
103
103
|
DOCTYPE_NAME: Qt,
|
|
104
104
|
ERB_EXPR: Ha,
|
|
105
105
|
IS_ALLOWED_URI: Jt,
|
|
106
106
|
IS_SCRIPT_OR_DATA: za,
|
|
107
|
-
MUSTACHE_EXPR:
|
|
108
|
-
TMPLIT_EXPR:
|
|
107
|
+
MUSTACHE_EXPR: Ia,
|
|
108
|
+
TMPLIT_EXPR: Da
|
|
109
109
|
});
|
|
110
|
-
const
|
|
110
|
+
const Le = {
|
|
111
111
|
element: 1,
|
|
112
112
|
text: 3,
|
|
113
113
|
// Deprecated
|
|
@@ -116,24 +116,24 @@ const ke = {
|
|
|
116
116
|
document: 9
|
|
117
117
|
}, Va = function() {
|
|
118
118
|
return typeof window > "u" ? null : window;
|
|
119
|
-
}, ja = function(r,
|
|
119
|
+
}, ja = function(r, s) {
|
|
120
120
|
if (typeof r != "object" || typeof r.createPolicy != "function")
|
|
121
121
|
return null;
|
|
122
122
|
let n = null;
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
const
|
|
123
|
+
const u = "data-tt-policy-suffix";
|
|
124
|
+
s && s.hasAttribute(u) && (n = s.getAttribute(u));
|
|
125
|
+
const h = "dompurify" + (n ? "#" + n : "");
|
|
126
126
|
try {
|
|
127
|
-
return r.createPolicy(
|
|
128
|
-
createHTML(
|
|
129
|
-
return
|
|
127
|
+
return r.createPolicy(h, {
|
|
128
|
+
createHTML(f) {
|
|
129
|
+
return f;
|
|
130
130
|
},
|
|
131
|
-
createScriptURL(
|
|
132
|
-
return
|
|
131
|
+
createScriptURL(f) {
|
|
132
|
+
return f;
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
} catch {
|
|
136
|
-
return console.warn("TrustedTypes policy " +
|
|
136
|
+
return console.warn("TrustedTypes policy " + h + " could not be created."), null;
|
|
137
137
|
}
|
|
138
138
|
}, Vt = function() {
|
|
139
139
|
return {
|
|
@@ -149,56 +149,56 @@ const ke = {
|
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
151
|
function ea() {
|
|
152
|
-
let
|
|
153
|
-
const r = (
|
|
154
|
-
if (r.version = "3.2.6", r.removed = [], !
|
|
152
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Va();
|
|
153
|
+
const r = (d) => ea(d);
|
|
154
|
+
if (r.version = "3.2.6", r.removed = [], !t || !t.document || t.document.nodeType !== Le.document || !t.Element)
|
|
155
155
|
return r.isSupported = !1, r;
|
|
156
156
|
let {
|
|
157
|
-
document:
|
|
158
|
-
} =
|
|
159
|
-
const n =
|
|
160
|
-
DocumentFragment:
|
|
161
|
-
HTMLTemplateElement:
|
|
157
|
+
document: s
|
|
158
|
+
} = t;
|
|
159
|
+
const n = s, u = n.currentScript, {
|
|
160
|
+
DocumentFragment: h,
|
|
161
|
+
HTMLTemplateElement: f,
|
|
162
162
|
Node: m,
|
|
163
|
-
Element:
|
|
163
|
+
Element: w,
|
|
164
164
|
NodeFilter: i,
|
|
165
|
-
NamedNodeMap:
|
|
166
|
-
HTMLFormElement:
|
|
167
|
-
DOMParser:
|
|
168
|
-
trustedTypes:
|
|
169
|
-
} =
|
|
170
|
-
if (typeof
|
|
171
|
-
const
|
|
172
|
-
|
|
165
|
+
NamedNodeMap: p = t.NamedNodeMap || t.MozNamedAttrMap,
|
|
166
|
+
HTMLFormElement: b,
|
|
167
|
+
DOMParser: F,
|
|
168
|
+
trustedTypes: T
|
|
169
|
+
} = t, k = w.prototype, N = Ce(k, "cloneNode"), O = Ce(k, "remove"), Y = Ce(k, "nextSibling"), $e = Ce(k, "childNodes"), ee = Ce(k, "parentNode");
|
|
170
|
+
if (typeof f == "function") {
|
|
171
|
+
const d = s.createElement("template");
|
|
172
|
+
d.content && d.content.ownerDocument && (s = d.content.ownerDocument);
|
|
173
173
|
}
|
|
174
|
-
let
|
|
174
|
+
let R, te = "";
|
|
175
175
|
const {
|
|
176
|
-
implementation:
|
|
177
|
-
createNodeIterator:
|
|
178
|
-
createDocumentFragment:
|
|
179
|
-
getElementsByTagName:
|
|
180
|
-
} =
|
|
181
|
-
importNode:
|
|
176
|
+
implementation: le,
|
|
177
|
+
createNodeIterator: Ge,
|
|
178
|
+
createDocumentFragment: we,
|
|
179
|
+
getElementsByTagName: Ye
|
|
180
|
+
} = s, {
|
|
181
|
+
importNode: Ne
|
|
182
182
|
} = n;
|
|
183
183
|
let L = Vt();
|
|
184
|
-
r.isSupported = typeof Xt == "function" && typeof
|
|
184
|
+
r.isSupported = typeof Xt == "function" && typeof ee == "function" && le && le.createHTMLDocument !== void 0;
|
|
185
185
|
const {
|
|
186
|
-
MUSTACHE_EXPR:
|
|
187
|
-
ERB_EXPR:
|
|
188
|
-
TMPLIT_EXPR:
|
|
189
|
-
DATA_ATTR:
|
|
190
|
-
ARIA_ATTR:
|
|
191
|
-
IS_SCRIPT_OR_DATA:
|
|
192
|
-
ATTR_WHITESPACE:
|
|
193
|
-
CUSTOM_ELEMENT:
|
|
186
|
+
MUSTACHE_EXPR: ce,
|
|
187
|
+
ERB_EXPR: be,
|
|
188
|
+
TMPLIT_EXPR: se,
|
|
189
|
+
DATA_ATTR: qe,
|
|
190
|
+
ARIA_ATTR: Oe,
|
|
191
|
+
IS_SCRIPT_OR_DATA: Xe,
|
|
192
|
+
ATTR_WHITESPACE: Ie,
|
|
193
|
+
CUSTOM_ELEMENT: j
|
|
194
194
|
} = Zt;
|
|
195
195
|
let {
|
|
196
|
-
IS_ALLOWED_URI:
|
|
197
|
-
} = Zt,
|
|
198
|
-
const
|
|
199
|
-
let
|
|
200
|
-
const
|
|
201
|
-
let
|
|
196
|
+
IS_ALLOWED_URI: ve
|
|
197
|
+
} = Zt, E = null;
|
|
198
|
+
const xe = g({}, [...Pt, ...it, ...lt, ...ct, ...Ut]);
|
|
199
|
+
let S = null;
|
|
200
|
+
const He = g({}, [...zt, ...st, ...Ft, ...je]);
|
|
201
|
+
let _ = Object.seal(Kt(null, {
|
|
202
202
|
tagNameCheck: {
|
|
203
203
|
writable: !0,
|
|
204
204
|
configurable: !1,
|
|
@@ -217,70 +217,70 @@ function ea() {
|
|
|
217
217
|
enumerable: !0,
|
|
218
218
|
value: !1
|
|
219
219
|
}
|
|
220
|
-
})),
|
|
221
|
-
const
|
|
222
|
-
let
|
|
223
|
-
const wt =
|
|
220
|
+
})), ae = null, ye = null, Ee = !0, l = !0, v = !1, x = !0, y = !1, re = !0, $ = !1, oe = !1, Ke = !1, de = !1, De = !1, Pe = !1, ft = !0, gt = !1;
|
|
221
|
+
const pa = "user-content-";
|
|
222
|
+
let Je = !0, _e = !1, me = {}, he = null;
|
|
223
|
+
const wt = g({}, ["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"]);
|
|
224
224
|
let bt = null;
|
|
225
|
-
const vt =
|
|
226
|
-
let
|
|
227
|
-
const xt =
|
|
228
|
-
let
|
|
229
|
-
const ua =
|
|
230
|
-
let
|
|
231
|
-
const fa =
|
|
232
|
-
let
|
|
225
|
+
const vt = g({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
226
|
+
let Qe = null;
|
|
227
|
+
const xt = g({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ue = "http://www.w3.org/1998/Math/MathML", ze = "http://www.w3.org/2000/svg", q = "http://www.w3.org/1999/xhtml";
|
|
228
|
+
let pe = q, et = !1, tt = null;
|
|
229
|
+
const ua = g({}, [Ue, ze, q], nt);
|
|
230
|
+
let Fe = g({}, ["mi", "mo", "mn", "ms", "mtext"]), Ze = g({}, ["annotation-xml"]);
|
|
231
|
+
const fa = g({}, ["title", "style", "font", "a", "script"]);
|
|
232
|
+
let Ae = null;
|
|
233
233
|
const ga = ["application/xhtml+xml", "text/html"], wa = "text/html";
|
|
234
|
-
let M = null,
|
|
235
|
-
const ba =
|
|
234
|
+
let M = null, ue = null;
|
|
235
|
+
const ba = s.createElement("form"), yt = function(e) {
|
|
236
236
|
return e instanceof RegExp || e instanceof Function;
|
|
237
|
-
},
|
|
237
|
+
}, at = function() {
|
|
238
238
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
239
|
-
if (!(
|
|
240
|
-
if ((!e || typeof e != "object") && (e = {}), e =
|
|
241
|
-
ga.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? wa : e.PARSER_MEDIA_TYPE, M =
|
|
239
|
+
if (!(ue && ue === e)) {
|
|
240
|
+
if ((!e || typeof e != "object") && (e = {}), e = Q(e), Ae = // eslint-disable-next-line unicorn/prefer-includes
|
|
241
|
+
ga.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? wa : e.PARSER_MEDIA_TYPE, M = Ae === "application/xhtml+xml" ? nt : Be, E = B(e, "ALLOWED_TAGS") ? g({}, e.ALLOWED_TAGS, M) : xe, S = B(e, "ALLOWED_ATTR") ? g({}, e.ALLOWED_ATTR, M) : He, tt = B(e, "ALLOWED_NAMESPACES") ? g({}, e.ALLOWED_NAMESPACES, nt) : ua, Qe = B(e, "ADD_URI_SAFE_ATTR") ? g(Q(xt), e.ADD_URI_SAFE_ATTR, M) : xt, bt = B(e, "ADD_DATA_URI_TAGS") ? g(Q(vt), e.ADD_DATA_URI_TAGS, M) : vt, he = B(e, "FORBID_CONTENTS") ? g({}, e.FORBID_CONTENTS, M) : wt, ae = B(e, "FORBID_TAGS") ? g({}, e.FORBID_TAGS, M) : Q({}), ye = B(e, "FORBID_ATTR") ? g({}, e.FORBID_ATTR, M) : Q({}), me = B(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Ee = e.ALLOW_ARIA_ATTR !== !1, l = e.ALLOW_DATA_ATTR !== !1, v = e.ALLOW_UNKNOWN_PROTOCOLS || !1, x = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, y = e.SAFE_FOR_TEMPLATES || !1, re = e.SAFE_FOR_XML !== !1, $ = e.WHOLE_DOCUMENT || !1, de = e.RETURN_DOM || !1, De = e.RETURN_DOM_FRAGMENT || !1, Pe = e.RETURN_TRUSTED_TYPE || !1, Ke = e.FORCE_BODY || !1, ft = e.SANITIZE_DOM !== !1, gt = e.SANITIZE_NAMED_PROPS || !1, Je = e.KEEP_CONTENT !== !1, _e = e.IN_PLACE || !1, ve = e.ALLOWED_URI_REGEXP || Jt, pe = e.NAMESPACE || q, Fe = e.MATHML_TEXT_INTEGRATION_POINTS || Fe, Ze = e.HTML_INTEGRATION_POINTS || Ze, _ = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && yt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (_.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && yt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (_.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (_.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), y && (l = !1), De && (de = !0), me && (E = g({}, Ut), S = [], me.html === !0 && (g(E, Pt), g(S, zt)), me.svg === !0 && (g(E, it), g(S, st), g(S, je)), me.svgFilters === !0 && (g(E, lt), g(S, st), g(S, je)), me.mathMl === !0 && (g(E, ct), g(S, Ft), g(S, je))), e.ADD_TAGS && (E === xe && (E = Q(E)), g(E, e.ADD_TAGS, M)), e.ADD_ATTR && (S === He && (S = Q(S)), g(S, e.ADD_ATTR, M)), e.ADD_URI_SAFE_ATTR && g(Qe, e.ADD_URI_SAFE_ATTR, M), e.FORBID_CONTENTS && (he === wt && (he = Q(he)), g(he, e.FORBID_CONTENTS, M)), Je && (E["#text"] = !0), $ && g(E, ["html", "head", "body"]), E.table && (g(E, ["tbody"]), delete ae.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
242
242
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
243
|
-
throw
|
|
243
|
+
throw Se('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
244
244
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
245
|
-
throw
|
|
246
|
-
|
|
245
|
+
throw Se('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
246
|
+
R = e.TRUSTED_TYPES_POLICY, te = R.createHTML("");
|
|
247
247
|
} else
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
R === void 0 && (R = ja(T, u)), R !== null && typeof te == "string" && (te = R.createHTML(""));
|
|
249
|
+
U && U(e), ue = e;
|
|
250
250
|
}
|
|
251
|
-
}, Et =
|
|
252
|
-
let o =
|
|
251
|
+
}, Et = g({}, [...it, ...lt, ...Na]), _t = g({}, [...ct, ...Oa]), va = function(e) {
|
|
252
|
+
let o = ee(e);
|
|
253
253
|
(!o || !o.tagName) && (o = {
|
|
254
|
-
namespaceURI:
|
|
254
|
+
namespaceURI: pe,
|
|
255
255
|
tagName: "template"
|
|
256
256
|
});
|
|
257
|
-
const
|
|
258
|
-
return
|
|
259
|
-
},
|
|
260
|
-
|
|
257
|
+
const c = Be(e.tagName), A = Be(o.tagName);
|
|
258
|
+
return tt[e.namespaceURI] ? e.namespaceURI === ze ? o.namespaceURI === q ? c === "svg" : o.namespaceURI === Ue ? c === "svg" && (A === "annotation-xml" || Fe[A]) : !!Et[c] : e.namespaceURI === Ue ? o.namespaceURI === q ? c === "math" : o.namespaceURI === ze ? c === "math" && Ze[A] : !!_t[c] : e.namespaceURI === q ? o.namespaceURI === ze && !Ze[A] || o.namespaceURI === Ue && !Fe[A] ? !1 : !_t[c] && (fa[c] || !Et[c]) : !!(Ae === "application/xhtml+xml" && tt[e.namespaceURI]) : !1;
|
|
259
|
+
}, G = function(e) {
|
|
260
|
+
Te(r.removed, {
|
|
261
261
|
element: e
|
|
262
262
|
});
|
|
263
263
|
try {
|
|
264
|
-
|
|
264
|
+
ee(e).removeChild(e);
|
|
265
265
|
} catch {
|
|
266
|
-
|
|
266
|
+
O(e);
|
|
267
267
|
}
|
|
268
|
-
},
|
|
268
|
+
}, fe = function(e, o) {
|
|
269
269
|
try {
|
|
270
|
-
|
|
270
|
+
Te(r.removed, {
|
|
271
271
|
attribute: o.getAttributeNode(e),
|
|
272
272
|
from: o
|
|
273
273
|
});
|
|
274
274
|
} catch {
|
|
275
|
-
|
|
275
|
+
Te(r.removed, {
|
|
276
276
|
attribute: null,
|
|
277
277
|
from: o
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
if (o.removeAttribute(e), e === "is")
|
|
281
|
-
if (
|
|
281
|
+
if (de || De)
|
|
282
282
|
try {
|
|
283
|
-
|
|
283
|
+
G(o);
|
|
284
284
|
} catch {
|
|
285
285
|
}
|
|
286
286
|
else
|
|
@@ -289,96 +289,96 @@ function ea() {
|
|
|
289
289
|
} catch {
|
|
290
290
|
}
|
|
291
291
|
}, At = function(e) {
|
|
292
|
-
let o = null,
|
|
293
|
-
if (
|
|
292
|
+
let o = null, c = null;
|
|
293
|
+
if (Ke)
|
|
294
294
|
e = "<remove></remove>" + e;
|
|
295
295
|
else {
|
|
296
|
-
const
|
|
297
|
-
|
|
296
|
+
const C = Dt(e, /^[\r\n\t ]+/);
|
|
297
|
+
c = C && C[0];
|
|
298
298
|
}
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
if (
|
|
299
|
+
Ae === "application/xhtml+xml" && pe === q && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
300
|
+
const A = R ? R.createHTML(e) : e;
|
|
301
|
+
if (pe === q)
|
|
302
302
|
try {
|
|
303
|
-
o = new
|
|
303
|
+
o = new F().parseFromString(A, Ae);
|
|
304
304
|
} catch {
|
|
305
305
|
}
|
|
306
306
|
if (!o || !o.documentElement) {
|
|
307
|
-
o =
|
|
307
|
+
o = le.createDocument(pe, "template", null);
|
|
308
308
|
try {
|
|
309
|
-
o.documentElement.innerHTML =
|
|
309
|
+
o.documentElement.innerHTML = et ? te : A;
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
const
|
|
314
|
-
return e &&
|
|
313
|
+
const H = o.body || o.documentElement;
|
|
314
|
+
return e && c && H.insertBefore(s.createTextNode(c), H.childNodes[0] || null), pe === q ? Ye.call(o, $ ? "html" : "body")[0] : $ ? o.documentElement : H;
|
|
315
315
|
}, kt = function(e) {
|
|
316
|
-
return
|
|
316
|
+
return Ge.call(
|
|
317
317
|
e.ownerDocument || e,
|
|
318
318
|
e,
|
|
319
319
|
// eslint-disable-next-line no-bitwise
|
|
320
320
|
i.SHOW_ELEMENT | i.SHOW_COMMENT | i.SHOW_TEXT | i.SHOW_PROCESSING_INSTRUCTION | i.SHOW_CDATA_SECTION,
|
|
321
321
|
null
|
|
322
322
|
);
|
|
323
|
-
},
|
|
324
|
-
return e instanceof
|
|
323
|
+
}, rt = function(e) {
|
|
324
|
+
return e instanceof b && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof p) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
325
325
|
}, Tt = function(e) {
|
|
326
326
|
return typeof m == "function" && e instanceof m;
|
|
327
327
|
};
|
|
328
|
-
function
|
|
329
|
-
|
|
330
|
-
|
|
328
|
+
function X(d, e, o) {
|
|
329
|
+
Ve(d, (c) => {
|
|
330
|
+
c.call(r, e, o, ue);
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
333
|
const Rt = function(e) {
|
|
334
334
|
let o = null;
|
|
335
|
-
if (
|
|
336
|
-
return
|
|
337
|
-
const
|
|
338
|
-
if (
|
|
339
|
-
tagName:
|
|
340
|
-
allowedTags:
|
|
341
|
-
}),
|
|
342
|
-
return
|
|
343
|
-
if (!
|
|
344
|
-
if (!
|
|
335
|
+
if (X(L.beforeSanitizeElements, e, null), rt(e))
|
|
336
|
+
return G(e), !0;
|
|
337
|
+
const c = M(e.nodeName);
|
|
338
|
+
if (X(L.uponSanitizeElement, e, {
|
|
339
|
+
tagName: c,
|
|
340
|
+
allowedTags: E
|
|
341
|
+
}), re && e.hasChildNodes() && !Tt(e.firstElementChild) && P(/<[/\w!]/g, e.innerHTML) && P(/<[/\w!]/g, e.textContent) || e.nodeType === Le.progressingInstruction || re && e.nodeType === Le.comment && P(/<[/\w]/g, e.data))
|
|
342
|
+
return G(e), !0;
|
|
343
|
+
if (!E[c] || ae[c]) {
|
|
344
|
+
if (!ae[c] && Ct(c) && (_.tagNameCheck instanceof RegExp && P(_.tagNameCheck, c) || _.tagNameCheck instanceof Function && _.tagNameCheck(c)))
|
|
345
345
|
return !1;
|
|
346
|
-
if (
|
|
347
|
-
const
|
|
348
|
-
if (
|
|
349
|
-
const
|
|
350
|
-
for (let
|
|
351
|
-
const
|
|
352
|
-
|
|
346
|
+
if (Je && !he[c]) {
|
|
347
|
+
const A = ee(e) || e.parentNode, H = $e(e) || e.childNodes;
|
|
348
|
+
if (H && A) {
|
|
349
|
+
const C = H.length;
|
|
350
|
+
for (let Z = C - 1; Z >= 0; --Z) {
|
|
351
|
+
const K = N(H[Z], !0);
|
|
352
|
+
K.__removalCount = (e.__removalCount || 0) + 1, A.insertBefore(K, Y(e));
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
return
|
|
356
|
+
return G(e), !0;
|
|
357
357
|
}
|
|
358
|
-
return e instanceof
|
|
359
|
-
o =
|
|
360
|
-
}), e.textContent !== o && (
|
|
358
|
+
return e instanceof w && !va(e) || (c === "noscript" || c === "noembed" || c === "noframes") && P(/<\/no(script|embed|frames)/i, e.innerHTML) ? (G(e), !0) : (y && e.nodeType === Le.text && (o = e.textContent, Ve([ce, be, se], (A) => {
|
|
359
|
+
o = Re(o, A, " ");
|
|
360
|
+
}), e.textContent !== o && (Te(r.removed, {
|
|
361
361
|
element: e.cloneNode()
|
|
362
|
-
}), e.textContent = o)),
|
|
363
|
-
}, St = function(e, o,
|
|
364
|
-
if (ft && (o === "id" || o === "name") && (
|
|
362
|
+
}), e.textContent = o)), X(L.afterSanitizeElements, e, null), !1);
|
|
363
|
+
}, St = function(e, o, c) {
|
|
364
|
+
if (ft && (o === "id" || o === "name") && (c in s || c in ba))
|
|
365
365
|
return !1;
|
|
366
|
-
if (!(
|
|
367
|
-
if (!(
|
|
368
|
-
if (!
|
|
366
|
+
if (!(l && !ye[o] && P(qe, o))) {
|
|
367
|
+
if (!(Ee && P(Oe, o))) {
|
|
368
|
+
if (!S[o] || ye[o]) {
|
|
369
369
|
if (
|
|
370
370
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
371
371
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
372
372
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
373
|
-
!(
|
|
373
|
+
!(Ct(e) && (_.tagNameCheck instanceof RegExp && P(_.tagNameCheck, e) || _.tagNameCheck instanceof Function && _.tagNameCheck(e)) && (_.attributeNameCheck instanceof RegExp && P(_.attributeNameCheck, o) || _.attributeNameCheck instanceof Function && _.attributeNameCheck(o)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
374
374
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
375
|
-
o === "is" &&
|
|
375
|
+
o === "is" && _.allowCustomizedBuiltInElements && (_.tagNameCheck instanceof RegExp && P(_.tagNameCheck, c) || _.tagNameCheck instanceof Function && _.tagNameCheck(c)))
|
|
376
376
|
) return !1;
|
|
377
|
-
} else if (!
|
|
378
|
-
if (!
|
|
379
|
-
if (!((o === "src" || o === "xlink:href" || o === "href") && e !== "script" && Sa(
|
|
380
|
-
if (!(
|
|
381
|
-
if (
|
|
377
|
+
} else if (!Qe[o]) {
|
|
378
|
+
if (!P(ve, Re(c, Ie, ""))) {
|
|
379
|
+
if (!((o === "src" || o === "xlink:href" || o === "href") && e !== "script" && Sa(c, "data:") === 0 && bt[e])) {
|
|
380
|
+
if (!(v && !P(Xe, Re(c, Ie, "")))) {
|
|
381
|
+
if (c)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
@@ -387,365 +387,365 @@ function ea() {
|
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
return !0;
|
|
390
|
+
}, Ct = function(e) {
|
|
391
|
+
return e !== "annotation-xml" && Dt(e, j);
|
|
390
392
|
}, Lt = function(e) {
|
|
391
|
-
|
|
392
|
-
}, Mt = function(e) {
|
|
393
|
-
G(L.beforeSanitizeAttributes, e, null);
|
|
393
|
+
X(L.beforeSanitizeAttributes, e, null);
|
|
394
394
|
const {
|
|
395
395
|
attributes: o
|
|
396
396
|
} = e;
|
|
397
|
-
if (!o ||
|
|
397
|
+
if (!o || rt(e))
|
|
398
398
|
return;
|
|
399
|
-
const
|
|
399
|
+
const c = {
|
|
400
400
|
attrName: "",
|
|
401
401
|
attrValue: "",
|
|
402
402
|
keepAttr: !0,
|
|
403
|
-
allowedAttributes:
|
|
403
|
+
allowedAttributes: S,
|
|
404
404
|
forceKeepAttr: void 0
|
|
405
405
|
};
|
|
406
|
-
let
|
|
407
|
-
for (;
|
|
408
|
-
const
|
|
409
|
-
name:
|
|
410
|
-
namespaceURI:
|
|
411
|
-
value:
|
|
412
|
-
} =
|
|
413
|
-
let
|
|
414
|
-
if (
|
|
415
|
-
|
|
406
|
+
let A = o.length;
|
|
407
|
+
for (; A--; ) {
|
|
408
|
+
const H = o[A], {
|
|
409
|
+
name: C,
|
|
410
|
+
namespaceURI: Z,
|
|
411
|
+
value: K
|
|
412
|
+
} = H, ke = M(C), ot = K;
|
|
413
|
+
let D = C === "value" ? ot : Ca(ot);
|
|
414
|
+
if (c.attrName = ke, c.attrValue = D, c.keepAttr = !0, c.forceKeepAttr = void 0, X(L.uponSanitizeAttribute, e, c), D = c.attrValue, gt && (ke === "id" || ke === "name") && (fe(C, e), D = pa + D), re && P(/((--!?|])>)|<\/(style|title)/i, D)) {
|
|
415
|
+
fe(C, e);
|
|
416
416
|
continue;
|
|
417
417
|
}
|
|
418
|
-
if (
|
|
418
|
+
if (c.forceKeepAttr)
|
|
419
419
|
continue;
|
|
420
|
-
if (!
|
|
421
|
-
|
|
420
|
+
if (!c.keepAttr) {
|
|
421
|
+
fe(C, e);
|
|
422
422
|
continue;
|
|
423
423
|
}
|
|
424
|
-
if (!
|
|
425
|
-
|
|
424
|
+
if (!x && P(/\/>/i, D)) {
|
|
425
|
+
fe(C, e);
|
|
426
426
|
continue;
|
|
427
427
|
}
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
y && Ve([ce, be, se], (Nt) => {
|
|
429
|
+
D = Re(D, Nt, " ");
|
|
430
430
|
});
|
|
431
|
-
const
|
|
432
|
-
if (!St(
|
|
433
|
-
|
|
431
|
+
const Mt = M(e.nodeName);
|
|
432
|
+
if (!St(Mt, ke, D)) {
|
|
433
|
+
fe(C, e);
|
|
434
434
|
continue;
|
|
435
435
|
}
|
|
436
|
-
if (
|
|
437
|
-
switch (
|
|
436
|
+
if (R && typeof T == "object" && typeof T.getAttributeType == "function" && !Z)
|
|
437
|
+
switch (T.getAttributeType(Mt, ke)) {
|
|
438
438
|
case "TrustedHTML": {
|
|
439
|
-
|
|
439
|
+
D = R.createHTML(D);
|
|
440
440
|
break;
|
|
441
441
|
}
|
|
442
442
|
case "TrustedScriptURL": {
|
|
443
|
-
|
|
443
|
+
D = R.createScriptURL(D);
|
|
444
444
|
break;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
if (
|
|
447
|
+
if (D !== ot)
|
|
448
448
|
try {
|
|
449
|
-
|
|
449
|
+
Z ? e.setAttributeNS(Z, C, D) : e.setAttribute(C, D), rt(e) ? G(e) : Ht(r.removed);
|
|
450
450
|
} catch {
|
|
451
|
-
|
|
451
|
+
fe(C, e);
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
|
|
455
|
-
}, xa = function
|
|
454
|
+
X(L.afterSanitizeAttributes, e, null);
|
|
455
|
+
}, xa = function d(e) {
|
|
456
456
|
let o = null;
|
|
457
|
-
const
|
|
458
|
-
for (
|
|
459
|
-
|
|
460
|
-
|
|
457
|
+
const c = kt(e);
|
|
458
|
+
for (X(L.beforeSanitizeShadowDOM, e, null); o = c.nextNode(); )
|
|
459
|
+
X(L.uponSanitizeShadowNode, o, null), Rt(o), Lt(o), o.content instanceof h && d(o.content);
|
|
460
|
+
X(L.afterSanitizeShadowDOM, e, null);
|
|
461
461
|
};
|
|
462
|
-
return r.sanitize = function(
|
|
463
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = null,
|
|
464
|
-
if (
|
|
465
|
-
if (typeof
|
|
466
|
-
if (
|
|
467
|
-
throw
|
|
462
|
+
return r.sanitize = function(d) {
|
|
463
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = null, c = null, A = null, H = null;
|
|
464
|
+
if (et = !d, et && (d = "<!-->"), typeof d != "string" && !Tt(d))
|
|
465
|
+
if (typeof d.toString == "function") {
|
|
466
|
+
if (d = d.toString(), typeof d != "string")
|
|
467
|
+
throw Se("dirty is not a string, aborting");
|
|
468
468
|
} else
|
|
469
|
-
throw
|
|
469
|
+
throw Se("toString is not a function");
|
|
470
470
|
if (!r.isSupported)
|
|
471
|
-
return
|
|
472
|
-
if (
|
|
473
|
-
if (
|
|
474
|
-
const
|
|
475
|
-
if (!
|
|
476
|
-
throw
|
|
471
|
+
return d;
|
|
472
|
+
if (oe || at(e), r.removed = [], typeof d == "string" && (_e = !1), _e) {
|
|
473
|
+
if (d.nodeName) {
|
|
474
|
+
const K = M(d.nodeName);
|
|
475
|
+
if (!E[K] || ae[K])
|
|
476
|
+
throw Se("root node is forbidden and cannot be sanitized in-place");
|
|
477
477
|
}
|
|
478
|
-
} else if (
|
|
479
|
-
o = At("<!---->"),
|
|
478
|
+
} else if (d instanceof m)
|
|
479
|
+
o = At("<!---->"), c = o.ownerDocument.importNode(d, !0), c.nodeType === Le.element && c.nodeName === "BODY" || c.nodeName === "HTML" ? o = c : o.appendChild(c);
|
|
480
480
|
else {
|
|
481
|
-
if (!
|
|
482
|
-
|
|
483
|
-
return
|
|
484
|
-
if (o = At(
|
|
485
|
-
return
|
|
481
|
+
if (!de && !y && !$ && // eslint-disable-next-line unicorn/prefer-includes
|
|
482
|
+
d.indexOf("<") === -1)
|
|
483
|
+
return R && Pe ? R.createHTML(d) : d;
|
|
484
|
+
if (o = At(d), !o)
|
|
485
|
+
return de ? null : Pe ? te : "";
|
|
486
486
|
}
|
|
487
|
-
o &&
|
|
488
|
-
const
|
|
489
|
-
for (;
|
|
490
|
-
Rt(
|
|
491
|
-
if (
|
|
492
|
-
return
|
|
493
|
-
if (
|
|
494
|
-
if (
|
|
495
|
-
for (
|
|
496
|
-
|
|
487
|
+
o && Ke && G(o.firstChild);
|
|
488
|
+
const C = kt(_e ? d : o);
|
|
489
|
+
for (; A = C.nextNode(); )
|
|
490
|
+
Rt(A), Lt(A), A.content instanceof h && xa(A.content);
|
|
491
|
+
if (_e)
|
|
492
|
+
return d;
|
|
493
|
+
if (de) {
|
|
494
|
+
if (De)
|
|
495
|
+
for (H = we.call(o.ownerDocument); o.firstChild; )
|
|
496
|
+
H.appendChild(o.firstChild);
|
|
497
497
|
else
|
|
498
|
-
|
|
499
|
-
return (
|
|
498
|
+
H = o;
|
|
499
|
+
return (S.shadowroot || S.shadowrootmode) && (H = Ne.call(n, H, !0)), H;
|
|
500
500
|
}
|
|
501
|
-
let
|
|
502
|
-
return
|
|
503
|
-
` +
|
|
504
|
-
|
|
505
|
-
}),
|
|
501
|
+
let Z = $ ? o.outerHTML : o.innerHTML;
|
|
502
|
+
return $ && E["!doctype"] && o.ownerDocument && o.ownerDocument.doctype && o.ownerDocument.doctype.name && P(Qt, o.ownerDocument.doctype.name) && (Z = "<!DOCTYPE " + o.ownerDocument.doctype.name + `>
|
|
503
|
+
` + Z), y && Ve([ce, be, se], (K) => {
|
|
504
|
+
Z = Re(Z, K, " ");
|
|
505
|
+
}), R && Pe ? R.createHTML(Z) : Z;
|
|
506
506
|
}, r.setConfig = function() {
|
|
507
|
-
let
|
|
508
|
-
|
|
507
|
+
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
508
|
+
at(d), oe = !0;
|
|
509
509
|
}, r.clearConfig = function() {
|
|
510
|
-
|
|
511
|
-
}, r.isValidAttribute = function(
|
|
512
|
-
|
|
513
|
-
const
|
|
514
|
-
return St(
|
|
515
|
-
}, r.addHook = function(
|
|
516
|
-
typeof e == "function" &&
|
|
517
|
-
}, r.removeHook = function(
|
|
510
|
+
ue = null, oe = !1;
|
|
511
|
+
}, r.isValidAttribute = function(d, e, o) {
|
|
512
|
+
ue || at({});
|
|
513
|
+
const c = M(d), A = M(e);
|
|
514
|
+
return St(c, A, o);
|
|
515
|
+
}, r.addHook = function(d, e) {
|
|
516
|
+
typeof e == "function" && Te(L[d], e);
|
|
517
|
+
}, r.removeHook = function(d, e) {
|
|
518
518
|
if (e !== void 0) {
|
|
519
|
-
const o = Ta(L[
|
|
520
|
-
return o === -1 ? void 0 : Ra(L[
|
|
519
|
+
const o = Ta(L[d], e);
|
|
520
|
+
return o === -1 ? void 0 : Ra(L[d], o, 1)[0];
|
|
521
521
|
}
|
|
522
|
-
return Ht(L[
|
|
523
|
-
}, r.removeHooks = function(
|
|
524
|
-
L[
|
|
522
|
+
return Ht(L[d]);
|
|
523
|
+
}, r.removeHooks = function(d) {
|
|
524
|
+
L[d] = [];
|
|
525
525
|
}, r.removeAllHooks = function() {
|
|
526
526
|
L = Vt();
|
|
527
527
|
}, r;
|
|
528
528
|
}
|
|
529
529
|
var jt = ea();
|
|
530
|
-
const
|
|
530
|
+
const Ba = /* @__PURE__ */ new Map([
|
|
531
531
|
[
|
|
532
532
|
"bold",
|
|
533
|
-
/* @__PURE__ */
|
|
533
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z" }))
|
|
534
534
|
],
|
|
535
535
|
[
|
|
536
536
|
"duotone",
|
|
537
|
-
/* @__PURE__ */
|
|
537
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M112,56V200L40,128Z", opacity: "0.2" }), /* @__PURE__ */ a.createElement("path", { d: "M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z" }))
|
|
538
538
|
],
|
|
539
539
|
[
|
|
540
540
|
"fill",
|
|
541
|
-
/* @__PURE__ */
|
|
541
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z" }))
|
|
542
542
|
],
|
|
543
543
|
[
|
|
544
544
|
"light",
|
|
545
|
-
/* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z" }))
|
|
546
546
|
],
|
|
547
547
|
[
|
|
548
548
|
"regular",
|
|
549
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z" }))
|
|
550
550
|
],
|
|
551
551
|
[
|
|
552
552
|
"thin",
|
|
553
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z" }))
|
|
554
554
|
]
|
|
555
|
-
]),
|
|
555
|
+
]), Wa = /* @__PURE__ */ new Map([
|
|
556
556
|
[
|
|
557
557
|
"bold",
|
|
558
|
-
/* @__PURE__ */
|
|
558
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z" }))
|
|
559
559
|
],
|
|
560
560
|
[
|
|
561
561
|
"duotone",
|
|
562
|
-
/* @__PURE__ */
|
|
562
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z", opacity: "0.2" }), /* @__PURE__ */ a.createElement("path", { d: "M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z" }))
|
|
563
563
|
],
|
|
564
564
|
[
|
|
565
565
|
"fill",
|
|
566
|
-
/* @__PURE__ */
|
|
566
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z" }))
|
|
567
567
|
],
|
|
568
568
|
[
|
|
569
569
|
"light",
|
|
570
|
-
/* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z" }))
|
|
571
571
|
],
|
|
572
572
|
[
|
|
573
573
|
"regular",
|
|
574
|
-
/* @__PURE__ */
|
|
574
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z" }))
|
|
575
575
|
],
|
|
576
576
|
[
|
|
577
577
|
"thin",
|
|
578
|
-
/* @__PURE__ */
|
|
578
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z" }))
|
|
579
579
|
]
|
|
580
|
-
]),
|
|
580
|
+
]), $a = /* @__PURE__ */ new Map([
|
|
581
581
|
[
|
|
582
582
|
"bold",
|
|
583
|
-
/* @__PURE__ */
|
|
583
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M240,100h-8.2L205.08,39.88A20,20,0,0,0,186.8,28H69.2A20,20,0,0,0,50.92,39.88L24.2,100H16a12,12,0,0,0,0,24h4v76a20,20,0,0,0,20,20H68a20,20,0,0,0,20-20V180h80v20a20,20,0,0,0,20,20h28a20,20,0,0,0,20-20V124h4a12,12,0,0,0,0-24ZM71.8,52H184.2l21.33,48H50.47ZM64,196H44V180H64Zm128,0V180h20v16Zm20-40H44V124H212Z" }))
|
|
584
584
|
],
|
|
585
585
|
[
|
|
586
586
|
"duotone",
|
|
587
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
588
588
|
"path",
|
|
589
589
|
{
|
|
590
590
|
d: "M184,176h40v24a8,8,0,0,1-8,8H192a8,8,0,0,1-8-8ZM32,200a8,8,0,0,0,8,8H64a8,8,0,0,0,8-8V176H32ZM194.11,44.75A8,8,0,0,0,186.8,40H69.2a8,8,0,0,0-7.31,4.75L32,112H224Z",
|
|
591
591
|
opacity: "0.2"
|
|
592
592
|
}
|
|
593
|
-
), /* @__PURE__ */
|
|
593
|
+
), /* @__PURE__ */ a.createElement("path", { d: "M240,104H229.2L201.42,41.5A16,16,0,0,0,186.8,32H69.2a16,16,0,0,0-14.62,9.5L26.8,104H16a8,8,0,0,0,0,16h8v80a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16V184h96v16a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V120h8a8,8,0,0,0,0-16ZM69.2,48H186.8l24.89,56H44.31ZM64,200H40V184H64Zm128,0V184h24v16Zm24-32H40V120H216ZM56,144a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16H64A8,8,0,0,1,56,144Zm112,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,144Z" }))
|
|
594
594
|
],
|
|
595
595
|
[
|
|
596
596
|
"fill",
|
|
597
|
-
/* @__PURE__ */
|
|
597
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M240,104H229.2L201.42,41.5A16,16,0,0,0,186.8,32H69.2a16,16,0,0,0-14.62,9.5L26.8,104H16a8,8,0,0,0,0,16h8v80a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16v-8h96v8a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V120h8a8,8,0,0,0,0-16ZM80,152H56a8,8,0,0,1,0-16H80a8,8,0,0,1,0,16Zm120,0H176a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16ZM44.31,104,69.2,48H186.8l24.89,56Z" }))
|
|
598
598
|
],
|
|
599
599
|
[
|
|
600
600
|
"light",
|
|
601
|
-
/* @__PURE__ */
|
|
601
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M240,106H227.9L199.59,42.31A14,14,0,0,0,186.8,34H69.2a14,14,0,0,0-12.79,8.31L28.1,106H16a6,6,0,0,0,0,12H26v82a14,14,0,0,0,14,14H64a14,14,0,0,0,14-14V182H178v18a14,14,0,0,0,14,14h24a14,14,0,0,0,14-14V118h10a6,6,0,0,0,0-12ZM67.37,47.19A2,2,0,0,1,69.2,46H186.8a2,2,0,0,1,1.83,1.19L214.77,106H41.23ZM66,200a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V182H66Zm150,2H192a2,2,0,0,1-2-2V182h28v18A2,2,0,0,1,216,202Zm2-32H38V118H218ZM58,144a6,6,0,0,1,6-6H80a6,6,0,0,1,0,12H64A6,6,0,0,1,58,144Zm112,0a6,6,0,0,1,6-6h16a6,6,0,0,1,0,12H176A6,6,0,0,1,170,144Z" }))
|
|
602
602
|
],
|
|
603
603
|
[
|
|
604
604
|
"regular",
|
|
605
|
-
/* @__PURE__ */
|
|
605
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M240,104H229.2L201.42,41.5A16,16,0,0,0,186.8,32H69.2a16,16,0,0,0-14.62,9.5L26.8,104H16a8,8,0,0,0,0,16h8v80a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16V184h96v16a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V120h8a8,8,0,0,0,0-16ZM69.2,48H186.8l24.89,56H44.31ZM64,200H40V184H64Zm128,0V184h24v16Zm24-32H40V120H216ZM56,144a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16H64A8,8,0,0,1,56,144Zm112,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,144Z" }))
|
|
606
606
|
],
|
|
607
607
|
[
|
|
608
608
|
"thin",
|
|
609
|
-
/* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M240,108H226.6L197.77,43.13a12,12,0,0,0-11-7.13H69.2a12,12,0,0,0-11,7.13L29.4,108H16a4,4,0,0,0,0,8H28v84a12,12,0,0,0,12,12H64a12,12,0,0,0,12-12V180H180v20a12,12,0,0,0,12,12h24a12,12,0,0,0,12-12V116h12a4,4,0,0,0,0-8ZM65.54,46.38A4,4,0,0,1,69.2,44H186.8a4,4,0,0,1,3.66,2.38L217.84,108H38.16ZM68,200a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V180H68Zm148,4H192a4,4,0,0,1-4-4V180h32v20A4,4,0,0,1,216,204Zm4-32H36V116H220ZM60,144a4,4,0,0,1,4-4H80a4,4,0,0,1,0,8H64A4,4,0,0,1,60,144Zm112,0a4,4,0,0,1,4-4h16a4,4,0,0,1,0,8H176A4,4,0,0,1,172,144Z" }))
|
|
610
610
|
]
|
|
611
|
-
]),
|
|
611
|
+
]), Ga = /* @__PURE__ */ new Map([
|
|
612
612
|
[
|
|
613
613
|
"bold",
|
|
614
|
-
/* @__PURE__ */
|
|
614
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z" }))
|
|
615
615
|
],
|
|
616
616
|
[
|
|
617
617
|
"duotone",
|
|
618
|
-
/* @__PURE__ */
|
|
618
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z", opacity: "0.2" }), /* @__PURE__ */ a.createElement("path", { d: "M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z" }))
|
|
619
619
|
],
|
|
620
620
|
[
|
|
621
621
|
"fill",
|
|
622
|
-
/* @__PURE__ */
|
|
622
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z" }))
|
|
623
623
|
],
|
|
624
624
|
[
|
|
625
625
|
"light",
|
|
626
|
-
/* @__PURE__ */
|
|
626
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z" }))
|
|
627
627
|
],
|
|
628
628
|
[
|
|
629
629
|
"regular",
|
|
630
|
-
/* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z" }))
|
|
631
631
|
],
|
|
632
632
|
[
|
|
633
633
|
"thin",
|
|
634
|
-
/* @__PURE__ */
|
|
634
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z" }))
|
|
635
635
|
]
|
|
636
636
|
]), Ya = /* @__PURE__ */ new Map([
|
|
637
637
|
[
|
|
638
638
|
"bold",
|
|
639
|
-
/* @__PURE__ */
|
|
639
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z" }))
|
|
640
640
|
],
|
|
641
641
|
[
|
|
642
642
|
"duotone",
|
|
643
|
-
/* @__PURE__ */
|
|
643
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
644
644
|
"path",
|
|
645
645
|
{
|
|
646
646
|
d: "M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",
|
|
647
647
|
opacity: "0.2"
|
|
648
648
|
}
|
|
649
|
-
), /* @__PURE__ */
|
|
649
|
+
), /* @__PURE__ */ a.createElement("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
|
|
650
650
|
],
|
|
651
651
|
[
|
|
652
652
|
"fill",
|
|
653
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
|
|
654
654
|
],
|
|
655
655
|
[
|
|
656
656
|
"light",
|
|
657
|
-
/* @__PURE__ */
|
|
657
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z" }))
|
|
658
658
|
],
|
|
659
659
|
[
|
|
660
660
|
"regular",
|
|
661
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
|
|
662
662
|
],
|
|
663
663
|
[
|
|
664
664
|
"thin",
|
|
665
|
-
/* @__PURE__ */
|
|
665
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z" }))
|
|
666
666
|
]
|
|
667
667
|
]), qa = /* @__PURE__ */ new Map([
|
|
668
668
|
[
|
|
669
669
|
"bold",
|
|
670
|
-
/* @__PURE__ */
|
|
670
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z" }))
|
|
671
671
|
],
|
|
672
672
|
[
|
|
673
673
|
"duotone",
|
|
674
|
-
/* @__PURE__ */
|
|
674
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z", opacity: "0.2" }), /* @__PURE__ */ a.createElement("path", { d: "M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }))
|
|
675
675
|
],
|
|
676
676
|
[
|
|
677
677
|
"fill",
|
|
678
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
|
|
679
679
|
],
|
|
680
680
|
[
|
|
681
681
|
"light",
|
|
682
|
-
/* @__PURE__ */
|
|
682
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z" }))
|
|
683
683
|
],
|
|
684
684
|
[
|
|
685
685
|
"regular",
|
|
686
|
-
/* @__PURE__ */
|
|
686
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }))
|
|
687
687
|
],
|
|
688
688
|
[
|
|
689
689
|
"thin",
|
|
690
|
-
/* @__PURE__ */
|
|
690
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z" }))
|
|
691
691
|
]
|
|
692
692
|
]), Xa = ya({
|
|
693
693
|
color: "currentColor",
|
|
694
694
|
size: "1em",
|
|
695
695
|
weight: "regular",
|
|
696
696
|
mirrored: !1
|
|
697
|
-
}),
|
|
698
|
-
(
|
|
697
|
+
}), ie = a.forwardRef(
|
|
698
|
+
(t, r) => {
|
|
699
699
|
const {
|
|
700
|
-
alt:
|
|
700
|
+
alt: s,
|
|
701
701
|
color: n,
|
|
702
|
-
size:
|
|
703
|
-
weight:
|
|
704
|
-
mirrored:
|
|
702
|
+
size: u,
|
|
703
|
+
weight: h,
|
|
704
|
+
mirrored: f,
|
|
705
705
|
children: m,
|
|
706
|
-
weights:
|
|
706
|
+
weights: w,
|
|
707
707
|
...i
|
|
708
|
-
} =
|
|
709
|
-
color:
|
|
710
|
-
size:
|
|
711
|
-
weight:
|
|
712
|
-
mirrored:
|
|
713
|
-
...
|
|
714
|
-
} =
|
|
715
|
-
return /* @__PURE__ */
|
|
708
|
+
} = t, {
|
|
709
|
+
color: p = "currentColor",
|
|
710
|
+
size: b,
|
|
711
|
+
weight: F = "regular",
|
|
712
|
+
mirrored: T = !1,
|
|
713
|
+
...k
|
|
714
|
+
} = a.useContext(Xa);
|
|
715
|
+
return /* @__PURE__ */ a.createElement(
|
|
716
716
|
"svg",
|
|
717
717
|
{
|
|
718
718
|
ref: r,
|
|
719
719
|
xmlns: "http://www.w3.org/2000/svg",
|
|
720
|
-
width:
|
|
721
|
-
height:
|
|
722
|
-
fill: n ??
|
|
720
|
+
width: u ?? b,
|
|
721
|
+
height: u ?? b,
|
|
722
|
+
fill: n ?? p,
|
|
723
723
|
viewBox: "0 0 256 256",
|
|
724
|
-
transform:
|
|
725
|
-
...
|
|
724
|
+
transform: f || T ? "scale(-1, 1)" : void 0,
|
|
725
|
+
...k,
|
|
726
726
|
...i
|
|
727
727
|
},
|
|
728
|
-
!!
|
|
728
|
+
!!s && /* @__PURE__ */ a.createElement("title", null, s),
|
|
729
729
|
m,
|
|
730
|
-
|
|
730
|
+
w.get(h ?? F)
|
|
731
731
|
);
|
|
732
732
|
}
|
|
733
733
|
);
|
|
734
|
-
|
|
735
|
-
const ta =
|
|
734
|
+
ie.displayName = "IconBase";
|
|
735
|
+
const ta = a.forwardRef((t, r) => /* @__PURE__ */ a.createElement(ie, { ref: r, ...t, weights: Ba }));
|
|
736
736
|
ta.displayName = "ArrowLeftIcon";
|
|
737
|
-
const aa =
|
|
737
|
+
const aa = a.forwardRef((t, r) => /* @__PURE__ */ a.createElement(ie, { ref: r, ...t, weights: Wa }));
|
|
738
738
|
aa.displayName = "ArrowsClockwiseIcon";
|
|
739
|
-
const ra =
|
|
739
|
+
const ra = a.forwardRef((t, r) => /* @__PURE__ */ a.createElement(ie, { ref: r, ...t, weights: $a }));
|
|
740
740
|
ra.displayName = "CarIcon";
|
|
741
|
-
const oa =
|
|
741
|
+
const oa = a.forwardRef((t, r) => /* @__PURE__ */ a.createElement(ie, { ref: r, ...t, weights: Ga }));
|
|
742
742
|
oa.displayName = "CircleNotchIcon";
|
|
743
|
-
const na =
|
|
743
|
+
const na = a.forwardRef((t, r) => /* @__PURE__ */ a.createElement(ie, { ref: r, ...t, weights: Ya }));
|
|
744
744
|
na.displayName = "XIcon";
|
|
745
|
-
const ia =
|
|
745
|
+
const ia = a.forwardRef((t, r) => /* @__PURE__ */ a.createElement(ie, { ref: r, ...t, weights: qa }));
|
|
746
746
|
ia.displayName = "XCircleIcon";
|
|
747
|
-
function la(
|
|
748
|
-
return
|
|
747
|
+
function la(t) {
|
|
748
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
749
749
|
}
|
|
750
750
|
var ca = { exports: {} };
|
|
751
751
|
/*!
|
|
@@ -755,91 +755,91 @@ var ca = { exports: {} };
|
|
|
755
755
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
756
756
|
* Released under the MIT license
|
|
757
757
|
*/
|
|
758
|
-
(function(
|
|
759
|
-
(function(
|
|
758
|
+
(function(t, r) {
|
|
759
|
+
(function(s) {
|
|
760
760
|
var n;
|
|
761
|
-
if (
|
|
762
|
-
var
|
|
763
|
-
|
|
764
|
-
return window.Cookies =
|
|
761
|
+
if (t.exports = s(), n = !0, !n) {
|
|
762
|
+
var u = window.Cookies, h = window.Cookies = s();
|
|
763
|
+
h.noConflict = function() {
|
|
764
|
+
return window.Cookies = u, h;
|
|
765
765
|
};
|
|
766
766
|
}
|
|
767
767
|
})(function() {
|
|
768
|
-
function
|
|
769
|
-
for (var
|
|
770
|
-
var m = arguments[
|
|
771
|
-
for (var
|
|
772
|
-
|
|
768
|
+
function s() {
|
|
769
|
+
for (var h = 0, f = {}; h < arguments.length; h++) {
|
|
770
|
+
var m = arguments[h];
|
|
771
|
+
for (var w in m)
|
|
772
|
+
f[w] = m[w];
|
|
773
773
|
}
|
|
774
|
-
return
|
|
774
|
+
return f;
|
|
775
775
|
}
|
|
776
|
-
function n(
|
|
777
|
-
return
|
|
776
|
+
function n(h) {
|
|
777
|
+
return h.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
function
|
|
779
|
+
function u(h) {
|
|
780
|
+
function f() {
|
|
781
781
|
}
|
|
782
|
-
function m(i,
|
|
782
|
+
function m(i, p, b) {
|
|
783
783
|
if (!(typeof document > "u")) {
|
|
784
|
-
|
|
784
|
+
b = s({
|
|
785
785
|
path: "/"
|
|
786
|
-
},
|
|
786
|
+
}, f.defaults, b), typeof b.expires == "number" && (b.expires = new Date(/* @__PURE__ */ new Date() * 1 + b.expires * 864e5)), b.expires = b.expires ? b.expires.toUTCString() : "";
|
|
787
787
|
try {
|
|
788
|
-
var
|
|
789
|
-
/^[\{\[]/.test(
|
|
788
|
+
var F = JSON.stringify(p);
|
|
789
|
+
/^[\{\[]/.test(F) && (p = F);
|
|
790
790
|
} catch {
|
|
791
791
|
}
|
|
792
|
-
|
|
793
|
-
var
|
|
794
|
-
for (var
|
|
795
|
-
|
|
796
|
-
return document.cookie = i + "=" +
|
|
792
|
+
p = h.write ? h.write(p, i) : encodeURIComponent(String(p)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), i = encodeURIComponent(String(i)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape);
|
|
793
|
+
var T = "";
|
|
794
|
+
for (var k in b)
|
|
795
|
+
b[k] && (T += "; " + k, b[k] !== !0 && (T += "=" + b[k].split(";")[0]));
|
|
796
|
+
return document.cookie = i + "=" + p + T;
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function w(i, p) {
|
|
800
800
|
if (!(typeof document > "u")) {
|
|
801
|
-
for (var
|
|
802
|
-
var
|
|
803
|
-
!
|
|
801
|
+
for (var b = {}, F = document.cookie ? document.cookie.split("; ") : [], T = 0; T < F.length; T++) {
|
|
802
|
+
var k = F[T].split("="), N = k.slice(1).join("=");
|
|
803
|
+
!p && N.charAt(0) === '"' && (N = N.slice(1, -1));
|
|
804
804
|
try {
|
|
805
|
-
var
|
|
806
|
-
if (
|
|
805
|
+
var O = n(k[0]);
|
|
806
|
+
if (N = (h.read || h)(N, O) || n(N), p)
|
|
807
807
|
try {
|
|
808
|
-
|
|
808
|
+
N = JSON.parse(N);
|
|
809
809
|
} catch {
|
|
810
810
|
}
|
|
811
|
-
if (
|
|
811
|
+
if (b[O] = N, i === O)
|
|
812
812
|
break;
|
|
813
813
|
} catch {
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
return i ?
|
|
816
|
+
return i ? b[i] : b;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
return
|
|
820
|
-
return
|
|
819
|
+
return f.set = m, f.get = function(i) {
|
|
820
|
+
return w(
|
|
821
821
|
i,
|
|
822
822
|
!1
|
|
823
823
|
/* read as raw */
|
|
824
824
|
);
|
|
825
|
-
},
|
|
826
|
-
return
|
|
825
|
+
}, f.getJSON = function(i) {
|
|
826
|
+
return w(
|
|
827
827
|
i,
|
|
828
828
|
!0
|
|
829
829
|
/* read as json */
|
|
830
830
|
);
|
|
831
|
-
},
|
|
832
|
-
m(i, "",
|
|
831
|
+
}, f.remove = function(i, p) {
|
|
832
|
+
m(i, "", s(p, {
|
|
833
833
|
expires: -1
|
|
834
834
|
}));
|
|
835
|
-
},
|
|
835
|
+
}, f.defaults = {}, f.withConverter = u, f;
|
|
836
836
|
}
|
|
837
|
-
return
|
|
837
|
+
return u(function() {
|
|
838
838
|
});
|
|
839
839
|
});
|
|
840
840
|
})(ca);
|
|
841
841
|
var Ka = ca.exports;
|
|
842
|
-
const
|
|
842
|
+
const dt = /* @__PURE__ */ la(Ka);
|
|
843
843
|
var sa = { exports: {} }, Ja = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", Qa = Ja, er = Qa;
|
|
844
844
|
function da() {
|
|
845
845
|
}
|
|
@@ -847,33 +847,33 @@ function ma() {
|
|
|
847
847
|
}
|
|
848
848
|
ma.resetWarningCache = da;
|
|
849
849
|
var tr = function() {
|
|
850
|
-
function
|
|
851
|
-
if (
|
|
850
|
+
function t(n, u, h, f, m, w) {
|
|
851
|
+
if (w !== er) {
|
|
852
852
|
var i = new Error(
|
|
853
853
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
854
854
|
);
|
|
855
855
|
throw i.name = "Invariant Violation", i;
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
|
-
|
|
858
|
+
t.isRequired = t;
|
|
859
859
|
function r() {
|
|
860
|
-
return
|
|
860
|
+
return t;
|
|
861
861
|
}
|
|
862
|
-
var
|
|
863
|
-
array:
|
|
864
|
-
bigint:
|
|
865
|
-
bool:
|
|
866
|
-
func:
|
|
867
|
-
number:
|
|
868
|
-
object:
|
|
869
|
-
string:
|
|
870
|
-
symbol:
|
|
871
|
-
any:
|
|
862
|
+
var s = {
|
|
863
|
+
array: t,
|
|
864
|
+
bigint: t,
|
|
865
|
+
bool: t,
|
|
866
|
+
func: t,
|
|
867
|
+
number: t,
|
|
868
|
+
object: t,
|
|
869
|
+
string: t,
|
|
870
|
+
symbol: t,
|
|
871
|
+
any: t,
|
|
872
872
|
arrayOf: r,
|
|
873
|
-
element:
|
|
874
|
-
elementType:
|
|
873
|
+
element: t,
|
|
874
|
+
elementType: t,
|
|
875
875
|
instanceOf: r,
|
|
876
|
-
node:
|
|
876
|
+
node: t,
|
|
877
877
|
objectOf: r,
|
|
878
878
|
oneOf: r,
|
|
879
879
|
oneOfType: r,
|
|
@@ -882,12 +882,12 @@ var tr = function() {
|
|
|
882
882
|
checkPropTypes: ma,
|
|
883
883
|
resetWarningCache: da
|
|
884
884
|
};
|
|
885
|
-
return
|
|
885
|
+
return s.PropTypes = s, s;
|
|
886
886
|
};
|
|
887
887
|
sa.exports = tr();
|
|
888
888
|
var ar = sa.exports;
|
|
889
|
-
const
|
|
890
|
-
function
|
|
889
|
+
const I = /* @__PURE__ */ la(ar);
|
|
890
|
+
function ha({ error: t }) {
|
|
891
891
|
return /* @__PURE__ */ React.createElement("div", { className: "rounded-md bg-red-50 p-4" }, /* @__PURE__ */ React.createElement("div", { className: "flex justify-center items-center" }, /* @__PURE__ */ React.createElement("div", { className: "flex-shrink-0" }, /* @__PURE__ */ React.createElement(
|
|
892
892
|
ia,
|
|
893
893
|
{
|
|
@@ -896,13 +896,13 @@ function pa({ error: a }) {
|
|
|
896
896
|
className: "text-red-400",
|
|
897
897
|
"aria-hidden": "true"
|
|
898
898
|
}
|
|
899
|
-
)), /* @__PURE__ */ React.createElement("div", { className: "ml-3" }, /* @__PURE__ */ React.createElement("h3", { className: "text-sm font-medium text-red-800" },
|
|
899
|
+
)), /* @__PURE__ */ React.createElement("div", { className: "ml-3" }, /* @__PURE__ */ React.createElement("h3", { className: "text-sm font-medium text-red-800" }, t))));
|
|
900
900
|
}
|
|
901
|
-
|
|
902
|
-
error:
|
|
901
|
+
ha.propTypes = {
|
|
902
|
+
error: I.string.isRequired
|
|
903
903
|
};
|
|
904
|
-
function rr({ className:
|
|
905
|
-
return /* @__PURE__ */ React.createElement("span", { className:
|
|
904
|
+
function rr({ className: t, alt: r = "Partbot Logo" }) {
|
|
905
|
+
return /* @__PURE__ */ React.createElement("span", { className: t, role: "img", "aria-label": r }, /* @__PURE__ */ React.createElement(
|
|
906
906
|
"svg",
|
|
907
907
|
{
|
|
908
908
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -981,70 +981,78 @@ function rr({ className: a, alt: r = "Partbot Logo" }) {
|
|
|
981
981
|
))
|
|
982
982
|
));
|
|
983
983
|
}
|
|
984
|
-
const or = "3.1.
|
|
984
|
+
const or = "3.1.2", pt = {
|
|
985
985
|
version: or
|
|
986
|
-
},
|
|
987
|
-
function
|
|
988
|
-
const [r,
|
|
986
|
+
}, Bt = ["ACT", "NSW", "NT", "QLD", "SA", "TAS", "VIC", "WA"], Wt = "https://api.partbot.io/v1/vehicles/plate-search", $t = "https://api.partbot.io/v1/vehicles/plate-search-retry";
|
|
987
|
+
function We(t) {
|
|
988
|
+
const [r, s] = J(!1), [n, u] = J(!1), [h, f] = J(""), [m, w] = J(""), [i, p] = J(null), [b, F] = J(!1), T = Me(null), [k, N] = J(Wt), [O, Y] = J(null), $e = t.apiKey, ee = t.callbackUrl, R = t.productsUrl, te = t.useGeolocation === "true", le = t.themeColor || "#4f46e5", Ge = t.buttonTheme || "light", we = t.responsive !== void 0 ? t.responsive : !0, Ye = t.intro || "Enter your Number Plate and select your State or Territory to find your vehicle.", Ne = t.placeholder || "PL8SRCH", L = t.supportMessage, ce = t.isOpen !== void 0, be = t.isOpen, se = t.onOpenChange, qe = t.hideDefaultButton || !1, Oe = t.onModalClose, Xe = t.autoCloseOnSelect || !1, Ie = t.actionButtonLabel || "Show Products", j = ce ? be : r, ve = (l) => {
|
|
989
|
+
ce || s(l), se && se(l);
|
|
990
|
+
}, E = () => {
|
|
991
|
+
ve(!1);
|
|
992
|
+
const l = new CustomEvent("plate-search-modal-close", {
|
|
993
|
+
detail: { timestamp: Date.now() }
|
|
994
|
+
});
|
|
995
|
+
document.dispatchEvent(l), Oe && Oe();
|
|
996
|
+
};
|
|
989
997
|
W(() => {
|
|
990
998
|
console.info(
|
|
991
|
-
`Vehicle Registration Search (v${
|
|
999
|
+
`Vehicle Registration Search (v${pt.version}) powered by Partbot https://use.partbot.io`
|
|
992
1000
|
);
|
|
993
1001
|
}, []), W(() => {
|
|
994
|
-
const
|
|
1002
|
+
const l = localStorage.getItem(
|
|
995
1003
|
"partbot_selected_vehicle"
|
|
996
1004
|
);
|
|
997
|
-
if (
|
|
998
|
-
const v = JSON.parse(
|
|
1005
|
+
if (l) {
|
|
1006
|
+
const v = JSON.parse(l);
|
|
999
1007
|
v.description && (v.vehicle_ids.length > 0 || Object.values(v.vehicle).every(
|
|
1000
|
-
(
|
|
1001
|
-
)) &&
|
|
1008
|
+
(x) => x !== null && x !== "" && (typeof x != "object" || Object.keys(x).length > 0)
|
|
1009
|
+
)) && Y(v);
|
|
1002
1010
|
}
|
|
1003
1011
|
}, []), W(() => {
|
|
1004
|
-
document.documentElement.style.setProperty("--partbot-theme",
|
|
1005
|
-
}, [
|
|
1006
|
-
r &&
|
|
1007
|
-
const { latitude: v, longitude:
|
|
1012
|
+
document.documentElement.style.setProperty("--partbot-theme", le);
|
|
1013
|
+
}, [le]), W(() => {
|
|
1014
|
+
r && te && "geolocation" in navigator && navigator.geolocation.getCurrentPosition(async function(l) {
|
|
1015
|
+
const { latitude: v, longitude: x } = l.coords;
|
|
1008
1016
|
try {
|
|
1009
|
-
const
|
|
1010
|
-
`https://maps.googleapis.com/maps/api/geocode/json?latlng=${v},${
|
|
1017
|
+
const re = await (await fetch(
|
|
1018
|
+
`https://maps.googleapis.com/maps/api/geocode/json?latlng=${v},${x}&key=AIzaSyDAdDL5E8iWK_oc0FLqdW-QAhZo84xIX0k`
|
|
1011
1019
|
)).json();
|
|
1012
|
-
if (
|
|
1013
|
-
const
|
|
1014
|
-
(
|
|
1020
|
+
if (re.results && re.results[0]) {
|
|
1021
|
+
const $ = re.results[0].address_components.find(
|
|
1022
|
+
(oe) => oe.types.includes("administrative_area_level_1")
|
|
1015
1023
|
);
|
|
1016
|
-
if (
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1024
|
+
if ($) {
|
|
1025
|
+
const oe = $.short_name;
|
|
1026
|
+
w(oe);
|
|
1019
1027
|
}
|
|
1020
1028
|
}
|
|
1021
|
-
} catch (
|
|
1022
|
-
console.error("Geocoding error:",
|
|
1029
|
+
} catch (y) {
|
|
1030
|
+
console.error("Geocoding error:", y);
|
|
1023
1031
|
}
|
|
1024
1032
|
});
|
|
1025
|
-
}, [
|
|
1026
|
-
let
|
|
1027
|
-
|
|
1033
|
+
}, [te, r]), W(() => {
|
|
1034
|
+
let l = localStorage.getItem("partbot_plate_details");
|
|
1035
|
+
l && (l = JSON.parse(l), l.plate ? f(l.plate.number) : localStorage.removeItem("partbot_plate_details"));
|
|
1028
1036
|
}, []), W(() => {
|
|
1029
|
-
|
|
1030
|
-
}, [
|
|
1031
|
-
if (
|
|
1032
|
-
const
|
|
1033
|
-
return
|
|
1034
|
-
document.documentElement.style.overflow =
|
|
1037
|
+
j && !n && u(!0), j && T.current && T.current.focus();
|
|
1038
|
+
}, [j, n]), W(() => {
|
|
1039
|
+
if (j) {
|
|
1040
|
+
const l = document.documentElement.style.overflow, v = document.documentElement.style.paddingRight, x = window.innerWidth - document.documentElement.clientWidth;
|
|
1041
|
+
return x > 0 && (document.documentElement.style.paddingRight = `${x}px`), document.documentElement.style.overflow = "hidden", () => {
|
|
1042
|
+
document.documentElement.style.overflow = l, document.documentElement.style.paddingRight = v;
|
|
1035
1043
|
};
|
|
1036
1044
|
}
|
|
1037
|
-
}, [
|
|
1038
|
-
const
|
|
1039
|
-
if (
|
|
1045
|
+
}, [j]);
|
|
1046
|
+
const xe = (l) => {
|
|
1047
|
+
if (l && l.preventDefault(), !m || !h)
|
|
1040
1048
|
return;
|
|
1041
|
-
|
|
1049
|
+
F(!0);
|
|
1042
1050
|
const v = {
|
|
1043
|
-
plate:
|
|
1051
|
+
plate: h,
|
|
1044
1052
|
state: m
|
|
1045
1053
|
};
|
|
1046
|
-
async function
|
|
1047
|
-
return (await fetch(
|
|
1054
|
+
async function x() {
|
|
1055
|
+
return (await fetch(k, {
|
|
1048
1056
|
method: "POST",
|
|
1049
1057
|
mode: "cors",
|
|
1050
1058
|
// no-cors, *cors, same-origin
|
|
@@ -1054,7 +1062,7 @@ function Fe(a) {
|
|
|
1054
1062
|
// include, *same-origin, omit
|
|
1055
1063
|
headers: {
|
|
1056
1064
|
"Content-Type": "application/json",
|
|
1057
|
-
Authorization: `Basic ${
|
|
1065
|
+
Authorization: `Basic ${$e}`
|
|
1058
1066
|
},
|
|
1059
1067
|
redirect: "follow",
|
|
1060
1068
|
// manual, *follow, error
|
|
@@ -1063,49 +1071,49 @@ function Fe(a) {
|
|
|
1063
1071
|
body: JSON.stringify(v)
|
|
1064
1072
|
})).json();
|
|
1065
1073
|
}
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
}).catch((
|
|
1069
|
-
console.error("Error:",
|
|
1074
|
+
x().then((y) => {
|
|
1075
|
+
F(!1), y.plate ? (localStorage.setItem("partbot_plate_details", JSON.stringify(y)), p(y)) : y && y.indexOf("Invalid API Key") !== -1 ? p({ error: y }) : p({ error: "Could not find any matching vehicles." });
|
|
1076
|
+
}).catch((y) => {
|
|
1077
|
+
console.error("Error:", y), p({ error: "Could not find any matching vehicles." });
|
|
1070
1078
|
});
|
|
1071
1079
|
};
|
|
1072
1080
|
W(() => {
|
|
1073
|
-
|
|
1074
|
-
}, [
|
|
1075
|
-
const
|
|
1076
|
-
localStorage.removeItem("partbot_plate_details"), localStorage.removeItem("partbot_selected_vehicle"),
|
|
1077
|
-
},
|
|
1081
|
+
xe();
|
|
1082
|
+
}, [k]);
|
|
1083
|
+
const S = (l) => {
|
|
1084
|
+
localStorage.removeItem("partbot_plate_details"), localStorage.removeItem("partbot_selected_vehicle"), dt.remove("partbot_selected_vehicle"), p(null), N($t);
|
|
1085
|
+
}, He = (l) => {
|
|
1078
1086
|
window.open(
|
|
1079
1087
|
`mailto:report@partbot.io?subject=${encodeURIComponent(
|
|
1080
1088
|
"Registration Search Issue"
|
|
1081
1089
|
)}&body=${encodeURIComponent(
|
|
1082
|
-
`Incorrect vehicles were shown for ${m} number plate: ${
|
|
1090
|
+
`Incorrect vehicles were shown for ${m} number plate: ${h}, vehicle: ${i.factory_vehicle.make} ${i.factory_vehicle.model} ${i.factory_vehicle.year} ${i.factory_vehicle.body} ${i.factory_vehicle.series}. Please provide details of the correct vehicle below:`
|
|
1083
1091
|
)}`
|
|
1084
1092
|
);
|
|
1085
|
-
},
|
|
1086
|
-
|
|
1087
|
-
},
|
|
1093
|
+
}, _ = (l) => {
|
|
1094
|
+
f(""), p(null), N(Wt), Y(null), localStorage.removeItem("partbot_plate_details"), localStorage.removeItem("partbot_selected_vehicle"), dt.remove("partbot_selected_vehicle");
|
|
1095
|
+
}, ae = (l) => {
|
|
1088
1096
|
var v = JSON.stringify({
|
|
1089
|
-
description:
|
|
1090
|
-
vehicle_ids:
|
|
1097
|
+
description: l.description,
|
|
1098
|
+
vehicle_ids: l.vehicle_ids,
|
|
1091
1099
|
vehicle: {
|
|
1092
|
-
...
|
|
1100
|
+
...l.vehicle,
|
|
1093
1101
|
year: i.factory_vehicle.year
|
|
1094
1102
|
}
|
|
1095
1103
|
});
|
|
1096
|
-
localStorage.setItem("partbot_selected_vehicle", v),
|
|
1104
|
+
localStorage.setItem("partbot_selected_vehicle", v), dt.set("partbot_selected_vehicle", v, {
|
|
1097
1105
|
secure: !0
|
|
1098
1106
|
});
|
|
1099
|
-
var
|
|
1107
|
+
var x = new CustomEvent("plate-search-change", {
|
|
1100
1108
|
detail: {
|
|
1101
|
-
vehicle_ids:
|
|
1109
|
+
vehicle_ids: l.vehicle_ids
|
|
1102
1110
|
}
|
|
1103
1111
|
});
|
|
1104
|
-
document.dispatchEvent(
|
|
1105
|
-
},
|
|
1106
|
-
if (
|
|
1112
|
+
document.dispatchEvent(x), Y(l), Xe && E(), ee && ee !== window.location.href && (E(), window.location.href = ee + window.location.search);
|
|
1113
|
+
}, ye = (l) => {
|
|
1114
|
+
if (E(), R)
|
|
1107
1115
|
try {
|
|
1108
|
-
const v = new URL(
|
|
1116
|
+
const v = new URL(R, window.location.origin);
|
|
1109
1117
|
if (v.origin !== window.location.origin) {
|
|
1110
1118
|
console.warn(
|
|
1111
1119
|
"Partbot: Blocked navigation to external productsUrl",
|
|
@@ -1117,11 +1125,11 @@ function Fe(a) {
|
|
|
1117
1125
|
} catch (v) {
|
|
1118
1126
|
console.error(
|
|
1119
1127
|
"Partbot: Invalid productsUrl provided",
|
|
1120
|
-
|
|
1128
|
+
R,
|
|
1121
1129
|
v
|
|
1122
1130
|
);
|
|
1123
1131
|
}
|
|
1124
|
-
},
|
|
1132
|
+
}, Ee = (l) => {
|
|
1125
1133
|
const v = [
|
|
1126
1134
|
"series",
|
|
1127
1135
|
"variant",
|
|
@@ -1132,40 +1140,40 @@ function Fe(a) {
|
|
|
1132
1140
|
"engine_capacity",
|
|
1133
1141
|
"cylinders"
|
|
1134
1142
|
];
|
|
1135
|
-
return Object.entries(
|
|
1143
|
+
return Object.entries(l).filter(([x, y]) => y !== null && v.includes(x) && typeof y != "object").map(([x, y]) => x === "cylinders" ? `${y}cyl` : y).join(" ");
|
|
1136
1144
|
};
|
|
1137
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1145
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, !qe && /* @__PURE__ */ React.createElement(
|
|
1138
1146
|
"button",
|
|
1139
1147
|
{
|
|
1140
|
-
onClick: (
|
|
1148
|
+
onClick: (l) => ve(!j),
|
|
1141
1149
|
type: "button",
|
|
1142
|
-
className: `${
|
|
1150
|
+
className: `${Ge === "dark" ? "bg-transparent text-gray-100 hover:text-white" : "bg-white text-gray-700 hover:bg-gray-50"} inline-flex items-center ${we ? "px-2 md:px-3" : "px-3"} text-md focus:outline-none focus:ring-bg-theme-color h-[44px] rounded-md border-4 border-double border-gray-400 font-license text-base font-medium shadow-sm transition cursor-pointer leading-none`
|
|
1143
1151
|
},
|
|
1144
1152
|
/* @__PURE__ */ React.createElement(
|
|
1145
1153
|
ra,
|
|
1146
1154
|
{
|
|
1147
1155
|
weight: "fill",
|
|
1148
|
-
className:
|
|
1156
|
+
className: we ? "h-5 w-5 md:-ml-1 md:mr-2" : "mr-2 -ml-1 h-5 w-5",
|
|
1149
1157
|
"aria-hidden": "true"
|
|
1150
1158
|
}
|
|
1151
1159
|
),
|
|
1152
1160
|
/* @__PURE__ */ React.createElement(
|
|
1153
1161
|
"span",
|
|
1154
1162
|
{
|
|
1155
|
-
className:
|
|
1163
|
+
className: we ? "hidden md:inline mt-0.5" : "inline mt-0.5"
|
|
1156
1164
|
},
|
|
1157
|
-
|
|
1165
|
+
h || Ne
|
|
1158
1166
|
)
|
|
1159
1167
|
), /* @__PURE__ */ React.createElement(
|
|
1160
1168
|
"div",
|
|
1161
1169
|
{
|
|
1162
|
-
className: `${
|
|
1170
|
+
className: `${j ? "modal-container modal-container-open" : "modal-container modal-container-close"}`,
|
|
1163
1171
|
style: {
|
|
1164
1172
|
zIndex: 2147483647,
|
|
1165
|
-
...!
|
|
1173
|
+
...!j && !n ? { display: "none" } : {}
|
|
1166
1174
|
},
|
|
1167
|
-
onClick: (
|
|
1168
|
-
|
|
1175
|
+
onClick: (l) => {
|
|
1176
|
+
l.target === l.currentTarget && E();
|
|
1169
1177
|
}
|
|
1170
1178
|
},
|
|
1171
1179
|
/* @__PURE__ */ React.createElement(
|
|
@@ -1174,31 +1182,31 @@ function Fe(a) {
|
|
|
1174
1182
|
role: "dialog",
|
|
1175
1183
|
"aria-modal": "true",
|
|
1176
1184
|
"aria-label": "Number plate search dialog",
|
|
1177
|
-
className:
|
|
1185
|
+
className: j ? "modal modal-open" : "modal modal-close"
|
|
1178
1186
|
},
|
|
1179
1187
|
/* @__PURE__ */ React.createElement("div", { className: "absolute top-0 right-0 pt-4 pr-4" }, /* @__PURE__ */ React.createElement(
|
|
1180
1188
|
"button",
|
|
1181
1189
|
{
|
|
1182
1190
|
type: "button",
|
|
1183
1191
|
className: "focus:outline-none focus:ring-bg-theme-color rounded-md bg-white text-gray-400 hover:text-gray-500",
|
|
1184
|
-
onClick: () =>
|
|
1192
|
+
onClick: () => E()
|
|
1185
1193
|
},
|
|
1186
1194
|
/* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "Close"),
|
|
1187
1195
|
/* @__PURE__ */ React.createElement(na, { size: 16, weight: "bold", "aria-hidden": "true" })
|
|
1188
1196
|
)),
|
|
1189
|
-
i && !
|
|
1197
|
+
i && !O && /* @__PURE__ */ React.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React.createElement("div", { className: "mb-5 text-center" }, /* @__PURE__ */ React.createElement("div", { className: "inline-flex items-center text-center text-2xl font-extrabold tracking-tight text-black" }, /* @__PURE__ */ React.createElement("div", null, "Results for", " ", /* @__PURE__ */ React.createElement("span", { className: "text-theme-color" }, h, " (", m, ")"))), /* @__PURE__ */ React.createElement("div", { className: "mt-6" }, /* @__PURE__ */ React.createElement("div", { className: "modal-scroll-area" }, i.vehicles ? /* @__PURE__ */ React.createElement("div", { className: "grid gap-3 text-left" }, i.vehicles.map(function(l, v) {
|
|
1190
1198
|
return /* @__PURE__ */ React.createElement(
|
|
1191
1199
|
"div",
|
|
1192
1200
|
{
|
|
1193
1201
|
key: v,
|
|
1194
1202
|
className: "focus:outline-none relative grid cursor-pointer gap-4 rounded-lg border border-gray-300 bg-white px-4 py-4 shadow-sm hover:border-gray-400 sm:flex sm:justify-between"
|
|
1195
1203
|
},
|
|
1196
|
-
/* @__PURE__ */ React.createElement("div", { className: "pr-5 text-xs" }, /* @__PURE__ */ React.createElement("div", { className: "grid gap-2" }, /* @__PURE__ */ React.createElement("div", { className: "text-sm font-bold text-gray-900" },
|
|
1204
|
+
/* @__PURE__ */ React.createElement("div", { className: "pr-5 text-xs" }, /* @__PURE__ */ React.createElement("div", { className: "grid gap-2" }, /* @__PURE__ */ React.createElement("div", { className: "text-sm font-bold text-gray-900" }, l.description), /* @__PURE__ */ React.createElement("div", { className: "text-gray-600" }, Ee(l.vehicle)))),
|
|
1197
1205
|
/* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
1198
1206
|
"button",
|
|
1199
1207
|
{
|
|
1200
1208
|
className: "justify-center rounded-md border border-transparent bg-theme-color px-2 py-1.5 text-xs font-medium text-white shadow-sm",
|
|
1201
|
-
onClick: () =>
|
|
1209
|
+
onClick: () => ae(l)
|
|
1202
1210
|
},
|
|
1203
1211
|
"Select vehicle"
|
|
1204
1212
|
))
|
|
@@ -1220,34 +1228,34 @@ function Fe(a) {
|
|
|
1220
1228
|
}
|
|
1221
1229
|
)
|
|
1222
1230
|
)), /* @__PURE__ */ React.createElement("div", { className: "border-t border-gray-200 px-4 py-3" }, /* @__PURE__ */ React.createElement("div", { className: "grid gap-3" }, i.vehicle_breakdown && i.vehicle_breakdown.map(
|
|
1223
|
-
(
|
|
1231
|
+
(l, v) => /* @__PURE__ */ React.createElement(
|
|
1224
1232
|
"div",
|
|
1225
1233
|
{
|
|
1226
1234
|
key: v,
|
|
1227
1235
|
className: "flex items-center justify-between rounded-md border border-gray-200 p-3 text-sm"
|
|
1228
1236
|
},
|
|
1229
1237
|
/* @__PURE__ */ React.createElement("div", null, i.differing_attributes.map(
|
|
1230
|
-
(
|
|
1238
|
+
(x) => /* @__PURE__ */ React.createElement(
|
|
1231
1239
|
"div",
|
|
1232
1240
|
{
|
|
1233
|
-
key:
|
|
1241
|
+
key: x,
|
|
1234
1242
|
className: "text-xs text-gray-600"
|
|
1235
1243
|
},
|
|
1236
|
-
/* @__PURE__ */ React.createElement("span", { className: "font-medium capitalize" },
|
|
1244
|
+
/* @__PURE__ */ React.createElement("span", { className: "font-medium capitalize" }, x, ":"),
|
|
1237
1245
|
" ",
|
|
1238
|
-
|
|
1246
|
+
l.vehicle[x]
|
|
1239
1247
|
)
|
|
1240
1248
|
)),
|
|
1241
1249
|
/* @__PURE__ */ React.createElement(
|
|
1242
1250
|
"button",
|
|
1243
1251
|
{
|
|
1244
|
-
onClick: () =>
|
|
1252
|
+
onClick: () => ae(l),
|
|
1245
1253
|
className: "ml-4 rounded-md bg-theme-color px-3 py-1.5 text-xs font-medium text-white hover:bg-opacity-90"
|
|
1246
1254
|
},
|
|
1247
1255
|
"Select"
|
|
1248
1256
|
)
|
|
1249
1257
|
)
|
|
1250
|
-
)))))) : /* @__PURE__ */ React.createElement("div", { className: "my-5" }, /* @__PURE__ */ React.createElement(
|
|
1258
|
+
)))))) : /* @__PURE__ */ React.createElement("div", { className: "my-5" }, /* @__PURE__ */ React.createElement(ha, { error: i.error }))), i.vehicles && i.vehicles.length > 3 && /* @__PURE__ */ React.createElement("div", { className: "pb-4 text-center text-xs text-gray-500" }, "Scroll for more..."), L && /* @__PURE__ */ React.createElement(
|
|
1251
1259
|
"div",
|
|
1252
1260
|
{
|
|
1253
1261
|
className: "pl8srch-text mx-auto my-6 w-full text-sm text-gray-500",
|
|
@@ -1255,12 +1263,12 @@ function Fe(a) {
|
|
|
1255
1263
|
__html: jt.sanitize(L)
|
|
1256
1264
|
}
|
|
1257
1265
|
}
|
|
1258
|
-
),
|
|
1266
|
+
), k !== $t && /* @__PURE__ */ React.createElement(
|
|
1259
1267
|
"button",
|
|
1260
1268
|
{
|
|
1261
1269
|
type: "button",
|
|
1262
1270
|
className: "mb-5 hidden w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-base font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",
|
|
1263
|
-
onClick:
|
|
1271
|
+
onClick: S
|
|
1264
1272
|
},
|
|
1265
1273
|
"Try Again",
|
|
1266
1274
|
" ",
|
|
@@ -1276,14 +1284,14 @@ function Fe(a) {
|
|
|
1276
1284
|
), /* @__PURE__ */ React.createElement("div", { className: "align-center flex justify-between" }, /* @__PURE__ */ React.createElement(
|
|
1277
1285
|
"button",
|
|
1278
1286
|
{
|
|
1279
|
-
onClick:
|
|
1287
|
+
onClick: He,
|
|
1280
1288
|
className: "text-xs text-theme-color"
|
|
1281
1289
|
},
|
|
1282
1290
|
"Report incorrect search results"
|
|
1283
1291
|
), /* @__PURE__ */ React.createElement(
|
|
1284
1292
|
"button",
|
|
1285
1293
|
{
|
|
1286
|
-
onClick:
|
|
1294
|
+
onClick: _,
|
|
1287
1295
|
className: "text-xs text-theme-color"
|
|
1288
1296
|
},
|
|
1289
1297
|
/* @__PURE__ */ React.createElement(
|
|
@@ -1297,33 +1305,33 @@ function Fe(a) {
|
|
|
1297
1305
|
" ",
|
|
1298
1306
|
"Back to search"
|
|
1299
1307
|
))))),
|
|
1300
|
-
|
|
1308
|
+
O && /* @__PURE__ */ React.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React.createElement("div", { className: "mb-5 text-center" }, /* @__PURE__ */ React.createElement("div", { className: "grid items-center" }, /* @__PURE__ */ React.createElement("div", { className: "inline-flex items-center justify-center gap-1 text-center text-2xl font-extrabold tracking-tight text-black" }, /* @__PURE__ */ React.createElement("span", null, "Selected Vehicle"), h && /* @__PURE__ */ React.createElement("span", { className: "text-theme-color" }, "(", h, ")")), /* @__PURE__ */ React.createElement("div", { className: "text-medium mt-5 text-sm text-gray-500" }, i && i.factory_vehicle ? `${i.factory_vehicle.make} ${i.factory_vehicle.model} ${i.factory_vehicle.year}` : O.description), O.vehicle && /* @__PURE__ */ React.createElement("div", { className: "mt-2 text-xs text-gray-600" }, Ee(O.vehicle))), /* @__PURE__ */ React.createElement("div", { className: "mt-6 flex gap-4" }, /* @__PURE__ */ React.createElement(
|
|
1301
1309
|
"button",
|
|
1302
1310
|
{
|
|
1303
1311
|
className: "mb-5 flex w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-sm font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",
|
|
1304
|
-
onClick:
|
|
1312
|
+
onClick: _
|
|
1305
1313
|
},
|
|
1306
1314
|
"Clear Vehicle"
|
|
1307
|
-
),
|
|
1315
|
+
), R && /* @__PURE__ */ React.createElement(
|
|
1308
1316
|
"button",
|
|
1309
1317
|
{
|
|
1310
1318
|
className: "mb-5 flex w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-sm font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",
|
|
1311
|
-
onClick:
|
|
1319
|
+
onClick: ye
|
|
1312
1320
|
},
|
|
1313
|
-
|
|
1321
|
+
Ie
|
|
1314
1322
|
)))),
|
|
1315
|
-
!
|
|
1323
|
+
!O && !i && /* @__PURE__ */ React.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React.createElement("div", { className: "mb-5 text-center" }, /* @__PURE__ */ React.createElement("div", { className: "inline-flex items-center text-2xl font-extrabold tracking-tight text-black" }, /* @__PURE__ */ React.createElement("span", null, "Number Plate Search")), /* @__PURE__ */ React.createElement(
|
|
1316
1324
|
"div",
|
|
1317
1325
|
{
|
|
1318
1326
|
className: "[&>a]:text-theme-color hover:[&>a]:text-theme-color pl8srch-text text-balance mx-auto mt-3 mb-4 max-w-sm text-sm text-gray-500 whitespace-normal!",
|
|
1319
1327
|
dangerouslySetInnerHTML: {
|
|
1320
|
-
__html: jt.sanitize(
|
|
1328
|
+
__html: jt.sanitize(Ye)
|
|
1321
1329
|
}
|
|
1322
1330
|
}
|
|
1323
1331
|
)), /* @__PURE__ */ React.createElement(
|
|
1324
1332
|
"form",
|
|
1325
1333
|
{
|
|
1326
|
-
onSubmit:
|
|
1334
|
+
onSubmit: xe,
|
|
1327
1335
|
className: "flex flex-col items-center text-black"
|
|
1328
1336
|
},
|
|
1329
1337
|
/* @__PURE__ */ React.createElement(
|
|
@@ -1331,42 +1339,42 @@ function Fe(a) {
|
|
|
1331
1339
|
{
|
|
1332
1340
|
type: "text",
|
|
1333
1341
|
name: "plate",
|
|
1334
|
-
ref:
|
|
1335
|
-
className: `pl8srch-input h-[130px] w-full rounded-xl border-[6px] px-6 pt-5 pb-2 text-center font-license text-[60px] uppercase md:h-[150px] md:border-8 md:text-[75px] focus:outline-none focus:ring-bg-theme-color focus:border-theme-color transition-all duration-200 ${
|
|
1336
|
-
placeholder:
|
|
1337
|
-
value:
|
|
1338
|
-
onChange: (
|
|
1342
|
+
ref: T,
|
|
1343
|
+
className: `pl8srch-input h-[130px] w-full rounded-xl border-[6px] px-6 pt-5 pb-2 text-center font-license text-[60px] uppercase md:h-[150px] md:border-8 md:text-[75px] focus:outline-none focus:ring-bg-theme-color focus:border-theme-color transition-all duration-200 ${h ? "border-theme-color" : "border-stone-300"}`,
|
|
1344
|
+
placeholder: Ne,
|
|
1345
|
+
value: h,
|
|
1346
|
+
onChange: (l) => f(l.target.value.toUpperCase())
|
|
1339
1347
|
}
|
|
1340
1348
|
),
|
|
1341
|
-
/* @__PURE__ */ React.createElement("span", { className: "relative z-0 my-5 flex w-full rounded-md items-stretch shadow-sm" },
|
|
1342
|
-
let
|
|
1343
|
-
return
|
|
1349
|
+
/* @__PURE__ */ React.createElement("span", { className: "relative z-0 my-5 flex w-full rounded-md items-stretch shadow-sm" }, Bt.map((l, v) => {
|
|
1350
|
+
let x = "bg-white text-gray-700 hover:bg-gray-50 border-gray-300";
|
|
1351
|
+
return l === m && (x = "bg-theme-color text-white hover:bg-theme-color border-theme-color"), v === 0 ? /* @__PURE__ */ React.createElement(
|
|
1344
1352
|
"button",
|
|
1345
1353
|
{
|
|
1346
|
-
key:
|
|
1347
|
-
onClick: (
|
|
1354
|
+
key: l,
|
|
1355
|
+
onClick: (y) => w(l),
|
|
1348
1356
|
type: "button",
|
|
1349
|
-
className: `focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative inline-flex items-center cursor-pointer rounded-l-md border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${
|
|
1357
|
+
className: `focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative inline-flex items-center cursor-pointer rounded-l-md border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${x}`
|
|
1350
1358
|
},
|
|
1351
|
-
|
|
1352
|
-
) :
|
|
1359
|
+
l
|
|
1360
|
+
) : Bt.length === v + 1 ? /* @__PURE__ */ React.createElement(
|
|
1353
1361
|
"button",
|
|
1354
1362
|
{
|
|
1355
|
-
key:
|
|
1356
|
-
onClick: (
|
|
1363
|
+
key: l,
|
|
1364
|
+
onClick: (y) => w(l),
|
|
1357
1365
|
type: "button",
|
|
1358
|
-
className: `focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative -ml-px inline-flex items-center cursor-pointer rounded-r-md border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${
|
|
1366
|
+
className: `focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative -ml-px inline-flex items-center cursor-pointer rounded-r-md border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${x}`
|
|
1359
1367
|
},
|
|
1360
|
-
|
|
1368
|
+
l
|
|
1361
1369
|
) : /* @__PURE__ */ React.createElement(
|
|
1362
1370
|
"button",
|
|
1363
1371
|
{
|
|
1364
|
-
key:
|
|
1365
|
-
onClick: (
|
|
1372
|
+
key: l,
|
|
1373
|
+
onClick: (y) => w(l),
|
|
1366
1374
|
type: "button",
|
|
1367
|
-
className: `focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative -ml-px inline-flex items-center cursor-pointer border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${
|
|
1375
|
+
className: `focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative -ml-px inline-flex items-center cursor-pointer border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${x}`
|
|
1368
1376
|
},
|
|
1369
|
-
|
|
1377
|
+
l
|
|
1370
1378
|
);
|
|
1371
1379
|
})),
|
|
1372
1380
|
/* @__PURE__ */ React.createElement(
|
|
@@ -1376,7 +1384,7 @@ function Fe(a) {
|
|
|
1376
1384
|
className: "hover:bg-theme-color-800 flex w-full items-center justify-center rounded-md border border-transparent bg-theme-color px-4 py-2 text-base font-medium text-white shadow-sm"
|
|
1377
1385
|
},
|
|
1378
1386
|
"Find your vehicle",
|
|
1379
|
-
|
|
1387
|
+
b ? /* @__PURE__ */ React.createElement(
|
|
1380
1388
|
oa,
|
|
1381
1389
|
{
|
|
1382
1390
|
weight: "bold",
|
|
@@ -1400,44 +1408,61 @@ function Fe(a) {
|
|
|
1400
1408
|
)
|
|
1401
1409
|
));
|
|
1402
1410
|
}
|
|
1403
|
-
|
|
1404
|
-
apiKey:
|
|
1405
|
-
callbackUrl:
|
|
1406
|
-
productsUrl:
|
|
1407
|
-
themeColor:
|
|
1408
|
-
useGeolocation:
|
|
1409
|
-
buttonTheme:
|
|
1410
|
-
responsive:
|
|
1411
|
-
placeholder:
|
|
1412
|
-
intro:
|
|
1413
|
-
supportMessage:
|
|
1411
|
+
We.propTypes = {
|
|
1412
|
+
apiKey: I.string.isRequired,
|
|
1413
|
+
callbackUrl: I.string,
|
|
1414
|
+
productsUrl: I.string,
|
|
1415
|
+
themeColor: I.string,
|
|
1416
|
+
useGeolocation: I.bool,
|
|
1417
|
+
buttonTheme: I.oneOf(["light", "dark"]),
|
|
1418
|
+
responsive: I.bool,
|
|
1419
|
+
placeholder: I.string,
|
|
1420
|
+
intro: I.string,
|
|
1421
|
+
supportMessage: I.string,
|
|
1422
|
+
actionButtonLabel: I.string,
|
|
1423
|
+
isOpen: I.bool,
|
|
1424
|
+
onOpenChange: I.func,
|
|
1425
|
+
hideDefaultButton: I.bool,
|
|
1426
|
+
onModalClose: I.func,
|
|
1427
|
+
autoCloseOnSelect: I.bool
|
|
1414
1428
|
};
|
|
1415
|
-
const mt = '@import"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap";/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}plate-search,plate-search *,plate-search:before,plate-search:after,plate-search::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}:host,:host *,:host:before,:host:after,:host::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}plate-search,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components{.modal-container{inset:calc(var(--spacing)*0);top:calc(var(--spacing)*0);z-index:9999;background-color:#00000080;justify-content:center;align-items:flex-start;width:100vw;height:100vh;display:flex;position:fixed;overflow-y:auto}@supports (color:color-mix(in lab,red,red)){.modal-container{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.modal-container{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (min-width:48rem){.modal-container{align-items:center}}.modal-container-open{pointer-events:auto;opacity:1;--tw-duration:.2s;--tw-ease:var(--ease-out);transition-duration:.2s;transition-timing-function:var(--ease-out)}.modal-container-close{pointer-events:none;opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}.modal{width:100vw;height:100vh;transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);overscroll-behavior:auto;background-color:var(--color-white);padding-inline:calc(var(--spacing)*6);padding-top:calc(var(--spacing)*8);padding-bottom:calc(var(--spacing)*8);text-align:left;vertical-align:bottom;font-family:var(--font-sans);--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));display:inline-block;overflow:hidden}@media (min-width:40rem){.modal{margin-block:calc(var(--spacing)*8);width:100%;max-width:var(--container-lg);vertical-align:middle}}@media (min-width:48rem){.modal{margin:calc(var(--spacing)*3);height:auto;max-width:var(--container-lg);border-radius:var(--radius-xl);padding-inline:calc(var(--spacing)*12)}}.modal-close{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}@media (min-width:40rem){.modal-close{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}}.modal-open{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:1;--tw-duration:.3s;--tw-ease:var(--ease-out);transition-duration:.3s;transition-timing-function:var(--ease-out)}.modal-scroll-area{margin-top:calc(var(--spacing)*3);margin-bottom:calc(var(--spacing)*3);max-height:380px;overflow:auto}.pl8srch-text a{color:var(--partbot-theme);opacity:.8;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:.2s;text-decoration-line:underline;transition-duration:.2s}@media (hover:hover){.pl8srch-text a:hover{color:var(--partbot-theme);opacity:1}}}@layer utilities{.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.right-0{right:calc(var(--spacing)*0)}.isolate{isolation:isolate}.z-0{z-index:0}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing)*4)}.my-5{margin-block:calc(var(--spacing)*5)}.my-6{margin-block:calc(var(--spacing)*6)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.-ml-px{margin-left:-1px}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\\!h-5{height:calc(var(--spacing)*5)!important}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-\\[44px\\]{height:44px}.h-\\[130px\\]{height:130px}.h-full{height:100%}.min-h-screen{min-height:100vh}.\\!w-5{width:calc(var(--spacing)*5)!important}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-full{width:100%}.max-w-7xl{max-width:var(--container-7xl)}.max-w-prose{max-width:65ch}.max-w-sm{max-width:var(--container-sm)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-\\[6px\\]{border-style:var(--tw-border-style);border-width:6px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-double{--tw-border-style:double;border-style:double}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-stone-300{border-color:var(--color-stone-300)}.border-theme-color{border-color:var(--partbot-theme)}.border-transparent{border-color:#0000}.border-t-white\\/20{border-top-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-t-white\\/20{border-top-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.border-b-emerald-600{border-bottom-color:var(--color-emerald-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-stone-50{background-color:var(--color-stone-50)}.bg-theme-color{background-color:var(--partbot-theme)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-5{padding-top:calc(var(--spacing)*5)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-5{padding-right:calc(var(--spacing)*5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[60px\\]{font-size:60px}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-balance{text-wrap:balance}.whitespace-normal\\!{white-space:normal!important}.whitespace-nowrap{white-space:nowrap}.text-black{color:var(--color-black)}.text-emerald-100{color:var(--color-emerald-100)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-700{color:var(--color-emerald-700)}.text-gray-100{color:var(--color-gray-100)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-red-400{color:var(--color-red-400)}.text-red-800{color:var(--color-red-800)}.text-theme-color{color:var(--partbot-theme)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.group-open\\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media (hover:hover){.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-theme-color:hover{background-color:var(--partbot-theme)}.hover\\:text-gray-500:hover{color:var(--color-gray-500)}.hover\\:text-white:hover{color:var(--color-white)}}.focus\\:z-10:focus{z-index:10}.focus\\:border-bg-theme-color:focus,.focus\\:border-theme-color:focus{border-color:var(--partbot-theme)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-bg-theme-color:focus{--tw-ring-color:var(--partbot-theme)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sm\\:flex{display:flex}.sm\\:max-w-prose{max-width:65ch}.sm\\:justify-between{justify-content:space-between}.sm\\:overflow-hidden{overflow:hidden}.sm\\:px-3{padding-inline:calc(var(--spacing)*3)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (min-width:48rem){.md\\:mt-6{margin-top:calc(var(--spacing)*6)}.md\\:mt-12{margin-top:calc(var(--spacing)*12)}.md\\:mr-2{margin-right:calc(var(--spacing)*2)}.md\\:-ml-1{margin-left:calc(var(--spacing)*-1)}.md\\:inline{display:inline}.md\\:h-\\[150px\\]{height:150px}.md\\:max-w-2xl{max-width:var(--container-2xl)}.md\\:flex-row{flex-direction:row}.md\\:items-center{align-items:center}.md\\:justify-center{justify-content:center}.md\\:border-8{border-style:var(--tw-border-style);border-width:8px}.md\\:p-4{padding:calc(var(--spacing)*4)}.md\\:px-3{padding-inline:calc(var(--spacing)*3)}.md\\:py-12{padding-block:calc(var(--spacing)*12)}.md\\:text-center{text-align:center}.md\\:text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.md\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.md\\:text-\\[75px\\]{font-size:75px}}@media (min-width:64rem){.lg\\:px-8{padding-inline:calc(var(--spacing)*8)}.lg\\:py-12{padding-block:calc(var(--spacing)*12)}.lg\\:text-8xl{font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.lg\\:leading-20{--tw-leading:calc(var(--spacing)*20);line-height:calc(var(--spacing)*20)}}.\\[\\&_summary\\:\\:-webkit-details-marker\\]\\:hidden summary::-webkit-details-marker{display:none}.\\[\\&\\>a\\]\\:text-theme-color>a{color:var(--partbot-theme)}@media (hover:hover){.hover\\:\\[\\&\\>a\\]\\:text-theme-color:hover>a{color:var(--partbot-theme)}}.font-license{font-family:var(--font-license)}}@font-face{font-family:License Plate;src:url(https://res.cloudinary.com/proex/raw/upload/v1730709140/partbot/PartbotPlate.woff2)format("woff2");font-weight:400;font-style:normal}:host{overflow-wrap:break-word;white-space:normal;display:block;overflow:visible}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}';
|
|
1416
|
-
function nr({ domElement:
|
|
1417
|
-
const
|
|
1418
|
-
return
|
|
1419
|
-
|
|
1429
|
+
const ut = '@import"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap";/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}plate-search,plate-search *,plate-search:before,plate-search:after,plate-search::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}:host,:host *,:host:before,:host:after,:host::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}plate-search,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components{.modal-container{inset:calc(var(--spacing)*0);top:calc(var(--spacing)*0);z-index:9999;background-color:#00000080;justify-content:center;align-items:flex-start;width:100vw;height:100vh;display:flex;position:fixed;overflow-y:auto}@supports (color:color-mix(in lab,red,red)){.modal-container{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.modal-container{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (min-width:48rem){.modal-container{align-items:center}}.modal-container-open{pointer-events:auto;opacity:1;--tw-duration:.2s;--tw-ease:var(--ease-out);transition-duration:.2s;transition-timing-function:var(--ease-out)}.modal-container-close{pointer-events:none;opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}.modal{width:100vw;height:100vh;transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);overscroll-behavior:auto;background-color:var(--color-white);padding-inline:calc(var(--spacing)*6);padding-top:calc(var(--spacing)*8);padding-bottom:calc(var(--spacing)*8);text-align:left;vertical-align:bottom;font-family:var(--font-sans);--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));display:inline-block;overflow:hidden}@media (min-width:40rem){.modal{margin-block:calc(var(--spacing)*8);width:100%;max-width:var(--container-lg);vertical-align:middle}}@media (min-width:48rem){.modal{margin:calc(var(--spacing)*3);height:auto;max-width:var(--container-lg);border-radius:var(--radius-xl);padding-inline:calc(var(--spacing)*12)}}.modal-close{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}@media (min-width:40rem){.modal-close{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}}.modal-open{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:1;--tw-duration:.3s;--tw-ease:var(--ease-out);transition-duration:.3s;transition-timing-function:var(--ease-out)}.modal-scroll-area{margin-top:calc(var(--spacing)*3);margin-bottom:calc(var(--spacing)*3);max-height:380px;overflow:auto}.pl8srch-text a{color:var(--partbot-theme);opacity:.8;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:.2s;text-decoration-line:underline;transition-duration:.2s}@media (hover:hover){.pl8srch-text a:hover{color:var(--partbot-theme);opacity:1}}}@layer utilities{.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.right-0{right:calc(var(--spacing)*0)}.isolate{isolation:isolate}.z-0{z-index:0}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing)*4)}.my-5{margin-block:calc(var(--spacing)*5)}.my-6{margin-block:calc(var(--spacing)*6)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.-ml-px{margin-left:-1px}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\\!h-5{height:calc(var(--spacing)*5)!important}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-\\[44px\\]{height:44px}.h-\\[130px\\]{height:130px}.h-full{height:100%}.min-h-screen{min-height:100vh}.\\!w-5{width:calc(var(--spacing)*5)!important}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-full{width:100%}.max-w-7xl{max-width:var(--container-7xl)}.max-w-prose{max-width:65ch}.max-w-sm{max-width:var(--container-sm)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-\\[6px\\]{border-style:var(--tw-border-style);border-width:6px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-double{--tw-border-style:double;border-style:double}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-stone-300{border-color:var(--color-stone-300)}.border-theme-color{border-color:var(--partbot-theme)}.border-transparent{border-color:#0000}.border-t-white\\/20{border-top-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-t-white\\/20{border-top-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.border-b-emerald-600{border-bottom-color:var(--color-emerald-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-stone-50{background-color:var(--color-stone-50)}.bg-theme-color{background-color:var(--partbot-theme)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-5{padding-top:calc(var(--spacing)*5)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-5{padding-right:calc(var(--spacing)*5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[60px\\]{font-size:60px}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-balance{text-wrap:balance}.whitespace-normal\\!{white-space:normal!important}.whitespace-nowrap{white-space:nowrap}.text-black{color:var(--color-black)}.text-emerald-100{color:var(--color-emerald-100)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-700{color:var(--color-emerald-700)}.text-gray-100{color:var(--color-gray-100)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-red-400{color:var(--color-red-400)}.text-red-800{color:var(--color-red-800)}.text-theme-color{color:var(--partbot-theme)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.group-open\\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media (hover:hover){.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-theme-color:hover{background-color:var(--partbot-theme)}.hover\\:text-gray-500:hover{color:var(--color-gray-500)}.hover\\:text-white:hover{color:var(--color-white)}}.focus\\:z-10:focus{z-index:10}.focus\\:border-bg-theme-color:focus,.focus\\:border-theme-color:focus{border-color:var(--partbot-theme)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-bg-theme-color:focus{--tw-ring-color:var(--partbot-theme)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sm\\:flex{display:flex}.sm\\:max-w-prose{max-width:65ch}.sm\\:justify-between{justify-content:space-between}.sm\\:overflow-hidden{overflow:hidden}.sm\\:px-3{padding-inline:calc(var(--spacing)*3)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (min-width:48rem){.md\\:mt-6{margin-top:calc(var(--spacing)*6)}.md\\:mt-12{margin-top:calc(var(--spacing)*12)}.md\\:mr-2{margin-right:calc(var(--spacing)*2)}.md\\:-ml-1{margin-left:calc(var(--spacing)*-1)}.md\\:inline{display:inline}.md\\:h-\\[150px\\]{height:150px}.md\\:max-w-2xl{max-width:var(--container-2xl)}.md\\:flex-row{flex-direction:row}.md\\:items-center{align-items:center}.md\\:justify-center{justify-content:center}.md\\:border-8{border-style:var(--tw-border-style);border-width:8px}.md\\:p-4{padding:calc(var(--spacing)*4)}.md\\:px-3{padding-inline:calc(var(--spacing)*3)}.md\\:py-12{padding-block:calc(var(--spacing)*12)}.md\\:text-center{text-align:center}.md\\:text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.md\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.md\\:text-\\[75px\\]{font-size:75px}}@media (min-width:64rem){.lg\\:px-8{padding-inline:calc(var(--spacing)*8)}.lg\\:py-12{padding-block:calc(var(--spacing)*12)}.lg\\:text-8xl{font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.lg\\:leading-20{--tw-leading:calc(var(--spacing)*20);line-height:calc(var(--spacing)*20)}}.\\[\\&_summary\\:\\:-webkit-details-marker\\]\\:hidden summary::-webkit-details-marker{display:none}.\\[\\&\\>a\\]\\:text-theme-color>a{color:var(--partbot-theme)}@media (hover:hover){.hover\\:\\[\\&\\>a\\]\\:text-theme-color:hover>a{color:var(--partbot-theme)}}.font-license{font-family:var(--font-license)}}@font-face{font-family:License Plate;src:url(https://res.cloudinary.com/proex/raw/upload/v1730709140/partbot/PartbotPlate.woff2)format("woff2");font-weight:400;font-style:normal}:host{overflow-wrap:break-word;white-space:normal;display:block;overflow:visible}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}';
|
|
1430
|
+
function nr({ domElement: t, webComponentInstance: r }) {
|
|
1431
|
+
const s = t.getAttribute("data-api-key"), n = t.getAttribute("data-callback-url"), u = t.getAttribute("data-products-url"), h = t.getAttribute("data-theme-color"), f = t.getAttribute("data-use-geolocation") === "true", m = t.getAttribute("data-button"), w = t.getAttribute("data-responsive") ? t.getAttribute("data-responsive") === "true" : !0, i = t.getAttribute("data-placeholder"), p = t.getAttribute("data-intro"), b = t.getAttribute("data-support-message"), F = t.getAttribute("data-action-button-label"), T = t.getAttribute("data-hide-default-button") === "true", k = t.getAttribute("data-auto-close-on-select") === "true", [N, O] = J(!1);
|
|
1432
|
+
return W(() => {
|
|
1433
|
+
r && (r._modalControls = {
|
|
1434
|
+
open: () => O(!0),
|
|
1435
|
+
close: () => O(!1),
|
|
1436
|
+
toggle: () => O((Y) => !Y)
|
|
1437
|
+
});
|
|
1438
|
+
}, [r]), /* @__PURE__ */ React.createElement("div", { className: "App" }, /* @__PURE__ */ React.createElement(
|
|
1439
|
+
We,
|
|
1420
1440
|
{
|
|
1421
1441
|
className: "partbot",
|
|
1422
|
-
apiKey:
|
|
1423
|
-
callbackUrl:
|
|
1424
|
-
productsUrl:
|
|
1425
|
-
themeColor:
|
|
1426
|
-
useGeolocation:
|
|
1427
|
-
buttonTheme:
|
|
1428
|
-
responsive:
|
|
1429
|
-
placeholder:
|
|
1430
|
-
intro:
|
|
1431
|
-
supportMessage:
|
|
1442
|
+
apiKey: s,
|
|
1443
|
+
callbackUrl: n,
|
|
1444
|
+
productsUrl: u,
|
|
1445
|
+
themeColor: h,
|
|
1446
|
+
useGeolocation: f,
|
|
1447
|
+
buttonTheme: m,
|
|
1448
|
+
responsive: w,
|
|
1449
|
+
placeholder: i,
|
|
1450
|
+
intro: p,
|
|
1451
|
+
supportMessage: b,
|
|
1452
|
+
actionButtonLabel: F,
|
|
1453
|
+
hideDefaultButton: T,
|
|
1454
|
+
autoCloseOnSelect: k,
|
|
1455
|
+
isOpen: N,
|
|
1456
|
+
onOpenChange: O
|
|
1432
1457
|
}
|
|
1433
1458
|
));
|
|
1434
1459
|
}
|
|
1435
|
-
class
|
|
1460
|
+
class ge extends HTMLElement {
|
|
1436
1461
|
constructor() {
|
|
1437
|
-
super(), this.apiKey = this.dataset.apiKey, this.callbackUrl = this.dataset.callbackUrl, this.productsUrl = this.dataset.productsUrl, this.themeColor = this.dataset.themeColor, this.useGeolocation = this.dataset.useGeolocation, this.debug = this.dataset.debug === "true", this.assetUrl = this.dataset.assetUrl, this.buttonTheme = this.dataset.button, this.responsive = this.dataset.responsive ? this.dataset.responsive === "true" : !0, this.placeholder = this.dataset.placeholder, this.intro = this.dataset.intro, this.supportMessage = this.dataset.supportMessage;
|
|
1462
|
+
super(), this.apiKey = this.dataset.apiKey, this.callbackUrl = this.dataset.callbackUrl, this.productsUrl = this.dataset.productsUrl, this.themeColor = this.dataset.themeColor, this.useGeolocation = this.dataset.useGeolocation, this.debug = this.dataset.debug === "true", this.assetUrl = this.dataset.assetUrl, this.buttonTheme = this.dataset.button, this.responsive = this.dataset.responsive ? this.dataset.responsive === "true" : !0, this.placeholder = this.dataset.placeholder, this.intro = this.dataset.intro, this.supportMessage = this.dataset.supportMessage, this.actionButtonLabel = this.dataset.actionButtonLabel, this.hideDefaultButton = this.dataset.hideDefaultButton === "true", this.autoCloseOnSelect = this.dataset.autoCloseOnSelect === "true";
|
|
1438
1463
|
}
|
|
1439
1464
|
connectedCallback() {
|
|
1440
|
-
var
|
|
1465
|
+
var f;
|
|
1441
1466
|
this.style.position || (this.style.position = "relative"), this.style.zIndex = "2147483647", this.style.visibility = "hidden";
|
|
1442
1467
|
let r;
|
|
1443
1468
|
if (this.assetUrl && (r = new URL(
|
|
@@ -1446,11 +1471,11 @@ class me extends HTMLElement {
|
|
|
1446
1471
|
)), !r) {
|
|
1447
1472
|
let m = "latest";
|
|
1448
1473
|
try {
|
|
1449
|
-
const i = (((
|
|
1474
|
+
const i = (((f = document.currentScript) == null ? void 0 : f.src) || "").match(/plate-search@([^/]+)/);
|
|
1450
1475
|
i && i[1] && (m = i[1]);
|
|
1451
1476
|
} catch {
|
|
1452
1477
|
}
|
|
1453
|
-
m === "latest" &&
|
|
1478
|
+
m === "latest" && pt.version && (m = pt.version), r = new URL(
|
|
1454
1479
|
`https://unpkg.com/@cartbot/plate-search@${m}/build/dist/css/plate-search.css`
|
|
1455
1480
|
);
|
|
1456
1481
|
}
|
|
@@ -1464,55 +1489,58 @@ class me extends HTMLElement {
|
|
|
1464
1489
|
["data-responsive", this.responsive],
|
|
1465
1490
|
["data-placeholder", this.placeholder],
|
|
1466
1491
|
["data-intro", this.intro],
|
|
1467
|
-
["data-support-message", this.supportMessage]
|
|
1468
|
-
|
|
1492
|
+
["data-support-message", this.supportMessage],
|
|
1493
|
+
["data-action-button-label", this.actionButtonLabel],
|
|
1494
|
+
["data-hide-default-button", this.hideDefaultButton],
|
|
1495
|
+
["data-auto-close-on-select", this.autoCloseOnSelect]
|
|
1496
|
+
].filter(([m, w]) => w != null).map(([m, w]) => `${m}="${w}"`).join(" "), u = (m, w) => {
|
|
1469
1497
|
if (!/@import/i.test(m) && "adoptedStyleSheets" in Document.prototype)
|
|
1470
1498
|
try {
|
|
1471
|
-
const
|
|
1472
|
-
return
|
|
1473
|
-
} catch (
|
|
1474
|
-
console.warn("Partbot: constructable sheet failed, falling back",
|
|
1499
|
+
const b = new CSSStyleSheet();
|
|
1500
|
+
return b.replaceSync(m), console.info(`Partbot: using constructable stylesheet (${w})`), b;
|
|
1501
|
+
} catch (b) {
|
|
1502
|
+
console.warn("Partbot: constructable sheet failed, falling back", b);
|
|
1475
1503
|
}
|
|
1476
|
-
const
|
|
1477
|
-
return
|
|
1478
|
-
`Partbot: using <style> element fallback (${
|
|
1479
|
-
|
|
1480
|
-
),
|
|
1504
|
+
const p = document.createElement("style");
|
|
1505
|
+
return p.textContent = m, this.debug && console.info(
|
|
1506
|
+
`Partbot: using <style> element fallback (${w})`,
|
|
1507
|
+
p.textContent
|
|
1508
|
+
), p;
|
|
1481
1509
|
};
|
|
1482
|
-
|
|
1510
|
+
ge.__stylePromise || (r ? ge.__stylePromise = fetch(r).then((m) => {
|
|
1483
1511
|
if (!m.ok) throw new Error(`HTTP ${m.status}`);
|
|
1484
1512
|
return m.text();
|
|
1485
|
-
}).then((m) =>
|
|
1513
|
+
}).then((m) => u(m, r.href)).catch((m) => (console.warn(
|
|
1486
1514
|
"Partbot: external stylesheet failed, falling back to inline",
|
|
1487
1515
|
m
|
|
1488
|
-
),
|
|
1489
|
-
|
|
1516
|
+
), u(ut, "inline-fallback"))) : ge.__stylePromise = Promise.resolve(
|
|
1517
|
+
u(ut, "inline")
|
|
1490
1518
|
));
|
|
1491
|
-
const
|
|
1492
|
-
if (
|
|
1493
|
-
<div class="partbot-plate-search isolate" ${n}></div>`, this.attachShadow({ mode: "open" }),
|
|
1494
|
-
var
|
|
1519
|
+
const h = document.createElement("template");
|
|
1520
|
+
if (h.innerHTML = `
|
|
1521
|
+
<div class="partbot-plate-search isolate" ${n}></div>`, this.attachShadow({ mode: "open" }), ge.__stylePromise.then((m) => {
|
|
1522
|
+
var w, i;
|
|
1495
1523
|
if (m) {
|
|
1496
1524
|
if (m instanceof CSSStyleSheet ? this.shadowRoot.adoptedStyleSheets = [m] : m instanceof HTMLStyleElement && this.shadowRoot.prepend(m.cloneNode(!0)), this.debug)
|
|
1497
1525
|
try {
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1526
|
+
const p = (w = this.shadowRoot.adoptedStyleSheets) == null ? void 0 : w[0];
|
|
1527
|
+
p && console.info(
|
|
1500
1528
|
"Partbot debug: first rule in adopted sheet →",
|
|
1501
|
-
(i =
|
|
1529
|
+
(i = p.cssRules[0]) == null ? void 0 : i.cssText
|
|
1502
1530
|
);
|
|
1503
|
-
const
|
|
1531
|
+
const b = getComputedStyle(this).getPropertyValue("--tw-border-style");
|
|
1504
1532
|
console.info(
|
|
1505
1533
|
"Partbot debug: --tw-border-style on :host →",
|
|
1506
|
-
|
|
1534
|
+
b
|
|
1507
1535
|
);
|
|
1508
|
-
} catch (
|
|
1509
|
-
console.warn("Partbot debug: failed to inspect stylesheet",
|
|
1536
|
+
} catch (p) {
|
|
1537
|
+
console.warn("Partbot debug: failed to inspect stylesheet", p);
|
|
1510
1538
|
}
|
|
1511
1539
|
requestAnimationFrame(() => {
|
|
1512
1540
|
this.style.visibility = "visible";
|
|
1513
1541
|
});
|
|
1514
1542
|
}
|
|
1515
|
-
}), this.shadowRoot.appendChild(
|
|
1543
|
+
}), this.shadowRoot.appendChild(h.content.cloneNode(!0)), !document.head.querySelector("style[data-partbot-license]")) {
|
|
1516
1544
|
const m = document.createElement("style");
|
|
1517
1545
|
m.setAttribute("data-partbot-license", ""), m.appendChild(
|
|
1518
1546
|
document.createTextNode(`
|
|
@@ -1526,53 +1554,69 @@ class me extends HTMLElement {
|
|
|
1526
1554
|
), document.head.appendChild(m);
|
|
1527
1555
|
}
|
|
1528
1556
|
}
|
|
1557
|
+
// Public API methods for controlling the modal
|
|
1558
|
+
open() {
|
|
1559
|
+
this._modalControls && this._modalControls.open();
|
|
1560
|
+
}
|
|
1561
|
+
close() {
|
|
1562
|
+
this._modalControls && this._modalControls.close();
|
|
1563
|
+
}
|
|
1564
|
+
toggle() {
|
|
1565
|
+
this._modalControls && this._modalControls.toggle();
|
|
1566
|
+
}
|
|
1529
1567
|
}
|
|
1530
|
-
customElements.define("plate-search",
|
|
1531
|
-
function cr(
|
|
1532
|
-
const r =
|
|
1568
|
+
customElements.define("plate-search", ge);
|
|
1569
|
+
function cr(t) {
|
|
1570
|
+
const r = Me(null), s = Me(null), n = Me(null), u = Me(!1);
|
|
1533
1571
|
return W(() => {
|
|
1534
|
-
if (
|
|
1535
|
-
|
|
1536
|
-
const
|
|
1537
|
-
|
|
1538
|
-
const
|
|
1539
|
-
if (
|
|
1540
|
-
const
|
|
1541
|
-
|
|
1572
|
+
if (u.current || !r.current) return;
|
|
1573
|
+
u.current = !0;
|
|
1574
|
+
const h = r.current.attachShadow({ mode: "open" });
|
|
1575
|
+
s.current = h;
|
|
1576
|
+
const f = document.createElement("div");
|
|
1577
|
+
if (h.appendChild(f), !document.head.querySelector('link[href*="fonts.googleapis.com"]')) {
|
|
1578
|
+
const p = document.createElement("link");
|
|
1579
|
+
p.rel = "stylesheet", p.href = "https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap", document.head.appendChild(p);
|
|
1542
1580
|
}
|
|
1543
1581
|
if (!document.head.querySelector("style[data-partbot-license]")) {
|
|
1544
|
-
const
|
|
1545
|
-
|
|
1582
|
+
const p = document.createElement("style");
|
|
1583
|
+
p.setAttribute("data-partbot-license", ""), p.textContent = `
|
|
1546
1584
|
@font-face {
|
|
1547
1585
|
font-family: "License Plate";
|
|
1548
1586
|
src: url(https://res.cloudinary.com/proex/raw/upload/v1730709140/partbot/PartbotPlate.woff2)
|
|
1549
1587
|
format("woff2");
|
|
1550
1588
|
font-weight: normal;
|
|
1551
1589
|
font-style: normal;
|
|
1552
|
-
}`, document.head.appendChild(
|
|
1590
|
+
}`, document.head.appendChild(p);
|
|
1553
1591
|
}
|
|
1554
|
-
const m =
|
|
1555
|
-
|
|
1556
|
-
const i = qt(
|
|
1557
|
-
return n.current = i, i.render(
|
|
1592
|
+
const m = ut.replace(/@import\s+["']https:\/\/fonts\.googleapis\.com[^;]+;/g, "").replace(/@import\s+["']tailwindcss["'];/g, ""), w = document.createElement("style");
|
|
1593
|
+
w.textContent = m, h.appendChild(w);
|
|
1594
|
+
const i = qt(f);
|
|
1595
|
+
return n.current = i, i.render(Ot(We, t)), () => {
|
|
1558
1596
|
n.current && (setTimeout(() => {
|
|
1559
|
-
var
|
|
1560
|
-
(
|
|
1597
|
+
var p;
|
|
1598
|
+
(p = n.current) == null || p.unmount();
|
|
1561
1599
|
}, 0), n.current = null);
|
|
1562
1600
|
};
|
|
1563
1601
|
}, []), W(() => {
|
|
1564
|
-
n.current &&
|
|
1602
|
+
n.current && u.current && n.current.render(Ot(We, t));
|
|
1565
1603
|
}, [
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1604
|
+
t.apiKey,
|
|
1605
|
+
t.callbackUrl,
|
|
1606
|
+
t.productsUrl,
|
|
1607
|
+
t.themeColor,
|
|
1608
|
+
t.useGeolocation,
|
|
1609
|
+
t.buttonTheme,
|
|
1610
|
+
t.responsive,
|
|
1611
|
+
t.placeholder,
|
|
1612
|
+
t.intro,
|
|
1613
|
+
t.supportMessage,
|
|
1614
|
+
t.actionButtonLabel,
|
|
1615
|
+
t.isOpen,
|
|
1616
|
+
t.onOpenChange,
|
|
1617
|
+
t.hideDefaultButton,
|
|
1618
|
+
t.onModalClose,
|
|
1619
|
+
t.autoCloseOnSelect
|
|
1576
1620
|
]), /* @__PURE__ */ React.createElement(
|
|
1577
1621
|
"div",
|
|
1578
1622
|
{
|
|
@@ -1587,37 +1631,42 @@ function cr(a) {
|
|
|
1587
1631
|
}
|
|
1588
1632
|
const sr = Ea;
|
|
1589
1633
|
typeof window < "u" && (window.React = window.React || Yt);
|
|
1590
|
-
const
|
|
1591
|
-
var
|
|
1592
|
-
if (
|
|
1593
|
-
const
|
|
1634
|
+
const ne = document.querySelector("plate-search");
|
|
1635
|
+
var Gt;
|
|
1636
|
+
if (ne) {
|
|
1637
|
+
const t = ((Gt = ne.shadowRoot) == null ? void 0 : Gt.querySelector(
|
|
1594
1638
|
".partbot-plate-search"
|
|
1595
|
-
)) ||
|
|
1596
|
-
if (!
|
|
1639
|
+
)) || ne.querySelector(".partbot-plate-search");
|
|
1640
|
+
if (!t)
|
|
1597
1641
|
console.error("Partbot: failed to locate .partbot-plate-search container");
|
|
1598
1642
|
else {
|
|
1599
1643
|
let r;
|
|
1600
|
-
const
|
|
1601
|
-
r || (r = qt(
|
|
1644
|
+
const s = () => {
|
|
1645
|
+
r || (r = qt(t)), r.render(
|
|
1646
|
+
Yt.createElement(nr, {
|
|
1647
|
+
domElement: t,
|
|
1648
|
+
webComponentInstance: ne
|
|
1649
|
+
})
|
|
1650
|
+
);
|
|
1602
1651
|
}, n = [
|
|
1603
|
-
...
|
|
1652
|
+
...ne.shadowRoot ? ne.shadowRoot.querySelectorAll("link") : ne.querySelectorAll("link")
|
|
1604
1653
|
];
|
|
1605
1654
|
if (n.length === 0)
|
|
1606
|
-
|
|
1655
|
+
s();
|
|
1607
1656
|
else {
|
|
1608
|
-
let
|
|
1609
|
-
const
|
|
1610
|
-
++
|
|
1657
|
+
let u = 0;
|
|
1658
|
+
const h = () => {
|
|
1659
|
+
++u >= n.length && s();
|
|
1611
1660
|
};
|
|
1612
|
-
n.forEach((
|
|
1613
|
-
|
|
1661
|
+
n.forEach((f) => {
|
|
1662
|
+
f.sheet || f.complete ? h() : (f.addEventListener("load", h, { once: !0 }), f.addEventListener("error", h, { once: !0 }));
|
|
1614
1663
|
});
|
|
1615
1664
|
}
|
|
1616
1665
|
}
|
|
1617
1666
|
}
|
|
1618
1667
|
export {
|
|
1619
1668
|
cr as PlateSearch,
|
|
1620
|
-
|
|
1669
|
+
We as PlateSearchRaw,
|
|
1621
1670
|
cr as default,
|
|
1622
1671
|
sr as plateSearchCssUrl
|
|
1623
1672
|
};
|