@tempots/dom 10.0.13 → 10.0.15
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/index.cjs +1 -1
- package/index.js +321 -330
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var ze = Object.defineProperty;
|
|
2
2
|
var Ve = (t, e, r) => e in t ? ze(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var
|
|
3
|
+
var a = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
function qe(t, e, r) {
|
|
5
5
|
return t + (e - t) * r;
|
|
6
6
|
}
|
|
@@ -25,7 +25,7 @@ function Ye(t, e, r) {
|
|
|
25
25
|
function je(t) {
|
|
26
26
|
return typeof t == "number" ? qe : typeof t == "string" ? Ze : t instanceof Date ? Xe : Ye;
|
|
27
27
|
}
|
|
28
|
-
class
|
|
28
|
+
class He {
|
|
29
29
|
constructor(e, r) {
|
|
30
30
|
this.index = e, this.total = r;
|
|
31
31
|
}
|
|
@@ -43,33 +43,33 @@ class ke {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
const ee = Symbol("isSignal"), te = Symbol("isProp"), re = Symbol("isComputed");
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
const
|
|
46
|
+
var ue;
|
|
47
|
+
ue = ee;
|
|
48
|
+
const _ = class _ {
|
|
49
49
|
constructor(e, r) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
a(this, ue, !0);
|
|
51
|
+
a(this, "_value");
|
|
52
|
+
a(this, "_derivatives", []);
|
|
53
|
+
a(this, "_onValueListeners", []);
|
|
54
|
+
a(this, "_onDisposeListeners", []);
|
|
55
|
+
a(this, "get", () => this._value);
|
|
56
|
+
a(this, "hasListeners", () => this._onValueListeners.length > 0);
|
|
57
|
+
a(this, "on", (e) => (e(this.get()), this._onValueListeners.push(e), () => {
|
|
58
58
|
this._onValueListeners.splice(this._onValueListeners.indexOf(e), 1);
|
|
59
59
|
}));
|
|
60
|
-
|
|
60
|
+
a(this, "_setAndNotify", (e, r) => {
|
|
61
61
|
const n = this.equals(this._value, e);
|
|
62
62
|
n || (this._value = e), (r || !n) && this._onValueListeners.forEach((s) => s(e));
|
|
63
63
|
});
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
a(this, "_disposed", !1);
|
|
65
|
+
a(this, "isDisposed", () => this._disposed);
|
|
66
|
+
a(this, "onDispose", (e) => {
|
|
67
67
|
this._onDisposeListeners.push(e);
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
a(this, "dispose", () => {
|
|
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
73
|
const n = new D(() => {
|
|
74
74
|
try {
|
|
75
75
|
return e(this.get());
|
|
@@ -79,7 +79,7 @@ const E = class E {
|
|
|
79
79
|
}, r);
|
|
80
80
|
return this.setDerivative(n), n;
|
|
81
81
|
});
|
|
82
|
-
|
|
82
|
+
a(this, "flatMap", (e, r = (n, s) => n === s) => {
|
|
83
83
|
const n = new D(() => {
|
|
84
84
|
try {
|
|
85
85
|
return e(this.get()).get();
|
|
@@ -89,9 +89,9 @@ const E = class E {
|
|
|
89
89
|
}, r);
|
|
90
90
|
return this.setDerivative(n), n;
|
|
91
91
|
});
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
a(this, "tap", (e) => this.map((r) => (e(r), r)));
|
|
93
|
+
a(this, "at", (e) => this.map((r) => r[e]));
|
|
94
|
+
a(this, "filter", (e, r) => {
|
|
95
95
|
let n = r ?? this.get();
|
|
96
96
|
const s = new D(() => {
|
|
97
97
|
try {
|
|
@@ -103,7 +103,7 @@ const E = class E {
|
|
|
103
103
|
}, this.equals);
|
|
104
104
|
return this.setDerivative(s), s;
|
|
105
105
|
});
|
|
106
|
-
|
|
106
|
+
a(this, "filterMap", (e, r, n = (s, i) => s === i) => {
|
|
107
107
|
let s = r;
|
|
108
108
|
const i = new D(() => {
|
|
109
109
|
try {
|
|
@@ -115,17 +115,17 @@ const E = class E {
|
|
|
115
115
|
}, n);
|
|
116
116
|
return this.setDerivative(i), i;
|
|
117
117
|
});
|
|
118
|
-
|
|
118
|
+
a(this, "mapAsync", (e, r, n, s = (i, o) => i === o) => {
|
|
119
119
|
const i = A(r, s);
|
|
120
120
|
let o = 0;
|
|
121
121
|
return i.onDispose(
|
|
122
122
|
this.on((l) => {
|
|
123
|
-
const
|
|
123
|
+
const u = ++o;
|
|
124
124
|
try {
|
|
125
125
|
e(l).then((c) => {
|
|
126
|
-
|
|
126
|
+
u === o && i.set(c);
|
|
127
127
|
}).catch((c) => {
|
|
128
|
-
|
|
128
|
+
u === o && (n != null ? i.set(n(c)) : console.error(
|
|
129
129
|
"Unhandled promise rejection in Signal.mapAsync:",
|
|
130
130
|
c
|
|
131
131
|
));
|
|
@@ -136,17 +136,17 @@ const E = class E {
|
|
|
136
136
|
})
|
|
137
137
|
), i;
|
|
138
138
|
});
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
a(this, "mapMaybe", (e, r) => this.map((n) => e(n) ?? r));
|
|
140
|
+
a(this, "feedProp", (e, r = !1) => {
|
|
141
141
|
const n = this.on(e.set);
|
|
142
142
|
return e.onDispose(n), r ? this.onDispose(e.dispose) : this.onDispose(n), e;
|
|
143
143
|
});
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
a(this, "deriveProp", (e = !0) => this.feedProp(A(this.get()), e));
|
|
145
|
+
a(this, "count", () => {
|
|
146
146
|
let e = 0;
|
|
147
147
|
return this.map(() => ++e);
|
|
148
148
|
});
|
|
149
|
-
|
|
149
|
+
a(this, "setDerivative", (e) => {
|
|
150
150
|
this._derivatives.push(e), e.onDispose(() => {
|
|
151
151
|
this._derivatives.splice(
|
|
152
152
|
this._derivatives.indexOf(e),
|
|
@@ -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:",
|
|
@@ -169,40 +169,40 @@ const E = class E {
|
|
|
169
169
|
return e != null && e[ee] === !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
|
|
188
|
-
const
|
|
189
|
-
var
|
|
190
|
-
class D extends (le =
|
|
187
|
+
let d = _;
|
|
188
|
+
const Ke = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
|
|
189
|
+
var ae, le;
|
|
190
|
+
class D extends (le = d, ae = re, le) {
|
|
191
191
|
constructor(r, n) {
|
|
192
192
|
super(void 0, n);
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
a(this, ae, !0);
|
|
194
|
+
a(this, "_isDirty", !1);
|
|
195
|
+
a(this, "setDirty", () => {
|
|
196
196
|
this._isDirty || this._disposed || (this._isDirty = !0, this._derivatives.forEach((r) => r.setDirty()), this.scheduleNotify());
|
|
197
197
|
});
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
a(this, "_scheduleCount", 0);
|
|
199
|
+
a(this, "scheduleNotify", () => {
|
|
200
200
|
const r = ++this._scheduleCount;
|
|
201
|
-
|
|
201
|
+
Ke(() => {
|
|
202
202
|
this._scheduleCount !== r || this._disposed !== !1 || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn(), !1));
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
a(this, "get", () => (this._isDirty && (this._isDirty = !1, this._value = this._fn(), this._setAndNotify(this._value, !0)), this._value));
|
|
206
206
|
this._fn = r, this.setDirty();
|
|
207
207
|
}
|
|
208
208
|
static is(r) {
|
|
@@ -213,22 +213,22 @@ class D extends (le = h, ue = re, le) {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
var ce, fe;
|
|
216
|
-
class V extends (fe =
|
|
216
|
+
class V extends (fe = d, ce = te, fe) {
|
|
217
217
|
constructor() {
|
|
218
218
|
super(...arguments);
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
a(this, ce, !0);
|
|
220
|
+
a(this, "set", (r) => {
|
|
221
221
|
this._setAndNotify(r, !1);
|
|
222
222
|
});
|
|
223
|
-
|
|
223
|
+
a(this, "update", (r) => {
|
|
224
224
|
this._setAndNotify(r(this.get()), !1);
|
|
225
225
|
});
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
a(this, "reducer", (r) => (n) => this.update((s) => r(s, n)));
|
|
227
|
+
a(this, "iso", (r, n, s = (i, o) => i === o) => {
|
|
228
228
|
const i = new V(r(this.get()), s);
|
|
229
229
|
return i.onDispose(this.on((o) => i.set(r(o)))), i.on((o) => this._setAndNotify(n(o), !1)), i;
|
|
230
230
|
});
|
|
231
|
-
|
|
231
|
+
a(this, "atProp", (r) => this.iso(
|
|
232
232
|
(n) => n[r],
|
|
233
233
|
(n) => ({ ...this.value, [r]: n })
|
|
234
234
|
));
|
|
@@ -243,89 +243,89 @@ class V extends (fe = h, ce = te, fe) {
|
|
|
243
243
|
this._setAndNotify(r, !1);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function k(t, e, r = (n, s) => n === s) {
|
|
247
247
|
const n = new D(t, r);
|
|
248
248
|
return e.forEach((s) => s.setDerivative(n)), n;
|
|
249
249
|
}
|
|
250
250
|
function qt(t, e) {
|
|
251
|
-
return
|
|
251
|
+
return k(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
256
|
function Zt(t, e = (r, n) => r === n) {
|
|
257
|
-
return new
|
|
257
|
+
return new d(t, e);
|
|
258
258
|
}
|
|
259
|
-
class
|
|
259
|
+
class he {
|
|
260
260
|
constructor() {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
a(this, "_store", /* @__PURE__ */ new Map());
|
|
262
|
+
a(this, "getItem", (e) => this._store.get(e) ?? null);
|
|
263
|
+
a(this, "setItem", (e, r) => {
|
|
264
264
|
this._store.set(e, r);
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function de({
|
|
269
269
|
key: t,
|
|
270
270
|
defaultValue: e,
|
|
271
271
|
store: r,
|
|
272
272
|
serialize: n = JSON.stringify,
|
|
273
273
|
deserialize: s = JSON.parse,
|
|
274
|
-
equals: i = (l,
|
|
274
|
+
equals: i = (l, u) => l === u,
|
|
275
275
|
onLoad: o = (l) => l
|
|
276
276
|
}) {
|
|
277
|
-
const l = r.getItem(t),
|
|
277
|
+
const l = r.getItem(t), u = new V(
|
|
278
278
|
l != null ? o(s(l)) : typeof e == "function" ? e() : e,
|
|
279
279
|
i
|
|
280
280
|
);
|
|
281
|
-
return
|
|
281
|
+
return u.on((c) => {
|
|
282
282
|
r.setItem(t, n(c));
|
|
283
|
-
}),
|
|
283
|
+
}), u;
|
|
284
284
|
}
|
|
285
285
|
function Xt(t) {
|
|
286
|
-
return
|
|
286
|
+
return de({
|
|
287
287
|
...t,
|
|
288
|
-
store: (window == null ? void 0 : window.localStorage) ?? new
|
|
288
|
+
store: (window == null ? void 0 : window.localStorage) ?? new he()
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
function Yt(t) {
|
|
292
|
-
return
|
|
292
|
+
return de({
|
|
293
293
|
...t,
|
|
294
|
-
store: (window == null ? void 0 : window.sessionStorage) ?? new
|
|
294
|
+
store: (window == null ? void 0 : window.sessionStorage) ?? new he()
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
297
|
function ne(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) ?? ((
|
|
302
|
-
let l = n == null ? void 0 : n.interpolate,
|
|
303
|
-
const
|
|
304
|
-
|
|
300
|
+
function Ue(t, e, r, n) {
|
|
301
|
+
const s = (n == null ? void 0 : n.duration) ?? 300, i = (n == null ? void 0 : n.easing) ?? ((S) => S), o = (n == null ? void 0 : n.equals) ?? ((S, I) => S === I);
|
|
302
|
+
let l = n == null ? void 0 : n.interpolate, u = t, c = e(), p = performance.now(), m = null, h = !0;
|
|
303
|
+
const E = new D(e, o), y = A(t, o);
|
|
304
|
+
y.onDispose(() => {
|
|
305
305
|
m !== null && cancelAnimationFrame(m);
|
|
306
|
-
}),
|
|
307
|
-
|
|
306
|
+
}), y.onDispose(E.dispose), r.forEach((S) => {
|
|
307
|
+
S.setDerivative(E), S.onDispose(y.dispose);
|
|
308
308
|
});
|
|
309
|
-
const j = (
|
|
310
|
-
c =
|
|
309
|
+
const j = (S) => {
|
|
310
|
+
c = S, p = performance.now(), u = y.value, h && (h = !1, m = ne(J));
|
|
311
311
|
}, J = () => {
|
|
312
|
-
const
|
|
313
|
-
l == null && (l = je(
|
|
314
|
-
let G = l(
|
|
315
|
-
|
|
312
|
+
const I = (performance.now() - p) / d.unwrap(s), Fe = i(I);
|
|
313
|
+
l == null && (l = je(u));
|
|
314
|
+
let G = l(u, c, Fe);
|
|
315
|
+
I >= 1 ? (h = !0, G = c) : m = ne(J), y.set(G);
|
|
316
316
|
};
|
|
317
|
-
return
|
|
317
|
+
return E.on(j), y;
|
|
318
318
|
}
|
|
319
319
|
function jt(t, e) {
|
|
320
320
|
const { initialValue: r, ...n } = e ?? {};
|
|
321
|
-
return
|
|
321
|
+
return Ue(r ?? t.get(), t.get, [t], n);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Ht(t, e) {
|
|
324
324
|
const { signals: r, literals: n } = Object.entries(t).reduce(
|
|
325
|
-
({ signals: i, literals: o }, [l,
|
|
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
|
-
return
|
|
328
|
+
return k(() => (r.forEach(([i, o]) => n[i] = o.value), e(n)), s);
|
|
329
329
|
}
|
|
330
330
|
function se(t) {
|
|
331
331
|
let e = t.match(/rgba?\((\d+), (\d+), (\d+)(, (\d+))?\)/);
|
|
@@ -360,17 +360,17 @@ function ie(t) {
|
|
|
360
360
|
spread: 0,
|
|
361
361
|
color: "rgba(0, 0, 0, 0)"
|
|
362
362
|
};
|
|
363
|
-
const [, n, s, , , i, , o, , l, ,
|
|
363
|
+
const [, n, s, , , i, , o, , l, , u] = r, c = o != null ? parseInt(o, 10) : 0, p = l != null ? parseInt(l, 10) : 0;
|
|
364
364
|
return {
|
|
365
365
|
inset: !!n,
|
|
366
366
|
x: parseInt(s, 10),
|
|
367
367
|
y: parseInt(i, 10),
|
|
368
368
|
blur: c,
|
|
369
369
|
spread: p,
|
|
370
|
-
color:
|
|
370
|
+
color: u
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function ke(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
|
}
|
|
@@ -378,24 +378,24 @@ function Be(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
380
|
function Je(t, e) {
|
|
381
|
-
const [r, n, s, i, o] = se(t), [l,
|
|
381
|
+
const [r, n, s, i, o] = se(t), [l, u, c, p] = se(e);
|
|
382
382
|
return (m) => {
|
|
383
|
-
const
|
|
384
|
-
return Be([
|
|
383
|
+
const h = r + (l - r) * m, E = n + (u - n) * m, y = s + (c - s) * m, j = i + (p - i) * m;
|
|
384
|
+
return Be([h, E, y, j, o]);
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function Kt(t, e) {
|
|
388
388
|
const r = ie(t), n = ie(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,
|
|
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 = me(r.color, n.color)(s);
|
|
391
|
+
return ke({ inset: r.inset, x: i, y: o, blur: l, spread: u, color: c });
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
394
|
function Ge(t, e) {
|
|
395
|
-
var r, n, s, i, o, l,
|
|
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" ? (
|
|
395
|
+
var r, n, s, i, o, l, u, c;
|
|
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 Ut(t, e) {
|
|
399
399
|
const r = {}, n = getComputedStyle(t);
|
|
400
400
|
for (const [s, i] of Object.entries(e)) {
|
|
401
401
|
const o = s;
|
|
@@ -403,15 +403,15 @@ function Kt(t, e) {
|
|
|
403
403
|
}
|
|
404
404
|
return r;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function R(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
|
|
409
|
+
const H = /* @__PURE__ */ new Map();
|
|
410
410
|
function pe(t, e, r) {
|
|
411
|
-
if (
|
|
412
|
-
return
|
|
411
|
+
if (H.has(r + ":" + t + e))
|
|
412
|
+
return H.get(t + e);
|
|
413
413
|
const n = Je(t, e);
|
|
414
|
-
return
|
|
414
|
+
return H.set(r + ":" + t + e, n), n;
|
|
415
415
|
}
|
|
416
416
|
function me(t, e) {
|
|
417
417
|
return pe(t, e, "c");
|
|
@@ -423,23 +423,23 @@ function et(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
|
+
R(t, e, i);
|
|
427
427
|
} else if (e === "boxShadow" || e === "textShadow") {
|
|
428
428
|
const i = Qe(
|
|
429
429
|
r,
|
|
430
430
|
n
|
|
431
431
|
)(s);
|
|
432
|
-
|
|
432
|
+
R(t, e, i);
|
|
433
433
|
} else if (e === "color" || e === "backgroundColor" || e === "borderColor" || e === "outlineColor") {
|
|
434
434
|
const i = me(
|
|
435
435
|
r,
|
|
436
436
|
n
|
|
437
437
|
)(s);
|
|
438
|
-
|
|
438
|
+
R(t, e, i);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function kt(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;
|
|
@@ -449,14 +449,14 @@ function Ut(t, e, r, n) {
|
|
|
449
449
|
function Bt(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 && R(t, r, n);
|
|
453
453
|
}
|
|
454
454
|
const ge = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), we = /* @__PURE__ */ new Set([
|
|
455
455
|
"rowSpan",
|
|
456
456
|
"colSpan",
|
|
457
457
|
"tabIndex",
|
|
458
458
|
"valueAsNumber"
|
|
459
|
-
]),
|
|
459
|
+
]), be = /* @__PURE__ */ new Set(["valueAsDate"]), Se = /* @__PURE__ */ new Set([
|
|
460
460
|
"value",
|
|
461
461
|
"textContent",
|
|
462
462
|
"innerText",
|
|
@@ -464,13 +464,13 @@ const ge = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]
|
|
|
464
464
|
"outerHTML",
|
|
465
465
|
"className",
|
|
466
466
|
"classList"
|
|
467
|
-
]),
|
|
467
|
+
]), K = /* @__PURE__ */ new Map();
|
|
468
468
|
function C(t, e) {
|
|
469
|
-
if (
|
|
470
|
-
return
|
|
469
|
+
if (K.has(t))
|
|
470
|
+
return K.get(t);
|
|
471
471
|
{
|
|
472
472
|
const r = e(t);
|
|
473
|
-
return
|
|
473
|
+
return K.set(t, r), r;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
function tt(t) {
|
|
@@ -499,10 +499,10 @@ function it(t) {
|
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
501
|
function ve(t) {
|
|
502
|
-
return ge.has(t) ? C(t, tt) : we.has(t) ? C(t, rt) :
|
|
502
|
+
return ge.has(t) ? C(t, tt) : we.has(t) ? C(t, rt) : be.has(t) ? C(t, nt) : Se.has(t) ? C(t, st) : C(t, it);
|
|
503
503
|
}
|
|
504
504
|
function Ae(t) {
|
|
505
|
-
return (e) => ge.has(t) ? !!e[t] : we.has(t) ? Number(e[t]) :
|
|
505
|
+
return (e) => ge.has(t) ? !!e[t] : we.has(t) ? Number(e[t]) : be.has(t) ? e[t] : Se.has(t) ? String(e[t]) : e.getAttribute(t);
|
|
506
506
|
}
|
|
507
507
|
class v {
|
|
508
508
|
/**
|
|
@@ -522,19 +522,19 @@ class v {
|
|
|
522
522
|
* @param namespace - The namespace URI to create the element in, or `undefined` to create a standard HTML element.
|
|
523
523
|
* @returns The newly created element.
|
|
524
524
|
*/
|
|
525
|
-
|
|
525
|
+
a(this, "createElement", (e, r) => r !== void 0 ? this.document.createElementNS(r, e) : this.document.createElement(e));
|
|
526
526
|
/**
|
|
527
527
|
* Creates a new text node with the specified text content.
|
|
528
528
|
* @param text - The text content for the new text node.
|
|
529
529
|
* @returns A new `Text` node with the specified text content.
|
|
530
530
|
*/
|
|
531
|
-
|
|
531
|
+
a(this, "createText", (e) => this.document.createTextNode(e));
|
|
532
532
|
/**
|
|
533
533
|
* Creates a new `DOMContext` with a reference to a newly created text node.
|
|
534
534
|
* The text node is appended or inserted to the current `DOMContext`.
|
|
535
535
|
* The new `DOMContext` with the reference is returned.
|
|
536
536
|
*/
|
|
537
|
-
|
|
537
|
+
a(this, "makeRef", () => {
|
|
538
538
|
const e = this.createText("");
|
|
539
539
|
return this.appendOrInsert(e), this.withReference(e);
|
|
540
540
|
});
|
|
@@ -543,7 +543,7 @@ class v {
|
|
|
543
543
|
*
|
|
544
544
|
* @param child - The child node to append or insert.
|
|
545
545
|
*/
|
|
546
|
-
|
|
546
|
+
a(this, "appendOrInsert", (e) => {
|
|
547
547
|
this.reference === void 0 ? this.element.appendChild(e) : this.element.insertBefore(e, this.reference);
|
|
548
548
|
});
|
|
549
549
|
/**
|
|
@@ -552,18 +552,18 @@ class v {
|
|
|
552
552
|
* @param document - The `Document` to use for the `DOMContext`.
|
|
553
553
|
* @returns A new `DOMContext` instance.
|
|
554
554
|
*/
|
|
555
|
-
|
|
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
|
-
|
|
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
|
-
|
|
566
|
+
a(this, "withFirstLevel", () => new v(
|
|
567
567
|
this.document,
|
|
568
568
|
this.element,
|
|
569
569
|
this.reference,
|
|
@@ -576,7 +576,7 @@ class v {
|
|
|
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
|
-
|
|
579
|
+
a(this, "withReference", (e) => new v(
|
|
580
580
|
this.document,
|
|
581
581
|
this.element,
|
|
582
582
|
e,
|
|
@@ -589,7 +589,7 @@ class v {
|
|
|
589
589
|
* @param value - The value to set for the provider.
|
|
590
590
|
* @returns A new DOMContext with the updated providers.
|
|
591
591
|
*/
|
|
592
|
-
|
|
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 v {
|
|
|
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
|
-
|
|
609
|
+
a(this, "withProviders", (e) => new v(
|
|
610
610
|
this.document,
|
|
611
611
|
this.element,
|
|
612
612
|
this.reference,
|
|
@@ -623,7 +623,7 @@ class v {
|
|
|
623
623
|
* @returns The provider for the given mark.
|
|
624
624
|
* @throws {Error} If the provider for the given mark is not found.
|
|
625
625
|
*/
|
|
626
|
-
|
|
626
|
+
a(this, "getProvider", (e) => {
|
|
627
627
|
if (this.providers[e] === void 0)
|
|
628
628
|
throw new Error(`Provider not found: ${e.description}`);
|
|
629
629
|
return this.providers[e];
|
|
@@ -641,7 +641,7 @@ class v {
|
|
|
641
641
|
return new v(e.ownerDocument, e, r, {}, !0);
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function b(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
|
}
|
|
@@ -651,7 +651,7 @@ function ot(t) {
|
|
|
651
651
|
function ye(t) {
|
|
652
652
|
return t.nodeType === 1;
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function ut(t, e, r) {
|
|
655
655
|
let n = t.target;
|
|
656
656
|
for (; n != null && !(n instanceof HTMLAnchorElement); )
|
|
657
657
|
n = n.parentElement;
|
|
@@ -660,8 +660,8 @@ function at(t, e, r) {
|
|
|
660
660
|
if (t.button !== 0 || t.ctrlKey || t.metaKey || s.target !== "_self" && s.target !== "" || s.getAttribute("download") != null)
|
|
661
661
|
return !0;
|
|
662
662
|
if (r) {
|
|
663
|
-
const { pathname: i, search: o, hash: l } = s,
|
|
664
|
-
if (s.getAttribute("href") !==
|
|
663
|
+
const { pathname: i, search: o, hash: l } = s, u = i + o + l;
|
|
664
|
+
if (s.getAttribute("href") !== u || e && !/\/[^/.]*$/.test(i))
|
|
665
665
|
return !0;
|
|
666
666
|
}
|
|
667
667
|
return !1;
|
|
@@ -671,28 +671,28 @@ const Jt = (t, e = {
|
|
|
671
671
|
checkExternalUrl: !0
|
|
672
672
|
}) => (r) => {
|
|
673
673
|
const { checkExtension: n, checkExternalUrl: s } = e;
|
|
674
|
-
|
|
674
|
+
ut(
|
|
675
675
|
r,
|
|
676
676
|
n === !0,
|
|
677
677
|
s === !0
|
|
678
678
|
) || t() && r.preventDefault();
|
|
679
679
|
}, _e = (t) => (e) => {
|
|
680
|
-
|
|
680
|
+
$e(e);
|
|
681
681
|
const r = e.createText(t);
|
|
682
682
|
return e.appendOrInsert(r), (n) => {
|
|
683
|
-
n &&
|
|
683
|
+
n && b(r);
|
|
684
684
|
};
|
|
685
685
|
}, Ee = (t) => (e) => {
|
|
686
|
-
|
|
686
|
+
$e(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 && b(r);
|
|
692
692
|
};
|
|
693
693
|
};
|
|
694
694
|
function Gt(t) {
|
|
695
|
-
return
|
|
695
|
+
return d.is(t) ? Ee(t) : _e(t);
|
|
696
696
|
}
|
|
697
697
|
const g = (...t) => (e) => {
|
|
698
698
|
const r = t.map((n) => f(n)(e));
|
|
@@ -700,10 +700,10 @@ const g = (...t) => (e) => {
|
|
|
700
700
|
r.forEach((s) => s(n));
|
|
701
701
|
};
|
|
702
702
|
}, w = () => () => {
|
|
703
|
-
},
|
|
703
|
+
}, at = (t) => (e) => (Me(e), e.element.classList.add(...t), (r) => {
|
|
704
704
|
r && e.element.classList.remove(...t);
|
|
705
705
|
}), lt = (t) => (e) => {
|
|
706
|
-
|
|
706
|
+
Me(e);
|
|
707
707
|
const r = e.element;
|
|
708
708
|
let n = [];
|
|
709
709
|
const s = t.on((i) => {
|
|
@@ -733,9 +733,9 @@ const g = (...t) => (e) => {
|
|
|
733
733
|
}, P = new Proxy(
|
|
734
734
|
{},
|
|
735
735
|
{
|
|
736
|
-
get: (t, e) => e === "class" ? (r) =>
|
|
736
|
+
get: (t, e) => e === "class" ? (r) => d.is(r) ? lt(r) : at(
|
|
737
737
|
(r ?? "").split(" ").filter((n) => n.length > 0)
|
|
738
|
-
) : (r) =>
|
|
738
|
+
) : (r) => d.is(r) ? Z(
|
|
739
739
|
e,
|
|
740
740
|
r
|
|
741
741
|
) : q(
|
|
@@ -746,7 +746,7 @@ const g = (...t) => (e) => {
|
|
|
746
746
|
), Qt = new Proxy(
|
|
747
747
|
{},
|
|
748
748
|
{
|
|
749
|
-
get: (t, e) => (r) =>
|
|
749
|
+
get: (t, e) => (r) => d.is(r) ? Z(
|
|
750
750
|
`aria-${e}`,
|
|
751
751
|
r
|
|
752
752
|
) : q(
|
|
@@ -757,7 +757,7 @@ const g = (...t) => (e) => {
|
|
|
757
757
|
), er = new Proxy(
|
|
758
758
|
{},
|
|
759
759
|
{
|
|
760
|
-
get: (t, e) => (r) =>
|
|
760
|
+
get: (t, e) => (r) => d.is(r) ? Z(
|
|
761
761
|
e,
|
|
762
762
|
r
|
|
763
763
|
) : q(
|
|
@@ -768,7 +768,7 @@ const g = (...t) => (e) => {
|
|
|
768
768
|
), tr = new Proxy(
|
|
769
769
|
{},
|
|
770
770
|
{
|
|
771
|
-
get: (t, e) => (r) =>
|
|
771
|
+
get: (t, e) => (r) => d.is(r) ? Z(
|
|
772
772
|
e,
|
|
773
773
|
r
|
|
774
774
|
) : q(
|
|
@@ -778,78 +778,72 @@ const g = (...t) => (e) => {
|
|
|
778
778
|
}
|
|
779
779
|
);
|
|
780
780
|
function f(t) {
|
|
781
|
-
return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ? _e(t) :
|
|
781
|
+
return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ? _e(t) : d.is(t) ? Ee(t) : t;
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function Pe(t, ...e) {
|
|
784
784
|
return (r) => {
|
|
785
785
|
const n = r.createElement(t, void 0);
|
|
786
|
-
r.isFirstLevel &&
|
|
786
|
+
r.isFirstLevel && T.isSSR() && Ne(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 && b(n);
|
|
790
790
|
};
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function De(t, e, ...r) {
|
|
794
794
|
return (n) => {
|
|
795
795
|
const s = n.createElement(t, e);
|
|
796
|
-
n.isFirstLevel &&
|
|
796
|
+
n.isFirstLevel && T.isSSR() && Ne(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 && b(s);
|
|
800
800
|
};
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
803
|
const rr = new Proxy(
|
|
804
804
|
{},
|
|
805
805
|
{
|
|
806
|
-
get: (t, e) => (...r) =>
|
|
806
|
+
get: (t, e) => (...r) => Pe(e, r.flatMap(f))
|
|
807
807
|
}
|
|
808
808
|
), nr = new Proxy(
|
|
809
809
|
{},
|
|
810
810
|
{
|
|
811
|
-
get: (t, e) => (...r) =>
|
|
811
|
+
get: (t, e) => (...r) => Pe("input", P.type(e), ...r)
|
|
812
812
|
}
|
|
813
813
|
), ct = "http://www.w3.org/2000/svg", sr = new Proxy(
|
|
814
814
|
{},
|
|
815
815
|
{
|
|
816
|
-
get: (t, e) => (...r) =>
|
|
816
|
+
get: (t, e) => (...r) => De(e, ct, r.flatMap(f))
|
|
817
817
|
}
|
|
818
818
|
), ft = "http://www.w3.org/1998/Math/MathML", ir = new Proxy(
|
|
819
819
|
{},
|
|
820
820
|
{
|
|
821
|
-
get: (t, e) => (...r) =>
|
|
821
|
+
get: (t, e) => (...r) => De(e, ft, r.flatMap(f))
|
|
822
822
|
}
|
|
823
|
-
),
|
|
824
|
-
function
|
|
823
|
+
), M = "data-tempo-attr", x = "data-tempo-class", Te = "data-tempo-node", W = "data-tempo-text";
|
|
824
|
+
function ht(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
831
|
function Ce(t, e) {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
})
|
|
836
|
-
}
|
|
837
|
-
function ht(t) {
|
|
838
|
-
t.querySelectorAll(`[${L}]`).forEach((e) => {
|
|
839
|
-
const r = JSON.parse(e.getAttribute(L) ?? "{}");
|
|
832
|
+
T.isSSR() && t.isFirstLevel && ht(t.element, e);
|
|
833
|
+
}
|
|
834
|
+
function dt(t) {
|
|
835
|
+
t.querySelectorAll(`[${M}]`).forEach((e) => {
|
|
836
|
+
const r = JSON.parse(e.getAttribute(M) ?? "{}");
|
|
840
837
|
for (const [n, s] of Object.entries(r))
|
|
841
838
|
e.setAttribute(n, s);
|
|
842
|
-
e.removeAttribute(
|
|
839
|
+
e.removeAttribute(M);
|
|
843
840
|
});
|
|
844
841
|
}
|
|
845
842
|
function pt(t) {
|
|
846
843
|
t.setAttribute(x, t.className);
|
|
847
844
|
}
|
|
848
|
-
function
|
|
849
|
-
|
|
850
|
-
isSSR: y.isSSR(),
|
|
851
|
-
isFirstLevel: t.isFirstLevel
|
|
852
|
-
}), y.isSSR() && t.isFirstLevel && pt(t.element);
|
|
845
|
+
function Me(t) {
|
|
846
|
+
T.isSSR() && t.isFirstLevel && pt(t.element);
|
|
853
847
|
}
|
|
854
848
|
function mt(t) {
|
|
855
849
|
t.querySelectorAll(`[${x}]`).forEach((e) => {
|
|
@@ -857,49 +851,46 @@ function mt(t) {
|
|
|
857
851
|
r !== null && (e.className = r, e.removeAttribute(x));
|
|
858
852
|
});
|
|
859
853
|
}
|
|
860
|
-
function
|
|
861
|
-
t.setAttribute(
|
|
854
|
+
function Ne(t) {
|
|
855
|
+
t.setAttribute(Te, "");
|
|
862
856
|
}
|
|
863
857
|
function gt(t) {
|
|
864
|
-
t.querySelectorAll(`[${
|
|
865
|
-
|
|
858
|
+
t.querySelectorAll(`[${Te}]`).forEach((e) => {
|
|
859
|
+
b(e);
|
|
866
860
|
});
|
|
867
861
|
}
|
|
868
862
|
function wt(t) {
|
|
869
|
-
t.setAttribute(
|
|
863
|
+
t.setAttribute(W, t.textContent ?? "");
|
|
870
864
|
}
|
|
871
|
-
function
|
|
872
|
-
|
|
873
|
-
isSSR: y.isSSR(),
|
|
874
|
-
isFirstLevel: t.isFirstLevel
|
|
875
|
-
}), y.isSSR() && t.isFirstLevel && wt(t.element);
|
|
865
|
+
function $e(t) {
|
|
866
|
+
T.isSSR() && t.isFirstLevel && wt(t.element);
|
|
876
867
|
}
|
|
877
|
-
function
|
|
878
|
-
t.querySelectorAll(`[${
|
|
879
|
-
e.textContent = e.getAttribute(
|
|
868
|
+
function bt(t) {
|
|
869
|
+
t.querySelectorAll(`[${W}]`).forEach((e) => {
|
|
870
|
+
e.textContent = e.getAttribute(W), e.removeAttribute(W);
|
|
880
871
|
});
|
|
881
872
|
}
|
|
882
|
-
function
|
|
883
|
-
gt(t), mt(t),
|
|
873
|
+
function St(t) {
|
|
874
|
+
gt(t), mt(t), dt(t), bt(t);
|
|
884
875
|
}
|
|
885
|
-
const
|
|
886
|
-
let
|
|
876
|
+
const F = "__tempo__is_ssr__";
|
|
877
|
+
let U = 0;
|
|
887
878
|
const or = (t = 30) => {
|
|
888
879
|
const e = window;
|
|
889
|
-
return e[
|
|
880
|
+
return e[F] = !0, new Promise((r, n) => {
|
|
890
881
|
let s;
|
|
891
882
|
const i = setInterval(() => {
|
|
892
|
-
|
|
883
|
+
U <= 0 && (clearInterval(i), clearTimeout(s), e[F] = !1, r());
|
|
893
884
|
}, 500);
|
|
894
885
|
s = setTimeout(() => {
|
|
895
|
-
clearInterval(i), e[
|
|
886
|
+
clearInterval(i), e[F] = !1, n(new Error("SSR Timeout"));
|
|
896
887
|
}, t * 1e3);
|
|
897
888
|
});
|
|
898
|
-
},
|
|
899
|
-
useDone: (t) => (
|
|
889
|
+
}, T = {
|
|
890
|
+
useDone: (t) => (U++, f(t(() => U--))),
|
|
900
891
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
901
|
-
isSSR: () => window[
|
|
902
|
-
},
|
|
892
|
+
isSSR: () => window[F] === !0
|
|
893
|
+
}, Le = (t, e) => (r) => {
|
|
903
894
|
const n = Object.values(t).reduce((s, i) => {
|
|
904
895
|
const o = r.getProvider(i);
|
|
905
896
|
if (o == null)
|
|
@@ -907,21 +898,21 @@ const or = (t = 30) => {
|
|
|
907
898
|
return s[i] = o, s;
|
|
908
899
|
}, {});
|
|
909
900
|
return f(e(n))(r);
|
|
910
|
-
},
|
|
901
|
+
}, ur = (t, e) => (r) => {
|
|
911
902
|
const n = [], s = Object.entries(t).reduce(
|
|
912
903
|
(i, [o, l]) => (n.push(
|
|
913
|
-
l((
|
|
904
|
+
l((u) => (Reflect.set(i, o, u), null))(r)
|
|
914
905
|
), i),
|
|
915
906
|
{}
|
|
916
907
|
);
|
|
917
908
|
return n.push(e(s)(r)), (i) => {
|
|
918
909
|
n.forEach((o) => o(i));
|
|
919
910
|
};
|
|
920
|
-
}, vt = (t, e) =>
|
|
911
|
+
}, vt = (t, e) => Le([t], (r) => f(e(r[t]))), ar = (t, e) => Le(t, (r) => f(e(r))), $ = (t) => (e) => (r) => t(r, e);
|
|
921
912
|
function At(t) {
|
|
922
913
|
return Symbol(t);
|
|
923
914
|
}
|
|
924
|
-
const
|
|
915
|
+
const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length > 0 ? t.reduceRight((e, r) => (n) => e(r(n))) : f, yt = (t, e, r) => Ie({ [t]: e }, f(r)), cr = (t, e) => Ie(t, f(e)), oe = At("Appearance"), fr = {
|
|
925
916
|
/**
|
|
926
917
|
* Provides a child component with an appearance context, which can be used to
|
|
927
918
|
* determine the current appearance (light or dark) based on the user's system
|
|
@@ -939,7 +930,7 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
|
|
|
939
930
|
}, s = window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : void 0;
|
|
940
931
|
return s == null || s.addEventListener("change", n), g(
|
|
941
932
|
yt(oe, r, t),
|
|
942
|
-
|
|
933
|
+
$(() => s == null ? void 0 : s.removeEventListener("change", n))
|
|
943
934
|
);
|
|
944
935
|
},
|
|
945
936
|
/**
|
|
@@ -950,27 +941,27 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
|
|
|
950
941
|
* @returns The `Child` element returned by the provided function.
|
|
951
942
|
*/
|
|
952
943
|
consume: (t) => vt(oe, t)
|
|
953
|
-
},
|
|
944
|
+
}, Oe = (t, e) => {
|
|
954
945
|
if (typeof e == "function")
|
|
955
|
-
return
|
|
946
|
+
return Oe(t, { then: e });
|
|
956
947
|
const r = e.pending != null ? f(e.pending) : w, n = e.then, s = e.error != null ? (i) => f(e.error(i)) : () => w;
|
|
957
948
|
return (i) => {
|
|
958
949
|
let o = !0;
|
|
959
950
|
const l = t();
|
|
960
951
|
i = i.makeRef();
|
|
961
|
-
let
|
|
952
|
+
let u = f(r)(i);
|
|
962
953
|
return l.then(
|
|
963
954
|
(c) => {
|
|
964
|
-
o && (
|
|
955
|
+
o && (u(!0), u = f(n(c))(i));
|
|
965
956
|
},
|
|
966
957
|
(c) => {
|
|
967
|
-
o && (
|
|
958
|
+
o && (u(!0), u = f(s(c))(i));
|
|
968
959
|
}
|
|
969
960
|
), (c) => {
|
|
970
|
-
o = !1,
|
|
961
|
+
o = !1, u(c), c && i.reference && b(i.reference);
|
|
971
962
|
};
|
|
972
963
|
};
|
|
973
|
-
},
|
|
964
|
+
}, hr = (t, e) => Oe(() => t, e), dr = (t = 10) => (e) => {
|
|
974
965
|
const r = setTimeout(() => {
|
|
975
966
|
var n;
|
|
976
967
|
(n = e.element) == null || n.focus();
|
|
@@ -984,9 +975,9 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
|
|
|
984
975
|
return (n) => {
|
|
985
976
|
clearTimeout(r);
|
|
986
977
|
};
|
|
987
|
-
},
|
|
978
|
+
}, Re = (t, e) => (r) => (r.element.addEventListener(t, e), (n) => {
|
|
988
979
|
n && r.element.removeEventListener(t, e);
|
|
989
|
-
}), _t = (t) =>
|
|
980
|
+
}), _t = (t) => Re("click", (e) => {
|
|
990
981
|
e.preventDefault();
|
|
991
982
|
const r = e.target;
|
|
992
983
|
setTimeout(() => {
|
|
@@ -996,7 +987,7 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
|
|
|
996
987
|
}), X = new Proxy(
|
|
997
988
|
{},
|
|
998
989
|
{
|
|
999
|
-
get: (t, e) => (r) =>
|
|
990
|
+
get: (t, e) => (r) => Re(e, r)
|
|
1000
991
|
}
|
|
1001
992
|
), Y = {
|
|
1002
993
|
value: (t) => (e) => {
|
|
@@ -1049,19 +1040,19 @@ function Et(t, e = "input") {
|
|
|
1049
1040
|
X[e](Y.valueAsDate(t.set))
|
|
1050
1041
|
);
|
|
1051
1042
|
}
|
|
1052
|
-
function
|
|
1043
|
+
function Pt(t, e = "input") {
|
|
1053
1044
|
return g(
|
|
1054
1045
|
P.valueAsDate(t),
|
|
1055
1046
|
X[e](Y.valueAsDateTime(t.set))
|
|
1056
1047
|
);
|
|
1057
1048
|
}
|
|
1058
|
-
function
|
|
1049
|
+
function Dt(t, e = "input") {
|
|
1059
1050
|
return g(
|
|
1060
1051
|
P.valueAsNumber(t),
|
|
1061
1052
|
X[e](Y.valueAsNumber(t.set))
|
|
1062
1053
|
);
|
|
1063
1054
|
}
|
|
1064
|
-
function
|
|
1055
|
+
function Tt(t, e = "input") {
|
|
1065
1056
|
return g(P.value(t), X[e](Y.value(t.set)));
|
|
1066
1057
|
}
|
|
1067
1058
|
function Ct(t) {
|
|
@@ -1069,48 +1060,48 @@ function Ct(t) {
|
|
|
1069
1060
|
}
|
|
1070
1061
|
const mr = {
|
|
1071
1062
|
date: Et,
|
|
1072
|
-
dateTime:
|
|
1073
|
-
number:
|
|
1074
|
-
text:
|
|
1063
|
+
dateTime: Pt,
|
|
1064
|
+
number: Dt,
|
|
1065
|
+
text: Tt,
|
|
1075
1066
|
checked: Ct
|
|
1076
|
-
},
|
|
1067
|
+
}, O = (t, e) => (r) => {
|
|
1077
1068
|
r = r.makeRef();
|
|
1078
1069
|
let n, s;
|
|
1079
|
-
const i = t.map((
|
|
1070
|
+
const i = t.map((u) => Object.keys(u)[0]);
|
|
1080
1071
|
let o;
|
|
1081
|
-
const l = i.on((
|
|
1082
|
-
if (
|
|
1083
|
-
s == null || s.dispose(), n == null || n(!0), s = t.map((p) => p[
|
|
1084
|
-
const c = e[
|
|
1085
|
-
n = f(c)(r), o =
|
|
1072
|
+
const l = i.on((u) => {
|
|
1073
|
+
if (u !== o) {
|
|
1074
|
+
s == null || s.dispose(), n == null || n(!0), s = t.map((p) => p[u]);
|
|
1075
|
+
const c = e[u](s);
|
|
1076
|
+
n = f(c)(r), o = u;
|
|
1086
1077
|
}
|
|
1087
1078
|
});
|
|
1088
|
-
return (
|
|
1089
|
-
l(),
|
|
1079
|
+
return (u) => {
|
|
1080
|
+
l(), u && r.reference != null && b(r.reference), n == null || n(!0);
|
|
1090
1081
|
};
|
|
1091
|
-
},
|
|
1092
|
-
bool: (t, e) =>
|
|
1082
|
+
}, L = {
|
|
1083
|
+
bool: (t, e) => O(
|
|
1093
1084
|
t.map((r) => r ? { true: !0 } : { false: !0 }),
|
|
1094
1085
|
e
|
|
1095
1086
|
),
|
|
1096
|
-
field: (t, e, r) =>
|
|
1087
|
+
field: (t, e, r) => O(
|
|
1097
1088
|
t.map((n) => ({ [n[e]]: n })),
|
|
1098
1089
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1099
1090
|
r
|
|
1100
1091
|
),
|
|
1101
|
-
kind: (t, e) =>
|
|
1092
|
+
kind: (t, e) => L.field(t, "kind", e),
|
|
1102
1093
|
tuple: (t, e) => {
|
|
1103
1094
|
const r = t.map(([n, s]) => ({ [n]: s }));
|
|
1104
|
-
return
|
|
1095
|
+
return O(r, e);
|
|
1105
1096
|
},
|
|
1106
|
-
type: (t, e) =>
|
|
1107
|
-
value: (t, e) =>
|
|
1097
|
+
type: (t, e) => L.field(t, "type", e),
|
|
1098
|
+
value: (t, e) => O(
|
|
1108
1099
|
t.map((r) => ({ [r]: !0 })),
|
|
1109
1100
|
e
|
|
1110
1101
|
)
|
|
1111
1102
|
}, gr = (t, e) => (r) => {
|
|
1112
1103
|
const n = (e == null ? void 0 : e.firstSeparator) ?? w, s = (e == null ? void 0 : e.lastSeparator) ?? w;
|
|
1113
|
-
return
|
|
1104
|
+
return L.value(
|
|
1114
1105
|
r.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
|
|
1115
1106
|
{
|
|
1116
1107
|
first: () => n,
|
|
@@ -1118,23 +1109,23 @@ const mr = {
|
|
|
1118
1109
|
other: () => t
|
|
1119
1110
|
}
|
|
1120
1111
|
);
|
|
1121
|
-
}, wr = (t) => (e) => t(e)(e),
|
|
1122
|
-
r &&
|
|
1123
|
-
}),
|
|
1112
|
+
}, wr = (t) => (e) => t(e)(e), br = (t) => (e) => (e.appendOrInsert(t), (r) => {
|
|
1113
|
+
r && b(t);
|
|
1114
|
+
}), Mt = (t, e, r) => (n) => {
|
|
1124
1115
|
n = n.makeRef();
|
|
1125
1116
|
let s = null, i = !1;
|
|
1126
|
-
const o = A(null), l = t.on((
|
|
1127
|
-
|
|
1117
|
+
const o = A(null), l = t.on((u) => {
|
|
1118
|
+
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));
|
|
1128
1119
|
});
|
|
1129
|
-
return (
|
|
1130
|
-
l(), s == null || s(
|
|
1120
|
+
return (u) => {
|
|
1121
|
+
l(), s == null || s(u), u && n.reference && b(n.reference);
|
|
1131
1122
|
};
|
|
1132
1123
|
}, xe = (t, e, r) => r != null ? xe(t, (n) => {
|
|
1133
1124
|
const s = n.map((i) => i.isLast ? "last" : "other");
|
|
1134
1125
|
return g(
|
|
1135
|
-
|
|
1126
|
+
$(() => s.dispose()),
|
|
1136
1127
|
f(e(n)),
|
|
1137
|
-
|
|
1128
|
+
L.value(s, {
|
|
1138
1129
|
last: () => w,
|
|
1139
1130
|
other: () => r(n)
|
|
1140
1131
|
})
|
|
@@ -1142,31 +1133,31 @@ const mr = {
|
|
|
1142
1133
|
}) : (n) => {
|
|
1143
1134
|
n = n.makeRef();
|
|
1144
1135
|
const s = t.map(
|
|
1145
|
-
(
|
|
1146
|
-
(c) => new
|
|
1136
|
+
(u) => Array.from({ length: u }, (c, p) => p).map(
|
|
1137
|
+
(c) => new He(c, u)
|
|
1147
1138
|
)
|
|
1148
|
-
), i = [], o = [], l = s.on((
|
|
1139
|
+
), i = [], o = [], l = s.on((u) => {
|
|
1149
1140
|
var p, m;
|
|
1150
|
-
const c =
|
|
1141
|
+
const c = u.length;
|
|
1151
1142
|
for (; c < i.length; )
|
|
1152
1143
|
(p = i.pop()) == null || p(!0), (m = o.pop()) == null || m.dispose();
|
|
1153
|
-
for (let
|
|
1154
|
-
if (o[
|
|
1155
|
-
o[
|
|
1156
|
-
const
|
|
1157
|
-
i[
|
|
1144
|
+
for (let h = 0; h < c; h++)
|
|
1145
|
+
if (o[h] == null) {
|
|
1146
|
+
o[h] = A(u[h]);
|
|
1147
|
+
const E = f(e(o[h]));
|
|
1148
|
+
i[h] = E(n);
|
|
1158
1149
|
} else
|
|
1159
|
-
o[
|
|
1150
|
+
o[h].value = u[h];
|
|
1160
1151
|
});
|
|
1161
|
-
return (
|
|
1162
|
-
l(),
|
|
1152
|
+
return (u) => {
|
|
1153
|
+
l(), u && n.reference && b(n.reference);
|
|
1163
1154
|
};
|
|
1164
|
-
},
|
|
1155
|
+
}, Nt = (t, e, r) => r != null ? Nt(t, (n, s) => {
|
|
1165
1156
|
const i = s.map((o) => o.isLast ? "last" : "other");
|
|
1166
1157
|
return g([
|
|
1167
|
-
|
|
1158
|
+
$(() => i.dispose()),
|
|
1168
1159
|
f(e(n, s)),
|
|
1169
|
-
|
|
1160
|
+
L.value(i, {
|
|
1170
1161
|
last: () => w,
|
|
1171
1162
|
other: () => r(s)
|
|
1172
1163
|
})
|
|
@@ -1174,22 +1165,22 @@ const mr = {
|
|
|
1174
1165
|
}) : (n) => {
|
|
1175
1166
|
const s = t.map((i) => i.length);
|
|
1176
1167
|
return xe(s, (i) => {
|
|
1177
|
-
const o =
|
|
1168
|
+
const o = k(
|
|
1178
1169
|
() => t.value[i.value.index],
|
|
1179
1170
|
[i, t]
|
|
1180
1171
|
);
|
|
1181
1172
|
return g(
|
|
1182
|
-
|
|
1173
|
+
$(() => o.dispose()),
|
|
1183
1174
|
f(e(o, i))
|
|
1184
1175
|
);
|
|
1185
1176
|
})(n);
|
|
1186
|
-
},
|
|
1177
|
+
}, Sr = (t) => {
|
|
1187
1178
|
const e = t.element, r = e.style.getPropertyValue(":empty");
|
|
1188
1179
|
return e.style.setProperty(":empty", "display:none"), (n) => {
|
|
1189
1180
|
n && e.style.setProperty(":empty", r);
|
|
1190
1181
|
};
|
|
1191
1182
|
};
|
|
1192
|
-
function
|
|
1183
|
+
function We(t, e) {
|
|
1193
1184
|
const r = t(e);
|
|
1194
1185
|
return () => r(!0);
|
|
1195
1186
|
}
|
|
@@ -1197,20 +1188,20 @@ function vr(t, e, { doc: r, clear: n } = {}) {
|
|
|
1197
1188
|
const s = typeof e == "string" ? (r ?? document).querySelector(e) : e;
|
|
1198
1189
|
if (s === null)
|
|
1199
1190
|
throw new Error(`Cannot find element by selector for render: ${e}`);
|
|
1200
|
-
n && (r ?? s.ownerDocument) != null &&
|
|
1191
|
+
n && (r ?? s.ownerDocument) != null && St(r ?? s.ownerDocument);
|
|
1201
1192
|
const i = ot(s), o = ye(s) ? void 0 : s, l = v.of(i, o);
|
|
1202
|
-
return
|
|
1193
|
+
return We(t, l);
|
|
1203
1194
|
}
|
|
1204
|
-
const
|
|
1195
|
+
const $t = (t, e) => (r) => {
|
|
1205
1196
|
const n = r.document.querySelector(t);
|
|
1206
1197
|
if (n === null)
|
|
1207
1198
|
throw new Error(`Cannot find element by selector for portal: ${t}`);
|
|
1208
|
-
return
|
|
1199
|
+
return We(
|
|
1209
1200
|
f(e),
|
|
1210
1201
|
r.withElement(n).withFirstLevel()
|
|
1211
1202
|
);
|
|
1212
|
-
}, Ar = (t) =>
|
|
1213
|
-
}), B = (t, e, r) =>
|
|
1203
|
+
}, Ar = (t) => $t("head title", P.innerText(t)), Lt = (t) => (e) => t(e.element) ?? (() => {
|
|
1204
|
+
}), B = (t, e, r) => Mt(
|
|
1214
1205
|
t.map((n) => n ? !0 : null),
|
|
1215
1206
|
() => e,
|
|
1216
1207
|
r != null ? () => r : void 0
|
|
@@ -1218,7 +1209,7 @@ const Nt = (t, e) => (r) => {
|
|
|
1218
1209
|
t.map((n) => !n),
|
|
1219
1210
|
e,
|
|
1220
1211
|
r
|
|
1221
|
-
),
|
|
1212
|
+
), It = {
|
|
1222
1213
|
partial: {
|
|
1223
1214
|
root: null,
|
|
1224
1215
|
rootMargin: "0px",
|
|
@@ -1232,33 +1223,33 @@ const Nt = (t, e) => (r) => {
|
|
|
1232
1223
|
}, z = {
|
|
1233
1224
|
partial: /* @__PURE__ */ new Map(),
|
|
1234
1225
|
full: /* @__PURE__ */ new Map()
|
|
1235
|
-
},
|
|
1226
|
+
}, N = {
|
|
1236
1227
|
partial: null,
|
|
1237
1228
|
full: null
|
|
1238
1229
|
};
|
|
1239
|
-
function
|
|
1240
|
-
return
|
|
1230
|
+
function Ot(t) {
|
|
1231
|
+
return N[t] == null && (N[t] = new IntersectionObserver((e) => {
|
|
1241
1232
|
e.forEach((r) => {
|
|
1242
1233
|
const n = z[t].get(r.target);
|
|
1243
1234
|
n == null || n.set(r.isIntersecting);
|
|
1244
1235
|
});
|
|
1245
|
-
},
|
|
1236
|
+
}, It[t])), N[t];
|
|
1246
1237
|
}
|
|
1247
|
-
function
|
|
1248
|
-
const r = A(
|
|
1238
|
+
function Rt(t, e) {
|
|
1239
|
+
const r = A(T.isSSR());
|
|
1249
1240
|
return g(
|
|
1250
|
-
|
|
1251
|
-
const s = typeof IntersectionObserver < "u" ?
|
|
1241
|
+
Lt((n) => {
|
|
1242
|
+
const s = typeof IntersectionObserver < "u" ? Ot(t) : null;
|
|
1252
1243
|
return z[t].set(n, r), s == null || s.observe(n), () => {
|
|
1253
1244
|
var i;
|
|
1254
|
-
s == null || s.unobserve(n), z[t].delete(n), z[t].size === 0 && ((i =
|
|
1245
|
+
s == null || s.unobserve(n), z[t].delete(n), z[t].size === 0 && ((i = N[t]) == null || i.disconnect(), N[t] = null);
|
|
1255
1246
|
};
|
|
1256
1247
|
}),
|
|
1257
|
-
|
|
1248
|
+
$(r.dispose),
|
|
1258
1249
|
f(e(r))
|
|
1259
1250
|
);
|
|
1260
1251
|
}
|
|
1261
|
-
const _r = (t, e, r) =>
|
|
1252
|
+
const _r = (t, e, r) => Rt(t, (n) => B(n, e, r ?? w)), Er = (t, e) => (r) => {
|
|
1262
1253
|
r = r.makeRef();
|
|
1263
1254
|
const n = t.map((o) => f(e(o)));
|
|
1264
1255
|
let s = () => {
|
|
@@ -1270,7 +1261,7 @@ const _r = (t, e, r) => Ot(t, (n) => B(n, e, r ?? w)), Er = (t, e) => (r) => {
|
|
|
1270
1261
|
i(), s(o);
|
|
1271
1262
|
};
|
|
1272
1263
|
};
|
|
1273
|
-
function
|
|
1264
|
+
function Pr(t, e, r = w) {
|
|
1274
1265
|
return B(
|
|
1275
1266
|
t.map((n) => n.length > 0),
|
|
1276
1267
|
e,
|
|
@@ -1285,7 +1276,7 @@ const xt = (t) => (e) => {
|
|
|
1285
1276
|
return typeof ResizeObserver == "function" && (o = new ResizeObserver(i), o.observe(r)), (l) => {
|
|
1286
1277
|
o == null || o.disconnect(), s(l);
|
|
1287
1278
|
};
|
|
1288
|
-
},
|
|
1279
|
+
}, Wt = (t) => (e) => {
|
|
1289
1280
|
const r = A({
|
|
1290
1281
|
width: (window == null ? void 0 : window.innerWidth) ?? 0,
|
|
1291
1282
|
height: (window == null ? void 0 : window.innerHeight) ?? 0
|
|
@@ -1298,10 +1289,10 @@ const xt = (t) => (e) => {
|
|
|
1298
1289
|
return window == null || window.addEventListener("resize", s), (i) => {
|
|
1299
1290
|
window == null || window.removeEventListener("resize", s), n(i);
|
|
1300
1291
|
};
|
|
1301
|
-
},
|
|
1292
|
+
}, Dr = {
|
|
1302
1293
|
element: xt,
|
|
1303
|
-
window:
|
|
1304
|
-
},
|
|
1294
|
+
window: Wt
|
|
1295
|
+
}, Ft = (t, e) => (r) => {
|
|
1305
1296
|
const n = r.element, s = n.style.getPropertyValue(t);
|
|
1306
1297
|
return n.style.setProperty(t, e), (i) => {
|
|
1307
1298
|
i && n.style.setProperty(t, s);
|
|
@@ -1311,74 +1302,74 @@ const xt = (t) => (e) => {
|
|
|
1311
1302
|
return e.on((i) => n.style.setProperty(t, i)), (i) => {
|
|
1312
1303
|
i && n.style.setProperty(t, s);
|
|
1313
1304
|
};
|
|
1314
|
-
},
|
|
1305
|
+
}, Tr = new Proxy(
|
|
1315
1306
|
{},
|
|
1316
1307
|
{
|
|
1317
|
-
get: (t, e) => (r) =>
|
|
1308
|
+
get: (t, e) => (r) => d.is(r) ? zt(e, r) : Ft(e, r)
|
|
1318
1309
|
}
|
|
1319
1310
|
);
|
|
1320
1311
|
export {
|
|
1321
|
-
|
|
1322
|
-
|
|
1312
|
+
hr as Async,
|
|
1313
|
+
dr as AutoFocus,
|
|
1323
1314
|
pr as AutoSelect,
|
|
1324
1315
|
D as Computed,
|
|
1325
1316
|
gr as Conjunction,
|
|
1326
1317
|
wr as Ctx,
|
|
1327
1318
|
v as DOMContext,
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1319
|
+
br as DOMEl,
|
|
1320
|
+
Pe as El,
|
|
1321
|
+
De as ElNS,
|
|
1331
1322
|
w as Empty,
|
|
1332
|
-
|
|
1333
|
-
|
|
1323
|
+
Mt as Ensure,
|
|
1324
|
+
Nt as ForEach,
|
|
1334
1325
|
g as Fragment,
|
|
1335
1326
|
Ar as HTMLTitle,
|
|
1336
|
-
|
|
1337
|
-
|
|
1327
|
+
Sr as HiddenWhenEmpty,
|
|
1328
|
+
Rt as InViewport,
|
|
1338
1329
|
Er as MapSignal,
|
|
1339
|
-
|
|
1340
|
-
|
|
1330
|
+
he as MemoryStore,
|
|
1331
|
+
Pr as NotEmpty,
|
|
1341
1332
|
_t as OnChecked,
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1333
|
+
$ as OnDispose,
|
|
1334
|
+
Lt as OnMount,
|
|
1335
|
+
$t as Portal,
|
|
1336
|
+
He as Position,
|
|
1346
1337
|
V as Prop,
|
|
1347
1338
|
lr as Provide,
|
|
1348
1339
|
xe as Repeat,
|
|
1349
|
-
|
|
1350
|
-
|
|
1340
|
+
d as Signal,
|
|
1341
|
+
Oe as Task,
|
|
1351
1342
|
Gt as Text,
|
|
1352
1343
|
yr as Unless,
|
|
1353
|
-
|
|
1344
|
+
ur as Use,
|
|
1354
1345
|
vt as UseProvider,
|
|
1355
|
-
|
|
1346
|
+
ar as UseProviders,
|
|
1356
1347
|
B as When,
|
|
1357
1348
|
_r as WhenInViewport,
|
|
1358
1349
|
yt as WithProvider,
|
|
1359
1350
|
cr as WithProviders,
|
|
1360
|
-
|
|
1361
|
-
|
|
1351
|
+
Ne as addNodeTracker,
|
|
1352
|
+
Ue as animate,
|
|
1362
1353
|
jt as animateOne,
|
|
1363
1354
|
fr as appearance,
|
|
1364
1355
|
oe as appearanceMarker,
|
|
1365
1356
|
Bt as applyAnimatable,
|
|
1366
|
-
|
|
1367
|
-
|
|
1357
|
+
R as applyAnimatableProp,
|
|
1358
|
+
kt as applyInterpolatedAnimatable,
|
|
1368
1359
|
et as applyInterpolatedAnimatableProp,
|
|
1369
1360
|
Qt as aria,
|
|
1370
1361
|
P as attr,
|
|
1371
1362
|
mr as bind,
|
|
1372
1363
|
f as childToMountable,
|
|
1373
|
-
|
|
1364
|
+
St as clearSSR,
|
|
1374
1365
|
Be as colorChannelsToString,
|
|
1375
|
-
|
|
1376
|
-
|
|
1366
|
+
k as computed,
|
|
1367
|
+
Ht as computedRecord,
|
|
1377
1368
|
Xe as dateInterpolate,
|
|
1378
1369
|
qt as effect,
|
|
1379
1370
|
Y as emit,
|
|
1380
1371
|
Ye as endInterpolate,
|
|
1381
|
-
|
|
1372
|
+
Ut as getComputedAnimatable,
|
|
1382
1373
|
Ge as getComputedAnimatableProp,
|
|
1383
1374
|
ot as getSelfOrParentElement,
|
|
1384
1375
|
je as guessInterpolate,
|
|
@@ -1386,7 +1377,7 @@ export {
|
|
|
1386
1377
|
rr as html,
|
|
1387
1378
|
nr as input,
|
|
1388
1379
|
Je as interpolateColor,
|
|
1389
|
-
|
|
1380
|
+
Kt as interpolateShadow,
|
|
1390
1381
|
ye as isElement,
|
|
1391
1382
|
Ae as makeGetter,
|
|
1392
1383
|
At as makeProviderMark,
|
|
@@ -1394,23 +1385,23 @@ export {
|
|
|
1394
1385
|
ir as math,
|
|
1395
1386
|
tr as mathAttr,
|
|
1396
1387
|
Ce as maybeAddAttributeTracker,
|
|
1397
|
-
|
|
1398
|
-
|
|
1388
|
+
Me as maybeAddClassTracker,
|
|
1389
|
+
$e as maybeAddTextTracker,
|
|
1399
1390
|
qe as numberInterpolate,
|
|
1400
1391
|
X as on,
|
|
1401
|
-
|
|
1392
|
+
L as oneof,
|
|
1402
1393
|
se as parseColorChannels,
|
|
1403
1394
|
A as prop,
|
|
1404
1395
|
Xt as propOfLocalStorage,
|
|
1405
1396
|
Yt as propOfSessionStorage,
|
|
1406
|
-
|
|
1407
|
-
|
|
1397
|
+
de as propOfStorage,
|
|
1398
|
+
dt as removeAttributeTrackers,
|
|
1408
1399
|
mt as removeClassTrackers,
|
|
1409
|
-
|
|
1400
|
+
b as removeDOMNode,
|
|
1410
1401
|
gt as removeNodeTrackers,
|
|
1411
|
-
|
|
1402
|
+
bt as removeTextTrackers,
|
|
1412
1403
|
vr as render,
|
|
1413
|
-
|
|
1404
|
+
We as renderWithContext,
|
|
1414
1405
|
it as setAttribute,
|
|
1415
1406
|
tt as setBooleanProperty,
|
|
1416
1407
|
nt as setDateProperty,
|
|
@@ -1418,12 +1409,12 @@ export {
|
|
|
1418
1409
|
st as setStringProperty,
|
|
1419
1410
|
Zt as signal,
|
|
1420
1411
|
Ee as signalText,
|
|
1421
|
-
|
|
1422
|
-
|
|
1412
|
+
Dr as size,
|
|
1413
|
+
T as ssr,
|
|
1423
1414
|
or as startSSR,
|
|
1424
1415
|
_e as staticText,
|
|
1425
1416
|
Ze as stringInterpolate,
|
|
1426
|
-
|
|
1417
|
+
Tr as style,
|
|
1427
1418
|
sr as svg,
|
|
1428
1419
|
er as svgAttr
|
|
1429
1420
|
};
|