@tempots/dom 10.0.23 → 10.0.24
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/dom/ssr.d.ts +3 -1
- package/index.cjs +1 -1
- package/index.js +451 -430
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var a = (t, e, r) =>
|
|
4
|
-
function
|
|
1
|
+
var Ze = Object.defineProperty;
|
|
2
|
+
var Xe = (t, e, r) => e in t ? Ze(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var a = (t, e, r) => Xe(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
function Ye(t, e, r) {
|
|
5
5
|
return t + (e - t) * r;
|
|
6
6
|
}
|
|
7
|
-
const
|
|
8
|
-
function
|
|
7
|
+
const ee = 97;
|
|
8
|
+
function je(t, e, r) {
|
|
9
9
|
const n = Math.max(t.length, e.length);
|
|
10
10
|
let s = "";
|
|
11
11
|
for (let i = 0; i < n; i++) {
|
|
12
12
|
let o = t.charCodeAt(i);
|
|
13
|
-
isNaN(o) && (o =
|
|
13
|
+
isNaN(o) && (o = ee);
|
|
14
14
|
let l = e.charCodeAt(i);
|
|
15
|
-
isNaN(l) && (l =
|
|
15
|
+
isNaN(l) && (l = ee), s += String.fromCharCode(o + (l - o) * r);
|
|
16
16
|
}
|
|
17
17
|
return s;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function He(t, e, r) {
|
|
20
20
|
return new Date(t.getTime() + (e.getTime() - t.getTime()) * r);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ke(t, e, r) {
|
|
23
23
|
return e;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return typeof t == "number" ?
|
|
25
|
+
function Ue(t) {
|
|
26
|
+
return typeof t == "number" ? Ye : typeof t == "string" ? je : t instanceof Date ? He : Ke;
|
|
27
27
|
}
|
|
28
|
-
class
|
|
28
|
+
class ke {
|
|
29
29
|
constructor(e, r) {
|
|
30
30
|
this.index = e, this.total = r;
|
|
31
31
|
}
|
|
@@ -42,12 +42,12 @@ class je {
|
|
|
42
42
|
return this.index % 2 === 1;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
const
|
|
45
|
+
const te = Symbol("isSignal"), re = Symbol("isProp"), ne = Symbol("isComputed");
|
|
46
|
+
var ae;
|
|
47
|
+
ae = te;
|
|
48
|
+
const _ = class _ {
|
|
49
49
|
constructor(e, r) {
|
|
50
|
-
a(this,
|
|
50
|
+
a(this, ae, !0);
|
|
51
51
|
a(this, "_value");
|
|
52
52
|
a(this, "_derivatives", []);
|
|
53
53
|
a(this, "_onValueListeners", []);
|
|
@@ -70,7 +70,7 @@ const E = class E {
|
|
|
70
70
|
this._disposed || (this._disposed = !0, this._onDisposeListeners.forEach((e) => e()), this._onDisposeListeners.length = 0, this._derivatives.length = 0);
|
|
71
71
|
});
|
|
72
72
|
a(this, "map", (e, r = (n, s) => n === s) => {
|
|
73
|
-
const n = new
|
|
73
|
+
const n = new D(() => {
|
|
74
74
|
try {
|
|
75
75
|
return e(this.get());
|
|
76
76
|
} catch (s) {
|
|
@@ -80,7 +80,7 @@ const E = class E {
|
|
|
80
80
|
return this.setDerivative(n), n;
|
|
81
81
|
});
|
|
82
82
|
a(this, "flatMap", (e, r = (n, s) => n === s) => {
|
|
83
|
-
const n = new
|
|
83
|
+
const n = new D(() => {
|
|
84
84
|
try {
|
|
85
85
|
return e(this.get()).get();
|
|
86
86
|
} catch (s) {
|
|
@@ -93,7 +93,7 @@ const E = class E {
|
|
|
93
93
|
a(this, "at", (e) => this.map((r) => r[e]));
|
|
94
94
|
a(this, "filter", (e, r) => {
|
|
95
95
|
let n = r ?? this.get();
|
|
96
|
-
const s = new
|
|
96
|
+
const s = new D(() => {
|
|
97
97
|
try {
|
|
98
98
|
const i = this.get();
|
|
99
99
|
return n = e(i) ? i : n;
|
|
@@ -105,7 +105,7 @@ const E = class E {
|
|
|
105
105
|
});
|
|
106
106
|
a(this, "filterMap", (e, r, n = (s, i) => s === i) => {
|
|
107
107
|
let s = r;
|
|
108
|
-
const i = new
|
|
108
|
+
const i = new D(() => {
|
|
109
109
|
try {
|
|
110
110
|
const o = this.get(), l = e(o);
|
|
111
111
|
return s = l ?? s;
|
|
@@ -157,7 +157,7 @@ const E = class E {
|
|
|
157
157
|
this.equals = r, this._value = e;
|
|
158
158
|
}
|
|
159
159
|
static ofPromise(e, r, n, s = (i, o) => i === o) {
|
|
160
|
-
const i = new
|
|
160
|
+
const i = new _(r, s);
|
|
161
161
|
return e.then((o) => i._setAndNotify(o, !1)).catch((o) => {
|
|
162
162
|
n != null ? i._setAndNotify(n(o), !1) : console.error(
|
|
163
163
|
"Unhandled promise rejection in Signal.ofPromise:",
|
|
@@ -166,31 +166,31 @@ const E = class E {
|
|
|
166
166
|
}), i;
|
|
167
167
|
}
|
|
168
168
|
static is(e) {
|
|
169
|
-
return e != null && e[
|
|
169
|
+
return e != null && e[te] === !0;
|
|
170
170
|
}
|
|
171
171
|
static wrap(e, r = (n, s) => n === s) {
|
|
172
|
-
return
|
|
172
|
+
return _.is(e) ? e : new _(e, r);
|
|
173
173
|
}
|
|
174
174
|
static maybeWrap(e) {
|
|
175
|
-
return e == null ? e :
|
|
175
|
+
return e == null ? e : _.wrap(e);
|
|
176
176
|
}
|
|
177
177
|
static unwrap(e) {
|
|
178
|
-
return
|
|
178
|
+
return _.is(e) ? e.get() : e;
|
|
179
179
|
}
|
|
180
180
|
static map(e, r) {
|
|
181
|
-
return
|
|
181
|
+
return _.is(e) ? e.map(r) : r(e);
|
|
182
182
|
}
|
|
183
183
|
get value() {
|
|
184
184
|
return this._value;
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
|
-
let d =
|
|
188
|
-
const
|
|
189
|
-
var
|
|
190
|
-
class
|
|
187
|
+
let d = _;
|
|
188
|
+
const Be = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
|
|
189
|
+
var le, ce;
|
|
190
|
+
class D extends (ce = d, le = ne, ce) {
|
|
191
191
|
constructor(r, n) {
|
|
192
192
|
super(void 0, n);
|
|
193
|
-
a(this,
|
|
193
|
+
a(this, le, !0);
|
|
194
194
|
a(this, "_isDirty", !1);
|
|
195
195
|
a(this, "setDirty", () => {
|
|
196
196
|
this._isDirty || this._disposed || (this._isDirty = !0, this._derivatives.forEach((r) => r.setDirty()), this.scheduleNotify());
|
|
@@ -198,7 +198,7 @@ class T extends (ae = d, ue = te, ae) {
|
|
|
198
198
|
a(this, "_scheduleCount", 0);
|
|
199
199
|
a(this, "scheduleNotify", () => {
|
|
200
200
|
const r = ++this._scheduleCount;
|
|
201
|
-
|
|
201
|
+
Be(() => {
|
|
202
202
|
this._scheduleCount !== r || this._disposed !== !1 || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn(), !1));
|
|
203
203
|
});
|
|
204
204
|
});
|
|
@@ -206,17 +206,17 @@ class T extends (ae = d, ue = te, ae) {
|
|
|
206
206
|
this._fn = r, this.setDirty();
|
|
207
207
|
}
|
|
208
208
|
static is(r) {
|
|
209
|
-
return r != null && r[
|
|
209
|
+
return r != null && r[ne] === !0;
|
|
210
210
|
}
|
|
211
211
|
get value() {
|
|
212
212
|
return this.get();
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
var
|
|
216
|
-
class V extends (
|
|
215
|
+
var fe, he;
|
|
216
|
+
class V extends (he = d, fe = re, he) {
|
|
217
217
|
constructor() {
|
|
218
218
|
super(...arguments);
|
|
219
|
-
a(this,
|
|
219
|
+
a(this, fe, !0);
|
|
220
220
|
a(this, "set", (r) => {
|
|
221
221
|
this._setAndNotify(r, !1);
|
|
222
222
|
});
|
|
@@ -234,7 +234,7 @@ class V extends (ce = d, le = ee, ce) {
|
|
|
234
234
|
));
|
|
235
235
|
}
|
|
236
236
|
static is(r) {
|
|
237
|
-
return r != null && r[
|
|
237
|
+
return r != null && r[re] === !0;
|
|
238
238
|
}
|
|
239
239
|
get value() {
|
|
240
240
|
return this.get();
|
|
@@ -244,19 +244,19 @@ class V extends (ce = d, le = ee, ce) {
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
function U(t, e, r = (n, s) => n === s) {
|
|
247
|
-
const n = new
|
|
247
|
+
const n = new D(t, r);
|
|
248
248
|
return e.forEach((s) => s.setDerivative(n)), n;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Kt(t, e) {
|
|
251
251
|
return U(t, e).dispose;
|
|
252
252
|
}
|
|
253
253
|
function A(t, e = (r, n) => r === n) {
|
|
254
254
|
return new V(t, e);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function Ut(t, e = (r, n) => r === n) {
|
|
257
257
|
return new d(t, e);
|
|
258
258
|
}
|
|
259
|
-
class
|
|
259
|
+
class de {
|
|
260
260
|
constructor() {
|
|
261
261
|
a(this, "_store", /* @__PURE__ */ new Map());
|
|
262
262
|
a(this, "getItem", (e) => this._store.get(e) ?? null);
|
|
@@ -265,7 +265,7 @@ class fe {
|
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function pe({
|
|
269
269
|
key: t,
|
|
270
270
|
defaultValue: e,
|
|
271
271
|
store: r,
|
|
@@ -282,52 +282,52 @@ function he({
|
|
|
282
282
|
r.setItem(t, n(c));
|
|
283
283
|
}), u;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function kt(t) {
|
|
286
|
+
return pe({
|
|
287
287
|
...t,
|
|
288
|
-
store: (window == null ? void 0 : window.localStorage) ?? new
|
|
288
|
+
store: (window == null ? void 0 : window.localStorage) ?? new de()
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
291
|
+
function Bt(t) {
|
|
292
|
+
return pe({
|
|
293
293
|
...t,
|
|
294
|
-
store: (window == null ? void 0 : window.sessionStorage) ?? new
|
|
294
|
+
store: (window == null ? void 0 : window.sessionStorage) ?? new de()
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function se(t) {
|
|
298
298
|
return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
const s = (n == null ? void 0 : n.duration) ?? 300, i = (n == null ? void 0 : n.easing) ?? ((
|
|
300
|
+
function Je(t, e, r, n) {
|
|
301
|
+
const s = (n == null ? void 0 : n.duration) ?? 300, i = (n == null ? void 0 : n.easing) ?? ((b) => b), o = (n == null ? void 0 : n.equals) ?? ((b, R) => b === R);
|
|
302
302
|
let l = n == null ? void 0 : n.interpolate, u = t, c = e(), p = performance.now(), m = null, h = !0;
|
|
303
|
-
const
|
|
303
|
+
const E = new D(e, o), y = A(t, o);
|
|
304
304
|
y.onDispose(() => {
|
|
305
305
|
m !== null && cancelAnimationFrame(m);
|
|
306
|
-
}), y.onDispose(
|
|
307
|
-
|
|
306
|
+
}), y.onDispose(E.dispose), r.forEach((b) => {
|
|
307
|
+
b.setDerivative(E), b.onDispose(y.dispose);
|
|
308
308
|
});
|
|
309
|
-
const
|
|
310
|
-
c =
|
|
311
|
-
},
|
|
312
|
-
const
|
|
313
|
-
l == null && (l =
|
|
314
|
-
let
|
|
315
|
-
|
|
309
|
+
const Y = (b) => {
|
|
310
|
+
c = b, p = performance.now(), u = y.value, h && (h = !1, m = se(G));
|
|
311
|
+
}, G = () => {
|
|
312
|
+
const R = (performance.now() - p) / d.unwrap(s), qe = i(R);
|
|
313
|
+
l == null && (l = Ue(u));
|
|
314
|
+
let Q = l(u, c, qe);
|
|
315
|
+
R >= 1 ? (h = !0, Q = c) : m = se(G), y.set(Q);
|
|
316
316
|
};
|
|
317
|
-
return
|
|
317
|
+
return E.on(Y), y;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Jt(t, e) {
|
|
320
320
|
const { initialValue: r, ...n } = e ?? {};
|
|
321
|
-
return
|
|
321
|
+
return Je(r ?? t.get(), t.get, [t], n);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Gt(t, e) {
|
|
324
324
|
const { signals: r, literals: n } = Object.entries(t).reduce(
|
|
325
325
|
({ signals: i, literals: o }, [l, u]) => (d.is(u) ? i.push([l, u]) : o[l] = u, { signals: i, literals: o }),
|
|
326
326
|
{ signals: [], literals: {} }
|
|
327
327
|
), s = r.map(([, i]) => i);
|
|
328
328
|
return U(() => (r.forEach(([i, o]) => n[i] = o.value), e(n)), s);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function ie(t) {
|
|
331
331
|
let e = t.match(/rgba?\((\d+), (\d+), (\d+)(, (\d+))?\)/);
|
|
332
332
|
return e != null ? [
|
|
333
333
|
Number(e[1]),
|
|
@@ -349,7 +349,7 @@ function ne(t) {
|
|
|
349
349
|
"hsla"
|
|
350
350
|
] : [0, 0, 0, 1, "rgba"]));
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function oe(t) {
|
|
353
353
|
const e = /^(inset\s)?(-?\d+)([a-zA-Z]*)(\s+)(-?\d+)([a-zA-Z]*)(?:\s+(-?\d+)([a-zA-Z]*))?(?:\s+(-?\d+)([a-zA-Z]*))?(?:\s+(-?\d+)([a-zA-Z]*))?(?:\s+)([a-zA-Z0-9(),.]+)$/i, r = t.match(e);
|
|
354
354
|
if (r == null)
|
|
355
355
|
return {
|
|
@@ -370,93 +370,93 @@ function se(t) {
|
|
|
370
370
|
color: u
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Ge(t) {
|
|
374
374
|
const { inset: e, x: r, y: n, blur: s, spread: i, color: o } = t;
|
|
375
375
|
return `${e ? "inset " : ""}${r}px ${n}px ${s}px ${i}px ${o}`;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Qe(t) {
|
|
378
378
|
return t[4] === "rgba" ? `rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]})` : t[4] === "hex" ? `#${t[0].toString(16).padStart(2, "0")}${t[1].toString(16).padStart(2, "0")}${t[2].toString(16).padStart(2, "0")}` : t[4] === "hsla" ? `hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${t[3]})` : "";
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
const [r, n, s, i, o] =
|
|
380
|
+
function et(t, e) {
|
|
381
|
+
const [r, n, s, i, o] = ie(t), [l, u, c, p] = ie(e);
|
|
382
382
|
return (m) => {
|
|
383
|
-
const h = r + (l - r) * m,
|
|
384
|
-
return
|
|
383
|
+
const h = r + (l - r) * m, E = n + (u - n) * m, y = s + (c - s) * m, Y = i + (p - i) * m;
|
|
384
|
+
return Qe([h, E, y, Y, o]);
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
const r =
|
|
387
|
+
function Qt(t, e) {
|
|
388
|
+
const r = oe(t), n = oe(e);
|
|
389
389
|
return (s) => {
|
|
390
|
-
const i = r.x + (n.x - r.x) * s, o = r.y + (n.y - r.y) * s, l = r.blur + (n.blur - r.blur) * s, u = r.spread + (n.spread - r.spread) * s, c =
|
|
391
|
-
return
|
|
390
|
+
const i = r.x + (n.x - r.x) * s, o = r.y + (n.y - r.y) * s, l = r.blur + (n.blur - r.blur) * s, u = r.spread + (n.spread - r.spread) * s, c = ge(r.color, n.color)(s);
|
|
391
|
+
return Ge({ inset: r.inset, x: i, y: o, blur: l, spread: u, color: c });
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function tt(t, e) {
|
|
395
395
|
var r, n, s, i, o, l, u, c;
|
|
396
396
|
return e === "translateX" ? new WebKitCSSMatrix(t.transform).m41 : e === "translateY" ? new WebKitCSSMatrix(t.transform).m42 : e === "translateZ" ? new WebKitCSSMatrix(t.transform).m43 : e === "rotateX" ? new WebKitCSSMatrix(t.transform).m12 : e === "rotateY" ? new WebKitCSSMatrix(t.transform).m21 : e === "rotateZ" ? new WebKitCSSMatrix(t.transform).m31 : e === "scaleX" ? new WebKitCSSMatrix(t.transform).m11 : e === "scaleY" ? new WebKitCSSMatrix(t.transform).m22 : e === "scaleZ" ? new WebKitCSSMatrix(t.transform).m33 : e === "skewX" ? new WebKitCSSMatrix(t.transform).m13 : e === "skewY" ? new WebKitCSSMatrix(t.transform).m23 : Number(e === "grayScale" ? (r = t.filter.match(/grayscale\((\d+)%\)/)) == null ? void 0 : r[1] : e === "sepia" ? (n = t.filter.match(/sepia\((\d+)%\)/)) == null ? void 0 : n[1] : e === "saturate" ? (s = t.filter.match(/saturate\((\d+)%\)/)) == null ? void 0 : s[1] : e === "hueRotate" ? (i = t.filter.match(/hue-rotate\((\d+)deg\)/)) == null ? void 0 : i[1] : e === "invert" ? (o = t.filter.match(/invert\((\d+)%\)/)) == null ? void 0 : o[1] : e === "brightness" ? (l = t.filter.match(/brightness\((\d+)%\)/)) == null ? void 0 : l[1] : e === "contrast" ? (u = t.filter.match(/contrast\((\d+)%\)/)) == null ? void 0 : u[1] : e === "blur" ? (c = t.filter.match(/blur\((\d+)px\)/)) == null ? void 0 : c[1] : t.getPropertyValue(e));
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function er(t, e) {
|
|
399
399
|
const r = {}, n = getComputedStyle(t);
|
|
400
400
|
for (const [s, i] of Object.entries(e)) {
|
|
401
401
|
const o = s;
|
|
402
|
-
i != null && (r[o] =
|
|
402
|
+
i != null && (r[o] = tt(n, o));
|
|
403
403
|
}
|
|
404
404
|
return r;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function O(t, e, r) {
|
|
407
407
|
r != null && (e === "translateX" ? t.style.transform += ` translateX(${r}px)` : e === "translateY" ? t.style.transform += ` translateY(${r}px)` : e === "translateZ" ? t.style.transform += ` translateZ(${r}px)` : e === "rotateX" ? t.style.transform += ` rotateX(${r}deg)` : e === "rotateY" ? t.style.transform += ` rotateY(${r}deg)` : e === "rotateZ" ? t.style.transform += ` rotateZ(${r}deg)` : e === "scaleX" ? t.style.transform += ` scaleX(${r})` : e === "scaleY" ? t.style.transform += ` scaleY(${r})` : e === "scaleZ" ? t.style.transform += ` scaleZ(${r})` : e === "skewX" ? t.style.transform += ` skewX(${r}deg)` : e === "skewY" ? t.style.transform += ` skewY(${r}deg)` : e === "grayScale" ? t.style.filter += ` grayscale(${r}%)` : e === "sepia" ? t.style.filter += ` sepia(${r}%)` : e === "saturate" ? t.style.filter += ` saturate(${r}%)` : e === "hueRotate" ? t.style.filter += ` hue-rotate(${r}deg)` : e === "invert" ? t.style.filter += ` invert(${r}%)` : e === "brightness" ? t.style.filter += ` brightness(${r}%)` : e === "contrast" ? t.style.filter += ` contrast(${r}%)` : e === "blur" && (t.style.filter += ` blur(${r}px)`), t.style.setProperty(e, String(r)));
|
|
408
408
|
}
|
|
409
|
-
const
|
|
410
|
-
function
|
|
411
|
-
if (
|
|
412
|
-
return
|
|
413
|
-
const n =
|
|
414
|
-
return
|
|
409
|
+
const j = /* @__PURE__ */ new Map();
|
|
410
|
+
function me(t, e, r) {
|
|
411
|
+
if (j.has(r + ":" + t + e))
|
|
412
|
+
return j.get(t + e);
|
|
413
|
+
const n = et(t, e);
|
|
414
|
+
return j.set(r + ":" + t + e, n), n;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
return
|
|
416
|
+
function ge(t, e) {
|
|
417
|
+
return me(t, e, "c");
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
return
|
|
419
|
+
function rt(t, e) {
|
|
420
|
+
return me(t, e, "s");
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function nt(t, e, r, n, s) {
|
|
423
423
|
if (r != null && n != null) {
|
|
424
424
|
if (typeof r == "number" && typeof n == "number") {
|
|
425
425
|
const i = r + (n - r) * s;
|
|
426
|
-
|
|
426
|
+
O(t, e, i);
|
|
427
427
|
} else if (e === "boxShadow" || e === "textShadow") {
|
|
428
|
-
const i =
|
|
428
|
+
const i = rt(
|
|
429
429
|
r,
|
|
430
430
|
n
|
|
431
431
|
)(s);
|
|
432
|
-
|
|
432
|
+
O(t, e, i);
|
|
433
433
|
} else if (e === "color" || e === "backgroundColor" || e === "borderColor" || e === "outlineColor") {
|
|
434
|
-
const i =
|
|
434
|
+
const i = ge(
|
|
435
435
|
r,
|
|
436
436
|
n
|
|
437
437
|
)(s);
|
|
438
|
-
|
|
438
|
+
O(t, e, i);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function tr(t, e, r, n) {
|
|
443
443
|
t.style.transform = "", t.style.filter = "";
|
|
444
444
|
for (const [s, i] of Object.entries(r)) {
|
|
445
445
|
const o = s;
|
|
446
|
-
|
|
446
|
+
nt(t, o, e[o], i, n);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function rr(t, e) {
|
|
450
450
|
t.style.transform = "", t.style.filter = "";
|
|
451
451
|
for (const [r, n] of Object.entries(e))
|
|
452
|
-
n != null &&
|
|
452
|
+
n != null && O(t, r, n);
|
|
453
453
|
}
|
|
454
|
-
const
|
|
454
|
+
const we = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), Se = /* @__PURE__ */ new Set([
|
|
455
455
|
"rowSpan",
|
|
456
456
|
"colSpan",
|
|
457
457
|
"tabIndex",
|
|
458
458
|
"valueAsNumber"
|
|
459
|
-
]),
|
|
459
|
+
]), be = /* @__PURE__ */ new Set(["valueAsDate"]), ve = /* @__PURE__ */ new Set([
|
|
460
460
|
"value",
|
|
461
461
|
"textContent",
|
|
462
462
|
"innerText",
|
|
@@ -464,47 +464,47 @@ const me = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]
|
|
|
464
464
|
"outerHTML",
|
|
465
465
|
"className",
|
|
466
466
|
"classList"
|
|
467
|
-
]),
|
|
468
|
-
function
|
|
469
|
-
if (
|
|
470
|
-
return
|
|
467
|
+
]), H = /* @__PURE__ */ new Map();
|
|
468
|
+
function C(t, e) {
|
|
469
|
+
if (H.has(t))
|
|
470
|
+
return H.get(t);
|
|
471
471
|
{
|
|
472
472
|
const r = e(t);
|
|
473
|
-
return
|
|
473
|
+
return H.set(t, r), r;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function st(t) {
|
|
477
477
|
return (e, r) => {
|
|
478
478
|
r == null ? e[t] = null : e[t] = !!r;
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function it(t) {
|
|
482
482
|
return (e, r) => {
|
|
483
483
|
r == null ? e[t] = null : e[t] = Number(r);
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function ot(t) {
|
|
487
487
|
return (e, r) => {
|
|
488
488
|
r == null ? e[t] = null : e[t] = r;
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function ut(t) {
|
|
492
492
|
return (e, r) => {
|
|
493
493
|
r == null ? e[t] = null : e[t] = String(r);
|
|
494
494
|
};
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function at(t) {
|
|
497
497
|
return (e, r) => {
|
|
498
498
|
r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
return
|
|
501
|
+
function Ae(t) {
|
|
502
|
+
return we.has(t) ? C(t, st) : Se.has(t) ? C(t, it) : be.has(t) ? C(t, ot) : ve.has(t) ? C(t, ut) : C(t, at);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
return (e) =>
|
|
504
|
+
function ye(t) {
|
|
505
|
+
return (e) => we.has(t) ? !!e[t] : Se.has(t) ? Number(e[t]) : be.has(t) ? e[t] : ve.has(t) ? String(e[t]) : e.getAttribute(t);
|
|
506
506
|
}
|
|
507
|
-
class
|
|
507
|
+
class v {
|
|
508
508
|
/**
|
|
509
509
|
* Constructs a new `DOMContext` instance.
|
|
510
510
|
*
|
|
@@ -552,18 +552,18 @@ class _ {
|
|
|
552
552
|
* @param document - The `Document` to use for the `DOMContext`.
|
|
553
553
|
* @returns A new `DOMContext` instance.
|
|
554
554
|
*/
|
|
555
|
-
a(this, "withDocument", (e) => new
|
|
555
|
+
a(this, "withDocument", (e) => new v(e, this.element, this.reference, this.providers, !0));
|
|
556
556
|
/**
|
|
557
557
|
* Creates a new `DOMContext` instance with the provided `element`.
|
|
558
558
|
* @param element - The DOM element to use in the new `DOMContext` instance.
|
|
559
559
|
* @returns A new `DOMContext` instance with the provided `element`.
|
|
560
560
|
*/
|
|
561
|
-
a(this, "withElement", (e) => new
|
|
561
|
+
a(this, "withElement", (e) => new v(this.document, e, void 0, this.providers, !1));
|
|
562
562
|
/**
|
|
563
563
|
* Creates a new `DOMContext` instance with the `isFirstLevel` property set to `true`.
|
|
564
564
|
* @returns A new `DOMContext` instance with the `isFirstLevel` property set to `true`.
|
|
565
565
|
*/
|
|
566
|
-
a(this, "withFirstLevel", () => new
|
|
566
|
+
a(this, "withFirstLevel", () => new v(
|
|
567
567
|
this.document,
|
|
568
568
|
this.element,
|
|
569
569
|
this.reference,
|
|
@@ -576,7 +576,7 @@ class _ {
|
|
|
576
576
|
* @param reference - The optional `Text` node to use as the reference for the new `DOMContext`.
|
|
577
577
|
* @returns A new `DOMContext` instance with the specified reference.
|
|
578
578
|
*/
|
|
579
|
-
a(this, "withReference", (e) => new
|
|
579
|
+
a(this, "withReference", (e) => new v(
|
|
580
580
|
this.document,
|
|
581
581
|
this.element,
|
|
582
582
|
e,
|
|
@@ -589,7 +589,7 @@ class _ {
|
|
|
589
589
|
* @param value - The value to set for the provider.
|
|
590
590
|
* @returns A new DOMContext with the updated providers.
|
|
591
591
|
*/
|
|
592
|
-
a(this, "withProvider", (e, r) => new
|
|
592
|
+
a(this, "withProvider", (e, r) => new v(
|
|
593
593
|
this.document,
|
|
594
594
|
this.element,
|
|
595
595
|
this.reference,
|
|
@@ -606,7 +606,7 @@ class _ {
|
|
|
606
606
|
* @param providers - An object containing the providers to be merged into the existing providers.
|
|
607
607
|
* @returns A new DOMContext instance with the merged providers.
|
|
608
608
|
*/
|
|
609
|
-
a(this, "withProviders", (e) => new
|
|
609
|
+
a(this, "withProviders", (e) => new v(
|
|
610
610
|
this.document,
|
|
611
611
|
this.element,
|
|
612
612
|
this.reference,
|
|
@@ -638,20 +638,20 @@ class _ {
|
|
|
638
638
|
* @returns A new `DOMContext` instance.
|
|
639
639
|
*/
|
|
640
640
|
static of(e, r) {
|
|
641
|
-
return new
|
|
641
|
+
return new v(e.ownerDocument, e, r, {}, !0);
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function S(t) {
|
|
645
645
|
const e = t;
|
|
646
646
|
e && e.onblur && (e.onblur = null), !(!t || t.ownerDocument === void 0) && t.parentElement && t.parentElement.removeChild(t);
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function lt(t) {
|
|
649
649
|
return _e(t) ? t : t.parentElement;
|
|
650
650
|
}
|
|
651
651
|
function _e(t) {
|
|
652
652
|
return t.nodeType === 1;
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function ct(t, e, r) {
|
|
655
655
|
let n = t.target;
|
|
656
656
|
for (; n != null && !(n instanceof HTMLAnchorElement); )
|
|
657
657
|
n = n.parentElement;
|
|
@@ -666,44 +666,44 @@ function ot(t, e, r) {
|
|
|
666
666
|
}
|
|
667
667
|
return !1;
|
|
668
668
|
}
|
|
669
|
-
const
|
|
669
|
+
const nr = (t, e = {
|
|
670
670
|
checkExtension: !0,
|
|
671
671
|
checkExternalUrl: !0
|
|
672
672
|
}) => (r) => {
|
|
673
673
|
const { checkExtension: n, checkExternalUrl: s } = e;
|
|
674
|
-
|
|
674
|
+
ct(
|
|
675
675
|
r,
|
|
676
676
|
n === !0,
|
|
677
677
|
s === !0
|
|
678
678
|
) || t() && r.preventDefault();
|
|
679
|
-
},
|
|
680
|
-
|
|
679
|
+
}, Ee = (t) => (e) => {
|
|
680
|
+
Le(e);
|
|
681
681
|
const r = e.createText(t);
|
|
682
682
|
return e.appendOrInsert(r), (n) => {
|
|
683
|
-
n &&
|
|
683
|
+
n && S(r);
|
|
684
684
|
};
|
|
685
|
-
},
|
|
686
|
-
|
|
685
|
+
}, Pe = (t) => (e) => {
|
|
686
|
+
Le(e);
|
|
687
687
|
const r = e.createText(t.value);
|
|
688
688
|
e.appendOrInsert(r);
|
|
689
689
|
const n = t.on((s) => r.data = s);
|
|
690
690
|
return (s) => {
|
|
691
|
-
n(), s &&
|
|
691
|
+
n(), s && S(r);
|
|
692
692
|
};
|
|
693
693
|
};
|
|
694
|
-
function
|
|
695
|
-
return d.is(t) ?
|
|
694
|
+
function sr(t) {
|
|
695
|
+
return d.is(t) ? Pe(t) : Ee(t);
|
|
696
696
|
}
|
|
697
|
-
const
|
|
697
|
+
const g = (...t) => (e) => {
|
|
698
698
|
const r = t.map((n) => f(n)(e));
|
|
699
699
|
return (n) => {
|
|
700
700
|
r.forEach((s) => s(n));
|
|
701
701
|
};
|
|
702
702
|
}, w = () => () => {
|
|
703
|
-
},
|
|
703
|
+
}, ft = (t) => (e) => (Ne(e), e.element.classList.add(...t), (r) => {
|
|
704
704
|
r && e.element.classList.remove(...t);
|
|
705
|
-
}),
|
|
706
|
-
|
|
705
|
+
}), ht = (t) => (e) => {
|
|
706
|
+
Ne(e);
|
|
707
707
|
const r = e.element;
|
|
708
708
|
let n = [];
|
|
709
709
|
const s = t.on((i) => {
|
|
@@ -712,187 +712,208 @@ const S = (...t) => (e) => {
|
|
|
712
712
|
return (i) => {
|
|
713
713
|
s(), i && n.forEach((o) => r.classList.remove(o)), n.length = 0;
|
|
714
714
|
};
|
|
715
|
-
},
|
|
716
|
-
const r =
|
|
715
|
+
}, z = (t, e) => {
|
|
716
|
+
const r = Ae(t), n = ye(t);
|
|
717
717
|
return (s) => {
|
|
718
|
-
|
|
718
|
+
Me(s, t);
|
|
719
719
|
const i = n(s.element);
|
|
720
720
|
return r(s.element, e), (o) => {
|
|
721
721
|
o && r(s.element, i);
|
|
722
722
|
};
|
|
723
723
|
};
|
|
724
|
-
},
|
|
725
|
-
const r =
|
|
724
|
+
}, q = (t, e) => {
|
|
725
|
+
const r = Ae(t), n = ye(t);
|
|
726
726
|
return (s) => {
|
|
727
|
-
|
|
727
|
+
Me(s, t);
|
|
728
728
|
const i = n(s.element);
|
|
729
729
|
return e.on((o) => r(s.element, o)), (o) => {
|
|
730
730
|
o && r(s.element, i);
|
|
731
731
|
};
|
|
732
732
|
};
|
|
733
|
-
},
|
|
733
|
+
}, P = new Proxy(
|
|
734
734
|
{},
|
|
735
735
|
{
|
|
736
|
-
get: (t, e) => e === "class" ? (r) => d.is(r) ?
|
|
736
|
+
get: (t, e) => e === "class" ? (r) => d.is(r) ? ht(r) : ft(
|
|
737
737
|
(r ?? "").split(" ").filter((n) => n.length > 0)
|
|
738
|
-
) : (r) => d.is(r) ?
|
|
738
|
+
) : (r) => d.is(r) ? q(
|
|
739
739
|
e,
|
|
740
740
|
r
|
|
741
|
-
) :
|
|
741
|
+
) : z(
|
|
742
742
|
e,
|
|
743
743
|
r
|
|
744
744
|
)
|
|
745
745
|
}
|
|
746
|
-
),
|
|
746
|
+
), ir = new Proxy(
|
|
747
747
|
{},
|
|
748
748
|
{
|
|
749
|
-
get: (t, e) => (r) => d.is(r) ?
|
|
749
|
+
get: (t, e) => (r) => d.is(r) ? q(
|
|
750
750
|
`aria-${e}`,
|
|
751
751
|
r
|
|
752
|
-
) :
|
|
752
|
+
) : z(
|
|
753
753
|
`aria-${e}`,
|
|
754
754
|
r
|
|
755
755
|
)
|
|
756
756
|
}
|
|
757
|
-
),
|
|
757
|
+
), or = new Proxy(
|
|
758
758
|
{},
|
|
759
759
|
{
|
|
760
|
-
get: (t, e) => (r) => d.is(r) ?
|
|
760
|
+
get: (t, e) => (r) => d.is(r) ? q(
|
|
761
761
|
e,
|
|
762
762
|
r
|
|
763
|
-
) :
|
|
763
|
+
) : z(
|
|
764
764
|
e,
|
|
765
765
|
r
|
|
766
766
|
)
|
|
767
767
|
}
|
|
768
|
-
),
|
|
768
|
+
), ur = new Proxy(
|
|
769
769
|
{},
|
|
770
770
|
{
|
|
771
|
-
get: (t, e) => (r) => d.is(r) ?
|
|
771
|
+
get: (t, e) => (r) => d.is(r) ? q(
|
|
772
772
|
e,
|
|
773
773
|
r
|
|
774
|
-
) :
|
|
774
|
+
) : z(
|
|
775
775
|
e,
|
|
776
776
|
r
|
|
777
777
|
)
|
|
778
778
|
}
|
|
779
779
|
);
|
|
780
780
|
function f(t) {
|
|
781
|
-
return t == null ? w : Array.isArray(t) ?
|
|
781
|
+
return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ? Ee(t) : d.is(t) ? Pe(t) : t;
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function De(t, ...e) {
|
|
784
784
|
return (r) => {
|
|
785
785
|
const n = r.createElement(t, void 0);
|
|
786
|
-
r.isFirstLevel &&
|
|
786
|
+
r.isFirstLevel && T.isSSR() && $e(n), r.appendOrInsert(n), r = r.withElement(n);
|
|
787
787
|
const s = e.map((i) => f(i)(r));
|
|
788
788
|
return (i) => {
|
|
789
|
-
s.forEach((o) => o(!1)), i &&
|
|
789
|
+
s.forEach((o) => o(!1)), i && S(n);
|
|
790
790
|
};
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function Te(t, e, ...r) {
|
|
794
794
|
return (n) => {
|
|
795
795
|
const s = n.createElement(t, e);
|
|
796
|
-
n.isFirstLevel &&
|
|
796
|
+
n.isFirstLevel && T.isSSR() && $e(s), n.appendOrInsert(s), n = n.withElement(s);
|
|
797
797
|
const i = r.map((o) => f(o)(n));
|
|
798
798
|
return (o) => {
|
|
799
|
-
i.forEach((l) => l(!1)), o &&
|
|
799
|
+
i.forEach((l) => l(!1)), o && S(s);
|
|
800
800
|
};
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
|
-
const
|
|
803
|
+
const ar = new Proxy(
|
|
804
804
|
{},
|
|
805
805
|
{
|
|
806
|
-
get: (t, e) => (...r) =>
|
|
806
|
+
get: (t, e) => (...r) => De(e, r.flatMap(f))
|
|
807
807
|
}
|
|
808
|
-
),
|
|
808
|
+
), lr = new Proxy(
|
|
809
809
|
{},
|
|
810
810
|
{
|
|
811
|
-
get: (t, e) => (...r) =>
|
|
811
|
+
get: (t, e) => (...r) => De("input", P.type(e), ...r)
|
|
812
812
|
}
|
|
813
|
-
),
|
|
813
|
+
), dt = "http://www.w3.org/2000/svg", cr = new Proxy(
|
|
814
814
|
{},
|
|
815
815
|
{
|
|
816
|
-
get: (t, e) => (...r) =>
|
|
816
|
+
get: (t, e) => (...r) => Te(e, dt, r.flatMap(f))
|
|
817
817
|
}
|
|
818
|
-
),
|
|
818
|
+
), pt = "http://www.w3.org/1998/Math/MathML", fr = new Proxy(
|
|
819
819
|
{},
|
|
820
820
|
{
|
|
821
|
-
get: (t, e) => (...r) =>
|
|
821
|
+
get: (t, e) => (...r) => Te(e, pt, r.flatMap(f))
|
|
822
822
|
}
|
|
823
|
-
),
|
|
824
|
-
function
|
|
823
|
+
), M = "data-tempo-attr", x = "data-tempo-class", Ce = "data-tempo-node", W = "data-tempo-text";
|
|
824
|
+
function mt(t, e) {
|
|
825
825
|
const r = t.getAttribute(e);
|
|
826
826
|
if (r != null) {
|
|
827
|
-
const n = t.getAttribute(
|
|
828
|
-
t.setAttribute(
|
|
827
|
+
const n = t.getAttribute(M) ?? "{}", s = { ...JSON.parse(n), name: r };
|
|
828
|
+
t.setAttribute(M, JSON.stringify(s));
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
|
-
function
|
|
832
|
-
|
|
831
|
+
function Me(t, e) {
|
|
832
|
+
T.isSSR() && t.isFirstLevel && mt(t.element, e);
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
t.querySelectorAll(`[${
|
|
836
|
-
const r = JSON.parse(e.getAttribute(
|
|
834
|
+
function gt(t) {
|
|
835
|
+
t.querySelectorAll(`[${M}]`).forEach((e) => {
|
|
836
|
+
const r = JSON.parse(e.getAttribute(M) ?? "{}");
|
|
837
837
|
for (const [n, s] of Object.entries(r))
|
|
838
838
|
e.setAttribute(n, s);
|
|
839
|
-
e.removeAttribute(
|
|
839
|
+
e.removeAttribute(M);
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
|
-
function
|
|
843
|
-
t.setAttribute(
|
|
842
|
+
function wt(t) {
|
|
843
|
+
t.setAttribute(x, t.className);
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
|
|
845
|
+
function Ne(t) {
|
|
846
|
+
T.isSSR() && t.isFirstLevel && wt(t.element);
|
|
847
847
|
}
|
|
848
|
-
function
|
|
849
|
-
t.querySelectorAll(`[${
|
|
850
|
-
const r = e.getAttribute(
|
|
851
|
-
r !== null && (e.className = r, e.removeAttribute(
|
|
848
|
+
function St(t) {
|
|
849
|
+
t.querySelectorAll(`[${x}]`).forEach((e) => {
|
|
850
|
+
const r = e.getAttribute(x);
|
|
851
|
+
r !== null && (e.className = r, e.removeAttribute(x));
|
|
852
852
|
});
|
|
853
853
|
}
|
|
854
|
-
function
|
|
855
|
-
t.setAttribute(
|
|
854
|
+
function $e(t) {
|
|
855
|
+
t.setAttribute(Ce, "");
|
|
856
856
|
}
|
|
857
|
-
function
|
|
858
|
-
t.querySelectorAll(`[${
|
|
859
|
-
|
|
857
|
+
function bt(t) {
|
|
858
|
+
t.querySelectorAll(`[${Ce}]`).forEach((e) => {
|
|
859
|
+
S(e);
|
|
860
860
|
});
|
|
861
861
|
}
|
|
862
|
-
function
|
|
863
|
-
t.setAttribute(
|
|
862
|
+
function vt(t) {
|
|
863
|
+
t.setAttribute(W, t.textContent ?? "");
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
|
|
865
|
+
function Le(t) {
|
|
866
|
+
T.isSSR() && t.isFirstLevel && vt(t.element);
|
|
867
867
|
}
|
|
868
|
-
function
|
|
869
|
-
t.querySelectorAll(`[${
|
|
870
|
-
e.textContent = e.getAttribute(
|
|
868
|
+
function At(t) {
|
|
869
|
+
t.querySelectorAll(`[${W}]`).forEach((e) => {
|
|
870
|
+
e.textContent = e.getAttribute(W), e.removeAttribute(W);
|
|
871
871
|
});
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
873
|
+
function yt(t) {
|
|
874
|
+
bt(t), St(t), gt(t), At(t);
|
|
875
|
+
}
|
|
876
|
+
function Re() {
|
|
877
|
+
const t = window;
|
|
878
|
+
return t.__tempoSSR__ == null && (t.__tempoSSR__ = {
|
|
879
|
+
isSSR: !1,
|
|
880
|
+
counter: 0
|
|
881
|
+
}), t.__tempoSSR__;
|
|
882
|
+
}
|
|
883
|
+
function k(t, e) {
|
|
884
|
+
const r = Re();
|
|
885
|
+
r[t] = e;
|
|
886
|
+
}
|
|
887
|
+
function Ie(t) {
|
|
888
|
+
return Re()[t];
|
|
889
|
+
}
|
|
890
|
+
function _t() {
|
|
891
|
+
Ie("isSSR");
|
|
892
|
+
}
|
|
893
|
+
function K(t) {
|
|
894
|
+
k("isSSR", t);
|
|
895
|
+
}
|
|
896
|
+
function B() {
|
|
897
|
+
return Ie("counter");
|
|
898
|
+
}
|
|
899
|
+
function Et() {
|
|
900
|
+
k("counter", B() + 1);
|
|
901
|
+
}
|
|
902
|
+
function Pt() {
|
|
903
|
+
k("counter", B() - 1);
|
|
904
|
+
}
|
|
905
|
+
const hr = (t = 30) => (K(!0), new Promise((e, r) => {
|
|
882
906
|
let n;
|
|
883
907
|
const s = setInterval(() => {
|
|
884
|
-
|
|
908
|
+
B() <= 0 && (clearInterval(s), clearTimeout(n), K(!1), e());
|
|
885
909
|
}, 30);
|
|
886
910
|
n = setTimeout(() => {
|
|
887
|
-
clearInterval(s),
|
|
911
|
+
clearInterval(s), K(!1), r(new Error("SSR Timeout"));
|
|
888
912
|
}, t * 1e3);
|
|
889
|
-
})),
|
|
890
|
-
useDone: (t) => (
|
|
891
|
-
isSSR:
|
|
892
|
-
|
|
893
|
-
return ((t = g == null ? void 0 : g.__tempoSSR__) == null ? void 0 : t.isSSR) === !0;
|
|
894
|
-
}
|
|
895
|
-
}, $e = (t, e) => (r) => {
|
|
913
|
+
})), T = {
|
|
914
|
+
useDone: (t) => (Et(), f(t(Pt))),
|
|
915
|
+
isSSR: _t
|
|
916
|
+
}, Oe = (t, e) => (r) => {
|
|
896
917
|
const n = Object.values(t).reduce((s, i) => {
|
|
897
918
|
const o = r.getProvider(i);
|
|
898
919
|
if (o == null)
|
|
@@ -900,7 +921,7 @@ const ir = (t = 30) => (g.__tempoSSR__.isSSR = !0, new Promise((e, r) => {
|
|
|
900
921
|
return s[i] = o, s;
|
|
901
922
|
}, {});
|
|
902
923
|
return f(e(n))(r);
|
|
903
|
-
},
|
|
924
|
+
}, dr = (t, e) => (r) => {
|
|
904
925
|
const n = [], s = Object.entries(t).reduce(
|
|
905
926
|
(i, [o, l]) => (n.push(
|
|
906
927
|
l((u) => (Reflect.set(i, o, u), null))(r)
|
|
@@ -910,11 +931,11 @@ const ir = (t = 30) => (g.__tempoSSR__.isSSR = !0, new Promise((e, r) => {
|
|
|
910
931
|
return n.push(e(s)(r)), (i) => {
|
|
911
932
|
n.forEach((o) => o(i));
|
|
912
933
|
};
|
|
913
|
-
},
|
|
914
|
-
function
|
|
934
|
+
}, Dt = (t, e) => Oe([t], (r) => f(e(r[t]))), pr = (t, e) => Oe(t, (r) => f(e(r))), $ = (t) => (e) => (r) => t(r, e);
|
|
935
|
+
function Tt(t) {
|
|
915
936
|
return Symbol(t);
|
|
916
937
|
}
|
|
917
|
-
const
|
|
938
|
+
const xe = (t, e) => (r) => f(e)(r.withProviders(t)), mr = (...t) => t.length > 0 ? t.reduceRight((e, r) => (n) => e(r(n))) : f, Ct = (t, e, r) => xe({ [t]: e }, f(r)), gr = (t, e) => xe(t, f(e)), ue = Tt("Appearance"), wr = {
|
|
918
939
|
/**
|
|
919
940
|
* Provides a child component with an appearance context, which can be used to
|
|
920
941
|
* determine the current appearance (light or dark) based on the user's system
|
|
@@ -930,9 +951,9 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), ar = (...t) => t.length >
|
|
|
930
951
|
const e = window.matchMedia != null && window.matchMedia("(prefers-color-scheme: dark)").matches, r = A(e ? "dark" : "light"), n = (i) => {
|
|
931
952
|
r.set(i.matches ? "dark" : "light");
|
|
932
953
|
}, s = window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : void 0;
|
|
933
|
-
return s == null || s.addEventListener("change", n),
|
|
934
|
-
|
|
935
|
-
|
|
954
|
+
return s == null || s.addEventListener("change", n), g(
|
|
955
|
+
Ct(ue, r, t),
|
|
956
|
+
$(() => s == null ? void 0 : s.removeEventListener("change", n))
|
|
936
957
|
);
|
|
937
958
|
},
|
|
938
959
|
/**
|
|
@@ -942,10 +963,10 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), ar = (...t) => t.length >
|
|
|
942
963
|
* @param fn - A function that accepts the `AppearanceType` signal and returns a `Child` element.
|
|
943
964
|
* @returns The `Child` element returned by the provided function.
|
|
944
965
|
*/
|
|
945
|
-
consume: (t) =>
|
|
946
|
-
},
|
|
966
|
+
consume: (t) => Dt(ue, t)
|
|
967
|
+
}, We = (t, e) => {
|
|
947
968
|
if (typeof e == "function")
|
|
948
|
-
return
|
|
969
|
+
return We(t, { then: e });
|
|
949
970
|
const r = e.pending != null ? f(e.pending) : w, n = e.then, s = e.error != null ? (i) => f(e.error(i)) : () => w;
|
|
950
971
|
return (i) => {
|
|
951
972
|
let o = !0;
|
|
@@ -960,16 +981,16 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), ar = (...t) => t.length >
|
|
|
960
981
|
o && (u(!0), u = f(s(c))(i));
|
|
961
982
|
}
|
|
962
983
|
), (c) => {
|
|
963
|
-
o = !1, u(c), c && i.reference &&
|
|
984
|
+
o = !1, u(c), c && i.reference && S(i.reference);
|
|
964
985
|
};
|
|
965
986
|
};
|
|
966
|
-
},
|
|
987
|
+
}, Sr = (t, e) => We(() => t, e), br = (t = 10) => (e) => {
|
|
967
988
|
const r = setTimeout(() => {
|
|
968
989
|
var n;
|
|
969
990
|
(n = e.element) == null || n.focus();
|
|
970
991
|
}, t);
|
|
971
992
|
return (n) => clearTimeout(r);
|
|
972
|
-
},
|
|
993
|
+
}, vr = (t = 10) => (e) => {
|
|
973
994
|
const r = setTimeout(() => {
|
|
974
995
|
var n;
|
|
975
996
|
(n = e.element) == null || n.select();
|
|
@@ -977,21 +998,21 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), ar = (...t) => t.length >
|
|
|
977
998
|
return (n) => {
|
|
978
999
|
clearTimeout(r);
|
|
979
1000
|
};
|
|
980
|
-
},
|
|
1001
|
+
}, Fe = (t, e) => (r) => (r.element.addEventListener(t, e), (n) => {
|
|
981
1002
|
n && r.element.removeEventListener(t, e);
|
|
982
|
-
}),
|
|
1003
|
+
}), Mt = (t) => Fe("click", (e) => {
|
|
983
1004
|
e.preventDefault();
|
|
984
1005
|
const r = e.target;
|
|
985
1006
|
setTimeout(() => {
|
|
986
1007
|
const n = r.ownerDocument != null ? r == null ? void 0 : r.checked : void 0;
|
|
987
1008
|
n != null && t(!n);
|
|
988
1009
|
}, 0);
|
|
989
|
-
}),
|
|
1010
|
+
}), Z = new Proxy(
|
|
990
1011
|
{},
|
|
991
1012
|
{
|
|
992
|
-
get: (t, e) => (r) =>
|
|
1013
|
+
get: (t, e) => (r) => Fe(e, r)
|
|
993
1014
|
}
|
|
994
|
-
),
|
|
1015
|
+
), X = {
|
|
995
1016
|
value: (t) => (e) => {
|
|
996
1017
|
const r = e.target;
|
|
997
1018
|
t(r.value);
|
|
@@ -1036,37 +1057,37 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), ar = (...t) => t.length >
|
|
|
1036
1057
|
e.stopImmediatePropagation(), t();
|
|
1037
1058
|
}
|
|
1038
1059
|
};
|
|
1039
|
-
function
|
|
1040
|
-
return
|
|
1041
|
-
|
|
1042
|
-
|
|
1060
|
+
function Nt(t, e = "input") {
|
|
1061
|
+
return g(
|
|
1062
|
+
P.valueAsDate(t),
|
|
1063
|
+
Z[e](X.valueAsDate(t.set))
|
|
1043
1064
|
);
|
|
1044
1065
|
}
|
|
1045
|
-
function
|
|
1046
|
-
return
|
|
1047
|
-
|
|
1048
|
-
|
|
1066
|
+
function $t(t, e = "input") {
|
|
1067
|
+
return g(
|
|
1068
|
+
P.valueAsDate(t),
|
|
1069
|
+
Z[e](X.valueAsDateTime(t.set))
|
|
1049
1070
|
);
|
|
1050
1071
|
}
|
|
1051
|
-
function
|
|
1052
|
-
return
|
|
1053
|
-
|
|
1054
|
-
|
|
1072
|
+
function Lt(t, e = "input") {
|
|
1073
|
+
return g(
|
|
1074
|
+
P.valueAsNumber(t),
|
|
1075
|
+
Z[e](X.valueAsNumber(t.set))
|
|
1055
1076
|
);
|
|
1056
1077
|
}
|
|
1057
|
-
function
|
|
1058
|
-
return
|
|
1078
|
+
function Rt(t, e = "input") {
|
|
1079
|
+
return g(P.value(t), Z[e](X.value(t.set)));
|
|
1059
1080
|
}
|
|
1060
|
-
function
|
|
1061
|
-
return
|
|
1062
|
-
}
|
|
1063
|
-
const
|
|
1064
|
-
date:
|
|
1065
|
-
dateTime:
|
|
1066
|
-
number:
|
|
1067
|
-
text:
|
|
1068
|
-
checked:
|
|
1069
|
-
},
|
|
1081
|
+
function It(t) {
|
|
1082
|
+
return g(P.checked(t), Mt(t.set));
|
|
1083
|
+
}
|
|
1084
|
+
const Ar = {
|
|
1085
|
+
date: Nt,
|
|
1086
|
+
dateTime: $t,
|
|
1087
|
+
number: Lt,
|
|
1088
|
+
text: Rt,
|
|
1089
|
+
checked: It
|
|
1090
|
+
}, I = (t, e) => (r) => {
|
|
1070
1091
|
r = r.makeRef();
|
|
1071
1092
|
let n, s;
|
|
1072
1093
|
const i = t.map((u) => Object.keys(u)[0]);
|
|
@@ -1079,14 +1100,14 @@ const pr = {
|
|
|
1079
1100
|
}
|
|
1080
1101
|
});
|
|
1081
1102
|
return (u) => {
|
|
1082
|
-
l(), u && r.reference != null &&
|
|
1103
|
+
l(), u && r.reference != null && S(r.reference), n == null || n(!0);
|
|
1083
1104
|
};
|
|
1084
1105
|
}, L = {
|
|
1085
|
-
bool: (t, e) =>
|
|
1106
|
+
bool: (t, e) => I(
|
|
1086
1107
|
t.map((r) => r ? { true: !0 } : { false: !0 }),
|
|
1087
1108
|
e
|
|
1088
1109
|
),
|
|
1089
|
-
field: (t, e, r) =>
|
|
1110
|
+
field: (t, e, r) => I(
|
|
1090
1111
|
t.map((n) => ({ [n[e]]: n })),
|
|
1091
1112
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1092
1113
|
r
|
|
@@ -1094,14 +1115,14 @@ const pr = {
|
|
|
1094
1115
|
kind: (t, e) => L.field(t, "kind", e),
|
|
1095
1116
|
tuple: (t, e) => {
|
|
1096
1117
|
const r = t.map(([n, s]) => ({ [n]: s }));
|
|
1097
|
-
return
|
|
1118
|
+
return I(r, e);
|
|
1098
1119
|
},
|
|
1099
1120
|
type: (t, e) => L.field(t, "type", e),
|
|
1100
|
-
value: (t, e) =>
|
|
1121
|
+
value: (t, e) => I(
|
|
1101
1122
|
t.map((r) => ({ [r]: !0 })),
|
|
1102
1123
|
e
|
|
1103
1124
|
)
|
|
1104
|
-
},
|
|
1125
|
+
}, yr = (t, e) => (r) => {
|
|
1105
1126
|
const n = (e == null ? void 0 : e.firstSeparator) ?? w, s = (e == null ? void 0 : e.lastSeparator) ?? w;
|
|
1106
1127
|
return L.value(
|
|
1107
1128
|
r.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
|
|
@@ -1111,21 +1132,21 @@ const pr = {
|
|
|
1111
1132
|
other: () => t
|
|
1112
1133
|
}
|
|
1113
1134
|
);
|
|
1114
|
-
},
|
|
1115
|
-
r &&
|
|
1116
|
-
}),
|
|
1135
|
+
}, _r = (t) => (e) => t(e)(e), Er = (t) => (e) => (e.appendOrInsert(t), (r) => {
|
|
1136
|
+
r && S(t);
|
|
1137
|
+
}), Ot = (t, e, r) => (n) => {
|
|
1117
1138
|
n = n.makeRef();
|
|
1118
1139
|
let s = null, i = !1;
|
|
1119
1140
|
const o = A(null), l = t.on((u) => {
|
|
1120
1141
|
u == null ? (s == null || s(!0), s = f((r == null ? void 0 : r()) ?? w)(n), i = !1) : (o.value = u, i || (s == null || s(!0), s = f(e(o))(n), i = !0));
|
|
1121
1142
|
});
|
|
1122
1143
|
return (u) => {
|
|
1123
|
-
l(), s == null || s(u), u && n.reference &&
|
|
1144
|
+
l(), s == null || s(u), u && n.reference && S(n.reference);
|
|
1124
1145
|
};
|
|
1125
|
-
},
|
|
1146
|
+
}, Ve = (t, e, r) => r != null ? Ve(t, (n) => {
|
|
1126
1147
|
const s = n.map((i) => i.isLast ? "last" : "other");
|
|
1127
|
-
return
|
|
1128
|
-
|
|
1148
|
+
return g(
|
|
1149
|
+
$(() => s.dispose()),
|
|
1129
1150
|
f(e(n)),
|
|
1130
1151
|
L.value(s, {
|
|
1131
1152
|
last: () => w,
|
|
@@ -1136,7 +1157,7 @@ const pr = {
|
|
|
1136
1157
|
n = n.makeRef();
|
|
1137
1158
|
const s = t.map(
|
|
1138
1159
|
(u) => Array.from({ length: u }, (c, p) => p).map(
|
|
1139
|
-
(c) => new
|
|
1160
|
+
(c) => new ke(c, u)
|
|
1140
1161
|
)
|
|
1141
1162
|
), i = [], o = [], l = s.on((u) => {
|
|
1142
1163
|
var p, m;
|
|
@@ -1146,18 +1167,18 @@ const pr = {
|
|
|
1146
1167
|
for (let h = 0; h < c; h++)
|
|
1147
1168
|
if (o[h] == null) {
|
|
1148
1169
|
o[h] = A(u[h]);
|
|
1149
|
-
const
|
|
1150
|
-
i[h] =
|
|
1170
|
+
const E = f(e(o[h]));
|
|
1171
|
+
i[h] = E(n);
|
|
1151
1172
|
} else
|
|
1152
1173
|
o[h].value = u[h];
|
|
1153
1174
|
});
|
|
1154
1175
|
return (u) => {
|
|
1155
|
-
l(), u && n.reference &&
|
|
1176
|
+
l(), u && n.reference && S(n.reference);
|
|
1156
1177
|
};
|
|
1157
|
-
},
|
|
1178
|
+
}, xt = (t, e, r) => r != null ? xt(t, (n, s) => {
|
|
1158
1179
|
const i = s.map((o) => o.isLast ? "last" : "other");
|
|
1159
|
-
return
|
|
1160
|
-
|
|
1180
|
+
return g([
|
|
1181
|
+
$(() => i.dispose()),
|
|
1161
1182
|
f(e(n, s)),
|
|
1162
1183
|
L.value(i, {
|
|
1163
1184
|
last: () => w,
|
|
@@ -1166,52 +1187,52 @@ const pr = {
|
|
|
1166
1187
|
]);
|
|
1167
1188
|
}) : (n) => {
|
|
1168
1189
|
const s = t.map((i) => i.length);
|
|
1169
|
-
return
|
|
1190
|
+
return Ve(s, (i) => {
|
|
1170
1191
|
const o = U(
|
|
1171
1192
|
() => t.value[i.value.index],
|
|
1172
1193
|
[i, t]
|
|
1173
1194
|
);
|
|
1174
|
-
return
|
|
1175
|
-
|
|
1195
|
+
return g(
|
|
1196
|
+
$(() => o.dispose()),
|
|
1176
1197
|
f(e(o, i))
|
|
1177
1198
|
);
|
|
1178
1199
|
})(n);
|
|
1179
|
-
},
|
|
1200
|
+
}, Pr = (t) => {
|
|
1180
1201
|
const e = t.element, r = e.style.getPropertyValue(":empty");
|
|
1181
1202
|
return e.style.setProperty(":empty", "display:none"), (n) => {
|
|
1182
1203
|
n && e.style.setProperty(":empty", r);
|
|
1183
1204
|
};
|
|
1184
1205
|
};
|
|
1185
|
-
function
|
|
1206
|
+
function ze(t, e) {
|
|
1186
1207
|
const r = t(e);
|
|
1187
1208
|
return () => r(!0);
|
|
1188
1209
|
}
|
|
1189
|
-
function
|
|
1210
|
+
function Dr(t, e, { doc: r, clear: n } = {}) {
|
|
1190
1211
|
const s = typeof e == "string" ? (r ?? document).querySelector(e) : e;
|
|
1191
1212
|
if (s === null)
|
|
1192
1213
|
throw new Error(`Cannot find element by selector for render: ${e}`);
|
|
1193
|
-
n && (r ?? s.ownerDocument) != null &&
|
|
1194
|
-
const i =
|
|
1195
|
-
return
|
|
1214
|
+
n && (r ?? s.ownerDocument) != null && yt(r ?? s.ownerDocument);
|
|
1215
|
+
const i = lt(s), o = _e(s) ? void 0 : s, l = v.of(i, o);
|
|
1216
|
+
return ze(t, l);
|
|
1196
1217
|
}
|
|
1197
|
-
const
|
|
1218
|
+
const Wt = (t, e) => (r) => {
|
|
1198
1219
|
const n = r.document.querySelector(t);
|
|
1199
1220
|
if (n === null)
|
|
1200
1221
|
throw new Error(`Cannot find element by selector for portal: ${t}`);
|
|
1201
|
-
return
|
|
1222
|
+
return ze(
|
|
1202
1223
|
f(e),
|
|
1203
1224
|
r.withElement(n).withFirstLevel()
|
|
1204
1225
|
);
|
|
1205
|
-
},
|
|
1206
|
-
}),
|
|
1226
|
+
}, Tr = (t) => Wt("head title", P.innerText(t)), Ft = (t) => (e) => t(e.element) ?? (() => {
|
|
1227
|
+
}), J = (t, e, r) => Ot(
|
|
1207
1228
|
t.map((n) => n ? !0 : null),
|
|
1208
1229
|
() => e,
|
|
1209
1230
|
r != null ? () => r : void 0
|
|
1210
|
-
),
|
|
1231
|
+
), Cr = (t, e, r) => J(
|
|
1211
1232
|
t.map((n) => !n),
|
|
1212
1233
|
e,
|
|
1213
1234
|
r
|
|
1214
|
-
),
|
|
1235
|
+
), Vt = {
|
|
1215
1236
|
partial: {
|
|
1216
1237
|
root: null,
|
|
1217
1238
|
rootMargin: "0px",
|
|
@@ -1222,36 +1243,36 @@ const Nt = (t, e) => (r) => {
|
|
|
1222
1243
|
rootMargin: "0px",
|
|
1223
1244
|
threshold: 1
|
|
1224
1245
|
}
|
|
1225
|
-
},
|
|
1246
|
+
}, F = {
|
|
1226
1247
|
partial: /* @__PURE__ */ new Map(),
|
|
1227
1248
|
full: /* @__PURE__ */ new Map()
|
|
1228
|
-
},
|
|
1249
|
+
}, N = {
|
|
1229
1250
|
partial: null,
|
|
1230
1251
|
full: null
|
|
1231
1252
|
};
|
|
1232
|
-
function
|
|
1233
|
-
return
|
|
1253
|
+
function zt(t) {
|
|
1254
|
+
return N[t] == null && (N[t] = new IntersectionObserver((e) => {
|
|
1234
1255
|
e.forEach((r) => {
|
|
1235
|
-
const n =
|
|
1256
|
+
const n = F[t].get(r.target);
|
|
1236
1257
|
n == null || n.set(r.isIntersecting);
|
|
1237
1258
|
});
|
|
1238
|
-
},
|
|
1239
|
-
}
|
|
1240
|
-
function
|
|
1241
|
-
const r = A(
|
|
1242
|
-
return
|
|
1243
|
-
|
|
1244
|
-
const s = typeof IntersectionObserver < "u" ?
|
|
1245
|
-
return
|
|
1259
|
+
}, Vt[t])), N[t];
|
|
1260
|
+
}
|
|
1261
|
+
function qt(t, e) {
|
|
1262
|
+
const r = A(T.isSSR());
|
|
1263
|
+
return g(
|
|
1264
|
+
Ft((n) => {
|
|
1265
|
+
const s = typeof IntersectionObserver < "u" ? zt(t) : null;
|
|
1266
|
+
return F[t].set(n, r), s == null || s.observe(n), () => {
|
|
1246
1267
|
var i;
|
|
1247
|
-
s == null || s.unobserve(n),
|
|
1268
|
+
s == null || s.unobserve(n), F[t].delete(n), F[t].size === 0 && ((i = N[t]) == null || i.disconnect(), N[t] = null);
|
|
1248
1269
|
};
|
|
1249
1270
|
}),
|
|
1250
|
-
|
|
1271
|
+
$(r.dispose),
|
|
1251
1272
|
f(e(r))
|
|
1252
1273
|
);
|
|
1253
1274
|
}
|
|
1254
|
-
const
|
|
1275
|
+
const Mr = (t, e, r) => qt(t, (n) => J(n, e, r ?? w)), Nr = (t, e) => (r) => {
|
|
1255
1276
|
r = r.makeRef();
|
|
1256
1277
|
const n = t.map((o) => f(e(o)));
|
|
1257
1278
|
let s = () => {
|
|
@@ -1263,14 +1284,14 @@ const Ar = (t, e, r) => It(t, (n) => k(n, e, r ?? w)), yr = (t, e) => (r) => {
|
|
|
1263
1284
|
i(), s(o);
|
|
1264
1285
|
};
|
|
1265
1286
|
};
|
|
1266
|
-
function
|
|
1267
|
-
return
|
|
1287
|
+
function $r(t, e, r = w) {
|
|
1288
|
+
return J(
|
|
1268
1289
|
t.map((n) => n.length > 0),
|
|
1269
1290
|
e,
|
|
1270
1291
|
r
|
|
1271
1292
|
);
|
|
1272
1293
|
}
|
|
1273
|
-
const
|
|
1294
|
+
const Zt = (t) => (e) => {
|
|
1274
1295
|
const r = e.element, n = A({ width: r.clientWidth, height: r.clientHeight }), s = f(t(n))(e), i = () => {
|
|
1275
1296
|
n.set({ width: r.clientWidth, height: r.clientHeight });
|
|
1276
1297
|
};
|
|
@@ -1278,7 +1299,7 @@ const Ot = (t) => (e) => {
|
|
|
1278
1299
|
return typeof ResizeObserver == "function" && (o = new ResizeObserver(i), o.observe(r)), (l) => {
|
|
1279
1300
|
o == null || o.disconnect(), s(l);
|
|
1280
1301
|
};
|
|
1281
|
-
},
|
|
1302
|
+
}, Xt = (t) => (e) => {
|
|
1282
1303
|
const r = A({
|
|
1283
1304
|
width: (window == null ? void 0 : window.innerWidth) ?? 0,
|
|
1284
1305
|
height: (window == null ? void 0 : window.innerHeight) ?? 0
|
|
@@ -1291,132 +1312,132 @@ const Ot = (t) => (e) => {
|
|
|
1291
1312
|
return window == null || window.addEventListener("resize", s), (i) => {
|
|
1292
1313
|
window == null || window.removeEventListener("resize", s), n(i);
|
|
1293
1314
|
};
|
|
1294
|
-
},
|
|
1295
|
-
element:
|
|
1296
|
-
window:
|
|
1297
|
-
},
|
|
1315
|
+
}, Lr = {
|
|
1316
|
+
element: Zt,
|
|
1317
|
+
window: Xt
|
|
1318
|
+
}, Yt = (t, e) => (r) => {
|
|
1298
1319
|
const n = r.element, s = n.style.getPropertyValue(t);
|
|
1299
1320
|
return n.style.setProperty(t, e), (i) => {
|
|
1300
1321
|
i && n.style.setProperty(t, s);
|
|
1301
1322
|
};
|
|
1302
|
-
},
|
|
1323
|
+
}, jt = (t, e) => (r) => {
|
|
1303
1324
|
const n = r.element, s = n.style.getPropertyValue(t);
|
|
1304
1325
|
return e.on((i) => n.style.setProperty(t, i)), (i) => {
|
|
1305
1326
|
i && n.style.setProperty(t, s);
|
|
1306
1327
|
};
|
|
1307
|
-
},
|
|
1328
|
+
}, Rr = new Proxy(
|
|
1308
1329
|
{},
|
|
1309
1330
|
{
|
|
1310
|
-
get: (t, e) => (r) => d.is(r) ?
|
|
1331
|
+
get: (t, e) => (r) => d.is(r) ? jt(e, r) : Yt(e, r)
|
|
1311
1332
|
}
|
|
1312
1333
|
);
|
|
1313
1334
|
export {
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1335
|
+
Sr as Async,
|
|
1336
|
+
br as AutoFocus,
|
|
1337
|
+
vr as AutoSelect,
|
|
1338
|
+
D as Computed,
|
|
1339
|
+
yr as Conjunction,
|
|
1340
|
+
_r as Ctx,
|
|
1341
|
+
v as DOMContext,
|
|
1342
|
+
Er as DOMEl,
|
|
1343
|
+
De as El,
|
|
1344
|
+
Te as ElNS,
|
|
1324
1345
|
w as Empty,
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1346
|
+
Ot as Ensure,
|
|
1347
|
+
xt as ForEach,
|
|
1348
|
+
g as Fragment,
|
|
1349
|
+
Tr as HTMLTitle,
|
|
1350
|
+
Pr as HiddenWhenEmpty,
|
|
1351
|
+
qt as InViewport,
|
|
1352
|
+
Nr as MapSignal,
|
|
1353
|
+
de as MemoryStore,
|
|
1354
|
+
$r as NotEmpty,
|
|
1355
|
+
Mt as OnChecked,
|
|
1356
|
+
$ as OnDispose,
|
|
1357
|
+
Ft as OnMount,
|
|
1358
|
+
Wt as Portal,
|
|
1359
|
+
ke as Position,
|
|
1339
1360
|
V as Prop,
|
|
1340
|
-
|
|
1341
|
-
|
|
1361
|
+
mr as Provide,
|
|
1362
|
+
Ve as Repeat,
|
|
1342
1363
|
d as Signal,
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1364
|
+
We as Task,
|
|
1365
|
+
sr as Text,
|
|
1366
|
+
Cr as Unless,
|
|
1367
|
+
dr as Use,
|
|
1368
|
+
Dt as UseProvider,
|
|
1369
|
+
pr as UseProviders,
|
|
1370
|
+
J as When,
|
|
1371
|
+
Mr as WhenInViewport,
|
|
1372
|
+
Ct as WithProvider,
|
|
1373
|
+
gr as WithProviders,
|
|
1374
|
+
$e as addNodeTracker,
|
|
1375
|
+
Je as animate,
|
|
1376
|
+
Jt as animateOne,
|
|
1377
|
+
wr as appearance,
|
|
1378
|
+
ue as appearanceMarker,
|
|
1379
|
+
rr as applyAnimatable,
|
|
1380
|
+
O as applyAnimatableProp,
|
|
1381
|
+
tr as applyInterpolatedAnimatable,
|
|
1382
|
+
nt as applyInterpolatedAnimatableProp,
|
|
1383
|
+
ir as aria,
|
|
1384
|
+
P as attr,
|
|
1385
|
+
Ar as bind,
|
|
1365
1386
|
f as childToMountable,
|
|
1366
|
-
|
|
1367
|
-
|
|
1387
|
+
yt as clearSSR,
|
|
1388
|
+
Qe as colorChannelsToString,
|
|
1368
1389
|
U as computed,
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1390
|
+
Gt as computedRecord,
|
|
1391
|
+
He as dateInterpolate,
|
|
1392
|
+
Kt as effect,
|
|
1393
|
+
X as emit,
|
|
1394
|
+
Ke as endInterpolate,
|
|
1395
|
+
er as getComputedAnimatable,
|
|
1396
|
+
tt as getComputedAnimatableProp,
|
|
1397
|
+
lt as getSelfOrParentElement,
|
|
1398
|
+
Ue as guessInterpolate,
|
|
1399
|
+
nr as handleAnchorClick,
|
|
1400
|
+
ar as html,
|
|
1401
|
+
lr as input,
|
|
1402
|
+
et as interpolateColor,
|
|
1403
|
+
Qt as interpolateShadow,
|
|
1383
1404
|
_e as isElement,
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1405
|
+
ye as makeGetter,
|
|
1406
|
+
Tt as makeProviderMark,
|
|
1407
|
+
Ae as makeSetter,
|
|
1408
|
+
fr as math,
|
|
1409
|
+
ur as mathAttr,
|
|
1410
|
+
Me as maybeAddAttributeTracker,
|
|
1411
|
+
Ne as maybeAddClassTracker,
|
|
1412
|
+
Le as maybeAddTextTracker,
|
|
1413
|
+
Ye as numberInterpolate,
|
|
1414
|
+
Z as on,
|
|
1394
1415
|
L as oneof,
|
|
1395
|
-
|
|
1416
|
+
ie as parseColorChannels,
|
|
1396
1417
|
A as prop,
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1418
|
+
kt as propOfLocalStorage,
|
|
1419
|
+
Bt as propOfSessionStorage,
|
|
1420
|
+
pe as propOfStorage,
|
|
1421
|
+
gt as removeAttributeTrackers,
|
|
1422
|
+
St as removeClassTrackers,
|
|
1423
|
+
S as removeDOMNode,
|
|
1424
|
+
bt as removeNodeTrackers,
|
|
1425
|
+
At as removeTextTrackers,
|
|
1426
|
+
Dr as render,
|
|
1427
|
+
ze as renderWithContext,
|
|
1428
|
+
at as setAttribute,
|
|
1429
|
+
st as setBooleanProperty,
|
|
1430
|
+
ot as setDateProperty,
|
|
1431
|
+
it as setNumberProperty,
|
|
1432
|
+
ut as setStringProperty,
|
|
1433
|
+
Ut as signal,
|
|
1434
|
+
Pe as signalText,
|
|
1435
|
+
Lr as size,
|
|
1436
|
+
T as ssr,
|
|
1437
|
+
hr as startSSR,
|
|
1438
|
+
Ee as staticText,
|
|
1439
|
+
je as stringInterpolate,
|
|
1440
|
+
Rr as style,
|
|
1441
|
+
cr as svg,
|
|
1442
|
+
or as svgAttr
|
|
1422
1443
|
};
|