@sylwellsoftware/fray 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +77 -2
- package/dist/Components/component.d.ts +5 -0
- package/dist/Components/component.d.ts.map +1 -1
- package/dist/Components/lineinputs/checkbox/Checkbox.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +103 -99
- package/dist/index.js.map +1 -1
- package/dist/{jsx-dev-runtime-DukiDpV9.js → jsx-dev-runtime-pzseD2Sz.js} +527 -414
- package/dist/jsx-dev-runtime-pzseD2Sz.js.map +1 -0
- package/dist/jsx-dev-runtime.js +3 -3
- package/dist/jsx-runtime.js +2 -2
- package/dist/runtime.d.ts +4 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/services.d.ts +45 -0
- package/dist/services.d.ts.map +1 -0
- package/package.json +3 -3
- package/themes/README.md +1 -1
- package/themes/minimal/theme.css +1 -1
- package/dist/jsx-dev-runtime-DukiDpV9.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
const
|
|
1
|
+
var pe = Object.defineProperty;
|
|
2
|
+
var he = (e, t, r) => t in e ? pe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var c = (e, t, r) => he(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
const D = {
|
|
5
5
|
after: {
|
|
6
6
|
content: '""',
|
|
7
7
|
display: "block",
|
|
@@ -152,13 +152,13 @@ const I = {
|
|
|
152
152
|
"box-shadow": "var(--fray-toolbar-shadow, var(--toolbar-shadow))",
|
|
153
153
|
color: "var(--fray-toolbar-color, var(--toolbar-color))"
|
|
154
154
|
}
|
|
155
|
-
},
|
|
156
|
-
let
|
|
157
|
-
class
|
|
158
|
-
constructor(t = `runtime-${
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
155
|
+
}, K = "data-fray-structural-styles";
|
|
156
|
+
let be = 1;
|
|
157
|
+
class Q {
|
|
158
|
+
constructor(t = `runtime-${be++}`) {
|
|
159
|
+
c(this, "id");
|
|
160
|
+
c(this, "cssFragments", /* @__PURE__ */ new Set());
|
|
161
|
+
c(this, "baseStyleMap", /* @__PURE__ */ new Map());
|
|
162
162
|
if (typeof t != "string") throw new TypeError("StyleRegistry id must be a string");
|
|
163
163
|
this.id = t;
|
|
164
164
|
}
|
|
@@ -166,17 +166,17 @@ class J {
|
|
|
166
166
|
if (typeof t != "string") throw new TypeError("Component CSS must be a string");
|
|
167
167
|
return t.trim().length > 0 && this.cssFragments.add(t.trim()), this;
|
|
168
168
|
}
|
|
169
|
-
registerBaseStyle(t,
|
|
169
|
+
registerBaseStyle(t, r) {
|
|
170
170
|
if (typeof t != "string" || t.trim().length === 0)
|
|
171
171
|
throw new TypeError("Base style selector must be a non-empty string");
|
|
172
|
-
const
|
|
173
|
-
if (!Array.isArray(
|
|
172
|
+
const n = typeof r == "string" ? [r] : r;
|
|
173
|
+
if (!Array.isArray(n))
|
|
174
174
|
throw new TypeError("Base style names must be a string or array");
|
|
175
|
-
for (const i of
|
|
176
|
-
if (!Object.hasOwn(
|
|
175
|
+
for (const i of n) {
|
|
176
|
+
if (!Object.hasOwn(D, i))
|
|
177
177
|
throw new Error(`Unknown Fray base style: ${String(i)}`);
|
|
178
|
-
const
|
|
179
|
-
|
|
178
|
+
const s = i, o = this.baseStyleMap.get(s) ?? /* @__PURE__ */ new Set();
|
|
179
|
+
o.add(t.trim()), this.baseStyleMap.set(s, o);
|
|
180
180
|
}
|
|
181
181
|
return this;
|
|
182
182
|
}
|
|
@@ -203,13 +203,13 @@ class J {
|
|
|
203
203
|
}
|
|
204
204
|
generateBaseStyleCSS() {
|
|
205
205
|
let t = "";
|
|
206
|
-
for (const [
|
|
207
|
-
const { properties: i, variants:
|
|
208
|
-
t +=
|
|
209
|
-
for (const [a, l] of Object.entries(
|
|
210
|
-
t +=
|
|
211
|
-
`${
|
|
212
|
-
|
|
206
|
+
for (const [r, n] of this.baseStyleMap) {
|
|
207
|
+
const { properties: i, variants: s } = ge(D[r]), o = [...n];
|
|
208
|
+
t += U(r, o, i);
|
|
209
|
+
for (const [a, l] of Object.entries(s))
|
|
210
|
+
t += U(
|
|
211
|
+
`${r}${a}`,
|
|
212
|
+
o.map((u) => ve(u, a)),
|
|
213
213
|
l
|
|
214
214
|
);
|
|
215
215
|
}
|
|
@@ -229,54 +229,144 @@ class J {
|
|
|
229
229
|
injectAll(t = globalThis.document) {
|
|
230
230
|
if ((t == null ? void 0 : t.head) == null)
|
|
231
231
|
throw new TypeError("StyleRegistry.injectAll requires a document with a head");
|
|
232
|
-
const
|
|
233
|
-
let
|
|
234
|
-
|
|
232
|
+
const r = `style[${K}="${we(this.id)}"]`;
|
|
233
|
+
let n = t.head.querySelector(r);
|
|
234
|
+
n == null && (n = t.createElement("style"), n.setAttribute(K, this.id), t.head.prepend(n));
|
|
235
235
|
const i = this.generateCSS();
|
|
236
|
-
return
|
|
236
|
+
return n.textContent !== i && (n.textContent = i), n;
|
|
237
237
|
}
|
|
238
238
|
reset() {
|
|
239
239
|
this.cssFragments.clear(), this.baseStyleMap.clear();
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
return new
|
|
242
|
+
function ye() {
|
|
243
|
+
return new Q();
|
|
244
244
|
}
|
|
245
|
-
const
|
|
246
|
-
function
|
|
245
|
+
const me = new Q("");
|
|
246
|
+
function ge(e) {
|
|
247
247
|
const t = {};
|
|
248
|
-
let
|
|
249
|
-
for (const [
|
|
250
|
-
if (
|
|
248
|
+
let r = {};
|
|
249
|
+
for (const [n, i] of Object.entries(e))
|
|
250
|
+
if (n === "variants") {
|
|
251
251
|
if (typeof i != "object")
|
|
252
252
|
throw new TypeError("Base style variants must be declaration maps");
|
|
253
|
-
|
|
253
|
+
r = i;
|
|
254
254
|
} else if (typeof i == "string")
|
|
255
|
-
t[
|
|
255
|
+
t[n] = i;
|
|
256
256
|
else
|
|
257
|
-
throw new TypeError(`Base style property ${
|
|
258
|
-
return { properties: t, variants:
|
|
257
|
+
throw new TypeError(`Base style property ${n} must be a string`);
|
|
258
|
+
return { properties: t, variants: r };
|
|
259
259
|
}
|
|
260
|
-
function
|
|
261
|
-
if (t.length === 0 || Object.keys(
|
|
262
|
-
const
|
|
260
|
+
function U(e, t, r) {
|
|
261
|
+
if (t.length === 0 || Object.keys(r).length === 0) return "";
|
|
262
|
+
const n = Object.entries(r).map(([i, s]) => ` ${i}: ${s};`).join(`
|
|
263
263
|
`);
|
|
264
264
|
return `/* ${e} */
|
|
265
265
|
${t.join(`,
|
|
266
266
|
`)} {
|
|
267
|
-
${
|
|
267
|
+
${n}
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
`;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
const
|
|
274
|
-
return
|
|
272
|
+
function ve(e, t) {
|
|
273
|
+
const r = e.indexOf("::");
|
|
274
|
+
return r < 0 ? `${e}${t}` : `${e.slice(0, r)}${t}${e.slice(r)}`;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function we(e) {
|
|
277
277
|
return e.replaceAll("\\", "\\\\").replaceAll('"', '\\"');
|
|
278
278
|
}
|
|
279
|
-
const
|
|
279
|
+
const X = /* @__PURE__ */ new WeakSet(), ee = /* @__PURE__ */ new WeakSet();
|
|
280
|
+
function Ue(e) {
|
|
281
|
+
if (typeof e != "string" || e.trim() === "")
|
|
282
|
+
throw new TypeError("Service name must be a non-empty string");
|
|
283
|
+
const t = Object.freeze({ name: e.trim() });
|
|
284
|
+
return X.add(t), t;
|
|
285
|
+
}
|
|
286
|
+
function We(e, t) {
|
|
287
|
+
if (z(e), typeof t != "function")
|
|
288
|
+
throw new TypeError(`Service provider "${e.name}" requires a factory function`);
|
|
289
|
+
const r = Object.freeze({ key: e, create: t });
|
|
290
|
+
return ee.add(r), r;
|
|
291
|
+
}
|
|
292
|
+
class te {
|
|
293
|
+
constructor(t = []) {
|
|
294
|
+
c(this, "providers", /* @__PURE__ */ new Map());
|
|
295
|
+
c(this, "instances", /* @__PURE__ */ new Map());
|
|
296
|
+
c(this, "creationOrder", []);
|
|
297
|
+
c(this, "resolving", []);
|
|
298
|
+
c(this, "disposed", !1);
|
|
299
|
+
if (!Array.isArray(t))
|
|
300
|
+
throw new TypeError("ServiceScope providers must be an array");
|
|
301
|
+
for (const r of t) {
|
|
302
|
+
if (Re(r), this.providers.has(r.key))
|
|
303
|
+
throw new Error(`Service "${r.key.name}" is registered more than once`);
|
|
304
|
+
this.providers.set(r.key, r);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
get isDisposed() {
|
|
308
|
+
return this.disposed;
|
|
309
|
+
}
|
|
310
|
+
has(t) {
|
|
311
|
+
return this.assertActive(), z(t), this.providers.has(t);
|
|
312
|
+
}
|
|
313
|
+
require(t) {
|
|
314
|
+
if (this.assertActive(), z(t), this.instances.has(t)) return this.instances.get(t);
|
|
315
|
+
const r = this.providers.get(t);
|
|
316
|
+
if (r == null) throw new Error(`Service "${t.name}" is not registered`);
|
|
317
|
+
const n = this.resolving.indexOf(t);
|
|
318
|
+
if (n >= 0) {
|
|
319
|
+
const i = [...this.resolving.slice(n), t].map((s) => s.name).join(" -> ");
|
|
320
|
+
throw new Error(`Circular service dependency: ${i}`);
|
|
321
|
+
}
|
|
322
|
+
this.resolving.push(t);
|
|
323
|
+
try {
|
|
324
|
+
const i = r.create(this);
|
|
325
|
+
return this.instances.set(t, i), this.creationOrder.push(t), i;
|
|
326
|
+
} finally {
|
|
327
|
+
this.resolving.pop();
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
dispose() {
|
|
331
|
+
if (this.disposed) return;
|
|
332
|
+
this.disposed = !0;
|
|
333
|
+
const t = [];
|
|
334
|
+
for (const r of [...this.creationOrder].reverse()) {
|
|
335
|
+
const n = this.instances.get(r);
|
|
336
|
+
try {
|
|
337
|
+
const i = je(n);
|
|
338
|
+
i != null && i.call(n);
|
|
339
|
+
} catch (i) {
|
|
340
|
+
t.push(i);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
if (this.instances.clear(), this.creationOrder.length = 0, this.resolving.length = 0, t.length === 1) throw t[0];
|
|
344
|
+
if (t.length > 1)
|
|
345
|
+
throw new AggregateError(t, "Several services failed during disposal");
|
|
346
|
+
}
|
|
347
|
+
assertActive() {
|
|
348
|
+
if (this.disposed) throw new Error("ServiceScope has been disposed");
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
function Se(e = []) {
|
|
352
|
+
return new te(e);
|
|
353
|
+
}
|
|
354
|
+
function Ee(e) {
|
|
355
|
+
return e != null && (typeof e == "object" || typeof e == "function") && X.has(e);
|
|
356
|
+
}
|
|
357
|
+
function z(e) {
|
|
358
|
+
if (!Ee(e)) throw new TypeError("Expected a service key created by defineService()");
|
|
359
|
+
}
|
|
360
|
+
function Re(e) {
|
|
361
|
+
if (e == null || typeof e != "object" && typeof e != "function" || !ee.has(e))
|
|
362
|
+
throw new TypeError("Expected a service provider created by provideService()");
|
|
363
|
+
}
|
|
364
|
+
function je(e) {
|
|
365
|
+
if (e == null || typeof e != "object" && typeof e != "function") return null;
|
|
366
|
+
const t = Reflect.get(e, "dispose");
|
|
367
|
+
return typeof t == "function" ? t : null;
|
|
368
|
+
}
|
|
369
|
+
const Te = /* @__PURE__ */ new Set([
|
|
280
370
|
"annotation-xml",
|
|
281
371
|
"color-profile",
|
|
282
372
|
"font-face",
|
|
@@ -287,43 +377,45 @@ const me = /* @__PURE__ */ new Set([
|
|
|
287
377
|
"missing-glyph"
|
|
288
378
|
]);
|
|
289
379
|
class L {
|
|
290
|
-
constructor(t = {},
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
380
|
+
constructor(t = {}, r = ye()) {
|
|
381
|
+
c(this, "elementPrefix");
|
|
382
|
+
c(this, "elementNameOverrides");
|
|
383
|
+
c(this, "styleRegistry");
|
|
384
|
+
c(this, "services");
|
|
294
385
|
if (t == null || typeof t != "object" || Array.isArray(t))
|
|
295
386
|
throw new TypeError("FrayRuntime options must be an object");
|
|
296
|
-
const
|
|
297
|
-
if (
|
|
387
|
+
const n = t.elementNames ?? {};
|
|
388
|
+
if (n == null || typeof n != "object" || Array.isArray(n))
|
|
298
389
|
throw new TypeError("Fray elementNames must be an object");
|
|
299
|
-
const i =
|
|
300
|
-
i !== null &&
|
|
301
|
-
const
|
|
302
|
-
if (
|
|
390
|
+
const i = n.prefix === void 0 ? "fray" : n.prefix;
|
|
391
|
+
i !== null && C(i, "Fray element prefix");
|
|
392
|
+
const s = n.overrides ?? {};
|
|
393
|
+
if (s == null || typeof s != "object" || Array.isArray(s))
|
|
303
394
|
throw new TypeError("Fray element-name overrides must be an object");
|
|
304
|
-
for (const [
|
|
305
|
-
|
|
306
|
-
this.elementPrefix = i, this.elementNameOverrides = Object.freeze({ ...
|
|
395
|
+
for (const [o, a] of Object.entries(s))
|
|
396
|
+
C(o, "Fray component host name"), Z(a);
|
|
397
|
+
if (this.elementPrefix = i, this.elementNameOverrides = Object.freeze({ ...s }), this.styleRegistry = r, this.services = t.services ?? Se(), !(this.services instanceof te))
|
|
398
|
+
throw new TypeError("Fray services must be a ServiceScope");
|
|
307
399
|
}
|
|
308
|
-
resolveElementName(t,
|
|
309
|
-
|
|
310
|
-
const i = this.elementNameOverrides[t] ?? (this.elementPrefix == null ?
|
|
311
|
-
return
|
|
400
|
+
resolveElementName(t, r = null) {
|
|
401
|
+
C(t, "Fray component host name");
|
|
402
|
+
const i = this.elementNameOverrides[t] ?? (this.elementPrefix == null ? r ?? t : `${this.elementPrefix}-${t}`);
|
|
403
|
+
return Z(i), i;
|
|
312
404
|
}
|
|
313
|
-
resolveHostSelector(t,
|
|
405
|
+
resolveHostSelector(t, r, n = null) {
|
|
314
406
|
if (typeof t != "string") throw new TypeError("Host selector must be a string");
|
|
315
|
-
return t.replaceAll("&", this.resolveElementName(
|
|
407
|
+
return t.replaceAll("&", this.resolveElementName(r, n));
|
|
316
408
|
}
|
|
317
|
-
resolveHostCSS(t,
|
|
409
|
+
resolveHostCSS(t, r, n = null) {
|
|
318
410
|
if (typeof t != "string") throw new TypeError("Host CSS must be a string");
|
|
319
|
-
return t.replaceAll("&", this.resolveElementName(
|
|
411
|
+
return t.replaceAll("&", this.resolveElementName(r, n));
|
|
320
412
|
}
|
|
321
|
-
create(t, ...
|
|
322
|
-
const
|
|
323
|
-
return
|
|
413
|
+
create(t, ...r) {
|
|
414
|
+
const n = new t(...r);
|
|
415
|
+
return n._setRuntime(this), n;
|
|
324
416
|
}
|
|
325
|
-
mount(t,
|
|
326
|
-
return t._setRuntime(this), t.mount(
|
|
417
|
+
mount(t, r, n = null) {
|
|
418
|
+
return t._setRuntime(this), t.mount(r, n), t;
|
|
327
419
|
}
|
|
328
420
|
registerStyles(t) {
|
|
329
421
|
if (t == null || typeof t.registerStyles != "function")
|
|
@@ -334,19 +426,19 @@ class L {
|
|
|
334
426
|
return this.styleRegistry.injectAll(t);
|
|
335
427
|
}
|
|
336
428
|
}
|
|
337
|
-
function
|
|
429
|
+
function Ze(e = {}) {
|
|
338
430
|
return new L(e);
|
|
339
431
|
}
|
|
340
|
-
const
|
|
341
|
-
function
|
|
432
|
+
const W = new L({}, me);
|
|
433
|
+
function C(e, t) {
|
|
342
434
|
if (typeof e != "string" || !/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/.test(e))
|
|
343
435
|
throw new TypeError(`${t} must be a lowercase kebab-case name`);
|
|
344
436
|
}
|
|
345
|
-
function
|
|
346
|
-
if (
|
|
437
|
+
function Z(e) {
|
|
438
|
+
if (C(e, "Fray element name"), !e.includes("-") || Te.has(e))
|
|
347
439
|
throw new TypeError(`Fray element name must be a non-reserved name containing a hyphen: ${e}`);
|
|
348
440
|
}
|
|
349
|
-
const P = Symbol.for("@sylwellsoftware/fray.Fragment"),
|
|
441
|
+
const P = Symbol.for("@sylwellsoftware/fray.Fragment"), re = /* @__PURE__ */ new WeakSet(), ke = /* @__PURE__ */ new Set([
|
|
350
442
|
"allowFullScreen",
|
|
351
443
|
"async",
|
|
352
444
|
"autoFocus",
|
|
@@ -370,7 +462,7 @@ const P = Symbol.for("@sylwellsoftware/fray.Fragment"), Q = /* @__PURE__ */ new
|
|
|
370
462
|
"required",
|
|
371
463
|
"reversed",
|
|
372
464
|
"selected"
|
|
373
|
-
]),
|
|
465
|
+
]), Ce = /* @__PURE__ */ new Set([
|
|
374
466
|
"checked",
|
|
375
467
|
"defaultChecked",
|
|
376
468
|
"defaultValue",
|
|
@@ -385,79 +477,79 @@ const P = Symbol.for("@sylwellsoftware/fray.Fragment"), Q = /* @__PURE__ */ new
|
|
|
385
477
|
"tabIndex",
|
|
386
478
|
"value"
|
|
387
479
|
]);
|
|
388
|
-
function
|
|
389
|
-
|
|
480
|
+
function Ye(e) {
|
|
481
|
+
I(e, "live");
|
|
390
482
|
const t = Object.freeze({ emitter: e });
|
|
391
|
-
return
|
|
483
|
+
return re.add(t), t;
|
|
392
484
|
}
|
|
393
|
-
function A(e, t = null, ...
|
|
394
|
-
const
|
|
395
|
-
if (typeof
|
|
485
|
+
function A(e, t = null, ...r) {
|
|
486
|
+
const n = t ?? {};
|
|
487
|
+
if (typeof n != "object" || Array.isArray(n))
|
|
396
488
|
throw new TypeError("VNode props must be an object or null");
|
|
397
489
|
const {
|
|
398
490
|
children: i,
|
|
399
|
-
key:
|
|
400
|
-
...
|
|
401
|
-
} =
|
|
491
|
+
key: s = null,
|
|
492
|
+
...o
|
|
493
|
+
} = n;
|
|
402
494
|
return {
|
|
403
495
|
type: e,
|
|
404
|
-
key:
|
|
496
|
+
key: s,
|
|
405
497
|
props: {
|
|
406
|
-
...
|
|
407
|
-
children:
|
|
498
|
+
...o,
|
|
499
|
+
children: ne([i, r])
|
|
408
500
|
}
|
|
409
501
|
};
|
|
410
502
|
}
|
|
411
|
-
function
|
|
412
|
-
return e.reduce((
|
|
503
|
+
function Ge(e, ...t) {
|
|
504
|
+
return e.reduce((r, n, i) => r + n + String(t[i] ?? ""), "");
|
|
413
505
|
}
|
|
414
|
-
const
|
|
506
|
+
const h = class h {
|
|
415
507
|
constructor(t = {}) {
|
|
416
|
-
|
|
417
|
-
|
|
508
|
+
c(this, "props");
|
|
509
|
+
c(this, "dom", null);
|
|
418
510
|
/** @internal */
|
|
419
|
-
|
|
511
|
+
c(this, "_rendered", null);
|
|
420
512
|
/** @internal */
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
513
|
+
c(this, "_childComponents", /* @__PURE__ */ new Set());
|
|
514
|
+
c(this, "initialized", !1);
|
|
515
|
+
c(this, "mounted", !1);
|
|
516
|
+
c(this, "destroyed", !1);
|
|
517
|
+
c(this, "updating", !1);
|
|
518
|
+
c(this, "updateRequested", !1);
|
|
519
|
+
c(this, "cleanupFunctions", /* @__PURE__ */ new Set());
|
|
520
|
+
c(this, "watched", /* @__PURE__ */ new Map());
|
|
521
|
+
c(this, "renderReadSubscriptions", /* @__PURE__ */ new Map());
|
|
522
|
+
c(this, "collectingRenderReads", null);
|
|
431
523
|
/** @internal */
|
|
432
|
-
|
|
524
|
+
c(this, "_runtime", W);
|
|
433
525
|
/** JSX component for this instance's runtime-configured custom host. */
|
|
434
|
-
|
|
526
|
+
c(this, "Host", ({
|
|
435
527
|
children: t = [],
|
|
436
|
-
...
|
|
437
|
-
}) => this.host(
|
|
528
|
+
...r
|
|
529
|
+
}) => this.host(r, t));
|
|
438
530
|
if (t == null || typeof t != "object" || Array.isArray(t))
|
|
439
531
|
throw new TypeError(`${this.constructor.name} props must be an object`);
|
|
440
532
|
this.props = t;
|
|
441
533
|
}
|
|
442
534
|
static new(...t) {
|
|
443
|
-
const
|
|
444
|
-
if (!(
|
|
535
|
+
const r = new this(...t);
|
|
536
|
+
if (!(r instanceof h))
|
|
445
537
|
throw new TypeError("Component.new() requires a Component constructor");
|
|
446
|
-
return
|
|
538
|
+
return r.mount();
|
|
447
539
|
}
|
|
448
540
|
static get baseStyles() {
|
|
449
541
|
return {};
|
|
450
542
|
}
|
|
451
|
-
static registerStyles(t =
|
|
452
|
-
if (
|
|
453
|
-
|
|
454
|
-
const
|
|
455
|
-
this.css && t.styleRegistry.registerCSS(
|
|
456
|
-
const
|
|
457
|
-
for (const [
|
|
458
|
-
t.styleRegistry.registerBaseStyle(
|
|
459
|
-
for (const
|
|
460
|
-
|
|
543
|
+
static registerStyles(t = W, r = /* @__PURE__ */ new Set()) {
|
|
544
|
+
if (r.has(this)) return;
|
|
545
|
+
r.add(this);
|
|
546
|
+
const n = this.hostName ?? null, i = this.standaloneHostName ?? null;
|
|
547
|
+
this.css && t.styleRegistry.registerCSS(n == null ? this.css : t.resolveHostCSS(this.css, n, i));
|
|
548
|
+
const s = De(this.baseStyles);
|
|
549
|
+
for (const [o, a] of s)
|
|
550
|
+
t.styleRegistry.registerBaseStyle(n == null ? o : t.resolveHostSelector(o, n, i), a);
|
|
551
|
+
for (const o of this.dependencies ?? [])
|
|
552
|
+
o.registerStyles(t, r);
|
|
461
553
|
}
|
|
462
554
|
/** One-time setup hook. Constructors must not subscribe or render. */
|
|
463
555
|
initialize() {
|
|
@@ -466,17 +558,17 @@ const b = class b {
|
|
|
466
558
|
throw new Error(`${this.constructor.name} must implement render()`);
|
|
467
559
|
}
|
|
468
560
|
/** Render this component's configured custom host element. */
|
|
469
|
-
host(t = null, ...
|
|
470
|
-
const
|
|
561
|
+
host(t = null, ...r) {
|
|
562
|
+
const n = this.constructor, i = n.hostName;
|
|
471
563
|
if (i == null)
|
|
472
564
|
throw new Error(`${this.constructor.name} does not declare a custom host name`);
|
|
473
565
|
return A(this._runtime.resolveElementName(
|
|
474
566
|
i,
|
|
475
|
-
|
|
567
|
+
n.standaloneHostName
|
|
476
568
|
), {
|
|
477
569
|
...t,
|
|
478
570
|
"data-fray-component": i
|
|
479
|
-
}, ...
|
|
571
|
+
}, ...r);
|
|
480
572
|
}
|
|
481
573
|
/** @internal Assign an immutable application runtime before initialization or mounting. */
|
|
482
574
|
_setRuntime(t) {
|
|
@@ -487,10 +579,10 @@ const b = class b {
|
|
|
487
579
|
throw new Error("Cannot change a component runtime after initialization");
|
|
488
580
|
return this._runtime = t, this;
|
|
489
581
|
}
|
|
490
|
-
mount(t = null,
|
|
582
|
+
mount(t = null, r = null) {
|
|
491
583
|
if (this.destroyed) throw new Error("Cannot mount a destroyed component");
|
|
492
|
-
let
|
|
493
|
-
return this.initialized || (this.initialized = !0, this.initialize()), this.mounted || (this.mounted = !0, this.update(),
|
|
584
|
+
let n = !1;
|
|
585
|
+
return this.initialized || (this.validateRequiredServices(), this.initialized = !0, this.initialize()), this.mounted || (this.mounted = !0, this.update(), n = !0), t != null && (Ie(t), H(t, this._rendered, r)), n && this.afterMount(this.dom), this;
|
|
494
586
|
}
|
|
495
587
|
attachTo(t) {
|
|
496
588
|
return this.mount(t), this;
|
|
@@ -504,15 +596,15 @@ const b = class b {
|
|
|
504
596
|
try {
|
|
505
597
|
do {
|
|
506
598
|
this.updateRequested = !1;
|
|
507
|
-
const
|
|
508
|
-
this.collectingRenderReads =
|
|
509
|
-
let
|
|
599
|
+
const r = /* @__PURE__ */ new Set();
|
|
600
|
+
this.collectingRenderReads = r;
|
|
601
|
+
let n;
|
|
510
602
|
try {
|
|
511
|
-
|
|
603
|
+
n = R(this.render());
|
|
512
604
|
} finally {
|
|
513
605
|
this.collectingRenderReads = null;
|
|
514
606
|
}
|
|
515
|
-
this._rendered =
|
|
607
|
+
this._rendered = M(this._rendered, n, this), this.dom = ae(this._rendered), this.reconcileRenderReads(r), this.afterUpdate(this.dom);
|
|
516
608
|
} while (this.updateRequested && !this.destroyed);
|
|
517
609
|
} finally {
|
|
518
610
|
this.updating = !1;
|
|
@@ -529,15 +621,15 @@ const b = class b {
|
|
|
529
621
|
afterUpdate(t) {
|
|
530
622
|
}
|
|
531
623
|
watch(...t) {
|
|
532
|
-
for (const
|
|
533
|
-
if (
|
|
624
|
+
for (const r of t) {
|
|
625
|
+
if (r == null || typeof r.subscribe != "function")
|
|
534
626
|
throw new TypeError("watch requires emitter-like values");
|
|
535
|
-
if (this.watched.has(
|
|
536
|
-
const
|
|
627
|
+
if (this.watched.has(r)) continue;
|
|
628
|
+
const n = r.subscribe(({ event: i }) => {
|
|
537
629
|
this.mounted && !this.destroyed && this.update(i);
|
|
538
630
|
}, { emitCurrent: !1 });
|
|
539
|
-
this.watched.set(
|
|
540
|
-
|
|
631
|
+
this.watched.set(r, n), this.onCleanup(() => {
|
|
632
|
+
n(), this.watched.delete(r);
|
|
541
633
|
});
|
|
542
634
|
}
|
|
543
635
|
return this;
|
|
@@ -563,19 +655,30 @@ const b = class b {
|
|
|
563
655
|
return t(), () => {
|
|
564
656
|
};
|
|
565
657
|
this.cleanupFunctions.add(t);
|
|
566
|
-
let
|
|
658
|
+
let r = !0;
|
|
567
659
|
return () => {
|
|
568
|
-
|
|
660
|
+
r && (r = !1, this.cleanupFunctions.delete(t), t());
|
|
569
661
|
};
|
|
570
662
|
}
|
|
571
|
-
|
|
663
|
+
/** Resolve one explicitly declared application service from this component's runtime. */
|
|
664
|
+
requireService(t) {
|
|
665
|
+
if (!this.initialized)
|
|
666
|
+
throw new Error("Components may resolve services during initialize() or later");
|
|
667
|
+
const r = this.constructor;
|
|
668
|
+
if (!r.requiredServices.includes(t))
|
|
669
|
+
throw new Error(
|
|
670
|
+
`${r.name} must declare service "${t.name}" in requiredServices`
|
|
671
|
+
);
|
|
672
|
+
return this._runtime.services.require(t);
|
|
673
|
+
}
|
|
674
|
+
listen(t, r, n, i) {
|
|
572
675
|
if (t == null || typeof t.addEventListener != "function")
|
|
573
676
|
throw new TypeError("listen target must be an EventTarget");
|
|
574
|
-
const
|
|
575
|
-
return t.addEventListener(
|
|
677
|
+
const s = n;
|
|
678
|
+
return t.addEventListener(r, s, i), this.onCleanup(() => t.removeEventListener(r, s, i)), this;
|
|
576
679
|
}
|
|
577
680
|
registerChild(t) {
|
|
578
|
-
if (!(t instanceof
|
|
681
|
+
if (!(t instanceof h))
|
|
579
682
|
throw new TypeError("registerChild requires a Component");
|
|
580
683
|
return this._childComponents.add(t), t;
|
|
581
684
|
}
|
|
@@ -588,39 +691,45 @@ const b = class b {
|
|
|
588
691
|
this.renderReadSubscriptions.clear(), this.collectingRenderReads = null, this._rendered && g(this._rendered, !0), this._rendered = null, this.dom = null, this._childComponents.clear(), this.onDestroy();
|
|
589
692
|
}
|
|
590
693
|
}
|
|
694
|
+
validateRequiredServices() {
|
|
695
|
+
const t = this.constructor;
|
|
696
|
+
for (const r of t.requiredServices)
|
|
697
|
+
if (!this._runtime.services.has(r))
|
|
698
|
+
throw new Error(`${t.name} requires unregistered service "${r.name}"`);
|
|
699
|
+
}
|
|
591
700
|
onDestroy() {
|
|
592
701
|
}
|
|
593
702
|
trackRenderRead(t) {
|
|
594
|
-
if (
|
|
703
|
+
if (I(t, "Component.read"), this.collectingRenderReads == null)
|
|
595
704
|
throw new Error("Component.read() and snapshot() may only be called during render()");
|
|
596
705
|
this.collectingRenderReads.add(t);
|
|
597
706
|
}
|
|
598
707
|
reconcileRenderReads(t) {
|
|
599
|
-
for (const [
|
|
600
|
-
t.has(
|
|
601
|
-
for (const
|
|
602
|
-
if (this.watched.has(
|
|
603
|
-
const
|
|
708
|
+
for (const [r, n] of this.renderReadSubscriptions)
|
|
709
|
+
t.has(r) || (n(), this.renderReadSubscriptions.delete(r));
|
|
710
|
+
for (const r of t) {
|
|
711
|
+
if (this.watched.has(r) || this.renderReadSubscriptions.has(r)) continue;
|
|
712
|
+
const n = r.subscribe(({ event: i }) => {
|
|
604
713
|
this.mounted && !this.destroyed && this.update(i);
|
|
605
714
|
}, { emitCurrent: !1 });
|
|
606
|
-
this.renderReadSubscriptions.set(
|
|
715
|
+
this.renderReadSubscriptions.set(r, n);
|
|
607
716
|
}
|
|
608
717
|
}
|
|
609
718
|
};
|
|
610
|
-
|
|
611
|
-
let
|
|
719
|
+
c(h, "dependencies", []), c(h, "requiredServices", []), c(h, "css", ""), c(h, "hostName", null), c(h, "standaloneHostName", null);
|
|
720
|
+
let b = h;
|
|
612
721
|
function R(e) {
|
|
613
722
|
return Array.isArray(e) ? A(P, null, e) : e == null || typeof e == "boolean" ? A(P) : e;
|
|
614
723
|
}
|
|
615
|
-
function
|
|
616
|
-
const t = [],
|
|
617
|
-
if (Array.isArray(
|
|
618
|
-
for (const i of
|
|
619
|
-
else
|
|
724
|
+
function ne(e) {
|
|
725
|
+
const t = [], r = (n) => {
|
|
726
|
+
if (Array.isArray(n))
|
|
727
|
+
for (const i of n) r(i);
|
|
728
|
+
else n != null && typeof n != "boolean" && t.push(n);
|
|
620
729
|
};
|
|
621
|
-
return
|
|
730
|
+
return r(e), t;
|
|
622
731
|
}
|
|
623
|
-
function
|
|
732
|
+
function j(e, t) {
|
|
624
733
|
if (typeof e == "string" || typeof e == "number")
|
|
625
734
|
return {
|
|
626
735
|
kind: "text",
|
|
@@ -629,21 +738,21 @@ function k(e, t) {
|
|
|
629
738
|
node: document.createTextNode(String(e)),
|
|
630
739
|
owner: t
|
|
631
740
|
};
|
|
632
|
-
if (
|
|
633
|
-
const
|
|
741
|
+
if ($(e)) {
|
|
742
|
+
const s = document.createComment("fray-emitter-start"), o = document.createComment("fray-emitter-end"), a = e.get();
|
|
634
743
|
if (Object.is(a, e))
|
|
635
744
|
throw new TypeError("A Fray emitter child cannot render itself");
|
|
636
745
|
const l = document.createDocumentFragment();
|
|
637
|
-
l.append(
|
|
638
|
-
const
|
|
639
|
-
|
|
746
|
+
l.append(s, o);
|
|
747
|
+
const u = j(R(a), t);
|
|
748
|
+
H(l, u, o);
|
|
640
749
|
const d = {
|
|
641
750
|
kind: "emitter",
|
|
642
751
|
key: null,
|
|
643
752
|
source: e,
|
|
644
|
-
start:
|
|
645
|
-
end:
|
|
646
|
-
child:
|
|
753
|
+
start: s,
|
|
754
|
+
end: o,
|
|
755
|
+
child: u,
|
|
647
756
|
unsubscribe: () => {
|
|
648
757
|
},
|
|
649
758
|
owner: t
|
|
@@ -651,13 +760,13 @@ function k(e, t) {
|
|
|
651
760
|
return d.unsubscribe = e.subscribe(({ value: m }) => {
|
|
652
761
|
if (Object.is(m, e))
|
|
653
762
|
throw new TypeError("A Fray emitter child cannot render itself");
|
|
654
|
-
d.child =
|
|
763
|
+
d.child = M(d.child, R(m), t);
|
|
655
764
|
}, { emitCurrent: !1 }), d;
|
|
656
765
|
}
|
|
657
|
-
if (e instanceof
|
|
766
|
+
if (e instanceof b)
|
|
658
767
|
return e._setRuntime(t._runtime), e.mount(), t.registerChild(e), {
|
|
659
768
|
kind: "component",
|
|
660
|
-
key:
|
|
769
|
+
key: ce(e.props),
|
|
661
770
|
type: e.constructor,
|
|
662
771
|
instance: e,
|
|
663
772
|
prebuilt: !0,
|
|
@@ -666,33 +775,33 @@ function k(e, t) {
|
|
|
666
775
|
owner: t
|
|
667
776
|
};
|
|
668
777
|
if (!y(e))
|
|
669
|
-
throw new TypeError(`Invalid Fray child: ${
|
|
670
|
-
const { type:
|
|
671
|
-
if (
|
|
672
|
-
const
|
|
778
|
+
throw new TypeError(`Invalid Fray child: ${J(e)}`);
|
|
779
|
+
const { type: r, key: n = null, props: i } = e;
|
|
780
|
+
if (r === P) {
|
|
781
|
+
const s = document.createComment("fray-fragment-start"), o = document.createComment("fray-fragment-end"), a = {
|
|
673
782
|
kind: "fragment",
|
|
674
|
-
key:
|
|
675
|
-
type:
|
|
676
|
-
start:
|
|
677
|
-
end:
|
|
783
|
+
key: n,
|
|
784
|
+
type: r,
|
|
785
|
+
start: s,
|
|
786
|
+
end: o,
|
|
678
787
|
children: [],
|
|
679
788
|
owner: t
|
|
680
789
|
}, l = document.createDocumentFragment();
|
|
681
|
-
return l.append(
|
|
790
|
+
return l.append(s, o), a.children = O(
|
|
682
791
|
l,
|
|
683
792
|
[],
|
|
684
793
|
i.children,
|
|
685
794
|
t,
|
|
686
|
-
|
|
687
|
-
|
|
795
|
+
o,
|
|
796
|
+
s
|
|
688
797
|
), a;
|
|
689
798
|
}
|
|
690
|
-
if (typeof
|
|
691
|
-
const
|
|
799
|
+
if (typeof r == "string") {
|
|
800
|
+
const s = document.createElement(r), o = {
|
|
692
801
|
kind: "element",
|
|
693
|
-
key:
|
|
694
|
-
type:
|
|
695
|
-
node:
|
|
802
|
+
key: n,
|
|
803
|
+
type: r,
|
|
804
|
+
node: s,
|
|
696
805
|
props: {},
|
|
697
806
|
listeners: /* @__PURE__ */ new Map(),
|
|
698
807
|
liveProps: /* @__PURE__ */ new Map(),
|
|
@@ -701,267 +810,267 @@ function k(e, t) {
|
|
|
701
810
|
children: [],
|
|
702
811
|
owner: t
|
|
703
812
|
};
|
|
704
|
-
return
|
|
813
|
+
return oe(o, i), o.children = O(s, [], i.children, t), o;
|
|
705
814
|
}
|
|
706
|
-
if (
|
|
707
|
-
const
|
|
815
|
+
if (ue(r)) {
|
|
816
|
+
const s = i, o = Y(s), a = new r(o);
|
|
708
817
|
a._setRuntime(t._runtime);
|
|
709
818
|
const l = {
|
|
710
819
|
kind: "component",
|
|
711
|
-
key:
|
|
712
|
-
type:
|
|
820
|
+
key: n,
|
|
821
|
+
type: r,
|
|
713
822
|
instance: a,
|
|
714
823
|
prebuilt: !1,
|
|
715
|
-
props:
|
|
824
|
+
props: o,
|
|
716
825
|
liveProps: /* @__PURE__ */ new Map(),
|
|
717
826
|
owner: t
|
|
718
827
|
};
|
|
719
|
-
return
|
|
828
|
+
return se(l, s), a.mount(), t.registerChild(a), l;
|
|
720
829
|
}
|
|
721
|
-
if (typeof
|
|
722
|
-
const
|
|
830
|
+
if (typeof r == "function") {
|
|
831
|
+
const s = r, o = i, a = Y(o), l = R(s(a)), u = {
|
|
723
832
|
kind: "function",
|
|
724
|
-
key:
|
|
725
|
-
type:
|
|
833
|
+
key: n,
|
|
834
|
+
type: s,
|
|
726
835
|
props: a,
|
|
727
|
-
sourceProps:
|
|
836
|
+
sourceProps: o,
|
|
728
837
|
liveProps: /* @__PURE__ */ new Map(),
|
|
729
|
-
child:
|
|
838
|
+
child: j(l, t),
|
|
730
839
|
owner: t
|
|
731
840
|
};
|
|
732
|
-
return
|
|
841
|
+
return Ae(u), u;
|
|
733
842
|
}
|
|
734
|
-
throw new TypeError(`Unsupported vnode type: ${
|
|
843
|
+
throw new TypeError(`Unsupported vnode type: ${J(r)}`);
|
|
735
844
|
}
|
|
736
|
-
function
|
|
737
|
-
if (e == null) return
|
|
738
|
-
if (
|
|
739
|
-
const
|
|
740
|
-
return
|
|
845
|
+
function M(e, t, r) {
|
|
846
|
+
if (e == null) return j(t, r);
|
|
847
|
+
if (le(e, t)) return ie(e, t, r);
|
|
848
|
+
const n = j(t, r), i = ae(e), s = (i == null ? void 0 : i.parentNode) ?? null;
|
|
849
|
+
return s && H(s, n, i), g(e, !0), n;
|
|
741
850
|
}
|
|
742
|
-
function
|
|
743
|
-
return e.kind === "text" ? (typeof t != "string" && typeof t != "number" || Object.is(e.value, t) || (e.value = t, e.node.data = String(t)), e) : e.kind === "emitter" ? (
|
|
851
|
+
function ie(e, t, r) {
|
|
852
|
+
return e.kind === "text" ? (typeof t != "string" && typeof t != "number" || Object.is(e.value, t) || (e.value = t, e.node.data = String(t)), e) : e.kind === "emitter" ? (!$(t) || e.source !== t, e) : e.kind === "component" ? (t instanceof b || y(t) && Pe(e, t.props), e) : y(t) ? e.kind === "function" ? (Oe(e, t.props), e) : e.kind === "fragment" ? (e.children = O(
|
|
744
853
|
e.start.parentNode,
|
|
745
854
|
e.children,
|
|
746
855
|
t.props.children,
|
|
747
|
-
|
|
856
|
+
r,
|
|
748
857
|
e.end,
|
|
749
858
|
e.start
|
|
750
|
-
), e) : (
|
|
859
|
+
), e) : (oe(e, t.props), e.children = O(
|
|
751
860
|
e.node,
|
|
752
861
|
e.children,
|
|
753
862
|
t.props.children,
|
|
754
|
-
|
|
863
|
+
r
|
|
755
864
|
), e) : e;
|
|
756
865
|
}
|
|
757
|
-
function
|
|
758
|
-
return Object.fromEntries(Object.entries(e).map(([t,
|
|
866
|
+
function Y(e) {
|
|
867
|
+
return Object.fromEntries(Object.entries(e).map(([t, r]) => [
|
|
759
868
|
t,
|
|
760
|
-
|
|
869
|
+
T(r) ? r.emitter.get() : r
|
|
761
870
|
]));
|
|
762
871
|
}
|
|
763
|
-
function
|
|
764
|
-
|
|
765
|
-
e.props = { ...e.props, [
|
|
872
|
+
function se(e, t) {
|
|
873
|
+
q(e.liveProps, t, (r, n) => {
|
|
874
|
+
e.props = { ...e.props, [r]: n }, e.instance.setProps(e.props);
|
|
766
875
|
}), e.props = V(e.liveProps, t), e.instance.setProps(e.props);
|
|
767
876
|
}
|
|
768
|
-
function
|
|
769
|
-
|
|
877
|
+
function Pe(e, t) {
|
|
878
|
+
se(e, t);
|
|
770
879
|
}
|
|
771
|
-
function
|
|
772
|
-
|
|
773
|
-
e.props = { ...e.props, [t]:
|
|
880
|
+
function Ae(e) {
|
|
881
|
+
q(e.liveProps, e.sourceProps, (t, r) => {
|
|
882
|
+
e.props = { ...e.props, [t]: r }, _(e);
|
|
774
883
|
}), e.props = V(e.liveProps, e.sourceProps);
|
|
775
884
|
}
|
|
776
|
-
function
|
|
777
|
-
e.sourceProps = t,
|
|
778
|
-
e.props = { ...e.props, [
|
|
779
|
-
}), e.props = V(e.liveProps, t),
|
|
885
|
+
function Oe(e, t) {
|
|
886
|
+
e.sourceProps = t, q(e.liveProps, t, (r, n) => {
|
|
887
|
+
e.props = { ...e.props, [r]: n }, _(e);
|
|
888
|
+
}), e.props = V(e.liveProps, t), _(e);
|
|
780
889
|
}
|
|
781
|
-
function
|
|
890
|
+
function _(e) {
|
|
782
891
|
const t = R(e.type(e.props));
|
|
783
|
-
e.child =
|
|
892
|
+
e.child = M(e.child, t, e.owner);
|
|
784
893
|
}
|
|
785
|
-
function
|
|
786
|
-
for (const [
|
|
787
|
-
const
|
|
788
|
-
|
|
894
|
+
function q(e, t, r) {
|
|
895
|
+
for (const [n, i] of e) {
|
|
896
|
+
const s = t[n];
|
|
897
|
+
T(s) && s.emitter === i.source || (i.unsubscribe(), e.delete(n));
|
|
789
898
|
}
|
|
790
|
-
for (const [
|
|
791
|
-
if (!
|
|
792
|
-
const
|
|
899
|
+
for (const [n, i] of Object.entries(t)) {
|
|
900
|
+
if (!T(i) || e.has(n)) continue;
|
|
901
|
+
const s = {
|
|
793
902
|
source: i.emitter,
|
|
794
903
|
value: i.emitter.get(),
|
|
795
904
|
unsubscribe: () => {
|
|
796
905
|
}
|
|
797
906
|
};
|
|
798
|
-
|
|
799
|
-
e.get(
|
|
800
|
-
}, { emitCurrent: !1 }), e.set(
|
|
907
|
+
s.unsubscribe = i.emitter.subscribe(({ value: o }) => {
|
|
908
|
+
e.get(n) === s && (s.value = o, r(n, o));
|
|
909
|
+
}, { emitCurrent: !1 }), e.set(n, s);
|
|
801
910
|
}
|
|
802
911
|
}
|
|
803
912
|
function V(e, t) {
|
|
804
|
-
return Object.fromEntries(Object.entries(t).map(([
|
|
913
|
+
return Object.fromEntries(Object.entries(t).map(([r, n]) => {
|
|
805
914
|
var i;
|
|
806
915
|
return [
|
|
807
|
-
|
|
808
|
-
|
|
916
|
+
r,
|
|
917
|
+
T(n) ? ((i = e.get(r)) == null ? void 0 : i.value) ?? n.emitter.get() : n
|
|
809
918
|
];
|
|
810
919
|
}));
|
|
811
920
|
}
|
|
812
|
-
function O(e, t,
|
|
921
|
+
function O(e, t, r, n, i = null, s = null) {
|
|
813
922
|
if (e == null) throw new Error("Cannot patch a detached fragment range");
|
|
814
|
-
const
|
|
923
|
+
const o = ne(r), a = /* @__PURE__ */ new Map(), l = [];
|
|
815
924
|
for (const f of t)
|
|
816
925
|
f.key == null ? l.push(f) : a.has(f.key) || a.set(f.key, f);
|
|
817
|
-
const
|
|
818
|
-
let
|
|
819
|
-
for (const f of
|
|
926
|
+
const u = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set(), m = [];
|
|
927
|
+
let de = 0;
|
|
928
|
+
for (const f of o) {
|
|
820
929
|
const p = E(f);
|
|
821
930
|
if (p != null) {
|
|
822
|
-
if (
|
|
823
|
-
|
|
931
|
+
if (u.has(p)) throw new Error(`Duplicate sibling key: ${String(p)}`);
|
|
932
|
+
u.add(p);
|
|
824
933
|
}
|
|
825
|
-
const
|
|
826
|
-
|
|
934
|
+
const k = p == null ? l[de++] : a.get(p);
|
|
935
|
+
k && le(k, f) ? (d.add(k), m.push(ie(k, f, n))) : m.push(j(f, n));
|
|
827
936
|
}
|
|
828
937
|
for (const f of t)
|
|
829
938
|
d.has(f) || g(f, !0);
|
|
830
|
-
let S =
|
|
939
|
+
let S = s ? s.nextSibling : e.firstChild;
|
|
831
940
|
for (const f of m)
|
|
832
|
-
for (const p of
|
|
941
|
+
for (const p of v(f))
|
|
833
942
|
p === S ? S = S.nextSibling : (e.insertBefore(p, S ?? i), S = p.nextSibling);
|
|
834
943
|
return m;
|
|
835
944
|
}
|
|
836
|
-
function
|
|
837
|
-
const { children:
|
|
838
|
-
for (const
|
|
839
|
-
if (Object.hasOwn(
|
|
840
|
-
throw new Error(`${
|
|
841
|
-
for (const
|
|
842
|
-
const a = i[
|
|
843
|
-
if (
|
|
844
|
-
|
|
845
|
-
else if (
|
|
846
|
-
a !== l &&
|
|
847
|
-
else if (
|
|
848
|
-
|
|
849
|
-
else if (
|
|
850
|
-
|
|
945
|
+
function oe(e, t) {
|
|
946
|
+
const { children: r, ...n } = t, i = e.props, s = /* @__PURE__ */ new Set([...Object.keys(i), ...Object.keys(n)]);
|
|
947
|
+
for (const o of ["value", "checked"])
|
|
948
|
+
if (Object.hasOwn(n, o) && Object.hasOwn(n, `bind:${o}`))
|
|
949
|
+
throw new Error(`${o} and bind:${o} cannot be used together`);
|
|
950
|
+
for (const o of s) {
|
|
951
|
+
const a = i[o], l = n[o];
|
|
952
|
+
if (Me(o))
|
|
953
|
+
$e(e, o, l);
|
|
954
|
+
else if (o === "ref")
|
|
955
|
+
a !== l && Fe(e, l);
|
|
956
|
+
else if (Le(o))
|
|
957
|
+
Ne(e, o, l);
|
|
958
|
+
else if (T(l))
|
|
959
|
+
xe(e, o, l);
|
|
851
960
|
else {
|
|
852
|
-
const
|
|
853
|
-
|
|
854
|
-
const d = (
|
|
855
|
-
Object.is(d, l) ||
|
|
961
|
+
const u = e.liveProps.get(o);
|
|
962
|
+
u && (u.unsubscribe(), e.liveProps.delete(o));
|
|
963
|
+
const d = (u == null ? void 0 : u.value) ?? a;
|
|
964
|
+
Object.is(d, l) || w(e.node, o, d, l);
|
|
856
965
|
}
|
|
857
966
|
}
|
|
858
|
-
e.props = { ...
|
|
967
|
+
e.props = { ...n };
|
|
859
968
|
}
|
|
860
|
-
function
|
|
861
|
-
const
|
|
862
|
-
if ((
|
|
863
|
-
|
|
864
|
-
const i =
|
|
865
|
-
|
|
866
|
-
const
|
|
867
|
-
source:
|
|
969
|
+
function xe(e, t, r) {
|
|
970
|
+
const n = e.liveProps.get(t);
|
|
971
|
+
if ((n == null ? void 0 : n.source) === r.emitter) return;
|
|
972
|
+
n == null || n.unsubscribe();
|
|
973
|
+
const i = r.emitter.get();
|
|
974
|
+
w(e.node, t, (n == null ? void 0 : n.value) ?? e.props[t], i);
|
|
975
|
+
const s = {
|
|
976
|
+
source: r.emitter,
|
|
868
977
|
value: i,
|
|
869
978
|
unsubscribe: () => {
|
|
870
979
|
}
|
|
871
980
|
};
|
|
872
|
-
|
|
873
|
-
const a =
|
|
874
|
-
|
|
875
|
-
}, { emitCurrent: !1 }), e.liveProps.set(t,
|
|
876
|
-
}
|
|
877
|
-
function
|
|
878
|
-
const
|
|
879
|
-
if (
|
|
880
|
-
i && (i.unsubscribe(), e.node.removeEventListener(i.eventName, i.listener), e.nativeBindings.delete(t),
|
|
981
|
+
s.unsubscribe = r.emitter.subscribe(({ value: o }) => {
|
|
982
|
+
const a = s.value;
|
|
983
|
+
s.value = o, Object.is(a, o) || w(e.node, t, a, o);
|
|
984
|
+
}, { emitCurrent: !1 }), e.liveProps.set(t, s);
|
|
985
|
+
}
|
|
986
|
+
function $e(e, t, r) {
|
|
987
|
+
const n = t.slice(5), i = e.nativeBindings.get(t);
|
|
988
|
+
if (r == null) {
|
|
989
|
+
i && (i.unsubscribe(), e.node.removeEventListener(i.eventName, i.listener), e.nativeBindings.delete(t), w(e.node, n, i.value, void 0));
|
|
881
990
|
return;
|
|
882
991
|
}
|
|
883
|
-
if (
|
|
884
|
-
i && (i.unsubscribe(), e.node.removeEventListener(i.eventName, i.listener)),
|
|
885
|
-
const
|
|
886
|
-
|
|
992
|
+
if (qe(r, t), (i == null ? void 0 : i.source) === r) return;
|
|
993
|
+
i && (i.unsubscribe(), e.node.removeEventListener(i.eventName, i.listener)), Ve(e.node, n);
|
|
994
|
+
const s = He(e.node, n), o = r.get();
|
|
995
|
+
w(e.node, n, i == null ? void 0 : i.value, o);
|
|
887
996
|
const a = () => {
|
|
888
|
-
|
|
997
|
+
r.set(Reflect.get(e.node, n), `${t} changed`);
|
|
889
998
|
}, l = {
|
|
890
|
-
source:
|
|
891
|
-
value:
|
|
892
|
-
eventName:
|
|
999
|
+
source: r,
|
|
1000
|
+
value: o,
|
|
1001
|
+
eventName: s,
|
|
893
1002
|
listener: a,
|
|
894
1003
|
unsubscribe: () => {
|
|
895
1004
|
}
|
|
896
1005
|
};
|
|
897
|
-
l.unsubscribe =
|
|
1006
|
+
l.unsubscribe = r.subscribe(({ value: u }) => {
|
|
898
1007
|
const d = l.value;
|
|
899
|
-
l.value =
|
|
900
|
-
}, { emitCurrent: !1 }), e.node.addEventListener(
|
|
1008
|
+
l.value = u, Object.is(d, u) || w(e.node, n, d, u);
|
|
1009
|
+
}, { emitCurrent: !1 }), e.node.addEventListener(s, a), e.nativeBindings.set(t, l);
|
|
901
1010
|
}
|
|
902
|
-
function
|
|
903
|
-
const
|
|
904
|
-
if (i && i !==
|
|
1011
|
+
function Ne(e, t, r) {
|
|
1012
|
+
const n = t.slice(2).toLowerCase(), i = e.listeners.get(t);
|
|
1013
|
+
if (i && i !== r && (e.node.removeEventListener(n, i), e.listeners.delete(t)), r != null && typeof r != "function")
|
|
905
1014
|
throw new TypeError(`${t} must be a function or null`);
|
|
906
|
-
if (typeof
|
|
907
|
-
const
|
|
908
|
-
e.node.addEventListener(
|
|
1015
|
+
if (typeof r == "function" && i !== r) {
|
|
1016
|
+
const s = r;
|
|
1017
|
+
e.node.addEventListener(n, s), e.listeners.set(t, s);
|
|
909
1018
|
}
|
|
910
1019
|
}
|
|
911
|
-
function
|
|
1020
|
+
function Fe(e, t) {
|
|
912
1021
|
if (B(e.ref, null), t != null && typeof t != "function" && typeof t != "object")
|
|
913
1022
|
throw new TypeError("ref must be a function, object, or null");
|
|
914
1023
|
e.ref = t, B(e.ref, e.node);
|
|
915
1024
|
}
|
|
916
|
-
function
|
|
1025
|
+
function w(e, t, r, n) {
|
|
917
1026
|
if (t === "class" || t === "className") {
|
|
918
|
-
|
|
1027
|
+
N(e, "class", n);
|
|
919
1028
|
return;
|
|
920
1029
|
}
|
|
921
1030
|
if (t === "for" || t === "htmlFor") {
|
|
922
|
-
|
|
1031
|
+
N(e, "for", n);
|
|
923
1032
|
return;
|
|
924
1033
|
}
|
|
925
1034
|
if (t === "dataset") {
|
|
926
|
-
|
|
1035
|
+
ze(e, r, n);
|
|
927
1036
|
return;
|
|
928
1037
|
}
|
|
929
1038
|
if (t === "style") {
|
|
930
|
-
|
|
1039
|
+
_e(e, r, n);
|
|
931
1040
|
return;
|
|
932
1041
|
}
|
|
933
1042
|
if (t === "dangerouslySetInnerHTML")
|
|
934
1043
|
throw new Error("dangerouslySetInnerHTML is not supported");
|
|
935
|
-
const i =
|
|
936
|
-
if (
|
|
937
|
-
const
|
|
938
|
-
i in e && Reflect.set(e, i,
|
|
1044
|
+
const i = Be(t);
|
|
1045
|
+
if (ke.has(i)) {
|
|
1046
|
+
const s = !!n;
|
|
1047
|
+
i in e && Reflect.set(e, i, s), e.toggleAttribute(F(t), s);
|
|
939
1048
|
return;
|
|
940
1049
|
}
|
|
941
|
-
if (
|
|
942
|
-
const
|
|
943
|
-
Object.is(Reflect.get(e, i),
|
|
1050
|
+
if (Ce.has(i) && i in e) {
|
|
1051
|
+
const s = n ?? (i === "value" ? "" : !1);
|
|
1052
|
+
Object.is(Reflect.get(e, i), s) || Reflect.set(e, i, s), n == null && e.removeAttribute(F(t));
|
|
944
1053
|
return;
|
|
945
1054
|
}
|
|
946
|
-
|
|
1055
|
+
N(e, F(t), n);
|
|
947
1056
|
}
|
|
948
|
-
function
|
|
949
|
-
const
|
|
950
|
-
for (const
|
|
951
|
-
const
|
|
952
|
-
|
|
1057
|
+
function ze(e, t, r) {
|
|
1058
|
+
const n = x(t, "dataset"), i = x(r, "dataset");
|
|
1059
|
+
for (const s of /* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(i)])) {
|
|
1060
|
+
const o = i[s];
|
|
1061
|
+
o == null ? delete e.dataset[s] : e.dataset[s] = String(o);
|
|
953
1062
|
}
|
|
954
1063
|
}
|
|
955
|
-
function
|
|
956
|
-
if (typeof
|
|
957
|
-
e.style.cssText =
|
|
1064
|
+
function _e(e, t, r) {
|
|
1065
|
+
if (typeof r == "string") {
|
|
1066
|
+
e.style.cssText = r;
|
|
958
1067
|
return;
|
|
959
1068
|
}
|
|
960
|
-
const
|
|
1069
|
+
const n = typeof t == "string" ? {} : x(t, "style"), i = x(r, "style");
|
|
961
1070
|
typeof t == "string" && (e.style.cssText = "");
|
|
962
|
-
for (const
|
|
963
|
-
const
|
|
964
|
-
|
|
1071
|
+
for (const s of /* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(i)])) {
|
|
1072
|
+
const o = i[s];
|
|
1073
|
+
s.startsWith("--") ? o == null ? e.style.removeProperty(s) : e.style.setProperty(s, String(o)) : Reflect.set(e.style, s, o == null ? "" : String(o));
|
|
965
1074
|
}
|
|
966
1075
|
}
|
|
967
1076
|
function x(e, t) {
|
|
@@ -970,16 +1079,16 @@ function x(e, t) {
|
|
|
970
1079
|
throw new TypeError(`${t} must be an object or null`);
|
|
971
1080
|
return e;
|
|
972
1081
|
}
|
|
973
|
-
function
|
|
974
|
-
|
|
1082
|
+
function N(e, t, r) {
|
|
1083
|
+
r == null || r === !1 ? e.removeAttribute(t) : r === !0 ? e.setAttribute(t, "") : e.setAttribute(t, String(r));
|
|
975
1084
|
}
|
|
976
|
-
function
|
|
1085
|
+
function Be(e) {
|
|
977
1086
|
return e === "readonly" ? "readOnly" : e === "autofocus" ? "autoFocus" : e;
|
|
978
1087
|
}
|
|
979
|
-
function
|
|
980
|
-
return e === "className" ? "class" : e === "htmlFor" ? "for" : /^aria[A-Z]/.test(e) || /^data[A-Z]/.test(e) ?
|
|
1088
|
+
function F(e) {
|
|
1089
|
+
return e === "className" ? "class" : e === "htmlFor" ? "for" : /^aria[A-Z]/.test(e) || /^data[A-Z]/.test(e) ? G(e) : e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
|
|
981
1090
|
}
|
|
982
|
-
function
|
|
1091
|
+
function G(e) {
|
|
983
1092
|
return e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
|
|
984
1093
|
}
|
|
985
1094
|
function B(e, t) {
|
|
@@ -988,156 +1097,160 @@ function B(e, t) {
|
|
|
988
1097
|
function g(e, t) {
|
|
989
1098
|
if (e.kind === "emitter") {
|
|
990
1099
|
if (e.unsubscribe(), g(e.child, !1), t)
|
|
991
|
-
for (const
|
|
1100
|
+
for (const r of v(e)) r.remove();
|
|
992
1101
|
return;
|
|
993
1102
|
}
|
|
994
1103
|
if (e.kind === "component") {
|
|
995
|
-
for (const
|
|
1104
|
+
for (const r of e.liveProps.values()) r.unsubscribe();
|
|
996
1105
|
e.liveProps.clear(), e.owner._childComponents.delete(e.instance), e.instance.destroy();
|
|
997
1106
|
return;
|
|
998
1107
|
}
|
|
999
1108
|
if (e.kind === "function") {
|
|
1000
|
-
for (const
|
|
1109
|
+
for (const r of e.liveProps.values()) r.unsubscribe();
|
|
1001
1110
|
e.liveProps.clear(), g(e.child, t);
|
|
1002
1111
|
return;
|
|
1003
1112
|
}
|
|
1004
1113
|
if (e.kind === "element") {
|
|
1005
1114
|
B(e.ref, null);
|
|
1006
|
-
for (const [
|
|
1007
|
-
e.node.removeEventListener(
|
|
1115
|
+
for (const [r, n] of e.listeners)
|
|
1116
|
+
e.node.removeEventListener(r.slice(2).toLowerCase(), n);
|
|
1008
1117
|
e.listeners.clear();
|
|
1009
|
-
for (const
|
|
1118
|
+
for (const r of e.liveProps.values()) r.unsubscribe();
|
|
1010
1119
|
e.liveProps.clear();
|
|
1011
|
-
for (const
|
|
1012
|
-
|
|
1120
|
+
for (const r of e.nativeBindings.values())
|
|
1121
|
+
r.unsubscribe(), e.node.removeEventListener(r.eventName, r.listener);
|
|
1013
1122
|
e.nativeBindings.clear();
|
|
1014
|
-
for (const
|
|
1123
|
+
for (const r of e.children) g(r, !1);
|
|
1015
1124
|
t && e.node.remove();
|
|
1016
1125
|
return;
|
|
1017
1126
|
}
|
|
1018
1127
|
if (e.kind === "fragment") {
|
|
1019
|
-
for (const
|
|
1128
|
+
for (const r of e.children) g(r, !1);
|
|
1020
1129
|
if (t)
|
|
1021
|
-
for (const
|
|
1130
|
+
for (const r of v(e)) r.remove();
|
|
1022
1131
|
return;
|
|
1023
1132
|
}
|
|
1024
1133
|
t && e.node.remove();
|
|
1025
1134
|
}
|
|
1026
|
-
function
|
|
1135
|
+
function H(e, t, r = null) {
|
|
1027
1136
|
if (t != null)
|
|
1028
|
-
for (const
|
|
1137
|
+
for (const n of v(t)) e.insertBefore(n, r);
|
|
1029
1138
|
}
|
|
1030
|
-
function
|
|
1139
|
+
function v(e) {
|
|
1031
1140
|
if (e == null) return [];
|
|
1032
1141
|
if (e.kind === "text" || e.kind === "element") return [e.node];
|
|
1033
|
-
if (e.kind === "component") return
|
|
1034
|
-
if (e.kind === "function") return
|
|
1142
|
+
if (e.kind === "component") return v(e.instance._rendered);
|
|
1143
|
+
if (e.kind === "function") return v(e.child);
|
|
1035
1144
|
const t = [];
|
|
1036
|
-
let
|
|
1037
|
-
for (;
|
|
1038
|
-
|
|
1145
|
+
let r = e.start;
|
|
1146
|
+
for (; r && (t.push(r), r !== e.end); )
|
|
1147
|
+
r = r.nextSibling;
|
|
1039
1148
|
return t;
|
|
1040
1149
|
}
|
|
1041
|
-
function
|
|
1042
|
-
return
|
|
1150
|
+
function ae(e) {
|
|
1151
|
+
return v(e)[0] ?? null;
|
|
1043
1152
|
}
|
|
1044
1153
|
function E(e) {
|
|
1045
|
-
return e instanceof
|
|
1154
|
+
return e instanceof b ? ce(e.props) : y(e) ? e.key : null;
|
|
1046
1155
|
}
|
|
1047
|
-
function
|
|
1156
|
+
function ce(e) {
|
|
1048
1157
|
const t = e.key;
|
|
1049
1158
|
return typeof t == "string" || typeof t == "number" ? t : null;
|
|
1050
1159
|
}
|
|
1051
|
-
function
|
|
1052
|
-
return e.kind === "text" ? typeof t == "string" || typeof t == "number" : e.kind === "emitter" ?
|
|
1160
|
+
function le(e, t) {
|
|
1161
|
+
return e.kind === "text" ? typeof t == "string" || typeof t == "number" : e.kind === "emitter" ? $(t) && e.source === t : e.kind === "component" ? t instanceof b ? e.instance === t : y(t) && ue(t.type) && e.type === t.type && e.key === E(t) : e.kind === "function" ? y(t) && e.type === t.type && e.key === E(t) : e.kind === "fragment" ? y(t) && t.type === P && e.key === E(t) : y(t) && typeof t.type == "string" && e.type === t.type && e.key === E(t);
|
|
1053
1162
|
}
|
|
1054
1163
|
function y(e) {
|
|
1055
1164
|
return e != null && typeof e == "object" && Object.hasOwn(e, "type");
|
|
1056
1165
|
}
|
|
1057
|
-
function
|
|
1058
|
-
return typeof e == "function" && (e ===
|
|
1166
|
+
function ue(e) {
|
|
1167
|
+
return typeof e == "function" && (e === b || e.prototype instanceof b);
|
|
1059
1168
|
}
|
|
1060
|
-
function
|
|
1169
|
+
function Le(e) {
|
|
1061
1170
|
return /^on[A-Z]/.test(e);
|
|
1062
1171
|
}
|
|
1063
|
-
function
|
|
1172
|
+
function Me(e) {
|
|
1064
1173
|
return e === "bind:value" || e === "bind:checked";
|
|
1065
1174
|
}
|
|
1066
|
-
function
|
|
1067
|
-
return e != null && typeof e == "object" &&
|
|
1175
|
+
function T(e) {
|
|
1176
|
+
return e != null && typeof e == "object" && re.has(e);
|
|
1068
1177
|
}
|
|
1069
|
-
function
|
|
1178
|
+
function $(e) {
|
|
1070
1179
|
return (typeof e != "object" || e == null) && typeof e != "function" ? !1 : typeof Reflect.get(e, "get") == "function" && typeof Reflect.get(e, "getFetchState") == "function" && typeof Reflect.get(e, "getError") == "function" && typeof Reflect.get(e, "subscribe") == "function";
|
|
1071
1180
|
}
|
|
1072
|
-
function
|
|
1073
|
-
if (
|
|
1181
|
+
function I(e, t) {
|
|
1182
|
+
if (!$(e)) throw new TypeError(`${t} requires a readable emitter`);
|
|
1074
1183
|
}
|
|
1075
|
-
function
|
|
1076
|
-
if (
|
|
1184
|
+
function qe(e, t) {
|
|
1185
|
+
if (I(e, t), typeof Reflect.get(e, "set") != "function")
|
|
1077
1186
|
throw new TypeError(`${t} requires a writable emitter`);
|
|
1078
1187
|
}
|
|
1079
|
-
function
|
|
1080
|
-
const
|
|
1081
|
-
if (!(t === "checked" ?
|
|
1188
|
+
function Ve(e, t) {
|
|
1189
|
+
const r = e.localName;
|
|
1190
|
+
if (!(t === "checked" ? r === "input" : r === "input" || r === "textarea" || r === "select")) throw new TypeError(`bind:${t} is not supported on ${r}`);
|
|
1082
1191
|
}
|
|
1083
|
-
function
|
|
1192
|
+
function He(e, t) {
|
|
1084
1193
|
return t === "value" && e.localName !== "select" ? "input" : "change";
|
|
1085
1194
|
}
|
|
1086
|
-
function
|
|
1195
|
+
function Ie(e) {
|
|
1087
1196
|
if (e == null || typeof e != "object" && typeof e != "function" || typeof Reflect.get(e, "insertBefore") != "function")
|
|
1088
1197
|
throw new TypeError("Component parent must be a DOM ParentNode");
|
|
1089
1198
|
}
|
|
1090
|
-
function
|
|
1199
|
+
function J(e) {
|
|
1091
1200
|
try {
|
|
1092
1201
|
return String(e);
|
|
1093
1202
|
} catch {
|
|
1094
1203
|
return Object.prototype.toString.call(e);
|
|
1095
1204
|
}
|
|
1096
1205
|
}
|
|
1097
|
-
function
|
|
1206
|
+
function De(e) {
|
|
1098
1207
|
if (e == null) return [];
|
|
1099
1208
|
if (Array.isArray(e))
|
|
1100
1209
|
return e.map((t) => {
|
|
1101
1210
|
if (!Array.isArray(t) || t.length < 2 || typeof t[0] != "string")
|
|
1102
1211
|
throw new TypeError("Component baseStyles entries must be selector/style tuples");
|
|
1103
|
-
const
|
|
1104
|
-
if (typeof
|
|
1212
|
+
const r = t[1];
|
|
1213
|
+
if (typeof r != "string" && (!Array.isArray(r) || r.some((n) => typeof n != "string")))
|
|
1105
1214
|
throw new TypeError("Component base style names must be strings");
|
|
1106
|
-
return [t[0],
|
|
1215
|
+
return [t[0], r];
|
|
1107
1216
|
});
|
|
1108
1217
|
if (typeof e != "object")
|
|
1109
1218
|
throw new TypeError("Component baseStyles must be an object or tuple array");
|
|
1110
|
-
return Object.entries(e).map(([t,
|
|
1219
|
+
return Object.entries(e).map(([t, r]) => [
|
|
1111
1220
|
t,
|
|
1112
|
-
|
|
1221
|
+
r
|
|
1113
1222
|
]);
|
|
1114
1223
|
}
|
|
1115
|
-
function
|
|
1116
|
-
const
|
|
1117
|
-
return
|
|
1224
|
+
function fe(e, t, r) {
|
|
1225
|
+
const n = t == null ? {} : { ...t };
|
|
1226
|
+
return r !== void 0 && (n.key = r), A(e, n);
|
|
1118
1227
|
}
|
|
1119
|
-
const
|
|
1120
|
-
function
|
|
1121
|
-
if (!(e instanceof
|
|
1228
|
+
const Je = fe, Qe = fe;
|
|
1229
|
+
function Xe(e) {
|
|
1230
|
+
if (!(e instanceof b))
|
|
1122
1231
|
throw new TypeError("createPrebuiltElement requires a Component instance");
|
|
1123
1232
|
return e;
|
|
1124
1233
|
}
|
|
1125
1234
|
export {
|
|
1126
|
-
|
|
1235
|
+
b as C,
|
|
1127
1236
|
P as F,
|
|
1128
|
-
|
|
1129
|
-
|
|
1237
|
+
te as S,
|
|
1238
|
+
Je as a,
|
|
1130
1239
|
L as b,
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1240
|
+
Ge as c,
|
|
1241
|
+
Q as d,
|
|
1242
|
+
Ze as e,
|
|
1243
|
+
Se as f,
|
|
1244
|
+
ye as g,
|
|
1245
|
+
W as h,
|
|
1137
1246
|
y as i,
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1247
|
+
fe as j,
|
|
1248
|
+
Ue as k,
|
|
1249
|
+
A as l,
|
|
1250
|
+
Qe as m,
|
|
1251
|
+
Ye as n,
|
|
1252
|
+
Xe as o,
|
|
1253
|
+
We as p,
|
|
1254
|
+
me as s
|
|
1142
1255
|
};
|
|
1143
|
-
//# sourceMappingURL=jsx-dev-runtime-
|
|
1256
|
+
//# sourceMappingURL=jsx-dev-runtime-pzseD2Sz.js.map
|