@revenuecat/purchases-ui-js 0.0.21 → 1.0.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/components/button/Button.svelte +9 -0
- package/dist/components/button/ButtonNode.svelte +7 -5
- package/dist/components/paywall/Paywall.svelte +0 -7
- package/dist/components/purchase-button/PurchaseButton.svelte +3 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/stories/fixtures.d.ts +2 -0
- package/dist/stories/fixtures.js +36 -0
- package/dist/stories/with-layout.d.ts +10 -0
- package/dist/stories/with-layout.js +15 -0
- package/dist/stories/with-layout.svelte +33 -0
- package/dist/stories/with-layout.svelte.d.ts +10 -0
- package/dist/ui/atoms/typography.stories.svelte +202 -0
- package/dist/ui/atoms/typography.stories.svelte.d.ts +19 -0
- package/dist/ui/atoms/typography.svelte +132 -0
- package/dist/ui/atoms/typography.svelte.d.ts +9 -0
- package/dist/ui/globals.d.ts +9 -0
- package/dist/ui/globals.js +3 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +4 -0
- package/dist/ui/layout/container.svelte +73 -0
- package/dist/ui/layout/container.svelte.d.ts +24 -0
- package/dist/ui/layout/layout.svelte +45 -0
- package/dist/ui/layout/layout.svelte.d.ts +22 -0
- package/dist/ui/layout/main-block.svelte +32 -0
- package/dist/ui/layout/main-block.svelte.d.ts +23 -0
- package/dist/ui/layout/section-layout.svelte +73 -0
- package/dist/ui/layout/section-layout.svelte.d.ts +23 -0
- package/dist/ui/molecules/button.stories.svelte +49 -0
- package/dist/ui/molecules/button.stories.svelte.d.ts +19 -0
- package/dist/ui/molecules/button.svelte +101 -0
- package/dist/ui/molecules/button.svelte.d.ts +28 -0
- package/dist/ui/molecules/types.d.ts +13 -0
- package/dist/ui/molecules/types.js +1 -0
- package/dist/ui/theme/colors.d.ts +37 -0
- package/dist/ui/theme/colors.js +54 -0
- package/dist/ui/theme/shapes.d.ts +8 -0
- package/dist/ui/theme/shapes.js +13 -0
- package/dist/ui/theme/spacing.d.ts +7 -0
- package/dist/ui/theme/spacing.js +42 -0
- package/dist/ui/theme/text.d.ts +19 -0
- package/dist/ui/theme/text.js +173 -0
- package/dist/ui/theme/theme.d.ts +15 -0
- package/dist/ui/theme/theme.js +38 -0
- package/dist/ui/theme/utils.d.ts +37 -0
- package/dist/ui/theme/utils.js +191 -0
- package/dist/ui/utils/branding.d.ts +16 -0
- package/dist/ui/utils/branding.js +1 -0
- package/dist/ui/utils/processing-animation.svelte +57 -0
- package/dist/ui/utils/processing-animation.svelte.d.ts +20 -0
- package/dist/web-components/index.js +2264 -0
- package/package.json +10 -4
|
@@ -0,0 +1,2264 @@
|
|
|
1
|
+
var Or = Object.defineProperty;
|
|
2
|
+
var kt = (e) => {
|
|
3
|
+
throw TypeError(e);
|
|
4
|
+
};
|
|
5
|
+
var Ar = (e, t, r) => t in e ? Or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var I = (e, t, r) => Ar(e, typeof t != "symbol" ? t + "" : t, r), Et = (e, t, r) => t.has(e) || kt("Cannot " + r);
|
|
7
|
+
var E = (e, t, r) => (Et(e, t, "read from private field"), r ? r.call(e) : t.get(e)), rt = (e, t, r) => t.has(e) ? kt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), nt = (e, t, r, s) => (Et(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
|
|
8
|
+
const Lr = "5";
|
|
9
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
|
|
10
|
+
const Nr = 1, Dr = 2, Ir = 4, Fr = 8, Rr = 16, jr = 1, Pr = 2, Pt = "[", Mt = "[!", Ct = "]", we = {}, T = Symbol(), Mr = ["touchstart", "touchmove"];
|
|
11
|
+
function Cr(e) {
|
|
12
|
+
return Mr.includes(e);
|
|
13
|
+
}
|
|
14
|
+
const it = !1;
|
|
15
|
+
var Bt = Array.isArray, Br = Array.prototype.indexOf, zr = Array.from, Ce = Object.keys, Be = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, Hr = Object.getOwnPropertyDescriptors, qr = Object.prototype, Vr = Array.prototype, zt = Object.getPrototypeOf;
|
|
16
|
+
const Ht = () => {
|
|
17
|
+
};
|
|
18
|
+
function Ur(e) {
|
|
19
|
+
for (var t = 0; t < e.length; t++)
|
|
20
|
+
e[t]();
|
|
21
|
+
}
|
|
22
|
+
const j = 2, qt = 4, We = 8, ct = 16, Z = 32, ie = 64, ze = 128, pe = 256, He = 512, A = 1024, J = 2048, be = 4096, ve = 8192, ye = 16384, Yr = 32768, Xe = 65536, Wr = 1 << 17, Xr = 1 << 19, Vt = 1 << 20, Fe = Symbol("$state"), Ut = Symbol("legacy props"), Gr = Symbol("");
|
|
23
|
+
function Yt(e) {
|
|
24
|
+
return e === this.v;
|
|
25
|
+
}
|
|
26
|
+
function Kr(e, t) {
|
|
27
|
+
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
28
|
+
}
|
|
29
|
+
function dt(e) {
|
|
30
|
+
return !Kr(e, this.v);
|
|
31
|
+
}
|
|
32
|
+
function Zr() {
|
|
33
|
+
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
34
|
+
}
|
|
35
|
+
function Jr() {
|
|
36
|
+
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
37
|
+
}
|
|
38
|
+
function Qr(e) {
|
|
39
|
+
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
40
|
+
}
|
|
41
|
+
function en() {
|
|
42
|
+
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
43
|
+
}
|
|
44
|
+
function tn() {
|
|
45
|
+
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
46
|
+
}
|
|
47
|
+
function rn() {
|
|
48
|
+
throw new Error("https://svelte.dev/e/state_unsafe_local_read");
|
|
49
|
+
}
|
|
50
|
+
function nn() {
|
|
51
|
+
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
52
|
+
}
|
|
53
|
+
let Le = !1, sn = !1;
|
|
54
|
+
function on() {
|
|
55
|
+
Le = !0;
|
|
56
|
+
}
|
|
57
|
+
function q(e, t) {
|
|
58
|
+
var r = {
|
|
59
|
+
f: 0,
|
|
60
|
+
// TODO ideally we could skip this altogether, but it causes type errors
|
|
61
|
+
v: e,
|
|
62
|
+
reactions: null,
|
|
63
|
+
equals: Yt,
|
|
64
|
+
rv: 0,
|
|
65
|
+
wv: 0
|
|
66
|
+
};
|
|
67
|
+
return r;
|
|
68
|
+
}
|
|
69
|
+
// @__NO_SIDE_EFFECTS__
|
|
70
|
+
function Wt(e, t = !1) {
|
|
71
|
+
var s;
|
|
72
|
+
const r = q(e);
|
|
73
|
+
return t || (r.equals = dt), Le && k !== null && k.l !== null && ((s = k.l).s ?? (s.s = [])).push(r), r;
|
|
74
|
+
}
|
|
75
|
+
function V(e, t) {
|
|
76
|
+
return $ !== null && Ke() && $.f & (j | ct) && // If the source was created locally within the current derived, then
|
|
77
|
+
// we allow the mutation.
|
|
78
|
+
(se === null || !se.includes(e)) && nn(), ln(e, t);
|
|
79
|
+
}
|
|
80
|
+
function ln(e, t) {
|
|
81
|
+
return e.equals(t) || (e.v, e.v = t, e.wv = cr(), Xt(e, J), Ke() && p !== null && p.f & A && !(p.f & (Z | ie)) && (X === null ? wn([e]) : X.push(e))), t;
|
|
82
|
+
}
|
|
83
|
+
function Xt(e, t) {
|
|
84
|
+
var r = e.reactions;
|
|
85
|
+
if (r !== null)
|
|
86
|
+
for (var s = Ke(), n = r.length, i = 0; i < n; i++) {
|
|
87
|
+
var o = r[i], l = o.f;
|
|
88
|
+
l & J || !s && o === p || (U(o, t), l & (A | pe) && (l & j ? Xt(
|
|
89
|
+
/** @type {Derived} */
|
|
90
|
+
o,
|
|
91
|
+
be
|
|
92
|
+
) : Je(
|
|
93
|
+
/** @type {Effect} */
|
|
94
|
+
o
|
|
95
|
+
)));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function ht(e) {
|
|
99
|
+
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
100
|
+
}
|
|
101
|
+
let w = !1;
|
|
102
|
+
function fe(e) {
|
|
103
|
+
w = e;
|
|
104
|
+
}
|
|
105
|
+
let m;
|
|
106
|
+
function Se(e) {
|
|
107
|
+
if (e === null)
|
|
108
|
+
throw ht(), we;
|
|
109
|
+
return m = e;
|
|
110
|
+
}
|
|
111
|
+
function Ge() {
|
|
112
|
+
return Se(
|
|
113
|
+
/** @type {TemplateNode} */
|
|
114
|
+
/* @__PURE__ */ me(m)
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
function Gt(e) {
|
|
118
|
+
if (w) {
|
|
119
|
+
if (/* @__PURE__ */ me(m) !== null)
|
|
120
|
+
throw ht(), we;
|
|
121
|
+
m = e;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function an() {
|
|
125
|
+
for (var e = 0, t = m; ; ) {
|
|
126
|
+
if (t.nodeType === 8) {
|
|
127
|
+
var r = (
|
|
128
|
+
/** @type {Comment} */
|
|
129
|
+
t.data
|
|
130
|
+
);
|
|
131
|
+
if (r === Ct) {
|
|
132
|
+
if (e === 0) return t;
|
|
133
|
+
e -= 1;
|
|
134
|
+
} else (r === Pt || r === Mt) && (e += 1);
|
|
135
|
+
}
|
|
136
|
+
var s = (
|
|
137
|
+
/** @type {TemplateNode} */
|
|
138
|
+
/* @__PURE__ */ me(t)
|
|
139
|
+
);
|
|
140
|
+
t.remove(), t = s;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function ue(e, t = null, r) {
|
|
144
|
+
if (typeof e != "object" || e === null || Fe in e)
|
|
145
|
+
return e;
|
|
146
|
+
const s = zt(e);
|
|
147
|
+
if (s !== qr && s !== Vr)
|
|
148
|
+
return e;
|
|
149
|
+
var n = /* @__PURE__ */ new Map(), i = Bt(e), o = q(0);
|
|
150
|
+
i && n.set("length", q(
|
|
151
|
+
/** @type {any[]} */
|
|
152
|
+
e.length
|
|
153
|
+
));
|
|
154
|
+
var l;
|
|
155
|
+
return new Proxy(
|
|
156
|
+
/** @type {any} */
|
|
157
|
+
e,
|
|
158
|
+
{
|
|
159
|
+
defineProperty(u, a, c) {
|
|
160
|
+
(!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && en();
|
|
161
|
+
var f = n.get(a);
|
|
162
|
+
return f === void 0 ? (f = q(c.value), n.set(a, f)) : V(f, ue(c.value, l)), !0;
|
|
163
|
+
},
|
|
164
|
+
deleteProperty(u, a) {
|
|
165
|
+
var c = n.get(a);
|
|
166
|
+
if (c === void 0)
|
|
167
|
+
a in u && n.set(a, q(T));
|
|
168
|
+
else {
|
|
169
|
+
if (i && typeof a == "string") {
|
|
170
|
+
var f = (
|
|
171
|
+
/** @type {Source<number>} */
|
|
172
|
+
n.get("length")
|
|
173
|
+
), d = Number(a);
|
|
174
|
+
Number.isInteger(d) && d < f.v && V(f, d);
|
|
175
|
+
}
|
|
176
|
+
V(c, T), Tt(o);
|
|
177
|
+
}
|
|
178
|
+
return !0;
|
|
179
|
+
},
|
|
180
|
+
get(u, a, c) {
|
|
181
|
+
var g;
|
|
182
|
+
if (a === Fe)
|
|
183
|
+
return e;
|
|
184
|
+
var f = n.get(a), d = a in u;
|
|
185
|
+
if (f === void 0 && (!d || (g = ne(u, a)) != null && g.writable) && (f = q(ue(d ? u[a] : T, l)), n.set(a, f)), f !== void 0) {
|
|
186
|
+
var h = y(f);
|
|
187
|
+
return h === T ? void 0 : h;
|
|
188
|
+
}
|
|
189
|
+
return Reflect.get(u, a, c);
|
|
190
|
+
},
|
|
191
|
+
getOwnPropertyDescriptor(u, a) {
|
|
192
|
+
var c = Reflect.getOwnPropertyDescriptor(u, a);
|
|
193
|
+
if (c && "value" in c) {
|
|
194
|
+
var f = n.get(a);
|
|
195
|
+
f && (c.value = y(f));
|
|
196
|
+
} else if (c === void 0) {
|
|
197
|
+
var d = n.get(a), h = d == null ? void 0 : d.v;
|
|
198
|
+
if (d !== void 0 && h !== T)
|
|
199
|
+
return {
|
|
200
|
+
enumerable: !0,
|
|
201
|
+
configurable: !0,
|
|
202
|
+
value: h,
|
|
203
|
+
writable: !0
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
return c;
|
|
207
|
+
},
|
|
208
|
+
has(u, a) {
|
|
209
|
+
var h;
|
|
210
|
+
if (a === Fe)
|
|
211
|
+
return !0;
|
|
212
|
+
var c = n.get(a), f = c !== void 0 && c.v !== T || Reflect.has(u, a);
|
|
213
|
+
if (c !== void 0 || p !== null && (!f || (h = ne(u, a)) != null && h.writable)) {
|
|
214
|
+
c === void 0 && (c = q(f ? ue(u[a], l) : T), n.set(a, c));
|
|
215
|
+
var d = y(c);
|
|
216
|
+
if (d === T)
|
|
217
|
+
return !1;
|
|
218
|
+
}
|
|
219
|
+
return f;
|
|
220
|
+
},
|
|
221
|
+
set(u, a, c, f) {
|
|
222
|
+
var L;
|
|
223
|
+
var d = n.get(a), h = a in u;
|
|
224
|
+
if (i && a === "length")
|
|
225
|
+
for (var g = c; g < /** @type {Source<number>} */
|
|
226
|
+
d.v; g += 1) {
|
|
227
|
+
var S = n.get(g + "");
|
|
228
|
+
S !== void 0 ? V(S, T) : g in u && (S = q(T), n.set(g + "", S));
|
|
229
|
+
}
|
|
230
|
+
d === void 0 ? (!h || (L = ne(u, a)) != null && L.writable) && (d = q(void 0), V(d, ue(c, l)), n.set(a, d)) : (h = d.v !== T, V(d, ue(c, l)));
|
|
231
|
+
var _ = Reflect.getOwnPropertyDescriptor(u, a);
|
|
232
|
+
if (_ != null && _.set && _.set.call(f, c), !h) {
|
|
233
|
+
if (i && typeof a == "string") {
|
|
234
|
+
var Y = (
|
|
235
|
+
/** @type {Source<number>} */
|
|
236
|
+
n.get("length")
|
|
237
|
+
), M = Number(a);
|
|
238
|
+
Number.isInteger(M) && M >= Y.v && V(Y, M + 1);
|
|
239
|
+
}
|
|
240
|
+
Tt(o);
|
|
241
|
+
}
|
|
242
|
+
return !0;
|
|
243
|
+
},
|
|
244
|
+
ownKeys(u) {
|
|
245
|
+
y(o);
|
|
246
|
+
var a = Reflect.ownKeys(u).filter((d) => {
|
|
247
|
+
var h = n.get(d);
|
|
248
|
+
return h === void 0 || h.v !== T;
|
|
249
|
+
});
|
|
250
|
+
for (var [c, f] of n)
|
|
251
|
+
f.v !== T && !(c in u) && a.push(c);
|
|
252
|
+
return a;
|
|
253
|
+
},
|
|
254
|
+
setPrototypeOf() {
|
|
255
|
+
tn();
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
function Tt(e, t = 1) {
|
|
261
|
+
V(e, e.v + t);
|
|
262
|
+
}
|
|
263
|
+
var Ot, Kt, Zt;
|
|
264
|
+
function ot() {
|
|
265
|
+
if (Ot === void 0) {
|
|
266
|
+
Ot = window;
|
|
267
|
+
var e = Element.prototype, t = Node.prototype;
|
|
268
|
+
Kt = ne(t, "firstChild").get, Zt = ne(t, "nextSibling").get, e.__click = void 0, e.__className = "", e.__attributes = null, e.__styles = null, e.__e = void 0, Text.prototype.__t = void 0;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
function vt(e = "") {
|
|
272
|
+
return document.createTextNode(e);
|
|
273
|
+
}
|
|
274
|
+
// @__NO_SIDE_EFFECTS__
|
|
275
|
+
function ge(e) {
|
|
276
|
+
return Kt.call(e);
|
|
277
|
+
}
|
|
278
|
+
// @__NO_SIDE_EFFECTS__
|
|
279
|
+
function me(e) {
|
|
280
|
+
return Zt.call(e);
|
|
281
|
+
}
|
|
282
|
+
function Jt(e, t) {
|
|
283
|
+
if (!w)
|
|
284
|
+
return /* @__PURE__ */ ge(e);
|
|
285
|
+
var r = (
|
|
286
|
+
/** @type {TemplateNode} */
|
|
287
|
+
/* @__PURE__ */ ge(m)
|
|
288
|
+
);
|
|
289
|
+
return r === null && (r = m.appendChild(vt())), Se(r), r;
|
|
290
|
+
}
|
|
291
|
+
function un(e, t) {
|
|
292
|
+
if (!w) {
|
|
293
|
+
var r = (
|
|
294
|
+
/** @type {DocumentFragment} */
|
|
295
|
+
/* @__PURE__ */ ge(
|
|
296
|
+
/** @type {Node} */
|
|
297
|
+
e
|
|
298
|
+
)
|
|
299
|
+
);
|
|
300
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ me(r) : r;
|
|
301
|
+
}
|
|
302
|
+
return m;
|
|
303
|
+
}
|
|
304
|
+
function fn(e) {
|
|
305
|
+
e.textContent = "";
|
|
306
|
+
}
|
|
307
|
+
// @__NO_SIDE_EFFECTS__
|
|
308
|
+
function W(e) {
|
|
309
|
+
var t = j | J;
|
|
310
|
+
p === null ? t |= pe : p.f |= Vt;
|
|
311
|
+
var r = $ !== null && $.f & j ? (
|
|
312
|
+
/** @type {Derived} */
|
|
313
|
+
$
|
|
314
|
+
) : null;
|
|
315
|
+
const s = {
|
|
316
|
+
children: null,
|
|
317
|
+
ctx: k,
|
|
318
|
+
deps: null,
|
|
319
|
+
equals: Yt,
|
|
320
|
+
f: t,
|
|
321
|
+
fn: e,
|
|
322
|
+
reactions: null,
|
|
323
|
+
rv: 0,
|
|
324
|
+
v: (
|
|
325
|
+
/** @type {V} */
|
|
326
|
+
null
|
|
327
|
+
),
|
|
328
|
+
wv: 0,
|
|
329
|
+
parent: r ?? p
|
|
330
|
+
};
|
|
331
|
+
return r !== null && (r.children ?? (r.children = [])).push(s), s;
|
|
332
|
+
}
|
|
333
|
+
// @__NO_SIDE_EFFECTS__
|
|
334
|
+
function cn(e) {
|
|
335
|
+
const t = /* @__PURE__ */ W(e);
|
|
336
|
+
return t.equals = dt, t;
|
|
337
|
+
}
|
|
338
|
+
function Qt(e) {
|
|
339
|
+
var t = e.children;
|
|
340
|
+
if (t !== null) {
|
|
341
|
+
e.children = null;
|
|
342
|
+
for (var r = 0; r < t.length; r += 1) {
|
|
343
|
+
var s = t[r];
|
|
344
|
+
s.f & j ? gt(
|
|
345
|
+
/** @type {Derived} */
|
|
346
|
+
s
|
|
347
|
+
) : K(
|
|
348
|
+
/** @type {Effect} */
|
|
349
|
+
s
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
function dn(e) {
|
|
355
|
+
for (var t = e.parent; t !== null; ) {
|
|
356
|
+
if (!(t.f & j))
|
|
357
|
+
return (
|
|
358
|
+
/** @type {Effect} */
|
|
359
|
+
t
|
|
360
|
+
);
|
|
361
|
+
t = t.parent;
|
|
362
|
+
}
|
|
363
|
+
return null;
|
|
364
|
+
}
|
|
365
|
+
function er(e) {
|
|
366
|
+
var t, r = p;
|
|
367
|
+
ee(dn(e));
|
|
368
|
+
try {
|
|
369
|
+
Qt(e), t = hr(e);
|
|
370
|
+
} finally {
|
|
371
|
+
ee(r);
|
|
372
|
+
}
|
|
373
|
+
return t;
|
|
374
|
+
}
|
|
375
|
+
function tr(e) {
|
|
376
|
+
var t = er(e), r = (re || e.f & pe) && e.deps !== null ? be : A;
|
|
377
|
+
U(e, r), e.equals(t) || (e.v = t, e.wv = cr());
|
|
378
|
+
}
|
|
379
|
+
function gt(e) {
|
|
380
|
+
Qt(e), Te(e, 0), U(e, ye), e.v = e.children = e.deps = e.ctx = e.reactions = null;
|
|
381
|
+
}
|
|
382
|
+
function hn(e, t) {
|
|
383
|
+
var r = t.last;
|
|
384
|
+
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
385
|
+
}
|
|
386
|
+
function $e(e, t, r, s = !0) {
|
|
387
|
+
var n = (e & ie) !== 0, i = p, o = {
|
|
388
|
+
ctx: k,
|
|
389
|
+
deps: null,
|
|
390
|
+
deriveds: null,
|
|
391
|
+
nodes_start: null,
|
|
392
|
+
nodes_end: null,
|
|
393
|
+
f: e | J,
|
|
394
|
+
first: null,
|
|
395
|
+
fn: t,
|
|
396
|
+
last: null,
|
|
397
|
+
next: null,
|
|
398
|
+
parent: n ? null : i,
|
|
399
|
+
prev: null,
|
|
400
|
+
teardown: null,
|
|
401
|
+
transitions: null,
|
|
402
|
+
wv: 0
|
|
403
|
+
};
|
|
404
|
+
if (r) {
|
|
405
|
+
var l = ce;
|
|
406
|
+
try {
|
|
407
|
+
Lt(!0), bt(o), o.f |= Yr;
|
|
408
|
+
} catch (c) {
|
|
409
|
+
throw K(o), c;
|
|
410
|
+
} finally {
|
|
411
|
+
Lt(l);
|
|
412
|
+
}
|
|
413
|
+
} else t !== null && Je(o);
|
|
414
|
+
var u = r && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (Vt | ze)) === 0;
|
|
415
|
+
if (!u && !n && s && (i !== null && hn(o, i), $ !== null && $.f & j)) {
|
|
416
|
+
var a = (
|
|
417
|
+
/** @type {Derived} */
|
|
418
|
+
$
|
|
419
|
+
);
|
|
420
|
+
(a.children ?? (a.children = [])).push(o);
|
|
421
|
+
}
|
|
422
|
+
return o;
|
|
423
|
+
}
|
|
424
|
+
function vn(e) {
|
|
425
|
+
const t = $e(ie, e, !0);
|
|
426
|
+
return () => {
|
|
427
|
+
K(t);
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
function gn(e) {
|
|
431
|
+
const t = $e(ie, e, !0);
|
|
432
|
+
return (r = {}) => new Promise((s) => {
|
|
433
|
+
r.outro ? lt(t, () => {
|
|
434
|
+
K(t), s(void 0);
|
|
435
|
+
}) : (K(t), s(void 0));
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
function _n(e) {
|
|
439
|
+
return $e(qt, e, !1);
|
|
440
|
+
}
|
|
441
|
+
function pn(e) {
|
|
442
|
+
return $e(We, e, !0);
|
|
443
|
+
}
|
|
444
|
+
function _t(e) {
|
|
445
|
+
return pt(e);
|
|
446
|
+
}
|
|
447
|
+
function pt(e, t = 0) {
|
|
448
|
+
return $e(We | ct | t, e, !0);
|
|
449
|
+
}
|
|
450
|
+
function qe(e, t = !0) {
|
|
451
|
+
return $e(We | Z, e, !0, t);
|
|
452
|
+
}
|
|
453
|
+
function rr(e) {
|
|
454
|
+
var t = e.teardown;
|
|
455
|
+
if (t !== null) {
|
|
456
|
+
const r = $;
|
|
457
|
+
_e(null);
|
|
458
|
+
try {
|
|
459
|
+
t.call(null);
|
|
460
|
+
} finally {
|
|
461
|
+
_e(r);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
function nr(e) {
|
|
466
|
+
var t = e.deriveds;
|
|
467
|
+
if (t !== null) {
|
|
468
|
+
e.deriveds = null;
|
|
469
|
+
for (var r = 0; r < t.length; r += 1)
|
|
470
|
+
gt(t[r]);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
function sr(e, t = !1) {
|
|
474
|
+
var r = e.first;
|
|
475
|
+
for (e.first = e.last = null; r !== null; ) {
|
|
476
|
+
var s = r.next;
|
|
477
|
+
K(r, t), r = s;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
function bn(e) {
|
|
481
|
+
for (var t = e.first; t !== null; ) {
|
|
482
|
+
var r = t.next;
|
|
483
|
+
t.f & Z || K(t), t = r;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
function K(e, t = !0) {
|
|
487
|
+
var r = !1;
|
|
488
|
+
if ((t || e.f & Xr) && e.nodes_start !== null) {
|
|
489
|
+
for (var s = e.nodes_start, n = e.nodes_end; s !== null; ) {
|
|
490
|
+
var i = s === n ? null : (
|
|
491
|
+
/** @type {TemplateNode} */
|
|
492
|
+
/* @__PURE__ */ me(s)
|
|
493
|
+
);
|
|
494
|
+
s.remove(), s = i;
|
|
495
|
+
}
|
|
496
|
+
r = !0;
|
|
497
|
+
}
|
|
498
|
+
sr(e, t && !r), nr(e), Te(e, 0), U(e, ye);
|
|
499
|
+
var o = e.transitions;
|
|
500
|
+
if (o !== null)
|
|
501
|
+
for (const u of o)
|
|
502
|
+
u.stop();
|
|
503
|
+
rr(e);
|
|
504
|
+
var l = e.parent;
|
|
505
|
+
l !== null && l.first !== null && ir(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null;
|
|
506
|
+
}
|
|
507
|
+
function ir(e) {
|
|
508
|
+
var t = e.parent, r = e.prev, s = e.next;
|
|
509
|
+
r !== null && (r.next = s), s !== null && (s.prev = r), t !== null && (t.first === e && (t.first = s), t.last === e && (t.last = r));
|
|
510
|
+
}
|
|
511
|
+
function lt(e, t) {
|
|
512
|
+
var r = [];
|
|
513
|
+
or(e, r, !0), yn(r, () => {
|
|
514
|
+
K(e), t && t();
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
function yn(e, t) {
|
|
518
|
+
var r = e.length;
|
|
519
|
+
if (r > 0) {
|
|
520
|
+
var s = () => --r || t();
|
|
521
|
+
for (var n of e)
|
|
522
|
+
n.out(s);
|
|
523
|
+
} else
|
|
524
|
+
t();
|
|
525
|
+
}
|
|
526
|
+
function or(e, t, r) {
|
|
527
|
+
if (!(e.f & ve)) {
|
|
528
|
+
if (e.f ^= ve, e.transitions !== null)
|
|
529
|
+
for (const o of e.transitions)
|
|
530
|
+
(o.is_global || r) && t.push(o);
|
|
531
|
+
for (var s = e.first; s !== null; ) {
|
|
532
|
+
var n = s.next, i = (s.f & Xe) !== 0 || (s.f & Z) !== 0;
|
|
533
|
+
or(s, t, i ? r : !1), s = n;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
function At(e) {
|
|
538
|
+
lr(e, !0);
|
|
539
|
+
}
|
|
540
|
+
function lr(e, t) {
|
|
541
|
+
if (e.f & ve) {
|
|
542
|
+
e.f ^= ve, e.f & A || (e.f ^= A), Ne(e) && (U(e, J), Je(e));
|
|
543
|
+
for (var r = e.first; r !== null; ) {
|
|
544
|
+
var s = r.next, n = (r.f & Xe) !== 0 || (r.f & Z) !== 0;
|
|
545
|
+
lr(r, n ? t : !1), r = s;
|
|
546
|
+
}
|
|
547
|
+
if (e.transitions !== null)
|
|
548
|
+
for (const i of e.transitions)
|
|
549
|
+
(i.is_global || t) && i.in();
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
let Ve = !1, at = [];
|
|
553
|
+
function ar() {
|
|
554
|
+
Ve = !1;
|
|
555
|
+
const e = at.slice();
|
|
556
|
+
at = [], Ur(e);
|
|
557
|
+
}
|
|
558
|
+
function mn(e) {
|
|
559
|
+
Ve || (Ve = !0, queueMicrotask(ar)), at.push(e);
|
|
560
|
+
}
|
|
561
|
+
function $n() {
|
|
562
|
+
Ve && ar();
|
|
563
|
+
}
|
|
564
|
+
const ur = 0, xn = 1;
|
|
565
|
+
let Re = !1, je = ur, ke = !1, Ee = null, ce = !1;
|
|
566
|
+
function Lt(e) {
|
|
567
|
+
ce = e;
|
|
568
|
+
}
|
|
569
|
+
let te = [], de = 0;
|
|
570
|
+
let $ = null;
|
|
571
|
+
function _e(e) {
|
|
572
|
+
$ = e;
|
|
573
|
+
}
|
|
574
|
+
let p = null;
|
|
575
|
+
function ee(e) {
|
|
576
|
+
p = e;
|
|
577
|
+
}
|
|
578
|
+
let se = null, O = null, N = 0, X = null;
|
|
579
|
+
function wn(e) {
|
|
580
|
+
X = e;
|
|
581
|
+
}
|
|
582
|
+
let fr = 1, Ue = 0, re = !1, k = null;
|
|
583
|
+
function cr() {
|
|
584
|
+
return ++fr;
|
|
585
|
+
}
|
|
586
|
+
function Ke() {
|
|
587
|
+
return !Le || k !== null && k.l === null;
|
|
588
|
+
}
|
|
589
|
+
function Ne(e) {
|
|
590
|
+
var a;
|
|
591
|
+
var t = e.f;
|
|
592
|
+
if (t & J)
|
|
593
|
+
return !0;
|
|
594
|
+
if (t & be) {
|
|
595
|
+
var r = e.deps, s = (t & pe) !== 0;
|
|
596
|
+
if (r !== null) {
|
|
597
|
+
var n, i, o = (t & He) !== 0, l = s && p !== null && !re, u = r.length;
|
|
598
|
+
if (o || l) {
|
|
599
|
+
for (n = 0; n < u; n++)
|
|
600
|
+
i = r[n], (o || !((a = i == null ? void 0 : i.reactions) != null && a.includes(e))) && (i.reactions ?? (i.reactions = [])).push(e);
|
|
601
|
+
o && (e.f ^= He);
|
|
602
|
+
}
|
|
603
|
+
for (n = 0; n < u; n++)
|
|
604
|
+
if (i = r[n], Ne(
|
|
605
|
+
/** @type {Derived} */
|
|
606
|
+
i
|
|
607
|
+
) && tr(
|
|
608
|
+
/** @type {Derived} */
|
|
609
|
+
i
|
|
610
|
+
), i.wv > e.wv)
|
|
611
|
+
return !0;
|
|
612
|
+
}
|
|
613
|
+
(!s || p !== null && !re) && U(e, A);
|
|
614
|
+
}
|
|
615
|
+
return !1;
|
|
616
|
+
}
|
|
617
|
+
function Sn(e, t) {
|
|
618
|
+
for (var r = t; r !== null; ) {
|
|
619
|
+
if (r.f & ze)
|
|
620
|
+
try {
|
|
621
|
+
r.fn(e);
|
|
622
|
+
return;
|
|
623
|
+
} catch {
|
|
624
|
+
r.f ^= ze;
|
|
625
|
+
}
|
|
626
|
+
r = r.parent;
|
|
627
|
+
}
|
|
628
|
+
throw Re = !1, e;
|
|
629
|
+
}
|
|
630
|
+
function kn(e) {
|
|
631
|
+
return (e.f & ye) === 0 && (e.parent === null || (e.parent.f & ze) === 0);
|
|
632
|
+
}
|
|
633
|
+
function Ze(e, t, r, s) {
|
|
634
|
+
if (Re) {
|
|
635
|
+
if (r === null && (Re = !1), kn(t))
|
|
636
|
+
throw e;
|
|
637
|
+
return;
|
|
638
|
+
}
|
|
639
|
+
r !== null && (Re = !0);
|
|
640
|
+
{
|
|
641
|
+
Sn(e, t);
|
|
642
|
+
return;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
function dr(e, t, r = 0) {
|
|
646
|
+
var s = e.reactions;
|
|
647
|
+
if (s !== null)
|
|
648
|
+
for (var n = 0; n < s.length; n++) {
|
|
649
|
+
var i = s[n];
|
|
650
|
+
i.f & j ? dr(
|
|
651
|
+
/** @type {Derived} */
|
|
652
|
+
i,
|
|
653
|
+
t,
|
|
654
|
+
r + 1
|
|
655
|
+
) : t === i && (r === 0 ? U(i, J) : i.f & A && U(i, be), Je(
|
|
656
|
+
/** @type {Effect} */
|
|
657
|
+
i
|
|
658
|
+
));
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
function hr(e) {
|
|
662
|
+
var d;
|
|
663
|
+
var t = O, r = N, s = X, n = $, i = re, o = se, l = k, u = e.f;
|
|
664
|
+
O = /** @type {null | Value[]} */
|
|
665
|
+
null, N = 0, X = null, $ = u & (Z | ie) ? null : e, re = !ce && (u & pe) !== 0, se = null, k = e.ctx, Ue++;
|
|
666
|
+
try {
|
|
667
|
+
var a = (
|
|
668
|
+
/** @type {Function} */
|
|
669
|
+
(0, e.fn)()
|
|
670
|
+
), c = e.deps;
|
|
671
|
+
if (O !== null) {
|
|
672
|
+
var f;
|
|
673
|
+
if (Te(e, N), c !== null && N > 0)
|
|
674
|
+
for (c.length = N + O.length, f = 0; f < O.length; f++)
|
|
675
|
+
c[N + f] = O[f];
|
|
676
|
+
else
|
|
677
|
+
e.deps = c = O;
|
|
678
|
+
if (!re)
|
|
679
|
+
for (f = N; f < c.length; f++)
|
|
680
|
+
((d = c[f]).reactions ?? (d.reactions = [])).push(e);
|
|
681
|
+
} else c !== null && N < c.length && (Te(e, N), c.length = N);
|
|
682
|
+
if (Ke() && X !== null && !(e.f & (j | be | J)))
|
|
683
|
+
for (f = 0; f < /** @type {Source[]} */
|
|
684
|
+
X.length; f++)
|
|
685
|
+
dr(
|
|
686
|
+
X[f],
|
|
687
|
+
/** @type {Effect} */
|
|
688
|
+
e
|
|
689
|
+
);
|
|
690
|
+
return n !== null && Ue++, a;
|
|
691
|
+
} finally {
|
|
692
|
+
O = t, N = r, X = s, $ = n, re = i, se = o, k = l;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
function En(e, t) {
|
|
696
|
+
let r = t.reactions;
|
|
697
|
+
if (r !== null) {
|
|
698
|
+
var s = Br.call(r, e);
|
|
699
|
+
if (s !== -1) {
|
|
700
|
+
var n = r.length - 1;
|
|
701
|
+
n === 0 ? r = t.reactions = null : (r[s] = r[n], r.pop());
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
r === null && t.f & j && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
705
|
+
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
706
|
+
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
707
|
+
(O === null || !O.includes(t)) && (U(t, be), t.f & (pe | He) || (t.f ^= He), Te(
|
|
708
|
+
/** @type {Derived} **/
|
|
709
|
+
t,
|
|
710
|
+
0
|
|
711
|
+
));
|
|
712
|
+
}
|
|
713
|
+
function Te(e, t) {
|
|
714
|
+
var r = e.deps;
|
|
715
|
+
if (r !== null)
|
|
716
|
+
for (var s = t; s < r.length; s++)
|
|
717
|
+
En(e, r[s]);
|
|
718
|
+
}
|
|
719
|
+
function bt(e) {
|
|
720
|
+
var t = e.f;
|
|
721
|
+
if (!(t & ye)) {
|
|
722
|
+
U(e, A);
|
|
723
|
+
var r = p, s = k;
|
|
724
|
+
p = e;
|
|
725
|
+
try {
|
|
726
|
+
t & ct ? bn(e) : sr(e), nr(e), rr(e);
|
|
727
|
+
var n = hr(e);
|
|
728
|
+
e.teardown = typeof n == "function" ? n : null, e.wv = fr;
|
|
729
|
+
var i = e.deps, o;
|
|
730
|
+
it && sn && e.f & J;
|
|
731
|
+
} catch (l) {
|
|
732
|
+
Ze(l, e, r, s || e.ctx);
|
|
733
|
+
} finally {
|
|
734
|
+
p = r;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
function vr() {
|
|
739
|
+
if (de > 1e3) {
|
|
740
|
+
de = 0;
|
|
741
|
+
try {
|
|
742
|
+
Zr();
|
|
743
|
+
} catch (e) {
|
|
744
|
+
if (Ee !== null)
|
|
745
|
+
Ze(e, Ee, null);
|
|
746
|
+
else
|
|
747
|
+
throw e;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
de++;
|
|
751
|
+
}
|
|
752
|
+
function gr(e) {
|
|
753
|
+
var t = e.length;
|
|
754
|
+
if (t !== 0) {
|
|
755
|
+
vr();
|
|
756
|
+
var r = ce;
|
|
757
|
+
ce = !0;
|
|
758
|
+
try {
|
|
759
|
+
for (var s = 0; s < t; s++) {
|
|
760
|
+
var n = e[s];
|
|
761
|
+
n.f & A || (n.f ^= A);
|
|
762
|
+
var i = [];
|
|
763
|
+
_r(n, i), Tn(i);
|
|
764
|
+
}
|
|
765
|
+
} finally {
|
|
766
|
+
ce = r;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
function Tn(e) {
|
|
771
|
+
var t = e.length;
|
|
772
|
+
if (t !== 0)
|
|
773
|
+
for (var r = 0; r < t; r++) {
|
|
774
|
+
var s = e[r];
|
|
775
|
+
if (!(s.f & (ye | ve)))
|
|
776
|
+
try {
|
|
777
|
+
Ne(s) && (bt(s), s.deps === null && s.first === null && s.nodes_start === null && (s.teardown === null ? ir(s) : s.fn = null));
|
|
778
|
+
} catch (n) {
|
|
779
|
+
Ze(n, s, null, s.ctx);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
function On() {
|
|
784
|
+
if (ke = !1, de > 1001)
|
|
785
|
+
return;
|
|
786
|
+
const e = te;
|
|
787
|
+
te = [], gr(e), ke || (de = 0, Ee = null);
|
|
788
|
+
}
|
|
789
|
+
function Je(e) {
|
|
790
|
+
je === ur && (ke || (ke = !0, queueMicrotask(On))), Ee = e;
|
|
791
|
+
for (var t = e; t.parent !== null; ) {
|
|
792
|
+
t = t.parent;
|
|
793
|
+
var r = t.f;
|
|
794
|
+
if (r & (ie | Z)) {
|
|
795
|
+
if (!(r & A)) return;
|
|
796
|
+
t.f ^= A;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
te.push(t);
|
|
800
|
+
}
|
|
801
|
+
function _r(e, t) {
|
|
802
|
+
var r = e.first, s = [];
|
|
803
|
+
e: for (; r !== null; ) {
|
|
804
|
+
var n = r.f, i = (n & Z) !== 0, o = i && (n & A) !== 0, l = r.next;
|
|
805
|
+
if (!o && !(n & ve))
|
|
806
|
+
if (n & We) {
|
|
807
|
+
if (i)
|
|
808
|
+
r.f ^= A;
|
|
809
|
+
else
|
|
810
|
+
try {
|
|
811
|
+
Ne(r) && bt(r);
|
|
812
|
+
} catch (f) {
|
|
813
|
+
Ze(f, r, null, r.ctx);
|
|
814
|
+
}
|
|
815
|
+
var u = r.first;
|
|
816
|
+
if (u !== null) {
|
|
817
|
+
r = u;
|
|
818
|
+
continue;
|
|
819
|
+
}
|
|
820
|
+
} else n & qt && s.push(r);
|
|
821
|
+
if (l === null) {
|
|
822
|
+
let f = r.parent;
|
|
823
|
+
for (; f !== null; ) {
|
|
824
|
+
if (e === f)
|
|
825
|
+
break e;
|
|
826
|
+
var a = f.next;
|
|
827
|
+
if (a !== null) {
|
|
828
|
+
r = a;
|
|
829
|
+
continue e;
|
|
830
|
+
}
|
|
831
|
+
f = f.parent;
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
r = l;
|
|
835
|
+
}
|
|
836
|
+
for (var c = 0; c < s.length; c++)
|
|
837
|
+
u = s[c], t.push(u), _r(u, t);
|
|
838
|
+
}
|
|
839
|
+
function D(e) {
|
|
840
|
+
var t = je, r = te;
|
|
841
|
+
try {
|
|
842
|
+
vr();
|
|
843
|
+
const n = [];
|
|
844
|
+
je = xn, te = n, ke = !1, gr(r);
|
|
845
|
+
var s = e == null ? void 0 : e();
|
|
846
|
+
return $n(), (te.length > 0 || n.length > 0) && D(), de = 0, Ee = null, s;
|
|
847
|
+
} finally {
|
|
848
|
+
je = t, te = r;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
function y(e) {
|
|
852
|
+
var c;
|
|
853
|
+
var t = e.f, r = (t & j) !== 0;
|
|
854
|
+
if (r && t & ye) {
|
|
855
|
+
var s = er(
|
|
856
|
+
/** @type {Derived} */
|
|
857
|
+
e
|
|
858
|
+
);
|
|
859
|
+
return gt(
|
|
860
|
+
/** @type {Derived} */
|
|
861
|
+
e
|
|
862
|
+
), s;
|
|
863
|
+
}
|
|
864
|
+
if ($ !== null) {
|
|
865
|
+
se !== null && se.includes(e) && rn();
|
|
866
|
+
var n = $.deps;
|
|
867
|
+
e.rv < Ue && (e.rv = Ue, O === null && n !== null && n[N] === e ? N++ : O === null ? O = [e] : O.push(e));
|
|
868
|
+
} else if (r && /** @type {Derived} */
|
|
869
|
+
e.deps === null)
|
|
870
|
+
for (var i = (
|
|
871
|
+
/** @type {Derived} */
|
|
872
|
+
e
|
|
873
|
+
), o = i.parent, l = i; o !== null; )
|
|
874
|
+
if (o.f & j) {
|
|
875
|
+
var u = (
|
|
876
|
+
/** @type {Derived} */
|
|
877
|
+
o
|
|
878
|
+
);
|
|
879
|
+
l = u, o = u.parent;
|
|
880
|
+
} else {
|
|
881
|
+
var a = (
|
|
882
|
+
/** @type {Effect} */
|
|
883
|
+
o
|
|
884
|
+
);
|
|
885
|
+
(c = a.deriveds) != null && c.includes(l) || (a.deriveds ?? (a.deriveds = [])).push(l);
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
return r && (i = /** @type {Derived} */
|
|
889
|
+
e, Ne(i) && tr(i)), e.v;
|
|
890
|
+
}
|
|
891
|
+
function Nt(e) {
|
|
892
|
+
const t = $;
|
|
893
|
+
try {
|
|
894
|
+
return $ = null, e();
|
|
895
|
+
} finally {
|
|
896
|
+
$ = t;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
const An = -7169;
|
|
900
|
+
function U(e, t) {
|
|
901
|
+
e.f = e.f & An | t;
|
|
902
|
+
}
|
|
903
|
+
function Qe(e, t = !1, r) {
|
|
904
|
+
k = {
|
|
905
|
+
p: k,
|
|
906
|
+
c: null,
|
|
907
|
+
e: null,
|
|
908
|
+
m: !1,
|
|
909
|
+
s: e,
|
|
910
|
+
x: null,
|
|
911
|
+
l: null
|
|
912
|
+
}, Le && !t && (k.l = {
|
|
913
|
+
s: null,
|
|
914
|
+
u: null,
|
|
915
|
+
r1: [],
|
|
916
|
+
r2: q(!1)
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
function et(e) {
|
|
920
|
+
const t = k;
|
|
921
|
+
if (t !== null) {
|
|
922
|
+
e !== void 0 && (t.x = e);
|
|
923
|
+
const o = t.e;
|
|
924
|
+
if (o !== null) {
|
|
925
|
+
var r = p, s = $;
|
|
926
|
+
t.e = null;
|
|
927
|
+
try {
|
|
928
|
+
for (var n = 0; n < o.length; n++) {
|
|
929
|
+
var i = o[n];
|
|
930
|
+
ee(i.effect), _e(i.reaction), _n(i.fn);
|
|
931
|
+
}
|
|
932
|
+
} finally {
|
|
933
|
+
ee(r), _e(s);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
k = t.p, t.m = !0;
|
|
937
|
+
}
|
|
938
|
+
return e || /** @type {T} */
|
|
939
|
+
{};
|
|
940
|
+
}
|
|
941
|
+
const pr = /* @__PURE__ */ new Set(), ut = /* @__PURE__ */ new Set();
|
|
942
|
+
function Ln(e) {
|
|
943
|
+
for (var t = 0; t < e.length; t++)
|
|
944
|
+
pr.add(e[t]);
|
|
945
|
+
for (var r of ut)
|
|
946
|
+
r(e);
|
|
947
|
+
}
|
|
948
|
+
function De(e) {
|
|
949
|
+
var M;
|
|
950
|
+
var t = this, r = (
|
|
951
|
+
/** @type {Node} */
|
|
952
|
+
t.ownerDocument
|
|
953
|
+
), s = e.type, n = ((M = e.composedPath) == null ? void 0 : M.call(e)) || [], i = (
|
|
954
|
+
/** @type {null | Element} */
|
|
955
|
+
n[0] || e.target
|
|
956
|
+
), o = 0, l = e.__root;
|
|
957
|
+
if (l) {
|
|
958
|
+
var u = n.indexOf(l);
|
|
959
|
+
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
960
|
+
window)) {
|
|
961
|
+
e.__root = t;
|
|
962
|
+
return;
|
|
963
|
+
}
|
|
964
|
+
var a = n.indexOf(t);
|
|
965
|
+
if (a === -1)
|
|
966
|
+
return;
|
|
967
|
+
u <= a && (o = u);
|
|
968
|
+
}
|
|
969
|
+
if (i = /** @type {Element} */
|
|
970
|
+
n[o] || e.target, i !== t) {
|
|
971
|
+
Be(e, "currentTarget", {
|
|
972
|
+
configurable: !0,
|
|
973
|
+
get() {
|
|
974
|
+
return i || r;
|
|
975
|
+
}
|
|
976
|
+
});
|
|
977
|
+
var c = $, f = p;
|
|
978
|
+
_e(null), ee(null);
|
|
979
|
+
try {
|
|
980
|
+
for (var d, h = []; i !== null; ) {
|
|
981
|
+
var g = i.assignedSlot || i.parentNode || /** @type {any} */
|
|
982
|
+
i.host || null;
|
|
983
|
+
try {
|
|
984
|
+
var S = i["__" + s];
|
|
985
|
+
if (S !== void 0 && !/** @type {any} */
|
|
986
|
+
i.disabled)
|
|
987
|
+
if (Bt(S)) {
|
|
988
|
+
var [_, ...Y] = S;
|
|
989
|
+
_.apply(i, [e, ...Y]);
|
|
990
|
+
} else
|
|
991
|
+
S.call(i, e);
|
|
992
|
+
} catch (L) {
|
|
993
|
+
d ? h.push(L) : d = L;
|
|
994
|
+
}
|
|
995
|
+
if (e.cancelBubble || g === t || g === null)
|
|
996
|
+
break;
|
|
997
|
+
i = g;
|
|
998
|
+
}
|
|
999
|
+
if (d) {
|
|
1000
|
+
for (let L of h)
|
|
1001
|
+
queueMicrotask(() => {
|
|
1002
|
+
throw L;
|
|
1003
|
+
});
|
|
1004
|
+
throw d;
|
|
1005
|
+
}
|
|
1006
|
+
} finally {
|
|
1007
|
+
e.__root = t, delete e.currentTarget, _e(c), ee(f);
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
function Nn(e) {
|
|
1012
|
+
var t = document.createElement("template");
|
|
1013
|
+
return t.innerHTML = e, t.content;
|
|
1014
|
+
}
|
|
1015
|
+
function he(e, t) {
|
|
1016
|
+
var r = (
|
|
1017
|
+
/** @type {Effect} */
|
|
1018
|
+
p
|
|
1019
|
+
);
|
|
1020
|
+
r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t);
|
|
1021
|
+
}
|
|
1022
|
+
// @__NO_SIDE_EFFECTS__
|
|
1023
|
+
function yt(e, t) {
|
|
1024
|
+
var r = (t & jr) !== 0, s = (t & Pr) !== 0, n, i = !e.startsWith("<!>");
|
|
1025
|
+
return () => {
|
|
1026
|
+
if (w)
|
|
1027
|
+
return he(m, null), m;
|
|
1028
|
+
n === void 0 && (n = Nn(i ? e : "<!>" + e), r || (n = /** @type {Node} */
|
|
1029
|
+
/* @__PURE__ */ ge(n)));
|
|
1030
|
+
var o = (
|
|
1031
|
+
/** @type {TemplateNode} */
|
|
1032
|
+
s ? document.importNode(n, !0) : n.cloneNode(!0)
|
|
1033
|
+
);
|
|
1034
|
+
if (r) {
|
|
1035
|
+
var l = (
|
|
1036
|
+
/** @type {TemplateNode} */
|
|
1037
|
+
/* @__PURE__ */ ge(o)
|
|
1038
|
+
), u = (
|
|
1039
|
+
/** @type {TemplateNode} */
|
|
1040
|
+
o.lastChild
|
|
1041
|
+
);
|
|
1042
|
+
he(l, u);
|
|
1043
|
+
} else
|
|
1044
|
+
he(o, o);
|
|
1045
|
+
return o;
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
function Dn() {
|
|
1049
|
+
if (w)
|
|
1050
|
+
return he(m, null), m;
|
|
1051
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = vt();
|
|
1052
|
+
return e.append(t, r), he(t, r), e;
|
|
1053
|
+
}
|
|
1054
|
+
function Oe(e, t) {
|
|
1055
|
+
if (w) {
|
|
1056
|
+
p.nodes_end = m, Ge();
|
|
1057
|
+
return;
|
|
1058
|
+
}
|
|
1059
|
+
e !== null && e.before(
|
|
1060
|
+
/** @type {Node} */
|
|
1061
|
+
t
|
|
1062
|
+
);
|
|
1063
|
+
}
|
|
1064
|
+
function br(e, t) {
|
|
1065
|
+
return yr(e, t);
|
|
1066
|
+
}
|
|
1067
|
+
function In(e, t) {
|
|
1068
|
+
ot(), t.intro = t.intro ?? !1;
|
|
1069
|
+
const r = t.target, s = w, n = m;
|
|
1070
|
+
try {
|
|
1071
|
+
for (var i = (
|
|
1072
|
+
/** @type {TemplateNode} */
|
|
1073
|
+
/* @__PURE__ */ ge(r)
|
|
1074
|
+
); i && (i.nodeType !== 8 || /** @type {Comment} */
|
|
1075
|
+
i.data !== Pt); )
|
|
1076
|
+
i = /** @type {TemplateNode} */
|
|
1077
|
+
/* @__PURE__ */ me(i);
|
|
1078
|
+
if (!i)
|
|
1079
|
+
throw we;
|
|
1080
|
+
fe(!0), Se(
|
|
1081
|
+
/** @type {Comment} */
|
|
1082
|
+
i
|
|
1083
|
+
), Ge();
|
|
1084
|
+
const o = yr(e, { ...t, anchor: i });
|
|
1085
|
+
if (m === null || m.nodeType !== 8 || /** @type {Comment} */
|
|
1086
|
+
m.data !== Ct)
|
|
1087
|
+
throw ht(), we;
|
|
1088
|
+
return fe(!1), /** @type {Exports} */
|
|
1089
|
+
o;
|
|
1090
|
+
} catch (o) {
|
|
1091
|
+
if (o === we)
|
|
1092
|
+
return t.recover === !1 && Jr(), ot(), fn(r), fe(!1), br(e, t);
|
|
1093
|
+
throw o;
|
|
1094
|
+
} finally {
|
|
1095
|
+
fe(s), Se(n);
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
const ae = /* @__PURE__ */ new Map();
|
|
1099
|
+
function yr(e, { target: t, anchor: r, props: s = {}, events: n, context: i, intro: o = !0 }) {
|
|
1100
|
+
ot();
|
|
1101
|
+
var l = /* @__PURE__ */ new Set(), u = (f) => {
|
|
1102
|
+
for (var d = 0; d < f.length; d++) {
|
|
1103
|
+
var h = f[d];
|
|
1104
|
+
if (!l.has(h)) {
|
|
1105
|
+
l.add(h);
|
|
1106
|
+
var g = Cr(h);
|
|
1107
|
+
t.addEventListener(h, De, { passive: g });
|
|
1108
|
+
var S = ae.get(h);
|
|
1109
|
+
S === void 0 ? (document.addEventListener(h, De, { passive: g }), ae.set(h, 1)) : ae.set(h, S + 1);
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
u(zr(pr)), ut.add(u);
|
|
1114
|
+
var a = void 0, c = gn(() => {
|
|
1115
|
+
var f = r ?? t.appendChild(vt());
|
|
1116
|
+
return qe(() => {
|
|
1117
|
+
if (i) {
|
|
1118
|
+
Qe({});
|
|
1119
|
+
var d = (
|
|
1120
|
+
/** @type {ComponentContext} */
|
|
1121
|
+
k
|
|
1122
|
+
);
|
|
1123
|
+
d.c = i;
|
|
1124
|
+
}
|
|
1125
|
+
n && (s.$$events = n), w && he(
|
|
1126
|
+
/** @type {TemplateNode} */
|
|
1127
|
+
f,
|
|
1128
|
+
null
|
|
1129
|
+
), a = e(f, s) || {}, w && (p.nodes_end = m), i && et();
|
|
1130
|
+
}), () => {
|
|
1131
|
+
var g;
|
|
1132
|
+
for (var d of l) {
|
|
1133
|
+
t.removeEventListener(d, De);
|
|
1134
|
+
var h = (
|
|
1135
|
+
/** @type {number} */
|
|
1136
|
+
ae.get(d)
|
|
1137
|
+
);
|
|
1138
|
+
--h === 0 ? (document.removeEventListener(d, De), ae.delete(d)) : ae.set(d, h);
|
|
1139
|
+
}
|
|
1140
|
+
ut.delete(u), f !== r && ((g = f.parentNode) == null || g.removeChild(f));
|
|
1141
|
+
};
|
|
1142
|
+
});
|
|
1143
|
+
return ft.set(a, c), a;
|
|
1144
|
+
}
|
|
1145
|
+
let ft = /* @__PURE__ */ new WeakMap();
|
|
1146
|
+
function Fn(e, t) {
|
|
1147
|
+
const r = ft.get(e);
|
|
1148
|
+
return r ? (ft.delete(e), r(t)) : Promise.resolve();
|
|
1149
|
+
}
|
|
1150
|
+
function Rn(e, t, r = !1) {
|
|
1151
|
+
w && Ge();
|
|
1152
|
+
var s = e, n = null, i = null, o = T, l = r ? Xe : 0, u = !1;
|
|
1153
|
+
const a = (f, d = !0) => {
|
|
1154
|
+
u = !0, c(d, f);
|
|
1155
|
+
}, c = (f, d) => {
|
|
1156
|
+
if (o === (o = f)) return;
|
|
1157
|
+
let h = !1;
|
|
1158
|
+
if (w) {
|
|
1159
|
+
const g = (
|
|
1160
|
+
/** @type {Comment} */
|
|
1161
|
+
s.data === Mt
|
|
1162
|
+
);
|
|
1163
|
+
!!o === g && (s = an(), Se(s), fe(!1), h = !0);
|
|
1164
|
+
}
|
|
1165
|
+
o ? (n ? At(n) : d && (n = qe(() => d(s))), i && lt(i, () => {
|
|
1166
|
+
i = null;
|
|
1167
|
+
})) : (i ? At(i) : d && (i = qe(() => d(s))), n && lt(n, () => {
|
|
1168
|
+
n = null;
|
|
1169
|
+
})), h && fe(!0);
|
|
1170
|
+
};
|
|
1171
|
+
pt(() => {
|
|
1172
|
+
u = !1, t(a), u || c(null, null);
|
|
1173
|
+
}, l), w && (s = m);
|
|
1174
|
+
}
|
|
1175
|
+
function jn(e, t, r, s, n) {
|
|
1176
|
+
var l;
|
|
1177
|
+
w && Ge();
|
|
1178
|
+
var i = (l = t.$$slots) == null ? void 0 : l[r], o = !1;
|
|
1179
|
+
i === !0 && (i = t.children, o = !0), i === void 0 || i(e, o ? () => s : s);
|
|
1180
|
+
}
|
|
1181
|
+
function Pn(e, t, ...r) {
|
|
1182
|
+
var s = e, n = Ht, i;
|
|
1183
|
+
pt(() => {
|
|
1184
|
+
n !== (n = t()) && (i && (K(i), i = null), i = qe(() => (
|
|
1185
|
+
/** @type {SnippetFn} */
|
|
1186
|
+
n(s, ...r)
|
|
1187
|
+
)));
|
|
1188
|
+
}, Xe), w && (s = m);
|
|
1189
|
+
}
|
|
1190
|
+
function mt(e, t) {
|
|
1191
|
+
mn(() => {
|
|
1192
|
+
var r = e.getRootNode(), s = (
|
|
1193
|
+
/** @type {ShadowRoot} */
|
|
1194
|
+
r.host ? (
|
|
1195
|
+
/** @type {ShadowRoot} */
|
|
1196
|
+
r
|
|
1197
|
+
) : (
|
|
1198
|
+
/** @type {Document} */
|
|
1199
|
+
r.head ?? /** @type {Document} */
|
|
1200
|
+
r.ownerDocument.head
|
|
1201
|
+
)
|
|
1202
|
+
);
|
|
1203
|
+
if (!s.querySelector("#" + t.hash)) {
|
|
1204
|
+
const n = document.createElement("style");
|
|
1205
|
+
n.id = t.hash, n.textContent = t.code, s.appendChild(n);
|
|
1206
|
+
}
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
function Pe(e, t, r, s) {
|
|
1210
|
+
var n = e.__attributes ?? (e.__attributes = {});
|
|
1211
|
+
w && (n[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || n[t] !== (n[t] = r) && (t === "style" && "__styles" in e && (e.__styles = {}), t === "loading" && (e[Gr] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Mn(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1212
|
+
}
|
|
1213
|
+
var Dt = /* @__PURE__ */ new Map();
|
|
1214
|
+
function Mn(e) {
|
|
1215
|
+
var t = Dt.get(e.nodeName);
|
|
1216
|
+
if (t) return t;
|
|
1217
|
+
Dt.set(e.nodeName, t = []);
|
|
1218
|
+
for (var r, s = e, n = Element.prototype; n !== s; ) {
|
|
1219
|
+
r = Hr(s);
|
|
1220
|
+
for (var i in r)
|
|
1221
|
+
r[i].set && t.push(i);
|
|
1222
|
+
s = zt(s);
|
|
1223
|
+
}
|
|
1224
|
+
return t;
|
|
1225
|
+
}
|
|
1226
|
+
function mr(e, t, r) {
|
|
1227
|
+
var s = e.__className, n = Cn(t);
|
|
1228
|
+
w && e.className === n ? e.__className = n : (s !== n || w && e.className !== n) && (t == null ? e.removeAttribute("class") : e.className = n, e.__className = n);
|
|
1229
|
+
}
|
|
1230
|
+
function Cn(e, t) {
|
|
1231
|
+
return (e ?? "") + "";
|
|
1232
|
+
}
|
|
1233
|
+
let Ie = !1;
|
|
1234
|
+
function Bn(e) {
|
|
1235
|
+
var t = Ie;
|
|
1236
|
+
try {
|
|
1237
|
+
return Ie = !1, [e(), Ie];
|
|
1238
|
+
} finally {
|
|
1239
|
+
Ie = t;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
function It(e) {
|
|
1243
|
+
for (var t = p, r = p; t !== null && !(t.f & (Z | ie)); )
|
|
1244
|
+
t = t.parent;
|
|
1245
|
+
try {
|
|
1246
|
+
return ee(t), e();
|
|
1247
|
+
} finally {
|
|
1248
|
+
ee(r);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
function P(e, t, r, s) {
|
|
1252
|
+
var xe;
|
|
1253
|
+
var n = (r & Nr) !== 0, i = !Le || (r & Dr) !== 0, o = (r & Fr) !== 0, l = (r & Rr) !== 0, u = !1, a;
|
|
1254
|
+
o ? [a, u] = Bn(() => (
|
|
1255
|
+
/** @type {V} */
|
|
1256
|
+
e[t]
|
|
1257
|
+
)) : a = /** @type {V} */
|
|
1258
|
+
e[t];
|
|
1259
|
+
var c = Fe in e || Ut in e, f = o && (((xe = ne(e, t)) == null ? void 0 : xe.set) ?? (c && t in e && ((x) => e[t] = x))) || void 0, d = (
|
|
1260
|
+
/** @type {V} */
|
|
1261
|
+
s
|
|
1262
|
+
), h = !0, g = !1, S = () => (g = !0, h && (h = !1, l ? d = Nt(
|
|
1263
|
+
/** @type {() => V} */
|
|
1264
|
+
s
|
|
1265
|
+
) : d = /** @type {V} */
|
|
1266
|
+
s), d);
|
|
1267
|
+
a === void 0 && s !== void 0 && (f && i && Qr(), a = S(), f && f(a));
|
|
1268
|
+
var _;
|
|
1269
|
+
if (i)
|
|
1270
|
+
_ = () => {
|
|
1271
|
+
var x = (
|
|
1272
|
+
/** @type {V} */
|
|
1273
|
+
e[t]
|
|
1274
|
+
);
|
|
1275
|
+
return x === void 0 ? S() : (h = !0, g = !1, x);
|
|
1276
|
+
};
|
|
1277
|
+
else {
|
|
1278
|
+
var Y = It(
|
|
1279
|
+
() => (n ? W : cn)(() => (
|
|
1280
|
+
/** @type {V} */
|
|
1281
|
+
e[t]
|
|
1282
|
+
))
|
|
1283
|
+
);
|
|
1284
|
+
Y.f |= Wr, _ = () => {
|
|
1285
|
+
var x = y(Y);
|
|
1286
|
+
return x !== void 0 && (d = /** @type {V} */
|
|
1287
|
+
void 0), x === void 0 ? d : x;
|
|
1288
|
+
};
|
|
1289
|
+
}
|
|
1290
|
+
if (!(r & Ir))
|
|
1291
|
+
return _;
|
|
1292
|
+
if (f) {
|
|
1293
|
+
var M = e.$$legacy;
|
|
1294
|
+
return function(x, le) {
|
|
1295
|
+
return arguments.length > 0 ? ((!i || !le || M || u) && f(le ? _() : x), x) : _();
|
|
1296
|
+
};
|
|
1297
|
+
}
|
|
1298
|
+
var L = !1, v = !1, Q = /* @__PURE__ */ Wt(a), oe = It(
|
|
1299
|
+
() => /* @__PURE__ */ W(() => {
|
|
1300
|
+
var x = _(), le = y(Q);
|
|
1301
|
+
return L ? (L = !1, v = !0, le) : (v = !1, Q.v = x);
|
|
1302
|
+
})
|
|
1303
|
+
);
|
|
1304
|
+
return n || (oe.equals = dt), function(x, le) {
|
|
1305
|
+
if (arguments.length > 0) {
|
|
1306
|
+
const tt = le ? y(oe) : i && o ? ue(x) : x;
|
|
1307
|
+
return oe.equals(tt) || (L = !0, V(Q, tt), g && d !== void 0 && (d = tt), Nt(() => y(oe))), x;
|
|
1308
|
+
}
|
|
1309
|
+
return y(oe);
|
|
1310
|
+
};
|
|
1311
|
+
}
|
|
1312
|
+
function zn(e) {
|
|
1313
|
+
return new Hn(e);
|
|
1314
|
+
}
|
|
1315
|
+
var G, F;
|
|
1316
|
+
class Hn {
|
|
1317
|
+
/**
|
|
1318
|
+
* @param {ComponentConstructorOptions & {
|
|
1319
|
+
* component: any;
|
|
1320
|
+
* }} options
|
|
1321
|
+
*/
|
|
1322
|
+
constructor(t) {
|
|
1323
|
+
/** @type {any} */
|
|
1324
|
+
rt(this, G);
|
|
1325
|
+
/** @type {Record<string, any>} */
|
|
1326
|
+
rt(this, F);
|
|
1327
|
+
var i;
|
|
1328
|
+
var r = /* @__PURE__ */ new Map(), s = (o, l) => {
|
|
1329
|
+
var u = /* @__PURE__ */ Wt(l);
|
|
1330
|
+
return r.set(o, u), u;
|
|
1331
|
+
};
|
|
1332
|
+
const n = new Proxy(
|
|
1333
|
+
{ ...t.props || {}, $$events: {} },
|
|
1334
|
+
{
|
|
1335
|
+
get(o, l) {
|
|
1336
|
+
return y(r.get(l) ?? s(l, Reflect.get(o, l)));
|
|
1337
|
+
},
|
|
1338
|
+
has(o, l) {
|
|
1339
|
+
return l === Ut ? !0 : (y(r.get(l) ?? s(l, Reflect.get(o, l))), Reflect.has(o, l));
|
|
1340
|
+
},
|
|
1341
|
+
set(o, l, u) {
|
|
1342
|
+
return V(r.get(l) ?? s(l, u), u), Reflect.set(o, l, u);
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
);
|
|
1346
|
+
nt(this, F, (t.hydrate ? In : br)(t.component, {
|
|
1347
|
+
target: t.target,
|
|
1348
|
+
anchor: t.anchor,
|
|
1349
|
+
props: n,
|
|
1350
|
+
context: t.context,
|
|
1351
|
+
intro: t.intro ?? !1,
|
|
1352
|
+
recover: t.recover
|
|
1353
|
+
})), (!((i = t == null ? void 0 : t.props) != null && i.$$host) || t.sync === !1) && D(), nt(this, G, n.$$events);
|
|
1354
|
+
for (const o of Object.keys(E(this, F)))
|
|
1355
|
+
o === "$set" || o === "$destroy" || o === "$on" || Be(this, o, {
|
|
1356
|
+
get() {
|
|
1357
|
+
return E(this, F)[o];
|
|
1358
|
+
},
|
|
1359
|
+
/** @param {any} value */
|
|
1360
|
+
set(l) {
|
|
1361
|
+
E(this, F)[o] = l;
|
|
1362
|
+
},
|
|
1363
|
+
enumerable: !0
|
|
1364
|
+
});
|
|
1365
|
+
E(this, F).$set = /** @param {Record<string, any>} next */
|
|
1366
|
+
(o) => {
|
|
1367
|
+
Object.assign(n, o);
|
|
1368
|
+
}, E(this, F).$destroy = () => {
|
|
1369
|
+
Fn(E(this, F));
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
/** @param {Record<string, any>} props */
|
|
1373
|
+
$set(t) {
|
|
1374
|
+
E(this, F).$set(t);
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* @param {string} event
|
|
1378
|
+
* @param {(...args: any[]) => any} callback
|
|
1379
|
+
* @returns {any}
|
|
1380
|
+
*/
|
|
1381
|
+
$on(t, r) {
|
|
1382
|
+
E(this, G)[t] = E(this, G)[t] || [];
|
|
1383
|
+
const s = (...n) => r.call(this, ...n);
|
|
1384
|
+
return E(this, G)[t].push(s), () => {
|
|
1385
|
+
E(this, G)[t] = E(this, G)[t].filter(
|
|
1386
|
+
/** @param {any} fn */
|
|
1387
|
+
(n) => n !== s
|
|
1388
|
+
);
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
$destroy() {
|
|
1392
|
+
E(this, F).$destroy();
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
G = new WeakMap(), F = new WeakMap();
|
|
1396
|
+
let $r;
|
|
1397
|
+
typeof HTMLElement == "function" && ($r = class extends HTMLElement {
|
|
1398
|
+
/**
|
|
1399
|
+
* @param {*} $$componentCtor
|
|
1400
|
+
* @param {*} $$slots
|
|
1401
|
+
* @param {*} use_shadow_dom
|
|
1402
|
+
*/
|
|
1403
|
+
constructor(t, r, s) {
|
|
1404
|
+
super();
|
|
1405
|
+
/** The Svelte component constructor */
|
|
1406
|
+
I(this, "$$ctor");
|
|
1407
|
+
/** Slots */
|
|
1408
|
+
I(this, "$$s");
|
|
1409
|
+
/** @type {any} The Svelte component instance */
|
|
1410
|
+
I(this, "$$c");
|
|
1411
|
+
/** Whether or not the custom element is connected */
|
|
1412
|
+
I(this, "$$cn", !1);
|
|
1413
|
+
/** @type {Record<string, any>} Component props data */
|
|
1414
|
+
I(this, "$$d", {});
|
|
1415
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1416
|
+
I(this, "$$r", !1);
|
|
1417
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1418
|
+
I(this, "$$p_d", {});
|
|
1419
|
+
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
1420
|
+
I(this, "$$l", {});
|
|
1421
|
+
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
1422
|
+
I(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
1423
|
+
/** @type {any} The managed render effect for reflecting attributes */
|
|
1424
|
+
I(this, "$$me");
|
|
1425
|
+
this.$$ctor = t, this.$$s = r, s && this.attachShadow({ mode: "open" });
|
|
1426
|
+
}
|
|
1427
|
+
/**
|
|
1428
|
+
* @param {string} type
|
|
1429
|
+
* @param {EventListenerOrEventListenerObject} listener
|
|
1430
|
+
* @param {boolean | AddEventListenerOptions} [options]
|
|
1431
|
+
*/
|
|
1432
|
+
addEventListener(t, r, s) {
|
|
1433
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
1434
|
+
const n = this.$$c.$on(t, r);
|
|
1435
|
+
this.$$l_u.set(r, n);
|
|
1436
|
+
}
|
|
1437
|
+
super.addEventListener(t, r, s);
|
|
1438
|
+
}
|
|
1439
|
+
/**
|
|
1440
|
+
* @param {string} type
|
|
1441
|
+
* @param {EventListenerOrEventListenerObject} listener
|
|
1442
|
+
* @param {boolean | AddEventListenerOptions} [options]
|
|
1443
|
+
*/
|
|
1444
|
+
removeEventListener(t, r, s) {
|
|
1445
|
+
if (super.removeEventListener(t, r, s), this.$$c) {
|
|
1446
|
+
const n = this.$$l_u.get(r);
|
|
1447
|
+
n && (n(), this.$$l_u.delete(r));
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
async connectedCallback() {
|
|
1451
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
1452
|
+
let t = function(n) {
|
|
1453
|
+
return (i) => {
|
|
1454
|
+
const o = document.createElement("slot");
|
|
1455
|
+
n !== "default" && (o.name = n), Oe(i, o);
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1459
|
+
return;
|
|
1460
|
+
const r = {}, s = qn(this);
|
|
1461
|
+
for (const n of this.$$s)
|
|
1462
|
+
n in s && (n === "default" && !this.$$d.children ? (this.$$d.children = t(n), r.default = !0) : r[n] = t(n));
|
|
1463
|
+
for (const n of this.attributes) {
|
|
1464
|
+
const i = this.$$g_p(n.name);
|
|
1465
|
+
i in this.$$d || (this.$$d[i] = Me(i, n.value, this.$$p_d, "toProp"));
|
|
1466
|
+
}
|
|
1467
|
+
for (const n in this.$$p_d)
|
|
1468
|
+
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
1469
|
+
this.$$c = zn({
|
|
1470
|
+
component: this.$$ctor,
|
|
1471
|
+
target: this.shadowRoot || this,
|
|
1472
|
+
props: {
|
|
1473
|
+
...this.$$d,
|
|
1474
|
+
$$slots: r,
|
|
1475
|
+
$$host: this
|
|
1476
|
+
}
|
|
1477
|
+
}), this.$$me = vn(() => {
|
|
1478
|
+
pn(() => {
|
|
1479
|
+
var n;
|
|
1480
|
+
this.$$r = !0;
|
|
1481
|
+
for (const i of Ce(this.$$c)) {
|
|
1482
|
+
if (!((n = this.$$p_d[i]) != null && n.reflect)) continue;
|
|
1483
|
+
this.$$d[i] = this.$$c[i];
|
|
1484
|
+
const o = Me(
|
|
1485
|
+
i,
|
|
1486
|
+
this.$$d[i],
|
|
1487
|
+
this.$$p_d,
|
|
1488
|
+
"toAttribute"
|
|
1489
|
+
);
|
|
1490
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
1491
|
+
}
|
|
1492
|
+
this.$$r = !1;
|
|
1493
|
+
});
|
|
1494
|
+
});
|
|
1495
|
+
for (const n in this.$$l)
|
|
1496
|
+
for (const i of this.$$l[n]) {
|
|
1497
|
+
const o = this.$$c.$on(n, i);
|
|
1498
|
+
this.$$l_u.set(i, o);
|
|
1499
|
+
}
|
|
1500
|
+
this.$$l = {};
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
1504
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
1505
|
+
/**
|
|
1506
|
+
* @param {string} attr
|
|
1507
|
+
* @param {string} _oldValue
|
|
1508
|
+
* @param {string} newValue
|
|
1509
|
+
*/
|
|
1510
|
+
attributeChangedCallback(t, r, s) {
|
|
1511
|
+
var n;
|
|
1512
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Me(t, s, this.$$p_d, "toProp"), (n = this.$$c) == null || n.$set({ [t]: this.$$d[t] }));
|
|
1513
|
+
}
|
|
1514
|
+
disconnectedCallback() {
|
|
1515
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
1516
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$me(), this.$$c = void 0);
|
|
1517
|
+
});
|
|
1518
|
+
}
|
|
1519
|
+
/**
|
|
1520
|
+
* @param {string} attribute_name
|
|
1521
|
+
*/
|
|
1522
|
+
$$g_p(t) {
|
|
1523
|
+
return Ce(this.$$p_d).find(
|
|
1524
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
1525
|
+
) || t;
|
|
1526
|
+
}
|
|
1527
|
+
});
|
|
1528
|
+
function Me(e, t, r, s) {
|
|
1529
|
+
var i;
|
|
1530
|
+
const n = (i = r[e]) == null ? void 0 : i.type;
|
|
1531
|
+
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !s || !r[e])
|
|
1532
|
+
return t;
|
|
1533
|
+
if (s === "toAttribute")
|
|
1534
|
+
switch (n) {
|
|
1535
|
+
case "Object":
|
|
1536
|
+
case "Array":
|
|
1537
|
+
return t == null ? null : JSON.stringify(t);
|
|
1538
|
+
case "Boolean":
|
|
1539
|
+
return t ? "" : null;
|
|
1540
|
+
case "Number":
|
|
1541
|
+
return t ?? null;
|
|
1542
|
+
default:
|
|
1543
|
+
return t;
|
|
1544
|
+
}
|
|
1545
|
+
else
|
|
1546
|
+
switch (n) {
|
|
1547
|
+
case "Object":
|
|
1548
|
+
case "Array":
|
|
1549
|
+
return t && JSON.parse(t);
|
|
1550
|
+
case "Boolean":
|
|
1551
|
+
return t;
|
|
1552
|
+
// conversion already handled above
|
|
1553
|
+
case "Number":
|
|
1554
|
+
return t != null ? +t : t;
|
|
1555
|
+
default:
|
|
1556
|
+
return t;
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
function qn(e) {
|
|
1560
|
+
const t = {};
|
|
1561
|
+
return e.childNodes.forEach((r) => {
|
|
1562
|
+
t[
|
|
1563
|
+
/** @type {Element} node */
|
|
1564
|
+
r.slot || "default"
|
|
1565
|
+
] = !0;
|
|
1566
|
+
}), t;
|
|
1567
|
+
}
|
|
1568
|
+
function $t(e, t, r, s, n, i) {
|
|
1569
|
+
let o = class extends $r {
|
|
1570
|
+
constructor() {
|
|
1571
|
+
super(e, r, n), this.$$p_d = t;
|
|
1572
|
+
}
|
|
1573
|
+
static get observedAttributes() {
|
|
1574
|
+
return Ce(t).map(
|
|
1575
|
+
(l) => (t[l].attribute || l).toLowerCase()
|
|
1576
|
+
);
|
|
1577
|
+
}
|
|
1578
|
+
};
|
|
1579
|
+
return Ce(t).forEach((l) => {
|
|
1580
|
+
Be(o.prototype, l, {
|
|
1581
|
+
get() {
|
|
1582
|
+
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
1583
|
+
},
|
|
1584
|
+
set(u) {
|
|
1585
|
+
var f;
|
|
1586
|
+
u = Me(l, u, t), this.$$d[l] = u;
|
|
1587
|
+
var a = this.$$c;
|
|
1588
|
+
if (a) {
|
|
1589
|
+
var c = (f = ne(a, l)) == null ? void 0 : f.get;
|
|
1590
|
+
c ? a[l] = u : a.$set({ [l]: u });
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
});
|
|
1594
|
+
}), s.forEach((l) => {
|
|
1595
|
+
Be(o.prototype, l, {
|
|
1596
|
+
get() {
|
|
1597
|
+
var u;
|
|
1598
|
+
return (u = this.$$c) == null ? void 0 : u[l];
|
|
1599
|
+
}
|
|
1600
|
+
});
|
|
1601
|
+
}), e.element = /** @type {any} */
|
|
1602
|
+
o, o;
|
|
1603
|
+
}
|
|
1604
|
+
on();
|
|
1605
|
+
var Vn = /* @__PURE__ */ yt('<div class="rcb-processing svelte-2j2b59"></div>');
|
|
1606
|
+
const Un = {
|
|
1607
|
+
hash: "svelte-2j2b59",
|
|
1608
|
+
code: `.rcb-processing.svelte-2j2b59 {width:var(--width, 12px);aspect-ratio:1;border-radius:50%;
|
|
1609
|
+
animation: svelte-2j2b59-l5 1.5s infinite linear;}
|
|
1610
|
+
|
|
1611
|
+
@keyframes svelte-2j2b59-l5 {
|
|
1612
|
+
0% {
|
|
1613
|
+
box-shadow:
|
|
1614
|
+
var(--shadow-offset) 0 #fff2,
|
|
1615
|
+
calc(-1 * var(--shadow-offset)) 0 #fff2;
|
|
1616
|
+
background: #fff2;
|
|
1617
|
+
}
|
|
1618
|
+
25% {
|
|
1619
|
+
box-shadow:
|
|
1620
|
+
var(--shadow-offset) 0 #fff2,
|
|
1621
|
+
calc(-1 * var(--shadow-offset)) 0 #ffff;
|
|
1622
|
+
background: #fff2;
|
|
1623
|
+
}
|
|
1624
|
+
50% {
|
|
1625
|
+
box-shadow:
|
|
1626
|
+
var(--shadow-offset) 0 #fff2,
|
|
1627
|
+
calc(-1 * var(--shadow-offset)) 0 #fff2;
|
|
1628
|
+
background: #ffff;
|
|
1629
|
+
}
|
|
1630
|
+
75% {
|
|
1631
|
+
box-shadow:
|
|
1632
|
+
var(--shadow-offset) 0 #ffff,
|
|
1633
|
+
calc(-1 * var(--shadow-offset)) 0 #fff2;
|
|
1634
|
+
background: #fff2;
|
|
1635
|
+
}
|
|
1636
|
+
100% {
|
|
1637
|
+
box-shadow:
|
|
1638
|
+
var(--shadow-offset) 0 #fff2,
|
|
1639
|
+
calc(-1 * var(--shadow-offset)) 0 #fff2;
|
|
1640
|
+
background: #fff2;
|
|
1641
|
+
}
|
|
1642
|
+
}`
|
|
1643
|
+
};
|
|
1644
|
+
function xr(e, t) {
|
|
1645
|
+
Qe(t, !1), mt(e, Un);
|
|
1646
|
+
let r = P(t, "size", 12, "medium");
|
|
1647
|
+
const s = {
|
|
1648
|
+
small: { width: "8px", offset: "10px" },
|
|
1649
|
+
medium: { width: "12px", offset: "20px" },
|
|
1650
|
+
large: { width: "16px", offset: "30px" }
|
|
1651
|
+
};
|
|
1652
|
+
var n = Vn();
|
|
1653
|
+
return _t(() => Pe(n, "style", `--shadow-offset: ${s[r()].offset ?? ""}; --width: ${s[r()].width ?? ""};`)), Oe(e, n), et({
|
|
1654
|
+
get size() {
|
|
1655
|
+
return r();
|
|
1656
|
+
},
|
|
1657
|
+
set size(i) {
|
|
1658
|
+
r(i), D();
|
|
1659
|
+
}
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1662
|
+
$t(xr, { size: {} }, [], [], !0);
|
|
1663
|
+
var Yn = /* @__PURE__ */ yt("<span><!></span>");
|
|
1664
|
+
const Wn = {
|
|
1665
|
+
hash: "svelte-byrjto",
|
|
1666
|
+
code: `
|
|
1667
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-byrjto {font:var(--rc-text-heading2xl-mobile);}
|
|
1668
|
+
|
|
1669
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-byrjto {font:var(--rc-text-headingXl-mobile);}
|
|
1670
|
+
|
|
1671
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-byrjto {font:var(--rc-text-headingLg-mobile);}
|
|
1672
|
+
|
|
1673
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-byrjto {font:var(--rc-text-headingMd-mobile);}
|
|
1674
|
+
|
|
1675
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-byrjto {font:var(--rc-text-bodyBase-mobile);}
|
|
1676
|
+
|
|
1677
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-byrjto {font:var(--rc-text-bodySmall-mobile);}
|
|
1678
|
+
|
|
1679
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-byrjto {font:var(--rc-text-labelButton-mobile);}
|
|
1680
|
+
|
|
1681
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-byrjto {font:var(--rc-text-labelDefault-mobile);}
|
|
1682
|
+
|
|
1683
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-byrjto {font:var(--rc-text-captionDefault-mobile);}
|
|
1684
|
+
|
|
1685
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-byrjto {font:var(--rc-text-captionLink-mobile);}
|
|
1686
|
+
|
|
1687
|
+
@container layout-query-container (width >= 768px) {
|
|
1688
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-byrjto {font:var(--rc-text-heading2xl-desktop);}
|
|
1689
|
+
|
|
1690
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-byrjto {font:var(--rc-text-headingXl-desktop);}
|
|
1691
|
+
|
|
1692
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-byrjto {font:var(--rc-text-headingLg-desktop);}
|
|
1693
|
+
|
|
1694
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-byrjto {font:var(--rc-text-headingMd-desktop);}
|
|
1695
|
+
|
|
1696
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-byrjto {font:var(--rc-text-bodyBase-desktop);}
|
|
1697
|
+
|
|
1698
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-byrjto {font:var(--rc-text-bodySmall-desktop);}
|
|
1699
|
+
|
|
1700
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-byrjto {font:var(--rc-text-labelButton-desktop);}
|
|
1701
|
+
|
|
1702
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-byrjto {font:var(--rc-text-labelDefault-desktop);}
|
|
1703
|
+
|
|
1704
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-byrjto {font:var(--rc-text-captionDefault-desktop);}
|
|
1705
|
+
|
|
1706
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-byrjto {font:var(--rc-text-captionLink-desktop);}
|
|
1707
|
+
}`
|
|
1708
|
+
};
|
|
1709
|
+
function wr(e, t) {
|
|
1710
|
+
Qe(t, !0), mt(e, Wn);
|
|
1711
|
+
const r = P(t, "children", 7), s = P(t, "size", 7, "body-base");
|
|
1712
|
+
var n = Yn(), i = Jt(n);
|
|
1713
|
+
return Pn(i, () => r() ?? Ht), Gt(n), _t(() => mr(n, `rcb-typography rcb-typography-${s() ?? ""} svelte-byrjto`)), Oe(e, n), et({
|
|
1714
|
+
get children() {
|
|
1715
|
+
return r();
|
|
1716
|
+
},
|
|
1717
|
+
set children(o) {
|
|
1718
|
+
r(o), D();
|
|
1719
|
+
},
|
|
1720
|
+
get size() {
|
|
1721
|
+
return s();
|
|
1722
|
+
},
|
|
1723
|
+
set size(o = "body-base") {
|
|
1724
|
+
s(o), D();
|
|
1725
|
+
}
|
|
1726
|
+
});
|
|
1727
|
+
}
|
|
1728
|
+
$t(wr, { children: {}, size: {} }, [], [], !0);
|
|
1729
|
+
const Xn = {
|
|
1730
|
+
error: "#B0171F",
|
|
1731
|
+
warning: "#f4e971",
|
|
1732
|
+
focus: "#1148B8",
|
|
1733
|
+
accent: "#767676",
|
|
1734
|
+
primary: "#576CDB",
|
|
1735
|
+
"primary-hover": "rgba(87, 108, 219, .8)",
|
|
1736
|
+
"primary-pressed": "rgba(87, 108, 219, .9)",
|
|
1737
|
+
"primary-text": "#ffffff",
|
|
1738
|
+
white: "#ffffff",
|
|
1739
|
+
"grey-text-dark": "rgba(0,0,0,1)",
|
|
1740
|
+
"grey-text-light": "rgba(0,0,0,0.7)",
|
|
1741
|
+
"grey-ui-dark": "rgba(0,0,0,0.3)",
|
|
1742
|
+
"grey-ui-light": "rgba(0,0,0,0.1)",
|
|
1743
|
+
"input-background": "white",
|
|
1744
|
+
background: "white"
|
|
1745
|
+
}, Gn = {
|
|
1746
|
+
error: "#B0171F",
|
|
1747
|
+
warning: "#f4e971",
|
|
1748
|
+
focus: "#1148B8",
|
|
1749
|
+
accent: "#767676",
|
|
1750
|
+
primary: "#576CDB",
|
|
1751
|
+
"primary-hover": "rgba(87, 108, 219, .8)",
|
|
1752
|
+
"primary-pressed": "rgba(87, 108, 219, .9)",
|
|
1753
|
+
"primary-text": "#ffffff",
|
|
1754
|
+
white: "#ffffff",
|
|
1755
|
+
"grey-text-dark": "rgba(0,0,0,1)",
|
|
1756
|
+
"grey-text-light": "rgba(0,0,0,0.7)",
|
|
1757
|
+
"grey-ui-dark": "rgba(0,0,0,0.3)",
|
|
1758
|
+
"grey-ui-light": "rgba(0,0,0,0.1)",
|
|
1759
|
+
"input-background": "white",
|
|
1760
|
+
background: "#EFF3FA"
|
|
1761
|
+
}, Sr = {
|
|
1762
|
+
error: "color_error",
|
|
1763
|
+
focus: "color_accent",
|
|
1764
|
+
accent: "color_accent",
|
|
1765
|
+
primary: "color_buttons_primary"
|
|
1766
|
+
}, Kn = {
|
|
1767
|
+
...Sr,
|
|
1768
|
+
"input-background": "color_form_bg",
|
|
1769
|
+
background: "color_form_bg"
|
|
1770
|
+
}, Zn = {
|
|
1771
|
+
...Sr,
|
|
1772
|
+
"input-background": "color_product_info_bg",
|
|
1773
|
+
background: "color_product_info_bg"
|
|
1774
|
+
}, kr = {
|
|
1775
|
+
"input-border-radius": "4px",
|
|
1776
|
+
"input-button-border-radius": "8px"
|
|
1777
|
+
}, Jn = {
|
|
1778
|
+
"input-border-radius": "0px",
|
|
1779
|
+
"input-button-border-radius": "0px"
|
|
1780
|
+
}, Qn = {
|
|
1781
|
+
"input-border-radius": "12px",
|
|
1782
|
+
"input-button-border-radius": "9999px"
|
|
1783
|
+
}, Ft = kr, Rt = "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", C = {
|
|
1784
|
+
regular: "400",
|
|
1785
|
+
medium: "500",
|
|
1786
|
+
semibold: "600"
|
|
1787
|
+
}, R = {
|
|
1788
|
+
10: "10px",
|
|
1789
|
+
12: "12px",
|
|
1790
|
+
14: "14px",
|
|
1791
|
+
16: "16px",
|
|
1792
|
+
18: "18px",
|
|
1793
|
+
20: "20px",
|
|
1794
|
+
24: "24px",
|
|
1795
|
+
28: "28px",
|
|
1796
|
+
32: "32px",
|
|
1797
|
+
36: "36px",
|
|
1798
|
+
40: "40px"
|
|
1799
|
+
}, B = {
|
|
1800
|
+
120: "120%",
|
|
1801
|
+
130: "130%",
|
|
1802
|
+
140: "140%"
|
|
1803
|
+
}, z = {
|
|
1804
|
+
tight: "0.20%",
|
|
1805
|
+
regular: "0",
|
|
1806
|
+
loose: "0.20%"
|
|
1807
|
+
}, b = {
|
|
1808
|
+
heading2xl: {
|
|
1809
|
+
fontSize: R[28],
|
|
1810
|
+
lineHeight: B[120],
|
|
1811
|
+
fontWeight: C.semibold,
|
|
1812
|
+
letterSpacing: z.tight
|
|
1813
|
+
},
|
|
1814
|
+
headingXl: {
|
|
1815
|
+
fontSize: R[24],
|
|
1816
|
+
lineHeight: B[130],
|
|
1817
|
+
fontWeight: C.semibold,
|
|
1818
|
+
letterSpacing: z.regular
|
|
1819
|
+
},
|
|
1820
|
+
headingLg: {
|
|
1821
|
+
fontSize: "20px",
|
|
1822
|
+
lineHeight: B[130],
|
|
1823
|
+
fontWeight: C.semibold,
|
|
1824
|
+
letterSpacing: z.regular
|
|
1825
|
+
},
|
|
1826
|
+
headingMd: {
|
|
1827
|
+
fontSize: "16px",
|
|
1828
|
+
lineHeight: B[140],
|
|
1829
|
+
fontWeight: C.medium,
|
|
1830
|
+
letterSpacing: z.regular
|
|
1831
|
+
},
|
|
1832
|
+
bodyBase: {
|
|
1833
|
+
fontSize: R[16],
|
|
1834
|
+
lineHeight: B[140],
|
|
1835
|
+
fontWeight: C.regular,
|
|
1836
|
+
letterSpacing: z.regular
|
|
1837
|
+
},
|
|
1838
|
+
bodySmall: {
|
|
1839
|
+
fontSize: R[14],
|
|
1840
|
+
lineHeight: B[140],
|
|
1841
|
+
fontWeight: C.regular,
|
|
1842
|
+
letterSpacing: z.regular
|
|
1843
|
+
},
|
|
1844
|
+
labelButton: {
|
|
1845
|
+
fontSize: R[16],
|
|
1846
|
+
lineHeight: B[140],
|
|
1847
|
+
fontWeight: C.regular,
|
|
1848
|
+
letterSpacing: z.tight
|
|
1849
|
+
},
|
|
1850
|
+
labelDefault: {
|
|
1851
|
+
fontSize: R[14],
|
|
1852
|
+
lineHeight: B[140],
|
|
1853
|
+
fontWeight: C.regular,
|
|
1854
|
+
letterSpacing: z.tight
|
|
1855
|
+
},
|
|
1856
|
+
captionDefault: {
|
|
1857
|
+
fontSize: R[12],
|
|
1858
|
+
lineHeight: B[140],
|
|
1859
|
+
fontWeight: C.regular,
|
|
1860
|
+
letterSpacing: z.regular
|
|
1861
|
+
},
|
|
1862
|
+
captionLink: {
|
|
1863
|
+
fontSize: R[12],
|
|
1864
|
+
lineHeight: B[140],
|
|
1865
|
+
fontWeight: C.regular,
|
|
1866
|
+
letterSpacing: z.regular
|
|
1867
|
+
}
|
|
1868
|
+
}, H = {
|
|
1869
|
+
heading2xl: {
|
|
1870
|
+
...b.heading2xl,
|
|
1871
|
+
fontSize: R[36]
|
|
1872
|
+
},
|
|
1873
|
+
headingXl: {
|
|
1874
|
+
...b.headingXl,
|
|
1875
|
+
fontSize: R[32]
|
|
1876
|
+
},
|
|
1877
|
+
headingLg: {
|
|
1878
|
+
...b.headingLg,
|
|
1879
|
+
fontSize: R[24]
|
|
1880
|
+
},
|
|
1881
|
+
headingMd: {
|
|
1882
|
+
...b.headingMd,
|
|
1883
|
+
fontSize: R[18]
|
|
1884
|
+
},
|
|
1885
|
+
bodyBase: {
|
|
1886
|
+
...b.bodyBase
|
|
1887
|
+
},
|
|
1888
|
+
bodySmall: {
|
|
1889
|
+
...b.bodySmall
|
|
1890
|
+
},
|
|
1891
|
+
labelButton: {
|
|
1892
|
+
...b.labelButton
|
|
1893
|
+
},
|
|
1894
|
+
labelDefault: {
|
|
1895
|
+
...b.labelDefault
|
|
1896
|
+
},
|
|
1897
|
+
captionDefault: {
|
|
1898
|
+
...b.captionDefault
|
|
1899
|
+
},
|
|
1900
|
+
captionLink: {
|
|
1901
|
+
...b.captionLink
|
|
1902
|
+
}
|
|
1903
|
+
}, es = {
|
|
1904
|
+
heading2xl: {
|
|
1905
|
+
mobile: b.heading2xl,
|
|
1906
|
+
desktop: H.heading2xl
|
|
1907
|
+
},
|
|
1908
|
+
headingXl: {
|
|
1909
|
+
desktop: H.headingXl,
|
|
1910
|
+
mobile: b.headingXl
|
|
1911
|
+
},
|
|
1912
|
+
headingLg: {
|
|
1913
|
+
desktop: H.headingLg,
|
|
1914
|
+
mobile: b.headingLg
|
|
1915
|
+
},
|
|
1916
|
+
headingMd: {
|
|
1917
|
+
desktop: H.headingMd,
|
|
1918
|
+
mobile: b.headingMd
|
|
1919
|
+
},
|
|
1920
|
+
bodyBase: {
|
|
1921
|
+
desktop: H.bodyBase,
|
|
1922
|
+
mobile: b.bodyBase
|
|
1923
|
+
},
|
|
1924
|
+
bodySmall: {
|
|
1925
|
+
desktop: H.bodySmall,
|
|
1926
|
+
mobile: b.bodySmall
|
|
1927
|
+
},
|
|
1928
|
+
labelButton: {
|
|
1929
|
+
desktop: H.labelButton,
|
|
1930
|
+
mobile: b.labelButton
|
|
1931
|
+
},
|
|
1932
|
+
labelDefault: {
|
|
1933
|
+
desktop: H.labelDefault,
|
|
1934
|
+
mobile: b.labelDefault
|
|
1935
|
+
},
|
|
1936
|
+
captionDefault: {
|
|
1937
|
+
desktop: H.captionDefault,
|
|
1938
|
+
mobile: b.captionDefault
|
|
1939
|
+
},
|
|
1940
|
+
captionLink: {
|
|
1941
|
+
desktop: H.captionLink,
|
|
1942
|
+
mobile: b.captionLink
|
|
1943
|
+
}
|
|
1944
|
+
}, Ae = (e) => e.length == 7 ? {
|
|
1945
|
+
r: parseInt(e.slice(1, 3), 16),
|
|
1946
|
+
g: parseInt(e.slice(3, 5), 16),
|
|
1947
|
+
b: parseInt(e.slice(5, 7), 16)
|
|
1948
|
+
} : e.length == 4 ? {
|
|
1949
|
+
r: parseInt(e[1], 16),
|
|
1950
|
+
g: parseInt(e[2], 16),
|
|
1951
|
+
b: parseInt(e[3], 16)
|
|
1952
|
+
} : null, xt = ({
|
|
1953
|
+
r: e,
|
|
1954
|
+
g: t,
|
|
1955
|
+
b: r,
|
|
1956
|
+
luminanceThreshold: s
|
|
1957
|
+
}) => {
|
|
1958
|
+
const n = (o) => (o = o / 255, o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4));
|
|
1959
|
+
return 0.2126 * n(e) + 0.7152 * n(t) + 0.0722 * n(r) > s;
|
|
1960
|
+
}, wt = 0.37, ts = (e, t = wt) => {
|
|
1961
|
+
const r = xt({ ...e, luminanceThreshold: t }) ? "0,0,0" : "255,255,255";
|
|
1962
|
+
return {
|
|
1963
|
+
"grey-text-dark": `rgb(${r})`,
|
|
1964
|
+
"grey-text-light": `rgba(${r},0.70)`,
|
|
1965
|
+
"grey-ui-dark": `rgba(${r},0.3)`,
|
|
1966
|
+
"grey-ui-light": `rgba(${r},0.1)`
|
|
1967
|
+
};
|
|
1968
|
+
};
|
|
1969
|
+
function rs(e, t, r) {
|
|
1970
|
+
const s = Ae(e) || { r: 0, g: 0, b: 0 }, n = Ae(t) || { r: 255, g: 255, b: 255 }, i = Math.round(n.r * r + s.r * (1 - r)), o = Math.round(n.g * r + s.g * (1 - r)), l = Math.round(n.b * r + s.b * (1 - r));
|
|
1971
|
+
return `#${st(i)}${st(o)}${st(l)}`;
|
|
1972
|
+
}
|
|
1973
|
+
function jt(e, t) {
|
|
1974
|
+
const r = { r: 255, g: 255, b: 255 }, s = Math.max(0, Math.min(1, t));
|
|
1975
|
+
let n = e, i = Ae(e) || r;
|
|
1976
|
+
(isNaN(i.r) || isNaN(i.g) || isNaN(i.b)) && (i = r, n = "#FFFFFF");
|
|
1977
|
+
const l = xt({
|
|
1978
|
+
...i,
|
|
1979
|
+
luminanceThreshold: wt
|
|
1980
|
+
}) ? "#000000" : "#FFFFFF";
|
|
1981
|
+
return rs(n, l, s);
|
|
1982
|
+
}
|
|
1983
|
+
function st(e) {
|
|
1984
|
+
return e.toString(16).padStart(2, "0").toUpperCase();
|
|
1985
|
+
}
|
|
1986
|
+
const ns = (e, t, r, s = wt) => {
|
|
1987
|
+
const n = {
|
|
1988
|
+
"grey-text-dark": r["grey-text-dark"],
|
|
1989
|
+
"grey-text-light": r["grey-text-light"],
|
|
1990
|
+
"grey-ui-dark": r["grey-ui-dark"],
|
|
1991
|
+
"grey-ui-light": r["grey-ui-light"],
|
|
1992
|
+
"primary-text": r["primary-text"]
|
|
1993
|
+
};
|
|
1994
|
+
if (e != null && e.startsWith("#")) {
|
|
1995
|
+
const i = Ae(e);
|
|
1996
|
+
i !== null && Object.assign(n, ts(i));
|
|
1997
|
+
}
|
|
1998
|
+
if (t != null && t.startsWith("#")) {
|
|
1999
|
+
const i = Ae(t);
|
|
2000
|
+
i !== null && (n["primary-text"] = xt({ ...i, luminanceThreshold: s }) ? "black" : "white");
|
|
2001
|
+
}
|
|
2002
|
+
return n;
|
|
2003
|
+
}, ss = (e) => ({
|
|
2004
|
+
"primary-hover": jt(e, 0.1),
|
|
2005
|
+
"primary-pressed": jt(e, 0.15)
|
|
2006
|
+
}), is = (e, t) => e || t, os = (e, t, r) => {
|
|
2007
|
+
const s = Object.entries(e).map(([n, i]) => [
|
|
2008
|
+
n,
|
|
2009
|
+
is(
|
|
2010
|
+
r ? r[i] : null,
|
|
2011
|
+
t[n]
|
|
2012
|
+
)
|
|
2013
|
+
]);
|
|
2014
|
+
return Object.fromEntries(s);
|
|
2015
|
+
}, Er = (e, t, r) => {
|
|
2016
|
+
const s = os(
|
|
2017
|
+
e,
|
|
2018
|
+
t,
|
|
2019
|
+
r
|
|
2020
|
+
);
|
|
2021
|
+
return r ? {
|
|
2022
|
+
...t,
|
|
2023
|
+
...s,
|
|
2024
|
+
...ns(
|
|
2025
|
+
s.background,
|
|
2026
|
+
s.primary,
|
|
2027
|
+
t
|
|
2028
|
+
),
|
|
2029
|
+
...ss(s.primary)
|
|
2030
|
+
} : { ...t };
|
|
2031
|
+
}, ls = (e) => Er(
|
|
2032
|
+
Zn,
|
|
2033
|
+
Gn,
|
|
2034
|
+
e
|
|
2035
|
+
), Tr = (e) => Er(
|
|
2036
|
+
Kn,
|
|
2037
|
+
Xn,
|
|
2038
|
+
e
|
|
2039
|
+
), St = (e) => {
|
|
2040
|
+
if (!e)
|
|
2041
|
+
return Ft;
|
|
2042
|
+
switch (e.shapes) {
|
|
2043
|
+
case "rounded":
|
|
2044
|
+
return kr;
|
|
2045
|
+
case "rectangle":
|
|
2046
|
+
return Jn;
|
|
2047
|
+
case "pill":
|
|
2048
|
+
return Qn;
|
|
2049
|
+
default:
|
|
2050
|
+
return Ft;
|
|
2051
|
+
}
|
|
2052
|
+
}, Ye = (e = "", t) => t.map(([r, s]) => `--rc-${e}-${r}: ${s}`).join("; "), as = (e) => {
|
|
2053
|
+
const t = Ye(
|
|
2054
|
+
"color",
|
|
2055
|
+
Object.entries(ls(e))
|
|
2056
|
+
), r = Ye(
|
|
2057
|
+
"shape",
|
|
2058
|
+
Object.entries(St(e))
|
|
2059
|
+
);
|
|
2060
|
+
return [t, r].join("; ");
|
|
2061
|
+
}, us = (e) => {
|
|
2062
|
+
const t = Ye(
|
|
2063
|
+
"color",
|
|
2064
|
+
Object.entries(Tr(e))
|
|
2065
|
+
), r = Ye(
|
|
2066
|
+
"shape",
|
|
2067
|
+
Object.entries(St(e))
|
|
2068
|
+
);
|
|
2069
|
+
return [t, r].join("; ");
|
|
2070
|
+
}, fs = (e = "", t) => Object.entries(t).flatMap(([r, { desktop: s, mobile: n }]) => [
|
|
2071
|
+
`--rc-${e}-${r}-desktop: normal normal ${s.fontWeight} ${s.fontSize}/${s.lineHeight} ${Rt}`,
|
|
2072
|
+
`--rc-${e}-${r}-mobile: normal normal ${n.fontWeight} ${n.fontSize}/${n.lineHeight} ${Rt}`,
|
|
2073
|
+
`--rc-${e}-${r}-desktop-font-size: ${s.fontSize}`,
|
|
2074
|
+
`--rc-${e}-${r}-mobile-font-size: ${n.fontSize}`
|
|
2075
|
+
]).join("; "), cs = (e = "", t) => Object.entries(t).map(
|
|
2076
|
+
([r, { mobile: s, desktop: n }]) => `--rc-${e}-${r}-mobile: ${s}; --rc-${e}-${r}-desktop: ${n};`
|
|
2077
|
+
).join(" "), ds = {
|
|
2078
|
+
outerPadding: {
|
|
2079
|
+
mobile: "clamp(1.3125rem, 5.6vw, 1.5rem)",
|
|
2080
|
+
desktop: "clamp(1.5rem, 9.44vw, 5rem)"
|
|
2081
|
+
},
|
|
2082
|
+
outerPaddingSmall: {
|
|
2083
|
+
mobile: "clamp(0.75rem, 4.2vw, 1rem)",
|
|
2084
|
+
desktop: "clamp(1.5rem, 9.44vw, 5rem)"
|
|
2085
|
+
},
|
|
2086
|
+
gapSmall: {
|
|
2087
|
+
mobile: "0.25rem",
|
|
2088
|
+
desktop: "0.375rem"
|
|
2089
|
+
},
|
|
2090
|
+
gapMedium: {
|
|
2091
|
+
mobile: "0.5rem",
|
|
2092
|
+
desktop: "0.75rem"
|
|
2093
|
+
},
|
|
2094
|
+
gapLarge: {
|
|
2095
|
+
mobile: "0.75rem",
|
|
2096
|
+
desktop: "0.75rem"
|
|
2097
|
+
},
|
|
2098
|
+
gapXLarge: {
|
|
2099
|
+
mobile: "1rem",
|
|
2100
|
+
desktop: "1.5rem"
|
|
2101
|
+
},
|
|
2102
|
+
gapXXLarge: {
|
|
2103
|
+
mobile: "1.25rem",
|
|
2104
|
+
desktop: "2.25rem"
|
|
2105
|
+
},
|
|
2106
|
+
gapXXXLarge: {
|
|
2107
|
+
mobile: "2.25rem",
|
|
2108
|
+
desktop: "4.5rem"
|
|
2109
|
+
},
|
|
2110
|
+
inputHeight: {
|
|
2111
|
+
mobile: "3rem",
|
|
2112
|
+
desktop: "3rem"
|
|
2113
|
+
},
|
|
2114
|
+
gapStripeElement: {
|
|
2115
|
+
mobile: "0.70rem",
|
|
2116
|
+
desktop: "1rem"
|
|
2117
|
+
}
|
|
2118
|
+
};
|
|
2119
|
+
class hs {
|
|
2120
|
+
constructor(t) {
|
|
2121
|
+
I(this, "brandingAppearance");
|
|
2122
|
+
t ? this.brandingAppearance = t : this.brandingAppearance = void 0;
|
|
2123
|
+
}
|
|
2124
|
+
get shape() {
|
|
2125
|
+
return St(this.brandingAppearance);
|
|
2126
|
+
}
|
|
2127
|
+
get formColors() {
|
|
2128
|
+
return Tr(this.brandingAppearance);
|
|
2129
|
+
}
|
|
2130
|
+
get formStyleVars() {
|
|
2131
|
+
return us(this.brandingAppearance);
|
|
2132
|
+
}
|
|
2133
|
+
get productInfoStyleVars() {
|
|
2134
|
+
return as(this.brandingAppearance);
|
|
2135
|
+
}
|
|
2136
|
+
get spacing() {
|
|
2137
|
+
return ds;
|
|
2138
|
+
}
|
|
2139
|
+
get textStyles() {
|
|
2140
|
+
return es;
|
|
2141
|
+
}
|
|
2142
|
+
get textStyleVars() {
|
|
2143
|
+
return fs("text", this.textStyles);
|
|
2144
|
+
}
|
|
2145
|
+
get spacingStyleVars() {
|
|
2146
|
+
return cs("spacing", this.spacing);
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
var vs = /* @__PURE__ */ yt("<button><!></button>");
|
|
2150
|
+
const gs = {
|
|
2151
|
+
hash: "svelte-td7xvm",
|
|
2152
|
+
code: `button.svelte-td7xvm {border:none;border-radius:var(--rc-shape-input-button-border-radius);cursor:pointer;height:var(--rc-spacing-inputHeight-mobile);color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-tap-highlight-color:transparent;transition:background-color 0.15s ease-in-out;user-select:none;}
|
|
2153
|
+
|
|
2154
|
+
@container layout-query-container (width >= 768px) {button.svelte-td7xvm {height:var(--rc-spacing-inputHeight-desktop);}
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
/* focus-visible is triggered only when focused with keyboard/reader */button.svelte-td7xvm:focus-visible {outline:2px solid var(--rc-color-focus);}button.intent-primary.svelte-td7xvm {background-color:var(--rc-color-primary);color:var(--rc-color-primary-text);}button.svelte-td7xvm:disabled {color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark);outline:none;}button.intent-primary.svelte-td7xvm:not(:disabled):hover {background-color:var(--rc-color-primary-hover);}button.intent-primary.svelte-td7xvm:not(:disabled):active,
|
|
2158
|
+
button.svelte-td7xvm:active {background-color:var(--rc-color-primary-pressed);outline:none;}button.intent-primary.svelte-td7xvm:disabled {color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark);}`
|
|
2159
|
+
};
|
|
2160
|
+
function _s(e, t) {
|
|
2161
|
+
Qe(t, !0), mt(e, gs);
|
|
2162
|
+
const r = P(t, "onclick", 7), s = P(t, "intent", 7, "primary"), n = P(t, "disabled", 7, !1), i = P(t, "testId", 7), o = P(t, "type", 7), l = P(t, "loading", 7, !1), u = P(t, "brandingAppearance", 7), a = P(t, "styleOverrides", 7), c = /* @__PURE__ */ W(() => new hs(u())), f = /* @__PURE__ */ W(() => y(c).textStyleVars), d = /* @__PURE__ */ W(() => y(c).spacingStyleVars), h = /* @__PURE__ */ W(() => y(c).productInfoStyleVars), g = /* @__PURE__ */ W(() => y(c).formStyleVars), S = /* @__PURE__ */ W(() => [
|
|
2163
|
+
a(),
|
|
2164
|
+
y(f),
|
|
2165
|
+
y(d),
|
|
2166
|
+
y(h),
|
|
2167
|
+
y(g)
|
|
2168
|
+
].join("; "));
|
|
2169
|
+
var _ = vs();
|
|
2170
|
+
_.__click = function(...v) {
|
|
2171
|
+
var Q;
|
|
2172
|
+
(Q = r()) == null || Q.apply(this, v);
|
|
2173
|
+
};
|
|
2174
|
+
var Y = Jt(_);
|
|
2175
|
+
{
|
|
2176
|
+
var M = (v) => {
|
|
2177
|
+
xr(v, { size: "small" });
|
|
2178
|
+
}, L = (v) => {
|
|
2179
|
+
wr(v, {
|
|
2180
|
+
size: "body-base",
|
|
2181
|
+
children: (Q, oe) => {
|
|
2182
|
+
var xe = Dn(), x = un(xe);
|
|
2183
|
+
jn(x, t, "default", {}), Oe(Q, xe);
|
|
2184
|
+
},
|
|
2185
|
+
$$slots: { default: !0 }
|
|
2186
|
+
});
|
|
2187
|
+
};
|
|
2188
|
+
Rn(Y, (v) => {
|
|
2189
|
+
l() ? v(M) : v(L, !1);
|
|
2190
|
+
});
|
|
2191
|
+
}
|
|
2192
|
+
return Gt(_), _t(() => {
|
|
2193
|
+
mr(_, `${`intent-${s()}` ?? ""} svelte-td7xvm`), _.disabled = n(), Pe(_, "data-testid", i()), Pe(_, "type", o()), Pe(_, "style", y(S));
|
|
2194
|
+
}), Oe(e, _), et({
|
|
2195
|
+
get onclick() {
|
|
2196
|
+
return r();
|
|
2197
|
+
},
|
|
2198
|
+
set onclick(v) {
|
|
2199
|
+
r(v), D();
|
|
2200
|
+
},
|
|
2201
|
+
get intent() {
|
|
2202
|
+
return s();
|
|
2203
|
+
},
|
|
2204
|
+
set intent(v = "primary") {
|
|
2205
|
+
s(v), D();
|
|
2206
|
+
},
|
|
2207
|
+
get disabled() {
|
|
2208
|
+
return n();
|
|
2209
|
+
},
|
|
2210
|
+
set disabled(v = !1) {
|
|
2211
|
+
n(v), D();
|
|
2212
|
+
},
|
|
2213
|
+
get testId() {
|
|
2214
|
+
return i();
|
|
2215
|
+
},
|
|
2216
|
+
set testId(v) {
|
|
2217
|
+
i(v), D();
|
|
2218
|
+
},
|
|
2219
|
+
get type() {
|
|
2220
|
+
return o();
|
|
2221
|
+
},
|
|
2222
|
+
set type(v) {
|
|
2223
|
+
o(v), D();
|
|
2224
|
+
},
|
|
2225
|
+
get loading() {
|
|
2226
|
+
return l();
|
|
2227
|
+
},
|
|
2228
|
+
set loading(v = !1) {
|
|
2229
|
+
l(v), D();
|
|
2230
|
+
},
|
|
2231
|
+
get brandingAppearance() {
|
|
2232
|
+
return u();
|
|
2233
|
+
},
|
|
2234
|
+
set brandingAppearance(v) {
|
|
2235
|
+
u(v), D();
|
|
2236
|
+
},
|
|
2237
|
+
get styleOverrides() {
|
|
2238
|
+
return a();
|
|
2239
|
+
},
|
|
2240
|
+
set styleOverrides(v) {
|
|
2241
|
+
a(v), D();
|
|
2242
|
+
}
|
|
2243
|
+
});
|
|
2244
|
+
}
|
|
2245
|
+
Ln(["click"]);
|
|
2246
|
+
customElements.define("ui-button", $t(
|
|
2247
|
+
_s,
|
|
2248
|
+
{
|
|
2249
|
+
onclick: {},
|
|
2250
|
+
intent: {},
|
|
2251
|
+
disabled: {},
|
|
2252
|
+
testId: {},
|
|
2253
|
+
type: {},
|
|
2254
|
+
loading: {},
|
|
2255
|
+
brandingAppearance: {},
|
|
2256
|
+
styleOverrides: {}
|
|
2257
|
+
},
|
|
2258
|
+
["default"],
|
|
2259
|
+
[],
|
|
2260
|
+
!0
|
|
2261
|
+
));
|
|
2262
|
+
export {
|
|
2263
|
+
_s as Button
|
|
2264
|
+
};
|