@smileid/web-components 11.4.5 → 11.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/{DocumentCaptureScreens-D2G0NOQr.js → DocumentCaptureScreens-ucJDu5nH.js} +555 -2470
- package/dist/esm/DocumentCaptureScreens-ucJDu5nH.js.map +1 -0
- package/dist/esm/{EndUserConsent-uHfA3txP.js → EndUserConsent-CsiwoThZ.js} +3 -3
- package/dist/esm/{EndUserConsent-uHfA3txP.js.map → EndUserConsent-CsiwoThZ.js.map} +1 -1
- package/dist/esm/{Navigation-Bb7MPLE8.js → Navigation-Xg565kcu.js} +28 -22
- package/dist/esm/Navigation-Xg565kcu.js.map +1 -0
- package/dist/esm/SelfieCaptureScreens-D3KuMzZA.js +11471 -0
- package/dist/esm/SelfieCaptureScreens-D3KuMzZA.js.map +1 -0
- package/dist/esm/{TotpConsent-Depzg0ti.js → TotpConsent-CRtmtudl.js} +2 -2
- package/dist/esm/{TotpConsent-Depzg0ti.js.map → TotpConsent-CRtmtudl.js.map} +1 -1
- package/dist/esm/combobox.js +1 -1
- package/dist/esm/document.js +1 -1
- package/dist/esm/end-user-consent.js +1 -1
- package/dist/esm/index-CUwa6MPI.js +1363 -0
- package/dist/esm/{index-C4RTMbgw.js.map → index-CUwa6MPI.js.map} +1 -1
- package/dist/esm/localisation.js +1 -1
- package/dist/esm/main.js +6 -6
- package/dist/esm/navigation.js +1 -1
- package/dist/esm/package-BmVbDNny.js +2535 -0
- package/dist/esm/package-BmVbDNny.js.map +1 -0
- package/dist/esm/selfie.js +1 -1
- package/dist/esm/smart-camera-web.js +67 -37
- package/dist/esm/smart-camera-web.js.map +1 -1
- package/dist/esm/totp-consent.js +1 -1
- package/dist/smart-camera-web.js +877 -122
- package/dist/smart-camera-web.js.map +1 -1
- package/dist/types/main.d.ts +11 -0
- package/lib/components/navigation/src/Navigation.js +27 -8
- package/lib/components/selfie/src/SelfieCaptureScreens.js +56 -8
- package/lib/components/selfie/src/enhanced-smartselfie-capture/EnhancedSmartSelfieCapture.tsx +684 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/EnhancedSmartSelfieConsent.tsx +71 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/EnhancedSmartSelfieSubmission.tsx +181 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/OvalProgress.tsx +87 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/Icon.svg +8 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/accessories.svg +77 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/active_liveness_animation.lottie +0 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/device.svg +12 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/device_orientation.lottie +0 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/good.svg +52 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/id-card.svg +9 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/illustrations.tsx +852 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/instructions-img.svg +3 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/multiple-faces.svg +69 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/person.svg +6 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/phone.svg +8 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/poor-lighting.svg +53 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/assets/too_dark_animation.lottie +0 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/components/ActiveLivenessOverlay.tsx +226 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/components/AlertDisplay.tsx +38 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/components/BackNavigation.tsx +45 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/components/CameraPreview.tsx +96 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/components/CaptureControls.tsx +97 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/components/CaptureGuidelines.tsx +374 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/components/ConsentView.tsx +460 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/components/SubmissionView.tsx +426 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/components/index.ts +3 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/constants.ts +23 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/hooks/index.ts +2 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/hooks/useCamera.ts +238 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/hooks/useFaceCapture.ts +1075 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/index.ts +1 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/utils/alertMessages.ts +20 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/utils/canvas.ts +108 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/utils/faceDetection.ts +545 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/utils/imageCapture.ts +66 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/utils/imageQuality.ts +151 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/utils/index.ts +5 -0
- package/lib/components/selfie/src/enhanced-smartselfie-capture/utils/mediapipeManager.ts +215 -0
- package/lib/components/selfie/src/selfie-capture-wrapper/SelfieCaptureWrapper.tsx +24 -1
- package/lib/components/selfie/src/smartselfie-capture/SmartSelfieCapture.tsx +2 -2
- package/lib/components/selfie/src/smartselfie-capture/hooks/useFaceCapture.ts +15 -7
- package/lib/components/selfie/src/smartselfie-capture/utils/canvas.ts +4 -6
- package/lib/components/signature-pad/package.json +1 -1
- package/lib/components/smart-camera-web/src/SmartCameraWeb.js +64 -7
- package/lib/domain/localisation/index.js +2 -2
- package/package.json +2 -2
- package/dist/esm/DocumentCaptureScreens-D2G0NOQr.js.map +0 -1
- package/dist/esm/Navigation-Bb7MPLE8.js.map +0 -1
- package/dist/esm/SelfieCaptureScreens-Dr7VzON7.js +0 -7651
- package/dist/esm/SelfieCaptureScreens-Dr7VzON7.js.map +0 -1
- package/dist/esm/index-C4RTMbgw.js +0 -1360
- package/dist/esm/package-D6YrpMcO.js +0 -565
- package/dist/esm/package-D6YrpMcO.js.map +0 -1
|
@@ -1,565 +0,0 @@
|
|
|
1
|
-
import { t as P } from "./index-C4RTMbgw.js";
|
|
2
|
-
const _t = {
|
|
3
|
-
/** ID_CARD_BACK_IMAGE_BASE64 Base64 encoded back of ID card image (.jpg or .png) */
|
|
4
|
-
ID_CARD_BACK_IMAGE_BASE64: 7,
|
|
5
|
-
/** ID_CARD_BACK_IMAGE_FILE Back of ID card image in .png or .jpg file format */
|
|
6
|
-
ID_CARD_BACK_IMAGE_FILE: 5,
|
|
7
|
-
/** ID_CARD_IMAGE_BASE64 Base64 encoded ID card image (.png or .jpg) */
|
|
8
|
-
ID_CARD_IMAGE_BASE64: 3,
|
|
9
|
-
/** ID_CARD_IMAGE_FILE ID card image in .png or .jpg file format */
|
|
10
|
-
ID_CARD_IMAGE_FILE: 1,
|
|
11
|
-
/** LIVENESS_IMAGE_BASE64 Base64 encoded liveness image (.jpg or .png) */
|
|
12
|
-
LIVENESS_IMAGE_BASE64: 6,
|
|
13
|
-
/** LIVENESS_IMAGE_FILE Liveness image in .png or .jpg file format */
|
|
14
|
-
LIVENESS_IMAGE_FILE: 4,
|
|
15
|
-
/** SELFIE_IMAGE_BASE64 Base64 encoded selfie image (.png or .jpg) */
|
|
16
|
-
SELFIE_IMAGE_BASE64: 2,
|
|
17
|
-
/** SELFIE_IMAGE_FILE Selfie image in .png or .jpg file format */
|
|
18
|
-
SELFIE_IMAGE_FILE: 0
|
|
19
|
-
}, nt = 0.92;
|
|
20
|
-
class C {
|
|
21
|
-
static stream = null;
|
|
22
|
-
static async getMedia(t) {
|
|
23
|
-
return C.stream = await navigator.mediaDevices.getUserMedia(t), C.stream;
|
|
24
|
-
}
|
|
25
|
-
static environmentOptions = {
|
|
26
|
-
facingMode: "environment",
|
|
27
|
-
height: {
|
|
28
|
-
ideal: 1080,
|
|
29
|
-
max: 1440,
|
|
30
|
-
min: 720
|
|
31
|
-
},
|
|
32
|
-
width: {
|
|
33
|
-
ideal: 1920,
|
|
34
|
-
max: 2560,
|
|
35
|
-
min: 1280
|
|
36
|
-
},
|
|
37
|
-
// NOTE: Special case for multi-camera Samsung devices (learnt from Acuant)
|
|
38
|
-
// "We found out that some triple camera Samsung devices (S10, S20, Note 20, etc) capture images blurry at edges.
|
|
39
|
-
// Zooming to 2X, matching the telephoto lens, doesn't solve it completely but mitigates it."
|
|
40
|
-
zoom: C.isSamsungMultiCameraDevice() ? 2 : 1
|
|
41
|
-
};
|
|
42
|
-
static stopMedia() {
|
|
43
|
-
C.stream && (C.stream.getTracks().forEach((t) => t.stop()), C.stream = null);
|
|
44
|
-
}
|
|
45
|
-
static async supportsAgentMode() {
|
|
46
|
-
try {
|
|
47
|
-
const _ = (await navigator.mediaDevices.enumerateDevices()).filter(
|
|
48
|
-
(o) => o.kind === "videoinput"
|
|
49
|
-
);
|
|
50
|
-
let n = !1;
|
|
51
|
-
return _.forEach((o) => o.label.toLowerCase().includes("back") || o.label.toLowerCase().includes("rear") ? (n = !0, !0) : !1), n;
|
|
52
|
-
} catch (t) {
|
|
53
|
-
return console.warn("Error accessing media devices: ", t), !1;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
static isSamsungMultiCameraDevice() {
|
|
57
|
-
const t = navigator.userAgent.match(/SM-[N|G]\d{3}/);
|
|
58
|
-
if (!t)
|
|
59
|
-
return !1;
|
|
60
|
-
const _ = parseInt(t[0].match(/\d{3}/)[0], 10);
|
|
61
|
-
return !Number.isNaN(_) && _ >= 970;
|
|
62
|
-
}
|
|
63
|
-
static handleCameraError(t) {
|
|
64
|
-
switch (t.name) {
|
|
65
|
-
case "NotAllowedError":
|
|
66
|
-
case "SecurityError":
|
|
67
|
-
return P("camera.error.notAllowed");
|
|
68
|
-
case "AbortError":
|
|
69
|
-
return P("camera.error.abort");
|
|
70
|
-
case "NotReadableError":
|
|
71
|
-
return P("camera.error.notReadable");
|
|
72
|
-
case "NotFoundError":
|
|
73
|
-
return P("camera.error.notFound");
|
|
74
|
-
case "TypeError":
|
|
75
|
-
return P("camera.error.insecure");
|
|
76
|
-
default:
|
|
77
|
-
return t.message;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
var F, h, be, Fe, N, le, ke, Ee, we, ee, Y, Q, T = {}, Ae = [], Ue = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, U = Array.isArray;
|
|
82
|
-
function w(e, t) {
|
|
83
|
-
for (var _ in t) e[_] = t[_];
|
|
84
|
-
return e;
|
|
85
|
-
}
|
|
86
|
-
function te(e) {
|
|
87
|
-
e && e.parentNode && e.parentNode.removeChild(e);
|
|
88
|
-
}
|
|
89
|
-
function x(e, t, _) {
|
|
90
|
-
var n, o, r, l = {};
|
|
91
|
-
for (r in t) r == "key" ? n = t[r] : r == "ref" ? o = t[r] : l[r] = t[r];
|
|
92
|
-
if (arguments.length > 2 && (l.children = arguments.length > 3 ? F.call(arguments, 2) : _), typeof e == "function" && e.defaultProps != null) for (r in e.defaultProps) l[r] === void 0 && (l[r] = e.defaultProps[r]);
|
|
93
|
-
return D(e, l, n, o, null);
|
|
94
|
-
}
|
|
95
|
-
function D(e, t, _, n, o) {
|
|
96
|
-
var r = { type: e, props: t, key: _, ref: n, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++be, __i: -1, __u: 0 };
|
|
97
|
-
return o == null && h.vnode != null && h.vnode(r), r;
|
|
98
|
-
}
|
|
99
|
-
function z(e) {
|
|
100
|
-
return e.children;
|
|
101
|
-
}
|
|
102
|
-
function j(e, t) {
|
|
103
|
-
this.props = e, this.context = t;
|
|
104
|
-
}
|
|
105
|
-
function S(e, t) {
|
|
106
|
-
if (t == null) return e.__ ? S(e.__, e.__i + 1) : null;
|
|
107
|
-
for (var _; t < e.__k.length; t++) if ((_ = e.__k[t]) != null && _.__e != null) return _.__e;
|
|
108
|
-
return typeof e.type == "function" ? S(e) : null;
|
|
109
|
-
}
|
|
110
|
-
function $e(e) {
|
|
111
|
-
var t, _;
|
|
112
|
-
if ((e = e.__) != null && e.__c != null) {
|
|
113
|
-
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((_ = e.__k[t]) != null && _.__e != null) {
|
|
114
|
-
e.__e = e.__c.base = _.__e;
|
|
115
|
-
break;
|
|
116
|
-
}
|
|
117
|
-
return $e(e);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
function se(e) {
|
|
121
|
-
(!e.__d && (e.__d = !0) && N.push(e) && !W.__r++ || le != h.debounceRendering) && ((le = h.debounceRendering) || ke)(W);
|
|
122
|
-
}
|
|
123
|
-
function W() {
|
|
124
|
-
for (var e, t, _, n, o, r, l, s = 1; N.length; ) N.length > s && N.sort(Ee), e = N.shift(), s = N.length, e.__d && (_ = void 0, n = void 0, o = (n = (t = e).__v).__e, r = [], l = [], t.__P && ((_ = w({}, n)).__v = n.__v + 1, h.vnode && h.vnode(_), _e(t.__P, _, n, t.__n, t.__P.namespaceURI, 32 & n.__u ? [o] : null, r, o ?? S(n), !!(32 & n.__u), l), _.__v = n.__v, _.__.__k[_.__i] = _, Me(r, _, l), n.__e = n.__ = null, _.__e != o && $e(_)));
|
|
125
|
-
W.__r = 0;
|
|
126
|
-
}
|
|
127
|
-
function Ce(e, t, _, n, o, r, l, s, u, a, f) {
|
|
128
|
-
var i, p, c, g, k, b, d, v = n && n.__k || Ae, A = t.length;
|
|
129
|
-
for (u = Oe(_, t, v, u, A), i = 0; i < A; i++) (c = _.__k[i]) != null && (p = c.__i == -1 ? T : v[c.__i] || T, c.__i = i, b = _e(e, c, p, o, r, l, s, u, a, f), g = c.__e, c.ref && p.ref != c.ref && (p.ref && ne(p.ref, null, c), f.push(c.ref, c.__c || g, c)), k == null && g != null && (k = g), (d = !!(4 & c.__u)) || p.__k === c.__k ? u = Ne(c, u, e, d) : typeof c.type == "function" && b !== void 0 ? u = b : g && (u = g.nextSibling), c.__u &= -7);
|
|
130
|
-
return _.__e = k, u;
|
|
131
|
-
}
|
|
132
|
-
function Oe(e, t, _, n, o) {
|
|
133
|
-
var r, l, s, u, a, f = _.length, i = f, p = 0;
|
|
134
|
-
for (e.__k = new Array(o), r = 0; r < o; r++) (l = t[r]) != null && typeof l != "boolean" && typeof l != "function" ? (u = r + p, (l = e.__k[r] = typeof l == "string" || typeof l == "number" || typeof l == "bigint" || l.constructor == String ? D(null, l, null, null, null) : U(l) ? D(z, { children: l }, null, null, null) : l.constructor === void 0 && l.__b > 0 ? D(l.type, l.props, l.key, l.ref ? l.ref : null, l.__v) : l).__ = e, l.__b = e.__b + 1, s = null, (a = l.__i = Re(l, _, u, i)) != -1 && (i--, (s = _[a]) && (s.__u |= 2)), s == null || s.__v == null ? (a == -1 && (o > f ? p-- : o < f && p++), typeof l.type != "function" && (l.__u |= 4)) : a != u && (a == u - 1 ? p-- : a == u + 1 ? p++ : (a > u ? p-- : p++, l.__u |= 4))) : e.__k[r] = null;
|
|
135
|
-
if (i) for (r = 0; r < f; r++) (s = _[r]) != null && (2 & s.__u) == 0 && (s.__e == n && (n = S(s)), Se(s, s));
|
|
136
|
-
return n;
|
|
137
|
-
}
|
|
138
|
-
function Ne(e, t, _, n) {
|
|
139
|
-
var o, r;
|
|
140
|
-
if (typeof e.type == "function") {
|
|
141
|
-
for (o = e.__k, r = 0; o && r < o.length; r++) o[r] && (o[r].__ = e, t = Ne(o[r], t, _, n));
|
|
142
|
-
return t;
|
|
143
|
-
}
|
|
144
|
-
e.__e != t && (n && (t && e.type && !t.parentNode && (t = S(e)), _.insertBefore(e.__e, t || null)), t = e.__e);
|
|
145
|
-
do
|
|
146
|
-
t = t && t.nextSibling;
|
|
147
|
-
while (t != null && t.nodeType == 8);
|
|
148
|
-
return t;
|
|
149
|
-
}
|
|
150
|
-
function Be(e, t) {
|
|
151
|
-
return t = t || [], e == null || typeof e == "boolean" || (U(e) ? e.some(function(_) {
|
|
152
|
-
Be(_, t);
|
|
153
|
-
}) : t.push(e)), t;
|
|
154
|
-
}
|
|
155
|
-
function Re(e, t, _, n) {
|
|
156
|
-
var o, r, l, s = e.key, u = e.type, a = t[_], f = a != null && (2 & a.__u) == 0;
|
|
157
|
-
if (a === null && e.key == null || f && s == a.key && u == a.type) return _;
|
|
158
|
-
if (n > (f ? 1 : 0)) {
|
|
159
|
-
for (o = _ - 1, r = _ + 1; o >= 0 || r < t.length; ) if ((a = t[l = o >= 0 ? o-- : r++]) != null && (2 & a.__u) == 0 && s == a.key && u == a.type) return l;
|
|
160
|
-
}
|
|
161
|
-
return -1;
|
|
162
|
-
}
|
|
163
|
-
function ae(e, t, _) {
|
|
164
|
-
t[0] == "-" ? e.setProperty(t, _ ?? "") : e[t] = _ == null ? "" : typeof _ != "number" || Ue.test(t) ? _ : _ + "px";
|
|
165
|
-
}
|
|
166
|
-
function R(e, t, _, n, o) {
|
|
167
|
-
var r, l;
|
|
168
|
-
e: if (t == "style") if (typeof _ == "string") e.style.cssText = _;
|
|
169
|
-
else {
|
|
170
|
-
if (typeof n == "string" && (e.style.cssText = n = ""), n) for (t in n) _ && t in _ || ae(e.style, t, "");
|
|
171
|
-
if (_) for (t in _) n && _[t] == n[t] || ae(e.style, t, _[t]);
|
|
172
|
-
}
|
|
173
|
-
else if (t[0] == "o" && t[1] == "n") r = t != (t = t.replace(we, "$1")), l = t.toLowerCase(), t = l in e || t == "onFocusOut" || t == "onFocusIn" ? l.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + r] = _, _ ? n ? _.u = n.u : (_.u = ee, e.addEventListener(t, r ? Q : Y, r)) : e.removeEventListener(t, r ? Q : Y, r);
|
|
174
|
-
else {
|
|
175
|
-
if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
176
|
-
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
177
|
-
e[t] = _ ?? "";
|
|
178
|
-
break e;
|
|
179
|
-
} catch {
|
|
180
|
-
}
|
|
181
|
-
typeof _ == "function" || (_ == null || _ === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && _ == 1 ? "" : _));
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
function ue(e) {
|
|
185
|
-
return function(t) {
|
|
186
|
-
if (this.l) {
|
|
187
|
-
var _ = this.l[t.type + e];
|
|
188
|
-
if (t.t == null) t.t = ee++;
|
|
189
|
-
else if (t.t < _.u) return;
|
|
190
|
-
return _(h.event ? h.event(t) : t);
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
function _e(e, t, _, n, o, r, l, s, u, a) {
|
|
195
|
-
var f, i, p, c, g, k, b, d, v, A, $, O, H, ie, B, I, V, E = t.type;
|
|
196
|
-
if (t.constructor !== void 0) return null;
|
|
197
|
-
128 & _.__u && (u = !!(32 & _.__u), r = [s = t.__e = _.__e]), (f = h.__b) && f(t);
|
|
198
|
-
e: if (typeof E == "function") try {
|
|
199
|
-
if (d = t.props, v = "prototype" in E && E.prototype.render, A = (f = E.contextType) && n[f.__c], $ = f ? A ? A.props.value : f.__ : n, _.__c ? b = (i = t.__c = _.__c).__ = i.__E : (v ? t.__c = i = new E(d, $) : (t.__c = i = new j(d, $), i.constructor = E, i.render = Ge), A && A.sub(i), i.props = d, i.state || (i.state = {}), i.context = $, i.__n = n, p = i.__d = !0, i.__h = [], i._sb = []), v && i.__s == null && (i.__s = i.state), v && E.getDerivedStateFromProps != null && (i.__s == i.state && (i.__s = w({}, i.__s)), w(i.__s, E.getDerivedStateFromProps(d, i.__s))), c = i.props, g = i.state, i.__v = t, p) v && E.getDerivedStateFromProps == null && i.componentWillMount != null && i.componentWillMount(), v && i.componentDidMount != null && i.__h.push(i.componentDidMount);
|
|
200
|
-
else {
|
|
201
|
-
if (v && E.getDerivedStateFromProps == null && d !== c && i.componentWillReceiveProps != null && i.componentWillReceiveProps(d, $), !i.__e && i.shouldComponentUpdate != null && i.shouldComponentUpdate(d, i.__s, $) === !1 || t.__v == _.__v) {
|
|
202
|
-
for (t.__v != _.__v && (i.props = d, i.state = i.__s, i.__d = !1), t.__e = _.__e, t.__k = _.__k, t.__k.some(function(M) {
|
|
203
|
-
M && (M.__ = t);
|
|
204
|
-
}), O = 0; O < i._sb.length; O++) i.__h.push(i._sb[O]);
|
|
205
|
-
i._sb = [], i.__h.length && l.push(i);
|
|
206
|
-
break e;
|
|
207
|
-
}
|
|
208
|
-
i.componentWillUpdate != null && i.componentWillUpdate(d, i.__s, $), v && i.componentDidUpdate != null && i.__h.push(function() {
|
|
209
|
-
i.componentDidUpdate(c, g, k);
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
if (i.context = $, i.props = d, i.__P = e, i.__e = !1, H = h.__r, ie = 0, v) {
|
|
213
|
-
for (i.state = i.__s, i.__d = !1, H && H(t), f = i.render(i.props, i.state, i.context), B = 0; B < i._sb.length; B++) i.__h.push(i._sb[B]);
|
|
214
|
-
i._sb = [];
|
|
215
|
-
} else do
|
|
216
|
-
i.__d = !1, H && H(t), f = i.render(i.props, i.state, i.context), i.state = i.__s;
|
|
217
|
-
while (i.__d && ++ie < 25);
|
|
218
|
-
i.state = i.__s, i.getChildContext != null && (n = w(w({}, n), i.getChildContext())), v && !p && i.getSnapshotBeforeUpdate != null && (k = i.getSnapshotBeforeUpdate(c, g)), I = f, f != null && f.type === z && f.key == null && (I = xe(f.props.children)), s = Ce(e, U(I) ? I : [I], t, _, n, o, r, l, s, u, a), i.base = t.__e, t.__u &= -161, i.__h.length && l.push(i), b && (i.__E = i.__ = null);
|
|
219
|
-
} catch (M) {
|
|
220
|
-
if (t.__v = null, u || r != null) if (M.then) {
|
|
221
|
-
for (t.__u |= u ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
|
|
222
|
-
r[r.indexOf(s)] = null, t.__e = s;
|
|
223
|
-
} else {
|
|
224
|
-
for (V = r.length; V--; ) te(r[V]);
|
|
225
|
-
X(t);
|
|
226
|
-
}
|
|
227
|
-
else t.__e = _.__e, t.__k = _.__k, M.then || X(t);
|
|
228
|
-
h.__e(M, t, _);
|
|
229
|
-
}
|
|
230
|
-
else r == null && t.__v == _.__v ? (t.__k = _.__k, t.__e = _.__e) : s = t.__e = je(_.__e, t, _, n, o, r, l, u, a);
|
|
231
|
-
return (f = h.diffed) && f(t), 128 & t.__u ? void 0 : s;
|
|
232
|
-
}
|
|
233
|
-
function X(e) {
|
|
234
|
-
e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(X);
|
|
235
|
-
}
|
|
236
|
-
function Me(e, t, _) {
|
|
237
|
-
for (var n = 0; n < _.length; n++) ne(_[n], _[++n], _[++n]);
|
|
238
|
-
h.__c && h.__c(t, e), e.some(function(o) {
|
|
239
|
-
try {
|
|
240
|
-
e = o.__h, o.__h = [], e.some(function(r) {
|
|
241
|
-
r.call(o);
|
|
242
|
-
});
|
|
243
|
-
} catch (r) {
|
|
244
|
-
h.__e(r, o.__v);
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
function xe(e) {
|
|
249
|
-
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : U(e) ? e.map(xe) : w({}, e);
|
|
250
|
-
}
|
|
251
|
-
function je(e, t, _, n, o, r, l, s, u) {
|
|
252
|
-
var a, f, i, p, c, g, k, b = _.props, d = t.props, v = t.type;
|
|
253
|
-
if (v == "svg" ? o = "http://www.w3.org/2000/svg" : v == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), r != null) {
|
|
254
|
-
for (a = 0; a < r.length; a++) if ((c = r[a]) && "setAttribute" in c == !!v && (v ? c.localName == v : c.nodeType == 3)) {
|
|
255
|
-
e = c, r[a] = null;
|
|
256
|
-
break;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
if (e == null) {
|
|
260
|
-
if (v == null) return document.createTextNode(d);
|
|
261
|
-
e = document.createElementNS(o, v, d.is && d), s && (h.__m && h.__m(t, r), s = !1), r = null;
|
|
262
|
-
}
|
|
263
|
-
if (v == null) b === d || s && e.data == d || (e.data = d);
|
|
264
|
-
else {
|
|
265
|
-
if (r = r && F.call(e.childNodes), b = _.props || T, !s && r != null) for (b = {}, a = 0; a < e.attributes.length; a++) b[(c = e.attributes[a]).name] = c.value;
|
|
266
|
-
for (a in b) if (c = b[a], a != "children") {
|
|
267
|
-
if (a == "dangerouslySetInnerHTML") i = c;
|
|
268
|
-
else if (!(a in d)) {
|
|
269
|
-
if (a == "value" && "defaultValue" in d || a == "checked" && "defaultChecked" in d) continue;
|
|
270
|
-
R(e, a, null, c, o);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
for (a in d) c = d[a], a == "children" ? p = c : a == "dangerouslySetInnerHTML" ? f = c : a == "value" ? g = c : a == "checked" ? k = c : s && typeof c != "function" || b[a] === c || R(e, a, c, b[a], o);
|
|
274
|
-
if (f) s || i && (f.__html == i.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
|
|
275
|
-
else if (i && (e.innerHTML = ""), Ce(t.type == "template" ? e.content : e, U(p) ? p : [p], t, _, n, v == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, r, l, r ? r[0] : _.__k && S(_, 0), s, u), r != null) for (a = r.length; a--; ) te(r[a]);
|
|
276
|
-
s || (a = "value", v == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[a] || v == "progress" && !g || v == "option" && g != b[a]) && R(e, a, g, b[a], o), a = "checked", k != null && k != e[a] && R(e, a, k, b[a], o));
|
|
277
|
-
}
|
|
278
|
-
return e;
|
|
279
|
-
}
|
|
280
|
-
function ne(e, t, _) {
|
|
281
|
-
try {
|
|
282
|
-
if (typeof e == "function") {
|
|
283
|
-
var n = typeof e.__u == "function";
|
|
284
|
-
n && e.__u(), n && t == null || (e.__u = e(t));
|
|
285
|
-
} else e.current = t;
|
|
286
|
-
} catch (o) {
|
|
287
|
-
h.__e(o, _);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
function Se(e, t, _) {
|
|
291
|
-
var n, o;
|
|
292
|
-
if (h.unmount && h.unmount(e), (n = e.ref) && (n.current && n.current != e.__e || ne(n, null, t)), (n = e.__c) != null) {
|
|
293
|
-
if (n.componentWillUnmount) try {
|
|
294
|
-
n.componentWillUnmount();
|
|
295
|
-
} catch (r) {
|
|
296
|
-
h.__e(r, t);
|
|
297
|
-
}
|
|
298
|
-
n.base = n.__P = null;
|
|
299
|
-
}
|
|
300
|
-
if (n = e.__k) for (o = 0; o < n.length; o++) n[o] && Se(n[o], t, _ || typeof e.type != "function");
|
|
301
|
-
_ || te(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
302
|
-
}
|
|
303
|
-
function Ge(e, t, _) {
|
|
304
|
-
return this.constructor(e, _);
|
|
305
|
-
}
|
|
306
|
-
function J(e, t, _) {
|
|
307
|
-
var n, o, r, l;
|
|
308
|
-
t == document && (t = document.documentElement), h.__ && h.__(e, t), o = (n = typeof _ == "function") ? null : _ && _.__k || t.__k, r = [], l = [], _e(t, e = (!n && _ || t).__k = x(z, null, [e]), o || T, T, t.namespaceURI, !n && _ ? [_] : o ? null : t.firstChild ? F.call(t.childNodes) : null, r, !n && _ ? _ : o ? o.__e : t.firstChild, n, l), Me(r, e, l);
|
|
309
|
-
}
|
|
310
|
-
function He(e, t) {
|
|
311
|
-
J(e, t, He);
|
|
312
|
-
}
|
|
313
|
-
function Ie(e, t, _) {
|
|
314
|
-
var n, o, r, l, s = w({}, e.props);
|
|
315
|
-
for (r in e.type && e.type.defaultProps && (l = e.type.defaultProps), t) r == "key" ? n = t[r] : r == "ref" ? o = t[r] : s[r] = t[r] === void 0 && l != null ? l[r] : t[r];
|
|
316
|
-
return arguments.length > 2 && (s.children = arguments.length > 3 ? F.call(arguments, 2) : _), D(e.type, s, n || e.key, o || e.ref, null);
|
|
317
|
-
}
|
|
318
|
-
F = Ae.slice, h = { __e: function(e, t, _, n) {
|
|
319
|
-
for (var o, r, l; t = t.__; ) if ((o = t.__c) && !o.__) try {
|
|
320
|
-
if ((r = o.constructor) && r.getDerivedStateFromError != null && (o.setState(r.getDerivedStateFromError(e)), l = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, n || {}), l = o.__d), l) return o.__E = o;
|
|
321
|
-
} catch (s) {
|
|
322
|
-
e = s;
|
|
323
|
-
}
|
|
324
|
-
throw e;
|
|
325
|
-
} }, be = 0, Fe = function(e) {
|
|
326
|
-
return e != null && e.constructor === void 0;
|
|
327
|
-
}, j.prototype.setState = function(e, t) {
|
|
328
|
-
var _;
|
|
329
|
-
_ = this.__s != null && this.__s != this.state ? this.__s : this.__s = w({}, this.state), typeof e == "function" && (e = e(w({}, _), this.props)), e && w(_, e), e != null && this.__v && (t && this._sb.push(t), se(this));
|
|
330
|
-
}, j.prototype.forceUpdate = function(e) {
|
|
331
|
-
this.__v && (this.__e = !0, e && this.__h.push(e), se(this));
|
|
332
|
-
}, j.prototype.render = z, N = [], ke = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ee = function(e, t) {
|
|
333
|
-
return e.__v.__b - t.__v.__b;
|
|
334
|
-
}, W.__r = 0, we = /(PointerCapture)$|Capture$/i, ee = 0, Y = ue(!1), Q = ue(!0);
|
|
335
|
-
var We = 0;
|
|
336
|
-
function rt(e, t, _, n, o, r) {
|
|
337
|
-
t || (t = {});
|
|
338
|
-
var l, s, u = t;
|
|
339
|
-
if ("ref" in u) for (s in u = {}, t) s == "ref" ? l = t[s] : u[s] = t[s];
|
|
340
|
-
var a = { type: e, props: u, key: _, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --We, __i: -1, __u: 0, __source: o, __self: r };
|
|
341
|
-
if (typeof e == "function" && (l = e.defaultProps)) for (s in l) u[s] === void 0 && (u[s] = l[s]);
|
|
342
|
-
return h.vnode && h.vnode(a), a;
|
|
343
|
-
}
|
|
344
|
-
var L, m, K, ce, q = 0, Pe = [], y = h, fe = y.__b, pe = y.__r, he = y.diffed, de = y.__c, ve = y.unmount, me = y.__;
|
|
345
|
-
function re(e, t) {
|
|
346
|
-
y.__h && y.__h(m, e, q || t), q = 0;
|
|
347
|
-
var _ = m.__H || (m.__H = { __: [], __h: [] });
|
|
348
|
-
return e >= _.__.length && _.__.push({}), _.__[e];
|
|
349
|
-
}
|
|
350
|
-
function ot(e) {
|
|
351
|
-
return q = 1, qe(Te, e);
|
|
352
|
-
}
|
|
353
|
-
function qe(e, t, _) {
|
|
354
|
-
var n = re(L++, 2);
|
|
355
|
-
if (n.t = e, !n.__c && (n.__ = [Te(void 0, t), function(s) {
|
|
356
|
-
var u = n.__N ? n.__N[0] : n.__[0], a = n.t(u, s);
|
|
357
|
-
u !== a && (n.__N = [a, n.__[1]], n.__c.setState({}));
|
|
358
|
-
}], n.__c = m, !m.__f)) {
|
|
359
|
-
var o = function(s, u, a) {
|
|
360
|
-
if (!n.__c.__H) return !0;
|
|
361
|
-
var f = n.__c.__H.__.filter(function(p) {
|
|
362
|
-
return !!p.__c;
|
|
363
|
-
});
|
|
364
|
-
if (f.every(function(p) {
|
|
365
|
-
return !p.__N;
|
|
366
|
-
})) return !r || r.call(this, s, u, a);
|
|
367
|
-
var i = n.__c.props !== s;
|
|
368
|
-
return f.forEach(function(p) {
|
|
369
|
-
if (p.__N) {
|
|
370
|
-
var c = p.__[0];
|
|
371
|
-
p.__ = p.__N, p.__N = void 0, c !== p.__[0] && (i = !0);
|
|
372
|
-
}
|
|
373
|
-
}), r && r.call(this, s, u, a) || i;
|
|
374
|
-
};
|
|
375
|
-
m.__f = !0;
|
|
376
|
-
var r = m.shouldComponentUpdate, l = m.componentWillUpdate;
|
|
377
|
-
m.componentWillUpdate = function(s, u, a) {
|
|
378
|
-
if (this.__e) {
|
|
379
|
-
var f = r;
|
|
380
|
-
r = void 0, o(s, u, a), r = f;
|
|
381
|
-
}
|
|
382
|
-
l && l.call(this, s, u, a);
|
|
383
|
-
}, m.shouldComponentUpdate = o;
|
|
384
|
-
}
|
|
385
|
-
return n.__N || n.__;
|
|
386
|
-
}
|
|
387
|
-
function it(e, t) {
|
|
388
|
-
var _ = re(L++, 3);
|
|
389
|
-
!y.__s && De(_.__H, t) && (_.__ = e, _.u = t, m.__H.__h.push(_));
|
|
390
|
-
}
|
|
391
|
-
function lt(e) {
|
|
392
|
-
return q = 5, ze(function() {
|
|
393
|
-
return { current: e };
|
|
394
|
-
}, []);
|
|
395
|
-
}
|
|
396
|
-
function ze(e, t) {
|
|
397
|
-
var _ = re(L++, 7);
|
|
398
|
-
return De(_.__H, t) && (_.__ = e(), _.__H = t, _.__h = e), _.__;
|
|
399
|
-
}
|
|
400
|
-
function Je() {
|
|
401
|
-
for (var e; e = Pe.shift(); ) if (e.__P && e.__H) try {
|
|
402
|
-
e.__H.__h.forEach(G), e.__H.__h.forEach(Z), e.__H.__h = [];
|
|
403
|
-
} catch (t) {
|
|
404
|
-
e.__H.__h = [], y.__e(t, e.__v);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
y.__b = function(e) {
|
|
408
|
-
m = null, fe && fe(e);
|
|
409
|
-
}, y.__ = function(e, t) {
|
|
410
|
-
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), me && me(e, t);
|
|
411
|
-
}, y.__r = function(e) {
|
|
412
|
-
pe && pe(e), L = 0;
|
|
413
|
-
var t = (m = e.__c).__H;
|
|
414
|
-
t && (K === m ? (t.__h = [], m.__h = [], t.__.forEach(function(_) {
|
|
415
|
-
_.__N && (_.__ = _.__N), _.u = _.__N = void 0;
|
|
416
|
-
})) : (t.__h.forEach(G), t.__h.forEach(Z), t.__h = [], L = 0)), K = m;
|
|
417
|
-
}, y.diffed = function(e) {
|
|
418
|
-
he && he(e);
|
|
419
|
-
var t = e.__c;
|
|
420
|
-
t && t.__H && (t.__H.__h.length && (Pe.push(t) !== 1 && ce === y.requestAnimationFrame || ((ce = y.requestAnimationFrame) || Ve)(Je)), t.__H.__.forEach(function(_) {
|
|
421
|
-
_.u && (_.__H = _.u), _.u = void 0;
|
|
422
|
-
})), K = m = null;
|
|
423
|
-
}, y.__c = function(e, t) {
|
|
424
|
-
t.some(function(_) {
|
|
425
|
-
try {
|
|
426
|
-
_.__h.forEach(G), _.__h = _.__h.filter(function(n) {
|
|
427
|
-
return !n.__ || Z(n);
|
|
428
|
-
});
|
|
429
|
-
} catch (n) {
|
|
430
|
-
t.some(function(o) {
|
|
431
|
-
o.__h && (o.__h = []);
|
|
432
|
-
}), t = [], y.__e(n, _.__v);
|
|
433
|
-
}
|
|
434
|
-
}), de && de(e, t);
|
|
435
|
-
}, y.unmount = function(e) {
|
|
436
|
-
ve && ve(e);
|
|
437
|
-
var t, _ = e.__c;
|
|
438
|
-
_ && _.__H && (_.__H.__.forEach(function(n) {
|
|
439
|
-
try {
|
|
440
|
-
G(n);
|
|
441
|
-
} catch (o) {
|
|
442
|
-
t = o;
|
|
443
|
-
}
|
|
444
|
-
}), _.__H = void 0, t && y.__e(t, _.__v));
|
|
445
|
-
};
|
|
446
|
-
var ye = typeof requestAnimationFrame == "function";
|
|
447
|
-
function Ve(e) {
|
|
448
|
-
var t, _ = function() {
|
|
449
|
-
clearTimeout(n), ye && cancelAnimationFrame(t), setTimeout(e);
|
|
450
|
-
}, n = setTimeout(_, 35);
|
|
451
|
-
ye && (t = requestAnimationFrame(_));
|
|
452
|
-
}
|
|
453
|
-
function G(e) {
|
|
454
|
-
var t = m, _ = e.__c;
|
|
455
|
-
typeof _ == "function" && (e.__c = void 0, _()), m = t;
|
|
456
|
-
}
|
|
457
|
-
function Z(e) {
|
|
458
|
-
var t = m;
|
|
459
|
-
e.__c = e.__(), m = t;
|
|
460
|
-
}
|
|
461
|
-
function De(e, t) {
|
|
462
|
-
return !e || e.length !== t.length || t.some(function(_, n) {
|
|
463
|
-
return _ !== e[n];
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
function Te(e, t) {
|
|
467
|
-
return typeof t == "function" ? t(e) : t;
|
|
468
|
-
}
|
|
469
|
-
function oe() {
|
|
470
|
-
return (oe = Object.assign ? Object.assign.bind() : function(e) {
|
|
471
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
472
|
-
var _ = arguments[t];
|
|
473
|
-
for (var n in _) Object.prototype.hasOwnProperty.call(_, n) && (e[n] = _[n]);
|
|
474
|
-
}
|
|
475
|
-
return e;
|
|
476
|
-
}).apply(this, arguments);
|
|
477
|
-
}
|
|
478
|
-
var Ke = ["context", "children"];
|
|
479
|
-
function Ye(e) {
|
|
480
|
-
this.getChildContext = function() {
|
|
481
|
-
return e.context;
|
|
482
|
-
};
|
|
483
|
-
var t = e.children, _ = (function(n, o) {
|
|
484
|
-
if (n == null) return {};
|
|
485
|
-
var r, l, s = {}, u = Object.keys(n);
|
|
486
|
-
for (l = 0; l < u.length; l++) o.indexOf(r = u[l]) >= 0 || (s[r] = n[r]);
|
|
487
|
-
return s;
|
|
488
|
-
})(e, Ke);
|
|
489
|
-
return Ie(t, _);
|
|
490
|
-
}
|
|
491
|
-
function Qe() {
|
|
492
|
-
var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
|
|
493
|
-
this.dispatchEvent(e), this._vdom = x(Ye, oe({}, this._props, { context: e.detail.context }), (function t(_, n) {
|
|
494
|
-
if (_.nodeType === 3) return _.data;
|
|
495
|
-
if (_.nodeType !== 1) return null;
|
|
496
|
-
var o = [], r = {}, l = 0, s = _.attributes, u = _.childNodes;
|
|
497
|
-
for (l = s.length; l--; ) s[l].name !== "slot" && (r[s[l].name] = s[l].value, r[Le(s[l].name)] = s[l].value);
|
|
498
|
-
for (l = u.length; l--; ) {
|
|
499
|
-
var a = t(u[l], null), f = u[l].slot;
|
|
500
|
-
f ? r[f] = x(ge, { name: f }, a) : o[l] = a;
|
|
501
|
-
}
|
|
502
|
-
var i = n ? x(ge, null, o) : o;
|
|
503
|
-
return x(n || _.nodeName.toLowerCase(), r, i);
|
|
504
|
-
})(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? He : J)(this._vdom, this._root);
|
|
505
|
-
}
|
|
506
|
-
function Le(e) {
|
|
507
|
-
return e.replace(/-(\w)/g, function(t, _) {
|
|
508
|
-
return _ ? _.toUpperCase() : "";
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
function Xe(e, t, _) {
|
|
512
|
-
if (this._vdom) {
|
|
513
|
-
var n = {};
|
|
514
|
-
n[e] = _ = _ ?? void 0, n[Le(e)] = _, this._vdom = Ie(this._vdom, n), J(this._vdom, this._root);
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
function Ze() {
|
|
518
|
-
J(this._vdom = null, this._root);
|
|
519
|
-
}
|
|
520
|
-
function ge(e, t) {
|
|
521
|
-
var _ = this;
|
|
522
|
-
return x("slot", oe({}, e, { ref: function(n) {
|
|
523
|
-
n ? (_.ref = n, _._listener || (_._listener = function(o) {
|
|
524
|
-
o.stopPropagation(), o.detail.context = t;
|
|
525
|
-
}, n.addEventListener("_preact", _._listener))) : _.ref.removeEventListener("_preact", _._listener);
|
|
526
|
-
} }));
|
|
527
|
-
}
|
|
528
|
-
function st(e, t, _, n) {
|
|
529
|
-
function o() {
|
|
530
|
-
var r = Reflect.construct(HTMLElement, [], o);
|
|
531
|
-
return r._vdomComponent = e, r._root = n && n.shadow ? r.attachShadow({ mode: n.mode || "open" }) : r, r;
|
|
532
|
-
}
|
|
533
|
-
return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Qe, o.prototype.attributeChangedCallback = Xe, o.prototype.disconnectedCallback = Ze, _ = _ || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = _, _.forEach(function(r) {
|
|
534
|
-
Object.defineProperty(o.prototype, r, { get: function() {
|
|
535
|
-
return this._vdom.props[r];
|
|
536
|
-
}, set: function(l) {
|
|
537
|
-
this._vdom ? this.attributeChangedCallback(r, null, l) : (this._props || (this._props = {}), this._props[r] = l, this.connectedCallback());
|
|
538
|
-
var s = typeof l;
|
|
539
|
-
l != null && s !== "string" && s !== "boolean" && s !== "number" || this.setAttribute(r, l);
|
|
540
|
-
} });
|
|
541
|
-
}), customElements.define(t || e.tagName || e.displayName || e.name, o);
|
|
542
|
-
}
|
|
543
|
-
const at = (e, t = !1) => typeof e == "boolean" ? e : typeof e == "string" ? e === "true" || e === "" : t, et = "11.4.5", ut = {
|
|
544
|
-
version: et
|
|
545
|
-
};
|
|
546
|
-
export {
|
|
547
|
-
lt as A,
|
|
548
|
-
Be as H,
|
|
549
|
-
_t as I,
|
|
550
|
-
nt as J,
|
|
551
|
-
C as S,
|
|
552
|
-
ze as T,
|
|
553
|
-
x as _,
|
|
554
|
-
ot as d,
|
|
555
|
-
at as g,
|
|
556
|
-
z as k,
|
|
557
|
-
h as l,
|
|
558
|
-
ut as p,
|
|
559
|
-
st as r,
|
|
560
|
-
Fe as t,
|
|
561
|
-
rt as u,
|
|
562
|
-
j as x,
|
|
563
|
-
it as y
|
|
564
|
-
};
|
|
565
|
-
//# sourceMappingURL=package-D6YrpMcO.js.map
|